@ckeditor/ckeditor5-revision-history 46.1.1-alpha.2 → 46.1.1-alpha.3
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/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/package.json +12 -12
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4f3aac(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfdca93){super(),this['id']=_0xfdca93['id']||_0x2e23f1(),this['creator']=_0xfdca93['creator']||null,this['authors']=_0xfdca93['authors']||[],this['diffData']=_0xfdca93['diffData']||null,this['toVersion']=_0xfdca93['toVersion']||0x0,this['fromVersion']=_0xfdca93['fromVersion']||0x0,this['set']('name',_0xfdca93['name']||''),this['set']('createdAt',_0xfdca93['createdAt']||new Date()),this['set']('attributes',_0xfdca93['attributes']||{});}['setName'](_0x32e3a9){this['_update']({'name':_0x32e3a9});}['setAttribute'](_0xbbdaa3,_0x1a5c43){const _0x23dc29=_0x25ff9b(this['attributes']);_0x336c62(_0x23dc29,_0xbbdaa3,_0x1a5c43),this['_update']({'attributes':_0x23dc29});}['removeAttribute'](_0x2726ef){const _0x99e1bf=_0x25ff9b(this['attributes']);_0x57d449(_0x99e1bf,_0x2726ef),this['_update']({'attributes':_0x99e1bf});}['_update'](_0x2bb524,_0x3ceadc=!0x1){let _0x272fde=!0x1;const _0x427da6={'id':this['id']},_0xfd2a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5474d7 of _0xfd2a){const _0x1b98b7=_0x2bb524[_0x5474d7];void 0x0!==_0x1b98b7&&_0x1b98b7!==this[_0x5474d7]&&(this[_0x5474d7]=_0x1b98b7,_0x427da6[_0x5474d7]=_0x1b98b7,_0x272fde=!0x0);}_0x272fde&&(_0x427da6['authors']&&(_0x427da6['authorsIds']=_0x427da6['authors']['map'](_0x138c3f=>_0x138c3f['id']),delete _0x427da6['authors']),this['fire']('_update',_0x427da6,_0x3ceadc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e322b=>_0x4e322b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1305a6{['_revisions'];static get['requires'](){return[_0x4ca452];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x334d7f){super(_0x334d7f),this['_revisions']=new _0xd01162();}['afterInit'](){!async function(_0x37628d){const _0x4298eb=_0x4932c2([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2e5285=0xeb829,_0x97b2b8=0x7374585f,_0x5d09d3=0x73732b07^_0x97b2b8,_0x1d89fe=window[_0x4932c2([0x44,0x61,0x74,0x65])][_0x4932c2([0x6e,0x6f,0x77])](),_0x224c81=_0x37628d[_0x4932c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x128c9b=new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1d2f=>{_0x224c81[_0x4932c2([0x6f,0x6e,0x63,0x65])](_0x4932c2([0x72,0x65,0x61,0x64,0x79]),_0x3d1d2f);}),_0x5bbba5={[_0x4932c2([0x6b,0x74,0x79])]:_0x4932c2([0x45,0x43]),[_0x4932c2([0x75,0x73,0x65])]:_0x4932c2([0x73,0x69,0x67]),[_0x4932c2([0x63,0x72,0x76])]:_0x4932c2([0x50,0x2d,0x32,0x35,0x36]),[_0x4932c2([0x78])]:_0x4932c2([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]),[_0x4932c2([0x79])]:_0x4932c2([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]),[_0x4932c2([0x61,0x6c,0x67])]:_0x4932c2([0x45,0x53,0x32,0x35,0x36])},_0x1c772a=_0x224c81[_0x4932c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4932c2([0x67,0x65,0x74])](_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4befb8(){let _0x47d915,_0x1a7174=null,_0x31b414=null;try{if(_0x1c772a==_0x4932c2([0x47,0x50,0x4c]))return _0x4932c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47d915=_0x294ebb(),!_0x47d915)return _0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47d915[_0x4932c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31b414=_0x3bd83f(_0x47d915[_0x4932c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47d915[_0x4932c2([0x6a,0x74,0x69])])),await _0x11fe66()?_0x4bf16c()?_0xbb59a7()?_0x4932c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bf63a()?(_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4932c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a7174=_0x1ab9a4(_0x4932c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4932c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a7174=_0x1ab9a4(_0x4932c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52aa23()):_0x4932c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4932c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbb59a7(){const _0x58a61a=[_0x4932c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4932c2([0x74,0x72,0x69,0x61,0x6c])][_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d89fe/0x3e8:0xe10*_0x5d09d3;return _0x47d915[_0x4932c2([0x65,0x78,0x70])]<_0x58a61a;}function _0x4bf16c(){const _0xba2915=_0x47d915[_0x4932c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xba2915)return!0x1;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x2a])))return!0x0;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x52,0x48])))return!0x0;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x52,0x52,0x48]))){if(_0x5bc768())return!0x0;if(_0x287090()||_0x431987())return!0x0;}return!0x1;}function _0x2bf63a(){const _0x20c7e2=_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c7e2||0x0==_0x20c7e2[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e773d}=new URL(window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c7e2[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e773d))return!0x0;const _0x45a22c=_0x1e773d[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e]));return _0x20c7e2[_0x4932c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x572151=>_0x572151[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x2a])))[_0x4932c2([0x6d,0x61,0x70])](_0x2daca6=>_0x2daca6[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e])))[_0x4932c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a871e=>_0x2a871e[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45a22c[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4932c2([0x6d,0x61,0x70])](_0x25a4d9=>Array(_0x45a22c[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25a4d9[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4932c2([0x66,0x69,0x6c,0x6c])](_0x25a4d9[0x0]===_0x4932c2([0x2a])?_0x4932c2([0x2a]):'')[_0x4932c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25a4d9))[_0x4932c2([0x73,0x6f,0x6d,0x65])](_0x52566f=>_0x45a22c[_0x4932c2([0x65,0x76,0x65,0x72,0x79])]((_0x42d365,_0x289db5)=>_0x52566f[_0x289db5]===_0x42d365||_0x52566f[_0x289db5]===_0x4932c2([0x2a])));}function _0x52aa23(){return _0x1a7174&&_0x31b414?new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6b2c,_0x319cc6)=>{_0x1a7174[_0x4932c2([0x74,0x68,0x65,0x6e])](_0xed6b2c,_0x319cc6),_0x31b414[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x1b20d4=>{_0x1b20d4!=_0x4932c2([0x56,0x61,0x6c,0x69,0x64])&&_0xed6b2c(_0x1b20d4);},_0x319cc6);}):_0x1a7174||_0x31b414||_0x4932c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bd83f(_0xaa3f10,_0x53a7de){return new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58bfa3=>{if(_0x4c9d02())return _0x58bfa3(_0x4932c2([0x56,0x61,0x6c,0x69,0x64]));_0x4345ef(),_0x224c81[_0x4932c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d8348=!0x1;const _0x1ffa5c=_0x2e23f1();function _0x3f2be5(_0x2f59bf){return!!_0x2f59bf&&(typeof _0x2f59bf===_0x4932c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f59bf===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f59bf[_0x4932c2([0x74,0x68,0x65,0x6e])]===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f59bf[_0x4932c2([0x63,0x61,0x74,0x63,0x68])]===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x71a85(_0x55b075){_0x23580d(_0x55b075)[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x4f9e16=>{if(!_0x4f9e16||_0x4f9e16[_0x4932c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4932c2([0x6f,0x6b]))return _0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ccbbc(_0x46d187(_0x1ffa5c+_0x53a7de))!=_0x4f9e16[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4932c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x420d74=>(_0x22b689(),_0x420d74),()=>{const _0x273025=_0x4dec4f();return null==_0x273025?(_0x22b689(),_0x4932c2([0x56,0x61,0x6c,0x69,0x64])):_0x4932c2(_0x1d89fe-_0x273025>(0x5778dc5f^_0x97b2b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x58bfa3)[_0x4932c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e30c1=0x7342b6df^_0x97b2b8;function _0x22b689(){const _0x53f605=_0x4932c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccbbc(_0x46d187(_0xaa3f10)),_0x15478c=_0x56c842(_0x3ccbbc(window[_0x4932c2([0x4d,0x61,0x74,0x68])][_0x4932c2([0x63,0x65,0x69,0x6c])](_0x1d89fe/_0x5e30c1)));window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4932c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53f605,_0x15478c);}function _0x4dec4f(){const _0x410ccf=_0x4932c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccbbc(_0x46d187(_0xaa3f10)),_0x191ecf=window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4932c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x410ccf);return _0x191ecf?window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56c842(_0x191ecf),0x10)*_0x5e30c1:null;}function _0x23580d(_0x3a81e3){return new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x72b533,_0x39399f)=>{_0x3a81e3[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x72b533,_0x39399f),window[_0x4932c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39399f,0x73758c9f^_0x97b2b8);});}}_0x224c81[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x239e9c,_0x15e16b)=>{if(_0x15e16b[0x0]!=_0xaa3f10)return _0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15e16b[0x1]={..._0x15e16b[0x1],[_0x4932c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ffa5c};},{[_0x4932c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4932c2([0x68,0x69,0x67,0x68])}),_0x224c81[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59ccca=>{_0x3f2be5(_0x59ccca[_0x4932c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d8348=!0x0,_0x71a85(_0x59ccca[_0x4932c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4932c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4932c2([0x6c,0x6f,0x77])}),_0x128c9b[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>{_0x3d8348||_0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c9d02(){return _0x224c81[_0x4932c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4932c2([0x76,0x69,0x65,0x77])][_0x4932c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4932c2([0x61,0x75,0x74,0x6f]);}function _0x4345ef(){_0x224c81[_0x4932c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4932c2([0x76,0x69,0x65,0x77])][_0x4932c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4932c2([0x61,0x75,0x74,0x6f]);}}function _0x1ab9a4(_0x88a94d){const _0x460ae3=[new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e1a1=>setTimeout(_0x41e1a1,0x737d6693^_0x97b2b8)),_0x128c9b[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47942c=>{const _0x45348b=0x73745858^_0x97b2b8,_0x50419a=_0x37628d[_0x4932c2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4a2ae5(){_0x50419a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45348b&&_0x47942c();}_0x4a2ae5(),_0x50419a[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x61,0x64,0x64]),_0x4a2ae5);})),new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15d3be=>{function _0x2623df(){for(const _0xb9f286 in window)if(window[_0x4932c2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4932c2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb9f286))&&window[_0xb9f286]==_0x2e5285)return _0x15d3be();_0x224c81[_0x4932c2([0x73,0x74,0x61,0x74,0x65])]!=_0x4932c2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4932c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2623df,0x73744bd7^_0x97b2b8);}_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2623df();})];return window[_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4932c2([0x72,0x61,0x63,0x65])](_0x460ae3)[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>_0x88a94d);}async function _0x592b58(){if(await _0x128c9b,_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x37ab75=_0x37628d[_0x4932c2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3450d1=_0x37628d[_0x4932c2([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])](_0x37ab75[_0x4932c2([0x69,0x64])]),_0x270566=_0x502379(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x270566[_0x4932c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x37ab75['id'],_0x3450d1?_0x3450d1['id']:null,!0x0),_0x270566[_0x4932c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x270566[_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x270566[_0x4932c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3d269a,void(_0x270566[_0x4932c2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3d269a);}if(_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x31d9ad=_0x502379(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x31d9ad[_0x4932c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x31d9ad[_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x31d9ad[_0x4932c2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3d269a,_0x31d9ad[_0x4932c2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3d269a;}_0x224c81[_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4932c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d269a,_0x224c81[_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4932c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d269a,_0x224c81[_0x4932c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bc768(){return _0x256b17(_0x4932c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x502379(_0x4932c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4932c2([0x73,0x74,0x61,0x74,0x65])]==_0x4932c2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287090(){return _0x256b17(_0x4932c2([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 _0x431987(){return _0x256b17(_0x4932c2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x142e21(_0x31b05a){const _0x37b81e=_0x3056df();_0x224c81[_0x37b81e]=_0x4932c2([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])+_0x31b05a,_0x31b05a[_0x4932c2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4932c2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3056df()]=_0x2e5285),_0x31b05a!=_0x4932c2([0x56,0x61,0x6c,0x69,0x64])&&_0x592b58();}function _0x3056df(){const _0x5de7e8=window[_0x4932c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4932c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4932c2([0x6e,0x6f,0x77])]())[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4932c2([0x2e]),'');let _0x5d34b8=_0x4932c2([0x73]);for(let _0x10543c=0x0;_0x10543c<_0x5de7e8[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10543c+=0x2){let _0x430f37=window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5de7e8[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10543c,_0x10543c+0x2));_0x430f37>=_0x4298eb[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x430f37-=_0x4298eb[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d34b8+=_0x4298eb[_0x430f37];}return _0x5d34b8;}function _0x294ebb(){const _0x284280=_0x1c772a[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e]));if(0x3!=_0x284280[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c05d4(_0x284280[0x1]);function _0x5c05d4(_0x22ec19){const _0x3dcdd6=_0xa6cbf2(_0x22ec19);return _0x3dcdd6&&_0x159e2e()?_0x3dcdd6:null;function _0x159e2e(){const _0x40704a=_0x3dcdd6[_0x4932c2([0x6a,0x74,0x69])],_0xc1a29e=window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40704a[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40704a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34858e={..._0x3dcdd6,[_0x4932c2([0x6a,0x74,0x69])]:_0x40704a[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40704a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34858e[_0x4932c2([0x76,0x63])],_0x46d187(_0x34858e)==_0xc1a29e;}}}async function _0x11fe66(){let _0x4c59fb=!0x0;try{const _0x4aeed3=_0x1c772a[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e])),[_0x3ddc4f,_0x20d54c,_0x5b0fb6]=_0x4aeed3;return _0xef2568(_0x3ddc4f),await _0x301bde(_0x3ddc4f,_0x20d54c,_0x5b0fb6),_0x4c59fb;}catch{return!0x1;}function _0xef2568(_0x24efe4){const _0x4659b3=_0xa6cbf2(_0x24efe4);_0x4659b3&&_0x4659b3[_0x4932c2([0x61,0x6c,0x67])]==_0x4932c2([0x45,0x53,0x32,0x35,0x36])||(_0x4c59fb=!0x1);}async function _0x301bde(_0x39e8c0,_0x50899e,_0x491cc1){const _0xe0d2c9=window[_0x4932c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4932c2([0x66,0x72,0x6f,0x6d])](_0x585c12(_0x491cc1),_0x220bb0=>_0x220bb0[_0x4932c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ed02b=new window[(_0x4932c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4932c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39e8c0+_0x4932c2([0x2e])+_0x50899e),_0x29e9aa=window[_0x4932c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4932c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29e9aa)return;const _0x3b86d1=await _0x29e9aa[_0x4932c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4932c2([0x6a,0x77,0x6b]),_0x5bbba5,{[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x45,0x43,0x44,0x53,0x41]),[_0x4932c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4932c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29e9aa[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x45,0x43,0x44,0x53,0x41]),[_0x4932c2([0x68,0x61,0x73,0x68])]:{[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b86d1,_0xe0d2c9,_0x4ed02b)||(_0x4c59fb=!0x1);}}function _0xa6cbf2(_0x1ddd90){return _0x1ddd90[_0x4932c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4932c2([0x65,0x79]))?JSON[_0x4932c2([0x70,0x61,0x72,0x73,0x65])](_0x585c12(_0x1ddd90)):null;}function _0x585c12(_0x4e5e26){return window[_0x4932c2([0x61,0x74,0x6f,0x62])](_0x4e5e26[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4932c2([0x2b]))[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4932c2([0x2f])));}function _0x46d187(_0x52f715){let _0x38ae25=0x1505;function _0x226784(_0x3a00f9){for(let _0x4c2d78=0x0;_0x4c2d78<_0x3a00f9[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c2d78++){const _0x4f0519=_0x3a00f9[_0x4932c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c2d78);_0x38ae25=(_0x38ae25<<0x5)+_0x38ae25+_0x4f0519,_0x38ae25&=_0x38ae25;}}function _0x30e9cd(_0x4c8f2b){Array[_0x4932c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c8f2b)?_0x4c8f2b[_0x4932c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30e9cd):_0x4c8f2b&&typeof _0x4c8f2b==_0x4932c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4932c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c8f2b)[_0x4932c2([0x73,0x6f,0x72,0x74])]()[_0x4932c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19864c,_0x2479af])=>{_0x226784(_0x19864c),_0x30e9cd(_0x2479af);}):_0x226784(window[_0x4932c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c8f2b));}return _0x30e9cd(_0x52f715),_0x38ae25>>>0x0;}function _0x3ccbbc(_0x4c3532){return _0x4c3532[_0x4932c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4932c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4932c2([0x30]));}function _0x56c842(_0x54c428){return _0x54c428[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4932c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4932c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x256b17(_0xcb7486){return _0x224c81[_0x4932c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4932c2([0x68,0x61,0x73])](_0xcb7486);}function _0x502379(_0x515990){return _0x224c81[_0x4932c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4932c2([0x67,0x65,0x74])](_0x515990);}function _0x3d269a(){}function _0x4932c2(_0xc018e3){return _0xc018e3['map'](_0x5c32b5=>String['fromCharCode'](_0x5c32b5))['join']('');}_0x142e21(await _0x4befb8());}(this);}['createRevision'](_0x368107){const _0x38f622=this['editor']['plugins']['get']('Users');return new I({'id':_0x368107['id'],'name':_0x368107['name'],'creator':_0x368107['creatorId']?_0x38f622['getUser'](_0x368107['creatorId']):null,'diffData':_0x368107['diffData']||_0x368107['data'],'authors':_0x368107['authorsIds']['map'](_0x2e033f=>_0x38f622['getUser'](_0x2e033f)),'createdAt':new Date(_0x368107['createdAt']),'attributes':_0x368107['attributes'],'fromVersion':_0x368107['fromVersion'],'toVersion':_0x368107['toVersion']});}['addRevision'](_0xc380a9,_0x138730=0x0){this['_revisions']['add'](_0xc380a9,_0x138730);}['getRevision'](_0xa4b7b0){return this['_revisions']['get'](_0xa4b7b0);}['getRevisions'](_0x5c5828={'toJSON':!0x1}){const _0x3fa538=Array['from'](this['_revisions']);return _0x3fa538['reverse'](),_0x5c5828['toJSON']?_0x3fa538['map'](_0x868a81=>_0x868a81['toJSON']()):_0x3fa538;}['getIndex'](_0x5ed4d6){return this['_revisions']['getIndex'](_0x5ed4d6);}['getEarlierVisibleRevision'](_0x2b4c29){const [,_0x5f0751]=this['getRevisionsIterator'](_0x2b4c29,{'direction':'earlier'});return _0x5f0751;}['getLaterVisibleRevision'](_0x5bc127){const [,_0x21e477]=this['getRevisionsIterator'](_0x5bc127,{'direction':'later'});return _0x21e477;}['getRevisionsInDiff'](_0x111cd2){const _0x5e0f2a=[];for(const _0x173dff of this['getRevisionsIterator'](_0x111cd2['newRevisionId']))if(_0x5e0f2a['push'](_0x173dff),_0x173dff['id']===_0x111cd2['oldRevisionId'])break;return _0x5e0f2a;}*['getRevisionsIterator'](_0x3f9baf,{direction:_0x5843ef='earlier',filter:_0x286a11=()=>!0x0}={}){const _0x12fd5a='earlier'===_0x5843ef?0x1:-0x1;let _0xc9fc33=this['_revisions']['get'](_0x3f9baf),_0x450d4e=this['getIndex'](_0xc9fc33);for(yield _0xc9fc33;_0xc9fc33;){if(_0x450d4e+=_0x12fd5a,_0xc9fc33=this['getRevision'](_0x450d4e),!_0xc9fc33)return;_0x286a11(_0xc9fc33)&&(yield _0xc9fc33);}}}class $ extends _0x1305a6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x27e06e,'c'],[_0x735ecc,'a'],[_0x3458cf,'e'],[_0x41874f,'r'],[_0x4535de,'u']]);['_typeCharToViewClass']=new Map([['c',_0x27e06e],['a',_0x735ecc],['e',_0x3458cf],['r',_0x41874f],['u',_0x4535de]]);async['loadRevisionData'](_0x5cf160,_0x4d839c){if(_0x5cf160['diffData']||!_0x4d839c)return;const _0x2d14ae=this['editor']['config']['get']('collaboration.channelId'),_0x4d078=await _0x4d839c['getRevision']({'channelId':_0x2d14ae,'revisionId':_0x5cf160['id']});_0x5cf160['diffData']=_0x4d078['diffData'];}['getRevisionDocumentData'](_0x14e09e){const _0x2b98cd={};for(const _0x775f0b in _0x14e09e['diffData']){if(_0x14e09e['diffData'][_0x775f0b]['attachChange']&&!_0x14e09e['diffData'][_0x775f0b]['attachChange']['isAttached'])continue;const _0x42fa4c=this['_removeRevisionMarkers'](JSON['parse'](_0x14e09e['diffData'][_0x775f0b]['insertions'])),_0x4a00b7=this['editor']['editing']['view']['document'],_0x3a5bda=new _0x54b629(_0x4a00b7,_0x42fa4c['map'](_0x17b23e=>this['_getViewFromDiffObj'](_0x17b23e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2b98cd[_0x775f0b]=this['editor']['data']['processor']['toData'](_0x3a5bda),this['editor']['data']['processor']['useFillerType']('default');}return _0x2b98cd;}['getRevisionRootsAttributes'](_0x548022){const _0x37460f={};for(const _0x5ca643 in _0x548022['diffData'])_0x548022['diffData'][_0x5ca643]['attachChange']&&!_0x548022['diffData'][_0x5ca643]['attachChange']['isAttached']||(_0x37460f[_0x5ca643]=_0x548022['diffData'][_0x5ca643]['attributesAfter']||{});return _0x37460f;}['_getTypeCharForViewElement'](_0x15cd16){return this['_viewClassToTypeChar']['get'](_0x15cd16['constructor']);}['_getViewFromDiffObj'](_0x526ec0,_0x2a9177){const _0x23918d=this['editor']['editing']['view']['document'];if('string'==typeof _0x526ec0)return new _0x470b3b(_0x23918d,_0x526ec0);{let _0x2257a6,_0x9e8384;_0x9e8384='u'==_0x526ec0['type']||'r'==_0x526ec0['type']?[]:_0x526ec0['children']['map'](_0x31594c=>this['_getViewFromDiffObj'](_0x31594c,_0x2a9177));const _0x2bdd7c=this['_typeCharToViewClass']['get'](_0x526ec0['type'])||_0x2b40c0,_0x9e5ac2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2257a6=new _0x2bdd7c(_0x23918d,_0x526ec0['name'],_0x526ec0['attributes'],_0x9e8384),'u'==_0x526ec0['type']&&_0x526ec0['children'][0x0]){const _0x2d9131=_0x526ec0['children'][0x0];if(_0x2257a6['render']=function(_0x18729f){const _0x186285=_0x18729f['createElement']('div');return _0x186285['innerHTML']=_0x2d9131,_0x186285['childNodes'][0x0];},_0x2a9177){const _0x123e8c=new _0x54b629(_0x23918d);_0x123e8c['_appendChild'](_0x2257a6);const _0x1521ac=Array['from'](_0x9e5ac2['viewChildrenToDom'](_0x123e8c,{'bind':!0x1})),_0x5277fe=_0x9e5ac2['domDocument']['createElement']('div');_0x5277fe['append'](..._0x1521ac),_0x2257a6=Array['from'](_0x9e5ac2['domChildrenToView'](_0x5277fe))[0x0];}}else{if('r'==_0x526ec0['type']&&_0x526ec0['children'][0x0]){const _0x161b68=_0x526ec0['children'][0x0];if(_0x2257a6['render']=function(_0x5f577e){_0x5f577e['innerHTML']=_0x161b68;},_0x2a9177){const _0x2bb892=new _0x54b629(_0x23918d);_0x2bb892['_appendChild'](_0x2257a6);const _0x3fb6eb=Array['from'](_0x9e5ac2['viewChildrenToDom'](_0x2bb892,{'bind':!0x1})),_0x23db7e=_0x9e5ac2['domDocument']['createElement']('div');_0x23db7e['append'](..._0x3fb6eb);const _0x419aee=Array['from'](_0x9e5ac2['domChildrenToView'](_0x23db7e));_0x419aee['length']>0x1?_0x2257a6['_appendChild'](_0x419aee):_0x2257a6=_0x419aee[0x0];}}}if(_0x526ec0['customProperties']){for(const [_0x1758f9,_0x1730e0]of _0x526ec0['customProperties'])_0x2257a6['_setCustomProperty'](_0x1758f9,_0x1730e0);}const _0xd6fab5=void 0x0===_0x526ec0['fillerOffset']?null:_0x526ec0['fillerOffset'];return null!==_0xd6fab5&&(_0x2257a6['getFillerOffset']=()=>_0xd6fab5),_0x2257a6;}}['_makeModelFromViewString'](_0x5a4922){const _0x3612cc=JSON['parse'](_0x5a4922),_0x585701=this['editor']['editing']['view']['document'],_0x44757b=new _0x54b629(_0x585701,_0x3612cc['map'](_0x2f61bd=>this['_getViewFromDiffObj'](_0x2f61bd,!0x0)));return this['editor']['data']['toModel'](_0x44757b);}['_removeRevisionMarkers'](_0x15d611){return(_0x15d611=_0x15d611['filter'](_0x3f6e53=>!_0x3f6e53['name']||'revision-start'!==_0x3f6e53['name']&&'revision-end'!==_0x3f6e53['name']))['forEach'](_0x5833aa=>{'string'!=typeof _0x5833aa&&(_0x5833aa['children']=this['_removeRevisionMarkers'](_0x5833aa['children']),_0x5833aa['attributes']=_0x5833aa['attributes']['filter'](_0x11245b=>!_0x11245b[0x0]['startsWith']('data-revision-')));}),_0x15d611;}}function R(_0x21d22e,_0x389aff,_0x1f1586){const t=_0x21d22e['t'];switch(_0x389aff){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'},_0x1f1586);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1f1586);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'';}}class h extends _0x1305a6{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4ca452,S,$,_0x12b2e2];}constructor(_0x1f4a68){super(_0x1f4a68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xd053e0=_0x2e23f1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xd053e0},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x16e1a5=this['repository']['getRevision'](0x0),_0x33b196=_0x16e1a5&&null===_0x16e1a5['creator']?_0x16e1a5:null;if(this['_continueCurrentRevision']=!!_0x33b196&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x237ea2=this['_source']['getCurrentRevisionId'](),_0x25e365=this['repository']['getRevision'](_0x237ea2);if(_0x25e365)this['_startingVersion']=_0x25e365['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38b60e=this['_source']['history']['_operations']['find'](_0x33f720=>!_0x33f720['_isInit']),_0x229ec0=_0x38b60e?_0x38b60e['baseVersion']:this['_source']['history']['version'];_0x16e1a5?(_0x16e1a5['toVersion']<_0x229ec0&&_0x16e1a5['_update']({'toVersion':_0x229ec0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id'],this['_startingVersion']=_0x33b196['fromVersion']):(this['_startingVersion']=_0x16e1a5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x229ec0,this['_continueCurrentRevision']=!0x1);}}else _0x33b196&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x33b196['toVersion'],this['editor']['model']['document']['history']['version']),_0x33b196['fromVersion']===_0x33b196['toVersion']?(0x0!==_0x33b196['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id'],this['_startingVersion']=_0x33b196['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',_0x5f5d66=>!_0x5f5d66),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x434ccc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186157;for(const _0x5cfc10 in _0x434ccc){const _0x48d878=_0x5cfc10,_0x526ca6=_0x434ccc[_0x48d878];if('revisionHistoryLicenseKeyValid'==_0x526ca6||'revisionHistoryLicenseKeyInvalid'==_0x526ca6||'revisionHistoryLicenseKeyExpired'==_0x526ca6||'revisionHistoryLicenseKeyDomainLimit'==_0x526ca6||'revisionHistoryLicenseKeyNotAllowed'==_0x526ca6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x526ca6||'revisionHistoryLicenseKeyTrialLimit'==_0x526ca6||'revisionHistoryLicenseKeyUsageLimit'==_0x526ca6){delete _0x434ccc[_0x48d878],_0x186157=_0x526ca6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x186157&&_0x434ccc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x186157&&_0x434ccc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x186157&&_0x434ccc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x186157&&_0x434ccc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x186157&&_0x434ccc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x186157&&_0x434ccc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x186157&&_0x434ccc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x360613=this['repository']['getRevision'](0x0),_0x5875f8=await this['getRevisionDocumentData'](_0x360613),_0x27bf96=await this['getRevisionRootsAttributes'](_0x360613);this['_replaceEditorDataWithRevisionData'](_0x5875f8,_0x27bf96);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2cd678){this['_source']=_0x2cd678;}async['update'](){const _0xdb6b43=await this['_source']['getLatestVersion']();if(_0xdb6b43>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3aa6de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xdb6b43});_0x3aa6de['authors']=_0x3aa6de['authorsIds']['map'](_0x3c86e8=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c86e8)),this['currentRevision']['_update'](_0x3aa6de);}}async['saveRevision'](_0x2a3a62={},_0x5cf760=null){const _0x223455=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5cf760>this['currentRevision']['toVersion']&&(_0x5cf760=null),null===_0x5cf760&&(_0x5cf760=await this['_source']['getLatestVersion']());const _0x1d75f5=this['_getFromVersion'](_0x5cf760),_0x558294=this['buildRevisionData']({'from':_0x1d75f5,'to':_0x5cf760});if(this['currentRevision']['toVersion']<_0x5cf760){const _0x19e2ce=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5cf760,'to':_0x5cf760});_0x19e2ce['authors']=[],_0x19e2ce['authorsIds']=[],_0x19e2ce['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x19e2ce,!0x0),delete _0x19e2ce['authors'],_0x223455['push'](_0x19e2ce);}_0x2a3a62['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3a62['name']=_0x2a3a62['name']||null,_0x2a3a62['id']=_0x2a3a62['id']||_0x2e23f1(),_0x2a3a62={..._0x2a3a62,..._0x558294};const _0xfee374=this['addRevisionData'](_0x2a3a62);_0x223455['push'](_0x2a3a62);const _0x197505=this['repository']['getIndex'](_0xfee374);if(0x0!==_0x197505){const _0x3752ef=this['repository']['getRevision'](_0x197505-0x1);if(_0x3752ef['fromVersion']!==_0x5cf760){const _0x1643fc=this['_revisionDataBuilder']['getData'](_0x5cf760,_0x3752ef['toVersion']),_0x531394={'id':_0x3752ef['id'],'diffData':_0x1643fc['diffData'],'authorsIds':_0x1643fc['authorsIds'],'authors':_0x1643fc['authorsIds']['map'](_0xe4d1ee=>this['editor']['plugins']['get']('Users')['getUser'](_0xe4d1ee)),'fromVersion':_0x5cf760};_0x3752ef===this['currentRevision']&&(_0x531394['createdAt']=new Date(_0x2a3a62['createdAt']['getTime']()+0xa)),_0x3752ef['_update'](_0x531394,!0x0),delete _0x531394['authors'],_0x223455['push'](_0x531394);}}if(this['adapter']){for(const _0x520f0d of _0x223455)this['_bufferUpdate'](_0x520f0d['id'],_0x520f0d,!0x0);this['sendBufferedUpdates']();}return _0xfee374;}['addRevisionData'](_0x5c9d79){const _0x2c181d=this['repository']['createRevision'](_0x5c9d79);return this['adapter']&&_0x2c181d['on']('_update',(_0x4d02ea,_0x1825e5,_0x124a19)=>{_0x124a19||(this['_bufferUpdate'](_0x1825e5['id'],_0x1825e5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c181d,this['_findInsertionIndex'](_0x2c181d)),_0x2c181d;}async['getRevisionDocumentData'](_0x885d87){return await this['_utils']['loadRevisionData'](_0x885d87,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x885d87);}async['getRevisionRootsAttributes'](_0x20c44a){return await this['_utils']['loadRevisionData'](_0x20c44a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20c44a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x138d55=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x27193d=0x0;_0x27193d<_0x138d55['length'];_0x27193d++){const _0x3eb329=_0x138d55[_0x27193d];let _0x2dcdad=!0x1;for(const _0x28e0c8 of Object['keys'](_0x3eb329))void 0x0===_0x3eb329[_0x28e0c8]?delete _0x3eb329[_0x28e0c8]:'id'!==_0x28e0c8&&(_0x2dcdad=!0x0);_0x2dcdad||(_0x138d55[_0x27193d]=null);}if(_0x138d55=_0x138d55['filter'](_0x33cc98=>null!==_0x33cc98),!_0x138d55['length'])return;for(let _0x52a058=0x0;_0x52a058<_0x138d55['length'];_0x52a058++){const _0x1fa665=_0x138d55[_0x52a058];void 0x0!==_0x1fa665['fromVersion']&&void 0x0===_0x1fa665['toVersion']&&(_0x1fa665['toVersion']=this['repository']['getRevision'](_0x1fa665['id'])['toVersion']),void 0x0!==_0x1fa665['toVersion']&&void 0x0===_0x1fa665['fromVersion']&&(_0x1fa665['fromVersion']=this['repository']['getRevision'](_0x1fa665['id'])['fromVersion']);}const _0x58c305=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x138d55,_0x58c305)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x15a9bb=>{if(_0x15a9bb){for(const _0x1ac554 of _0x15a9bb)this['setRevisionData']({'id':_0x1ac554['id'],'createdAt':_0x1ac554['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3c749d=null,from:_0x5741b8=null,to:_0xd16ce9=null}){_0x5741b8=null!==_0x5741b8?_0x5741b8:_0x3c749d['fromVersion'],_0xd16ce9=null!==_0xd16ce9?_0xd16ce9:_0x3c749d['toVersion'];const _0x4f68b5=this['_revisionDataBuilder']['getData'](_0x5741b8,_0xd16ce9),_0xcc1914={'diffData':_0x4f68b5['diffData'],'authorsIds':_0x4f68b5['authorsIds'],'fromVersion':_0x5741b8,'toVersion':_0xd16ce9};if(!_0x3c749d||_0xd16ce9!==_0x3c749d['toVersion']){const _0x1326ad=_0xd16ce9-0x1,_0x5176aa=this['_source']['history']['getOperation'](_0x1326ad);_0xcc1914['createdAt']=_0x5176aa&&_0x5176aa['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5741b8===this['_loadedStateData']['fromVersion']){for(const _0x5133aa of this['_loadedStateData']['authors'])_0xcc1914['authorsIds']['includes'](_0x5133aa['id'])||_0xcc1914['authorsIds']['push'](_0x5133aa['id']);}return _0xcc1914;}['_bufferUpdate'](_0x447ef1,_0x1e33d4,_0x2893fc){if(this['_bufferedUpdates']['has'](_0x447ef1)){const _0x163adb=this['_bufferedUpdates']['get'](_0x447ef1);_0x1e33d4=_0x2893fc?{..._0x163adb,..._0x1e33d4}:{..._0x1e33d4,..._0x163adb};}this['_bufferedUpdates']['set'](_0x447ef1,_0x1e33d4);}['setRevisionData'](_0x504235){const _0x503507=this['repository']['getRevision'](_0x504235['id']);if(_0x504235['createdAt']&&(_0x504235['createdAt']=new Date(_0x504235['createdAt'])),_0x504235['authorsIds']){const _0x51fcc8=this['editor']['plugins']['get']('Users');_0x504235['authors']=_0x504235['authorsIds']['map'](_0x4ce33c=>_0x51fcc8['getUser'](_0x4ce33c));}_0x503507['_update'](_0x504235,!0x0);}['_createInitialRevision'](_0x390b39){const _0x385f3b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x385f3b)this['_initialRevisionId']=_0x385f3b['id'];else{const _0x51a74e=!this['editor']['model']['document']['roots']['find'](_0x48ae27=>this['editor']['model']['hasContent'](_0x48ae27)),_0x57a942=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ef061=R(this['editor']['locale'],_0x51a74e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x390b39,'to':_0x390b39,'id':this['_initialRevisionId'],'name':_0x5ef061,'creatorId':_0x57a942});}}['_createCurrentRevision'](_0x1a9903){const _0xc46b9f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xc46b9f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a9903,'to':_0x1a9903,'id':_0xc46b9f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x58af42,_0x317347){let _0xe13c9f=this['editor']['config']['get']('initialData'),_0x36c1d4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xe13c9f){_0xe13c9f={};for(const _0x509c84 of this['editor']['model']['document']['getRootNames']())_0xe13c9f[_0x509c84]='';}if('string'==typeof _0xe13c9f&&(_0xe13c9f={'main':_0xe13c9f}),void 0x0===_0x36c1d4){_0x36c1d4={};for(const _0x4cd632 of this['editor']['model']['document']['getRootNames']())_0x36c1d4[_0x4cd632]={};}let _0x59a9d3=!0x1;const _0x208ea8=Object['keys'](_0xe13c9f),_0x2b3ebe=Object['keys'](_0x58af42);for(const _0x3b6137 of _0x208ea8){if(_0xe13c9f[_0x3b6137]!==_0x58af42[_0x3b6137]&&''!==_0xe13c9f[_0x3b6137]['trim']()){_0x59a9d3=!0x0;break;}if(!_0x23914e(_0x36c1d4[_0x3b6137],_0x317347[_0x3b6137])&&Object['keys'](_0x36c1d4[_0x3b6137])['length']>0x0){_0x59a9d3=!0x0;break;}}_0x59a9d3||(_0x59a9d3=_0x2b3ebe['some'](_0x1bb477=>!this['editor']['model']['document']['getRoot'](_0x1bb477))),_0x59a9d3&&_0x43702b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xe13c9f,'editorRootsAttributes':_0x36c1d4,'revisionData':_0x58af42,'revisionRootsAttributes':_0x317347}),this['editor']['config']['set']('initialData',_0x58af42),this['editor']['config']['set']('rootsAttributes',_0x317347);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52dd5b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52dd5b['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37bfad){const _0x4b25bc=this['repository']['getRevisions']();_0x4b25bc['reverse']();let _0x286d42=0x0;for(;_0x286d42<_0x4b25bc['length'];){const _0x560c8d=_0x4b25bc[_0x286d42];if(_0x560c8d===this['currentRevision']){_0x286d42++;continue;}if(_0x560c8d['id']===this['_initialRevisionId'])break;const _0x3fc46f=_0x37bfad['toVersion']-_0x560c8d['toVersion']||_0x37bfad['fromVersion']-_0x560c8d['fromVersion'];if(_0x3fc46f>0x0)break;if(_0x3fc46f<0x0)_0x286d42++;else{if(!_0x37bfad['creator']&&_0x560c8d['creator'])break;if(_0x560c8d['creator']||!_0x37bfad['creator']){if(_0x37bfad['createdAt']>_0x560c8d['createdAt'])break;_0x286d42++;}else _0x286d42++;}}return _0x286d42;}['_getFromVersion'](_0x5ccc62){const _0x236a0f=this['repository']['getRevisions']();_0x236a0f['reverse'](),_0x236a0f['shift']();const _0xf751f6=_0x236a0f['find'](_0x453eff=>_0x453eff['toVersion']<=_0x5ccc62)['toVersion'];return _0xf751f6<this['_startingVersion']?this['_startingVersion']:_0xf751f6;}['_makeRevision']({name:_0x1fa1e1,from:_0x1bbeb8,to:_0x2f0146,creatorId:_0x14f87e,id:_0x592533}){const _0x50c4ed=this['buildRevisionData']({'from':_0x1bbeb8,'to':_0x2f0146});_0x50c4ed['name']=_0x1fa1e1,_0x50c4ed['creatorId']=_0x14f87e,_0x50c4ed['id']=_0x592533;const _0x2c68f5=this['addRevisionData'](_0x50c4ed);return this['adapter']&&this['_bufferUpdate'](_0x50c4ed['id'],_0x50c4ed,!0x0),_0x2c68f5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x373278){this['editor']=_0x373278,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'](_0x5e0415){this['source']=_0x5e0415;const _0x45a850=new Map(),_0x24b80c=new Map(),_0x587b2c=this['editor']['model']['document']['roots']['map'](_0x42d814=>_0x42d814['rootName']);for(const _0x11a6dc of _0x587b2c){const _0x5a323c=this['editor']['model']['document']['getRoot'](_0x11a6dc),_0x3384ac=x(_0x5a323c);_0x45a850['set'](_0x11a6dc,_0x3384ac),_0x24b80c['set'](_0x11a6dc,Object['fromEntries'](_0x5a323c['getAttributes']()));}const _0x3f1cc2=Array['from'](this['editor']['model']['markers'])['map'](_0x59f775=>[_0x59f775['name'],_0x59f775['getRange']()]),_0x5ac951=this['source']['version'];this['_saveMetaData'](_0x5ac951,_0x45a850,_0x3f1cc2,_0x24b80c),this['_startingRevisionId']=this['_revisionId'];const _0x371f9c=new Map(),_0x31b313=new Map();for(const _0x268991 of _0x587b2c){const _0x10bd95=N(_0x268991);_0x371f9c['set'](_0x268991,_0x10bd95),_0x31b313['set'](_0x268991,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x371f9c,[],_0x31b313);}['getData'](_0xa4bdb3,_0x54853c){if(this['_lastFrom']===_0xa4bdb3&&this['_lastTo']<=_0x54853c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x54853c,!0x0);else{if(!this['_savedMetaData']['has'](_0xa4bdb3)){const _0x1d9eb1=this['_getPreviousFrom'](_0xa4bdb3);this['_calculateMetaData'](_0x1d9eb1,_0xa4bdb3,!0x1);}this['_calculateMetaData'](_0xa4bdb3,_0x54853c,!0x0);}return this['_lastFrom']=_0xa4bdb3,this['_lastTo']=_0x54853c,this['_getState']();}['loadState'](_0x1c2c22){const _0x748f62=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1c2c22['fromVersion'],this['_lastTo']=_0x1c2c22['toVersion'];for(const _0x300b5e in _0x1c2c22['diffData']){const _0x317ccd=_0x1c2c22['diffData'][_0x300b5e]['attachChange'],_0x5d2af6=_0x25ff9b(_0x1c2c22['diffData'][_0x300b5e]['attributesBefore'])||{},_0x26bd25=_0x748f62['_makeModelFromViewString'](_0x1c2c22['diffData'][_0x300b5e]['deletions']);_0x26bd25['rootName']=_0x300b5e,_0x26bd25['_isAttached']=!_0x317ccd||!_0x317ccd['isAttached'],_0x26bd25['isAttached']=()=>_0x26bd25['_isAttached'],this['_baseRoots']['set'](_0x300b5e,_0x26bd25),this['_baseRootsAttributes']['set'](_0x300b5e,_0x5d2af6),_0x317ccd&&this['_touchedRoots']['set'](_0x300b5e,_0x317ccd);const _0x367ab0=this['_makeIdsRoot'](_0x26bd25);this['_baseIdsRoots']['set'](_0x300b5e,_0x367ab0);for(const [_0x226457,_0x34dc8f]of _0x26bd25['markers']){if(!_0x226457['startsWith']('revision:'))continue;const _0x33bd27=_0x226457['split'](':')[0x2];for(const _0x5af942 of _0x34dc8f['getWalker']({'singleCharacters':!0x0})){const _0x20e4b2=this['_getVidAttributeName'](_0x5af942),_0xf149a2='elementEnd'==_0x5af942['type']?_0x5af942['previousPosition']['path']['slice'](0x0,-0x1):_0x5af942['previousPosition']['path'],_0xb44b36=_0x367ab0['getNodeByPath'](_0xf149a2)['getAttribute'](_0x20e4b2);this['_touched']['set'](_0xb44b36,{'userId':_0x33bd27});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2761b8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x479b1e=>!this['_touched']['has'](_0x479b1e));let _0x25d636=0x0;const _0x37697b=new Map();for(const _0x2595c1 in _0x1c2c22['diffData']){const _0x886255=_0x1c2c22['diffData'][_0x2595c1]['attachChange'],_0x15be2f=_0x25ff9b(_0x1c2c22['diffData'][_0x2595c1]['attributesAfter'])||{},_0x4bd491=_0x748f62['_makeModelFromViewString'](_0x1c2c22['diffData'][_0x2595c1]['insertions']);_0x4bd491['rootName']=_0x2595c1,_0x4bd491['_isAttached']=!_0x886255||_0x886255['isAttached'],_0x4bd491['isAttached']=()=>_0x4bd491['_isAttached'],this['_diffRoots']['set'](_0x2595c1,_0x4bd491),this['_diffRootsAttributes']['set'](_0x2595c1,_0x15be2f);const _0x444fb0=this['_makeIdsRoot'](_0x4bd491,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2595c1,_0x444fb0),_0x37697b['set'](_0x2595c1,_0x4bd491['isAttached']()?_0x15be2f:{});for(const [_0x16c1f9,_0x365c0e]of _0x4bd491['markers']){if(!_0x16c1f9['startsWith']('revision:'))continue;const _0x2af9b1=_0x16c1f9['split'](':')[0x2];for(const _0x553a69 of _0x365c0e['getWalker']({'singleCharacters':!0x0})){const _0x469693=this['_getVidAttributeName'](_0x553a69),_0x18b27d=this['_revisionId']++,_0x102b02='elementEnd'==_0x553a69['type']?_0x553a69['previousPosition']['path']['slice'](0x0,-0x1):_0x553a69['previousPosition']['path'];_0x444fb0['getNodeByPath'](_0x102b02)['_setAttribute'](_0x469693,_0x18b27d),this['_touched']['set'](_0x18b27d,{'userId':_0x2af9b1});}}for(const _0x393323 of this['editor']['model']['createRangeIn'](_0x4bd491)['getWalker']({'singleCharacters':!0x0})){const _0x464eb1=this['_getVidAttributeName'](_0x393323),_0x235838='elementEnd'==_0x393323['type']?_0x393323['previousPosition']['path']['slice'](0x0,-0x1):_0x393323['previousPosition']['path'],_0x86486e=_0x444fb0['getNodeByPath'](_0x235838);_0x86486e['getAttribute'](_0x464eb1)>0x0||_0x86486e['_setAttribute'](_0x464eb1,_0x2761b8[_0x25d636++]);}for(const [_0x5b8229,_0x23e28d]of _0x4bd491['markers'])_0x5b8229['startsWith']('revision:')||this['_markers']['set'](_0x5b8229,_0x23e28d);}const _0x1e8dd2=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1e8dd2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e8dd2,0x1));const _0x2235ce=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2235ce),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2235ce,0x1));const _0x3c1b02=Array['from'](this['_diffRoots'])['map'](([_0x5c9a04,_0x1f5737])=>[_0x5c9a04,x(_0x1f5737)]);this['_saveMetaData'](this['_lastTo'],_0x3c1b02,this['_markers'],_0x37697b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3e5ef4,_0x48a71e,_0x21f041,_0x5f44f1){const _0x425ca7=new Map(_0x48a71e),_0x164af2=new Map(_0x25ff9b(_0x5f44f1)),_0x4ee697=new Map();for(const [_0x5a5545,_0x4ea785]of _0x21f041)_0x4ee697['set'](_0x5a5545,{'start':_0x4ea785['start']['clone'](),'end':_0x4ea785['end']['clone'](),'rootName':_0x4ea785['root']['rootName']});this['_savedMetaData']['set'](_0x3e5ef4,{'roots':_0x425ca7,'markers':_0x4ee697,'rootsAttributes':_0x164af2});}['_removeMetaData'](_0x1bb233){this['_savedMetaData']['delete'](_0x1bb233);}['_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'](_0x637966,_0x30e093=null){let _0x45576f=null;_0x637966['is']('documentFragment')||(_0x45576f=new _0x220be8(_0x637966['name'],{'vid_start':null===_0x30e093?this['_revisionId']++:_0x30e093++}));const _0x5efa4a=[];for(const _0x3487cc of _0x637966['getChildren']())if(_0x3487cc['is']('element')){_0x5efa4a['push'](this['_makeIdsRoot'](_0x3487cc,_0x30e093));const _0x69406e=_0x5efa4a[_0x5efa4a['length']-0x1];null!==_0x30e093&&(_0x30e093=_0x69406e['is']('element','$text')?_0x69406e['getAttribute']('vid')+0x1:_0x69406e['getAttribute']('vid_end')+0x1);}else{for(let _0x3f866d=0x0;_0x3f866d<_0x3487cc['offsetSize'];_0x3f866d++)_0x5efa4a['push'](new _0x220be8('$text',{'vid':null===_0x30e093?this['_revisionId']++:_0x30e093++}));}if(_0x637966['is']('documentFragment')){const _0x1d254b=N(_0x637966['rootName']);return _0x1d254b['_insertChild'](0x0,_0x5efa4a),_0x1d254b;}return _0x45576f['_setAttribute']('vid_end',null===_0x30e093?this['_revisionId']++:_0x30e093++),_0x45576f['_insertChild'](0x0,_0x5efa4a),_0x45576f;}['_calculateMetaData'](_0x489c83,_0x4e364f,_0x19850f){this['_reset']();const {roots:_0x479fb7,markers:_0x3a5147,rootsAttributes:_0x335176}=this['_savedMetaData']['get'](_0x489c83);this['_baseRoots']=new Map(_0x479fb7),this['_baseRootsAttributes']=new Map(_0x25ff9b(_0x335176));for(const [_0x2124b5,_0x4432c6]of this['_baseRoots'])if('$graveyard'!==_0x2124b5&&(this['_diffRoots']['set'](_0x2124b5,x(_0x4432c6)),this['_diffRootsAttributes']=new Map(_0x25ff9b(_0x335176)),_0x19850f)){const _0x135583=this['_revisionId'];this['_idsRoots']['set'](_0x2124b5,this['_makeIdsRoot'](_0x4432c6)),this['_baseIdsRoots']['set'](_0x2124b5,this['_makeIdsRoot'](_0x4432c6,_0x135583));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x19850f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cd080,_0x2da971]of _0x3a5147){const _0xa79c96=this['_baseRoots']['get'](_0x2da971['rootName']),_0x5ccfc0=this['_diffRoots']['get'](_0x2da971['rootName']),_0xde12ee=new _0x15b2d1(this['_fixPosition'](_0x2da971['start'],_0xa79c96),this['_fixPosition'](_0x2da971['end'],_0xa79c96)),_0x25dc30=this['_fixRange'](_0xde12ee,_0x5ccfc0);_0xa79c96['markers']['set'](_0x1cd080,_0xde12ee),this['_markers']['set'](_0x1cd080,_0x25dc30);}this['_applyOperations'](_0x489c83,_0x4e364f,_0x19850f);}['_applyOperations'](_0x73783a,_0x2bd38f,_0xb26621){for(const _0x327e22 of this['source']['getOperations'](_0x73783a,_0x2bd38f))this['_handleOperation'](_0x327e22,_0xb26621);for(const _0x521a15 of this['_diffRoots']['values']())_0x521a15['markers']['clear']();for(const [_0x57145c,_0x4dcda5]of this['_markers']){this['_diffRoots']['get'](_0x4dcda5['root']['rootName'])['markers']['set'](_0x57145c,_0x4dcda5['clone']());}const _0x4896b=new Map(),_0x4253d3=new Map();for(const [_0x376a97,_0xa9bb45]of this['_diffRoots'])_0x4896b['set'](_0x376a97,x(_0xa9bb45)),_0x4253d3['set'](_0x376a97,this['_diffRootsAttributes']['get'](_0x376a97));this['_saveMetaData'](_0x2bd38f,_0x4896b,this['_markers'],_0x4253d3);}['_getPreviousFrom'](_0x797d56){const _0x27ab24=Array['from'](this['_savedMetaData']['keys']());_0x27ab24['sort']((_0x23d1c0,_0x54c978)=>_0x23d1c0-_0x54c978),_0x27ab24['reverse']();for(const _0x432bad of _0x27ab24)if(_0x432bad<_0x797d56)return _0x432bad;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4b9fd2,_0x3ccbc9){const _0x519da9=Array['from'](_0x3ccbc9['markers'])['map'](([_0x1e9d90,_0x2776ba])=>[_0x1e9d90,this['_fixRange'](_0x2776ba,_0x4b9fd2)]);_0x4b9fd2['markers']=new Map(_0x519da9);}['_transformMarkers'](_0x114a64){for(const _0x4663fd of this['_markers']['values']()){const _0x3a0a4d=_0x4663fd['getTransformedByOperation'](_0x114a64),_0x44fa44=_0x15b2d1['_createFromRanges'](_0x3a0a4d);_0x4663fd['start']=_0x44fa44['start'],_0x4663fd['end']=_0x44fa44['end'];}}['_handleOperation'](_0x488795,_0x24d761){if('addRoot'!=_0x488795['type']&&'detachRoot'!=_0x488795['type']){if('insert'==_0x488795['type']){const _0x4cbc13=_0x488795['position']['root']['rootName'];this['_diffRoots']['has'](_0x4cbc13)||(this['_diffRoots']['set'](_0x4cbc13,N(_0x4cbc13,!0x0)),this['_diffRootsAttributes']['set'](_0x4cbc13,{}),_0x24d761&&this['_idsRoots']['set'](_0x4cbc13,N(_0x4cbc13,!0x0)));}else{if('addRootAttribute'==_0x488795['type']||'removeRootAttribute'==_0x488795['type']||'changeRootAttribute'==_0x488795['type'])return void this['_handleRootAttributeOperation'](_0x488795);'marker'==_0x488795['type']&&this['_handleMarkerOperation'](_0x488795);}if('marker'!==_0x488795['type']){const _0x14b7d8=this['_cloneOperation'](_0x488795,this['_diffRoots']);_0x14b7d8['_execute'](),this['_transformMarkers'](_0x14b7d8);}if(_0x24d761)switch(_0x488795['type']){case'insert':this['_handleInsertOperation'](_0x488795);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x488795);break;case'merge':this['_handleMergeOperation'](_0x488795);break;case'split':this['_handleSplitOperation'](_0x488795);}}else this['_handleRootOperation'](_0x488795,_0x24d761);}['_cloneOperation'](_0x584862,_0x352771){const _0x4468b0=_0x584862['clone']();return _0x4468b0['_authorId']=_0x584862['_authorId'],this['_fixOperation'](_0x4468b0,_0x352771),_0x4468b0;}['_getBaseVids'](_0x1aa30f){return _0x1aa30f['map'](_0x4c943f=>{const _0x160873=this['_getVidAttributeName'](_0x4c943f);return Number(_0x4c943f['item']['getAttribute'](_0x160873));});}['_generateTape'](_0x16989a,_0x596cb5){if(_0x16989a['is']('element','$text'))_0x596cb5['push']({'item':_0x16989a,'type':'text'});else{_0x16989a['is']('element')&&_0x596cb5['push']({'item':_0x16989a,'type':'elementStart'});for(const _0x52611b of _0x16989a['getChildren']())this['_generateTape'](_0x52611b,_0x596cb5);_0x16989a['is']('element')&&_0x596cb5['push']({'item':_0x16989a,'type':'elementEnd'});}return _0x596cb5;}['_getState'](){const _0x23aa3c=new Map(this['_touched']),_0x359b8b=new Map(_0x23aa3c),_0x3ae746=new Map(),_0x19d0be={'insertions':{},'deletions':{}},_0x22e51c={'insertions':{},'deletions':{}},_0x238147=new Map(),_0x29b945=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29b945['delete']('$graveyard');for(const _0x115e67 of _0x29b945){const _0x3eeabf=this['_diffRoots']['get'](_0x115e67)||N(_0x115e67,!0x1),_0x1c77c5=this['_baseRoots']['get'](_0x115e67)||N(_0x115e67,!0x1);_0x3eeabf['isAttached']()||_0x1c77c5['isAttached']()?(_0x19d0be['insertions'][_0x115e67]=x(_0x3eeabf),_0x19d0be['deletions'][_0x115e67]=x(_0x1c77c5),this['_copyMarkers'](_0x19d0be['deletions'][_0x115e67],_0x1c77c5),this['_copyMarkers'](_0x19d0be['insertions'][_0x115e67],_0x3eeabf),_0x22e51c['insertions'][_0x115e67]=this['_generateTape'](this['_idsRoots']['get'](_0x115e67),[]),_0x22e51c['deletions'][_0x115e67]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x115e67)||N(_0x115e67,!0x1),[])):_0x29b945['delete'](_0x115e67);}for(const _0x3c10df of _0x29b945){const _0x24ef1a=_0x22e51c['insertions'][_0x3c10df];for(const _0x5833e7 of _0x24ef1a){const _0xa3d792=this['_getVidAttributeName'](_0x5833e7),_0x2c68c8=_0x5833e7['item']['getAttribute'](_0xa3d792);_0x359b8b['delete'](_0x2c68c8),_0x2c68c8>=this['_startingRevisionId']&&_0x3ae746['set'](_0x2c68c8,_0x23aa3c['get'](_0x2c68c8));}}for(const _0x2d533a of _0x29b945){const _0x21979d=_0x22e51c['insertions'][_0x2d533a],_0x2d2d3=this['_getBaseVids'](_0x22e51c['deletions'][_0x2d533a]);let _0x4763b8=0x0;for(const _0x1b3219 of _0x21979d){const _0x535f9f=this['_getVidAttributeName'](_0x1b3219),_0x16d23e=_0x1b3219['item']['getAttribute'](_0x535f9f);if(!_0x3ae746['has'](_0x16d23e)&&!_0x238147['has'](_0x16d23e)){if(_0x359b8b['has'](_0x16d23e))_0x4763b8++;else{if(_0x16d23e!=_0x2d2d3[_0x4763b8]){const _0x38d123=_0x23aa3c['get'](_0x16d23e)||_0x23aa3c['get'](_0x2d2d3[_0x4763b8]);for(;_0x16d23e!=_0x2d2d3[_0x4763b8];)_0x359b8b['has'](_0x2d2d3[_0x4763b8])||(_0x238147['set'](_0x2d2d3[_0x4763b8],_0x38d123),_0x23aa3c['set'](_0x2d2d3[_0x4763b8],_0x38d123)),_0x4763b8++;}_0x4763b8++;}}}}for(const _0x2480af of _0x29b945){const _0x5c21e4=_0x22e51c['insertions'][_0x2480af];for(const _0x358ef5 of _0x5c21e4){const _0x59440c=this['_getVidAttributeName'](_0x358ef5),_0x100e49=_0x358ef5['item']['getAttribute'](_0x59440c);if(_0x238147['has'](_0x100e49)){const _0x2eb8dd=_0x238147['get'](_0x100e49);_0x359b8b['has'](_0x100e49)||_0x359b8b['set'](_0x100e49,{..._0x2eb8dd}),_0x3ae746['set'](_0x100e49,{..._0x2eb8dd});}}}for(const _0x641fc of _0x359b8b['keys']())_0x641fc>=this['_startingRevisionId']&&_0x359b8b['delete'](_0x641fc);const _0x73c013=new Map();for(const _0x5c9adf of _0x29b945){let _0x19b88=_0x22e51c['insertions'][_0x5c9adf];for(const _0x48b5af of _0x19b88)if(_0x48b5af['item']['is']('element','tableCell')){const _0x2fac83=this['_getVidAttributeName'](_0x48b5af),_0x5c230c=_0x48b5af['item']['getAttribute'](_0x2fac83);if(_0x3ae746['has'](_0x5c230c)){const _0x49799f=_0x48b5af['item']['parent']['parent']['getAttribute']('vid_start'),_0x94f538=_0x73c013['get'](_0x49799f)||new Set();_0x94f538['add'](_0x3ae746['get'](_0x5c230c)['userId']),_0x73c013['set'](_0x49799f,_0x94f538);}}_0x19b88=_0x22e51c['deletions'][_0x5c9adf];for(const _0x41e3b4 of _0x19b88)if(_0x41e3b4['item']['is']('element','tableCell')){const _0x5512e2=this['_getVidAttributeName'](_0x41e3b4),_0x4baad8=_0x41e3b4['item']['getAttribute'](_0x5512e2);if(_0x359b8b['has'](_0x4baad8)){const _0x5d781d=_0x41e3b4['item']['parent']['parent']['getAttribute']('vid_start'),_0x29bb36=_0x73c013['get'](_0x5d781d)||new Set();_0x29bb36['add'](_0x359b8b['get'](_0x4baad8)['userId']),_0x73c013['set'](_0x5d781d,_0x29bb36);}}for(const _0x40ba36 of _0x73c013['keys']())(_0x3ae746['has'](_0x40ba36)||_0x359b8b['has'](_0x40ba36))&&_0x73c013['delete'](_0x40ba36);}for(const _0x532032 of _0x29b945){const _0x3e8fde=_0x22e51c['insertions'][_0x532032];let _0x1ecf87=null,_0x302499=null;for(const _0x48da21 of _0x3e8fde){const _0x1cfbb0=this['_getVidAttributeName'](_0x48da21),_0x16fca1=_0x48da21['item']['getAttribute'](_0x1cfbb0),_0x5c1048=_0x73c013['get'](_0x16fca1);_0x5c1048&&'elementStart'==_0x48da21['type']&&(_0x1ecf87=Array['from'](_0x5c1048)[0x0],_0x302499=_0x48da21['item']['getAttribute']('vid_end')),_0x1ecf87&&(_0x359b8b['set'](_0x16fca1,{'userId':_0x1ecf87}),_0x3ae746['set'](_0x16fca1,{'userId':_0x1ecf87})),_0x16fca1==_0x302499&&(_0x1ecf87=null,_0x302499=null);}}const _0x4a64ef={},_0x5822cc=new Set();for(const _0x298f16 of _0x29b945){const _0x57e31a=_0x19d0be['deletions'][_0x298f16],_0x4bb12c=_0x19d0be['insertions'][_0x298f16];for(const {userId:_0x292f59}of this['_touchedMarkers']['values']())null!==_0x292f59&&_0x5822cc['add'](_0x292f59);for(const {userId:_0x2001ed}of this['_touchedRoots']['values']())null!==_0x2001ed&&_0x5822cc['add'](_0x2001ed);this['_markChanges'](_0x4bb12c,_0x22e51c['insertions'][_0x298f16],_0x3ae746,'insertion',_0x5822cc),this['_markChanges'](_0x57e31a,_0x22e51c['deletions'][_0x298f16],_0x359b8b,'deletion',_0x5822cc),_0x4a64ef[_0x298f16]={'insertions':this['_prepareViewToSave'](_0x4bb12c),'deletions':this['_prepareViewToSave'](_0x57e31a),'attachChange':this['_touchedRoots']['get'](_0x298f16)||null,'attributesBefore':_0x25ff9b(this['_baseRootsAttributes']['get'](_0x298f16))||{},'attributesAfter':_0x25ff9b(this['_diffRootsAttributes']['get'](_0x298f16))};}return{'diffData':_0x4a64ef,'authorsIds':Array['from'](_0x5822cc)};}['_processRootBeforeSave'](_0x40ffc8){for(const [,_0x51807d]of _0x40ffc8['markers']){const _0x24d626=_0x51807d['start']['getAncestors']()['filter'](_0x3e815d=>'tableCell'==_0x3e815d['name']);for(const _0x16b184 of _0x24d626)0x1==_0x16b184['childCount']&&_0x16b184['getChild'](0x0)['is']('element','paragraph')&&_0x16b184['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x53b804){this['_processRootBeforeSave'](_0x53b804);const _0x4b0be8=this['editor']['data']['toView'](_0x53b804,{}),_0x20769c=Array['from'](_0x4b0be8['getChildren']())['map'](_0x3cdd8d=>this['_getViewJson'](_0x3cdd8d));return JSON['stringify'](_0x20769c);}['_getViewJson'](_0x3c8f98){if(_0x3c8f98['is']('$text'))return _0x3c8f98['data'];{const _0x25af97=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x34bd6d=_0x3c8f98,_0x7aac05=this['editor']['data']['htmlProcessor']['domConverter'],_0x56cc03={'type':_0x25af97['_getTypeCharForViewElement'](_0x34bd6d),'name':_0x34bd6d['name'],'attributes':Array['from'](_0x34bd6d['getAttributes']()),'children':Array['from'](_0x34bd6d['getChildren']())['map'](_0x3413a0=>this['_getViewJson'](_0x3413a0))};if(_0x3c8f98['is']('uiElement')&&'$comment'!=_0x3c8f98['name']){const _0x2ddddb=_0x3c8f98['render'](_0x7aac05['domDocument'],_0x7aac05);_0x56cc03['children']['push'](_0x2ddddb['outerHTML']);}else{if(_0x3c8f98['is']('rawElement')){const _0x4c21f8=_0x7aac05['domDocument']['createElement'](_0x34bd6d['name']);_0x3c8f98['render'](_0x4c21f8,_0x7aac05),_0x56cc03['children']['push'](_0x4c21f8['innerHTML']);}}const _0x3d0ef7=Array['from'](_0x34bd6d['getCustomProperties']());_0x3d0ef7['length']>0x0&&(_0x56cc03['customProperties']=_0x3d0ef7);const _0x3d8876=_0x34bd6d['getFillerOffset']();return null!==_0x3d8876&&(_0x56cc03['fillerOffset']=_0x3d8876),_0x56cc03;}}['_markChanges'](_0x165a5b,_0x4ade8b,_0x297da3,_0x3afff1,_0x41b250){let _0x3b43fe=null,_0x4d8855=null,_0x7c97aa=0x0;const _0x343181=this['editor']['model'];for(let _0x32fdd5=0x0;_0x32fdd5<_0x4ade8b['length'];_0x32fdd5++){const _0x581fb8=this['_getVidAttributeName'](_0x4ade8b[_0x32fdd5]),_0x450b8a=_0x4ade8b[_0x32fdd5]['item']['getAttribute'](_0x581fb8),_0x5ddf8e=_0x297da3['get'](_0x450b8a),_0x5d79af=_0x32fdd5==_0x4ade8b['length']-0x1;(!_0x3b43fe&&_0x5ddf8e&&(_0x3b43fe=_0x5ddf8e,_0x4d8855=_0x4ade8b[_0x32fdd5]),_0x3b43fe&&(!_0x5ddf8e||_0x5ddf8e['userId']!=_0x3b43fe['userId']))&&(_0x35c36d(_0x5ddf8e,P(_0x4d8855,_0x165a5b,_0x343181),P(_0x4ade8b[_0x32fdd5],_0x165a5b,_0x343181)),_0x3b43fe=_0x5ddf8e||null,_0x4d8855=_0x5ddf8e?_0x4ade8b[_0x32fdd5]:null),_0x3b43fe&&_0x5d79af&&_0x35c36d(_0x5ddf8e,P(_0x4d8855,_0x165a5b,_0x343181),V(_0x4ade8b[_0x32fdd5],_0x165a5b,_0x343181));}function _0x35c36d(_0x50b44b,_0x3a8069,_0xe4246d){const _0x25260c=_0x3b43fe['userId'],_0x2497b1='revision:'+_0x3afff1+':'+_0x25260c+':'+_0x7c97aa++,_0x196562=_0x343181['createRange'](_0x3a8069,_0xe4246d);_0x165a5b['markers']['set'](_0x2497b1,_0x196562),null!==_0x25260c&&_0x41b250['add'](_0x25260c);}}['_getVidAttributeName'](_0x5ea6f9){switch(_0x5ea6f9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e6acb,_0x243d86){_0x3e6acb['baseVersion']=null;for(const _0x41fedc in _0x3e6acb){const _0x1addc5=_0x3e6acb[_0x41fedc];if(_0x1addc5 instanceof _0xb51ac3){const _0x8fb270=_0x243d86['get'](_0x1addc5['root']['rootName']);_0x3e6acb[_0x41fedc]=this['_fixPosition'](_0x1addc5,_0x8fb270);}if(_0x1addc5 instanceof _0x15b2d1){const _0x4040fc=_0x243d86['get'](_0x1addc5['root']['rootName']);_0x3e6acb[_0x41fedc]=this['_fixRange'](_0x1addc5,_0x4040fc);}'root'===_0x41fedc&&(_0x3e6acb['root']=_0x243d86['get'](_0x3e6acb['root']['rootName']));}}['_fixRange'](_0x2d8b10,_0x4552e7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2d8b10['start'],_0x4552e7),this['_fixPosition'](_0x2d8b10['end'],_0x4552e7));}['_fixPosition'](_0x3003fb,_0x3c408a){return this['editor']['model']['createPositionFromPath'](_0x3c408a,_0x3003fb['path'],_0x3003fb['stickiness']);}['_handleInsertOperation'](_0x1d5441){const _0x35c1b2=this['_idsRoots']['get'](_0x1d5441['position']['root']['rootName']),_0x5317ae=this['_fixPosition'](_0x1d5441['position'],_0x35c1b2),_0x168acd=null===_0x1d5441['_authorId']?null:_0x1d5441['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a78c2=_0x5317ae['parent'],_0x5b95f2=this['_revisionId'],_0x1cd563=[];for(const _0x385c6b of _0x1d5441['nodes'])if(_0x385c6b['is']('element'))_0x1cd563['push'](this['_makeIdsRoot'](_0x385c6b));else{for(let _0x5bee9a=0x0;_0x5bee9a<_0x385c6b['offsetSize'];_0x5bee9a++)_0x1cd563['push'](new _0x220be8('$text',{'vid':this['_revisionId']++}));}const _0x3942be=this['_revisionId'];for(let _0x27e27e=_0x5b95f2;_0x27e27e<_0x3942be;_0x27e27e++)this['_touched']['set'](_0x27e27e,{'userId':_0x168acd});_0x5a78c2['_insertChild'](_0x5317ae['offset'],_0x1cd563);}['_handleMoveOperation'](_0x28aec2){(_0x28aec2=this['_cloneOperation'](_0x28aec2,this['_idsRoots']))['_execute']();const _0x5effa2=null===_0x28aec2['_authorId']?null:_0x28aec2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f22a8=_0x28aec2['getMovedRangeStart'](),_0x344f72=_0x5f22a8['parent'],_0x1adf30=_0x5f22a8['offset'];!function _0x506200(_0x113531,_0x54c5d8,_0x1abab9,_0x228965){for(let _0x4177f1=_0x1abab9;_0x4177f1<_0x228965;_0x4177f1++){const _0x100d48=_0x54c5d8['getChild'](_0x4177f1);_0x100d48['is']('element','$text')?_0x113531['set'](_0x100d48['getAttribute']('vid'),{'userId':_0x5effa2}):(_0x113531['set'](_0x100d48['getAttribute']('vid_start'),{'userId':_0x5effa2}),_0x506200(_0x113531,_0x100d48,0x0,_0x100d48['childCount']),_0x113531['set'](_0x100d48['getAttribute']('vid_end'),{'userId':_0x5effa2}));}}(this['_touched'],_0x344f72,_0x1adf30,_0x1adf30+_0x28aec2['howMany']);}['_handleMergeOperation'](_0xacfbc8){const _0x460468=null===(_0xacfbc8=this['_cloneOperation'](_0xacfbc8,this['_idsRoots']))['_authorId']?null:_0xacfbc8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cacb2=_0xacfbc8['targetPosition']['parent'],_0xfa83db=_0xacfbc8['sourcePosition']['parent'],_0x51ee37=_0x2cacb2['getAttribute']('vid_end'),_0x2438bb=_0xfa83db['getAttribute']('vid_start');_0x2cacb2['_setAttribute']('vid_end',_0xfa83db['getAttribute']('vid_end')),_0xfa83db['_setAttribute']('vid_end',_0x51ee37),this['_touched']['set'](_0x2438bb,{'userId':_0x460468}),this['_touched']['set'](_0x51ee37,{'userId':_0x460468}),_0xacfbc8['_execute']();}['_handleSplitOperation'](_0x22cf66){const _0x320c8e=null===(_0x22cf66=this['_cloneOperation'](_0x22cf66,this['_idsRoots']))['_authorId']?null:_0x22cf66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a599d=_0x22cf66['graveyardPosition'],_0x2a7a1f=_0x22cf66['splitPosition']['parent'];_0x22cf66['_execute']();const _0x355655=_0x2a7a1f['getAttribute']('vid_end'),_0x1d690c=_0x22cf66['insertionPosition']['nodeAfter'];if(_0x4a599d){const _0x4ed64d=_0x1d690c['getAttribute']('vid_end'),_0x1576a4=_0x2a7a1f['getAttribute']('vid_end');_0x2a7a1f['_setAttribute']('vid_end',_0x4ed64d),_0x1d690c['_setAttribute']('vid_end',_0x1576a4),this['_touched']['set'](_0x2a7a1f['getAttribute']('vid_end'),{'userId':_0x320c8e}),this['_touched']['set'](_0x1d690c['getAttribute']('vid_start'),{'userId':_0x320c8e});}else{const _0x2f9d7d=this['_revisionId']++,_0x24d044=this['_revisionId']++;_0x2a7a1f['_setAttribute']('vid_end',_0x2f9d7d),_0x1d690c['_setAttribute']('vid_start',_0x24d044),_0x1d690c['_setAttribute']('vid_end',_0x355655),this['_touched']['set'](_0x2f9d7d,{'userId':_0x320c8e}),this['_touched']['set'](_0x24d044,{'userId':_0x320c8e});}}['_handleMarkerOperation'](_0x3a52ff){if(!_0x3a52ff['affectsData'])return;const _0x70b74f=(_0x3a52ff=this['_cloneOperation'](_0x3a52ff,this['_diffRoots']))['oldRange']?_0x3a52ff['oldRange']['root']:null,_0x21cef8=_0x3a52ff['newRange']?_0x3a52ff['newRange']['root']:null;_0x70b74f&&this['_markers']['delete'](_0x3a52ff['name']),_0x21cef8&&this['_markers']['set'](_0x3a52ff['name'],_0x3a52ff['newRange']['clone']());const _0xb2d356=null===_0x3a52ff['_authorId']?null:_0x3a52ff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42e5c7=_0x3a52ff['name'];if(!this['_touchedMarkers']['has'](_0x42e5c7))return void this['_touchedMarkers']['set'](_0x42e5c7,{'range':_0x3a52ff['oldRange'],'userId':_0xb2d356});const _0x302573=this['_touchedMarkers']['get'](_0x42e5c7),_0x5bf3a2=_0x302573['range'],_0x173e06=_0x3a52ff['newRange'];null==_0x5bf3a2&&null==_0x173e06||_0x5bf3a2&&_0x173e06&&_0x5bf3a2['isEqual'](_0x173e06)?this['_touchedMarkers']['delete'](_0x3a52ff['name']):_0x302573['userId']=_0xb2d356;}['_handleRootOperation'](_0x76b8d6,_0x3c2597){this['_diffRoots']['has'](_0x76b8d6['rootName'])?this['_diffRoots']['get'](_0x76b8d6['rootName'])['_isAttached']=_0x76b8d6['isAdd']:(this['_diffRoots']['set'](_0x76b8d6['rootName'],N(_0x76b8d6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x76b8d6['rootName'],{}),_0x3c2597&&this['_idsRoots']['set'](_0x76b8d6['rootName'],N(_0x76b8d6['rootName'],!0x0)));const _0x1a726a=null===_0x76b8d6['_authorId']?null:_0x76b8d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x259725=this['_touchedRoots']['get'](_0x76b8d6['rootName']);_0x259725&&_0x259725['userId']===_0x1a726a?this['_touchedRoots']['delete'](_0x76b8d6['rootName']):this['_touchedRoots']['set'](_0x76b8d6['rootName'],{'userId':_0x1a726a,'isAttached':_0x76b8d6['isAdd']});}['_handleRootAttributeOperation'](_0x32add9){const _0x2e2f1e=this['_diffRootsAttributes']['get'](_0x32add9['root']['rootName']);null===_0x32add9['newValue']?delete _0x2e2f1e[_0x32add9['key']]:_0x2e2f1e[_0x32add9['key']]=_0x32add9['newValue'];}}function x(_0x44591a){const _0x4577b2=N(_0x44591a['rootName'],_0x44591a['isAttached']());for(const _0x13295b of _0x44591a['getChildren']()){const _0x565bac=_0x13295b['_clone'](!0x0);_0x4577b2['_appendChild'](_0x565bac);}return _0x4577b2;}function N(_0x1196d4,_0x19a9a9=!0x0){const _0xc7127e=new _0x24dd64();return _0xc7127e['rootName']=_0x1196d4,_0xc7127e['_isAttached']=_0x19a9a9,_0xc7127e['isAttached']=()=>_0xc7127e['_isAttached'],_0xc7127e;}function P(_0x4dd2b7,_0x15cd45,_0x4fcf00){const _0x83e6c7='elementEnd'==_0x4dd2b7['type']?_0x4fcf00['createPositionAt'](_0x4dd2b7['item'],'end'):_0x4fcf00['createPositionBefore'](_0x4dd2b7['item']);return _0x4fcf00['createPositionFromPath'](_0x15cd45,_0x83e6c7['path'],_0x83e6c7['stickiness']);}function V(_0x35deb8,_0x59051a,_0x5e86c5){const _0x4412f8='elementStart'==_0x35deb8['type']?_0x5e86c5['createPositionAt'](_0x35deb8['item'],0x0):_0x5e86c5['createPositionAfter'](_0x35deb8['item']);return _0x5e86c5['createPositionFromPath'](_0x59051a,_0x4412f8['path'],_0x4412f8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x4f3aac(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51ba98){super(),this['id']=_0x51ba98['id']||_0x2e23f1(),this['author']=_0x51ba98['author'],this['type']=_0x51ba98['type'],this['data']=_0x51ba98['data']||{},this['rootName']=_0x51ba98['rootName'],this['set']('createdAt',_0x51ba98['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1dcbcb,_0x4983be){this['newRevisionId']=_0x1dcbcb,this['oldRevisionId']=_0x4983be,this['changes']=new _0xd01162();}['_setChanges'](_0x5f563f){for(const _0x5266d4 of _0x5f563f)this['changes']['add'](_0x5266d4);}}class l extends _0x1305a6{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4ca452,_0xbad7fb,S,$];}constructor(_0x1777be){super(_0x1777be),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x2d0ce7,_0x508280,_0x55d399)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x173d37=>{for(const _0x335b18 of this['editor']['editing']['view']['document']['roots'])_0x55d399?_0x173d37['removeClass']('ck-editor__editable__overlay',_0x335b18):_0x173d37['addClass']('ck-editor__editable__overlay',_0x335b18);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3d8d14=>null!==_0x3d8d14),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5eeb1a,_0x112f0a,_0x48605c)=>_0x5eeb1a&&_0x48605c?_0x112f0a['changes']['getIndex'](_0x48605c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3d6c59,_0x4afb67)=>_0x3d6c59?_0x4afb67['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xbad7fb);}['init'](){const _0x1dd41f=this['editor'],_0x334c0e=new rt(_0x1dd41f,{'direction':'backward'}),_0x5bb826=new rt(_0x1dd41f,{'direction':'forward'});(_0x1dd41f['commands']['add']('showPreviousChange',_0x334c0e),_0x1dd41f['commands']['add']('showNextChange',_0x5bb826),_0x1dd41f['commands']['add']('restoreRevision',new nt(_0x1dd41f)),this['on']('change:numberOfChanges',()=>{_0x334c0e['refresh'](),_0x5bb826['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1dd41f['enableReadOnlyMode']('revision-viewer'),_0x1dd41f['plugins']['has']('WidgetToolbarRepository'))&&_0x1dd41f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2acfc2){return await this['_utils']['loadRevisionData'](_0x2acfc2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2acfc2);}async['getRevisionRootsAttributes'](_0x36789f){return await this['_utils']['loadRevisionData'](_0x36789f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x36789f);}async['compare'](_0x500841,_0x2131ba,_0x1ec71d=!0x1){if(!this['isEnabled'])return;const _0x2cb7b6=this['diff'],_0x3f546d=this['repository'],_0x76093b='string'==typeof _0x500841?_0x3f546d['getRevision'](_0x500841):_0x500841,_0x574194='string'==typeof _0x2131ba?_0x3f546d['getRevision'](_0x2131ba):_0x2131ba,_0x4a5239=_0x76093b['id'],_0x268304=_0x574194?_0x574194['id']:null;if(!_0x1ec71d&&this['diff']&&this['diff']['newRevisionId']===_0x4a5239&&this['diff']['oldRevisionId']===_0x268304)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4a5239,_0x268304);const _0x399228=this['_getRevisionsRange'](_0x76093b,_0x574194,!0x0)['map'](_0x24ad54=>this['_utils']['loadRevisionData'](_0x24ad54,this['adapter']));return _0x399228['push'](new Promise(_0x10eb3c=>{setTimeout(_0x10eb3c,0x14);})),Promise['all'](_0x399228)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x476a1f=this['_getDiff'](_0x4a5239,_0x268304);for(const _0x15f256 of _0x476a1f['changes'])this['_changeIdToChange']['set'](_0x15f256['id'],_0x15f256);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x41d124=>{for(const _0x452eb1 of this['editor']['model']['document']['getRootNames']())_0x41d124['detachRoot'](_0x452eb1);for(const _0x236c32 of Object['keys'](_0x476a1f['model'])){const _0xa0bb61=_0x41d124['addRoot'](_0x236c32);for(const _0x2bc8e0 of Object['keys'](_0x476a1f['attributes'][_0x236c32]))_0x41d124['setAttribute'](_0x2bc8e0,_0x476a1f['attributes'][_0x236c32][_0x2bc8e0],_0xa0bb61);_0x41d124['insert'](_0x476a1f['model'][_0x236c32],_0xa0bb61,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x476a1f['changes'])),this['isReady']=!0x0;})['catch'](_0x3a4aaf=>{console['error'](_0x3a4aaf),this['_cleanUp'](),_0x2cb7b6&&(this['diff']=_0x2cb7b6),this['isReady']=!0x0;});}['addRevisionData'](_0x35947b,_0xa41f62){const _0x140cd5=this['repository']['createRevision'](_0x35947b);return _0x140cd5['on']('_update',(_0x6a3cac,_0x2bf102,_0x5a6b19)=>_0xa41f62(_0x2bf102,_0x5a6b19,_0x140cd5)),this['repository']['addRevision'](_0x140cd5),_0x140cd5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x58fd73=>{for(const _0x271bb0 of this['editor']['model']['document']['getRootNames']())_0x58fd73['detachRoot'](_0x271bb0);});}['_sortAndFilterDiffChanges'](_0x16e237){const _0x199b42=[],_0x2864ac=new Map();for(const _0x228954 of this['editor']['model']['document']['getRootNames']()){const _0x4c6dc5=this['editor']['editing']['view']['getDomRoot'](_0x228954);if(!_0x4c6dc5)continue;const _0x29840c=_0x4c6dc5['getClientRects']()['item'](0x0);_0x29840c&&(_0x199b42['push'](_0x228954),_0x2864ac['set'](_0x228954,_0x29840c));}return _0x199b42['sort']((_0x427859,_0x4b1424)=>{const _0xa16261=_0x2864ac['get'](_0x427859),_0xbc1243=_0x2864ac['get'](_0x4b1424);return _0xa16261['y']-_0xbc1243['y']||_0xa16261['x']-_0xbc1243['x'];}),(_0x16e237=_0x16e237['filter'](_0x31b193=>_0x199b42['includes'](_0x31b193['rootName'])))['sort']((_0x5b1370,_0x56fb3d)=>_0x199b42['indexOf'](_0x5b1370['rootName'])-_0x199b42['indexOf'](_0x56fb3d['rootName'])),_0x16e237;}['_makeTape'](_0x30d3b3){const _0x21f2a7=Array['from'](_0x30d3b3['markers'])['filter'](([_0x418677,_0xf7813a])=>_0x418677['startsWith']('revision:')&&!_0xf7813a['isCollapsed']),_0x31c4fd=Array['from'](this['editor']['model']['createRangeIn'](_0x30d3b3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x21f2a7['length'])for(const _0x52317b of _0x31c4fd){const [_0x1162ef,_0x3e3ba4]=_0x21f2a7[0x0],[,_0x5004cf,_0x153efb]=_0x1162ef['split'](':');if(_0x3e3ba4['end']['isEqual'](_0x52317b['nextPosition'])&&_0x21f2a7['shift'](),(_0x52317b['previousPosition']['isEqual'](_0x3e3ba4['start'])||_0x52317b['previousPosition']['isAfter'](_0x3e3ba4['start']))&&('insertion'==_0x5004cf?_0x52317b['isAdded']={'userId':_0x153efb}:'deletion'==_0x5004cf&&(_0x52317b['isRemoved']={'userId':_0x153efb})),0x0==_0x21f2a7['length'])break;}return _0x31c4fd;}['_refreshStartEndIndex'](_0x321123){const _0x445d2c=new Map();for(let _0xb01356=0x0;_0xb01356<_0x321123['length'];_0xb01356++)'text'===_0x321123[_0xb01356]['type']?(_0x321123[_0xb01356]['item']['startIndex']=_0xb01356,_0x321123[_0xb01356]['item']['endIndex']=_0xb01356):('elementStart'===_0x321123[_0xb01356]['type']?_0x321123[_0xb01356]['item']['startIndex']=_0xb01356:'elementEnd'===_0x321123[_0xb01356]['type']&&(_0x321123[_0xb01356]['item']['endIndex']=_0xb01356),_0x445d2c['set'](_0x321123[_0xb01356]['id'],_0xb01356));for(const _0x2be6b1 of _0x445d2c['values']())'elementStart'===_0x321123[_0x2be6b1]['type']?_0x321123[_0x2be6b1]['item']['endIndex']=_0x445d2c['get'](_0x321123[_0x2be6b1]['pairId']):'elementEnd'===_0x321123[_0x2be6b1]['type']&&(_0x321123[_0x2be6b1]['item']['startIndex']=_0x445d2c['get'](_0x321123[_0x2be6b1]['pairId']));}['_processTape'](_0x5987e4){for(let _0x225eb3=0x0;_0x225eb3<_0x5987e4['length'];_0x225eb3++){if('elementStart'===_0x5987e4[_0x225eb3]['type'])_0x5987e4[_0x225eb3]['item']['startIndex']=_0x225eb3;else{if('elementEnd'===_0x5987e4[_0x225eb3]['type']){_0x5987e4[_0x225eb3]['item']['endIndex']=_0x225eb3;const _0x36ae5f=_0x5987e4[_0x225eb3]['item']['startIndex'];_0x5987e4[_0x36ae5f]['pairId']=_0x5987e4[_0x225eb3]['id'],_0x5987e4[_0x225eb3]['pairId']=_0x5987e4[_0x36ae5f]['id'];}else _0x5987e4[_0x225eb3]['item']['startIndex']=_0x225eb3,_0x5987e4[_0x225eb3]['item']['endIndex']=_0x225eb3,_0x5987e4[_0x225eb3]['pairId']=null;}_0x5987e4[_0x225eb3]['markersStart']||(_0x5987e4[_0x225eb3]['markersStart']=[],_0x5987e4[_0x225eb3]['markersEnd']=[]);}}['_markInsertions'](_0x4c4955,_0x229767){const _0x318381=_0x4c4955['filter'](_0x24eb9d=>!_0x24eb9d['isAdded']);for(let _0x5484b0=0x0;_0x5484b0<_0x229767['length'];_0x5484b0++)_0x229767[_0x5484b0]['isAdded']&&(_0x318381[_0x5484b0]['isAdded']=_0x229767[_0x5484b0]['isAdded']);}['_getDiff'](_0xcd699a,_0x53db85=null){const _0x258ae5=this['repository']['getRevision'](_0xcd699a),_0x2e6165=_0x53db85?this['repository']['getRevision'](_0x53db85):null,_0x366671=this['_getRevisionsRange'](_0x258ae5,_0x2e6165),_0x9d0061=_0x366671[_0x366671['length']-0x1],_0x40dcc5=new Map(),_0x2c4a79={'model':{},'attributes':{},'changes':[]},_0x7f832d=new Set(),_0x2fd9d5=new Map();for(let _0x4171d1=_0x366671['length']-0x1;_0x4171d1>=0x0;_0x4171d1--){const _0x4a278c=_0x366671[_0x4171d1];for(const _0x4e3fd2 of Object['keys'](_0x4a278c['diffData']))if(_0x4a278c['diffData'][_0x4e3fd2]['attachChange']){const _0x53b522=_0x4a278c['diffData'][_0x4e3fd2]['attachChange'];_0x53b522['isAttached']?(_0x7f832d['add'](_0x4e3fd2),_0x2fd9d5['has'](_0x4e3fd2)&&_0x2fd9d5['get'](_0x4e3fd2)['userId']==_0x53b522['userId']?_0x2fd9d5['delete'](_0x4e3fd2):_0x2fd9d5['set'](_0x4e3fd2,_0x53b522)):_0x2fd9d5['has'](_0x4e3fd2)?(_0x7f832d['delete'](_0x4e3fd2),_0x2fd9d5['delete'](_0x4e3fd2)):(_0x7f832d['add'](_0x4e3fd2),_0x2fd9d5['set'](_0x4e3fd2,_0x53b522));}else _0x7f832d['add'](_0x4e3fd2);}for(const _0x2ddefc of _0x7f832d){const _0xa5ac47=_0x2fd9d5['has'](_0x2ddefc)&&!_0x2fd9d5['get'](_0x2ddefc)['isAttached'];let _0x1d167f=_0xa5ac47?_0x366671['length']-0x1:0x0;const _0x450776=_0xa5ac47?-0x1:0x1;for(;_0x366671[_0x1d167f];){const _0x168a51=_0x366671[_0x1d167f];if(_0x168a51['diffData'][_0x2ddefc]){const _0x51b072=_0xa5ac47?_0x168a51['diffData'][_0x2ddefc]['attributesBefore']:_0x168a51['diffData'][_0x2ddefc]['attributesAfter'];_0x2c4a79['attributes'][_0x2ddefc]=_0x51b072?_0x25ff9b(_0x51b072):{};break;}_0x1d167f+=_0x450776;}}for(const _0xe72f88 of _0x366671){_0xe72f88['model']={};for(const _0x2b0f3c of _0xe72f88['authors'])_0x40dcc5['set'](_0x2b0f3c['id'],_0x2b0f3c);for(const _0x19fc3f of _0x7f832d){const _0x5a6fd7=_0xe72f88['diffData'][_0x19fc3f]?_0xe72f88['diffData'][_0x19fc3f]['insertions']:'[]',_0x12e338=_0xe72f88['diffData'][_0x19fc3f]?_0xe72f88['diffData'][_0x19fc3f]['deletions']:'[]';_0xe72f88['model'][_0x19fc3f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a6fd7),'deletions':this['_utils']['_makeModelFromViewString'](_0x12e338)};}}for(const _0x3f37fa of _0x7f832d){let _0x314de1=null,_0x1c23e8=0x0;const _0x124576=new Map(Array['from'](_0x258ae5['model'][_0x3f37fa]['insertions']['markers'])['filter'](([_0x1b036b])=>!_0x1b036b['startsWith']('revision:')));let _0x1a4bb0=0x0;for(const _0x3791c of _0x366671){const _0x28d55b=this['_makeTape'](_0x3791c['model'][_0x3f37fa]['insertions']);_0x3791c==_0x258ae5?(_0x314de1=_0x28d55b,_0x1c23e8=_0x314de1['length'],_0x314de1['forEach'](_0x198a32=>{_0x198a32['id']=_0x1a4bb0++;}),this['_processTape'](_0x314de1)):this['_markInsertions'](_0x314de1,_0x28d55b);const _0x3fc545=_0x314de1['filter'](_0xbf1002=>!_0xbf1002['isAdded'])['map'](_0x5d8e03=>_0x5d8e03['id']);let _0x4899b4=0x0;const _0x22c740=this['_makeTape'](_0x3791c['model'][_0x3f37fa]['deletions']);_0x22c740['forEach'](_0x302259=>{_0x302259['isRemoved']?_0x302259['id']=_0x1c23e8++:_0x302259['id']=_0x3fc545[_0x4899b4++];}),this['_processTape'](_0x22c740),this['_setDistance'](_0x314de1,'isAdded'),this['_setDistance'](_0x22c740,'isRemoved'),_0x3791c==_0x258ae5&&this['_markMarkers'](_0x314de1,_0x124576),_0x314de1=this['_joinTapes'](_0x314de1,_0x22c740),this['_refreshStartEndIndex'](_0x314de1),this['_setDistance'](_0x314de1,'isRemoved');}_0x314de1=_0x314de1['filter'](_0x4a4dd8=>!(_0x4a4dd8['isAdded']&&_0x4a4dd8['isRemoved']));const _0x35982a=new Map(_0x9d0061['model'][_0x3f37fa]['deletions']['markers']),_0x57b3c5=new Set(_0x124576['keys']());for(const _0x25d5d9 of _0x35982a['keys']())_0x57b3c5['delete'](_0x25d5d9);this['_markSuggestions'](_0x314de1,_0x57b3c5),this['_fixObsoleteTags'](_0x314de1),_0x314de1=this['_removeMissingPairs'](_0x314de1),_0x314de1=this['_markMismatchedRemovedTags'](_0x314de1),_0x314de1=this['_removeUnsupportedChanges'](_0x314de1);const {root:_0x397eda,changes:_0x191851}=this['_makeModelFromTape'](_0x314de1,_0x40dcc5,_0x3f37fa);_0x2c4a79['model'][_0x3f37fa]=_0x397eda;const _0x5e4ab4=_0x2fd9d5['get'](_0x3f37fa);if(_0x5e4ab4){const _0x4bf44e=_0x40dcc5['get'](_0x5e4ab4['userId']),_0x596f46=new G({'author':_0x4bf44e,'type':_0x5e4ab4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3f37fa});_0x191851['unshift'](_0x596f46),_0x2c4a79['attributes'][_0x3f37fa]['revisionHistoryAttachChange']=_0x596f46['id'];}_0x2c4a79['changes']=_0x2c4a79['changes']['concat'](_0x191851);}return _0x2c4a79;}['_markMarkers'](_0x467837,_0x5896e4){for(let _0x14ee08=0x0;_0x14ee08<_0x467837['length'];_0x14ee08++)for(const [_0x5c635c,_0x4ef32c]of _0x5896e4)!_0x4ef32c['isCollapsed']&&_0x4ef32c['start']['isEqual'](_0x467837[_0x14ee08]['previousPosition'])&&_0x467837[_0x14ee08]['markersStart']['push'](_0x5c635c),_0x4ef32c['end']['isEqual'](_0x467837[_0x14ee08]['nextPosition'])&&_0x467837[_0x14ee08]['markersEnd']['push'](_0x5c635c);}['_joinTapes'](_0x4d1f22,_0x3243cb){let _0x24d006=[],_0x104793=0x0,_0x3ac0e7=0x0;for(;_0x104793<_0x4d1f22['length']||_0x3ac0e7<_0x3243cb['length'];){const _0x3a1467=_0x4d1f22[_0x104793]||{},_0x39e4e2=_0x3243cb[_0x3ac0e7]||{};if(_0x3a1467['id']==_0x39e4e2['id'])_0x104793++,_0x3ac0e7++,_0x24d006['push'](_0x3a1467);else{if(_0x39e4e2['isRemoved']&&_0x3a1467['isAdded']){const {commonTape:_0x56228b,iEnd:_0x295c1e,jEnd:_0x5a5826}=this['_threeWayMerge'](_0x4d1f22,_0x104793,_0x3243cb,_0x3ac0e7);_0x24d006=_0x24d006['concat'](_0x56228b),_0x104793=_0x295c1e,_0x3ac0e7=_0x5a5826;}else _0x39e4e2['isRemoved']?(_0x3ac0e7++,_0x24d006['push'](_0x39e4e2)):(_0x104793++,_0x24d006['push'](_0x3a1467));}}return _0x24d006;}['_markSuggestions'](_0x1fac04,_0x3f4fb1){const _0x778c64=[];for(let _0x28b5da=0x0;_0x28b5da<_0x1fac04['length'];_0x28b5da++){for(let _0x339be5=0x0;_0x339be5<_0x1fac04[_0x28b5da]['markersStart']['length'];_0x339be5++){const _0x418aaf=_0x1fac04[_0x28b5da]['markersStart'][_0x339be5];if(!_0x3f4fb1['has'](_0x418aaf))continue;const {group:_0x2bf8f6,type:_0xa8391,authorId:_0xf6531e}=_0x5edcda(_0x418aaf);'revision-suggestion'!=_0x2bf8f6||'insertion'!=_0xa8391&&'deletion'!=_0xa8391||(_0x778c64['unshift']({'type':_0xa8391,'name':_0x418aaf,'userId':_0xf6531e}),_0x1fac04[_0x28b5da]['markersStart']['splice'](_0x339be5,0x1),_0x339be5--);}_0x176e65(_0x1fac04[_0x28b5da]);for(let _0xddc3db=0x0;_0xddc3db<_0x1fac04[_0x28b5da]['markersEnd']['length'];_0xddc3db++){const _0x361fb4=_0x1fac04[_0x28b5da]['markersEnd'][_0xddc3db];if(!_0x3f4fb1['has'](_0x361fb4))continue;const {group:_0x4b4eef,type:_0x4066de}=_0x5edcda(_0x361fb4);if('revision-suggestion'!=_0x4b4eef||'insertion'!=_0x4066de&&'deletion'!=_0x4066de)continue;_0x1fac04[_0x28b5da]['markersEnd']['splice'](_0xddc3db,0x1),_0xddc3db--;const _0x3d2b65=_0x778c64['findIndex'](_0x30bfdc=>_0x30bfdc['name']==_0x361fb4);_0x3d2b65>-0x1&&_0x778c64['splice'](_0x3d2b65,0x1);}}function _0x5edcda(_0x2502e3){const _0x27d553=_0x2502e3['split'](':');return{'group':_0x27d553[0x0],'type':_0x27d553[0x1],'subType':_0x27d553['length']>=0x5?_0x27d553[0x2]:null,'id':_0x27d553['length']<0x5?_0x27d553[0x2]:_0x27d553[0x3],'authorId':_0x27d553['length']<0x5?_0x27d553[0x3]:_0x27d553[0x4],'markerCount':0x6==_0x27d553['length']?_0x27d553[0x5]:null};}function _0x176e65(_0x59848e){for(let _0x31f301=0x0;_0x31f301<_0x778c64['length'];_0x31f301++){if(_0x59848e['isAdded']&&'insertion'==_0x778c64[_0x31f301]['type']&&_0x59848e['isAdded']['userId']==_0x778c64[_0x31f301]['userId'])return _0x59848e['isAddSuggestion']=_0x778c64[_0x31f301],void delete _0x59848e['isAdded'];if(!_0x59848e['isAdded']&&!_0x59848e['isRemoved']&&'deletion'==_0x778c64[_0x31f301]['type'])return void(_0x59848e['isRemoveSuggestion']=_0x778c64[_0x31f301]);}}}['_setDistance'](_0x4eb68b,_0x2296ff){let _0x318042=0x0,_0x1fdf9b=!0x1;const _0x288f19=new Map();for(const _0x44dc56 of _0x4eb68b)_0x44dc56[_0x2296ff]?_0x1fdf9b&&(_0x318042++,_0x1fdf9b=!0x1):(_0x318042++,_0x1fdf9b=!0x0),_0x288f19['set'](_0x44dc56['id'],_0x318042);for(let _0x48cb7e=0x0;_0x48cb7e<_0x4eb68b['length'];_0x48cb7e++){if('isRemoved'==_0x2296ff&&_0x4eb68b[_0x48cb7e]['isAdded']||'isAdded'==_0x2296ff&&_0x4eb68b[_0x48cb7e]['isRemoved'])continue;if('text'==_0x4eb68b[_0x48cb7e]['type']){_0x4eb68b[_0x48cb7e]['distance']=0x0;continue;}const _0x3ec854=_0x288f19['get'](_0x4eb68b[_0x48cb7e]['pairId']),_0x3d3ee7=_0x288f19['get'](_0x4eb68b[_0x48cb7e]['id']);_0x4eb68b[_0x48cb7e]['distance']=_0x3ec854-_0x3d3ee7;}}['_getRevisionsRange'](_0x27de6d,_0x3c4bb8,_0x39ae42=!0x1){const _0x284085=[];let _0x3d30c6=this['repository']['getIndex'](_0x27de6d),_0x36448f=this['repository']['getIndex'](_0x3c4bb8);for(-0x1==_0x36448f&&(_0x36448f=this['repository']['_revisions']['length'],_0x39ae42=!0x1);_0x3d30c6<_0x36448f;)_0x284085['push'](this['repository']['getRevision'](_0x3d30c6)),_0x3d30c6++;return _0x39ae42&&_0x284085['push'](this['repository']['getRevision'](_0x3d30c6)),_0x284085;}['_threeWayMerge'](_0xb1897d,_0x35d320,_0x1814ed,_0x1551bb){const _0x1f740c=this['editor']['model']['schema'];let _0x4dd67a=_0x35d320;for(;_0xb1897d[_0x4dd67a]&&_0xb1897d[_0x4dd67a]['isAdded'];)_0x4dd67a++;let _0x182ce8=_0x1551bb;for(;_0x1814ed[_0x182ce8]&&_0x1814ed[_0x182ce8]['isRemoved'];)_0x182ce8++;_0x2d8346(_0xb1897d,_0x35d320,_0x4dd67a),_0x2d8346(_0x1814ed,_0x1551bb,_0x182ce8);const _0x4fe013=_0x1814ed['slice'](_0x1551bb,_0x182ce8)['concat'](_0xb1897d['slice'](_0x35d320,_0x4dd67a));return _0x4fe013['sort']((_0x85d151,_0x4e965e)=>_0x85d151['side']!=_0x4e965e['side']?_0x85d151['side']-_0x4e965e['side']:_0x85d151['level']!=_0x4e965e['level']?_0x85d151['level']-_0x4e965e['level']:_0x85d151['distance']!=_0x4e965e['distance']?_0x4e965e['distance']-_0x85d151['distance']:!!_0x85d151['isAdded']!=!!_0x4e965e['isAdded']?-0x1==_0x85d151['side']||0x0==_0x85d151['side']?_0x85d151['isAdded']?-0x1:0x1:_0x85d151['isAdded']?0x1:-0x1:_0x85d151['index']-_0x4e965e['index']),{'commonTape':_0x4fe013,'iEnd':_0x4dd67a,'jEnd':_0x182ce8};function _0x2d8346(_0x3a2b81,_0x8c5062,_0x34797a){let _0x2701f8=-0x1,_0x46893c=Number['POSITIVE_INFINITY'],_0x2cfe8c=!0x0;for(let _0x406f1f=_0x8c5062;_0x406f1f<_0x34797a;_0x406f1f++)if(_0x1f740c['isInline'](_0x3a2b81[_0x406f1f]['item'])||(_0x2cfe8c=!0x1),_0x3a2b81[_0x406f1f]['item']['startIndex']<_0x8c5062&&(_0x2701f8=_0x406f1f),_0x3a2b81[_0x406f1f]['item']['endIndex']>=_0x34797a){_0x46893c=_0x406f1f;break;}_0x2cfe8c&&(_0x2701f8=_0x34797a-0x1);for(let _0x2ac7e8=_0x8c5062;_0x2ac7e8<_0x34797a;_0x2ac7e8++)_0x3a2b81[_0x2ac7e8]['side']=_0x2ac7e8<=_0x2701f8?-0x1:_0x2ac7e8<_0x46893c?0x0:0x1,_0x3a2b81[_0x2ac7e8]['index']=_0x2ac7e8;let _0x394900=0x0;for(let _0x462262=_0x8c5062;_0x462262<=_0x2701f8;_0x462262++)0x0==_0x3a2b81[_0x462262]['distance']?_0x3a2b81[_0x462262]['level']=_0x394900:(_0x394900++,_0x3a2b81[_0x462262]['level']=_0x394900,_0x394900++);for(let _0xb68d4b=_0x8c5062;_0xb68d4b<_0x34797a;_0xb68d4b++)0x0==_0x3a2b81[_0xb68d4b]['side']&&(_0x3a2b81[_0xb68d4b]['level']=_0x394900);_0x394900=0x0;for(let _0x41ec8c=_0x34797a-0x1;_0x41ec8c>=_0x46893c;_0x41ec8c--)0x0==_0x3a2b81[_0x41ec8c]['distance']?_0x3a2b81[_0x41ec8c]['level']=_0x394900:(_0x394900--,_0x3a2b81[_0x41ec8c]['level']=_0x394900,_0x394900--);}}['_fixObsoleteTags'](_0x522e3d){const _0x27abc6=new Map(),_0x57d031=this['editor']['model']['schema'];for(let _0x1654bd=0x1;_0x1654bd<_0x522e3d['length'];_0x1654bd++){let _0x2d3f5d,_0xb039b9,_0x1c2194;const _0x48938c=_0x522e3d[_0x1654bd],_0x455043=_0x522e3d[_0x1654bd-0x1];if('text'==_0x48938c['type'])continue;if(_0x48938c['type']!=_0x455043['type'])continue;if(!_0x57d031['isBlock'](_0x455043['item'])||_0x57d031['isLimit'](_0x455043['item']))continue;if(!_0x57d031['isBlock'](_0x48938c['item'])||_0x57d031['isLimit'](_0x48938c['item']))continue;if((_0x522e3d[_0x1654bd]['isAdded']||_0x522e3d[_0x1654bd]['isAddSuggestion'])&&_0x522e3d[_0x1654bd-0x1]['isRemoved'])_0x2d3f5d=_0x522e3d[_0x1654bd],_0xb039b9=_0x522e3d[_0x1654bd-0x1],_0x1c2194=_0x1654bd-0x1;else{if(!_0x522e3d[_0x1654bd]['isRemoved']||!_0x522e3d[_0x1654bd-0x1]['isAdded']&&!_0x522e3d[_0x1654bd-0x1]['isAddSuggestion'])continue;_0x2d3f5d=_0x522e3d[_0x1654bd-0x1],_0xb039b9=_0x522e3d[_0x1654bd],_0x1c2194=_0x1654bd;}const _0x3f1c34=_0x2d3f5d['level']==_0xb039b9['level'],_0x537fc6=Math['abs'](_0x2d3f5d['level'])<Math['abs'](_0xb039b9['level'])&&0x0==_0xb039b9['distance'];(_0x3f1c34||_0x537fc6)&&(_0x27abc6['set'](_0xb039b9['id'],_0x2d3f5d['id']),_0x522e3d['splice'](_0x1c2194,0x1),_0x1654bd--,_0x2d3f5d['isAdded']=!0x1);}for(let _0x5899e6=0x0;_0x5899e6<_0x522e3d['length'];_0x5899e6++)_0x27abc6['has'](_0x522e3d[_0x5899e6]['pairId'])&&(_0x522e3d[_0x5899e6]['pairId']=_0x27abc6['get'](_0x522e3d[_0x5899e6]['pairId']));}['_removeMissingPairs'](_0x9dcf36){const _0x344e2e=new Set(_0x9dcf36['map'](_0x1fc399=>_0x1fc399['id']));for(let _0x2cdacd=0x0;_0x2cdacd<_0x9dcf36['length'];_0x2cdacd++)_0x344e2e['has'](_0x9dcf36[_0x2cdacd]['pairId'])||0x0==_0x9dcf36[_0x2cdacd]['distance']||(_0x9dcf36[_0x2cdacd]['isIncorrect']=!0x0);return _0x9dcf36['filter'](_0x21f59d=>!_0x21f59d['isIncorrect']);}['_markMismatchedRemovedTags'](_0xefe65){const _0x5379b8=new Set();for(let _0x2e22e8=0x0;_0x2e22e8<_0xefe65['length'];_0x2e22e8++){if(_0x5379b8['has'](_0xefe65[_0x2e22e8]['id'])&&_0xefe65[_0x2e22e8]['isRemoved']&&(_0xefe65[_0x2e22e8]['isIncorrect']=!0x0),_0xefe65[_0x2e22e8]['isIncorrect'])continue;if(0x0==_0xefe65[_0x2e22e8]['distance'])continue;if('elementStart'!=_0xefe65[_0x2e22e8]['type'])continue;if(null==_0xefe65[_0x2e22e8]['pairId'])continue;let _0x3b2015=_0x2e22e8+0x1,_0x8ee1e6=0x0;for(;_0xefe65[_0x3b2015]['id']!=_0xefe65[_0x2e22e8]['pairId'];)'elementStart'==_0xefe65[_0x3b2015]['type']?_0x8ee1e6++:'elementEnd'==_0xefe65[_0x3b2015]['type']&&_0x8ee1e6--,_0x3b2015++;if(0x0!=_0x8ee1e6){if(_0xefe65[_0x2e22e8]['isRemoved'])_0xefe65[_0x2e22e8]['isIncorrect']=!0x0;else{for(;_0x3b2015!=_0x2e22e8;)_0xefe65[_0x3b2015]['isRemoved']&&0x0!=_0xefe65[_0x3b2015]['distance']&&(_0xefe65[_0x3b2015]['isIncorrect']=!0x0,_0x5379b8['add'](_0xefe65[_0x3b2015]['pairId'])),_0x3b2015--;}}}return _0xefe65['filter'](_0x47118b=>!_0x47118b['isIncorrect']);}['_removeUnsupportedChanges'](_0xecdd04){const _0x59b714=this['editor']['model']['schema'];for(let _0x52ac85=0x0;_0x52ac85<_0xecdd04['length'];_0x52ac85++){if(!(_0xecdd04[_0x52ac85]['isAdded']||_0xecdd04[_0x52ac85]['isAddSuggestion']||_0xecdd04[_0x52ac85]['isRemoved']||_0xecdd04[_0x52ac85]['isRemoveSuggestion']))continue;if(0x0==_0xecdd04[_0x52ac85]['distance'])continue;const _0x196eb8=_0xecdd04[_0x52ac85]['item'];_0x59b714['isBlock'](_0x196eb8)||_0x59b714['isLimit'](_0x196eb8)||(_0xecdd04[_0x52ac85]['isAdded']&&delete _0xecdd04[_0x52ac85]['isAdded'],_0xecdd04[_0x52ac85]['isAddSuggestion']&&delete _0xecdd04[_0x52ac85]['isAddSuggestion'],_0xecdd04[_0x52ac85]['isRemoveSuggestion']&&delete _0xecdd04[_0x52ac85]['isRemoveSuggestion'],_0xecdd04[_0x52ac85]['isRemoved']&&(_0xecdd04[_0x52ac85]['isIncorrect']=!0x0));}return _0xecdd04['filter'](_0x3c7502=>!_0x3c7502['isIncorrect']);}['_makeModelFromTape'](_0x3d5158,_0x1d38fc,_0x39a0ce){const _0xd08691=new _0x24dd64(),_0x19b7dc=[],_0x2e090e=new Map(),_0x48bff3=this['editor']['model'],_0x1acf0=_0x48bff3['schema'],_0x4800de=[_0xd08691],_0x202693={},_0x39d139={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b17e8=null;const _0x382a94=[0x0];for(let _0x5bb8ec=0x0;_0x5bb8ec<_0x3d5158['length'];_0x5bb8ec++)if('elementStart'===_0x3d5158[_0x5bb8ec]['type']){_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94);const _0x596ef2=new _0x220be8(_0x3d5158[_0x5bb8ec]['item']['name'],_0x3d5158[_0x5bb8ec]['item']['getAttributes']());_0x4800de[0x0]['_appendChild'](_0x596ef2),_0x382a94['push'](0x0),_0x4800de['unshift'](_0x596ef2),_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94);}else'elementEnd'===_0x3d5158[_0x5bb8ec]['type']?(_0x4800de['shift'](),_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94),_0x382a94['pop'](),_0x382a94[_0x382a94['length']-0x1]++,_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94)):(_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94),_0x5b17e8?_0x5b17e8['_data']+=_0x3d5158[_0x5bb8ec]['item']['data']:_0x5b17e8=new _0x53c09b(_0x3d5158[_0x5bb8ec]['item']['data'],_0x3d5158[_0x5bb8ec]['item']['getAttributes']()),_0x3d5158[_0x5bb8ec+0x1]&&'text'===_0x3d5158[_0x5bb8ec+0x1]['type']&&_0x1c0881(_0x5b17e8,_0x3d5158[_0x5bb8ec+0x1]['item'])||(_0x4800de[0x0]['_appendChild'](_0x5b17e8),_0x5b17e8=null),_0x382a94[_0x382a94['length']-0x1]+=_0x3d5158[_0x5bb8ec]['item']['offsetSize'],_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94));for(let _0x3ee718=0x0;_0x3ee718<_0x3d5158['length'];_0x3ee718++){const _0xd15757=_0x3d5158[_0x3ee718]['previousPosition'],_0x93c19e=_0x3d5158[_0x3ee718]['nextPosition'];for(const _0x40ad3d of _0x3d5158[_0x3ee718]['markersStart'])_0x2e090e['set'](_0x40ad3d,{'start':_0xd15757,'end':null});_0x48f26b('isRemoveSuggestion',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isAddSuggestion',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isRemoved',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isAdded',_0x3ee718,_0xd15757,_0x93c19e);for(const _0x390e8a of _0x3d5158[_0x3ee718]['markersEnd']){const _0x3f41e2=_0x2e090e['get'](_0x390e8a);_0x3f41e2?_0x3f41e2['end']=_0x93c19e:_0x2e090e['set'](_0x390e8a,{'start':_0x93c19e,'end':_0x93c19e});}}for(const [_0x599017,_0x5d950d]of _0x2e090e){const _0x43ca5b=this['editor']['model']['createRange'](_0x5d950d['start'],_0x5d950d['end']);_0xd08691['markers']['set'](_0x599017,_0x43ca5b);}return _0x19b7dc['sort']((_0x1c47a9,_0x32f20f)=>{const _0x674e4f=_0xd08691['markers']['get']('revision:'+_0x1c47a9['id']),_0x4c2712=_0xd08691['markers']['get']('revision:'+_0x32f20f['id']);return _0x674e4f['start']['isBefore'](_0x4c2712['start'])?-0x1:_0x674e4f['start']['isAfter'](_0x4c2712['start'])?0x1:_0x674e4f['end']['isBefore'](_0x4c2712['end'])?-0x1:_0x674e4f['end']['isAfter'](_0x4c2712['end'])?0x1:'add'===_0x1c47a9['type']?-0x1:0x1;}),{'root':_0xd08691,'changes':_0x19b7dc};function _0x48f26b(_0x497fbe,_0x3eb91d,_0x219f3a,_0x3a4d96){const _0x138e56=!!_0x3d5158[_0x3eb91d][_0x497fbe],_0x3bcf2d=_0x138e56?_0x3d5158[_0x3eb91d][_0x497fbe]['userId']:null,_0xe74129=_0x3eb91d===_0x3d5158['length']-0x1,_0x1d74a4=_0x39d139[_0x497fbe][0x0],_0x75d87c=_0x1acf0['isObject'](_0x3d5158[_0x3eb91d]['item']);!_0x202693[_0x497fbe]&&_0x138e56?_0x202693[_0x497fbe]={'start':_0x219f3a,'tapeItem':_0x3d5158[_0x3eb91d],'userId':_0x3bcf2d,'type':_0x497fbe}:_0x202693[_0x497fbe]&&!_0x138e56?(_0x202693[_0x497fbe]['end']=_0x219f3a,_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]=null):_0x202693[_0x497fbe]&&_0x138e56&&_0x202693[_0x497fbe]['userId']!==_0x3bcf2d&&(_0x202693[_0x497fbe]['end']=_0x219f3a,_0x1d74a4&&_0x1d74a4['userId']===_0x202693[_0x497fbe]['userId']||_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]={'start':_0x219f3a,'tapeItem':_0x3d5158[_0x3eb91d],'userId':_0x3bcf2d,'type':_0x497fbe}),_0x202693[_0x497fbe]&&_0x75d87c&&('elementStart'!==_0x3d5158[_0x3eb91d]['type']||_0x1d74a4&&_0x1d74a4['userId']===_0x3bcf2d||_0x39d139[_0x497fbe]['unshift']({'userId':_0x3bcf2d,'object':_0x3d5158[_0x3eb91d]['item'],'change':_0x202693[_0x497fbe]}),'elementEnd'===_0x3d5158[_0x3eb91d]['type']&&_0x1d74a4&&_0x1d74a4['object']===_0x3d5158[_0x3eb91d]['item']&&(_0x39d139[_0x497fbe]['shift'](),_0x202693[_0x497fbe]=_0x1d74a4['change'])),_0x202693[_0x497fbe]&&_0xe74129&&(_0x202693[_0x497fbe]['end']=_0x3a4d96,_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]=null);}function _0x2ca79a({start:_0x64dba8,end:_0x248647,tapeItem:_0x3c8fbc,userId:_0x155a05,type:_0xbf22e8}){const _0x127d10=_0x3c8fbc['item'],_0x2d2ca2=_0x48bff3['schema']['isBlock'](_0x127d10)&&!_0x48bff3['schema']['isLimit'](_0x127d10),_0xd83808=_0x64dba8['nodeAfter']==_0x248647['parent']&&_0x248647['isAtStart'];if(_0x2d2ca2&&_0xd83808)return;const _0xe72c5c=_0x48bff3['createRange'](_0x64dba8,_0x248647),_0x54abfa=_0x1d38fc['get'](_0x155a05),_0x43829e=new G({'author':_0x54abfa,'type':'isAdded'==_0xbf22e8||'isAddSuggestion'==_0xbf22e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xbf22e8||'isRemoveSuggestion'==_0xbf22e8},'createdAt':new Date(),'rootName':_0x39a0ce});_0x19b7dc['push'](_0x43829e),_0xd08691['markers']['set']('revision:'+_0x43829e['id'],_0xe72c5c);}function _0x1c0881(_0x2bb970,_0x61cce8){const _0x4df61e=_0x2bb970['getAttributes'](),_0x37e5c6=_0x61cce8['getAttributes']();for(const _0xcc45a4 of _0x4df61e){if(_0xcc45a4[0x1]!==_0x61cce8['getAttribute'](_0xcc45a4[0x0]))return!0x1;_0x37e5c6['next']();}return _0x37e5c6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x492be2=>{const _0x25c8b2=_0x492be2['markerName']['split'](':')[0x1],_0x40b67f=this['_getChangeFromId'](_0x25c8b2);if(!_0x40b67f)return null;const _0x143231='add'==_0x40b67f['type']?'insertion':'deletion',_0x49ced7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x143231];return _0x40b67f['data']['isSuggestion']&&_0x49ced7['push']('ck-suggestion-marker-'+_0x143231+'-new'),this['activeChange']==_0x40b67f&&_0x49ced7['push']('ck-suggestion-marker--active'),{'classes':_0x49ced7,'attributes':{'data-change-id':_0x25c8b2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x916bef=>{_0x916bef['on']('element:pre',(_0x416b2a,_0xb330eb,_0x45ad43)=>{const _0x13c12b=_0xb330eb['viewItem']['getChild'](0x0);if(!_0x13c12b||!_0x13c12b['is']('element','code'))return;if(!_0x45ad43['consumable']['consume'](_0x13c12b,{'attributes':['vid_start','vid_end']}))return;const _0x178fe1=_0xb330eb['modelRange']['start']['nodeAfter'];_0x45ad43['writer']['setAttribute']('vid_start',_0x13c12b['getAttribute']('vid_start'),_0x178fe1),_0x45ad43['writer']['setAttribute']('vid_end',_0x13c12b['getAttribute']('vid_end'),_0x178fe1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ab9f6=>{_0x2ab9f6['on']('element',(_0x373efc,_0x42a6d3,_0x29286f)=>{if(!_0x29286f['consumable']['consume'](_0x42a6d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42a6d3['modelRange']['isCollapsed'])return;const _0x39d93f=_0x42a6d3['modelRange']['start']['nodeAfter'];_0x39d93f['hasAttribute']('vid_start')||_0x39d93f['hasAttribute']('vid')||(_0x29286f['writer']['setAttribute']('vid_start',_0x42a6d3['viewItem']['getAttribute']('vid_start'),_0x39d93f),_0x29286f['writer']['setAttribute']('vid_end',_0x42a6d3['viewItem']['getAttribute']('vid_end'),_0x39d93f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x6c8866=>_0x6c8866['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2d7ea1,[,_0xfedfa])=>{['vid_start','vid_end','vid']['includes'](_0xfedfa)&&(_0x2d7ea1['return']=!0x0,_0x2d7ea1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1f3d93=>{_0x1f3d93['on']('attribute:vid',(_0x7637ad,_0x49bf73,_0x5edd98)=>{if('\x20'!=_0x49bf73['item']['data']||_0x49bf73['item']['parent']['maxOffset']>0x1)return;if(!_0x5edd98['consumable']['consume'](_0x49bf73['item'],_0x7637ad['name']))return;const _0x3dcb31=_0x5edd98['writer'],_0x427b3c=_0x5edd98['mapper']['toViewRange'](_0x49bf73['range']);_0x3dcb31['wrap'](_0x427b3c,_0x3dcb31['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4781e5){const _0x48e21c=_0x4781e5['plugins']['get']('RevisionViewer');return(_0x55c25a,_0xb71e08,_0x1f9e74)=>{const _0xdf1cc2=_0xb71e08['markerName']['split'](':')[0x1],_0x3b1c8e=_0x48e21c['_getChangeFromId'](_0xdf1cc2);if(!_0x3b1c8e)return null;const _0x5877f6='add'==_0x3b1c8e['type']?'split':'merge';if(!_0x1f9e74['consumable']['test'](_0xb71e08['markerRange'],_0x55c25a['name']))return;const _0xf24404=_0xb71e08['markerRange']['getWalker'](),_0x44c2e7=_0xb71e08['markerRange']['start'],_0x143794=_0x4781e5['model']['schema'];let _0x4e1247=null,_0x3a34a6=null,_0x267cab=!0x1,_0x5dfb66=!0x1;for(const _0x383456 of _0xf24404){const _0x58d804=_0x383456['item'];_0x267cab=_0x267cab||_0x143794['isContent'](_0x58d804);const _0xd8fc7b=_0x1f9e74['mapper']['toViewElement'](_0x58d804);if(_0xd8fc7b&&_0xd8fc7b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x383456['type']&&(_0x143794['isBlock'](_0x58d804)&&!_0x143794['isLimit'](_0x58d804)&&(_0x58d804['nextSibling']||_0x44c2e7['isAtEnd']?_0x4e1247&&_0x4e1247['parent']==_0x58d804||(_0x4e1247=_0x58d804,_0x2b1688(_0x383456['previousPosition']),_0x5dfb66=!0x0):_0x3a34a6=_0x3a34a6||_0x383456['previousPosition']));}function _0x2b1688(_0x2ee688){const _0x4e840d=_0x1f9e74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5877f6}),_0x1c8953=_0x1f9e74['mapper']['toViewPosition'](_0x2ee688);_0x3b1c8e['data']['isSuggestion']&&_0x1f9e74['writer']['addClass']('ck-suggestion-marker-'+_0x5877f6+'-new',_0x4e840d),_0x48e21c['activeChange']==_0x3b1c8e&&_0x1f9e74['writer']['addClass']('ck-suggestion-marker--active',_0x4e840d),_0x1f9e74['writer']['insert'](_0x1c8953,_0x4e840d),_0x1f9e74['mapper']['bindElementToMarker'](_0x4e840d,_0xb71e08['markerName']);}_0x267cab||_0x5dfb66||!_0x3a34a6||_0x2b1688(_0x3a34a6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b6ebc,_0x411446,_0x576b23)=>{const _0x460fc9=_0x576b23['mapper']['markerNameToElements'](_0x411446['markerName']);if(_0x460fc9){for(const _0x9e20ce of _0x460fc9)(_0x9e20ce['hasClass']('ck-suggestion-marker-split')||_0x9e20ce['hasClass']('ck-suggestion-marker-merge'))&&(_0x576b23['mapper']['unbindElementFromMarkerName'](_0x9e20ce,_0x411446['markerName']),_0x576b23['writer']['remove'](_0x9e20ce));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x460295,_0x569b9c,_0x28d486)=>{const _0x3cfd4c=_0x569b9c['markerName']['split'](':')[0x1],_0x35fe53=this['_getChangeFromId'](_0x3cfd4c);if(!_0x35fe53)return null;const _0x1ba917='add'==_0x35fe53['type']?'split':'merge';if(_0x28d486['consumable']['test'](_0x569b9c['markerRange'],_0x460295['name']))for(const _0x22d0e0 of _0x569b9c['markerRange']['getItems']()){if(!_0x22d0e0['is']('element','softBreak'))continue;const _0x347a93=_0x28d486['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ba917}),_0x447aba=_0x28d486['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x22d0e0));_0x35fe53['data']['isSuggestion']&&_0x28d486['writer']['addClass']('ck-suggestion-marker-'+_0x1ba917+'-new',_0x347a93),this['activeChange']==_0x35fe53&&_0x28d486['writer']['addClass']('ck-suggestion-marker--active',_0x347a93),_0x28d486['writer']['insert'](_0x447aba,_0x347a93),_0x28d486['mapper']['bindElementToMarker'](_0x347a93,_0x569b9c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2e8c4d=>{for(const _0x5a430 of this['editor']['model']['document']['getRootNames']()){const _0x2460c0=this['editor']['model']['document']['getRoot'](_0x5a430),_0x2d7604=this['editor']['editing']['view']['document']['getRoot'](_0x5a430);if(_0x2d7604){const _0x437c5e=_0x2460c0['getAttribute']('revisionHistoryAttachChange');if(_0x2e8c4d['removeAttribute']('data-change-id',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root-add',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root-remove',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root--active',_0x2d7604),_0x437c5e){const _0x5ebc74=this['_getChangeFromId'](_0x437c5e);if(!_0x5ebc74)return null;_0x2e8c4d['setAttribute']('data-change-id',_0x437c5e,_0x2d7604),_0x2e8c4d['addClass']('ck-revision-history-root-'+_0x5ebc74['type'],_0x2d7604),this['activeChange']==_0x5ebc74&&_0x2e8c4d['addClass']('ck-revision-history-root--active',_0x2d7604);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x294e62=>'revision-comment:'+_0x294e62,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2b37fc=>'revision-suggestion:'+_0x2b37fc,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ec9d0=>({'name':'suggestion:'+_0x1ec9d0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1d2a09=>{const _0x135217=_0x1d2a09['markerName']['split'](':')[0x1];return'insertion'!=_0x135217&&'deletion'!=_0x135217?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x135217]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2eeb6d,_0x29327e,_0x4b8dd4)=>{const _0xde0758=_0x4b8dd4['mapper']['markerNameToElements'](_0x29327e['markerName']);if(_0xde0758){for(const _0x1a274a of _0xde0758)_0x1a274a['is']('uiElement')&&(_0x4b8dd4['mapper']['unbindElementFromMarkerName'](_0x1a274a,_0x29327e['markerName']),_0x4b8dd4['writer']['remove'](_0x1a274a));}},{'priority':'high'});}['_getChangeFromId'](_0x583b45){return this['_changeIdToChange']['get'](_0x583b45);}['_getViewForChange'](_0x55a1f4){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x55a1f4),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e81e5,_0x1b718a,_0x2f7e84,_0x590e69)=>{_0x590e69&&this['_balloon']['remove'](_0x590e69),_0x2f7e84&&(this['_balloon']['add']({'view':_0x2f7e84,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x51fe25=this['editor']['editing'],_0x4b79cc=this['_getChangeFromId'](_0x2f7e84['changeId']);let _0x4bbca9;if(_0x4b79cc['data']['isOnRoot']){const _0x1e0799=_0x51fe25['view']['getDomRoot'](_0x4b79cc['rootName']);_0x4bbca9=Array['from'](_0x1e0799['getClientRects']());}else{const _0x58a79c=this['editor']['model']['markers']['get']('revision:'+_0x2f7e84['changeId']);_0x4bbca9=Array['from'](_0x51fe25['mapper']['markerNameToElements'](_0x58a79c['name']))['map'](_0x129f7d=>_0x51fe25['view']['domConverter']['mapViewToDom'](_0x129f7d))['map'](_0x15afc8=>Array['from'](_0x15afc8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4bbca9[0x0];return _0x4bbca9['find'](_0x2bfee=>_0x2bfee['top']-0x3<=this['_activeViewTarget']['y']&&_0x2bfee['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bfee['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bfee['right']+0x3>=this['_activeViewTarget']['x'])||_0x4bbca9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4a329a,_0x58dc6f,_0x4f5bde,_0x407b20)=>{this['activeView']=_0x4f5bde?this['_getViewForChange'](_0x4f5bde):null,this['editor']['model']['change'](()=>{const _0x7e6d9d=this['editor']['editing'];_0x407b20&&(_0x407b20['data']['isOnRoot']?_0x7e6d9d['view']['change'](_0x1f7544=>{_0x1f7544['removeClass']('ck-revision-history-root--active',_0x7e6d9d['view']['document']['getRoot'](_0x407b20['rootName']));}):_0x7e6d9d['reconvertMarker']('revision:'+_0x407b20['id'])),_0x4f5bde&&(_0x4f5bde['data']['isOnRoot']?_0x7e6d9d['view']['change'](_0x16fd68=>{_0x16fd68['addClass']('ck-revision-history-root--active',_0x7e6d9d['view']['document']['getRoot'](_0x4f5bde['rootName']));}):_0x7e6d9d['reconvertMarker']('revision:'+_0x4f5bde['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x35a37d,_0x2efa29)=>{if(this['activeChange'])return;const _0x213b3e=this['_findChangeIdFromDomTarget'](_0x2efa29['target']),_0x251fcf=this['_changeIdToChange']['get'](_0x213b3e);_0x251fcf?(this['_activeViewTarget']={'x':_0x2efa29['domEvent']['x'],'y':_0x2efa29['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x251fcf)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3419d4,_0x31d727)=>{const _0x419061=this['_findChangeIdFromDomTarget'](_0x31d727['target']),_0x47d910=this['_changeIdToChange']['get'](_0x419061);_0x47d910?(this['_activeViewTarget']={'x':_0x31d727['domEvent']['x'],'y':_0x31d727['domEvent']['y']},_0x47d910===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x47d910):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x570ac6){do{const _0x14098d=_0x570ac6['getAttribute']('data-change-id');if(_0x14098d)return _0x14098d;_0x570ac6=_0x570ac6['parent'];}while(_0x570ac6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25f570=>{for(const _0x53cea2 of this['editor']['model']['markers'])_0x25f570['removeMarker'](_0x53cea2);});}}function Q(_0x3c6db1,_0x55a8ed){return(_0xff0ec9,_0x381d7b,_0x1d20b8)=>{if(!_0x1d20b8['consumable']['test'](_0x381d7b['markerRange'],_0xff0ec9['name']))return;const _0x524630=_0x381d7b['markerRange']['getWalker'](),_0x5bf329=_0x381d7b['markerRange']['start'],_0x193057=_0x3c6db1['model']['schema'];let _0x173393=null,_0x146beb=null,_0x5558aa=!0x1,_0x33dde8=!0x1;for(const _0x3339fd of _0x524630){const _0x22344c=_0x3339fd['item'];_0x5558aa=_0x5558aa||_0x193057['isContent'](_0x22344c);const _0x3a86a0=_0x1d20b8['mapper']['toViewElement'](_0x22344c);if(_0x3a86a0&&_0x3a86a0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3339fd['type']&&(_0x193057['isBlock'](_0x22344c)&&!_0x193057['isLimit'](_0x22344c)&&(_0x22344c['nextSibling']||_0x5bf329['isAtEnd']?_0x173393&&_0x173393['parent']==_0x22344c||(_0x173393=_0x22344c,_0xf86237(_0x3339fd['previousPosition']),_0x33dde8=!0x0):_0x146beb=_0x146beb||_0x3339fd['previousPosition']));}function _0xf86237(_0x3bc2eb){const _0x228e11=_0x1d20b8['mapper']['toViewPosition'](_0x3bc2eb),_0x424414=_0x1d20b8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55a8ed});_0x1d20b8['writer']['insert'](_0x228e11,_0x424414),_0x1d20b8['mapper']['bindElementToMarker'](_0x424414,_0x381d7b['markerName']);}_0x5558aa||_0x33dde8||!_0x146beb||_0xf86237(_0x146beb);};}class nt extends _0x5788b1{constructor(_0x57f8df){super(_0x57f8df);const _0x2f2b93=_0x57f8df['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x2f2b93,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2f2b93,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x7115d3=this['editor'],_0x5f3edb=_0x7115d3['plugins']['get'](l),_0x419563=_0x5f3edb['isReady']?_0x5f3edb['diff']['newRevisionId']:null;_0x7115d3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x419563);}['refresh'](){const {isReady:_0x2e93f3,isEnabled:_0x341225,repository:_0x5041a7,diff:_0xbe75da}=this['editor']['plugins']['get'](l),_0x3b4cf9=_0xbe75da&&_0x5041a7['getLaterVisibleRevision'](_0xbe75da['newRevisionId']);this['isEnabled']=_0x2e93f3&&_0x341225&&Boolean(_0x3b4cf9);}}class rt extends _0x5788b1{['_step'];constructor(_0x3cdb6f,{direction:_0x464d84}){super(_0x3cdb6f);const _0x37db98=_0x3cdb6f['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x464d84?0x1:-0x1,this['listenTo'](_0x37db98,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37db98,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37db98,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x470f85=this['editor'],_0x261ada=_0x470f85['plugins']['get'](l),{isNavigationMode:_0x5e60cb,currentChangeNumber:_0x19120a}=_0x261ada;let _0xd52598;if(_0x261ada['activeChange']=_0x5e60cb?_0x261ada['diff']['changes']['get'](_0x19120a+this['_step']):_0x261ada['diff']['changes']['first'],_0x261ada['activeChange']['data']['isOnRoot'])_0xd52598=_0x470f85['editing']['view']['getDomRoot'](_0x261ada['activeChange']['rootName']);else{const _0x43b3ad=_0x470f85['model']['markers']['get']('revision:'+_0x261ada['activeChange']['id']);_0xd52598=_0x308ad9(_0x470f85['editing'],_0x43b3ad);}_0x799686({'target':_0xd52598,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5470d3,currentChangeNumber:_0x252f54,numberOfChanges:_0x7329bb,isReady:_0x182c9b,isEnabled:_0xcd8edd}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0xcd8edd&&_0x182c9b&&_0x7329bb)&&(!_0x5470d3||(0x1===this['_step']?_0x252f54<_0x7329bb-0x1:_0x252f54>0x0));}}class Ri extends _0x5afe72{constructor(_0x16a877){super(_0x16a877);const _0x1ccedb=this['bindTemplate'],_0x3f950e=new _0x20e177(_0x16a877),_0x2b675d=new _0x20e177(_0x16a877);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',(_0x1964b9,_0x4d64d2)=>_0x1964b9&&_0x4d64d2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x419c7b,_0x40e898,_0x29be76,_0xef3b9f)=>{if(!_0x419c7b)return R(_0x16a877,'Loading...');if(!_0x29be76)return R(_0x16a877,'No\x20changes');const _0x5f0b15=R(_0x16a877,'NUMBER_OF_CHANGES',_0x29be76);return _0xef3b9f?R(_0x16a877,'X_OF_Y_CHANGES',[_0x40e898+0x1,_0x29be76]):_0x5f0b15;}),_0x3f950e['set']({'label':R(_0x16a877,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x434994}),_0x2b675d['set']({'label':R(_0x16a877,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1b458c}),_0x3f950e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b675d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f950e['on']('execute',()=>this['fire']('execute','backward')),_0x2b675d['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',_0x1ccedb['if']('_isStatusLabelVisible','ck-hidden',_0x8a02dc=>!_0x8a02dc)]},'children':[{'text':_0x1ccedb['to']('isNavigationMode',_0x5e0f78=>_0x5e0f78?R(_0x16a877,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x16a877,'Total')+':\x20')}]},{'text':_0x1ccedb['to']('_statusText')}]},new _0x56d6b1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f950e,_0x2b675d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1305a6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x34ee8f=this['editor']['editing']['view'];_0x34ee8f['change'](_0x1a1e20=>{for(const _0x1148ae of _0x34ee8f['document']['roots'])_0x1a1e20['addClass'](ge,_0x1148ae);});}['hide'](){const _0x3ded21=this['editor']['editing']['view'];_0x3ded21['change'](_0x28ad09=>{for(const _0x183147 of _0x3ded21['document']['roots'])_0x28ad09['removeClass'](ge,_0x183147);});}}class u extends _0x1305a6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x29e9be=this['editor'],_0x2e475a=_0x29e9be['plugins']['get'](l),_0x5ae89e=_0x29e9be['plugins']['get'](ji);_0x29e9be['ui']['componentFactory']['add']('exitToEditing',_0xd83fcf=>{const _0x319d54=new _0x20e177(_0xd83fcf);return _0x319d54['set']({'label':R(_0xd83fcf,'Back\x20to\x20editing'),'icon':_0x3c04b5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x319d54,'execute',()=>{_0x29e9be['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x319d54;}),_0x29e9be['ui']['componentFactory']['add']('restoreRevision',_0x171bad=>{const _0x2a927e=new _0x20e177(_0x171bad);return _0x2a927e['set']({'label':R(_0x171bad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2a927e['bind']('isEnabled')['to'](_0x29e9be['commands']['get']('restoreRevision')),this['listenTo'](_0x2a927e,'execute',()=>_0x29e9be['execute']('restoreRevision')),_0x2a927e;}),_0x29e9be['ui']['componentFactory']['add']('changesNavigation',_0x4e7d96=>{const _0x2f4144=new Ri(_0x4e7d96),_0xe11223=_0x29e9be['commands']['get']('showPreviousChange'),_0x5e52a4=_0x29e9be['commands']['get']('showNextChange');return _0x2f4144['bind']('isBackwardNavigationEnabled')['to'](_0xe11223,'isEnabled'),_0x2f4144['bind']('isForwardNavigationEnabled')['to'](_0x5e52a4,'isEnabled'),_0x2f4144['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2e475a),this['listenTo'](_0x2f4144,'execute',(_0x54519c,_0x4dc08b)=>{_0x29e9be['execute']('forward'===_0x4dc08b?'showNextChange':'showPreviousChange');}),_0x2f4144;}),_0x5ae89e['show'](),_0x2e475a['on']('change:isReady',(_0x59b1d2,_0x96ee9a,_0x3512b4)=>{_0x3512b4?_0x5ae89e['hide']():_0x5ae89e['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x31a567,_0x2fccbb){super(_0x31a567,_0x2fccbb);const _0x347427=this['bindTemplate'];this['set']({'label':R(_0x31a567,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x31a567,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x347427['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5885e1=this['fieldView']['element'];this['_tooltipString']=_0x5885e1['scrollWidth']>_0x5885e1['clientWidth']&&_0x5885e1['value']||'';}}class ni extends _0x5afe72{constructor(_0x48e1fa,_0x2c1e55,_0x125764){super(_0x48e1fa);const _0x4709d6=new _0x13a599();_0x4709d6['set']({'content':_0x5d06bd,'viewBox':'0\x200\x2011\x2010'});const _0x365aae=['ck','ck-revision-history-sidebar__revision-author'];_0x125764&&_0x365aae['push']('ck-revision-history-sidebar__revision-author_creator');const _0x160172=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x48e1fa,_0x125764?'Revision\x20creator':'Revision\x20author')},'children':[_0x4709d6,_0x2c1e55['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x365aae},'children':_0x160172});}}function ci(_0x370628,_0x44d6e8){const _0x3b7fed=_0x370628['bindTemplate'],_0x2949cb=_0x370628['locale'],_0x26a482=_0x5191d3(_0x2949cb);_0x26a482['panelPosition']='sw';const _0x55f807=function(_0x4ca342,_0x44f328){const _0x2c46f9=function(_0x2c9666,_0x3aeea8){const _0x59ca70=_0x2c9666['locale'],_0xd44bd7={'Compare\x20against\x20selected':R(_0x59ca70,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x59ca70,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x59ca70,'Restore\x20this\x20revision')};return _0x3aeea8['map'](_0x488ad0=>{const _0x1d7680=_0xd44bd7[_0x488ad0['name']];return _0x1d7680&&_0x1d7680!==_0x488ad0['name']&&(_0x488ad0['name']=_0x1d7680),_0x488ad0;});}(_0x4ca342,_0x44f328),_0x1672a4=new _0xd01162();for(const _0x3aae17 of _0x2c46f9){const _0x42e50b={'type':'button','model':new to({'label':_0x3aae17['name'],'class':_0x3aae17['class'],'withText':!0x0,'role':'menuitem','_action':_0x3aae17['action']})};_0x42e50b['model']['bind']('isEnabled')['to'](_0x4ca342,'isActionsDropdownOpen',_0x3032b4=>'function'!=typeof _0x3aae17['isEnabled']||(!_0x3032b4||_0x3aae17['isEnabled'](_0x4ca342))),_0x1672a4['add'](_0x42e50b);}return _0x1672a4;}(_0x370628,_0x44d6e8);return _0x370628['bind']('isActionsDropdownOpen')['to'](_0x26a482,'isOpen'),_0x26a482['buttonView']['set']({'label':R(_0x2949cb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x47696e}),_0x26a482['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3b7fed['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3b7fed['to'](_0x5853b2=>_0x5853b2['stopPropagation']())}}),_0x26a482['on']('execute',_0x183af5=>{_0x370628['isReady']&&'function'==typeof _0x183af5['source']['_action']&&_0x183af5['source']['_action'](_0x370628);}),_0x2730e5(_0x26a482,_0x55f807,{'role':'menu'}),_0x26a482['listenTo'](_0x370628,'change:isActionsDropdownOpen',(_0x250b33,_0x5b30bd,_0x2fb7a0)=>{if(_0x2fb7a0)for(const _0xf5583 of _0x26a482['listView']['items']){const _0x214a0c=_0xf5583['children']['first'],_0x510720=_0x44d6e8['find'](_0x43f649=>_0x43f649['action']===_0x214a0c['_action'])['isVisible'];_0xf5583['isVisible']=void 0x0===_0x510720||_0x510720(_0x370628);}}),_0x26a482;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x520a9b,uid as _0x5a28d0,Collection as _0x1787f2,logWarning as _0x3b9bbb,FocusTracker as _0x20a531,KeystrokeHandler as _0x4b159a,scrollViewportToShowTarget as _0x24f7ed,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x209f36}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2d156f,set as _0x1cea93,unset as _0x55bc06,isEqual as _0x45c480}from'es-toolkit/compat';import{Plugin as _0x3eb3aa,PendingActions as _0x36aded,Command as _0x55dc51,ElementApiMixin as _0x33789f,Editor as _0x50610b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x96df93,getMarkerDomElement as _0x77d5c1,ConfirmMixin as _0x4683d1,sanitizeEditorConfig as _0x32c703}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x52a5bf,ViewAttributeElement as _0x9e99a5,ViewEmptyElement as _0x210494,ViewRawElement as _0x17023c,ViewUIElement as _0x1cfc00,ViewDocumentFragment as _0x5212ca,ViewText as _0x37676c,ViewElement as _0x552d48,ModelElement as _0x149904,ModelRange as _0x2ac226,ModelPosition as _0x2bac0b,ModelDocumentFragment as _0x55db8f,ModelText as _0x3c2817}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x27c55e,IconChevronUp as _0xd81a7f,IconChevronDown as _0x2078e1,IconUndo as _0x2dadc0,IconUser as _0x5944d6,IconThreeVerticalDots as _0x11c06a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x9b8b8b,View as _0x42faba,submitHandler as _0x4794bb,LabeledFieldView as ti,createLabeledInputText as _0x3269f8,createDropdown as _0xf860ea,ListView as _0x473d88,ListItemView as _0x29c64b,ButtonView as _0x3eb7b4,MenuBarMenuView as _0x2627a2,MenuBarMenuListView as _0x23222d,MenuBarMenuListItemView as _0x5e3c23,MenuBarMenuListItemButtonView as _0x18cd47,ContextualBalloon as _0x290bf7,ToolbarSeparatorView as _0x38e8dd,IconView as _0x257c58,addListToDropdown as _0x10dfb2,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x58c8a2,StickyPanelView as _0x457380,ToolbarView as _0x561180,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x46f1a1}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x520a9b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c7b96){super(),this['id']=_0x5c7b96['id']||_0x5a28d0(),this['creator']=_0x5c7b96['creator']||null,this['authors']=_0x5c7b96['authors']||[],this['diffData']=_0x5c7b96['diffData']||null,this['toVersion']=_0x5c7b96['toVersion']||0x0,this['fromVersion']=_0x5c7b96['fromVersion']||0x0,this['set']('name',_0x5c7b96['name']||''),this['set']('createdAt',_0x5c7b96['createdAt']||new Date()),this['set']('attributes',_0x5c7b96['attributes']||{});}['setName'](_0x5ec4a1){this['_update']({'name':_0x5ec4a1});}['setAttribute'](_0x351a5c,_0x21ebed){const _0xf551e1=_0x2d156f(this['attributes']);_0x1cea93(_0xf551e1,_0x351a5c,_0x21ebed),this['_update']({'attributes':_0xf551e1});}['removeAttribute'](_0x47a009){const _0x4dab10=_0x2d156f(this['attributes']);_0x55bc06(_0x4dab10,_0x47a009),this['_update']({'attributes':_0x4dab10});}['_update'](_0x2e98f6,_0x496e1b=!0x1){let _0x30022b=!0x1;const _0x1df048={'id':this['id']},_0x1a56e7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x82236 of _0x1a56e7){const _0x40f2b8=_0x2e98f6[_0x82236];void 0x0!==_0x40f2b8&&_0x40f2b8!==this[_0x82236]&&(this[_0x82236]=_0x40f2b8,_0x1df048[_0x82236]=_0x40f2b8,_0x30022b=!0x0);}_0x30022b&&(_0x1df048['authors']&&(_0x1df048['authorsIds']=_0x1df048['authors']['map'](_0x4192bb=>_0x4192bb['id']),delete _0x1df048['authors']),this['fire']('_update',_0x1df048,_0x496e1b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1e6206=>_0x1e6206['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3eb3aa{['_revisions'];static get['requires'](){return[_0x96df93];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3fbf55){super(_0x3fbf55),this['_revisions']=new _0x1787f2();}['afterInit'](){!async function(_0x44b52f){const _0x29a30f=_0x29cb2b([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x22f092=0xeb829,_0x4c7bd1=0x7374585f,_0x355418=0x73732b2f^_0x4c7bd1,_0x3bbe11=window[_0x29cb2b([0x44,0x61,0x74,0x65])][_0x29cb2b([0x6e,0x6f,0x77])](),_0x1bb32b=_0x44b52f[_0x29cb2b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c0a61=new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131099=>{_0x1bb32b[_0x29cb2b([0x6f,0x6e,0x63,0x65])](_0x29cb2b([0x72,0x65,0x61,0x64,0x79]),_0x131099);}),_0x1041c7={[_0x29cb2b([0x6b,0x74,0x79])]:_0x29cb2b([0x45,0x43]),[_0x29cb2b([0x75,0x73,0x65])]:_0x29cb2b([0x73,0x69,0x67]),[_0x29cb2b([0x63,0x72,0x76])]:_0x29cb2b([0x50,0x2d,0x32,0x35,0x36]),[_0x29cb2b([0x78])]:_0x29cb2b([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]),[_0x29cb2b([0x79])]:_0x29cb2b([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]),[_0x29cb2b([0x61,0x6c,0x67])]:_0x29cb2b([0x45,0x53,0x32,0x35,0x36])},_0x2b4dda=_0x1bb32b[_0x29cb2b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29cb2b([0x67,0x65,0x74])](_0x29cb2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17799c(){let _0x4e76d3,_0x14c25e=null,_0x38657c=null;try{if(_0x2b4dda==_0x29cb2b([0x47,0x50,0x4c]))return _0x29cb2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e76d3=_0x1f9a28(),!_0x4e76d3)return _0x29cb2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e76d3[_0x29cb2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38657c=_0x129e9a(_0x4e76d3[_0x29cb2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e76d3[_0x29cb2b([0x6a,0x74,0x69])])),await _0x48a5da()?_0x1466f3()?_0x44e705()?_0x29cb2b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e3244()?(_0x4e76d3[_0x29cb2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29cb2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14c25e=_0x102d9f(_0x29cb2b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e76d3[_0x29cb2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29cb2b([0x74,0x72,0x69,0x61,0x6c])&&(_0x14c25e=_0x102d9f(_0x29cb2b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49ee84()):_0x29cb2b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29cb2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29cb2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29cb2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44e705(){const _0x472f7c=[_0x29cb2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29cb2b([0x74,0x72,0x69,0x61,0x6c])][_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e76d3[_0x29cb2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3bbe11/0x3e8:0xe10*_0x355418;return _0x4e76d3[_0x29cb2b([0x65,0x78,0x70])]<_0x472f7c;}function _0x1466f3(){const _0x21ecca=_0x4e76d3[_0x29cb2b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x21ecca)return!0x1;if(_0x21ecca[_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cb2b([0x2a])))return!0x0;if(_0x21ecca[_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cb2b([0x52,0x48])))return!0x0;if(_0x21ecca[_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cb2b([0x52,0x52,0x48]))){if(_0x556476())return!0x0;if(_0x30c23f()||_0x323db0())return!0x0;}return!0x1;}function _0x3e3244(){const _0x383f9a=_0x4e76d3[_0x29cb2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x383f9a||0x0==_0x383f9a[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xce98bc}=new URL(window[_0x29cb2b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x383f9a[_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xce98bc))return!0x0;const _0x10adf1=_0xce98bc[_0x29cb2b([0x73,0x70,0x6c,0x69,0x74])](_0x29cb2b([0x2e]));return _0x383f9a[_0x29cb2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c2502=>_0x1c2502[_0x29cb2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cb2b([0x2a])))[_0x29cb2b([0x6d,0x61,0x70])](_0xb71f44=>_0xb71f44[_0x29cb2b([0x73,0x70,0x6c,0x69,0x74])](_0x29cb2b([0x2e])))[_0x29cb2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51b065=>_0x51b065[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10adf1[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29cb2b([0x6d,0x61,0x70])](_0x1fa8e3=>Array(_0x10adf1[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa8e3[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29cb2b([0x66,0x69,0x6c,0x6c])](_0x1fa8e3[0x0]===_0x29cb2b([0x2a])?_0x29cb2b([0x2a]):'')[_0x29cb2b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa8e3))[_0x29cb2b([0x73,0x6f,0x6d,0x65])](_0x31282f=>_0x10adf1[_0x29cb2b([0x65,0x76,0x65,0x72,0x79])]((_0x3252f3,_0x391dff)=>_0x31282f[_0x391dff]===_0x3252f3||_0x31282f[_0x391dff]===_0x29cb2b([0x2a])));}function _0x49ee84(){return _0x14c25e&&_0x38657c?new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d1a00,_0x738dc9)=>{_0x14c25e[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x3d1a00,_0x738dc9),_0x38657c[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x2daa60=>{_0x2daa60!=_0x29cb2b([0x56,0x61,0x6c,0x69,0x64])&&_0x3d1a00(_0x2daa60);},_0x738dc9);}):_0x14c25e||_0x38657c||_0x29cb2b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x129e9a(_0x6364f6,_0x458c98){return new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15d9af=>{if(_0x3e22a5())return _0x15d9af(_0x29cb2b([0x56,0x61,0x6c,0x69,0x64]));_0x89d3da(),_0x1bb32b[_0x29cb2b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29cb2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe84647=!0x1;const _0x493515=_0x5a28d0();function _0xece57(_0x5f5725){return!!_0x5f5725&&(typeof _0x5f5725===_0x29cb2b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f5725===_0x29cb2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f5725[_0x29cb2b([0x74,0x68,0x65,0x6e])]===_0x29cb2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f5725[_0x29cb2b([0x63,0x61,0x74,0x63,0x68])]===_0x29cb2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ef31a(_0x3b801e){_0x639401(_0x3b801e)[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x1f153f=>{if(!_0x1f153f||_0x1f153f[_0x29cb2b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29cb2b([0x6f,0x6b]))return _0x29cb2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1903e7(_0x2639c3(_0x493515+_0x458c98))!=_0x1f153f[_0x29cb2b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29cb2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29cb2b([0x56,0x61,0x6c,0x69,0x64]);})[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x506b13=>(_0x35bd25(),_0x506b13),()=>{const _0x357d3c=_0x407a22();return null==_0x357d3c?(_0x35bd25(),_0x29cb2b([0x56,0x61,0x6c,0x69,0x64])):_0x29cb2b(_0x3bbe11-_0x357d3c>(0x5778dc5f^_0x4c7bd1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x15d9af)[_0x29cb2b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15d9af(_0x29cb2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8ac322=0x7342b6df^_0x4c7bd1;function _0x35bd25(){const _0xf0cf3a=_0x29cb2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1903e7(_0x2639c3(_0x6364f6)),_0x383f37=_0x28a6f4(_0x1903e7(window[_0x29cb2b([0x4d,0x61,0x74,0x68])][_0x29cb2b([0x63,0x65,0x69,0x6c])](_0x3bbe11/_0x8ac322)));window[_0x29cb2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29cb2b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf0cf3a,_0x383f37);}function _0x407a22(){const _0x14e01e=_0x29cb2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1903e7(_0x2639c3(_0x6364f6)),_0x132c58=window[_0x29cb2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29cb2b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e01e);return _0x132c58?window[_0x29cb2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a6f4(_0x132c58),0x10)*_0x8ac322:null;}function _0x639401(_0x1b7cbc){return new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2195bf,_0x242d84)=>{_0x1b7cbc[_0x29cb2b([0x74,0x68,0x65,0x6e])](_0x2195bf,_0x242d84),window[_0x29cb2b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x242d84,0x73758c9f^_0x4c7bd1);});}}_0x1bb32b[_0x29cb2b([0x6f,0x6e])](_0x29cb2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2902,_0x5c11ba)=>{if(_0x5c11ba[0x0]!=_0x6364f6)return _0x15d9af(_0x29cb2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c11ba[0x1]={..._0x5c11ba[0x1],[_0x29cb2b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x493515};},{[_0x29cb2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29cb2b([0x68,0x69,0x67,0x68])}),_0x1bb32b[_0x29cb2b([0x6f,0x6e])](_0x29cb2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x87e59a=>{_0xece57(_0x87e59a[_0x29cb2b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe84647=!0x0,_0x2ef31a(_0x87e59a[_0x29cb2b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29cb2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29cb2b([0x6c,0x6f,0x77])}),_0x2c0a61[_0x29cb2b([0x74,0x68,0x65,0x6e])](()=>{_0xe84647||_0x15d9af(_0x29cb2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e22a5(){return _0x1bb32b[_0x29cb2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29cb2b([0x76,0x69,0x65,0x77])][_0x29cb2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29cb2b([0x61,0x75,0x74,0x6f]);}function _0x89d3da(){_0x1bb32b[_0x29cb2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29cb2b([0x76,0x69,0x65,0x77])][_0x29cb2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29cb2b([0x61,0x75,0x74,0x6f]);}}function _0x102d9f(_0x49fc97){const _0x1aa25c=[new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e5e94=>setTimeout(_0x4e5e94,0x737d6693^_0x4c7bd1)),_0x2c0a61[_0x29cb2b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed01a=>{const _0x334c47=0x73745858^_0x4c7bd1,_0x52bfb1=_0x44b52f[_0x29cb2b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x468108(){_0x52bfb1[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x334c47&&_0x1ed01a();}_0x468108(),_0x52bfb1[_0x29cb2b([0x6f,0x6e])](_0x29cb2b([0x61,0x64,0x64]),_0x468108);})),new window[(_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a15b=>{function _0x1e8796(){for(const _0xa110d in window)if(window[_0x29cb2b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x29cb2b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xa110d))&&window[_0xa110d]==_0x22f092)return _0x10a15b();_0x1bb32b[_0x29cb2b([0x73,0x74,0x61,0x74,0x65])]!=_0x29cb2b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x29cb2b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e8796,0x73744bd7^_0x4c7bd1);}_0x3e5562(_0x29cb2b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e8796();})];return window[_0x29cb2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29cb2b([0x72,0x61,0x63,0x65])](_0x1aa25c)[_0x29cb2b([0x74,0x68,0x65,0x6e])](()=>_0x49fc97);}async function _0x2be8dd(){if(await _0x2c0a61,_0x3e5562(_0x29cb2b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x49a483=_0x44b52f[_0x29cb2b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4aae5d=_0x44b52f[_0x29cb2b([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])](_0x49a483[_0x29cb2b([0x69,0x64])]),_0x5577a2=_0x61a961(_0x29cb2b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5577a2[_0x29cb2b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x49a483['id'],_0x4aae5d?_0x4aae5d['id']:null,!0x0),_0x5577a2[_0x29cb2b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29cb2b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5577a2[_0x29cb2b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5577a2[_0x29cb2b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3fdf5f,void(_0x5577a2[_0x29cb2b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3fdf5f);}if(_0x3e5562(_0x29cb2b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x148d4d=_0x61a961(_0x29cb2b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x148d4d[_0x29cb2b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29cb2b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x148d4d[_0x29cb2b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x148d4d[_0x29cb2b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3fdf5f,_0x148d4d[_0x29cb2b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3fdf5f;}_0x1bb32b[_0x29cb2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x29cb2b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fdf5f,_0x1bb32b[_0x29cb2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x29cb2b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fdf5f,_0x1bb32b[_0x29cb2b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29cb2b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x556476(){return _0x3e5562(_0x29cb2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x61a961(_0x29cb2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29cb2b([0x73,0x74,0x61,0x74,0x65])]==_0x29cb2b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x30c23f(){return _0x3e5562(_0x29cb2b([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 _0x323db0(){return _0x3e5562(_0x29cb2b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17c7cd(_0x414510){const _0x46fc1c=_0x568ea4();_0x1bb32b[_0x46fc1c]=_0x29cb2b([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])+_0x414510,_0x414510[_0x29cb2b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x29cb2b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x568ea4()]=_0x22f092),_0x414510!=_0x29cb2b([0x56,0x61,0x6c,0x69,0x64])&&_0x2be8dd();}function _0x568ea4(){const _0x4f32dc=window[_0x29cb2b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29cb2b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29cb2b([0x6e,0x6f,0x77])]())[_0x29cb2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29cb2b([0x2e]),'');let _0x1bca38=_0x29cb2b([0x73]);for(let _0x5a0823=0x0;_0x5a0823<_0x4f32dc[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a0823+=0x2){let _0x4d9d42=window[_0x29cb2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f32dc[_0x29cb2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a0823,_0x5a0823+0x2));_0x4d9d42>=_0x29a30f[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d9d42-=_0x29a30f[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bca38+=_0x29a30f[_0x4d9d42];}return _0x1bca38;}function _0x1f9a28(){const _0x33e6c1=_0x2b4dda[_0x29cb2b([0x73,0x70,0x6c,0x69,0x74])](_0x29cb2b([0x2e]));if(0x3!=_0x33e6c1[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f90d7(_0x33e6c1[0x1]);function _0x2f90d7(_0x103c31){const _0x1a7cce=_0x22f0b8(_0x103c31);return _0x1a7cce&&_0x3c179f()?_0x1a7cce:null;function _0x3c179f(){const _0x9b3410=_0x1a7cce[_0x29cb2b([0x6a,0x74,0x69])],_0x438de8=window[_0x29cb2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9b3410[_0x29cb2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9b3410[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ec92e={..._0x1a7cce,[_0x29cb2b([0x6a,0x74,0x69])]:_0x9b3410[_0x29cb2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9b3410[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ec92e[_0x29cb2b([0x76,0x63])],_0x2639c3(_0x3ec92e)==_0x438de8;}}}async function _0x48a5da(){let _0xec931a=!0x0;try{const _0x28a50e=_0x2b4dda[_0x29cb2b([0x73,0x70,0x6c,0x69,0x74])](_0x29cb2b([0x2e])),[_0x24d9f9,_0x47a72d,_0x448bd4]=_0x28a50e;return _0x21238d(_0x24d9f9),await _0x25dc1c(_0x24d9f9,_0x47a72d,_0x448bd4),_0xec931a;}catch{return!0x1;}function _0x21238d(_0x18e034){const _0x5ac6ee=_0x22f0b8(_0x18e034);_0x5ac6ee&&_0x5ac6ee[_0x29cb2b([0x61,0x6c,0x67])]==_0x29cb2b([0x45,0x53,0x32,0x35,0x36])||(_0xec931a=!0x1);}async function _0x25dc1c(_0x59caac,_0x940a4,_0x2bf1b0){const _0x42087f=window[_0x29cb2b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29cb2b([0x66,0x72,0x6f,0x6d])](_0x3650c3(_0x2bf1b0),_0x2f9200=>_0x2f9200[_0x29cb2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bda21=new window[(_0x29cb2b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29cb2b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59caac+_0x29cb2b([0x2e])+_0x940a4),_0xff62f=window[_0x29cb2b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29cb2b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xff62f)return;const _0x49ac6d=await _0xff62f[_0x29cb2b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29cb2b([0x6a,0x77,0x6b]),_0x1041c7,{[_0x29cb2b([0x6e,0x61,0x6d,0x65])]:_0x29cb2b([0x45,0x43,0x44,0x53,0x41]),[_0x29cb2b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29cb2b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29cb2b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xff62f[_0x29cb2b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29cb2b([0x6e,0x61,0x6d,0x65])]:_0x29cb2b([0x45,0x43,0x44,0x53,0x41]),[_0x29cb2b([0x68,0x61,0x73,0x68])]:{[_0x29cb2b([0x6e,0x61,0x6d,0x65])]:_0x29cb2b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49ac6d,_0x42087f,_0x5bda21)||(_0xec931a=!0x1);}}function _0x22f0b8(_0x54ff79){return _0x54ff79[_0x29cb2b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29cb2b([0x65,0x79]))?JSON[_0x29cb2b([0x70,0x61,0x72,0x73,0x65])](_0x3650c3(_0x54ff79)):null;}function _0x3650c3(_0xc78eb5){return window[_0x29cb2b([0x61,0x74,0x6f,0x62])](_0xc78eb5[_0x29cb2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29cb2b([0x2b]))[_0x29cb2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29cb2b([0x2f])));}function _0x2639c3(_0x2b473a){let _0x5d6383=0x1505;function _0x17de73(_0x2092f4){for(let _0x15fbac=0x0;_0x15fbac<_0x2092f4[_0x29cb2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15fbac++){const _0x7dea08=_0x2092f4[_0x29cb2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15fbac);_0x5d6383=(_0x5d6383<<0x5)+_0x5d6383+_0x7dea08,_0x5d6383&=_0x5d6383;}}function _0x50a789(_0x4403b1){Array[_0x29cb2b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4403b1)?_0x4403b1[_0x29cb2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50a789):_0x4403b1&&typeof _0x4403b1==_0x29cb2b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29cb2b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4403b1)[_0x29cb2b([0x73,0x6f,0x72,0x74])]()[_0x29cb2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f0626,_0x41f13d])=>{_0x17de73(_0x2f0626),_0x50a789(_0x41f13d);}):_0x17de73(window[_0x29cb2b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4403b1));}return _0x50a789(_0x2b473a),_0x5d6383>>>0x0;}function _0x1903e7(_0x29a63e){return _0x29a63e[_0x29cb2b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29cb2b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29cb2b([0x30]));}function _0x28a6f4(_0x44f00f){return _0x44f00f[_0x29cb2b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29cb2b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29cb2b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e5562(_0x241452){return _0x1bb32b[_0x29cb2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29cb2b([0x68,0x61,0x73])](_0x241452);}function _0x61a961(_0x3f27e2){return _0x1bb32b[_0x29cb2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29cb2b([0x67,0x65,0x74])](_0x3f27e2);}function _0x3fdf5f(){}function _0x29cb2b(_0x3f2cef){return _0x3f2cef['map'](_0x246733=>String['fromCharCode'](_0x246733))['join']('');}_0x17c7cd(await _0x17799c());}(this);}['createRevision'](_0x54c422){const _0x34628b=this['editor']['plugins']['get']('Users');return new I({'id':_0x54c422['id'],'name':_0x54c422['name'],'creator':_0x54c422['creatorId']?_0x34628b['getUser'](_0x54c422['creatorId']):null,'diffData':_0x54c422['diffData']||_0x54c422['data'],'authors':_0x54c422['authorsIds']['map'](_0x5d2c82=>_0x34628b['getUser'](_0x5d2c82)),'createdAt':new Date(_0x54c422['createdAt']),'attributes':_0x54c422['attributes'],'fromVersion':_0x54c422['fromVersion'],'toVersion':_0x54c422['toVersion']});}['addRevision'](_0x1a9a23,_0x411a30=0x0){this['_revisions']['add'](_0x1a9a23,_0x411a30);}['getRevision'](_0x27c1c6){return this['_revisions']['get'](_0x27c1c6);}['getRevisions'](_0xbc72de={'toJSON':!0x1}){const _0x36a423=Array['from'](this['_revisions']);return _0x36a423['reverse'](),_0xbc72de['toJSON']?_0x36a423['map'](_0x1baa49=>_0x1baa49['toJSON']()):_0x36a423;}['getIndex'](_0x179087){return this['_revisions']['getIndex'](_0x179087);}['getEarlierVisibleRevision'](_0x5d4bc8){const [,_0x2a8510]=this['getRevisionsIterator'](_0x5d4bc8,{'direction':'earlier'});return _0x2a8510;}['getLaterVisibleRevision'](_0x1e55de){const [,_0x5da438]=this['getRevisionsIterator'](_0x1e55de,{'direction':'later'});return _0x5da438;}['getRevisionsInDiff'](_0x2230bf){const _0x44d021=[];for(const _0x174983 of this['getRevisionsIterator'](_0x2230bf['newRevisionId']))if(_0x44d021['push'](_0x174983),_0x174983['id']===_0x2230bf['oldRevisionId'])break;return _0x44d021;}*['getRevisionsIterator'](_0x352abc,{direction:_0x10860a='earlier',filter:_0x3cce51=()=>!0x0}={}){const _0x1911b3='earlier'===_0x10860a?0x1:-0x1;let _0x2c946f=this['_revisions']['get'](_0x352abc),_0x116988=this['getIndex'](_0x2c946f);for(yield _0x2c946f;_0x2c946f;){if(_0x116988+=_0x1911b3,_0x2c946f=this['getRevision'](_0x116988),!_0x2c946f)return;_0x3cce51(_0x2c946f)&&(yield _0x2c946f);}}}class $ extends _0x3eb3aa{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x52a5bf,'c'],[_0x9e99a5,'a'],[_0x210494,'e'],[_0x17023c,'r'],[_0x1cfc00,'u']]);['_typeCharToViewClass']=new Map([['c',_0x52a5bf],['a',_0x9e99a5],['e',_0x210494],['r',_0x17023c],['u',_0x1cfc00]]);async['loadRevisionData'](_0x28f9ae,_0x12b59d){if(_0x28f9ae['diffData']||!_0x12b59d)return;const _0x20e042=this['editor']['config']['get']('collaboration.channelId'),_0x4e17c1=await _0x12b59d['getRevision']({'channelId':_0x20e042,'revisionId':_0x28f9ae['id']});_0x28f9ae['diffData']=_0x4e17c1['diffData'];}['getRevisionDocumentData'](_0x3d2196){const _0x589c49={};for(const _0x2927fc in _0x3d2196['diffData']){if(_0x3d2196['diffData'][_0x2927fc]['attachChange']&&!_0x3d2196['diffData'][_0x2927fc]['attachChange']['isAttached'])continue;const _0x43ed72=this['_removeRevisionMarkers'](JSON['parse'](_0x3d2196['diffData'][_0x2927fc]['insertions'])),_0x5e6594=this['editor']['editing']['view']['document'],_0x438cbe=new _0x5212ca(_0x5e6594,_0x43ed72['map'](_0xa338a2=>this['_getViewFromDiffObj'](_0xa338a2,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x589c49[_0x2927fc]=this['editor']['data']['processor']['toData'](_0x438cbe),this['editor']['data']['processor']['useFillerType']('default');}return _0x589c49;}['getRevisionRootsAttributes'](_0x3dc525){const _0x513dae={};for(const _0x105b04 in _0x3dc525['diffData'])_0x3dc525['diffData'][_0x105b04]['attachChange']&&!_0x3dc525['diffData'][_0x105b04]['attachChange']['isAttached']||(_0x513dae[_0x105b04]=_0x3dc525['diffData'][_0x105b04]['attributesAfter']||{});return _0x513dae;}['_getTypeCharForViewElement'](_0x45952e){return this['_viewClassToTypeChar']['get'](_0x45952e['constructor']);}['_getViewFromDiffObj'](_0x324268,_0x134a9a){const _0x2556d2=this['editor']['editing']['view']['document'];if('string'==typeof _0x324268)return new _0x37676c(_0x2556d2,_0x324268);{let _0x3a5946,_0x13fd84;_0x13fd84='u'==_0x324268['type']||'r'==_0x324268['type']?[]:_0x324268['children']['map'](_0x1d7d9e=>this['_getViewFromDiffObj'](_0x1d7d9e,_0x134a9a));const _0x1768e1=this['_typeCharToViewClass']['get'](_0x324268['type'])||_0x552d48,_0x2a9047=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3a5946=new _0x1768e1(_0x2556d2,_0x324268['name'],_0x324268['attributes'],_0x13fd84),'u'==_0x324268['type']&&_0x324268['children'][0x0]){const _0x2e56fe=_0x324268['children'][0x0];if(_0x3a5946['render']=function(_0x2c8ad8){const _0x45b6f1=_0x2c8ad8['createElement']('div');return _0x45b6f1['innerHTML']=_0x2e56fe,_0x45b6f1['childNodes'][0x0];},_0x134a9a){const _0x5576bf=new _0x5212ca(_0x2556d2);_0x5576bf['_appendChild'](_0x3a5946);const _0x4a1405=Array['from'](_0x2a9047['viewChildrenToDom'](_0x5576bf,{'bind':!0x1})),_0x51f66f=_0x2a9047['domDocument']['createElement']('div');_0x51f66f['append'](..._0x4a1405),_0x3a5946=Array['from'](_0x2a9047['domChildrenToView'](_0x51f66f))[0x0];}}else{if('r'==_0x324268['type']&&_0x324268['children'][0x0]){const _0x5bb039=_0x324268['children'][0x0];if(_0x3a5946['render']=function(_0x2ee55a){_0x2ee55a['innerHTML']=_0x5bb039;},_0x134a9a){const _0x44f4c2=new _0x5212ca(_0x2556d2);_0x44f4c2['_appendChild'](_0x3a5946);const _0x33cc30=Array['from'](_0x2a9047['viewChildrenToDom'](_0x44f4c2,{'bind':!0x1})),_0x3de130=_0x2a9047['domDocument']['createElement']('div');_0x3de130['append'](..._0x33cc30);const _0x4b6506=Array['from'](_0x2a9047['domChildrenToView'](_0x3de130));_0x4b6506['length']>0x1?_0x3a5946['_appendChild'](_0x4b6506):_0x3a5946=_0x4b6506[0x0];}}}if(_0x324268['customProperties']){for(const [_0x1b1ce9,_0x4729ad]of _0x324268['customProperties'])_0x3a5946['_setCustomProperty'](_0x1b1ce9,_0x4729ad);}const _0x2e4082=void 0x0===_0x324268['fillerOffset']?null:_0x324268['fillerOffset'];return null!==_0x2e4082&&(_0x3a5946['getFillerOffset']=()=>_0x2e4082),_0x3a5946;}}['_makeModelFromViewString'](_0x4687dc){const _0x4ad5ae=JSON['parse'](_0x4687dc),_0x5df1eb=this['editor']['editing']['view']['document'],_0x5b121f=new _0x5212ca(_0x5df1eb,_0x4ad5ae['map'](_0x591f73=>this['_getViewFromDiffObj'](_0x591f73,!0x0)));return this['editor']['data']['toModel'](_0x5b121f);}['_removeRevisionMarkers'](_0x369780){return(_0x369780=_0x369780['filter'](_0x559604=>!_0x559604['name']||'revision-start'!==_0x559604['name']&&'revision-end'!==_0x559604['name']))['forEach'](_0x5931ed=>{'string'!=typeof _0x5931ed&&(_0x5931ed['children']=this['_removeRevisionMarkers'](_0x5931ed['children']),_0x5931ed['attributes']=_0x5931ed['attributes']['filter'](_0x215495=>!_0x215495[0x0]['startsWith']('data-revision-')));}),_0x369780;}}function R(_0x218a74,_0x363e1a,_0x413963){const t=_0x218a74['t'];switch(_0x363e1a){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'},_0x413963);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x413963);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'';}}class h extends _0x3eb3aa{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x96df93,S,$,_0x36aded];}constructor(_0x3809a4){super(_0x3809a4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x184614=_0x5a28d0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x184614},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x18f457=this['repository']['getRevision'](0x0),_0x1957bf=_0x18f457&&null===_0x18f457['creator']?_0x18f457:null;if(this['_continueCurrentRevision']=!!_0x1957bf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x405fa2=this['_source']['getCurrentRevisionId'](),_0x2562e4=this['repository']['getRevision'](_0x405fa2);if(_0x2562e4)this['_startingVersion']=_0x2562e4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x186151=this['_source']['history']['_operations']['find'](_0x36761c=>!_0x36761c['_isInit']),_0x304fa1=_0x186151?_0x186151['baseVersion']:this['_source']['history']['version'];_0x18f457?(_0x18f457['toVersion']<_0x304fa1&&_0x18f457['_update']({'toVersion':_0x304fa1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1957bf['id'],this['_startingVersion']=_0x1957bf['fromVersion']):(this['_startingVersion']=_0x18f457['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x304fa1,this['_continueCurrentRevision']=!0x1);}}else _0x1957bf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1957bf['toVersion'],this['editor']['model']['document']['history']['version']),_0x1957bf['fromVersion']===_0x1957bf['toVersion']?(0x0!==_0x1957bf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1957bf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1957bf['id'],this['_startingVersion']=_0x1957bf['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',_0x21c9c8=>!_0x21c9c8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e7793=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17d8dd;for(const _0x24fe0a in _0x3e7793){const _0x150f2f=_0x24fe0a,_0xfec8be=_0x3e7793[_0x150f2f];if('revisionHistoryLicenseKeyValid'==_0xfec8be||'revisionHistoryLicenseKeyInvalid'==_0xfec8be||'revisionHistoryLicenseKeyExpired'==_0xfec8be||'revisionHistoryLicenseKeyDomainLimit'==_0xfec8be||'revisionHistoryLicenseKeyNotAllowed'==_0xfec8be||'revisionHistoryLicenseKeyEvaluationLimit'==_0xfec8be||'revisionHistoryLicenseKeyTrialLimit'==_0xfec8be||'revisionHistoryLicenseKeyUsageLimit'==_0xfec8be){delete _0x3e7793[_0x150f2f],_0x17d8dd=_0xfec8be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x17d8dd&&_0x3e7793['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x17d8dd&&_0x3e7793['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x17d8dd&&_0x3e7793['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x17d8dd&&_0x3e7793['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x17d8dd&&_0x3e7793['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x17d8dd&&_0x3e7793['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x17d8dd&&_0x3e7793['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x470ea3=this['repository']['getRevision'](0x0),_0x23d683=await this['getRevisionDocumentData'](_0x470ea3),_0xd489e7=await this['getRevisionRootsAttributes'](_0x470ea3);this['_replaceEditorDataWithRevisionData'](_0x23d683,_0xd489e7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2f8eab){this['_source']=_0x2f8eab;}async['update'](){const _0x2b1658=await this['_source']['getLatestVersion']();if(_0x2b1658>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c4719=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2b1658});_0x2c4719['authors']=_0x2c4719['authorsIds']['map'](_0x1767e9=>this['editor']['plugins']['get']('Users')['getUser'](_0x1767e9)),this['currentRevision']['_update'](_0x2c4719);}}async['saveRevision'](_0x3983bf={},_0xe1365c=null){const _0x345d0e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe1365c>this['currentRevision']['toVersion']&&(_0xe1365c=null),null===_0xe1365c&&(_0xe1365c=await this['_source']['getLatestVersion']());const _0x31df05=this['_getFromVersion'](_0xe1365c),_0x3c5b48=this['buildRevisionData']({'from':_0x31df05,'to':_0xe1365c});if(this['currentRevision']['toVersion']<_0xe1365c){const _0x21ed08=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe1365c,'to':_0xe1365c});_0x21ed08['authors']=[],_0x21ed08['authorsIds']=[],_0x21ed08['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x21ed08,!0x0),delete _0x21ed08['authors'],_0x345d0e['push'](_0x21ed08);}_0x3983bf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3983bf['name']=_0x3983bf['name']||null,_0x3983bf['id']=_0x3983bf['id']||_0x5a28d0(),_0x3983bf={..._0x3983bf,..._0x3c5b48};const _0x56a752=this['addRevisionData'](_0x3983bf);_0x345d0e['push'](_0x3983bf);const _0x19ef60=this['repository']['getIndex'](_0x56a752);if(0x0!==_0x19ef60){const _0x54bf49=this['repository']['getRevision'](_0x19ef60-0x1);if(_0x54bf49['fromVersion']!==_0xe1365c){const _0x75c44e=this['_revisionDataBuilder']['getData'](_0xe1365c,_0x54bf49['toVersion']),_0xcdd3df={'id':_0x54bf49['id'],'diffData':_0x75c44e['diffData'],'authorsIds':_0x75c44e['authorsIds'],'authors':_0x75c44e['authorsIds']['map'](_0xed6f0f=>this['editor']['plugins']['get']('Users')['getUser'](_0xed6f0f)),'fromVersion':_0xe1365c};_0x54bf49===this['currentRevision']&&(_0xcdd3df['createdAt']=new Date(_0x3983bf['createdAt']['getTime']()+0xa)),_0x54bf49['_update'](_0xcdd3df,!0x0),delete _0xcdd3df['authors'],_0x345d0e['push'](_0xcdd3df);}}if(this['adapter']){for(const _0x58f059 of _0x345d0e)this['_bufferUpdate'](_0x58f059['id'],_0x58f059,!0x0);this['sendBufferedUpdates']();}return _0x56a752;}['addRevisionData'](_0x3636b9){const _0x31a4b4=this['repository']['createRevision'](_0x3636b9);return this['adapter']&&_0x31a4b4['on']('_update',(_0x42c6b6,_0x52be78,_0x4bdabe)=>{_0x4bdabe||(this['_bufferUpdate'](_0x52be78['id'],_0x52be78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x31a4b4,this['_findInsertionIndex'](_0x31a4b4)),_0x31a4b4;}async['getRevisionDocumentData'](_0x29c992){return await this['_utils']['loadRevisionData'](_0x29c992,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x29c992);}async['getRevisionRootsAttributes'](_0x5efea1){return await this['_utils']['loadRevisionData'](_0x5efea1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5efea1);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4a335f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4fcdb2=0x0;_0x4fcdb2<_0x4a335f['length'];_0x4fcdb2++){const _0x53105d=_0x4a335f[_0x4fcdb2];let _0x7535f1=!0x1;for(const _0x4600a4 of Object['keys'](_0x53105d))void 0x0===_0x53105d[_0x4600a4]?delete _0x53105d[_0x4600a4]:'id'!==_0x4600a4&&(_0x7535f1=!0x0);_0x7535f1||(_0x4a335f[_0x4fcdb2]=null);}if(_0x4a335f=_0x4a335f['filter'](_0x281844=>null!==_0x281844),!_0x4a335f['length'])return;for(let _0x59ea12=0x0;_0x59ea12<_0x4a335f['length'];_0x59ea12++){const _0x447331=_0x4a335f[_0x59ea12];void 0x0!==_0x447331['fromVersion']&&void 0x0===_0x447331['toVersion']&&(_0x447331['toVersion']=this['repository']['getRevision'](_0x447331['id'])['toVersion']),void 0x0!==_0x447331['toVersion']&&void 0x0===_0x447331['fromVersion']&&(_0x447331['fromVersion']=this['repository']['getRevision'](_0x447331['id'])['fromVersion']);}const _0x4296c7=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4a335f,_0x4296c7)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x57d6bd=>{if(_0x57d6bd){for(const _0x64489c of _0x57d6bd)this['setRevisionData']({'id':_0x64489c['id'],'createdAt':_0x64489c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x6ab52b=null,from:_0x30c85c=null,to:_0x3df78b=null}){_0x30c85c=null!==_0x30c85c?_0x30c85c:_0x6ab52b['fromVersion'],_0x3df78b=null!==_0x3df78b?_0x3df78b:_0x6ab52b['toVersion'];const _0x1150e8=this['_revisionDataBuilder']['getData'](_0x30c85c,_0x3df78b),_0x1db40e={'diffData':_0x1150e8['diffData'],'authorsIds':_0x1150e8['authorsIds'],'fromVersion':_0x30c85c,'toVersion':_0x3df78b};if(!_0x6ab52b||_0x3df78b!==_0x6ab52b['toVersion']){const _0x3cd297=_0x3df78b-0x1,_0x2f98ee=this['_source']['history']['getOperation'](_0x3cd297);_0x1db40e['createdAt']=_0x2f98ee&&_0x2f98ee['createdAt']||new Date();}if(this['_loadedStateData']&&_0x30c85c===this['_loadedStateData']['fromVersion']){for(const _0x50821a of this['_loadedStateData']['authors'])_0x1db40e['authorsIds']['includes'](_0x50821a['id'])||_0x1db40e['authorsIds']['push'](_0x50821a['id']);}return _0x1db40e;}['_bufferUpdate'](_0x57a373,_0x161503,_0xba6c51){if(this['_bufferedUpdates']['has'](_0x57a373)){const _0x1b599d=this['_bufferedUpdates']['get'](_0x57a373);_0x161503=_0xba6c51?{..._0x1b599d,..._0x161503}:{..._0x161503,..._0x1b599d};}this['_bufferedUpdates']['set'](_0x57a373,_0x161503);}['setRevisionData'](_0x43d713){const _0x4220ff=this['repository']['getRevision'](_0x43d713['id']);if(_0x43d713['createdAt']&&(_0x43d713['createdAt']=new Date(_0x43d713['createdAt'])),_0x43d713['authorsIds']){const _0x25f09e=this['editor']['plugins']['get']('Users');_0x43d713['authors']=_0x43d713['authorsIds']['map'](_0x1a6008=>_0x25f09e['getUser'](_0x1a6008));}_0x4220ff['_update'](_0x43d713,!0x0);}['_createInitialRevision'](_0x54fec2){const _0x11c844=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x11c844)this['_initialRevisionId']=_0x11c844['id'];else{const _0x115908=!this['editor']['model']['document']['roots']['find'](_0x563fb9=>this['editor']['model']['hasContent'](_0x563fb9)),_0x81b2b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x40d4fc=R(this['editor']['locale'],_0x115908?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x54fec2,'to':_0x54fec2,'id':this['_initialRevisionId'],'name':_0x40d4fc,'creatorId':_0x81b2b6});}}['_createCurrentRevision'](_0x4e30fe){const _0x3899df=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3899df),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4e30fe,'to':_0x4e30fe,'id':_0x3899df,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3b8022,_0x2f1b8d){let _0x267ebe=this['editor']['config']['get']('initialData'),_0x2d6ae9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x267ebe){_0x267ebe={};for(const _0x4ceaac of this['editor']['model']['document']['getRootNames']())_0x267ebe[_0x4ceaac]='';}if('string'==typeof _0x267ebe&&(_0x267ebe={'main':_0x267ebe}),void 0x0===_0x2d6ae9){_0x2d6ae9={};for(const _0x4955e4 of this['editor']['model']['document']['getRootNames']())_0x2d6ae9[_0x4955e4]={};}let _0x153f98=!0x1;const _0x1e7b40=Object['keys'](_0x267ebe),_0x34dd7=Object['keys'](_0x3b8022);for(const _0x8a8dfd of _0x1e7b40){if(_0x267ebe[_0x8a8dfd]!==_0x3b8022[_0x8a8dfd]&&''!==_0x267ebe[_0x8a8dfd]['trim']()){_0x153f98=!0x0;break;}if(!_0x45c480(_0x2d6ae9[_0x8a8dfd],_0x2f1b8d[_0x8a8dfd])&&Object['keys'](_0x2d6ae9[_0x8a8dfd])['length']>0x0){_0x153f98=!0x0;break;}}_0x153f98||(_0x153f98=_0x34dd7['some'](_0x161b64=>!this['editor']['model']['document']['getRoot'](_0x161b64))),_0x153f98&&_0x3b9bbb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x267ebe,'editorRootsAttributes':_0x2d6ae9,'revisionData':_0x3b8022,'revisionRootsAttributes':_0x2f1b8d}),this['editor']['config']['set']('initialData',_0x3b8022),this['editor']['config']['set']('rootsAttributes',_0x2f1b8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2568f9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2568f9['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x292c10){const _0x3595ce=this['repository']['getRevisions']();_0x3595ce['reverse']();let _0x223ae3=0x0;for(;_0x223ae3<_0x3595ce['length'];){const _0x1345ec=_0x3595ce[_0x223ae3];if(_0x1345ec===this['currentRevision']){_0x223ae3++;continue;}if(_0x1345ec['id']===this['_initialRevisionId'])break;const _0x2997a9=_0x292c10['toVersion']-_0x1345ec['toVersion']||_0x292c10['fromVersion']-_0x1345ec['fromVersion'];if(_0x2997a9>0x0)break;if(_0x2997a9<0x0)_0x223ae3++;else{if(!_0x292c10['creator']&&_0x1345ec['creator'])break;if(_0x1345ec['creator']||!_0x292c10['creator']){if(_0x292c10['createdAt']>_0x1345ec['createdAt'])break;_0x223ae3++;}else _0x223ae3++;}}return _0x223ae3;}['_getFromVersion'](_0x59ecf1){const _0x41be77=this['repository']['getRevisions']();_0x41be77['reverse'](),_0x41be77['shift']();const _0x2f2162=_0x41be77['find'](_0x4ac760=>_0x4ac760['toVersion']<=_0x59ecf1)['toVersion'];return _0x2f2162<this['_startingVersion']?this['_startingVersion']:_0x2f2162;}['_makeRevision']({name:_0x39d7e1,from:_0x139495,to:_0x23a797,creatorId:_0x2d0cdc,id:_0x4f6051}){const _0x4ced4d=this['buildRevisionData']({'from':_0x139495,'to':_0x23a797});_0x4ced4d['name']=_0x39d7e1,_0x4ced4d['creatorId']=_0x2d0cdc,_0x4ced4d['id']=_0x4f6051;const _0x18b4bf=this['addRevisionData'](_0x4ced4d);return this['adapter']&&this['_bufferUpdate'](_0x4ced4d['id'],_0x4ced4d,!0x0),_0x18b4bf;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2f35c1){this['editor']=_0x2f35c1,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'](_0x159d84){this['source']=_0x159d84;const _0x2a6b49=new Map(),_0x980595=new Map(),_0xdd1f41=this['editor']['model']['document']['roots']['map'](_0x204906=>_0x204906['rootName']);for(const _0x328525 of _0xdd1f41){const _0x115892=this['editor']['model']['document']['getRoot'](_0x328525),_0xd7d03e=x(_0x115892);_0x2a6b49['set'](_0x328525,_0xd7d03e),_0x980595['set'](_0x328525,Object['fromEntries'](_0x115892['getAttributes']()));}const _0x23a679=Array['from'](this['editor']['model']['markers'])['map'](_0x23cfb2=>[_0x23cfb2['name'],_0x23cfb2['getRange']()]),_0x3d4f80=this['source']['version'];this['_saveMetaData'](_0x3d4f80,_0x2a6b49,_0x23a679,_0x980595),this['_startingRevisionId']=this['_revisionId'];const _0x156224=new Map(),_0xe31aac=new Map();for(const _0x2ba02d of _0xdd1f41){const _0x274a55=N(_0x2ba02d);_0x156224['set'](_0x2ba02d,_0x274a55),_0xe31aac['set'](_0x2ba02d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x156224,[],_0xe31aac);}['getData'](_0x28c841,_0x24400f){if(this['_lastFrom']===_0x28c841&&this['_lastTo']<=_0x24400f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x24400f,!0x0);else{if(!this['_savedMetaData']['has'](_0x28c841)){const _0x52dc80=this['_getPreviousFrom'](_0x28c841);this['_calculateMetaData'](_0x52dc80,_0x28c841,!0x1);}this['_calculateMetaData'](_0x28c841,_0x24400f,!0x0);}return this['_lastFrom']=_0x28c841,this['_lastTo']=_0x24400f,this['_getState']();}['loadState'](_0x52e0f4){const _0x509519=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x52e0f4['fromVersion'],this['_lastTo']=_0x52e0f4['toVersion'];for(const _0x2f6bb6 in _0x52e0f4['diffData']){const _0x5f2cb2=_0x52e0f4['diffData'][_0x2f6bb6]['attachChange'],_0x23df06=_0x2d156f(_0x52e0f4['diffData'][_0x2f6bb6]['attributesBefore'])||{},_0x535dff=_0x509519['_makeModelFromViewString'](_0x52e0f4['diffData'][_0x2f6bb6]['deletions']);_0x535dff['rootName']=_0x2f6bb6,_0x535dff['_isAttached']=!_0x5f2cb2||!_0x5f2cb2['isAttached'],_0x535dff['isAttached']=()=>_0x535dff['_isAttached'],this['_baseRoots']['set'](_0x2f6bb6,_0x535dff),this['_baseRootsAttributes']['set'](_0x2f6bb6,_0x23df06),_0x5f2cb2&&this['_touchedRoots']['set'](_0x2f6bb6,_0x5f2cb2);const _0x254a1a=this['_makeIdsRoot'](_0x535dff);this['_baseIdsRoots']['set'](_0x2f6bb6,_0x254a1a);for(const [_0x7c6779,_0x1d9e4b]of _0x535dff['markers']){if(!_0x7c6779['startsWith']('revision:'))continue;const _0x50ff6f=_0x7c6779['split'](':')[0x2];for(const _0x357db7 of _0x1d9e4b['getWalker']({'singleCharacters':!0x0})){const _0x4c604c=this['_getVidAttributeName'](_0x357db7),_0x543c73='elementEnd'==_0x357db7['type']?_0x357db7['previousPosition']['path']['slice'](0x0,-0x1):_0x357db7['previousPosition']['path'],_0x520a70=_0x254a1a['getNodeByPath'](_0x543c73)['getAttribute'](_0x4c604c);this['_touched']['set'](_0x520a70,{'userId':_0x50ff6f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4bc3d8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x59c135=>!this['_touched']['has'](_0x59c135));let _0x30b76e=0x0;const _0x565270=new Map();for(const _0x3e3340 in _0x52e0f4['diffData']){const _0x3eb81e=_0x52e0f4['diffData'][_0x3e3340]['attachChange'],_0x310657=_0x2d156f(_0x52e0f4['diffData'][_0x3e3340]['attributesAfter'])||{},_0x12c22b=_0x509519['_makeModelFromViewString'](_0x52e0f4['diffData'][_0x3e3340]['insertions']);_0x12c22b['rootName']=_0x3e3340,_0x12c22b['_isAttached']=!_0x3eb81e||_0x3eb81e['isAttached'],_0x12c22b['isAttached']=()=>_0x12c22b['_isAttached'],this['_diffRoots']['set'](_0x3e3340,_0x12c22b),this['_diffRootsAttributes']['set'](_0x3e3340,_0x310657);const _0x354c55=this['_makeIdsRoot'](_0x12c22b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3e3340,_0x354c55),_0x565270['set'](_0x3e3340,_0x12c22b['isAttached']()?_0x310657:{});for(const [_0x6831ea,_0x553b54]of _0x12c22b['markers']){if(!_0x6831ea['startsWith']('revision:'))continue;const _0x2c7b9d=_0x6831ea['split'](':')[0x2];for(const _0x8a84f5 of _0x553b54['getWalker']({'singleCharacters':!0x0})){const _0x4f557f=this['_getVidAttributeName'](_0x8a84f5),_0x3bbe17=this['_revisionId']++,_0x2031b5='elementEnd'==_0x8a84f5['type']?_0x8a84f5['previousPosition']['path']['slice'](0x0,-0x1):_0x8a84f5['previousPosition']['path'];_0x354c55['getNodeByPath'](_0x2031b5)['_setAttribute'](_0x4f557f,_0x3bbe17),this['_touched']['set'](_0x3bbe17,{'userId':_0x2c7b9d});}}for(const _0x3a0f66 of this['editor']['model']['createRangeIn'](_0x12c22b)['getWalker']({'singleCharacters':!0x0})){const _0x25cb78=this['_getVidAttributeName'](_0x3a0f66),_0x330f91='elementEnd'==_0x3a0f66['type']?_0x3a0f66['previousPosition']['path']['slice'](0x0,-0x1):_0x3a0f66['previousPosition']['path'],_0x3d94bf=_0x354c55['getNodeByPath'](_0x330f91);_0x3d94bf['getAttribute'](_0x25cb78)>0x0||_0x3d94bf['_setAttribute'](_0x25cb78,_0x4bc3d8[_0x30b76e++]);}for(const [_0x142352,_0x1f0276]of _0x12c22b['markers'])_0x142352['startsWith']('revision:')||this['_markers']['set'](_0x142352,_0x1f0276);}const _0x57b1bd=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x57b1bd),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57b1bd,0x1));const _0x171512=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x171512),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x171512,0x1));const _0x25920f=Array['from'](this['_diffRoots'])['map'](([_0x58c33b,_0x542b9a])=>[_0x58c33b,x(_0x542b9a)]);this['_saveMetaData'](this['_lastTo'],_0x25920f,this['_markers'],_0x565270);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d218c,_0x2c3cfd,_0x34fa20,_0x967f72){const _0x29cb7e=new Map(_0x2c3cfd),_0x20d987=new Map(_0x2d156f(_0x967f72)),_0x1ec630=new Map();for(const [_0x33aa86,_0x36d0a0]of _0x34fa20)_0x1ec630['set'](_0x33aa86,{'start':_0x36d0a0['start']['clone'](),'end':_0x36d0a0['end']['clone'](),'rootName':_0x36d0a0['root']['rootName']});this['_savedMetaData']['set'](_0x5d218c,{'roots':_0x29cb7e,'markers':_0x1ec630,'rootsAttributes':_0x20d987});}['_removeMetaData'](_0x2f799f){this['_savedMetaData']['delete'](_0x2f799f);}['_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'](_0x9121bc,_0x1f1cbc=null){let _0x43ea9d=null;_0x9121bc['is']('documentFragment')||(_0x43ea9d=new _0x149904(_0x9121bc['name'],{'vid_start':null===_0x1f1cbc?this['_revisionId']++:_0x1f1cbc++}));const _0x5b1329=[];for(const _0x3c5a16 of _0x9121bc['getChildren']())if(_0x3c5a16['is']('element')){_0x5b1329['push'](this['_makeIdsRoot'](_0x3c5a16,_0x1f1cbc));const _0x34e392=_0x5b1329[_0x5b1329['length']-0x1];null!==_0x1f1cbc&&(_0x1f1cbc=_0x34e392['is']('element','$text')?_0x34e392['getAttribute']('vid')+0x1:_0x34e392['getAttribute']('vid_end')+0x1);}else{for(let _0x52a7e9=0x0;_0x52a7e9<_0x3c5a16['offsetSize'];_0x52a7e9++)_0x5b1329['push'](new _0x149904('$text',{'vid':null===_0x1f1cbc?this['_revisionId']++:_0x1f1cbc++}));}if(_0x9121bc['is']('documentFragment')){const _0xe93864=N(_0x9121bc['rootName']);return _0xe93864['_insertChild'](0x0,_0x5b1329),_0xe93864;}return _0x43ea9d['_setAttribute']('vid_end',null===_0x1f1cbc?this['_revisionId']++:_0x1f1cbc++),_0x43ea9d['_insertChild'](0x0,_0x5b1329),_0x43ea9d;}['_calculateMetaData'](_0x320dbb,_0x410061,_0x67b42a){this['_reset']();const {roots:_0x478968,markers:_0x55ac3c,rootsAttributes:_0x5b93c2}=this['_savedMetaData']['get'](_0x320dbb);this['_baseRoots']=new Map(_0x478968),this['_baseRootsAttributes']=new Map(_0x2d156f(_0x5b93c2));for(const [_0x42b816,_0x4be421]of this['_baseRoots'])if('$graveyard'!==_0x42b816&&(this['_diffRoots']['set'](_0x42b816,x(_0x4be421)),this['_diffRootsAttributes']=new Map(_0x2d156f(_0x5b93c2)),_0x67b42a)){const _0x1daa5b=this['_revisionId'];this['_idsRoots']['set'](_0x42b816,this['_makeIdsRoot'](_0x4be421)),this['_baseIdsRoots']['set'](_0x42b816,this['_makeIdsRoot'](_0x4be421,_0x1daa5b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x67b42a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xbbb189,_0x18b2d4]of _0x55ac3c){const _0x4712bd=this['_baseRoots']['get'](_0x18b2d4['rootName']),_0x3da28c=this['_diffRoots']['get'](_0x18b2d4['rootName']),_0x34f4fa=new _0x2ac226(this['_fixPosition'](_0x18b2d4['start'],_0x4712bd),this['_fixPosition'](_0x18b2d4['end'],_0x4712bd)),_0x17ff4e=this['_fixRange'](_0x34f4fa,_0x3da28c);_0x4712bd['markers']['set'](_0xbbb189,_0x34f4fa),this['_markers']['set'](_0xbbb189,_0x17ff4e);}this['_applyOperations'](_0x320dbb,_0x410061,_0x67b42a);}['_applyOperations'](_0x1d38cd,_0x4b209f,_0x1f879e){for(const _0x4b7de0 of this['source']['getOperations'](_0x1d38cd,_0x4b209f))this['_handleOperation'](_0x4b7de0,_0x1f879e);for(const _0x36bb7a of this['_diffRoots']['values']())_0x36bb7a['markers']['clear']();for(const [_0x2e6cf3,_0x5ace8e]of this['_markers']){this['_diffRoots']['get'](_0x5ace8e['root']['rootName'])['markers']['set'](_0x2e6cf3,_0x5ace8e['clone']());}const _0x2fc5f5=new Map(),_0x439493=new Map();for(const [_0x5700d4,_0x4b074f]of this['_diffRoots'])_0x2fc5f5['set'](_0x5700d4,x(_0x4b074f)),_0x439493['set'](_0x5700d4,this['_diffRootsAttributes']['get'](_0x5700d4));this['_saveMetaData'](_0x4b209f,_0x2fc5f5,this['_markers'],_0x439493);}['_getPreviousFrom'](_0x4f9045){const _0x132072=Array['from'](this['_savedMetaData']['keys']());_0x132072['sort']((_0x47b377,_0x496a6b)=>_0x47b377-_0x496a6b),_0x132072['reverse']();for(const _0x5020f5 of _0x132072)if(_0x5020f5<_0x4f9045)return _0x5020f5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3c9e12,_0x1be511){const _0x28b331=Array['from'](_0x1be511['markers'])['map'](([_0x48b0ea,_0x48575e])=>[_0x48b0ea,this['_fixRange'](_0x48575e,_0x3c9e12)]);_0x3c9e12['markers']=new Map(_0x28b331);}['_transformMarkers'](_0x5722a0){for(const _0x50629a of this['_markers']['values']()){const _0x4fbfb3=_0x50629a['getTransformedByOperation'](_0x5722a0),_0x3c48d7=_0x2ac226['_createFromRanges'](_0x4fbfb3);_0x50629a['start']=_0x3c48d7['start'],_0x50629a['end']=_0x3c48d7['end'];}}['_handleOperation'](_0x5840bc,_0x229a78){if('addRoot'!=_0x5840bc['type']&&'detachRoot'!=_0x5840bc['type']){if('insert'==_0x5840bc['type']){const _0x336c38=_0x5840bc['position']['root']['rootName'];this['_diffRoots']['has'](_0x336c38)||(this['_diffRoots']['set'](_0x336c38,N(_0x336c38,!0x0)),this['_diffRootsAttributes']['set'](_0x336c38,{}),_0x229a78&&this['_idsRoots']['set'](_0x336c38,N(_0x336c38,!0x0)));}else{if('addRootAttribute'==_0x5840bc['type']||'removeRootAttribute'==_0x5840bc['type']||'changeRootAttribute'==_0x5840bc['type'])return void this['_handleRootAttributeOperation'](_0x5840bc);'marker'==_0x5840bc['type']&&this['_handleMarkerOperation'](_0x5840bc);}if('marker'!==_0x5840bc['type']){const _0x11d4aa=this['_cloneOperation'](_0x5840bc,this['_diffRoots']);_0x11d4aa['_execute'](),this['_transformMarkers'](_0x11d4aa);}if(_0x229a78)switch(_0x5840bc['type']){case'insert':this['_handleInsertOperation'](_0x5840bc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5840bc);break;case'merge':this['_handleMergeOperation'](_0x5840bc);break;case'split':this['_handleSplitOperation'](_0x5840bc);}}else this['_handleRootOperation'](_0x5840bc,_0x229a78);}['_cloneOperation'](_0x46ae57,_0x1b63bd){const _0x2cdc08=_0x46ae57['clone']();return _0x2cdc08['_authorId']=_0x46ae57['_authorId'],this['_fixOperation'](_0x2cdc08,_0x1b63bd),_0x2cdc08;}['_getBaseVids'](_0x580cd9){return _0x580cd9['map'](_0x5ce4cd=>{const _0x1017f4=this['_getVidAttributeName'](_0x5ce4cd);return Number(_0x5ce4cd['item']['getAttribute'](_0x1017f4));});}['_generateTape'](_0x3acfee,_0x440ec5){if(_0x3acfee['is']('element','$text'))_0x440ec5['push']({'item':_0x3acfee,'type':'text'});else{_0x3acfee['is']('element')&&_0x440ec5['push']({'item':_0x3acfee,'type':'elementStart'});for(const _0x520b0d of _0x3acfee['getChildren']())this['_generateTape'](_0x520b0d,_0x440ec5);_0x3acfee['is']('element')&&_0x440ec5['push']({'item':_0x3acfee,'type':'elementEnd'});}return _0x440ec5;}['_getState'](){const _0x4f41df=new Map(this['_touched']),_0x47f8bc=new Map(_0x4f41df),_0x19e9db=new Map(),_0x15558d={'insertions':{},'deletions':{}},_0x4a5b11={'insertions':{},'deletions':{}},_0x46a53c=new Map(),_0x3362f0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3362f0['delete']('$graveyard');for(const _0x16dea4 of _0x3362f0){const _0x5e7b08=this['_diffRoots']['get'](_0x16dea4)||N(_0x16dea4,!0x1),_0x14c60b=this['_baseRoots']['get'](_0x16dea4)||N(_0x16dea4,!0x1);_0x5e7b08['isAttached']()||_0x14c60b['isAttached']()?(_0x15558d['insertions'][_0x16dea4]=x(_0x5e7b08),_0x15558d['deletions'][_0x16dea4]=x(_0x14c60b),this['_copyMarkers'](_0x15558d['deletions'][_0x16dea4],_0x14c60b),this['_copyMarkers'](_0x15558d['insertions'][_0x16dea4],_0x5e7b08),_0x4a5b11['insertions'][_0x16dea4]=this['_generateTape'](this['_idsRoots']['get'](_0x16dea4),[]),_0x4a5b11['deletions'][_0x16dea4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x16dea4)||N(_0x16dea4,!0x1),[])):_0x3362f0['delete'](_0x16dea4);}for(const _0x49ab0f of _0x3362f0){const _0x1474f8=_0x4a5b11['insertions'][_0x49ab0f];for(const _0x3841b8 of _0x1474f8){const _0x1852cc=this['_getVidAttributeName'](_0x3841b8),_0x41b2d3=_0x3841b8['item']['getAttribute'](_0x1852cc);_0x47f8bc['delete'](_0x41b2d3),_0x41b2d3>=this['_startingRevisionId']&&_0x19e9db['set'](_0x41b2d3,_0x4f41df['get'](_0x41b2d3));}}for(const _0x5097d7 of _0x3362f0){const _0x283e13=_0x4a5b11['insertions'][_0x5097d7],_0x4e7793=this['_getBaseVids'](_0x4a5b11['deletions'][_0x5097d7]);let _0x2d0d7d=0x0;for(const _0x6e2526 of _0x283e13){const _0x32d5ef=this['_getVidAttributeName'](_0x6e2526),_0x210615=_0x6e2526['item']['getAttribute'](_0x32d5ef);if(!_0x19e9db['has'](_0x210615)&&!_0x46a53c['has'](_0x210615)){if(_0x47f8bc['has'](_0x210615))_0x2d0d7d++;else{if(_0x210615!=_0x4e7793[_0x2d0d7d]){const _0x1578ca=_0x4f41df['get'](_0x210615)||_0x4f41df['get'](_0x4e7793[_0x2d0d7d]);for(;_0x210615!=_0x4e7793[_0x2d0d7d];)_0x47f8bc['has'](_0x4e7793[_0x2d0d7d])||(_0x46a53c['set'](_0x4e7793[_0x2d0d7d],_0x1578ca),_0x4f41df['set'](_0x4e7793[_0x2d0d7d],_0x1578ca)),_0x2d0d7d++;}_0x2d0d7d++;}}}}for(const _0x35324c of _0x3362f0){const _0x5f2154=_0x4a5b11['insertions'][_0x35324c];for(const _0x5d7dd6 of _0x5f2154){const _0x2a4f33=this['_getVidAttributeName'](_0x5d7dd6),_0x2894e6=_0x5d7dd6['item']['getAttribute'](_0x2a4f33);if(_0x46a53c['has'](_0x2894e6)){const _0x565b19=_0x46a53c['get'](_0x2894e6);_0x47f8bc['has'](_0x2894e6)||_0x47f8bc['set'](_0x2894e6,{..._0x565b19}),_0x19e9db['set'](_0x2894e6,{..._0x565b19});}}}for(const _0x3a80ee of _0x47f8bc['keys']())_0x3a80ee>=this['_startingRevisionId']&&_0x47f8bc['delete'](_0x3a80ee);const _0x521167=new Map();for(const _0x150f8c of _0x3362f0){let _0xf7fd89=_0x4a5b11['insertions'][_0x150f8c];for(const _0x34436 of _0xf7fd89)if(_0x34436['item']['is']('element','tableCell')){const _0x400ad7=this['_getVidAttributeName'](_0x34436),_0x27238d=_0x34436['item']['getAttribute'](_0x400ad7);if(_0x19e9db['has'](_0x27238d)){const _0x27d227=_0x34436['item']['parent']['parent']['getAttribute']('vid_start'),_0x2eb65c=_0x521167['get'](_0x27d227)||new Set();_0x2eb65c['add'](_0x19e9db['get'](_0x27238d)['userId']),_0x521167['set'](_0x27d227,_0x2eb65c);}}_0xf7fd89=_0x4a5b11['deletions'][_0x150f8c];for(const _0x122034 of _0xf7fd89)if(_0x122034['item']['is']('element','tableCell')){const _0x85bfbd=this['_getVidAttributeName'](_0x122034),_0x4fa276=_0x122034['item']['getAttribute'](_0x85bfbd);if(_0x47f8bc['has'](_0x4fa276)){const _0x57bda1=_0x122034['item']['parent']['parent']['getAttribute']('vid_start'),_0x366d15=_0x521167['get'](_0x57bda1)||new Set();_0x366d15['add'](_0x47f8bc['get'](_0x4fa276)['userId']),_0x521167['set'](_0x57bda1,_0x366d15);}}for(const _0x339a55 of _0x521167['keys']())(_0x19e9db['has'](_0x339a55)||_0x47f8bc['has'](_0x339a55))&&_0x521167['delete'](_0x339a55);}for(const _0x180906 of _0x3362f0){const _0x4d1219=_0x4a5b11['insertions'][_0x180906];let _0x1afb64=null,_0x2f38b9=null;for(const _0x5528f5 of _0x4d1219){const _0x440f1a=this['_getVidAttributeName'](_0x5528f5),_0x3207e5=_0x5528f5['item']['getAttribute'](_0x440f1a),_0x46386d=_0x521167['get'](_0x3207e5);_0x46386d&&'elementStart'==_0x5528f5['type']&&(_0x1afb64=Array['from'](_0x46386d)[0x0],_0x2f38b9=_0x5528f5['item']['getAttribute']('vid_end')),_0x1afb64&&(_0x47f8bc['set'](_0x3207e5,{'userId':_0x1afb64}),_0x19e9db['set'](_0x3207e5,{'userId':_0x1afb64})),_0x3207e5==_0x2f38b9&&(_0x1afb64=null,_0x2f38b9=null);}}const _0x133cb8={},_0x19d32d=new Set();for(const _0x41b2f0 of _0x3362f0){const _0x14159e=_0x15558d['deletions'][_0x41b2f0],_0x4fe824=_0x15558d['insertions'][_0x41b2f0];for(const {userId:_0x5bb76b}of this['_touchedMarkers']['values']())null!==_0x5bb76b&&_0x19d32d['add'](_0x5bb76b);for(const {userId:_0x36efb5}of this['_touchedRoots']['values']())null!==_0x36efb5&&_0x19d32d['add'](_0x36efb5);this['_markChanges'](_0x4fe824,_0x4a5b11['insertions'][_0x41b2f0],_0x19e9db,'insertion',_0x19d32d),this['_markChanges'](_0x14159e,_0x4a5b11['deletions'][_0x41b2f0],_0x47f8bc,'deletion',_0x19d32d),_0x133cb8[_0x41b2f0]={'insertions':this['_prepareViewToSave'](_0x4fe824),'deletions':this['_prepareViewToSave'](_0x14159e),'attachChange':this['_touchedRoots']['get'](_0x41b2f0)||null,'attributesBefore':_0x2d156f(this['_baseRootsAttributes']['get'](_0x41b2f0))||{},'attributesAfter':_0x2d156f(this['_diffRootsAttributes']['get'](_0x41b2f0))};}return{'diffData':_0x133cb8,'authorsIds':Array['from'](_0x19d32d)};}['_processRootBeforeSave'](_0x38a8c8){for(const [,_0x14e85d]of _0x38a8c8['markers']){const _0x5737a4=_0x14e85d['start']['getAncestors']()['filter'](_0x1321ed=>'tableCell'==_0x1321ed['name']);for(const _0xf625d5 of _0x5737a4)0x1==_0xf625d5['childCount']&&_0xf625d5['getChild'](0x0)['is']('element','paragraph')&&_0xf625d5['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5bbb10){this['_processRootBeforeSave'](_0x5bbb10);const _0x39de21=this['editor']['data']['toView'](_0x5bbb10,{}),_0x536d25=Array['from'](_0x39de21['getChildren']())['map'](_0x31a2cb=>this['_getViewJson'](_0x31a2cb));return JSON['stringify'](_0x536d25);}['_getViewJson'](_0x5f3ca6){if(_0x5f3ca6['is']('$text'))return _0x5f3ca6['data'];{const _0x1591be=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x295171=_0x5f3ca6,_0x880278=this['editor']['data']['htmlProcessor']['domConverter'],_0x40a349={'type':_0x1591be['_getTypeCharForViewElement'](_0x295171),'name':_0x295171['name'],'attributes':Array['from'](_0x295171['getAttributes']()),'children':Array['from'](_0x295171['getChildren']())['map'](_0x58d422=>this['_getViewJson'](_0x58d422))};if(_0x5f3ca6['is']('uiElement')&&'$comment'!=_0x5f3ca6['name']){const _0x2a553d=_0x5f3ca6['render'](_0x880278['domDocument'],_0x880278);_0x40a349['children']['push'](_0x2a553d['outerHTML']);}else{if(_0x5f3ca6['is']('rawElement')){const _0x2cce59=_0x880278['domDocument']['createElement'](_0x295171['name']);_0x5f3ca6['render'](_0x2cce59,_0x880278),_0x40a349['children']['push'](_0x2cce59['innerHTML']);}}const _0x5c9e60=Array['from'](_0x295171['getCustomProperties']());_0x5c9e60['length']>0x0&&(_0x40a349['customProperties']=_0x5c9e60);const _0x268c69=_0x295171['getFillerOffset']();return null!==_0x268c69&&(_0x40a349['fillerOffset']=_0x268c69),_0x40a349;}}['_markChanges'](_0x503589,_0x177c52,_0x17b6b8,_0x556bf3,_0x5a82d7){let _0x21da3d=null,_0x41848e=null,_0x4574d7=0x0;const _0x21a956=this['editor']['model'];for(let _0xfd4ae1=0x0;_0xfd4ae1<_0x177c52['length'];_0xfd4ae1++){const _0x1ea232=this['_getVidAttributeName'](_0x177c52[_0xfd4ae1]),_0x5f08dd=_0x177c52[_0xfd4ae1]['item']['getAttribute'](_0x1ea232),_0x47a9bb=_0x17b6b8['get'](_0x5f08dd),_0x2f3d98=_0xfd4ae1==_0x177c52['length']-0x1;(!_0x21da3d&&_0x47a9bb&&(_0x21da3d=_0x47a9bb,_0x41848e=_0x177c52[_0xfd4ae1]),_0x21da3d&&(!_0x47a9bb||_0x47a9bb['userId']!=_0x21da3d['userId']))&&(_0x2e4326(_0x47a9bb,P(_0x41848e,_0x503589,_0x21a956),P(_0x177c52[_0xfd4ae1],_0x503589,_0x21a956)),_0x21da3d=_0x47a9bb||null,_0x41848e=_0x47a9bb?_0x177c52[_0xfd4ae1]:null),_0x21da3d&&_0x2f3d98&&_0x2e4326(_0x47a9bb,P(_0x41848e,_0x503589,_0x21a956),V(_0x177c52[_0xfd4ae1],_0x503589,_0x21a956));}function _0x2e4326(_0x295b42,_0x179e32,_0x56d97c){const _0x16a3d5=_0x21da3d['userId'],_0x559b6f='revision:'+_0x556bf3+':'+_0x16a3d5+':'+_0x4574d7++,_0x3dcb50=_0x21a956['createRange'](_0x179e32,_0x56d97c);_0x503589['markers']['set'](_0x559b6f,_0x3dcb50),null!==_0x16a3d5&&_0x5a82d7['add'](_0x16a3d5);}}['_getVidAttributeName'](_0xb2c15){switch(_0xb2c15['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x568bf8,_0x56fa63){_0x568bf8['baseVersion']=null;for(const _0x22980b in _0x568bf8){const _0x5aa999=_0x568bf8[_0x22980b];if(_0x5aa999 instanceof _0x2bac0b){const _0x262593=_0x56fa63['get'](_0x5aa999['root']['rootName']);_0x568bf8[_0x22980b]=this['_fixPosition'](_0x5aa999,_0x262593);}if(_0x5aa999 instanceof _0x2ac226){const _0x4fb803=_0x56fa63['get'](_0x5aa999['root']['rootName']);_0x568bf8[_0x22980b]=this['_fixRange'](_0x5aa999,_0x4fb803);}'root'===_0x22980b&&(_0x568bf8['root']=_0x56fa63['get'](_0x568bf8['root']['rootName']));}}['_fixRange'](_0xf0d8bc,_0x45f9e0){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf0d8bc['start'],_0x45f9e0),this['_fixPosition'](_0xf0d8bc['end'],_0x45f9e0));}['_fixPosition'](_0x2f9614,_0x15522e){return this['editor']['model']['createPositionFromPath'](_0x15522e,_0x2f9614['path'],_0x2f9614['stickiness']);}['_handleInsertOperation'](_0xedc9b0){const _0x3bad40=this['_idsRoots']['get'](_0xedc9b0['position']['root']['rootName']),_0x30ad0a=this['_fixPosition'](_0xedc9b0['position'],_0x3bad40),_0x22aa3c=null===_0xedc9b0['_authorId']?null:_0xedc9b0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2444f0=_0x30ad0a['parent'],_0x3d31d1=this['_revisionId'],_0x2dfcf4=[];for(const _0x55da0b of _0xedc9b0['nodes'])if(_0x55da0b['is']('element'))_0x2dfcf4['push'](this['_makeIdsRoot'](_0x55da0b));else{for(let _0x53b323=0x0;_0x53b323<_0x55da0b['offsetSize'];_0x53b323++)_0x2dfcf4['push'](new _0x149904('$text',{'vid':this['_revisionId']++}));}const _0x1b52b9=this['_revisionId'];for(let _0x3bedf7=_0x3d31d1;_0x3bedf7<_0x1b52b9;_0x3bedf7++)this['_touched']['set'](_0x3bedf7,{'userId':_0x22aa3c});_0x2444f0['_insertChild'](_0x30ad0a['offset'],_0x2dfcf4);}['_handleMoveOperation'](_0x351b8){(_0x351b8=this['_cloneOperation'](_0x351b8,this['_idsRoots']))['_execute']();const _0x51ece2=null===_0x351b8['_authorId']?null:_0x351b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15ec6c=_0x351b8['getMovedRangeStart'](),_0x15b4a7=_0x15ec6c['parent'],_0x58b355=_0x15ec6c['offset'];!function _0x1311f2(_0x4731ac,_0x5569b4,_0x11467a,_0x1f7d74){for(let _0x5a17d8=_0x11467a;_0x5a17d8<_0x1f7d74;_0x5a17d8++){const _0x122307=_0x5569b4['getChild'](_0x5a17d8);_0x122307['is']('element','$text')?_0x4731ac['set'](_0x122307['getAttribute']('vid'),{'userId':_0x51ece2}):(_0x4731ac['set'](_0x122307['getAttribute']('vid_start'),{'userId':_0x51ece2}),_0x1311f2(_0x4731ac,_0x122307,0x0,_0x122307['childCount']),_0x4731ac['set'](_0x122307['getAttribute']('vid_end'),{'userId':_0x51ece2}));}}(this['_touched'],_0x15b4a7,_0x58b355,_0x58b355+_0x351b8['howMany']);}['_handleMergeOperation'](_0x168138){const _0x5f4914=null===(_0x168138=this['_cloneOperation'](_0x168138,this['_idsRoots']))['_authorId']?null:_0x168138['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e6329=_0x168138['targetPosition']['parent'],_0x365f1e=_0x168138['sourcePosition']['parent'],_0x12cf6c=_0x1e6329['getAttribute']('vid_end'),_0x3a05cb=_0x365f1e['getAttribute']('vid_start');_0x1e6329['_setAttribute']('vid_end',_0x365f1e['getAttribute']('vid_end')),_0x365f1e['_setAttribute']('vid_end',_0x12cf6c),this['_touched']['set'](_0x3a05cb,{'userId':_0x5f4914}),this['_touched']['set'](_0x12cf6c,{'userId':_0x5f4914}),_0x168138['_execute']();}['_handleSplitOperation'](_0x2b056e){const _0x18aa5a=null===(_0x2b056e=this['_cloneOperation'](_0x2b056e,this['_idsRoots']))['_authorId']?null:_0x2b056e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21b150=_0x2b056e['graveyardPosition'],_0x194a2d=_0x2b056e['splitPosition']['parent'];_0x2b056e['_execute']();const _0x62873d=_0x194a2d['getAttribute']('vid_end'),_0x40075f=_0x2b056e['insertionPosition']['nodeAfter'];if(_0x21b150){const _0xbc1637=_0x40075f['getAttribute']('vid_end'),_0x4c91d7=_0x194a2d['getAttribute']('vid_end');_0x194a2d['_setAttribute']('vid_end',_0xbc1637),_0x40075f['_setAttribute']('vid_end',_0x4c91d7),this['_touched']['set'](_0x194a2d['getAttribute']('vid_end'),{'userId':_0x18aa5a}),this['_touched']['set'](_0x40075f['getAttribute']('vid_start'),{'userId':_0x18aa5a});}else{const _0x45605b=this['_revisionId']++,_0x452f55=this['_revisionId']++;_0x194a2d['_setAttribute']('vid_end',_0x45605b),_0x40075f['_setAttribute']('vid_start',_0x452f55),_0x40075f['_setAttribute']('vid_end',_0x62873d),this['_touched']['set'](_0x45605b,{'userId':_0x18aa5a}),this['_touched']['set'](_0x452f55,{'userId':_0x18aa5a});}}['_handleMarkerOperation'](_0x521d86){if(!_0x521d86['affectsData'])return;const _0x2c0924=(_0x521d86=this['_cloneOperation'](_0x521d86,this['_diffRoots']))['oldRange']?_0x521d86['oldRange']['root']:null,_0x5c51c2=_0x521d86['newRange']?_0x521d86['newRange']['root']:null;_0x2c0924&&this['_markers']['delete'](_0x521d86['name']),_0x5c51c2&&this['_markers']['set'](_0x521d86['name'],_0x521d86['newRange']['clone']());const _0x55ba69=null===_0x521d86['_authorId']?null:_0x521d86['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10049a=_0x521d86['name'];if(!this['_touchedMarkers']['has'](_0x10049a))return void this['_touchedMarkers']['set'](_0x10049a,{'range':_0x521d86['oldRange'],'userId':_0x55ba69});const _0xa74d81=this['_touchedMarkers']['get'](_0x10049a),_0x5b2f86=_0xa74d81['range'],_0x26e10b=_0x521d86['newRange'];null==_0x5b2f86&&null==_0x26e10b||_0x5b2f86&&_0x26e10b&&_0x5b2f86['isEqual'](_0x26e10b)?this['_touchedMarkers']['delete'](_0x521d86['name']):_0xa74d81['userId']=_0x55ba69;}['_handleRootOperation'](_0x435e6e,_0x1db06e){this['_diffRoots']['has'](_0x435e6e['rootName'])?this['_diffRoots']['get'](_0x435e6e['rootName'])['_isAttached']=_0x435e6e['isAdd']:(this['_diffRoots']['set'](_0x435e6e['rootName'],N(_0x435e6e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x435e6e['rootName'],{}),_0x1db06e&&this['_idsRoots']['set'](_0x435e6e['rootName'],N(_0x435e6e['rootName'],!0x0)));const _0x328724=null===_0x435e6e['_authorId']?null:_0x435e6e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376021=this['_touchedRoots']['get'](_0x435e6e['rootName']);_0x376021&&_0x376021['userId']===_0x328724?this['_touchedRoots']['delete'](_0x435e6e['rootName']):this['_touchedRoots']['set'](_0x435e6e['rootName'],{'userId':_0x328724,'isAttached':_0x435e6e['isAdd']});}['_handleRootAttributeOperation'](_0x46b483){const _0x53bb57=this['_diffRootsAttributes']['get'](_0x46b483['root']['rootName']);null===_0x46b483['newValue']?delete _0x53bb57[_0x46b483['key']]:_0x53bb57[_0x46b483['key']]=_0x46b483['newValue'];}}function x(_0xa5cd8e){const _0x1e9fa7=N(_0xa5cd8e['rootName'],_0xa5cd8e['isAttached']());for(const _0xec71e6 of _0xa5cd8e['getChildren']()){const _0x5cd7bc=_0xec71e6['_clone'](!0x0);_0x1e9fa7['_appendChild'](_0x5cd7bc);}return _0x1e9fa7;}function N(_0x464917,_0x3c5ac3=!0x0){const _0x45035c=new _0x55db8f();return _0x45035c['rootName']=_0x464917,_0x45035c['_isAttached']=_0x3c5ac3,_0x45035c['isAttached']=()=>_0x45035c['_isAttached'],_0x45035c;}function P(_0x36cedd,_0x132ba5,_0x29c4b8){const _0x1479c8='elementEnd'==_0x36cedd['type']?_0x29c4b8['createPositionAt'](_0x36cedd['item'],'end'):_0x29c4b8['createPositionBefore'](_0x36cedd['item']);return _0x29c4b8['createPositionFromPath'](_0x132ba5,_0x1479c8['path'],_0x1479c8['stickiness']);}function V(_0x45916b,_0x292bea,_0x14261b){const _0x18c2ec='elementStart'==_0x45916b['type']?_0x14261b['createPositionAt'](_0x45916b['item'],0x0):_0x14261b['createPositionAfter'](_0x45916b['item']);return _0x14261b['createPositionFromPath'](_0x292bea,_0x18c2ec['path'],_0x18c2ec['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x9b8b8b(_0x42faba){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13b1e7,_0x4a9a5e){super(_0x13b1e7),this['focusTracker']=new _0x20a531(),this['keystrokes']=new _0x4b159a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4a9a5e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x4794bb({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x587eea=_0x3eb052=>_0x3eb052['stopPropagation']();this['keystrokes']['set']('arrowright',_0x587eea),this['keystrokes']['set']('arrowleft',_0x587eea),this['keystrokes']['set']('arrowup',_0x587eea),this['keystrokes']['set']('arrowdown',_0x587eea);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2508f2){this['revisionNameInputView']['fieldView']['element']['value']=_0x2508f2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xd1f500){const _0x2b1e19=new ti(this['locale'],_0x3269f8),_0x5f36a0=_0x2b1e19['fieldView'];_0x5f36a0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b7f3a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xd1f500&&(_0x5b7f3a+='\x20('+R(this['locale'],'optional')+')'),(_0x2b1e19['label']=_0x5b7f3a,_0x5f36a0['on']('input',()=>{this['revisionNameInputValue']=_0x5f36a0['element']['value']['trim']();}),_0x2b1e19);}}class v extends _0x3eb3aa{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1d39d0=this['editor'],_0x3ab78f=_0x1d39d0['plugins']['get']('RevisionTracker');_0x1d39d0['ui']['componentFactory']['add']('revisionHistory',_0x2720b6=>{const _0x4d8f45=_0xf860ea(_0x2720b6),_0x5aa469=_0x4d8f45['panelView']['children'],_0x547257=new _0x473d88(_0x2720b6),_0x49a2e9=new _0x29c64b(_0x2720b6),_0x4e1782=new _0x3eb7b4(_0x2720b6),_0x6b38e8=new _0x29c64b(_0x2720b6),_0x3d80ed=new _0x3eb7b4(_0x2720b6);return _0x4d8f45['bind']('isEnabled')['to'](_0x3ab78f,'isReady',_0x3ab78f,'isEnabled',_0x1d39d0,'isReadOnly',(_0x51b11b,_0x1b85c9,_0x41adfc)=>_0x51b11b&&_0x1b85c9&&!_0x41adfc),_0x4d8f45['buttonView']['set']({'icon':_0x27c55e,'label':R(_0x2720b6,'Revision\x20history'),'tooltip':!0x0}),_0x4e1782['set']({'label':R(_0x2720b6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4e1782['bind']('isEnabled')['to'](_0x3ab78f,'isReady',_0x3ab78f,'isEnabled',_0x1d39d0,'isReadOnly',(_0x5f3596,_0x279d4b,_0x5735ac)=>_0x5f3596&&_0x279d4b&&!_0x5735ac),_0x4e1782['on']('execute',()=>this['_showDialog']()),_0x3d80ed['set']({'label':R(_0x2720b6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3d80ed['bind']('isEnabled')['to'](_0x3ab78f,'isReady',_0x1d39d0,'isReadOnly',(_0x5a39f5,_0xb40cf8)=>_0x5a39f5&&!_0xb40cf8),_0x3d80ed['on']('execute',()=>{_0x1d39d0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4d8f45['isOpen']=!0x1,_0x1d39d0['editing']['view']['focus']();}),_0x49a2e9['children']['add'](_0x4e1782),_0x6b38e8['children']['add'](_0x3d80ed),_0x547257['role']='menu',_0x547257['items']['addMany']([_0x49a2e9,_0x6b38e8]),_0x5aa469['add'](_0x547257),_0x4d8f45;}),_0x1d39d0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x376e9f=this['editor'],_0x3f9c22=_0x376e9f['locale'],_0x3a29db=new _0x2627a2(_0x3f9c22),_0x486a35=new _0x23222d(_0x3f9c22);_0x3a29db['buttonView']['set']({'icon':_0x27c55e,'label':R(_0x3f9c22,'Revision\x20history')});const _0x1a94ff=new _0x5e3c23(_0x3f9c22,_0x3a29db),_0x4f1c57=new _0x18cd47(_0x3f9c22);_0x4f1c57['set']({'label':R(_0x3f9c22,'Save\x20current\x20revision')}),_0x4f1c57['delegate']('execute')['to'](_0x3a29db),_0x4f1c57['on']('execute',()=>{this['_showDialog']();}),_0x1a94ff['children']['add'](_0x4f1c57),_0x486a35['items']['add'](_0x1a94ff);const _0x4c9439=new _0x5e3c23(_0x3f9c22,_0x3a29db),_0x269a8f=new _0x18cd47(_0x3f9c22);return _0x269a8f['set']({'label':R(_0x3f9c22,'Open\x20revision\x20history')}),_0x269a8f['delegate']('execute')['to'](_0x3a29db),_0x269a8f['on']('execute',()=>{_0x376e9f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4c9439['children']['add'](_0x269a8f),_0x486a35['items']['add'](_0x4c9439),_0x3a29db['panelView']['children']['add'](_0x486a35),_0x3a29db;}['_showDialog'](){const _0x1fb934=this['editor'],_0x60813e=_0x1fb934['locale'],_0x97e2d2=_0x1fb934['plugins']['get']('Dialog'),_0x5f252d=_0x1fb934['plugins']['get']('RevisionTracker');function _0x3521e4(_0x1f00c5){_0x1fb934['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1f00c5['revisionName']?_0x1f00c5['revisionNameInputView']['errorText']=R(_0x60813e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1fb934['plugins']['get'](h)['saveRevision']({'name':_0x1f00c5['revisionName']}),_0x97e2d2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3521e4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x97e2d2['show']({'id':'revisionSave','title':R(_0x60813e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1fb934['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x97e2d2['hide']()},{'label':R(_0x1fb934['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x52d57a){_0x52d57a['bind']('isEnabled')['to'](_0x5f252d,'isReady',_0x5f252d,'isEnabled',_0x1fb934,'isReadOnly',(_0x200f6d,_0x55642d,_0x30dc09)=>_0x200f6d&&_0x55642d&&!_0x30dc09);},'onExecute':()=>_0x3521e4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x453429=this['editor'],_0x28741d=_0x453429['locale'];this['_saveRevisionFormView']=new he(_0x28741d,_0x453429['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x42faba{['changeId'];['_model'];constructor(_0x2ba861,_0xee9bb3){super(_0x2ba861),this['_model']=_0xee9bb3,this['changeId']=_0xee9bb3['id'];const _0x12e791=this['bindTemplate'],_0x582e44=R(_0x2ba861,_0xee9bb3['data']['isSuggestion']?'Suggested\x20by':'add'==_0xee9bb3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xee9bb3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x12e791['to']('type',_0x25f6af=>'ck-revision-change__'+_0x25f6af)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x582e44}]},{'text':'\x20'+_0xee9bb3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x520a9b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x118a0c){super(),this['id']=_0x118a0c['id']||_0x5a28d0(),this['author']=_0x118a0c['author'],this['type']=_0x118a0c['type'],this['data']=_0x118a0c['data']||{},this['rootName']=_0x118a0c['rootName'],this['set']('createdAt',_0x118a0c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x223230,_0x1955d0){this['newRevisionId']=_0x223230,this['oldRevisionId']=_0x1955d0,this['changes']=new _0x1787f2();}['_setChanges'](_0x48b3ec){for(const _0x370dd7 of _0x48b3ec)this['changes']['add'](_0x370dd7);}}class l extends _0x3eb3aa{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x96df93,_0x290bf7,S,$];}constructor(_0x428e4f){super(_0x428e4f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x51da77,_0x2207d8,_0x5de4a1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2e1b24=>{for(const _0x6f61a1 of this['editor']['editing']['view']['document']['roots'])_0x5de4a1?_0x2e1b24['removeClass']('ck-editor__editable__overlay',_0x6f61a1):_0x2e1b24['addClass']('ck-editor__editable__overlay',_0x6f61a1);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xabc912=>null!==_0xabc912),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x31554a,_0x5064f8,_0x19dc0d)=>_0x31554a&&_0x19dc0d?_0x5064f8['changes']['getIndex'](_0x19dc0d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x269548,_0x4ceb21)=>_0x269548?_0x4ceb21['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x290bf7);}['init'](){const _0x517cff=this['editor'],_0x3344f2=new ot(_0x517cff,{'direction':'backward'}),_0x21efbf=new ot(_0x517cff,{'direction':'forward'});(_0x517cff['commands']['add']('showPreviousChange',_0x3344f2),_0x517cff['commands']['add']('showNextChange',_0x21efbf),_0x517cff['commands']['add']('restoreRevision',new nt(_0x517cff)),this['on']('change:numberOfChanges',()=>{_0x3344f2['refresh'](),_0x21efbf['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x517cff['enableReadOnlyMode']('revision-viewer'),_0x517cff['plugins']['has']('WidgetToolbarRepository'))&&_0x517cff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5f6ae){return await this['_utils']['loadRevisionData'](_0x5f6ae,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5f6ae);}async['getRevisionRootsAttributes'](_0x40f982){return await this['_utils']['loadRevisionData'](_0x40f982,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x40f982);}async['compare'](_0x46532b,_0x3225b1,_0x1fe5f7=!0x1){if(!this['isEnabled'])return;const _0x230166=this['diff'],_0xeac9c2=this['repository'],_0x1013c3='string'==typeof _0x46532b?_0xeac9c2['getRevision'](_0x46532b):_0x46532b,_0x4257e8='string'==typeof _0x3225b1?_0xeac9c2['getRevision'](_0x3225b1):_0x3225b1,_0x380ad1=_0x1013c3['id'],_0x42b58f=_0x4257e8?_0x4257e8['id']:null;if(!_0x1fe5f7&&this['diff']&&this['diff']['newRevisionId']===_0x380ad1&&this['diff']['oldRevisionId']===_0x42b58f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x380ad1,_0x42b58f);const _0x1f3069=this['_getRevisionsRange'](_0x1013c3,_0x4257e8,!0x0)['map'](_0x4e0967=>this['_utils']['loadRevisionData'](_0x4e0967,this['adapter']));return _0x1f3069['push'](new Promise(_0x96eac7=>{setTimeout(_0x96eac7,0x14);})),Promise['all'](_0x1f3069)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f2fa3=this['_getDiff'](_0x380ad1,_0x42b58f);for(const _0x2bd384 of _0x2f2fa3['changes'])this['_changeIdToChange']['set'](_0x2bd384['id'],_0x2bd384);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x45e2b9=>{for(const _0x189a70 of this['editor']['model']['document']['getRootNames']())_0x45e2b9['detachRoot'](_0x189a70);for(const _0x5ee4f0 of Object['keys'](_0x2f2fa3['model'])){const _0x31eed5=_0x45e2b9['addRoot'](_0x5ee4f0);for(const _0x5c7d94 of Object['keys'](_0x2f2fa3['attributes'][_0x5ee4f0]))_0x45e2b9['setAttribute'](_0x5c7d94,_0x2f2fa3['attributes'][_0x5ee4f0][_0x5c7d94],_0x31eed5);_0x45e2b9['insert'](_0x2f2fa3['model'][_0x5ee4f0],_0x31eed5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f2fa3['changes'])),this['isReady']=!0x0;})['catch'](_0x2e44dc=>{console['error'](_0x2e44dc),this['_cleanUp'](),_0x230166&&(this['diff']=_0x230166),this['isReady']=!0x0;});}['addRevisionData'](_0x25d844,_0x18c850){const _0x544af4=this['repository']['createRevision'](_0x25d844);return _0x544af4['on']('_update',(_0x31ac9d,_0x3a5f38,_0x1059d5)=>_0x18c850(_0x3a5f38,_0x1059d5,_0x544af4)),this['repository']['addRevision'](_0x544af4),_0x544af4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x443114=>{for(const _0x55cfc3 of this['editor']['model']['document']['getRootNames']())_0x443114['detachRoot'](_0x55cfc3);});}['_sortAndFilterDiffChanges'](_0xacdcd8){const _0xfbc928=[],_0x809f1f=new Map();for(const _0x23fc3e of this['editor']['model']['document']['getRootNames']()){const _0x1b7a8c=this['editor']['editing']['view']['getDomRoot'](_0x23fc3e);if(!_0x1b7a8c)continue;const _0x4b912b=_0x1b7a8c['getClientRects']()['item'](0x0);_0x4b912b&&(_0xfbc928['push'](_0x23fc3e),_0x809f1f['set'](_0x23fc3e,_0x4b912b));}return _0xfbc928['sort']((_0x38dbc9,_0x32dcba)=>{const _0x16e2e4=_0x809f1f['get'](_0x38dbc9),_0x347440=_0x809f1f['get'](_0x32dcba);return _0x16e2e4['y']-_0x347440['y']||_0x16e2e4['x']-_0x347440['x'];}),(_0xacdcd8=_0xacdcd8['filter'](_0x521e9d=>_0xfbc928['includes'](_0x521e9d['rootName'])))['sort']((_0x297af6,_0x4d8a8f)=>_0xfbc928['indexOf'](_0x297af6['rootName'])-_0xfbc928['indexOf'](_0x4d8a8f['rootName'])),_0xacdcd8;}['_makeTape'](_0x5de3e1){const _0x308b01=Array['from'](_0x5de3e1['markers'])['filter'](([_0x3c434a,_0x39be1b])=>_0x3c434a['startsWith']('revision:')&&!_0x39be1b['isCollapsed']),_0x33bed1=Array['from'](this['editor']['model']['createRangeIn'](_0x5de3e1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x308b01['length'])for(const _0xc815b5 of _0x33bed1){const [_0x5667de,_0x23fc75]=_0x308b01[0x0],[,_0x1ec8f2,_0x53e3c4]=_0x5667de['split'](':');if(_0x23fc75['end']['isEqual'](_0xc815b5['nextPosition'])&&_0x308b01['shift'](),(_0xc815b5['previousPosition']['isEqual'](_0x23fc75['start'])||_0xc815b5['previousPosition']['isAfter'](_0x23fc75['start']))&&('insertion'==_0x1ec8f2?_0xc815b5['isAdded']={'userId':_0x53e3c4}:'deletion'==_0x1ec8f2&&(_0xc815b5['isRemoved']={'userId':_0x53e3c4})),0x0==_0x308b01['length'])break;}return _0x33bed1;}['_refreshStartEndIndex'](_0xde839f){const _0x184205=new Map();for(let _0x1c7a33=0x0;_0x1c7a33<_0xde839f['length'];_0x1c7a33++)'text'===_0xde839f[_0x1c7a33]['type']?(_0xde839f[_0x1c7a33]['item']['startIndex']=_0x1c7a33,_0xde839f[_0x1c7a33]['item']['endIndex']=_0x1c7a33):('elementStart'===_0xde839f[_0x1c7a33]['type']?_0xde839f[_0x1c7a33]['item']['startIndex']=_0x1c7a33:'elementEnd'===_0xde839f[_0x1c7a33]['type']&&(_0xde839f[_0x1c7a33]['item']['endIndex']=_0x1c7a33),_0x184205['set'](_0xde839f[_0x1c7a33]['id'],_0x1c7a33));for(const _0x29bd46 of _0x184205['values']())'elementStart'===_0xde839f[_0x29bd46]['type']?_0xde839f[_0x29bd46]['item']['endIndex']=_0x184205['get'](_0xde839f[_0x29bd46]['pairId']):'elementEnd'===_0xde839f[_0x29bd46]['type']&&(_0xde839f[_0x29bd46]['item']['startIndex']=_0x184205['get'](_0xde839f[_0x29bd46]['pairId']));}['_processTape'](_0x5e7869){for(let _0x48d480=0x0;_0x48d480<_0x5e7869['length'];_0x48d480++){if('elementStart'===_0x5e7869[_0x48d480]['type'])_0x5e7869[_0x48d480]['item']['startIndex']=_0x48d480;else{if('elementEnd'===_0x5e7869[_0x48d480]['type']){_0x5e7869[_0x48d480]['item']['endIndex']=_0x48d480;const _0x597aff=_0x5e7869[_0x48d480]['item']['startIndex'];_0x5e7869[_0x597aff]['pairId']=_0x5e7869[_0x48d480]['id'],_0x5e7869[_0x48d480]['pairId']=_0x5e7869[_0x597aff]['id'];}else _0x5e7869[_0x48d480]['item']['startIndex']=_0x48d480,_0x5e7869[_0x48d480]['item']['endIndex']=_0x48d480,_0x5e7869[_0x48d480]['pairId']=null;}_0x5e7869[_0x48d480]['markersStart']||(_0x5e7869[_0x48d480]['markersStart']=[],_0x5e7869[_0x48d480]['markersEnd']=[]);}}['_markInsertions'](_0xae29d1,_0x502a7a){const _0x312a83=_0xae29d1['filter'](_0x4c2170=>!_0x4c2170['isAdded']);for(let _0x3cf21a=0x0;_0x3cf21a<_0x502a7a['length'];_0x3cf21a++)_0x502a7a[_0x3cf21a]['isAdded']&&(_0x312a83[_0x3cf21a]['isAdded']=_0x502a7a[_0x3cf21a]['isAdded']);}['_getDiff'](_0xc9fc4b,_0x599387=null){const _0x1a7883=this['repository']['getRevision'](_0xc9fc4b),_0x1d4d7e=_0x599387?this['repository']['getRevision'](_0x599387):null,_0x2eb449=this['_getRevisionsRange'](_0x1a7883,_0x1d4d7e),_0x31d802=_0x2eb449[_0x2eb449['length']-0x1],_0x324e4c=new Map(),_0x10f0e6={'model':{},'attributes':{},'changes':[]},_0x2062f5=new Set(),_0x2454c2=new Map();for(let _0x18ba97=_0x2eb449['length']-0x1;_0x18ba97>=0x0;_0x18ba97--){const _0x4e6019=_0x2eb449[_0x18ba97];for(const _0x146a5c of Object['keys'](_0x4e6019['diffData']))if(_0x4e6019['diffData'][_0x146a5c]['attachChange']){const _0x568e17=_0x4e6019['diffData'][_0x146a5c]['attachChange'];_0x568e17['isAttached']?(_0x2062f5['add'](_0x146a5c),_0x2454c2['has'](_0x146a5c)&&_0x2454c2['get'](_0x146a5c)['userId']==_0x568e17['userId']?_0x2454c2['delete'](_0x146a5c):_0x2454c2['set'](_0x146a5c,_0x568e17)):_0x2454c2['has'](_0x146a5c)?(_0x2062f5['delete'](_0x146a5c),_0x2454c2['delete'](_0x146a5c)):(_0x2062f5['add'](_0x146a5c),_0x2454c2['set'](_0x146a5c,_0x568e17));}else _0x2062f5['add'](_0x146a5c);}for(const _0x387488 of _0x2062f5){const _0x443c7a=_0x2454c2['has'](_0x387488)&&!_0x2454c2['get'](_0x387488)['isAttached'];let _0x1fce59=_0x443c7a?_0x2eb449['length']-0x1:0x0;const _0x2a18b8=_0x443c7a?-0x1:0x1;for(;_0x2eb449[_0x1fce59];){const _0x3ff20f=_0x2eb449[_0x1fce59];if(_0x3ff20f['diffData'][_0x387488]){const _0x3e4a82=_0x443c7a?_0x3ff20f['diffData'][_0x387488]['attributesBefore']:_0x3ff20f['diffData'][_0x387488]['attributesAfter'];_0x10f0e6['attributes'][_0x387488]=_0x3e4a82?_0x2d156f(_0x3e4a82):{};break;}_0x1fce59+=_0x2a18b8;}}for(const _0x4689b4 of _0x2eb449){_0x4689b4['model']={};for(const _0x432b0c of _0x4689b4['authors'])_0x324e4c['set'](_0x432b0c['id'],_0x432b0c);for(const _0x32ba5e of _0x2062f5){const _0x26386d=_0x4689b4['diffData'][_0x32ba5e]?_0x4689b4['diffData'][_0x32ba5e]['insertions']:'[]',_0x5e491d=_0x4689b4['diffData'][_0x32ba5e]?_0x4689b4['diffData'][_0x32ba5e]['deletions']:'[]';_0x4689b4['model'][_0x32ba5e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x26386d),'deletions':this['_utils']['_makeModelFromViewString'](_0x5e491d)};}}for(const _0x28c9cf of _0x2062f5){let _0x2c4ebe=null,_0x3f5a67=0x0;const _0x24f56e=new Map(Array['from'](_0x1a7883['model'][_0x28c9cf]['insertions']['markers'])['filter'](([_0x32dd54])=>!_0x32dd54['startsWith']('revision:')));let _0xcec361=0x0;for(const _0x356688 of _0x2eb449){const _0x3fe5e9=this['_makeTape'](_0x356688['model'][_0x28c9cf]['insertions']);_0x356688==_0x1a7883?(_0x2c4ebe=_0x3fe5e9,_0x3f5a67=_0x2c4ebe['length'],_0x2c4ebe['forEach'](_0x2a65f4=>{_0x2a65f4['id']=_0xcec361++;}),this['_processTape'](_0x2c4ebe)):this['_markInsertions'](_0x2c4ebe,_0x3fe5e9);const _0x399a3b=_0x2c4ebe['filter'](_0x275bf0=>!_0x275bf0['isAdded'])['map'](_0x2e98e4=>_0x2e98e4['id']);let _0x170c33=0x0;const _0x319561=this['_makeTape'](_0x356688['model'][_0x28c9cf]['deletions']);_0x319561['forEach'](_0x51c304=>{_0x51c304['isRemoved']?_0x51c304['id']=_0x3f5a67++:_0x51c304['id']=_0x399a3b[_0x170c33++];}),this['_processTape'](_0x319561),this['_setDistance'](_0x2c4ebe,'isAdded'),this['_setDistance'](_0x319561,'isRemoved'),_0x356688==_0x1a7883&&this['_markMarkers'](_0x2c4ebe,_0x24f56e),_0x2c4ebe=this['_joinTapes'](_0x2c4ebe,_0x319561),this['_refreshStartEndIndex'](_0x2c4ebe),this['_setDistance'](_0x2c4ebe,'isRemoved');}_0x2c4ebe=_0x2c4ebe['filter'](_0x32ec29=>!(_0x32ec29['isAdded']&&_0x32ec29['isRemoved']));const _0x53549a=new Map(_0x31d802['model'][_0x28c9cf]['deletions']['markers']),_0x2c82b4=new Set(_0x24f56e['keys']());for(const _0xf6239 of _0x53549a['keys']())_0x2c82b4['delete'](_0xf6239);this['_markSuggestions'](_0x2c4ebe,_0x2c82b4),this['_fixObsoleteTags'](_0x2c4ebe),_0x2c4ebe=this['_removeMissingPairs'](_0x2c4ebe),_0x2c4ebe=this['_markMismatchedRemovedTags'](_0x2c4ebe),_0x2c4ebe=this['_removeUnsupportedChanges'](_0x2c4ebe);const {root:_0x316362,changes:_0x1115ab}=this['_makeModelFromTape'](_0x2c4ebe,_0x324e4c,_0x28c9cf);_0x10f0e6['model'][_0x28c9cf]=_0x316362;const _0xe7e659=_0x2454c2['get'](_0x28c9cf);if(_0xe7e659){const _0x4e06b5=_0x324e4c['get'](_0xe7e659['userId']),_0x4105cd=new G({'author':_0x4e06b5,'type':_0xe7e659['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x28c9cf});_0x1115ab['unshift'](_0x4105cd),_0x10f0e6['attributes'][_0x28c9cf]['revisionHistoryAttachChange']=_0x4105cd['id'];}_0x10f0e6['changes']=_0x10f0e6['changes']['concat'](_0x1115ab);}return _0x10f0e6;}['_markMarkers'](_0x4083c7,_0x5c8c04){for(let _0x904a4f=0x0;_0x904a4f<_0x4083c7['length'];_0x904a4f++)for(const [_0x5d6e35,_0x3d1a7b]of _0x5c8c04)!_0x3d1a7b['isCollapsed']&&_0x3d1a7b['start']['isEqual'](_0x4083c7[_0x904a4f]['previousPosition'])&&_0x4083c7[_0x904a4f]['markersStart']['push'](_0x5d6e35),_0x3d1a7b['end']['isEqual'](_0x4083c7[_0x904a4f]['nextPosition'])&&_0x4083c7[_0x904a4f]['markersEnd']['push'](_0x5d6e35);}['_joinTapes'](_0x2221c6,_0x46ebd3){let _0x4cb2f7=[],_0x94ab86=0x0,_0x81fec3=0x0;for(;_0x94ab86<_0x2221c6['length']||_0x81fec3<_0x46ebd3['length'];){const _0x500ad6=_0x2221c6[_0x94ab86]||{},_0x3c6a49=_0x46ebd3[_0x81fec3]||{};if(_0x500ad6['id']==_0x3c6a49['id'])_0x94ab86++,_0x81fec3++,_0x4cb2f7['push'](_0x500ad6);else{if(_0x3c6a49['isRemoved']&&_0x500ad6['isAdded']){const {commonTape:_0x17ef7c,iEnd:_0x2925a9,jEnd:_0x5b563f}=this['_threeWayMerge'](_0x2221c6,_0x94ab86,_0x46ebd3,_0x81fec3);_0x4cb2f7=_0x4cb2f7['concat'](_0x17ef7c),_0x94ab86=_0x2925a9,_0x81fec3=_0x5b563f;}else _0x3c6a49['isRemoved']?(_0x81fec3++,_0x4cb2f7['push'](_0x3c6a49)):(_0x94ab86++,_0x4cb2f7['push'](_0x500ad6));}}return _0x4cb2f7;}['_markSuggestions'](_0x2bd6af,_0x5d9959){const _0x25bc9a=[];for(let _0x4de84a=0x0;_0x4de84a<_0x2bd6af['length'];_0x4de84a++){for(let _0x2d28c9=0x0;_0x2d28c9<_0x2bd6af[_0x4de84a]['markersStart']['length'];_0x2d28c9++){const _0x3622d4=_0x2bd6af[_0x4de84a]['markersStart'][_0x2d28c9];if(!_0x5d9959['has'](_0x3622d4))continue;const {group:_0x3e8df2,type:_0x37dfea,authorId:_0x4f9b28}=_0xd68005(_0x3622d4);'revision-suggestion'!=_0x3e8df2||'insertion'!=_0x37dfea&&'deletion'!=_0x37dfea||(_0x25bc9a['unshift']({'type':_0x37dfea,'name':_0x3622d4,'userId':_0x4f9b28}),_0x2bd6af[_0x4de84a]['markersStart']['splice'](_0x2d28c9,0x1),_0x2d28c9--);}_0x33a1ea(_0x2bd6af[_0x4de84a]);for(let _0x40f188=0x0;_0x40f188<_0x2bd6af[_0x4de84a]['markersEnd']['length'];_0x40f188++){const _0x15cc93=_0x2bd6af[_0x4de84a]['markersEnd'][_0x40f188];if(!_0x5d9959['has'](_0x15cc93))continue;const {group:_0x15f023,type:_0x22491e}=_0xd68005(_0x15cc93);if('revision-suggestion'!=_0x15f023||'insertion'!=_0x22491e&&'deletion'!=_0x22491e)continue;_0x2bd6af[_0x4de84a]['markersEnd']['splice'](_0x40f188,0x1),_0x40f188--;const _0x23adc4=_0x25bc9a['findIndex'](_0x3b7725=>_0x3b7725['name']==_0x15cc93);_0x23adc4>-0x1&&_0x25bc9a['splice'](_0x23adc4,0x1);}}function _0xd68005(_0x4ac402){const _0x5d4b9c=_0x4ac402['split'](':');return{'group':_0x5d4b9c[0x0],'type':_0x5d4b9c[0x1],'subType':_0x5d4b9c['length']>=0x5?_0x5d4b9c[0x2]:null,'id':_0x5d4b9c['length']<0x5?_0x5d4b9c[0x2]:_0x5d4b9c[0x3],'authorId':_0x5d4b9c['length']<0x5?_0x5d4b9c[0x3]:_0x5d4b9c[0x4],'markerCount':0x6==_0x5d4b9c['length']?_0x5d4b9c[0x5]:null};}function _0x33a1ea(_0x588b41){for(let _0x465f5a=0x0;_0x465f5a<_0x25bc9a['length'];_0x465f5a++){if(_0x588b41['isAdded']&&'insertion'==_0x25bc9a[_0x465f5a]['type']&&_0x588b41['isAdded']['userId']==_0x25bc9a[_0x465f5a]['userId'])return _0x588b41['isAddSuggestion']=_0x25bc9a[_0x465f5a],void delete _0x588b41['isAdded'];if(!_0x588b41['isAdded']&&!_0x588b41['isRemoved']&&'deletion'==_0x25bc9a[_0x465f5a]['type'])return void(_0x588b41['isRemoveSuggestion']=_0x25bc9a[_0x465f5a]);}}}['_setDistance'](_0x78c97b,_0x530e05){let _0x23d91d=0x0,_0x5b548d=!0x1;const _0x538528=new Map();for(const _0x5ab40f of _0x78c97b)_0x5ab40f[_0x530e05]?_0x5b548d&&(_0x23d91d++,_0x5b548d=!0x1):(_0x23d91d++,_0x5b548d=!0x0),_0x538528['set'](_0x5ab40f['id'],_0x23d91d);for(let _0x45247c=0x0;_0x45247c<_0x78c97b['length'];_0x45247c++){if('isRemoved'==_0x530e05&&_0x78c97b[_0x45247c]['isAdded']||'isAdded'==_0x530e05&&_0x78c97b[_0x45247c]['isRemoved'])continue;if('text'==_0x78c97b[_0x45247c]['type']){_0x78c97b[_0x45247c]['distance']=0x0;continue;}const _0x4b526e=_0x538528['get'](_0x78c97b[_0x45247c]['pairId']),_0x94a839=_0x538528['get'](_0x78c97b[_0x45247c]['id']);_0x78c97b[_0x45247c]['distance']=_0x4b526e-_0x94a839;}}['_getRevisionsRange'](_0x115fc2,_0x2dfed3,_0x5d29d5=!0x1){const _0x1f052a=[];let _0x58774d=this['repository']['getIndex'](_0x115fc2),_0x1a503b=this['repository']['getIndex'](_0x2dfed3);for(-0x1==_0x1a503b&&(_0x1a503b=this['repository']['_revisions']['length'],_0x5d29d5=!0x1);_0x58774d<_0x1a503b;)_0x1f052a['push'](this['repository']['getRevision'](_0x58774d)),_0x58774d++;return _0x5d29d5&&_0x1f052a['push'](this['repository']['getRevision'](_0x58774d)),_0x1f052a;}['_threeWayMerge'](_0x2b8566,_0x4f8de0,_0x16ce06,_0x2accff){const _0x18c1a4=this['editor']['model']['schema'];let _0x44df44=_0x4f8de0;for(;_0x2b8566[_0x44df44]&&_0x2b8566[_0x44df44]['isAdded'];)_0x44df44++;let _0x218907=_0x2accff;for(;_0x16ce06[_0x218907]&&_0x16ce06[_0x218907]['isRemoved'];)_0x218907++;_0x4b8c8b(_0x2b8566,_0x4f8de0,_0x44df44),_0x4b8c8b(_0x16ce06,_0x2accff,_0x218907);const _0x558780=_0x16ce06['slice'](_0x2accff,_0x218907)['concat'](_0x2b8566['slice'](_0x4f8de0,_0x44df44));return _0x558780['sort']((_0x1af8c8,_0x2b836b)=>_0x1af8c8['side']!=_0x2b836b['side']?_0x1af8c8['side']-_0x2b836b['side']:_0x1af8c8['level']!=_0x2b836b['level']?_0x1af8c8['level']-_0x2b836b['level']:_0x1af8c8['distance']!=_0x2b836b['distance']?_0x2b836b['distance']-_0x1af8c8['distance']:!!_0x1af8c8['isAdded']!=!!_0x2b836b['isAdded']?-0x1==_0x1af8c8['side']||0x0==_0x1af8c8['side']?_0x1af8c8['isAdded']?-0x1:0x1:_0x1af8c8['isAdded']?0x1:-0x1:_0x1af8c8['index']-_0x2b836b['index']),{'commonTape':_0x558780,'iEnd':_0x44df44,'jEnd':_0x218907};function _0x4b8c8b(_0x544393,_0x38d104,_0x20da25){let _0x3cecfe=-0x1,_0x39ccd0=Number['POSITIVE_INFINITY'],_0xbb6909=!0x0;for(let _0x357ff2=_0x38d104;_0x357ff2<_0x20da25;_0x357ff2++)if(_0x18c1a4['isInline'](_0x544393[_0x357ff2]['item'])||(_0xbb6909=!0x1),_0x544393[_0x357ff2]['item']['startIndex']<_0x38d104&&(_0x3cecfe=_0x357ff2),_0x544393[_0x357ff2]['item']['endIndex']>=_0x20da25){_0x39ccd0=_0x357ff2;break;}_0xbb6909&&(_0x3cecfe=_0x20da25-0x1);for(let _0x2d12f9=_0x38d104;_0x2d12f9<_0x20da25;_0x2d12f9++)_0x544393[_0x2d12f9]['side']=_0x2d12f9<=_0x3cecfe?-0x1:_0x2d12f9<_0x39ccd0?0x0:0x1,_0x544393[_0x2d12f9]['index']=_0x2d12f9;let _0x3ce7b6=0x0;for(let _0x276356=_0x38d104;_0x276356<=_0x3cecfe;_0x276356++)0x0==_0x544393[_0x276356]['distance']?_0x544393[_0x276356]['level']=_0x3ce7b6:(_0x3ce7b6++,_0x544393[_0x276356]['level']=_0x3ce7b6,_0x3ce7b6++);for(let _0x5e9c81=_0x38d104;_0x5e9c81<_0x20da25;_0x5e9c81++)0x0==_0x544393[_0x5e9c81]['side']&&(_0x544393[_0x5e9c81]['level']=_0x3ce7b6);_0x3ce7b6=0x0;for(let _0x3b707f=_0x20da25-0x1;_0x3b707f>=_0x39ccd0;_0x3b707f--)0x0==_0x544393[_0x3b707f]['distance']?_0x544393[_0x3b707f]['level']=_0x3ce7b6:(_0x3ce7b6--,_0x544393[_0x3b707f]['level']=_0x3ce7b6,_0x3ce7b6--);}}['_fixObsoleteTags'](_0x4e418d){const _0x4f1706=new Map(),_0x2dd36a=this['editor']['model']['schema'];for(let _0x3fc59c=0x1;_0x3fc59c<_0x4e418d['length'];_0x3fc59c++){let _0x122b21,_0x371247,_0x40c37a;const _0x4f8a93=_0x4e418d[_0x3fc59c],_0x50e8c6=_0x4e418d[_0x3fc59c-0x1];if('text'==_0x4f8a93['type'])continue;if(_0x4f8a93['type']!=_0x50e8c6['type'])continue;if(!_0x2dd36a['isBlock'](_0x50e8c6['item'])||_0x2dd36a['isLimit'](_0x50e8c6['item']))continue;if(!_0x2dd36a['isBlock'](_0x4f8a93['item'])||_0x2dd36a['isLimit'](_0x4f8a93['item']))continue;if((_0x4e418d[_0x3fc59c]['isAdded']||_0x4e418d[_0x3fc59c]['isAddSuggestion'])&&_0x4e418d[_0x3fc59c-0x1]['isRemoved'])_0x122b21=_0x4e418d[_0x3fc59c],_0x371247=_0x4e418d[_0x3fc59c-0x1],_0x40c37a=_0x3fc59c-0x1;else{if(!_0x4e418d[_0x3fc59c]['isRemoved']||!_0x4e418d[_0x3fc59c-0x1]['isAdded']&&!_0x4e418d[_0x3fc59c-0x1]['isAddSuggestion'])continue;_0x122b21=_0x4e418d[_0x3fc59c-0x1],_0x371247=_0x4e418d[_0x3fc59c],_0x40c37a=_0x3fc59c;}const _0x1c4ada=_0x122b21['level']==_0x371247['level'],_0x40bdba=Math['abs'](_0x122b21['level'])<Math['abs'](_0x371247['level'])&&0x0==_0x371247['distance'];(_0x1c4ada||_0x40bdba)&&(_0x4f1706['set'](_0x371247['id'],_0x122b21['id']),_0x4e418d['splice'](_0x40c37a,0x1),_0x3fc59c--,_0x122b21['isAdded']=!0x1);}for(let _0x2ae966=0x0;_0x2ae966<_0x4e418d['length'];_0x2ae966++)_0x4f1706['has'](_0x4e418d[_0x2ae966]['pairId'])&&(_0x4e418d[_0x2ae966]['pairId']=_0x4f1706['get'](_0x4e418d[_0x2ae966]['pairId']));}['_removeMissingPairs'](_0x5c7ff0){const _0x38e305=new Set(_0x5c7ff0['map'](_0x6ca577=>_0x6ca577['id']));for(let _0x48f509=0x0;_0x48f509<_0x5c7ff0['length'];_0x48f509++)_0x38e305['has'](_0x5c7ff0[_0x48f509]['pairId'])||0x0==_0x5c7ff0[_0x48f509]['distance']||(_0x5c7ff0[_0x48f509]['isIncorrect']=!0x0);return _0x5c7ff0['filter'](_0x4d505d=>!_0x4d505d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x32cde7){const _0x4709c1=new Set();for(let _0x1602e5=0x0;_0x1602e5<_0x32cde7['length'];_0x1602e5++){if(_0x4709c1['has'](_0x32cde7[_0x1602e5]['id'])&&_0x32cde7[_0x1602e5]['isRemoved']&&(_0x32cde7[_0x1602e5]['isIncorrect']=!0x0),_0x32cde7[_0x1602e5]['isIncorrect'])continue;if(0x0==_0x32cde7[_0x1602e5]['distance'])continue;if('elementStart'!=_0x32cde7[_0x1602e5]['type'])continue;if(null==_0x32cde7[_0x1602e5]['pairId'])continue;let _0xd4854b=_0x1602e5+0x1,_0x33a54d=0x0;for(;_0x32cde7[_0xd4854b]['id']!=_0x32cde7[_0x1602e5]['pairId'];)'elementStart'==_0x32cde7[_0xd4854b]['type']?_0x33a54d++:'elementEnd'==_0x32cde7[_0xd4854b]['type']&&_0x33a54d--,_0xd4854b++;if(0x0!=_0x33a54d){if(_0x32cde7[_0x1602e5]['isRemoved'])_0x32cde7[_0x1602e5]['isIncorrect']=!0x0;else{for(;_0xd4854b!=_0x1602e5;)_0x32cde7[_0xd4854b]['isRemoved']&&0x0!=_0x32cde7[_0xd4854b]['distance']&&(_0x32cde7[_0xd4854b]['isIncorrect']=!0x0,_0x4709c1['add'](_0x32cde7[_0xd4854b]['pairId'])),_0xd4854b--;}}}return _0x32cde7['filter'](_0x4b6587=>!_0x4b6587['isIncorrect']);}['_removeUnsupportedChanges'](_0x381435){const _0x50ca25=this['editor']['model']['schema'];for(let _0x31a0c3=0x0;_0x31a0c3<_0x381435['length'];_0x31a0c3++){if(!(_0x381435[_0x31a0c3]['isAdded']||_0x381435[_0x31a0c3]['isAddSuggestion']||_0x381435[_0x31a0c3]['isRemoved']||_0x381435[_0x31a0c3]['isRemoveSuggestion']))continue;if(0x0==_0x381435[_0x31a0c3]['distance'])continue;const _0x2842ca=_0x381435[_0x31a0c3]['item'];_0x50ca25['isBlock'](_0x2842ca)||_0x50ca25['isLimit'](_0x2842ca)||(_0x381435[_0x31a0c3]['isAdded']&&delete _0x381435[_0x31a0c3]['isAdded'],_0x381435[_0x31a0c3]['isAddSuggestion']&&delete _0x381435[_0x31a0c3]['isAddSuggestion'],_0x381435[_0x31a0c3]['isRemoveSuggestion']&&delete _0x381435[_0x31a0c3]['isRemoveSuggestion'],_0x381435[_0x31a0c3]['isRemoved']&&(_0x381435[_0x31a0c3]['isIncorrect']=!0x0));}return _0x381435['filter'](_0x3ef357=>!_0x3ef357['isIncorrect']);}['_makeModelFromTape'](_0x40bb64,_0x2ef287,_0x582200){const _0x356e85=new _0x55db8f(),_0x1d2a1d=[],_0x13fc2d=new Map(),_0xeae6db=this['editor']['model'],_0x306f14=_0xeae6db['schema'],_0x5b1276=[_0x356e85],_0x5eec6a={},_0x519c4c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c7018=null;const _0x4d1a68=[0x0];for(let _0xe0549=0x0;_0xe0549<_0x40bb64['length'];_0xe0549++)if('elementStart'===_0x40bb64[_0xe0549]['type']){_0x40bb64[_0xe0549]['previousPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68);const _0x32928f=new _0x149904(_0x40bb64[_0xe0549]['item']['name'],_0x40bb64[_0xe0549]['item']['getAttributes']());_0x5b1276[0x0]['_appendChild'](_0x32928f),_0x4d1a68['push'](0x0),_0x5b1276['unshift'](_0x32928f),_0x40bb64[_0xe0549]['nextPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68);}else'elementEnd'===_0x40bb64[_0xe0549]['type']?(_0x5b1276['shift'](),_0x40bb64[_0xe0549]['previousPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68),_0x4d1a68['pop'](),_0x4d1a68[_0x4d1a68['length']-0x1]++,_0x40bb64[_0xe0549]['nextPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68)):(_0x40bb64[_0xe0549]['previousPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68),_0x5c7018?_0x5c7018['_data']+=_0x40bb64[_0xe0549]['item']['data']:_0x5c7018=new _0x3c2817(_0x40bb64[_0xe0549]['item']['data'],_0x40bb64[_0xe0549]['item']['getAttributes']()),_0x40bb64[_0xe0549+0x1]&&'text'===_0x40bb64[_0xe0549+0x1]['type']&&_0x9f197f(_0x5c7018,_0x40bb64[_0xe0549+0x1]['item'])||(_0x5b1276[0x0]['_appendChild'](_0x5c7018),_0x5c7018=null),_0x4d1a68[_0x4d1a68['length']-0x1]+=_0x40bb64[_0xe0549]['item']['offsetSize'],_0x40bb64[_0xe0549]['nextPosition']=_0xeae6db['createPositionFromPath'](_0x356e85,_0x4d1a68));for(let _0x10c0b0=0x0;_0x10c0b0<_0x40bb64['length'];_0x10c0b0++){const _0x1a5f84=_0x40bb64[_0x10c0b0]['previousPosition'],_0x4cebdc=_0x40bb64[_0x10c0b0]['nextPosition'];for(const _0x4195b2 of _0x40bb64[_0x10c0b0]['markersStart'])_0x13fc2d['set'](_0x4195b2,{'start':_0x1a5f84,'end':null});_0x6b108('isRemoveSuggestion',_0x10c0b0,_0x1a5f84,_0x4cebdc),_0x6b108('isAddSuggestion',_0x10c0b0,_0x1a5f84,_0x4cebdc),_0x6b108('isRemoved',_0x10c0b0,_0x1a5f84,_0x4cebdc),_0x6b108('isAdded',_0x10c0b0,_0x1a5f84,_0x4cebdc);for(const _0x41efd7 of _0x40bb64[_0x10c0b0]['markersEnd']){const _0x1884f2=_0x13fc2d['get'](_0x41efd7);_0x1884f2?_0x1884f2['end']=_0x4cebdc:_0x13fc2d['set'](_0x41efd7,{'start':_0x4cebdc,'end':_0x4cebdc});}}for(const [_0x355abf,_0x4aafae]of _0x13fc2d){const _0x4bc6de=this['editor']['model']['createRange'](_0x4aafae['start'],_0x4aafae['end']);_0x356e85['markers']['set'](_0x355abf,_0x4bc6de);}return _0x1d2a1d['sort']((_0x151f52,_0x7a2092)=>{const _0x4186c1=_0x356e85['markers']['get']('revision:'+_0x151f52['id']),_0x1caf17=_0x356e85['markers']['get']('revision:'+_0x7a2092['id']);return _0x4186c1['start']['isBefore'](_0x1caf17['start'])?-0x1:_0x4186c1['start']['isAfter'](_0x1caf17['start'])?0x1:_0x4186c1['end']['isBefore'](_0x1caf17['end'])?-0x1:_0x4186c1['end']['isAfter'](_0x1caf17['end'])?0x1:'add'===_0x151f52['type']?-0x1:0x1;}),{'root':_0x356e85,'changes':_0x1d2a1d};function _0x6b108(_0x85fc78,_0x1fb648,_0x55b536,_0x3922e4){const _0x1d90ec=!!_0x40bb64[_0x1fb648][_0x85fc78],_0x37d181=_0x1d90ec?_0x40bb64[_0x1fb648][_0x85fc78]['userId']:null,_0x2b66a6=_0x1fb648===_0x40bb64['length']-0x1,_0x291a21=_0x519c4c[_0x85fc78][0x0],_0x573e09=_0x306f14['isObject'](_0x40bb64[_0x1fb648]['item']);!_0x5eec6a[_0x85fc78]&&_0x1d90ec?_0x5eec6a[_0x85fc78]={'start':_0x55b536,'tapeItem':_0x40bb64[_0x1fb648],'userId':_0x37d181,'type':_0x85fc78}:_0x5eec6a[_0x85fc78]&&!_0x1d90ec?(_0x5eec6a[_0x85fc78]['end']=_0x55b536,_0x1b8573(_0x5eec6a[_0x85fc78]),_0x5eec6a[_0x85fc78]=null):_0x5eec6a[_0x85fc78]&&_0x1d90ec&&_0x5eec6a[_0x85fc78]['userId']!==_0x37d181&&(_0x5eec6a[_0x85fc78]['end']=_0x55b536,_0x291a21&&_0x291a21['userId']===_0x5eec6a[_0x85fc78]['userId']||_0x1b8573(_0x5eec6a[_0x85fc78]),_0x5eec6a[_0x85fc78]={'start':_0x55b536,'tapeItem':_0x40bb64[_0x1fb648],'userId':_0x37d181,'type':_0x85fc78}),_0x5eec6a[_0x85fc78]&&_0x573e09&&('elementStart'!==_0x40bb64[_0x1fb648]['type']||_0x291a21&&_0x291a21['userId']===_0x37d181||_0x519c4c[_0x85fc78]['unshift']({'userId':_0x37d181,'object':_0x40bb64[_0x1fb648]['item'],'change':_0x5eec6a[_0x85fc78]}),'elementEnd'===_0x40bb64[_0x1fb648]['type']&&_0x291a21&&_0x291a21['object']===_0x40bb64[_0x1fb648]['item']&&(_0x519c4c[_0x85fc78]['shift'](),_0x5eec6a[_0x85fc78]=_0x291a21['change'])),_0x5eec6a[_0x85fc78]&&_0x2b66a6&&(_0x5eec6a[_0x85fc78]['end']=_0x3922e4,_0x1b8573(_0x5eec6a[_0x85fc78]),_0x5eec6a[_0x85fc78]=null);}function _0x1b8573({start:_0x5a088c,end:_0x5b7c54,tapeItem:_0x38b363,userId:_0x277c10,type:_0x5c0e84}){const _0x257f3b=_0x38b363['item'],_0x22b3c3=_0xeae6db['schema']['isBlock'](_0x257f3b)&&!_0xeae6db['schema']['isLimit'](_0x257f3b),_0x37575f=_0x5a088c['nodeAfter']==_0x5b7c54['parent']&&_0x5b7c54['isAtStart'];if(_0x22b3c3&&_0x37575f)return;const _0x4ff670=_0xeae6db['createRange'](_0x5a088c,_0x5b7c54),_0x1ab5cc=_0x2ef287['get'](_0x277c10),_0x440c44=new G({'author':_0x1ab5cc,'type':'isAdded'==_0x5c0e84||'isAddSuggestion'==_0x5c0e84?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5c0e84||'isRemoveSuggestion'==_0x5c0e84},'createdAt':new Date(),'rootName':_0x582200});_0x1d2a1d['push'](_0x440c44),_0x356e85['markers']['set']('revision:'+_0x440c44['id'],_0x4ff670);}function _0x9f197f(_0x30f039,_0x415f59){const _0x10ddd3=_0x30f039['getAttributes'](),_0x2a5035=_0x415f59['getAttributes']();for(const _0xfda501 of _0x10ddd3){if(_0xfda501[0x1]!==_0x415f59['getAttribute'](_0xfda501[0x0]))return!0x1;_0x2a5035['next']();}return _0x2a5035['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3ed27d=>{const _0x586de3=_0x3ed27d['markerName']['split'](':')[0x1],_0x489d6b=this['_getChangeFromId'](_0x586de3);if(!_0x489d6b)return null;const _0xb2b7='add'==_0x489d6b['type']?'insertion':'deletion',_0x392688=['ck-suggestion-marker','ck-suggestion-marker-'+_0xb2b7];return _0x489d6b['data']['isSuggestion']&&_0x392688['push']('ck-suggestion-marker-'+_0xb2b7+'-new'),this['activeChange']==_0x489d6b&&_0x392688['push']('ck-suggestion-marker--active'),{'classes':_0x392688,'attributes':{'data-change-id':_0x586de3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x44eb7a=>{_0x44eb7a['on']('element:pre',(_0xf8d0e8,_0x187e3c,_0x5c19ae)=>{const _0x293257=_0x187e3c['viewItem']['getChild'](0x0);if(!_0x293257||!_0x293257['is']('element','code'))return;if(!_0x5c19ae['consumable']['consume'](_0x293257,{'attributes':['vid_start','vid_end']}))return;const _0x1869d9=_0x187e3c['modelRange']['start']['nodeAfter'];_0x5c19ae['writer']['setAttribute']('vid_start',_0x293257['getAttribute']('vid_start'),_0x1869d9),_0x5c19ae['writer']['setAttribute']('vid_end',_0x293257['getAttribute']('vid_end'),_0x1869d9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5a7a97=>{_0x5a7a97['on']('element',(_0x4e4a7c,_0x4fbebf,_0x2862eb)=>{if(!_0x2862eb['consumable']['consume'](_0x4fbebf['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4fbebf['modelRange']['isCollapsed'])return;const _0x5234d0=_0x4fbebf['modelRange']['start']['nodeAfter'];_0x5234d0['hasAttribute']('vid_start')||_0x5234d0['hasAttribute']('vid')||(_0x2862eb['writer']['setAttribute']('vid_start',_0x4fbebf['viewItem']['getAttribute']('vid_start'),_0x5234d0),_0x2862eb['writer']['setAttribute']('vid_end',_0x4fbebf['viewItem']['getAttribute']('vid_end'),_0x5234d0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2717c3=>_0x2717c3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2e825b,[,_0x19e4f8])=>{['vid_start','vid_end','vid']['includes'](_0x19e4f8)&&(_0x2e825b['return']=!0x0,_0x2e825b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x44ad58=>{_0x44ad58['on']('attribute:vid',(_0x1c7997,_0x3c72b9,_0x41610f)=>{if('\x20'!=_0x3c72b9['item']['data']||_0x3c72b9['item']['parent']['maxOffset']>0x1)return;if(!_0x41610f['consumable']['consume'](_0x3c72b9['item'],_0x1c7997['name']))return;const _0x56e037=_0x41610f['writer'],_0x21e9ba=_0x41610f['mapper']['toViewRange'](_0x3c72b9['range']);_0x56e037['wrap'](_0x21e9ba,_0x56e037['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4bb10c){const _0x2ae8cc=_0x4bb10c['plugins']['get']('RevisionViewer');return(_0x4807cb,_0x2e0eaa,_0xccd891)=>{const _0x45a0f0=_0x2e0eaa['markerName']['split'](':')[0x1],_0x3adc57=_0x2ae8cc['_getChangeFromId'](_0x45a0f0);if(!_0x3adc57)return null;const _0x4e2ca2='add'==_0x3adc57['type']?'split':'merge';if(!_0xccd891['consumable']['test'](_0x2e0eaa['markerRange'],_0x4807cb['name']))return;const _0x1f0a6b=_0x2e0eaa['markerRange']['getWalker'](),_0x2234b3=_0x2e0eaa['markerRange']['start'],_0x471800=_0x4bb10c['model']['schema'];let _0x3f0c16=null,_0x1d0f00=null,_0x2ad5e3=!0x1,_0x1858b5=!0x1;for(const _0x1f540f of _0x1f0a6b){const _0x3a701a=_0x1f540f['item'];_0x2ad5e3=_0x2ad5e3||_0x471800['isContent'](_0x3a701a);const _0x4f8345=_0xccd891['mapper']['toViewElement'](_0x3a701a);if(_0x4f8345&&_0x4f8345['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f540f['type']&&(_0x471800['isBlock'](_0x3a701a)&&!_0x471800['isLimit'](_0x3a701a)&&(_0x3a701a['nextSibling']||_0x2234b3['isAtEnd']?_0x3f0c16&&_0x3f0c16['parent']==_0x3a701a||(_0x3f0c16=_0x3a701a,_0x4c279c(_0x1f540f['previousPosition']),_0x1858b5=!0x0):_0x1d0f00=_0x1d0f00||_0x1f540f['previousPosition']));}function _0x4c279c(_0x2ea9a1){const _0x372b8d=_0xccd891['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e2ca2}),_0x47d41b=_0xccd891['mapper']['toViewPosition'](_0x2ea9a1);_0x3adc57['data']['isSuggestion']&&_0xccd891['writer']['addClass']('ck-suggestion-marker-'+_0x4e2ca2+'-new',_0x372b8d),_0x2ae8cc['activeChange']==_0x3adc57&&_0xccd891['writer']['addClass']('ck-suggestion-marker--active',_0x372b8d),_0xccd891['writer']['insert'](_0x47d41b,_0x372b8d),_0xccd891['mapper']['bindElementToMarker'](_0x372b8d,_0x2e0eaa['markerName']);}_0x2ad5e3||_0x1858b5||!_0x1d0f00||_0x4c279c(_0x1d0f00);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x54625a,_0x4e7063,_0x11afcf)=>{const _0x5a0f25=_0x11afcf['mapper']['markerNameToElements'](_0x4e7063['markerName']);if(_0x5a0f25){for(const _0x2adc02 of _0x5a0f25)(_0x2adc02['hasClass']('ck-suggestion-marker-split')||_0x2adc02['hasClass']('ck-suggestion-marker-merge'))&&(_0x11afcf['mapper']['unbindElementFromMarkerName'](_0x2adc02,_0x4e7063['markerName']),_0x11afcf['writer']['remove'](_0x2adc02));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x25f1b3,_0x5db260,_0x2d6887)=>{const _0x21b813=_0x5db260['markerName']['split'](':')[0x1],_0x5abdf8=this['_getChangeFromId'](_0x21b813);if(!_0x5abdf8)return null;const _0x4d1728='add'==_0x5abdf8['type']?'split':'merge';if(_0x2d6887['consumable']['test'](_0x5db260['markerRange'],_0x25f1b3['name']))for(const _0x559970 of _0x5db260['markerRange']['getItems']()){if(!_0x559970['is']('element','softBreak'))continue;const _0x2431ed=_0x2d6887['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d1728}),_0x1896a8=_0x2d6887['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x559970));_0x5abdf8['data']['isSuggestion']&&_0x2d6887['writer']['addClass']('ck-suggestion-marker-'+_0x4d1728+'-new',_0x2431ed),this['activeChange']==_0x5abdf8&&_0x2d6887['writer']['addClass']('ck-suggestion-marker--active',_0x2431ed),_0x2d6887['writer']['insert'](_0x1896a8,_0x2431ed),_0x2d6887['mapper']['bindElementToMarker'](_0x2431ed,_0x5db260['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4fe2be=>{for(const _0xa7d0f7 of this['editor']['model']['document']['getRootNames']()){const _0x46a2b7=this['editor']['model']['document']['getRoot'](_0xa7d0f7),_0x9cb2fa=this['editor']['editing']['view']['document']['getRoot'](_0xa7d0f7);if(_0x9cb2fa){const _0x51460d=_0x46a2b7['getAttribute']('revisionHistoryAttachChange');if(_0x4fe2be['removeAttribute']('data-change-id',_0x9cb2fa),_0x4fe2be['removeClass']('ck-revision-history-root-add',_0x9cb2fa),_0x4fe2be['removeClass']('ck-revision-history-root-remove',_0x9cb2fa),_0x4fe2be['removeClass']('ck-revision-history-root--active',_0x9cb2fa),_0x51460d){const _0x5e0f07=this['_getChangeFromId'](_0x51460d);if(!_0x5e0f07)return null;_0x4fe2be['setAttribute']('data-change-id',_0x51460d,_0x9cb2fa),_0x4fe2be['addClass']('ck-revision-history-root-'+_0x5e0f07['type'],_0x9cb2fa),this['activeChange']==_0x5e0f07&&_0x4fe2be['addClass']('ck-revision-history-root--active',_0x9cb2fa);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e4d7c=>'revision-comment:'+_0x1e4d7c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x347b4d=>'revision-suggestion:'+_0x347b4d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x29a605=>({'name':'suggestion:'+_0x29a605,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x393f3d=>{const _0x1cc47a=_0x393f3d['markerName']['split'](':')[0x1];return'insertion'!=_0x1cc47a&&'deletion'!=_0x1cc47a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1cc47a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xc44dac,_0x2b5a0e,_0x1dc2fe)=>{const _0x493649=_0x1dc2fe['mapper']['markerNameToElements'](_0x2b5a0e['markerName']);if(_0x493649){for(const _0x99779c of _0x493649)_0x99779c['is']('uiElement')&&(_0x1dc2fe['mapper']['unbindElementFromMarkerName'](_0x99779c,_0x2b5a0e['markerName']),_0x1dc2fe['writer']['remove'](_0x99779c));}},{'priority':'high'});}['_getChangeFromId'](_0x2a1a3a){return this['_changeIdToChange']['get'](_0x2a1a3a);}['_getViewForChange'](_0x15ef22){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x15ef22),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1df6dd,_0x4e7396,_0x1e33a8,_0x3d18c9)=>{_0x3d18c9&&this['_balloon']['remove'](_0x3d18c9),_0x1e33a8&&(this['_balloon']['add']({'view':_0x1e33a8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x216ceb=this['editor']['editing'],_0x4f16d0=this['_getChangeFromId'](_0x1e33a8['changeId']);let _0x1e24fd;if(_0x4f16d0['data']['isOnRoot']){const _0x3c6012=_0x216ceb['view']['getDomRoot'](_0x4f16d0['rootName']);_0x1e24fd=Array['from'](_0x3c6012['getClientRects']());}else{const _0x13f665=this['editor']['model']['markers']['get']('revision:'+_0x1e33a8['changeId']);_0x1e24fd=Array['from'](_0x216ceb['mapper']['markerNameToElements'](_0x13f665['name']))['map'](_0xbd6eb0=>_0x216ceb['view']['domConverter']['mapViewToDom'](_0xbd6eb0))['map'](_0x62e9be=>Array['from'](_0x62e9be['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1e24fd[0x0];return _0x1e24fd['find'](_0x3d5ce7=>_0x3d5ce7['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d5ce7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d5ce7['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d5ce7['right']+0x3>=this['_activeViewTarget']['x'])||_0x1e24fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xb581a0,_0x5bb4f6,_0x21650f,_0x8a12f2)=>{this['activeView']=_0x21650f?this['_getViewForChange'](_0x21650f):null,this['editor']['model']['change'](()=>{const _0x4cb9c1=this['editor']['editing'];_0x8a12f2&&(_0x8a12f2['data']['isOnRoot']?_0x4cb9c1['view']['change'](_0x4e7d4d=>{_0x4e7d4d['removeClass']('ck-revision-history-root--active',_0x4cb9c1['view']['document']['getRoot'](_0x8a12f2['rootName']));}):_0x4cb9c1['reconvertMarker']('revision:'+_0x8a12f2['id'])),_0x21650f&&(_0x21650f['data']['isOnRoot']?_0x4cb9c1['view']['change'](_0x1bedb7=>{_0x1bedb7['addClass']('ck-revision-history-root--active',_0x4cb9c1['view']['document']['getRoot'](_0x21650f['rootName']));}):_0x4cb9c1['reconvertMarker']('revision:'+_0x21650f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x17db57,_0x47dc16)=>{if(this['activeChange'])return;const _0x51dac6=this['_findChangeIdFromDomTarget'](_0x47dc16['target']),_0x477a8a=this['_changeIdToChange']['get'](_0x51dac6);_0x477a8a?(this['_activeViewTarget']={'x':_0x47dc16['domEvent']['x'],'y':_0x47dc16['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x477a8a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5c6ee2,_0x4f4363)=>{const _0x4dcada=this['_findChangeIdFromDomTarget'](_0x4f4363['target']),_0x41242c=this['_changeIdToChange']['get'](_0x4dcada);_0x41242c?(this['_activeViewTarget']={'x':_0x4f4363['domEvent']['x'],'y':_0x4f4363['domEvent']['y']},_0x41242c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x41242c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x46b96d){do{const _0x737fb7=_0x46b96d['getAttribute']('data-change-id');if(_0x737fb7)return _0x737fb7;_0x46b96d=_0x46b96d['parent'];}while(_0x46b96d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3352a8=>{for(const _0x4f91ea of this['editor']['model']['markers'])_0x3352a8['removeMarker'](_0x4f91ea);});}}function Q(_0x3e25bc,_0x59ca06){return(_0x3864c6,_0x8fc7cd,_0x6b8bbf)=>{if(!_0x6b8bbf['consumable']['test'](_0x8fc7cd['markerRange'],_0x3864c6['name']))return;const _0x473bf6=_0x8fc7cd['markerRange']['getWalker'](),_0x24732e=_0x8fc7cd['markerRange']['start'],_0xb0cc1e=_0x3e25bc['model']['schema'];let _0xf6d6a0=null,_0xa03102=null,_0x4e3b3f=!0x1,_0x2aeea9=!0x1;for(const _0x1b2fc7 of _0x473bf6){const _0x15157d=_0x1b2fc7['item'];_0x4e3b3f=_0x4e3b3f||_0xb0cc1e['isContent'](_0x15157d);const _0xa6634c=_0x6b8bbf['mapper']['toViewElement'](_0x15157d);if(_0xa6634c&&_0xa6634c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b2fc7['type']&&(_0xb0cc1e['isBlock'](_0x15157d)&&!_0xb0cc1e['isLimit'](_0x15157d)&&(_0x15157d['nextSibling']||_0x24732e['isAtEnd']?_0xf6d6a0&&_0xf6d6a0['parent']==_0x15157d||(_0xf6d6a0=_0x15157d,_0x35574e(_0x1b2fc7['previousPosition']),_0x2aeea9=!0x0):_0xa03102=_0xa03102||_0x1b2fc7['previousPosition']));}function _0x35574e(_0x21068c){const _0x2c08c3=_0x6b8bbf['mapper']['toViewPosition'](_0x21068c),_0x18afb8=_0x6b8bbf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x59ca06});_0x6b8bbf['writer']['insert'](_0x2c08c3,_0x18afb8),_0x6b8bbf['mapper']['bindElementToMarker'](_0x18afb8,_0x8fc7cd['markerName']);}_0x4e3b3f||_0x2aeea9||!_0xa03102||_0x35574e(_0xa03102);};}class nt extends _0x55dc51{constructor(_0x103ab7){super(_0x103ab7);const _0x1f6f55=_0x103ab7['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1f6f55,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f6f55,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47e512=this['editor'],_0x47ce78=_0x47e512['plugins']['get'](l),_0x131bd7=_0x47ce78['isReady']?_0x47ce78['diff']['newRevisionId']:null;_0x47e512['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x131bd7);}['refresh'](){const {isReady:_0x1d89b6,isEnabled:_0x301b93,repository:_0x588fa4,diff:_0x565b01}=this['editor']['plugins']['get'](l),_0x43cc97=_0x565b01&&_0x588fa4['getLaterVisibleRevision'](_0x565b01['newRevisionId']);this['isEnabled']=_0x1d89b6&&_0x301b93&&Boolean(_0x43cc97);}}class ot extends _0x55dc51{['_step'];constructor(_0x42022d,{direction:_0x581113}){super(_0x42022d);const _0x51a891=_0x42022d['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x581113?0x1:-0x1,this['listenTo'](_0x51a891,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x51a891,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x51a891,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12b391=this['editor'],_0x340d39=_0x12b391['plugins']['get'](l),{isNavigationMode:_0x18bef7,currentChangeNumber:_0x464f6b}=_0x340d39;let _0x3e158b;if(_0x340d39['activeChange']=_0x18bef7?_0x340d39['diff']['changes']['get'](_0x464f6b+this['_step']):_0x340d39['diff']['changes']['first'],_0x340d39['activeChange']['data']['isOnRoot'])_0x3e158b=_0x12b391['editing']['view']['getDomRoot'](_0x340d39['activeChange']['rootName']);else{const _0x13823b=_0x12b391['model']['markers']['get']('revision:'+_0x340d39['activeChange']['id']);_0x3e158b=_0x77d5c1(_0x12b391['editing'],_0x13823b);}_0x24f7ed({'target':_0x3e158b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4c53a7,currentChangeNumber:_0x71a573,numberOfChanges:_0x5d5cec,isReady:_0x950105,isEnabled:_0x4ad8b6}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x4ad8b6&&_0x950105&&_0x5d5cec)&&(!_0x4c53a7||(0x1===this['_step']?_0x71a573<_0x5d5cec-0x1:_0x71a573>0x0));}}class Ri extends _0x42faba{constructor(_0xd1b97c){super(_0xd1b97c);const _0x2ca14b=this['bindTemplate'],_0x28a67c=new _0x3eb7b4(_0xd1b97c),_0x2183e8=new _0x3eb7b4(_0xd1b97c);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',(_0x1902f3,_0x1b58f7)=>_0x1902f3&&_0x1b58f7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b7f77,_0x3a9328,_0x4925e5,_0x32a90e)=>{if(!_0x4b7f77)return R(_0xd1b97c,'Loading...');if(!_0x4925e5)return R(_0xd1b97c,'No\x20changes');const _0x2b0186=R(_0xd1b97c,'NUMBER_OF_CHANGES',_0x4925e5);return _0x32a90e?R(_0xd1b97c,'X_OF_Y_CHANGES',[_0x3a9328+0x1,_0x4925e5]):_0x2b0186;}),_0x28a67c['set']({'label':R(_0xd1b97c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xd81a7f}),_0x2183e8['set']({'label':R(_0xd1b97c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2078e1}),_0x28a67c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2183e8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x28a67c['on']('execute',()=>this['fire']('execute','backward')),_0x2183e8['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',_0x2ca14b['if']('_isStatusLabelVisible','ck-hidden',_0x29742d=>!_0x29742d)]},'children':[{'text':_0x2ca14b['to']('isNavigationMode',_0x12aa0d=>_0x12aa0d?R(_0xd1b97c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xd1b97c,'Total')+':\x20')}]},{'text':_0x2ca14b['to']('_statusText')}]},new _0x38e8dd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x28a67c,_0x2183e8]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3eb3aa{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x526c11=this['editor']['editing']['view'];_0x526c11['change'](_0x4e709e=>{for(const _0x308145 of _0x526c11['document']['roots'])_0x4e709e['addClass'](ge,_0x308145);});}['hide'](){const _0x140c41=this['editor']['editing']['view'];_0x140c41['change'](_0x14913c=>{for(const _0x3ed44f of _0x140c41['document']['roots'])_0x14913c['removeClass'](ge,_0x3ed44f);});}}class u extends _0x3eb3aa{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xdfd873=this['editor'],_0x3c1cd2=_0xdfd873['plugins']['get'](l),_0x454029=_0xdfd873['plugins']['get'](ji);_0xdfd873['ui']['componentFactory']['add']('exitToEditing',_0x272748=>{const _0x4d6fd3=new _0x3eb7b4(_0x272748);return _0x4d6fd3['set']({'label':R(_0x272748,'Back\x20to\x20editing'),'icon':_0x2dadc0,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4d6fd3,'execute',()=>{_0xdfd873['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4d6fd3;}),_0xdfd873['ui']['componentFactory']['add']('restoreRevision',_0x224e5c=>{const _0x7633c7=new _0x3eb7b4(_0x224e5c);return _0x7633c7['set']({'label':R(_0x224e5c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x7633c7['bind']('isEnabled')['to'](_0xdfd873['commands']['get']('restoreRevision')),this['listenTo'](_0x7633c7,'execute',()=>_0xdfd873['execute']('restoreRevision')),_0x7633c7;}),_0xdfd873['ui']['componentFactory']['add']('changesNavigation',_0x430b8c=>{const _0x28a118=new Ri(_0x430b8c),_0x45adc6=_0xdfd873['commands']['get']('showPreviousChange'),_0xb90221=_0xdfd873['commands']['get']('showNextChange');return _0x28a118['bind']('isBackwardNavigationEnabled')['to'](_0x45adc6,'isEnabled'),_0x28a118['bind']('isForwardNavigationEnabled')['to'](_0xb90221,'isEnabled'),_0x28a118['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3c1cd2),this['listenTo'](_0x28a118,'execute',(_0x35fa48,_0x22656a)=>{_0xdfd873['execute']('forward'===_0x22656a?'showNextChange':'showPreviousChange');}),_0x28a118;}),_0x454029['show'](),_0x3c1cd2['on']('change:isReady',(_0x359ac3,_0x1f4bef,_0x39afb0)=>{_0x39afb0?_0x454029['hide']():_0x454029['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x1f3a4c,_0x35287e){super(_0x1f3a4c,_0x35287e);const _0x101256=this['bindTemplate'];this['set']({'label':R(_0x1f3a4c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1f3a4c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x101256['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x29dccf=this['fieldView']['element'];this['_tooltipString']=_0x29dccf['scrollWidth']>_0x29dccf['clientWidth']&&_0x29dccf['value']||'';}}class vi extends _0x42faba{constructor(_0x3ecc21,_0x39d3b9,_0x44edb7){super(_0x3ecc21);const _0x4eb6f7=new _0x257c58();_0x4eb6f7['set']({'content':_0x5944d6,'viewBox':'0\x200\x2011\x2010'});const _0x26a6e3=['ck','ck-revision-history-sidebar__revision-author'];_0x44edb7&&_0x26a6e3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1bd184=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3ecc21,_0x44edb7?'Revision\x20creator':'Revision\x20author')},'children':[_0x4eb6f7,_0x39d3b9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x26a6e3},'children':_0x1bd184});}}function mi(_0x2acd0c,_0x47a03e){const _0x535dd0=_0x2acd0c['bindTemplate'],_0x524f6c=_0x2acd0c['locale'],_0x25e14e=_0xf860ea(_0x524f6c);_0x25e14e['panelPosition']='sw';const _0x3d1a27=function(_0xf69b2e,_0xc6fbc8){const _0x5e887b=function(_0xed61c0,_0x2b8eb5){const _0x1d2762=_0xed61c0['locale'],_0x154857={'Compare\x20against\x20selected':R(_0x1d2762,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1d2762,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1d2762,'Restore\x20this\x20revision')};return _0x2b8eb5['map'](_0x328952=>{const _0x2d23c4=_0x154857[_0x328952['name']];return _0x2d23c4&&_0x2d23c4!==_0x328952['name']&&(_0x328952['name']=_0x2d23c4),_0x328952;});}(_0xf69b2e,_0xc6fbc8),_0x420327=new _0x1787f2();for(const _0x3a0e2d of _0x5e887b){const _0x42f525={'type':'button','model':new to({'label':_0x3a0e2d['name'],'class':_0x3a0e2d['class'],'withText':!0x0,'role':'menuitem','_action':_0x3a0e2d['action']})};_0x42f525['model']['bind']('isEnabled')['to'](_0xf69b2e,'isActionsDropdownOpen',_0x2d1e6e=>'function'!=typeof _0x3a0e2d['isEnabled']||(!_0x2d1e6e||_0x3a0e2d['isEnabled'](_0xf69b2e))),_0x420327['add'](_0x42f525);}return _0x420327;}(_0x2acd0c,_0x47a03e);return _0x2acd0c['bind']('isActionsDropdownOpen')['to'](_0x25e14e,'isOpen'),_0x25e14e['buttonView']['set']({'label':R(_0x524f6c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x11c06a}),_0x25e14e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x535dd0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x535dd0['to'](_0x188e45=>_0x188e45['stopPropagation']())}}),_0x25e14e['on']('execute',_0x250d53=>{_0x2acd0c['isReady']&&'function'==typeof _0x250d53['source']['_action']&&_0x250d53['source']['_action'](_0x2acd0c);}),_0x10dfb2(_0x25e14e,_0x3d1a27,{'role':'menu'}),_0x25e14e['listenTo'](_0x2acd0c,'change:isActionsDropdownOpen',(_0xd2c7b3,_0x2bf45f,_0x57e2b9)=>{if(_0x57e2b9)for(const _0x3ab38a of _0x25e14e['listView']['items']){const _0x5a8d1e=_0x3ab38a['children']['first'],_0x13fada=_0x47a03e['find'](_0x5262b0=>_0x5262b0['action']===_0x5a8d1e['_action'])['isVisible'];_0x3ab38a['isVisible']=void 0x0===_0x13fada||_0x13fada(_0x2acd0c);}}),_0x25e14e;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4683d1(_0x42faba){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2b32a1,_0x53ee77,_0x4135b8,_0x5b0eb6){super(_0x2b32a1);const _0x510eb3=this['bindTemplate'],_0x5b5278=function(_0x548848,_0x2a28ca){const _0x3c2256=Array['from'](_0x2a28ca['authors'])['filter'](_0x22b4a8=>_0x22b4a8!=_0x2a28ca['creator']);return _0x2a28ca['creator']&&_0x3c2256['unshift'](_0x2a28ca['creator']),_0x3c2256['map'](_0x1ac4f2=>new vi(_0x548848,_0x1ac4f2,_0x1ac4f2==_0x2a28ca['creator']));}(_0x2b32a1,_0x53ee77);this['id']=_0x53ee77['id'],this['_revision']=_0x53ee77,this['_requireRevisionName']=_0x5b0eb6,this['bind']('name','createdAt')['to'](_0x53ee77),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1bd3ba=>{return _0x90145e=_0x2b32a1['uiLanguage'],(_0x59d1fe=_0x1bd3ba)['toLocaleDateString'](_0x90145e,{'month':'long','day':'numeric'})+',\x20'+_0x59d1fe['toLocaleTimeString'](_0x90145e,{'hour':'numeric','minute':'numeric'});var _0x90145e,_0x59d1fe;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x2b32a1,_0x3269f8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x40ba3d=>_0x40ba3d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ab823,_0x544689)=>_0x2ab823&&_0x544689),this['revisionActionsView']=_0x4135b8&&_0x4135b8['length']?mi(this,_0x4135b8):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x510eb3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x510eb3['if']('isEnabled','ck-disabled',_0x58aef2=>!_0x58aef2),_0x510eb3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x510eb3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x510eb3['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':_0x510eb3['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':_0x5b5278}]},this['revisionActionsView']],'on':{'click':_0x510eb3['to'](_0x33dddd=>{_0x33dddd['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3e7347=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3e7347,'change',()=>{this['_requireRevisionName']&&!_0x3e7347['value']||this['fire']('setName',{'id':this['id'],'name':_0x3e7347['value']}),_0x3e7347['value']||(_0x3e7347['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x576706,_0x4abe9d){const _0x7818=_0x46f1a1['fromJSDate'](_0x576706)['setLocale'](_0x4abe9d),_0x5c3e2f=_0x46f1a1['local'](),_0x54340c=_0x5c3e2f['minus']({'days':0x1})['startOf']('day');let _0x4b0a5e,_0x2c9000;return _0x7818['hasSame'](_0x5c3e2f,'day')?(_0x4b0a5e=_0x7818['startOf']('day')['toJSDate'](),_0x2c9000=_0x7818['toRelativeCalendar']()):_0x7818['hasSame'](_0x54340c,'day')?(_0x4b0a5e=_0x54340c['toJSDate'](),_0x2c9000=_0x7818['toRelativeCalendar']()):_0x7818['hasSame'](_0x5c3e2f,'week')?(_0x4b0a5e=_0x7818['startOf']('week')['toJSDate'](),_0x2c9000=_0x7818['weekdayLong']||''):_0x7818['hasSame'](_0x5c3e2f,'year')?(_0x4b0a5e=_0x7818['startOf']('month')['toJSDate'](),_0x2c9000=_0x7818['monthLong']||''):(_0x4b0a5e=_0x7818['startOf']('year')['toJSDate'](),_0x2c9000=String(_0x7818['year'])),{'startDate':_0x4b0a5e,'localizedPeriodName':_0x2c9000};}class fi extends _0x42faba{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xda426b,_0x5cf659,_0x567d2f,_0x516c39){super(_0xda426b);const _0x491ba8=bi(_0x5cf659,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5cf659,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x567d2f,this['_requireRevisionName']=_0x516c39,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':_0x491ba8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1af922){const _0x57d225=new pi(this['locale'],_0x1af922,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x57d225);}['removeRevision'](_0xc098f5){const _0x4744fa=this['revisionViews']['find'](_0x4e7833=>_0x4e7833['id']===_0xc098f5['id']);this['revisionViews']['remove'](_0x4744fa);}}class ki extends _0x42faba{constructor(_0x45d105){super(_0x45d105);const _0x47b1bf=new _0x257c58();_0x47b1bf['content']=_0x27c55e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x47b1bf,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x45d105,'Revision\x20history')]}]});}}class ui extends _0x42faba{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1c5648,_0x389fcf,_0x292f68,_0x27532f){super(_0x1c5648);const _0x9f1c74=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x389fcf,this['_revisionActions']=_0x292f68,this['_requireRevisionName']=_0x27532f,this['on']('select',(_0x1d3b25,_0x8f34a4)=>{this['fire']('revisionSelected',_0x8f34a4);}),this['on']('setName',(_0x381795,_0xb6a021)=>{this['fire']('revisionSetName',_0xb6a021);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x1c5648),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x9f1c74['if']('isEnabled','ck-disabled',_0xcfc22b=>!_0xcfc22b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5cde7b of this['_revisions'])this['_addRevision'](_0x5cde7b);this['_revisions']['on']('add',(_0x4721fd,_0x2254ac)=>{this['_addRevision'](_0x2254ac);}),this['_revisions']['on']('remove',(_0x384475,_0x43920f)=>{this['_removeRevision'](_0x43920f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1fce18=>_0x1fce18['revisionViews']['map'](_0x3df9cf=>_0x3df9cf))['flat']();}['selectRevision'](_0x490a0f){for(const _0x2d0bef of this['revisionViews'])_0x490a0f&&_0x490a0f['id']===_0x2d0bef['id']?_0x2d0bef['select']():_0x2d0bef['deselect']();}['highlightRevisions'](_0x1a3b55){for(const _0x33f983 of this['revisionViews'])_0x1a3b55['some'](({id:_0x3a581e})=>_0x3a581e===_0x33f983['id'])?_0x33f983['highlight']():_0x33f983['unhighlight']();}['_addRevision'](_0xa68177){const _0x38c9b6=bi(_0xa68177['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x30da50=this['timePeriodViews']['get'](0x0);_0x30da50&&_0x30da50['startDate']['getTime']()===_0x38c9b6['getTime']()||(_0x30da50=new fi(this['locale'],_0x38c9b6,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x30da50)),_0x30da50['addRevision'](_0xa68177);}['_removeRevision'](_0x580004){const _0x581a60=bi(_0x580004['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x581a60)['removeRevision'](_0x580004);}['_getTimePeriodViewByStartDate'](_0x1485e1){return this['timePeriodViews']['find'](_0x1af77c=>_0x1af77c['startDate']['getTime']()===_0x1485e1['getTime']());}}class f extends _0x3eb3aa{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x1cd33c(_0x674d86){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4d3802,_0x2861d3){super(_0x2861d3),this['sourceElement']=_0x4d3802,this['model']['document']['createRoot']();const _0x422aac=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x422aac);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x24a39a,_0x2e10fd){const _0xd8202b=new this(_0x24a39a,_0x2e10fd);return await _0xd8202b['initPlugins'](),await _0xd8202b['ui']['init'](_0x24a39a),await _0xd8202b['data']['init'](_0xd8202b['config']['get']('initialData')||''),_0xd8202b['fire']('ready'),_0xd8202b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x1305a6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x369ab0){function _0x35be22(_0x1e57c0){return _0x1e57c0['map'](_0x1d991d=>String['fromCharCode'](_0x1d991d))['join']('');}super(_0x369ab0),this['result']='end',_0x369ab0[_0x35be22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35be22([0x76,0x69,0x65,0x77])][_0x35be22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35be22([0x61,0x75,0x74,0x6f]),_0x369ab0[_0x35be22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x35be22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35be22([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x35be22([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x35be22([0x6f,0x6b])});}}class ct extends _0x1305a6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3d717f){if(super(_0x3d717f),!this['editor']['config']['get']('revisionHistory'))throw new _0x51ae0d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x584691=>this['_showRevisionViewer']({..._0x584691,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36d7bf=>this['_closeRevisionViewer'](_0x36d7bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ea12d=>this['_restoreRevision'](_0x2ea12d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5bf4f5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5bf4f5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4a304d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4a304d);}['getRevision'](_0x2489b8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2489b8);}['getRevisions'](_0x28f11b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x28f11b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4bddd7=this['editor'],_0x474721=_0x5dbe93(_0x4bddd7,d),_0x5b6b10=_0x4bddd7['plugins']['get']('RevisionTracker'),_0x5774f9=_0x4bddd7['plugins']['get']('Users')['users'];return _0x474721['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x474721['lazyRoots'],(_0x474721['plugins']['push'](ht,l,u,class extends _0x1305a6{static get['requires'](){return[l,'Users'];}['init'](){const _0x3b061d=this['editor']['plugins']['get']('Users');for(const _0x45b43d of _0x5774f9)_0x45b43d['isAnonymous']||_0x3b061d['getUser'](_0x45b43d['id'])||_0x3b061d['addUser'](_0x45b43d);const _0x4c8a73=_0x5b6b10['repository']['getRevisions']();let _0x2f0417=null;const _0x5496e1=this['editor']['plugins']['get']('RevisionViewer');_0x5496e1['adapter']=_0x5b6b10['adapter'],_0x5496e1['bind']('isEnabled')['to'](_0x5b6b10),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4bddd7,'isReadOnly',_0x5234ef=>!_0x5234ef);for(const _0x1faf9d of _0x4c8a73){const _0x1480c3=null===_0x1faf9d['creator'];if(_0x1480c3&&_0x1faf9d['toVersion']===_0x1faf9d['fromVersion'])continue;const _0x48bfab=_0x1faf9d['toJSON']();_0x5496e1['addRevisionData'](_0x48bfab,(_0x1164b9,_0x283a7e,_0x3783bd)=>{if(_0x1480c3){if(_0x2f0417)_0x2f0417['_update'](_0x1164b9,_0x283a7e);else{if(!_0x283a7e){const _0x37fd5e=_0x3783bd['toJSON']();_0x37fd5e['id']=_0x2e23f1(),_0x5b6b10['saveRevision'](_0x37fd5e,_0x3783bd['toVersion'])['then'](_0x436b01=>{_0x2f0417=_0x436b01;});}}}else _0x1faf9d['_update'](_0x1164b9,_0x283a7e);});}}},f),_0x474721);}['_enhanceShowRevisionViewerCallback'](){const _0x401ea2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x265556=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1fce27=this['editor']['plugins']['get']('Autosave');await _0x1fce27['save']();}else await _0x265556['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x111326=this['editor']['plugins']['get']('Dialog');_0x111326['isOpen']&&_0x111326['hide']();}const _0x23f6b3=this['_getRevisionViewerEditorConfig']();return _0x401ea2(_0x23f6b3)['then'](_0xcf2c75=>{return(this['_viewerEditor']=_0xcf2c75,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xcf2c75);})['catch'](_0x41076f=>(console['error'](_0x41076f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xb16d93=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xb16d93(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x37e3fe=this['editor']['plugins']['get']('Annotations');_0x37e3fe['refreshVisibility'](),_0x37e3fe['refreshPositioning']();}})));}['_showRevisionViewer'](_0x32b0c4){const _0xc248aa=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x12c0d0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4541e0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4541e0,_0x32b0c4)['then'](_0x492cc4=>(_0x12c0d0['style']['display']='block',_0xc248aa['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x492cc4));}['_closeRevisionViewer'](_0x5bd0c2){const _0x2cf0cc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2cf0cc['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5bd0c2['destroy']();}async['_restoreRevision'](_0x30b9ce){const _0x5be029=this['editor'],_0x30b4ce=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3cb2f7=_0x5be029['plugins']['get']('RevisionTracker'),_0x404fb9=_0x5be029['plugins']['get']('RevisionHistoryUtils'),_0x4fac3b=_0x30b4ce['repository']['getRevision'](_0x30b9ce);let _0x1155a9,_0x2daa6f,_0x1a4d50;try{await _0x404fb9['loadRevisionData'](_0x4fac3b,this['adapter']),_0x1155a9=_0x404fb9['getRevisionDocumentData'](_0x4fac3b),_0x2daa6f=_0x404fb9['getRevisionRootsAttributes'](_0x4fac3b);}catch(_0x1cb2eb){return void console['error'](_0x1cb2eb);}_0x5be029['model']['change'](_0x1ef335=>{for(const _0x552424 of Array['from'](_0x5be029['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1ef335['removeMarker'](_0x552424);}),_0x30b4ce['isReady']=!0x1,_0x5be029['model']['enqueueChange'](_0x36220b=>{_0x36220b['setSelection'](null),_0x36220b['removeSelectionAttribute'](_0x5be029['model']['document']['selection']['getAttributeKeys']());const _0x31017b=Object['keys'](_0x1155a9);for(const _0x2110c8 of _0x5be029['model']['document']['roots'])'$graveyard'!=_0x2110c8['rootName']&&_0x2110c8['isAttached']()&&!_0x31017b['includes'](_0x2110c8['rootName'])&&_0x36220b['detachRoot'](_0x2110c8);for(const _0x5bd6fe of _0x31017b){let _0x3b140b=_0x5be029['model']['document']['getRoot'](_0x5bd6fe);_0x3b140b&&_0x3b140b['isAttached']()||(_0x3b140b=_0x36220b['addRoot'](_0x5bd6fe));const _0x51a7ac=_0x2daa6f[_0x5bd6fe],_0x13472=Object['keys'](_0x51a7ac),_0x2d4ec1=_0x1155a9[_0x5bd6fe];for(const _0x2c5141 of _0x3b140b['getAttributeKeys']())_0x13472['includes'](_0x2c5141)||_0x36220b['removeAttribute'](_0x2c5141,_0x3b140b);for(const _0x5a05b4 of _0x13472)_0x36220b['setAttribute'](_0x5a05b4,_0x2daa6f[_0x5bd6fe][_0x5a05b4],_0x3b140b);_0x36220b['remove'](_0x36220b['createRangeIn'](_0x3b140b)),_0x36220b['insert'](_0x5be029['data']['parse'](_0x2d4ec1,_0x3b140b),_0x3b140b,0x0);}});const _0x42ba3f=R(_0x5be029['locale'],'Restored');if(_0x4fac3b['name'])_0x1a4d50=-0x1==_0x4fac3b['name']['indexOf'](_0x42ba3f)?_0x42ba3f+':\x20'+_0x4fac3b['name']:_0x4fac3b['name'];else _0x1a4d50=_0x42ba3f+':\x20'+(_0x4fac3b['createdAt']['toLocaleDateString'](_0x5be029['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4fac3b['createdAt']['toLocaleTimeString'](_0x5be029['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3cb2f7['saveRevision']({'name':_0x1a4d50}),_0x30b4ce['isReady']=!0x0,_0x5be029['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0xef46dd){super(_0xef46dd),this['_revisionViewer']=_0xef46dd['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3f8a67=this['_revisionsRepository']['_revisions'],_0x4310a2=this['_createRevisionActions'](),_0x587fec=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x3f8a67,_0x4310a2,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',(_0x499eac,_0x30670c)=>{_0x30670c['revisionViews']['on']('add',(_0x28e94a,_0x56a805)=>{_0x56a805['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)),_0x587fec['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2c3501=this['_revisionsRepository']['getRevision'](0x0);if(_0x2c3501){const _0x395c0d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c3501['id']);this['_revisionViewer']['compare'](_0x2c3501,_0x395c0d);}}['_handleRevisionSelected'](_0x5c26ab,_0x56e821){const _0x51c28c=this['_revisionsRepository']['getRevision'](_0x56e821['id']),_0x131930=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x51c28c['id']);this['_revisionViewer']['compare'](_0x51c28c,_0x131930);}['_handleRevisionSetName'](_0x49aaf0,_0xaac679){this['_revisionsRepository']['getRevision'](_0xaac679['id'])['setName'](_0xaac679['name']);}['_handleDiffChange'](_0x44154c,_0x390001,_0x57aeca){const _0x3900cc=this['_revisionsRepository']['getRevisionsInDiff'](_0x57aeca);_0x3900cc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3900cc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3900cc[0x0]));}['_createRevisionActions'](){const _0x205d92=this['editor'],_0x4117ea=f['availableRevisionActions'],_0x4394ce=_0x205d92['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x4394ce['length'])return _0x4394ce['map'](_0x1f36fe=>{const _0x1f5b40='string'==typeof _0x1f36fe?Object['assign']({},_0x4117ea[_0x1f36fe]):_0x1f36fe;return _0x1f5b40['action']=_0x1f5b40['action']['bind'](this,_0x205d92),_0x1f5b40['isVisible']&&(_0x1f5b40['isVisible']=_0x1f5b40['isVisible']['bind'](this,_0x205d92)),_0x1f5b40;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xe1e353},_0xb786a6)=>{const _0x27dfc3=_0xe1e353['get'](l),_0x26fb3a=_0x27dfc3['repository'];let _0xe9ca0f=_0x27dfc3['diff']['newRevisionId'],_0x304ca8=_0xb786a6['id'];_0x26fb3a['getIndex'](_0xe9ca0f)>_0x26fb3a['getIndex'](_0x304ca8)&&([_0xe9ca0f,_0x304ca8]=[_0x304ca8,_0xe9ca0f]),_0x27dfc3['compare'](_0xe9ca0f,_0x304ca8);},'isVisible':({plugins:_0x57decf},_0x4bfaac)=>{const _0x4b31be=_0x57decf['get'](l);return!(_0x4b31be['repository']['getRevisionsInDiff'](_0x4b31be['diff'])['length']>0x2)&&!_0x4bfaac['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2da7e,{id:_0x4e6319})=>{_0x2da7e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4e6319);},'isVisible':({plugins:_0x103beb},_0x14d284)=>!!_0x103beb['get'](l)['repository']['getLaterVisibleRevision'](_0x14d284['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x31be95},{id:_0x246ade,revisionNameView:_0x504235})=>{const _0x409cc9=_0x31be95['get'](l),_0x368a26=_0x409cc9['repository']['getEarlierVisibleRevision'](_0x246ade);_0x409cc9['compare'](_0x246ade,_0x368a26),_0x504235['focus'](),_0x504235['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x56331d,_0x3740fd){super(_0x56331d),this['_view']=_0x3740fd,this['_toolbarConfig']=st(_0x56331d['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3e36cf){const _0x4ba1c7=this['editor'],_0x2cc7cc=this['view'],_0x58733f=_0x4ba1c7['editing']['view'],_0x3c8f92=_0x2cc7cc['editable'],_0x2c5da0=_0x58733f['document']['getRoot']();_0x3c8f92['name']=_0x2c5da0['rootName'],_0x2cc7cc['render']();const _0x9e6309=_0x3c8f92['element'];this['setEditableElement'](_0x3c8f92['name'],_0x9e6309),_0x2cc7cc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x58733f['attachDomRoot'](_0x9e6309),this['_elementReplacer']['replace'](_0x3e36cf,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x53a058=this['view'],_0x52de34=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x52de34['detachDomRoot'](_0x53a058['editable']['name']),_0x53a058['destroy']();}['_initToolbar'](){const _0x358e90=this['view'];_0x358e90['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x358e90['stickyPanel']['limiterElement']=_0x358e90['element'],_0x358e90['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x27c9a9})=>_0x27c9a9),_0x358e90['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x358e90['toolbar']);}}class ii extends _0x58c8a2{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2d51d8,_0x13c1d7,_0x32b4cc={}){super(_0x2d51d8),this['stickyPanel']=new _0x457380(_0x2d51d8),this['toolbar']=new _0x561180(_0x2d51d8,{'shouldGroupWhenFull':_0x32b4cc['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2d51d8,_0x13c1d7);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x33789f(_0x50610b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x322e06,_0x2da533){super(_0x2da533),this['sourceElement']=_0x322e06,this['model']['document']['createRoot']();const _0x2b1ba3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2b1ba3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x238ee4,_0x1c8a11){const _0x207791=new this(_0x238ee4,_0x1c8a11);return await _0x207791['initPlugins'](),await _0x207791['ui']['init'](_0x238ee4),await _0x207791['data']['init'](_0x207791['config']['get']('initialData')||''),_0x207791['fire']('ready'),_0x207791;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x3eb3aa{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44d03d){function _0x316377(_0x136300){return _0x136300['map'](_0x2676ff=>String['fromCharCode'](_0x2676ff))['join']('');}super(_0x44d03d),this['result']='end',_0x44d03d[_0x316377([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x316377([0x76,0x69,0x65,0x77])][_0x316377([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x316377([0x61,0x75,0x74,0x6f]),_0x44d03d[_0x316377([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x316377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x316377([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x316377([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x316377([0x6f,0x6b])});}}class ht extends _0x3eb3aa{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x324c1e){if(super(_0x324c1e),!this['editor']['config']['get']('revisionHistory'))throw new _0x209f36('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x132518=>this['_showRevisionViewer']({..._0x132518,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2f3c52=>this['_closeRevisionViewer'](_0x2f3c52)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x772b8c=>this['_restoreRevision'](_0x772b8c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x52bb8d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x52bb8d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f803a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f803a);}['getRevision'](_0x2bada3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2bada3);}['getRevisions'](_0x293a6e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x293a6e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15bc5d=this['editor'],_0x470e40=_0x32c703(_0x15bc5d,d),_0x395a50=_0x15bc5d['plugins']['get']('RevisionTracker'),_0x379495=_0x15bc5d['plugins']['get']('Users')['users'];return _0x470e40['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x470e40['lazyRoots'],(_0x470e40['plugins']['push'](at,l,u,class extends _0x3eb3aa{static get['requires'](){return[l,'Users'];}['init'](){const _0x1b87b6=this['editor']['plugins']['get']('Users');for(const _0x2dd045 of _0x379495)_0x2dd045['isAnonymous']||_0x1b87b6['getUser'](_0x2dd045['id'])||_0x1b87b6['addUser'](_0x2dd045);const _0x164419=_0x395a50['repository']['getRevisions']();let _0x1acd03=null;const _0x1914d9=this['editor']['plugins']['get']('RevisionViewer');_0x1914d9['adapter']=_0x395a50['adapter'],_0x1914d9['bind']('isEnabled')['to'](_0x395a50),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15bc5d,'isReadOnly',_0x4313b3=>!_0x4313b3);for(const _0x538d2c of _0x164419){const _0x2f1cf5=null===_0x538d2c['creator'];if(_0x2f1cf5&&_0x538d2c['toVersion']===_0x538d2c['fromVersion'])continue;const _0x4c7b1d=_0x538d2c['toJSON']();_0x1914d9['addRevisionData'](_0x4c7b1d,(_0xd40ecc,_0x46308a,_0x4d4a86)=>{if(_0x2f1cf5){if(_0x1acd03)_0x1acd03['_update'](_0xd40ecc,_0x46308a);else{if(!_0x46308a){const _0x4a2fd2=_0x4d4a86['toJSON']();_0x4a2fd2['id']=_0x5a28d0(),_0x395a50['saveRevision'](_0x4a2fd2,_0x4d4a86['toVersion'])['then'](_0x56b26a=>{_0x1acd03=_0x56b26a;});}}}else _0x538d2c['_update'](_0xd40ecc,_0x46308a);});}}},f),_0x470e40);}['_enhanceShowRevisionViewerCallback'](){const _0x4718d7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4f3a05=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bc122=this['editor']['plugins']['get']('Autosave');await _0x4bc122['save']();}else await _0x4f3a05['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3977d3=this['editor']['plugins']['get']('Dialog');_0x3977d3['isOpen']&&_0x3977d3['hide']();}const _0x28d50f=this['_getRevisionViewerEditorConfig']();return _0x4718d7(_0x28d50f)['then'](_0x55e0bf=>{return(this['_viewerEditor']=_0x55e0bf,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x55e0bf);})['catch'](_0x317436=>(console['error'](_0x317436),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5d4d8a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5d4d8a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x351edd=this['editor']['plugins']['get']('Annotations');_0x351edd['refreshVisibility'](),_0x351edd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c5e98){const _0x2543b9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xcb6ace=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4022f6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4022f6,_0x3c5e98)['then'](_0x3e0dbf=>(_0xcb6ace['style']['display']='block',_0x2543b9['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3e0dbf));}['_closeRevisionViewer'](_0x5ed5c3){const _0x4eba6e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4eba6e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5ed5c3['destroy']();}async['_restoreRevision'](_0x55f6e3){const _0x30f809=this['editor'],_0x1677e3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x39db61=_0x30f809['plugins']['get']('RevisionTracker'),_0x383b24=_0x30f809['plugins']['get']('RevisionHistoryUtils'),_0x5bb02a=_0x1677e3['repository']['getRevision'](_0x55f6e3);let _0x22d288,_0x314c2f,_0x3b74f5;try{await _0x383b24['loadRevisionData'](_0x5bb02a,this['adapter']),_0x22d288=_0x383b24['getRevisionDocumentData'](_0x5bb02a),_0x314c2f=_0x383b24['getRevisionRootsAttributes'](_0x5bb02a);}catch(_0x5d1ff7){return void console['error'](_0x5d1ff7);}_0x30f809['model']['change'](_0x4484e5=>{for(const _0x25494b of Array['from'](_0x30f809['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4484e5['removeMarker'](_0x25494b);}),_0x1677e3['isReady']=!0x1,_0x30f809['model']['enqueueChange'](_0x36128a=>{_0x36128a['setSelection'](null),_0x36128a['removeSelectionAttribute'](_0x30f809['model']['document']['selection']['getAttributeKeys']());const _0xfa83d=Object['keys'](_0x22d288);for(const _0xa23838 of _0x30f809['model']['document']['roots'])'$graveyard'!=_0xa23838['rootName']&&_0xa23838['isAttached']()&&!_0xfa83d['includes'](_0xa23838['rootName'])&&_0x36128a['detachRoot'](_0xa23838);for(const _0x541b59 of _0xfa83d){let _0x389e85=_0x30f809['model']['document']['getRoot'](_0x541b59);_0x389e85&&_0x389e85['isAttached']()||(_0x389e85=_0x36128a['addRoot'](_0x541b59));const _0xb685cb=_0x314c2f[_0x541b59],_0x4c6923=Object['keys'](_0xb685cb),_0x11be96=_0x22d288[_0x541b59];for(const _0x4b315f of _0x389e85['getAttributeKeys']())_0x4c6923['includes'](_0x4b315f)||_0x36128a['removeAttribute'](_0x4b315f,_0x389e85);for(const _0xb3f939 of _0x4c6923)_0x36128a['setAttribute'](_0xb3f939,_0x314c2f[_0x541b59][_0xb3f939],_0x389e85);_0x36128a['remove'](_0x36128a['createRangeIn'](_0x389e85)),_0x36128a['insert'](_0x30f809['data']['parse'](_0x11be96,_0x389e85),_0x389e85,0x0);}});const _0x3b7ed3=R(_0x30f809['locale'],'Restored');if(_0x5bb02a['name'])_0x3b74f5=-0x1==_0x5bb02a['name']['indexOf'](_0x3b7ed3)?_0x3b7ed3+':\x20'+_0x5bb02a['name']:_0x5bb02a['name'];else _0x3b74f5=_0x3b7ed3+':\x20'+(_0x5bb02a['createdAt']['toLocaleDateString'](_0x30f809['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5bb02a['createdAt']['toLocaleTimeString'](_0x30f809['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x39db61['saveRevision']({'name':_0x3b74f5}),_0x1677e3['isReady']=!0x0,_0x30f809['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|