@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250105.0 → 0.0.0-nightly-20250106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- 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/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2a484b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x57cdb4){super(),this['id']=_0x57cdb4['id']||_0x437679(),this['creator']=_0x57cdb4['creator']||null,this['authors']=_0x57cdb4['authors']||[],this['diffData']=_0x57cdb4['diffData']||null,this['toVersion']=_0x57cdb4['toVersion']||0x0,this['fromVersion']=_0x57cdb4['fromVersion']||0x0,this['set']('name',_0x57cdb4['name']||''),this['set']('createdAt',_0x57cdb4['createdAt']||new Date()),this['set']('attributes',_0x57cdb4['attributes']||{});}['setName'](_0x4e33cb){this['_update']({'name':_0x4e33cb});}['setAttribute'](_0x5f0459,_0x4cd43d){const _0x71aa66=_0x34b9d0(this['attributes']);_0x5b3344(_0x71aa66,_0x5f0459,_0x4cd43d),this['_update']({'attributes':_0x71aa66});}['removeAttribute'](_0x59d388){const _0x6bde41=_0x34b9d0(this['attributes']);_0x1cd9db(_0x6bde41,_0x59d388),this['_update']({'attributes':_0x6bde41});}['_update'](_0x34ec27,_0x5019e7=!0x1){let _0x308b42=!0x1;const _0x30352e={'id':this['id']},_0x64d58f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xaced62 of _0x64d58f){const _0xe1c070=_0x34ec27[_0xaced62];void 0x0!==_0xe1c070&&_0xe1c070!==this[_0xaced62]&&(this[_0xaced62]=_0xe1c070,_0x30352e[_0xaced62]=_0xe1c070,_0x308b42=!0x0);}_0x308b42&&(_0x30352e['authors']&&(_0x30352e['authorsIds']=_0x30352e['authors']['map'](_0x1d432c=>_0x1d432c['id']),delete _0x30352e['authors']),this['fire']('_update',_0x30352e,_0x5019e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4ebca3=>_0x4ebca3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x20db2f{['_revisions'];static get['requires'](){return[_0x38b815];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x31cfd2){super(_0x31cfd2),this['_revisions']=new _0x43ea08();}['afterInit'](){!async function(_0x12f0db){const _0x282774=_0x415f12([0x54,0x69,0x33,0x4e,0x6c,0x42,0x56,0x58,0x73,0x52,0x79,0x49,0x30,0x5a,0x67,0x32,0x45,0x75,0x70,0x35,0x72,0x6d,0x64,0x71,0x57,0x6e,0x37,0x50,0x31,0x4b,0x46,0x6b,0x4c,0x36,0x4f,0x4d,0x55,0x63,0x78,0x74,0x53,0x41,0x6a,0x6f,0x48,0x4a,0x66,0x68,0x44,0x51,0x43,0x34,0x7a,0x77,0x39,0x61,0x38,0x65,0x47,0x62,0x76,0x59]),_0x735180=0xeb829,_0xb67940=0x47951379,_0x5207f1=0x479248c1^_0xb67940,_0x22b328=window[_0x415f12([0x44,0x61,0x74,0x65])][_0x415f12([0x6e,0x6f,0x77])](),_0x4f993a=_0x12f0db[_0x415f12([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29d4a6=new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12e4d3=>{_0x4f993a[_0x415f12([0x6f,0x6e,0x63,0x65])](_0x415f12([0x72,0x65,0x61,0x64,0x79]),_0x12e4d3);}),_0x42dc9f={[_0x415f12([0x6b,0x74,0x79])]:_0x415f12([0x45,0x43]),[_0x415f12([0x75,0x73,0x65])]:_0x415f12([0x73,0x69,0x67]),[_0x415f12([0x63,0x72,0x76])]:_0x415f12([0x50,0x2d,0x32,0x35,0x36]),[_0x415f12([0x78])]:_0x415f12([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]),[_0x415f12([0x79])]:_0x415f12([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]),[_0x415f12([0x61,0x6c,0x67])]:_0x415f12([0x45,0x53,0x32,0x35,0x36])},_0x26d3db=_0x4f993a[_0x415f12([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x415f12([0x67,0x65,0x74])](_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f7bcf(){let _0x86d369,_0x578c54=null,_0x14a1d6=null;try{if(_0x26d3db==_0x415f12([0x47,0x50,0x4c]))return _0x415f12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x86d369=_0x47f322(),!_0x86d369)return _0x415f12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x86d369[_0x415f12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14a1d6=_0x70fca2(_0x86d369[_0x415f12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x86d369[_0x415f12([0x6a,0x74,0x69])])),await _0x3dd098()?_0x211232()?_0x7eb4()?_0x415f12([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20e42b()?(_0x86d369[_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x415f12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x578c54=_0x4e1e45(_0x415f12([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x86d369[_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x415f12([0x74,0x72,0x69,0x61,0x6c])&&(_0x578c54=_0x4e1e45(_0x415f12([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x86d369[_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x415f12([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x578c54=_0x4e1e45(_0x415f12([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xae7bc()):_0x415f12([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x415f12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x415f12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ee337){return _0x415f12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7eb4(){const _0x131f14=[_0x415f12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x415f12([0x74,0x72,0x69,0x61,0x6c])][_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x86d369[_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x22b328/0x3e8:0xe10*_0x5207f1;return _0x86d369[_0x415f12([0x65,0x78,0x70])]<_0x131f14;}function _0x211232(){const _0x2da3ba=_0x86d369[_0x415f12([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2da3ba)return!0x1;if(_0x2da3ba[_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x415f12([0x2a])))return!0x0;if(_0x2da3ba[_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x415f12([0x52,0x48])))return!0x0;if(_0x2da3ba[_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x415f12([0x52,0x52,0x48]))){if(_0x40e11e())return!0x0;if(_0x2e6154()||_0x17f5ab())return!0x0;}return!0x1;}function _0x20e42b(){const _0x59b2c3=_0x86d369[_0x415f12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59b2c3||0x0==_0x59b2c3[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2797f9}=new URL(window[_0x415f12([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59b2c3[_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2797f9))return!0x0;const _0xe9136b=_0x2797f9[_0x415f12([0x73,0x70,0x6c,0x69,0x74])](_0x415f12([0x2e]));return _0x59b2c3[_0x415f12([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37ad65=>_0x37ad65[_0x415f12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x415f12([0x2a])))[_0x415f12([0x6d,0x61,0x70])](_0x4e95d0=>_0x4e95d0[_0x415f12([0x73,0x70,0x6c,0x69,0x74])](_0x415f12([0x2e])))[_0x415f12([0x73,0x6f,0x6d,0x65])](_0x476581=>_0xe9136b[_0x415f12([0x65,0x76,0x65,0x72,0x79])]((_0x2bacb7,_0x149bec)=>_0x476581[_0x149bec]===_0x2bacb7||_0x476581[_0x149bec]===_0x415f12([0x2a])));}function _0xae7bc(){return _0x578c54&&_0x14a1d6?new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d10e2,_0x336131)=>{_0x578c54[_0x415f12([0x74,0x68,0x65,0x6e])](_0x1d10e2,_0x336131),_0x14a1d6[_0x415f12([0x74,0x68,0x65,0x6e])](_0x43b88e=>{_0x43b88e!=_0x415f12([0x56,0x61,0x6c,0x69,0x64])&&_0x1d10e2(_0x43b88e);},_0x336131);}):_0x578c54||_0x14a1d6||_0x415f12([0x56,0x61,0x6c,0x69,0x64]);}}function _0x70fca2(_0x354df6,_0x5ec200){return new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a3308=>{if(_0x3f4d77())return _0x1a3308(_0x415f12([0x56,0x61,0x6c,0x69,0x64]));_0x158cb6(),_0x4f993a[_0x415f12([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x415f12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x206a1c=!0x1;const _0x36dee8=_0x437679();function _0x823d73(_0x420432){return!!_0x420432&&(typeof _0x420432===_0x415f12([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x420432===_0x415f12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x420432[_0x415f12([0x74,0x68,0x65,0x6e])]===_0x415f12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x420432[_0x415f12([0x63,0x61,0x74,0x63,0x68])]===_0x415f12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x296355(_0x472339){_0x517676(_0x472339)[_0x415f12([0x74,0x68,0x65,0x6e])](_0x59f883=>{if(!_0x59f883||_0x59f883[_0x415f12([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x415f12([0x6f,0x6b]))return _0x415f12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c74ad(_0x577471(_0x36dee8+_0x5ec200))!=_0x59f883[_0x415f12([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x415f12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x415f12([0x56,0x61,0x6c,0x69,0x64]);})[_0x415f12([0x74,0x68,0x65,0x6e])](_0x2eb5b8=>(_0x5d2c02(),_0x2eb5b8),()=>{const _0x3bbce8=_0x5b5541();return null==_0x3bbce8?(_0x5d2c02(),_0x415f12([0x56,0x61,0x6c,0x69,0x64])):_0x415f12(_0x22b328-_0x3bbce8>(0x63999779^_0xb67940)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x415f12([0x74,0x68,0x65,0x6e])](_0x1a3308)[_0x415f12([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a3308(_0x415f12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x375dc3=0x47a3fdf9^_0xb67940;function _0x5d2c02(){const _0x48c836=_0x415f12([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c74ad(_0x577471(_0x354df6)),_0x27d004=_0x5c41f7(_0x1c74ad(window[_0x415f12([0x4d,0x61,0x74,0x68])][_0x415f12([0x63,0x65,0x69,0x6c])](_0x22b328/_0x375dc3)));window[_0x415f12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x415f12([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c836,_0x27d004);}function _0x5b5541(){const _0x469c48=_0x415f12([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c74ad(_0x577471(_0x354df6)),_0x34d35c=window[_0x415f12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x415f12([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x469c48);return _0x34d35c?window[_0x415f12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c41f7(_0x34d35c),0x10)*_0x375dc3:null;}function _0x517676(_0x1cf6ed){return new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa8e4a8,_0x9f6312)=>{_0x1cf6ed[_0x415f12([0x74,0x68,0x65,0x6e])](_0xa8e4a8,_0x9f6312),window[_0x415f12([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9f6312,0x4794c7b9^_0xb67940);});}}_0x4f993a[_0x415f12([0x6f,0x6e])](_0x415f12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28d074,_0x4c14af)=>{if(_0x4c14af[0x0]!=_0x354df6)return _0x1a3308(_0x415f12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c14af[0x1]={..._0x4c14af[0x1],[_0x415f12([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36dee8};},{[_0x415f12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x415f12([0x68,0x69,0x67,0x68])}),_0x4f993a[_0x415f12([0x6f,0x6e])](_0x415f12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd25838=>{_0x823d73(_0xd25838[_0x415f12([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x206a1c=!0x0,_0x296355(_0xd25838[_0x415f12([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x415f12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x415f12([0x6c,0x6f,0x77])}),_0x29d4a6[_0x415f12([0x74,0x68,0x65,0x6e])](()=>{_0x206a1c||_0x1a3308(_0x415f12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f4d77(){return _0x4f993a[_0x415f12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x415f12([0x76,0x69,0x65,0x77])][_0x415f12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x415f12([0x61,0x75,0x74,0x6f]);}function _0x158cb6(){_0x4f993a[_0x415f12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x415f12([0x76,0x69,0x65,0x77])][_0x415f12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x415f12([0x61,0x75,0x74,0x6f]);}}function _0x4e1e45(_0x5007f0){const _0x5bd28f=[new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e8578=>setTimeout(_0x2e8578,0x479c2db5^_0xb67940)),_0x29d4a6[_0x415f12([0x74,0x68,0x65,0x6e])](()=>new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12368e=>{const _0xa74187=0x4795137e^_0xb67940,_0x16fa40=_0x12f0db[_0x415f12([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x42d458(){_0x16fa40[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xa74187&&_0x12368e();}_0x42d458(),_0x16fa40[_0x415f12([0x6f,0x6e])](_0x415f12([0x61,0x64,0x64]),_0x42d458);})),new window[(_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d332=>{function _0x42454e(){for(const _0x45d5ba in window)if(window[_0x415f12([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x415f12([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x45d5ba))&&window[_0x45d5ba]==_0x735180)return _0x38d332();_0x4f993a[_0x415f12([0x73,0x74,0x61,0x74,0x65])]!=_0x415f12([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x415f12([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42454e,0x479500f1^_0xb67940);}_0x546a67(_0x415f12([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x42454e();})];return window[_0x415f12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x415f12([0x72,0x61,0x63,0x65])](_0x5bd28f)[_0x415f12([0x74,0x68,0x65,0x6e])](()=>_0x5007f0);}async function _0x4f3ef5(){if(await _0x29d4a6,_0x546a67(_0x415f12([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2715c0=_0x12f0db[_0x415f12([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3f051c=_0x12f0db[_0x415f12([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])](_0x2715c0[_0x415f12([0x69,0x64])]),_0x54ead7=_0x19e7a1(_0x415f12([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x54ead7[_0x415f12([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2715c0['id'],_0x3f051c?_0x3f051c['id']:null,!0x0),_0x54ead7[_0x415f12([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x415f12([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x54ead7[_0x415f12([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x54ead7[_0x415f12([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d6002,void(_0x54ead7[_0x415f12([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d6002);}if(_0x546a67(_0x415f12([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x57b13b=_0x19e7a1(_0x415f12([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x57b13b[_0x415f12([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x415f12([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x57b13b[_0x415f12([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x57b13b[_0x415f12([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d6002,_0x57b13b[_0x415f12([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d6002;}_0x4f993a[_0x415f12([0x6d,0x6f,0x64,0x65,0x6c])][_0x415f12([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d6002,_0x4f993a[_0x415f12([0x6d,0x6f,0x64,0x65,0x6c])][_0x415f12([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d6002,_0x4f993a[_0x415f12([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x415f12([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40e11e(){return _0x546a67(_0x415f12([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x19e7a1(_0x415f12([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x415f12([0x73,0x74,0x61,0x74,0x65])]==_0x415f12([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2e6154(){return _0x546a67(_0x415f12([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 _0x17f5ab(){return _0x546a67(_0x415f12([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfe7dd4(_0x14a952){const _0x251388=_0x98ecc7();_0x4f993a[_0x251388]=_0x415f12([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])+_0x14a952,_0x14a952[_0x415f12([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x415f12([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x98ecc7()]=_0x735180),_0x14a952!=_0x415f12([0x56,0x61,0x6c,0x69,0x64])&&_0x4f3ef5();}function _0x98ecc7(){const _0x285938=window[_0x415f12([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x415f12([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x415f12([0x6e,0x6f,0x77])]())[_0x415f12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x415f12([0x2e]),'');let _0x1343bf=_0x415f12([0x54]);for(let _0x2bb778=0x0;_0x2bb778<_0x285938[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bb778+=0x2){let _0x1f5fd2=window[_0x415f12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x285938[_0x415f12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bb778,_0x2bb778+0x2));_0x1f5fd2>=_0x282774[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f5fd2-=_0x282774[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1343bf+=_0x282774[_0x1f5fd2];}return _0x1343bf;}function _0x47f322(){const _0x2a5c76=_0x26d3db[_0x415f12([0x73,0x70,0x6c,0x69,0x74])](_0x415f12([0x2e]));if(0x3!=_0x2a5c76[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4cb9b0(_0x2a5c76[0x1]);function _0x4cb9b0(_0x4891f0){const _0x1cfe91=_0x1c8c48(_0x4891f0);return _0x1cfe91&&_0x1af713()?_0x1cfe91:null;function _0x1af713(){const _0x15cd6f=_0x1cfe91[_0x415f12([0x6a,0x74,0x69])],_0x55d256=window[_0x415f12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15cd6f[_0x415f12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15cd6f[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4affe6={..._0x1cfe91,[_0x415f12([0x6a,0x74,0x69])]:_0x15cd6f[_0x415f12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15cd6f[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4affe6[_0x415f12([0x76,0x63])],_0x577471(_0x4affe6)==_0x55d256;}}}async function _0x3dd098(){let _0xf84ba7=!0x0;try{const _0x35e2ca=_0x26d3db[_0x415f12([0x73,0x70,0x6c,0x69,0x74])](_0x415f12([0x2e])),[_0x1a8ae9,_0x411b08,_0x5af526]=_0x35e2ca;return _0x28d2a5(_0x1a8ae9),await _0x27bfa1(_0x1a8ae9,_0x411b08,_0x5af526),_0xf84ba7;}catch(_0x27ce07){return!0x1;}function _0x28d2a5(_0x5ceb75){const _0x190041=_0x1c8c48(_0x5ceb75);_0x190041&&_0x190041[_0x415f12([0x61,0x6c,0x67])]==_0x415f12([0x45,0x53,0x32,0x35,0x36])||(_0xf84ba7=!0x1);}async function _0x27bfa1(_0x437252,_0x1307ec,_0x158936){const _0x1bdf0f=window[_0x415f12([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x415f12([0x66,0x72,0x6f,0x6d])](_0x1689bc(_0x158936),_0xe61d39=>_0xe61d39[_0x415f12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43582b=new window[(_0x415f12([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x415f12([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x437252+_0x415f12([0x2e])+_0x1307ec),_0x13fa3d=window[_0x415f12([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x415f12([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13fa3d)return;const _0x37233f=await _0x13fa3d[_0x415f12([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x415f12([0x6a,0x77,0x6b]),_0x42dc9f,{[_0x415f12([0x6e,0x61,0x6d,0x65])]:_0x415f12([0x45,0x43,0x44,0x53,0x41]),[_0x415f12([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x415f12([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x415f12([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13fa3d[_0x415f12([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x415f12([0x6e,0x61,0x6d,0x65])]:_0x415f12([0x45,0x43,0x44,0x53,0x41]),[_0x415f12([0x68,0x61,0x73,0x68])]:{[_0x415f12([0x6e,0x61,0x6d,0x65])]:_0x415f12([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37233f,_0x1bdf0f,_0x43582b)||(_0xf84ba7=!0x1);}}function _0x1c8c48(_0x9e9fd0){return _0x9e9fd0[_0x415f12([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x415f12([0x65,0x79]))?JSON[_0x415f12([0x70,0x61,0x72,0x73,0x65])](_0x1689bc(_0x9e9fd0)):null;}function _0x1689bc(_0x5cd2ec){return window[_0x415f12([0x61,0x74,0x6f,0x62])](_0x5cd2ec[_0x415f12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x415f12([0x2b]))[_0x415f12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x415f12([0x2f])));}function _0x577471(_0x199200){let _0x4dfd9f=0x1505;function _0x30cda3(_0x222ab2){for(let _0x23873d=0x0;_0x23873d<_0x222ab2[_0x415f12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23873d++){const _0x7540e3=_0x222ab2[_0x415f12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23873d);_0x4dfd9f=(_0x4dfd9f<<0x5)+_0x4dfd9f+_0x7540e3,_0x4dfd9f&=_0x4dfd9f;}}function _0x57cb3c(_0x47e951){Array[_0x415f12([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47e951)?_0x47e951[_0x415f12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57cb3c):_0x47e951&&typeof _0x47e951==_0x415f12([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x415f12([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47e951)[_0x415f12([0x73,0x6f,0x72,0x74])]()[_0x415f12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50f3fa,_0x37fa53])=>{_0x30cda3(_0x50f3fa),_0x57cb3c(_0x37fa53);}):_0x30cda3(window[_0x415f12([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47e951));}return _0x57cb3c(_0x199200),_0x4dfd9f>>>0x0;}function _0x1c74ad(_0x5887f6){return _0x5887f6[_0x415f12([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x415f12([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x415f12([0x30]));}function _0x5c41f7(_0x440ced){return _0x440ced[_0x415f12([0x73,0x70,0x6c,0x69,0x74])]('')[_0x415f12([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x415f12([0x6a,0x6f,0x69,0x6e])]('');}function _0x546a67(_0x104703){return _0x4f993a[_0x415f12([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x415f12([0x68,0x61,0x73])](_0x104703);}function _0x19e7a1(_0x2676e6){return _0x4f993a[_0x415f12([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x415f12([0x67,0x65,0x74])](_0x2676e6);}function _0x4d6002(){}function _0x415f12(_0xaeca4){return _0xaeca4['map'](_0x5a495e=>String['fromCharCode'](_0x5a495e))['join']('');}_0xfe7dd4(await _0x4f7bcf());}(this);}['createRevision'](_0x99173){const _0x2ce98e=this['editor']['plugins']['get']('Users');return new a({'id':_0x99173['id'],'name':_0x99173['name'],'creator':_0x99173['creatorId']?_0x2ce98e['getUser'](_0x99173['creatorId']):null,'diffData':_0x99173['diffData']||_0x99173['data'],'authors':_0x99173['authorsIds']['map'](_0x459ac5=>_0x2ce98e['getUser'](_0x459ac5)),'createdAt':new Date(_0x99173['createdAt']),'attributes':_0x99173['attributes'],'fromVersion':_0x99173['fromVersion'],'toVersion':_0x99173['toVersion']});}['addRevision'](_0x1e01e7,_0x24b66e=0x0){this['_revisions']['add'](_0x1e01e7,_0x24b66e);}['getRevision'](_0x15f794){return this['_revisions']['get'](_0x15f794);}['getRevisions'](_0x2a81e1={'toJSON':!0x1}){const _0x458dc7=Array['from'](this['_revisions']);return _0x458dc7['reverse'](),_0x2a81e1['toJSON']?_0x458dc7['map'](_0x318bda=>_0x318bda['toJSON']()):_0x458dc7;}['getIndex'](_0x249d80){return this['_revisions']['getIndex'](_0x249d80);}['getEarlierVisibleRevision'](_0x1edca6){const [,_0x534545]=this['getRevisionsIterator'](_0x1edca6,{'direction':'earlier'});return _0x534545;}['getLaterVisibleRevision'](_0x6ae9e){const [,_0x4230f6]=this['getRevisionsIterator'](_0x6ae9e,{'direction':'later'});return _0x4230f6;}['getRevisionsInDiff'](_0x5def8a){const _0x3717bd=[];for(const _0x2e60a3 of this['getRevisionsIterator'](_0x5def8a['newRevisionId']))if(_0x3717bd['push'](_0x2e60a3),_0x2e60a3['id']===_0x5def8a['oldRevisionId'])break;return _0x3717bd;}*['getRevisionsIterator'](_0x4fd967,{direction:_0x4c8dca='earlier',filter:_0x1dd10c=()=>!0x0}={}){const _0x47aabd='earlier'===_0x4c8dca?0x1:-0x1;let _0xcc7579=this['_revisions']['get'](_0x4fd967),_0x4751a8=this['getIndex'](_0xcc7579);for(yield _0xcc7579;_0xcc7579;){if(_0x4751a8+=_0x47aabd,_0xcc7579=this['getRevision'](_0x4751a8),!_0xcc7579)return;_0x1dd10c(_0xcc7579)&&(yield _0xcc7579);}}}function R(_0x46f92c,_0x3dea39,_0x14b339){const t=_0x46f92c['t'];switch(_0x3dea39){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'},_0x14b339);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14b339);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x759405,'a':_0xe3136e,'e':_0x145ea7,'r':_0xc1f4e3,'u':_0x3e7f30};class l extends _0x20db2f{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x38b815,j,_0x1c2f0c];}constructor(_0x59c096){super(_0x59c096),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2499cb=_0x437679();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2499cb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3c8d20=this['repository']['getRevision'](0x0),_0x516c4f=_0x3c8d20&&null===_0x3c8d20['creator']?_0x3c8d20:null;if(this['_continueCurrentRevision']=!!_0x516c4f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x220145=this['_source']['getCurrentRevisionId'](),_0x27798b=this['repository']['getRevision'](_0x220145);if(_0x27798b)this['_startingVersion']=_0x27798b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x545688=this['_source']['history']['_operations']['find'](_0x372fa6=>!_0x372fa6['_isInit']),_0x360a28=_0x545688?_0x545688['baseVersion']:this['_source']['history']['version'];_0x3c8d20?(_0x3c8d20['toVersion']<_0x360a28&&_0x3c8d20['_update']({'toVersion':_0x360a28}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x516c4f['id'],this['_startingVersion']=_0x516c4f['fromVersion']):(this['_startingVersion']=_0x3c8d20['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x360a28,this['_continueCurrentRevision']=!0x1);}}else _0x516c4f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x516c4f['toVersion'],this['editor']['model']['document']['history']['version']),_0x516c4f['fromVersion']===_0x516c4f['toVersion']?(0x0!==_0x516c4f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x516c4f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x516c4f['id'],this['_startingVersion']=_0x516c4f['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',_0x24e59d=>!_0x24e59d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x175771=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x478be4;for(const _0x1e1939 in _0x175771){const _0x441a39=_0x1e1939,_0x521f09=_0x175771[_0x441a39];if('revisionHistoryLicenseKeyValid'==_0x521f09||'revisionHistoryLicenseKeyInvalid'==_0x521f09||'revisionHistoryLicenseKeyExpired'==_0x521f09||'revisionHistoryLicenseKeyDomainLimit'==_0x521f09||'revisionHistoryLicenseKeyNotAllowed'==_0x521f09||'revisionHistoryLicenseKeyEvaluationLimit'==_0x521f09||'revisionHistoryLicenseKeyTrialLimit'==_0x521f09||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x521f09||'revisionHistoryLicenseKeyUsageLimit'==_0x521f09){delete _0x175771[_0x441a39],_0x478be4=_0x521f09,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x478be4&&_0x175771['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x478be4&&_0x175771['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x478be4&&_0x175771['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x478be4&&_0x175771['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x478be4&&_0x175771['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x478be4&&_0x175771['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x478be4&&_0x175771['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x478be4&&_0x175771['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x135a49=this['repository']['getRevision'](0x0),_0x65850d=await this['getRevisionDocumentData'](_0x135a49),_0x529c3d=await this['getRevisionRootsAttributes'](_0x135a49);this['_replaceEditorDataWithRevisionData'](_0x65850d,_0x529c3d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x441cbf){this['_source']=_0x441cbf;}async['update'](){const _0x5e4aa7=await this['_source']['getLatestVersion']();if(_0x5e4aa7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x544b85=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5e4aa7});_0x544b85['authors']=_0x544b85['authorsIds']['map'](_0x2b7f0f=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b7f0f)),this['currentRevision']['_update'](_0x544b85);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x317934={},_0x7b5b62=null){const _0x152f26=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x7b5b62>this['currentRevision']['toVersion']&&(_0x7b5b62=null),null===_0x7b5b62&&(_0x7b5b62=await this['_source']['getLatestVersion']());const _0x490cf9=this['_getFromVersion'](_0x7b5b62),_0x43a4a9=this['buildRevisionData']({'from':_0x490cf9,'to':_0x7b5b62});if(this['currentRevision']['toVersion']<_0x7b5b62){const _0xbf4d5e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x7b5b62,'to':_0x7b5b62});_0xbf4d5e['authors']=[],_0xbf4d5e['authorsIds']=[],_0xbf4d5e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbf4d5e,!0x0),delete _0xbf4d5e['authors'],_0x152f26['push'](_0xbf4d5e);}_0x317934['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x317934['name']=_0x317934['name']||null,_0x317934['id']=_0x317934['id']||_0x437679(),_0x317934={..._0x317934,..._0x43a4a9};const _0x4b77b4=this['addRevisionData'](_0x317934);_0x152f26['push'](_0x317934);const _0x26925b=this['repository']['getIndex'](_0x4b77b4);if(0x0!==_0x26925b){const _0x3976a2=this['repository']['getRevision'](_0x26925b-0x1);if(_0x3976a2['fromVersion']!==_0x7b5b62){const _0x199b2d=this['_revisionDataBuilder']['getData'](_0x7b5b62,_0x3976a2['toVersion']),_0x499c45={'id':_0x3976a2['id'],'diffData':_0x199b2d['diffData'],'authorsIds':_0x199b2d['authorsIds'],'authors':_0x199b2d['authorsIds']['map'](_0x3af9e6=>this['editor']['plugins']['get']('Users')['getUser'](_0x3af9e6)),'fromVersion':_0x7b5b62};_0x3976a2===this['currentRevision']&&(_0x499c45['createdAt']=new Date(_0x317934['createdAt']['getTime']()+0xa)),_0x3976a2['_update'](_0x499c45,!0x0),delete _0x499c45['authors'],_0x152f26['push'](_0x499c45);}}if(this['adapter']){for(const _0x55fd5f of _0x152f26)this['_bufferUpdate'](_0x55fd5f['id'],_0x55fd5f,!0x0);this['sendBufferedUpdates']();}return _0x4b77b4;}['addRevisionData'](_0x43ec10){const _0x40d517=this['repository']['createRevision'](_0x43ec10);return this['adapter']&&_0x40d517['on']('_update',(_0x4d68fc,_0xc4866c,_0x578664)=>{_0x578664||(this['_bufferUpdate'](_0xc4866c['id'],_0xc4866c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x40d517,this['_findInsertionIndex'](_0x40d517)),_0x40d517;}async['getRevisionDocumentData'](_0x444f10){await this['_loadRevisionData'](_0x444f10);const _0x5d72f8={};for(const _0x21bbb3 in _0x444f10['diffData']){if(_0x444f10['diffData'][_0x21bbb3]['attachChange']&&!_0x444f10['diffData'][_0x21bbb3]['attachChange']['isAttached'])continue;const _0x51d240=this['_removeRevisionMarkers'](JSON['parse'](_0x444f10['diffData'][_0x21bbb3]['insertions'])),_0x35d33f=this['editor']['editing']['view']['document'],_0x1bb23a=new _0x1e7533(_0x35d33f,_0x51d240['map'](_0x364bef=>V(_0x364bef,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d72f8[_0x21bbb3]=this['editor']['data']['processor']['toData'](_0x1bb23a),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d72f8;}async['getRevisionRootsAttributes'](_0x39e3cc){await this['_loadRevisionData'](_0x39e3cc);const _0xc482c7={};for(const _0x29986b in _0x39e3cc['diffData'])_0x39e3cc['diffData'][_0x29986b]['attachChange']&&!_0x39e3cc['diffData'][_0x29986b]['attachChange']['isAttached']||(_0xc482c7[_0x29986b]=_0x39e3cc['diffData'][_0x29986b]['attributesAfter']||{});return _0xc482c7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5ea7f7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x674368=0x0;_0x674368<_0x5ea7f7['length'];_0x674368++){const _0x536c04=_0x5ea7f7[_0x674368];let _0x43a454=!0x1;for(const _0x5e4d9f of Object['keys'](_0x536c04))void 0x0===_0x536c04[_0x5e4d9f]?delete _0x536c04[_0x5e4d9f]:'id'!==_0x5e4d9f&&(_0x43a454=!0x0);_0x43a454||(_0x5ea7f7[_0x674368]=null);}if(_0x5ea7f7=_0x5ea7f7['filter'](_0x1e5cb2=>null!==_0x1e5cb2),!_0x5ea7f7['length'])return;for(let _0x371d3d=0x0;_0x371d3d<_0x5ea7f7['length'];_0x371d3d++){const _0x1ae616=_0x5ea7f7[_0x371d3d];void 0x0!==_0x1ae616['fromVersion']&&void 0x0===_0x1ae616['toVersion']&&(_0x1ae616['toVersion']=this['repository']['getRevision'](_0x1ae616['id'])['toVersion']),void 0x0!==_0x1ae616['toVersion']&&void 0x0===_0x1ae616['fromVersion']&&(_0x1ae616['fromVersion']=this['repository']['getRevision'](_0x1ae616['id'])['fromVersion']);}const _0x11646c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5ea7f7,_0x11646c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xb9fc2c=>{if(_0xb9fc2c){for(const _0x1671d4 of _0xb9fc2c)this['setRevisionData']({'id':_0x1671d4['id'],'createdAt':_0x1671d4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x43c353,_0x60b269){let _0x6389b9=this['editor']['config']['get']('initialData'),_0x4a81fb=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x6389b9){_0x6389b9={};for(const _0x1642eb of this['editor']['model']['document']['getRootNames']())_0x6389b9[_0x1642eb]='';}if('string'==typeof _0x6389b9&&(_0x6389b9={'main':_0x6389b9}),void 0x0===_0x4a81fb){_0x4a81fb={};for(const _0x48490d of this['editor']['model']['document']['getRootNames']())_0x4a81fb[_0x48490d]={};}let _0x5da829=!0x1;const _0xbd249d=Object['keys'](_0x6389b9),_0x5a8313=Object['keys'](_0x43c353);for(const _0x1e1723 of _0xbd249d){if(_0x6389b9[_0x1e1723]!==_0x43c353[_0x1e1723]&&''!==_0x6389b9[_0x1e1723]['trim']()){_0x5da829=!0x0;break;}if(!_0xe8688e(_0x4a81fb[_0x1e1723],_0x60b269[_0x1e1723])&&Object['keys'](_0x4a81fb[_0x1e1723])['length']>0x0){_0x5da829=!0x0;break;}}_0x5da829||(_0x5da829=_0x5a8313['some'](_0x4203b6=>!this['editor']['model']['document']['getRoot'](_0x4203b6))),_0x5da829&&_0x5045c0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x6389b9,'editorRootsAttributes':_0x4a81fb,'revisionData':_0x43c353,'revisionRootsAttributes':_0x60b269}),this['editor']['config']['set']('initialData',_0x43c353),this['editor']['config']['set']('rootsAttributes',_0x60b269);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2067ae=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2067ae['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x726fdd){const _0x3e49ad=this['repository']['getRevisions']();_0x3e49ad['reverse']();let _0x486027=0x0;for(;_0x486027<_0x3e49ad['length'];){const _0x48cd96=_0x3e49ad[_0x486027];if(_0x48cd96===this['currentRevision']){_0x486027++;continue;}if(_0x48cd96['id']===this['_initialRevisionId'])break;const _0x1fecab=_0x726fdd['toVersion']-_0x48cd96['toVersion']||_0x726fdd['fromVersion']-_0x48cd96['fromVersion'];if(_0x1fecab>0x0)break;if(_0x1fecab<0x0)_0x486027++;else{if(!_0x726fdd['creator']&&_0x48cd96['creator'])break;if(_0x48cd96['creator']||!_0x726fdd['creator']){if(_0x726fdd['createdAt']>_0x48cd96['createdAt'])break;_0x486027++;}else _0x486027++;}}return _0x486027;}['setRevisionData'](_0x555e1c){const _0x39a2c7=this['repository']['getRevision'](_0x555e1c['id']);if(_0x555e1c['createdAt']&&(_0x555e1c['createdAt']=new Date(_0x555e1c['createdAt'])),_0x555e1c['authorsIds']){const _0x39c39a=this['editor']['plugins']['get']('Users');_0x555e1c['authors']=_0x555e1c['authorsIds']['map'](_0x22685f=>_0x39c39a['getUser'](_0x22685f));}_0x39a2c7['_update'](_0x555e1c,!0x0);}['buildRevisionData']({revision:_0x391a5f=null,from:_0x1147b1=null,to:_0x18f8ee=null}){_0x1147b1=null!==_0x1147b1?_0x1147b1:_0x391a5f['fromVersion'],_0x18f8ee=null!==_0x18f8ee?_0x18f8ee:_0x391a5f['toVersion'];const _0x1da799=this['_revisionDataBuilder']['getData'](_0x1147b1,_0x18f8ee),_0x2312be={'diffData':_0x1da799['diffData'],'authorsIds':_0x1da799['authorsIds'],'fromVersion':_0x1147b1,'toVersion':_0x18f8ee};if(!_0x391a5f||_0x18f8ee!==_0x391a5f['toVersion']){const _0x104bae=_0x18f8ee-0x1,_0x1d004e=this['_source']['history']['getOperation'](_0x104bae);_0x2312be['createdAt']=_0x1d004e&&_0x1d004e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1147b1===this['_loadedStateData']['fromVersion']){for(const _0x27793b of this['_loadedStateData']['authors'])_0x2312be['authorsIds']['includes'](_0x27793b['id'])||_0x2312be['authorsIds']['push'](_0x27793b['id']);}return _0x2312be;}['_loadRevisionData'](_0x15c40f){if(!_0x15c40f||_0x15c40f['diffData'])return Promise['resolve']();{const _0x51049d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51049d,'revisionId':_0x15c40f['id']})['then'](_0x323034=>{_0x15c40f['diffData']=_0x323034['diffData'];});}}['_bufferUpdate'](_0x9ce4f1,_0x350add,_0x59a00f){if(this['_bufferedUpdates']['has'](_0x9ce4f1)){const _0x4e6164=this['_bufferedUpdates']['get'](_0x9ce4f1);_0x350add=_0x59a00f?{..._0x4e6164,..._0x350add}:{..._0x350add,..._0x4e6164};}this['_bufferedUpdates']['set'](_0x9ce4f1,_0x350add);}['_getFromVersion'](_0x5ab04d){const _0x3b9f6e=this['repository']['getRevisions']();_0x3b9f6e['reverse'](),_0x3b9f6e['shift']();const _0x586be1=_0x3b9f6e['find'](_0x53d155=>_0x53d155['toVersion']<=_0x5ab04d)['toVersion'];return _0x586be1<this['_startingVersion']?this['_startingVersion']:_0x586be1;}['_createInitialRevision'](_0x4b3f69){const _0x2d673d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d673d)this['_initialRevisionId']=_0x2d673d['id'];else{const _0x157260=!this['editor']['model']['document']['roots']['find'](_0x108964=>this['editor']['model']['hasContent'](_0x108964)),_0xdd281f=this['editor']['plugins']['get']('Users')['me']['id'],_0x46d59a=R(this['editor']['locale'],_0x157260?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4b3f69,'to':_0x4b3f69,'id':this['_initialRevisionId'],'name':_0x46d59a,'creatorId':_0xdd281f});}}['_createCurrentRevision'](_0x56d18f){const _0x4f71da=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4f71da),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x56d18f,'to':_0x56d18f,'id':_0x4f71da,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c9a84,from:_0x5c0feb,to:_0x30bcd4,creatorId:_0x511212,id:_0x52f272}){const _0x5dd51c=this['buildRevisionData']({'from':_0x5c0feb,'to':_0x30bcd4});_0x5dd51c['name']=_0x4c9a84,_0x5dd51c['creatorId']=_0x511212,_0x5dd51c['id']=_0x52f272;const _0x17f7a2=this['addRevisionData'](_0x5dd51c);return this['adapter']&&this['_bufferUpdate'](_0x5dd51c['id'],_0x5dd51c,!0x0),_0x17f7a2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x40d9cf){return(_0x40d9cf=_0x40d9cf['filter'](_0x5c1c63=>!_0x5c1c63['name']||'revision-start'!==_0x5c1c63['name']&&'revision-end'!==_0x5c1c63['name']))['forEach'](_0xd7fc9=>{'string'!=typeof _0xd7fc9&&(_0xd7fc9['children']=this['_removeRevisionMarkers'](_0xd7fc9['children']),_0xd7fc9['attributes']=_0xd7fc9['attributes']['filter'](_0xfbe1c7=>!_0xfbe1c7[0x0]['startsWith']('data-revision-')));}),_0x40d9cf;}}function V(_0x4bd9a9,_0x1214a2){const _0x207cd2=_0x1214a2['editing']['view']['document'];if('string'==typeof _0x4bd9a9)return new _0x2e9e1e(_0x207cd2,_0x4bd9a9);{const _0x18c193=_0x4bd9a9['children']['map'](_0x1cdab2=>V(_0x1cdab2,_0x1214a2));return new(C[_0x4bd9a9['type']]||_0x132a21)(_0x207cd2,_0x4bd9a9['name'],_0x4bd9a9['attributes'],_0x18c193);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x170667){this['editor']=_0x170667,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'](_0x32d834){this['source']=_0x32d834;const _0x3b1a6f=new Map(),_0x3d4368=new Map(),_0x1e7d6f=this['editor']['model']['document']['roots']['map'](_0x2d88fb=>_0x2d88fb['rootName']);for(const _0x3161ba of _0x1e7d6f){const _0x3b4a71=this['editor']['model']['document']['getRoot'](_0x3161ba),_0x1f7a8e=F(_0x3b4a71);_0x3b1a6f['set'](_0x3161ba,_0x1f7a8e),_0x3d4368['set'](_0x3161ba,Object['fromEntries'](_0x3b4a71['getAttributes']()));}const _0xd122ea=Array['from'](this['editor']['model']['markers'])['map'](_0x5252d1=>[_0x5252d1['name'],_0x5252d1['getRange']()]),_0x5b794c=this['source']['version'];this['_saveMetaData'](_0x5b794c,_0x3b1a6f,_0xd122ea,_0x3d4368),this['_startingRevisionId']=this['_revisionId'];const _0x5ef153=new Map(),_0x363caa=new Map();for(const _0x50a4d1 of _0x1e7d6f){const _0x2e1592=B(_0x50a4d1);_0x5ef153['set'](_0x50a4d1,_0x2e1592),_0x363caa['set'](_0x50a4d1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5ef153,[],_0x363caa);}['getData'](_0x38d320,_0x1db872){if(this['_lastFrom']===_0x38d320&&this['_lastTo']<=_0x1db872)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1db872,!0x0);else{if(!this['_savedMetaData']['has'](_0x38d320)){const _0x58a059=this['_getPreviousFrom'](_0x38d320);this['_calculateMetaData'](_0x58a059,_0x38d320,!0x1);}this['_calculateMetaData'](_0x38d320,_0x1db872,!0x0);}return this['_lastFrom']=_0x38d320,this['_lastTo']=_0x1db872,this['_getState']();}['loadState'](_0x31f772){this['_reset'](),this['_lastFrom']=_0x31f772['fromVersion'],this['_lastTo']=_0x31f772['toVersion'];for(const _0x4072fa in _0x31f772['diffData']){const _0x5ab5c0=_0x31f772['diffData'][_0x4072fa]['attachChange'],_0x285eea=_0x34b9d0(_0x31f772['diffData'][_0x4072fa]['attributesBefore'])||{},_0x2b4aaf=this['_makeModelFromViewString'](_0x31f772['diffData'][_0x4072fa]['deletions']);_0x2b4aaf['rootName']=_0x4072fa,_0x2b4aaf['_isAttached']=!_0x5ab5c0||!_0x5ab5c0['isAttached'],_0x2b4aaf['isAttached']=()=>_0x2b4aaf['_isAttached'],this['_baseRoots']['set'](_0x4072fa,_0x2b4aaf),this['_baseRootsAttributes']['set'](_0x4072fa,_0x285eea),_0x5ab5c0&&this['_touchedRoots']['set'](_0x4072fa,_0x5ab5c0);const _0x563788=this['_makeIdsRoot'](_0x2b4aaf);this['_baseIdsRoots']['set'](_0x4072fa,_0x563788);for(const [_0x374bde,_0x2ab6a6]of _0x2b4aaf['markers']){if(!_0x374bde['startsWith']('revision:'))continue;const _0x24ec3d=_0x374bde['split'](':')[0x2];for(const _0x29162f of _0x2ab6a6['getWalker']({'singleCharacters':!0x0})){const _0xe631c6=this['_getVidAttributeName'](_0x29162f),_0x295bfb='elementEnd'==_0x29162f['type']?_0x29162f['previousPosition']['path']['slice'](0x0,-0x1):_0x29162f['previousPosition']['path'],_0x191351=_0x563788['getNodeByPath'](_0x295bfb)['getAttribute'](_0xe631c6);this['_touched']['set'](_0x191351,{'userId':_0x24ec3d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2e9169=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d5fd3=>!this['_touched']['has'](_0x4d5fd3));let _0x493532=0x0;const _0x4e9a8f=new Map();for(const _0xfa0990 in _0x31f772['diffData']){const _0x2c561e=_0x31f772['diffData'][_0xfa0990]['attachChange'],_0x101cb5=_0x34b9d0(_0x31f772['diffData'][_0xfa0990]['attributesAfter'])||{},_0x24f578=this['_makeModelFromViewString'](_0x31f772['diffData'][_0xfa0990]['insertions']);_0x24f578['rootName']=_0xfa0990,_0x24f578['_isAttached']=!_0x2c561e||_0x2c561e['isAttached'],_0x24f578['isAttached']=()=>_0x24f578['_isAttached'],this['_diffRoots']['set'](_0xfa0990,_0x24f578),this['_diffRootsAttributes']['set'](_0xfa0990,_0x101cb5);const _0x25000c=this['_makeIdsRoot'](_0x24f578,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xfa0990,_0x25000c),_0x4e9a8f['set'](_0xfa0990,_0x24f578['isAttached']()?_0x101cb5:{});for(const [_0x36d8ed,_0x1f1640]of _0x24f578['markers']){if(!_0x36d8ed['startsWith']('revision:'))continue;const _0x15637d=_0x36d8ed['split'](':')[0x2];for(const _0x1bfaf2 of _0x1f1640['getWalker']({'singleCharacters':!0x0})){const _0x7eb006=this['_getVidAttributeName'](_0x1bfaf2),_0x25623c=this['_revisionId']++,_0x5852ff='elementEnd'==_0x1bfaf2['type']?_0x1bfaf2['previousPosition']['path']['slice'](0x0,-0x1):_0x1bfaf2['previousPosition']['path'];_0x25000c['getNodeByPath'](_0x5852ff)['_setAttribute'](_0x7eb006,_0x25623c),this['_touched']['set'](_0x25623c,{'userId':_0x15637d});}}for(const _0x4d9f55 of this['editor']['model']['createRangeIn'](_0x24f578)['getWalker']({'singleCharacters':!0x0})){const _0xb4d28a=this['_getVidAttributeName'](_0x4d9f55),_0x5aa676='elementEnd'==_0x4d9f55['type']?_0x4d9f55['previousPosition']['path']['slice'](0x0,-0x1):_0x4d9f55['previousPosition']['path'],_0x22bb9d=_0x25000c['getNodeByPath'](_0x5aa676);_0x22bb9d['getAttribute'](_0xb4d28a)>0x0||_0x22bb9d['_setAttribute'](_0xb4d28a,_0x2e9169[_0x493532++]);}for(const [_0x5d05e6,_0x27c28a]of _0x24f578['markers'])_0x5d05e6['startsWith']('revision:')||this['_markers']['set'](_0x5d05e6,_0x27c28a);}const _0x17d405=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17d405),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17d405,0x1));const _0x49994a=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x49994a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x49994a,0x1));const _0x4e11d3=Array['from'](this['_diffRoots'])['map'](([_0x7c4314,_0x257cbf])=>[_0x7c4314,F(_0x257cbf)]);this['_saveMetaData'](this['_lastTo'],_0x4e11d3,this['_markers'],_0x4e9a8f);}['_makeModelFromViewString'](_0x7e45ea){const _0xa40bd7=JSON['parse'](_0x7e45ea),_0x1f9444=this['editor']['editing']['view']['document'],_0x2e0a47=new _0x1e7533(_0x1f9444,_0xa40bd7['map'](_0x1dcc22=>V(_0x1dcc22,this['editor'])));return this['editor']['data']['toModel'](_0x2e0a47);}['_saveMetaData'](_0x1e3f06,_0x17a850,_0x104377,_0x15cc11){const _0x10bb2e=new Map(_0x17a850),_0x265371=new Map(_0x34b9d0(_0x15cc11)),_0x5ed2b6=new Map();for(const [_0x4e22f6,_0x1e6e59]of _0x104377)_0x5ed2b6['set'](_0x4e22f6,{'start':_0x1e6e59['start']['clone'](),'end':_0x1e6e59['end']['clone'](),'rootName':_0x1e6e59['root']['rootName']});this['_savedMetaData']['set'](_0x1e3f06,{'roots':_0x10bb2e,'markers':_0x5ed2b6,'rootsAttributes':_0x265371});}['_removeMetaData'](_0x527d5e){this['_savedMetaData']['delete'](_0x527d5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4cc729,_0x13c32c=null){let _0x457de3=null;_0x4cc729['is']('documentFragment')||(_0x457de3=new ft(_0x4cc729['name'],{'vid_start':null===_0x13c32c?this['_revisionId']++:_0x13c32c++}));const _0x767422=[];for(const _0x5db456 of _0x4cc729['getChildren']())if(_0x5db456['is']('element')){_0x767422['push'](this['_makeIdsRoot'](_0x5db456,_0x13c32c));const _0xca8559=_0x767422[_0x767422['length']-0x1];null!==_0x13c32c&&(_0x13c32c=_0xca8559['is']('element','$text')?_0xca8559['getAttribute']('vid')+0x1:_0xca8559['getAttribute']('vid_end')+0x1);}else{for(let _0x283186=0x0;_0x283186<_0x5db456['offsetSize'];_0x283186++)_0x767422['push'](new ft('$text',{'vid':null===_0x13c32c?this['_revisionId']++:_0x13c32c++}));}if(_0x4cc729['is']('documentFragment')){const _0x10c23c=B(_0x4cc729['rootName']);return _0x10c23c['_insertChild'](0x0,_0x767422),_0x10c23c;}return _0x457de3['_setAttribute']('vid_end',null===_0x13c32c?this['_revisionId']++:_0x13c32c++),_0x457de3['_insertChild'](0x0,_0x767422),_0x457de3;}['_calculateMetaData'](_0x439938,_0x210d67,_0x2eb191){this['_reset']();const {roots:_0x1eb725,markers:_0x1d4bdf,rootsAttributes:_0x5046cc}=this['_savedMetaData']['get'](_0x439938);this['_baseRoots']=new Map(_0x1eb725),this['_baseRootsAttributes']=new Map(_0x34b9d0(_0x5046cc));for(const [_0x1051df,_0x235166]of this['_baseRoots'])if('$graveyard'!==_0x1051df&&(this['_diffRoots']['set'](_0x1051df,F(_0x235166)),this['_diffRootsAttributes']=new Map(_0x34b9d0(_0x5046cc)),_0x2eb191)){const _0x43f00d=this['_revisionId'];this['_idsRoots']['set'](_0x1051df,this['_makeIdsRoot'](_0x235166)),this['_baseIdsRoots']['set'](_0x1051df,this['_makeIdsRoot'](_0x235166,_0x43f00d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2eb191&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2976fa,_0x128c89]of _0x1d4bdf){const _0x3436ed=this['_baseRoots']['get'](_0x128c89['rootName']),_0x4d8ff4=this['_diffRoots']['get'](_0x128c89['rootName']),_0x5a57f4=new vt(this['_fixPosition'](_0x128c89['start'],_0x3436ed),this['_fixPosition'](_0x128c89['end'],_0x3436ed)),_0x5742b7=this['_fixRange'](_0x5a57f4,_0x4d8ff4);_0x3436ed['markers']['set'](_0x2976fa,_0x5a57f4),this['_markers']['set'](_0x2976fa,_0x5742b7);}this['_applyOperations'](_0x439938,_0x210d67,_0x2eb191);}['_applyOperations'](_0x1beb74,_0x45519f,_0x16ed10){for(const _0x9a410f of this['source']['getOperations'](_0x1beb74,_0x45519f))this['_handleOperation'](_0x9a410f,_0x16ed10);for(const _0x15cd83 of this['_diffRoots']['values']())_0x15cd83['markers']['clear']();for(const [_0x311a3a,_0x4be84f]of this['_markers']){this['_diffRoots']['get'](_0x4be84f['root']['rootName'])['markers']['set'](_0x311a3a,_0x4be84f['clone']());}const _0x4dd5fc=new Map(),_0x3d12cd=new Map();for(const [_0x107723,_0x26cc54]of this['_diffRoots'])_0x4dd5fc['set'](_0x107723,F(_0x26cc54)),_0x3d12cd['set'](_0x107723,this['_diffRootsAttributes']['get'](_0x107723));this['_saveMetaData'](_0x45519f,_0x4dd5fc,this['_markers'],_0x3d12cd);}['_getPreviousFrom'](_0xd20eba){const _0x281a6a=Array['from'](this['_savedMetaData']['keys']());_0x281a6a['sort']((_0x3fba87,_0x1a17ab)=>_0x3fba87-_0x1a17ab),_0x281a6a['reverse']();for(const _0x22b853 of _0x281a6a)if(_0x22b853<_0xd20eba)return _0x22b853;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xe1687a,_0x5e1787){const _0xe6fa3d=Array['from'](_0x5e1787['markers'])['map'](([_0x49091f,_0x58b40f])=>[_0x49091f,this['_fixRange'](_0x58b40f,_0xe1687a)]);_0xe1687a['markers']=new Map(_0xe6fa3d);}['_transformMarkers'](_0xe62d1b){for(const _0x1bd14b of this['_markers']['values']()){const _0x150148=_0x1bd14b['getTransformedByOperation'](_0xe62d1b),_0x14ba4a=vt['_createFromRanges'](_0x150148);_0x1bd14b['start']=_0x14ba4a['start'],_0x1bd14b['end']=_0x14ba4a['end'];}}['_handleOperation'](_0x2b2cfe,_0x1892c4){if('addRoot'!=_0x2b2cfe['type']&&'detachRoot'!=_0x2b2cfe['type']){if('insert'==_0x2b2cfe['type']){const _0x347d90=_0x2b2cfe['position']['root']['rootName'];this['_diffRoots']['has'](_0x347d90)||(this['_diffRoots']['set'](_0x347d90,B(_0x347d90,!0x0)),this['_diffRootsAttributes']['set'](_0x347d90,{}),_0x1892c4&&this['_idsRoots']['set'](_0x347d90,B(_0x347d90,!0x0)));}else{if('addRootAttribute'==_0x2b2cfe['type']||'removeRootAttribute'==_0x2b2cfe['type']||'changeRootAttribute'==_0x2b2cfe['type'])return void this['_handleRootAttributeOperation'](_0x2b2cfe);'marker'==_0x2b2cfe['type']&&this['_handleMarkerOperation'](_0x2b2cfe);}if('marker'!==_0x2b2cfe['type']){const _0xce0ad1=this['_cloneOperation'](_0x2b2cfe,this['_diffRoots']);_0xce0ad1['_execute'](),this['_transformMarkers'](_0xce0ad1);}if(_0x1892c4)switch(_0x2b2cfe['type']){case'insert':this['_handleInsertOperation'](_0x2b2cfe);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2b2cfe);break;case'merge':this['_handleMergeOperation'](_0x2b2cfe);break;case'split':this['_handleSplitOperation'](_0x2b2cfe);}}else this['_handleRootOperation'](_0x2b2cfe,_0x1892c4);}['_cloneOperation'](_0x3451fa,_0x45736d){const _0x56170f=_0x3451fa['clone']();return _0x56170f['_authorId']=_0x3451fa['_authorId'],this['_fixOperation'](_0x56170f,_0x45736d),_0x56170f;}['_getBaseVids'](_0x12b8e2){return _0x12b8e2['map'](_0x373b18=>{const _0x91268e=this['_getVidAttributeName'](_0x373b18);return Number(_0x373b18['item']['getAttribute'](_0x91268e));});}['_generateTape'](_0x17e93b,_0x362a22){if(_0x17e93b['is']('element','$text'))_0x362a22['push']({'item':_0x17e93b,'type':'text'});else{_0x17e93b['is']('element')&&_0x362a22['push']({'item':_0x17e93b,'type':'elementStart'});for(const _0x151e1b of _0x17e93b['getChildren']())this['_generateTape'](_0x151e1b,_0x362a22);_0x17e93b['is']('element')&&_0x362a22['push']({'item':_0x17e93b,'type':'elementEnd'});}return _0x362a22;}['_getState'](){const _0x5830fb=new Map(this['_touched']),_0x406731=new Map(_0x5830fb),_0x523a85=new Map(),_0x1db25c={'insertions':{},'deletions':{}},_0x53fc08={'insertions':{},'deletions':{}},_0x3a2669=new Map(),_0x10d2aa=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x10d2aa['delete']('$graveyard');for(const _0x1864c0 of _0x10d2aa){const _0x232f93=this['_diffRoots']['get'](_0x1864c0)||B(_0x1864c0,!0x1),_0x47ba86=this['_baseRoots']['get'](_0x1864c0)||B(_0x1864c0,!0x1);_0x232f93['isAttached']()||_0x47ba86['isAttached']()?(_0x1db25c['insertions'][_0x1864c0]=F(_0x232f93),_0x1db25c['deletions'][_0x1864c0]=F(_0x47ba86),this['_copyMarkers'](_0x1db25c['deletions'][_0x1864c0],_0x47ba86),this['_copyMarkers'](_0x1db25c['insertions'][_0x1864c0],_0x232f93),_0x53fc08['insertions'][_0x1864c0]=this['_generateTape'](this['_idsRoots']['get'](_0x1864c0),[]),_0x53fc08['deletions'][_0x1864c0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1864c0)||B(_0x1864c0,!0x1),[])):_0x10d2aa['delete'](_0x1864c0);}for(const _0x5a29d3 of _0x10d2aa){const _0x572518=_0x53fc08['insertions'][_0x5a29d3];for(const _0x46f280 of _0x572518){const _0x2689db=this['_getVidAttributeName'](_0x46f280),_0x3a4d11=_0x46f280['item']['getAttribute'](_0x2689db);_0x406731['delete'](_0x3a4d11),_0x3a4d11>=this['_startingRevisionId']&&_0x523a85['set'](_0x3a4d11,_0x5830fb['get'](_0x3a4d11));}}for(const _0x3ce127 of _0x10d2aa){const _0x59fb9d=_0x53fc08['insertions'][_0x3ce127],_0x1d7139=this['_getBaseVids'](_0x53fc08['deletions'][_0x3ce127]);let _0x46a237=0x0;for(const _0x437b32 of _0x59fb9d){const _0x10075f=this['_getVidAttributeName'](_0x437b32),_0x4df5c9=_0x437b32['item']['getAttribute'](_0x10075f);if(!_0x523a85['has'](_0x4df5c9)&&!_0x3a2669['has'](_0x4df5c9)){if(_0x406731['has'](_0x4df5c9))_0x46a237++;else{if(_0x4df5c9!=_0x1d7139[_0x46a237]){const _0x7a37ce=_0x5830fb['get'](_0x4df5c9)||_0x5830fb['get'](_0x1d7139[_0x46a237]);for(;_0x4df5c9!=_0x1d7139[_0x46a237];)_0x406731['has'](_0x1d7139[_0x46a237])||(_0x3a2669['set'](_0x1d7139[_0x46a237],_0x7a37ce),_0x5830fb['set'](_0x1d7139[_0x46a237],_0x7a37ce)),_0x46a237++;}_0x46a237++;}}}}for(const _0x8a1c7 of _0x10d2aa){const _0x4e4477=_0x53fc08['insertions'][_0x8a1c7];for(const _0x33ea61 of _0x4e4477){const _0x239e81=this['_getVidAttributeName'](_0x33ea61),_0x312dea=_0x33ea61['item']['getAttribute'](_0x239e81);if(_0x3a2669['has'](_0x312dea)){const _0x54ca19=_0x3a2669['get'](_0x312dea);_0x406731['has'](_0x312dea)||_0x406731['set'](_0x312dea,{..._0x54ca19}),_0x523a85['set'](_0x312dea,{..._0x54ca19});}}}for(const _0x5eeaf3 of _0x406731['keys']())_0x5eeaf3>=this['_startingRevisionId']&&_0x406731['delete'](_0x5eeaf3);const _0x427453=new Map();for(const _0x3673a1 of _0x10d2aa){let _0x1b15f7=_0x53fc08['insertions'][_0x3673a1];for(const _0x52081a of _0x1b15f7)if(_0x52081a['item']['is']('element','tableCell')){const _0x1a69b8=this['_getVidAttributeName'](_0x52081a),_0x5f4d94=_0x52081a['item']['getAttribute'](_0x1a69b8);if(_0x523a85['has'](_0x5f4d94)){const _0x49ebf2=_0x52081a['item']['parent']['parent']['getAttribute']('vid_start'),_0x492e90=_0x427453['get'](_0x49ebf2)||new Set();_0x492e90['add'](_0x523a85['get'](_0x5f4d94)['userId']),_0x427453['set'](_0x49ebf2,_0x492e90);}}_0x1b15f7=_0x53fc08['deletions'][_0x3673a1];for(const _0x5509ef of _0x1b15f7)if(_0x5509ef['item']['is']('element','tableCell')){const _0x172ca6=this['_getVidAttributeName'](_0x5509ef),_0x3522f1=_0x5509ef['item']['getAttribute'](_0x172ca6);if(_0x406731['has'](_0x3522f1)){const _0x1d9860=_0x5509ef['item']['parent']['parent']['getAttribute']('vid_start'),_0x446592=_0x427453['get'](_0x1d9860)||new Set();_0x446592['add'](_0x406731['get'](_0x3522f1)['userId']),_0x427453['set'](_0x1d9860,_0x446592);}}for(const _0xb8daf5 of _0x427453['keys']())(_0x523a85['has'](_0xb8daf5)||_0x406731['has'](_0xb8daf5))&&_0x427453['delete'](_0xb8daf5);}for(const _0x47ac4b of _0x10d2aa){const _0x414ac4=_0x53fc08['insertions'][_0x47ac4b];let _0x42c48a=null,_0x5b6c6b=null;for(const _0xc73f0b of _0x414ac4){const _0x53163b=this['_getVidAttributeName'](_0xc73f0b),_0x391807=_0xc73f0b['item']['getAttribute'](_0x53163b),_0x36e1bb=_0x427453['get'](_0x391807);_0x36e1bb&&'elementStart'==_0xc73f0b['type']&&(_0x42c48a=Array['from'](_0x36e1bb)[0x0],_0x5b6c6b=_0xc73f0b['item']['getAttribute']('vid_end')),_0x42c48a&&(_0x406731['set'](_0x391807,{'userId':_0x42c48a}),_0x523a85['set'](_0x391807,{'userId':_0x42c48a})),_0x391807==_0x5b6c6b&&(_0x42c48a=null,_0x5b6c6b=null);}}const _0x59c14e={},_0x512b9c=new Set();for(const _0x47dcc7 of _0x10d2aa){const _0x1d372a=_0x1db25c['deletions'][_0x47dcc7],_0x4bb726=_0x1db25c['insertions'][_0x47dcc7];for(const {userId:_0x550d3e}of this['_touchedMarkers']['values']())null!==_0x550d3e&&_0x512b9c['add'](_0x550d3e);for(const {userId:_0x5417a5}of this['_touchedRoots']['values']())null!==_0x5417a5&&_0x512b9c['add'](_0x5417a5);this['_markChanges'](_0x4bb726,_0x53fc08['insertions'][_0x47dcc7],_0x523a85,'insertion',_0x512b9c),this['_markChanges'](_0x1d372a,_0x53fc08['deletions'][_0x47dcc7],_0x406731,'deletion',_0x512b9c),_0x59c14e[_0x47dcc7]={'insertions':this['_prepareViewToSave'](_0x4bb726),'deletions':this['_prepareViewToSave'](_0x1d372a),'attachChange':this['_touchedRoots']['get'](_0x47dcc7)||null,'attributesBefore':_0x34b9d0(this['_baseRootsAttributes']['get'](_0x47dcc7))||{},'attributesAfter':_0x34b9d0(this['_diffRootsAttributes']['get'](_0x47dcc7))};}return{'diffData':_0x59c14e,'authorsIds':Array['from'](_0x512b9c)};}['_processRootBeforeSave'](_0x1e8ace){for(const [,_0x338658]of _0x1e8ace['markers']){const _0x4e7e04=_0x338658['start']['getAncestors']()['filter'](_0x522ed5=>'tableCell'==_0x522ed5['name']);for(const _0x2e1b21 of _0x4e7e04)0x1==_0x2e1b21['childCount']&&_0x2e1b21['getChild'](0x0)['is']('element','paragraph')&&_0x2e1b21['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5c7c0c){this['_processRootBeforeSave'](_0x5c7c0c);const _0x23940e=this['editor']['data']['toView'](_0x5c7c0c,{}),_0x1128a7=Array['from'](_0x23940e['getChildren']())['map'](_0x6e45e3=>this['_getViewJson'](_0x6e45e3));return JSON['stringify'](_0x1128a7);}['_getViewJson'](_0x2505b5){if(_0x2505b5['is']('$text'))return _0x2505b5['data'];{const _0x1e8503=_0x2505b5;return{'type':Object['keys'](C)['find'](_0x2b0d52=>_0x2505b5 instanceof C[_0x2b0d52]),'name':_0x1e8503['name'],'attributes':Array['from'](_0x1e8503['getAttributes']()),'children':Array['from'](_0x1e8503['getChildren']())['map'](_0x4e1565=>this['_getViewJson'](_0x4e1565))};}}['_markChanges'](_0x442b5c,_0x32881d,_0x48509d,_0x4be2d9,_0x263f64){let _0x499fb0=null,_0x289aba=null,_0x30a008=0x0;const _0x3d37dc=this['editor']['model'];for(let _0x2f0608=0x0;_0x2f0608<_0x32881d['length'];_0x2f0608++){const _0x47e6a0=this['_getVidAttributeName'](_0x32881d[_0x2f0608]),_0x200006=_0x32881d[_0x2f0608]['item']['getAttribute'](_0x47e6a0),_0x3576b1=_0x48509d['get'](_0x200006),_0x341c2e=_0x2f0608==_0x32881d['length']-0x1;(!_0x499fb0&&_0x3576b1&&(_0x499fb0=_0x3576b1,_0x289aba=_0x32881d[_0x2f0608]),_0x499fb0&&(!_0x3576b1||_0x3576b1['userId']!=_0x499fb0['userId']))&&(_0x3e3d48(_0x3576b1,J(_0x289aba,_0x442b5c,_0x3d37dc),J(_0x32881d[_0x2f0608],_0x442b5c,_0x3d37dc)),_0x499fb0=_0x3576b1||null,_0x289aba=_0x3576b1?_0x32881d[_0x2f0608]:null),_0x499fb0&&_0x341c2e&&_0x3e3d48(_0x3576b1,J(_0x289aba,_0x442b5c,_0x3d37dc),q(_0x32881d[_0x2f0608],_0x442b5c,_0x3d37dc));}function _0x3e3d48(_0x1ac656,_0x4947b1,_0x3d18af){const _0x5809cf=_0x499fb0['userId'],_0x2fb3db='revision:'+_0x4be2d9+':'+_0x5809cf+':'+_0x30a008++,_0x28c396=_0x3d37dc['createRange'](_0x4947b1,_0x3d18af);_0x442b5c['markers']['set'](_0x2fb3db,_0x28c396),null!==_0x5809cf&&_0x263f64['add'](_0x5809cf);}}['_getVidAttributeName'](_0x1e205f){switch(_0x1e205f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x104638,_0x1e1ae2){_0x104638['baseVersion']=null;for(const _0x3dffe9 in _0x104638){const _0x4b0a41=_0x104638[_0x3dffe9];if(_0x4b0a41 instanceof gt){const _0x52f64e=_0x1e1ae2['get'](_0x4b0a41['root']['rootName']);_0x104638[_0x3dffe9]=this['_fixPosition'](_0x4b0a41,_0x52f64e);}if(_0x4b0a41 instanceof vt){const _0x582fa3=_0x1e1ae2['get'](_0x4b0a41['root']['rootName']);_0x104638[_0x3dffe9]=this['_fixRange'](_0x4b0a41,_0x582fa3);}'root'===_0x3dffe9&&(_0x104638['root']=_0x1e1ae2['get'](_0x104638['root']['rootName']));}}['_fixRange'](_0x35acd6,_0x3c84ca){return this['editor']['model']['createRange'](this['_fixPosition'](_0x35acd6['start'],_0x3c84ca),this['_fixPosition'](_0x35acd6['end'],_0x3c84ca));}['_fixPosition'](_0x2184b4,_0x32b776){return this['editor']['model']['createPositionFromPath'](_0x32b776,_0x2184b4['path'],_0x2184b4['stickiness']);}['_handleInsertOperation'](_0x19dafa){const _0x38f033=this['_idsRoots']['get'](_0x19dafa['position']['root']['rootName']),_0x67bea9=this['_fixPosition'](_0x19dafa['position'],_0x38f033),_0x393bb2=null===_0x19dafa['_authorId']?null:_0x19dafa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27c21f=_0x67bea9['parent'],_0x3d93da=this['_revisionId'],_0x57d287=[];for(const _0x504ecb of _0x19dafa['nodes'])if(_0x504ecb['is']('element'))_0x57d287['push'](this['_makeIdsRoot'](_0x504ecb));else{for(let _0x36fa0d=0x0;_0x36fa0d<_0x504ecb['offsetSize'];_0x36fa0d++)_0x57d287['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x196334=this['_revisionId'];for(let _0x52af4b=_0x3d93da;_0x52af4b<_0x196334;_0x52af4b++)this['_touched']['set'](_0x52af4b,{'userId':_0x393bb2});_0x27c21f['_insertChild'](_0x67bea9['offset'],_0x57d287);}['_handleMoveOperation'](_0xf75c1d){(_0xf75c1d=this['_cloneOperation'](_0xf75c1d,this['_idsRoots']))['_execute']();const _0x3e45e1=null===_0xf75c1d['_authorId']?null:_0xf75c1d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1aac01=_0xf75c1d['getMovedRangeStart'](),_0xdc9044=_0x1aac01['parent'],_0x23f47b=_0x1aac01['offset'];!function _0x4e860d(_0x1ce563,_0x507204,_0x411a47,_0x42f587){for(let _0x390c52=_0x411a47;_0x390c52<_0x42f587;_0x390c52++){const _0x14ea69=_0x507204['getChild'](_0x390c52);_0x14ea69['is']('element','$text')?_0x1ce563['set'](_0x14ea69['getAttribute']('vid'),{'userId':_0x3e45e1}):(_0x1ce563['set'](_0x14ea69['getAttribute']('vid_start'),{'userId':_0x3e45e1}),_0x4e860d(_0x1ce563,_0x14ea69,0x0,_0x14ea69['childCount']),_0x1ce563['set'](_0x14ea69['getAttribute']('vid_end'),{'userId':_0x3e45e1}));}}(this['_touched'],_0xdc9044,_0x23f47b,_0x23f47b+_0xf75c1d['howMany']);}['_handleMergeOperation'](_0x4c2650){const _0x51ca79=null===(_0x4c2650=this['_cloneOperation'](_0x4c2650,this['_idsRoots']))['_authorId']?null:_0x4c2650['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5907bf=_0x4c2650['targetPosition']['parent'],_0x81f077=_0x4c2650['sourcePosition']['parent'],_0x104e25=_0x5907bf['getAttribute']('vid_end'),_0x18fb4e=_0x81f077['getAttribute']('vid_start');_0x5907bf['_setAttribute']('vid_end',_0x81f077['getAttribute']('vid_end')),_0x81f077['_setAttribute']('vid_end',_0x104e25),this['_touched']['set'](_0x18fb4e,{'userId':_0x51ca79}),this['_touched']['set'](_0x104e25,{'userId':_0x51ca79}),_0x4c2650['_execute']();}['_handleSplitOperation'](_0x2ec011){const _0x19bde8=null===(_0x2ec011=this['_cloneOperation'](_0x2ec011,this['_idsRoots']))['_authorId']?null:_0x2ec011['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x181e14=_0x2ec011['graveyardPosition'],_0x2ae38c=_0x2ec011['splitPosition']['parent'];_0x2ec011['_execute']();const _0x254bdd=_0x2ae38c['getAttribute']('vid_end'),_0x428159=_0x2ec011['insertionPosition']['nodeAfter'];if(_0x181e14){const _0x3d2f5b=_0x428159['getAttribute']('vid_end'),_0x1e1e41=_0x2ae38c['getAttribute']('vid_end');_0x2ae38c['_setAttribute']('vid_end',_0x3d2f5b),_0x428159['_setAttribute']('vid_end',_0x1e1e41),this['_touched']['set'](_0x2ae38c['getAttribute']('vid_end'),{'userId':_0x19bde8}),this['_touched']['set'](_0x428159['getAttribute']('vid_start'),{'userId':_0x19bde8});}else{const _0x4bce47=this['_revisionId']++,_0x107f31=this['_revisionId']++;_0x2ae38c['_setAttribute']('vid_end',_0x4bce47),_0x428159['_setAttribute']('vid_start',_0x107f31),_0x428159['_setAttribute']('vid_end',_0x254bdd),this['_touched']['set'](_0x4bce47,{'userId':_0x19bde8}),this['_touched']['set'](_0x107f31,{'userId':_0x19bde8});}}['_handleMarkerOperation'](_0x456005){if(!_0x456005['affectsData'])return;const _0x360a47=(_0x456005=this['_cloneOperation'](_0x456005,this['_diffRoots']))['oldRange']?_0x456005['oldRange']['root']:null,_0xace1cd=_0x456005['newRange']?_0x456005['newRange']['root']:null;_0x360a47&&this['_markers']['delete'](_0x456005['name']),_0xace1cd&&this['_markers']['set'](_0x456005['name'],_0x456005['newRange']['clone']());const _0x4e2915=null===_0x456005['_authorId']?null:_0x456005['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e26ba=_0x456005['name'];if(!this['_touchedMarkers']['has'](_0x5e26ba))return void this['_touchedMarkers']['set'](_0x5e26ba,{'range':_0x456005['oldRange'],'userId':_0x4e2915});const _0x404d16=this['_touchedMarkers']['get'](_0x5e26ba),_0x2c8175=_0x404d16['range'],_0x5a1f45=_0x456005['newRange'];null==_0x2c8175&&null==_0x5a1f45||_0x2c8175&&_0x5a1f45&&_0x2c8175['isEqual'](_0x5a1f45)?this['_touchedMarkers']['delete'](_0x456005['name']):_0x404d16['userId']=_0x4e2915;}['_handleRootOperation'](_0x1466ab,_0xb0d676){this['_diffRoots']['has'](_0x1466ab['rootName'])?this['_diffRoots']['get'](_0x1466ab['rootName'])['_isAttached']=_0x1466ab['isAdd']:(this['_diffRoots']['set'](_0x1466ab['rootName'],B(_0x1466ab['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1466ab['rootName'],{}),_0xb0d676&&this['_idsRoots']['set'](_0x1466ab['rootName'],B(_0x1466ab['rootName'],!0x0)));const _0x3e5d23=null===_0x1466ab['_authorId']?null:_0x1466ab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a9254=this['_touchedRoots']['get'](_0x1466ab['rootName']);_0x1a9254&&_0x1a9254['userId']===_0x3e5d23?this['_touchedRoots']['delete'](_0x1466ab['rootName']):this['_touchedRoots']['set'](_0x1466ab['rootName'],{'userId':_0x3e5d23,'isAttached':_0x1466ab['isAdd']});}['_handleRootAttributeOperation'](_0x5823c6){const _0x29188e=this['_diffRootsAttributes']['get'](_0x5823c6['root']['rootName']);null===_0x5823c6['newValue']?delete _0x29188e[_0x5823c6['key']]:_0x29188e[_0x5823c6['key']]=_0x5823c6['newValue'];}}function F(_0x4d4a3a){const _0x2e5346=B(_0x4d4a3a['rootName'],_0x4d4a3a['isAttached']());for(const _0x4c3c52 of _0x4d4a3a['getChildren']()){const _0xe0d124=_0x4c3c52['_clone'](!0x0);_0x2e5346['_appendChild'](_0xe0d124);}return _0x2e5346;}function B(_0x296c4f,_0x2182b5=!0x0){const _0x419c7c=new wt();return _0x419c7c['rootName']=_0x296c4f,_0x419c7c['_isAttached']=_0x2182b5,_0x419c7c['isAttached']=()=>_0x419c7c['_isAttached'],_0x419c7c;}function J(_0x4c607e,_0x5ae8e3,_0x3d13c2){const _0x18ac2b='elementEnd'==_0x4c607e['type']?_0x3d13c2['createPositionAt'](_0x4c607e['item'],'end'):_0x3d13c2['createPositionBefore'](_0x4c607e['item']);return _0x3d13c2['createPositionFromPath'](_0x5ae8e3,_0x18ac2b['path'],_0x18ac2b['stickiness']);}function q(_0x3ef122,_0x407496,_0x3a71bb){const _0x276e91='elementStart'==_0x3ef122['type']?_0x3a71bb['createPositionAt'](_0x3ef122['item'],0x0):_0x3a71bb['createPositionAfter'](_0x3ef122['item']);return _0x3a71bb['createPositionFromPath'](_0x407496,_0x276e91['path'],_0x276e91['stickiness']);}class ns extends _0x4d3579{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xc13886,_0x540333){super(_0xc13886),this['focusTracker']=new _0x4c45ee(),this['keystrokes']=new _0x527f19(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x540333),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x58831d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14f8c2=_0x236929=>_0x236929['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14f8c2),this['keystrokes']['set']('arrowleft',_0x14f8c2),this['keystrokes']['set']('arrowup',_0x14f8c2),this['keystrokes']['set']('arrowdown',_0x14f8c2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x445feb){this['revisionNameInputView']['fieldView']['element']['value']=_0x445feb['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x537bd4){const _0x39f49a=new at(this['locale'],_0x551952),_0x48436f=_0x39f49a['fieldView'];_0x48436f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x485f3c=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x537bd4&&(_0x485f3c+='\x20('+R(this['locale'],'optional')+')'),(_0x39f49a['label']=_0x485f3c,_0x48436f['on']('input',()=>{this['revisionNameInputValue']=_0x48436f['element']['value']['trim']();}),_0x39f49a);}}class u extends _0x20db2f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3dec10=this['editor'],_0x49dee3=_0x3dec10['plugins']['get']('RevisionTracker');_0x3dec10['ui']['componentFactory']['add']('revisionHistory',_0x463be8=>{const _0x482e62=_0x1c165d(_0x463be8),_0x322c36=_0x482e62['panelView']['children'],_0x5ef97f=new te(_0x463be8),_0x5ccc1b=new _0x4dbdfb(_0x463be8),_0x49384=new _0x4f47da(_0x463be8),_0x86171f=new _0x4dbdfb(_0x463be8),_0x46f521=new _0x4f47da(_0x463be8);return _0x482e62['bind']('isEnabled')['to'](_0x49dee3,'isReady',_0x49dee3,'isEnabled',_0x3dec10,'isReadOnly',(_0x402adc,_0x5e3347,_0x25a5d5)=>_0x402adc&&_0x5e3347&&!_0x25a5d5),_0x482e62['buttonView']['set']({'icon':_0x2f7a5c['history'],'label':R(_0x463be8,'Revision\x20history'),'tooltip':!0x0}),_0x49384['set']({'label':R(_0x463be8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x49384['bind']('isEnabled')['to'](_0x49dee3,'isReady',_0x49dee3,'isEnabled',_0x3dec10,'isReadOnly',(_0x1ccbce,_0x2255e7,_0x8990de)=>_0x1ccbce&&_0x2255e7&&!_0x8990de),_0x49384['on']('execute',()=>this['_showDialog']()),_0x46f521['set']({'label':R(_0x463be8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x46f521['bind']('isEnabled')['to'](_0x49dee3,'isReady',_0x3dec10,'isReadOnly',(_0x3d6069,_0x30fe62)=>_0x3d6069&&!_0x30fe62),_0x46f521['on']('execute',()=>{_0x3dec10['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x482e62['isOpen']=!0x1,_0x3dec10['editing']['view']['focus']();}),_0x5ccc1b['children']['add'](_0x49384),_0x86171f['children']['add'](_0x46f521),_0x5ef97f['role']='menu',_0x5ef97f['items']['addMany']([_0x5ccc1b,_0x86171f]),_0x322c36['add'](_0x5ef97f),_0x482e62;}),_0x3dec10['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4ff073=this['editor'],_0x47bcf2=_0x4ff073['locale'],_0x4a9f2a=new _0x443b27(_0x47bcf2),_0x26623a=new _0x1470b3(_0x47bcf2);_0x4a9f2a['buttonView']['set']({'icon':_0x2f7a5c['history'],'label':R(_0x47bcf2,'Revision\x20history')});const _0x441322=new _0x7785ec(_0x47bcf2,_0x4a9f2a),_0x2fe82c=new _0x3d1deb(_0x47bcf2);_0x2fe82c['set']({'label':R(_0x47bcf2,'Save\x20current\x20revision')}),_0x2fe82c['delegate']('execute')['to'](_0x4a9f2a),_0x2fe82c['on']('execute',()=>{this['_showDialog']();}),_0x441322['children']['add'](_0x2fe82c),_0x26623a['items']['add'](_0x441322);const _0x5642a1=new _0x7785ec(_0x47bcf2,_0x4a9f2a),_0x2fea1c=new _0x3d1deb(_0x47bcf2);return _0x2fea1c['set']({'label':R(_0x47bcf2,'Open\x20revision\x20history')}),_0x2fea1c['delegate']('execute')['to'](_0x4a9f2a),_0x2fea1c['on']('execute',()=>{_0x4ff073['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5642a1['children']['add'](_0x2fea1c),_0x26623a['items']['add'](_0x5642a1),_0x4a9f2a['panelView']['children']['add'](_0x26623a),_0x4a9f2a;}['_showDialog'](){const _0x177d89=this['editor'],_0x2bb7db=_0x177d89['locale'],_0x510251=_0x177d89['plugins']['get']('Dialog'),_0x1bd9cf=_0x177d89['plugins']['get']('RevisionTracker');function _0x1cb6ee(_0x30546a){_0x177d89['config']['get']('revisionHistory.requireRevisionName')&&''===_0x30546a['revisionName']?_0x30546a['revisionNameInputView']['errorText']=R(_0x2bb7db,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x177d89['plugins']['get'](l)['saveRevision']({'name':_0x30546a['revisionName']}),_0x510251['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1cb6ee(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x510251['show']({'id':'revisionSave','title':R(_0x2bb7db,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x177d89['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x510251['hide']()},{'label':R(_0x177d89['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2d1616){_0x2d1616['bind']('isEnabled')['to'](_0x1bd9cf,'isReady',_0x1bd9cf,'isEnabled',_0x177d89,'isReadOnly',(_0x398804,_0x1f95e0,_0x2bfc10)=>_0x398804&&_0x1f95e0&&!_0x2bfc10);},'onExecute':()=>_0x1cb6ee(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x7262ac=this['editor'],_0x3890ad=_0x7262ac['locale'];this['_saveRevisionFormView']=new ns(_0x3890ad,_0x7262ac['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x4d3579{['changeId'];['_model'];constructor(_0xcd2068,_0x411b0a){super(_0xcd2068),this['_model']=_0x411b0a,this['changeId']=_0x411b0a['id'];const _0x3fe4d0=this['bindTemplate'],_0x42b3ba=R(_0xcd2068,_0x411b0a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x411b0a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x411b0a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3fe4d0['to']('type',_0x2c44e7=>'ck-revision-change__'+_0x2c44e7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x42b3ba}]},{'text':'\x20'+_0x411b0a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2a484b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5683ae){super(),this['id']=_0x5683ae['id']||_0x437679(),this['author']=_0x5683ae['author'],this['type']=_0x5683ae['type'],this['data']=_0x5683ae['data']||{},this['rootName']=_0x5683ae['rootName'],this['set']('createdAt',_0x5683ae['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xd9f951,_0x298fa7){this['newRevisionId']=_0xd9f951,this['oldRevisionId']=_0x298fa7,this['changes']=new _0x43ea08();}['_setChanges'](_0x143579){for(const _0xd1bca8 of _0x143579)this['changes']['add'](_0xd1bca8);}}const Z={'c':_0x759405,'a':_0xe3136e,'e':_0x145ea7,'r':_0xc1f4e3,'u':_0x3e7f30};class d extends _0x20db2f{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x38b815,_0x1984f6,j];}constructor(_0x384ac2){super(_0x384ac2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3097fd,_0x457455,_0x5d536e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x27cc7e=>{for(const _0x382e1b of this['editor']['editing']['view']['document']['roots'])_0x5d536e?_0x27cc7e['removeClass']('ck-editor__editable__overlay',_0x382e1b):_0x27cc7e['addClass']('ck-editor__editable__overlay',_0x382e1b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x399f18=>null!==_0x399f18),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x317c4e,_0x3fa910,_0x3d06af)=>_0x317c4e&&_0x3d06af?_0x3fa910['changes']['getIndex'](_0x3d06af):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x26a1ce,_0x2786aa)=>_0x26a1ce?_0x2786aa['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1984f6);}['init'](){const _0x125d2a=this['editor'],_0x2c88a0=new bt(_0x125d2a,{'direction':'backward'}),_0x541616=new bt(_0x125d2a,{'direction':'forward'});(_0x125d2a['commands']['add']('showPreviousChange',_0x2c88a0),_0x125d2a['commands']['add']('showNextChange',_0x541616),_0x125d2a['commands']['add']('restoreRevision',new yt(_0x125d2a)),this['on']('change:numberOfChanges',()=>{_0x2c88a0['refresh'](),_0x541616['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x125d2a['enableReadOnlyMode']('revision-viewer'),_0x125d2a['plugins']['has']('WidgetToolbarRepository'))&&_0x125d2a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x599223){await this['loadRevisionData'](_0x599223);const _0x420ab={};for(const _0x38a0f1 in _0x599223['diffData']){if(_0x599223['diffData'][_0x38a0f1]['attachChange']&&!_0x599223['diffData'][_0x38a0f1]['attachChange']['isAttached'])continue;const _0x288db1=this['_removeRevisionMarkers'](JSON['parse'](_0x599223['diffData'][_0x38a0f1]['insertions'])),_0x21759d=this['editor']['editing']['view']['document'],_0xe351f2=new _0x1e7533(_0x21759d,_0x288db1['map'](_0x1b9181=>this['_getViewObj'](_0x1b9181)));this['editor']['data']['processor']['useFillerType']('marked'),_0x420ab[_0x38a0f1]=this['editor']['data']['processor']['toData'](_0xe351f2),this['editor']['data']['processor']['useFillerType']('default');}return _0x420ab;}async['getRevisionRootsAttributes'](_0xa2060e){await this['loadRevisionData'](_0xa2060e);const _0x169670={};for(const _0x545e82 in _0xa2060e['diffData'])_0xa2060e['diffData'][_0x545e82]['attachChange']&&!_0xa2060e['diffData'][_0x545e82]['attachChange']['isAttached']||(_0x169670[_0x545e82]=_0xa2060e['diffData'][_0x545e82]['attributesAfter']||{});return _0x169670;}['_removeRevisionMarkers'](_0x434aa6){return(_0x434aa6=_0x434aa6['filter'](_0x1e483b=>!_0x1e483b['name']||'revision-start'!==_0x1e483b['name']&&'revision-end'!==_0x1e483b['name']))['forEach'](_0x2249f2=>{'string'!=typeof _0x2249f2&&(_0x2249f2['children']=this['_removeRevisionMarkers'](_0x2249f2['children']),_0x2249f2['attributes']=_0x2249f2['attributes']['filter'](_0x5436be=>!_0x5436be[0x0]['startsWith']('data-revision-')));}),_0x434aa6;}async['compare'](_0x4783bd,_0x500cbb,_0xb88c2c=!0x1){if(!this['isEnabled'])return;const _0x5a9b75=this['diff'],_0x26d1f7=this['repository'],_0x1ecfc1='string'==typeof _0x4783bd?_0x26d1f7['getRevision'](_0x4783bd):_0x4783bd,_0x38d240='string'==typeof _0x500cbb?_0x26d1f7['getRevision'](_0x500cbb):_0x500cbb,_0x42be93=_0x1ecfc1['id'],_0x4499ef=_0x38d240?_0x38d240['id']:null;if(!_0xb88c2c&&this['diff']&&this['diff']['newRevisionId']===_0x42be93&&this['diff']['oldRevisionId']===_0x4499ef)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x42be93,_0x4499ef);const _0x2e8e71=this['_getRevisionsRange'](_0x1ecfc1,_0x38d240,!0x0)['map'](_0x48bef0=>this['loadRevisionData'](_0x48bef0));return _0x2e8e71['push'](new Promise(_0x1594a7=>{setTimeout(_0x1594a7,0x14);})),Promise['all'](_0x2e8e71)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3fc25f=this['_getDiff'](_0x42be93,_0x4499ef);for(const _0x394c6b of _0x3fc25f['changes'])this['_changeIdToChange']['set'](_0x394c6b['id'],_0x394c6b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20f757=>{for(const _0x73c22f of this['editor']['model']['document']['getRootNames']())_0x20f757['detachRoot'](_0x73c22f);for(const _0x458fdb of Object['keys'](_0x3fc25f['model'])){const _0x2ee7f3=_0x20f757['addRoot'](_0x458fdb);for(const _0x2226b8 of Object['keys'](_0x3fc25f['attributes'][_0x458fdb]))_0x20f757['setAttribute'](_0x2226b8,_0x3fc25f['attributes'][_0x458fdb][_0x2226b8],_0x2ee7f3);_0x20f757['insert'](_0x3fc25f['model'][_0x458fdb],_0x2ee7f3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3fc25f['changes'])),this['isReady']=!0x0;})['catch'](_0x44d2f5=>{console['error'](_0x44d2f5),this['_cleanUp'](),_0x5a9b75&&(this['diff']=_0x5a9b75),this['isReady']=!0x0;});}['addRevisionData'](_0x36dc4c,_0x5d17fa){const _0x2a267c=this['repository']['createRevision'](_0x36dc4c);return _0x2a267c['on']('_update',(_0x487b5f,_0x323219,_0x47272f)=>_0x5d17fa(_0x323219,_0x47272f,_0x2a267c)),this['repository']['addRevision'](_0x2a267c),_0x2a267c;}['loadRevisionData'](_0x3ea24f){if(!_0x3ea24f||_0x3ea24f['diffData'])return Promise['resolve']();{const _0xbed875=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xbed875,'revisionId':_0x3ea24f['id']})['then'](_0x470fe8=>{_0x3ea24f['_update']({'diffData':_0x470fe8['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc5984f=>{for(const _0x5bf9da of this['editor']['model']['document']['getRootNames']())_0xc5984f['detachRoot'](_0x5bf9da);});}['_sortAndFilterDiffChanges'](_0x3adb1a){const _0x3aa864=[],_0x5da19a=new Map();for(const _0x4e7b1e of this['editor']['model']['document']['getRootNames']()){const _0x2d0324=this['editor']['editing']['view']['getDomRoot'](_0x4e7b1e);if(!_0x2d0324)continue;const _0x26bf05=_0x2d0324['getClientRects']()['item'](0x0);_0x26bf05&&(_0x3aa864['push'](_0x4e7b1e),_0x5da19a['set'](_0x4e7b1e,_0x26bf05));}return _0x3aa864['sort']((_0x3e8f49,_0x56e87e)=>{const _0x1afdec=_0x5da19a['get'](_0x3e8f49),_0x1b108a=_0x5da19a['get'](_0x56e87e);return _0x1afdec['y']-_0x1b108a['y']||_0x1afdec['x']-_0x1b108a['x'];}),(_0x3adb1a=_0x3adb1a['filter'](_0x2ceb50=>_0x3aa864['includes'](_0x2ceb50['rootName'])))['sort']((_0x17b910,_0x2fefa0)=>_0x3aa864['indexOf'](_0x17b910['rootName'])-_0x3aa864['indexOf'](_0x2fefa0['rootName'])),_0x3adb1a;}['_makeTape'](_0x6f5f6b){const _0x4f4d40=Array['from'](_0x6f5f6b['markers'])['filter'](([_0x2adb9c,_0xd778f6])=>_0x2adb9c['startsWith']('revision:')&&!_0xd778f6['isCollapsed']),_0x4bf945=Array['from'](this['editor']['model']['createRangeIn'](_0x6f5f6b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4f4d40['length'])for(const _0x2c0993 of _0x4bf945){const [_0x2aeea2,_0x1addc3]=_0x4f4d40[0x0],[,_0x1a6983,_0x440766]=_0x2aeea2['split'](':');if(_0x1addc3['end']['isEqual'](_0x2c0993['nextPosition'])&&_0x4f4d40['shift'](),(_0x2c0993['previousPosition']['isEqual'](_0x1addc3['start'])||_0x2c0993['previousPosition']['isAfter'](_0x1addc3['start']))&&('insertion'==_0x1a6983?_0x2c0993['isAdded']={'userId':_0x440766}:'deletion'==_0x1a6983&&(_0x2c0993['isRemoved']={'userId':_0x440766})),0x0==_0x4f4d40['length'])break;}return _0x4bf945;}['_refreshStartEndIndex'](_0xa350a1){const _0x459eb8=new Map();for(let _0x55cf42=0x0;_0x55cf42<_0xa350a1['length'];_0x55cf42++)'text'===_0xa350a1[_0x55cf42]['type']?(_0xa350a1[_0x55cf42]['item']['startIndex']=_0x55cf42,_0xa350a1[_0x55cf42]['item']['endIndex']=_0x55cf42):('elementStart'===_0xa350a1[_0x55cf42]['type']?_0xa350a1[_0x55cf42]['item']['startIndex']=_0x55cf42:'elementEnd'===_0xa350a1[_0x55cf42]['type']&&(_0xa350a1[_0x55cf42]['item']['endIndex']=_0x55cf42),_0x459eb8['set'](_0xa350a1[_0x55cf42]['id'],_0x55cf42));for(const _0x5037fb of _0x459eb8['values']())'elementStart'===_0xa350a1[_0x5037fb]['type']?_0xa350a1[_0x5037fb]['item']['endIndex']=_0x459eb8['get'](_0xa350a1[_0x5037fb]['pairId']):'elementEnd'===_0xa350a1[_0x5037fb]['type']&&(_0xa350a1[_0x5037fb]['item']['startIndex']=_0x459eb8['get'](_0xa350a1[_0x5037fb]['pairId']));}['_processTape'](_0x2ec7fb){for(let _0x5ee365=0x0;_0x5ee365<_0x2ec7fb['length'];_0x5ee365++){if('elementStart'===_0x2ec7fb[_0x5ee365]['type'])_0x2ec7fb[_0x5ee365]['item']['startIndex']=_0x5ee365;else{if('elementEnd'===_0x2ec7fb[_0x5ee365]['type']){_0x2ec7fb[_0x5ee365]['item']['endIndex']=_0x5ee365;const _0x4ddf63=_0x2ec7fb[_0x5ee365]['item']['startIndex'];_0x2ec7fb[_0x4ddf63]['pairId']=_0x2ec7fb[_0x5ee365]['id'],_0x2ec7fb[_0x5ee365]['pairId']=_0x2ec7fb[_0x4ddf63]['id'];}else _0x2ec7fb[_0x5ee365]['item']['startIndex']=_0x5ee365,_0x2ec7fb[_0x5ee365]['item']['endIndex']=_0x5ee365,_0x2ec7fb[_0x5ee365]['pairId']=null;}_0x2ec7fb[_0x5ee365]['markersStart']||(_0x2ec7fb[_0x5ee365]['markersStart']=[],_0x2ec7fb[_0x5ee365]['markersEnd']=[]);}}['_markInsertions'](_0x41ddf4,_0x1bce1c){const _0x399cfa=_0x41ddf4['filter'](_0x3b9d58=>!_0x3b9d58['isAdded']);for(let _0xe2dd4a=0x0;_0xe2dd4a<_0x1bce1c['length'];_0xe2dd4a++)_0x1bce1c[_0xe2dd4a]['isAdded']&&(_0x399cfa[_0xe2dd4a]['isAdded']=_0x1bce1c[_0xe2dd4a]['isAdded']);}['_makeModelFromViewString'](_0x3d1562){const _0x55bfac=JSON['parse'](_0x3d1562),_0x5192c7=this['editor']['editing']['view']['document'],_0x5af888=new _0x1e7533(_0x5192c7,_0x55bfac['map'](_0x521fd2=>this['_getViewObj'](_0x521fd2)));return this['editor']['data']['toModel'](_0x5af888);}['_getViewObj'](_0x26079a){const _0x5a53ae=this['editor']['editing']['view']['document'];if('string'==typeof _0x26079a)return new _0x2e9e1e(_0x5a53ae,_0x26079a);{const _0x21acc6=_0x26079a['children']['map'](_0x354dc7=>this['_getViewObj'](_0x354dc7));return new(Z[_0x26079a['type']]||_0x132a21)(_0x5a53ae,_0x26079a['name'],_0x26079a['attributes'],_0x21acc6);}}['_getDiff'](_0x5dbdf9,_0x2d7b02=null){const _0x3e67d9=this['repository']['getRevision'](_0x5dbdf9),_0x1be001=_0x2d7b02?this['repository']['getRevision'](_0x2d7b02):null,_0x55b84e=this['_getRevisionsRange'](_0x3e67d9,_0x1be001),_0x1e564e=_0x55b84e[_0x55b84e['length']-0x1],_0x34901b=new Map(),_0x4ccde0={'model':{},'attributes':{},'changes':[]},_0x2346c3=new Set(),_0x36f5d5=new Map();for(let _0x3acb5f=_0x55b84e['length']-0x1;_0x3acb5f>=0x0;_0x3acb5f--){const _0xf7a8bd=_0x55b84e[_0x3acb5f];for(const _0x86c6d9 of Object['keys'](_0xf7a8bd['diffData']))if(_0xf7a8bd['diffData'][_0x86c6d9]['attachChange']){const _0x48cc34=_0xf7a8bd['diffData'][_0x86c6d9]['attachChange'];_0x48cc34['isAttached']?(_0x2346c3['add'](_0x86c6d9),_0x36f5d5['has'](_0x86c6d9)&&_0x36f5d5['get'](_0x86c6d9)['userId']==_0x48cc34['userId']?_0x36f5d5['delete'](_0x86c6d9):_0x36f5d5['set'](_0x86c6d9,_0x48cc34)):_0x36f5d5['has'](_0x86c6d9)?(_0x2346c3['delete'](_0x86c6d9),_0x36f5d5['delete'](_0x86c6d9)):(_0x2346c3['add'](_0x86c6d9),_0x36f5d5['set'](_0x86c6d9,_0x48cc34));}else _0x2346c3['add'](_0x86c6d9);}for(const _0x2c0e39 of _0x2346c3){const _0x2e26c0=_0x36f5d5['has'](_0x2c0e39)&&!_0x36f5d5['get'](_0x2c0e39)['isAttached'];let _0x5e9c86=_0x2e26c0?_0x55b84e['length']-0x1:0x0;const _0x2b9a16=_0x2e26c0?-0x1:0x1;for(;_0x55b84e[_0x5e9c86];){const _0x381ce4=_0x55b84e[_0x5e9c86];if(_0x381ce4['diffData'][_0x2c0e39]){const _0x1dceac=_0x2e26c0?_0x381ce4['diffData'][_0x2c0e39]['attributesBefore']:_0x381ce4['diffData'][_0x2c0e39]['attributesAfter'];_0x4ccde0['attributes'][_0x2c0e39]=_0x1dceac?_0x34b9d0(_0x1dceac):{};break;}_0x5e9c86+=_0x2b9a16;}}for(const _0x2a0972 of _0x55b84e){_0x2a0972['model']={};for(const _0x4e5183 of _0x2a0972['authors'])_0x34901b['set'](_0x4e5183['id'],_0x4e5183);for(const _0x3716b8 of _0x2346c3){const _0x5cce07=_0x2a0972['diffData'][_0x3716b8]?_0x2a0972['diffData'][_0x3716b8]['insertions']:'[]',_0x4b0248=_0x2a0972['diffData'][_0x3716b8]?_0x2a0972['diffData'][_0x3716b8]['deletions']:'[]';_0x2a0972['model'][_0x3716b8]={'insertions':this['_makeModelFromViewString'](_0x5cce07),'deletions':this['_makeModelFromViewString'](_0x4b0248)};}}for(const _0x3f1045 of _0x2346c3){let _0x5d75ca=null,_0x18f486=0x0;const _0xab8b82=new Map(Array['from'](_0x3e67d9['model'][_0x3f1045]['insertions']['markers'])['filter'](([_0x1c1cdc])=>!_0x1c1cdc['startsWith']('revision:')));let _0x5879f2=0x0;for(const _0x52150e of _0x55b84e){const _0x4640c7=this['_makeTape'](_0x52150e['model'][_0x3f1045]['insertions']);_0x52150e==_0x3e67d9?(_0x5d75ca=_0x4640c7,_0x18f486=_0x5d75ca['length'],_0x5d75ca['forEach'](_0x149143=>{_0x149143['id']=_0x5879f2++;}),this['_processTape'](_0x5d75ca)):this['_markInsertions'](_0x5d75ca,_0x4640c7);const _0x9431de=_0x5d75ca['filter'](_0xdd607=>!_0xdd607['isAdded'])['map'](_0x4aa74e=>_0x4aa74e['id']);let _0x50ce8b=0x0;const _0x2ce303=this['_makeTape'](_0x52150e['model'][_0x3f1045]['deletions']);_0x2ce303['forEach'](_0x20bab9=>{_0x20bab9['isRemoved']?_0x20bab9['id']=_0x18f486++:_0x20bab9['id']=_0x9431de[_0x50ce8b++];}),this['_processTape'](_0x2ce303),this['_setDistance'](_0x5d75ca,'isAdded'),this['_setDistance'](_0x2ce303,'isRemoved'),_0x52150e==_0x3e67d9&&this['_markMarkers'](_0x5d75ca,_0xab8b82),_0x5d75ca=this['_joinTapes'](_0x5d75ca,_0x2ce303),this['_refreshStartEndIndex'](_0x5d75ca),this['_setDistance'](_0x5d75ca,'isRemoved');}_0x5d75ca=_0x5d75ca['filter'](_0xe77ea3=>!(_0xe77ea3['isAdded']&&_0xe77ea3['isRemoved']));const _0x21af14=new Map(_0x1e564e['model'][_0x3f1045]['deletions']['markers']),_0x52e63c=new Set(_0xab8b82['keys']());for(const _0x32627a of _0x21af14['keys']())_0x52e63c['delete'](_0x32627a);this['_markSuggestions'](_0x5d75ca,_0x52e63c),this['_fixObsoleteTags'](_0x5d75ca),_0x5d75ca=this['_removeMissingPairs'](_0x5d75ca),_0x5d75ca=this['_markMismatchedRemovedTags'](_0x5d75ca),_0x5d75ca=this['_removeUnsupportedChanges'](_0x5d75ca);const {root:_0x40ea0a,changes:_0xcc68c8}=this['_makeModelFromTape'](_0x5d75ca,_0x34901b,_0x3f1045);_0x4ccde0['model'][_0x3f1045]=_0x40ea0a;const _0x30be95=_0x36f5d5['get'](_0x3f1045);if(_0x30be95){const _0xabac5=_0x34901b['get'](_0x30be95['userId']),_0x190259=new r({'author':_0xabac5,'type':_0x30be95['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3f1045});_0xcc68c8['unshift'](_0x190259),_0x4ccde0['attributes'][_0x3f1045]['revisionHistoryAttachChange']=_0x190259['id'];}_0x4ccde0['changes']=_0x4ccde0['changes']['concat'](_0xcc68c8);}return _0x4ccde0;}['_markMarkers'](_0x1ddb55,_0x41b518){for(let _0x1157b4=0x0;_0x1157b4<_0x1ddb55['length'];_0x1157b4++)for(const [_0x202cf6,_0x24620b]of _0x41b518)_0x24620b['start']['isEqual'](_0x1ddb55[_0x1157b4]['previousPosition'])&&_0x1ddb55[_0x1157b4]['markersStart']['push'](_0x202cf6),_0x24620b['end']['isEqual'](_0x1ddb55[_0x1157b4]['nextPosition'])&&_0x1ddb55[_0x1157b4]['markersEnd']['push'](_0x202cf6);}['_joinTapes'](_0x15ea11,_0x108af6){let _0x12edbf=[],_0x525d04=0x0,_0x22df95=0x0;for(;_0x525d04<_0x15ea11['length']||_0x22df95<_0x108af6['length'];){const _0x69f6f=_0x15ea11[_0x525d04]||{},_0x45fa43=_0x108af6[_0x22df95]||{};if(_0x69f6f['id']==_0x45fa43['id'])_0x525d04++,_0x22df95++,_0x12edbf['push'](_0x69f6f);else{if(_0x45fa43['isRemoved']&&_0x69f6f['isAdded']){const {commonTape:_0x5cf644,iEnd:_0x32b4cd,jEnd:_0x4046bc}=this['_threeWayMerge'](_0x15ea11,_0x525d04,_0x108af6,_0x22df95);_0x12edbf=_0x12edbf['concat'](_0x5cf644),_0x525d04=_0x32b4cd,_0x22df95=_0x4046bc;}else _0x45fa43['isRemoved']?(_0x22df95++,_0x12edbf['push'](_0x45fa43)):(_0x525d04++,_0x12edbf['push'](_0x69f6f));}}return _0x12edbf;}['_markSuggestions'](_0x57b585,_0x2022eb){const _0x45b91e=[];for(let _0x2ed114=0x0;_0x2ed114<_0x57b585['length'];_0x2ed114++){for(let _0x54f8dc=0x0;_0x54f8dc<_0x57b585[_0x2ed114]['markersStart']['length'];_0x54f8dc++){const _0x54100a=_0x57b585[_0x2ed114]['markersStart'][_0x54f8dc];if(!_0x2022eb['has'](_0x54100a))continue;const {group:_0xe81758,type:_0x3b086f,authorId:_0x5e7e17}=_0x3c3ca8(_0x54100a);'revision-suggestion'!=_0xe81758||'insertion'!=_0x3b086f&&'deletion'!=_0x3b086f||(_0x45b91e['unshift']({'type':_0x3b086f,'name':_0x54100a,'userId':_0x5e7e17}),_0x57b585[_0x2ed114]['markersStart']['splice'](_0x54f8dc,0x1),_0x54f8dc--);}_0x1fb1e3(_0x57b585[_0x2ed114]);for(let _0x4cd5be=0x0;_0x4cd5be<_0x57b585[_0x2ed114]['markersEnd']['length'];_0x4cd5be++){const _0x47389b=_0x57b585[_0x2ed114]['markersEnd'][_0x4cd5be];if(!_0x2022eb['has'](_0x47389b))continue;const {group:_0x12d5cf,type:_0x1f4001}=_0x3c3ca8(_0x47389b);if('revision-suggestion'!=_0x12d5cf||'insertion'!=_0x1f4001&&'deletion'!=_0x1f4001)continue;_0x57b585[_0x2ed114]['markersEnd']['splice'](_0x4cd5be,0x1),_0x4cd5be--;const _0x38e5a7=_0x45b91e['findIndex'](_0x48180e=>_0x48180e['name']==_0x47389b);_0x38e5a7>-0x1&&_0x45b91e['splice'](_0x38e5a7,0x1);}}function _0x3c3ca8(_0x41ae63){const _0x4e8fd5=_0x41ae63['split'](':');return{'group':_0x4e8fd5[0x0],'type':_0x4e8fd5[0x1],'subType':_0x4e8fd5['length']>=0x5?_0x4e8fd5[0x2]:null,'id':_0x4e8fd5['length']<0x5?_0x4e8fd5[0x2]:_0x4e8fd5[0x3],'authorId':_0x4e8fd5['length']<0x5?_0x4e8fd5[0x3]:_0x4e8fd5[0x4],'markerCount':0x6==_0x4e8fd5['length']?_0x4e8fd5[0x5]:null};}function _0x1fb1e3(_0x973474){for(let _0x47fc52=0x0;_0x47fc52<_0x45b91e['length'];_0x47fc52++){if(_0x973474['isAdded']&&'insertion'==_0x45b91e[_0x47fc52]['type'])return _0x973474['isAddSuggestion']=_0x45b91e[_0x47fc52],void delete _0x973474['isAdded'];if(!_0x973474['isAdded']&&!_0x973474['isRemoved']&&'deletion'==_0x45b91e[_0x47fc52]['type'])return void(_0x973474['isRemoveSuggestion']=_0x45b91e[_0x47fc52]);}}}['_setDistance'](_0x45b226,_0x48f457){let _0x42d20e=0x0,_0x63f1f3=!0x1;const _0xc2ccb6=new Map();for(const _0x2b3ef9 of _0x45b226)_0x2b3ef9[_0x48f457]?_0x63f1f3&&(_0x42d20e++,_0x63f1f3=!0x1):(_0x42d20e++,_0x63f1f3=!0x0),_0xc2ccb6['set'](_0x2b3ef9['id'],_0x42d20e);for(let _0x4aca86=0x0;_0x4aca86<_0x45b226['length'];_0x4aca86++){if('isRemoved'==_0x48f457&&_0x45b226[_0x4aca86]['isAdded']||'isAdded'==_0x48f457&&_0x45b226[_0x4aca86]['isRemoved'])continue;if('text'==_0x45b226[_0x4aca86]['type']){_0x45b226[_0x4aca86]['distance']=0x0;continue;}const _0x51446d=_0xc2ccb6['get'](_0x45b226[_0x4aca86]['pairId']),_0x400cdd=_0xc2ccb6['get'](_0x45b226[_0x4aca86]['id']);_0x45b226[_0x4aca86]['distance']=_0x51446d-_0x400cdd;}}['_getRevisionsRange'](_0x177ee1,_0x2da5c5,_0x4929dd=!0x1){const _0x24b066=[];let _0x5464b2=this['repository']['getIndex'](_0x177ee1),_0x52a4d3=this['repository']['getIndex'](_0x2da5c5);for(-0x1==_0x52a4d3&&(_0x52a4d3=this['repository']['_revisions']['length'],_0x4929dd=!0x1);_0x5464b2<_0x52a4d3;)_0x24b066['push'](this['repository']['getRevision'](_0x5464b2)),_0x5464b2++;return _0x4929dd&&_0x24b066['push'](this['repository']['getRevision'](_0x5464b2)),_0x24b066;}['_threeWayMerge'](_0x18383c,_0x4ba4c2,_0x2fa5b4,_0x1113c7){const _0x2e310d=this['editor']['model']['schema'];let _0x59dc5f=_0x4ba4c2;for(;_0x18383c[_0x59dc5f]&&_0x18383c[_0x59dc5f]['isAdded'];)_0x59dc5f++;let _0x2db04b=_0x1113c7;for(;_0x2fa5b4[_0x2db04b]&&_0x2fa5b4[_0x2db04b]['isRemoved'];)_0x2db04b++;_0x4aeee6(_0x18383c,_0x4ba4c2,_0x59dc5f),_0x4aeee6(_0x2fa5b4,_0x1113c7,_0x2db04b);const _0x195d1b=_0x2fa5b4['slice'](_0x1113c7,_0x2db04b)['concat'](_0x18383c['slice'](_0x4ba4c2,_0x59dc5f));return _0x195d1b['sort']((_0x5efebb,_0x1f411c)=>_0x5efebb['side']!=_0x1f411c['side']?_0x5efebb['side']-_0x1f411c['side']:_0x5efebb['level']!=_0x1f411c['level']?_0x5efebb['level']-_0x1f411c['level']:_0x5efebb['distance']!=_0x1f411c['distance']?_0x1f411c['distance']-_0x5efebb['distance']:!!_0x5efebb['isAdded']!=!!_0x1f411c['isAdded']?-0x1==_0x5efebb['side']||0x0==_0x5efebb['side']?_0x5efebb['isAdded']?-0x1:0x1:_0x5efebb['isAdded']?0x1:-0x1:_0x5efebb['index']-_0x1f411c['index']),{'commonTape':_0x195d1b,'iEnd':_0x59dc5f,'jEnd':_0x2db04b};function _0x4aeee6(_0x4b1667,_0x216db1,_0x3ae4af){let _0x3ef04d=-0x1,_0x2abb35=Number['POSITIVE_INFINITY'],_0x5dfebb=!0x0;for(let _0x17f2ce=_0x216db1;_0x17f2ce<_0x3ae4af;_0x17f2ce++)if(_0x2e310d['isInline'](_0x4b1667[_0x17f2ce]['item'])||(_0x5dfebb=!0x1),_0x4b1667[_0x17f2ce]['item']['startIndex']<_0x216db1&&(_0x3ef04d=_0x17f2ce),_0x4b1667[_0x17f2ce]['item']['endIndex']>=_0x3ae4af){_0x2abb35=_0x17f2ce;break;}_0x5dfebb&&(_0x3ef04d=_0x3ae4af-0x1);for(let _0x5494ae=_0x216db1;_0x5494ae<_0x3ae4af;_0x5494ae++)_0x4b1667[_0x5494ae]['side']=_0x5494ae<=_0x3ef04d?-0x1:_0x5494ae<_0x2abb35?0x0:0x1,_0x4b1667[_0x5494ae]['index']=_0x5494ae;let _0x49645e=0x0;for(let _0x5f5342=_0x216db1;_0x5f5342<=_0x3ef04d;_0x5f5342++)0x0==_0x4b1667[_0x5f5342]['distance']?_0x4b1667[_0x5f5342]['level']=_0x49645e:(_0x49645e++,_0x4b1667[_0x5f5342]['level']=_0x49645e,_0x49645e++);for(let _0x4d35ea=_0x216db1;_0x4d35ea<_0x3ae4af;_0x4d35ea++)0x0==_0x4b1667[_0x4d35ea]['side']&&(_0x4b1667[_0x4d35ea]['level']=_0x49645e);_0x49645e=0x0;for(let _0x174393=_0x3ae4af-0x1;_0x174393>=_0x2abb35;_0x174393--)0x0==_0x4b1667[_0x174393]['distance']?_0x4b1667[_0x174393]['level']=_0x49645e:(_0x49645e--,_0x4b1667[_0x174393]['level']=_0x49645e,_0x49645e--);}}['_fixObsoleteTags'](_0x5a4c10){const _0x4ea1d5=new Map(),_0xdc2745=this['editor']['model']['schema'];for(let _0x17614d=0x1;_0x17614d<_0x5a4c10['length'];_0x17614d++){let _0x18fd92,_0x2aafa1,_0x528039;const _0x5063f8=_0x5a4c10[_0x17614d],_0x11de19=_0x5a4c10[_0x17614d-0x1];if('text'==_0x5063f8['type'])continue;if(_0x5063f8['type']!=_0x11de19['type'])continue;if(!_0xdc2745['isBlock'](_0x11de19['item'])||_0xdc2745['isLimit'](_0x11de19['item']))continue;if(!_0xdc2745['isBlock'](_0x5063f8['item'])||_0xdc2745['isLimit'](_0x5063f8['item']))continue;if((_0x5a4c10[_0x17614d]['isAdded']||_0x5a4c10[_0x17614d]['isAddSuggestion'])&&_0x5a4c10[_0x17614d-0x1]['isRemoved'])_0x18fd92=_0x5a4c10[_0x17614d],_0x2aafa1=_0x5a4c10[_0x17614d-0x1],_0x528039=_0x17614d-0x1;else{if(!_0x5a4c10[_0x17614d]['isRemoved']||!_0x5a4c10[_0x17614d-0x1]['isAdded']&&!_0x5a4c10[_0x17614d-0x1]['isAddSuggestion'])continue;_0x18fd92=_0x5a4c10[_0x17614d-0x1],_0x2aafa1=_0x5a4c10[_0x17614d],_0x528039=_0x17614d;}const _0x127bfb=_0x18fd92['level']==_0x2aafa1['level'],_0x5348ba=Math['abs'](_0x18fd92['level'])<Math['abs'](_0x2aafa1['level'])&&0x0==_0x2aafa1['distance'];(_0x127bfb||_0x5348ba)&&(_0x4ea1d5['set'](_0x2aafa1['id'],_0x18fd92['id']),_0x5a4c10['splice'](_0x528039,0x1),_0x17614d--,_0x18fd92['isAdded']=!0x1);}for(let _0x1d7162=0x0;_0x1d7162<_0x5a4c10['length'];_0x1d7162++)_0x4ea1d5['has'](_0x5a4c10[_0x1d7162]['pairId'])&&(_0x5a4c10[_0x1d7162]['pairId']=_0x4ea1d5['get'](_0x5a4c10[_0x1d7162]['pairId']));}['_removeMissingPairs'](_0x8cce52){const _0x4d03e5=new Set(_0x8cce52['map'](_0x500e03=>_0x500e03['id']));for(let _0x3b7da3=0x0;_0x3b7da3<_0x8cce52['length'];_0x3b7da3++)_0x4d03e5['has'](_0x8cce52[_0x3b7da3]['pairId'])||0x0==_0x8cce52[_0x3b7da3]['distance']||(_0x8cce52[_0x3b7da3]['isIncorrect']=!0x0);return _0x8cce52['filter'](_0x36f2eb=>!_0x36f2eb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2d4900){const _0x44d363=new Set();for(let _0x28701c=0x0;_0x28701c<_0x2d4900['length'];_0x28701c++){if(_0x44d363['has'](_0x2d4900[_0x28701c]['id'])&&_0x2d4900[_0x28701c]['isRemoved']&&(_0x2d4900[_0x28701c]['isIncorrect']=!0x0),_0x2d4900[_0x28701c]['isIncorrect'])continue;if(0x0==_0x2d4900[_0x28701c]['distance'])continue;if('elementStart'!=_0x2d4900[_0x28701c]['type'])continue;if(null==_0x2d4900[_0x28701c]['pairId'])continue;let _0x3ade74=_0x28701c+0x1,_0x477141=0x0;for(;_0x2d4900[_0x3ade74]['id']!=_0x2d4900[_0x28701c]['pairId'];)'elementStart'==_0x2d4900[_0x3ade74]['type']?_0x477141++:'elementEnd'==_0x2d4900[_0x3ade74]['type']&&_0x477141--,_0x3ade74++;if(0x0!=_0x477141){if(_0x2d4900[_0x28701c]['isRemoved'])_0x2d4900[_0x28701c]['isIncorrect']=!0x0;else{for(;_0x3ade74!=_0x28701c;)_0x2d4900[_0x3ade74]['isRemoved']&&0x0!=_0x2d4900[_0x3ade74]['distance']&&(_0x2d4900[_0x3ade74]['isIncorrect']=!0x0,_0x44d363['add'](_0x2d4900[_0x3ade74]['pairId'])),_0x3ade74--;}}}return _0x2d4900['filter'](_0x3fcad1=>!_0x3fcad1['isIncorrect']);}['_removeUnsupportedChanges'](_0x1fbe6b){const _0x2ceb9f=this['editor']['model']['schema'];for(let _0x5bd291=0x0;_0x5bd291<_0x1fbe6b['length'];_0x5bd291++){if(!(_0x1fbe6b[_0x5bd291]['isAdded']||_0x1fbe6b[_0x5bd291]['isAddSuggestion']||_0x1fbe6b[_0x5bd291]['isRemoved']||_0x1fbe6b[_0x5bd291]['isRemoveSuggestion']))continue;if(0x0==_0x1fbe6b[_0x5bd291]['distance'])continue;const _0x337453=_0x1fbe6b[_0x5bd291]['item'];_0x2ceb9f['isBlock'](_0x337453)||_0x2ceb9f['isLimit'](_0x337453)||(_0x1fbe6b[_0x5bd291]['isAdded']&&delete _0x1fbe6b[_0x5bd291]['isAdded'],_0x1fbe6b[_0x5bd291]['isAddSuggestion']&&delete _0x1fbe6b[_0x5bd291]['isAddSuggestion'],_0x1fbe6b[_0x5bd291]['isRemoveSuggestion']&&delete _0x1fbe6b[_0x5bd291]['isRemoveSuggestion'],_0x1fbe6b[_0x5bd291]['isRemoved']&&(_0x1fbe6b[_0x5bd291]['isIncorrect']=!0x0));}return _0x1fbe6b['filter'](_0x8a6383=>!_0x8a6383['isIncorrect']);}['_makeModelFromTape'](_0x95b399,_0x4a02b2,_0x22ad8a){const _0x1a5f9b=new wt(),_0xb97b01=[],_0x5a16c0=new Map(),_0x4ebdf1=this['editor']['model'],_0x4b3adb=_0x4ebdf1['schema'],_0xeb29e9=[_0x1a5f9b],_0x25c816={},_0x135e73={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x17b9ea=null;const _0x51b401=[0x0];for(let _0x33e260=0x0;_0x33e260<_0x95b399['length'];_0x33e260++)if('elementStart'===_0x95b399[_0x33e260]['type']){_0x95b399[_0x33e260]['previousPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401);const _0x255014=new ft(_0x95b399[_0x33e260]['item']['name'],_0x95b399[_0x33e260]['item']['getAttributes']());_0xeb29e9[0x0]['_appendChild'](_0x255014),_0x51b401['push'](0x0),_0xeb29e9['unshift'](_0x255014),_0x95b399[_0x33e260]['nextPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401);}else'elementEnd'===_0x95b399[_0x33e260]['type']?(_0xeb29e9['shift'](),_0x95b399[_0x33e260]['previousPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401),_0x51b401['pop'](),_0x51b401[_0x51b401['length']-0x1]++,_0x95b399[_0x33e260]['nextPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401)):(_0x95b399[_0x33e260]['previousPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401),_0x17b9ea?_0x17b9ea['_data']+=_0x95b399[_0x33e260]['item']['data']:_0x17b9ea=new _t(_0x95b399[_0x33e260]['item']['data'],_0x95b399[_0x33e260]['item']['getAttributes']()),_0x95b399[_0x33e260+0x1]&&'text'===_0x95b399[_0x33e260+0x1]['type']&&_0x42719f(_0x17b9ea,_0x95b399[_0x33e260+0x1]['item'])||(_0xeb29e9[0x0]['_appendChild'](_0x17b9ea),_0x17b9ea=null),_0x51b401[_0x51b401['length']-0x1]+=_0x95b399[_0x33e260]['item']['offsetSize'],_0x95b399[_0x33e260]['nextPosition']=_0x4ebdf1['createPositionFromPath'](_0x1a5f9b,_0x51b401));for(let _0x3d4cc3=0x0;_0x3d4cc3<_0x95b399['length'];_0x3d4cc3++){const _0x334743=_0x95b399[_0x3d4cc3]['previousPosition'],_0x3674be=_0x95b399[_0x3d4cc3]['nextPosition'];for(const _0x4da0ef of _0x95b399[_0x3d4cc3]['markersStart'])_0x5a16c0['set'](_0x4da0ef,{'start':_0x334743,'end':null});_0x126ed2('isRemoveSuggestion',_0x3d4cc3,_0x334743,_0x3674be),_0x126ed2('isAddSuggestion',_0x3d4cc3,_0x334743,_0x3674be),_0x126ed2('isRemoved',_0x3d4cc3,_0x334743,_0x3674be),_0x126ed2('isAdded',_0x3d4cc3,_0x334743,_0x3674be);for(const _0x410f4d of _0x95b399[_0x3d4cc3]['markersEnd']){_0x5a16c0['get'](_0x410f4d)['end']=_0x3674be;}}for(const [_0x215e51,_0x31cddb]of _0x5a16c0){const _0x5a1761=this['editor']['model']['createRange'](_0x31cddb['start'],_0x31cddb['end']);_0x1a5f9b['markers']['set'](_0x215e51,_0x5a1761);}return _0xb97b01['sort']((_0x1610c7,_0x4d6808)=>{const _0x5ff0e0=_0x1a5f9b['markers']['get']('revision:'+_0x1610c7['id']),_0x5b663e=_0x1a5f9b['markers']['get']('revision:'+_0x4d6808['id']);return _0x5ff0e0['start']['isBefore'](_0x5b663e['start'])?-0x1:_0x5ff0e0['start']['isAfter'](_0x5b663e['start'])?0x1:_0x5ff0e0['end']['isBefore'](_0x5b663e['end'])?-0x1:_0x5ff0e0['end']['isAfter'](_0x5b663e['end'])?0x1:'add'===_0x1610c7['type']?-0x1:0x1;}),{'root':_0x1a5f9b,'changes':_0xb97b01};function _0x126ed2(_0x2feb64,_0x441e5d,_0x29c1d2,_0x17f620){const _0x21711b=!!_0x95b399[_0x441e5d][_0x2feb64],_0x12cdef=_0x21711b?_0x95b399[_0x441e5d][_0x2feb64]['userId']:null,_0x55e567=_0x441e5d===_0x95b399['length']-0x1,_0x1ebfce=_0x135e73[_0x2feb64][0x0],_0x1bf7e5=_0x4b3adb['isObject'](_0x95b399[_0x441e5d]['item']);!_0x25c816[_0x2feb64]&&_0x21711b?_0x25c816[_0x2feb64]={'start':_0x29c1d2,'tapeItem':_0x95b399[_0x441e5d],'userId':_0x12cdef,'type':_0x2feb64}:_0x25c816[_0x2feb64]&&!_0x21711b?(_0x25c816[_0x2feb64]['end']=_0x29c1d2,_0x18301f(_0x25c816[_0x2feb64]),_0x25c816[_0x2feb64]=null):_0x25c816[_0x2feb64]&&_0x21711b&&_0x25c816[_0x2feb64]['userId']!==_0x12cdef&&(_0x25c816[_0x2feb64]['end']=_0x29c1d2,_0x1ebfce&&_0x1ebfce['userId']===_0x25c816[_0x2feb64]['userId']||_0x18301f(_0x25c816[_0x2feb64]),_0x25c816[_0x2feb64]={'start':_0x29c1d2,'tapeItem':_0x95b399[_0x441e5d],'userId':_0x12cdef,'type':_0x2feb64}),_0x25c816[_0x2feb64]&&_0x1bf7e5&&('elementStart'!==_0x95b399[_0x441e5d]['type']||_0x1ebfce&&_0x1ebfce['userId']===_0x12cdef||_0x135e73[_0x2feb64]['unshift']({'userId':_0x12cdef,'object':_0x95b399[_0x441e5d]['item'],'change':_0x25c816[_0x2feb64]}),'elementEnd'===_0x95b399[_0x441e5d]['type']&&_0x1ebfce&&_0x1ebfce['object']===_0x95b399[_0x441e5d]['item']&&(_0x135e73[_0x2feb64]['shift'](),_0x25c816[_0x2feb64]=_0x1ebfce['change'])),_0x25c816[_0x2feb64]&&_0x55e567&&(_0x25c816[_0x2feb64]['end']=_0x17f620,_0x18301f(_0x25c816[_0x2feb64]),_0x25c816[_0x2feb64]=null);}function _0x18301f({start:_0x2d1cd9,end:_0x2d9c54,tapeItem:_0x2c0537,userId:_0x1fa32e,type:_0x1fbc3b}){const _0x4d1666=_0x2c0537['item'],_0x595b7b=_0x4ebdf1['schema']['isBlock'](_0x4d1666)&&!_0x4ebdf1['schema']['isLimit'](_0x4d1666),_0x31cb9c=_0x2d1cd9['nodeAfter']==_0x2d9c54['parent']&&_0x2d9c54['isAtStart'];if(_0x595b7b&&_0x31cb9c)return;const _0x4e4f39=_0x4ebdf1['createRange'](_0x2d1cd9,_0x2d9c54),_0x4452d4=_0x4a02b2['get'](_0x1fa32e),_0x4b593d=new r({'author':_0x4452d4,'type':'isAdded'==_0x1fbc3b||'isAddSuggestion'==_0x1fbc3b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1fbc3b||'isRemoveSuggestion'==_0x1fbc3b},'createdAt':new Date(),'rootName':_0x22ad8a});_0xb97b01['push'](_0x4b593d),_0x1a5f9b['markers']['set']('revision:'+_0x4b593d['id'],_0x4e4f39);}function _0x42719f(_0xd9cb1b,_0x1bee1d){const _0x68f4b3=_0xd9cb1b['getAttributes'](),_0x16a8d7=_0x1bee1d['getAttributes']();for(const _0x30528b of _0x68f4b3){if(_0x30528b[0x1]!==_0x1bee1d['getAttribute'](_0x30528b[0x0]))return!0x1;_0x16a8d7['next']();}return _0x16a8d7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e519=>{const _0x2f644e=_0x42e519['markerName']['split'](':')[0x1],_0x1f3c8a=this['_getChangeFromId'](_0x2f644e);if(!_0x1f3c8a)return null;const _0x105df7='add'==_0x1f3c8a['type']?'insertion':'deletion',_0x5ad5b1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x105df7];return _0x1f3c8a['data']['isSuggestion']&&_0x5ad5b1['push']('ck-suggestion-marker-'+_0x105df7+'-new'),this['activeChange']==_0x1f3c8a&&_0x5ad5b1['push']('ck-suggestion-marker--active'),{'classes':_0x5ad5b1,'attributes':{'data-change-id':_0x2f644e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c2971=>{_0x3c2971['on']('element:pre',(_0x36333f,_0x34a529,_0x3c2719)=>{const _0x1a4f44=_0x34a529['viewItem']['getChild'](0x0);if(!_0x1a4f44||!_0x1a4f44['is']('element','code'))return;if(!_0x3c2719['consumable']['consume'](_0x1a4f44,{'attributes':['vid_start','vid_end']}))return;const _0x147d96=_0x34a529['modelRange']['start']['nodeAfter'];_0x3c2719['writer']['setAttribute']('vid_start',_0x1a4f44['getAttribute']('vid_start'),_0x147d96),_0x3c2719['writer']['setAttribute']('vid_end',_0x1a4f44['getAttribute']('vid_end'),_0x147d96);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4d69f8=>{_0x4d69f8['on']('element',(_0x1756b0,_0x3ce1f7,_0x20d693)=>{if(!_0x20d693['consumable']['consume'](_0x3ce1f7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ce1f7['modelRange']['isCollapsed'])return;const _0x36853c=_0x3ce1f7['modelRange']['start']['nodeAfter'];_0x36853c['hasAttribute']('vid_start')||_0x36853c['hasAttribute']('vid')||(_0x20d693['writer']['setAttribute']('vid_start',_0x3ce1f7['viewItem']['getAttribute']('vid_start'),_0x36853c),_0x20d693['writer']['setAttribute']('vid_end',_0x3ce1f7['viewItem']['getAttribute']('vid_end'),_0x36853c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x152324=>_0x152324['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x22eb44,[,_0x14fa5f])=>{['vid_start','vid_end','vid']['includes'](_0x14fa5f)&&(_0x22eb44['return']=!0x0,_0x22eb44['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x518a3b=>{_0x518a3b['on']('attribute:vid',(_0x2342a3,_0x226f0c,_0x581d43)=>{if('\x20'!=_0x226f0c['item']['data']||_0x226f0c['item']['parent']['maxOffset']>0x1)return;if(!_0x581d43['consumable']['consume'](_0x226f0c['item'],_0x2342a3['name']))return;const _0x3a58b6=_0x581d43['writer'],_0x35c9ad=_0x581d43['mapper']['toViewRange'](_0x226f0c['range']);_0x3a58b6['wrap'](_0x35c9ad,_0x3a58b6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35f088){const _0x1e0aa8=_0x35f088['plugins']['get']('RevisionViewer');return(_0x528667,_0x1bfd0a,_0x5a1ec8)=>{const _0x1d2dd8=_0x1bfd0a['markerName']['split'](':')[0x1],_0x3c71b7=_0x1e0aa8['_getChangeFromId'](_0x1d2dd8);if(!_0x3c71b7)return null;const _0x2d5988='add'==_0x3c71b7['type']?'split':'merge';if(!_0x5a1ec8['consumable']['test'](_0x1bfd0a['markerRange'],_0x528667['name']))return;const _0x15797f=_0x1bfd0a['markerRange']['getWalker'](),_0x1b92c2=_0x1bfd0a['markerRange']['start'],_0x5add18=_0x35f088['model']['schema'];let _0x31e50d=null,_0x2f7114=null,_0x282d9b=!0x1,_0x1d681c=!0x1;for(const _0x3ea8f9 of _0x15797f){const _0x46a1af=_0x3ea8f9['item'];_0x282d9b=_0x282d9b||_0x5add18['isContent'](_0x46a1af);const _0x165de4=_0x5a1ec8['mapper']['toViewElement'](_0x46a1af);if(_0x165de4&&_0x165de4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ea8f9['type']&&(_0x5add18['isBlock'](_0x46a1af)&&!_0x5add18['isLimit'](_0x46a1af)&&(_0x46a1af['nextSibling']||_0x1b92c2['isAtEnd']?_0x31e50d&&_0x31e50d['parent']==_0x46a1af||(_0x31e50d=_0x46a1af,_0x39e2ae(_0x3ea8f9['previousPosition']),_0x1d681c=!0x0):_0x2f7114=_0x2f7114||_0x3ea8f9['previousPosition']));}function _0x39e2ae(_0x42d7f2){const _0x40710b=_0x5a1ec8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d5988}),_0x5d6883=_0x5a1ec8['mapper']['toViewPosition'](_0x42d7f2);_0x3c71b7['data']['isSuggestion']&&_0x5a1ec8['writer']['addClass']('ck-suggestion-marker-'+_0x2d5988+'-new',_0x40710b),_0x1e0aa8['activeChange']==_0x3c71b7&&_0x5a1ec8['writer']['addClass']('ck-suggestion-marker--active',_0x40710b),_0x5a1ec8['writer']['insert'](_0x5d6883,_0x40710b),_0x5a1ec8['mapper']['bindElementToMarker'](_0x40710b,_0x1bfd0a['markerName']);}_0x282d9b||_0x1d681c||!_0x2f7114||_0x39e2ae(_0x2f7114);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x42b063,_0x40fedd,_0x585717)=>{const _0x4d2641=_0x585717['mapper']['markerNameToElements'](_0x40fedd['markerName']);if(_0x4d2641){for(const _0x22a999 of _0x4d2641)(_0x22a999['hasClass']('ck-suggestion-marker-split')||_0x22a999['hasClass']('ck-suggestion-marker-merge'))&&(_0x585717['mapper']['unbindElementFromMarkerName'](_0x22a999,_0x40fedd['markerName']),_0x585717['writer']['remove'](_0x22a999));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x37e505,_0x1ac2ef,_0xe3dad)=>{const _0x34405c=_0x1ac2ef['markerName']['split'](':')[0x1],_0x69c1e2=this['_getChangeFromId'](_0x34405c);if(!_0x69c1e2)return null;const _0x4a1aaa='add'==_0x69c1e2['type']?'split':'merge';if(_0xe3dad['consumable']['test'](_0x1ac2ef['markerRange'],_0x37e505['name']))for(const _0x1051a8 of _0x1ac2ef['markerRange']['getItems']()){if(!_0x1051a8['is']('element','softBreak'))continue;const _0x3497b5=_0xe3dad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a1aaa}),_0x3f495c=_0xe3dad['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1051a8));_0x69c1e2['data']['isSuggestion']&&_0xe3dad['writer']['addClass']('ck-suggestion-marker-'+_0x4a1aaa+'-new',_0x3497b5),this['activeChange']==_0x69c1e2&&_0xe3dad['writer']['addClass']('ck-suggestion-marker--active',_0x3497b5),_0xe3dad['writer']['insert'](_0x3f495c,_0x3497b5),_0xe3dad['mapper']['bindElementToMarker'](_0x3497b5,_0x1ac2ef['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x324c24=>{for(const _0x4decae of this['editor']['model']['document']['getRootNames']()){const _0x11b885=this['editor']['model']['document']['getRoot'](_0x4decae),_0x5b82a5=this['editor']['editing']['view']['document']['getRoot'](_0x4decae);if(_0x5b82a5){const _0x2feea4=_0x11b885['getAttribute']('revisionHistoryAttachChange');if(_0x324c24['removeAttribute']('data-change-id',_0x5b82a5),_0x324c24['removeClass']('ck-revision-history-root-add',_0x5b82a5),_0x324c24['removeClass']('ck-revision-history-root-remove',_0x5b82a5),_0x324c24['removeClass']('ck-revision-history-root--active',_0x5b82a5),_0x2feea4){const _0x576c5e=this['_getChangeFromId'](_0x2feea4);if(!_0x576c5e)return null;_0x324c24['setAttribute']('data-change-id',_0x2feea4,_0x5b82a5),_0x324c24['addClass']('ck-revision-history-root-'+_0x576c5e['type'],_0x5b82a5),this['activeChange']==_0x576c5e&&_0x324c24['addClass']('ck-revision-history-root--active',_0x5b82a5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x35c119=>'revision-comment:'+_0x35c119,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x39b54b=>'revision-suggestion:'+_0x39b54b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3b73f4=>({'name':'suggestion:'+_0x3b73f4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x53f908=>{const _0x2e1469=_0x53f908['markerName']['split'](':')[0x1];return'insertion'!=_0x2e1469&&'deletion'!=_0x2e1469?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2e1469]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x387193,_0x1091db,_0x3e7894)=>{const _0x5a90d4=_0x3e7894['mapper']['markerNameToElements'](_0x1091db['markerName']);if(_0x5a90d4){for(const _0x35c69c of _0x5a90d4)_0x35c69c['is']('uiElement')&&(_0x3e7894['mapper']['unbindElementFromMarkerName'](_0x35c69c,_0x1091db['markerName']),_0x3e7894['writer']['remove'](_0x35c69c));}},{'priority':'high'});}['_getChangeFromId'](_0x1e58a1){return this['_changeIdToChange']['get'](_0x1e58a1);}['_getViewForChange'](_0x7d20f8){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x7d20f8),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x342cc1,_0x3d1f52,_0x45718d,_0x183c9b)=>{_0x183c9b&&this['_balloon']['remove'](_0x183c9b),_0x45718d&&(this['_balloon']['add']({'view':_0x45718d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x12f3ea=this['editor']['editing'],_0x4e64d7=this['_getChangeFromId'](_0x45718d['changeId']);let _0x1f26fb;if(_0x4e64d7['data']['isOnRoot']){const _0x5ee187=_0x12f3ea['view']['getDomRoot'](_0x4e64d7['rootName']);_0x1f26fb=Array['from'](_0x5ee187['getClientRects']());}else{const _0x16e9bd=this['editor']['model']['markers']['get']('revision:'+_0x45718d['changeId']);_0x1f26fb=Array['from'](_0x12f3ea['mapper']['markerNameToElements'](_0x16e9bd['name']))['map'](_0x1df775=>_0x12f3ea['view']['domConverter']['mapViewToDom'](_0x1df775))['map'](_0x52d4a1=>Array['from'](_0x52d4a1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1f26fb[0x0];return _0x1f26fb['find'](_0x15d5ee=>_0x15d5ee['top']-0x3<=this['_activeViewTarget']['y']&&_0x15d5ee['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15d5ee['left']-0x3<=this['_activeViewTarget']['x']&&_0x15d5ee['right']+0x3>=this['_activeViewTarget']['x'])||_0x1f26fb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x270d86,_0x1836a4,_0x27742d,_0x41c6bb)=>{this['activeView']=_0x27742d?this['_getViewForChange'](_0x27742d):null,this['editor']['model']['change'](()=>{const _0x2ff7ca=this['editor']['editing'];_0x41c6bb&&(_0x41c6bb['data']['isOnRoot']?_0x2ff7ca['view']['change'](_0x5561de=>{_0x5561de['removeClass']('ck-revision-history-root--active',_0x2ff7ca['view']['document']['getRoot'](_0x41c6bb['rootName']));}):_0x2ff7ca['reconvertMarker']('revision:'+_0x41c6bb['id'])),_0x27742d&&(_0x27742d['data']['isOnRoot']?_0x2ff7ca['view']['change'](_0x3e5002=>{_0x3e5002['addClass']('ck-revision-history-root--active',_0x2ff7ca['view']['document']['getRoot'](_0x27742d['rootName']));}):_0x2ff7ca['reconvertMarker']('revision:'+_0x27742d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x312e9a,_0x5738d8)=>{if(this['activeChange'])return;const _0x29858c=this['_findChangeIdFromDomTarget'](_0x5738d8['target']),_0x21508d=this['_changeIdToChange']['get'](_0x29858c);_0x21508d?(this['_activeViewTarget']={'x':_0x5738d8['domEvent']['x'],'y':_0x5738d8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x21508d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x521078,_0x52b63c)=>{const _0x387194=this['_findChangeIdFromDomTarget'](_0x52b63c['target']),_0x1bd787=this['_changeIdToChange']['get'](_0x387194);_0x1bd787?(this['_activeViewTarget']={'x':_0x52b63c['domEvent']['x'],'y':_0x52b63c['domEvent']['y']},_0x1bd787===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1bd787):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x25b7c9){do{const _0x4bc376=_0x25b7c9['getAttribute']('data-change-id');if(_0x4bc376)return _0x4bc376;_0x25b7c9=_0x25b7c9['parent'];}while(_0x25b7c9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd7c45f=>{for(const _0x405a11 of this['editor']['model']['markers'])_0xd7c45f['removeMarker'](_0x405a11);});}}function tt(_0x50002f,_0x248340){return(_0x72586f,_0x5701af,_0x38f498)=>{if(!_0x38f498['consumable']['test'](_0x5701af['markerRange'],_0x72586f['name']))return;const _0x1960d9=_0x5701af['markerRange']['getWalker'](),_0xf01865=_0x5701af['markerRange']['start'],_0x4586e7=_0x50002f['model']['schema'];let _0x326db4=null,_0x123427=null,_0x34b0d1=!0x1,_0x5279ff=!0x1;for(const _0x3e8bac of _0x1960d9){const _0x2eee65=_0x3e8bac['item'];_0x34b0d1=_0x34b0d1||_0x4586e7['isContent'](_0x2eee65);const _0x1d84ca=_0x38f498['mapper']['toViewElement'](_0x2eee65);if(_0x1d84ca&&_0x1d84ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e8bac['type']&&(_0x4586e7['isBlock'](_0x2eee65)&&!_0x4586e7['isLimit'](_0x2eee65)&&(_0x2eee65['nextSibling']||_0xf01865['isAtEnd']?_0x326db4&&_0x326db4['parent']==_0x2eee65||(_0x326db4=_0x2eee65,_0x5d157f(_0x3e8bac['previousPosition']),_0x5279ff=!0x0):_0x123427=_0x123427||_0x3e8bac['previousPosition']));}function _0x5d157f(_0x53c6ad){const _0x465a1b=_0x38f498['mapper']['toViewPosition'](_0x53c6ad),_0x4d17e1=_0x38f498['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x248340});_0x38f498['writer']['insert'](_0x465a1b,_0x4d17e1),_0x38f498['mapper']['bindElementToMarker'](_0x4d17e1,_0x5701af['markerName']);}_0x34b0d1||_0x5279ff||!_0x123427||_0x5d157f(_0x123427);};}class yt extends _0x1ca2bd{constructor(_0x1cf110){super(_0x1cf110);const _0x7b3615=_0x1cf110['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x7b3615,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x7b3615,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x7f2b29=this['editor'],_0x491ed8=_0x7f2b29['plugins']['get'](d),_0x32b06f=_0x491ed8['isReady']?_0x491ed8['diff']['newRevisionId']:null;_0x7f2b29['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x32b06f);}['refresh'](){const {isReady:_0x4ae5a6,isEnabled:_0x28b062,repository:_0x39b694,diff:_0x118bc7}=this['editor']['plugins']['get'](d),_0x5cf623=_0x118bc7&&_0x39b694['getLaterVisibleRevision'](_0x118bc7['newRevisionId']);this['isEnabled']=_0x4ae5a6&&_0x28b062&&Boolean(_0x5cf623);}}class bt extends _0x1ca2bd{['_step'];constructor(_0x1002b6,{direction:_0x5a7efc}){super(_0x1002b6);const _0x291a9c=_0x1002b6['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5a7efc?0x1:-0x1,this['listenTo'](_0x291a9c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x291a9c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x291a9c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x9b846f=this['editor'],_0xa5e777=_0x9b846f['plugins']['get'](d),{isNavigationMode:_0x1b59b5,currentChangeNumber:_0x1b2940}=_0xa5e777;let _0x356ea9;if(_0xa5e777['activeChange']=_0x1b59b5?_0xa5e777['diff']['changes']['get'](_0x1b2940+this['_step']):_0xa5e777['diff']['changes']['first'],_0xa5e777['activeChange']['data']['isOnRoot'])_0x356ea9=_0x9b846f['editing']['view']['getDomRoot'](_0xa5e777['activeChange']['rootName']);else{const _0x317943=_0x9b846f['model']['markers']['get']('revision:'+_0xa5e777['activeChange']['id']);_0x356ea9=_0x3d8dbe(_0x9b846f['editing'],_0x317943);}_0x322bc2({'target':_0x356ea9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x216bce,currentChangeNumber:_0x1ed4f9,numberOfChanges:_0x7a682a,isReady:_0x210cc0,isEnabled:_0x2475be}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2475be&&_0x210cc0&&_0x7a682a)&&(!_0x216bce||(0x1===this['_step']?_0x1ed4f9<_0x7a682a-0x1:_0x1ed4f9>0x0));}}class di extends _0x4d3579{constructor(_0x3cf6cc){super(_0x3cf6cc);const _0x3abc1d=this['bindTemplate'],_0x55728d=new _0x4f47da(_0x3cf6cc),_0x5cf1e0=new _0x4f47da(_0x3cf6cc);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',(_0x2d4dea,_0x41835f)=>_0x2d4dea&&_0x41835f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x120309,_0x2754b1,_0x5e4f48,_0x537ba3)=>{if(!_0x120309)return R(_0x3cf6cc,'Loading...');if(!_0x5e4f48)return R(_0x3cf6cc,'No\x20changes');const _0x2f91ed=R(_0x3cf6cc,'NUMBER_OF_CHANGES',_0x5e4f48);return _0x537ba3?R(_0x3cf6cc,'X_OF_Y_CHANGES',[_0x2754b1+0x1,_0x5e4f48]):_0x2f91ed;}),_0x55728d['set']({'label':R(_0x3cf6cc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5cf1e0['set']({'label':R(_0x3cf6cc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x55728d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5cf1e0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x55728d['on']('execute',()=>this['fire']('execute','backward')),_0x5cf1e0['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',_0x3abc1d['if']('_isStatusLabelVisible','ck-hidden',_0x1d8c8a=>!_0x1d8c8a)]},'children':[{'text':_0x3abc1d['to']('isNavigationMode',_0x1ff2f4=>_0x1ff2f4?R(_0x3cf6cc,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3cf6cc,'Total')+':\x20')}]},{'text':_0x3abc1d['to']('_statusText')}]},new _0x1baf29(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x55728d,_0x5cf1e0]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x20db2f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4916af=this['editor']['editing']['view'];_0x4916af['change'](_0x827d9b=>{for(const _0xebd0de of _0x4916af['document']['roots'])_0x827d9b['addClass'](ce,_0xebd0de);});}['hide'](){const _0x462768=this['editor']['editing']['view'];_0x462768['change'](_0x3defbb=>{for(const _0x521f9d of _0x462768['document']['roots'])_0x3defbb['removeClass'](ce,_0x521f9d);});}}class m extends _0x20db2f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x1b063a=this['editor'],_0x58c151=_0x1b063a['plugins']['get'](d),_0x5c0be4=_0x1b063a['plugins']['get'](ae);_0x1b063a['ui']['componentFactory']['add']('exitToEditing',_0x27266e=>{const _0xaf3868=new _0x4f47da(_0x27266e);return _0xaf3868['set']({'label':R(_0x27266e,'Back\x20to\x20editing'),'icon':_0x2f7a5c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xaf3868,'execute',()=>{_0x1b063a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xaf3868;}),_0x1b063a['ui']['componentFactory']['add']('restoreRevision',_0x5bb9e0=>{const _0x3e73f7=new _0x4f47da(_0x5bb9e0);return _0x3e73f7['set']({'label':R(_0x5bb9e0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3e73f7['bind']('isEnabled')['to'](_0x1b063a['commands']['get']('restoreRevision')),this['listenTo'](_0x3e73f7,'execute',()=>_0x1b063a['execute']('restoreRevision')),_0x3e73f7;}),_0x1b063a['ui']['componentFactory']['add']('changesNavigation',_0x5488a7=>{const _0xcec69b=new di(_0x5488a7),_0x1eb6e3=_0x1b063a['commands']['get']('showPreviousChange'),_0x1f5218=_0x1b063a['commands']['get']('showNextChange');return _0xcec69b['bind']('isBackwardNavigationEnabled')['to'](_0x1eb6e3,'isEnabled'),_0xcec69b['bind']('isForwardNavigationEnabled')['to'](_0x1f5218,'isEnabled'),_0xcec69b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x58c151),this['listenTo'](_0xcec69b,'execute',(_0x1abcbc,_0x583abe)=>{_0x1b063a['execute']('forward'===_0x583abe?'showNextChange':'showPreviousChange');}),_0xcec69b;}),_0x5c0be4['show'](),_0x58c151['on']('change:isReady',(_0x541906,_0x47741f,_0xa11886)=>{_0xa11886?_0x5c0be4['hide']():_0x5c0be4['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4132cf,_0x1596e9){super(_0x4132cf,_0x1596e9);const _0x17fde0=this['bindTemplate'];this['set']({'label':R(_0x4132cf,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4132cf,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x17fde0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x52b376=this['fieldView']['element'];this['_tooltipString']=_0x52b376['scrollWidth']>_0x52b376['clientWidth']&&_0x52b376['value']||'';}}class ti extends _0x4d3579{constructor(_0x13bac5,_0x3d0993,_0x33cc09){super(_0x13bac5);const _0xee1c74=new _0x50f711();_0xee1c74['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x598dd3=['ck','ck-revision-history-sidebar__revision-author'];_0x33cc09&&_0x598dd3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x303c44=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13bac5,_0x33cc09?'Revision\x20creator':'Revision\x20author')},'children':[_0xee1c74,_0x3d0993['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x598dd3},'children':_0x303c44});}}function ni(_0x15fb2f,_0x45ae53){const _0x40fa65=_0x15fb2f['bindTemplate'],_0xaf9b22=_0x15fb2f['locale'],_0x57ee5c=_0x1c165d(_0xaf9b22);_0x57ee5c['panelPosition']='sw';const _0x139772=function(_0x1670d0,_0x348039){const _0x369bf1=function(_0x18b611,_0x18ecd6){const _0x3ee22d=_0x18b611['locale'],_0x55b3db={'Compare\x20against\x20selected':R(_0x3ee22d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3ee22d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3ee22d,'Restore\x20this\x20revision')};return _0x18ecd6['map'](_0x4a9675=>{const _0x4a7e39=_0x55b3db[_0x4a9675['name']];return _0x4a7e39&&_0x4a7e39!==_0x4a9675['name']&&(_0x4a9675['name']=_0x4a7e39),_0x4a9675;});}(_0x1670d0,_0x348039),_0x2e7435=new _0x43ea08();for(const _0x595b30 of _0x369bf1){const _0x30eff6={'type':'button','model':new to({'label':_0x595b30['name'],'class':_0x595b30['class'],'withText':!0x0,'role':'menuitem','_action':_0x595b30['action']})};_0x30eff6['model']['bind']('isEnabled')['to'](_0x1670d0,'isActionsDropdownOpen',_0x3f615a=>'function'!=typeof _0x595b30['isEnabled']||(!_0x3f615a||_0x595b30['isEnabled'](_0x1670d0))),_0x2e7435['add'](_0x30eff6);}return _0x2e7435;}(_0x15fb2f,_0x45ae53);return _0x15fb2f['bind']('isActionsDropdownOpen')['to'](_0x57ee5c,'isOpen'),_0x57ee5c['buttonView']['set']({'label':R(_0xaf9b22,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2f7a5c['threeVerticalDots']}),_0x57ee5c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x40fa65['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x40fa65['to'](_0x295e94=>_0x295e94['stopPropagation']())}}),_0x57ee5c['on']('execute',_0x148079=>{_0x15fb2f['isReady']&&'function'==typeof _0x148079['source']['_action']&&_0x148079['source']['_action'](_0x15fb2f);}),_0x244218(_0x57ee5c,_0x139772,{'role':'menu'}),_0x57ee5c['listenTo'](_0x15fb2f,'change:isActionsDropdownOpen',(_0x35c2ea,_0x55017d,_0xf73bc4)=>{if(_0xf73bc4)for(const _0x1a7414 of _0x57ee5c['listView']['items']){const _0x39a164=_0x1a7414['children']['first'],_0x2e32f6=_0x45ae53['find'](_0x5435aa=>_0x5435aa['action']===_0x39a164['_action'])['isVisible'];_0x1a7414['isVisible']=void 0x0===_0x2e32f6||_0x2e32f6(_0x15fb2f);}}),_0x57ee5c;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x88e50a,uid as _0x4c02ac,Collection as _0x2d1bb4,logWarning as _0x4b074b,FocusTracker as _0x3704e2,KeystrokeHandler as _0x179f65,scrollViewportToShowTarget as _0x489eea,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2d3871}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3e8ae0,set as _0x21dd8f,unset as _0x1a05c4,isEqual as _0x43de91}from'lodash-es';import{Plugin as _0x434fd7,PendingActions as _0x1f874c,icons as _0x3495e1,Command as _0x18555e,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1124cd,getMarkerDomElement as _0x3d0410,ConfirmMixin as _0x2e7f54,sanitizeEditorConfig as _0x53a3aa}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5b1c52,ViewText as _0x441a0d,ViewElement as _0x4e6782,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x35cc28,ViewAttributeElement as _0x154fa8,ViewEmptyElement as _0x511d98,ViewRawElement as _0x192dd9,ViewUIElement as _0x181875,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x297fcf,injectCssTransitionDisabler as ts,submitHandler as _0x4790e8,LabeledFieldView as at,createLabeledInputText as _0x2be08e,createDropdown as _0x327471,ListView as _0x56690b,ListItemView as _0x902890,ButtonView as _0x2456b5,MenuBarMenuView as _0x510d82,MenuBarMenuListView as _0x15361d,MenuBarMenuListItemView as _0x4e9c93,MenuBarMenuListItemButtonView as _0x4c5f6c,ContextualBalloon as _0x323519,ToolbarSeparatorView as _0x43523c,IconView as _0x21bca6,addListToDropdown as _0x9954b6,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3c423b}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x88e50a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e6311){super(),this['id']=_0x4e6311['id']||_0x4c02ac(),this['creator']=_0x4e6311['creator']||null,this['authors']=_0x4e6311['authors']||[],this['diffData']=_0x4e6311['diffData']||null,this['toVersion']=_0x4e6311['toVersion']||0x0,this['fromVersion']=_0x4e6311['fromVersion']||0x0,this['set']('name',_0x4e6311['name']||''),this['set']('createdAt',_0x4e6311['createdAt']||new Date()),this['set']('attributes',_0x4e6311['attributes']||{});}['setName'](_0x35481f){this['_update']({'name':_0x35481f});}['setAttribute'](_0x42aaa4,_0x5460ba){const _0x4e95bd=_0x3e8ae0(this['attributes']);_0x21dd8f(_0x4e95bd,_0x42aaa4,_0x5460ba),this['_update']({'attributes':_0x4e95bd});}['removeAttribute'](_0x12e96c){const _0x5aedd5=_0x3e8ae0(this['attributes']);_0x1a05c4(_0x5aedd5,_0x12e96c),this['_update']({'attributes':_0x5aedd5});}['_update'](_0x4151f9,_0x3e1d3e=!0x1){let _0x46cb=!0x1;const _0x4b6241={'id':this['id']},_0x4592ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b90dc of _0x4592ca){const _0x5e330f=_0x4151f9[_0x5b90dc];void 0x0!==_0x5e330f&&_0x5e330f!==this[_0x5b90dc]&&(this[_0x5b90dc]=_0x5e330f,_0x4b6241[_0x5b90dc]=_0x5e330f,_0x46cb=!0x0);}_0x46cb&&(_0x4b6241['authors']&&(_0x4b6241['authorsIds']=_0x4b6241['authors']['map'](_0x150b35=>_0x150b35['id']),delete _0x4b6241['authors']),this['fire']('_update',_0x4b6241,_0x3e1d3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xa6058e=>_0xa6058e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x434fd7{['_revisions'];static get['requires'](){return[_0x1124cd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d8e56){super(_0x4d8e56),this['_revisions']=new _0x2d1bb4();}['afterInit'](){!async function(_0x4e9ffe){const _0x4848d9=_0x3b23c0([0x39,0x49,0x54,0x63,0x76,0x66,0x56,0x4b,0x68,0x52,0x55,0x71,0x58,0x38,0x57,0x50,0x69,0x30,0x42,0x4e,0x67,0x48,0x79,0x51,0x46,0x62,0x59,0x4f,0x37,0x6b,0x6f,0x74,0x32,0x5a,0x31,0x44,0x35,0x6c,0x6e,0x73,0x6a,0x61,0x7a,0x77,0x33,0x34,0x78,0x64,0x4d,0x75,0x65,0x36,0x6d,0x43,0x41,0x45,0x70,0x47,0x72,0x4a,0x4c,0x53]),_0x460ce=0xeb829,_0x2fd0ce=0x6e3c1333,_0x2014b7=0x6e3b48e3^_0x2fd0ce,_0x2f31e4=window[_0x3b23c0([0x44,0x61,0x74,0x65])][_0x3b23c0([0x6e,0x6f,0x77])](),_0x3f6d55=_0x4e9ffe[_0x3b23c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20236b=new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597cd9=>{_0x3f6d55[_0x3b23c0([0x6f,0x6e,0x63,0x65])](_0x3b23c0([0x72,0x65,0x61,0x64,0x79]),_0x597cd9);}),_0x33f7df={[_0x3b23c0([0x6b,0x74,0x79])]:_0x3b23c0([0x45,0x43]),[_0x3b23c0([0x75,0x73,0x65])]:_0x3b23c0([0x73,0x69,0x67]),[_0x3b23c0([0x63,0x72,0x76])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36]),[_0x3b23c0([0x78])]:_0x3b23c0([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]),[_0x3b23c0([0x79])]:_0x3b23c0([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]),[_0x3b23c0([0x61,0x6c,0x67])]:_0x3b23c0([0x45,0x53,0x32,0x35,0x36])},_0x47b3b4=_0x3f6d55[_0x3b23c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b23c0([0x67,0x65,0x74])](_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6ac4d4(){let _0xd9b950,_0x1f8fe4=null,_0x318de4=null;try{if(_0x47b3b4==_0x3b23c0([0x47,0x50,0x4c]))return _0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd9b950=_0x55496b(),!_0xd9b950)return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x318de4=_0x4d9974(_0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd9b950[_0x3b23c0([0x6a,0x74,0x69])])),await _0x44e4d0()?_0x1f190d()?_0x2f8ded()?_0x3b23c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3547()?(_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcbd909()):_0x3b23c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3da5bd){return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f8ded(){const _0x310b65=[_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])][_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f31e4/0x3e8:0xe10*_0x2014b7;return _0xd9b950[_0x3b23c0([0x65,0x78,0x70])]<_0x310b65;}function _0x1f190d(){const _0x4d8398=_0xd9b950[_0x3b23c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d8398)return!0x1;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x48])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x52,0x48]))){if(_0x1416c8())return!0x0;if(_0x263088()||_0x2fc2b8())return!0x0;}return!0x1;}function _0x5e3547(){const _0x58d6fd=_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58d6fd||0x0==_0x58d6fd[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bc7c0}=new URL(window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58d6fd[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bc7c0))return!0x0;const _0x435c3b=_0x5bc7c0[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));return _0x58d6fd[_0x3b23c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cc28b=>_0x3cc28b[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))[_0x3b23c0([0x6d,0x61,0x70])](_0x4a7c9f=>_0x4a7c9f[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])))[_0x3b23c0([0x73,0x6f,0x6d,0x65])](_0x8fa551=>_0x435c3b[_0x3b23c0([0x65,0x76,0x65,0x72,0x79])]((_0xb11cb1,_0x3b2dbc)=>_0x8fa551[_0x3b2dbc]===_0xb11cb1||_0x8fa551[_0x3b2dbc]===_0x3b23c0([0x2a])));}function _0xcbd909(){return _0x1f8fe4&&_0x318de4?new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x102508,_0x18e8e8)=>{_0x1f8fe4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x102508,_0x18e8e8),_0x318de4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4ae983=>{_0x4ae983!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0x102508(_0x4ae983);},_0x18e8e8);}):_0x1f8fe4||_0x318de4||_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d9974(_0x1a2491,_0x31a1d8){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5313a4=>{if(_0x228b2f())return _0x5313a4(_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]));_0x3737bb(),_0x3f6d55[_0x3b23c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cc262=!0x1;const _0x138274=_0x4c02ac();function _0x552929(_0x493995){return!!_0x493995&&(typeof _0x493995===_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x493995===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x493995[_0x3b23c0([0x74,0x68,0x65,0x6e])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x493995[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12c5fb(_0x486849){_0x49d7d2(_0x486849)[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4a83ea=>{if(!_0x4a83ea||_0x4a83ea[_0x3b23c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b23c0([0x6f,0x6b]))return _0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39b1bc(_0x2a92c2(_0x138274+_0x31a1d8))!=_0x4a83ea[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x1b8a20=>(_0x2ac150(),_0x1b8a20),()=>{const _0x2c65dc=_0x36b23c();return null==_0x2c65dc?(_0x2ac150(),_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])):_0x3b23c0(_0x2f31e4-_0x2c65dc>(0x4a309733^_0x2fd0ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x5313a4)[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe5aeb6=0x6e0afdb3^_0x2fd0ce;function _0x2ac150(){const _0x3ac1bc=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x49c4c8=_0x3670b9(_0x39b1bc(window[_0x3b23c0([0x4d,0x61,0x74,0x68])][_0x3b23c0([0x63,0x65,0x69,0x6c])](_0x2f31e4/_0xe5aeb6)));window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac1bc,_0x49c4c8);}function _0x36b23c(){const _0x500704=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x430684=window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x500704);return _0x430684?window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3670b9(_0x430684),0x10)*_0xe5aeb6:null;}function _0x49d7d2(_0x1e1bce){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d0f69,_0x431fdb)=>{_0x1e1bce[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4d0f69,_0x431fdb),window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x431fdb,0x6e3dc7f3^_0x2fd0ce);});}}_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f1098,_0x6a6ab8)=>{if(_0x6a6ab8[0x0]!=_0x1a2491)return _0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6a6ab8[0x1]={..._0x6a6ab8[0x1],[_0x3b23c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x138274};},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x68,0x69,0x67,0x68])}),_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7bf036=>{_0x552929(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cc262=!0x0,_0x12c5fb(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x6c,0x6f,0x77])}),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>{_0x5cc262||_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x228b2f(){return _0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b23c0([0x61,0x75,0x74,0x6f]);}function _0x3737bb(){_0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b23c0([0x61,0x75,0x74,0x6f]);}}function _0x5c20d8(_0x467bd8){const _0x5f252c=[new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20df12=>setTimeout(_0x20df12,0x6e352dff^_0x2fd0ce)),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461ad7=>{const _0x25e995=0x6e3c1334^_0x2fd0ce,_0x427cc8=_0x4e9ffe[_0x3b23c0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x594ba3(){_0x427cc8[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x25e995&&_0x461ad7();}_0x594ba3(),_0x427cc8[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x61,0x64,0x64]),_0x594ba3);})),new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8fbf=>{function _0x3df9c4(){for(const _0x218263 in window)if(window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x218263))&&window[_0x218263]==_0x460ce)return _0x3b8fbf();_0x3f6d55[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]!=_0x3b23c0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3df9c4,0x6e3c00bb^_0x2fd0ce);}_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3df9c4();})];return window[_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b23c0([0x72,0x61,0x63,0x65])](_0x5f252c)[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>_0x467bd8);}async function _0xf5d8bc(){if(await _0x20236b,_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x397dbd=_0x4e9ffe[_0x3b23c0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18a191=_0x4e9ffe[_0x3b23c0([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])](_0x397dbd[_0x3b23c0([0x69,0x64])]),_0x233e9e=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x397dbd['id'],_0x18a191?_0x18a191['id']:null,!0x0),_0x233e9e[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x233e9e[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x584110,void(_0x233e9e[_0x3b23c0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x584110);}if(_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ce983=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ce983[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ce983[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ce983[_0x3b23c0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x584110,_0x5ce983[_0x3b23c0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x584110;}_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1416c8(){return _0xd80222(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4df06e(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]==_0x3b23c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x263088(){return _0xd80222(_0x3b23c0([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 _0x2fc2b8(){return _0xd80222(_0x3b23c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10e647(_0x388f24){const _0xa99dcf=_0x5fc642();_0x3f6d55[_0xa99dcf]=_0x3b23c0([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])+_0x388f24,_0x388f24[_0x3b23c0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5fc642()]=_0x460ce),_0x388f24!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0xf5d8bc();}function _0x5fc642(){const _0x3368ff=window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b23c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b23c0([0x6e,0x6f,0x77])]())[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b23c0([0x2e]),'');let _0x2c640b=_0x3b23c0([0x49]);for(let _0x2f9d3c=0x0;_0x2f9d3c<_0x3368ff[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9d3c+=0x2){let _0x3aa684=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3368ff[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9d3c,_0x2f9d3c+0x2));_0x3aa684>=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa684-=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c640b+=_0x4848d9[_0x3aa684];}return _0x2c640b;}function _0x55496b(){const _0x29d14a=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));if(0x3!=_0x29d14a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x287e20(_0x29d14a[0x1]);function _0x287e20(_0xbfa891){const _0x45a395=_0x563964(_0xbfa891);return _0x45a395&&_0x5bf41e()?_0x45a395:null;function _0x5bf41e(){const _0x4a5758=_0x45a395[_0x3b23c0([0x6a,0x74,0x69])],_0x2ad41b=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18fbd3={..._0x45a395,[_0x3b23c0([0x6a,0x74,0x69])]:_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18fbd3[_0x3b23c0([0x76,0x63])],_0x2a92c2(_0x18fbd3)==_0x2ad41b;}}}async function _0x44e4d0(){let _0x59b600=!0x0;try{const _0x4dd0d8=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])),[_0x4d5144,_0x146281,_0x2a0c5b]=_0x4dd0d8;return _0x1174ea(_0x4d5144),await _0x3f2188(_0x4d5144,_0x146281,_0x2a0c5b),_0x59b600;}catch(_0x4d986c){return!0x1;}function _0x1174ea(_0x190bdd){const _0x32f105=_0x563964(_0x190bdd);_0x32f105&&_0x32f105[_0x3b23c0([0x61,0x6c,0x67])]==_0x3b23c0([0x45,0x53,0x32,0x35,0x36])||(_0x59b600=!0x1);}async function _0x3f2188(_0x439021,_0x4cf3ea,_0x6468b6){const _0x37ec4a=window[_0x3b23c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b23c0([0x66,0x72,0x6f,0x6d])](_0x5e75b8(_0x6468b6),_0x2a754c=>_0x2a754c[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19c7e8=new window[(_0x3b23c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b23c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x439021+_0x3b23c0([0x2e])+_0x4cf3ea),_0x56ede3=window[_0x3b23c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b23c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56ede3)return;const _0x192e06=await _0x56ede3[_0x3b23c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b23c0([0x6a,0x77,0x6b]),_0x33f7df,{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56ede3[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x68,0x61,0x73,0x68])]:{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x192e06,_0x37ec4a,_0x19c7e8)||(_0x59b600=!0x1);}}function _0x563964(_0x30dc9c){return _0x30dc9c[_0x3b23c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x65,0x79]))?JSON[_0x3b23c0([0x70,0x61,0x72,0x73,0x65])](_0x5e75b8(_0x30dc9c)):null;}function _0x5e75b8(_0x13361a){return window[_0x3b23c0([0x61,0x74,0x6f,0x62])](_0x13361a[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b23c0([0x2b]))[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b23c0([0x2f])));}function _0x2a92c2(_0x232b46){let _0x43aedf=0x1505;function _0x264bf1(_0x91f9a){for(let _0x5c0f44=0x0;_0x5c0f44<_0x91f9a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0f44++){const _0x51d3d5=_0x91f9a[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0f44);_0x43aedf=(_0x43aedf<<0x5)+_0x43aedf+_0x51d3d5,_0x43aedf&=_0x43aedf;}}function _0x9894b7(_0x166bfb){Array[_0x3b23c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x166bfb)?_0x166bfb[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9894b7):_0x166bfb&&typeof _0x166bfb==_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b23c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x166bfb)[_0x3b23c0([0x73,0x6f,0x72,0x74])]()[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x921540,_0x3d4076])=>{_0x264bf1(_0x921540),_0x9894b7(_0x3d4076);}):_0x264bf1(window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x166bfb));}return _0x9894b7(_0x232b46),_0x43aedf>>>0x0;}function _0x39b1bc(_0x528bcb){return _0x528bcb[_0x3b23c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b23c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b23c0([0x30]));}function _0x3670b9(_0x7089a3){return _0x7089a3[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b23c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b23c0([0x6a,0x6f,0x69,0x6e])]('');}function _0xd80222(_0x3c37f4){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x68,0x61,0x73])](_0x3c37f4);}function _0x4df06e(_0x5261f1){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x67,0x65,0x74])](_0x5261f1);}function _0x584110(){}function _0x3b23c0(_0x206d06){return _0x206d06['map'](_0x231233=>String['fromCharCode'](_0x231233))['join']('');}_0x10e647(await _0x6ac4d4());}(this);}['createRevision'](_0x404365){const _0x555b1c=this['editor']['plugins']['get']('Users');return new a({'id':_0x404365['id'],'name':_0x404365['name'],'creator':_0x404365['creatorId']?_0x555b1c['getUser'](_0x404365['creatorId']):null,'diffData':_0x404365['diffData']||_0x404365['data'],'authors':_0x404365['authorsIds']['map'](_0x4394e6=>_0x555b1c['getUser'](_0x4394e6)),'createdAt':new Date(_0x404365['createdAt']),'attributes':_0x404365['attributes'],'fromVersion':_0x404365['fromVersion'],'toVersion':_0x404365['toVersion']});}['addRevision'](_0x3a4bfd,_0x11919c=0x0){this['_revisions']['add'](_0x3a4bfd,_0x11919c);}['getRevision'](_0x2579c8){return this['_revisions']['get'](_0x2579c8);}['getRevisions'](_0x58459e={'toJSON':!0x1}){const _0x28b575=Array['from'](this['_revisions']);return _0x28b575['reverse'](),_0x58459e['toJSON']?_0x28b575['map'](_0x586470=>_0x586470['toJSON']()):_0x28b575;}['getIndex'](_0x4a4a69){return this['_revisions']['getIndex'](_0x4a4a69);}['getEarlierVisibleRevision'](_0x2b1606){const [,_0x447668]=this['getRevisionsIterator'](_0x2b1606,{'direction':'earlier'});return _0x447668;}['getLaterVisibleRevision'](_0x427510){const [,_0x4dd6c1]=this['getRevisionsIterator'](_0x427510,{'direction':'later'});return _0x4dd6c1;}['getRevisionsInDiff'](_0xd0cbfa){const _0x45fe3d=[];for(const _0x4f7fa8 of this['getRevisionsIterator'](_0xd0cbfa['newRevisionId']))if(_0x45fe3d['push'](_0x4f7fa8),_0x4f7fa8['id']===_0xd0cbfa['oldRevisionId'])break;return _0x45fe3d;}*['getRevisionsIterator'](_0x5097bf,{direction:_0x1f589e='earlier',filter:_0xc7b1f5=()=>!0x0}={}){const _0x3b0e16='earlier'===_0x1f589e?0x1:-0x1;let _0x115cae=this['_revisions']['get'](_0x5097bf),_0x42f550=this['getIndex'](_0x115cae);for(yield _0x115cae;_0x115cae;){if(_0x42f550+=_0x3b0e16,_0x115cae=this['getRevision'](_0x42f550),!_0x115cae)return;_0xc7b1f5(_0x115cae)&&(yield _0x115cae);}}}function R(_0x4d1b83,_0x49636b,_0x62fe99){const t=_0x4d1b83['t'];switch(_0x49636b){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'},_0x62fe99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x62fe99);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class l extends _0x434fd7{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1124cd,j,_0x1f874c];}constructor(_0xbfd529){super(_0xbfd529),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x727045=_0x4c02ac();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x727045},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x145908=this['repository']['getRevision'](0x0),_0x17993b=_0x145908&&null===_0x145908['creator']?_0x145908:null;if(this['_continueCurrentRevision']=!!_0x17993b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2b2a9f=this['_source']['getCurrentRevisionId'](),_0x3836bf=this['repository']['getRevision'](_0x2b2a9f);if(_0x3836bf)this['_startingVersion']=_0x3836bf['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5aa8e5=this['_source']['history']['_operations']['find'](_0x4e5fa1=>!_0x4e5fa1['_isInit']),_0x3d0a91=_0x5aa8e5?_0x5aa8e5['baseVersion']:this['_source']['history']['version'];_0x145908?(_0x145908['toVersion']<_0x3d0a91&&_0x145908['_update']({'toVersion':_0x3d0a91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['fromVersion']):(this['_startingVersion']=_0x145908['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3d0a91,this['_continueCurrentRevision']=!0x1);}}else _0x17993b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17993b['toVersion'],this['editor']['model']['document']['history']['version']),_0x17993b['fromVersion']===_0x17993b['toVersion']?(0x0!==_0x17993b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['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',_0x29646d=>!_0x29646d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2dbe9a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x337795;for(const _0x472953 in _0x2dbe9a){const _0x29feb2=_0x472953,_0x7d5dfa=_0x2dbe9a[_0x29feb2];if('revisionHistoryLicenseKeyValid'==_0x7d5dfa||'revisionHistoryLicenseKeyInvalid'==_0x7d5dfa||'revisionHistoryLicenseKeyExpired'==_0x7d5dfa||'revisionHistoryLicenseKeyDomainLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyNotAllowed'==_0x7d5dfa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyTrialLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyUsageLimit'==_0x7d5dfa){delete _0x2dbe9a[_0x29feb2],_0x337795=_0x7d5dfa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x337795&&_0x2dbe9a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x337795&&_0x2dbe9a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x337795&&_0x2dbe9a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x93c4ba=this['repository']['getRevision'](0x0),_0x31f24e=await this['getRevisionDocumentData'](_0x93c4ba),_0x397883=await this['getRevisionRootsAttributes'](_0x93c4ba);this['_replaceEditorDataWithRevisionData'](_0x31f24e,_0x397883);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x27b294){this['_source']=_0x27b294;}async['update'](){const _0x1ccf1e=await this['_source']['getLatestVersion']();if(_0x1ccf1e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f6920=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ccf1e});_0x4f6920['authors']=_0x4f6920['authorsIds']['map'](_0x320b1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x320b1d)),this['currentRevision']['_update'](_0x4f6920);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2d1be8={},_0xd0c952=null){const _0x428be4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd0c952>this['currentRevision']['toVersion']&&(_0xd0c952=null),null===_0xd0c952&&(_0xd0c952=await this['_source']['getLatestVersion']());const _0x5aa20e=this['_getFromVersion'](_0xd0c952),_0x5db9d3=this['buildRevisionData']({'from':_0x5aa20e,'to':_0xd0c952});if(this['currentRevision']['toVersion']<_0xd0c952){const _0x3ec29b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd0c952,'to':_0xd0c952});_0x3ec29b['authors']=[],_0x3ec29b['authorsIds']=[],_0x3ec29b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3ec29b,!0x0),delete _0x3ec29b['authors'],_0x428be4['push'](_0x3ec29b);}_0x2d1be8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d1be8['name']=_0x2d1be8['name']||null,_0x2d1be8['id']=_0x2d1be8['id']||_0x4c02ac(),_0x2d1be8={..._0x2d1be8,..._0x5db9d3};const _0x18009e=this['addRevisionData'](_0x2d1be8);_0x428be4['push'](_0x2d1be8);const _0x70585b=this['repository']['getIndex'](_0x18009e);if(0x0!==_0x70585b){const _0x1ae396=this['repository']['getRevision'](_0x70585b-0x1);if(_0x1ae396['fromVersion']!==_0xd0c952){const _0x1f2944=this['_revisionDataBuilder']['getData'](_0xd0c952,_0x1ae396['toVersion']),_0x5c0b03={'id':_0x1ae396['id'],'diffData':_0x1f2944['diffData'],'authorsIds':_0x1f2944['authorsIds'],'authors':_0x1f2944['authorsIds']['map'](_0x24991c=>this['editor']['plugins']['get']('Users')['getUser'](_0x24991c)),'fromVersion':_0xd0c952};_0x1ae396===this['currentRevision']&&(_0x5c0b03['createdAt']=new Date(_0x2d1be8['createdAt']['getTime']()+0xa)),_0x1ae396['_update'](_0x5c0b03,!0x0),delete _0x5c0b03['authors'],_0x428be4['push'](_0x5c0b03);}}if(this['adapter']){for(const _0x405f32 of _0x428be4)this['_bufferUpdate'](_0x405f32['id'],_0x405f32,!0x0);this['sendBufferedUpdates']();}return _0x18009e;}['addRevisionData'](_0x458de5){const _0x4940b4=this['repository']['createRevision'](_0x458de5);return this['adapter']&&_0x4940b4['on']('_update',(_0x1f5b8d,_0x10679d,_0x50d6cf)=>{_0x50d6cf||(this['_bufferUpdate'](_0x10679d['id'],_0x10679d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4940b4,this['_findInsertionIndex'](_0x4940b4)),_0x4940b4;}async['getRevisionDocumentData'](_0x30f59a){await this['_loadRevisionData'](_0x30f59a);const _0x43a3fd={};for(const _0x192dd5 in _0x30f59a['diffData']){if(_0x30f59a['diffData'][_0x192dd5]['attachChange']&&!_0x30f59a['diffData'][_0x192dd5]['attachChange']['isAttached'])continue;const _0x45a164=this['_removeRevisionMarkers'](JSON['parse'](_0x30f59a['diffData'][_0x192dd5]['insertions'])),_0xf4e751=this['editor']['editing']['view']['document'],_0x2fce44=new _0x5b1c52(_0xf4e751,_0x45a164['map'](_0x511dbe=>V(_0x511dbe,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x43a3fd[_0x192dd5]=this['editor']['data']['processor']['toData'](_0x2fce44),this['editor']['data']['processor']['useFillerType']('default');}return _0x43a3fd;}async['getRevisionRootsAttributes'](_0x2e3b85){await this['_loadRevisionData'](_0x2e3b85);const _0xe0bbe6={};for(const _0x36bb5c in _0x2e3b85['diffData'])_0x2e3b85['diffData'][_0x36bb5c]['attachChange']&&!_0x2e3b85['diffData'][_0x36bb5c]['attachChange']['isAttached']||(_0xe0bbe6[_0x36bb5c]=_0x2e3b85['diffData'][_0x36bb5c]['attributesAfter']||{});return _0xe0bbe6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x26ea02=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2519d0=0x0;_0x2519d0<_0x26ea02['length'];_0x2519d0++){const _0x25d5c0=_0x26ea02[_0x2519d0];let _0x2d7e67=!0x1;for(const _0x432275 of Object['keys'](_0x25d5c0))void 0x0===_0x25d5c0[_0x432275]?delete _0x25d5c0[_0x432275]:'id'!==_0x432275&&(_0x2d7e67=!0x0);_0x2d7e67||(_0x26ea02[_0x2519d0]=null);}if(_0x26ea02=_0x26ea02['filter'](_0x33b274=>null!==_0x33b274),!_0x26ea02['length'])return;for(let _0x2245d1=0x0;_0x2245d1<_0x26ea02['length'];_0x2245d1++){const _0x2f1f7e=_0x26ea02[_0x2245d1];void 0x0!==_0x2f1f7e['fromVersion']&&void 0x0===_0x2f1f7e['toVersion']&&(_0x2f1f7e['toVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['toVersion']),void 0x0!==_0x2f1f7e['toVersion']&&void 0x0===_0x2f1f7e['fromVersion']&&(_0x2f1f7e['fromVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['fromVersion']);}const _0x14647d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x26ea02,_0x14647d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x263788=>{if(_0x263788){for(const _0x13fc97 of _0x263788)this['setRevisionData']({'id':_0x13fc97['id'],'createdAt':_0x13fc97['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x47d251,_0x4ec78c){let _0x2d3ef5=this['editor']['config']['get']('initialData'),_0x76c1c4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2d3ef5){_0x2d3ef5={};for(const _0x2e354b of this['editor']['model']['document']['getRootNames']())_0x2d3ef5[_0x2e354b]='';}if('string'==typeof _0x2d3ef5&&(_0x2d3ef5={'main':_0x2d3ef5}),void 0x0===_0x76c1c4){_0x76c1c4={};for(const _0x567d73 of this['editor']['model']['document']['getRootNames']())_0x76c1c4[_0x567d73]={};}let _0x3b5c70=!0x1;const _0x59d73d=Object['keys'](_0x2d3ef5),_0x121b1a=Object['keys'](_0x47d251);for(const _0x927372 of _0x59d73d){if(_0x2d3ef5[_0x927372]!==_0x47d251[_0x927372]&&''!==_0x2d3ef5[_0x927372]['trim']()){_0x3b5c70=!0x0;break;}if(!_0x43de91(_0x76c1c4[_0x927372],_0x4ec78c[_0x927372])&&Object['keys'](_0x76c1c4[_0x927372])['length']>0x0){_0x3b5c70=!0x0;break;}}_0x3b5c70||(_0x3b5c70=_0x121b1a['some'](_0x5a7371=>!this['editor']['model']['document']['getRoot'](_0x5a7371))),_0x3b5c70&&_0x4b074b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2d3ef5,'editorRootsAttributes':_0x76c1c4,'revisionData':_0x47d251,'revisionRootsAttributes':_0x4ec78c}),this['editor']['config']['set']('initialData',_0x47d251),this['editor']['config']['set']('rootsAttributes',_0x4ec78c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1152b4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1152b4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x89306a){const _0x1e69ac=this['repository']['getRevisions']();_0x1e69ac['reverse']();let _0x3a9f08=0x0;for(;_0x3a9f08<_0x1e69ac['length'];){const _0x30fa02=_0x1e69ac[_0x3a9f08];if(_0x30fa02===this['currentRevision']){_0x3a9f08++;continue;}if(_0x30fa02['id']===this['_initialRevisionId'])break;const _0x2ebe98=_0x89306a['toVersion']-_0x30fa02['toVersion']||_0x89306a['fromVersion']-_0x30fa02['fromVersion'];if(_0x2ebe98>0x0)break;if(_0x2ebe98<0x0)_0x3a9f08++;else{if(!_0x89306a['creator']&&_0x30fa02['creator'])break;if(_0x30fa02['creator']||!_0x89306a['creator']){if(_0x89306a['createdAt']>_0x30fa02['createdAt'])break;_0x3a9f08++;}else _0x3a9f08++;}}return _0x3a9f08;}['setRevisionData'](_0x247e12){const _0x3675ee=this['repository']['getRevision'](_0x247e12['id']);if(_0x247e12['createdAt']&&(_0x247e12['createdAt']=new Date(_0x247e12['createdAt'])),_0x247e12['authorsIds']){const _0x198f0f=this['editor']['plugins']['get']('Users');_0x247e12['authors']=_0x247e12['authorsIds']['map'](_0x3da792=>_0x198f0f['getUser'](_0x3da792));}_0x3675ee['_update'](_0x247e12,!0x0);}['buildRevisionData']({revision:_0x3c4012=null,from:_0x3d8ba7=null,to:_0x5de6fe=null}){_0x3d8ba7=null!==_0x3d8ba7?_0x3d8ba7:_0x3c4012['fromVersion'],_0x5de6fe=null!==_0x5de6fe?_0x5de6fe:_0x3c4012['toVersion'];const _0xcafd55=this['_revisionDataBuilder']['getData'](_0x3d8ba7,_0x5de6fe),_0x2d718c={'diffData':_0xcafd55['diffData'],'authorsIds':_0xcafd55['authorsIds'],'fromVersion':_0x3d8ba7,'toVersion':_0x5de6fe};if(!_0x3c4012||_0x5de6fe!==_0x3c4012['toVersion']){const _0x1871a4=_0x5de6fe-0x1,_0x107d7e=this['_source']['history']['getOperation'](_0x1871a4);_0x2d718c['createdAt']=_0x107d7e&&_0x107d7e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d8ba7===this['_loadedStateData']['fromVersion']){for(const _0x414169 of this['_loadedStateData']['authors'])_0x2d718c['authorsIds']['includes'](_0x414169['id'])||_0x2d718c['authorsIds']['push'](_0x414169['id']);}return _0x2d718c;}['_loadRevisionData'](_0x248246){if(!_0x248246||_0x248246['diffData'])return Promise['resolve']();{const _0x23beac=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x23beac,'revisionId':_0x248246['id']})['then'](_0x5104c3=>{_0x248246['diffData']=_0x5104c3['diffData'];});}}['_bufferUpdate'](_0x2ffce9,_0xdcd260,_0x58f2a4){if(this['_bufferedUpdates']['has'](_0x2ffce9)){const _0x2e39c0=this['_bufferedUpdates']['get'](_0x2ffce9);_0xdcd260=_0x58f2a4?{..._0x2e39c0,..._0xdcd260}:{..._0xdcd260,..._0x2e39c0};}this['_bufferedUpdates']['set'](_0x2ffce9,_0xdcd260);}['_getFromVersion'](_0x3d874b){const _0x4e9843=this['repository']['getRevisions']();_0x4e9843['reverse'](),_0x4e9843['shift']();const _0x3dee0d=_0x4e9843['find'](_0x400d5e=>_0x400d5e['toVersion']<=_0x3d874b)['toVersion'];return _0x3dee0d<this['_startingVersion']?this['_startingVersion']:_0x3dee0d;}['_createInitialRevision'](_0x4385a4){const _0x415e16=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x415e16)this['_initialRevisionId']=_0x415e16['id'];else{const _0x352a80=!this['editor']['model']['document']['roots']['find'](_0x1b5fb4=>this['editor']['model']['hasContent'](_0x1b5fb4)),_0x38ed9e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a5229=R(this['editor']['locale'],_0x352a80?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4385a4,'to':_0x4385a4,'id':this['_initialRevisionId'],'name':_0x2a5229,'creatorId':_0x38ed9e});}}['_createCurrentRevision'](_0xabe33f){const _0x932987=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x932987),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xabe33f,'to':_0xabe33f,'id':_0x932987,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4844b0,from:_0x528a2d,to:_0x17cb45,creatorId:_0x47c104,id:_0x49f12b}){const _0xd98095=this['buildRevisionData']({'from':_0x528a2d,'to':_0x17cb45});_0xd98095['name']=_0x4844b0,_0xd98095['creatorId']=_0x47c104,_0xd98095['id']=_0x49f12b;const _0x183ed6=this['addRevisionData'](_0xd98095);return this['adapter']&&this['_bufferUpdate'](_0xd98095['id'],_0xd98095,!0x0),_0x183ed6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2e9dcf){return(_0x2e9dcf=_0x2e9dcf['filter'](_0x40b428=>!_0x40b428['name']||'revision-start'!==_0x40b428['name']&&'revision-end'!==_0x40b428['name']))['forEach'](_0x1b5c88=>{'string'!=typeof _0x1b5c88&&(_0x1b5c88['children']=this['_removeRevisionMarkers'](_0x1b5c88['children']),_0x1b5c88['attributes']=_0x1b5c88['attributes']['filter'](_0x4c947d=>!_0x4c947d[0x0]['startsWith']('data-revision-')));}),_0x2e9dcf;}}function V(_0x5bdf85,_0x18746a){const _0x48eacd=_0x18746a['editing']['view']['document'];if('string'==typeof _0x5bdf85)return new _0x441a0d(_0x48eacd,_0x5bdf85);{const _0x5303c1=_0x5bdf85['children']['map'](_0x2491d7=>V(_0x2491d7,_0x18746a));return new(C[_0x5bdf85['type']]||_0x4e6782)(_0x48eacd,_0x5bdf85['name'],_0x5bdf85['attributes'],_0x5303c1);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x226ca0){this['editor']=_0x226ca0,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'](_0xe696da){this['source']=_0xe696da;const _0x3e234b=new Map(),_0x4363c7=new Map(),_0x31b1a0=this['editor']['model']['document']['roots']['map'](_0x2e993b=>_0x2e993b['rootName']);for(const _0x33db7b of _0x31b1a0){const _0x39873a=this['editor']['model']['document']['getRoot'](_0x33db7b),_0xb1c162=F(_0x39873a);_0x3e234b['set'](_0x33db7b,_0xb1c162),_0x4363c7['set'](_0x33db7b,Object['fromEntries'](_0x39873a['getAttributes']()));}const _0x2019f4=Array['from'](this['editor']['model']['markers'])['map'](_0x1fd7e8=>[_0x1fd7e8['name'],_0x1fd7e8['getRange']()]),_0x4b6024=this['source']['version'];this['_saveMetaData'](_0x4b6024,_0x3e234b,_0x2019f4,_0x4363c7),this['_startingRevisionId']=this['_revisionId'];const _0x1a0863=new Map(),_0x5ec495=new Map();for(const _0x26b023 of _0x31b1a0){const _0x2f02fa=B(_0x26b023);_0x1a0863['set'](_0x26b023,_0x2f02fa),_0x5ec495['set'](_0x26b023,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a0863,[],_0x5ec495);}['getData'](_0x1253ca,_0x54a7c4){if(this['_lastFrom']===_0x1253ca&&this['_lastTo']<=_0x54a7c4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x54a7c4,!0x0);else{if(!this['_savedMetaData']['has'](_0x1253ca)){const _0x10900f=this['_getPreviousFrom'](_0x1253ca);this['_calculateMetaData'](_0x10900f,_0x1253ca,!0x1);}this['_calculateMetaData'](_0x1253ca,_0x54a7c4,!0x0);}return this['_lastFrom']=_0x1253ca,this['_lastTo']=_0x54a7c4,this['_getState']();}['loadState'](_0x351c56){this['_reset'](),this['_lastFrom']=_0x351c56['fromVersion'],this['_lastTo']=_0x351c56['toVersion'];for(const _0x971b18 in _0x351c56['diffData']){const _0xae03e9=_0x351c56['diffData'][_0x971b18]['attachChange'],_0x2fa2f7=_0x3e8ae0(_0x351c56['diffData'][_0x971b18]['attributesBefore'])||{},_0x26a725=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x971b18]['deletions']);_0x26a725['rootName']=_0x971b18,_0x26a725['_isAttached']=!_0xae03e9||!_0xae03e9['isAttached'],_0x26a725['isAttached']=()=>_0x26a725['_isAttached'],this['_baseRoots']['set'](_0x971b18,_0x26a725),this['_baseRootsAttributes']['set'](_0x971b18,_0x2fa2f7),_0xae03e9&&this['_touchedRoots']['set'](_0x971b18,_0xae03e9);const _0x28670f=this['_makeIdsRoot'](_0x26a725);this['_baseIdsRoots']['set'](_0x971b18,_0x28670f);for(const [_0x442dd0,_0x107084]of _0x26a725['markers']){if(!_0x442dd0['startsWith']('revision:'))continue;const _0x5f449e=_0x442dd0['split'](':')[0x2];for(const _0x563471 of _0x107084['getWalker']({'singleCharacters':!0x0})){const _0x4b7573=this['_getVidAttributeName'](_0x563471),_0x320242='elementEnd'==_0x563471['type']?_0x563471['previousPosition']['path']['slice'](0x0,-0x1):_0x563471['previousPosition']['path'],_0x21892c=_0x28670f['getNodeByPath'](_0x320242)['getAttribute'](_0x4b7573);this['_touched']['set'](_0x21892c,{'userId':_0x5f449e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4342fb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x566c4a=>!this['_touched']['has'](_0x566c4a));let _0x3b675e=0x0;const _0x583367=new Map();for(const _0x256b25 in _0x351c56['diffData']){const _0x2feada=_0x351c56['diffData'][_0x256b25]['attachChange'],_0xb40d8=_0x3e8ae0(_0x351c56['diffData'][_0x256b25]['attributesAfter'])||{},_0x54821d=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x256b25]['insertions']);_0x54821d['rootName']=_0x256b25,_0x54821d['_isAttached']=!_0x2feada||_0x2feada['isAttached'],_0x54821d['isAttached']=()=>_0x54821d['_isAttached'],this['_diffRoots']['set'](_0x256b25,_0x54821d),this['_diffRootsAttributes']['set'](_0x256b25,_0xb40d8);const _0x5c112b=this['_makeIdsRoot'](_0x54821d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x256b25,_0x5c112b),_0x583367['set'](_0x256b25,_0x54821d['isAttached']()?_0xb40d8:{});for(const [_0x252ea3,_0x3d27f8]of _0x54821d['markers']){if(!_0x252ea3['startsWith']('revision:'))continue;const _0xed658e=_0x252ea3['split'](':')[0x2];for(const _0x3596cc of _0x3d27f8['getWalker']({'singleCharacters':!0x0})){const _0x39a206=this['_getVidAttributeName'](_0x3596cc),_0x30efb7=this['_revisionId']++,_0x3ca442='elementEnd'==_0x3596cc['type']?_0x3596cc['previousPosition']['path']['slice'](0x0,-0x1):_0x3596cc['previousPosition']['path'];_0x5c112b['getNodeByPath'](_0x3ca442)['_setAttribute'](_0x39a206,_0x30efb7),this['_touched']['set'](_0x30efb7,{'userId':_0xed658e});}}for(const _0x59ff63 of this['editor']['model']['createRangeIn'](_0x54821d)['getWalker']({'singleCharacters':!0x0})){const _0x110ca3=this['_getVidAttributeName'](_0x59ff63),_0x4f9241='elementEnd'==_0x59ff63['type']?_0x59ff63['previousPosition']['path']['slice'](0x0,-0x1):_0x59ff63['previousPosition']['path'],_0x13a9a9=_0x5c112b['getNodeByPath'](_0x4f9241);_0x13a9a9['getAttribute'](_0x110ca3)>0x0||_0x13a9a9['_setAttribute'](_0x110ca3,_0x4342fb[_0x3b675e++]);}for(const [_0x4c9c7f,_0xdc3c3]of _0x54821d['markers'])_0x4c9c7f['startsWith']('revision:')||this['_markers']['set'](_0x4c9c7f,_0xdc3c3);}const _0x1cc8d2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1cc8d2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1cc8d2,0x1));const _0x54d75d=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54d75d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54d75d,0x1));const _0x3499e4=Array['from'](this['_diffRoots'])['map'](([_0x1fa675,_0x138084])=>[_0x1fa675,F(_0x138084)]);this['_saveMetaData'](this['_lastTo'],_0x3499e4,this['_markers'],_0x583367);}['_makeModelFromViewString'](_0x2ea85c){const _0xbb2f5a=JSON['parse'](_0x2ea85c),_0x4d2c5d=this['editor']['editing']['view']['document'],_0x10451d=new _0x5b1c52(_0x4d2c5d,_0xbb2f5a['map'](_0x5f5771=>V(_0x5f5771,this['editor'])));return this['editor']['data']['toModel'](_0x10451d);}['_saveMetaData'](_0x5f2495,_0x5d1a04,_0x2c19c8,_0x5d4f7f){const _0x201362=new Map(_0x5d1a04),_0x2cb78b=new Map(_0x3e8ae0(_0x5d4f7f)),_0xbed334=new Map();for(const [_0x4b4239,_0x2768d0]of _0x2c19c8)_0xbed334['set'](_0x4b4239,{'start':_0x2768d0['start']['clone'](),'end':_0x2768d0['end']['clone'](),'rootName':_0x2768d0['root']['rootName']});this['_savedMetaData']['set'](_0x5f2495,{'roots':_0x201362,'markers':_0xbed334,'rootsAttributes':_0x2cb78b});}['_removeMetaData'](_0x25a293){this['_savedMetaData']['delete'](_0x25a293);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x34acb0,_0x57f77d=null){let _0x555e6e=null;_0x34acb0['is']('documentFragment')||(_0x555e6e=new ft(_0x34acb0['name'],{'vid_start':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));const _0x86250e=[];for(const _0x5e1bea of _0x34acb0['getChildren']())if(_0x5e1bea['is']('element')){_0x86250e['push'](this['_makeIdsRoot'](_0x5e1bea,_0x57f77d));const _0x211a43=_0x86250e[_0x86250e['length']-0x1];null!==_0x57f77d&&(_0x57f77d=_0x211a43['is']('element','$text')?_0x211a43['getAttribute']('vid')+0x1:_0x211a43['getAttribute']('vid_end')+0x1);}else{for(let _0x41b208=0x0;_0x41b208<_0x5e1bea['offsetSize'];_0x41b208++)_0x86250e['push'](new ft('$text',{'vid':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));}if(_0x34acb0['is']('documentFragment')){const _0x20dab2=B(_0x34acb0['rootName']);return _0x20dab2['_insertChild'](0x0,_0x86250e),_0x20dab2;}return _0x555e6e['_setAttribute']('vid_end',null===_0x57f77d?this['_revisionId']++:_0x57f77d++),_0x555e6e['_insertChild'](0x0,_0x86250e),_0x555e6e;}['_calculateMetaData'](_0x2598fa,_0x470120,_0x299613){this['_reset']();const {roots:_0x55ac75,markers:_0x9e3d79,rootsAttributes:_0xd49404}=this['_savedMetaData']['get'](_0x2598fa);this['_baseRoots']=new Map(_0x55ac75),this['_baseRootsAttributes']=new Map(_0x3e8ae0(_0xd49404));for(const [_0x5befcb,_0x110ebd]of this['_baseRoots'])if('$graveyard'!==_0x5befcb&&(this['_diffRoots']['set'](_0x5befcb,F(_0x110ebd)),this['_diffRootsAttributes']=new Map(_0x3e8ae0(_0xd49404)),_0x299613)){const _0x2e2ffc=this['_revisionId'];this['_idsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd)),this['_baseIdsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd,_0x2e2ffc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x299613&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10275a,_0x49c2f3]of _0x9e3d79){const _0x565a98=this['_baseRoots']['get'](_0x49c2f3['rootName']),_0x437308=this['_diffRoots']['get'](_0x49c2f3['rootName']),_0x52fbf1=new vt(this['_fixPosition'](_0x49c2f3['start'],_0x565a98),this['_fixPosition'](_0x49c2f3['end'],_0x565a98)),_0x485564=this['_fixRange'](_0x52fbf1,_0x437308);_0x565a98['markers']['set'](_0x10275a,_0x52fbf1),this['_markers']['set'](_0x10275a,_0x485564);}this['_applyOperations'](_0x2598fa,_0x470120,_0x299613);}['_applyOperations'](_0x10f7b0,_0x2a6fde,_0x1f24b0){for(const _0x287055 of this['source']['getOperations'](_0x10f7b0,_0x2a6fde))this['_handleOperation'](_0x287055,_0x1f24b0);for(const _0xf10d23 of this['_diffRoots']['values']())_0xf10d23['markers']['clear']();for(const [_0x108b82,_0x5016ca]of this['_markers']){this['_diffRoots']['get'](_0x5016ca['root']['rootName'])['markers']['set'](_0x108b82,_0x5016ca['clone']());}const _0x2f9199=new Map(),_0x1a1356=new Map();for(const [_0x2260c0,_0x7ff75e]of this['_diffRoots'])_0x2f9199['set'](_0x2260c0,F(_0x7ff75e)),_0x1a1356['set'](_0x2260c0,this['_diffRootsAttributes']['get'](_0x2260c0));this['_saveMetaData'](_0x2a6fde,_0x2f9199,this['_markers'],_0x1a1356);}['_getPreviousFrom'](_0x751abf){const _0x2203fb=Array['from'](this['_savedMetaData']['keys']());_0x2203fb['sort']((_0x24a1ef,_0x170ee5)=>_0x24a1ef-_0x170ee5),_0x2203fb['reverse']();for(const _0x33e670 of _0x2203fb)if(_0x33e670<_0x751abf)return _0x33e670;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x183767,_0x3370d9){const _0x15ab7f=Array['from'](_0x3370d9['markers'])['map'](([_0x593fa9,_0x320042])=>[_0x593fa9,this['_fixRange'](_0x320042,_0x183767)]);_0x183767['markers']=new Map(_0x15ab7f);}['_transformMarkers'](_0x28eff2){for(const _0x48da71 of this['_markers']['values']()){const _0x52a39b=_0x48da71['getTransformedByOperation'](_0x28eff2),_0x1b5558=vt['_createFromRanges'](_0x52a39b);_0x48da71['start']=_0x1b5558['start'],_0x48da71['end']=_0x1b5558['end'];}}['_handleOperation'](_0x546fe5,_0xc867b1){if('addRoot'!=_0x546fe5['type']&&'detachRoot'!=_0x546fe5['type']){if('insert'==_0x546fe5['type']){const _0x58f526=_0x546fe5['position']['root']['rootName'];this['_diffRoots']['has'](_0x58f526)||(this['_diffRoots']['set'](_0x58f526,B(_0x58f526,!0x0)),this['_diffRootsAttributes']['set'](_0x58f526,{}),_0xc867b1&&this['_idsRoots']['set'](_0x58f526,B(_0x58f526,!0x0)));}else{if('addRootAttribute'==_0x546fe5['type']||'removeRootAttribute'==_0x546fe5['type']||'changeRootAttribute'==_0x546fe5['type'])return void this['_handleRootAttributeOperation'](_0x546fe5);'marker'==_0x546fe5['type']&&this['_handleMarkerOperation'](_0x546fe5);}if('marker'!==_0x546fe5['type']){const _0xe80f0f=this['_cloneOperation'](_0x546fe5,this['_diffRoots']);_0xe80f0f['_execute'](),this['_transformMarkers'](_0xe80f0f);}if(_0xc867b1)switch(_0x546fe5['type']){case'insert':this['_handleInsertOperation'](_0x546fe5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x546fe5);break;case'merge':this['_handleMergeOperation'](_0x546fe5);break;case'split':this['_handleSplitOperation'](_0x546fe5);}}else this['_handleRootOperation'](_0x546fe5,_0xc867b1);}['_cloneOperation'](_0x223108,_0x1b790a){const _0x5098f3=_0x223108['clone']();return _0x5098f3['_authorId']=_0x223108['_authorId'],this['_fixOperation'](_0x5098f3,_0x1b790a),_0x5098f3;}['_getBaseVids'](_0x32f6e5){return _0x32f6e5['map'](_0x26efa1=>{const _0x362462=this['_getVidAttributeName'](_0x26efa1);return Number(_0x26efa1['item']['getAttribute'](_0x362462));});}['_generateTape'](_0x4682ba,_0x570301){if(_0x4682ba['is']('element','$text'))_0x570301['push']({'item':_0x4682ba,'type':'text'});else{_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementStart'});for(const _0x3f0c68 of _0x4682ba['getChildren']())this['_generateTape'](_0x3f0c68,_0x570301);_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementEnd'});}return _0x570301;}['_getState'](){const _0x1ccd71=new Map(this['_touched']),_0x199e94=new Map(_0x1ccd71),_0x2454dc=new Map(),_0x111d89={'insertions':{},'deletions':{}},_0x3541fd={'insertions':{},'deletions':{}},_0x3b1060=new Map(),_0xcbfb76=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcbfb76['delete']('$graveyard');for(const _0x742201 of _0xcbfb76){const _0x3e69d8=this['_diffRoots']['get'](_0x742201)||B(_0x742201,!0x1),_0x2e307a=this['_baseRoots']['get'](_0x742201)||B(_0x742201,!0x1);_0x3e69d8['isAttached']()||_0x2e307a['isAttached']()?(_0x111d89['insertions'][_0x742201]=F(_0x3e69d8),_0x111d89['deletions'][_0x742201]=F(_0x2e307a),this['_copyMarkers'](_0x111d89['deletions'][_0x742201],_0x2e307a),this['_copyMarkers'](_0x111d89['insertions'][_0x742201],_0x3e69d8),_0x3541fd['insertions'][_0x742201]=this['_generateTape'](this['_idsRoots']['get'](_0x742201),[]),_0x3541fd['deletions'][_0x742201]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x742201)||B(_0x742201,!0x1),[])):_0xcbfb76['delete'](_0x742201);}for(const _0x18650a of _0xcbfb76){const _0x4fd25d=_0x3541fd['insertions'][_0x18650a];for(const _0xb9b478 of _0x4fd25d){const _0x4230f5=this['_getVidAttributeName'](_0xb9b478),_0x1ace95=_0xb9b478['item']['getAttribute'](_0x4230f5);_0x199e94['delete'](_0x1ace95),_0x1ace95>=this['_startingRevisionId']&&_0x2454dc['set'](_0x1ace95,_0x1ccd71['get'](_0x1ace95));}}for(const _0x1dd481 of _0xcbfb76){const _0x6d2acf=_0x3541fd['insertions'][_0x1dd481],_0x20de40=this['_getBaseVids'](_0x3541fd['deletions'][_0x1dd481]);let _0x2017d9=0x0;for(const _0x9ebbb0 of _0x6d2acf){const _0x565f6a=this['_getVidAttributeName'](_0x9ebbb0),_0x227248=_0x9ebbb0['item']['getAttribute'](_0x565f6a);if(!_0x2454dc['has'](_0x227248)&&!_0x3b1060['has'](_0x227248)){if(_0x199e94['has'](_0x227248))_0x2017d9++;else{if(_0x227248!=_0x20de40[_0x2017d9]){const _0x2e2018=_0x1ccd71['get'](_0x227248)||_0x1ccd71['get'](_0x20de40[_0x2017d9]);for(;_0x227248!=_0x20de40[_0x2017d9];)_0x199e94['has'](_0x20de40[_0x2017d9])||(_0x3b1060['set'](_0x20de40[_0x2017d9],_0x2e2018),_0x1ccd71['set'](_0x20de40[_0x2017d9],_0x2e2018)),_0x2017d9++;}_0x2017d9++;}}}}for(const _0x31e445 of _0xcbfb76){const _0x10e9f3=_0x3541fd['insertions'][_0x31e445];for(const _0x33cf1a of _0x10e9f3){const _0x26a7cd=this['_getVidAttributeName'](_0x33cf1a),_0x305e3c=_0x33cf1a['item']['getAttribute'](_0x26a7cd);if(_0x3b1060['has'](_0x305e3c)){const _0x4a4d86=_0x3b1060['get'](_0x305e3c);_0x199e94['has'](_0x305e3c)||_0x199e94['set'](_0x305e3c,{..._0x4a4d86}),_0x2454dc['set'](_0x305e3c,{..._0x4a4d86});}}}for(const _0x26e7ea of _0x199e94['keys']())_0x26e7ea>=this['_startingRevisionId']&&_0x199e94['delete'](_0x26e7ea);const _0x6a3108=new Map();for(const _0x4ad542 of _0xcbfb76){let _0x339ea8=_0x3541fd['insertions'][_0x4ad542];for(const _0x45aa6f of _0x339ea8)if(_0x45aa6f['item']['is']('element','tableCell')){const _0x3ef3ba=this['_getVidAttributeName'](_0x45aa6f),_0x2a8073=_0x45aa6f['item']['getAttribute'](_0x3ef3ba);if(_0x2454dc['has'](_0x2a8073)){const _0x5d1d5f=_0x45aa6f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5be903=_0x6a3108['get'](_0x5d1d5f)||new Set();_0x5be903['add'](_0x2454dc['get'](_0x2a8073)['userId']),_0x6a3108['set'](_0x5d1d5f,_0x5be903);}}_0x339ea8=_0x3541fd['deletions'][_0x4ad542];for(const _0x1f2fa1 of _0x339ea8)if(_0x1f2fa1['item']['is']('element','tableCell')){const _0x16e951=this['_getVidAttributeName'](_0x1f2fa1),_0x8e2527=_0x1f2fa1['item']['getAttribute'](_0x16e951);if(_0x199e94['has'](_0x8e2527)){const _0x303b6d=_0x1f2fa1['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d654d=_0x6a3108['get'](_0x303b6d)||new Set();_0x3d654d['add'](_0x199e94['get'](_0x8e2527)['userId']),_0x6a3108['set'](_0x303b6d,_0x3d654d);}}for(const _0x8c77b9 of _0x6a3108['keys']())(_0x2454dc['has'](_0x8c77b9)||_0x199e94['has'](_0x8c77b9))&&_0x6a3108['delete'](_0x8c77b9);}for(const _0x4abd11 of _0xcbfb76){const _0x5c45e9=_0x3541fd['insertions'][_0x4abd11];let _0x594ae0=null,_0x4f022d=null;for(const _0x5035c0 of _0x5c45e9){const _0x14f815=this['_getVidAttributeName'](_0x5035c0),_0x49323c=_0x5035c0['item']['getAttribute'](_0x14f815),_0x30ffc0=_0x6a3108['get'](_0x49323c);_0x30ffc0&&'elementStart'==_0x5035c0['type']&&(_0x594ae0=Array['from'](_0x30ffc0)[0x0],_0x4f022d=_0x5035c0['item']['getAttribute']('vid_end')),_0x594ae0&&(_0x199e94['set'](_0x49323c,{'userId':_0x594ae0}),_0x2454dc['set'](_0x49323c,{'userId':_0x594ae0})),_0x49323c==_0x4f022d&&(_0x594ae0=null,_0x4f022d=null);}}const _0x312ed1={},_0x416963=new Set();for(const _0x3e3268 of _0xcbfb76){const _0x21a259=_0x111d89['deletions'][_0x3e3268],_0x1a6d33=_0x111d89['insertions'][_0x3e3268];for(const {userId:_0x52df82}of this['_touchedMarkers']['values']())null!==_0x52df82&&_0x416963['add'](_0x52df82);for(const {userId:_0x115ea1}of this['_touchedRoots']['values']())null!==_0x115ea1&&_0x416963['add'](_0x115ea1);this['_markChanges'](_0x1a6d33,_0x3541fd['insertions'][_0x3e3268],_0x2454dc,'insertion',_0x416963),this['_markChanges'](_0x21a259,_0x3541fd['deletions'][_0x3e3268],_0x199e94,'deletion',_0x416963),_0x312ed1[_0x3e3268]={'insertions':this['_prepareViewToSave'](_0x1a6d33),'deletions':this['_prepareViewToSave'](_0x21a259),'attachChange':this['_touchedRoots']['get'](_0x3e3268)||null,'attributesBefore':_0x3e8ae0(this['_baseRootsAttributes']['get'](_0x3e3268))||{},'attributesAfter':_0x3e8ae0(this['_diffRootsAttributes']['get'](_0x3e3268))};}return{'diffData':_0x312ed1,'authorsIds':Array['from'](_0x416963)};}['_processRootBeforeSave'](_0x105b4f){for(const [,_0x2c4d9d]of _0x105b4f['markers']){const _0x4ee34e=_0x2c4d9d['start']['getAncestors']()['filter'](_0x5b5635=>'tableCell'==_0x5b5635['name']);for(const _0x326671 of _0x4ee34e)0x1==_0x326671['childCount']&&_0x326671['getChild'](0x0)['is']('element','paragraph')&&_0x326671['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24ae23){this['_processRootBeforeSave'](_0x24ae23);const _0x428d22=this['editor']['data']['toView'](_0x24ae23,{}),_0x45e75b=Array['from'](_0x428d22['getChildren']())['map'](_0x45089b=>this['_getViewJson'](_0x45089b));return JSON['stringify'](_0x45e75b);}['_getViewJson'](_0x4c5f19){if(_0x4c5f19['is']('$text'))return _0x4c5f19['data'];{const _0x124454=_0x4c5f19;return{'type':Object['keys'](C)['find'](_0x4980c8=>_0x4c5f19 instanceof C[_0x4980c8]),'name':_0x124454['name'],'attributes':Array['from'](_0x124454['getAttributes']()),'children':Array['from'](_0x124454['getChildren']())['map'](_0x3b9eec=>this['_getViewJson'](_0x3b9eec))};}}['_markChanges'](_0x566a38,_0x5090e2,_0x545829,_0x5386fb,_0x44cdbb){let _0x365ab4=null,_0x4dfbd3=null,_0x129d92=0x0;const _0x598e58=this['editor']['model'];for(let _0xbaefab=0x0;_0xbaefab<_0x5090e2['length'];_0xbaefab++){const _0x2e40a9=this['_getVidAttributeName'](_0x5090e2[_0xbaefab]),_0x4e15f5=_0x5090e2[_0xbaefab]['item']['getAttribute'](_0x2e40a9),_0x4197f8=_0x545829['get'](_0x4e15f5),_0x137227=_0xbaefab==_0x5090e2['length']-0x1;(!_0x365ab4&&_0x4197f8&&(_0x365ab4=_0x4197f8,_0x4dfbd3=_0x5090e2[_0xbaefab]),_0x365ab4&&(!_0x4197f8||_0x4197f8['userId']!=_0x365ab4['userId']))&&(_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),J(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58)),_0x365ab4=_0x4197f8||null,_0x4dfbd3=_0x4197f8?_0x5090e2[_0xbaefab]:null),_0x365ab4&&_0x137227&&_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),q(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58));}function _0x834818(_0x1809a3,_0x24f95f,_0x26ccaf){const _0x6bdc56=_0x365ab4['userId'],_0x447e4a='revision:'+_0x5386fb+':'+_0x6bdc56+':'+_0x129d92++,_0x122b1d=_0x598e58['createRange'](_0x24f95f,_0x26ccaf);_0x566a38['markers']['set'](_0x447e4a,_0x122b1d),null!==_0x6bdc56&&_0x44cdbb['add'](_0x6bdc56);}}['_getVidAttributeName'](_0x4fd3c2){switch(_0x4fd3c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa35736,_0x1f919f){_0xa35736['baseVersion']=null;for(const _0x100c20 in _0xa35736){const _0x40f74c=_0xa35736[_0x100c20];if(_0x40f74c instanceof gt){const _0x3ccc28=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixPosition'](_0x40f74c,_0x3ccc28);}if(_0x40f74c instanceof vt){const _0x522716=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixRange'](_0x40f74c,_0x522716);}'root'===_0x100c20&&(_0xa35736['root']=_0x1f919f['get'](_0xa35736['root']['rootName']));}}['_fixRange'](_0x3f484a,_0x19781b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3f484a['start'],_0x19781b),this['_fixPosition'](_0x3f484a['end'],_0x19781b));}['_fixPosition'](_0x3262eb,_0x4a8c3d){return this['editor']['model']['createPositionFromPath'](_0x4a8c3d,_0x3262eb['path'],_0x3262eb['stickiness']);}['_handleInsertOperation'](_0x3dc00e){const _0x423f49=this['_idsRoots']['get'](_0x3dc00e['position']['root']['rootName']),_0x3ef126=this['_fixPosition'](_0x3dc00e['position'],_0x423f49),_0x3266f2=null===_0x3dc00e['_authorId']?null:_0x3dc00e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b3ca7=_0x3ef126['parent'],_0x1d3f40=this['_revisionId'],_0x23083f=[];for(const _0x1fa0e0 of _0x3dc00e['nodes'])if(_0x1fa0e0['is']('element'))_0x23083f['push'](this['_makeIdsRoot'](_0x1fa0e0));else{for(let _0x5e1a12=0x0;_0x5e1a12<_0x1fa0e0['offsetSize'];_0x5e1a12++)_0x23083f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x40d003=this['_revisionId'];for(let _0x38b232=_0x1d3f40;_0x38b232<_0x40d003;_0x38b232++)this['_touched']['set'](_0x38b232,{'userId':_0x3266f2});_0x5b3ca7['_insertChild'](_0x3ef126['offset'],_0x23083f);}['_handleMoveOperation'](_0x4d43e1){(_0x4d43e1=this['_cloneOperation'](_0x4d43e1,this['_idsRoots']))['_execute']();const _0x2ab2e4=null===_0x4d43e1['_authorId']?null:_0x4d43e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4372cd=_0x4d43e1['getMovedRangeStart'](),_0x38e979=_0x4372cd['parent'],_0x235e6d=_0x4372cd['offset'];!function _0x55c175(_0x394813,_0x3c0ded,_0x1138e1,_0x362303){for(let _0x3b4c8d=_0x1138e1;_0x3b4c8d<_0x362303;_0x3b4c8d++){const _0xabc663=_0x3c0ded['getChild'](_0x3b4c8d);_0xabc663['is']('element','$text')?_0x394813['set'](_0xabc663['getAttribute']('vid'),{'userId':_0x2ab2e4}):(_0x394813['set'](_0xabc663['getAttribute']('vid_start'),{'userId':_0x2ab2e4}),_0x55c175(_0x394813,_0xabc663,0x0,_0xabc663['childCount']),_0x394813['set'](_0xabc663['getAttribute']('vid_end'),{'userId':_0x2ab2e4}));}}(this['_touched'],_0x38e979,_0x235e6d,_0x235e6d+_0x4d43e1['howMany']);}['_handleMergeOperation'](_0x5e5816){const _0x71f584=null===(_0x5e5816=this['_cloneOperation'](_0x5e5816,this['_idsRoots']))['_authorId']?null:_0x5e5816['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33ec93=_0x5e5816['targetPosition']['parent'],_0x5a1dbf=_0x5e5816['sourcePosition']['parent'],_0x322da3=_0x33ec93['getAttribute']('vid_end'),_0x57a509=_0x5a1dbf['getAttribute']('vid_start');_0x33ec93['_setAttribute']('vid_end',_0x5a1dbf['getAttribute']('vid_end')),_0x5a1dbf['_setAttribute']('vid_end',_0x322da3),this['_touched']['set'](_0x57a509,{'userId':_0x71f584}),this['_touched']['set'](_0x322da3,{'userId':_0x71f584}),_0x5e5816['_execute']();}['_handleSplitOperation'](_0x1b774f){const _0x499b5a=null===(_0x1b774f=this['_cloneOperation'](_0x1b774f,this['_idsRoots']))['_authorId']?null:_0x1b774f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x778dac=_0x1b774f['graveyardPosition'],_0x41cfc9=_0x1b774f['splitPosition']['parent'];_0x1b774f['_execute']();const _0x3683e0=_0x41cfc9['getAttribute']('vid_end'),_0x565353=_0x1b774f['insertionPosition']['nodeAfter'];if(_0x778dac){const _0x6c454b=_0x565353['getAttribute']('vid_end'),_0x17ef1c=_0x41cfc9['getAttribute']('vid_end');_0x41cfc9['_setAttribute']('vid_end',_0x6c454b),_0x565353['_setAttribute']('vid_end',_0x17ef1c),this['_touched']['set'](_0x41cfc9['getAttribute']('vid_end'),{'userId':_0x499b5a}),this['_touched']['set'](_0x565353['getAttribute']('vid_start'),{'userId':_0x499b5a});}else{const _0x32805d=this['_revisionId']++,_0x11dcf7=this['_revisionId']++;_0x41cfc9['_setAttribute']('vid_end',_0x32805d),_0x565353['_setAttribute']('vid_start',_0x11dcf7),_0x565353['_setAttribute']('vid_end',_0x3683e0),this['_touched']['set'](_0x32805d,{'userId':_0x499b5a}),this['_touched']['set'](_0x11dcf7,{'userId':_0x499b5a});}}['_handleMarkerOperation'](_0xdc3029){if(!_0xdc3029['affectsData'])return;const _0x511737=(_0xdc3029=this['_cloneOperation'](_0xdc3029,this['_diffRoots']))['oldRange']?_0xdc3029['oldRange']['root']:null,_0x306e60=_0xdc3029['newRange']?_0xdc3029['newRange']['root']:null;_0x511737&&this['_markers']['delete'](_0xdc3029['name']),_0x306e60&&this['_markers']['set'](_0xdc3029['name'],_0xdc3029['newRange']['clone']());const _0x3f51d5=null===_0xdc3029['_authorId']?null:_0xdc3029['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x149b0b=_0xdc3029['name'];if(!this['_touchedMarkers']['has'](_0x149b0b))return void this['_touchedMarkers']['set'](_0x149b0b,{'range':_0xdc3029['oldRange'],'userId':_0x3f51d5});const _0x23526e=this['_touchedMarkers']['get'](_0x149b0b),_0xf5ac37=_0x23526e['range'],_0x1f67a2=_0xdc3029['newRange'];null==_0xf5ac37&&null==_0x1f67a2||_0xf5ac37&&_0x1f67a2&&_0xf5ac37['isEqual'](_0x1f67a2)?this['_touchedMarkers']['delete'](_0xdc3029['name']):_0x23526e['userId']=_0x3f51d5;}['_handleRootOperation'](_0xc99a9a,_0x3a5c5d){this['_diffRoots']['has'](_0xc99a9a['rootName'])?this['_diffRoots']['get'](_0xc99a9a['rootName'])['_isAttached']=_0xc99a9a['isAdd']:(this['_diffRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xc99a9a['rootName'],{}),_0x3a5c5d&&this['_idsRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)));const _0x4c2353=null===_0xc99a9a['_authorId']?null:_0xc99a9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ca22a=this['_touchedRoots']['get'](_0xc99a9a['rootName']);_0x4ca22a&&_0x4ca22a['userId']===_0x4c2353?this['_touchedRoots']['delete'](_0xc99a9a['rootName']):this['_touchedRoots']['set'](_0xc99a9a['rootName'],{'userId':_0x4c2353,'isAttached':_0xc99a9a['isAdd']});}['_handleRootAttributeOperation'](_0x223d97){const _0x45cd2d=this['_diffRootsAttributes']['get'](_0x223d97['root']['rootName']);null===_0x223d97['newValue']?delete _0x45cd2d[_0x223d97['key']]:_0x45cd2d[_0x223d97['key']]=_0x223d97['newValue'];}}function F(_0x1d8bc7){const _0x5afdfb=B(_0x1d8bc7['rootName'],_0x1d8bc7['isAttached']());for(const _0x193313 of _0x1d8bc7['getChildren']()){const _0x1357de=_0x193313['_clone'](!0x0);_0x5afdfb['_appendChild'](_0x1357de);}return _0x5afdfb;}function B(_0xf06948,_0x273877=!0x0){const _0x22528c=new wt();return _0x22528c['rootName']=_0xf06948,_0x22528c['_isAttached']=_0x273877,_0x22528c['isAttached']=()=>_0x22528c['_isAttached'],_0x22528c;}function J(_0x30dc22,_0xc827cc,_0x1d9ec5){const _0x5e63a3='elementEnd'==_0x30dc22['type']?_0x1d9ec5['createPositionAt'](_0x30dc22['item'],'end'):_0x1d9ec5['createPositionBefore'](_0x30dc22['item']);return _0x1d9ec5['createPositionFromPath'](_0xc827cc,_0x5e63a3['path'],_0x5e63a3['stickiness']);}function q(_0x3cbbc6,_0x347f68,_0x4d40e0){const _0x45c51e='elementStart'==_0x3cbbc6['type']?_0x4d40e0['createPositionAt'](_0x3cbbc6['item'],0x0):_0x4d40e0['createPositionAfter'](_0x3cbbc6['item']);return _0x4d40e0['createPositionFromPath'](_0x347f68,_0x45c51e['path'],_0x45c51e['stickiness']);}class hs extends _0x297fcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x344213,_0x4ba9b4){super(_0x344213),this['focusTracker']=new _0x3704e2(),this['keystrokes']=new _0x179f65(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4ba9b4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4790e8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39b447=_0x5ddc5f=>_0x5ddc5f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39b447),this['keystrokes']['set']('arrowleft',_0x39b447),this['keystrokes']['set']('arrowup',_0x39b447),this['keystrokes']['set']('arrowdown',_0x39b447);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x33638a){this['revisionNameInputView']['fieldView']['element']['value']=_0x33638a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x13400d){const _0x1b2a26=new at(this['locale'],_0x2be08e),_0x7ed3c0=_0x1b2a26['fieldView'];_0x7ed3c0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4dc98e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x13400d&&(_0x4dc98e+='\x20('+R(this['locale'],'optional')+')'),(_0x1b2a26['label']=_0x4dc98e,_0x7ed3c0['on']('input',()=>{this['revisionNameInputValue']=_0x7ed3c0['element']['value']['trim']();}),_0x1b2a26);}}class u extends _0x434fd7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1e72e1=this['editor'],_0x42ca12=_0x1e72e1['plugins']['get']('RevisionTracker');_0x1e72e1['ui']['componentFactory']['add']('revisionHistory',_0x2f7398=>{const _0x5c6083=_0x327471(_0x2f7398),_0x16236a=_0x5c6083['panelView']['children'],_0x1969db=new _0x56690b(_0x2f7398),_0x431b18=new _0x902890(_0x2f7398),_0x1ac5fc=new _0x2456b5(_0x2f7398),_0x9edbc3=new _0x902890(_0x2f7398),_0x74df67=new _0x2456b5(_0x2f7398);return _0x5c6083['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x12d8fe,_0x2c23a4,_0x4f0cc0)=>_0x12d8fe&&_0x2c23a4&&!_0x4f0cc0),_0x5c6083['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2f7398,'Revision\x20history'),'tooltip':!0x0}),_0x1ac5fc['set']({'label':R(_0x2f7398,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ac5fc['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x47e6ae,_0x145861,_0x4098ae)=>_0x47e6ae&&_0x145861&&!_0x4098ae),_0x1ac5fc['on']('execute',()=>this['_showDialog']()),_0x74df67['set']({'label':R(_0x2f7398,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x74df67['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x1e72e1,'isReadOnly',(_0xbf02a4,_0x339d4f)=>_0xbf02a4&&!_0x339d4f),_0x74df67['on']('execute',()=>{_0x1e72e1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c6083['isOpen']=!0x1,_0x1e72e1['editing']['view']['focus']();}),_0x431b18['children']['add'](_0x1ac5fc),_0x9edbc3['children']['add'](_0x74df67),_0x1969db['role']='menu',_0x1969db['items']['addMany']([_0x431b18,_0x9edbc3]),_0x16236a['add'](_0x1969db),_0x5c6083;}),_0x1e72e1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3aaa7d=this['editor'],_0x2a4353=_0x3aaa7d['locale'],_0x366b6d=new _0x510d82(_0x2a4353),_0x176411=new _0x15361d(_0x2a4353);_0x366b6d['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2a4353,'Revision\x20history')});const _0x21bba2=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x8935bc=new _0x4c5f6c(_0x2a4353);_0x8935bc['set']({'label':R(_0x2a4353,'Save\x20current\x20revision')}),_0x8935bc['delegate']('execute')['to'](_0x366b6d),_0x8935bc['on']('execute',()=>{this['_showDialog']();}),_0x21bba2['children']['add'](_0x8935bc),_0x176411['items']['add'](_0x21bba2);const _0x16b168=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x5c6388=new _0x4c5f6c(_0x2a4353);return _0x5c6388['set']({'label':R(_0x2a4353,'Open\x20revision\x20history')}),_0x5c6388['delegate']('execute')['to'](_0x366b6d),_0x5c6388['on']('execute',()=>{_0x3aaa7d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16b168['children']['add'](_0x5c6388),_0x176411['items']['add'](_0x16b168),_0x366b6d['panelView']['children']['add'](_0x176411),_0x366b6d;}['_showDialog'](){const _0x138d82=this['editor'],_0x4a1163=_0x138d82['locale'],_0x1b89a6=_0x138d82['plugins']['get']('Dialog'),_0x161661=_0x138d82['plugins']['get']('RevisionTracker');function _0x5c5eea(_0x2bae41){_0x138d82['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2bae41['revisionName']?_0x2bae41['revisionNameInputView']['errorText']=R(_0x4a1163,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x138d82['plugins']['get'](l)['saveRevision']({'name':_0x2bae41['revisionName']}),_0x1b89a6['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5c5eea(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b89a6['show']({'id':'revisionSave','title':R(_0x4a1163,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x138d82['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b89a6['hide']()},{'label':R(_0x138d82['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3446e5){_0x3446e5['bind']('isEnabled')['to'](_0x161661,'isReady',_0x161661,'isEnabled',_0x138d82,'isReadOnly',(_0x12ed97,_0xd8d37b,_0x402489)=>_0x12ed97&&_0xd8d37b&&!_0x402489);},'onExecute':()=>_0x5c5eea(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5c6902=this['editor'],_0x473284=_0x5c6902['locale'];this['_saveRevisionFormView']=new hs(_0x473284,_0x5c6902['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x297fcf{['changeId'];['_model'];constructor(_0x522be7,_0x57f923){super(_0x522be7),this['_model']=_0x57f923,this['changeId']=_0x57f923['id'];const _0x201f30=this['bindTemplate'],_0x19df09=R(_0x522be7,_0x57f923['data']['isSuggestion']?'Suggested\x20by':'add'==_0x57f923['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x57f923['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x201f30['to']('type',_0x271306=>'ck-revision-change__'+_0x271306)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x19df09}]},{'text':'\x20'+_0x57f923['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x88e50a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf559b8){super(),this['id']=_0xf559b8['id']||_0x4c02ac(),this['author']=_0xf559b8['author'],this['type']=_0xf559b8['type'],this['data']=_0xf559b8['data']||{},this['rootName']=_0xf559b8['rootName'],this['set']('createdAt',_0xf559b8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3f8699,_0x1c5a47){this['newRevisionId']=_0x3f8699,this['oldRevisionId']=_0x1c5a47,this['changes']=new _0x2d1bb4();}['_setChanges'](_0x41ce32){for(const _0x25de89 of _0x41ce32)this['changes']['add'](_0x25de89);}}const Z={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class d extends _0x434fd7{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1124cd,_0x323519,j];}constructor(_0x3aae68){super(_0x3aae68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x130d18,_0x2e5005,_0x511f03)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b23db=>{for(const _0x38874b of this['editor']['editing']['view']['document']['roots'])_0x511f03?_0x4b23db['removeClass']('ck-editor__editable__overlay',_0x38874b):_0x4b23db['addClass']('ck-editor__editable__overlay',_0x38874b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x279192=>null!==_0x279192),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2e0d45,_0x10a81a,_0x208514)=>_0x2e0d45&&_0x208514?_0x10a81a['changes']['getIndex'](_0x208514):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x148179,_0x44dd11)=>_0x148179?_0x44dd11['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x323519);}['init'](){const _0x12b9d4=this['editor'],_0x102288=new bt(_0x12b9d4,{'direction':'backward'}),_0xa29139=new bt(_0x12b9d4,{'direction':'forward'});(_0x12b9d4['commands']['add']('showPreviousChange',_0x102288),_0x12b9d4['commands']['add']('showNextChange',_0xa29139),_0x12b9d4['commands']['add']('restoreRevision',new yt(_0x12b9d4)),this['on']('change:numberOfChanges',()=>{_0x102288['refresh'](),_0xa29139['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12b9d4['enableReadOnlyMode']('revision-viewer'),_0x12b9d4['plugins']['has']('WidgetToolbarRepository'))&&_0x12b9d4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x524dc8){await this['loadRevisionData'](_0x524dc8);const _0x39d90e={};for(const _0x49310e in _0x524dc8['diffData']){if(_0x524dc8['diffData'][_0x49310e]['attachChange']&&!_0x524dc8['diffData'][_0x49310e]['attachChange']['isAttached'])continue;const _0x58cfa4=this['_removeRevisionMarkers'](JSON['parse'](_0x524dc8['diffData'][_0x49310e]['insertions'])),_0x35665c=this['editor']['editing']['view']['document'],_0x6960fc=new _0x5b1c52(_0x35665c,_0x58cfa4['map'](_0x47de0f=>this['_getViewObj'](_0x47de0f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x39d90e[_0x49310e]=this['editor']['data']['processor']['toData'](_0x6960fc),this['editor']['data']['processor']['useFillerType']('default');}return _0x39d90e;}async['getRevisionRootsAttributes'](_0x3eaf6a){await this['loadRevisionData'](_0x3eaf6a);const _0x59d74b={};for(const _0x16b2c0 in _0x3eaf6a['diffData'])_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']&&!_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']['isAttached']||(_0x59d74b[_0x16b2c0]=_0x3eaf6a['diffData'][_0x16b2c0]['attributesAfter']||{});return _0x59d74b;}['_removeRevisionMarkers'](_0xfe127f){return(_0xfe127f=_0xfe127f['filter'](_0x28e83e=>!_0x28e83e['name']||'revision-start'!==_0x28e83e['name']&&'revision-end'!==_0x28e83e['name']))['forEach'](_0x139878=>{'string'!=typeof _0x139878&&(_0x139878['children']=this['_removeRevisionMarkers'](_0x139878['children']),_0x139878['attributes']=_0x139878['attributes']['filter'](_0x3c4af6=>!_0x3c4af6[0x0]['startsWith']('data-revision-')));}),_0xfe127f;}async['compare'](_0x26d334,_0x4a688f,_0x251c29=!0x1){if(!this['isEnabled'])return;const _0x56bf34=this['diff'],_0x471d59=this['repository'],_0x4b4c23='string'==typeof _0x26d334?_0x471d59['getRevision'](_0x26d334):_0x26d334,_0x21f2af='string'==typeof _0x4a688f?_0x471d59['getRevision'](_0x4a688f):_0x4a688f,_0x3ba124=_0x4b4c23['id'],_0x24228=_0x21f2af?_0x21f2af['id']:null;if(!_0x251c29&&this['diff']&&this['diff']['newRevisionId']===_0x3ba124&&this['diff']['oldRevisionId']===_0x24228)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3ba124,_0x24228);const _0x27a236=this['_getRevisionsRange'](_0x4b4c23,_0x21f2af,!0x0)['map'](_0x2ed5e5=>this['loadRevisionData'](_0x2ed5e5));return _0x27a236['push'](new Promise(_0x38702a=>{setTimeout(_0x38702a,0x14);})),Promise['all'](_0x27a236)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7f340a=this['_getDiff'](_0x3ba124,_0x24228);for(const _0x448ac6 of _0x7f340a['changes'])this['_changeIdToChange']['set'](_0x448ac6['id'],_0x448ac6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17fcc7=>{for(const _0x243690 of this['editor']['model']['document']['getRootNames']())_0x17fcc7['detachRoot'](_0x243690);for(const _0x3720cb of Object['keys'](_0x7f340a['model'])){const _0x56befb=_0x17fcc7['addRoot'](_0x3720cb);for(const _0x273a18 of Object['keys'](_0x7f340a['attributes'][_0x3720cb]))_0x17fcc7['setAttribute'](_0x273a18,_0x7f340a['attributes'][_0x3720cb][_0x273a18],_0x56befb);_0x17fcc7['insert'](_0x7f340a['model'][_0x3720cb],_0x56befb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7f340a['changes'])),this['isReady']=!0x0;})['catch'](_0x823edf=>{console['error'](_0x823edf),this['_cleanUp'](),_0x56bf34&&(this['diff']=_0x56bf34),this['isReady']=!0x0;});}['addRevisionData'](_0x45e79b,_0x3aea95){const _0x459fa8=this['repository']['createRevision'](_0x45e79b);return _0x459fa8['on']('_update',(_0xdc1d51,_0x593219,_0x59feb0)=>_0x3aea95(_0x593219,_0x59feb0,_0x459fa8)),this['repository']['addRevision'](_0x459fa8),_0x459fa8;}['loadRevisionData'](_0x1f30f1){if(!_0x1f30f1||_0x1f30f1['diffData'])return Promise['resolve']();{const _0x900d31=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x900d31,'revisionId':_0x1f30f1['id']})['then'](_0x5272f4=>{_0x1f30f1['_update']({'diffData':_0x5272f4['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x328493=>{for(const _0x477f1f of this['editor']['model']['document']['getRootNames']())_0x328493['detachRoot'](_0x477f1f);});}['_sortAndFilterDiffChanges'](_0x20db4e){const _0x32dbed=[],_0x288750=new Map();for(const _0x3269fd of this['editor']['model']['document']['getRootNames']()){const _0x5cf8bb=this['editor']['editing']['view']['getDomRoot'](_0x3269fd);if(!_0x5cf8bb)continue;const _0x186068=_0x5cf8bb['getClientRects']()['item'](0x0);_0x186068&&(_0x32dbed['push'](_0x3269fd),_0x288750['set'](_0x3269fd,_0x186068));}return _0x32dbed['sort']((_0x15fa43,_0x51896c)=>{const _0x4185f2=_0x288750['get'](_0x15fa43),_0x521cdc=_0x288750['get'](_0x51896c);return _0x4185f2['y']-_0x521cdc['y']||_0x4185f2['x']-_0x521cdc['x'];}),(_0x20db4e=_0x20db4e['filter'](_0xb07c5a=>_0x32dbed['includes'](_0xb07c5a['rootName'])))['sort']((_0x10b887,_0x4c882c)=>_0x32dbed['indexOf'](_0x10b887['rootName'])-_0x32dbed['indexOf'](_0x4c882c['rootName'])),_0x20db4e;}['_makeTape'](_0x26a9af){const _0x1363d5=Array['from'](_0x26a9af['markers'])['filter'](([_0x551589,_0x2b5130])=>_0x551589['startsWith']('revision:')&&!_0x2b5130['isCollapsed']),_0x5cf068=Array['from'](this['editor']['model']['createRangeIn'](_0x26a9af)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1363d5['length'])for(const _0x5c4054 of _0x5cf068){const [_0x3663d7,_0x17efc6]=_0x1363d5[0x0],[,_0x5f258e,_0x1b5921]=_0x3663d7['split'](':');if(_0x17efc6['end']['isEqual'](_0x5c4054['nextPosition'])&&_0x1363d5['shift'](),(_0x5c4054['previousPosition']['isEqual'](_0x17efc6['start'])||_0x5c4054['previousPosition']['isAfter'](_0x17efc6['start']))&&('insertion'==_0x5f258e?_0x5c4054['isAdded']={'userId':_0x1b5921}:'deletion'==_0x5f258e&&(_0x5c4054['isRemoved']={'userId':_0x1b5921})),0x0==_0x1363d5['length'])break;}return _0x5cf068;}['_refreshStartEndIndex'](_0x691a48){const _0x5cd4ed=new Map();for(let _0x52016f=0x0;_0x52016f<_0x691a48['length'];_0x52016f++)'text'===_0x691a48[_0x52016f]['type']?(_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f,_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f):('elementStart'===_0x691a48[_0x52016f]['type']?_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f:'elementEnd'===_0x691a48[_0x52016f]['type']&&(_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f),_0x5cd4ed['set'](_0x691a48[_0x52016f]['id'],_0x52016f));for(const _0x92315f of _0x5cd4ed['values']())'elementStart'===_0x691a48[_0x92315f]['type']?_0x691a48[_0x92315f]['item']['endIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']):'elementEnd'===_0x691a48[_0x92315f]['type']&&(_0x691a48[_0x92315f]['item']['startIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']));}['_processTape'](_0x557a55){for(let _0x40cd5f=0x0;_0x40cd5f<_0x557a55['length'];_0x40cd5f++){if('elementStart'===_0x557a55[_0x40cd5f]['type'])_0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f;else{if('elementEnd'===_0x557a55[_0x40cd5f]['type']){_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f;const _0x399c63=_0x557a55[_0x40cd5f]['item']['startIndex'];_0x557a55[_0x399c63]['pairId']=_0x557a55[_0x40cd5f]['id'],_0x557a55[_0x40cd5f]['pairId']=_0x557a55[_0x399c63]['id'];}else _0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['pairId']=null;}_0x557a55[_0x40cd5f]['markersStart']||(_0x557a55[_0x40cd5f]['markersStart']=[],_0x557a55[_0x40cd5f]['markersEnd']=[]);}}['_markInsertions'](_0x5f47a3,_0x5f4cba){const _0x17ec36=_0x5f47a3['filter'](_0x4bed9d=>!_0x4bed9d['isAdded']);for(let _0xf8b2df=0x0;_0xf8b2df<_0x5f4cba['length'];_0xf8b2df++)_0x5f4cba[_0xf8b2df]['isAdded']&&(_0x17ec36[_0xf8b2df]['isAdded']=_0x5f4cba[_0xf8b2df]['isAdded']);}['_makeModelFromViewString'](_0x35e045){const _0x3ef42b=JSON['parse'](_0x35e045),_0xbf2cdb=this['editor']['editing']['view']['document'],_0x1bb908=new _0x5b1c52(_0xbf2cdb,_0x3ef42b['map'](_0x2feb12=>this['_getViewObj'](_0x2feb12)));return this['editor']['data']['toModel'](_0x1bb908);}['_getViewObj'](_0x2455db){const _0x2da929=this['editor']['editing']['view']['document'];if('string'==typeof _0x2455db)return new _0x441a0d(_0x2da929,_0x2455db);{const _0x545a0d=_0x2455db['children']['map'](_0x586a58=>this['_getViewObj'](_0x586a58));return new(Z[_0x2455db['type']]||_0x4e6782)(_0x2da929,_0x2455db['name'],_0x2455db['attributes'],_0x545a0d);}}['_getDiff'](_0x2f4186,_0x61049=null){const _0x21d698=this['repository']['getRevision'](_0x2f4186),_0x4cb685=_0x61049?this['repository']['getRevision'](_0x61049):null,_0x2812b4=this['_getRevisionsRange'](_0x21d698,_0x4cb685),_0x284464=_0x2812b4[_0x2812b4['length']-0x1],_0x3560b1=new Map(),_0x24869d={'model':{},'attributes':{},'changes':[]},_0x8f03e=new Set(),_0x502e62=new Map();for(let _0x5edc02=_0x2812b4['length']-0x1;_0x5edc02>=0x0;_0x5edc02--){const _0x2175c3=_0x2812b4[_0x5edc02];for(const _0xda6a49 of Object['keys'](_0x2175c3['diffData']))if(_0x2175c3['diffData'][_0xda6a49]['attachChange']){const _0x54e449=_0x2175c3['diffData'][_0xda6a49]['attachChange'];_0x54e449['isAttached']?(_0x8f03e['add'](_0xda6a49),_0x502e62['has'](_0xda6a49)&&_0x502e62['get'](_0xda6a49)['userId']==_0x54e449['userId']?_0x502e62['delete'](_0xda6a49):_0x502e62['set'](_0xda6a49,_0x54e449)):_0x502e62['has'](_0xda6a49)?(_0x8f03e['delete'](_0xda6a49),_0x502e62['delete'](_0xda6a49)):(_0x8f03e['add'](_0xda6a49),_0x502e62['set'](_0xda6a49,_0x54e449));}else _0x8f03e['add'](_0xda6a49);}for(const _0x29dca0 of _0x8f03e){const _0x294093=_0x502e62['has'](_0x29dca0)&&!_0x502e62['get'](_0x29dca0)['isAttached'];let _0x3921b1=_0x294093?_0x2812b4['length']-0x1:0x0;const _0x128d67=_0x294093?-0x1:0x1;for(;_0x2812b4[_0x3921b1];){const _0x241629=_0x2812b4[_0x3921b1];if(_0x241629['diffData'][_0x29dca0]){const _0x5ded34=_0x294093?_0x241629['diffData'][_0x29dca0]['attributesBefore']:_0x241629['diffData'][_0x29dca0]['attributesAfter'];_0x24869d['attributes'][_0x29dca0]=_0x5ded34?_0x3e8ae0(_0x5ded34):{};break;}_0x3921b1+=_0x128d67;}}for(const _0x36e7f of _0x2812b4){_0x36e7f['model']={};for(const _0x1797e0 of _0x36e7f['authors'])_0x3560b1['set'](_0x1797e0['id'],_0x1797e0);for(const _0x2cb052 of _0x8f03e){const _0x27a69d=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['insertions']:'[]',_0x3c76b6=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['deletions']:'[]';_0x36e7f['model'][_0x2cb052]={'insertions':this['_makeModelFromViewString'](_0x27a69d),'deletions':this['_makeModelFromViewString'](_0x3c76b6)};}}for(const _0x5eea78 of _0x8f03e){let _0x37a6bd=null,_0x4b7e54=0x0;const _0x48de4c=new Map(Array['from'](_0x21d698['model'][_0x5eea78]['insertions']['markers'])['filter'](([_0xbfa303])=>!_0xbfa303['startsWith']('revision:')));let _0x3126f3=0x0;for(const _0x230452 of _0x2812b4){const _0xc20dde=this['_makeTape'](_0x230452['model'][_0x5eea78]['insertions']);_0x230452==_0x21d698?(_0x37a6bd=_0xc20dde,_0x4b7e54=_0x37a6bd['length'],_0x37a6bd['forEach'](_0x26f732=>{_0x26f732['id']=_0x3126f3++;}),this['_processTape'](_0x37a6bd)):this['_markInsertions'](_0x37a6bd,_0xc20dde);const _0x7dc280=_0x37a6bd['filter'](_0x784170=>!_0x784170['isAdded'])['map'](_0xb4c0c=>_0xb4c0c['id']);let _0x56560e=0x0;const _0x281e31=this['_makeTape'](_0x230452['model'][_0x5eea78]['deletions']);_0x281e31['forEach'](_0x57276b=>{_0x57276b['isRemoved']?_0x57276b['id']=_0x4b7e54++:_0x57276b['id']=_0x7dc280[_0x56560e++];}),this['_processTape'](_0x281e31),this['_setDistance'](_0x37a6bd,'isAdded'),this['_setDistance'](_0x281e31,'isRemoved'),_0x230452==_0x21d698&&this['_markMarkers'](_0x37a6bd,_0x48de4c),_0x37a6bd=this['_joinTapes'](_0x37a6bd,_0x281e31),this['_refreshStartEndIndex'](_0x37a6bd),this['_setDistance'](_0x37a6bd,'isRemoved');}_0x37a6bd=_0x37a6bd['filter'](_0x5ad525=>!(_0x5ad525['isAdded']&&_0x5ad525['isRemoved']));const _0x1d4106=new Map(_0x284464['model'][_0x5eea78]['deletions']['markers']),_0x491687=new Set(_0x48de4c['keys']());for(const _0x13728f of _0x1d4106['keys']())_0x491687['delete'](_0x13728f);this['_markSuggestions'](_0x37a6bd,_0x491687),this['_fixObsoleteTags'](_0x37a6bd),_0x37a6bd=this['_removeMissingPairs'](_0x37a6bd),_0x37a6bd=this['_markMismatchedRemovedTags'](_0x37a6bd),_0x37a6bd=this['_removeUnsupportedChanges'](_0x37a6bd);const {root:_0xc6f4c0,changes:_0x22d7aa}=this['_makeModelFromTape'](_0x37a6bd,_0x3560b1,_0x5eea78);_0x24869d['model'][_0x5eea78]=_0xc6f4c0;const _0x297285=_0x502e62['get'](_0x5eea78);if(_0x297285){const _0xb37235=_0x3560b1['get'](_0x297285['userId']),_0x3d5f48=new r({'author':_0xb37235,'type':_0x297285['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5eea78});_0x22d7aa['unshift'](_0x3d5f48),_0x24869d['attributes'][_0x5eea78]['revisionHistoryAttachChange']=_0x3d5f48['id'];}_0x24869d['changes']=_0x24869d['changes']['concat'](_0x22d7aa);}return _0x24869d;}['_markMarkers'](_0x265a63,_0x14f7dd){for(let _0x310dd0=0x0;_0x310dd0<_0x265a63['length'];_0x310dd0++)for(const [_0x4a1a8c,_0x56e8be]of _0x14f7dd)_0x56e8be['start']['isEqual'](_0x265a63[_0x310dd0]['previousPosition'])&&_0x265a63[_0x310dd0]['markersStart']['push'](_0x4a1a8c),_0x56e8be['end']['isEqual'](_0x265a63[_0x310dd0]['nextPosition'])&&_0x265a63[_0x310dd0]['markersEnd']['push'](_0x4a1a8c);}['_joinTapes'](_0x244ae8,_0x25cf80){let _0x3dfc5a=[],_0x4a699c=0x0,_0x19b689=0x0;for(;_0x4a699c<_0x244ae8['length']||_0x19b689<_0x25cf80['length'];){const _0x15b9d1=_0x244ae8[_0x4a699c]||{},_0x40b030=_0x25cf80[_0x19b689]||{};if(_0x15b9d1['id']==_0x40b030['id'])_0x4a699c++,_0x19b689++,_0x3dfc5a['push'](_0x15b9d1);else{if(_0x40b030['isRemoved']&&_0x15b9d1['isAdded']){const {commonTape:_0x3c4adf,iEnd:_0x2262e8,jEnd:_0x5c5796}=this['_threeWayMerge'](_0x244ae8,_0x4a699c,_0x25cf80,_0x19b689);_0x3dfc5a=_0x3dfc5a['concat'](_0x3c4adf),_0x4a699c=_0x2262e8,_0x19b689=_0x5c5796;}else _0x40b030['isRemoved']?(_0x19b689++,_0x3dfc5a['push'](_0x40b030)):(_0x4a699c++,_0x3dfc5a['push'](_0x15b9d1));}}return _0x3dfc5a;}['_markSuggestions'](_0x1f4e70,_0x16e88a){const _0x16b93d=[];for(let _0x114869=0x0;_0x114869<_0x1f4e70['length'];_0x114869++){for(let _0x365e6b=0x0;_0x365e6b<_0x1f4e70[_0x114869]['markersStart']['length'];_0x365e6b++){const _0x1d6cfe=_0x1f4e70[_0x114869]['markersStart'][_0x365e6b];if(!_0x16e88a['has'](_0x1d6cfe))continue;const {group:_0x283d1e,type:_0x1eeb9f,authorId:_0x41177a}=_0x36e27d(_0x1d6cfe);'revision-suggestion'!=_0x283d1e||'insertion'!=_0x1eeb9f&&'deletion'!=_0x1eeb9f||(_0x16b93d['unshift']({'type':_0x1eeb9f,'name':_0x1d6cfe,'userId':_0x41177a}),_0x1f4e70[_0x114869]['markersStart']['splice'](_0x365e6b,0x1),_0x365e6b--);}_0x36da83(_0x1f4e70[_0x114869]);for(let _0x1a0c0d=0x0;_0x1a0c0d<_0x1f4e70[_0x114869]['markersEnd']['length'];_0x1a0c0d++){const _0x537031=_0x1f4e70[_0x114869]['markersEnd'][_0x1a0c0d];if(!_0x16e88a['has'](_0x537031))continue;const {group:_0x139228,type:_0x8511e1}=_0x36e27d(_0x537031);if('revision-suggestion'!=_0x139228||'insertion'!=_0x8511e1&&'deletion'!=_0x8511e1)continue;_0x1f4e70[_0x114869]['markersEnd']['splice'](_0x1a0c0d,0x1),_0x1a0c0d--;const _0x3daebc=_0x16b93d['findIndex'](_0x4674fe=>_0x4674fe['name']==_0x537031);_0x3daebc>-0x1&&_0x16b93d['splice'](_0x3daebc,0x1);}}function _0x36e27d(_0x5495e2){const _0x3a7634=_0x5495e2['split'](':');return{'group':_0x3a7634[0x0],'type':_0x3a7634[0x1],'subType':_0x3a7634['length']>=0x5?_0x3a7634[0x2]:null,'id':_0x3a7634['length']<0x5?_0x3a7634[0x2]:_0x3a7634[0x3],'authorId':_0x3a7634['length']<0x5?_0x3a7634[0x3]:_0x3a7634[0x4],'markerCount':0x6==_0x3a7634['length']?_0x3a7634[0x5]:null};}function _0x36da83(_0x34f70d){for(let _0x2c4bec=0x0;_0x2c4bec<_0x16b93d['length'];_0x2c4bec++){if(_0x34f70d['isAdded']&&'insertion'==_0x16b93d[_0x2c4bec]['type'])return _0x34f70d['isAddSuggestion']=_0x16b93d[_0x2c4bec],void delete _0x34f70d['isAdded'];if(!_0x34f70d['isAdded']&&!_0x34f70d['isRemoved']&&'deletion'==_0x16b93d[_0x2c4bec]['type'])return void(_0x34f70d['isRemoveSuggestion']=_0x16b93d[_0x2c4bec]);}}}['_setDistance'](_0x504ba5,_0x48986b){let _0x3428e4=0x0,_0x3c7fd7=!0x1;const _0xa5727a=new Map();for(const _0x43594e of _0x504ba5)_0x43594e[_0x48986b]?_0x3c7fd7&&(_0x3428e4++,_0x3c7fd7=!0x1):(_0x3428e4++,_0x3c7fd7=!0x0),_0xa5727a['set'](_0x43594e['id'],_0x3428e4);for(let _0x391030=0x0;_0x391030<_0x504ba5['length'];_0x391030++){if('isRemoved'==_0x48986b&&_0x504ba5[_0x391030]['isAdded']||'isAdded'==_0x48986b&&_0x504ba5[_0x391030]['isRemoved'])continue;if('text'==_0x504ba5[_0x391030]['type']){_0x504ba5[_0x391030]['distance']=0x0;continue;}const _0xab83bf=_0xa5727a['get'](_0x504ba5[_0x391030]['pairId']),_0x376944=_0xa5727a['get'](_0x504ba5[_0x391030]['id']);_0x504ba5[_0x391030]['distance']=_0xab83bf-_0x376944;}}['_getRevisionsRange'](_0x549ffb,_0x1f4199,_0x1f328d=!0x1){const _0x4e31d0=[];let _0x238a59=this['repository']['getIndex'](_0x549ffb),_0x1ae725=this['repository']['getIndex'](_0x1f4199);for(-0x1==_0x1ae725&&(_0x1ae725=this['repository']['_revisions']['length'],_0x1f328d=!0x1);_0x238a59<_0x1ae725;)_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x238a59++;return _0x1f328d&&_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x4e31d0;}['_threeWayMerge'](_0x3e6615,_0x436b9f,_0x21eeff,_0x2154e1){const _0x2a5f8b=this['editor']['model']['schema'];let _0x1cc706=_0x436b9f;for(;_0x3e6615[_0x1cc706]&&_0x3e6615[_0x1cc706]['isAdded'];)_0x1cc706++;let _0x1123a1=_0x2154e1;for(;_0x21eeff[_0x1123a1]&&_0x21eeff[_0x1123a1]['isRemoved'];)_0x1123a1++;_0x1fc3f9(_0x3e6615,_0x436b9f,_0x1cc706),_0x1fc3f9(_0x21eeff,_0x2154e1,_0x1123a1);const _0x18d0b1=_0x21eeff['slice'](_0x2154e1,_0x1123a1)['concat'](_0x3e6615['slice'](_0x436b9f,_0x1cc706));return _0x18d0b1['sort']((_0x24dd96,_0x135447)=>_0x24dd96['side']!=_0x135447['side']?_0x24dd96['side']-_0x135447['side']:_0x24dd96['level']!=_0x135447['level']?_0x24dd96['level']-_0x135447['level']:_0x24dd96['distance']!=_0x135447['distance']?_0x135447['distance']-_0x24dd96['distance']:!!_0x24dd96['isAdded']!=!!_0x135447['isAdded']?-0x1==_0x24dd96['side']||0x0==_0x24dd96['side']?_0x24dd96['isAdded']?-0x1:0x1:_0x24dd96['isAdded']?0x1:-0x1:_0x24dd96['index']-_0x135447['index']),{'commonTape':_0x18d0b1,'iEnd':_0x1cc706,'jEnd':_0x1123a1};function _0x1fc3f9(_0x33f958,_0x13e954,_0x48633b){let _0x5e1728=-0x1,_0x5d7e1c=Number['POSITIVE_INFINITY'],_0x513e1a=!0x0;for(let _0x1b89fe=_0x13e954;_0x1b89fe<_0x48633b;_0x1b89fe++)if(_0x2a5f8b['isInline'](_0x33f958[_0x1b89fe]['item'])||(_0x513e1a=!0x1),_0x33f958[_0x1b89fe]['item']['startIndex']<_0x13e954&&(_0x5e1728=_0x1b89fe),_0x33f958[_0x1b89fe]['item']['endIndex']>=_0x48633b){_0x5d7e1c=_0x1b89fe;break;}_0x513e1a&&(_0x5e1728=_0x48633b-0x1);for(let _0x4148c3=_0x13e954;_0x4148c3<_0x48633b;_0x4148c3++)_0x33f958[_0x4148c3]['side']=_0x4148c3<=_0x5e1728?-0x1:_0x4148c3<_0x5d7e1c?0x0:0x1,_0x33f958[_0x4148c3]['index']=_0x4148c3;let _0x276177=0x0;for(let _0x25d75d=_0x13e954;_0x25d75d<=_0x5e1728;_0x25d75d++)0x0==_0x33f958[_0x25d75d]['distance']?_0x33f958[_0x25d75d]['level']=_0x276177:(_0x276177++,_0x33f958[_0x25d75d]['level']=_0x276177,_0x276177++);for(let _0x3aeef9=_0x13e954;_0x3aeef9<_0x48633b;_0x3aeef9++)0x0==_0x33f958[_0x3aeef9]['side']&&(_0x33f958[_0x3aeef9]['level']=_0x276177);_0x276177=0x0;for(let _0x2ee99e=_0x48633b-0x1;_0x2ee99e>=_0x5d7e1c;_0x2ee99e--)0x0==_0x33f958[_0x2ee99e]['distance']?_0x33f958[_0x2ee99e]['level']=_0x276177:(_0x276177--,_0x33f958[_0x2ee99e]['level']=_0x276177,_0x276177--);}}['_fixObsoleteTags'](_0x3a5690){const _0x5b29ad=new Map(),_0x28e258=this['editor']['model']['schema'];for(let _0x1ae32e=0x1;_0x1ae32e<_0x3a5690['length'];_0x1ae32e++){let _0x1dc22a,_0x4447f8,_0x46d4fc;const _0x1e8de0=_0x3a5690[_0x1ae32e],_0x5dfac9=_0x3a5690[_0x1ae32e-0x1];if('text'==_0x1e8de0['type'])continue;if(_0x1e8de0['type']!=_0x5dfac9['type'])continue;if(!_0x28e258['isBlock'](_0x5dfac9['item'])||_0x28e258['isLimit'](_0x5dfac9['item']))continue;if(!_0x28e258['isBlock'](_0x1e8de0['item'])||_0x28e258['isLimit'](_0x1e8de0['item']))continue;if((_0x3a5690[_0x1ae32e]['isAdded']||_0x3a5690[_0x1ae32e]['isAddSuggestion'])&&_0x3a5690[_0x1ae32e-0x1]['isRemoved'])_0x1dc22a=_0x3a5690[_0x1ae32e],_0x4447f8=_0x3a5690[_0x1ae32e-0x1],_0x46d4fc=_0x1ae32e-0x1;else{if(!_0x3a5690[_0x1ae32e]['isRemoved']||!_0x3a5690[_0x1ae32e-0x1]['isAdded']&&!_0x3a5690[_0x1ae32e-0x1]['isAddSuggestion'])continue;_0x1dc22a=_0x3a5690[_0x1ae32e-0x1],_0x4447f8=_0x3a5690[_0x1ae32e],_0x46d4fc=_0x1ae32e;}const _0x5ed1f2=_0x1dc22a['level']==_0x4447f8['level'],_0xde8dd8=Math['abs'](_0x1dc22a['level'])<Math['abs'](_0x4447f8['level'])&&0x0==_0x4447f8['distance'];(_0x5ed1f2||_0xde8dd8)&&(_0x5b29ad['set'](_0x4447f8['id'],_0x1dc22a['id']),_0x3a5690['splice'](_0x46d4fc,0x1),_0x1ae32e--,_0x1dc22a['isAdded']=!0x1);}for(let _0x5c0047=0x0;_0x5c0047<_0x3a5690['length'];_0x5c0047++)_0x5b29ad['has'](_0x3a5690[_0x5c0047]['pairId'])&&(_0x3a5690[_0x5c0047]['pairId']=_0x5b29ad['get'](_0x3a5690[_0x5c0047]['pairId']));}['_removeMissingPairs'](_0x35fc74){const _0x3220e4=new Set(_0x35fc74['map'](_0x7c882a=>_0x7c882a['id']));for(let _0x37c6fe=0x0;_0x37c6fe<_0x35fc74['length'];_0x37c6fe++)_0x3220e4['has'](_0x35fc74[_0x37c6fe]['pairId'])||0x0==_0x35fc74[_0x37c6fe]['distance']||(_0x35fc74[_0x37c6fe]['isIncorrect']=!0x0);return _0x35fc74['filter'](_0x5ddc1d=>!_0x5ddc1d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x440af2){const _0x266060=new Set();for(let _0x5ad2a1=0x0;_0x5ad2a1<_0x440af2['length'];_0x5ad2a1++){if(_0x266060['has'](_0x440af2[_0x5ad2a1]['id'])&&_0x440af2[_0x5ad2a1]['isRemoved']&&(_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0),_0x440af2[_0x5ad2a1]['isIncorrect'])continue;if(0x0==_0x440af2[_0x5ad2a1]['distance'])continue;if('elementStart'!=_0x440af2[_0x5ad2a1]['type'])continue;if(null==_0x440af2[_0x5ad2a1]['pairId'])continue;let _0x5e2d47=_0x5ad2a1+0x1,_0xe7317f=0x0;for(;_0x440af2[_0x5e2d47]['id']!=_0x440af2[_0x5ad2a1]['pairId'];)'elementStart'==_0x440af2[_0x5e2d47]['type']?_0xe7317f++:'elementEnd'==_0x440af2[_0x5e2d47]['type']&&_0xe7317f--,_0x5e2d47++;if(0x0!=_0xe7317f){if(_0x440af2[_0x5ad2a1]['isRemoved'])_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0;else{for(;_0x5e2d47!=_0x5ad2a1;)_0x440af2[_0x5e2d47]['isRemoved']&&0x0!=_0x440af2[_0x5e2d47]['distance']&&(_0x440af2[_0x5e2d47]['isIncorrect']=!0x0,_0x266060['add'](_0x440af2[_0x5e2d47]['pairId'])),_0x5e2d47--;}}}return _0x440af2['filter'](_0x39ed91=>!_0x39ed91['isIncorrect']);}['_removeUnsupportedChanges'](_0x4dbd45){const _0x31c6da=this['editor']['model']['schema'];for(let _0x50ee93=0x0;_0x50ee93<_0x4dbd45['length'];_0x50ee93++){if(!(_0x4dbd45[_0x50ee93]['isAdded']||_0x4dbd45[_0x50ee93]['isAddSuggestion']||_0x4dbd45[_0x50ee93]['isRemoved']||_0x4dbd45[_0x50ee93]['isRemoveSuggestion']))continue;if(0x0==_0x4dbd45[_0x50ee93]['distance'])continue;const _0x2dc76f=_0x4dbd45[_0x50ee93]['item'];_0x31c6da['isBlock'](_0x2dc76f)||_0x31c6da['isLimit'](_0x2dc76f)||(_0x4dbd45[_0x50ee93]['isAdded']&&delete _0x4dbd45[_0x50ee93]['isAdded'],_0x4dbd45[_0x50ee93]['isAddSuggestion']&&delete _0x4dbd45[_0x50ee93]['isAddSuggestion'],_0x4dbd45[_0x50ee93]['isRemoveSuggestion']&&delete _0x4dbd45[_0x50ee93]['isRemoveSuggestion'],_0x4dbd45[_0x50ee93]['isRemoved']&&(_0x4dbd45[_0x50ee93]['isIncorrect']=!0x0));}return _0x4dbd45['filter'](_0x5bbd46=>!_0x5bbd46['isIncorrect']);}['_makeModelFromTape'](_0x7271a,_0x4e964e,_0x7e77e1){const _0x3fb4e5=new wt(),_0xc87731=[],_0x2e5501=new Map(),_0x990852=this['editor']['model'],_0x2235ca=_0x990852['schema'],_0xee9b57=[_0x3fb4e5],_0x4f6d29={},_0x25c3f5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x495e04=null;const _0x144b68=[0x0];for(let _0x4933e2=0x0;_0x4933e2<_0x7271a['length'];_0x4933e2++)if('elementStart'===_0x7271a[_0x4933e2]['type']){_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);const _0x2c4dc9=new ft(_0x7271a[_0x4933e2]['item']['name'],_0x7271a[_0x4933e2]['item']['getAttributes']());_0xee9b57[0x0]['_appendChild'](_0x2c4dc9),_0x144b68['push'](0x0),_0xee9b57['unshift'](_0x2c4dc9),_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);}else'elementEnd'===_0x7271a[_0x4933e2]['type']?(_0xee9b57['shift'](),_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x144b68['pop'](),_0x144b68[_0x144b68['length']-0x1]++,_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68)):(_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x495e04?_0x495e04['_data']+=_0x7271a[_0x4933e2]['item']['data']:_0x495e04=new _t(_0x7271a[_0x4933e2]['item']['data'],_0x7271a[_0x4933e2]['item']['getAttributes']()),_0x7271a[_0x4933e2+0x1]&&'text'===_0x7271a[_0x4933e2+0x1]['type']&&_0x500bd3(_0x495e04,_0x7271a[_0x4933e2+0x1]['item'])||(_0xee9b57[0x0]['_appendChild'](_0x495e04),_0x495e04=null),_0x144b68[_0x144b68['length']-0x1]+=_0x7271a[_0x4933e2]['item']['offsetSize'],_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68));for(let _0x20ca1a=0x0;_0x20ca1a<_0x7271a['length'];_0x20ca1a++){const _0x478e07=_0x7271a[_0x20ca1a]['previousPosition'],_0x1979a8=_0x7271a[_0x20ca1a]['nextPosition'];for(const _0x2dda1c of _0x7271a[_0x20ca1a]['markersStart'])_0x2e5501['set'](_0x2dda1c,{'start':_0x478e07,'end':null});_0x3a30a5('isRemoveSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAddSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isRemoved',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAdded',_0x20ca1a,_0x478e07,_0x1979a8);for(const _0x3a57b3 of _0x7271a[_0x20ca1a]['markersEnd']){_0x2e5501['get'](_0x3a57b3)['end']=_0x1979a8;}}for(const [_0x547dea,_0x39d5e8]of _0x2e5501){const _0x491ef6=this['editor']['model']['createRange'](_0x39d5e8['start'],_0x39d5e8['end']);_0x3fb4e5['markers']['set'](_0x547dea,_0x491ef6);}return _0xc87731['sort']((_0x1f6a97,_0x4917a7)=>{const _0x4634a8=_0x3fb4e5['markers']['get']('revision:'+_0x1f6a97['id']),_0x4f539c=_0x3fb4e5['markers']['get']('revision:'+_0x4917a7['id']);return _0x4634a8['start']['isBefore'](_0x4f539c['start'])?-0x1:_0x4634a8['start']['isAfter'](_0x4f539c['start'])?0x1:_0x4634a8['end']['isBefore'](_0x4f539c['end'])?-0x1:_0x4634a8['end']['isAfter'](_0x4f539c['end'])?0x1:'add'===_0x1f6a97['type']?-0x1:0x1;}),{'root':_0x3fb4e5,'changes':_0xc87731};function _0x3a30a5(_0x184066,_0x586b33,_0x1ca8b1,_0x24e9c6){const _0x264b3c=!!_0x7271a[_0x586b33][_0x184066],_0x61efe8=_0x264b3c?_0x7271a[_0x586b33][_0x184066]['userId']:null,_0x18d909=_0x586b33===_0x7271a['length']-0x1,_0x1bdfe1=_0x25c3f5[_0x184066][0x0],_0x3508dd=_0x2235ca['isObject'](_0x7271a[_0x586b33]['item']);!_0x4f6d29[_0x184066]&&_0x264b3c?_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}:_0x4f6d29[_0x184066]&&!_0x264b3c?(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null):_0x4f6d29[_0x184066]&&_0x264b3c&&_0x4f6d29[_0x184066]['userId']!==_0x61efe8&&(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x1bdfe1&&_0x1bdfe1['userId']===_0x4f6d29[_0x184066]['userId']||_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}),_0x4f6d29[_0x184066]&&_0x3508dd&&('elementStart'!==_0x7271a[_0x586b33]['type']||_0x1bdfe1&&_0x1bdfe1['userId']===_0x61efe8||_0x25c3f5[_0x184066]['unshift']({'userId':_0x61efe8,'object':_0x7271a[_0x586b33]['item'],'change':_0x4f6d29[_0x184066]}),'elementEnd'===_0x7271a[_0x586b33]['type']&&_0x1bdfe1&&_0x1bdfe1['object']===_0x7271a[_0x586b33]['item']&&(_0x25c3f5[_0x184066]['shift'](),_0x4f6d29[_0x184066]=_0x1bdfe1['change'])),_0x4f6d29[_0x184066]&&_0x18d909&&(_0x4f6d29[_0x184066]['end']=_0x24e9c6,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null);}function _0x121ec6({start:_0x1782e4,end:_0x508b33,tapeItem:_0x2b7b3d,userId:_0x349936,type:_0x478a3c}){const _0x4599b8=_0x2b7b3d['item'],_0x1b9ce4=_0x990852['schema']['isBlock'](_0x4599b8)&&!_0x990852['schema']['isLimit'](_0x4599b8),_0x468e58=_0x1782e4['nodeAfter']==_0x508b33['parent']&&_0x508b33['isAtStart'];if(_0x1b9ce4&&_0x468e58)return;const _0x10d9e3=_0x990852['createRange'](_0x1782e4,_0x508b33),_0x531087=_0x4e964e['get'](_0x349936),_0x7b9734=new r({'author':_0x531087,'type':'isAdded'==_0x478a3c||'isAddSuggestion'==_0x478a3c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x478a3c||'isRemoveSuggestion'==_0x478a3c},'createdAt':new Date(),'rootName':_0x7e77e1});_0xc87731['push'](_0x7b9734),_0x3fb4e5['markers']['set']('revision:'+_0x7b9734['id'],_0x10d9e3);}function _0x500bd3(_0x1a3b16,_0x3a7998){const _0x515894=_0x1a3b16['getAttributes'](),_0x5bb901=_0x3a7998['getAttributes']();for(const _0x3745d8 of _0x515894){if(_0x3745d8[0x1]!==_0x3a7998['getAttribute'](_0x3745d8[0x0]))return!0x1;_0x5bb901['next']();}return _0x5bb901['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55fba4=>{const _0x1153dc=_0x55fba4['markerName']['split'](':')[0x1],_0x2966cc=this['_getChangeFromId'](_0x1153dc);if(!_0x2966cc)return null;const _0x4fe171='add'==_0x2966cc['type']?'insertion':'deletion',_0x1a4c74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4fe171];return _0x2966cc['data']['isSuggestion']&&_0x1a4c74['push']('ck-suggestion-marker-'+_0x4fe171+'-new'),this['activeChange']==_0x2966cc&&_0x1a4c74['push']('ck-suggestion-marker--active'),{'classes':_0x1a4c74,'attributes':{'data-change-id':_0x1153dc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x26ccd5=>{_0x26ccd5['on']('element:pre',(_0x54f148,_0x5b0ee2,_0x16475f)=>{const _0x3dd3d2=_0x5b0ee2['viewItem']['getChild'](0x0);if(!_0x3dd3d2||!_0x3dd3d2['is']('element','code'))return;if(!_0x16475f['consumable']['consume'](_0x3dd3d2,{'attributes':['vid_start','vid_end']}))return;const _0x1c4bd3=_0x5b0ee2['modelRange']['start']['nodeAfter'];_0x16475f['writer']['setAttribute']('vid_start',_0x3dd3d2['getAttribute']('vid_start'),_0x1c4bd3),_0x16475f['writer']['setAttribute']('vid_end',_0x3dd3d2['getAttribute']('vid_end'),_0x1c4bd3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21abcb=>{_0x21abcb['on']('element',(_0x48dd84,_0x3c56fe,_0x49d844)=>{if(!_0x49d844['consumable']['consume'](_0x3c56fe['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c56fe['modelRange']['isCollapsed'])return;const _0x3f0cb9=_0x3c56fe['modelRange']['start']['nodeAfter'];_0x3f0cb9['hasAttribute']('vid_start')||_0x3f0cb9['hasAttribute']('vid')||(_0x49d844['writer']['setAttribute']('vid_start',_0x3c56fe['viewItem']['getAttribute']('vid_start'),_0x3f0cb9),_0x49d844['writer']['setAttribute']('vid_end',_0x3c56fe['viewItem']['getAttribute']('vid_end'),_0x3f0cb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54871c=>_0x54871c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3d992f,[,_0x47c005])=>{['vid_start','vid_end','vid']['includes'](_0x47c005)&&(_0x3d992f['return']=!0x0,_0x3d992f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1e273c=>{_0x1e273c['on']('attribute:vid',(_0x37520a,_0x3e83ee,_0x423b27)=>{if('\x20'!=_0x3e83ee['item']['data']||_0x3e83ee['item']['parent']['maxOffset']>0x1)return;if(!_0x423b27['consumable']['consume'](_0x3e83ee['item'],_0x37520a['name']))return;const _0x55a5d1=_0x423b27['writer'],_0x141657=_0x423b27['mapper']['toViewRange'](_0x3e83ee['range']);_0x55a5d1['wrap'](_0x141657,_0x55a5d1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1213aa){const _0x5a3d4e=_0x1213aa['plugins']['get']('RevisionViewer');return(_0x50a034,_0x1b2e9c,_0x2c47d5)=>{const _0xda8b35=_0x1b2e9c['markerName']['split'](':')[0x1],_0x47c47d=_0x5a3d4e['_getChangeFromId'](_0xda8b35);if(!_0x47c47d)return null;const _0x3c2caf='add'==_0x47c47d['type']?'split':'merge';if(!_0x2c47d5['consumable']['test'](_0x1b2e9c['markerRange'],_0x50a034['name']))return;const _0x223e16=_0x1b2e9c['markerRange']['getWalker'](),_0x44521d=_0x1b2e9c['markerRange']['start'],_0x678722=_0x1213aa['model']['schema'];let _0xbaf8cc=null,_0x137d19=null,_0x5a2c43=!0x1,_0x5176d7=!0x1;for(const _0x285072 of _0x223e16){const _0x2852aa=_0x285072['item'];_0x5a2c43=_0x5a2c43||_0x678722['isContent'](_0x2852aa);const _0xfb8423=_0x2c47d5['mapper']['toViewElement'](_0x2852aa);if(_0xfb8423&&_0xfb8423['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x285072['type']&&(_0x678722['isBlock'](_0x2852aa)&&!_0x678722['isLimit'](_0x2852aa)&&(_0x2852aa['nextSibling']||_0x44521d['isAtEnd']?_0xbaf8cc&&_0xbaf8cc['parent']==_0x2852aa||(_0xbaf8cc=_0x2852aa,_0xd13e4b(_0x285072['previousPosition']),_0x5176d7=!0x0):_0x137d19=_0x137d19||_0x285072['previousPosition']));}function _0xd13e4b(_0x144af4){const _0xd970f6=_0x2c47d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c2caf}),_0x324ebf=_0x2c47d5['mapper']['toViewPosition'](_0x144af4);_0x47c47d['data']['isSuggestion']&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker-'+_0x3c2caf+'-new',_0xd970f6),_0x5a3d4e['activeChange']==_0x47c47d&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker--active',_0xd970f6),_0x2c47d5['writer']['insert'](_0x324ebf,_0xd970f6),_0x2c47d5['mapper']['bindElementToMarker'](_0xd970f6,_0x1b2e9c['markerName']);}_0x5a2c43||_0x5176d7||!_0x137d19||_0xd13e4b(_0x137d19);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x379f52,_0x83283f,_0x599553)=>{const _0xb4dabd=_0x599553['mapper']['markerNameToElements'](_0x83283f['markerName']);if(_0xb4dabd){for(const _0x360a0c of _0xb4dabd)(_0x360a0c['hasClass']('ck-suggestion-marker-split')||_0x360a0c['hasClass']('ck-suggestion-marker-merge'))&&(_0x599553['mapper']['unbindElementFromMarkerName'](_0x360a0c,_0x83283f['markerName']),_0x599553['writer']['remove'](_0x360a0c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x34e372,_0x3c2128,_0xfc35aa)=>{const _0x1152e9=_0x3c2128['markerName']['split'](':')[0x1],_0x2a77fe=this['_getChangeFromId'](_0x1152e9);if(!_0x2a77fe)return null;const _0x31231a='add'==_0x2a77fe['type']?'split':'merge';if(_0xfc35aa['consumable']['test'](_0x3c2128['markerRange'],_0x34e372['name']))for(const _0x5b422e of _0x3c2128['markerRange']['getItems']()){if(!_0x5b422e['is']('element','softBreak'))continue;const _0x176f94=_0xfc35aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31231a}),_0x4bbfea=_0xfc35aa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5b422e));_0x2a77fe['data']['isSuggestion']&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker-'+_0x31231a+'-new',_0x176f94),this['activeChange']==_0x2a77fe&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker--active',_0x176f94),_0xfc35aa['writer']['insert'](_0x4bbfea,_0x176f94),_0xfc35aa['mapper']['bindElementToMarker'](_0x176f94,_0x3c2128['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x280b16=>{for(const _0x200b22 of this['editor']['model']['document']['getRootNames']()){const _0xca03cb=this['editor']['model']['document']['getRoot'](_0x200b22),_0x286604=this['editor']['editing']['view']['document']['getRoot'](_0x200b22);if(_0x286604){const _0xfce669=_0xca03cb['getAttribute']('revisionHistoryAttachChange');if(_0x280b16['removeAttribute']('data-change-id',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-add',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-remove',_0x286604),_0x280b16['removeClass']('ck-revision-history-root--active',_0x286604),_0xfce669){const _0x46eb9b=this['_getChangeFromId'](_0xfce669);if(!_0x46eb9b)return null;_0x280b16['setAttribute']('data-change-id',_0xfce669,_0x286604),_0x280b16['addClass']('ck-revision-history-root-'+_0x46eb9b['type'],_0x286604),this['activeChange']==_0x46eb9b&&_0x280b16['addClass']('ck-revision-history-root--active',_0x286604);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x19d18c=>'revision-comment:'+_0x19d18c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x424e78=>'revision-suggestion:'+_0x424e78,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38d9d3=>({'name':'suggestion:'+_0x38d9d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x220aff=>{const _0x5d6300=_0x220aff['markerName']['split'](':')[0x1];return'insertion'!=_0x5d6300&&'deletion'!=_0x5d6300?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d6300]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a4f3b,_0x4948a6,_0x291a7a)=>{const _0x5a7399=_0x291a7a['mapper']['markerNameToElements'](_0x4948a6['markerName']);if(_0x5a7399){for(const _0xcea6c6 of _0x5a7399)_0xcea6c6['is']('uiElement')&&(_0x291a7a['mapper']['unbindElementFromMarkerName'](_0xcea6c6,_0x4948a6['markerName']),_0x291a7a['writer']['remove'](_0xcea6c6));}},{'priority':'high'});}['_getChangeFromId'](_0x15e134){return this['_changeIdToChange']['get'](_0x15e134);}['_getViewForChange'](_0xdc5251){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xdc5251),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5ae70f,_0x52c68d,_0x369df8,_0x483d6d)=>{_0x483d6d&&this['_balloon']['remove'](_0x483d6d),_0x369df8&&(this['_balloon']['add']({'view':_0x369df8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x36b043=this['editor']['editing'],_0x83f6af=this['_getChangeFromId'](_0x369df8['changeId']);let _0x32f69e;if(_0x83f6af['data']['isOnRoot']){const _0x12fdac=_0x36b043['view']['getDomRoot'](_0x83f6af['rootName']);_0x32f69e=Array['from'](_0x12fdac['getClientRects']());}else{const _0x4e5313=this['editor']['model']['markers']['get']('revision:'+_0x369df8['changeId']);_0x32f69e=Array['from'](_0x36b043['mapper']['markerNameToElements'](_0x4e5313['name']))['map'](_0x24b307=>_0x36b043['view']['domConverter']['mapViewToDom'](_0x24b307))['map'](_0x298673=>Array['from'](_0x298673['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x32f69e[0x0];return _0x32f69e['find'](_0x36ac0b=>_0x36ac0b['top']-0x3<=this['_activeViewTarget']['y']&&_0x36ac0b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36ac0b['left']-0x3<=this['_activeViewTarget']['x']&&_0x36ac0b['right']+0x3>=this['_activeViewTarget']['x'])||_0x32f69e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x424a3b,_0x185eb6,_0x244f4b,_0x2dfbf6)=>{this['activeView']=_0x244f4b?this['_getViewForChange'](_0x244f4b):null,this['editor']['model']['change'](()=>{const _0x334203=this['editor']['editing'];_0x2dfbf6&&(_0x2dfbf6['data']['isOnRoot']?_0x334203['view']['change'](_0x4ddbc1=>{_0x4ddbc1['removeClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x2dfbf6['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x2dfbf6['id'])),_0x244f4b&&(_0x244f4b['data']['isOnRoot']?_0x334203['view']['change'](_0x499ef7=>{_0x499ef7['addClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x244f4b['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x244f4b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x515bbd,_0x115e89)=>{if(this['activeChange'])return;const _0x34a368=this['_findChangeIdFromDomTarget'](_0x115e89['target']),_0x27f73a=this['_changeIdToChange']['get'](_0x34a368);_0x27f73a?(this['_activeViewTarget']={'x':_0x115e89['domEvent']['x'],'y':_0x115e89['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27f73a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x58532,_0x30dcfd)=>{const _0x466e33=this['_findChangeIdFromDomTarget'](_0x30dcfd['target']),_0x3295a=this['_changeIdToChange']['get'](_0x466e33);_0x3295a?(this['_activeViewTarget']={'x':_0x30dcfd['domEvent']['x'],'y':_0x30dcfd['domEvent']['y']},_0x3295a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3295a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x195f16){do{const _0x454c8a=_0x195f16['getAttribute']('data-change-id');if(_0x454c8a)return _0x454c8a;_0x195f16=_0x195f16['parent'];}while(_0x195f16);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x207062=>{for(const _0xe4aef0 of this['editor']['model']['markers'])_0x207062['removeMarker'](_0xe4aef0);});}}function tt(_0x38f98f,_0x1f07b0){return(_0x55aa40,_0x95ca41,_0x25c793)=>{if(!_0x25c793['consumable']['test'](_0x95ca41['markerRange'],_0x55aa40['name']))return;const _0x4e69bd=_0x95ca41['markerRange']['getWalker'](),_0x1bb0d6=_0x95ca41['markerRange']['start'],_0x45a548=_0x38f98f['model']['schema'];let _0x2a5ca5=null,_0x26b799=null,_0x3dc8cc=!0x1,_0x32ea3e=!0x1;for(const _0x3120c4 of _0x4e69bd){const _0x49d319=_0x3120c4['item'];_0x3dc8cc=_0x3dc8cc||_0x45a548['isContent'](_0x49d319);const _0x372aec=_0x25c793['mapper']['toViewElement'](_0x49d319);if(_0x372aec&&_0x372aec['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3120c4['type']&&(_0x45a548['isBlock'](_0x49d319)&&!_0x45a548['isLimit'](_0x49d319)&&(_0x49d319['nextSibling']||_0x1bb0d6['isAtEnd']?_0x2a5ca5&&_0x2a5ca5['parent']==_0x49d319||(_0x2a5ca5=_0x49d319,_0x582a11(_0x3120c4['previousPosition']),_0x32ea3e=!0x0):_0x26b799=_0x26b799||_0x3120c4['previousPosition']));}function _0x582a11(_0x5a87df){const _0x15eafc=_0x25c793['mapper']['toViewPosition'](_0x5a87df),_0x5131b4=_0x25c793['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1f07b0});_0x25c793['writer']['insert'](_0x15eafc,_0x5131b4),_0x25c793['mapper']['bindElementToMarker'](_0x5131b4,_0x95ca41['markerName']);}_0x3dc8cc||_0x32ea3e||!_0x26b799||_0x582a11(_0x26b799);};}class yt extends _0x18555e{constructor(_0x458aaa){super(_0x458aaa);const _0x476566=_0x458aaa['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x476566,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x476566,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x502344=this['editor'],_0x4e30b9=_0x502344['plugins']['get'](d),_0x547442=_0x4e30b9['isReady']?_0x4e30b9['diff']['newRevisionId']:null;_0x502344['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x547442);}['refresh'](){const {isReady:_0x5977cd,isEnabled:_0xf2468b,repository:_0x3af1a3,diff:_0x329c21}=this['editor']['plugins']['get'](d),_0x25c3cc=_0x329c21&&_0x3af1a3['getLaterVisibleRevision'](_0x329c21['newRevisionId']);this['isEnabled']=_0x5977cd&&_0xf2468b&&Boolean(_0x25c3cc);}}class bt extends _0x18555e{['_step'];constructor(_0x11fb64,{direction:_0x43ace0}){super(_0x11fb64);const _0xd5f4b0=_0x11fb64['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x43ace0?0x1:-0x1,this['listenTo'](_0xd5f4b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xeac587=this['editor'],_0x3b0b98=_0xeac587['plugins']['get'](d),{isNavigationMode:_0xe41eb4,currentChangeNumber:_0x569b27}=_0x3b0b98;let _0x4eedef;if(_0x3b0b98['activeChange']=_0xe41eb4?_0x3b0b98['diff']['changes']['get'](_0x569b27+this['_step']):_0x3b0b98['diff']['changes']['first'],_0x3b0b98['activeChange']['data']['isOnRoot'])_0x4eedef=_0xeac587['editing']['view']['getDomRoot'](_0x3b0b98['activeChange']['rootName']);else{const _0x4ec741=_0xeac587['model']['markers']['get']('revision:'+_0x3b0b98['activeChange']['id']);_0x4eedef=_0x3d0410(_0xeac587['editing'],_0x4ec741);}_0x489eea({'target':_0x4eedef,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x406b72,currentChangeNumber:_0x547483,numberOfChanges:_0x3bb9a5,isReady:_0x4d02b0,isEnabled:_0x56162c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x56162c&&_0x4d02b0&&_0x3bb9a5)&&(!_0x406b72||(0x1===this['_step']?_0x547483<_0x3bb9a5-0x1:_0x547483>0x0));}}class bi extends _0x297fcf{constructor(_0x15ee12){super(_0x15ee12);const _0x4ee2b3=this['bindTemplate'],_0x3f7d02=new _0x2456b5(_0x15ee12),_0xcdce5d=new _0x2456b5(_0x15ee12);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',(_0x1657bb,_0x5dd3cf)=>_0x1657bb&&_0x5dd3cf>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xc55966,_0x318708,_0x35d25f,_0x1aac72)=>{if(!_0xc55966)return R(_0x15ee12,'Loading...');if(!_0x35d25f)return R(_0x15ee12,'No\x20changes');const _0x184cbf=R(_0x15ee12,'NUMBER_OF_CHANGES',_0x35d25f);return _0x1aac72?R(_0x15ee12,'X_OF_Y_CHANGES',[_0x318708+0x1,_0x35d25f]):_0x184cbf;}),_0x3f7d02['set']({'label':R(_0x15ee12,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0xcdce5d['set']({'label':R(_0x15ee12,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3f7d02['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xcdce5d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7d02['on']('execute',()=>this['fire']('execute','backward')),_0xcdce5d['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',_0x4ee2b3['if']('_isStatusLabelVisible','ck-hidden',_0x48fbc2=>!_0x48fbc2)]},'children':[{'text':_0x4ee2b3['to']('isNavigationMode',_0x1c0b1a=>_0x1c0b1a?R(_0x15ee12,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x15ee12,'Total')+':\x20')}]},{'text':_0x4ee2b3['to']('_statusText')}]},new _0x43523c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7d02,_0xcdce5d]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x434fd7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xee8327=this['editor']['editing']['view'];_0xee8327['change'](_0x3af276=>{for(const _0x4de0fb of _0xee8327['document']['roots'])_0x3af276['addClass'](ie,_0x4de0fb);});}['hide'](){const _0x225621=this['editor']['editing']['view'];_0x225621['change'](_0x4ef944=>{for(const _0x3e05d5 of _0x225621['document']['roots'])_0x4ef944['removeClass'](ie,_0x3e05d5);});}}class m extends _0x434fd7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x37718b=this['editor'],_0x2a13aa=_0x37718b['plugins']['get'](d),_0x5535f2=_0x37718b['plugins']['get'](te);_0x37718b['ui']['componentFactory']['add']('exitToEditing',_0x496006=>{const _0x333a0a=new _0x2456b5(_0x496006);return _0x333a0a['set']({'label':R(_0x496006,'Back\x20to\x20editing'),'icon':_0x3495e1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x333a0a,'execute',()=>{_0x37718b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x333a0a;}),_0x37718b['ui']['componentFactory']['add']('restoreRevision',_0x216251=>{const _0x3701c1=new _0x2456b5(_0x216251);return _0x3701c1['set']({'label':R(_0x216251,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3701c1['bind']('isEnabled')['to'](_0x37718b['commands']['get']('restoreRevision')),this['listenTo'](_0x3701c1,'execute',()=>_0x37718b['execute']('restoreRevision')),_0x3701c1;}),_0x37718b['ui']['componentFactory']['add']('changesNavigation',_0xc83b43=>{const _0x3192b6=new bi(_0xc83b43),_0x4249d=_0x37718b['commands']['get']('showPreviousChange'),_0x34138c=_0x37718b['commands']['get']('showNextChange');return _0x3192b6['bind']('isBackwardNavigationEnabled')['to'](_0x4249d,'isEnabled'),_0x3192b6['bind']('isForwardNavigationEnabled')['to'](_0x34138c,'isEnabled'),_0x3192b6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a13aa),this['listenTo'](_0x3192b6,'execute',(_0x28247e,_0x35ca38)=>{_0x37718b['execute']('forward'===_0x35ca38?'showNextChange':'showPreviousChange');}),_0x3192b6;}),_0x5535f2['show'](),_0x2a13aa['on']('change:isReady',(_0x5379c6,_0x2a091c,_0x3eddda)=>{_0x3eddda?_0x5535f2['hide']():_0x5535f2['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x142145,_0x6d8e82){super(_0x142145,_0x6d8e82);const _0x5dd67a=this['bindTemplate'];this['set']({'label':R(_0x142145,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x142145,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5dd67a['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b1589=this['fieldView']['element'];this['_tooltipString']=_0x4b1589['scrollWidth']>_0x4b1589['clientWidth']&&_0x4b1589['value']||'';}}class ti extends _0x297fcf{constructor(_0x2bacf6,_0x1438d8,_0x4b975b){super(_0x2bacf6);const _0x15da73=new _0x21bca6();_0x15da73['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x59a141=['ck','ck-revision-history-sidebar__revision-author'];_0x4b975b&&_0x59a141['push']('ck-revision-history-sidebar__revision-author_creator');const _0x242fe3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2bacf6,_0x4b975b?'Revision\x20creator':'Revision\x20author')},'children':[_0x15da73,_0x1438d8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59a141},'children':_0x242fe3});}}function ni(_0x3edf92,_0x1dd92f){const _0x489f4c=_0x3edf92['bindTemplate'],_0x4aa1e4=_0x3edf92['locale'],_0x4171dd=_0x327471(_0x4aa1e4);_0x4171dd['panelPosition']='sw';const _0x560ebe=function(_0x124fda,_0xcff998){const _0xa8ddde=function(_0x3ca7d0,_0x10c35a){const _0x4af131=_0x3ca7d0['locale'],_0x4ed5a6={'Compare\x20against\x20selected':R(_0x4af131,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4af131,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4af131,'Restore\x20this\x20revision')};return _0x10c35a['map'](_0x50abeb=>{const _0x5752b0=_0x4ed5a6[_0x50abeb['name']];return _0x5752b0&&_0x5752b0!==_0x50abeb['name']&&(_0x50abeb['name']=_0x5752b0),_0x50abeb;});}(_0x124fda,_0xcff998),_0xe224ee=new _0x2d1bb4();for(const _0x44c67f of _0xa8ddde){const _0x315c0b={'type':'button','model':new to({'label':_0x44c67f['name'],'class':_0x44c67f['class'],'withText':!0x0,'role':'menuitem','_action':_0x44c67f['action']})};_0x315c0b['model']['bind']('isEnabled')['to'](_0x124fda,'isActionsDropdownOpen',_0xf94f9=>'function'!=typeof _0x44c67f['isEnabled']||(!_0xf94f9||_0x44c67f['isEnabled'](_0x124fda))),_0xe224ee['add'](_0x315c0b);}return _0xe224ee;}(_0x3edf92,_0x1dd92f);return _0x3edf92['bind']('isActionsDropdownOpen')['to'](_0x4171dd,'isOpen'),_0x4171dd['buttonView']['set']({'label':R(_0x4aa1e4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3495e1['threeVerticalDots']}),_0x4171dd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x489f4c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x489f4c['to'](_0x293114=>_0x293114['stopPropagation']())}}),_0x4171dd['on']('execute',_0x2276ac=>{_0x3edf92['isReady']&&'function'==typeof _0x2276ac['source']['_action']&&_0x2276ac['source']['_action'](_0x3edf92);}),_0x9954b6(_0x4171dd,_0x560ebe,{'role':'menu'}),_0x4171dd['listenTo'](_0x3edf92,'change:isActionsDropdownOpen',(_0x1e76b1,_0x2602ef,_0x505d24)=>{if(_0x505d24)for(const _0x3c4484 of _0x4171dd['listView']['items']){const _0x44e7ad=_0x3c4484['children']['first'],_0x410b66=_0x1dd92f['find'](_0x1d5be6=>_0x1d5be6['action']===_0x44e7ad['_action'])['isVisible'];_0x3c4484['isVisible']=void 0x0===_0x410b66||_0x410b66(_0x3edf92);}}),_0x4171dd;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2e7f54(_0x297fcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2da4cb,_0x367431,_0x25e70c,_0xc4079d){super(_0x2da4cb);const _0x46f06d=this['bindTemplate'],_0x45d1f1=function(_0x151fa8,_0x35319e){const _0x2b8032=Array['from'](_0x35319e['authors'])['filter'](_0x351c2f=>_0x351c2f!=_0x35319e['creator']);return _0x35319e['creator']&&_0x2b8032['unshift'](_0x35319e['creator']),_0x2b8032['map'](_0x47dac8=>new ti(_0x151fa8,_0x47dac8,_0x47dac8==_0x35319e['creator']));}(_0x2da4cb,_0x367431);this['id']=_0x367431['id'],this['_revision']=_0x367431,this['_requireRevisionName']=_0xc4079d,this['bind']('name','createdAt')['to'](_0x367431),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4fb3e3=>{return _0x3950c2=_0x2da4cb['uiLanguage'],(_0x410341=_0x4fb3e3)['toLocaleDateString'](_0x3950c2,{'month':'long','day':'numeric'})+',\x20'+_0x410341['toLocaleTimeString'](_0x3950c2,{'hour':'numeric','minute':'numeric'});var _0x3950c2,_0x410341;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x2da4cb,_0x2be08e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a7102=>_0x2a7102||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x13330c,_0x3f3794)=>_0x13330c&&_0x3f3794),this['revisionActionsView']=_0x25e70c&&_0x25e70c['length']?ni(this,_0x25e70c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x46f06d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x46f06d['if']('isEnabled','ck-disabled',_0x49b42d=>!_0x49b42d),_0x46f06d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x46f06d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x46f06d['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':_0x46f06d['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':_0x45d1f1}]},this['revisionActionsView']],'on':{'click':_0x46f06d['to'](_0x31a9c2=>{_0x31a9c2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4279fd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4279fd,'change',()=>{this['_requireRevisionName']&&!_0x4279fd['value']||this['fire']('setName',{'id':this['id'],'name':_0x4279fd['value']}),_0x4279fd['value']||(_0x4279fd['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x162c9d,_0x22ed9d){const _0x3127f3=_0x3c423b['fromJSDate'](_0x162c9d)['setLocale'](_0x22ed9d),_0x4d9d5f=_0x3c423b['local'](),_0x25b6bf=_0x4d9d5f['minus']({'days':0x1})['startOf']('day');let _0x3f64d2,_0x40c180;return _0x3127f3['hasSame'](_0x4d9d5f,'day')?(_0x3f64d2=_0x3127f3['startOf']('day')['toJSDate'](),_0x40c180=_0x3127f3['toRelativeCalendar']()):_0x3127f3['hasSame'](_0x25b6bf,'day')?(_0x3f64d2=_0x25b6bf['toJSDate'](),_0x40c180=_0x3127f3['toRelativeCalendar']()):_0x3127f3['hasSame'](_0x4d9d5f,'week')?(_0x3f64d2=_0x3127f3['startOf']('week')['toJSDate'](),_0x40c180=_0x3127f3['weekdayLong']||''):_0x3127f3['hasSame'](_0x4d9d5f,'year')?(_0x3f64d2=_0x3127f3['startOf']('month')['toJSDate'](),_0x40c180=_0x3127f3['monthLong']||''):(_0x3f64d2=_0x3127f3['startOf']('year')['toJSDate'](),_0x40c180=String(_0x3127f3['year'])),{'startDate':_0x3f64d2,'localizedPeriodName':_0x40c180};}class mi extends _0x297fcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35b7d5,_0x15c3e5,_0x4dbb45,_0x139d28){super(_0x35b7d5);const _0x39d96f=di(_0x15c3e5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x15c3e5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4dbb45,this['_requireRevisionName']=_0x139d28,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':_0x39d96f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x55b662){const _0x1d75c4=new ai(this['locale'],_0x55b662,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1d75c4);}['removeRevision'](_0x1a4d8e){const _0x2ba356=this['revisionViews']['find'](_0x3e975b=>_0x3e975b['id']===_0x1a4d8e['id']);this['revisionViews']['remove'](_0x2ba356);}}class rs extends _0x297fcf{constructor(_0xe2236){super(_0xe2236);const _0x49f3bf=new _0x21bca6();_0x49f3bf['content']=_0x3495e1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x49f3bf,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xe2236,'Revision\x20history')]}]});}}class ci extends _0x297fcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ef5cc,_0x1eb00e,_0x4a3f1d,_0x39d9d3){super(_0x2ef5cc);const _0x1bb5a6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1eb00e,this['_revisionActions']=_0x4a3f1d,this['_requireRevisionName']=_0x39d9d3,this['on']('select',(_0x2720fb,_0x5d66d7)=>{this['fire']('revisionSelected',_0x5d66d7);}),this['on']('setName',(_0x41bde5,_0xdcd993)=>{this['fire']('revisionSetName',_0xdcd993);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x2ef5cc),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1bb5a6['if']('isEnabled','ck-disabled',_0x3ae21d=>!_0x3ae21d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xd4f3ab of this['_revisions'])this['_addRevision'](_0xd4f3ab);this['_revisions']['on']('add',(_0xbf5bc,_0x101de9)=>{this['_addRevision'](_0x101de9);}),this['_revisions']['on']('remove',(_0x546054,_0x3f34d4)=>{this['_removeRevision'](_0x3f34d4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x20c52a=>_0x20c52a['revisionViews']['map'](_0xa98091=>_0xa98091))['flat']();}['selectRevision'](_0x2408ca){for(const _0x876044 of this['revisionViews'])_0x2408ca&&_0x2408ca['id']===_0x876044['id']?_0x876044['select']():_0x876044['deselect']();}['highlightRevisions'](_0x368d35){for(const _0x595004 of this['revisionViews'])_0x368d35['some'](({id:_0x1d131f})=>_0x1d131f===_0x595004['id'])?_0x595004['highlight']():_0x595004['unhighlight']();}['_addRevision'](_0x110ab2){const _0x2a0bdf=di(_0x110ab2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x546dfc=this['timePeriodViews']['get'](0x0);_0x546dfc&&_0x546dfc['startDate']['getTime']()===_0x2a0bdf['getTime']()||(_0x546dfc=new mi(this['locale'],_0x2a0bdf,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x546dfc)),_0x546dfc['addRevision'](_0x110ab2);}['_removeRevision'](_0x31ea0f){const _0x4d7e2d=di(_0x31ea0f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4d7e2d)['removeRevision'](_0x31ea0f);}['_getTimePeriodViewByStartDate'](_0x2f80d8){return this['timePeriodViews']['find'](_0x9a65c6=>_0x9a65c6['startDate']['getTime']()===_0x2f80d8['getTime']());}}class g extends _0x434fd7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3aa1df,_0x4c453c){super(_0x4c453c),this['sourceElement']=_0x3aa1df,this['model']['document']['createRoot']();const _0x59dce0=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x59dce0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x170ced,_0x25b572){const _0x5c2f67=new this(_0x170ced,_0x25b572);return await _0x5c2f67['initPlugins'](),await _0x5c2f67['ui']['init'](_0x170ced),await _0x5c2f67['data']['init'](_0x5c2f67['config']['get']('initialData')||''),_0x5c2f67['fire']('ready'),_0x5c2f67;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x20db2f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x322cbc){function _0x6274f6(_0x3e8e25){return _0x3e8e25['map'](_0xd08a6d=>String['fromCharCode'](_0xd08a6d))['join']('');}super(_0x322cbc),this['result']='end',_0x322cbc[_0x6274f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6274f6([0x76,0x69,0x65,0x77])][_0x6274f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6274f6([0x61,0x75,0x74,0x6f]),_0x322cbc[_0x6274f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6274f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6274f6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6274f6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6274f6([0x6f,0x6b])});}}class H extends _0x20db2f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xcc65d7){if(super(_0xcc65d7),!this['editor']['config']['get']('revisionHistory'))throw new _0x3fbff5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x74b782=>this['_showRevisionViewer']({..._0x74b782,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b38f1=>this['_closeRevisionViewer'](_0x4b38f1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1eaf5a=>this['_restoreRevision'](_0x1eaf5a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5c530f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5c530f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x55d748){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x55d748);}['getRevision'](_0x5178a1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5178a1);}['getRevisions'](_0x7a6633){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x7a6633||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2909ec=this['editor'],_0x24c37a=_0x2391ab(_0x2909ec,p),_0x59c647=_0x2909ec['plugins']['get']('RevisionTracker'),_0xda6b7a=_0x2909ec['plugins']['get']('Users')['users'];return _0x24c37a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x24c37a['lazyRoots'],(_0x24c37a['plugins']['push'](k,d,m,class extends _0x20db2f{static get['requires'](){return[d,'Users'];}['init'](){const _0xfa6a85=this['editor']['plugins']['get']('Users');for(const _0x2e49fd of _0xda6b7a)_0x2e49fd['isAnonymous']||_0xfa6a85['getUser'](_0x2e49fd['id'])||_0xfa6a85['addUser'](_0x2e49fd);const _0x405f28=_0x59c647['repository']['getRevisions']();let _0x66d14c=null;const _0x39c811=this['editor']['plugins']['get']('RevisionViewer');_0x39c811['adapter']=_0x59c647['adapter'],_0x39c811['bind']('isEnabled')['to'](_0x59c647),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2909ec,'isReadOnly',_0xe83a74=>!_0xe83a74);for(const _0x293b0c of _0x405f28){const _0x98c921=null===_0x293b0c['creator'];if(_0x98c921&&_0x293b0c['toVersion']===_0x293b0c['fromVersion'])continue;const _0x5ce3bc=_0x293b0c['toJSON']();_0x39c811['addRevisionData'](_0x5ce3bc,(_0x1e904c,_0x10c6d2,_0x500273)=>{if(_0x98c921){if(_0x66d14c)_0x66d14c['_update'](_0x1e904c,_0x10c6d2);else{if(!_0x10c6d2){const _0x3babbc=_0x500273['toJSON']();_0x3babbc['id']=_0x437679(),_0x59c647['saveRevision'](_0x3babbc,_0x500273['toVersion'])['then'](_0x1131bc=>{_0x66d14c=_0x1131bc;});}}}else _0x293b0c['_update'](_0x1e904c,_0x10c6d2);});}}},g),_0x24c37a);}['_enhanceShowRevisionViewerCallback'](){const _0x486152=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x81efca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38a7f7=this['editor']['plugins']['get']('Autosave');await _0x38a7f7['save']();}else await _0x81efca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x41916d=this['editor']['plugins']['get']('Dialog');_0x41916d['isOpen']&&_0x41916d['hide']();}const _0x3ae8e2=this['_getRevisionViewerEditorConfig']();return _0x486152(_0x3ae8e2)['then'](_0x151e12=>{return(this['_viewerEditor']=_0x151e12,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x151e12;})['catch'](_0x1b1d89=>(console['error'](_0x1b1d89),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5a7e07=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5a7e07(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x402f5b=this['editor']['plugins']['get']('Annotations');_0x402f5b['refreshVisibility'](),_0x402f5b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x179340){const _0x15ac1b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x37ad4a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x6a380b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x6a380b,_0x179340)['then'](_0xbc4189=>(_0x37ad4a['style']['display']='block',_0x15ac1b['style']['display']='none',_0xbc4189));}['_closeRevisionViewer'](_0x4798c7){const _0x1aa84f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1aa84f['style']['display']='',_0x4798c7['destroy']();}async['_restoreRevision'](_0x226f79){const _0x267b7b=this['editor'],_0x12d2b7=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xde963b=_0x267b7b['plugins']['get']('RevisionTracker'),_0x947500=_0x12d2b7['repository']['getRevision'](_0x226f79);let _0x367775,_0xe0a33f,_0x1a95ef;try{_0x367775=await _0x12d2b7['getRevisionData'](_0x947500),_0xe0a33f=await _0x12d2b7['getRevisionRootsAttributes'](_0x947500);}catch(_0x1c3be1){return void console['error'](_0x1c3be1);}_0x267b7b['model']['change'](_0x263fa4=>{for(const _0x9546e9 of Array['from'](_0x267b7b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x263fa4['removeMarker'](_0x9546e9);}),_0x12d2b7['isReady']=!0x1,_0x267b7b['model']['enqueueChange'](_0x42277e=>{_0x42277e['setSelection'](null),_0x42277e['removeSelectionAttribute'](_0x267b7b['model']['document']['selection']['getAttributeKeys']());const _0x4f2811=Object['keys'](_0x367775);for(const _0x20a740 of _0x267b7b['model']['document']['roots'])'$graveyard'!=_0x20a740['rootName']&&_0x20a740['isAttached']()&&!_0x4f2811['includes'](_0x20a740['rootName'])&&_0x42277e['detachRoot'](_0x20a740);for(const _0xb3dda6 of _0x4f2811){let _0x55acda=_0x267b7b['model']['document']['getRoot'](_0xb3dda6);_0x55acda&&_0x55acda['isAttached']()||(_0x55acda=_0x42277e['addRoot'](_0xb3dda6));const _0x15d427=_0xe0a33f[_0xb3dda6],_0x44c0d5=Object['keys'](_0x15d427),_0x320c7d=_0x367775[_0xb3dda6];for(const _0x2de286 of _0x55acda['getAttributeKeys']())_0x44c0d5['includes'](_0x2de286)||_0x42277e['removeAttribute'](_0x2de286,_0x55acda);for(const _0x37e500 of _0x44c0d5)_0x42277e['setAttribute'](_0x37e500,_0xe0a33f[_0xb3dda6][_0x37e500],_0x55acda);_0x42277e['remove'](_0x42277e['createRangeIn'](_0x55acda)),_0x42277e['insert'](_0x267b7b['data']['parse'](_0x320c7d,_0x55acda),_0x55acda,0x0);}});const _0x22ca57=R(_0x267b7b['locale'],'Restored');if(_0x947500['name'])_0x1a95ef=-0x1==_0x947500['name']['indexOf'](_0x22ca57)?_0x22ca57+':\x20'+_0x947500['name']:_0x947500['name'];else _0x1a95ef=_0x22ca57+':\x20'+(_0x947500['createdAt']['toLocaleDateString'](_0x267b7b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x947500['createdAt']['toLocaleTimeString'](_0x267b7b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xde963b['saveRevision']({'name':_0x1a95ef}),_0x12d2b7['isReady']=!0x0,_0x267b7b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x26371e){super(_0x26371e),this['_revisionViewer']=_0x26371e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x209ed2=this['_revisionsRepository']['_revisions'],_0x38ffcd=this['_createRevisionActions'](),_0x99aa2f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x209ed2,_0x38ffcd,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',(_0x40fee4,_0x23d8eb)=>{_0x23d8eb['revisionViews']['on']('add',(_0x1c0ea7,_0x250ddf)=>{_0x250ddf['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)),_0x99aa2f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x31a984=this['_revisionsRepository']['getRevision'](0x0);if(_0x31a984){const _0x5b01a7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x31a984['id']);this['_revisionViewer']['compare'](_0x31a984,_0x5b01a7);}}['_handleRevisionSelected'](_0xb299e3,_0x11bbf6){const _0x3bf328=this['_revisionsRepository']['getRevision'](_0x11bbf6['id']),_0x162a1b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3bf328['id']);this['_revisionViewer']['compare'](_0x3bf328,_0x162a1b);}['_handleRevisionSetName'](_0x3d56a9,_0x579162){this['_revisionsRepository']['getRevision'](_0x579162['id'])['setName'](_0x579162['name']);}['_handleDiffChange'](_0xc7ada4,_0x268d34,_0x44cf24){const _0x46622d=this['_revisionsRepository']['getRevisionsInDiff'](_0x44cf24);_0x46622d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x46622d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x46622d[0x0]));}['_createRevisionActions'](){const _0x380ef0=this['editor'],_0x199958=g['availableRevisionActions'],_0x306a53=_0x380ef0['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x306a53['length'])return _0x306a53['map'](_0x307334=>{const _0x6060b8='string'==typeof _0x307334?Object['assign']({},_0x199958[_0x307334]):_0x307334;return _0x6060b8['action']=_0x6060b8['action']['bind'](this,_0x380ef0),_0x6060b8['isVisible']&&(_0x6060b8['isVisible']=_0x6060b8['isVisible']['bind'](this,_0x380ef0)),_0x6060b8;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x21462f},_0x533d19)=>{const _0x53f5cf=_0x21462f['get'](d),_0x2bef09=_0x53f5cf['repository'];let _0x11e480=_0x53f5cf['diff']['newRevisionId'],_0x4c7eb0=_0x533d19['id'];_0x2bef09['getIndex'](_0x11e480)>_0x2bef09['getIndex'](_0x4c7eb0)&&([_0x11e480,_0x4c7eb0]=[_0x4c7eb0,_0x11e480]),_0x53f5cf['compare'](_0x11e480,_0x4c7eb0);},'isVisible':({plugins:_0x196fcf},_0x43d86f)=>{const _0x1e9d81=_0x196fcf['get'](d);return!(_0x1e9d81['repository']['getRevisionsInDiff'](_0x1e9d81['diff'])['length']>0x2)&&!_0x43d86f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23de6d,{id:_0x4a2437})=>{_0x23de6d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a2437);},'isVisible':({plugins:_0x598bdd},_0x25d907)=>!!_0x598bdd['get'](d)['repository']['getLaterVisibleRevision'](_0x25d907['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1d6bb1},{id:_0x3329fe,revisionNameView:_0x398630})=>{const _0xde5b9=_0x1d6bb1['get'](d),_0x5dcb61=_0xde5b9['repository']['getEarlierVisibleRevision'](_0x3329fe);_0xde5b9['compare'](_0x3329fe,_0x5dcb61),_0x398630['focus'](),_0x398630['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1eb9d5,_0x10a12f){super(_0x1eb9d5),this['_view']=_0x10a12f,this['_toolbarConfig']=ht(_0x1eb9d5['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x55951e){const _0x16f456=this['editor'],_0x1a9956=this['view'],_0xd936b6=_0x16f456['editing']['view'],_0x214459=_0x1a9956['editable'],_0x15a2b7=_0xd936b6['document']['getRoot']();_0x214459['name']=_0x15a2b7['rootName'],_0x1a9956['render']();const _0x157873=_0x214459['element'];this['setEditableElement'](_0x214459['name'],_0x157873),_0x1a9956['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xd936b6['attachDomRoot'](_0x157873),this['_elementReplacer']['replace'](_0x55951e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x37cb91=this['view'],_0x1ee2dc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1ee2dc['detachDomRoot'](_0x37cb91['editable']['name']),_0x37cb91['destroy']();}['_initToolbar'](){const _0x18e625=this['view'];_0x18e625['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x18e625['stickyPanel']['limiterElement']=_0x18e625['element'],_0x18e625['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2ef71b})=>_0x2ef71b),_0x18e625['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x18e625['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1a8741,_0x354198,_0x15d6d={}){super(_0x1a8741),this['stickyPanel']=new lt(_0x1a8741),this['toolbar']=new nt(_0x1a8741,{'shouldGroupWhenFull':_0x15d6d['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x1a8741,_0x354198);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x181083,_0x3256a6){super(_0x3256a6),this['sourceElement']=_0x181083,this['model']['document']['createRoot']();const _0x588856=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x588856);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x81fced,_0x912a40){const _0x4d801a=new this(_0x81fced,_0x912a40);return await _0x4d801a['initPlugins'](),await _0x4d801a['ui']['init'](_0x81fced),await _0x4d801a['data']['init'](_0x4d801a['config']['get']('initialData')||''),_0x4d801a['fire']('ready'),_0x4d801a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x434fd7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196dca){function _0x2abd1e(_0xddff99){return _0xddff99['map'](_0x55c3a7=>String['fromCharCode'](_0x55c3a7))['join']('');}super(_0x196dca),this['result']='end',_0x196dca[_0x2abd1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2abd1e([0x76,0x69,0x65,0x77])][_0x2abd1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2abd1e([0x61,0x75,0x74,0x6f]),_0x196dca[_0x2abd1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2abd1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2abd1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2abd1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2abd1e([0x6f,0x6b])});}}class H extends _0x434fd7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e3279){if(super(_0x4e3279),!this['editor']['config']['get']('revisionHistory'))throw new _0x2d3871('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x355ae2=>this['_showRevisionViewer']({..._0x355ae2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8b3f69=>this['_closeRevisionViewer'](_0x8b3f69)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2851ff=>this['_restoreRevision'](_0x2851ff)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4af6c5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4af6c5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5831af){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5831af);}['getRevision'](_0x4da473){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4da473);}['getRevisions'](_0x271a77){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x271a77||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb06a13=this['editor'],_0x399d1f=_0x53a3aa(_0xb06a13,p),_0x2575bc=_0xb06a13['plugins']['get']('RevisionTracker'),_0x24ad0d=_0xb06a13['plugins']['get']('Users')['users'];return _0x399d1f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399d1f['lazyRoots'],(_0x399d1f['plugins']['push'](k,d,m,class extends _0x434fd7{static get['requires'](){return[d,'Users'];}['init'](){const _0x317e73=this['editor']['plugins']['get']('Users');for(const _0x2311b2 of _0x24ad0d)_0x2311b2['isAnonymous']||_0x317e73['getUser'](_0x2311b2['id'])||_0x317e73['addUser'](_0x2311b2);const _0x28137c=_0x2575bc['repository']['getRevisions']();let _0x3947ae=null;const _0x5dffff=this['editor']['plugins']['get']('RevisionViewer');_0x5dffff['adapter']=_0x2575bc['adapter'],_0x5dffff['bind']('isEnabled')['to'](_0x2575bc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb06a13,'isReadOnly',_0x50a1a6=>!_0x50a1a6);for(const _0x295d20 of _0x28137c){const _0x3f65bf=null===_0x295d20['creator'];if(_0x3f65bf&&_0x295d20['toVersion']===_0x295d20['fromVersion'])continue;const _0x470970=_0x295d20['toJSON']();_0x5dffff['addRevisionData'](_0x470970,(_0x1d480a,_0xd481c1,_0x7b3da2)=>{if(_0x3f65bf){if(_0x3947ae)_0x3947ae['_update'](_0x1d480a,_0xd481c1);else{if(!_0xd481c1){const _0xac54c8=_0x7b3da2['toJSON']();_0xac54c8['id']=_0x4c02ac(),_0x2575bc['saveRevision'](_0xac54c8,_0x7b3da2['toVersion'])['then'](_0x53a1bd=>{_0x3947ae=_0x53a1bd;});}}}else _0x295d20['_update'](_0x1d480a,_0xd481c1);});}}},g),_0x399d1f);}['_enhanceShowRevisionViewerCallback'](){const _0x2989f1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x176415=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xe2f835=this['editor']['plugins']['get']('Autosave');await _0xe2f835['save']();}else await _0x176415['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x506479=this['editor']['plugins']['get']('Dialog');_0x506479['isOpen']&&_0x506479['hide']();}const _0x2b4e9f=this['_getRevisionViewerEditorConfig']();return _0x2989f1(_0x2b4e9f)['then'](_0x2c4c33=>{return(this['_viewerEditor']=_0x2c4c33,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2c4c33;})['catch'](_0x406ee1=>(console['error'](_0x406ee1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1b82dd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1b82dd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x48f8c8=this['editor']['plugins']['get']('Annotations');_0x48f8c8['refreshVisibility'](),_0x48f8c8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x8743fe){const _0x290613=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4eb886=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x130d08=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x130d08,_0x8743fe)['then'](_0x18fa50=>(_0x4eb886['style']['display']='block',_0x290613['style']['display']='none',_0x18fa50));}['_closeRevisionViewer'](_0x1470f3){const _0x24f149=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x24f149['style']['display']='',_0x1470f3['destroy']();}async['_restoreRevision'](_0x12fe80){const _0x1d295d=this['editor'],_0x45e501=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2885d1=_0x1d295d['plugins']['get']('RevisionTracker'),_0x207d7e=_0x45e501['repository']['getRevision'](_0x12fe80);let _0x343b0c,_0x1704ea,_0x5b7cbf;try{_0x343b0c=await _0x45e501['getRevisionData'](_0x207d7e),_0x1704ea=await _0x45e501['getRevisionRootsAttributes'](_0x207d7e);}catch(_0x153179){return void console['error'](_0x153179);}_0x1d295d['model']['change'](_0x5cb962=>{for(const _0x15cb1c of Array['from'](_0x1d295d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5cb962['removeMarker'](_0x15cb1c);}),_0x45e501['isReady']=!0x1,_0x1d295d['model']['enqueueChange'](_0xf53901=>{_0xf53901['setSelection'](null),_0xf53901['removeSelectionAttribute'](_0x1d295d['model']['document']['selection']['getAttributeKeys']());const _0xe65221=Object['keys'](_0x343b0c);for(const _0x4a0a14 of _0x1d295d['model']['document']['roots'])'$graveyard'!=_0x4a0a14['rootName']&&_0x4a0a14['isAttached']()&&!_0xe65221['includes'](_0x4a0a14['rootName'])&&_0xf53901['detachRoot'](_0x4a0a14);for(const _0x5b5438 of _0xe65221){let _0x3002ea=_0x1d295d['model']['document']['getRoot'](_0x5b5438);_0x3002ea&&_0x3002ea['isAttached']()||(_0x3002ea=_0xf53901['addRoot'](_0x5b5438));const _0x2916f5=_0x1704ea[_0x5b5438],_0x570074=Object['keys'](_0x2916f5),_0x16aa5a=_0x343b0c[_0x5b5438];for(const _0x5cc03f of _0x3002ea['getAttributeKeys']())_0x570074['includes'](_0x5cc03f)||_0xf53901['removeAttribute'](_0x5cc03f,_0x3002ea);for(const _0x456975 of _0x570074)_0xf53901['setAttribute'](_0x456975,_0x1704ea[_0x5b5438][_0x456975],_0x3002ea);_0xf53901['remove'](_0xf53901['createRangeIn'](_0x3002ea)),_0xf53901['insert'](_0x1d295d['data']['parse'](_0x16aa5a,_0x3002ea),_0x3002ea,0x0);}});const _0x487b96=R(_0x1d295d['locale'],'Restored');if(_0x207d7e['name'])_0x5b7cbf=-0x1==_0x207d7e['name']['indexOf'](_0x487b96)?_0x487b96+':\x20'+_0x207d7e['name']:_0x207d7e['name'];else _0x5b7cbf=_0x487b96+':\x20'+(_0x207d7e['createdAt']['toLocaleDateString'](_0x1d295d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x207d7e['createdAt']['toLocaleTimeString'](_0x1d295d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2885d1['saveRevision']({'name':_0x5b7cbf}),_0x45e501['isReady']=!0x0,_0x1d295d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|