@ckeditor/ckeditor5-revision-history 45.2.0-alpha.4 → 45.2.0-alpha.5
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 +11 -11
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +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/revisionviewer/changedetailsview.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
|
-
_0x5d44f9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x528bce){super(),this['id']=_0x528bce['id']||_0x49f29a(),this['creator']=_0x528bce['creator']||null,this['authors']=_0x528bce['authors']||[],this['diffData']=_0x528bce['diffData']||null,this['toVersion']=_0x528bce['toVersion']||0x0,this['fromVersion']=_0x528bce['fromVersion']||0x0,this['set']('name',_0x528bce['name']||''),this['set']('createdAt',_0x528bce['createdAt']||new Date()),this['set']('attributes',_0x528bce['attributes']||{});}['setName'](_0x43116a){this['_update']({'name':_0x43116a});}['setAttribute'](_0x17ba2a,_0x15a3e4){const _0x28ec88=_0x4edbbf(this['attributes']);_0xa1b562(_0x28ec88,_0x17ba2a,_0x15a3e4),this['_update']({'attributes':_0x28ec88});}['removeAttribute'](_0x1171f8){const _0x7926c3=_0x4edbbf(this['attributes']);_0xb986a(_0x7926c3,_0x1171f8),this['_update']({'attributes':_0x7926c3});}['_update'](_0x107991,_0x31052b=!0x1){let _0x475ccb=!0x1;const _0x4d9faa={'id':this['id']},_0x3a1729=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2c87f8 of _0x3a1729){const _0x2550e5=_0x107991[_0x2c87f8];void 0x0!==_0x2550e5&&_0x2550e5!==this[_0x2c87f8]&&(this[_0x2c87f8]=_0x2550e5,_0x4d9faa[_0x2c87f8]=_0x2550e5,_0x475ccb=!0x0);}_0x475ccb&&(_0x4d9faa['authors']&&(_0x4d9faa['authorsIds']=_0x4d9faa['authors']['map'](_0x5b3245=>_0x5b3245['id']),delete _0x4d9faa['authors']),this['fire']('_update',_0x4d9faa,_0x31052b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1dc10d=>_0x1dc10d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x2e679e{['_revisions'];static get['requires'](){return[_0x554194];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5a5655){super(_0x5a5655),this['_revisions']=new _0x51e080();}['afterInit'](){!async function(_0x37f5cb){const _0xf33d78=_0x202ff4([0x68,0x36,0x54,0x6b,0x48,0x4f,0x73,0x67,0x78,0x56,0x74,0x5a,0x62,0x55,0x4b,0x53,0x4a,0x34,0x71,0x57,0x70,0x47,0x79,0x46,0x4c,0x32,0x43,0x4d,0x51,0x44,0x4e,0x6e,0x72,0x41,0x65,0x39,0x66,0x58,0x76,0x64,0x33,0x69,0x61,0x38,0x63,0x49,0x6d,0x52,0x77,0x42,0x31,0x50,0x75,0x45,0x59,0x6f,0x37,0x7a,0x35,0x6c,0x30,0x6a]),_0x58cd78=0xeb829,_0x545ce2=0x3ec0322a,_0x4141be=0x3ec75baa^_0x545ce2,_0xbe3c4f=window[_0x202ff4([0x44,0x61,0x74,0x65])][_0x202ff4([0x6e,0x6f,0x77])](),_0x5b69b0=_0x37f5cb[_0x202ff4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54a404=new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55da0a=>{_0x5b69b0[_0x202ff4([0x6f,0x6e,0x63,0x65])](_0x202ff4([0x72,0x65,0x61,0x64,0x79]),_0x55da0a);}),_0x4d067e={[_0x202ff4([0x6b,0x74,0x79])]:_0x202ff4([0x45,0x43]),[_0x202ff4([0x75,0x73,0x65])]:_0x202ff4([0x73,0x69,0x67]),[_0x202ff4([0x63,0x72,0x76])]:_0x202ff4([0x50,0x2d,0x32,0x35,0x36]),[_0x202ff4([0x78])]:_0x202ff4([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]),[_0x202ff4([0x79])]:_0x202ff4([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]),[_0x202ff4([0x61,0x6c,0x67])]:_0x202ff4([0x45,0x53,0x32,0x35,0x36])},_0x50877f=_0x5b69b0[_0x202ff4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x202ff4([0x67,0x65,0x74])](_0x202ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc209eb(){let _0x5e5ba4,_0x42cb69=null,_0x403dcc=null;try{if(_0x50877f==_0x202ff4([0x47,0x50,0x4c]))return _0x202ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e5ba4=_0x246af1(),!_0x5e5ba4)return _0x202ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e5ba4[_0x202ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x403dcc=_0x488451(_0x5e5ba4[_0x202ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e5ba4[_0x202ff4([0x6a,0x74,0x69])])),await _0x598c6c()?_0x525ddd()?_0xeddaf()?_0x202ff4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e03a2()?(_0x5e5ba4[_0x202ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x202ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42cb69=_0x2fdf52(_0x202ff4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e5ba4[_0x202ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x202ff4([0x74,0x72,0x69,0x61,0x6c])&&(_0x42cb69=_0x2fdf52(_0x202ff4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f7193()):_0x202ff4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x202ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x202ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x202ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xeddaf(){const _0x43cba4=[_0x202ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x202ff4([0x74,0x72,0x69,0x61,0x6c])][_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e5ba4[_0x202ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe3c4f/0x3e8:0xe10*_0x4141be;return _0x5e5ba4[_0x202ff4([0x65,0x78,0x70])]<_0x43cba4;}function _0x525ddd(){const _0x2d995a=_0x5e5ba4[_0x202ff4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d995a)return!0x1;if(_0x2d995a[_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202ff4([0x2a])))return!0x0;if(_0x2d995a[_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202ff4([0x52,0x48])))return!0x0;if(_0x2d995a[_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202ff4([0x52,0x52,0x48]))){if(_0xe6cf6())return!0x0;if(_0xf9166a()||_0x13ffae())return!0x0;}return!0x1;}function _0x3e03a2(){const _0x410811=_0x5e5ba4[_0x202ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x410811||0x0==_0x410811[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c920}=new URL(window[_0x202ff4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x410811[_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c920))return!0x0;const _0x37cdc1=_0x46c920[_0x202ff4([0x73,0x70,0x6c,0x69,0x74])](_0x202ff4([0x2e]));return _0x410811[_0x202ff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x510060=>_0x510060[_0x202ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202ff4([0x2a])))[_0x202ff4([0x6d,0x61,0x70])](_0x4374bb=>_0x4374bb[_0x202ff4([0x73,0x70,0x6c,0x69,0x74])](_0x202ff4([0x2e])))[_0x202ff4([0x73,0x6f,0x6d,0x65])](_0x2e5032=>_0x37cdc1[_0x202ff4([0x65,0x76,0x65,0x72,0x79])]((_0x4c31e9,_0x483bb4)=>_0x2e5032[_0x483bb4]===_0x4c31e9||_0x2e5032[_0x483bb4]===_0x202ff4([0x2a])));}function _0x1f7193(){return _0x42cb69&&_0x403dcc?new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49dc5e,_0x2726a8)=>{_0x42cb69[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x49dc5e,_0x2726a8),_0x403dcc[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x47454e=>{_0x47454e!=_0x202ff4([0x56,0x61,0x6c,0x69,0x64])&&_0x49dc5e(_0x47454e);},_0x2726a8);}):_0x42cb69||_0x403dcc||_0x202ff4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x488451(_0x187de8,_0x552612){return new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f35e=>{if(_0x43b6b4())return _0x26f35e(_0x202ff4([0x56,0x61,0x6c,0x69,0x64]));_0x2412a5(),_0x5b69b0[_0x202ff4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x202ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35517f=!0x1;const _0x442aa8=_0x49f29a();function _0x3b5c38(_0x23da0b){return!!_0x23da0b&&(typeof _0x23da0b===_0x202ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23da0b===_0x202ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23da0b[_0x202ff4([0x74,0x68,0x65,0x6e])]===_0x202ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23da0b[_0x202ff4([0x63,0x61,0x74,0x63,0x68])]===_0x202ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41f768(_0x5c80d4){_0x32edf2(_0x5c80d4)[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x51b6e6=>{if(!_0x51b6e6||_0x51b6e6[_0x202ff4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x202ff4([0x6f,0x6b]))return _0x202ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5da0a1(_0x304ed8(_0x442aa8+_0x552612))!=_0x51b6e6[_0x202ff4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x202ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x202ff4([0x56,0x61,0x6c,0x69,0x64]);})[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x421222=>(_0x2013f6(),_0x421222),()=>{const _0x12a3c4=_0x1d9d34();return null==_0x12a3c4?(_0x2013f6(),_0x202ff4([0x56,0x61,0x6c,0x69,0x64])):_0x202ff4(_0xbe3c4f-_0x12a3c4>(0x1accb62a^_0x545ce2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x26f35e)[_0x202ff4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26f35e(_0x202ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b2236=0x3ef6dcaa^_0x545ce2;function _0x2013f6(){const _0x57a13d=_0x202ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da0a1(_0x304ed8(_0x187de8)),_0x229f99=_0x5acbf1(_0x5da0a1(window[_0x202ff4([0x4d,0x61,0x74,0x68])][_0x202ff4([0x63,0x65,0x69,0x6c])](_0xbe3c4f/_0x5b2236)));window[_0x202ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x202ff4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57a13d,_0x229f99);}function _0x1d9d34(){const _0x3d63c5=_0x202ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da0a1(_0x304ed8(_0x187de8)),_0x302339=window[_0x202ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x202ff4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d63c5);return _0x302339?window[_0x202ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5acbf1(_0x302339),0x10)*_0x5b2236:null;}function _0x32edf2(_0x166409){return new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x112a0a,_0xe16cb5)=>{_0x166409[_0x202ff4([0x74,0x68,0x65,0x6e])](_0x112a0a,_0xe16cb5),window[_0x202ff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe16cb5,0x3ec1e6ea^_0x545ce2);});}}_0x5b69b0[_0x202ff4([0x6f,0x6e])](_0x202ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b10ac,_0x26b089)=>{if(_0x26b089[0x0]!=_0x187de8)return _0x26f35e(_0x202ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26b089[0x1]={..._0x26b089[0x1],[_0x202ff4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x442aa8};},{[_0x202ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x202ff4([0x68,0x69,0x67,0x68])}),_0x5b69b0[_0x202ff4([0x6f,0x6e])](_0x202ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbc7697=>{_0x3b5c38(_0xbc7697[_0x202ff4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35517f=!0x0,_0x41f768(_0xbc7697[_0x202ff4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x202ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x202ff4([0x6c,0x6f,0x77])}),_0x54a404[_0x202ff4([0x74,0x68,0x65,0x6e])](()=>{_0x35517f||_0x26f35e(_0x202ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43b6b4(){return _0x5b69b0[_0x202ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x202ff4([0x76,0x69,0x65,0x77])][_0x202ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x202ff4([0x61,0x75,0x74,0x6f]);}function _0x2412a5(){_0x5b69b0[_0x202ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x202ff4([0x76,0x69,0x65,0x77])][_0x202ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x202ff4([0x61,0x75,0x74,0x6f]);}}function _0x2fdf52(_0x26f402){const _0x1fe021=[new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4944=>setTimeout(_0x3c4944,0x3ec90ce6^_0x545ce2)),_0x54a404[_0x202ff4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202a75=>{const _0x5e3cd6=0x3ec0322d^_0x545ce2,_0x1ad35d=_0x37f5cb[_0x202ff4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1bacc3(){_0x1ad35d[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e3cd6&&_0x202a75();}_0x1bacc3(),_0x1ad35d[_0x202ff4([0x6f,0x6e])](_0x202ff4([0x61,0x64,0x64]),_0x1bacc3);})),new window[(_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x510cbd=>{function _0x37e51f(){for(const _0xc8ebd7 in window)if(window[_0x202ff4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x202ff4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xc8ebd7))&&window[_0xc8ebd7]==_0x58cd78)return _0x510cbd();_0x5b69b0[_0x202ff4([0x73,0x74,0x61,0x74,0x65])]!=_0x202ff4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x202ff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37e51f,0x3ec021a2^_0x545ce2);}_0x269454(_0x202ff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x37e51f();})];return window[_0x202ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x202ff4([0x72,0x61,0x63,0x65])](_0x1fe021)[_0x202ff4([0x74,0x68,0x65,0x6e])](()=>_0x26f402);}async function _0x141da8(){if(await _0x54a404,_0x269454(_0x202ff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2cf534=_0x37f5cb[_0x202ff4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4e0098=_0x37f5cb[_0x202ff4([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])](_0x2cf534[_0x202ff4([0x69,0x64])]),_0x3b1c5a=_0x3b4cd3(_0x202ff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3b1c5a[_0x202ff4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2cf534['id'],_0x4e0098?_0x4e0098['id']:null,!0x0),_0x3b1c5a[_0x202ff4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x202ff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3b1c5a[_0x202ff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3b1c5a[_0x202ff4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x41fb97,void(_0x3b1c5a[_0x202ff4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x41fb97);}if(_0x269454(_0x202ff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x8c3c61=_0x3b4cd3(_0x202ff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x8c3c61[_0x202ff4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x202ff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x8c3c61[_0x202ff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x8c3c61[_0x202ff4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x41fb97,_0x8c3c61[_0x202ff4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x41fb97;}_0x5b69b0[_0x202ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x202ff4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41fb97,_0x5b69b0[_0x202ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x202ff4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41fb97,_0x5b69b0[_0x202ff4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x202ff4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe6cf6(){return _0x269454(_0x202ff4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b4cd3(_0x202ff4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x202ff4([0x73,0x74,0x61,0x74,0x65])]==_0x202ff4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf9166a(){return _0x269454(_0x202ff4([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 _0x13ffae(){return _0x269454(_0x202ff4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c6785(_0x40a439){const _0x454037=_0x4e6ec0();_0x5b69b0[_0x454037]=_0x202ff4([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])+_0x40a439,_0x40a439[_0x202ff4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x202ff4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4e6ec0()]=_0x58cd78),_0x40a439!=_0x202ff4([0x56,0x61,0x6c,0x69,0x64])&&_0x141da8();}function _0x4e6ec0(){const _0x210199=window[_0x202ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x202ff4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x202ff4([0x6e,0x6f,0x77])]())[_0x202ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x202ff4([0x2e]),'');let _0x55f8d0=_0x202ff4([0x68]);for(let _0x1ef39c=0x0;_0x1ef39c<_0x210199[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ef39c+=0x2){let _0xfc112e=window[_0x202ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x210199[_0x202ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ef39c,_0x1ef39c+0x2));_0xfc112e>=_0xf33d78[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfc112e-=_0xf33d78[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55f8d0+=_0xf33d78[_0xfc112e];}return _0x55f8d0;}function _0x246af1(){const _0x4e1899=_0x50877f[_0x202ff4([0x73,0x70,0x6c,0x69,0x74])](_0x202ff4([0x2e]));if(0x3!=_0x4e1899[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa04da3(_0x4e1899[0x1]);function _0xa04da3(_0x239b2d){const _0x17f827=_0x4ae860(_0x239b2d);return _0x17f827&&_0x3c2d0e()?_0x17f827:null;function _0x3c2d0e(){const _0x353aae=_0x17f827[_0x202ff4([0x6a,0x74,0x69])],_0x18d77f=window[_0x202ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353aae[_0x202ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353aae[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30fee2={..._0x17f827,[_0x202ff4([0x6a,0x74,0x69])]:_0x353aae[_0x202ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x353aae[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30fee2[_0x202ff4([0x76,0x63])],_0x304ed8(_0x30fee2)==_0x18d77f;}}}async function _0x598c6c(){let _0x1a6fee=!0x0;try{const _0x3666ad=_0x50877f[_0x202ff4([0x73,0x70,0x6c,0x69,0x74])](_0x202ff4([0x2e])),[_0x1cf03b,_0x217c74,_0x5bcf4d]=_0x3666ad;return _0x4738aa(_0x1cf03b),await _0x9b07cf(_0x1cf03b,_0x217c74,_0x5bcf4d),_0x1a6fee;}catch{return!0x1;}function _0x4738aa(_0x34b946){const _0x43ef79=_0x4ae860(_0x34b946);_0x43ef79&&_0x43ef79[_0x202ff4([0x61,0x6c,0x67])]==_0x202ff4([0x45,0x53,0x32,0x35,0x36])||(_0x1a6fee=!0x1);}async function _0x9b07cf(_0x51d96c,_0x37d2b3,_0x1bb3b1){const _0x30a7d7=window[_0x202ff4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x202ff4([0x66,0x72,0x6f,0x6d])](_0x133308(_0x1bb3b1),_0x1cb6a5=>_0x1cb6a5[_0x202ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x413b26=new window[(_0x202ff4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x202ff4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51d96c+_0x202ff4([0x2e])+_0x37d2b3),_0xb9efda=window[_0x202ff4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x202ff4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb9efda)return;const _0x27fd00=await _0xb9efda[_0x202ff4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x202ff4([0x6a,0x77,0x6b]),_0x4d067e,{[_0x202ff4([0x6e,0x61,0x6d,0x65])]:_0x202ff4([0x45,0x43,0x44,0x53,0x41]),[_0x202ff4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x202ff4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x202ff4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb9efda[_0x202ff4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x202ff4([0x6e,0x61,0x6d,0x65])]:_0x202ff4([0x45,0x43,0x44,0x53,0x41]),[_0x202ff4([0x68,0x61,0x73,0x68])]:{[_0x202ff4([0x6e,0x61,0x6d,0x65])]:_0x202ff4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27fd00,_0x30a7d7,_0x413b26)||(_0x1a6fee=!0x1);}}function _0x4ae860(_0x5de7e3){return _0x5de7e3[_0x202ff4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x202ff4([0x65,0x79]))?JSON[_0x202ff4([0x70,0x61,0x72,0x73,0x65])](_0x133308(_0x5de7e3)):null;}function _0x133308(_0x3f4812){return window[_0x202ff4([0x61,0x74,0x6f,0x62])](_0x3f4812[_0x202ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x202ff4([0x2b]))[_0x202ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x202ff4([0x2f])));}function _0x304ed8(_0x286ec9){let _0x2d5592=0x1505;function _0xa1c8c6(_0x195fde){for(let _0x1b7f57=0x0;_0x1b7f57<_0x195fde[_0x202ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b7f57++){const _0xb27c82=_0x195fde[_0x202ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b7f57);_0x2d5592=(_0x2d5592<<0x5)+_0x2d5592+_0xb27c82,_0x2d5592&=_0x2d5592;}}function _0x1af5bc(_0x369ad1){Array[_0x202ff4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x369ad1)?_0x369ad1[_0x202ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1af5bc):_0x369ad1&&typeof _0x369ad1==_0x202ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x202ff4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x369ad1)[_0x202ff4([0x73,0x6f,0x72,0x74])]()[_0x202ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38acd1,_0x4e5d11])=>{_0xa1c8c6(_0x38acd1),_0x1af5bc(_0x4e5d11);}):_0xa1c8c6(window[_0x202ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x369ad1));}return _0x1af5bc(_0x286ec9),_0x2d5592>>>0x0;}function _0x5da0a1(_0x4ed9bf){return _0x4ed9bf[_0x202ff4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x202ff4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x202ff4([0x30]));}function _0x5acbf1(_0x57c207){return _0x57c207[_0x202ff4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x202ff4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x202ff4([0x6a,0x6f,0x69,0x6e])]('');}function _0x269454(_0x1ec2b1){return _0x5b69b0[_0x202ff4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x202ff4([0x68,0x61,0x73])](_0x1ec2b1);}function _0x3b4cd3(_0xbcb724){return _0x5b69b0[_0x202ff4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x202ff4([0x67,0x65,0x74])](_0xbcb724);}function _0x41fb97(){}function _0x202ff4(_0x5c963e){return _0x5c963e['map'](_0x5a36c4=>String['fromCharCode'](_0x5a36c4))['join']('');}_0x2c6785(await _0xc209eb());}(this);}['createRevision'](_0x16be59){const _0x272f62=this['editor']['plugins']['get']('Users');return new h({'id':_0x16be59['id'],'name':_0x16be59['name'],'creator':_0x16be59['creatorId']?_0x272f62['getUser'](_0x16be59['creatorId']):null,'diffData':_0x16be59['diffData']||_0x16be59['data'],'authors':_0x16be59['authorsIds']['map'](_0x120863=>_0x272f62['getUser'](_0x120863)),'createdAt':new Date(_0x16be59['createdAt']),'attributes':_0x16be59['attributes'],'fromVersion':_0x16be59['fromVersion'],'toVersion':_0x16be59['toVersion']});}['addRevision'](_0x476176,_0x186911=0x0){this['_revisions']['add'](_0x476176,_0x186911);}['getRevision'](_0x269ea0){return this['_revisions']['get'](_0x269ea0);}['getRevisions'](_0x5702c3={'toJSON':!0x1}){const _0x2f3e0e=Array['from'](this['_revisions']);return _0x2f3e0e['reverse'](),_0x5702c3['toJSON']?_0x2f3e0e['map'](_0x3063a9=>_0x3063a9['toJSON']()):_0x2f3e0e;}['getIndex'](_0x3ee9c8){return this['_revisions']['getIndex'](_0x3ee9c8);}['getEarlierVisibleRevision'](_0x56dbf6){const [,_0x6ce96]=this['getRevisionsIterator'](_0x56dbf6,{'direction':'earlier'});return _0x6ce96;}['getLaterVisibleRevision'](_0x4ac317){const [,_0x40f5f7]=this['getRevisionsIterator'](_0x4ac317,{'direction':'later'});return _0x40f5f7;}['getRevisionsInDiff'](_0x410031){const _0x336db6=[];for(const _0x7d50f6 of this['getRevisionsIterator'](_0x410031['newRevisionId']))if(_0x336db6['push'](_0x7d50f6),_0x7d50f6['id']===_0x410031['oldRevisionId'])break;return _0x336db6;}*['getRevisionsIterator'](_0x42a9c,{direction:_0xb29779='earlier',filter:_0x17ced1=()=>!0x0}={}){const _0xeea4b9='earlier'===_0xb29779?0x1:-0x1;let _0x299c98=this['_revisions']['get'](_0x42a9c),_0x6793ab=this['getIndex'](_0x299c98);for(yield _0x299c98;_0x299c98;){if(_0x6793ab+=_0xeea4b9,_0x299c98=this['getRevision'](_0x6793ab),!_0x299c98)return;_0x17ced1(_0x299c98)&&(yield _0x299c98);}}}class V extends _0x2e679e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x33a6fd,'c'],[_0x33be47,'a'],[_0x4dde15,'e'],[_0x4d4c79,'r'],[_0x8eef07,'u']]);['_typeCharToViewClass']=new Map([['c',_0x33a6fd],['a',_0x33be47],['e',_0x4dde15],['r',_0x4d4c79],['u',_0x8eef07]]);async['loadRevisionData'](_0x2be47c,_0x52edfb){if(_0x2be47c['diffData']||!_0x52edfb)return;const _0x5f2af3=this['editor']['config']['get']('collaboration.channelId'),_0x4926e6=await _0x52edfb['getRevision']({'channelId':_0x5f2af3,'revisionId':_0x2be47c['id']});_0x2be47c['diffData']=_0x4926e6['diffData'];}['getRevisionDocumentData'](_0x462728){const _0x5b7547={};for(const _0x27e956 in _0x462728['diffData']){if(_0x462728['diffData'][_0x27e956]['attachChange']&&!_0x462728['diffData'][_0x27e956]['attachChange']['isAttached'])continue;const _0x357deb=this['_removeRevisionMarkers'](JSON['parse'](_0x462728['diffData'][_0x27e956]['insertions'])),_0x179d05=this['editor']['editing']['view']['document'],_0x2cc472=new _0x2ad363(_0x179d05,_0x357deb['map'](_0x484578=>this['_getViewFromDiffObj'](_0x484578,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5b7547[_0x27e956]=this['editor']['data']['processor']['toData'](_0x2cc472),this['editor']['data']['processor']['useFillerType']('default');}return _0x5b7547;}['getRevisionRootsAttributes'](_0x58b39f){const _0x13ad49={};for(const _0x599612 in _0x58b39f['diffData'])_0x58b39f['diffData'][_0x599612]['attachChange']&&!_0x58b39f['diffData'][_0x599612]['attachChange']['isAttached']||(_0x13ad49[_0x599612]=_0x58b39f['diffData'][_0x599612]['attributesAfter']||{});return _0x13ad49;}['_getTypeCharForViewElement'](_0x104cac){return this['_viewClassToTypeChar']['get'](_0x104cac['constructor']);}['_getViewFromDiffObj'](_0x51f042,_0x24a47b){const _0x362ba8=this['editor']['editing']['view']['document'];if('string'==typeof _0x51f042)return new _0x2947d6(_0x362ba8,_0x51f042);{let _0x32adc9,_0x5d6be0;_0x5d6be0='u'==_0x51f042['type']||'r'==_0x51f042['type']?[]:_0x51f042['children']['map'](_0x54159b=>this['_getViewFromDiffObj'](_0x54159b,_0x24a47b));const _0x1d1e84=this['_typeCharToViewClass']['get'](_0x51f042['type'])||_0x130a68,_0x2c9ace=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x32adc9=new _0x1d1e84(_0x362ba8,_0x51f042['name'],_0x51f042['attributes'],_0x5d6be0),'u'==_0x51f042['type']&&_0x51f042['children'][0x0]){const _0x3852ff=_0x51f042['children'][0x0];if(_0x32adc9['render']=function(_0x3a39b2){const _0x28ca94=_0x3a39b2['createElement']('div');return _0x28ca94['innerHTML']=_0x3852ff,_0x28ca94['childNodes'][0x0];},_0x24a47b){const _0x478d78=new _0x2ad363(_0x362ba8);_0x478d78['_appendChild'](_0x32adc9);const _0x375aa1=Array['from'](_0x2c9ace['viewChildrenToDom'](_0x478d78,{'bind':!0x1})),_0x178413=_0x2c9ace['domDocument']['createElement']('div');_0x178413['append'](..._0x375aa1),_0x32adc9=Array['from'](_0x2c9ace['domChildrenToView'](_0x178413))[0x0];}}else{if('r'==_0x51f042['type']&&_0x51f042['children'][0x0]){const _0x229d22=_0x51f042['children'][0x0];if(_0x32adc9['render']=function(_0x220ceb){_0x220ceb['innerHTML']=_0x229d22;},_0x24a47b){const _0x2d63da=new _0x2ad363(_0x362ba8);_0x2d63da['_appendChild'](_0x32adc9);const _0x42c973=Array['from'](_0x2c9ace['viewChildrenToDom'](_0x2d63da,{'bind':!0x1})),_0xa9fd85=_0x2c9ace['domDocument']['createElement']('div');_0xa9fd85['append'](..._0x42c973);const _0x43d842=Array['from'](_0x2c9ace['domChildrenToView'](_0xa9fd85));_0x43d842['length']>0x1?_0x32adc9['_appendChild'](_0x43d842):_0x32adc9=_0x43d842[0x0];}}}if(_0x51f042['customProperties']){for(const [_0x35069f,_0x52e3f9]of _0x51f042['customProperties'])_0x32adc9['_setCustomProperty'](_0x35069f,_0x52e3f9);}const _0x110048=void 0x0===_0x51f042['fillerOffset']?null:_0x51f042['fillerOffset'];return null!==_0x110048&&(_0x32adc9['getFillerOffset']=()=>_0x110048),_0x32adc9;}}['_makeModelFromViewString'](_0x3fdc8e){const _0x2709db=JSON['parse'](_0x3fdc8e),_0x459a22=this['editor']['editing']['view']['document'],_0x1f592e=new _0x2ad363(_0x459a22,_0x2709db['map'](_0x10e7be=>this['_getViewFromDiffObj'](_0x10e7be,!0x0)));return this['editor']['data']['toModel'](_0x1f592e);}['_removeRevisionMarkers'](_0x2fc235){return(_0x2fc235=_0x2fc235['filter'](_0x24b439=>!_0x24b439['name']||'revision-start'!==_0x24b439['name']&&'revision-end'!==_0x24b439['name']))['forEach'](_0x124ab7=>{'string'!=typeof _0x124ab7&&(_0x124ab7['children']=this['_removeRevisionMarkers'](_0x124ab7['children']),_0x124ab7['attributes']=_0x124ab7['attributes']['filter'](_0x207281=>!_0x207281[0x0]['startsWith']('data-revision-')));}),_0x2fc235;}}function g(_0x152074,_0x542fa1,_0x4f9bdb){const t=_0x152074['t'];switch(_0x542fa1){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'},_0x4f9bdb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f9bdb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x2e679e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x554194,I,V,_0x5b5554];}constructor(_0x5b71f3){super(_0x5b71f3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5cd79f=_0x49f29a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5cd79f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2e07c3=this['repository']['getRevision'](0x0),_0x384638=_0x2e07c3&&null===_0x2e07c3['creator']?_0x2e07c3:null;if(this['_continueCurrentRevision']=!!_0x384638&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x7f5813=this['_source']['getCurrentRevisionId'](),_0x58ba23=this['repository']['getRevision'](_0x7f5813);if(_0x58ba23)this['_startingVersion']=_0x58ba23['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xe7a315=this['_source']['history']['_operations']['find'](_0x2dcbe4=>!_0x2dcbe4['_isInit']),_0x1f3176=_0xe7a315?_0xe7a315['baseVersion']:this['_source']['history']['version'];_0x2e07c3?(_0x2e07c3['toVersion']<_0x1f3176&&_0x2e07c3['_update']({'toVersion':_0x1f3176}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x384638['id'],this['_startingVersion']=_0x384638['fromVersion']):(this['_startingVersion']=_0x2e07c3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1f3176,this['_continueCurrentRevision']=!0x1);}}else _0x384638&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x384638['toVersion'],this['editor']['model']['document']['history']['version']),_0x384638['fromVersion']===_0x384638['toVersion']?(0x0!==_0x384638['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x384638['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x384638['id'],this['_startingVersion']=_0x384638['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',_0x1c683b=>!_0x1c683b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55f46c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a30c6;for(const _0x559bbd in _0x55f46c){const _0x41c98b=_0x559bbd,_0x1fddef=_0x55f46c[_0x41c98b];if('revisionHistoryLicenseKeyValid'==_0x1fddef||'revisionHistoryLicenseKeyInvalid'==_0x1fddef||'revisionHistoryLicenseKeyExpired'==_0x1fddef||'revisionHistoryLicenseKeyDomainLimit'==_0x1fddef||'revisionHistoryLicenseKeyNotAllowed'==_0x1fddef||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fddef||'revisionHistoryLicenseKeyTrialLimit'==_0x1fddef||'revisionHistoryLicenseKeyUsageLimit'==_0x1fddef){delete _0x55f46c[_0x41c98b],_0x5a30c6=_0x1fddef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5a30c6&&_0x55f46c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5a30c6&&_0x55f46c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5a30c6&&_0x55f46c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5a30c6&&_0x55f46c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a30c6&&_0x55f46c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5a30c6&&_0x55f46c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5a30c6&&_0x55f46c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x47c7ca=this['repository']['getRevision'](0x0),_0x2983b2=await this['getRevisionDocumentData'](_0x47c7ca),_0x3ee2af=await this['getRevisionRootsAttributes'](_0x47c7ca);this['_replaceEditorDataWithRevisionData'](_0x2983b2,_0x3ee2af);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x48fbf4){this['_source']=_0x48fbf4;}async['update'](){const _0x700dca=await this['_source']['getLatestVersion']();if(_0x700dca>this['currentRevision']['toVersion']){await this['_loadState']();const _0x137152=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x700dca});_0x137152['authors']=_0x137152['authorsIds']['map'](_0xaf28a8=>this['editor']['plugins']['get']('Users')['getUser'](_0xaf28a8)),this['currentRevision']['_update'](_0x137152);}}async['saveRevision'](_0x136d0f={},_0x550191=null){const _0x525a03=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x550191>this['currentRevision']['toVersion']&&(_0x550191=null),null===_0x550191&&(_0x550191=await this['_source']['getLatestVersion']());const _0x13ec1d=this['_getFromVersion'](_0x550191),_0x4b3a05=this['buildRevisionData']({'from':_0x13ec1d,'to':_0x550191});if(this['currentRevision']['toVersion']<_0x550191){const _0x4fca24=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x550191,'to':_0x550191});_0x4fca24['authors']=[],_0x4fca24['authorsIds']=[],_0x4fca24['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4fca24,!0x0),delete _0x4fca24['authors'],_0x525a03['push'](_0x4fca24);}_0x136d0f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x136d0f['name']=_0x136d0f['name']||null,_0x136d0f['id']=_0x136d0f['id']||_0x49f29a(),_0x136d0f={..._0x136d0f,..._0x4b3a05};const _0x4452ea=this['addRevisionData'](_0x136d0f);_0x525a03['push'](_0x136d0f);const _0x384cfb=this['repository']['getIndex'](_0x4452ea);if(0x0!==_0x384cfb){const _0x1ac794=this['repository']['getRevision'](_0x384cfb-0x1);if(_0x1ac794['fromVersion']!==_0x550191){const _0x122d3b=this['_revisionDataBuilder']['getData'](_0x550191,_0x1ac794['toVersion']),_0x30ab4b={'id':_0x1ac794['id'],'diffData':_0x122d3b['diffData'],'authorsIds':_0x122d3b['authorsIds'],'authors':_0x122d3b['authorsIds']['map'](_0x477b40=>this['editor']['plugins']['get']('Users')['getUser'](_0x477b40)),'fromVersion':_0x550191};_0x1ac794===this['currentRevision']&&(_0x30ab4b['createdAt']=new Date(_0x136d0f['createdAt']['getTime']()+0xa)),_0x1ac794['_update'](_0x30ab4b,!0x0),delete _0x30ab4b['authors'],_0x525a03['push'](_0x30ab4b);}}if(this['adapter']){for(const _0x319737 of _0x525a03)this['_bufferUpdate'](_0x319737['id'],_0x319737,!0x0);this['sendBufferedUpdates']();}return _0x4452ea;}['addRevisionData'](_0x2a54e9){const _0x146559=this['repository']['createRevision'](_0x2a54e9);return this['adapter']&&_0x146559['on']('_update',(_0x585c66,_0x16fa9b,_0x34aa9d)=>{_0x34aa9d||(this['_bufferUpdate'](_0x16fa9b['id'],_0x16fa9b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x146559,this['_findInsertionIndex'](_0x146559)),_0x146559;}async['getRevisionDocumentData'](_0xbf7874){return await this['_utils']['loadRevisionData'](_0xbf7874,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xbf7874);}async['getRevisionRootsAttributes'](_0x29613a){return await this['_utils']['loadRevisionData'](_0x29613a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29613a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4b7810=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3a6f90=0x0;_0x3a6f90<_0x4b7810['length'];_0x3a6f90++){const _0xcf486f=_0x4b7810[_0x3a6f90];let _0x2c2402=!0x1;for(const _0x1bd506 of Object['keys'](_0xcf486f))void 0x0===_0xcf486f[_0x1bd506]?delete _0xcf486f[_0x1bd506]:'id'!==_0x1bd506&&(_0x2c2402=!0x0);_0x2c2402||(_0x4b7810[_0x3a6f90]=null);}if(_0x4b7810=_0x4b7810['filter'](_0x3835b6=>null!==_0x3835b6),!_0x4b7810['length'])return;for(let _0x2d75f1=0x0;_0x2d75f1<_0x4b7810['length'];_0x2d75f1++){const _0x1e9463=_0x4b7810[_0x2d75f1];void 0x0!==_0x1e9463['fromVersion']&&void 0x0===_0x1e9463['toVersion']&&(_0x1e9463['toVersion']=this['repository']['getRevision'](_0x1e9463['id'])['toVersion']),void 0x0!==_0x1e9463['toVersion']&&void 0x0===_0x1e9463['fromVersion']&&(_0x1e9463['fromVersion']=this['repository']['getRevision'](_0x1e9463['id'])['fromVersion']);}const _0x19e39c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4b7810,_0x19e39c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x20a9a1=>{if(_0x20a9a1){for(const _0x36536d of _0x20a9a1)this['setRevisionData']({'id':_0x36536d['id'],'createdAt':_0x36536d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x10db4d=null,from:_0x33df7e=null,to:_0x57890d=null}){_0x33df7e=null!==_0x33df7e?_0x33df7e:_0x10db4d['fromVersion'],_0x57890d=null!==_0x57890d?_0x57890d:_0x10db4d['toVersion'];const _0x3e05d6=this['_revisionDataBuilder']['getData'](_0x33df7e,_0x57890d),_0xdef086={'diffData':_0x3e05d6['diffData'],'authorsIds':_0x3e05d6['authorsIds'],'fromVersion':_0x33df7e,'toVersion':_0x57890d};if(!_0x10db4d||_0x57890d!==_0x10db4d['toVersion']){const _0x379322=_0x57890d-0x1,_0x35457b=this['_source']['history']['getOperation'](_0x379322);_0xdef086['createdAt']=_0x35457b&&_0x35457b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x33df7e===this['_loadedStateData']['fromVersion']){for(const _0x4aebbe of this['_loadedStateData']['authors'])_0xdef086['authorsIds']['includes'](_0x4aebbe['id'])||_0xdef086['authorsIds']['push'](_0x4aebbe['id']);}return _0xdef086;}['_bufferUpdate'](_0x324c02,_0x143051,_0xf7079d){if(this['_bufferedUpdates']['has'](_0x324c02)){const _0x593008=this['_bufferedUpdates']['get'](_0x324c02);_0x143051=_0xf7079d?{..._0x593008,..._0x143051}:{..._0x143051,..._0x593008};}this['_bufferedUpdates']['set'](_0x324c02,_0x143051);}['setRevisionData'](_0x53767d){const _0x3a5cb3=this['repository']['getRevision'](_0x53767d['id']);if(_0x53767d['createdAt']&&(_0x53767d['createdAt']=new Date(_0x53767d['createdAt'])),_0x53767d['authorsIds']){const _0x29c398=this['editor']['plugins']['get']('Users');_0x53767d['authors']=_0x53767d['authorsIds']['map'](_0x32004b=>_0x29c398['getUser'](_0x32004b));}_0x3a5cb3['_update'](_0x53767d,!0x0);}['_createInitialRevision'](_0x464cbe){const _0x205461=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x205461)this['_initialRevisionId']=_0x205461['id'];else{const _0x2a9f61=!this['editor']['model']['document']['roots']['find'](_0x81501b=>this['editor']['model']['hasContent'](_0x81501b)),_0xd5a3c1=this['editor']['plugins']['get']('Users')['me']['id'],_0xb7d512=g(this['editor']['locale'],_0x2a9f61?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x464cbe,'to':_0x464cbe,'id':this['_initialRevisionId'],'name':_0xb7d512,'creatorId':_0xd5a3c1});}}['_createCurrentRevision'](_0x5a6114){const _0x5de925=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5de925),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a6114,'to':_0x5a6114,'id':_0x5de925,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x35d215,_0x54c803){let _0x2e2a8f=this['editor']['config']['get']('initialData'),_0xe38bc6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2e2a8f){_0x2e2a8f={};for(const _0x3afdca of this['editor']['model']['document']['getRootNames']())_0x2e2a8f[_0x3afdca]='';}if('string'==typeof _0x2e2a8f&&(_0x2e2a8f={'main':_0x2e2a8f}),void 0x0===_0xe38bc6){_0xe38bc6={};for(const _0x11ca5b of this['editor']['model']['document']['getRootNames']())_0xe38bc6[_0x11ca5b]={};}let _0x14faec=!0x1;const _0x13edd1=Object['keys'](_0x2e2a8f),_0x2dd861=Object['keys'](_0x35d215);for(const _0x52d6c3 of _0x13edd1){if(_0x2e2a8f[_0x52d6c3]!==_0x35d215[_0x52d6c3]&&''!==_0x2e2a8f[_0x52d6c3]['trim']()){_0x14faec=!0x0;break;}if(!_0x1be76f(_0xe38bc6[_0x52d6c3],_0x54c803[_0x52d6c3])&&Object['keys'](_0xe38bc6[_0x52d6c3])['length']>0x0){_0x14faec=!0x0;break;}}_0x14faec||(_0x14faec=_0x2dd861['some'](_0x3e7643=>!this['editor']['model']['document']['getRoot'](_0x3e7643))),_0x14faec&&_0x519b15('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2e2a8f,'editorRootsAttributes':_0xe38bc6,'revisionData':_0x35d215,'revisionRootsAttributes':_0x54c803}),this['editor']['config']['set']('initialData',_0x35d215),this['editor']['config']['set']('rootsAttributes',_0x54c803);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x184e47=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x184e47['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xfd5f9e){const _0x5efc2d=this['repository']['getRevisions']();_0x5efc2d['reverse']();let _0x56da11=0x0;for(;_0x56da11<_0x5efc2d['length'];){const _0x4b8200=_0x5efc2d[_0x56da11];if(_0x4b8200===this['currentRevision']){_0x56da11++;continue;}if(_0x4b8200['id']===this['_initialRevisionId'])break;const _0x530c97=_0xfd5f9e['toVersion']-_0x4b8200['toVersion']||_0xfd5f9e['fromVersion']-_0x4b8200['fromVersion'];if(_0x530c97>0x0)break;if(_0x530c97<0x0)_0x56da11++;else{if(!_0xfd5f9e['creator']&&_0x4b8200['creator'])break;if(_0x4b8200['creator']||!_0xfd5f9e['creator']){if(_0xfd5f9e['createdAt']>_0x4b8200['createdAt'])break;_0x56da11++;}else _0x56da11++;}}return _0x56da11;}['_getFromVersion'](_0x4eada6){const _0x33fa2f=this['repository']['getRevisions']();_0x33fa2f['reverse'](),_0x33fa2f['shift']();const _0x1731cb=_0x33fa2f['find'](_0x275988=>_0x275988['toVersion']<=_0x4eada6)['toVersion'];return _0x1731cb<this['_startingVersion']?this['_startingVersion']:_0x1731cb;}['_makeRevision']({name:_0x182ce5,from:_0x4a0c3b,to:_0x3157ed,creatorId:_0x409fe4,id:_0x430acd}){const _0x1fcad9=this['buildRevisionData']({'from':_0x4a0c3b,'to':_0x3157ed});_0x1fcad9['name']=_0x182ce5,_0x1fcad9['creatorId']=_0x409fe4,_0x1fcad9['id']=_0x430acd;const _0xd2487d=this['addRevisionData'](_0x1fcad9);return this['adapter']&&this['_bufferUpdate'](_0x1fcad9['id'],_0x1fcad9,!0x0),_0xd2487d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b60f4){this['editor']=_0x1b60f4,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'](_0x53304e){this['source']=_0x53304e;const _0x2bdf7d=new Map(),_0x2868e0=new Map(),_0x2a7076=this['editor']['model']['document']['roots']['map'](_0x2a8f29=>_0x2a8f29['rootName']);for(const _0x47b501 of _0x2a7076){const _0x5d59da=this['editor']['model']['document']['getRoot'](_0x47b501),_0x50666d=N(_0x5d59da);_0x2bdf7d['set'](_0x47b501,_0x50666d),_0x2868e0['set'](_0x47b501,Object['fromEntries'](_0x5d59da['getAttributes']()));}const _0x429c11=Array['from'](this['editor']['model']['markers'])['map'](_0x2be1d9=>[_0x2be1d9['name'],_0x2be1d9['getRange']()]),_0x2434c4=this['source']['version'];this['_saveMetaData'](_0x2434c4,_0x2bdf7d,_0x429c11,_0x2868e0),this['_startingRevisionId']=this['_revisionId'];const _0x2973bd=new Map(),_0x543841=new Map();for(const _0x38c6d7 of _0x2a7076){const _0x5e1a2c=P(_0x38c6d7);_0x2973bd['set'](_0x38c6d7,_0x5e1a2c),_0x543841['set'](_0x38c6d7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2973bd,[],_0x543841);}['getData'](_0x203633,_0x373536){if(this['_lastFrom']===_0x203633&&this['_lastTo']<=_0x373536)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x373536,!0x0);else{if(!this['_savedMetaData']['has'](_0x203633)){const _0x155240=this['_getPreviousFrom'](_0x203633);this['_calculateMetaData'](_0x155240,_0x203633,!0x1);}this['_calculateMetaData'](_0x203633,_0x373536,!0x0);}return this['_lastFrom']=_0x203633,this['_lastTo']=_0x373536,this['_getState']();}['loadState'](_0x1d49d9){const _0x3a7613=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1d49d9['fromVersion'],this['_lastTo']=_0x1d49d9['toVersion'];for(const _0x1ea2d6 in _0x1d49d9['diffData']){const _0x5b29ce=_0x1d49d9['diffData'][_0x1ea2d6]['attachChange'],_0x40be4d=_0x4edbbf(_0x1d49d9['diffData'][_0x1ea2d6]['attributesBefore'])||{},_0x357bda=_0x3a7613['_makeModelFromViewString'](_0x1d49d9['diffData'][_0x1ea2d6]['deletions']);_0x357bda['rootName']=_0x1ea2d6,_0x357bda['_isAttached']=!_0x5b29ce||!_0x5b29ce['isAttached'],_0x357bda['isAttached']=()=>_0x357bda['_isAttached'],this['_baseRoots']['set'](_0x1ea2d6,_0x357bda),this['_baseRootsAttributes']['set'](_0x1ea2d6,_0x40be4d),_0x5b29ce&&this['_touchedRoots']['set'](_0x1ea2d6,_0x5b29ce);const _0x51fd70=this['_makeIdsRoot'](_0x357bda);this['_baseIdsRoots']['set'](_0x1ea2d6,_0x51fd70);for(const [_0x1683a2,_0x27f898]of _0x357bda['markers']){if(!_0x1683a2['startsWith']('revision:'))continue;const _0x5740ba=_0x1683a2['split'](':')[0x2];for(const _0x345709 of _0x27f898['getWalker']({'singleCharacters':!0x0})){const _0x44e67c=this['_getVidAttributeName'](_0x345709),_0x53e3e1='elementEnd'==_0x345709['type']?_0x345709['previousPosition']['path']['slice'](0x0,-0x1):_0x345709['previousPosition']['path'],_0x7acdd3=_0x51fd70['getNodeByPath'](_0x53e3e1)['getAttribute'](_0x44e67c);this['_touched']['set'](_0x7acdd3,{'userId':_0x5740ba});}}}this['_startingRevisionId']=this['_revisionId'];const _0x255882=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x92ec94=>!this['_touched']['has'](_0x92ec94));let _0x59b612=0x0;const _0x123d2d=new Map();for(const _0x27b552 in _0x1d49d9['diffData']){const _0x5234a2=_0x1d49d9['diffData'][_0x27b552]['attachChange'],_0x5d9202=_0x4edbbf(_0x1d49d9['diffData'][_0x27b552]['attributesAfter'])||{},_0x3c976e=_0x3a7613['_makeModelFromViewString'](_0x1d49d9['diffData'][_0x27b552]['insertions']);_0x3c976e['rootName']=_0x27b552,_0x3c976e['_isAttached']=!_0x5234a2||_0x5234a2['isAttached'],_0x3c976e['isAttached']=()=>_0x3c976e['_isAttached'],this['_diffRoots']['set'](_0x27b552,_0x3c976e),this['_diffRootsAttributes']['set'](_0x27b552,_0x5d9202);const _0x156306=this['_makeIdsRoot'](_0x3c976e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x27b552,_0x156306),_0x123d2d['set'](_0x27b552,_0x3c976e['isAttached']()?_0x5d9202:{});for(const [_0x2027a2,_0x35df4e]of _0x3c976e['markers']){if(!_0x2027a2['startsWith']('revision:'))continue;const _0x36eeed=_0x2027a2['split'](':')[0x2];for(const _0x382f95 of _0x35df4e['getWalker']({'singleCharacters':!0x0})){const _0x1b59fc=this['_getVidAttributeName'](_0x382f95),_0x7ddcac=this['_revisionId']++,_0x14d861='elementEnd'==_0x382f95['type']?_0x382f95['previousPosition']['path']['slice'](0x0,-0x1):_0x382f95['previousPosition']['path'];_0x156306['getNodeByPath'](_0x14d861)['_setAttribute'](_0x1b59fc,_0x7ddcac),this['_touched']['set'](_0x7ddcac,{'userId':_0x36eeed});}}for(const _0x2aad15 of this['editor']['model']['createRangeIn'](_0x3c976e)['getWalker']({'singleCharacters':!0x0})){const _0x197fa3=this['_getVidAttributeName'](_0x2aad15),_0x3a743c='elementEnd'==_0x2aad15['type']?_0x2aad15['previousPosition']['path']['slice'](0x0,-0x1):_0x2aad15['previousPosition']['path'],_0xb2e396=_0x156306['getNodeByPath'](_0x3a743c);_0xb2e396['getAttribute'](_0x197fa3)>0x0||_0xb2e396['_setAttribute'](_0x197fa3,_0x255882[_0x59b612++]);}for(const [_0x4d7417,_0x335d52]of _0x3c976e['markers'])_0x4d7417['startsWith']('revision:')||this['_markers']['set'](_0x4d7417,_0x335d52);}const _0x106bfa=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x106bfa),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x106bfa,0x1));const _0x2662f7=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2662f7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2662f7,0x1));const _0x28ae03=Array['from'](this['_diffRoots'])['map'](([_0x3fcd56,_0x52a478])=>[_0x3fcd56,N(_0x52a478)]);this['_saveMetaData'](this['_lastTo'],_0x28ae03,this['_markers'],_0x123d2d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5a904d,_0x51511e,_0x568c62,_0x35d339){const _0x28eeea=new Map(_0x51511e),_0x4c4983=new Map(_0x4edbbf(_0x35d339)),_0x37fb4a=new Map();for(const [_0x55fbaa,_0x4f6c24]of _0x568c62)_0x37fb4a['set'](_0x55fbaa,{'start':_0x4f6c24['start']['clone'](),'end':_0x4f6c24['end']['clone'](),'rootName':_0x4f6c24['root']['rootName']});this['_savedMetaData']['set'](_0x5a904d,{'roots':_0x28eeea,'markers':_0x37fb4a,'rootsAttributes':_0x4c4983});}['_removeMetaData'](_0x15f707){this['_savedMetaData']['delete'](_0x15f707);}['_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'](_0x10c117,_0x3f873d=null){let _0x572039=null;_0x10c117['is']('documentFragment')||(_0x572039=new ut(_0x10c117['name'],{'vid_start':null===_0x3f873d?this['_revisionId']++:_0x3f873d++}));const _0x48658d=[];for(const _0x5d4ffe of _0x10c117['getChildren']())if(_0x5d4ffe['is']('element')){_0x48658d['push'](this['_makeIdsRoot'](_0x5d4ffe,_0x3f873d));const _0x323f67=_0x48658d[_0x48658d['length']-0x1];null!==_0x3f873d&&(_0x3f873d=_0x323f67['is']('element','$text')?_0x323f67['getAttribute']('vid')+0x1:_0x323f67['getAttribute']('vid_end')+0x1);}else{for(let _0x76faac=0x0;_0x76faac<_0x5d4ffe['offsetSize'];_0x76faac++)_0x48658d['push'](new ut('$text',{'vid':null===_0x3f873d?this['_revisionId']++:_0x3f873d++}));}if(_0x10c117['is']('documentFragment')){const _0x2cd833=P(_0x10c117['rootName']);return _0x2cd833['_insertChild'](0x0,_0x48658d),_0x2cd833;}return _0x572039['_setAttribute']('vid_end',null===_0x3f873d?this['_revisionId']++:_0x3f873d++),_0x572039['_insertChild'](0x0,_0x48658d),_0x572039;}['_calculateMetaData'](_0x3ddfb2,_0x7bc0dd,_0x52b2f0){this['_reset']();const {roots:_0x115fb2,markers:_0x1a4416,rootsAttributes:_0x2ada21}=this['_savedMetaData']['get'](_0x3ddfb2);this['_baseRoots']=new Map(_0x115fb2),this['_baseRootsAttributes']=new Map(_0x4edbbf(_0x2ada21));for(const [_0x21c3ac,_0x2df5fb]of this['_baseRoots'])if('$graveyard'!==_0x21c3ac&&(this['_diffRoots']['set'](_0x21c3ac,N(_0x2df5fb)),this['_diffRootsAttributes']=new Map(_0x4edbbf(_0x2ada21)),_0x52b2f0)){const _0x1a2a90=this['_revisionId'];this['_idsRoots']['set'](_0x21c3ac,this['_makeIdsRoot'](_0x2df5fb)),this['_baseIdsRoots']['set'](_0x21c3ac,this['_makeIdsRoot'](_0x2df5fb,_0x1a2a90));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x52b2f0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x38f502,_0x50cabf]of _0x1a4416){const _0x22b033=this['_baseRoots']['get'](_0x50cabf['rootName']),_0x7e4239=this['_diffRoots']['get'](_0x50cabf['rootName']),_0x1b3a63=new ft(this['_fixPosition'](_0x50cabf['start'],_0x22b033),this['_fixPosition'](_0x50cabf['end'],_0x22b033)),_0xee560f=this['_fixRange'](_0x1b3a63,_0x7e4239);_0x22b033['markers']['set'](_0x38f502,_0x1b3a63),this['_markers']['set'](_0x38f502,_0xee560f);}this['_applyOperations'](_0x3ddfb2,_0x7bc0dd,_0x52b2f0);}['_applyOperations'](_0x3ab615,_0x28f844,_0x319345){for(const _0x5804d3 of this['source']['getOperations'](_0x3ab615,_0x28f844))this['_handleOperation'](_0x5804d3,_0x319345);for(const _0x586e93 of this['_diffRoots']['values']())_0x586e93['markers']['clear']();for(const [_0x306aad,_0x32fcbc]of this['_markers']){this['_diffRoots']['get'](_0x32fcbc['root']['rootName'])['markers']['set'](_0x306aad,_0x32fcbc['clone']());}const _0x898cce=new Map(),_0x451840=new Map();for(const [_0x2a4522,_0x5d3f2c]of this['_diffRoots'])_0x898cce['set'](_0x2a4522,N(_0x5d3f2c)),_0x451840['set'](_0x2a4522,this['_diffRootsAttributes']['get'](_0x2a4522));this['_saveMetaData'](_0x28f844,_0x898cce,this['_markers'],_0x451840);}['_getPreviousFrom'](_0x429fc5){const _0x20df36=Array['from'](this['_savedMetaData']['keys']());_0x20df36['sort']((_0x1da7b2,_0x163355)=>_0x1da7b2-_0x163355),_0x20df36['reverse']();for(const _0x20de84 of _0x20df36)if(_0x20de84<_0x429fc5)return _0x20de84;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4c1aa4,_0xff0d6a){const _0x4799eb=Array['from'](_0xff0d6a['markers'])['map'](([_0x510516,_0x36f579])=>[_0x510516,this['_fixRange'](_0x36f579,_0x4c1aa4)]);_0x4c1aa4['markers']=new Map(_0x4799eb);}['_transformMarkers'](_0x5ec1c2){for(const _0x298303 of this['_markers']['values']()){const _0x5a41b8=_0x298303['getTransformedByOperation'](_0x5ec1c2),_0x55d56f=ft['_createFromRanges'](_0x5a41b8);_0x298303['start']=_0x55d56f['start'],_0x298303['end']=_0x55d56f['end'];}}['_handleOperation'](_0x2e6686,_0xcb63b5){if('addRoot'!=_0x2e6686['type']&&'detachRoot'!=_0x2e6686['type']){if('insert'==_0x2e6686['type']){const _0x1d2c82=_0x2e6686['position']['root']['rootName'];this['_diffRoots']['has'](_0x1d2c82)||(this['_diffRoots']['set'](_0x1d2c82,P(_0x1d2c82,!0x0)),this['_diffRootsAttributes']['set'](_0x1d2c82,{}),_0xcb63b5&&this['_idsRoots']['set'](_0x1d2c82,P(_0x1d2c82,!0x0)));}else{if('addRootAttribute'==_0x2e6686['type']||'removeRootAttribute'==_0x2e6686['type']||'changeRootAttribute'==_0x2e6686['type'])return void this['_handleRootAttributeOperation'](_0x2e6686);'marker'==_0x2e6686['type']&&this['_handleMarkerOperation'](_0x2e6686);}if('marker'!==_0x2e6686['type']){const _0x457f6c=this['_cloneOperation'](_0x2e6686,this['_diffRoots']);_0x457f6c['_execute'](),this['_transformMarkers'](_0x457f6c);}if(_0xcb63b5)switch(_0x2e6686['type']){case'insert':this['_handleInsertOperation'](_0x2e6686);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e6686);break;case'merge':this['_handleMergeOperation'](_0x2e6686);break;case'split':this['_handleSplitOperation'](_0x2e6686);}}else this['_handleRootOperation'](_0x2e6686,_0xcb63b5);}['_cloneOperation'](_0x46fdde,_0x3ebae9){const _0x5a7ad2=_0x46fdde['clone']();return _0x5a7ad2['_authorId']=_0x46fdde['_authorId'],this['_fixOperation'](_0x5a7ad2,_0x3ebae9),_0x5a7ad2;}['_getBaseVids'](_0x66370e){return _0x66370e['map'](_0x2395d9=>{const _0x31ec54=this['_getVidAttributeName'](_0x2395d9);return Number(_0x2395d9['item']['getAttribute'](_0x31ec54));});}['_generateTape'](_0x3e3c1d,_0x213163){if(_0x3e3c1d['is']('element','$text'))_0x213163['push']({'item':_0x3e3c1d,'type':'text'});else{_0x3e3c1d['is']('element')&&_0x213163['push']({'item':_0x3e3c1d,'type':'elementStart'});for(const _0x41e4ac of _0x3e3c1d['getChildren']())this['_generateTape'](_0x41e4ac,_0x213163);_0x3e3c1d['is']('element')&&_0x213163['push']({'item':_0x3e3c1d,'type':'elementEnd'});}return _0x213163;}['_getState'](){const _0x23766c=new Map(this['_touched']),_0x488974=new Map(_0x23766c),_0x15a52e=new Map(),_0x48c59e={'insertions':{},'deletions':{}},_0x3df828={'insertions':{},'deletions':{}},_0x45be1c=new Map(),_0x4cfec6=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4cfec6['delete']('$graveyard');for(const _0x4b5692 of _0x4cfec6){const _0x224eaa=this['_diffRoots']['get'](_0x4b5692)||P(_0x4b5692,!0x1),_0x1567b2=this['_baseRoots']['get'](_0x4b5692)||P(_0x4b5692,!0x1);_0x224eaa['isAttached']()||_0x1567b2['isAttached']()?(_0x48c59e['insertions'][_0x4b5692]=N(_0x224eaa),_0x48c59e['deletions'][_0x4b5692]=N(_0x1567b2),this['_copyMarkers'](_0x48c59e['deletions'][_0x4b5692],_0x1567b2),this['_copyMarkers'](_0x48c59e['insertions'][_0x4b5692],_0x224eaa),_0x3df828['insertions'][_0x4b5692]=this['_generateTape'](this['_idsRoots']['get'](_0x4b5692),[]),_0x3df828['deletions'][_0x4b5692]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b5692)||P(_0x4b5692,!0x1),[])):_0x4cfec6['delete'](_0x4b5692);}for(const _0x20634d of _0x4cfec6){const _0x535132=_0x3df828['insertions'][_0x20634d];for(const _0x4aaab1 of _0x535132){const _0x127981=this['_getVidAttributeName'](_0x4aaab1),_0x6f3d7=_0x4aaab1['item']['getAttribute'](_0x127981);_0x488974['delete'](_0x6f3d7),_0x6f3d7>=this['_startingRevisionId']&&_0x15a52e['set'](_0x6f3d7,_0x23766c['get'](_0x6f3d7));}}for(const _0x40fec1 of _0x4cfec6){const _0x3160f3=_0x3df828['insertions'][_0x40fec1],_0x2d4128=this['_getBaseVids'](_0x3df828['deletions'][_0x40fec1]);let _0x5acc1b=0x0;for(const _0x53983a of _0x3160f3){const _0x10c77f=this['_getVidAttributeName'](_0x53983a),_0x50e7b3=_0x53983a['item']['getAttribute'](_0x10c77f);if(!_0x15a52e['has'](_0x50e7b3)&&!_0x45be1c['has'](_0x50e7b3)){if(_0x488974['has'](_0x50e7b3))_0x5acc1b++;else{if(_0x50e7b3!=_0x2d4128[_0x5acc1b]){const _0x54ddbc=_0x23766c['get'](_0x50e7b3)||_0x23766c['get'](_0x2d4128[_0x5acc1b]);for(;_0x50e7b3!=_0x2d4128[_0x5acc1b];)_0x488974['has'](_0x2d4128[_0x5acc1b])||(_0x45be1c['set'](_0x2d4128[_0x5acc1b],_0x54ddbc),_0x23766c['set'](_0x2d4128[_0x5acc1b],_0x54ddbc)),_0x5acc1b++;}_0x5acc1b++;}}}}for(const _0x42cc58 of _0x4cfec6){const _0x13fc6b=_0x3df828['insertions'][_0x42cc58];for(const _0x34bb12 of _0x13fc6b){const _0x2b4c7e=this['_getVidAttributeName'](_0x34bb12),_0x4d511b=_0x34bb12['item']['getAttribute'](_0x2b4c7e);if(_0x45be1c['has'](_0x4d511b)){const _0x593d9c=_0x45be1c['get'](_0x4d511b);_0x488974['has'](_0x4d511b)||_0x488974['set'](_0x4d511b,{..._0x593d9c}),_0x15a52e['set'](_0x4d511b,{..._0x593d9c});}}}for(const _0x14cc3e of _0x488974['keys']())_0x14cc3e>=this['_startingRevisionId']&&_0x488974['delete'](_0x14cc3e);const _0x44eddd=new Map();for(const _0x1f77db of _0x4cfec6){let _0x39e5a5=_0x3df828['insertions'][_0x1f77db];for(const _0x30aa03 of _0x39e5a5)if(_0x30aa03['item']['is']('element','tableCell')){const _0x4a12aa=this['_getVidAttributeName'](_0x30aa03),_0x189ed5=_0x30aa03['item']['getAttribute'](_0x4a12aa);if(_0x15a52e['has'](_0x189ed5)){const _0x35dfaa=_0x30aa03['item']['parent']['parent']['getAttribute']('vid_start'),_0x11144e=_0x44eddd['get'](_0x35dfaa)||new Set();_0x11144e['add'](_0x15a52e['get'](_0x189ed5)['userId']),_0x44eddd['set'](_0x35dfaa,_0x11144e);}}_0x39e5a5=_0x3df828['deletions'][_0x1f77db];for(const _0x30b8c5 of _0x39e5a5)if(_0x30b8c5['item']['is']('element','tableCell')){const _0x301cca=this['_getVidAttributeName'](_0x30b8c5),_0xc5ccab=_0x30b8c5['item']['getAttribute'](_0x301cca);if(_0x488974['has'](_0xc5ccab)){const _0x1d0bc7=_0x30b8c5['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c8a10=_0x44eddd['get'](_0x1d0bc7)||new Set();_0x1c8a10['add'](_0x488974['get'](_0xc5ccab)['userId']),_0x44eddd['set'](_0x1d0bc7,_0x1c8a10);}}for(const _0x53a525 of _0x44eddd['keys']())(_0x15a52e['has'](_0x53a525)||_0x488974['has'](_0x53a525))&&_0x44eddd['delete'](_0x53a525);}for(const _0x449aad of _0x4cfec6){const _0x5b5b33=_0x3df828['insertions'][_0x449aad];let _0x4a3f02=null,_0x293611=null;for(const _0x44b744 of _0x5b5b33){const _0x115b6c=this['_getVidAttributeName'](_0x44b744),_0x23bd43=_0x44b744['item']['getAttribute'](_0x115b6c),_0x1ce3fd=_0x44eddd['get'](_0x23bd43);_0x1ce3fd&&'elementStart'==_0x44b744['type']&&(_0x4a3f02=Array['from'](_0x1ce3fd)[0x0],_0x293611=_0x44b744['item']['getAttribute']('vid_end')),_0x4a3f02&&(_0x488974['set'](_0x23bd43,{'userId':_0x4a3f02}),_0x15a52e['set'](_0x23bd43,{'userId':_0x4a3f02})),_0x23bd43==_0x293611&&(_0x4a3f02=null,_0x293611=null);}}const _0x5745d2={},_0x4c8a13=new Set();for(const _0x418247 of _0x4cfec6){const _0x2075d9=_0x48c59e['deletions'][_0x418247],_0x1e8f07=_0x48c59e['insertions'][_0x418247];for(const {userId:_0x273679}of this['_touchedMarkers']['values']())null!==_0x273679&&_0x4c8a13['add'](_0x273679);for(const {userId:_0x39e18d}of this['_touchedRoots']['values']())null!==_0x39e18d&&_0x4c8a13['add'](_0x39e18d);this['_markChanges'](_0x1e8f07,_0x3df828['insertions'][_0x418247],_0x15a52e,'insertion',_0x4c8a13),this['_markChanges'](_0x2075d9,_0x3df828['deletions'][_0x418247],_0x488974,'deletion',_0x4c8a13),_0x5745d2[_0x418247]={'insertions':this['_prepareViewToSave'](_0x1e8f07),'deletions':this['_prepareViewToSave'](_0x2075d9),'attachChange':this['_touchedRoots']['get'](_0x418247)||null,'attributesBefore':_0x4edbbf(this['_baseRootsAttributes']['get'](_0x418247))||{},'attributesAfter':_0x4edbbf(this['_diffRootsAttributes']['get'](_0x418247))};}return{'diffData':_0x5745d2,'authorsIds':Array['from'](_0x4c8a13)};}['_processRootBeforeSave'](_0x40c508){for(const [,_0x47b718]of _0x40c508['markers']){const _0x25ee12=_0x47b718['start']['getAncestors']()['filter'](_0x9057a9=>'tableCell'==_0x9057a9['name']);for(const _0x3882c3 of _0x25ee12)0x1==_0x3882c3['childCount']&&_0x3882c3['getChild'](0x0)['is']('element','paragraph')&&_0x3882c3['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x47445c){this['_processRootBeforeSave'](_0x47445c);const _0x3d6d38=this['editor']['data']['toView'](_0x47445c,{}),_0x4d6a3a=Array['from'](_0x3d6d38['getChildren']())['map'](_0x32eedf=>this['_getViewJson'](_0x32eedf));return JSON['stringify'](_0x4d6a3a);}['_getViewJson'](_0x1c126e){if(_0x1c126e['is']('$text'))return _0x1c126e['data'];{const _0x231b02=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4a1d7f=_0x1c126e,_0x26b1c0=this['editor']['data']['htmlProcessor']['domConverter'],_0x4e18e7={'type':_0x231b02['_getTypeCharForViewElement'](_0x4a1d7f),'name':_0x4a1d7f['name'],'attributes':Array['from'](_0x4a1d7f['getAttributes']()),'children':Array['from'](_0x4a1d7f['getChildren']())['map'](_0x31f9dc=>this['_getViewJson'](_0x31f9dc))};if(_0x1c126e['is']('uiElement')&&'$comment'!=_0x1c126e['name']){const _0x1ce12c=_0x1c126e['render'](_0x26b1c0['domDocument'],_0x26b1c0);_0x4e18e7['children']['push'](_0x1ce12c['outerHTML']);}else{if(_0x1c126e['is']('rawElement')){const _0x29929d=_0x26b1c0['domDocument']['createElement'](_0x4a1d7f['name']);_0x1c126e['render'](_0x29929d,_0x26b1c0),_0x4e18e7['children']['push'](_0x29929d['innerHTML']);}}const _0x31328d=Array['from'](_0x4a1d7f['getCustomProperties']());_0x31328d['length']>0x0&&(_0x4e18e7['customProperties']=_0x31328d);const _0x315bc2=_0x4a1d7f['getFillerOffset']();return null!==_0x315bc2&&(_0x4e18e7['fillerOffset']=_0x315bc2),_0x4e18e7;}}['_markChanges'](_0x3d574a,_0x2dba8d,_0x348552,_0x3a35b2,_0x3d1ada){let _0x5044c3=null,_0x52cdd8=null,_0x10e0a8=0x0;const _0x3a4b63=this['editor']['model'];for(let _0x3ae141=0x0;_0x3ae141<_0x2dba8d['length'];_0x3ae141++){const _0x4b398f=this['_getVidAttributeName'](_0x2dba8d[_0x3ae141]),_0x4b99fa=_0x2dba8d[_0x3ae141]['item']['getAttribute'](_0x4b398f),_0x15f5f1=_0x348552['get'](_0x4b99fa),_0x399c35=_0x3ae141==_0x2dba8d['length']-0x1;(!_0x5044c3&&_0x15f5f1&&(_0x5044c3=_0x15f5f1,_0x52cdd8=_0x2dba8d[_0x3ae141]),_0x5044c3&&(!_0x15f5f1||_0x15f5f1['userId']!=_0x5044c3['userId']))&&(_0x199e08(_0x15f5f1,F(_0x52cdd8,_0x3d574a,_0x3a4b63),F(_0x2dba8d[_0x3ae141],_0x3d574a,_0x3a4b63)),_0x5044c3=_0x15f5f1||null,_0x52cdd8=_0x15f5f1?_0x2dba8d[_0x3ae141]:null),_0x5044c3&&_0x399c35&&_0x199e08(_0x15f5f1,F(_0x52cdd8,_0x3d574a,_0x3a4b63),B(_0x2dba8d[_0x3ae141],_0x3d574a,_0x3a4b63));}function _0x199e08(_0x29f75b,_0xb07a8e,_0x2eb824){const _0x1607da=_0x5044c3['userId'],_0x1fabc5='revision:'+_0x3a35b2+':'+_0x1607da+':'+_0x10e0a8++,_0x45175c=_0x3a4b63['createRange'](_0xb07a8e,_0x2eb824);_0x3d574a['markers']['set'](_0x1fabc5,_0x45175c),null!==_0x1607da&&_0x3d1ada['add'](_0x1607da);}}['_getVidAttributeName'](_0x39d2cd){switch(_0x39d2cd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5d5a8b,_0x3dd3d0){_0x5d5a8b['baseVersion']=null;for(const _0x35f461 in _0x5d5a8b){const _0x1b210e=_0x5d5a8b[_0x35f461];if(_0x1b210e instanceof vt){const _0x23aa99=_0x3dd3d0['get'](_0x1b210e['root']['rootName']);_0x5d5a8b[_0x35f461]=this['_fixPosition'](_0x1b210e,_0x23aa99);}if(_0x1b210e instanceof ft){const _0x1804bf=_0x3dd3d0['get'](_0x1b210e['root']['rootName']);_0x5d5a8b[_0x35f461]=this['_fixRange'](_0x1b210e,_0x1804bf);}'root'===_0x35f461&&(_0x5d5a8b['root']=_0x3dd3d0['get'](_0x5d5a8b['root']['rootName']));}}['_fixRange'](_0x266f15,_0x34da95){return this['editor']['model']['createRange'](this['_fixPosition'](_0x266f15['start'],_0x34da95),this['_fixPosition'](_0x266f15['end'],_0x34da95));}['_fixPosition'](_0x1ad89a,_0x388ea9){return this['editor']['model']['createPositionFromPath'](_0x388ea9,_0x1ad89a['path'],_0x1ad89a['stickiness']);}['_handleInsertOperation'](_0x399bdc){const _0x59f679=this['_idsRoots']['get'](_0x399bdc['position']['root']['rootName']),_0x2d8097=this['_fixPosition'](_0x399bdc['position'],_0x59f679),_0x38570b=null===_0x399bdc['_authorId']?null:_0x399bdc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b4cd9=_0x2d8097['parent'],_0x181e30=this['_revisionId'],_0x201a6f=[];for(const _0x285e84 of _0x399bdc['nodes'])if(_0x285e84['is']('element'))_0x201a6f['push'](this['_makeIdsRoot'](_0x285e84));else{for(let _0x49b26b=0x0;_0x49b26b<_0x285e84['offsetSize'];_0x49b26b++)_0x201a6f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x100193=this['_revisionId'];for(let _0x3e5fed=_0x181e30;_0x3e5fed<_0x100193;_0x3e5fed++)this['_touched']['set'](_0x3e5fed,{'userId':_0x38570b});_0x4b4cd9['_insertChild'](_0x2d8097['offset'],_0x201a6f);}['_handleMoveOperation'](_0x3ac806){(_0x3ac806=this['_cloneOperation'](_0x3ac806,this['_idsRoots']))['_execute']();const _0x5d703c=null===_0x3ac806['_authorId']?null:_0x3ac806['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x422482=_0x3ac806['getMovedRangeStart'](),_0x1a509c=_0x422482['parent'],_0x55f55c=_0x422482['offset'];!function _0x3387a7(_0x555eda,_0x34eaa0,_0x45a82c,_0x30bdf3){for(let _0x273d78=_0x45a82c;_0x273d78<_0x30bdf3;_0x273d78++){const _0x5bbc81=_0x34eaa0['getChild'](_0x273d78);_0x5bbc81['is']('element','$text')?_0x555eda['set'](_0x5bbc81['getAttribute']('vid'),{'userId':_0x5d703c}):(_0x555eda['set'](_0x5bbc81['getAttribute']('vid_start'),{'userId':_0x5d703c}),_0x3387a7(_0x555eda,_0x5bbc81,0x0,_0x5bbc81['childCount']),_0x555eda['set'](_0x5bbc81['getAttribute']('vid_end'),{'userId':_0x5d703c}));}}(this['_touched'],_0x1a509c,_0x55f55c,_0x55f55c+_0x3ac806['howMany']);}['_handleMergeOperation'](_0x3bf14a){const _0x2ab272=null===(_0x3bf14a=this['_cloneOperation'](_0x3bf14a,this['_idsRoots']))['_authorId']?null:_0x3bf14a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x396222=_0x3bf14a['targetPosition']['parent'],_0x5139a9=_0x3bf14a['sourcePosition']['parent'],_0x546236=_0x396222['getAttribute']('vid_end'),_0x42d71a=_0x5139a9['getAttribute']('vid_start');_0x396222['_setAttribute']('vid_end',_0x5139a9['getAttribute']('vid_end')),_0x5139a9['_setAttribute']('vid_end',_0x546236),this['_touched']['set'](_0x42d71a,{'userId':_0x2ab272}),this['_touched']['set'](_0x546236,{'userId':_0x2ab272}),_0x3bf14a['_execute']();}['_handleSplitOperation'](_0x124f65){const _0x31fab7=null===(_0x124f65=this['_cloneOperation'](_0x124f65,this['_idsRoots']))['_authorId']?null:_0x124f65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a9e90=_0x124f65['graveyardPosition'],_0x22b068=_0x124f65['splitPosition']['parent'];_0x124f65['_execute']();const _0x445435=_0x22b068['getAttribute']('vid_end'),_0x19978b=_0x124f65['insertionPosition']['nodeAfter'];if(_0x5a9e90){const _0x17e116=_0x19978b['getAttribute']('vid_end'),_0x3d3687=_0x22b068['getAttribute']('vid_end');_0x22b068['_setAttribute']('vid_end',_0x17e116),_0x19978b['_setAttribute']('vid_end',_0x3d3687),this['_touched']['set'](_0x22b068['getAttribute']('vid_end'),{'userId':_0x31fab7}),this['_touched']['set'](_0x19978b['getAttribute']('vid_start'),{'userId':_0x31fab7});}else{const _0x4b1aca=this['_revisionId']++,_0x78fb23=this['_revisionId']++;_0x22b068['_setAttribute']('vid_end',_0x4b1aca),_0x19978b['_setAttribute']('vid_start',_0x78fb23),_0x19978b['_setAttribute']('vid_end',_0x445435),this['_touched']['set'](_0x4b1aca,{'userId':_0x31fab7}),this['_touched']['set'](_0x78fb23,{'userId':_0x31fab7});}}['_handleMarkerOperation'](_0x536efe){if(!_0x536efe['affectsData'])return;const _0x5dd884=(_0x536efe=this['_cloneOperation'](_0x536efe,this['_diffRoots']))['oldRange']?_0x536efe['oldRange']['root']:null,_0x5591fa=_0x536efe['newRange']?_0x536efe['newRange']['root']:null;_0x5dd884&&this['_markers']['delete'](_0x536efe['name']),_0x5591fa&&this['_markers']['set'](_0x536efe['name'],_0x536efe['newRange']['clone']());const _0x5a2d2b=null===_0x536efe['_authorId']?null:_0x536efe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa62168=_0x536efe['name'];if(!this['_touchedMarkers']['has'](_0xa62168))return void this['_touchedMarkers']['set'](_0xa62168,{'range':_0x536efe['oldRange'],'userId':_0x5a2d2b});const _0x411893=this['_touchedMarkers']['get'](_0xa62168),_0x508ff8=_0x411893['range'],_0x1677aa=_0x536efe['newRange'];null==_0x508ff8&&null==_0x1677aa||_0x508ff8&&_0x1677aa&&_0x508ff8['isEqual'](_0x1677aa)?this['_touchedMarkers']['delete'](_0x536efe['name']):_0x411893['userId']=_0x5a2d2b;}['_handleRootOperation'](_0x4a26c6,_0x41aa09){this['_diffRoots']['has'](_0x4a26c6['rootName'])?this['_diffRoots']['get'](_0x4a26c6['rootName'])['_isAttached']=_0x4a26c6['isAdd']:(this['_diffRoots']['set'](_0x4a26c6['rootName'],P(_0x4a26c6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4a26c6['rootName'],{}),_0x41aa09&&this['_idsRoots']['set'](_0x4a26c6['rootName'],P(_0x4a26c6['rootName'],!0x0)));const _0x11edb7=null===_0x4a26c6['_authorId']?null:_0x4a26c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32f6ad=this['_touchedRoots']['get'](_0x4a26c6['rootName']);_0x32f6ad&&_0x32f6ad['userId']===_0x11edb7?this['_touchedRoots']['delete'](_0x4a26c6['rootName']):this['_touchedRoots']['set'](_0x4a26c6['rootName'],{'userId':_0x11edb7,'isAttached':_0x4a26c6['isAdd']});}['_handleRootAttributeOperation'](_0x47c340){const _0x558e16=this['_diffRootsAttributes']['get'](_0x47c340['root']['rootName']);null===_0x47c340['newValue']?delete _0x558e16[_0x47c340['key']]:_0x558e16[_0x47c340['key']]=_0x47c340['newValue'];}}function N(_0x42acd0){const _0x271bce=P(_0x42acd0['rootName'],_0x42acd0['isAttached']());for(const _0x386a7a of _0x42acd0['getChildren']()){const _0x323fb5=_0x386a7a['_clone'](!0x0);_0x271bce['_appendChild'](_0x323fb5);}return _0x271bce;}function P(_0x53d837,_0x58f0a1=!0x0){const _0x156233=new gt();return _0x156233['rootName']=_0x53d837,_0x156233['_isAttached']=_0x58f0a1,_0x156233['isAttached']=()=>_0x156233['_isAttached'],_0x156233;}function F(_0x147416,_0xdf02ad,_0x39fdad){const _0xd42035='elementEnd'==_0x147416['type']?_0x39fdad['createPositionAt'](_0x147416['item'],'end'):_0x39fdad['createPositionBefore'](_0x147416['item']);return _0x39fdad['createPositionFromPath'](_0xdf02ad,_0xd42035['path'],_0xd42035['stickiness']);}function B(_0x3512ef,_0x242e31,_0x285cf9){const _0x29167c='elementStart'==_0x3512ef['type']?_0x285cf9['createPositionAt'](_0x3512ef['item'],0x0):_0x285cf9['createPositionAfter'](_0x3512ef['item']);return _0x285cf9['createPositionFromPath'](_0x242e31,_0x29167c['path'],_0x29167c['stickiness']);}class os extends _0x260500{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d82a9,_0x387914){super(_0x2d82a9),this['focusTracker']=new _0x1596b9(),this['keystrokes']=new _0x42aded(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x387914),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'](),_0x5ea188({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x31dffd=_0x148298=>_0x148298['stopPropagation']();this['keystrokes']['set']('arrowright',_0x31dffd),this['keystrokes']['set']('arrowleft',_0x31dffd),this['keystrokes']['set']('arrowup',_0x31dffd),this['keystrokes']['set']('arrowdown',_0x31dffd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x54ef6a){this['revisionNameInputView']['fieldView']['element']['value']=_0x54ef6a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4b6b5b){const _0x4a2d0c=new nt(this['locale'],ti),_0x3ad1b6=_0x4a2d0c['fieldView'];_0x3ad1b6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x9fc8f5=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4b6b5b&&(_0x9fc8f5+='\x20('+g(this['locale'],'optional')+')'),(_0x4a2d0c['label']=_0x9fc8f5,_0x3ad1b6['on']('input',()=>{this['revisionNameInputValue']=_0x3ad1b6['element']['value']['trim']();}),_0x4a2d0c);}}class f extends _0x2e679e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x23bc52=this['editor'],_0xa02889=_0x23bc52['plugins']['get']('RevisionTracker');_0x23bc52['ui']['componentFactory']['add']('revisionHistory',_0x2e1d3e=>{const _0x2be283=_0x1730b1(_0x2e1d3e),_0x56dcbd=_0x2be283['panelView']['children'],_0x33c0c8=new _0x3a0a39(_0x2e1d3e),_0x127de4=new te(_0x2e1d3e),_0x77b4cd=new _0x20b660(_0x2e1d3e),_0x1d52bc=new te(_0x2e1d3e),_0x2df99c=new _0x20b660(_0x2e1d3e);return _0x2be283['bind']('isEnabled')['to'](_0xa02889,'isReady',_0xa02889,'isEnabled',_0x23bc52,'isReadOnly',(_0x4fd11b,_0x49ab94,_0x305126)=>_0x4fd11b&&_0x49ab94&&!_0x305126),_0x2be283['buttonView']['set']({'icon':_0x24a8b9,'label':g(_0x2e1d3e,'Revision\x20history'),'tooltip':!0x0}),_0x77b4cd['set']({'label':g(_0x2e1d3e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x77b4cd['bind']('isEnabled')['to'](_0xa02889,'isReady',_0xa02889,'isEnabled',_0x23bc52,'isReadOnly',(_0x4b4530,_0x5d2e7d,_0x40bd00)=>_0x4b4530&&_0x5d2e7d&&!_0x40bd00),_0x77b4cd['on']('execute',()=>this['_showDialog']()),_0x2df99c['set']({'label':g(_0x2e1d3e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2df99c['bind']('isEnabled')['to'](_0xa02889,'isReady',_0x23bc52,'isReadOnly',(_0x31bd79,_0x1d265e)=>_0x31bd79&&!_0x1d265e),_0x2df99c['on']('execute',()=>{_0x23bc52['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2be283['isOpen']=!0x1,_0x23bc52['editing']['view']['focus']();}),_0x127de4['children']['add'](_0x77b4cd),_0x1d52bc['children']['add'](_0x2df99c),_0x33c0c8['role']='menu',_0x33c0c8['items']['addMany']([_0x127de4,_0x1d52bc]),_0x56dcbd['add'](_0x33c0c8),_0x2be283;}),_0x23bc52['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x366f1f=this['editor'],_0x232b72=_0x366f1f['locale'],_0x26c097=new _0x5a4f2b(_0x232b72),_0x270571=new _0x44405d(_0x232b72);_0x26c097['buttonView']['set']({'icon':_0x24a8b9,'label':g(_0x232b72,'Revision\x20history')});const _0x43bb50=new _0x3a7a33(_0x232b72,_0x26c097),_0x1b7bcd=new _0xcd78eb(_0x232b72);_0x1b7bcd['set']({'label':g(_0x232b72,'Save\x20current\x20revision')}),_0x1b7bcd['delegate']('execute')['to'](_0x26c097),_0x1b7bcd['on']('execute',()=>{this['_showDialog']();}),_0x43bb50['children']['add'](_0x1b7bcd),_0x270571['items']['add'](_0x43bb50);const _0x590725=new _0x3a7a33(_0x232b72,_0x26c097),_0x14f747=new _0xcd78eb(_0x232b72);return _0x14f747['set']({'label':g(_0x232b72,'Open\x20revision\x20history')}),_0x14f747['delegate']('execute')['to'](_0x26c097),_0x14f747['on']('execute',()=>{_0x366f1f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x590725['children']['add'](_0x14f747),_0x270571['items']['add'](_0x590725),_0x26c097['panelView']['children']['add'](_0x270571),_0x26c097;}['_showDialog'](){const _0x27de2f=this['editor'],_0x5a5889=_0x27de2f['locale'],_0x3e22f4=_0x27de2f['plugins']['get']('Dialog'),_0x173bb7=_0x27de2f['plugins']['get']('RevisionTracker');function _0x432041(_0x26dcf2){_0x27de2f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x26dcf2['revisionName']?_0x26dcf2['revisionNameInputView']['errorText']=g(_0x5a5889,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x27de2f['plugins']['get'](u)['saveRevision']({'name':_0x26dcf2['revisionName']}),_0x3e22f4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x432041(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3e22f4['show']({'id':'revisionSave','title':g(_0x5a5889,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x27de2f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3e22f4['hide']()},{'label':g(_0x27de2f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x37c270){_0x37c270['bind']('isEnabled')['to'](_0x173bb7,'isReady',_0x173bb7,'isEnabled',_0x27de2f,'isReadOnly',(_0x4cd14a,_0x2486ea,_0x24b8c3)=>_0x4cd14a&&_0x2486ea&&!_0x24b8c3);},'onExecute':()=>_0x432041(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3bab01=this['editor'],_0x448434=_0x3bab01['locale'];this['_saveRevisionFormView']=new os(_0x448434,_0x3bab01['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x260500{['changeId'];['_model'];constructor(_0x2089d9,_0x3a9ba2){super(_0x2089d9),this['_model']=_0x3a9ba2,this['changeId']=_0x3a9ba2['id'];const _0x2ca070=this['bindTemplate'],_0x11744e=g(_0x2089d9,_0x3a9ba2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3a9ba2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3a9ba2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2ca070['to']('type',_0x358b48=>'ck-revision-change__'+_0x358b48)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x11744e}]},{'text':'\x20'+_0x3a9ba2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5d44f9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1bf699){super(),this['id']=_0x1bf699['id']||_0x49f29a(),this['author']=_0x1bf699['author'],this['type']=_0x1bf699['type'],this['data']=_0x1bf699['data']||{},this['rootName']=_0x1bf699['rootName'],this['set']('createdAt',_0x1bf699['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x158ece,_0x19c586){this['newRevisionId']=_0x158ece,this['oldRevisionId']=_0x19c586,this['changes']=new _0x51e080();}['_setChanges'](_0x30865a){for(const _0x49626d of _0x30865a)this['changes']['add'](_0x49626d);}}class m extends _0x2e679e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x554194,_0x175e24,I,V];}constructor(_0xe8ab55){super(_0xe8ab55),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2286a9,_0x4d0a30,_0x4f426e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x160292=>{for(const _0x372e7c of this['editor']['editing']['view']['document']['roots'])_0x4f426e?_0x160292['removeClass']('ck-editor__editable__overlay',_0x372e7c):_0x160292['addClass']('ck-editor__editable__overlay',_0x372e7c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x28fb99=>null!==_0x28fb99),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5cc711,_0x10a90b,_0x1d580c)=>_0x5cc711&&_0x1d580c?_0x10a90b['changes']['getIndex'](_0x1d580c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xee1110,_0x10cc18)=>_0xee1110?_0x10cc18['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x175e24);}['init'](){const _0x2d8db4=this['editor'],_0x479be4=new pt(_0x2d8db4,{'direction':'backward'}),_0xe34af8=new pt(_0x2d8db4,{'direction':'forward'});(_0x2d8db4['commands']['add']('showPreviousChange',_0x479be4),_0x2d8db4['commands']['add']('showNextChange',_0xe34af8),_0x2d8db4['commands']['add']('restoreRevision',new wt(_0x2d8db4)),this['on']('change:numberOfChanges',()=>{_0x479be4['refresh'](),_0xe34af8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2d8db4['enableReadOnlyMode']('revision-viewer'),_0x2d8db4['plugins']['has']('WidgetToolbarRepository'))&&_0x2d8db4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5ce76d){return await this['_utils']['loadRevisionData'](_0x5ce76d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5ce76d);}async['getRevisionRootsAttributes'](_0x1d8d62){return await this['_utils']['loadRevisionData'](_0x1d8d62,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1d8d62);}async['compare'](_0x472473,_0x3a7d92,_0x59f43e=!0x1){if(!this['isEnabled'])return;const _0x546e6d=this['diff'],_0x4343fb=this['repository'],_0x3eff06='string'==typeof _0x472473?_0x4343fb['getRevision'](_0x472473):_0x472473,_0x1c3a12='string'==typeof _0x3a7d92?_0x4343fb['getRevision'](_0x3a7d92):_0x3a7d92,_0x23ceb1=_0x3eff06['id'],_0x63baa9=_0x1c3a12?_0x1c3a12['id']:null;if(!_0x59f43e&&this['diff']&&this['diff']['newRevisionId']===_0x23ceb1&&this['diff']['oldRevisionId']===_0x63baa9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x23ceb1,_0x63baa9);const _0x17bd80=this['_getRevisionsRange'](_0x3eff06,_0x1c3a12,!0x0)['map'](_0x379dfd=>this['_utils']['loadRevisionData'](_0x379dfd,this['adapter']));return _0x17bd80['push'](new Promise(_0x358cde=>{setTimeout(_0x358cde,0x14);})),Promise['all'](_0x17bd80)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x329c0a=this['_getDiff'](_0x23ceb1,_0x63baa9);for(const _0x491603 of _0x329c0a['changes'])this['_changeIdToChange']['set'](_0x491603['id'],_0x491603);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21ac6b=>{for(const _0x5889da of this['editor']['model']['document']['getRootNames']())_0x21ac6b['detachRoot'](_0x5889da);for(const _0x450cb2 of Object['keys'](_0x329c0a['model'])){const _0x14c073=_0x21ac6b['addRoot'](_0x450cb2);for(const _0x1a0b5b of Object['keys'](_0x329c0a['attributes'][_0x450cb2]))_0x21ac6b['setAttribute'](_0x1a0b5b,_0x329c0a['attributes'][_0x450cb2][_0x1a0b5b],_0x14c073);_0x21ac6b['insert'](_0x329c0a['model'][_0x450cb2],_0x14c073,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x329c0a['changes'])),this['isReady']=!0x0;})['catch'](_0x1a893a=>{console['error'](_0x1a893a),this['_cleanUp'](),_0x546e6d&&(this['diff']=_0x546e6d),this['isReady']=!0x0;});}['addRevisionData'](_0x183b5b,_0x400f1e){const _0x33c754=this['repository']['createRevision'](_0x183b5b);return _0x33c754['on']('_update',(_0xca04a4,_0x163d99,_0x37cac2)=>_0x400f1e(_0x163d99,_0x37cac2,_0x33c754)),this['repository']['addRevision'](_0x33c754),_0x33c754;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3accab=>{for(const _0x3383d6 of this['editor']['model']['document']['getRootNames']())_0x3accab['detachRoot'](_0x3383d6);});}['_sortAndFilterDiffChanges'](_0xbd6644){const _0x5e4cd4=[],_0x564d82=new Map();for(const _0x33e136 of this['editor']['model']['document']['getRootNames']()){const _0x1703a3=this['editor']['editing']['view']['getDomRoot'](_0x33e136);if(!_0x1703a3)continue;const _0x1ce81b=_0x1703a3['getClientRects']()['item'](0x0);_0x1ce81b&&(_0x5e4cd4['push'](_0x33e136),_0x564d82['set'](_0x33e136,_0x1ce81b));}return _0x5e4cd4['sort']((_0x1c76e0,_0x2a95be)=>{const _0x65f4c1=_0x564d82['get'](_0x1c76e0),_0x5b25eb=_0x564d82['get'](_0x2a95be);return _0x65f4c1['y']-_0x5b25eb['y']||_0x65f4c1['x']-_0x5b25eb['x'];}),(_0xbd6644=_0xbd6644['filter'](_0x5a5e39=>_0x5e4cd4['includes'](_0x5a5e39['rootName'])))['sort']((_0xfcb339,_0x41ed86)=>_0x5e4cd4['indexOf'](_0xfcb339['rootName'])-_0x5e4cd4['indexOf'](_0x41ed86['rootName'])),_0xbd6644;}['_makeTape'](_0x1ff619){const _0x255812=Array['from'](_0x1ff619['markers'])['filter'](([_0x4e1d02,_0x50334d])=>_0x4e1d02['startsWith']('revision:')&&!_0x50334d['isCollapsed']),_0xa375bd=Array['from'](this['editor']['model']['createRangeIn'](_0x1ff619)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x255812['length'])for(const _0x3963d7 of _0xa375bd){const [_0x462d94,_0x44ad85]=_0x255812[0x0],[,_0x238dcb,_0x15d082]=_0x462d94['split'](':');if(_0x44ad85['end']['isEqual'](_0x3963d7['nextPosition'])&&_0x255812['shift'](),(_0x3963d7['previousPosition']['isEqual'](_0x44ad85['start'])||_0x3963d7['previousPosition']['isAfter'](_0x44ad85['start']))&&('insertion'==_0x238dcb?_0x3963d7['isAdded']={'userId':_0x15d082}:'deletion'==_0x238dcb&&(_0x3963d7['isRemoved']={'userId':_0x15d082})),0x0==_0x255812['length'])break;}return _0xa375bd;}['_refreshStartEndIndex'](_0x236b12){const _0x15ead0=new Map();for(let _0x387d74=0x0;_0x387d74<_0x236b12['length'];_0x387d74++)'text'===_0x236b12[_0x387d74]['type']?(_0x236b12[_0x387d74]['item']['startIndex']=_0x387d74,_0x236b12[_0x387d74]['item']['endIndex']=_0x387d74):('elementStart'===_0x236b12[_0x387d74]['type']?_0x236b12[_0x387d74]['item']['startIndex']=_0x387d74:'elementEnd'===_0x236b12[_0x387d74]['type']&&(_0x236b12[_0x387d74]['item']['endIndex']=_0x387d74),_0x15ead0['set'](_0x236b12[_0x387d74]['id'],_0x387d74));for(const _0x5aeb3b of _0x15ead0['values']())'elementStart'===_0x236b12[_0x5aeb3b]['type']?_0x236b12[_0x5aeb3b]['item']['endIndex']=_0x15ead0['get'](_0x236b12[_0x5aeb3b]['pairId']):'elementEnd'===_0x236b12[_0x5aeb3b]['type']&&(_0x236b12[_0x5aeb3b]['item']['startIndex']=_0x15ead0['get'](_0x236b12[_0x5aeb3b]['pairId']));}['_processTape'](_0x39313c){for(let _0x140abe=0x0;_0x140abe<_0x39313c['length'];_0x140abe++){if('elementStart'===_0x39313c[_0x140abe]['type'])_0x39313c[_0x140abe]['item']['startIndex']=_0x140abe;else{if('elementEnd'===_0x39313c[_0x140abe]['type']){_0x39313c[_0x140abe]['item']['endIndex']=_0x140abe;const _0x61d520=_0x39313c[_0x140abe]['item']['startIndex'];_0x39313c[_0x61d520]['pairId']=_0x39313c[_0x140abe]['id'],_0x39313c[_0x140abe]['pairId']=_0x39313c[_0x61d520]['id'];}else _0x39313c[_0x140abe]['item']['startIndex']=_0x140abe,_0x39313c[_0x140abe]['item']['endIndex']=_0x140abe,_0x39313c[_0x140abe]['pairId']=null;}_0x39313c[_0x140abe]['markersStart']||(_0x39313c[_0x140abe]['markersStart']=[],_0x39313c[_0x140abe]['markersEnd']=[]);}}['_markInsertions'](_0x115181,_0x6b3af){const _0x31783a=_0x115181['filter'](_0x4d25ab=>!_0x4d25ab['isAdded']);for(let _0x419354=0x0;_0x419354<_0x6b3af['length'];_0x419354++)_0x6b3af[_0x419354]['isAdded']&&(_0x31783a[_0x419354]['isAdded']=_0x6b3af[_0x419354]['isAdded']);}['_getDiff'](_0x38add3,_0xd97d7b=null){const _0x3f8bf0=this['repository']['getRevision'](_0x38add3),_0x2d296d=_0xd97d7b?this['repository']['getRevision'](_0xd97d7b):null,_0x81a4b0=this['_getRevisionsRange'](_0x3f8bf0,_0x2d296d),_0x2c0263=_0x81a4b0[_0x81a4b0['length']-0x1],_0x9e9b58=new Map(),_0x496562={'model':{},'attributes':{},'changes':[]},_0x5cad41=new Set(),_0x5afc51=new Map();for(let _0x19ebb5=_0x81a4b0['length']-0x1;_0x19ebb5>=0x0;_0x19ebb5--){const _0xf01dd2=_0x81a4b0[_0x19ebb5];for(const _0x2d8f93 of Object['keys'](_0xf01dd2['diffData']))if(_0xf01dd2['diffData'][_0x2d8f93]['attachChange']){const _0x36ed8d=_0xf01dd2['diffData'][_0x2d8f93]['attachChange'];_0x36ed8d['isAttached']?(_0x5cad41['add'](_0x2d8f93),_0x5afc51['has'](_0x2d8f93)&&_0x5afc51['get'](_0x2d8f93)['userId']==_0x36ed8d['userId']?_0x5afc51['delete'](_0x2d8f93):_0x5afc51['set'](_0x2d8f93,_0x36ed8d)):_0x5afc51['has'](_0x2d8f93)?(_0x5cad41['delete'](_0x2d8f93),_0x5afc51['delete'](_0x2d8f93)):(_0x5cad41['add'](_0x2d8f93),_0x5afc51['set'](_0x2d8f93,_0x36ed8d));}else _0x5cad41['add'](_0x2d8f93);}for(const _0x3b1451 of _0x5cad41){const _0x23f24a=_0x5afc51['has'](_0x3b1451)&&!_0x5afc51['get'](_0x3b1451)['isAttached'];let _0x4d46de=_0x23f24a?_0x81a4b0['length']-0x1:0x0;const _0x25ea72=_0x23f24a?-0x1:0x1;for(;_0x81a4b0[_0x4d46de];){const _0x35a8a3=_0x81a4b0[_0x4d46de];if(_0x35a8a3['diffData'][_0x3b1451]){const _0x348c2f=_0x23f24a?_0x35a8a3['diffData'][_0x3b1451]['attributesBefore']:_0x35a8a3['diffData'][_0x3b1451]['attributesAfter'];_0x496562['attributes'][_0x3b1451]=_0x348c2f?_0x4edbbf(_0x348c2f):{};break;}_0x4d46de+=_0x25ea72;}}for(const _0x4a1b90 of _0x81a4b0){_0x4a1b90['model']={};for(const _0x32bdff of _0x4a1b90['authors'])_0x9e9b58['set'](_0x32bdff['id'],_0x32bdff);for(const _0x5c5f42 of _0x5cad41){const _0x22878e=_0x4a1b90['diffData'][_0x5c5f42]?_0x4a1b90['diffData'][_0x5c5f42]['insertions']:'[]',_0x40a041=_0x4a1b90['diffData'][_0x5c5f42]?_0x4a1b90['diffData'][_0x5c5f42]['deletions']:'[]';_0x4a1b90['model'][_0x5c5f42]={'insertions':this['_utils']['_makeModelFromViewString'](_0x22878e),'deletions':this['_utils']['_makeModelFromViewString'](_0x40a041)};}}for(const _0x1c5150 of _0x5cad41){let _0x5a44d2=null,_0xd810db=0x0;const _0x49eeea=new Map(Array['from'](_0x3f8bf0['model'][_0x1c5150]['insertions']['markers'])['filter'](([_0x1d1bc5])=>!_0x1d1bc5['startsWith']('revision:')));let _0x5ecf28=0x0;for(const _0xa1bcc2 of _0x81a4b0){const _0x3a6e59=this['_makeTape'](_0xa1bcc2['model'][_0x1c5150]['insertions']);_0xa1bcc2==_0x3f8bf0?(_0x5a44d2=_0x3a6e59,_0xd810db=_0x5a44d2['length'],_0x5a44d2['forEach'](_0x4f2e62=>{_0x4f2e62['id']=_0x5ecf28++;}),this['_processTape'](_0x5a44d2)):this['_markInsertions'](_0x5a44d2,_0x3a6e59);const _0x36eee6=_0x5a44d2['filter'](_0x28f75a=>!_0x28f75a['isAdded'])['map'](_0x5158d8=>_0x5158d8['id']);let _0x51dc28=0x0;const _0x38e2a7=this['_makeTape'](_0xa1bcc2['model'][_0x1c5150]['deletions']);_0x38e2a7['forEach'](_0x5431ba=>{_0x5431ba['isRemoved']?_0x5431ba['id']=_0xd810db++:_0x5431ba['id']=_0x36eee6[_0x51dc28++];}),this['_processTape'](_0x38e2a7),this['_setDistance'](_0x5a44d2,'isAdded'),this['_setDistance'](_0x38e2a7,'isRemoved'),_0xa1bcc2==_0x3f8bf0&&this['_markMarkers'](_0x5a44d2,_0x49eeea),_0x5a44d2=this['_joinTapes'](_0x5a44d2,_0x38e2a7),this['_refreshStartEndIndex'](_0x5a44d2),this['_setDistance'](_0x5a44d2,'isRemoved');}_0x5a44d2=_0x5a44d2['filter'](_0x1ec145=>!(_0x1ec145['isAdded']&&_0x1ec145['isRemoved']));const _0x4b7203=new Map(_0x2c0263['model'][_0x1c5150]['deletions']['markers']),_0x5e94ac=new Set(_0x49eeea['keys']());for(const _0x439290 of _0x4b7203['keys']())_0x5e94ac['delete'](_0x439290);this['_markSuggestions'](_0x5a44d2,_0x5e94ac),this['_fixObsoleteTags'](_0x5a44d2),_0x5a44d2=this['_removeMissingPairs'](_0x5a44d2),_0x5a44d2=this['_markMismatchedRemovedTags'](_0x5a44d2),_0x5a44d2=this['_removeUnsupportedChanges'](_0x5a44d2);const {root:_0x43afba,changes:_0x596583}=this['_makeModelFromTape'](_0x5a44d2,_0x9e9b58,_0x1c5150);_0x496562['model'][_0x1c5150]=_0x43afba;const _0x1cb518=_0x5afc51['get'](_0x1c5150);if(_0x1cb518){const _0xfc7aed=_0x9e9b58['get'](_0x1cb518['userId']),_0x4f1f3f=new r({'author':_0xfc7aed,'type':_0x1cb518['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c5150});_0x596583['unshift'](_0x4f1f3f),_0x496562['attributes'][_0x1c5150]['revisionHistoryAttachChange']=_0x4f1f3f['id'];}_0x496562['changes']=_0x496562['changes']['concat'](_0x596583);}return _0x496562;}['_markMarkers'](_0x26eb71,_0x44413c){for(let _0x23f416=0x0;_0x23f416<_0x26eb71['length'];_0x23f416++)for(const [_0x5022a8,_0x40f880]of _0x44413c)!_0x40f880['isCollapsed']&&_0x40f880['start']['isEqual'](_0x26eb71[_0x23f416]['previousPosition'])&&_0x26eb71[_0x23f416]['markersStart']['push'](_0x5022a8),_0x40f880['end']['isEqual'](_0x26eb71[_0x23f416]['nextPosition'])&&_0x26eb71[_0x23f416]['markersEnd']['push'](_0x5022a8);}['_joinTapes'](_0x483df2,_0x454956){let _0x22be5f=[],_0x3fd803=0x0,_0x1f7af8=0x0;for(;_0x3fd803<_0x483df2['length']||_0x1f7af8<_0x454956['length'];){const _0x24005a=_0x483df2[_0x3fd803]||{},_0x3f58a9=_0x454956[_0x1f7af8]||{};if(_0x24005a['id']==_0x3f58a9['id'])_0x3fd803++,_0x1f7af8++,_0x22be5f['push'](_0x24005a);else{if(_0x3f58a9['isRemoved']&&_0x24005a['isAdded']){const {commonTape:_0x5daadc,iEnd:_0x233e80,jEnd:_0xe9e9f7}=this['_threeWayMerge'](_0x483df2,_0x3fd803,_0x454956,_0x1f7af8);_0x22be5f=_0x22be5f['concat'](_0x5daadc),_0x3fd803=_0x233e80,_0x1f7af8=_0xe9e9f7;}else _0x3f58a9['isRemoved']?(_0x1f7af8++,_0x22be5f['push'](_0x3f58a9)):(_0x3fd803++,_0x22be5f['push'](_0x24005a));}}return _0x22be5f;}['_markSuggestions'](_0x4e1613,_0x4e7f98){const _0x7ff5f=[];for(let _0x2b5a74=0x0;_0x2b5a74<_0x4e1613['length'];_0x2b5a74++){for(let _0x2631e9=0x0;_0x2631e9<_0x4e1613[_0x2b5a74]['markersStart']['length'];_0x2631e9++){const _0x85650c=_0x4e1613[_0x2b5a74]['markersStart'][_0x2631e9];if(!_0x4e7f98['has'](_0x85650c))continue;const {group:_0x271fb6,type:_0xb1d5b,authorId:_0xd87791}=_0x38de6a(_0x85650c);'revision-suggestion'!=_0x271fb6||'insertion'!=_0xb1d5b&&'deletion'!=_0xb1d5b||(_0x7ff5f['unshift']({'type':_0xb1d5b,'name':_0x85650c,'userId':_0xd87791}),_0x4e1613[_0x2b5a74]['markersStart']['splice'](_0x2631e9,0x1),_0x2631e9--);}_0x21677b(_0x4e1613[_0x2b5a74]);for(let _0x431bcb=0x0;_0x431bcb<_0x4e1613[_0x2b5a74]['markersEnd']['length'];_0x431bcb++){const _0x4d3ed6=_0x4e1613[_0x2b5a74]['markersEnd'][_0x431bcb];if(!_0x4e7f98['has'](_0x4d3ed6))continue;const {group:_0x210acb,type:_0x299465}=_0x38de6a(_0x4d3ed6);if('revision-suggestion'!=_0x210acb||'insertion'!=_0x299465&&'deletion'!=_0x299465)continue;_0x4e1613[_0x2b5a74]['markersEnd']['splice'](_0x431bcb,0x1),_0x431bcb--;const _0x4a3ab5=_0x7ff5f['findIndex'](_0x2677ad=>_0x2677ad['name']==_0x4d3ed6);_0x4a3ab5>-0x1&&_0x7ff5f['splice'](_0x4a3ab5,0x1);}}function _0x38de6a(_0x191669){const _0x435c84=_0x191669['split'](':');return{'group':_0x435c84[0x0],'type':_0x435c84[0x1],'subType':_0x435c84['length']>=0x5?_0x435c84[0x2]:null,'id':_0x435c84['length']<0x5?_0x435c84[0x2]:_0x435c84[0x3],'authorId':_0x435c84['length']<0x5?_0x435c84[0x3]:_0x435c84[0x4],'markerCount':0x6==_0x435c84['length']?_0x435c84[0x5]:null};}function _0x21677b(_0xa4e6d2){for(let _0xb507fb=0x0;_0xb507fb<_0x7ff5f['length'];_0xb507fb++){if(_0xa4e6d2['isAdded']&&'insertion'==_0x7ff5f[_0xb507fb]['type']&&_0xa4e6d2['isAdded']['userId']==_0x7ff5f[_0xb507fb]['userId'])return _0xa4e6d2['isAddSuggestion']=_0x7ff5f[_0xb507fb],void delete _0xa4e6d2['isAdded'];if(!_0xa4e6d2['isAdded']&&!_0xa4e6d2['isRemoved']&&'deletion'==_0x7ff5f[_0xb507fb]['type'])return void(_0xa4e6d2['isRemoveSuggestion']=_0x7ff5f[_0xb507fb]);}}}['_setDistance'](_0x5604cd,_0x112465){let _0x44c8fd=0x0,_0x4e491f=!0x1;const _0x1669e3=new Map();for(const _0x427187 of _0x5604cd)_0x427187[_0x112465]?_0x4e491f&&(_0x44c8fd++,_0x4e491f=!0x1):(_0x44c8fd++,_0x4e491f=!0x0),_0x1669e3['set'](_0x427187['id'],_0x44c8fd);for(let _0x4823fb=0x0;_0x4823fb<_0x5604cd['length'];_0x4823fb++){if('isRemoved'==_0x112465&&_0x5604cd[_0x4823fb]['isAdded']||'isAdded'==_0x112465&&_0x5604cd[_0x4823fb]['isRemoved'])continue;if('text'==_0x5604cd[_0x4823fb]['type']){_0x5604cd[_0x4823fb]['distance']=0x0;continue;}const _0x5bca8f=_0x1669e3['get'](_0x5604cd[_0x4823fb]['pairId']),_0x496070=_0x1669e3['get'](_0x5604cd[_0x4823fb]['id']);_0x5604cd[_0x4823fb]['distance']=_0x5bca8f-_0x496070;}}['_getRevisionsRange'](_0x4658d8,_0x46e302,_0x5154f9=!0x1){const _0x5472db=[];let _0x4c338f=this['repository']['getIndex'](_0x4658d8),_0x175b86=this['repository']['getIndex'](_0x46e302);for(-0x1==_0x175b86&&(_0x175b86=this['repository']['_revisions']['length'],_0x5154f9=!0x1);_0x4c338f<_0x175b86;)_0x5472db['push'](this['repository']['getRevision'](_0x4c338f)),_0x4c338f++;return _0x5154f9&&_0x5472db['push'](this['repository']['getRevision'](_0x4c338f)),_0x5472db;}['_threeWayMerge'](_0x17febe,_0x433d0d,_0x3a2b74,_0x45cb47){const _0x5530c3=this['editor']['model']['schema'];let _0x35d3f7=_0x433d0d;for(;_0x17febe[_0x35d3f7]&&_0x17febe[_0x35d3f7]['isAdded'];)_0x35d3f7++;let _0x542fec=_0x45cb47;for(;_0x3a2b74[_0x542fec]&&_0x3a2b74[_0x542fec]['isRemoved'];)_0x542fec++;_0x1db108(_0x17febe,_0x433d0d,_0x35d3f7),_0x1db108(_0x3a2b74,_0x45cb47,_0x542fec);const _0x42c5f6=_0x3a2b74['slice'](_0x45cb47,_0x542fec)['concat'](_0x17febe['slice'](_0x433d0d,_0x35d3f7));return _0x42c5f6['sort']((_0x52a17f,_0x144369)=>_0x52a17f['side']!=_0x144369['side']?_0x52a17f['side']-_0x144369['side']:_0x52a17f['level']!=_0x144369['level']?_0x52a17f['level']-_0x144369['level']:_0x52a17f['distance']!=_0x144369['distance']?_0x144369['distance']-_0x52a17f['distance']:!!_0x52a17f['isAdded']!=!!_0x144369['isAdded']?-0x1==_0x52a17f['side']||0x0==_0x52a17f['side']?_0x52a17f['isAdded']?-0x1:0x1:_0x52a17f['isAdded']?0x1:-0x1:_0x52a17f['index']-_0x144369['index']),{'commonTape':_0x42c5f6,'iEnd':_0x35d3f7,'jEnd':_0x542fec};function _0x1db108(_0x333219,_0x3da495,_0x553d61){let _0x62e824=-0x1,_0xb6d241=Number['POSITIVE_INFINITY'],_0x42fd1f=!0x0;for(let _0x10344e=_0x3da495;_0x10344e<_0x553d61;_0x10344e++)if(_0x5530c3['isInline'](_0x333219[_0x10344e]['item'])||(_0x42fd1f=!0x1),_0x333219[_0x10344e]['item']['startIndex']<_0x3da495&&(_0x62e824=_0x10344e),_0x333219[_0x10344e]['item']['endIndex']>=_0x553d61){_0xb6d241=_0x10344e;break;}_0x42fd1f&&(_0x62e824=_0x553d61-0x1);for(let _0x38f8dd=_0x3da495;_0x38f8dd<_0x553d61;_0x38f8dd++)_0x333219[_0x38f8dd]['side']=_0x38f8dd<=_0x62e824?-0x1:_0x38f8dd<_0xb6d241?0x0:0x1,_0x333219[_0x38f8dd]['index']=_0x38f8dd;let _0x2f8c64=0x0;for(let _0x3ebc7f=_0x3da495;_0x3ebc7f<=_0x62e824;_0x3ebc7f++)0x0==_0x333219[_0x3ebc7f]['distance']?_0x333219[_0x3ebc7f]['level']=_0x2f8c64:(_0x2f8c64++,_0x333219[_0x3ebc7f]['level']=_0x2f8c64,_0x2f8c64++);for(let _0x153e65=_0x3da495;_0x153e65<_0x553d61;_0x153e65++)0x0==_0x333219[_0x153e65]['side']&&(_0x333219[_0x153e65]['level']=_0x2f8c64);_0x2f8c64=0x0;for(let _0x18ed25=_0x553d61-0x1;_0x18ed25>=_0xb6d241;_0x18ed25--)0x0==_0x333219[_0x18ed25]['distance']?_0x333219[_0x18ed25]['level']=_0x2f8c64:(_0x2f8c64--,_0x333219[_0x18ed25]['level']=_0x2f8c64,_0x2f8c64--);}}['_fixObsoleteTags'](_0x269cdf){const _0x2a5dd6=new Map(),_0x56079b=this['editor']['model']['schema'];for(let _0x2de1bd=0x1;_0x2de1bd<_0x269cdf['length'];_0x2de1bd++){let _0x737fbd,_0x3c1b11,_0x577a38;const _0x26205f=_0x269cdf[_0x2de1bd],_0x5ebfdd=_0x269cdf[_0x2de1bd-0x1];if('text'==_0x26205f['type'])continue;if(_0x26205f['type']!=_0x5ebfdd['type'])continue;if(!_0x56079b['isBlock'](_0x5ebfdd['item'])||_0x56079b['isLimit'](_0x5ebfdd['item']))continue;if(!_0x56079b['isBlock'](_0x26205f['item'])||_0x56079b['isLimit'](_0x26205f['item']))continue;if((_0x269cdf[_0x2de1bd]['isAdded']||_0x269cdf[_0x2de1bd]['isAddSuggestion'])&&_0x269cdf[_0x2de1bd-0x1]['isRemoved'])_0x737fbd=_0x269cdf[_0x2de1bd],_0x3c1b11=_0x269cdf[_0x2de1bd-0x1],_0x577a38=_0x2de1bd-0x1;else{if(!_0x269cdf[_0x2de1bd]['isRemoved']||!_0x269cdf[_0x2de1bd-0x1]['isAdded']&&!_0x269cdf[_0x2de1bd-0x1]['isAddSuggestion'])continue;_0x737fbd=_0x269cdf[_0x2de1bd-0x1],_0x3c1b11=_0x269cdf[_0x2de1bd],_0x577a38=_0x2de1bd;}const _0x53a24a=_0x737fbd['level']==_0x3c1b11['level'],_0x19fd49=Math['abs'](_0x737fbd['level'])<Math['abs'](_0x3c1b11['level'])&&0x0==_0x3c1b11['distance'];(_0x53a24a||_0x19fd49)&&(_0x2a5dd6['set'](_0x3c1b11['id'],_0x737fbd['id']),_0x269cdf['splice'](_0x577a38,0x1),_0x2de1bd--,_0x737fbd['isAdded']=!0x1);}for(let _0x26314b=0x0;_0x26314b<_0x269cdf['length'];_0x26314b++)_0x2a5dd6['has'](_0x269cdf[_0x26314b]['pairId'])&&(_0x269cdf[_0x26314b]['pairId']=_0x2a5dd6['get'](_0x269cdf[_0x26314b]['pairId']));}['_removeMissingPairs'](_0x32b1c9){const _0x467347=new Set(_0x32b1c9['map'](_0x4a9e56=>_0x4a9e56['id']));for(let _0x7def7f=0x0;_0x7def7f<_0x32b1c9['length'];_0x7def7f++)_0x467347['has'](_0x32b1c9[_0x7def7f]['pairId'])||0x0==_0x32b1c9[_0x7def7f]['distance']||(_0x32b1c9[_0x7def7f]['isIncorrect']=!0x0);return _0x32b1c9['filter'](_0xfb1ee1=>!_0xfb1ee1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26561d){const _0x319521=new Set();for(let _0x5764db=0x0;_0x5764db<_0x26561d['length'];_0x5764db++){if(_0x319521['has'](_0x26561d[_0x5764db]['id'])&&_0x26561d[_0x5764db]['isRemoved']&&(_0x26561d[_0x5764db]['isIncorrect']=!0x0),_0x26561d[_0x5764db]['isIncorrect'])continue;if(0x0==_0x26561d[_0x5764db]['distance'])continue;if('elementStart'!=_0x26561d[_0x5764db]['type'])continue;if(null==_0x26561d[_0x5764db]['pairId'])continue;let _0x41a3c9=_0x5764db+0x1,_0xa85dda=0x0;for(;_0x26561d[_0x41a3c9]['id']!=_0x26561d[_0x5764db]['pairId'];)'elementStart'==_0x26561d[_0x41a3c9]['type']?_0xa85dda++:'elementEnd'==_0x26561d[_0x41a3c9]['type']&&_0xa85dda--,_0x41a3c9++;if(0x0!=_0xa85dda){if(_0x26561d[_0x5764db]['isRemoved'])_0x26561d[_0x5764db]['isIncorrect']=!0x0;else{for(;_0x41a3c9!=_0x5764db;)_0x26561d[_0x41a3c9]['isRemoved']&&0x0!=_0x26561d[_0x41a3c9]['distance']&&(_0x26561d[_0x41a3c9]['isIncorrect']=!0x0,_0x319521['add'](_0x26561d[_0x41a3c9]['pairId'])),_0x41a3c9--;}}}return _0x26561d['filter'](_0x1a9f5d=>!_0x1a9f5d['isIncorrect']);}['_removeUnsupportedChanges'](_0x225b4f){const _0x1c3525=this['editor']['model']['schema'];for(let _0x5156da=0x0;_0x5156da<_0x225b4f['length'];_0x5156da++){if(!(_0x225b4f[_0x5156da]['isAdded']||_0x225b4f[_0x5156da]['isAddSuggestion']||_0x225b4f[_0x5156da]['isRemoved']||_0x225b4f[_0x5156da]['isRemoveSuggestion']))continue;if(0x0==_0x225b4f[_0x5156da]['distance'])continue;const _0xbfb66f=_0x225b4f[_0x5156da]['item'];_0x1c3525['isBlock'](_0xbfb66f)||_0x1c3525['isLimit'](_0xbfb66f)||(_0x225b4f[_0x5156da]['isAdded']&&delete _0x225b4f[_0x5156da]['isAdded'],_0x225b4f[_0x5156da]['isAddSuggestion']&&delete _0x225b4f[_0x5156da]['isAddSuggestion'],_0x225b4f[_0x5156da]['isRemoveSuggestion']&&delete _0x225b4f[_0x5156da]['isRemoveSuggestion'],_0x225b4f[_0x5156da]['isRemoved']&&(_0x225b4f[_0x5156da]['isIncorrect']=!0x0));}return _0x225b4f['filter'](_0x50ccba=>!_0x50ccba['isIncorrect']);}['_makeModelFromTape'](_0x9b1513,_0x148f83,_0x7046f6){const _0x2dd507=new gt(),_0x4e84b4=[],_0x3c208c=new Map(),_0x7405ec=this['editor']['model'],_0x2c9892=_0x7405ec['schema'],_0x41bd48=[_0x2dd507],_0x56cfbd={},_0x53a983={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ad55e=null;const _0x7ffd91=[0x0];for(let _0x37419c=0x0;_0x37419c<_0x9b1513['length'];_0x37419c++)if('elementStart'===_0x9b1513[_0x37419c]['type']){_0x9b1513[_0x37419c]['previousPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91);const _0x564cb7=new ut(_0x9b1513[_0x37419c]['item']['name'],_0x9b1513[_0x37419c]['item']['getAttributes']());_0x41bd48[0x0]['_appendChild'](_0x564cb7),_0x7ffd91['push'](0x0),_0x41bd48['unshift'](_0x564cb7),_0x9b1513[_0x37419c]['nextPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91);}else'elementEnd'===_0x9b1513[_0x37419c]['type']?(_0x41bd48['shift'](),_0x9b1513[_0x37419c]['previousPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91),_0x7ffd91['pop'](),_0x7ffd91[_0x7ffd91['length']-0x1]++,_0x9b1513[_0x37419c]['nextPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91)):(_0x9b1513[_0x37419c]['previousPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91),_0x4ad55e?_0x4ad55e['_data']+=_0x9b1513[_0x37419c]['item']['data']:_0x4ad55e=new mt(_0x9b1513[_0x37419c]['item']['data'],_0x9b1513[_0x37419c]['item']['getAttributes']()),_0x9b1513[_0x37419c+0x1]&&'text'===_0x9b1513[_0x37419c+0x1]['type']&&_0x318958(_0x4ad55e,_0x9b1513[_0x37419c+0x1]['item'])||(_0x41bd48[0x0]['_appendChild'](_0x4ad55e),_0x4ad55e=null),_0x7ffd91[_0x7ffd91['length']-0x1]+=_0x9b1513[_0x37419c]['item']['offsetSize'],_0x9b1513[_0x37419c]['nextPosition']=_0x7405ec['createPositionFromPath'](_0x2dd507,_0x7ffd91));for(let _0x22935a=0x0;_0x22935a<_0x9b1513['length'];_0x22935a++){const _0x5180f1=_0x9b1513[_0x22935a]['previousPosition'],_0x24a898=_0x9b1513[_0x22935a]['nextPosition'];for(const _0x141bc2 of _0x9b1513[_0x22935a]['markersStart'])_0x3c208c['set'](_0x141bc2,{'start':_0x5180f1,'end':null});_0x41c560('isRemoveSuggestion',_0x22935a,_0x5180f1,_0x24a898),_0x41c560('isAddSuggestion',_0x22935a,_0x5180f1,_0x24a898),_0x41c560('isRemoved',_0x22935a,_0x5180f1,_0x24a898),_0x41c560('isAdded',_0x22935a,_0x5180f1,_0x24a898);for(const _0x5c7ecc of _0x9b1513[_0x22935a]['markersEnd']){const _0x54c1d5=_0x3c208c['get'](_0x5c7ecc);_0x54c1d5?_0x54c1d5['end']=_0x24a898:_0x3c208c['set'](_0x5c7ecc,{'start':_0x24a898,'end':_0x24a898});}}for(const [_0xd479b0,_0x250b81]of _0x3c208c){const _0x4afa46=this['editor']['model']['createRange'](_0x250b81['start'],_0x250b81['end']);_0x2dd507['markers']['set'](_0xd479b0,_0x4afa46);}return _0x4e84b4['sort']((_0x1c67a4,_0x57f25d)=>{const _0x23d0cd=_0x2dd507['markers']['get']('revision:'+_0x1c67a4['id']),_0x14374f=_0x2dd507['markers']['get']('revision:'+_0x57f25d['id']);return _0x23d0cd['start']['isBefore'](_0x14374f['start'])?-0x1:_0x23d0cd['start']['isAfter'](_0x14374f['start'])?0x1:_0x23d0cd['end']['isBefore'](_0x14374f['end'])?-0x1:_0x23d0cd['end']['isAfter'](_0x14374f['end'])?0x1:'add'===_0x1c67a4['type']?-0x1:0x1;}),{'root':_0x2dd507,'changes':_0x4e84b4};function _0x41c560(_0x4ba8aa,_0x4db507,_0x1be7c8,_0x42118d){const _0x127085=!!_0x9b1513[_0x4db507][_0x4ba8aa],_0x25d9c1=_0x127085?_0x9b1513[_0x4db507][_0x4ba8aa]['userId']:null,_0x11e867=_0x4db507===_0x9b1513['length']-0x1,_0x259f67=_0x53a983[_0x4ba8aa][0x0],_0x28f256=_0x2c9892['isObject'](_0x9b1513[_0x4db507]['item']);!_0x56cfbd[_0x4ba8aa]&&_0x127085?_0x56cfbd[_0x4ba8aa]={'start':_0x1be7c8,'tapeItem':_0x9b1513[_0x4db507],'userId':_0x25d9c1,'type':_0x4ba8aa}:_0x56cfbd[_0x4ba8aa]&&!_0x127085?(_0x56cfbd[_0x4ba8aa]['end']=_0x1be7c8,_0x38d390(_0x56cfbd[_0x4ba8aa]),_0x56cfbd[_0x4ba8aa]=null):_0x56cfbd[_0x4ba8aa]&&_0x127085&&_0x56cfbd[_0x4ba8aa]['userId']!==_0x25d9c1&&(_0x56cfbd[_0x4ba8aa]['end']=_0x1be7c8,_0x259f67&&_0x259f67['userId']===_0x56cfbd[_0x4ba8aa]['userId']||_0x38d390(_0x56cfbd[_0x4ba8aa]),_0x56cfbd[_0x4ba8aa]={'start':_0x1be7c8,'tapeItem':_0x9b1513[_0x4db507],'userId':_0x25d9c1,'type':_0x4ba8aa}),_0x56cfbd[_0x4ba8aa]&&_0x28f256&&('elementStart'!==_0x9b1513[_0x4db507]['type']||_0x259f67&&_0x259f67['userId']===_0x25d9c1||_0x53a983[_0x4ba8aa]['unshift']({'userId':_0x25d9c1,'object':_0x9b1513[_0x4db507]['item'],'change':_0x56cfbd[_0x4ba8aa]}),'elementEnd'===_0x9b1513[_0x4db507]['type']&&_0x259f67&&_0x259f67['object']===_0x9b1513[_0x4db507]['item']&&(_0x53a983[_0x4ba8aa]['shift'](),_0x56cfbd[_0x4ba8aa]=_0x259f67['change'])),_0x56cfbd[_0x4ba8aa]&&_0x11e867&&(_0x56cfbd[_0x4ba8aa]['end']=_0x42118d,_0x38d390(_0x56cfbd[_0x4ba8aa]),_0x56cfbd[_0x4ba8aa]=null);}function _0x38d390({start:_0x404806,end:_0x2ad56e,tapeItem:_0x24688b,userId:_0x52d5af,type:_0x2e12b8}){const _0xbf2c41=_0x24688b['item'],_0x2d1277=_0x7405ec['schema']['isBlock'](_0xbf2c41)&&!_0x7405ec['schema']['isLimit'](_0xbf2c41),_0x2cf63d=_0x404806['nodeAfter']==_0x2ad56e['parent']&&_0x2ad56e['isAtStart'];if(_0x2d1277&&_0x2cf63d)return;const _0x4b74ff=_0x7405ec['createRange'](_0x404806,_0x2ad56e),_0x6cf042=_0x148f83['get'](_0x52d5af),_0x126b20=new r({'author':_0x6cf042,'type':'isAdded'==_0x2e12b8||'isAddSuggestion'==_0x2e12b8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2e12b8||'isRemoveSuggestion'==_0x2e12b8},'createdAt':new Date(),'rootName':_0x7046f6});_0x4e84b4['push'](_0x126b20),_0x2dd507['markers']['set']('revision:'+_0x126b20['id'],_0x4b74ff);}function _0x318958(_0x411d93,_0x7ba807){const _0x96320d=_0x411d93['getAttributes'](),_0x13c194=_0x7ba807['getAttributes']();for(const _0x5e1d9b of _0x96320d){if(_0x5e1d9b[0x1]!==_0x7ba807['getAttribute'](_0x5e1d9b[0x0]))return!0x1;_0x13c194['next']();}return _0x13c194['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x13a8f3=>{const _0x572a7c=_0x13a8f3['markerName']['split'](':')[0x1],_0x4638a5=this['_getChangeFromId'](_0x572a7c);if(!_0x4638a5)return null;const _0x275899='add'==_0x4638a5['type']?'insertion':'deletion',_0x463cff=['ck-suggestion-marker','ck-suggestion-marker-'+_0x275899];return _0x4638a5['data']['isSuggestion']&&_0x463cff['push']('ck-suggestion-marker-'+_0x275899+'-new'),this['activeChange']==_0x4638a5&&_0x463cff['push']('ck-suggestion-marker--active'),{'classes':_0x463cff,'attributes':{'data-change-id':_0x572a7c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4eb57a=>{_0x4eb57a['on']('element:pre',(_0x4d0517,_0x46ee50,_0x13946e)=>{const _0xfcd6c2=_0x46ee50['viewItem']['getChild'](0x0);if(!_0xfcd6c2||!_0xfcd6c2['is']('element','code'))return;if(!_0x13946e['consumable']['consume'](_0xfcd6c2,{'attributes':['vid_start','vid_end']}))return;const _0x5356f8=_0x46ee50['modelRange']['start']['nodeAfter'];_0x13946e['writer']['setAttribute']('vid_start',_0xfcd6c2['getAttribute']('vid_start'),_0x5356f8),_0x13946e['writer']['setAttribute']('vid_end',_0xfcd6c2['getAttribute']('vid_end'),_0x5356f8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x10561f=>{_0x10561f['on']('element',(_0x428533,_0xc46189,_0x4efbf9)=>{if(!_0x4efbf9['consumable']['consume'](_0xc46189['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xc46189['modelRange']['isCollapsed'])return;const _0x373a57=_0xc46189['modelRange']['start']['nodeAfter'];_0x373a57['hasAttribute']('vid_start')||_0x373a57['hasAttribute']('vid')||(_0x4efbf9['writer']['setAttribute']('vid_start',_0xc46189['viewItem']['getAttribute']('vid_start'),_0x373a57),_0x4efbf9['writer']['setAttribute']('vid_end',_0xc46189['viewItem']['getAttribute']('vid_end'),_0x373a57));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4e0e3e=>_0x4e0e3e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x569bd2,[,_0x5ddbe3])=>{['vid_start','vid_end','vid']['includes'](_0x5ddbe3)&&(_0x569bd2['return']=!0x0,_0x569bd2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1db8d0=>{_0x1db8d0['on']('attribute:vid',(_0x43c2c6,_0x10f985,_0x153cb3)=>{if('\x20'!=_0x10f985['item']['data']||_0x10f985['item']['parent']['maxOffset']>0x1)return;if(!_0x153cb3['consumable']['consume'](_0x10f985['item'],_0x43c2c6['name']))return;const _0x142924=_0x153cb3['writer'],_0x566761=_0x153cb3['mapper']['toViewRange'](_0x10f985['range']);_0x142924['wrap'](_0x566761,_0x142924['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4ff830){const _0x3d9cf7=_0x4ff830['plugins']['get']('RevisionViewer');return(_0x3eba4c,_0x26c49c,_0xf98c5b)=>{const _0x33da10=_0x26c49c['markerName']['split'](':')[0x1],_0x30e818=_0x3d9cf7['_getChangeFromId'](_0x33da10);if(!_0x30e818)return null;const _0x51f5ec='add'==_0x30e818['type']?'split':'merge';if(!_0xf98c5b['consumable']['test'](_0x26c49c['markerRange'],_0x3eba4c['name']))return;const _0x47d40a=_0x26c49c['markerRange']['getWalker'](),_0x4fb931=_0x26c49c['markerRange']['start'],_0x1e69c9=_0x4ff830['model']['schema'];let _0x11d600=null,_0x4c587b=null,_0x30e09d=!0x1,_0x551997=!0x1;for(const _0xdf728b of _0x47d40a){const _0x5d4aa1=_0xdf728b['item'];_0x30e09d=_0x30e09d||_0x1e69c9['isContent'](_0x5d4aa1);const _0x4c3262=_0xf98c5b['mapper']['toViewElement'](_0x5d4aa1);if(_0x4c3262&&_0x4c3262['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdf728b['type']&&(_0x1e69c9['isBlock'](_0x5d4aa1)&&!_0x1e69c9['isLimit'](_0x5d4aa1)&&(_0x5d4aa1['nextSibling']||_0x4fb931['isAtEnd']?_0x11d600&&_0x11d600['parent']==_0x5d4aa1||(_0x11d600=_0x5d4aa1,_0x173758(_0xdf728b['previousPosition']),_0x551997=!0x0):_0x4c587b=_0x4c587b||_0xdf728b['previousPosition']));}function _0x173758(_0x15aa24){const _0x130009=_0xf98c5b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51f5ec}),_0x4076e4=_0xf98c5b['mapper']['toViewPosition'](_0x15aa24);_0x30e818['data']['isSuggestion']&&_0xf98c5b['writer']['addClass']('ck-suggestion-marker-'+_0x51f5ec+'-new',_0x130009),_0x3d9cf7['activeChange']==_0x30e818&&_0xf98c5b['writer']['addClass']('ck-suggestion-marker--active',_0x130009),_0xf98c5b['writer']['insert'](_0x4076e4,_0x130009),_0xf98c5b['mapper']['bindElementToMarker'](_0x130009,_0x26c49c['markerName']);}_0x30e09d||_0x551997||!_0x4c587b||_0x173758(_0x4c587b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x41ad8e,_0x152d96,_0x2f4370)=>{const _0x2459e6=_0x2f4370['mapper']['markerNameToElements'](_0x152d96['markerName']);if(_0x2459e6){for(const _0x1b2a3c of _0x2459e6)(_0x1b2a3c['hasClass']('ck-suggestion-marker-split')||_0x1b2a3c['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f4370['mapper']['unbindElementFromMarkerName'](_0x1b2a3c,_0x152d96['markerName']),_0x2f4370['writer']['remove'](_0x1b2a3c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4fada2,_0x20f603,_0x45fd09)=>{const _0xcdff42=_0x20f603['markerName']['split'](':')[0x1],_0xe2250d=this['_getChangeFromId'](_0xcdff42);if(!_0xe2250d)return null;const _0x41a0a7='add'==_0xe2250d['type']?'split':'merge';if(_0x45fd09['consumable']['test'](_0x20f603['markerRange'],_0x4fada2['name']))for(const _0x462899 of _0x20f603['markerRange']['getItems']()){if(!_0x462899['is']('element','softBreak'))continue;const _0x519e08=_0x45fd09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41a0a7}),_0x2880e4=_0x45fd09['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x462899));_0xe2250d['data']['isSuggestion']&&_0x45fd09['writer']['addClass']('ck-suggestion-marker-'+_0x41a0a7+'-new',_0x519e08),this['activeChange']==_0xe2250d&&_0x45fd09['writer']['addClass']('ck-suggestion-marker--active',_0x519e08),_0x45fd09['writer']['insert'](_0x2880e4,_0x519e08),_0x45fd09['mapper']['bindElementToMarker'](_0x519e08,_0x20f603['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5469e6=>{for(const _0x4d6935 of this['editor']['model']['document']['getRootNames']()){const _0x58cc13=this['editor']['model']['document']['getRoot'](_0x4d6935),_0x48bdb3=this['editor']['editing']['view']['document']['getRoot'](_0x4d6935);if(_0x48bdb3){const _0x423f96=_0x58cc13['getAttribute']('revisionHistoryAttachChange');if(_0x5469e6['removeAttribute']('data-change-id',_0x48bdb3),_0x5469e6['removeClass']('ck-revision-history-root-add',_0x48bdb3),_0x5469e6['removeClass']('ck-revision-history-root-remove',_0x48bdb3),_0x5469e6['removeClass']('ck-revision-history-root--active',_0x48bdb3),_0x423f96){const _0x5824ca=this['_getChangeFromId'](_0x423f96);if(!_0x5824ca)return null;_0x5469e6['setAttribute']('data-change-id',_0x423f96,_0x48bdb3),_0x5469e6['addClass']('ck-revision-history-root-'+_0x5824ca['type'],_0x48bdb3),this['activeChange']==_0x5824ca&&_0x5469e6['addClass']('ck-revision-history-root--active',_0x48bdb3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4a1def=>'revision-comment:'+_0x4a1def,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3fb734=>'revision-suggestion:'+_0x3fb734,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3547f8=>({'name':'suggestion:'+_0x3547f8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5cfc6e=>{const _0x510cc0=_0x5cfc6e['markerName']['split'](':')[0x1];return'insertion'!=_0x510cc0&&'deletion'!=_0x510cc0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x510cc0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x34b2da,_0x1f170f,_0x57063a)=>{const _0x4cedad=_0x57063a['mapper']['markerNameToElements'](_0x1f170f['markerName']);if(_0x4cedad){for(const _0x4111fe of _0x4cedad)_0x4111fe['is']('uiElement')&&(_0x57063a['mapper']['unbindElementFromMarkerName'](_0x4111fe,_0x1f170f['markerName']),_0x57063a['writer']['remove'](_0x4111fe));}},{'priority':'high'});}['_getChangeFromId'](_0x20e31b){return this['_changeIdToChange']['get'](_0x20e31b);}['_getViewForChange'](_0x50ec44){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x50ec44),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1b434d,_0x43cc02,_0x34f27b,_0x6f7ef8)=>{_0x6f7ef8&&this['_balloon']['remove'](_0x6f7ef8),_0x34f27b&&(this['_balloon']['add']({'view':_0x34f27b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c2c7a=this['editor']['editing'],_0x101fc1=this['_getChangeFromId'](_0x34f27b['changeId']);let _0x227c88;if(_0x101fc1['data']['isOnRoot']){const _0x55981c=_0x3c2c7a['view']['getDomRoot'](_0x101fc1['rootName']);_0x227c88=Array['from'](_0x55981c['getClientRects']());}else{const _0x36a5bf=this['editor']['model']['markers']['get']('revision:'+_0x34f27b['changeId']);_0x227c88=Array['from'](_0x3c2c7a['mapper']['markerNameToElements'](_0x36a5bf['name']))['map'](_0x10b1d9=>_0x3c2c7a['view']['domConverter']['mapViewToDom'](_0x10b1d9))['map'](_0x34a8cd=>Array['from'](_0x34a8cd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x227c88[0x0];return _0x227c88['find'](_0x1a6666=>_0x1a6666['top']-0x3<=this['_activeViewTarget']['y']&&_0x1a6666['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1a6666['left']-0x3<=this['_activeViewTarget']['x']&&_0x1a6666['right']+0x3>=this['_activeViewTarget']['x'])||_0x227c88[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x13ff4c,_0x3afe67,_0x54022d,_0x1b9f2e)=>{this['activeView']=_0x54022d?this['_getViewForChange'](_0x54022d):null,this['editor']['model']['change'](()=>{const _0x2ba775=this['editor']['editing'];_0x1b9f2e&&(_0x1b9f2e['data']['isOnRoot']?_0x2ba775['view']['change'](_0x3d25e0=>{_0x3d25e0['removeClass']('ck-revision-history-root--active',_0x2ba775['view']['document']['getRoot'](_0x1b9f2e['rootName']));}):_0x2ba775['reconvertMarker']('revision:'+_0x1b9f2e['id'])),_0x54022d&&(_0x54022d['data']['isOnRoot']?_0x2ba775['view']['change'](_0x22a411=>{_0x22a411['addClass']('ck-revision-history-root--active',_0x2ba775['view']['document']['getRoot'](_0x54022d['rootName']));}):_0x2ba775['reconvertMarker']('revision:'+_0x54022d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d1ffd,_0x1edb4f)=>{if(this['activeChange'])return;const _0x35ba48=this['_findChangeIdFromDomTarget'](_0x1edb4f['target']),_0x1e66e0=this['_changeIdToChange']['get'](_0x35ba48);_0x1e66e0?(this['_activeViewTarget']={'x':_0x1edb4f['domEvent']['x'],'y':_0x1edb4f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1e66e0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5d838b,_0x46ceb6)=>{const _0x48f05a=this['_findChangeIdFromDomTarget'](_0x46ceb6['target']),_0x3b22d0=this['_changeIdToChange']['get'](_0x48f05a);_0x3b22d0?(this['_activeViewTarget']={'x':_0x46ceb6['domEvent']['x'],'y':_0x46ceb6['domEvent']['y']},_0x3b22d0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3b22d0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5d13de){do{const _0xa5bc93=_0x5d13de['getAttribute']('data-change-id');if(_0xa5bc93)return _0xa5bc93;_0x5d13de=_0x5d13de['parent'];}while(_0x5d13de);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x74924d=>{for(const _0x4f1bc1 of this['editor']['model']['markers'])_0x74924d['removeMarker'](_0x4f1bc1);});}}function X(_0x27d527,_0x555903){return(_0xa9f7ef,_0x2a7245,_0x55b47c)=>{if(!_0x55b47c['consumable']['test'](_0x2a7245['markerRange'],_0xa9f7ef['name']))return;const _0x2da37e=_0x2a7245['markerRange']['getWalker'](),_0x28b235=_0x2a7245['markerRange']['start'],_0x4690b2=_0x27d527['model']['schema'];let _0x586cc5=null,_0x2dcd02=null,_0x1148f0=!0x1,_0x2d11f3=!0x1;for(const _0x5521e4 of _0x2da37e){const _0x483ea8=_0x5521e4['item'];_0x1148f0=_0x1148f0||_0x4690b2['isContent'](_0x483ea8);const _0x5b9e88=_0x55b47c['mapper']['toViewElement'](_0x483ea8);if(_0x5b9e88&&_0x5b9e88['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5521e4['type']&&(_0x4690b2['isBlock'](_0x483ea8)&&!_0x4690b2['isLimit'](_0x483ea8)&&(_0x483ea8['nextSibling']||_0x28b235['isAtEnd']?_0x586cc5&&_0x586cc5['parent']==_0x483ea8||(_0x586cc5=_0x483ea8,_0x2c3ce1(_0x5521e4['previousPosition']),_0x2d11f3=!0x0):_0x2dcd02=_0x2dcd02||_0x5521e4['previousPosition']));}function _0x2c3ce1(_0x2c810){const _0x553eee=_0x55b47c['mapper']['toViewPosition'](_0x2c810),_0x3a15f5=_0x55b47c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x555903});_0x55b47c['writer']['insert'](_0x553eee,_0x3a15f5),_0x55b47c['mapper']['bindElementToMarker'](_0x3a15f5,_0x2a7245['markerName']);}_0x1148f0||_0x2d11f3||!_0x2dcd02||_0x2c3ce1(_0x2dcd02);};}class wt extends _0x3cc002{constructor(_0x354088){super(_0x354088);const _0x1d0235=_0x354088['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1d0235,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d0235,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xa98b1a=this['editor'],_0x4ac273=_0xa98b1a['plugins']['get'](m),_0x15e762=_0x4ac273['isReady']?_0x4ac273['diff']['newRevisionId']:null;_0xa98b1a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15e762);}['refresh'](){const {isReady:_0x27b226,isEnabled:_0x5056cc,repository:_0x6c99ef,diff:_0x57f5b4}=this['editor']['plugins']['get'](m),_0x25e9d2=_0x57f5b4&&_0x6c99ef['getLaterVisibleRevision'](_0x57f5b4['newRevisionId']);this['isEnabled']=_0x27b226&&_0x5056cc&&Boolean(_0x25e9d2);}}class pt extends _0x3cc002{['_step'];constructor(_0x3d19fe,{direction:_0x18e5cc}){super(_0x3d19fe);const _0x42c20a=_0x3d19fe['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x18e5cc?0x1:-0x1,this['listenTo'](_0x42c20a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42c20a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x42c20a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xe507ae=this['editor'],_0x4b4fa3=_0xe507ae['plugins']['get'](m),{isNavigationMode:_0x44a2bf,currentChangeNumber:_0xb3c463}=_0x4b4fa3;let _0x34954d;if(_0x4b4fa3['activeChange']=_0x44a2bf?_0x4b4fa3['diff']['changes']['get'](_0xb3c463+this['_step']):_0x4b4fa3['diff']['changes']['first'],_0x4b4fa3['activeChange']['data']['isOnRoot'])_0x34954d=_0xe507ae['editing']['view']['getDomRoot'](_0x4b4fa3['activeChange']['rootName']);else{const _0x23ca1a=_0xe507ae['model']['markers']['get']('revision:'+_0x4b4fa3['activeChange']['id']);_0x34954d=_0x451356(_0xe507ae['editing'],_0x23ca1a);}_0x43b6fb({'target':_0x34954d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x48fbf2,currentChangeNumber:_0xb09e1f,numberOfChanges:_0xdc9d1d,isReady:_0x29cb04,isEnabled:_0x4d1a1d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4d1a1d&&_0x29cb04&&_0xdc9d1d)&&(!_0x48fbf2||(0x1===this['_step']?_0xb09e1f<_0xdc9d1d-0x1:_0xb09e1f>0x0));}}class _i extends _0x260500{constructor(_0x59eef1){super(_0x59eef1);const _0xbc47a0=this['bindTemplate'],_0x99c9c7=new _0x20b660(_0x59eef1),_0x5e8a57=new _0x20b660(_0x59eef1);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',(_0x44dedc,_0x3105b3)=>_0x44dedc&&_0x3105b3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x360954,_0x24029b,_0x15f77c,_0x52c35d)=>{if(!_0x360954)return g(_0x59eef1,'Loading...');if(!_0x15f77c)return g(_0x59eef1,'No\x20changes');const _0x4e7877=g(_0x59eef1,'NUMBER_OF_CHANGES',_0x15f77c);return _0x52c35d?g(_0x59eef1,'X_OF_Y_CHANGES',[_0x24029b+0x1,_0x15f77c]):_0x4e7877;}),_0x99c9c7['set']({'label':g(_0x59eef1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5edfe2}),_0x5e8a57['set']({'label':g(_0x59eef1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1625b4}),_0x99c9c7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e8a57['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x99c9c7['on']('execute',()=>this['fire']('execute','backward')),_0x5e8a57['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',_0xbc47a0['if']('_isStatusLabelVisible','ck-hidden',_0x4d83ed=>!_0x4d83ed)]},'children':[{'text':_0xbc47a0['to']('isNavigationMode',_0xe8dbd0=>_0xe8dbd0?g(_0x59eef1,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x59eef1,'Total')+':\x20')}]},{'text':_0xbc47a0['to']('_statusText')}]},new _0x350b8e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x99c9c7,_0x5e8a57]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x2e679e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x14b912=this['editor']['editing']['view'];_0x14b912['change'](_0x403c19=>{for(const _0x117665 of _0x14b912['document']['roots'])_0x403c19['addClass'](ce,_0x117665);});}['hide'](){const _0xca913e=this['editor']['editing']['view'];_0xca913e['change'](_0x57021f=>{for(const _0x28c02f of _0xca913e['document']['roots'])_0x57021f['removeClass'](ce,_0x28c02f);});}}class R extends _0x2e679e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x271458=this['editor'],_0x13e94d=_0x271458['plugins']['get'](m),_0x92ebb1=_0x271458['plugins']['get'](le);_0x271458['ui']['componentFactory']['add']('exitToEditing',_0x9da8dd=>{const _0x5957f2=new _0x20b660(_0x9da8dd);return _0x5957f2['set']({'label':g(_0x9da8dd,'Back\x20to\x20editing'),'icon':_0x3e8039,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5957f2,'execute',()=>{_0x271458['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5957f2;}),_0x271458['ui']['componentFactory']['add']('restoreRevision',_0x188df6=>{const _0x2cb8f3=new _0x20b660(_0x188df6);return _0x2cb8f3['set']({'label':g(_0x188df6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2cb8f3['bind']('isEnabled')['to'](_0x271458['commands']['get']('restoreRevision')),this['listenTo'](_0x2cb8f3,'execute',()=>_0x271458['execute']('restoreRevision')),_0x2cb8f3;}),_0x271458['ui']['componentFactory']['add']('changesNavigation',_0x5d9352=>{const _0xc81a24=new _i(_0x5d9352),_0x5624fe=_0x271458['commands']['get']('showPreviousChange'),_0x2882ed=_0x271458['commands']['get']('showNextChange');return _0xc81a24['bind']('isBackwardNavigationEnabled')['to'](_0x5624fe,'isEnabled'),_0xc81a24['bind']('isForwardNavigationEnabled')['to'](_0x2882ed,'isEnabled'),_0xc81a24['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x13e94d),this['listenTo'](_0xc81a24,'execute',(_0x3a31c3,_0x2f62e7)=>{_0x271458['execute']('forward'===_0x2f62e7?'showNextChange':'showPreviousChange');}),_0xc81a24;}),_0x92ebb1['show'](),_0x13e94d['on']('change:isReady',(_0x234241,_0x291acc,_0x52f16a)=>{_0x52f16a?_0x92ebb1['hide']():_0x92ebb1['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x5b36f3,_0x48b092){super(_0x5b36f3,_0x48b092);const _0x3019a6=this['bindTemplate'];this['set']({'label':g(_0x5b36f3,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5b36f3,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3019a6['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x15d8db=this['fieldView']['element'];this['_tooltipString']=_0x15d8db['scrollWidth']>_0x15d8db['clientWidth']&&_0x15d8db['value']||'';}}class oi extends _0x260500{constructor(_0x481481,_0x1ddd21,_0x3dbc7f){super(_0x481481);const _0x3723a4=new _0x585658();_0x3723a4['set']({'content':_0x399de8,'viewBox':'0\x200\x2011\x2010'});const _0x2557b1=['ck','ck-revision-history-sidebar__revision-author'];_0x3dbc7f&&_0x2557b1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3cf8c8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x481481,_0x3dbc7f?'Revision\x20creator':'Revision\x20author')},'children':[_0x3723a4,_0x1ddd21['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2557b1},'children':_0x3cf8c8});}}function ni(_0x4d367d,_0x3e0d54){const _0x29fbe6=_0x4d367d['bindTemplate'],_0x430f76=_0x4d367d['locale'],_0x9e5c96=_0x1730b1(_0x430f76);_0x9e5c96['panelPosition']='sw';const _0xb5f9e1=function(_0x920bb5,_0xaec00f){const _0x3c49fe=function(_0x51be5e,_0x38ab8d){const _0x57aab5=_0x51be5e['locale'],_0x525380={'Compare\x20against\x20selected':g(_0x57aab5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x57aab5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x57aab5,'Restore\x20this\x20revision')};return _0x38ab8d['map'](_0x363698=>{const _0x338a95=_0x525380[_0x363698['name']];return _0x338a95&&_0x338a95!==_0x363698['name']&&(_0x363698['name']=_0x338a95),_0x363698;});}(_0x920bb5,_0xaec00f),_0x5c509d=new _0x51e080();for(const _0x439b2a of _0x3c49fe){const _0x2a991b={'type':'button','model':new to({'label':_0x439b2a['name'],'class':_0x439b2a['class'],'withText':!0x0,'role':'menuitem','_action':_0x439b2a['action']})};_0x2a991b['model']['bind']('isEnabled')['to'](_0x920bb5,'isActionsDropdownOpen',_0x352868=>'function'!=typeof _0x439b2a['isEnabled']||(!_0x352868||_0x439b2a['isEnabled'](_0x920bb5))),_0x5c509d['add'](_0x2a991b);}return _0x5c509d;}(_0x4d367d,_0x3e0d54);return _0x4d367d['bind']('isActionsDropdownOpen')['to'](_0x9e5c96,'isOpen'),_0x9e5c96['buttonView']['set']({'label':g(_0x430f76,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x505406}),_0x9e5c96['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x29fbe6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x29fbe6['to'](_0x3727f8=>_0x3727f8['stopPropagation']())}}),_0x9e5c96['on']('execute',_0x2e5952=>{_0x4d367d['isReady']&&'function'==typeof _0x2e5952['source']['_action']&&_0x2e5952['source']['_action'](_0x4d367d);}),_0x47e543(_0x9e5c96,_0xb5f9e1,{'role':'menu'}),_0x9e5c96['listenTo'](_0x4d367d,'change:isActionsDropdownOpen',(_0xc05692,_0xd5f777,_0x530cf0)=>{if(_0x530cf0)for(const _0x38d586 of _0x9e5c96['listView']['items']){const _0x577008=_0x38d586['children']['first'],_0x4d0f67=_0x3e0d54['find'](_0x2f320b=>_0x2f320b['action']===_0x577008['_action'])['isVisible'];_0x38d586['isVisible']=void 0x0===_0x4d0f67||_0x4d0f67(_0x4d367d);}}),_0x9e5c96;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2bd20e,uid as _0x300526,Collection as _0x25c9dd,logWarning as _0x120dc5,FocusTracker as _0x242b70,KeystrokeHandler as _0x302254,scrollViewportToShowTarget as _0x36842d,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x56af2e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x263bce,set as _0x1115b4,unset as _0x180afa,isEqual as _0x3b83dd}from'es-toolkit/compat';import{Plugin as _0x1805f7,PendingActions as _0x20ad10,Command as _0x380ce3,ElementApiMixin as _0x587723,Editor as _0x4b630c}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ac19f,getMarkerDomElement as _0x56cbf8,ConfirmMixin as ti,sanitizeEditorConfig as _0xb2123c}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0xad4ad0,ViewAttributeElement as _0x3cf1b1,ViewEmptyElement as _0x7f4212,ViewRawElement as _0x27941d,ViewUIElement as _0x42264b,ViewDocumentFragment as _0x5e7e6a,ViewText as _0x3d193a,ViewElement as _0x277f59,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x592746,IconChevronUp as _0x35b3a6,IconChevronDown as _0x55d11c,IconUndo as _0x2e229b,IconUser as _0x272068,IconThreeVerticalDots as _0x1ecc97}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xac0f22,submitHandler as _0xb1fa04,LabeledFieldView as _0x4c02c9,createLabeledInputText as _0x1fac5e,createDropdown as _0xe4c3f2,ListView as _0x162311,ListItemView as _0x5e56e8,ButtonView as te,MenuBarMenuView as _0xd69a74,MenuBarMenuListView as _0x406cbc,MenuBarMenuListItemView as _0x3ae831,MenuBarMenuListItemButtonView as _0x2f41b4,ContextualBalloon as _0x5afb71,ToolbarSeparatorView as _0x52ab3f,IconView as _0x498748,addListToDropdown as _0x44b5cd,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1be8a7}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bd20e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d95be){super(),this['id']=_0x4d95be['id']||_0x300526(),this['creator']=_0x4d95be['creator']||null,this['authors']=_0x4d95be['authors']||[],this['diffData']=_0x4d95be['diffData']||null,this['toVersion']=_0x4d95be['toVersion']||0x0,this['fromVersion']=_0x4d95be['fromVersion']||0x0,this['set']('name',_0x4d95be['name']||''),this['set']('createdAt',_0x4d95be['createdAt']||new Date()),this['set']('attributes',_0x4d95be['attributes']||{});}['setName'](_0x45bf02){this['_update']({'name':_0x45bf02});}['setAttribute'](_0x3888f4,_0x3bb100){const _0x52261a=_0x263bce(this['attributes']);_0x1115b4(_0x52261a,_0x3888f4,_0x3bb100),this['_update']({'attributes':_0x52261a});}['removeAttribute'](_0x19e5eb){const _0x156858=_0x263bce(this['attributes']);_0x180afa(_0x156858,_0x19e5eb),this['_update']({'attributes':_0x156858});}['_update'](_0x5a8283,_0x11c52f=!0x1){let _0x1b6beb=!0x1;const _0x16ae43={'id':this['id']},_0x2de078=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x117a71 of _0x2de078){const _0x704a4f=_0x5a8283[_0x117a71];void 0x0!==_0x704a4f&&_0x704a4f!==this[_0x117a71]&&(this[_0x117a71]=_0x704a4f,_0x16ae43[_0x117a71]=_0x704a4f,_0x1b6beb=!0x0);}_0x1b6beb&&(_0x16ae43['authors']&&(_0x16ae43['authorsIds']=_0x16ae43['authors']['map'](_0x365edb=>_0x365edb['id']),delete _0x16ae43['authors']),this['fire']('_update',_0x16ae43,_0x11c52f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a0395=>_0x5a0395['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x1805f7{['_revisions'];static get['requires'](){return[_0x3ac19f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1fcd65){super(_0x1fcd65),this['_revisions']=new _0x25c9dd();}['afterInit'](){!async function(_0x34d3c5){const _0x34170d=_0x5d9b19([0x4a,0x58,0x67,0x57,0x53,0x4d,0x68,0x5a,0x79,0x75,0x38,0x41,0x31,0x43,0x76,0x70,0x72,0x54,0x4f,0x6b,0x78,0x6f,0x33,0x56,0x62,0x4b,0x64,0x61,0x39,0x37,0x52,0x34,0x6a,0x35,0x32,0x44,0x59,0x69,0x77,0x36,0x7a,0x30,0x4e,0x51,0x74,0x66,0x71,0x73,0x55,0x65,0x47,0x6e,0x50,0x46,0x42,0x49,0x6c,0x45,0x48,0x4c,0x6d,0x63]),_0x54752f=0xeb829,_0x5e6219=0x1d83eab1,_0x1e3b0f=0x1d848329^_0x5e6219,_0x46e358=window[_0x5d9b19([0x44,0x61,0x74,0x65])][_0x5d9b19([0x6e,0x6f,0x77])](),_0x4c3a63=_0x34d3c5[_0x5d9b19([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42dc33=new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d40bd=>{_0x4c3a63[_0x5d9b19([0x6f,0x6e,0x63,0x65])](_0x5d9b19([0x72,0x65,0x61,0x64,0x79]),_0x4d40bd);}),_0x58b24d={[_0x5d9b19([0x6b,0x74,0x79])]:_0x5d9b19([0x45,0x43]),[_0x5d9b19([0x75,0x73,0x65])]:_0x5d9b19([0x73,0x69,0x67]),[_0x5d9b19([0x63,0x72,0x76])]:_0x5d9b19([0x50,0x2d,0x32,0x35,0x36]),[_0x5d9b19([0x78])]:_0x5d9b19([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]),[_0x5d9b19([0x79])]:_0x5d9b19([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]),[_0x5d9b19([0x61,0x6c,0x67])]:_0x5d9b19([0x45,0x53,0x32,0x35,0x36])},_0x29e8e4=_0x4c3a63[_0x5d9b19([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d9b19([0x67,0x65,0x74])](_0x5d9b19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4452ae(){let _0x517cb6,_0x5bef48=null,_0x2b6ff0=null;try{if(_0x29e8e4==_0x5d9b19([0x47,0x50,0x4c]))return _0x5d9b19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x517cb6=_0x1ece94(),!_0x517cb6)return _0x5d9b19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x517cb6[_0x5d9b19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b6ff0=_0xf84b82(_0x517cb6[_0x5d9b19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x517cb6[_0x5d9b19([0x6a,0x74,0x69])])),await _0x2b9e59()?_0x448075()?_0x1abc22()?_0x5d9b19([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x434287()?(_0x517cb6[_0x5d9b19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d9b19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bef48=_0xbb0d01(_0x5d9b19([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x517cb6[_0x5d9b19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d9b19([0x74,0x72,0x69,0x61,0x6c])&&(_0x5bef48=_0xbb0d01(_0x5d9b19([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2adcbd()):_0x5d9b19([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d9b19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d9b19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d9b19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1abc22(){const _0x190896=[_0x5d9b19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d9b19([0x74,0x72,0x69,0x61,0x6c])][_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517cb6[_0x5d9b19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x46e358/0x3e8:0xe10*_0x1e3b0f;return _0x517cb6[_0x5d9b19([0x65,0x78,0x70])]<_0x190896;}function _0x448075(){const _0xc7f3e1=_0x517cb6[_0x5d9b19([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc7f3e1)return!0x1;if(_0xc7f3e1[_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9b19([0x2a])))return!0x0;if(_0xc7f3e1[_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9b19([0x52,0x48])))return!0x0;if(_0xc7f3e1[_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9b19([0x52,0x52,0x48]))){if(_0x4da95d())return!0x0;if(_0x1af23a()||_0x1b514b())return!0x0;}return!0x1;}function _0x434287(){const _0x61cbff=_0x517cb6[_0x5d9b19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x61cbff||0x0==_0x61cbff[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfc2d74}=new URL(window[_0x5d9b19([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x61cbff[_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc2d74))return!0x0;const _0x187f6b=_0xfc2d74[_0x5d9b19([0x73,0x70,0x6c,0x69,0x74])](_0x5d9b19([0x2e]));return _0x61cbff[_0x5d9b19([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13e794=>_0x13e794[_0x5d9b19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9b19([0x2a])))[_0x5d9b19([0x6d,0x61,0x70])](_0x18b64f=>_0x18b64f[_0x5d9b19([0x73,0x70,0x6c,0x69,0x74])](_0x5d9b19([0x2e])))[_0x5d9b19([0x73,0x6f,0x6d,0x65])](_0x2cdb1e=>_0x187f6b[_0x5d9b19([0x65,0x76,0x65,0x72,0x79])]((_0x591233,_0x5d8988)=>_0x2cdb1e[_0x5d8988]===_0x591233||_0x2cdb1e[_0x5d8988]===_0x5d9b19([0x2a])));}function _0x2adcbd(){return _0x5bef48&&_0x2b6ff0?new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14bf20,_0x3f770f)=>{_0x5bef48[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x14bf20,_0x3f770f),_0x2b6ff0[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x33c88e=>{_0x33c88e!=_0x5d9b19([0x56,0x61,0x6c,0x69,0x64])&&_0x14bf20(_0x33c88e);},_0x3f770f);}):_0x5bef48||_0x2b6ff0||_0x5d9b19([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf84b82(_0x405f24,_0x5cd3af){return new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5939=>{if(_0x5c091d())return _0x3a5939(_0x5d9b19([0x56,0x61,0x6c,0x69,0x64]));_0x1500b3(),_0x4c3a63[_0x5d9b19([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d9b19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe96d5b=!0x1;const _0x54fb16=_0x300526();function _0x3e9097(_0xdad70b){return!!_0xdad70b&&(typeof _0xdad70b===_0x5d9b19([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdad70b===_0x5d9b19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdad70b[_0x5d9b19([0x74,0x68,0x65,0x6e])]===_0x5d9b19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdad70b[_0x5d9b19([0x63,0x61,0x74,0x63,0x68])]===_0x5d9b19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4733d6(_0x478248){_0x4dc6f7(_0x478248)[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x390db6=>{if(!_0x390db6||_0x390db6[_0x5d9b19([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d9b19([0x6f,0x6b]))return _0x5d9b19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x563cd7(_0xef9945(_0x54fb16+_0x5cd3af))!=_0x390db6[_0x5d9b19([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d9b19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d9b19([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x16ca1c=>(_0x22a6d4(),_0x16ca1c),()=>{const _0x22f935=_0x1b5ec0();return null==_0x22f935?(_0x22a6d4(),_0x5d9b19([0x56,0x61,0x6c,0x69,0x64])):_0x5d9b19(_0x46e358-_0x22f935>(0x398f6eb1^_0x5e6219)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x3a5939)[_0x5d9b19([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a5939(_0x5d9b19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30992c=0x1db50431^_0x5e6219;function _0x22a6d4(){const _0x510abf=_0x5d9b19([0x6c,0x6c,0x63,0x74,0x2d])+_0x563cd7(_0xef9945(_0x405f24)),_0x51aa12=_0x4b4f15(_0x563cd7(window[_0x5d9b19([0x4d,0x61,0x74,0x68])][_0x5d9b19([0x63,0x65,0x69,0x6c])](_0x46e358/_0x30992c)));window[_0x5d9b19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d9b19([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x510abf,_0x51aa12);}function _0x1b5ec0(){const _0x2e898e=_0x5d9b19([0x6c,0x6c,0x63,0x74,0x2d])+_0x563cd7(_0xef9945(_0x405f24)),_0x5d3ab0=window[_0x5d9b19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d9b19([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e898e);return _0x5d3ab0?window[_0x5d9b19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4f15(_0x5d3ab0),0x10)*_0x30992c:null;}function _0x4dc6f7(_0x4c0eaf){return new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2089f0,_0x196005)=>{_0x4c0eaf[_0x5d9b19([0x74,0x68,0x65,0x6e])](_0x2089f0,_0x196005),window[_0x5d9b19([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x196005,0x1d823e71^_0x5e6219);});}}_0x4c3a63[_0x5d9b19([0x6f,0x6e])](_0x5d9b19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fbded,_0x112777)=>{if(_0x112777[0x0]!=_0x405f24)return _0x3a5939(_0x5d9b19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x112777[0x1]={..._0x112777[0x1],[_0x5d9b19([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54fb16};},{[_0x5d9b19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d9b19([0x68,0x69,0x67,0x68])}),_0x4c3a63[_0x5d9b19([0x6f,0x6e])](_0x5d9b19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31ca22=>{_0x3e9097(_0x31ca22[_0x5d9b19([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe96d5b=!0x0,_0x4733d6(_0x31ca22[_0x5d9b19([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d9b19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d9b19([0x6c,0x6f,0x77])}),_0x42dc33[_0x5d9b19([0x74,0x68,0x65,0x6e])](()=>{_0xe96d5b||_0x3a5939(_0x5d9b19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c091d(){return _0x4c3a63[_0x5d9b19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d9b19([0x76,0x69,0x65,0x77])][_0x5d9b19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d9b19([0x61,0x75,0x74,0x6f]);}function _0x1500b3(){_0x4c3a63[_0x5d9b19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d9b19([0x76,0x69,0x65,0x77])][_0x5d9b19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d9b19([0x61,0x75,0x74,0x6f]);}}function _0xbb0d01(_0x98c820){const _0x5b153f=[new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e3fb9=>setTimeout(_0x3e3fb9,0x1d8ad47d^_0x5e6219)),_0x42dc33[_0x5d9b19([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172b32=>{const _0x3bffe7=0x1d83eab6^_0x5e6219,_0x20300a=_0x34d3c5[_0x5d9b19([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xbeafa0(){_0x20300a[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3bffe7&&_0x172b32();}_0xbeafa0(),_0x20300a[_0x5d9b19([0x6f,0x6e])](_0x5d9b19([0x61,0x64,0x64]),_0xbeafa0);})),new window[(_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe6835d=>{function _0x1cddf1(){for(const _0x268555 in window)if(window[_0x5d9b19([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5d9b19([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x268555))&&window[_0x268555]==_0x54752f)return _0xe6835d();_0x4c3a63[_0x5d9b19([0x73,0x74,0x61,0x74,0x65])]!=_0x5d9b19([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5d9b19([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cddf1,0x1d83f939^_0x5e6219);}_0x57b650(_0x5d9b19([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1cddf1();})];return window[_0x5d9b19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d9b19([0x72,0x61,0x63,0x65])](_0x5b153f)[_0x5d9b19([0x74,0x68,0x65,0x6e])](()=>_0x98c820);}async function _0x55a033(){if(await _0x42dc33,_0x57b650(_0x5d9b19([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xb4e9ac=_0x34d3c5[_0x5d9b19([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xed267c=_0x34d3c5[_0x5d9b19([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])](_0xb4e9ac[_0x5d9b19([0x69,0x64])]),_0x2346db=_0x146664(_0x5d9b19([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2346db[_0x5d9b19([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xb4e9ac['id'],_0xed267c?_0xed267c['id']:null,!0x0),_0x2346db[_0x5d9b19([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5d9b19([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2346db[_0x5d9b19([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2346db[_0x5d9b19([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3ccd59,void(_0x2346db[_0x5d9b19([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3ccd59);}if(_0x57b650(_0x5d9b19([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x7559b4=_0x146664(_0x5d9b19([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x7559b4[_0x5d9b19([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5d9b19([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x7559b4[_0x5d9b19([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x7559b4[_0x5d9b19([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3ccd59,_0x7559b4[_0x5d9b19([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3ccd59;}_0x4c3a63[_0x5d9b19([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d9b19([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ccd59,_0x4c3a63[_0x5d9b19([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d9b19([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ccd59,_0x4c3a63[_0x5d9b19([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d9b19([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4da95d(){return _0x57b650(_0x5d9b19([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x146664(_0x5d9b19([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5d9b19([0x73,0x74,0x61,0x74,0x65])]==_0x5d9b19([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1af23a(){return _0x57b650(_0x5d9b19([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 _0x1b514b(){return _0x57b650(_0x5d9b19([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x408477(_0x22d3df){const _0x316dd2=_0xa5c1bc();_0x4c3a63[_0x316dd2]=_0x5d9b19([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])+_0x22d3df,_0x22d3df[_0x5d9b19([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5d9b19([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa5c1bc()]=_0x54752f),_0x22d3df!=_0x5d9b19([0x56,0x61,0x6c,0x69,0x64])&&_0x55a033();}function _0xa5c1bc(){const _0x58ab1f=window[_0x5d9b19([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d9b19([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d9b19([0x6e,0x6f,0x77])]())[_0x5d9b19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d9b19([0x2e]),'');let _0x360e6a=_0x5d9b19([0x4a]);for(let _0x5dabd9=0x0;_0x5dabd9<_0x58ab1f[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dabd9+=0x2){let _0x5ebf46=window[_0x5d9b19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ab1f[_0x5d9b19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dabd9,_0x5dabd9+0x2));_0x5ebf46>=_0x34170d[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ebf46-=_0x34170d[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x360e6a+=_0x34170d[_0x5ebf46];}return _0x360e6a;}function _0x1ece94(){const _0x520eb3=_0x29e8e4[_0x5d9b19([0x73,0x70,0x6c,0x69,0x74])](_0x5d9b19([0x2e]));if(0x3!=_0x520eb3[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x242221(_0x520eb3[0x1]);function _0x242221(_0x250898){const _0xf3b69a=_0x451d69(_0x250898);return _0xf3b69a&&_0x9b9344()?_0xf3b69a:null;function _0x9b9344(){const _0x541b9c=_0xf3b69a[_0x5d9b19([0x6a,0x74,0x69])],_0x1a264c=window[_0x5d9b19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x541b9c[_0x5d9b19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x541b9c[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4556f0={..._0xf3b69a,[_0x5d9b19([0x6a,0x74,0x69])]:_0x541b9c[_0x5d9b19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x541b9c[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4556f0[_0x5d9b19([0x76,0x63])],_0xef9945(_0x4556f0)==_0x1a264c;}}}async function _0x2b9e59(){let _0x55d854=!0x0;try{const _0x520c67=_0x29e8e4[_0x5d9b19([0x73,0x70,0x6c,0x69,0x74])](_0x5d9b19([0x2e])),[_0xb3414d,_0x29c73e,_0x41230d]=_0x520c67;return _0x2c2bd6(_0xb3414d),await _0x3438c0(_0xb3414d,_0x29c73e,_0x41230d),_0x55d854;}catch{return!0x1;}function _0x2c2bd6(_0x441f5f){const _0x452984=_0x451d69(_0x441f5f);_0x452984&&_0x452984[_0x5d9b19([0x61,0x6c,0x67])]==_0x5d9b19([0x45,0x53,0x32,0x35,0x36])||(_0x55d854=!0x1);}async function _0x3438c0(_0x4ce336,_0x47b45a,_0x39931d){const _0x238dc1=window[_0x5d9b19([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d9b19([0x66,0x72,0x6f,0x6d])](_0x258c8(_0x39931d),_0x304a38=>_0x304a38[_0x5d9b19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410c48=new window[(_0x5d9b19([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d9b19([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ce336+_0x5d9b19([0x2e])+_0x47b45a),_0x238b66=window[_0x5d9b19([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d9b19([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x238b66)return;const _0x4ee17c=await _0x238b66[_0x5d9b19([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d9b19([0x6a,0x77,0x6b]),_0x58b24d,{[_0x5d9b19([0x6e,0x61,0x6d,0x65])]:_0x5d9b19([0x45,0x43,0x44,0x53,0x41]),[_0x5d9b19([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d9b19([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d9b19([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x238b66[_0x5d9b19([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d9b19([0x6e,0x61,0x6d,0x65])]:_0x5d9b19([0x45,0x43,0x44,0x53,0x41]),[_0x5d9b19([0x68,0x61,0x73,0x68])]:{[_0x5d9b19([0x6e,0x61,0x6d,0x65])]:_0x5d9b19([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ee17c,_0x238dc1,_0x410c48)||(_0x55d854=!0x1);}}function _0x451d69(_0x59550c){return _0x59550c[_0x5d9b19([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d9b19([0x65,0x79]))?JSON[_0x5d9b19([0x70,0x61,0x72,0x73,0x65])](_0x258c8(_0x59550c)):null;}function _0x258c8(_0x30c409){return window[_0x5d9b19([0x61,0x74,0x6f,0x62])](_0x30c409[_0x5d9b19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d9b19([0x2b]))[_0x5d9b19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d9b19([0x2f])));}function _0xef9945(_0x1bca4f){let _0x11f963=0x1505;function _0x433735(_0x350832){for(let _0xc6f107=0x0;_0xc6f107<_0x350832[_0x5d9b19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6f107++){const _0x9425b5=_0x350832[_0x5d9b19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc6f107);_0x11f963=(_0x11f963<<0x5)+_0x11f963+_0x9425b5,_0x11f963&=_0x11f963;}}function _0xb902a0(_0x48f768){Array[_0x5d9b19([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48f768)?_0x48f768[_0x5d9b19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb902a0):_0x48f768&&typeof _0x48f768==_0x5d9b19([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d9b19([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48f768)[_0x5d9b19([0x73,0x6f,0x72,0x74])]()[_0x5d9b19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3446e9,_0x37dabc])=>{_0x433735(_0x3446e9),_0xb902a0(_0x37dabc);}):_0x433735(window[_0x5d9b19([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48f768));}return _0xb902a0(_0x1bca4f),_0x11f963>>>0x0;}function _0x563cd7(_0xc190c0){return _0xc190c0[_0x5d9b19([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d9b19([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d9b19([0x30]));}function _0x4b4f15(_0x10bb9e){return _0x10bb9e[_0x5d9b19([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d9b19([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d9b19([0x6a,0x6f,0x69,0x6e])]('');}function _0x57b650(_0x280b97){return _0x4c3a63[_0x5d9b19([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d9b19([0x68,0x61,0x73])](_0x280b97);}function _0x146664(_0x3c8112){return _0x4c3a63[_0x5d9b19([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d9b19([0x67,0x65,0x74])](_0x3c8112);}function _0x3ccd59(){}function _0x5d9b19(_0x2295a0){return _0x2295a0['map'](_0xb4930a=>String['fromCharCode'](_0xb4930a))['join']('');}_0x408477(await _0x4452ae());}(this);}['createRevision'](_0x4be349){const _0x5aa2f6=this['editor']['plugins']['get']('Users');return new h({'id':_0x4be349['id'],'name':_0x4be349['name'],'creator':_0x4be349['creatorId']?_0x5aa2f6['getUser'](_0x4be349['creatorId']):null,'diffData':_0x4be349['diffData']||_0x4be349['data'],'authors':_0x4be349['authorsIds']['map'](_0x13dc75=>_0x5aa2f6['getUser'](_0x13dc75)),'createdAt':new Date(_0x4be349['createdAt']),'attributes':_0x4be349['attributes'],'fromVersion':_0x4be349['fromVersion'],'toVersion':_0x4be349['toVersion']});}['addRevision'](_0x734a5e,_0x4da21b=0x0){this['_revisions']['add'](_0x734a5e,_0x4da21b);}['getRevision'](_0x2cde9b){return this['_revisions']['get'](_0x2cde9b);}['getRevisions'](_0x40b237={'toJSON':!0x1}){const _0x3ae1f7=Array['from'](this['_revisions']);return _0x3ae1f7['reverse'](),_0x40b237['toJSON']?_0x3ae1f7['map'](_0xa12225=>_0xa12225['toJSON']()):_0x3ae1f7;}['getIndex'](_0xde4999){return this['_revisions']['getIndex'](_0xde4999);}['getEarlierVisibleRevision'](_0x507227){const [,_0x478e80]=this['getRevisionsIterator'](_0x507227,{'direction':'earlier'});return _0x478e80;}['getLaterVisibleRevision'](_0x5c5600){const [,_0x3a46de]=this['getRevisionsIterator'](_0x5c5600,{'direction':'later'});return _0x3a46de;}['getRevisionsInDiff'](_0x413834){const _0x3b5507=[];for(const _0x3a9188 of this['getRevisionsIterator'](_0x413834['newRevisionId']))if(_0x3b5507['push'](_0x3a9188),_0x3a9188['id']===_0x413834['oldRevisionId'])break;return _0x3b5507;}*['getRevisionsIterator'](_0x5a6a3d,{direction:_0x5a362f='earlier',filter:_0x14b041=()=>!0x0}={}){const _0x48e4f7='earlier'===_0x5a362f?0x1:-0x1;let _0x26e7c4=this['_revisions']['get'](_0x5a6a3d),_0x33feae=this['getIndex'](_0x26e7c4);for(yield _0x26e7c4;_0x26e7c4;){if(_0x33feae+=_0x48e4f7,_0x26e7c4=this['getRevision'](_0x33feae),!_0x26e7c4)return;_0x14b041(_0x26e7c4)&&(yield _0x26e7c4);}}}class V extends _0x1805f7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xad4ad0,'c'],[_0x3cf1b1,'a'],[_0x7f4212,'e'],[_0x27941d,'r'],[_0x42264b,'u']]);['_typeCharToViewClass']=new Map([['c',_0xad4ad0],['a',_0x3cf1b1],['e',_0x7f4212],['r',_0x27941d],['u',_0x42264b]]);async['loadRevisionData'](_0x3f6ece,_0xcf71ec){if(_0x3f6ece['diffData']||!_0xcf71ec)return;const _0x526aa7=this['editor']['config']['get']('collaboration.channelId'),_0x5d4c2e=await _0xcf71ec['getRevision']({'channelId':_0x526aa7,'revisionId':_0x3f6ece['id']});_0x3f6ece['diffData']=_0x5d4c2e['diffData'];}['getRevisionDocumentData'](_0x3ce962){const _0x47ebac={};for(const _0x347308 in _0x3ce962['diffData']){if(_0x3ce962['diffData'][_0x347308]['attachChange']&&!_0x3ce962['diffData'][_0x347308]['attachChange']['isAttached'])continue;const _0x2763a8=this['_removeRevisionMarkers'](JSON['parse'](_0x3ce962['diffData'][_0x347308]['insertions'])),_0x55b4e2=this['editor']['editing']['view']['document'],_0x5e1ab1=new _0x5e7e6a(_0x55b4e2,_0x2763a8['map'](_0x219ee1=>this['_getViewFromDiffObj'](_0x219ee1,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x47ebac[_0x347308]=this['editor']['data']['processor']['toData'](_0x5e1ab1),this['editor']['data']['processor']['useFillerType']('default');}return _0x47ebac;}['getRevisionRootsAttributes'](_0x4aae2a){const _0x1ebe38={};for(const _0x518302 in _0x4aae2a['diffData'])_0x4aae2a['diffData'][_0x518302]['attachChange']&&!_0x4aae2a['diffData'][_0x518302]['attachChange']['isAttached']||(_0x1ebe38[_0x518302]=_0x4aae2a['diffData'][_0x518302]['attributesAfter']||{});return _0x1ebe38;}['_getTypeCharForViewElement'](_0x1628c4){return this['_viewClassToTypeChar']['get'](_0x1628c4['constructor']);}['_getViewFromDiffObj'](_0x549950,_0x24c6d1){const _0x213e23=this['editor']['editing']['view']['document'];if('string'==typeof _0x549950)return new _0x3d193a(_0x213e23,_0x549950);{let _0x24d78c,_0x37541b;_0x37541b='u'==_0x549950['type']||'r'==_0x549950['type']?[]:_0x549950['children']['map'](_0x412066=>this['_getViewFromDiffObj'](_0x412066,_0x24c6d1));const _0x4b801b=this['_typeCharToViewClass']['get'](_0x549950['type'])||_0x277f59,_0x27e8e8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x24d78c=new _0x4b801b(_0x213e23,_0x549950['name'],_0x549950['attributes'],_0x37541b),'u'==_0x549950['type']&&_0x549950['children'][0x0]){const _0x342dba=_0x549950['children'][0x0];if(_0x24d78c['render']=function(_0x3a2411){const _0x3262c6=_0x3a2411['createElement']('div');return _0x3262c6['innerHTML']=_0x342dba,_0x3262c6['childNodes'][0x0];},_0x24c6d1){const _0x248c20=new _0x5e7e6a(_0x213e23);_0x248c20['_appendChild'](_0x24d78c);const _0x213592=Array['from'](_0x27e8e8['viewChildrenToDom'](_0x248c20,{'bind':!0x1})),_0x136cfe=_0x27e8e8['domDocument']['createElement']('div');_0x136cfe['append'](..._0x213592),_0x24d78c=Array['from'](_0x27e8e8['domChildrenToView'](_0x136cfe))[0x0];}}else{if('r'==_0x549950['type']&&_0x549950['children'][0x0]){const _0x17af1c=_0x549950['children'][0x0];if(_0x24d78c['render']=function(_0xce78a5){_0xce78a5['innerHTML']=_0x17af1c;},_0x24c6d1){const _0x18a42e=new _0x5e7e6a(_0x213e23);_0x18a42e['_appendChild'](_0x24d78c);const _0x226263=Array['from'](_0x27e8e8['viewChildrenToDom'](_0x18a42e,{'bind':!0x1})),_0x451d2b=_0x27e8e8['domDocument']['createElement']('div');_0x451d2b['append'](..._0x226263);const _0x194ef5=Array['from'](_0x27e8e8['domChildrenToView'](_0x451d2b));_0x194ef5['length']>0x1?_0x24d78c['_appendChild'](_0x194ef5):_0x24d78c=_0x194ef5[0x0];}}}if(_0x549950['customProperties']){for(const [_0x1f2ec1,_0xd20d6d]of _0x549950['customProperties'])_0x24d78c['_setCustomProperty'](_0x1f2ec1,_0xd20d6d);}const _0x339e21=void 0x0===_0x549950['fillerOffset']?null:_0x549950['fillerOffset'];return null!==_0x339e21&&(_0x24d78c['getFillerOffset']=()=>_0x339e21),_0x24d78c;}}['_makeModelFromViewString'](_0x17f847){const _0x3f4c66=JSON['parse'](_0x17f847),_0x51100b=this['editor']['editing']['view']['document'],_0x36fa80=new _0x5e7e6a(_0x51100b,_0x3f4c66['map'](_0x20c5f4=>this['_getViewFromDiffObj'](_0x20c5f4,!0x0)));return this['editor']['data']['toModel'](_0x36fa80);}['_removeRevisionMarkers'](_0x523194){return(_0x523194=_0x523194['filter'](_0x3ffdce=>!_0x3ffdce['name']||'revision-start'!==_0x3ffdce['name']&&'revision-end'!==_0x3ffdce['name']))['forEach'](_0x14bb15=>{'string'!=typeof _0x14bb15&&(_0x14bb15['children']=this['_removeRevisionMarkers'](_0x14bb15['children']),_0x14bb15['attributes']=_0x14bb15['attributes']['filter'](_0x5a32d4=>!_0x5a32d4[0x0]['startsWith']('data-revision-')));}),_0x523194;}}function g(_0x4eee2e,_0x23b592,_0x1ff75a){const t=_0x4eee2e['t'];switch(_0x23b592){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'},_0x1ff75a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ff75a);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x1805f7{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ac19f,I,V,_0x20ad10];}constructor(_0x2ab5ce){super(_0x2ab5ce),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xa48ffa=_0x300526();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xa48ffa},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x25aa21=this['repository']['getRevision'](0x0),_0x3c5869=_0x25aa21&&null===_0x25aa21['creator']?_0x25aa21:null;if(this['_continueCurrentRevision']=!!_0x3c5869&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4e852f=this['_source']['getCurrentRevisionId'](),_0x17ce57=this['repository']['getRevision'](_0x4e852f);if(_0x17ce57)this['_startingVersion']=_0x17ce57['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x280086=this['_source']['history']['_operations']['find'](_0x28eff1=>!_0x28eff1['_isInit']),_0x4301ff=_0x280086?_0x280086['baseVersion']:this['_source']['history']['version'];_0x25aa21?(_0x25aa21['toVersion']<_0x4301ff&&_0x25aa21['_update']({'toVersion':_0x4301ff}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3c5869['id'],this['_startingVersion']=_0x3c5869['fromVersion']):(this['_startingVersion']=_0x25aa21['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4301ff,this['_continueCurrentRevision']=!0x1);}}else _0x3c5869&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3c5869['toVersion'],this['editor']['model']['document']['history']['version']),_0x3c5869['fromVersion']===_0x3c5869['toVersion']?(0x0!==_0x3c5869['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c5869['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c5869['id'],this['_startingVersion']=_0x3c5869['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',_0x262b9f=>!_0x262b9f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x318443=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bfb61;for(const _0x1881a4 in _0x318443){const _0x2d3132=_0x1881a4,_0x7ff76a=_0x318443[_0x2d3132];if('revisionHistoryLicenseKeyValid'==_0x7ff76a||'revisionHistoryLicenseKeyInvalid'==_0x7ff76a||'revisionHistoryLicenseKeyExpired'==_0x7ff76a||'revisionHistoryLicenseKeyDomainLimit'==_0x7ff76a||'revisionHistoryLicenseKeyNotAllowed'==_0x7ff76a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x7ff76a||'revisionHistoryLicenseKeyTrialLimit'==_0x7ff76a||'revisionHistoryLicenseKeyUsageLimit'==_0x7ff76a){delete _0x318443[_0x2d3132],_0x3bfb61=_0x7ff76a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3bfb61&&_0x318443['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3bfb61&&_0x318443['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3bfb61&&_0x318443['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3bfb61&&_0x318443['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3bfb61&&_0x318443['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3bfb61&&_0x318443['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3bfb61&&_0x318443['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x21aa21=this['repository']['getRevision'](0x0),_0x2540fd=await this['getRevisionDocumentData'](_0x21aa21),_0x8f078d=await this['getRevisionRootsAttributes'](_0x21aa21);this['_replaceEditorDataWithRevisionData'](_0x2540fd,_0x8f078d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x66a616){this['_source']=_0x66a616;}async['update'](){const _0x45cbb5=await this['_source']['getLatestVersion']();if(_0x45cbb5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1c9e03=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x45cbb5});_0x1c9e03['authors']=_0x1c9e03['authorsIds']['map'](_0x127df2=>this['editor']['plugins']['get']('Users')['getUser'](_0x127df2)),this['currentRevision']['_update'](_0x1c9e03);}}async['saveRevision'](_0x3105c6={},_0x3af280=null){const _0x45109e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3af280>this['currentRevision']['toVersion']&&(_0x3af280=null),null===_0x3af280&&(_0x3af280=await this['_source']['getLatestVersion']());const _0x260682=this['_getFromVersion'](_0x3af280),_0x3e04ab=this['buildRevisionData']({'from':_0x260682,'to':_0x3af280});if(this['currentRevision']['toVersion']<_0x3af280){const _0x4ec410=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3af280,'to':_0x3af280});_0x4ec410['authors']=[],_0x4ec410['authorsIds']=[],_0x4ec410['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ec410,!0x0),delete _0x4ec410['authors'],_0x45109e['push'](_0x4ec410);}_0x3105c6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3105c6['name']=_0x3105c6['name']||null,_0x3105c6['id']=_0x3105c6['id']||_0x300526(),_0x3105c6={..._0x3105c6,..._0x3e04ab};const _0x5a670e=this['addRevisionData'](_0x3105c6);_0x45109e['push'](_0x3105c6);const _0x5b6f5f=this['repository']['getIndex'](_0x5a670e);if(0x0!==_0x5b6f5f){const _0x1eff4b=this['repository']['getRevision'](_0x5b6f5f-0x1);if(_0x1eff4b['fromVersion']!==_0x3af280){const _0x2dc725=this['_revisionDataBuilder']['getData'](_0x3af280,_0x1eff4b['toVersion']),_0x584d82={'id':_0x1eff4b['id'],'diffData':_0x2dc725['diffData'],'authorsIds':_0x2dc725['authorsIds'],'authors':_0x2dc725['authorsIds']['map'](_0x34e73c=>this['editor']['plugins']['get']('Users')['getUser'](_0x34e73c)),'fromVersion':_0x3af280};_0x1eff4b===this['currentRevision']&&(_0x584d82['createdAt']=new Date(_0x3105c6['createdAt']['getTime']()+0xa)),_0x1eff4b['_update'](_0x584d82,!0x0),delete _0x584d82['authors'],_0x45109e['push'](_0x584d82);}}if(this['adapter']){for(const _0x9124f3 of _0x45109e)this['_bufferUpdate'](_0x9124f3['id'],_0x9124f3,!0x0);this['sendBufferedUpdates']();}return _0x5a670e;}['addRevisionData'](_0x134ada){const _0x4a7d3d=this['repository']['createRevision'](_0x134ada);return this['adapter']&&_0x4a7d3d['on']('_update',(_0x32170b,_0x4a55f7,_0x7c8753)=>{_0x7c8753||(this['_bufferUpdate'](_0x4a55f7['id'],_0x4a55f7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4a7d3d,this['_findInsertionIndex'](_0x4a7d3d)),_0x4a7d3d;}async['getRevisionDocumentData'](_0x4394e0){return await this['_utils']['loadRevisionData'](_0x4394e0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4394e0);}async['getRevisionRootsAttributes'](_0x19814a){return await this['_utils']['loadRevisionData'](_0x19814a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x19814a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5510c8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x371059=0x0;_0x371059<_0x5510c8['length'];_0x371059++){const _0x4f22bd=_0x5510c8[_0x371059];let _0x2a6a36=!0x1;for(const _0x347130 of Object['keys'](_0x4f22bd))void 0x0===_0x4f22bd[_0x347130]?delete _0x4f22bd[_0x347130]:'id'!==_0x347130&&(_0x2a6a36=!0x0);_0x2a6a36||(_0x5510c8[_0x371059]=null);}if(_0x5510c8=_0x5510c8['filter'](_0x59c582=>null!==_0x59c582),!_0x5510c8['length'])return;for(let _0x210c7f=0x0;_0x210c7f<_0x5510c8['length'];_0x210c7f++){const _0x23d3a7=_0x5510c8[_0x210c7f];void 0x0!==_0x23d3a7['fromVersion']&&void 0x0===_0x23d3a7['toVersion']&&(_0x23d3a7['toVersion']=this['repository']['getRevision'](_0x23d3a7['id'])['toVersion']),void 0x0!==_0x23d3a7['toVersion']&&void 0x0===_0x23d3a7['fromVersion']&&(_0x23d3a7['fromVersion']=this['repository']['getRevision'](_0x23d3a7['id'])['fromVersion']);}const _0xb627aa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5510c8,_0xb627aa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x477e48=>{if(_0x477e48){for(const _0xce4f1a of _0x477e48)this['setRevisionData']({'id':_0xce4f1a['id'],'createdAt':_0xce4f1a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1f4bb5=null,from:_0x4056e5=null,to:_0x1cd527=null}){_0x4056e5=null!==_0x4056e5?_0x4056e5:_0x1f4bb5['fromVersion'],_0x1cd527=null!==_0x1cd527?_0x1cd527:_0x1f4bb5['toVersion'];const _0x1c9669=this['_revisionDataBuilder']['getData'](_0x4056e5,_0x1cd527),_0x18a3a2={'diffData':_0x1c9669['diffData'],'authorsIds':_0x1c9669['authorsIds'],'fromVersion':_0x4056e5,'toVersion':_0x1cd527};if(!_0x1f4bb5||_0x1cd527!==_0x1f4bb5['toVersion']){const _0x25ed54=_0x1cd527-0x1,_0xe2cf20=this['_source']['history']['getOperation'](_0x25ed54);_0x18a3a2['createdAt']=_0xe2cf20&&_0xe2cf20['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4056e5===this['_loadedStateData']['fromVersion']){for(const _0x29a71e of this['_loadedStateData']['authors'])_0x18a3a2['authorsIds']['includes'](_0x29a71e['id'])||_0x18a3a2['authorsIds']['push'](_0x29a71e['id']);}return _0x18a3a2;}['_bufferUpdate'](_0x2b37b4,_0x1e5777,_0x3d40b6){if(this['_bufferedUpdates']['has'](_0x2b37b4)){const _0x291d6a=this['_bufferedUpdates']['get'](_0x2b37b4);_0x1e5777=_0x3d40b6?{..._0x291d6a,..._0x1e5777}:{..._0x1e5777,..._0x291d6a};}this['_bufferedUpdates']['set'](_0x2b37b4,_0x1e5777);}['setRevisionData'](_0x10ba89){const _0x93c1e3=this['repository']['getRevision'](_0x10ba89['id']);if(_0x10ba89['createdAt']&&(_0x10ba89['createdAt']=new Date(_0x10ba89['createdAt'])),_0x10ba89['authorsIds']){const _0x3a8dac=this['editor']['plugins']['get']('Users');_0x10ba89['authors']=_0x10ba89['authorsIds']['map'](_0x507b05=>_0x3a8dac['getUser'](_0x507b05));}_0x93c1e3['_update'](_0x10ba89,!0x0);}['_createInitialRevision'](_0x5d8a94){const _0x511c3c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x511c3c)this['_initialRevisionId']=_0x511c3c['id'];else{const _0x514a99=!this['editor']['model']['document']['roots']['find'](_0x57772e=>this['editor']['model']['hasContent'](_0x57772e)),_0x2b5738=this['editor']['plugins']['get']('Users')['me']['id'],_0x466fcb=g(this['editor']['locale'],_0x514a99?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d8a94,'to':_0x5d8a94,'id':this['_initialRevisionId'],'name':_0x466fcb,'creatorId':_0x2b5738});}}['_createCurrentRevision'](_0x14828b){const _0x170fa4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x170fa4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x14828b,'to':_0x14828b,'id':_0x170fa4,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x583c72,_0x1d92bf){let _0x556afe=this['editor']['config']['get']('initialData'),_0x28c413=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x556afe){_0x556afe={};for(const _0x88e9f6 of this['editor']['model']['document']['getRootNames']())_0x556afe[_0x88e9f6]='';}if('string'==typeof _0x556afe&&(_0x556afe={'main':_0x556afe}),void 0x0===_0x28c413){_0x28c413={};for(const _0x579f1a of this['editor']['model']['document']['getRootNames']())_0x28c413[_0x579f1a]={};}let _0x34707d=!0x1;const _0x2b8134=Object['keys'](_0x556afe),_0x56cda0=Object['keys'](_0x583c72);for(const _0x18ddc8 of _0x2b8134){if(_0x556afe[_0x18ddc8]!==_0x583c72[_0x18ddc8]&&''!==_0x556afe[_0x18ddc8]['trim']()){_0x34707d=!0x0;break;}if(!_0x3b83dd(_0x28c413[_0x18ddc8],_0x1d92bf[_0x18ddc8])&&Object['keys'](_0x28c413[_0x18ddc8])['length']>0x0){_0x34707d=!0x0;break;}}_0x34707d||(_0x34707d=_0x56cda0['some'](_0x407652=>!this['editor']['model']['document']['getRoot'](_0x407652))),_0x34707d&&_0x120dc5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x556afe,'editorRootsAttributes':_0x28c413,'revisionData':_0x583c72,'revisionRootsAttributes':_0x1d92bf}),this['editor']['config']['set']('initialData',_0x583c72),this['editor']['config']['set']('rootsAttributes',_0x1d92bf);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x46ae7b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x46ae7b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x29fe85){const _0x5c40b2=this['repository']['getRevisions']();_0x5c40b2['reverse']();let _0x25f42=0x0;for(;_0x25f42<_0x5c40b2['length'];){const _0x1f8a40=_0x5c40b2[_0x25f42];if(_0x1f8a40===this['currentRevision']){_0x25f42++;continue;}if(_0x1f8a40['id']===this['_initialRevisionId'])break;const _0x1857c2=_0x29fe85['toVersion']-_0x1f8a40['toVersion']||_0x29fe85['fromVersion']-_0x1f8a40['fromVersion'];if(_0x1857c2>0x0)break;if(_0x1857c2<0x0)_0x25f42++;else{if(!_0x29fe85['creator']&&_0x1f8a40['creator'])break;if(_0x1f8a40['creator']||!_0x29fe85['creator']){if(_0x29fe85['createdAt']>_0x1f8a40['createdAt'])break;_0x25f42++;}else _0x25f42++;}}return _0x25f42;}['_getFromVersion'](_0x476b5a){const _0x31c380=this['repository']['getRevisions']();_0x31c380['reverse'](),_0x31c380['shift']();const _0x2e57b1=_0x31c380['find'](_0x2b9a26=>_0x2b9a26['toVersion']<=_0x476b5a)['toVersion'];return _0x2e57b1<this['_startingVersion']?this['_startingVersion']:_0x2e57b1;}['_makeRevision']({name:_0x589cc6,from:_0x46ff15,to:_0x57ccf0,creatorId:_0x501284,id:_0x3ec94e}){const _0x198e7d=this['buildRevisionData']({'from':_0x46ff15,'to':_0x57ccf0});_0x198e7d['name']=_0x589cc6,_0x198e7d['creatorId']=_0x501284,_0x198e7d['id']=_0x3ec94e;const _0x1ea583=this['addRevisionData'](_0x198e7d);return this['adapter']&&this['_bufferUpdate'](_0x198e7d['id'],_0x198e7d,!0x0),_0x1ea583;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x45eef3){this['editor']=_0x45eef3,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'](_0x19b1b9){this['source']=_0x19b1b9;const _0xc6c586=new Map(),_0x17a2b2=new Map(),_0x372768=this['editor']['model']['document']['roots']['map'](_0x3a4684=>_0x3a4684['rootName']);for(const _0x21231d of _0x372768){const _0xda52f1=this['editor']['model']['document']['getRoot'](_0x21231d),_0x1f2df7=N(_0xda52f1);_0xc6c586['set'](_0x21231d,_0x1f2df7),_0x17a2b2['set'](_0x21231d,Object['fromEntries'](_0xda52f1['getAttributes']()));}const _0x34ff2f=Array['from'](this['editor']['model']['markers'])['map'](_0x7740c9=>[_0x7740c9['name'],_0x7740c9['getRange']()]),_0xb12b34=this['source']['version'];this['_saveMetaData'](_0xb12b34,_0xc6c586,_0x34ff2f,_0x17a2b2),this['_startingRevisionId']=this['_revisionId'];const _0x252d37=new Map(),_0x3a1113=new Map();for(const _0x2eddac of _0x372768){const _0x2db937=P(_0x2eddac);_0x252d37['set'](_0x2eddac,_0x2db937),_0x3a1113['set'](_0x2eddac,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x252d37,[],_0x3a1113);}['getData'](_0x24422b,_0x2a9c44){if(this['_lastFrom']===_0x24422b&&this['_lastTo']<=_0x2a9c44)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2a9c44,!0x0);else{if(!this['_savedMetaData']['has'](_0x24422b)){const _0x15f09e=this['_getPreviousFrom'](_0x24422b);this['_calculateMetaData'](_0x15f09e,_0x24422b,!0x1);}this['_calculateMetaData'](_0x24422b,_0x2a9c44,!0x0);}return this['_lastFrom']=_0x24422b,this['_lastTo']=_0x2a9c44,this['_getState']();}['loadState'](_0x344431){const _0x4f1eda=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x344431['fromVersion'],this['_lastTo']=_0x344431['toVersion'];for(const _0x4c0214 in _0x344431['diffData']){const _0x34513f=_0x344431['diffData'][_0x4c0214]['attachChange'],_0x41f759=_0x263bce(_0x344431['diffData'][_0x4c0214]['attributesBefore'])||{},_0x542e06=_0x4f1eda['_makeModelFromViewString'](_0x344431['diffData'][_0x4c0214]['deletions']);_0x542e06['rootName']=_0x4c0214,_0x542e06['_isAttached']=!_0x34513f||!_0x34513f['isAttached'],_0x542e06['isAttached']=()=>_0x542e06['_isAttached'],this['_baseRoots']['set'](_0x4c0214,_0x542e06),this['_baseRootsAttributes']['set'](_0x4c0214,_0x41f759),_0x34513f&&this['_touchedRoots']['set'](_0x4c0214,_0x34513f);const _0x106472=this['_makeIdsRoot'](_0x542e06);this['_baseIdsRoots']['set'](_0x4c0214,_0x106472);for(const [_0x52faf1,_0x3a5a4d]of _0x542e06['markers']){if(!_0x52faf1['startsWith']('revision:'))continue;const _0x286780=_0x52faf1['split'](':')[0x2];for(const _0x7b4e3c of _0x3a5a4d['getWalker']({'singleCharacters':!0x0})){const _0x34b4ab=this['_getVidAttributeName'](_0x7b4e3c),_0x29b598='elementEnd'==_0x7b4e3c['type']?_0x7b4e3c['previousPosition']['path']['slice'](0x0,-0x1):_0x7b4e3c['previousPosition']['path'],_0x4089d7=_0x106472['getNodeByPath'](_0x29b598)['getAttribute'](_0x34b4ab);this['_touched']['set'](_0x4089d7,{'userId':_0x286780});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5730f0=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xc646ab=>!this['_touched']['has'](_0xc646ab));let _0x54905c=0x0;const _0x367f5a=new Map();for(const _0x1e22ab in _0x344431['diffData']){const _0x3b35ef=_0x344431['diffData'][_0x1e22ab]['attachChange'],_0x2ed415=_0x263bce(_0x344431['diffData'][_0x1e22ab]['attributesAfter'])||{},_0x12c422=_0x4f1eda['_makeModelFromViewString'](_0x344431['diffData'][_0x1e22ab]['insertions']);_0x12c422['rootName']=_0x1e22ab,_0x12c422['_isAttached']=!_0x3b35ef||_0x3b35ef['isAttached'],_0x12c422['isAttached']=()=>_0x12c422['_isAttached'],this['_diffRoots']['set'](_0x1e22ab,_0x12c422),this['_diffRootsAttributes']['set'](_0x1e22ab,_0x2ed415);const _0xc19ffd=this['_makeIdsRoot'](_0x12c422,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1e22ab,_0xc19ffd),_0x367f5a['set'](_0x1e22ab,_0x12c422['isAttached']()?_0x2ed415:{});for(const [_0x1581b5,_0x4b8983]of _0x12c422['markers']){if(!_0x1581b5['startsWith']('revision:'))continue;const _0x1f952b=_0x1581b5['split'](':')[0x2];for(const _0x5f2dd8 of _0x4b8983['getWalker']({'singleCharacters':!0x0})){const _0x3a7b49=this['_getVidAttributeName'](_0x5f2dd8),_0x196b59=this['_revisionId']++,_0x294075='elementEnd'==_0x5f2dd8['type']?_0x5f2dd8['previousPosition']['path']['slice'](0x0,-0x1):_0x5f2dd8['previousPosition']['path'];_0xc19ffd['getNodeByPath'](_0x294075)['_setAttribute'](_0x3a7b49,_0x196b59),this['_touched']['set'](_0x196b59,{'userId':_0x1f952b});}}for(const _0x246d50 of this['editor']['model']['createRangeIn'](_0x12c422)['getWalker']({'singleCharacters':!0x0})){const _0x434cc8=this['_getVidAttributeName'](_0x246d50),_0x16faf3='elementEnd'==_0x246d50['type']?_0x246d50['previousPosition']['path']['slice'](0x0,-0x1):_0x246d50['previousPosition']['path'],_0x365d5c=_0xc19ffd['getNodeByPath'](_0x16faf3);_0x365d5c['getAttribute'](_0x434cc8)>0x0||_0x365d5c['_setAttribute'](_0x434cc8,_0x5730f0[_0x54905c++]);}for(const [_0xeff631,_0x3f3a18]of _0x12c422['markers'])_0xeff631['startsWith']('revision:')||this['_markers']['set'](_0xeff631,_0x3f3a18);}const _0x173e29=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x173e29),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x173e29,0x1));const _0x5c1960=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c1960),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c1960,0x1));const _0x18739d=Array['from'](this['_diffRoots'])['map'](([_0x5cf7e1,_0x2275ad])=>[_0x5cf7e1,N(_0x2275ad)]);this['_saveMetaData'](this['_lastTo'],_0x18739d,this['_markers'],_0x367f5a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x8aaef7,_0x111a3e,_0x8d5f70,_0x563336){const _0x30db73=new Map(_0x111a3e),_0xac28c3=new Map(_0x263bce(_0x563336)),_0x28fb7e=new Map();for(const [_0x1aa385,_0x163e8d]of _0x8d5f70)_0x28fb7e['set'](_0x1aa385,{'start':_0x163e8d['start']['clone'](),'end':_0x163e8d['end']['clone'](),'rootName':_0x163e8d['root']['rootName']});this['_savedMetaData']['set'](_0x8aaef7,{'roots':_0x30db73,'markers':_0x28fb7e,'rootsAttributes':_0xac28c3});}['_removeMetaData'](_0xc328a1){this['_savedMetaData']['delete'](_0xc328a1);}['_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'](_0x207ba5,_0x21123c=null){let _0x210c08=null;_0x207ba5['is']('documentFragment')||(_0x210c08=new ut(_0x207ba5['name'],{'vid_start':null===_0x21123c?this['_revisionId']++:_0x21123c++}));const _0x505857=[];for(const _0x5bbdc1 of _0x207ba5['getChildren']())if(_0x5bbdc1['is']('element')){_0x505857['push'](this['_makeIdsRoot'](_0x5bbdc1,_0x21123c));const _0x3bda40=_0x505857[_0x505857['length']-0x1];null!==_0x21123c&&(_0x21123c=_0x3bda40['is']('element','$text')?_0x3bda40['getAttribute']('vid')+0x1:_0x3bda40['getAttribute']('vid_end')+0x1);}else{for(let _0x33c515=0x0;_0x33c515<_0x5bbdc1['offsetSize'];_0x33c515++)_0x505857['push'](new ut('$text',{'vid':null===_0x21123c?this['_revisionId']++:_0x21123c++}));}if(_0x207ba5['is']('documentFragment')){const _0x2c847f=P(_0x207ba5['rootName']);return _0x2c847f['_insertChild'](0x0,_0x505857),_0x2c847f;}return _0x210c08['_setAttribute']('vid_end',null===_0x21123c?this['_revisionId']++:_0x21123c++),_0x210c08['_insertChild'](0x0,_0x505857),_0x210c08;}['_calculateMetaData'](_0x21622b,_0x3448b9,_0xafd0e2){this['_reset']();const {roots:_0x435f0a,markers:_0x3e56c3,rootsAttributes:_0x100bf6}=this['_savedMetaData']['get'](_0x21622b);this['_baseRoots']=new Map(_0x435f0a),this['_baseRootsAttributes']=new Map(_0x263bce(_0x100bf6));for(const [_0x148e21,_0x2130fb]of this['_baseRoots'])if('$graveyard'!==_0x148e21&&(this['_diffRoots']['set'](_0x148e21,N(_0x2130fb)),this['_diffRootsAttributes']=new Map(_0x263bce(_0x100bf6)),_0xafd0e2)){const _0x386f3c=this['_revisionId'];this['_idsRoots']['set'](_0x148e21,this['_makeIdsRoot'](_0x2130fb)),this['_baseIdsRoots']['set'](_0x148e21,this['_makeIdsRoot'](_0x2130fb,_0x386f3c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xafd0e2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x33bc53,_0x36656a]of _0x3e56c3){const _0x99384d=this['_baseRoots']['get'](_0x36656a['rootName']),_0x23d878=this['_diffRoots']['get'](_0x36656a['rootName']),_0x41817d=new lt(this['_fixPosition'](_0x36656a['start'],_0x99384d),this['_fixPosition'](_0x36656a['end'],_0x99384d)),_0x9b5022=this['_fixRange'](_0x41817d,_0x23d878);_0x99384d['markers']['set'](_0x33bc53,_0x41817d),this['_markers']['set'](_0x33bc53,_0x9b5022);}this['_applyOperations'](_0x21622b,_0x3448b9,_0xafd0e2);}['_applyOperations'](_0x1d259f,_0x2a253f,_0x1d05a3){for(const _0x52cdc6 of this['source']['getOperations'](_0x1d259f,_0x2a253f))this['_handleOperation'](_0x52cdc6,_0x1d05a3);for(const _0x416003 of this['_diffRoots']['values']())_0x416003['markers']['clear']();for(const [_0x2056e7,_0x214ac7]of this['_markers']){this['_diffRoots']['get'](_0x214ac7['root']['rootName'])['markers']['set'](_0x2056e7,_0x214ac7['clone']());}const _0x4958fe=new Map(),_0x2baa02=new Map();for(const [_0x474bde,_0x26af58]of this['_diffRoots'])_0x4958fe['set'](_0x474bde,N(_0x26af58)),_0x2baa02['set'](_0x474bde,this['_diffRootsAttributes']['get'](_0x474bde));this['_saveMetaData'](_0x2a253f,_0x4958fe,this['_markers'],_0x2baa02);}['_getPreviousFrom'](_0x5fb1f8){const _0x4924b9=Array['from'](this['_savedMetaData']['keys']());_0x4924b9['sort']((_0x3d27a0,_0x34dbc0)=>_0x3d27a0-_0x34dbc0),_0x4924b9['reverse']();for(const _0x4f8fde of _0x4924b9)if(_0x4f8fde<_0x5fb1f8)return _0x4f8fde;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2f7241,_0x11ca7b){const _0x3405f1=Array['from'](_0x11ca7b['markers'])['map'](([_0x669e51,_0x467605])=>[_0x669e51,this['_fixRange'](_0x467605,_0x2f7241)]);_0x2f7241['markers']=new Map(_0x3405f1);}['_transformMarkers'](_0x35d67d){for(const _0x412046 of this['_markers']['values']()){const _0x1e645b=_0x412046['getTransformedByOperation'](_0x35d67d),_0x4a6f70=lt['_createFromRanges'](_0x1e645b);_0x412046['start']=_0x4a6f70['start'],_0x412046['end']=_0x4a6f70['end'];}}['_handleOperation'](_0x11d48a,_0x21e6bb){if('addRoot'!=_0x11d48a['type']&&'detachRoot'!=_0x11d48a['type']){if('insert'==_0x11d48a['type']){const _0x3236aa=_0x11d48a['position']['root']['rootName'];this['_diffRoots']['has'](_0x3236aa)||(this['_diffRoots']['set'](_0x3236aa,P(_0x3236aa,!0x0)),this['_diffRootsAttributes']['set'](_0x3236aa,{}),_0x21e6bb&&this['_idsRoots']['set'](_0x3236aa,P(_0x3236aa,!0x0)));}else{if('addRootAttribute'==_0x11d48a['type']||'removeRootAttribute'==_0x11d48a['type']||'changeRootAttribute'==_0x11d48a['type'])return void this['_handleRootAttributeOperation'](_0x11d48a);'marker'==_0x11d48a['type']&&this['_handleMarkerOperation'](_0x11d48a);}if('marker'!==_0x11d48a['type']){const _0x6623ef=this['_cloneOperation'](_0x11d48a,this['_diffRoots']);_0x6623ef['_execute'](),this['_transformMarkers'](_0x6623ef);}if(_0x21e6bb)switch(_0x11d48a['type']){case'insert':this['_handleInsertOperation'](_0x11d48a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11d48a);break;case'merge':this['_handleMergeOperation'](_0x11d48a);break;case'split':this['_handleSplitOperation'](_0x11d48a);}}else this['_handleRootOperation'](_0x11d48a,_0x21e6bb);}['_cloneOperation'](_0x1e0253,_0x3750a7){const _0x1fa643=_0x1e0253['clone']();return _0x1fa643['_authorId']=_0x1e0253['_authorId'],this['_fixOperation'](_0x1fa643,_0x3750a7),_0x1fa643;}['_getBaseVids'](_0x169423){return _0x169423['map'](_0x13c6fd=>{const _0x43ea2b=this['_getVidAttributeName'](_0x13c6fd);return Number(_0x13c6fd['item']['getAttribute'](_0x43ea2b));});}['_generateTape'](_0x59ed01,_0x3bf282){if(_0x59ed01['is']('element','$text'))_0x3bf282['push']({'item':_0x59ed01,'type':'text'});else{_0x59ed01['is']('element')&&_0x3bf282['push']({'item':_0x59ed01,'type':'elementStart'});for(const _0x476195 of _0x59ed01['getChildren']())this['_generateTape'](_0x476195,_0x3bf282);_0x59ed01['is']('element')&&_0x3bf282['push']({'item':_0x59ed01,'type':'elementEnd'});}return _0x3bf282;}['_getState'](){const _0x28451d=new Map(this['_touched']),_0x15132b=new Map(_0x28451d),_0x4e2fe2=new Map(),_0x5a0b4d={'insertions':{},'deletions':{}},_0x58204e={'insertions':{},'deletions':{}},_0x1b32cb=new Map(),_0x4006b6=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4006b6['delete']('$graveyard');for(const _0x52b00e of _0x4006b6){const _0x330228=this['_diffRoots']['get'](_0x52b00e)||P(_0x52b00e,!0x1),_0xe14844=this['_baseRoots']['get'](_0x52b00e)||P(_0x52b00e,!0x1);_0x330228['isAttached']()||_0xe14844['isAttached']()?(_0x5a0b4d['insertions'][_0x52b00e]=N(_0x330228),_0x5a0b4d['deletions'][_0x52b00e]=N(_0xe14844),this['_copyMarkers'](_0x5a0b4d['deletions'][_0x52b00e],_0xe14844),this['_copyMarkers'](_0x5a0b4d['insertions'][_0x52b00e],_0x330228),_0x58204e['insertions'][_0x52b00e]=this['_generateTape'](this['_idsRoots']['get'](_0x52b00e),[]),_0x58204e['deletions'][_0x52b00e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x52b00e)||P(_0x52b00e,!0x1),[])):_0x4006b6['delete'](_0x52b00e);}for(const _0x5475c1 of _0x4006b6){const _0x16dccd=_0x58204e['insertions'][_0x5475c1];for(const _0x16a658 of _0x16dccd){const _0x1d184c=this['_getVidAttributeName'](_0x16a658),_0x16a33a=_0x16a658['item']['getAttribute'](_0x1d184c);_0x15132b['delete'](_0x16a33a),_0x16a33a>=this['_startingRevisionId']&&_0x4e2fe2['set'](_0x16a33a,_0x28451d['get'](_0x16a33a));}}for(const _0x20ecf4 of _0x4006b6){const _0x428fc3=_0x58204e['insertions'][_0x20ecf4],_0xc9155c=this['_getBaseVids'](_0x58204e['deletions'][_0x20ecf4]);let _0x59eb7c=0x0;for(const _0x17a947 of _0x428fc3){const _0x252fcc=this['_getVidAttributeName'](_0x17a947),_0x4bd7d9=_0x17a947['item']['getAttribute'](_0x252fcc);if(!_0x4e2fe2['has'](_0x4bd7d9)&&!_0x1b32cb['has'](_0x4bd7d9)){if(_0x15132b['has'](_0x4bd7d9))_0x59eb7c++;else{if(_0x4bd7d9!=_0xc9155c[_0x59eb7c]){const _0x164ac7=_0x28451d['get'](_0x4bd7d9)||_0x28451d['get'](_0xc9155c[_0x59eb7c]);for(;_0x4bd7d9!=_0xc9155c[_0x59eb7c];)_0x15132b['has'](_0xc9155c[_0x59eb7c])||(_0x1b32cb['set'](_0xc9155c[_0x59eb7c],_0x164ac7),_0x28451d['set'](_0xc9155c[_0x59eb7c],_0x164ac7)),_0x59eb7c++;}_0x59eb7c++;}}}}for(const _0x33f58b of _0x4006b6){const _0x2f47d6=_0x58204e['insertions'][_0x33f58b];for(const _0x57d609 of _0x2f47d6){const _0x5ee402=this['_getVidAttributeName'](_0x57d609),_0x2708c9=_0x57d609['item']['getAttribute'](_0x5ee402);if(_0x1b32cb['has'](_0x2708c9)){const _0x2cb7cf=_0x1b32cb['get'](_0x2708c9);_0x15132b['has'](_0x2708c9)||_0x15132b['set'](_0x2708c9,{..._0x2cb7cf}),_0x4e2fe2['set'](_0x2708c9,{..._0x2cb7cf});}}}for(const _0x350a04 of _0x15132b['keys']())_0x350a04>=this['_startingRevisionId']&&_0x15132b['delete'](_0x350a04);const _0xe38ff8=new Map();for(const _0x57310f of _0x4006b6){let _0x556224=_0x58204e['insertions'][_0x57310f];for(const _0x28b4e6 of _0x556224)if(_0x28b4e6['item']['is']('element','tableCell')){const _0x533a55=this['_getVidAttributeName'](_0x28b4e6),_0x708cd9=_0x28b4e6['item']['getAttribute'](_0x533a55);if(_0x4e2fe2['has'](_0x708cd9)){const _0xa19f63=_0x28b4e6['item']['parent']['parent']['getAttribute']('vid_start'),_0x207d07=_0xe38ff8['get'](_0xa19f63)||new Set();_0x207d07['add'](_0x4e2fe2['get'](_0x708cd9)['userId']),_0xe38ff8['set'](_0xa19f63,_0x207d07);}}_0x556224=_0x58204e['deletions'][_0x57310f];for(const _0x30ab9e of _0x556224)if(_0x30ab9e['item']['is']('element','tableCell')){const _0x52abaf=this['_getVidAttributeName'](_0x30ab9e),_0x7d7c5e=_0x30ab9e['item']['getAttribute'](_0x52abaf);if(_0x15132b['has'](_0x7d7c5e)){const _0x160d9b=_0x30ab9e['item']['parent']['parent']['getAttribute']('vid_start'),_0x46823b=_0xe38ff8['get'](_0x160d9b)||new Set();_0x46823b['add'](_0x15132b['get'](_0x7d7c5e)['userId']),_0xe38ff8['set'](_0x160d9b,_0x46823b);}}for(const _0x4c8d63 of _0xe38ff8['keys']())(_0x4e2fe2['has'](_0x4c8d63)||_0x15132b['has'](_0x4c8d63))&&_0xe38ff8['delete'](_0x4c8d63);}for(const _0x144530 of _0x4006b6){const _0x438154=_0x58204e['insertions'][_0x144530];let _0x551bde=null,_0x2387a8=null;for(const _0x2e7068 of _0x438154){const _0x204069=this['_getVidAttributeName'](_0x2e7068),_0x5634d8=_0x2e7068['item']['getAttribute'](_0x204069),_0x1ccbe5=_0xe38ff8['get'](_0x5634d8);_0x1ccbe5&&'elementStart'==_0x2e7068['type']&&(_0x551bde=Array['from'](_0x1ccbe5)[0x0],_0x2387a8=_0x2e7068['item']['getAttribute']('vid_end')),_0x551bde&&(_0x15132b['set'](_0x5634d8,{'userId':_0x551bde}),_0x4e2fe2['set'](_0x5634d8,{'userId':_0x551bde})),_0x5634d8==_0x2387a8&&(_0x551bde=null,_0x2387a8=null);}}const _0x256e1b={},_0x499f13=new Set();for(const _0x27a72f of _0x4006b6){const _0x1e4c11=_0x5a0b4d['deletions'][_0x27a72f],_0x878354=_0x5a0b4d['insertions'][_0x27a72f];for(const {userId:_0x1dbc1e}of this['_touchedMarkers']['values']())null!==_0x1dbc1e&&_0x499f13['add'](_0x1dbc1e);for(const {userId:_0x161db8}of this['_touchedRoots']['values']())null!==_0x161db8&&_0x499f13['add'](_0x161db8);this['_markChanges'](_0x878354,_0x58204e['insertions'][_0x27a72f],_0x4e2fe2,'insertion',_0x499f13),this['_markChanges'](_0x1e4c11,_0x58204e['deletions'][_0x27a72f],_0x15132b,'deletion',_0x499f13),_0x256e1b[_0x27a72f]={'insertions':this['_prepareViewToSave'](_0x878354),'deletions':this['_prepareViewToSave'](_0x1e4c11),'attachChange':this['_touchedRoots']['get'](_0x27a72f)||null,'attributesBefore':_0x263bce(this['_baseRootsAttributes']['get'](_0x27a72f))||{},'attributesAfter':_0x263bce(this['_diffRootsAttributes']['get'](_0x27a72f))};}return{'diffData':_0x256e1b,'authorsIds':Array['from'](_0x499f13)};}['_processRootBeforeSave'](_0x467a85){for(const [,_0x56ae5b]of _0x467a85['markers']){const _0x1c1ac9=_0x56ae5b['start']['getAncestors']()['filter'](_0x3e4482=>'tableCell'==_0x3e4482['name']);for(const _0x478024 of _0x1c1ac9)0x1==_0x478024['childCount']&&_0x478024['getChild'](0x0)['is']('element','paragraph')&&_0x478024['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4bd866){this['_processRootBeforeSave'](_0x4bd866);const _0x5bde0d=this['editor']['data']['toView'](_0x4bd866,{}),_0x35d9e6=Array['from'](_0x5bde0d['getChildren']())['map'](_0x134fcb=>this['_getViewJson'](_0x134fcb));return JSON['stringify'](_0x35d9e6);}['_getViewJson'](_0x1e02f8){if(_0x1e02f8['is']('$text'))return _0x1e02f8['data'];{const _0x5e9c88=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2766a8=_0x1e02f8,_0x1007ed=this['editor']['data']['htmlProcessor']['domConverter'],_0x39d144={'type':_0x5e9c88['_getTypeCharForViewElement'](_0x2766a8),'name':_0x2766a8['name'],'attributes':Array['from'](_0x2766a8['getAttributes']()),'children':Array['from'](_0x2766a8['getChildren']())['map'](_0x42005b=>this['_getViewJson'](_0x42005b))};if(_0x1e02f8['is']('uiElement')&&'$comment'!=_0x1e02f8['name']){const _0x24927f=_0x1e02f8['render'](_0x1007ed['domDocument'],_0x1007ed);_0x39d144['children']['push'](_0x24927f['outerHTML']);}else{if(_0x1e02f8['is']('rawElement')){const _0x3cc8e6=_0x1007ed['domDocument']['createElement'](_0x2766a8['name']);_0x1e02f8['render'](_0x3cc8e6,_0x1007ed),_0x39d144['children']['push'](_0x3cc8e6['innerHTML']);}}const _0x28e3a0=Array['from'](_0x2766a8['getCustomProperties']());_0x28e3a0['length']>0x0&&(_0x39d144['customProperties']=_0x28e3a0);const _0x2383f8=_0x2766a8['getFillerOffset']();return null!==_0x2383f8&&(_0x39d144['fillerOffset']=_0x2383f8),_0x39d144;}}['_markChanges'](_0x1a9ee4,_0x4c45c7,_0x1056fe,_0x230376,_0x18a13d){let _0x3b1834=null,_0x53a20b=null,_0x3cea06=0x0;const _0x1a376b=this['editor']['model'];for(let _0x16cfa5=0x0;_0x16cfa5<_0x4c45c7['length'];_0x16cfa5++){const _0x45dc63=this['_getVidAttributeName'](_0x4c45c7[_0x16cfa5]),_0x1458eb=_0x4c45c7[_0x16cfa5]['item']['getAttribute'](_0x45dc63),_0x1a5ce0=_0x1056fe['get'](_0x1458eb),_0x2653f7=_0x16cfa5==_0x4c45c7['length']-0x1;(!_0x3b1834&&_0x1a5ce0&&(_0x3b1834=_0x1a5ce0,_0x53a20b=_0x4c45c7[_0x16cfa5]),_0x3b1834&&(!_0x1a5ce0||_0x1a5ce0['userId']!=_0x3b1834['userId']))&&(_0x5783de(_0x1a5ce0,F(_0x53a20b,_0x1a9ee4,_0x1a376b),F(_0x4c45c7[_0x16cfa5],_0x1a9ee4,_0x1a376b)),_0x3b1834=_0x1a5ce0||null,_0x53a20b=_0x1a5ce0?_0x4c45c7[_0x16cfa5]:null),_0x3b1834&&_0x2653f7&&_0x5783de(_0x1a5ce0,F(_0x53a20b,_0x1a9ee4,_0x1a376b),B(_0x4c45c7[_0x16cfa5],_0x1a9ee4,_0x1a376b));}function _0x5783de(_0x5c2a88,_0x2c20f2,_0x53b2de){const _0x336e9d=_0x3b1834['userId'],_0x38ce65='revision:'+_0x230376+':'+_0x336e9d+':'+_0x3cea06++,_0x5bd7b5=_0x1a376b['createRange'](_0x2c20f2,_0x53b2de);_0x1a9ee4['markers']['set'](_0x38ce65,_0x5bd7b5),null!==_0x336e9d&&_0x18a13d['add'](_0x336e9d);}}['_getVidAttributeName'](_0x23ef71){switch(_0x23ef71['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xf6c879,_0x5b79dc){_0xf6c879['baseVersion']=null;for(const _0xb54ebd in _0xf6c879){const _0x5c221f=_0xf6c879[_0xb54ebd];if(_0x5c221f instanceof ft){const _0x39af8c=_0x5b79dc['get'](_0x5c221f['root']['rootName']);_0xf6c879[_0xb54ebd]=this['_fixPosition'](_0x5c221f,_0x39af8c);}if(_0x5c221f instanceof lt){const _0x2d1d78=_0x5b79dc['get'](_0x5c221f['root']['rootName']);_0xf6c879[_0xb54ebd]=this['_fixRange'](_0x5c221f,_0x2d1d78);}'root'===_0xb54ebd&&(_0xf6c879['root']=_0x5b79dc['get'](_0xf6c879['root']['rootName']));}}['_fixRange'](_0x5b1653,_0x39186f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5b1653['start'],_0x39186f),this['_fixPosition'](_0x5b1653['end'],_0x39186f));}['_fixPosition'](_0x412e58,_0x3a1c8f){return this['editor']['model']['createPositionFromPath'](_0x3a1c8f,_0x412e58['path'],_0x412e58['stickiness']);}['_handleInsertOperation'](_0x3c0a59){const _0xdd80a=this['_idsRoots']['get'](_0x3c0a59['position']['root']['rootName']),_0x2d9dbd=this['_fixPosition'](_0x3c0a59['position'],_0xdd80a),_0x580443=null===_0x3c0a59['_authorId']?null:_0x3c0a59['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ee1bf=_0x2d9dbd['parent'],_0x2e23ef=this['_revisionId'],_0x315162=[];for(const _0x5db765 of _0x3c0a59['nodes'])if(_0x5db765['is']('element'))_0x315162['push'](this['_makeIdsRoot'](_0x5db765));else{for(let _0x130c0e=0x0;_0x130c0e<_0x5db765['offsetSize'];_0x130c0e++)_0x315162['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x889a1b=this['_revisionId'];for(let _0x2230d2=_0x2e23ef;_0x2230d2<_0x889a1b;_0x2230d2++)this['_touched']['set'](_0x2230d2,{'userId':_0x580443});_0x5ee1bf['_insertChild'](_0x2d9dbd['offset'],_0x315162);}['_handleMoveOperation'](_0x367746){(_0x367746=this['_cloneOperation'](_0x367746,this['_idsRoots']))['_execute']();const _0x34e533=null===_0x367746['_authorId']?null:_0x367746['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e78a8=_0x367746['getMovedRangeStart'](),_0x6cb18c=_0x3e78a8['parent'],_0x300449=_0x3e78a8['offset'];!function _0x54c841(_0x3ae3ca,_0x2b0e42,_0x27aa55,_0x58bb9d){for(let _0x352801=_0x27aa55;_0x352801<_0x58bb9d;_0x352801++){const _0x12938d=_0x2b0e42['getChild'](_0x352801);_0x12938d['is']('element','$text')?_0x3ae3ca['set'](_0x12938d['getAttribute']('vid'),{'userId':_0x34e533}):(_0x3ae3ca['set'](_0x12938d['getAttribute']('vid_start'),{'userId':_0x34e533}),_0x54c841(_0x3ae3ca,_0x12938d,0x0,_0x12938d['childCount']),_0x3ae3ca['set'](_0x12938d['getAttribute']('vid_end'),{'userId':_0x34e533}));}}(this['_touched'],_0x6cb18c,_0x300449,_0x300449+_0x367746['howMany']);}['_handleMergeOperation'](_0x1b07e8){const _0xb8e8b=null===(_0x1b07e8=this['_cloneOperation'](_0x1b07e8,this['_idsRoots']))['_authorId']?null:_0x1b07e8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x447880=_0x1b07e8['targetPosition']['parent'],_0x59efad=_0x1b07e8['sourcePosition']['parent'],_0x15db75=_0x447880['getAttribute']('vid_end'),_0x5bf64f=_0x59efad['getAttribute']('vid_start');_0x447880['_setAttribute']('vid_end',_0x59efad['getAttribute']('vid_end')),_0x59efad['_setAttribute']('vid_end',_0x15db75),this['_touched']['set'](_0x5bf64f,{'userId':_0xb8e8b}),this['_touched']['set'](_0x15db75,{'userId':_0xb8e8b}),_0x1b07e8['_execute']();}['_handleSplitOperation'](_0xeae78e){const _0x40fda6=null===(_0xeae78e=this['_cloneOperation'](_0xeae78e,this['_idsRoots']))['_authorId']?null:_0xeae78e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34d0b9=_0xeae78e['graveyardPosition'],_0x270994=_0xeae78e['splitPosition']['parent'];_0xeae78e['_execute']();const _0x1b19fb=_0x270994['getAttribute']('vid_end'),_0x107042=_0xeae78e['insertionPosition']['nodeAfter'];if(_0x34d0b9){const _0x524585=_0x107042['getAttribute']('vid_end'),_0x5e3839=_0x270994['getAttribute']('vid_end');_0x270994['_setAttribute']('vid_end',_0x524585),_0x107042['_setAttribute']('vid_end',_0x5e3839),this['_touched']['set'](_0x270994['getAttribute']('vid_end'),{'userId':_0x40fda6}),this['_touched']['set'](_0x107042['getAttribute']('vid_start'),{'userId':_0x40fda6});}else{const _0x4b36ab=this['_revisionId']++,_0x2e42fa=this['_revisionId']++;_0x270994['_setAttribute']('vid_end',_0x4b36ab),_0x107042['_setAttribute']('vid_start',_0x2e42fa),_0x107042['_setAttribute']('vid_end',_0x1b19fb),this['_touched']['set'](_0x4b36ab,{'userId':_0x40fda6}),this['_touched']['set'](_0x2e42fa,{'userId':_0x40fda6});}}['_handleMarkerOperation'](_0x3515ac){if(!_0x3515ac['affectsData'])return;const _0x3a2194=(_0x3515ac=this['_cloneOperation'](_0x3515ac,this['_diffRoots']))['oldRange']?_0x3515ac['oldRange']['root']:null,_0x2d25e2=_0x3515ac['newRange']?_0x3515ac['newRange']['root']:null;_0x3a2194&&this['_markers']['delete'](_0x3515ac['name']),_0x2d25e2&&this['_markers']['set'](_0x3515ac['name'],_0x3515ac['newRange']['clone']());const _0x245987=null===_0x3515ac['_authorId']?null:_0x3515ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4efc7f=_0x3515ac['name'];if(!this['_touchedMarkers']['has'](_0x4efc7f))return void this['_touchedMarkers']['set'](_0x4efc7f,{'range':_0x3515ac['oldRange'],'userId':_0x245987});const _0x54a193=this['_touchedMarkers']['get'](_0x4efc7f),_0x4a2dc7=_0x54a193['range'],_0x4f0d09=_0x3515ac['newRange'];null==_0x4a2dc7&&null==_0x4f0d09||_0x4a2dc7&&_0x4f0d09&&_0x4a2dc7['isEqual'](_0x4f0d09)?this['_touchedMarkers']['delete'](_0x3515ac['name']):_0x54a193['userId']=_0x245987;}['_handleRootOperation'](_0x522c38,_0x7fad){this['_diffRoots']['has'](_0x522c38['rootName'])?this['_diffRoots']['get'](_0x522c38['rootName'])['_isAttached']=_0x522c38['isAdd']:(this['_diffRoots']['set'](_0x522c38['rootName'],P(_0x522c38['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x522c38['rootName'],{}),_0x7fad&&this['_idsRoots']['set'](_0x522c38['rootName'],P(_0x522c38['rootName'],!0x0)));const _0xc1f9da=null===_0x522c38['_authorId']?null:_0x522c38['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45b38d=this['_touchedRoots']['get'](_0x522c38['rootName']);_0x45b38d&&_0x45b38d['userId']===_0xc1f9da?this['_touchedRoots']['delete'](_0x522c38['rootName']):this['_touchedRoots']['set'](_0x522c38['rootName'],{'userId':_0xc1f9da,'isAttached':_0x522c38['isAdd']});}['_handleRootAttributeOperation'](_0x323e78){const _0x2a82f1=this['_diffRootsAttributes']['get'](_0x323e78['root']['rootName']);null===_0x323e78['newValue']?delete _0x2a82f1[_0x323e78['key']]:_0x2a82f1[_0x323e78['key']]=_0x323e78['newValue'];}}function N(_0x40299d){const _0x38ee85=P(_0x40299d['rootName'],_0x40299d['isAttached']());for(const _0x529ad2 of _0x40299d['getChildren']()){const _0x4c31eb=_0x529ad2['_clone'](!0x0);_0x38ee85['_appendChild'](_0x4c31eb);}return _0x38ee85;}function P(_0x5110d3,_0x5aa849=!0x0){const _0x29331b=new vt();return _0x29331b['rootName']=_0x5110d3,_0x29331b['_isAttached']=_0x5aa849,_0x29331b['isAttached']=()=>_0x29331b['_isAttached'],_0x29331b;}function F(_0x3279a5,_0x2b06cd,_0x228b2d){const _0x5e1f02='elementEnd'==_0x3279a5['type']?_0x228b2d['createPositionAt'](_0x3279a5['item'],'end'):_0x228b2d['createPositionBefore'](_0x3279a5['item']);return _0x228b2d['createPositionFromPath'](_0x2b06cd,_0x5e1f02['path'],_0x5e1f02['stickiness']);}function B(_0x235232,_0x2729a3,_0x2cd75e){const _0x15d99f='elementStart'==_0x235232['type']?_0x2cd75e['createPositionAt'](_0x235232['item'],0x0):_0x2cd75e['createPositionAfter'](_0x235232['item']);return _0x2cd75e['createPositionFromPath'](_0x2729a3,_0x15d99f['path'],_0x15d99f['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x57f7bf,_0x570785){super(_0x57f7bf),this['focusTracker']=new _0x242b70(),this['keystrokes']=new _0x302254(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x570785),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xac0f22(this);}['render'](){super['render'](),_0xb1fa04({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x499c83=_0x1661c1=>_0x1661c1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x499c83),this['keystrokes']['set']('arrowleft',_0x499c83),this['keystrokes']['set']('arrowup',_0x499c83),this['keystrokes']['set']('arrowdown',_0x499c83);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x31a40e){this['revisionNameInputView']['fieldView']['element']['value']=_0x31a40e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2d5bab){const _0x8e71c4=new _0x4c02c9(this['locale'],_0x1fac5e),_0x24b4c1=_0x8e71c4['fieldView'];_0x24b4c1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x423554=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2d5bab&&(_0x423554+='\x20('+g(this['locale'],'optional')+')'),(_0x8e71c4['label']=_0x423554,_0x24b4c1['on']('input',()=>{this['revisionNameInputValue']=_0x24b4c1['element']['value']['trim']();}),_0x8e71c4);}}class f extends _0x1805f7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x21af50=this['editor'],_0xbacda7=_0x21af50['plugins']['get']('RevisionTracker');_0x21af50['ui']['componentFactory']['add']('revisionHistory',_0x2843ad=>{const _0x43103c=_0xe4c3f2(_0x2843ad),_0x4c0037=_0x43103c['panelView']['children'],_0xb27fa9=new _0x162311(_0x2843ad),_0x3abd94=new _0x5e56e8(_0x2843ad),_0x343dd1=new te(_0x2843ad),_0xb9c33e=new _0x5e56e8(_0x2843ad),_0xc817cf=new te(_0x2843ad);return _0x43103c['bind']('isEnabled')['to'](_0xbacda7,'isReady',_0xbacda7,'isEnabled',_0x21af50,'isReadOnly',(_0x1d711e,_0x481b12,_0x24b73f)=>_0x1d711e&&_0x481b12&&!_0x24b73f),_0x43103c['buttonView']['set']({'icon':_0x592746,'label':g(_0x2843ad,'Revision\x20history'),'tooltip':!0x0}),_0x343dd1['set']({'label':g(_0x2843ad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x343dd1['bind']('isEnabled')['to'](_0xbacda7,'isReady',_0xbacda7,'isEnabled',_0x21af50,'isReadOnly',(_0x39ecd0,_0x4e9b5b,_0x93aa30)=>_0x39ecd0&&_0x4e9b5b&&!_0x93aa30),_0x343dd1['on']('execute',()=>this['_showDialog']()),_0xc817cf['set']({'label':g(_0x2843ad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xc817cf['bind']('isEnabled')['to'](_0xbacda7,'isReady',_0x21af50,'isReadOnly',(_0x223cf9,_0x1defd3)=>_0x223cf9&&!_0x1defd3),_0xc817cf['on']('execute',()=>{_0x21af50['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43103c['isOpen']=!0x1,_0x21af50['editing']['view']['focus']();}),_0x3abd94['children']['add'](_0x343dd1),_0xb9c33e['children']['add'](_0xc817cf),_0xb27fa9['role']='menu',_0xb27fa9['items']['addMany']([_0x3abd94,_0xb9c33e]),_0x4c0037['add'](_0xb27fa9),_0x43103c;}),_0x21af50['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x53b41c=this['editor'],_0x2bf941=_0x53b41c['locale'],_0x598eda=new _0xd69a74(_0x2bf941),_0x454b5f=new _0x406cbc(_0x2bf941);_0x598eda['buttonView']['set']({'icon':_0x592746,'label':g(_0x2bf941,'Revision\x20history')});const _0x378870=new _0x3ae831(_0x2bf941,_0x598eda),_0x5eb52c=new _0x2f41b4(_0x2bf941);_0x5eb52c['set']({'label':g(_0x2bf941,'Save\x20current\x20revision')}),_0x5eb52c['delegate']('execute')['to'](_0x598eda),_0x5eb52c['on']('execute',()=>{this['_showDialog']();}),_0x378870['children']['add'](_0x5eb52c),_0x454b5f['items']['add'](_0x378870);const _0x289392=new _0x3ae831(_0x2bf941,_0x598eda),_0x138093=new _0x2f41b4(_0x2bf941);return _0x138093['set']({'label':g(_0x2bf941,'Open\x20revision\x20history')}),_0x138093['delegate']('execute')['to'](_0x598eda),_0x138093['on']('execute',()=>{_0x53b41c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x289392['children']['add'](_0x138093),_0x454b5f['items']['add'](_0x289392),_0x598eda['panelView']['children']['add'](_0x454b5f),_0x598eda;}['_showDialog'](){const _0x404995=this['editor'],_0x28589b=_0x404995['locale'],_0x1e892b=_0x404995['plugins']['get']('Dialog'),_0x3e610f=_0x404995['plugins']['get']('RevisionTracker');function _0x1c61b4(_0x51a616){_0x404995['config']['get']('revisionHistory.requireRevisionName')&&''===_0x51a616['revisionName']?_0x51a616['revisionNameInputView']['errorText']=g(_0x28589b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x404995['plugins']['get'](u)['saveRevision']({'name':_0x51a616['revisionName']}),_0x1e892b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1c61b4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1e892b['show']({'id':'revisionSave','title':g(_0x28589b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x404995['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1e892b['hide']()},{'label':g(_0x404995['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x29fc73){_0x29fc73['bind']('isEnabled')['to'](_0x3e610f,'isReady',_0x3e610f,'isEnabled',_0x404995,'isReadOnly',(_0x3b387c,_0x347f9f,_0x4c9646)=>_0x3b387c&&_0x347f9f&&!_0x4c9646);},'onExecute':()=>_0x1c61b4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xa1ba8e=this['editor'],_0xbb5651=_0xa1ba8e['locale'];this['_saveRevisionFormView']=new hs(_0xbb5651,_0xa1ba8e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x936752,_0x34a9b0){super(_0x936752),this['_model']=_0x34a9b0,this['changeId']=_0x34a9b0['id'];const _0x1e0034=this['bindTemplate'],_0xea5ce1=g(_0x936752,_0x34a9b0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x34a9b0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x34a9b0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1e0034['to']('type',_0x56f0f5=>'ck-revision-change__'+_0x56f0f5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xea5ce1}]},{'text':'\x20'+_0x34a9b0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2bd20e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x33dfe6){super(),this['id']=_0x33dfe6['id']||_0x300526(),this['author']=_0x33dfe6['author'],this['type']=_0x33dfe6['type'],this['data']=_0x33dfe6['data']||{},this['rootName']=_0x33dfe6['rootName'],this['set']('createdAt',_0x33dfe6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x34e42e,_0x3cb73a){this['newRevisionId']=_0x34e42e,this['oldRevisionId']=_0x3cb73a,this['changes']=new _0x25c9dd();}['_setChanges'](_0xc21e96){for(const _0x3287d5 of _0xc21e96)this['changes']['add'](_0x3287d5);}}class m extends _0x1805f7{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ac19f,_0x5afb71,I,V];}constructor(_0x230bc6){super(_0x230bc6),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x497a30,_0x49bf73,_0x1f32ce)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3034ea=>{for(const _0x1a59e4 of this['editor']['editing']['view']['document']['roots'])_0x1f32ce?_0x3034ea['removeClass']('ck-editor__editable__overlay',_0x1a59e4):_0x3034ea['addClass']('ck-editor__editable__overlay',_0x1a59e4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2e25a5=>null!==_0x2e25a5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x587760,_0x7d511c,_0x3b2cf0)=>_0x587760&&_0x3b2cf0?_0x7d511c['changes']['getIndex'](_0x3b2cf0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xa34915,_0x1590f5)=>_0xa34915?_0x1590f5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5afb71);}['init'](){const _0x1435e7=this['editor'],_0x2bf284=new wt(_0x1435e7,{'direction':'backward'}),_0x51e457=new wt(_0x1435e7,{'direction':'forward'});(_0x1435e7['commands']['add']('showPreviousChange',_0x2bf284),_0x1435e7['commands']['add']('showNextChange',_0x51e457),_0x1435e7['commands']['add']('restoreRevision',new mt(_0x1435e7)),this['on']('change:numberOfChanges',()=>{_0x2bf284['refresh'](),_0x51e457['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1435e7['enableReadOnlyMode']('revision-viewer'),_0x1435e7['plugins']['has']('WidgetToolbarRepository'))&&_0x1435e7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x51de09){return await this['_utils']['loadRevisionData'](_0x51de09,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x51de09);}async['getRevisionRootsAttributes'](_0x586b08){return await this['_utils']['loadRevisionData'](_0x586b08,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x586b08);}async['compare'](_0xa33d7f,_0x214d2a,_0xa4d652=!0x1){if(!this['isEnabled'])return;const _0x4955a8=this['diff'],_0x37593f=this['repository'],_0xae273a='string'==typeof _0xa33d7f?_0x37593f['getRevision'](_0xa33d7f):_0xa33d7f,_0x35379e='string'==typeof _0x214d2a?_0x37593f['getRevision'](_0x214d2a):_0x214d2a,_0x8c5c08=_0xae273a['id'],_0x207be7=_0x35379e?_0x35379e['id']:null;if(!_0xa4d652&&this['diff']&&this['diff']['newRevisionId']===_0x8c5c08&&this['diff']['oldRevisionId']===_0x207be7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x8c5c08,_0x207be7);const _0xf3c8b2=this['_getRevisionsRange'](_0xae273a,_0x35379e,!0x0)['map'](_0x480a4d=>this['_utils']['loadRevisionData'](_0x480a4d,this['adapter']));return _0xf3c8b2['push'](new Promise(_0x2175f5=>{setTimeout(_0x2175f5,0x14);})),Promise['all'](_0xf3c8b2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1e7db0=this['_getDiff'](_0x8c5c08,_0x207be7);for(const _0x126eda of _0x1e7db0['changes'])this['_changeIdToChange']['set'](_0x126eda['id'],_0x126eda);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x550a72=>{for(const _0x390fff of this['editor']['model']['document']['getRootNames']())_0x550a72['detachRoot'](_0x390fff);for(const _0x5f018e of Object['keys'](_0x1e7db0['model'])){const _0x6533dc=_0x550a72['addRoot'](_0x5f018e);for(const _0x1ab471 of Object['keys'](_0x1e7db0['attributes'][_0x5f018e]))_0x550a72['setAttribute'](_0x1ab471,_0x1e7db0['attributes'][_0x5f018e][_0x1ab471],_0x6533dc);_0x550a72['insert'](_0x1e7db0['model'][_0x5f018e],_0x6533dc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1e7db0['changes'])),this['isReady']=!0x0;})['catch'](_0x20f916=>{console['error'](_0x20f916),this['_cleanUp'](),_0x4955a8&&(this['diff']=_0x4955a8),this['isReady']=!0x0;});}['addRevisionData'](_0x5f418f,_0x405da2){const _0xf0ddc2=this['repository']['createRevision'](_0x5f418f);return _0xf0ddc2['on']('_update',(_0xaf208f,_0x4be769,_0x587a28)=>_0x405da2(_0x4be769,_0x587a28,_0xf0ddc2)),this['repository']['addRevision'](_0xf0ddc2),_0xf0ddc2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x266edb=>{for(const _0x5767e4 of this['editor']['model']['document']['getRootNames']())_0x266edb['detachRoot'](_0x5767e4);});}['_sortAndFilterDiffChanges'](_0x1301fd){const _0x2a9886=[],_0x2b7bf1=new Map();for(const _0x3882fe of this['editor']['model']['document']['getRootNames']()){const _0x16d748=this['editor']['editing']['view']['getDomRoot'](_0x3882fe);if(!_0x16d748)continue;const _0x1386cc=_0x16d748['getClientRects']()['item'](0x0);_0x1386cc&&(_0x2a9886['push'](_0x3882fe),_0x2b7bf1['set'](_0x3882fe,_0x1386cc));}return _0x2a9886['sort']((_0x32b87e,_0x3ad66a)=>{const _0x2c1a42=_0x2b7bf1['get'](_0x32b87e),_0x1e590e=_0x2b7bf1['get'](_0x3ad66a);return _0x2c1a42['y']-_0x1e590e['y']||_0x2c1a42['x']-_0x1e590e['x'];}),(_0x1301fd=_0x1301fd['filter'](_0x3e83c4=>_0x2a9886['includes'](_0x3e83c4['rootName'])))['sort']((_0x50a81a,_0x2ae001)=>_0x2a9886['indexOf'](_0x50a81a['rootName'])-_0x2a9886['indexOf'](_0x2ae001['rootName'])),_0x1301fd;}['_makeTape'](_0x350dee){const _0x5f3509=Array['from'](_0x350dee['markers'])['filter'](([_0x949bd1,_0x4d0508])=>_0x949bd1['startsWith']('revision:')&&!_0x4d0508['isCollapsed']),_0x183a22=Array['from'](this['editor']['model']['createRangeIn'](_0x350dee)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5f3509['length'])for(const _0x58be71 of _0x183a22){const [_0x2870eb,_0x3d84fd]=_0x5f3509[0x0],[,_0x220824,_0x50e284]=_0x2870eb['split'](':');if(_0x3d84fd['end']['isEqual'](_0x58be71['nextPosition'])&&_0x5f3509['shift'](),(_0x58be71['previousPosition']['isEqual'](_0x3d84fd['start'])||_0x58be71['previousPosition']['isAfter'](_0x3d84fd['start']))&&('insertion'==_0x220824?_0x58be71['isAdded']={'userId':_0x50e284}:'deletion'==_0x220824&&(_0x58be71['isRemoved']={'userId':_0x50e284})),0x0==_0x5f3509['length'])break;}return _0x183a22;}['_refreshStartEndIndex'](_0x44da14){const _0x5658c9=new Map();for(let _0x25da70=0x0;_0x25da70<_0x44da14['length'];_0x25da70++)'text'===_0x44da14[_0x25da70]['type']?(_0x44da14[_0x25da70]['item']['startIndex']=_0x25da70,_0x44da14[_0x25da70]['item']['endIndex']=_0x25da70):('elementStart'===_0x44da14[_0x25da70]['type']?_0x44da14[_0x25da70]['item']['startIndex']=_0x25da70:'elementEnd'===_0x44da14[_0x25da70]['type']&&(_0x44da14[_0x25da70]['item']['endIndex']=_0x25da70),_0x5658c9['set'](_0x44da14[_0x25da70]['id'],_0x25da70));for(const _0x2b73ae of _0x5658c9['values']())'elementStart'===_0x44da14[_0x2b73ae]['type']?_0x44da14[_0x2b73ae]['item']['endIndex']=_0x5658c9['get'](_0x44da14[_0x2b73ae]['pairId']):'elementEnd'===_0x44da14[_0x2b73ae]['type']&&(_0x44da14[_0x2b73ae]['item']['startIndex']=_0x5658c9['get'](_0x44da14[_0x2b73ae]['pairId']));}['_processTape'](_0x37ac3e){for(let _0x5c6829=0x0;_0x5c6829<_0x37ac3e['length'];_0x5c6829++){if('elementStart'===_0x37ac3e[_0x5c6829]['type'])_0x37ac3e[_0x5c6829]['item']['startIndex']=_0x5c6829;else{if('elementEnd'===_0x37ac3e[_0x5c6829]['type']){_0x37ac3e[_0x5c6829]['item']['endIndex']=_0x5c6829;const _0x23ad30=_0x37ac3e[_0x5c6829]['item']['startIndex'];_0x37ac3e[_0x23ad30]['pairId']=_0x37ac3e[_0x5c6829]['id'],_0x37ac3e[_0x5c6829]['pairId']=_0x37ac3e[_0x23ad30]['id'];}else _0x37ac3e[_0x5c6829]['item']['startIndex']=_0x5c6829,_0x37ac3e[_0x5c6829]['item']['endIndex']=_0x5c6829,_0x37ac3e[_0x5c6829]['pairId']=null;}_0x37ac3e[_0x5c6829]['markersStart']||(_0x37ac3e[_0x5c6829]['markersStart']=[],_0x37ac3e[_0x5c6829]['markersEnd']=[]);}}['_markInsertions'](_0x2437d6,_0x2d58bc){const _0x3ff4db=_0x2437d6['filter'](_0x39b2b9=>!_0x39b2b9['isAdded']);for(let _0x2f81e2=0x0;_0x2f81e2<_0x2d58bc['length'];_0x2f81e2++)_0x2d58bc[_0x2f81e2]['isAdded']&&(_0x3ff4db[_0x2f81e2]['isAdded']=_0x2d58bc[_0x2f81e2]['isAdded']);}['_getDiff'](_0x8f9776,_0x2d9b52=null){const _0x40b2ae=this['repository']['getRevision'](_0x8f9776),_0x5ef9c6=_0x2d9b52?this['repository']['getRevision'](_0x2d9b52):null,_0x29b5cf=this['_getRevisionsRange'](_0x40b2ae,_0x5ef9c6),_0x4642ed=_0x29b5cf[_0x29b5cf['length']-0x1],_0x1bbe66=new Map(),_0x401dd2={'model':{},'attributes':{},'changes':[]},_0x3ef096=new Set(),_0x17396e=new Map();for(let _0x3fd7e6=_0x29b5cf['length']-0x1;_0x3fd7e6>=0x0;_0x3fd7e6--){const _0x91cf4e=_0x29b5cf[_0x3fd7e6];for(const _0x113296 of Object['keys'](_0x91cf4e['diffData']))if(_0x91cf4e['diffData'][_0x113296]['attachChange']){const _0x14155a=_0x91cf4e['diffData'][_0x113296]['attachChange'];_0x14155a['isAttached']?(_0x3ef096['add'](_0x113296),_0x17396e['has'](_0x113296)&&_0x17396e['get'](_0x113296)['userId']==_0x14155a['userId']?_0x17396e['delete'](_0x113296):_0x17396e['set'](_0x113296,_0x14155a)):_0x17396e['has'](_0x113296)?(_0x3ef096['delete'](_0x113296),_0x17396e['delete'](_0x113296)):(_0x3ef096['add'](_0x113296),_0x17396e['set'](_0x113296,_0x14155a));}else _0x3ef096['add'](_0x113296);}for(const _0x102df4 of _0x3ef096){const _0x5035e4=_0x17396e['has'](_0x102df4)&&!_0x17396e['get'](_0x102df4)['isAttached'];let _0x4bbc89=_0x5035e4?_0x29b5cf['length']-0x1:0x0;const _0x56f6b7=_0x5035e4?-0x1:0x1;for(;_0x29b5cf[_0x4bbc89];){const _0x213bd2=_0x29b5cf[_0x4bbc89];if(_0x213bd2['diffData'][_0x102df4]){const _0x5f8cde=_0x5035e4?_0x213bd2['diffData'][_0x102df4]['attributesBefore']:_0x213bd2['diffData'][_0x102df4]['attributesAfter'];_0x401dd2['attributes'][_0x102df4]=_0x5f8cde?_0x263bce(_0x5f8cde):{};break;}_0x4bbc89+=_0x56f6b7;}}for(const _0xec1911 of _0x29b5cf){_0xec1911['model']={};for(const _0x1d8c71 of _0xec1911['authors'])_0x1bbe66['set'](_0x1d8c71['id'],_0x1d8c71);for(const _0x1e82d3 of _0x3ef096){const _0x3a28b5=_0xec1911['diffData'][_0x1e82d3]?_0xec1911['diffData'][_0x1e82d3]['insertions']:'[]',_0x41f36c=_0xec1911['diffData'][_0x1e82d3]?_0xec1911['diffData'][_0x1e82d3]['deletions']:'[]';_0xec1911['model'][_0x1e82d3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3a28b5),'deletions':this['_utils']['_makeModelFromViewString'](_0x41f36c)};}}for(const _0x26453e of _0x3ef096){let _0x26b8dd=null,_0x484880=0x0;const _0x5adc98=new Map(Array['from'](_0x40b2ae['model'][_0x26453e]['insertions']['markers'])['filter'](([_0x589895])=>!_0x589895['startsWith']('revision:')));let _0x20e17f=0x0;for(const _0x446045 of _0x29b5cf){const _0x4c280f=this['_makeTape'](_0x446045['model'][_0x26453e]['insertions']);_0x446045==_0x40b2ae?(_0x26b8dd=_0x4c280f,_0x484880=_0x26b8dd['length'],_0x26b8dd['forEach'](_0x1dd35d=>{_0x1dd35d['id']=_0x20e17f++;}),this['_processTape'](_0x26b8dd)):this['_markInsertions'](_0x26b8dd,_0x4c280f);const _0x426ef3=_0x26b8dd['filter'](_0x4a1bb8=>!_0x4a1bb8['isAdded'])['map'](_0x1a1164=>_0x1a1164['id']);let _0x311fa1=0x0;const _0x150953=this['_makeTape'](_0x446045['model'][_0x26453e]['deletions']);_0x150953['forEach'](_0x416770=>{_0x416770['isRemoved']?_0x416770['id']=_0x484880++:_0x416770['id']=_0x426ef3[_0x311fa1++];}),this['_processTape'](_0x150953),this['_setDistance'](_0x26b8dd,'isAdded'),this['_setDistance'](_0x150953,'isRemoved'),_0x446045==_0x40b2ae&&this['_markMarkers'](_0x26b8dd,_0x5adc98),_0x26b8dd=this['_joinTapes'](_0x26b8dd,_0x150953),this['_refreshStartEndIndex'](_0x26b8dd),this['_setDistance'](_0x26b8dd,'isRemoved');}_0x26b8dd=_0x26b8dd['filter'](_0x4894b1=>!(_0x4894b1['isAdded']&&_0x4894b1['isRemoved']));const _0xd06ce8=new Map(_0x4642ed['model'][_0x26453e]['deletions']['markers']),_0x59aeea=new Set(_0x5adc98['keys']());for(const _0x3b3740 of _0xd06ce8['keys']())_0x59aeea['delete'](_0x3b3740);this['_markSuggestions'](_0x26b8dd,_0x59aeea),this['_fixObsoleteTags'](_0x26b8dd),_0x26b8dd=this['_removeMissingPairs'](_0x26b8dd),_0x26b8dd=this['_markMismatchedRemovedTags'](_0x26b8dd),_0x26b8dd=this['_removeUnsupportedChanges'](_0x26b8dd);const {root:_0x3e2c6a,changes:_0x2fd181}=this['_makeModelFromTape'](_0x26b8dd,_0x1bbe66,_0x26453e);_0x401dd2['model'][_0x26453e]=_0x3e2c6a;const _0x40c2fa=_0x17396e['get'](_0x26453e);if(_0x40c2fa){const _0x4e718f=_0x1bbe66['get'](_0x40c2fa['userId']),_0x23c04d=new r({'author':_0x4e718f,'type':_0x40c2fa['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x26453e});_0x2fd181['unshift'](_0x23c04d),_0x401dd2['attributes'][_0x26453e]['revisionHistoryAttachChange']=_0x23c04d['id'];}_0x401dd2['changes']=_0x401dd2['changes']['concat'](_0x2fd181);}return _0x401dd2;}['_markMarkers'](_0x12e0aa,_0x4b178c){for(let _0x47f08c=0x0;_0x47f08c<_0x12e0aa['length'];_0x47f08c++)for(const [_0x101807,_0x8fe602]of _0x4b178c)!_0x8fe602['isCollapsed']&&_0x8fe602['start']['isEqual'](_0x12e0aa[_0x47f08c]['previousPosition'])&&_0x12e0aa[_0x47f08c]['markersStart']['push'](_0x101807),_0x8fe602['end']['isEqual'](_0x12e0aa[_0x47f08c]['nextPosition'])&&_0x12e0aa[_0x47f08c]['markersEnd']['push'](_0x101807);}['_joinTapes'](_0x201b7d,_0x46d136){let _0x3c0570=[],_0x5ed8bf=0x0,_0x29d03c=0x0;for(;_0x5ed8bf<_0x201b7d['length']||_0x29d03c<_0x46d136['length'];){const _0x46b7b2=_0x201b7d[_0x5ed8bf]||{},_0x49e3ef=_0x46d136[_0x29d03c]||{};if(_0x46b7b2['id']==_0x49e3ef['id'])_0x5ed8bf++,_0x29d03c++,_0x3c0570['push'](_0x46b7b2);else{if(_0x49e3ef['isRemoved']&&_0x46b7b2['isAdded']){const {commonTape:_0x1882bc,iEnd:_0x4f8088,jEnd:_0x10722f}=this['_threeWayMerge'](_0x201b7d,_0x5ed8bf,_0x46d136,_0x29d03c);_0x3c0570=_0x3c0570['concat'](_0x1882bc),_0x5ed8bf=_0x4f8088,_0x29d03c=_0x10722f;}else _0x49e3ef['isRemoved']?(_0x29d03c++,_0x3c0570['push'](_0x49e3ef)):(_0x5ed8bf++,_0x3c0570['push'](_0x46b7b2));}}return _0x3c0570;}['_markSuggestions'](_0x12df6f,_0x311078){const _0x4c0787=[];for(let _0x4142c2=0x0;_0x4142c2<_0x12df6f['length'];_0x4142c2++){for(let _0x3e52ef=0x0;_0x3e52ef<_0x12df6f[_0x4142c2]['markersStart']['length'];_0x3e52ef++){const _0x1fd451=_0x12df6f[_0x4142c2]['markersStart'][_0x3e52ef];if(!_0x311078['has'](_0x1fd451))continue;const {group:_0x4b4735,type:_0x36e1c3,authorId:_0x1f4438}=_0x316a3c(_0x1fd451);'revision-suggestion'!=_0x4b4735||'insertion'!=_0x36e1c3&&'deletion'!=_0x36e1c3||(_0x4c0787['unshift']({'type':_0x36e1c3,'name':_0x1fd451,'userId':_0x1f4438}),_0x12df6f[_0x4142c2]['markersStart']['splice'](_0x3e52ef,0x1),_0x3e52ef--);}_0x3ae43f(_0x12df6f[_0x4142c2]);for(let _0x3b4d43=0x0;_0x3b4d43<_0x12df6f[_0x4142c2]['markersEnd']['length'];_0x3b4d43++){const _0x282559=_0x12df6f[_0x4142c2]['markersEnd'][_0x3b4d43];if(!_0x311078['has'](_0x282559))continue;const {group:_0x1de66f,type:_0x388209}=_0x316a3c(_0x282559);if('revision-suggestion'!=_0x1de66f||'insertion'!=_0x388209&&'deletion'!=_0x388209)continue;_0x12df6f[_0x4142c2]['markersEnd']['splice'](_0x3b4d43,0x1),_0x3b4d43--;const _0x365d83=_0x4c0787['findIndex'](_0x1b87d5=>_0x1b87d5['name']==_0x282559);_0x365d83>-0x1&&_0x4c0787['splice'](_0x365d83,0x1);}}function _0x316a3c(_0x546497){const _0x4b80e0=_0x546497['split'](':');return{'group':_0x4b80e0[0x0],'type':_0x4b80e0[0x1],'subType':_0x4b80e0['length']>=0x5?_0x4b80e0[0x2]:null,'id':_0x4b80e0['length']<0x5?_0x4b80e0[0x2]:_0x4b80e0[0x3],'authorId':_0x4b80e0['length']<0x5?_0x4b80e0[0x3]:_0x4b80e0[0x4],'markerCount':0x6==_0x4b80e0['length']?_0x4b80e0[0x5]:null};}function _0x3ae43f(_0x4db702){for(let _0x10157c=0x0;_0x10157c<_0x4c0787['length'];_0x10157c++){if(_0x4db702['isAdded']&&'insertion'==_0x4c0787[_0x10157c]['type']&&_0x4db702['isAdded']['userId']==_0x4c0787[_0x10157c]['userId'])return _0x4db702['isAddSuggestion']=_0x4c0787[_0x10157c],void delete _0x4db702['isAdded'];if(!_0x4db702['isAdded']&&!_0x4db702['isRemoved']&&'deletion'==_0x4c0787[_0x10157c]['type'])return void(_0x4db702['isRemoveSuggestion']=_0x4c0787[_0x10157c]);}}}['_setDistance'](_0x189a4e,_0x121b81){let _0x551140=0x0,_0x34371d=!0x1;const _0x4677dd=new Map();for(const _0x3cb9c9 of _0x189a4e)_0x3cb9c9[_0x121b81]?_0x34371d&&(_0x551140++,_0x34371d=!0x1):(_0x551140++,_0x34371d=!0x0),_0x4677dd['set'](_0x3cb9c9['id'],_0x551140);for(let _0x13f226=0x0;_0x13f226<_0x189a4e['length'];_0x13f226++){if('isRemoved'==_0x121b81&&_0x189a4e[_0x13f226]['isAdded']||'isAdded'==_0x121b81&&_0x189a4e[_0x13f226]['isRemoved'])continue;if('text'==_0x189a4e[_0x13f226]['type']){_0x189a4e[_0x13f226]['distance']=0x0;continue;}const _0x5838e5=_0x4677dd['get'](_0x189a4e[_0x13f226]['pairId']),_0x2ef139=_0x4677dd['get'](_0x189a4e[_0x13f226]['id']);_0x189a4e[_0x13f226]['distance']=_0x5838e5-_0x2ef139;}}['_getRevisionsRange'](_0x242306,_0x1daae4,_0xf96bdb=!0x1){const _0x3b3715=[];let _0x216d33=this['repository']['getIndex'](_0x242306),_0x34e64b=this['repository']['getIndex'](_0x1daae4);for(-0x1==_0x34e64b&&(_0x34e64b=this['repository']['_revisions']['length'],_0xf96bdb=!0x1);_0x216d33<_0x34e64b;)_0x3b3715['push'](this['repository']['getRevision'](_0x216d33)),_0x216d33++;return _0xf96bdb&&_0x3b3715['push'](this['repository']['getRevision'](_0x216d33)),_0x3b3715;}['_threeWayMerge'](_0x4d7426,_0x2f10f9,_0x3a177c,_0x2c62fe){const _0x10c19b=this['editor']['model']['schema'];let _0x36df3e=_0x2f10f9;for(;_0x4d7426[_0x36df3e]&&_0x4d7426[_0x36df3e]['isAdded'];)_0x36df3e++;let _0x25a67e=_0x2c62fe;for(;_0x3a177c[_0x25a67e]&&_0x3a177c[_0x25a67e]['isRemoved'];)_0x25a67e++;_0x1a440e(_0x4d7426,_0x2f10f9,_0x36df3e),_0x1a440e(_0x3a177c,_0x2c62fe,_0x25a67e);const _0x41fa9a=_0x3a177c['slice'](_0x2c62fe,_0x25a67e)['concat'](_0x4d7426['slice'](_0x2f10f9,_0x36df3e));return _0x41fa9a['sort']((_0x7265e8,_0x3d3b6a)=>_0x7265e8['side']!=_0x3d3b6a['side']?_0x7265e8['side']-_0x3d3b6a['side']:_0x7265e8['level']!=_0x3d3b6a['level']?_0x7265e8['level']-_0x3d3b6a['level']:_0x7265e8['distance']!=_0x3d3b6a['distance']?_0x3d3b6a['distance']-_0x7265e8['distance']:!!_0x7265e8['isAdded']!=!!_0x3d3b6a['isAdded']?-0x1==_0x7265e8['side']||0x0==_0x7265e8['side']?_0x7265e8['isAdded']?-0x1:0x1:_0x7265e8['isAdded']?0x1:-0x1:_0x7265e8['index']-_0x3d3b6a['index']),{'commonTape':_0x41fa9a,'iEnd':_0x36df3e,'jEnd':_0x25a67e};function _0x1a440e(_0x5aa18c,_0x757ed7,_0x42be3d){let _0x5eb310=-0x1,_0x4d7ccc=Number['POSITIVE_INFINITY'],_0x24dd6d=!0x0;for(let _0x546c7f=_0x757ed7;_0x546c7f<_0x42be3d;_0x546c7f++)if(_0x10c19b['isInline'](_0x5aa18c[_0x546c7f]['item'])||(_0x24dd6d=!0x1),_0x5aa18c[_0x546c7f]['item']['startIndex']<_0x757ed7&&(_0x5eb310=_0x546c7f),_0x5aa18c[_0x546c7f]['item']['endIndex']>=_0x42be3d){_0x4d7ccc=_0x546c7f;break;}_0x24dd6d&&(_0x5eb310=_0x42be3d-0x1);for(let _0x1f330e=_0x757ed7;_0x1f330e<_0x42be3d;_0x1f330e++)_0x5aa18c[_0x1f330e]['side']=_0x1f330e<=_0x5eb310?-0x1:_0x1f330e<_0x4d7ccc?0x0:0x1,_0x5aa18c[_0x1f330e]['index']=_0x1f330e;let _0x42f04e=0x0;for(let _0x523cae=_0x757ed7;_0x523cae<=_0x5eb310;_0x523cae++)0x0==_0x5aa18c[_0x523cae]['distance']?_0x5aa18c[_0x523cae]['level']=_0x42f04e:(_0x42f04e++,_0x5aa18c[_0x523cae]['level']=_0x42f04e,_0x42f04e++);for(let _0x133047=_0x757ed7;_0x133047<_0x42be3d;_0x133047++)0x0==_0x5aa18c[_0x133047]['side']&&(_0x5aa18c[_0x133047]['level']=_0x42f04e);_0x42f04e=0x0;for(let _0x25bcf8=_0x42be3d-0x1;_0x25bcf8>=_0x4d7ccc;_0x25bcf8--)0x0==_0x5aa18c[_0x25bcf8]['distance']?_0x5aa18c[_0x25bcf8]['level']=_0x42f04e:(_0x42f04e--,_0x5aa18c[_0x25bcf8]['level']=_0x42f04e,_0x42f04e--);}}['_fixObsoleteTags'](_0x43f5e3){const _0x4af3f6=new Map(),_0x2c288c=this['editor']['model']['schema'];for(let _0x56b7a4=0x1;_0x56b7a4<_0x43f5e3['length'];_0x56b7a4++){let _0xc6816b,_0x121e14,_0x1f7fd1;const _0x1d1789=_0x43f5e3[_0x56b7a4],_0x2d175e=_0x43f5e3[_0x56b7a4-0x1];if('text'==_0x1d1789['type'])continue;if(_0x1d1789['type']!=_0x2d175e['type'])continue;if(!_0x2c288c['isBlock'](_0x2d175e['item'])||_0x2c288c['isLimit'](_0x2d175e['item']))continue;if(!_0x2c288c['isBlock'](_0x1d1789['item'])||_0x2c288c['isLimit'](_0x1d1789['item']))continue;if((_0x43f5e3[_0x56b7a4]['isAdded']||_0x43f5e3[_0x56b7a4]['isAddSuggestion'])&&_0x43f5e3[_0x56b7a4-0x1]['isRemoved'])_0xc6816b=_0x43f5e3[_0x56b7a4],_0x121e14=_0x43f5e3[_0x56b7a4-0x1],_0x1f7fd1=_0x56b7a4-0x1;else{if(!_0x43f5e3[_0x56b7a4]['isRemoved']||!_0x43f5e3[_0x56b7a4-0x1]['isAdded']&&!_0x43f5e3[_0x56b7a4-0x1]['isAddSuggestion'])continue;_0xc6816b=_0x43f5e3[_0x56b7a4-0x1],_0x121e14=_0x43f5e3[_0x56b7a4],_0x1f7fd1=_0x56b7a4;}const _0x26d7ce=_0xc6816b['level']==_0x121e14['level'],_0x4e794d=Math['abs'](_0xc6816b['level'])<Math['abs'](_0x121e14['level'])&&0x0==_0x121e14['distance'];(_0x26d7ce||_0x4e794d)&&(_0x4af3f6['set'](_0x121e14['id'],_0xc6816b['id']),_0x43f5e3['splice'](_0x1f7fd1,0x1),_0x56b7a4--,_0xc6816b['isAdded']=!0x1);}for(let _0xc158f2=0x0;_0xc158f2<_0x43f5e3['length'];_0xc158f2++)_0x4af3f6['has'](_0x43f5e3[_0xc158f2]['pairId'])&&(_0x43f5e3[_0xc158f2]['pairId']=_0x4af3f6['get'](_0x43f5e3[_0xc158f2]['pairId']));}['_removeMissingPairs'](_0x4fd01f){const _0x2aa9c9=new Set(_0x4fd01f['map'](_0x392da5=>_0x392da5['id']));for(let _0xa81794=0x0;_0xa81794<_0x4fd01f['length'];_0xa81794++)_0x2aa9c9['has'](_0x4fd01f[_0xa81794]['pairId'])||0x0==_0x4fd01f[_0xa81794]['distance']||(_0x4fd01f[_0xa81794]['isIncorrect']=!0x0);return _0x4fd01f['filter'](_0x282316=>!_0x282316['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5f24df){const _0x45ee1a=new Set();for(let _0xfb4c1e=0x0;_0xfb4c1e<_0x5f24df['length'];_0xfb4c1e++){if(_0x45ee1a['has'](_0x5f24df[_0xfb4c1e]['id'])&&_0x5f24df[_0xfb4c1e]['isRemoved']&&(_0x5f24df[_0xfb4c1e]['isIncorrect']=!0x0),_0x5f24df[_0xfb4c1e]['isIncorrect'])continue;if(0x0==_0x5f24df[_0xfb4c1e]['distance'])continue;if('elementStart'!=_0x5f24df[_0xfb4c1e]['type'])continue;if(null==_0x5f24df[_0xfb4c1e]['pairId'])continue;let _0x345af0=_0xfb4c1e+0x1,_0x4515ff=0x0;for(;_0x5f24df[_0x345af0]['id']!=_0x5f24df[_0xfb4c1e]['pairId'];)'elementStart'==_0x5f24df[_0x345af0]['type']?_0x4515ff++:'elementEnd'==_0x5f24df[_0x345af0]['type']&&_0x4515ff--,_0x345af0++;if(0x0!=_0x4515ff){if(_0x5f24df[_0xfb4c1e]['isRemoved'])_0x5f24df[_0xfb4c1e]['isIncorrect']=!0x0;else{for(;_0x345af0!=_0xfb4c1e;)_0x5f24df[_0x345af0]['isRemoved']&&0x0!=_0x5f24df[_0x345af0]['distance']&&(_0x5f24df[_0x345af0]['isIncorrect']=!0x0,_0x45ee1a['add'](_0x5f24df[_0x345af0]['pairId'])),_0x345af0--;}}}return _0x5f24df['filter'](_0x428ae6=>!_0x428ae6['isIncorrect']);}['_removeUnsupportedChanges'](_0x5d117f){const _0x575ebe=this['editor']['model']['schema'];for(let _0x5dbda9=0x0;_0x5dbda9<_0x5d117f['length'];_0x5dbda9++){if(!(_0x5d117f[_0x5dbda9]['isAdded']||_0x5d117f[_0x5dbda9]['isAddSuggestion']||_0x5d117f[_0x5dbda9]['isRemoved']||_0x5d117f[_0x5dbda9]['isRemoveSuggestion']))continue;if(0x0==_0x5d117f[_0x5dbda9]['distance'])continue;const _0xd52e93=_0x5d117f[_0x5dbda9]['item'];_0x575ebe['isBlock'](_0xd52e93)||_0x575ebe['isLimit'](_0xd52e93)||(_0x5d117f[_0x5dbda9]['isAdded']&&delete _0x5d117f[_0x5dbda9]['isAdded'],_0x5d117f[_0x5dbda9]['isAddSuggestion']&&delete _0x5d117f[_0x5dbda9]['isAddSuggestion'],_0x5d117f[_0x5dbda9]['isRemoveSuggestion']&&delete _0x5d117f[_0x5dbda9]['isRemoveSuggestion'],_0x5d117f[_0x5dbda9]['isRemoved']&&(_0x5d117f[_0x5dbda9]['isIncorrect']=!0x0));}return _0x5d117f['filter'](_0xc61407=>!_0xc61407['isIncorrect']);}['_makeModelFromTape'](_0x5a8526,_0x2b0947,_0x3bf10f){const _0x503fd3=new vt(),_0x4f848b=[],_0x1c52f7=new Map(),_0x5712a4=this['editor']['model'],_0x1ed1a3=_0x5712a4['schema'],_0x580115=[_0x503fd3],_0x3cc753={},_0x56f3cb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f331c=null;const _0x241eab=[0x0];for(let _0x28ea9c=0x0;_0x28ea9c<_0x5a8526['length'];_0x28ea9c++)if('elementStart'===_0x5a8526[_0x28ea9c]['type']){_0x5a8526[_0x28ea9c]['previousPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab);const _0x5d0c7b=new ut(_0x5a8526[_0x28ea9c]['item']['name'],_0x5a8526[_0x28ea9c]['item']['getAttributes']());_0x580115[0x0]['_appendChild'](_0x5d0c7b),_0x241eab['push'](0x0),_0x580115['unshift'](_0x5d0c7b),_0x5a8526[_0x28ea9c]['nextPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab);}else'elementEnd'===_0x5a8526[_0x28ea9c]['type']?(_0x580115['shift'](),_0x5a8526[_0x28ea9c]['previousPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab),_0x241eab['pop'](),_0x241eab[_0x241eab['length']-0x1]++,_0x5a8526[_0x28ea9c]['nextPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab)):(_0x5a8526[_0x28ea9c]['previousPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab),_0x3f331c?_0x3f331c['_data']+=_0x5a8526[_0x28ea9c]['item']['data']:_0x3f331c=new gt(_0x5a8526[_0x28ea9c]['item']['data'],_0x5a8526[_0x28ea9c]['item']['getAttributes']()),_0x5a8526[_0x28ea9c+0x1]&&'text'===_0x5a8526[_0x28ea9c+0x1]['type']&&_0x1e61c1(_0x3f331c,_0x5a8526[_0x28ea9c+0x1]['item'])||(_0x580115[0x0]['_appendChild'](_0x3f331c),_0x3f331c=null),_0x241eab[_0x241eab['length']-0x1]+=_0x5a8526[_0x28ea9c]['item']['offsetSize'],_0x5a8526[_0x28ea9c]['nextPosition']=_0x5712a4['createPositionFromPath'](_0x503fd3,_0x241eab));for(let _0x15b261=0x0;_0x15b261<_0x5a8526['length'];_0x15b261++){const _0x53dd4f=_0x5a8526[_0x15b261]['previousPosition'],_0x9e5733=_0x5a8526[_0x15b261]['nextPosition'];for(const _0x504f5a of _0x5a8526[_0x15b261]['markersStart'])_0x1c52f7['set'](_0x504f5a,{'start':_0x53dd4f,'end':null});_0x40cf86('isRemoveSuggestion',_0x15b261,_0x53dd4f,_0x9e5733),_0x40cf86('isAddSuggestion',_0x15b261,_0x53dd4f,_0x9e5733),_0x40cf86('isRemoved',_0x15b261,_0x53dd4f,_0x9e5733),_0x40cf86('isAdded',_0x15b261,_0x53dd4f,_0x9e5733);for(const _0x305234 of _0x5a8526[_0x15b261]['markersEnd']){const _0x534c73=_0x1c52f7['get'](_0x305234);_0x534c73?_0x534c73['end']=_0x9e5733:_0x1c52f7['set'](_0x305234,{'start':_0x9e5733,'end':_0x9e5733});}}for(const [_0x3d8f3f,_0x55550f]of _0x1c52f7){const _0x5613cc=this['editor']['model']['createRange'](_0x55550f['start'],_0x55550f['end']);_0x503fd3['markers']['set'](_0x3d8f3f,_0x5613cc);}return _0x4f848b['sort']((_0x542ce0,_0xc0b8c2)=>{const _0x439c3f=_0x503fd3['markers']['get']('revision:'+_0x542ce0['id']),_0x43d055=_0x503fd3['markers']['get']('revision:'+_0xc0b8c2['id']);return _0x439c3f['start']['isBefore'](_0x43d055['start'])?-0x1:_0x439c3f['start']['isAfter'](_0x43d055['start'])?0x1:_0x439c3f['end']['isBefore'](_0x43d055['end'])?-0x1:_0x439c3f['end']['isAfter'](_0x43d055['end'])?0x1:'add'===_0x542ce0['type']?-0x1:0x1;}),{'root':_0x503fd3,'changes':_0x4f848b};function _0x40cf86(_0x37bc47,_0x2dd97a,_0x21fc8b,_0x4bb643){const _0x372adb=!!_0x5a8526[_0x2dd97a][_0x37bc47],_0x5c81b9=_0x372adb?_0x5a8526[_0x2dd97a][_0x37bc47]['userId']:null,_0x406298=_0x2dd97a===_0x5a8526['length']-0x1,_0x994f7f=_0x56f3cb[_0x37bc47][0x0],_0xb75448=_0x1ed1a3['isObject'](_0x5a8526[_0x2dd97a]['item']);!_0x3cc753[_0x37bc47]&&_0x372adb?_0x3cc753[_0x37bc47]={'start':_0x21fc8b,'tapeItem':_0x5a8526[_0x2dd97a],'userId':_0x5c81b9,'type':_0x37bc47}:_0x3cc753[_0x37bc47]&&!_0x372adb?(_0x3cc753[_0x37bc47]['end']=_0x21fc8b,_0x234803(_0x3cc753[_0x37bc47]),_0x3cc753[_0x37bc47]=null):_0x3cc753[_0x37bc47]&&_0x372adb&&_0x3cc753[_0x37bc47]['userId']!==_0x5c81b9&&(_0x3cc753[_0x37bc47]['end']=_0x21fc8b,_0x994f7f&&_0x994f7f['userId']===_0x3cc753[_0x37bc47]['userId']||_0x234803(_0x3cc753[_0x37bc47]),_0x3cc753[_0x37bc47]={'start':_0x21fc8b,'tapeItem':_0x5a8526[_0x2dd97a],'userId':_0x5c81b9,'type':_0x37bc47}),_0x3cc753[_0x37bc47]&&_0xb75448&&('elementStart'!==_0x5a8526[_0x2dd97a]['type']||_0x994f7f&&_0x994f7f['userId']===_0x5c81b9||_0x56f3cb[_0x37bc47]['unshift']({'userId':_0x5c81b9,'object':_0x5a8526[_0x2dd97a]['item'],'change':_0x3cc753[_0x37bc47]}),'elementEnd'===_0x5a8526[_0x2dd97a]['type']&&_0x994f7f&&_0x994f7f['object']===_0x5a8526[_0x2dd97a]['item']&&(_0x56f3cb[_0x37bc47]['shift'](),_0x3cc753[_0x37bc47]=_0x994f7f['change'])),_0x3cc753[_0x37bc47]&&_0x406298&&(_0x3cc753[_0x37bc47]['end']=_0x4bb643,_0x234803(_0x3cc753[_0x37bc47]),_0x3cc753[_0x37bc47]=null);}function _0x234803({start:_0x422996,end:_0x61a782,tapeItem:_0x133986,userId:_0xfe5d3b,type:_0x3f9012}){const _0x242581=_0x133986['item'],_0x24bb6c=_0x5712a4['schema']['isBlock'](_0x242581)&&!_0x5712a4['schema']['isLimit'](_0x242581),_0x3c156a=_0x422996['nodeAfter']==_0x61a782['parent']&&_0x61a782['isAtStart'];if(_0x24bb6c&&_0x3c156a)return;const _0x9f86b3=_0x5712a4['createRange'](_0x422996,_0x61a782),_0x4f4499=_0x2b0947['get'](_0xfe5d3b),_0x4a3265=new r({'author':_0x4f4499,'type':'isAdded'==_0x3f9012||'isAddSuggestion'==_0x3f9012?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3f9012||'isRemoveSuggestion'==_0x3f9012},'createdAt':new Date(),'rootName':_0x3bf10f});_0x4f848b['push'](_0x4a3265),_0x503fd3['markers']['set']('revision:'+_0x4a3265['id'],_0x9f86b3);}function _0x1e61c1(_0x69966f,_0x7c2fa7){const _0x30df8b=_0x69966f['getAttributes'](),_0x369b71=_0x7c2fa7['getAttributes']();for(const _0x1f6ef0 of _0x30df8b){if(_0x1f6ef0[0x1]!==_0x7c2fa7['getAttribute'](_0x1f6ef0[0x0]))return!0x1;_0x369b71['next']();}return _0x369b71['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4abb33=>{const _0x321380=_0x4abb33['markerName']['split'](':')[0x1],_0x258597=this['_getChangeFromId'](_0x321380);if(!_0x258597)return null;const _0x371ff4='add'==_0x258597['type']?'insertion':'deletion',_0x34a760=['ck-suggestion-marker','ck-suggestion-marker-'+_0x371ff4];return _0x258597['data']['isSuggestion']&&_0x34a760['push']('ck-suggestion-marker-'+_0x371ff4+'-new'),this['activeChange']==_0x258597&&_0x34a760['push']('ck-suggestion-marker--active'),{'classes':_0x34a760,'attributes':{'data-change-id':_0x321380}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x38caf0=>{_0x38caf0['on']('element:pre',(_0x4f221d,_0x66a04c,_0x563c4a)=>{const _0x320837=_0x66a04c['viewItem']['getChild'](0x0);if(!_0x320837||!_0x320837['is']('element','code'))return;if(!_0x563c4a['consumable']['consume'](_0x320837,{'attributes':['vid_start','vid_end']}))return;const _0x9dfef9=_0x66a04c['modelRange']['start']['nodeAfter'];_0x563c4a['writer']['setAttribute']('vid_start',_0x320837['getAttribute']('vid_start'),_0x9dfef9),_0x563c4a['writer']['setAttribute']('vid_end',_0x320837['getAttribute']('vid_end'),_0x9dfef9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2c9ffc=>{_0x2c9ffc['on']('element',(_0x262e5c,_0x16e7dd,_0x319b7)=>{if(!_0x319b7['consumable']['consume'](_0x16e7dd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16e7dd['modelRange']['isCollapsed'])return;const _0xf8f5b4=_0x16e7dd['modelRange']['start']['nodeAfter'];_0xf8f5b4['hasAttribute']('vid_start')||_0xf8f5b4['hasAttribute']('vid')||(_0x319b7['writer']['setAttribute']('vid_start',_0x16e7dd['viewItem']['getAttribute']('vid_start'),_0xf8f5b4),_0x319b7['writer']['setAttribute']('vid_end',_0x16e7dd['viewItem']['getAttribute']('vid_end'),_0xf8f5b4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2f5b0c=>_0x2f5b0c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x47855e,[,_0x4aa3d6])=>{['vid_start','vid_end','vid']['includes'](_0x4aa3d6)&&(_0x47855e['return']=!0x0,_0x47855e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xdb5a0f=>{_0xdb5a0f['on']('attribute:vid',(_0x586bf5,_0x192840,_0x4608e5)=>{if('\x20'!=_0x192840['item']['data']||_0x192840['item']['parent']['maxOffset']>0x1)return;if(!_0x4608e5['consumable']['consume'](_0x192840['item'],_0x586bf5['name']))return;const _0x53fade=_0x4608e5['writer'],_0xb24df0=_0x4608e5['mapper']['toViewRange'](_0x192840['range']);_0x53fade['wrap'](_0xb24df0,_0x53fade['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x558b0c){const _0xe0b871=_0x558b0c['plugins']['get']('RevisionViewer');return(_0x12a15c,_0x1a4544,_0x4018c5)=>{const _0x50ef7f=_0x1a4544['markerName']['split'](':')[0x1],_0x1840f5=_0xe0b871['_getChangeFromId'](_0x50ef7f);if(!_0x1840f5)return null;const _0x2fb256='add'==_0x1840f5['type']?'split':'merge';if(!_0x4018c5['consumable']['test'](_0x1a4544['markerRange'],_0x12a15c['name']))return;const _0x1948f1=_0x1a4544['markerRange']['getWalker'](),_0x34b937=_0x1a4544['markerRange']['start'],_0x1dcc4d=_0x558b0c['model']['schema'];let _0x1b0c21=null,_0x150180=null,_0x31a202=!0x1,_0x243238=!0x1;for(const _0x84c7c0 of _0x1948f1){const _0x52e76e=_0x84c7c0['item'];_0x31a202=_0x31a202||_0x1dcc4d['isContent'](_0x52e76e);const _0x3d1296=_0x4018c5['mapper']['toViewElement'](_0x52e76e);if(_0x3d1296&&_0x3d1296['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x84c7c0['type']&&(_0x1dcc4d['isBlock'](_0x52e76e)&&!_0x1dcc4d['isLimit'](_0x52e76e)&&(_0x52e76e['nextSibling']||_0x34b937['isAtEnd']?_0x1b0c21&&_0x1b0c21['parent']==_0x52e76e||(_0x1b0c21=_0x52e76e,_0x492442(_0x84c7c0['previousPosition']),_0x243238=!0x0):_0x150180=_0x150180||_0x84c7c0['previousPosition']));}function _0x492442(_0x131c88){const _0x49dbd9=_0x4018c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fb256}),_0x43ff17=_0x4018c5['mapper']['toViewPosition'](_0x131c88);_0x1840f5['data']['isSuggestion']&&_0x4018c5['writer']['addClass']('ck-suggestion-marker-'+_0x2fb256+'-new',_0x49dbd9),_0xe0b871['activeChange']==_0x1840f5&&_0x4018c5['writer']['addClass']('ck-suggestion-marker--active',_0x49dbd9),_0x4018c5['writer']['insert'](_0x43ff17,_0x49dbd9),_0x4018c5['mapper']['bindElementToMarker'](_0x49dbd9,_0x1a4544['markerName']);}_0x31a202||_0x243238||!_0x150180||_0x492442(_0x150180);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x38f5d1,_0x4a41ba,_0x8a7044)=>{const _0x475904=_0x8a7044['mapper']['markerNameToElements'](_0x4a41ba['markerName']);if(_0x475904){for(const _0x1f4394 of _0x475904)(_0x1f4394['hasClass']('ck-suggestion-marker-split')||_0x1f4394['hasClass']('ck-suggestion-marker-merge'))&&(_0x8a7044['mapper']['unbindElementFromMarkerName'](_0x1f4394,_0x4a41ba['markerName']),_0x8a7044['writer']['remove'](_0x1f4394));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1ae3ea,_0x5f6f02,_0x24a618)=>{const _0x418578=_0x5f6f02['markerName']['split'](':')[0x1],_0x4b3e0d=this['_getChangeFromId'](_0x418578);if(!_0x4b3e0d)return null;const _0x74a68f='add'==_0x4b3e0d['type']?'split':'merge';if(_0x24a618['consumable']['test'](_0x5f6f02['markerRange'],_0x1ae3ea['name']))for(const _0x3c4e6a of _0x5f6f02['markerRange']['getItems']()){if(!_0x3c4e6a['is']('element','softBreak'))continue;const _0x2690e3=_0x24a618['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x74a68f}),_0x136a11=_0x24a618['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3c4e6a));_0x4b3e0d['data']['isSuggestion']&&_0x24a618['writer']['addClass']('ck-suggestion-marker-'+_0x74a68f+'-new',_0x2690e3),this['activeChange']==_0x4b3e0d&&_0x24a618['writer']['addClass']('ck-suggestion-marker--active',_0x2690e3),_0x24a618['writer']['insert'](_0x136a11,_0x2690e3),_0x24a618['mapper']['bindElementToMarker'](_0x2690e3,_0x5f6f02['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x30a3f2=>{for(const _0x19192f of this['editor']['model']['document']['getRootNames']()){const _0x38b29c=this['editor']['model']['document']['getRoot'](_0x19192f),_0x7dffe9=this['editor']['editing']['view']['document']['getRoot'](_0x19192f);if(_0x7dffe9){const _0x1f6568=_0x38b29c['getAttribute']('revisionHistoryAttachChange');if(_0x30a3f2['removeAttribute']('data-change-id',_0x7dffe9),_0x30a3f2['removeClass']('ck-revision-history-root-add',_0x7dffe9),_0x30a3f2['removeClass']('ck-revision-history-root-remove',_0x7dffe9),_0x30a3f2['removeClass']('ck-revision-history-root--active',_0x7dffe9),_0x1f6568){const _0x47f044=this['_getChangeFromId'](_0x1f6568);if(!_0x47f044)return null;_0x30a3f2['setAttribute']('data-change-id',_0x1f6568,_0x7dffe9),_0x30a3f2['addClass']('ck-revision-history-root-'+_0x47f044['type'],_0x7dffe9),this['activeChange']==_0x47f044&&_0x30a3f2['addClass']('ck-revision-history-root--active',_0x7dffe9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8b30dd=>'revision-comment:'+_0x8b30dd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x30de12=>'revision-suggestion:'+_0x30de12,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5d25cf=>({'name':'suggestion:'+_0x5d25cf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1c96a1=>{const _0x456bd7=_0x1c96a1['markerName']['split'](':')[0x1];return'insertion'!=_0x456bd7&&'deletion'!=_0x456bd7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x456bd7]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2c6f5a,_0x38276e,_0xdfd04f)=>{const _0x17763a=_0xdfd04f['mapper']['markerNameToElements'](_0x38276e['markerName']);if(_0x17763a){for(const _0xf8c22b of _0x17763a)_0xf8c22b['is']('uiElement')&&(_0xdfd04f['mapper']['unbindElementFromMarkerName'](_0xf8c22b,_0x38276e['markerName']),_0xdfd04f['writer']['remove'](_0xf8c22b));}},{'priority':'high'});}['_getChangeFromId'](_0x5c1edb){return this['_changeIdToChange']['get'](_0x5c1edb);}['_getViewForChange'](_0x9424eb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x9424eb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x48d122,_0x4a37a9,_0x1ec829,_0x470973)=>{_0x470973&&this['_balloon']['remove'](_0x470973),_0x1ec829&&(this['_balloon']['add']({'view':_0x1ec829,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x359e6b=this['editor']['editing'],_0x1d0c34=this['_getChangeFromId'](_0x1ec829['changeId']);let _0x3649bb;if(_0x1d0c34['data']['isOnRoot']){const _0x389820=_0x359e6b['view']['getDomRoot'](_0x1d0c34['rootName']);_0x3649bb=Array['from'](_0x389820['getClientRects']());}else{const _0x44d7bb=this['editor']['model']['markers']['get']('revision:'+_0x1ec829['changeId']);_0x3649bb=Array['from'](_0x359e6b['mapper']['markerNameToElements'](_0x44d7bb['name']))['map'](_0x587027=>_0x359e6b['view']['domConverter']['mapViewToDom'](_0x587027))['map'](_0x2d268b=>Array['from'](_0x2d268b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3649bb[0x0];return _0x3649bb['find'](_0x2643f9=>_0x2643f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x2643f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2643f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x2643f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x3649bb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2a5c6f,_0x18e18e,_0x50a72c,_0x51d001)=>{this['activeView']=_0x50a72c?this['_getViewForChange'](_0x50a72c):null,this['editor']['model']['change'](()=>{const _0x4da199=this['editor']['editing'];_0x51d001&&(_0x51d001['data']['isOnRoot']?_0x4da199['view']['change'](_0x958622=>{_0x958622['removeClass']('ck-revision-history-root--active',_0x4da199['view']['document']['getRoot'](_0x51d001['rootName']));}):_0x4da199['reconvertMarker']('revision:'+_0x51d001['id'])),_0x50a72c&&(_0x50a72c['data']['isOnRoot']?_0x4da199['view']['change'](_0x51ee3a=>{_0x51ee3a['addClass']('ck-revision-history-root--active',_0x4da199['view']['document']['getRoot'](_0x50a72c['rootName']));}):_0x4da199['reconvertMarker']('revision:'+_0x50a72c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x384548,_0x5d698d)=>{if(this['activeChange'])return;const _0x491a9c=this['_findChangeIdFromDomTarget'](_0x5d698d['target']),_0x1a3b16=this['_changeIdToChange']['get'](_0x491a9c);_0x1a3b16?(this['_activeViewTarget']={'x':_0x5d698d['domEvent']['x'],'y':_0x5d698d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1a3b16)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x9d986,_0x2914e9)=>{const _0x5e1102=this['_findChangeIdFromDomTarget'](_0x2914e9['target']),_0x129ffd=this['_changeIdToChange']['get'](_0x5e1102);_0x129ffd?(this['_activeViewTarget']={'x':_0x2914e9['domEvent']['x'],'y':_0x2914e9['domEvent']['y']},_0x129ffd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x129ffd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x25cdbf){do{const _0x17f19b=_0x25cdbf['getAttribute']('data-change-id');if(_0x17f19b)return _0x17f19b;_0x25cdbf=_0x25cdbf['parent'];}while(_0x25cdbf);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1b229c=>{for(const _0x9126ec of this['editor']['model']['markers'])_0x1b229c['removeMarker'](_0x9126ec);});}}function X(_0x5d09e8,_0x1c3765){return(_0x162f0e,_0x4a1df4,_0x282dca)=>{if(!_0x282dca['consumable']['test'](_0x4a1df4['markerRange'],_0x162f0e['name']))return;const _0x14f606=_0x4a1df4['markerRange']['getWalker'](),_0x54022b=_0x4a1df4['markerRange']['start'],_0x348147=_0x5d09e8['model']['schema'];let _0x544ba2=null,_0x36bcdb=null,_0x3a4ecc=!0x1,_0x3f3409=!0x1;for(const _0x16bcaa of _0x14f606){const _0x556571=_0x16bcaa['item'];_0x3a4ecc=_0x3a4ecc||_0x348147['isContent'](_0x556571);const _0x39b910=_0x282dca['mapper']['toViewElement'](_0x556571);if(_0x39b910&&_0x39b910['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16bcaa['type']&&(_0x348147['isBlock'](_0x556571)&&!_0x348147['isLimit'](_0x556571)&&(_0x556571['nextSibling']||_0x54022b['isAtEnd']?_0x544ba2&&_0x544ba2['parent']==_0x556571||(_0x544ba2=_0x556571,_0x57b82d(_0x16bcaa['previousPosition']),_0x3f3409=!0x0):_0x36bcdb=_0x36bcdb||_0x16bcaa['previousPosition']));}function _0x57b82d(_0x2fe176){const _0x5682b3=_0x282dca['mapper']['toViewPosition'](_0x2fe176),_0x58efad=_0x282dca['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c3765});_0x282dca['writer']['insert'](_0x5682b3,_0x58efad),_0x282dca['mapper']['bindElementToMarker'](_0x58efad,_0x4a1df4['markerName']);}_0x3a4ecc||_0x3f3409||!_0x36bcdb||_0x57b82d(_0x36bcdb);};}class mt extends _0x380ce3{constructor(_0x4c8345){super(_0x4c8345);const _0x2a1d10=_0x4c8345['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2a1d10,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2a1d10,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x224008=this['editor'],_0x1d13dc=_0x224008['plugins']['get'](m),_0x389e83=_0x1d13dc['isReady']?_0x1d13dc['diff']['newRevisionId']:null;_0x224008['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x389e83);}['refresh'](){const {isReady:_0xd3ff06,isEnabled:_0x2cc225,repository:_0x41f94f,diff:_0x423bcf}=this['editor']['plugins']['get'](m),_0x2ea29a=_0x423bcf&&_0x41f94f['getLaterVisibleRevision'](_0x423bcf['newRevisionId']);this['isEnabled']=_0xd3ff06&&_0x2cc225&&Boolean(_0x2ea29a);}}class wt extends _0x380ce3{['_step'];constructor(_0x2f44fb,{direction:_0x5e43c5}){super(_0x2f44fb);const _0x5d68cd=_0x2f44fb['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5e43c5?0x1:-0x1,this['listenTo'](_0x5d68cd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d68cd,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5d68cd,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x41b1a9=this['editor'],_0x393719=_0x41b1a9['plugins']['get'](m),{isNavigationMode:_0x45ae61,currentChangeNumber:_0x3e9cff}=_0x393719;let _0x1d0f48;if(_0x393719['activeChange']=_0x45ae61?_0x393719['diff']['changes']['get'](_0x3e9cff+this['_step']):_0x393719['diff']['changes']['first'],_0x393719['activeChange']['data']['isOnRoot'])_0x1d0f48=_0x41b1a9['editing']['view']['getDomRoot'](_0x393719['activeChange']['rootName']);else{const _0x164564=_0x41b1a9['model']['markers']['get']('revision:'+_0x393719['activeChange']['id']);_0x1d0f48=_0x56cbf8(_0x41b1a9['editing'],_0x164564);}_0x36842d({'target':_0x1d0f48,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x25641b,currentChangeNumber:_0x4feb6e,numberOfChanges:_0x32c4bd,isReady:_0x1b4848,isEnabled:_0x3a464b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x3a464b&&_0x1b4848&&_0x32c4bd)&&(!_0x25641b||(0x1===this['_step']?_0x4feb6e<_0x32c4bd-0x1:_0x4feb6e>0x0));}}class _i extends ts{constructor(_0x48e797){super(_0x48e797);const _0x181c21=this['bindTemplate'],_0x4fcc27=new te(_0x48e797),_0x1a87dc=new te(_0x48e797);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',(_0x47019c,_0x32f439)=>_0x47019c&&_0x32f439>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xeee2d9,_0x43d636,_0x1b0abc,_0x1465b2)=>{if(!_0xeee2d9)return g(_0x48e797,'Loading...');if(!_0x1b0abc)return g(_0x48e797,'No\x20changes');const _0x1e0b40=g(_0x48e797,'NUMBER_OF_CHANGES',_0x1b0abc);return _0x1465b2?g(_0x48e797,'X_OF_Y_CHANGES',[_0x43d636+0x1,_0x1b0abc]):_0x1e0b40;}),_0x4fcc27['set']({'label':g(_0x48e797,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x35b3a6}),_0x1a87dc['set']({'label':g(_0x48e797,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x55d11c}),_0x4fcc27['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1a87dc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4fcc27['on']('execute',()=>this['fire']('execute','backward')),_0x1a87dc['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',_0x181c21['if']('_isStatusLabelVisible','ck-hidden',_0x4320fa=>!_0x4320fa)]},'children':[{'text':_0x181c21['to']('isNavigationMode',_0x51c884=>_0x51c884?g(_0x48e797,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x48e797,'Total')+':\x20')}]},{'text':_0x181c21['to']('_statusText')}]},new _0x52ab3f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4fcc27,_0x1a87dc]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1805f7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21cf24=this['editor']['editing']['view'];_0x21cf24['change'](_0x5b43ea=>{for(const _0x4c1e3e of _0x21cf24['document']['roots'])_0x5b43ea['addClass'](le,_0x4c1e3e);});}['hide'](){const _0x44532c=this['editor']['editing']['view'];_0x44532c['change'](_0x62ec0f=>{for(const _0x8a55e0 of _0x44532c['document']['roots'])_0x62ec0f['removeClass'](le,_0x8a55e0);});}}class R extends _0x1805f7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x214544=this['editor'],_0x2b809d=_0x214544['plugins']['get'](m),_0x4f48f1=_0x214544['plugins']['get'](ge);_0x214544['ui']['componentFactory']['add']('exitToEditing',_0x250e8f=>{const _0xec5d41=new te(_0x250e8f);return _0xec5d41['set']({'label':g(_0x250e8f,'Back\x20to\x20editing'),'icon':_0x2e229b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xec5d41,'execute',()=>{_0x214544['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xec5d41;}),_0x214544['ui']['componentFactory']['add']('restoreRevision',_0x428e0c=>{const _0x211a04=new te(_0x428e0c);return _0x211a04['set']({'label':g(_0x428e0c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x211a04['bind']('isEnabled')['to'](_0x214544['commands']['get']('restoreRevision')),this['listenTo'](_0x211a04,'execute',()=>_0x214544['execute']('restoreRevision')),_0x211a04;}),_0x214544['ui']['componentFactory']['add']('changesNavigation',_0x577159=>{const _0x442ce9=new _i(_0x577159),_0x1bd16f=_0x214544['commands']['get']('showPreviousChange'),_0x545b2d=_0x214544['commands']['get']('showNextChange');return _0x442ce9['bind']('isBackwardNavigationEnabled')['to'](_0x1bd16f,'isEnabled'),_0x442ce9['bind']('isForwardNavigationEnabled')['to'](_0x545b2d,'isEnabled'),_0x442ce9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2b809d),this['listenTo'](_0x442ce9,'execute',(_0x4c15a8,_0x53c83c)=>{_0x214544['execute']('forward'===_0x53c83c?'showNextChange':'showPreviousChange');}),_0x442ce9;}),_0x4f48f1['show'](),_0x2b809d['on']('change:isReady',(_0x594d31,_0x23aa92,_0x54f00e)=>{_0x54f00e?_0x4f48f1['hide']():_0x4f48f1['show']();});}}class at extends _0x4c02c9{['_resizeObserver']=null;constructor(_0x47b819,_0xded953){super(_0x47b819,_0xded953);const _0x19b80e=this['bindTemplate'];this['set']({'label':g(_0x47b819,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x47b819,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x19b80e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x22e219=this['fieldView']['element'];this['_tooltipString']=_0x22e219['scrollWidth']>_0x22e219['clientWidth']&&_0x22e219['value']||'';}}class si extends ts{constructor(_0x259b8d,_0x5bd2e7,_0x5cb901){super(_0x259b8d);const _0x4564a5=new _0x498748();_0x4564a5['set']({'content':_0x272068,'viewBox':'0\x200\x2011\x2010'});const _0x2b6103=['ck','ck-revision-history-sidebar__revision-author'];_0x5cb901&&_0x2b6103['push']('ck-revision-history-sidebar__revision-author_creator');const _0x492546=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x259b8d,_0x5cb901?'Revision\x20creator':'Revision\x20author')},'children':[_0x4564a5,_0x5bd2e7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b6103},'children':_0x492546});}}function oi(_0x33672a,_0x4a65b5){const _0x58df31=_0x33672a['bindTemplate'],_0x2144f8=_0x33672a['locale'],_0x48b528=_0xe4c3f2(_0x2144f8);_0x48b528['panelPosition']='sw';const _0x573082=function(_0x1e98b2,_0x3827b9){const _0x24a7d2=function(_0x11deea,_0x4ee474){const _0x4009df=_0x11deea['locale'],_0x576d23={'Compare\x20against\x20selected':g(_0x4009df,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4009df,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4009df,'Restore\x20this\x20revision')};return _0x4ee474['map'](_0x2dd1f6=>{const _0x452431=_0x576d23[_0x2dd1f6['name']];return _0x452431&&_0x452431!==_0x2dd1f6['name']&&(_0x2dd1f6['name']=_0x452431),_0x2dd1f6;});}(_0x1e98b2,_0x3827b9),_0x1a5648=new _0x25c9dd();for(const _0x59806c of _0x24a7d2){const _0x213650={'type':'button','model':new to({'label':_0x59806c['name'],'class':_0x59806c['class'],'withText':!0x0,'role':'menuitem','_action':_0x59806c['action']})};_0x213650['model']['bind']('isEnabled')['to'](_0x1e98b2,'isActionsDropdownOpen',_0x5c5554=>'function'!=typeof _0x59806c['isEnabled']||(!_0x5c5554||_0x59806c['isEnabled'](_0x1e98b2))),_0x1a5648['add'](_0x213650);}return _0x1a5648;}(_0x33672a,_0x4a65b5);return _0x33672a['bind']('isActionsDropdownOpen')['to'](_0x48b528,'isOpen'),_0x48b528['buttonView']['set']({'label':g(_0x2144f8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ecc97}),_0x48b528['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x58df31['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x58df31['to'](_0x7fb330=>_0x7fb330['stopPropagation']())}}),_0x48b528['on']('execute',_0x3775a8=>{_0x33672a['isReady']&&'function'==typeof _0x3775a8['source']['_action']&&_0x3775a8['source']['_action'](_0x33672a);}),_0x44b5cd(_0x48b528,_0x573082,{'role':'menu'}),_0x48b528['listenTo'](_0x33672a,'change:isActionsDropdownOpen',(_0x20faba,_0x567d9a,_0x346bfb)=>{if(_0x346bfb)for(const _0x2222f4 of _0x48b528['listView']['items']){const _0x26cd06=_0x2222f4['children']['first'],_0x3d045a=_0x4a65b5['find'](_0x3d389d=>_0x3d389d['action']===_0x26cd06['_action'])['isVisible'];_0x2222f4['isVisible']=void 0x0===_0x3d045a||_0x3d045a(_0x33672a);}}),_0x48b528;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3df147,_0x135e44,_0x833874,_0x4f0f82){super(_0x3df147);const _0x1d44af=this['bindTemplate'],_0x2823af=function(_0x52473f,_0x59e81f){const _0x309d35=Array['from'](_0x59e81f['authors'])['filter'](_0x2f6537=>_0x2f6537!=_0x59e81f['creator']);return _0x59e81f['creator']&&_0x309d35['unshift'](_0x59e81f['creator']),_0x309d35['map'](_0x4ce364=>new si(_0x52473f,_0x4ce364,_0x4ce364==_0x59e81f['creator']));}(_0x3df147,_0x135e44);this['id']=_0x135e44['id'],this['_revision']=_0x135e44,this['_requireRevisionName']=_0x4f0f82,this['bind']('name','createdAt')['to'](_0x135e44),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x276213=>{return _0x4c00ab=_0x3df147['uiLanguage'],(_0x38713b=_0x276213)['toLocaleDateString'](_0x4c00ab,{'month':'long','day':'numeric'})+',\x20'+_0x38713b['toLocaleTimeString'](_0x4c00ab,{'hour':'numeric','minute':'numeric'});var _0x4c00ab,_0x38713b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x3df147,_0x1fac5e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x21b14f=>_0x21b14f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2a4682,_0x5e34c1)=>_0x2a4682&&_0x5e34c1),this['revisionActionsView']=_0x833874&&_0x833874['length']?oi(this,_0x833874):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1d44af['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1d44af['if']('isEnabled','ck-disabled',_0x549272=>!_0x549272),_0x1d44af['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1d44af['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1d44af['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':_0x1d44af['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':_0x2823af}]},this['revisionActionsView']],'on':{'click':_0x1d44af['to'](_0x499464=>{_0x499464['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x49027d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x49027d,'change',()=>{this['_requireRevisionName']&&!_0x49027d['value']||this['fire']('setName',{'id':this['id'],'name':_0x49027d['value']}),_0x49027d['value']||(_0x49027d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x3ee9c0,_0xc49c57){const _0x2b6cc9=_0x1be8a7['fromJSDate'](_0x3ee9c0)['setLocale'](_0xc49c57),_0x2f17f7=_0x1be8a7['local'](),_0x3b03f4=_0x2f17f7['minus']({'days':0x1})['startOf']('day');let _0xeb7850,_0x321183;return _0x2b6cc9['hasSame'](_0x2f17f7,'day')?(_0xeb7850=_0x2b6cc9['startOf']('day')['toJSDate'](),_0x321183=_0x2b6cc9['toRelativeCalendar']()):_0x2b6cc9['hasSame'](_0x3b03f4,'day')?(_0xeb7850=_0x3b03f4['toJSDate'](),_0x321183=_0x2b6cc9['toRelativeCalendar']()):_0x2b6cc9['hasSame'](_0x2f17f7,'week')?(_0xeb7850=_0x2b6cc9['startOf']('week')['toJSDate'](),_0x321183=_0x2b6cc9['weekdayLong']||''):_0x2b6cc9['hasSame'](_0x2f17f7,'year')?(_0xeb7850=_0x2b6cc9['startOf']('month')['toJSDate'](),_0x321183=_0x2b6cc9['monthLong']||''):(_0xeb7850=_0x2b6cc9['startOf']('year')['toJSDate'](),_0x321183=String(_0x2b6cc9['year'])),{'startDate':_0xeb7850,'localizedPeriodName':_0x321183};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1084d8,_0x9c2b5,_0x43f54d,_0x313afa){super(_0x1084d8);const _0x1c7a18=ai(_0x9c2b5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x9c2b5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x43f54d,this['_requireRevisionName']=_0x313afa,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':_0x1c7a18}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x35a7d9){const _0x5216d4=new hi(this['locale'],_0x35a7d9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5216d4);}['removeRevision'](_0x438b84){const _0x495f6a=this['revisionViews']['find'](_0x48201e=>_0x48201e['id']===_0x438b84['id']);this['revisionViews']['remove'](_0x495f6a);}}class as extends ts{constructor(_0xb7eb8e){super(_0xb7eb8e);const _0x38f58c=new _0x498748();_0x38f58c['content']=_0x592746,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x38f58c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xb7eb8e,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5855f1,_0x48b782,_0x11228d,_0x347bb6){super(_0x5855f1);const _0x56e122=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x48b782,this['_revisionActions']=_0x11228d,this['_requireRevisionName']=_0x347bb6,this['on']('select',(_0xd0f327,_0x2ee83b)=>{this['fire']('revisionSelected',_0x2ee83b);}),this['on']('setName',(_0x2b7376,_0x2c9265)=>{this['fire']('revisionSetName',_0x2c9265);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5855f1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x56e122['if']('isEnabled','ck-disabled',_0x35fb80=>!_0x35fb80)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x20f0cc of this['_revisions'])this['_addRevision'](_0x20f0cc);this['_revisions']['on']('add',(_0x3a37bb,_0x12dd49)=>{this['_addRevision'](_0x12dd49);}),this['_revisions']['on']('remove',(_0x4ef024,_0x2a3deb)=>{this['_removeRevision'](_0x2a3deb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x46501a=>_0x46501a['revisionViews']['map'](_0x54d826=>_0x54d826))['flat']();}['selectRevision'](_0x381da4){for(const _0x1d7c11 of this['revisionViews'])_0x381da4&&_0x381da4['id']===_0x1d7c11['id']?_0x1d7c11['select']():_0x1d7c11['deselect']();}['highlightRevisions'](_0x330807){for(const _0x274fd7 of this['revisionViews'])_0x330807['some'](({id:_0x334fe8})=>_0x334fe8===_0x274fd7['id'])?_0x274fd7['highlight']():_0x274fd7['unhighlight']();}['_addRevision'](_0x5ddcf4){const _0x23c93f=ai(_0x5ddcf4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2d403e=this['timePeriodViews']['get'](0x0);_0x2d403e&&_0x2d403e['startDate']['getTime']()===_0x23c93f['getTime']()||(_0x2d403e=new di(this['locale'],_0x23c93f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2d403e)),_0x2d403e['addRevision'](_0x5ddcf4);}['_removeRevision'](_0x159d3b){const _0x1f24c9=ai(_0x159d3b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1f24c9)['removeRevision'](_0x159d3b);}['_getTimePeriodViewByStartDate'](_0x5c16a3){return this['timePeriodViews']['find'](_0x6400c=>_0x6400c['startDate']['getTime']()===_0x5c16a3['getTime']());}}class d extends _0x1805f7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x3a5146(_0x23f7d4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x10eeb6,_0x1cd181){super(_0x1cd181),this['sourceElement']=_0x10eeb6,this['model']['document']['createRoot']();const _0x4df2b4=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4df2b4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1c2a19,_0x433d22){const _0x2bb97e=new this(_0x1c2a19,_0x433d22);return await _0x2bb97e['initPlugins'](),await _0x2bb97e['ui']['init'](_0x1c2a19),await _0x2bb97e['data']['init'](_0x2bb97e['config']['get']('initialData')||''),_0x2bb97e['fire']('ready'),_0x2bb97e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x2e679e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17a329){function _0x13c437(_0x5d8a2d){return _0x5d8a2d['map'](_0x340b63=>String['fromCharCode'](_0x340b63))['join']('');}super(_0x17a329),this['result']='end',_0x17a329[_0x13c437([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13c437([0x76,0x69,0x65,0x77])][_0x13c437([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13c437([0x61,0x75,0x74,0x6f]),_0x17a329[_0x13c437([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x13c437([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13c437([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x13c437([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x13c437([0x6f,0x6b])});}}class k extends _0x2e679e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4b8ca9){if(super(_0x4b8ca9),!this['editor']['config']['get']('revisionHistory'))throw new _0xdcd125('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x439205=>this['_showRevisionViewer']({..._0x439205,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x26ffd0=>this['_closeRevisionViewer'](_0x26ffd0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x15e308=>this['_restoreRevision'](_0x15e308)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xdf8925){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xdf8925;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x58abc4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x58abc4);}['getRevision'](_0x354920){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x354920);}['getRevisions'](_0x519525){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x519525||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5cbcc4=this['editor'],_0x40fe05=_0x598da9(_0x5cbcc4,p),_0xed17f5=_0x5cbcc4['plugins']['get']('RevisionTracker'),_0x5cc78f=_0x5cbcc4['plugins']['get']('Users')['users'];return _0x40fe05['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40fe05['lazyRoots'],(_0x40fe05['plugins']['push'](yt,m,R,class extends _0x2e679e{static get['requires'](){return[m,'Users'];}['init'](){const _0x57fbbf=this['editor']['plugins']['get']('Users');for(const _0x25eb6e of _0x5cc78f)_0x25eb6e['isAnonymous']||_0x57fbbf['getUser'](_0x25eb6e['id'])||_0x57fbbf['addUser'](_0x25eb6e);const _0x83e0a9=_0xed17f5['repository']['getRevisions']();let _0x57cd09=null;const _0x36e8ee=this['editor']['plugins']['get']('RevisionViewer');_0x36e8ee['adapter']=_0xed17f5['adapter'],_0x36e8ee['bind']('isEnabled')['to'](_0xed17f5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5cbcc4,'isReadOnly',_0x390d2c=>!_0x390d2c);for(const _0x546ad1 of _0x83e0a9){const _0x62a24e=null===_0x546ad1['creator'];if(_0x62a24e&&_0x546ad1['toVersion']===_0x546ad1['fromVersion'])continue;const _0x136554=_0x546ad1['toJSON']();_0x36e8ee['addRevisionData'](_0x136554,(_0x330211,_0x57bdc9,_0x309979)=>{if(_0x62a24e){if(_0x57cd09)_0x57cd09['_update'](_0x330211,_0x57bdc9);else{if(!_0x57bdc9){const _0x17234f=_0x309979['toJSON']();_0x17234f['id']=_0x49f29a(),_0xed17f5['saveRevision'](_0x17234f,_0x309979['toVersion'])['then'](_0x2e7722=>{_0x57cd09=_0x2e7722;});}}}else _0x546ad1['_update'](_0x330211,_0x57bdc9);});}}},d),_0x40fe05);}['_enhanceShowRevisionViewerCallback'](){const _0x1dcfec=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1c34e9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1ad81f=this['editor']['plugins']['get']('Autosave');await _0x1ad81f['save']();}else await _0x1c34e9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x189384=this['editor']['plugins']['get']('Dialog');_0x189384['isOpen']&&_0x189384['hide']();}const _0x49a3d9=this['_getRevisionViewerEditorConfig']();return _0x1dcfec(_0x49a3d9)['then'](_0x469588=>{return(this['_viewerEditor']=_0x469588,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x469588);})['catch'](_0x37b18c=>(console['error'](_0x37b18c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1bc1e4=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1bc1e4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x136d8c=this['editor']['plugins']['get']('Annotations');_0x136d8c['refreshVisibility'](),_0x136d8c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x139b0e){const _0x1b2b26=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x443a48=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4b38df=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4b38df,_0x139b0e)['then'](_0x5df460=>(_0x443a48['style']['display']='block',_0x1b2b26['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5df460));}['_closeRevisionViewer'](_0x33815c){const _0x30f00f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x30f00f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x33815c['destroy']();}async['_restoreRevision'](_0x33b711){const _0x56ffd2=this['editor'],_0x273cb8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x44682c=_0x56ffd2['plugins']['get']('RevisionTracker'),_0x56634f=_0x56ffd2['plugins']['get']('RevisionHistoryUtils'),_0x59b0e1=_0x273cb8['repository']['getRevision'](_0x33b711);let _0x319e39,_0x5a47f4,_0x42c1cc;try{await _0x56634f['loadRevisionData'](_0x59b0e1,this['adapter']),_0x319e39=_0x56634f['getRevisionDocumentData'](_0x59b0e1),_0x5a47f4=_0x56634f['getRevisionRootsAttributes'](_0x59b0e1);}catch(_0x5aa480){return void console['error'](_0x5aa480);}_0x56ffd2['model']['change'](_0x1ac139=>{for(const _0x19664b of Array['from'](_0x56ffd2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1ac139['removeMarker'](_0x19664b);}),_0x273cb8['isReady']=!0x1,_0x56ffd2['model']['enqueueChange'](_0x45cfb7=>{_0x45cfb7['setSelection'](null),_0x45cfb7['removeSelectionAttribute'](_0x56ffd2['model']['document']['selection']['getAttributeKeys']());const _0x311c59=Object['keys'](_0x319e39);for(const _0x178c96 of _0x56ffd2['model']['document']['roots'])'$graveyard'!=_0x178c96['rootName']&&_0x178c96['isAttached']()&&!_0x311c59['includes'](_0x178c96['rootName'])&&_0x45cfb7['detachRoot'](_0x178c96);for(const _0x1203d0 of _0x311c59){let _0x3e564a=_0x56ffd2['model']['document']['getRoot'](_0x1203d0);_0x3e564a&&_0x3e564a['isAttached']()||(_0x3e564a=_0x45cfb7['addRoot'](_0x1203d0));const _0x3a2720=_0x5a47f4[_0x1203d0],_0x376e95=Object['keys'](_0x3a2720),_0x59d9af=_0x319e39[_0x1203d0];for(const _0x1dbecf of _0x3e564a['getAttributeKeys']())_0x376e95['includes'](_0x1dbecf)||_0x45cfb7['removeAttribute'](_0x1dbecf,_0x3e564a);for(const _0x4bd535 of _0x376e95)_0x45cfb7['setAttribute'](_0x4bd535,_0x5a47f4[_0x1203d0][_0x4bd535],_0x3e564a);_0x45cfb7['remove'](_0x45cfb7['createRangeIn'](_0x3e564a)),_0x45cfb7['insert'](_0x56ffd2['data']['parse'](_0x59d9af,_0x3e564a),_0x3e564a,0x0);}});const _0x259812=g(_0x56ffd2['locale'],'Restored');if(_0x59b0e1['name'])_0x42c1cc=-0x1==_0x59b0e1['name']['indexOf'](_0x259812)?_0x259812+':\x20'+_0x59b0e1['name']:_0x59b0e1['name'];else _0x42c1cc=_0x259812+':\x20'+(_0x59b0e1['createdAt']['toLocaleDateString'](_0x56ffd2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x59b0e1['createdAt']['toLocaleTimeString'](_0x56ffd2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x44682c['saveRevision']({'name':_0x42c1cc}),_0x273cb8['isReady']=!0x0,_0x56ffd2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x5eb416){super(_0x5eb416),this['_revisionViewer']=_0x5eb416['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x37c0b7=this['_revisionsRepository']['_revisions'],_0x36c138=this['_createRevisionActions'](),_0xcf2f5e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x37c0b7,_0x36c138,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',(_0x27ea08,_0x34196d)=>{_0x34196d['revisionViews']['on']('add',(_0x3db292,_0x2c8ead)=>{_0x2c8ead['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)),_0xcf2f5e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x301a23=this['_revisionsRepository']['getRevision'](0x0);if(_0x301a23){const _0x1fdf3d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x301a23['id']);this['_revisionViewer']['compare'](_0x301a23,_0x1fdf3d);}}['_handleRevisionSelected'](_0x40372e,_0x53e2bd){const _0x362843=this['_revisionsRepository']['getRevision'](_0x53e2bd['id']),_0x1c6261=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x362843['id']);this['_revisionViewer']['compare'](_0x362843,_0x1c6261);}['_handleRevisionSetName'](_0x5c39da,_0x562444){this['_revisionsRepository']['getRevision'](_0x562444['id'])['setName'](_0x562444['name']);}['_handleDiffChange'](_0x1c59af,_0x5576c5,_0x10e660){const _0x54c270=this['_revisionsRepository']['getRevisionsInDiff'](_0x10e660);_0x54c270['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x54c270),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x54c270[0x0]));}['_createRevisionActions'](){const _0x23b824=this['editor'],_0x4cffed=d['availableRevisionActions'],_0x5824f4=_0x23b824['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5824f4['length'])return _0x5824f4['map'](_0x1ec96a=>{const _0x2021f6='string'==typeof _0x1ec96a?Object['assign']({},_0x4cffed[_0x1ec96a]):_0x1ec96a;return _0x2021f6['action']=_0x2021f6['action']['bind'](this,_0x23b824),_0x2021f6['isVisible']&&(_0x2021f6['isVisible']=_0x2021f6['isVisible']['bind'](this,_0x23b824)),_0x2021f6;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3eeaf6},_0xb29b3)=>{const _0x7d36ef=_0x3eeaf6['get'](m),_0x13c180=_0x7d36ef['repository'];let _0x297fec=_0x7d36ef['diff']['newRevisionId'],_0x3a2821=_0xb29b3['id'];_0x13c180['getIndex'](_0x297fec)>_0x13c180['getIndex'](_0x3a2821)&&([_0x297fec,_0x3a2821]=[_0x3a2821,_0x297fec]),_0x7d36ef['compare'](_0x297fec,_0x3a2821);},'isVisible':({plugins:_0x3c4970},_0x1431be)=>{const _0x5a35aa=_0x3c4970['get'](m);return!(_0x5a35aa['repository']['getRevisionsInDiff'](_0x5a35aa['diff'])['length']>0x2)&&!_0x1431be['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xb0a0ca,{id:_0x22eae5})=>{_0xb0a0ca['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x22eae5);},'isVisible':({plugins:_0x167117},_0x216d9b)=>!!_0x167117['get'](m)['repository']['getLaterVisibleRevision'](_0x216d9b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x47511c},{id:_0x2db7e8,revisionNameView:_0x20d010})=>{const _0x41e72e=_0x47511c['get'](m),_0x32473f=_0x41e72e['repository']['getEarlierVisibleRevision'](_0x2db7e8);_0x41e72e['compare'](_0x2db7e8,_0x32473f),_0x20d010['focus'](),_0x20d010['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xcad2b9,_0x15d157){super(_0xcad2b9),this['_view']=_0x15d157,this['_toolbarConfig']=et(_0xcad2b9['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1db26c){const _0x11c33c=this['editor'],_0x5739b2=this['view'],_0x4befee=_0x11c33c['editing']['view'],_0x5b2229=_0x5739b2['editable'],_0x3a8b1b=_0x4befee['document']['getRoot']();_0x5b2229['name']=_0x3a8b1b['rootName'],_0x5739b2['render']();const _0x17a2aa=_0x5b2229['element'];this['setEditableElement'](_0x5b2229['name'],_0x17a2aa),_0x5739b2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4befee['attachDomRoot'](_0x17a2aa),this['_elementReplacer']['replace'](_0x1db26c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c9a11=this['view'],_0x4beba1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4beba1['detachDomRoot'](_0x4c9a11['editable']['name']),_0x4c9a11['destroy']();}['_initToolbar'](){const _0x2a58a9=this['view'];_0x2a58a9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2a58a9['stickyPanel']['limiterElement']=_0x2a58a9['element'],_0x2a58a9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3252cc})=>_0x3252cc),_0x2a58a9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2a58a9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x251c4a,_0x40f3e5,_0x26c902={}){super(_0x251c4a),this['stickyPanel']=new ht(_0x251c4a),this['toolbar']=new dt(_0x251c4a,{'shouldGroupWhenFull':_0x26c902['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x251c4a,_0x40f3e5);}['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
|
+
_0x587723(_0x4b630c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d2f17,_0x44f627){super(_0x44f627),this['sourceElement']=_0x5d2f17,this['model']['document']['createRoot']();const _0x2eb11f=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2eb11f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x542f5b,_0x21fe39){const _0xb3934a=new this(_0x542f5b,_0x21fe39);return await _0xb3934a['initPlugins'](),await _0xb3934a['ui']['init'](_0x542f5b),await _0xb3934a['data']['init'](_0xb3934a['config']['get']('initialData')||''),_0xb3934a['fire']('ready'),_0xb3934a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x1805f7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a1a51){function _0x363af9(_0x5b7e5b){return _0x5b7e5b['map'](_0x5d7ffa=>String['fromCharCode'](_0x5d7ffa))['join']('');}super(_0x4a1a51),this['result']='end',_0x4a1a51[_0x363af9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x363af9([0x76,0x69,0x65,0x77])][_0x363af9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x363af9([0x61,0x75,0x74,0x6f]),_0x4a1a51[_0x363af9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x363af9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x363af9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x363af9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x363af9([0x6f,0x6b])});}}class k extends _0x1805f7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x51e75f){if(super(_0x51e75f),!this['editor']['config']['get']('revisionHistory'))throw new _0x56af2e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1822c6=>this['_showRevisionViewer']({..._0x1822c6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4e81bf=>this['_closeRevisionViewer'](_0x4e81bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x22ea8e=>this['_restoreRevision'](_0x22ea8e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5c62fb){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5c62fb;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f1e5e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f1e5e);}['getRevision'](_0x23ab67){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x23ab67);}['getRevisions'](_0x1a33df){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1a33df||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5122c3=this['editor'],_0x1db680=_0xb2123c(_0x5122c3,p),_0x359484=_0x5122c3['plugins']['get']('RevisionTracker'),_0x4805ac=_0x5122c3['plugins']['get']('Users')['users'];return _0x1db680['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1db680['lazyRoots'],(_0x1db680['plugins']['push'](_t,m,R,class extends _0x1805f7{static get['requires'](){return[m,'Users'];}['init'](){const _0x1c2bbe=this['editor']['plugins']['get']('Users');for(const _0x5af5ab of _0x4805ac)_0x5af5ab['isAnonymous']||_0x1c2bbe['getUser'](_0x5af5ab['id'])||_0x1c2bbe['addUser'](_0x5af5ab);const _0x38cb55=_0x359484['repository']['getRevisions']();let _0x453f64=null;const _0x1d2bf1=this['editor']['plugins']['get']('RevisionViewer');_0x1d2bf1['adapter']=_0x359484['adapter'],_0x1d2bf1['bind']('isEnabled')['to'](_0x359484),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5122c3,'isReadOnly',_0x54ecb1=>!_0x54ecb1);for(const _0x5eea90 of _0x38cb55){const _0x80eb07=null===_0x5eea90['creator'];if(_0x80eb07&&_0x5eea90['toVersion']===_0x5eea90['fromVersion'])continue;const _0x4cdc94=_0x5eea90['toJSON']();_0x1d2bf1['addRevisionData'](_0x4cdc94,(_0xdd057b,_0x31ca09,_0x51a7a7)=>{if(_0x80eb07){if(_0x453f64)_0x453f64['_update'](_0xdd057b,_0x31ca09);else{if(!_0x31ca09){const _0xe2de90=_0x51a7a7['toJSON']();_0xe2de90['id']=_0x300526(),_0x359484['saveRevision'](_0xe2de90,_0x51a7a7['toVersion'])['then'](_0x5b6f09=>{_0x453f64=_0x5b6f09;});}}}else _0x5eea90['_update'](_0xdd057b,_0x31ca09);});}}},d),_0x1db680);}['_enhanceShowRevisionViewerCallback'](){const _0xbda83d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17c5df=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x25fe49=this['editor']['plugins']['get']('Autosave');await _0x25fe49['save']();}else await _0x17c5df['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3e7e45=this['editor']['plugins']['get']('Dialog');_0x3e7e45['isOpen']&&_0x3e7e45['hide']();}const _0x43e61f=this['_getRevisionViewerEditorConfig']();return _0xbda83d(_0x43e61f)['then'](_0xe4cd78=>{return(this['_viewerEditor']=_0xe4cd78,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xe4cd78);})['catch'](_0x2d00d0=>(console['error'](_0x2d00d0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4da955=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4da955(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x497dc0=this['editor']['plugins']['get']('Annotations');_0x497dc0['refreshVisibility'](),_0x497dc0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x477f31){const _0x143879=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4300e3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2a9b65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2a9b65,_0x477f31)['then'](_0x566c93=>(_0x4300e3['style']['display']='block',_0x143879['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x566c93));}['_closeRevisionViewer'](_0x415bad){const _0x548dcd=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x548dcd['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x415bad['destroy']();}async['_restoreRevision'](_0x2cba2e){const _0x3b5a81=this['editor'],_0x4e1a12=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x45e71f=_0x3b5a81['plugins']['get']('RevisionTracker'),_0xacdb33=_0x3b5a81['plugins']['get']('RevisionHistoryUtils'),_0x1c2198=_0x4e1a12['repository']['getRevision'](_0x2cba2e);let _0x125a01,_0x1231ec,_0x1912cd;try{await _0xacdb33['loadRevisionData'](_0x1c2198,this['adapter']),_0x125a01=_0xacdb33['getRevisionDocumentData'](_0x1c2198),_0x1231ec=_0xacdb33['getRevisionRootsAttributes'](_0x1c2198);}catch(_0x13c8fd){return void console['error'](_0x13c8fd);}_0x3b5a81['model']['change'](_0x523350=>{for(const _0x11691d of Array['from'](_0x3b5a81['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x523350['removeMarker'](_0x11691d);}),_0x4e1a12['isReady']=!0x1,_0x3b5a81['model']['enqueueChange'](_0x4858d2=>{_0x4858d2['setSelection'](null),_0x4858d2['removeSelectionAttribute'](_0x3b5a81['model']['document']['selection']['getAttributeKeys']());const _0x295198=Object['keys'](_0x125a01);for(const _0x415248 of _0x3b5a81['model']['document']['roots'])'$graveyard'!=_0x415248['rootName']&&_0x415248['isAttached']()&&!_0x295198['includes'](_0x415248['rootName'])&&_0x4858d2['detachRoot'](_0x415248);for(const _0x7d2449 of _0x295198){let _0x355a98=_0x3b5a81['model']['document']['getRoot'](_0x7d2449);_0x355a98&&_0x355a98['isAttached']()||(_0x355a98=_0x4858d2['addRoot'](_0x7d2449));const _0x3a40d9=_0x1231ec[_0x7d2449],_0x188779=Object['keys'](_0x3a40d9),_0x3c903a=_0x125a01[_0x7d2449];for(const _0x3f21a2 of _0x355a98['getAttributeKeys']())_0x188779['includes'](_0x3f21a2)||_0x4858d2['removeAttribute'](_0x3f21a2,_0x355a98);for(const _0x4e0ee2 of _0x188779)_0x4858d2['setAttribute'](_0x4e0ee2,_0x1231ec[_0x7d2449][_0x4e0ee2],_0x355a98);_0x4858d2['remove'](_0x4858d2['createRangeIn'](_0x355a98)),_0x4858d2['insert'](_0x3b5a81['data']['parse'](_0x3c903a,_0x355a98),_0x355a98,0x0);}});const _0x3e906f=g(_0x3b5a81['locale'],'Restored');if(_0x1c2198['name'])_0x1912cd=-0x1==_0x1c2198['name']['indexOf'](_0x3e906f)?_0x3e906f+':\x20'+_0x1c2198['name']:_0x1c2198['name'];else _0x1912cd=_0x3e906f+':\x20'+(_0x1c2198['createdAt']['toLocaleDateString'](_0x3b5a81['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c2198['createdAt']['toLocaleTimeString'](_0x3b5a81['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x45e71f['saveRevision']({'name':_0x1912cd}),_0x4e1a12['isReady']=!0x0,_0x3b5a81['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|