@ckeditor/ckeditor5-revision-history 45.0.0-alpha.10 → 45.0.0-alpha.12
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/revisionssidebar/utils.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
|
-
_0x14857d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x55918e){super(),this['id']=_0x55918e['id']||_0x451426(),this['creator']=_0x55918e['creator']||null,this['authors']=_0x55918e['authors']||[],this['diffData']=_0x55918e['diffData']||null,this['toVersion']=_0x55918e['toVersion']||0x0,this['fromVersion']=_0x55918e['fromVersion']||0x0,this['set']('name',_0x55918e['name']||''),this['set']('createdAt',_0x55918e['createdAt']||new Date()),this['set']('attributes',_0x55918e['attributes']||{});}['setName'](_0x1d3cdf){this['_update']({'name':_0x1d3cdf});}['setAttribute'](_0x2174e7,_0xc7aa57){const _0x1c6d15=_0x36f289(this['attributes']);_0x268604(_0x1c6d15,_0x2174e7,_0xc7aa57),this['_update']({'attributes':_0x1c6d15});}['removeAttribute'](_0x2ff3f3){const _0x4ee813=_0x36f289(this['attributes']);_0x3f51ab(_0x4ee813,_0x2ff3f3),this['_update']({'attributes':_0x4ee813});}['_update'](_0x425289,_0x34b4dc=!0x1){let _0x2c3459=!0x1;const _0x1656f8={'id':this['id']},_0x3b11c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5ab7d9 of _0x3b11c8){const _0x2ac261=_0x425289[_0x5ab7d9];void 0x0!==_0x2ac261&&_0x2ac261!==this[_0x5ab7d9]&&(this[_0x5ab7d9]=_0x2ac261,_0x1656f8[_0x5ab7d9]=_0x2ac261,_0x2c3459=!0x0);}_0x2c3459&&(_0x1656f8['authors']&&(_0x1656f8['authorsIds']=_0x1656f8['authors']['map'](_0x3cb8f7=>_0x3cb8f7['id']),delete _0x1656f8['authors']),this['fire']('_update',_0x1656f8,_0x34b4dc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3eeb54=>_0x3eeb54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x149b28{['_revisions'];static get['requires'](){return[_0x43b4df];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x302136){super(_0x302136),this['_revisions']=new _0x3fcc51();}['afterInit'](){!async function(_0x1f9b42){const _0x347073=_0xa8d78f([0x70,0x74,0x78,0x4e,0x41,0x31,0x36,0x42,0x6b,0x73,0x52,0x45,0x79,0x69,0x59,0x6f,0x43,0x55,0x4f,0x71,0x30,0x6e,0x44,0x76,0x50,0x65,0x37,0x75,0x32,0x54,0x68,0x51,0x67,0x62,0x6c,0x4a,0x58,0x4c,0x77,0x34,0x35,0x7a,0x47,0x61,0x6d,0x38,0x5a,0x33,0x64,0x57,0x4b,0x39,0x66,0x53,0x4d,0x46,0x48,0x56,0x63,0x72,0x49,0x6a]),_0x36d9e6=0xeb829,_0x2d9955=0x66e9f56b,_0x305a12=0x66ee9143^_0x2d9955,_0x196f4d=window[_0xa8d78f([0x44,0x61,0x74,0x65])][_0xa8d78f([0x6e,0x6f,0x77])](),_0x236736=_0x1f9b42[_0xa8d78f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206d07=new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0009=>{_0x236736[_0xa8d78f([0x6f,0x6e,0x63,0x65])](_0xa8d78f([0x72,0x65,0x61,0x64,0x79]),_0x1b0009);}),_0x56f1af={[_0xa8d78f([0x6b,0x74,0x79])]:_0xa8d78f([0x45,0x43]),[_0xa8d78f([0x75,0x73,0x65])]:_0xa8d78f([0x73,0x69,0x67]),[_0xa8d78f([0x63,0x72,0x76])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36]),[_0xa8d78f([0x78])]:_0xa8d78f([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]),[_0xa8d78f([0x79])]:_0xa8d78f([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]),[_0xa8d78f([0x61,0x6c,0x67])]:_0xa8d78f([0x45,0x53,0x32,0x35,0x36])},_0x14ca01=_0x236736[_0xa8d78f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8d78f([0x67,0x65,0x74])](_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11c174(){let _0x339f7d,_0x1270a8=null,_0x497d62=null;try{if(_0x14ca01==_0xa8d78f([0x47,0x50,0x4c]))return _0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x339f7d=_0x2262ca(),!_0x339f7d)return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x497d62=_0x456cf3(_0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x339f7d[_0xa8d78f([0x6a,0x74,0x69])])),await _0x35a016()?_0x5de48f()?_0x55cbae()?_0xa8d78f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b902()?(_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1270a8=_0x401032(_0xa8d78f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1270a8=_0x401032(_0xa8d78f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4de499()):_0xa8d78f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x366ff1){return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55cbae(){const _0x3209fc=[_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])][_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x196f4d/0x3e8:0xe10*_0x305a12;return _0x339f7d[_0xa8d78f([0x65,0x78,0x70])]<_0x3209fc;}function _0x5de48f(){const _0x1d1106=_0x339f7d[_0xa8d78f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d1106)return!0x1;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x48])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x52,0x48]))){if(_0x21aad4())return!0x0;if(_0x3a8a2a()||_0x29abb9())return!0x0;}return!0x1;}function _0x26b902(){const _0x448abd=_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448abd||0x0==_0x448abd[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x314b64}=new URL(window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x448abd[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x314b64))return!0x0;const _0x991367=_0x314b64[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));return _0x448abd[_0xa8d78f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1da43f=>_0x1da43f[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))[_0xa8d78f([0x6d,0x61,0x70])](_0x10648d=>_0x10648d[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])))[_0xa8d78f([0x73,0x6f,0x6d,0x65])](_0x2cd346=>_0x991367[_0xa8d78f([0x65,0x76,0x65,0x72,0x79])]((_0x416f68,_0x5b0377)=>_0x2cd346[_0x5b0377]===_0x416f68||_0x2cd346[_0x5b0377]===_0xa8d78f([0x2a])));}function _0x4de499(){return _0x1270a8&&_0x497d62?new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b0ca0,_0x214e88)=>{_0x1270a8[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x1b0ca0,_0x214e88),_0x497d62[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x2db954=>{_0x2db954!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x1b0ca0(_0x2db954);},_0x214e88);}):_0x1270a8||_0x497d62||_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456cf3(_0x419085,_0x27db51){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487d78=>{if(_0x49d4a3())return _0x487d78(_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]));_0xd2640e(),_0x236736[_0xa8d78f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b4e0c=!0x1;const _0x2b335e=_0x451426();function _0x270293(_0x48f5c9){return!!_0x48f5c9&&(typeof _0x48f5c9===_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48f5c9===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48f5c9[_0xa8d78f([0x74,0x68,0x65,0x6e])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48f5c9[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e4dd1(_0x5e5cf8){_0x4cd65c(_0x5e5cf8)[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3eb908=>{if(!_0x3eb908||_0x3eb908[_0xa8d78f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8d78f([0x6f,0x6b]))return _0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cad42(_0x4fd66f(_0x2b335e+_0x27db51))!=_0x3eb908[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3445b0=>(_0x2aa3c5(),_0x3445b0),()=>{const _0x29e380=_0xe2b20c();return null==_0x29e380?(_0x2aa3c5(),_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])):_0xa8d78f(_0x196f4d-_0x29e380>(0x42e5716b^_0x2d9955)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x487d78)[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bcadd=0x66df1beb^_0x2d9955;function _0x2aa3c5(){const _0x4567f4=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x579ac5=_0x3bf081(_0x3cad42(window[_0xa8d78f([0x4d,0x61,0x74,0x68])][_0xa8d78f([0x63,0x65,0x69,0x6c])](_0x196f4d/_0x1bcadd)));window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4567f4,_0x579ac5);}function _0xe2b20c(){const _0x47d2bb=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x20c4fd=window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47d2bb);return _0x20c4fd?window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf081(_0x20c4fd),0x10)*_0x1bcadd:null;}function _0x4cd65c(_0x385178){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21ef7e,_0x11ffdb)=>{_0x385178[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x21ef7e,_0x11ffdb),window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11ffdb,0x66e821ab^_0x2d9955);});}}_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x331f4b,_0x28db59)=>{if(_0x28db59[0x0]!=_0x419085)return _0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28db59[0x1]={..._0x28db59[0x1],[_0xa8d78f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b335e};},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x68,0x69,0x67,0x68])}),_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44de77=>{_0x270293(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b4e0c=!0x0,_0x2e4dd1(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x6c,0x6f,0x77])}),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>{_0x5b4e0c||_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49d4a3(){return _0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8d78f([0x61,0x75,0x74,0x6f]);}function _0xd2640e(){_0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8d78f([0x61,0x75,0x74,0x6f]);}}function _0x401032(_0x5e56f8){const _0x4f61d2=[new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440ab5=>setTimeout(_0x440ab5,0x66e0cba7^_0x2d9955)),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bdade=>{const _0x8dc8bb=0x66e9f56c^_0x2d9955,_0x3b6f32=_0x1f9b42[_0xa8d78f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x184691(){_0x3b6f32[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8dc8bb&&_0x1bdade();}_0x184691(),_0x3b6f32[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x61,0x64,0x64]),_0x184691);})),new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba48f=>{function _0x164fad(){for(const _0x464cd5 in window)if(window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x464cd5))&&window[_0x464cd5]==_0x36d9e6)return _0x2ba48f();_0x236736[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]!=_0xa8d78f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164fad,0x66e9e6e3^_0x2d9955);}_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x164fad();})];return window[_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8d78f([0x72,0x61,0x63,0x65])](_0x4f61d2)[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>_0x5e56f8);}async function _0x3d5a4d(){if(await _0x206d07,_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2cfbaa=_0x1f9b42[_0xa8d78f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e0b96=_0x1f9b42[_0xa8d78f([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])](_0x2cfbaa[_0xa8d78f([0x69,0x64])]),_0x1ba8a7=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2cfbaa['id'],_0x3e0b96?_0x3e0b96['id']:null,!0x0),_0x1ba8a7[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ba8a7[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x135e00,void(_0x1ba8a7[_0xa8d78f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x135e00);}if(_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x196e65=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x196e65[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x196e65[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x196e65[_0xa8d78f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x135e00,_0x196e65[_0xa8d78f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x135e00;}_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21aad4(){return _0x12a518(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x53f4be(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]==_0xa8d78f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3a8a2a(){return _0x12a518(_0xa8d78f([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 _0x29abb9(){return _0x12a518(_0xa8d78f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x316ff8(_0x64181f){const _0x150b23=_0x11db1a();_0x236736[_0x150b23]=_0xa8d78f([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])+_0x64181f,_0x64181f[_0xa8d78f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x11db1a()]=_0x36d9e6),_0x64181f!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5a4d();}function _0x11db1a(){const _0x466e1f=window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8d78f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8d78f([0x6e,0x6f,0x77])]())[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8d78f([0x2e]),'');let _0x50b794=_0xa8d78f([0x70]);for(let _0x201758=0x0;_0x201758<_0x466e1f[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x201758+=0x2){let _0x18caa4=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466e1f[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x201758,_0x201758+0x2));_0x18caa4>=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18caa4-=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50b794+=_0x347073[_0x18caa4];}return _0x50b794;}function _0x2262ca(){const _0x3e16de=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));if(0x3!=_0x3e16de[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fa5a8(_0x3e16de[0x1]);function _0x1fa5a8(_0x1c1419){const _0x2f894c=_0x148a54(_0x1c1419);return _0x2f894c&&_0x20cad5()?_0x2f894c:null;function _0x20cad5(){const _0x5e96fb=_0x2f894c[_0xa8d78f([0x6a,0x74,0x69])],_0x261452=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c9767={..._0x2f894c,[_0xa8d78f([0x6a,0x74,0x69])]:_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c9767[_0xa8d78f([0x76,0x63])],_0x4fd66f(_0x1c9767)==_0x261452;}}}async function _0x35a016(){let _0x212007=!0x0;try{const _0x2a882c=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])),[_0x10cd9e,_0x21d6c3,_0x4f3875]=_0x2a882c;return _0x3efafe(_0x10cd9e),await _0x15950c(_0x10cd9e,_0x21d6c3,_0x4f3875),_0x212007;}catch(_0x88faf){return!0x1;}function _0x3efafe(_0x389c54){const _0x394254=_0x148a54(_0x389c54);_0x394254&&_0x394254[_0xa8d78f([0x61,0x6c,0x67])]==_0xa8d78f([0x45,0x53,0x32,0x35,0x36])||(_0x212007=!0x1);}async function _0x15950c(_0x5b762e,_0x3baf8f,_0x215255){const _0x4ce583=window[_0xa8d78f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8d78f([0x66,0x72,0x6f,0x6d])](_0x400e4b(_0x215255),_0x11b918=>_0x11b918[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x111db6=new window[(_0xa8d78f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8d78f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b762e+_0xa8d78f([0x2e])+_0x3baf8f),_0x1b8009=window[_0xa8d78f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8d78f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b8009)return;const _0x2eb3b0=await _0x1b8009[_0xa8d78f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8d78f([0x6a,0x77,0x6b]),_0x56f1af,{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b8009[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x68,0x61,0x73,0x68])]:{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2eb3b0,_0x4ce583,_0x111db6)||(_0x212007=!0x1);}}function _0x148a54(_0x33b8df){return _0x33b8df[_0xa8d78f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x65,0x79]))?JSON[_0xa8d78f([0x70,0x61,0x72,0x73,0x65])](_0x400e4b(_0x33b8df)):null;}function _0x400e4b(_0x53c359){return window[_0xa8d78f([0x61,0x74,0x6f,0x62])](_0x53c359[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8d78f([0x2b]))[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8d78f([0x2f])));}function _0x4fd66f(_0x533ba5){let _0x13d8ba=0x1505;function _0xf3ce3e(_0x8115df){for(let _0x7c0f92=0x0;_0x7c0f92<_0x8115df[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7c0f92++){const _0x56c6e7=_0x8115df[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7c0f92);_0x13d8ba=(_0x13d8ba<<0x5)+_0x13d8ba+_0x56c6e7,_0x13d8ba&=_0x13d8ba;}}function _0x5c3f4b(_0x8d610d){Array[_0xa8d78f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8d610d)?_0x8d610d[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3f4b):_0x8d610d&&typeof _0x8d610d==_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8d78f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8d610d)[_0xa8d78f([0x73,0x6f,0x72,0x74])]()[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52cd71,_0x2143ec])=>{_0xf3ce3e(_0x52cd71),_0x5c3f4b(_0x2143ec);}):_0xf3ce3e(window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8d610d));}return _0x5c3f4b(_0x533ba5),_0x13d8ba>>>0x0;}function _0x3cad42(_0x2a8418){return _0x2a8418[_0xa8d78f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8d78f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8d78f([0x30]));}function _0x3bf081(_0xaf7d77){return _0xaf7d77[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8d78f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8d78f([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a518(_0x4bae2f){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x68,0x61,0x73])](_0x4bae2f);}function _0x53f4be(_0x258fdb){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x67,0x65,0x74])](_0x258fdb);}function _0x135e00(){}function _0xa8d78f(_0x2e4db4){return _0x2e4db4['map'](_0x1528d8=>String['fromCharCode'](_0x1528d8))['join']('');}_0x316ff8(await _0x11c174());}(this);}['createRevision'](_0x347a98){const _0x2a456d=this['editor']['plugins']['get']('Users');return new h({'id':_0x347a98['id'],'name':_0x347a98['name'],'creator':_0x347a98['creatorId']?_0x2a456d['getUser'](_0x347a98['creatorId']):null,'diffData':_0x347a98['diffData']||_0x347a98['data'],'authors':_0x347a98['authorsIds']['map'](_0x3b95c1=>_0x2a456d['getUser'](_0x3b95c1)),'createdAt':new Date(_0x347a98['createdAt']),'attributes':_0x347a98['attributes'],'fromVersion':_0x347a98['fromVersion'],'toVersion':_0x347a98['toVersion']});}['addRevision'](_0x3c5286,_0x45932a=0x0){this['_revisions']['add'](_0x3c5286,_0x45932a);}['getRevision'](_0x3ef819){return this['_revisions']['get'](_0x3ef819);}['getRevisions'](_0x1d79eb={'toJSON':!0x1}){const _0x3cb076=Array['from'](this['_revisions']);return _0x3cb076['reverse'](),_0x1d79eb['toJSON']?_0x3cb076['map'](_0x36845f=>_0x36845f['toJSON']()):_0x3cb076;}['getIndex'](_0x10d027){return this['_revisions']['getIndex'](_0x10d027);}['getEarlierVisibleRevision'](_0x2a2eb7){const [,_0x414d89]=this['getRevisionsIterator'](_0x2a2eb7,{'direction':'earlier'});return _0x414d89;}['getLaterVisibleRevision'](_0x34330c){const [,_0x13786e]=this['getRevisionsIterator'](_0x34330c,{'direction':'later'});return _0x13786e;}['getRevisionsInDiff'](_0xd1542f){const _0xf8adca=[];for(const _0x28cc40 of this['getRevisionsIterator'](_0xd1542f['newRevisionId']))if(_0xf8adca['push'](_0x28cc40),_0x28cc40['id']===_0xd1542f['oldRevisionId'])break;return _0xf8adca;}*['getRevisionsIterator'](_0x1b41b8,{direction:_0x27fd0a='earlier',filter:_0x3a733c=()=>!0x0}={}){const _0x471e19='earlier'===_0x27fd0a?0x1:-0x1;let _0x2543f0=this['_revisions']['get'](_0x1b41b8),_0x5333f5=this['getIndex'](_0x2543f0);for(yield _0x2543f0;_0x2543f0;){if(_0x5333f5+=_0x471e19,_0x2543f0=this['getRevision'](_0x5333f5),!_0x2543f0)return;_0x3a733c(_0x2543f0)&&(yield _0x2543f0);}}}class V extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x373619,'c'],[_0x4df112,'a'],[_0x553de7,'e'],[_0x57c601,'r'],[_0x316267,'u']]);['_typeCharToViewClass']=new Map([['c',_0x373619],['a',_0x4df112],['e',_0x553de7],['r',_0x57c601],['u',_0x316267]]);async['loadRevisionData'](_0x558f16,_0x23cd18){if(_0x558f16['diffData']||!_0x23cd18)return;const _0x747bd7=this['editor']['config']['get']('collaboration.channelId'),_0x37da63=await _0x23cd18['getRevision']({'channelId':_0x747bd7,'revisionId':_0x558f16['id']});_0x558f16['diffData']=_0x37da63['diffData'];}['getRevisionDocumentData'](_0x1fba23){const _0x5db67f={};for(const _0x382771 in _0x1fba23['diffData']){if(_0x1fba23['diffData'][_0x382771]['attachChange']&&!_0x1fba23['diffData'][_0x382771]['attachChange']['isAttached'])continue;const _0x285b72=this['_removeRevisionMarkers'](JSON['parse'](_0x1fba23['diffData'][_0x382771]['insertions'])),_0x305341=this['editor']['editing']['view']['document'],_0x6934a9=new _0x118cac(_0x305341,_0x285b72['map'](_0x12b8d5=>this['_getViewFromDiffObj'](_0x12b8d5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5db67f[_0x382771]=this['editor']['data']['processor']['toData'](_0x6934a9),this['editor']['data']['processor']['useFillerType']('default');}return _0x5db67f;}['getRevisionRootsAttributes'](_0x46286b){const _0x19650f={};for(const _0x285c0d in _0x46286b['diffData'])_0x46286b['diffData'][_0x285c0d]['attachChange']&&!_0x46286b['diffData'][_0x285c0d]['attachChange']['isAttached']||(_0x19650f[_0x285c0d]=_0x46286b['diffData'][_0x285c0d]['attributesAfter']||{});return _0x19650f;}['_getTypeCharForViewElement'](_0x5b9bb7){return this['_viewClassToTypeChar']['get'](_0x5b9bb7['constructor']);}['_getViewFromDiffObj'](_0x3fbc43,_0x260761){const _0x3d6c81=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fbc43)return new _0x589e56(_0x3d6c81,_0x3fbc43);{let _0xb38308,_0x3305a7;_0x3305a7='u'==_0x3fbc43['type']||'r'==_0x3fbc43['type']?[]:_0x3fbc43['children']['map'](_0x2c6c01=>this['_getViewFromDiffObj'](_0x2c6c01,_0x260761));const _0x4780ef=this['_typeCharToViewClass']['get'](_0x3fbc43['type'])||_0x3827c1,_0x3cb807=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xb38308=new _0x4780ef(_0x3d6c81,_0x3fbc43['name'],_0x3fbc43['attributes'],_0x3305a7),'u'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x2fbde2=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x119e40){const _0x139c54=_0x119e40['createElement']('div');return _0x139c54['innerHTML']=_0x2fbde2,_0x139c54['childNodes'][0x0];},_0x260761){const _0x4d6efc=new _0x118cac(_0x3d6c81);_0x4d6efc['_appendChild'](_0xb38308);const _0x5562a2=Array['from'](_0x3cb807['viewChildrenToDom'](_0x4d6efc,{'bind':!0x1})),_0x2afb72=_0x3cb807['domDocument']['createElement']('div');_0x2afb72['append'](..._0x5562a2),_0xb38308=Array['from'](_0x3cb807['domChildrenToView'](_0x2afb72))[0x0];}}else{if('r'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x4122db=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x44ce16){_0x44ce16['innerHTML']=_0x4122db;},_0x260761){const _0x2e7652=new _0x118cac(_0x3d6c81);_0x2e7652['_appendChild'](_0xb38308);const _0x393add=Array['from'](_0x3cb807['viewChildrenToDom'](_0x2e7652,{'bind':!0x1})),_0x18c271=_0x3cb807['domDocument']['createElement']('div');_0x18c271['append'](..._0x393add);const _0x529792=Array['from'](_0x3cb807['domChildrenToView'](_0x18c271));_0x529792['length']>0x1?_0xb38308['_appendChild'](_0x529792):_0xb38308=_0x529792[0x0];}}}if(_0x3fbc43['customProperties']){for(const [_0x3ee65b,_0x6692fe]of _0x3fbc43['customProperties'])_0xb38308['_setCustomProperty'](_0x3ee65b,_0x6692fe);}const _0x1fb870=void 0x0===_0x3fbc43['fillerOffset']?null:_0x3fbc43['fillerOffset'];return null!==_0x1fb870&&(_0xb38308['getFillerOffset']=()=>_0x1fb870),_0xb38308;}}['_makeModelFromViewString'](_0x29ea40){const _0x546a43=JSON['parse'](_0x29ea40),_0x1256b2=this['editor']['editing']['view']['document'],_0x1c964f=new _0x118cac(_0x1256b2,_0x546a43['map'](_0x490e56=>this['_getViewFromDiffObj'](_0x490e56,!0x0)));return this['editor']['data']['toModel'](_0x1c964f);}['_removeRevisionMarkers'](_0x2bc5ac){return(_0x2bc5ac=_0x2bc5ac['filter'](_0x13ac06=>!_0x13ac06['name']||'revision-start'!==_0x13ac06['name']&&'revision-end'!==_0x13ac06['name']))['forEach'](_0xb860ff=>{'string'!=typeof _0xb860ff&&(_0xb860ff['children']=this['_removeRevisionMarkers'](_0xb860ff['children']),_0xb860ff['attributes']=_0xb860ff['attributes']['filter'](_0x200778=>!_0x200778[0x0]['startsWith']('data-revision-')));}),_0x2bc5ac;}}function g(_0xd19fa1,_0x51c3fb,_0x57903f){const t=_0xd19fa1['t'];switch(_0x51c3fb){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'},_0x57903f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57903f);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 _0x149b28{['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[_0x43b4df,I,V,_0x18e594];}constructor(_0x54e999){super(_0x54e999),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 _0x13222a=_0x451426();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x13222a},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 _0x16acdc=this['repository']['getRevision'](0x0),_0xf0880d=_0x16acdc&&null===_0x16acdc['creator']?_0x16acdc:null;if(this['_continueCurrentRevision']=!!_0xf0880d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x460da4=this['_source']['getCurrentRevisionId'](),_0x570f5f=this['repository']['getRevision'](_0x460da4);if(_0x570f5f)this['_startingVersion']=_0x570f5f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2eefb8=this['_source']['history']['_operations']['find'](_0x2cd0a3=>!_0x2cd0a3['_isInit']),_0x158d59=_0x2eefb8?_0x2eefb8['baseVersion']:this['_source']['history']['version'];_0x16acdc?(_0x16acdc['toVersion']<_0x158d59&&_0x16acdc['_update']({'toVersion':_0x158d59}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['fromVersion']):(this['_startingVersion']=_0x16acdc['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x158d59,this['_continueCurrentRevision']=!0x1);}}else _0xf0880d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf0880d['toVersion'],this['editor']['model']['document']['history']['version']),_0xf0880d['fromVersion']===_0xf0880d['toVersion']?(0x0!==_0xf0880d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['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',_0x43e0cb=>!_0x43e0cb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c7b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cd912;for(const _0x311acb in _0x32c7b9){const _0x1a8a80=_0x311acb,_0x271f34=_0x32c7b9[_0x1a8a80];if('revisionHistoryLicenseKeyValid'==_0x271f34||'revisionHistoryLicenseKeyInvalid'==_0x271f34||'revisionHistoryLicenseKeyExpired'==_0x271f34||'revisionHistoryLicenseKeyDomainLimit'==_0x271f34||'revisionHistoryLicenseKeyNotAllowed'==_0x271f34||'revisionHistoryLicenseKeyEvaluationLimit'==_0x271f34||'revisionHistoryLicenseKeyTrialLimit'==_0x271f34||'revisionHistoryLicenseKeyUsageLimit'==_0x271f34){delete _0x32c7b9[_0x1a8a80],_0x5cd912=_0x271f34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5cd912&&_0x32c7b9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5cd912&&_0x32c7b9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5cd912&&_0x32c7b9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4bf71e=this['repository']['getRevision'](0x0),_0x4093d2=await this['getRevisionDocumentData'](_0x4bf71e),_0x324c95=await this['getRevisionRootsAttributes'](_0x4bf71e);this['_replaceEditorDataWithRevisionData'](_0x4093d2,_0x324c95);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x328ba0){this['_source']=_0x328ba0;}async['update'](){const _0x1f678e=await this['_source']['getLatestVersion']();if(_0x1f678e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21f281=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1f678e});_0x21f281['authors']=_0x21f281['authorsIds']['map'](_0x37477b=>this['editor']['plugins']['get']('Users')['getUser'](_0x37477b)),this['currentRevision']['_update'](_0x21f281);}}async['saveRevision'](_0x4a58b8={},_0x2bf369=null){const _0x14f008=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2bf369>this['currentRevision']['toVersion']&&(_0x2bf369=null),null===_0x2bf369&&(_0x2bf369=await this['_source']['getLatestVersion']());const _0x377dad=this['_getFromVersion'](_0x2bf369),_0x5a0060=this['buildRevisionData']({'from':_0x377dad,'to':_0x2bf369});if(this['currentRevision']['toVersion']<_0x2bf369){const _0x377ecd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2bf369,'to':_0x2bf369});_0x377ecd['authors']=[],_0x377ecd['authorsIds']=[],_0x377ecd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x377ecd,!0x0),delete _0x377ecd['authors'],_0x14f008['push'](_0x377ecd);}_0x4a58b8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a58b8['name']=_0x4a58b8['name']||null,_0x4a58b8['id']=_0x4a58b8['id']||_0x451426(),_0x4a58b8={..._0x4a58b8,..._0x5a0060};const _0x282264=this['addRevisionData'](_0x4a58b8);_0x14f008['push'](_0x4a58b8);const _0x509f59=this['repository']['getIndex'](_0x282264);if(0x0!==_0x509f59){const _0x264460=this['repository']['getRevision'](_0x509f59-0x1);if(_0x264460['fromVersion']!==_0x2bf369){const _0x3f1d0b=this['_revisionDataBuilder']['getData'](_0x2bf369,_0x264460['toVersion']),_0x1458a8={'id':_0x264460['id'],'diffData':_0x3f1d0b['diffData'],'authorsIds':_0x3f1d0b['authorsIds'],'authors':_0x3f1d0b['authorsIds']['map'](_0x586774=>this['editor']['plugins']['get']('Users')['getUser'](_0x586774)),'fromVersion':_0x2bf369};_0x264460===this['currentRevision']&&(_0x1458a8['createdAt']=new Date(_0x4a58b8['createdAt']['getTime']()+0xa)),_0x264460['_update'](_0x1458a8,!0x0),delete _0x1458a8['authors'],_0x14f008['push'](_0x1458a8);}}if(this['adapter']){for(const _0x35c9f8 of _0x14f008)this['_bufferUpdate'](_0x35c9f8['id'],_0x35c9f8,!0x0);this['sendBufferedUpdates']();}return _0x282264;}['addRevisionData'](_0x540bbb){const _0x4de68f=this['repository']['createRevision'](_0x540bbb);return this['adapter']&&_0x4de68f['on']('_update',(_0xa094bf,_0x1f299d,_0x54c272)=>{_0x54c272||(this['_bufferUpdate'](_0x1f299d['id'],_0x1f299d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4de68f,this['_findInsertionIndex'](_0x4de68f)),_0x4de68f;}async['getRevisionDocumentData'](_0x2f22a4){return await this['_utils']['loadRevisionData'](_0x2f22a4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f22a4);}async['getRevisionRootsAttributes'](_0x52ee05){return await this['_utils']['loadRevisionData'](_0x52ee05,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x52ee05);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1183d7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x7ed4b1=0x0;_0x7ed4b1<_0x1183d7['length'];_0x7ed4b1++){const _0xb8cdda=_0x1183d7[_0x7ed4b1];let _0x2a3710=!0x1;for(const _0x238d8c of Object['keys'](_0xb8cdda))void 0x0===_0xb8cdda[_0x238d8c]?delete _0xb8cdda[_0x238d8c]:'id'!==_0x238d8c&&(_0x2a3710=!0x0);_0x2a3710||(_0x1183d7[_0x7ed4b1]=null);}if(_0x1183d7=_0x1183d7['filter'](_0x4469cc=>null!==_0x4469cc),!_0x1183d7['length'])return;for(let _0x54a08c=0x0;_0x54a08c<_0x1183d7['length'];_0x54a08c++){const _0x32d175=_0x1183d7[_0x54a08c];void 0x0!==_0x32d175['fromVersion']&&void 0x0===_0x32d175['toVersion']&&(_0x32d175['toVersion']=this['repository']['getRevision'](_0x32d175['id'])['toVersion']),void 0x0!==_0x32d175['toVersion']&&void 0x0===_0x32d175['fromVersion']&&(_0x32d175['fromVersion']=this['repository']['getRevision'](_0x32d175['id'])['fromVersion']);}const _0x3215ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1183d7,_0x3215ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3e8bce=>{if(_0x3e8bce){for(const _0x4dbcd5 of _0x3e8bce)this['setRevisionData']({'id':_0x4dbcd5['id'],'createdAt':_0x4dbcd5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2526bd=null,from:_0x2d2817=null,to:_0x318d4c=null}){_0x2d2817=null!==_0x2d2817?_0x2d2817:_0x2526bd['fromVersion'],_0x318d4c=null!==_0x318d4c?_0x318d4c:_0x2526bd['toVersion'];const _0x43fc84=this['_revisionDataBuilder']['getData'](_0x2d2817,_0x318d4c),_0x1fc533={'diffData':_0x43fc84['diffData'],'authorsIds':_0x43fc84['authorsIds'],'fromVersion':_0x2d2817,'toVersion':_0x318d4c};if(!_0x2526bd||_0x318d4c!==_0x2526bd['toVersion']){const _0x13ec8d=_0x318d4c-0x1,_0x562e75=this['_source']['history']['getOperation'](_0x13ec8d);_0x1fc533['createdAt']=_0x562e75&&_0x562e75['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2d2817===this['_loadedStateData']['fromVersion']){for(const _0x244c7c of this['_loadedStateData']['authors'])_0x1fc533['authorsIds']['includes'](_0x244c7c['id'])||_0x1fc533['authorsIds']['push'](_0x244c7c['id']);}return _0x1fc533;}['_bufferUpdate'](_0x58f6dc,_0x26524b,_0x3e8605){if(this['_bufferedUpdates']['has'](_0x58f6dc)){const _0x43bf64=this['_bufferedUpdates']['get'](_0x58f6dc);_0x26524b=_0x3e8605?{..._0x43bf64,..._0x26524b}:{..._0x26524b,..._0x43bf64};}this['_bufferedUpdates']['set'](_0x58f6dc,_0x26524b);}['setRevisionData'](_0x161333){const _0x461474=this['repository']['getRevision'](_0x161333['id']);if(_0x161333['createdAt']&&(_0x161333['createdAt']=new Date(_0x161333['createdAt'])),_0x161333['authorsIds']){const _0x4d68e8=this['editor']['plugins']['get']('Users');_0x161333['authors']=_0x161333['authorsIds']['map'](_0x5366ed=>_0x4d68e8['getUser'](_0x5366ed));}_0x461474['_update'](_0x161333,!0x0);}['_createInitialRevision'](_0x572449){const _0x395e09=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x395e09)this['_initialRevisionId']=_0x395e09['id'];else{const _0x2b4b45=!this['editor']['model']['document']['roots']['find'](_0x5a8849=>this['editor']['model']['hasContent'](_0x5a8849)),_0x6bee8=this['editor']['plugins']['get']('Users')['me']['id'],_0x40643c=g(this['editor']['locale'],_0x2b4b45?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x572449,'to':_0x572449,'id':this['_initialRevisionId'],'name':_0x40643c,'creatorId':_0x6bee8});}}['_createCurrentRevision'](_0x4a9136){const _0x1baef0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1baef0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a9136,'to':_0x4a9136,'id':_0x1baef0,'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'](_0x561c82,_0x3bd6d8){let _0x11781b=this['editor']['config']['get']('initialData'),_0x3b1630=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x11781b){_0x11781b={};for(const _0x32fc67 of this['editor']['model']['document']['getRootNames']())_0x11781b[_0x32fc67]='';}if('string'==typeof _0x11781b&&(_0x11781b={'main':_0x11781b}),void 0x0===_0x3b1630){_0x3b1630={};for(const _0x17d02c of this['editor']['model']['document']['getRootNames']())_0x3b1630[_0x17d02c]={};}let _0xec287b=!0x1;const _0x5e03de=Object['keys'](_0x11781b),_0x1b5986=Object['keys'](_0x561c82);for(const _0xf0c2be of _0x5e03de){if(_0x11781b[_0xf0c2be]!==_0x561c82[_0xf0c2be]&&''!==_0x11781b[_0xf0c2be]['trim']()){_0xec287b=!0x0;break;}if(!_0x4ffb34(_0x3b1630[_0xf0c2be],_0x3bd6d8[_0xf0c2be])&&Object['keys'](_0x3b1630[_0xf0c2be])['length']>0x0){_0xec287b=!0x0;break;}}_0xec287b||(_0xec287b=_0x1b5986['some'](_0x52a48e=>!this['editor']['model']['document']['getRoot'](_0x52a48e))),_0xec287b&&_0x572bf6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11781b,'editorRootsAttributes':_0x3b1630,'revisionData':_0x561c82,'revisionRootsAttributes':_0x3bd6d8}),this['editor']['config']['set']('initialData',_0x561c82),this['editor']['config']['set']('rootsAttributes',_0x3bd6d8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x45698a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x45698a['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1d4c71){const _0x5467f4=this['repository']['getRevisions']();_0x5467f4['reverse']();let _0x20c40a=0x0;for(;_0x20c40a<_0x5467f4['length'];){const _0x40aff5=_0x5467f4[_0x20c40a];if(_0x40aff5===this['currentRevision']){_0x20c40a++;continue;}if(_0x40aff5['id']===this['_initialRevisionId'])break;const _0x24dbdf=_0x1d4c71['toVersion']-_0x40aff5['toVersion']||_0x1d4c71['fromVersion']-_0x40aff5['fromVersion'];if(_0x24dbdf>0x0)break;if(_0x24dbdf<0x0)_0x20c40a++;else{if(!_0x1d4c71['creator']&&_0x40aff5['creator'])break;if(_0x40aff5['creator']||!_0x1d4c71['creator']){if(_0x1d4c71['createdAt']>_0x40aff5['createdAt'])break;_0x20c40a++;}else _0x20c40a++;}}return _0x20c40a;}['_getFromVersion'](_0x236540){const _0x25b101=this['repository']['getRevisions']();_0x25b101['reverse'](),_0x25b101['shift']();const _0x56e59c=_0x25b101['find'](_0x1ed966=>_0x1ed966['toVersion']<=_0x236540)['toVersion'];return _0x56e59c<this['_startingVersion']?this['_startingVersion']:_0x56e59c;}['_makeRevision']({name:_0x39367d,from:_0x1be0fd,to:_0x580b0f,creatorId:_0x177918,id:_0x4fc596}){const _0x418815=this['buildRevisionData']({'from':_0x1be0fd,'to':_0x580b0f});_0x418815['name']=_0x39367d,_0x418815['creatorId']=_0x177918,_0x418815['id']=_0x4fc596;const _0x2261de=this['addRevisionData'](_0x418815);return this['adapter']&&this['_bufferUpdate'](_0x418815['id'],_0x418815,!0x0),_0x2261de;}['_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(_0x41a494){this['editor']=_0x41a494,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'](_0x4ee7a2){this['source']=_0x4ee7a2;const _0x421bd3=new Map(),_0x450256=new Map(),_0x1fc223=this['editor']['model']['document']['roots']['map'](_0x5e3c64=>_0x5e3c64['rootName']);for(const _0x41ad47 of _0x1fc223){const _0x597e27=this['editor']['model']['document']['getRoot'](_0x41ad47),_0x3250ce=N(_0x597e27);_0x421bd3['set'](_0x41ad47,_0x3250ce),_0x450256['set'](_0x41ad47,Object['fromEntries'](_0x597e27['getAttributes']()));}const _0xaa2a68=Array['from'](this['editor']['model']['markers'])['map'](_0x103c5f=>[_0x103c5f['name'],_0x103c5f['getRange']()]),_0xd36af7=this['source']['version'];this['_saveMetaData'](_0xd36af7,_0x421bd3,_0xaa2a68,_0x450256),this['_startingRevisionId']=this['_revisionId'];const _0x23538a=new Map(),_0x5b00f5=new Map();for(const _0xa0b432 of _0x1fc223){const _0x5d9d2a=P(_0xa0b432);_0x23538a['set'](_0xa0b432,_0x5d9d2a),_0x5b00f5['set'](_0xa0b432,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x23538a,[],_0x5b00f5);}['getData'](_0xc5184b,_0x3173){if(this['_lastFrom']===_0xc5184b&&this['_lastTo']<=_0x3173)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3173,!0x0);else{if(!this['_savedMetaData']['has'](_0xc5184b)){const _0x54e40c=this['_getPreviousFrom'](_0xc5184b);this['_calculateMetaData'](_0x54e40c,_0xc5184b,!0x1);}this['_calculateMetaData'](_0xc5184b,_0x3173,!0x0);}return this['_lastFrom']=_0xc5184b,this['_lastTo']=_0x3173,this['_getState']();}['loadState'](_0x17af4a){const _0x1d18a0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x17af4a['fromVersion'],this['_lastTo']=_0x17af4a['toVersion'];for(const _0x514625 in _0x17af4a['diffData']){const _0x523468=_0x17af4a['diffData'][_0x514625]['attachChange'],_0x44983b=_0x36f289(_0x17af4a['diffData'][_0x514625]['attributesBefore'])||{},_0x47ebc7=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x514625]['deletions']);_0x47ebc7['rootName']=_0x514625,_0x47ebc7['_isAttached']=!_0x523468||!_0x523468['isAttached'],_0x47ebc7['isAttached']=()=>_0x47ebc7['_isAttached'],this['_baseRoots']['set'](_0x514625,_0x47ebc7),this['_baseRootsAttributes']['set'](_0x514625,_0x44983b),_0x523468&&this['_touchedRoots']['set'](_0x514625,_0x523468);const _0x141fbd=this['_makeIdsRoot'](_0x47ebc7);this['_baseIdsRoots']['set'](_0x514625,_0x141fbd);for(const [_0x14541f,_0x3d0d9c]of _0x47ebc7['markers']){if(!_0x14541f['startsWith']('revision:'))continue;const _0xf46957=_0x14541f['split'](':')[0x2];for(const _0x4f81bd of _0x3d0d9c['getWalker']({'singleCharacters':!0x0})){const _0x36734e=this['_getVidAttributeName'](_0x4f81bd),_0xf92552='elementEnd'==_0x4f81bd['type']?_0x4f81bd['previousPosition']['path']['slice'](0x0,-0x1):_0x4f81bd['previousPosition']['path'],_0x69c053=_0x141fbd['getNodeByPath'](_0xf92552)['getAttribute'](_0x36734e);this['_touched']['set'](_0x69c053,{'userId':_0xf46957});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19d1a8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x202001=>!this['_touched']['has'](_0x202001));let _0x5877dd=0x0;const _0x5021e2=new Map();for(const _0x47494c in _0x17af4a['diffData']){const _0x472d6f=_0x17af4a['diffData'][_0x47494c]['attachChange'],_0x522ef9=_0x36f289(_0x17af4a['diffData'][_0x47494c]['attributesAfter'])||{},_0x2a1758=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x47494c]['insertions']);_0x2a1758['rootName']=_0x47494c,_0x2a1758['_isAttached']=!_0x472d6f||_0x472d6f['isAttached'],_0x2a1758['isAttached']=()=>_0x2a1758['_isAttached'],this['_diffRoots']['set'](_0x47494c,_0x2a1758),this['_diffRootsAttributes']['set'](_0x47494c,_0x522ef9);const _0x19b57a=this['_makeIdsRoot'](_0x2a1758,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x47494c,_0x19b57a),_0x5021e2['set'](_0x47494c,_0x2a1758['isAttached']()?_0x522ef9:{});for(const [_0xf2c72f,_0xa5e36d]of _0x2a1758['markers']){if(!_0xf2c72f['startsWith']('revision:'))continue;const _0x1ef01=_0xf2c72f['split'](':')[0x2];for(const _0x13ae1e of _0xa5e36d['getWalker']({'singleCharacters':!0x0})){const _0xc59763=this['_getVidAttributeName'](_0x13ae1e),_0x2dafdf=this['_revisionId']++,_0x13dcd5='elementEnd'==_0x13ae1e['type']?_0x13ae1e['previousPosition']['path']['slice'](0x0,-0x1):_0x13ae1e['previousPosition']['path'];_0x19b57a['getNodeByPath'](_0x13dcd5)['_setAttribute'](_0xc59763,_0x2dafdf),this['_touched']['set'](_0x2dafdf,{'userId':_0x1ef01});}}for(const _0x26cdfa of this['editor']['model']['createRangeIn'](_0x2a1758)['getWalker']({'singleCharacters':!0x0})){const _0x3dbecd=this['_getVidAttributeName'](_0x26cdfa),_0x4a1e29='elementEnd'==_0x26cdfa['type']?_0x26cdfa['previousPosition']['path']['slice'](0x0,-0x1):_0x26cdfa['previousPosition']['path'],_0x5b8902=_0x19b57a['getNodeByPath'](_0x4a1e29);_0x5b8902['getAttribute'](_0x3dbecd)>0x0||_0x5b8902['_setAttribute'](_0x3dbecd,_0x19d1a8[_0x5877dd++]);}for(const [_0x9059b8,_0x17f4e4]of _0x2a1758['markers'])_0x9059b8['startsWith']('revision:')||this['_markers']['set'](_0x9059b8,_0x17f4e4);}const _0x188c17=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x188c17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188c17,0x1));const _0x249b1f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x249b1f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x249b1f,0x1));const _0xc924f2=Array['from'](this['_diffRoots'])['map'](([_0x5294f3,_0x38f96a])=>[_0x5294f3,N(_0x38f96a)]);this['_saveMetaData'](this['_lastTo'],_0xc924f2,this['_markers'],_0x5021e2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35419d,_0x26e088,_0x59e77f,_0x454ddc){const _0x55efe2=new Map(_0x26e088),_0x268a09=new Map(_0x36f289(_0x454ddc)),_0x1542d7=new Map();for(const [_0x324a82,_0x2ae49f]of _0x59e77f)_0x1542d7['set'](_0x324a82,{'start':_0x2ae49f['start']['clone'](),'end':_0x2ae49f['end']['clone'](),'rootName':_0x2ae49f['root']['rootName']});this['_savedMetaData']['set'](_0x35419d,{'roots':_0x55efe2,'markers':_0x1542d7,'rootsAttributes':_0x268a09});}['_removeMetaData'](_0x394398){this['_savedMetaData']['delete'](_0x394398);}['_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'](_0x1edfbe,_0x3d580b=null){let _0x2fe6d0=null;_0x1edfbe['is']('documentFragment')||(_0x2fe6d0=new ut(_0x1edfbe['name'],{'vid_start':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));const _0xe2ed05=[];for(const _0x48fac0 of _0x1edfbe['getChildren']())if(_0x48fac0['is']('element')){_0xe2ed05['push'](this['_makeIdsRoot'](_0x48fac0,_0x3d580b));const _0x7ed459=_0xe2ed05[_0xe2ed05['length']-0x1];null!==_0x3d580b&&(_0x3d580b=_0x7ed459['is']('element','$text')?_0x7ed459['getAttribute']('vid')+0x1:_0x7ed459['getAttribute']('vid_end')+0x1);}else{for(let _0x12c997=0x0;_0x12c997<_0x48fac0['offsetSize'];_0x12c997++)_0xe2ed05['push'](new ut('$text',{'vid':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));}if(_0x1edfbe['is']('documentFragment')){const _0x5595ee=P(_0x1edfbe['rootName']);return _0x5595ee['_insertChild'](0x0,_0xe2ed05),_0x5595ee;}return _0x2fe6d0['_setAttribute']('vid_end',null===_0x3d580b?this['_revisionId']++:_0x3d580b++),_0x2fe6d0['_insertChild'](0x0,_0xe2ed05),_0x2fe6d0;}['_calculateMetaData'](_0x293a32,_0x124794,_0x1d99e5){this['_reset']();const {roots:_0xaa6d33,markers:_0x407c58,rootsAttributes:_0x668982}=this['_savedMetaData']['get'](_0x293a32);this['_baseRoots']=new Map(_0xaa6d33),this['_baseRootsAttributes']=new Map(_0x36f289(_0x668982));for(const [_0x578190,_0x3279a0]of this['_baseRoots'])if('$graveyard'!==_0x578190&&(this['_diffRoots']['set'](_0x578190,N(_0x3279a0)),this['_diffRootsAttributes']=new Map(_0x36f289(_0x668982)),_0x1d99e5)){const _0x36f251=this['_revisionId'];this['_idsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0)),this['_baseIdsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0,_0x36f251));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1d99e5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4a479b,_0x51e6c3]of _0x407c58){const _0x3ee25c=this['_baseRoots']['get'](_0x51e6c3['rootName']),_0x410cb6=this['_diffRoots']['get'](_0x51e6c3['rootName']),_0x3e9434=new lt(this['_fixPosition'](_0x51e6c3['start'],_0x3ee25c),this['_fixPosition'](_0x51e6c3['end'],_0x3ee25c)),_0x257492=this['_fixRange'](_0x3e9434,_0x410cb6);_0x3ee25c['markers']['set'](_0x4a479b,_0x3e9434),this['_markers']['set'](_0x4a479b,_0x257492);}this['_applyOperations'](_0x293a32,_0x124794,_0x1d99e5);}['_applyOperations'](_0x5189cc,_0x3ad93f,_0x2c482a){for(const _0x40980d of this['source']['getOperations'](_0x5189cc,_0x3ad93f))this['_handleOperation'](_0x40980d,_0x2c482a);for(const _0x19b8d4 of this['_diffRoots']['values']())_0x19b8d4['markers']['clear']();for(const [_0x25fe9a,_0x2a8524]of this['_markers']){this['_diffRoots']['get'](_0x2a8524['root']['rootName'])['markers']['set'](_0x25fe9a,_0x2a8524['clone']());}const _0x905fb=new Map(),_0x1e9a2c=new Map();for(const [_0x1b24b9,_0x5a8c53]of this['_diffRoots'])_0x905fb['set'](_0x1b24b9,N(_0x5a8c53)),_0x1e9a2c['set'](_0x1b24b9,this['_diffRootsAttributes']['get'](_0x1b24b9));this['_saveMetaData'](_0x3ad93f,_0x905fb,this['_markers'],_0x1e9a2c);}['_getPreviousFrom'](_0x12f73d){const _0x434711=Array['from'](this['_savedMetaData']['keys']());_0x434711['sort']((_0x1702b4,_0x22e4c0)=>_0x1702b4-_0x22e4c0),_0x434711['reverse']();for(const _0x270d1f of _0x434711)if(_0x270d1f<_0x12f73d)return _0x270d1f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18d30a,_0x44ab4f){const _0x85bc62=Array['from'](_0x44ab4f['markers'])['map'](([_0x356ed8,_0x423499])=>[_0x356ed8,this['_fixRange'](_0x423499,_0x18d30a)]);_0x18d30a['markers']=new Map(_0x85bc62);}['_transformMarkers'](_0x5c1ce1){for(const _0x23117c of this['_markers']['values']()){const _0x419e5b=_0x23117c['getTransformedByOperation'](_0x5c1ce1),_0x953940=lt['_createFromRanges'](_0x419e5b);_0x23117c['start']=_0x953940['start'],_0x23117c['end']=_0x953940['end'];}}['_handleOperation'](_0x43fcfa,_0x352f4a){if('addRoot'!=_0x43fcfa['type']&&'detachRoot'!=_0x43fcfa['type']){if('insert'==_0x43fcfa['type']){const _0xa06b31=_0x43fcfa['position']['root']['rootName'];this['_diffRoots']['has'](_0xa06b31)||(this['_diffRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)),this['_diffRootsAttributes']['set'](_0xa06b31,{}),_0x352f4a&&this['_idsRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)));}else{if('addRootAttribute'==_0x43fcfa['type']||'removeRootAttribute'==_0x43fcfa['type']||'changeRootAttribute'==_0x43fcfa['type'])return void this['_handleRootAttributeOperation'](_0x43fcfa);'marker'==_0x43fcfa['type']&&this['_handleMarkerOperation'](_0x43fcfa);}if('marker'!==_0x43fcfa['type']){const _0x1c3211=this['_cloneOperation'](_0x43fcfa,this['_diffRoots']);_0x1c3211['_execute'](),this['_transformMarkers'](_0x1c3211);}if(_0x352f4a)switch(_0x43fcfa['type']){case'insert':this['_handleInsertOperation'](_0x43fcfa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x43fcfa);break;case'merge':this['_handleMergeOperation'](_0x43fcfa);break;case'split':this['_handleSplitOperation'](_0x43fcfa);}}else this['_handleRootOperation'](_0x43fcfa,_0x352f4a);}['_cloneOperation'](_0x3daeb4,_0x50d8ce){const _0xcdbcaf=_0x3daeb4['clone']();return _0xcdbcaf['_authorId']=_0x3daeb4['_authorId'],this['_fixOperation'](_0xcdbcaf,_0x50d8ce),_0xcdbcaf;}['_getBaseVids'](_0x50ff87){return _0x50ff87['map'](_0x550a7a=>{const _0xb91be0=this['_getVidAttributeName'](_0x550a7a);return Number(_0x550a7a['item']['getAttribute'](_0xb91be0));});}['_generateTape'](_0x37ec04,_0x637c4e){if(_0x37ec04['is']('element','$text'))_0x637c4e['push']({'item':_0x37ec04,'type':'text'});else{_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementStart'});for(const _0x5da0ee of _0x37ec04['getChildren']())this['_generateTape'](_0x5da0ee,_0x637c4e);_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementEnd'});}return _0x637c4e;}['_getState'](){const _0x5f49f3=new Map(this['_touched']),_0x6326b5=new Map(_0x5f49f3),_0x29d491=new Map(),_0x31d825={'insertions':{},'deletions':{}},_0x2c8887={'insertions':{},'deletions':{}},_0x1428ae=new Map(),_0x5ce9b7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ce9b7['delete']('$graveyard');for(const _0x46e723 of _0x5ce9b7){const _0x302b56=this['_diffRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),_0x450054=this['_baseRoots']['get'](_0x46e723)||P(_0x46e723,!0x1);_0x302b56['isAttached']()||_0x450054['isAttached']()?(_0x31d825['insertions'][_0x46e723]=N(_0x302b56),_0x31d825['deletions'][_0x46e723]=N(_0x450054),this['_copyMarkers'](_0x31d825['deletions'][_0x46e723],_0x450054),this['_copyMarkers'](_0x31d825['insertions'][_0x46e723],_0x302b56),_0x2c8887['insertions'][_0x46e723]=this['_generateTape'](this['_idsRoots']['get'](_0x46e723),[]),_0x2c8887['deletions'][_0x46e723]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),[])):_0x5ce9b7['delete'](_0x46e723);}for(const _0x51b728 of _0x5ce9b7){const _0xc70d0f=_0x2c8887['insertions'][_0x51b728];for(const _0x9e2301 of _0xc70d0f){const _0x5e27b3=this['_getVidAttributeName'](_0x9e2301),_0x4b5a3b=_0x9e2301['item']['getAttribute'](_0x5e27b3);_0x6326b5['delete'](_0x4b5a3b),_0x4b5a3b>=this['_startingRevisionId']&&_0x29d491['set'](_0x4b5a3b,_0x5f49f3['get'](_0x4b5a3b));}}for(const _0x4a0f19 of _0x5ce9b7){const _0x3f1332=_0x2c8887['insertions'][_0x4a0f19],_0xc71957=this['_getBaseVids'](_0x2c8887['deletions'][_0x4a0f19]);let _0x52f8e3=0x0;for(const _0x3a62b2 of _0x3f1332){const _0x479ac3=this['_getVidAttributeName'](_0x3a62b2),_0x51353b=_0x3a62b2['item']['getAttribute'](_0x479ac3);if(!_0x29d491['has'](_0x51353b)&&!_0x1428ae['has'](_0x51353b)){if(_0x6326b5['has'](_0x51353b))_0x52f8e3++;else{if(_0x51353b!=_0xc71957[_0x52f8e3]){const _0x55d8f2=_0x5f49f3['get'](_0x51353b)||_0x5f49f3['get'](_0xc71957[_0x52f8e3]);for(;_0x51353b!=_0xc71957[_0x52f8e3];)_0x6326b5['has'](_0xc71957[_0x52f8e3])||(_0x1428ae['set'](_0xc71957[_0x52f8e3],_0x55d8f2),_0x5f49f3['set'](_0xc71957[_0x52f8e3],_0x55d8f2)),_0x52f8e3++;}_0x52f8e3++;}}}}for(const _0x9633b3 of _0x5ce9b7){const _0x11f0af=_0x2c8887['insertions'][_0x9633b3];for(const _0x86215e of _0x11f0af){const _0x41e8a2=this['_getVidAttributeName'](_0x86215e),_0x1f8438=_0x86215e['item']['getAttribute'](_0x41e8a2);if(_0x1428ae['has'](_0x1f8438)){const _0x519d2d=_0x1428ae['get'](_0x1f8438);_0x6326b5['has'](_0x1f8438)||_0x6326b5['set'](_0x1f8438,{..._0x519d2d}),_0x29d491['set'](_0x1f8438,{..._0x519d2d});}}}for(const _0x406473 of _0x6326b5['keys']())_0x406473>=this['_startingRevisionId']&&_0x6326b5['delete'](_0x406473);const _0x386dca=new Map();for(const _0x17fda8 of _0x5ce9b7){let _0x3b82b9=_0x2c8887['insertions'][_0x17fda8];for(const _0x545a17 of _0x3b82b9)if(_0x545a17['item']['is']('element','tableCell')){const _0x5a252a=this['_getVidAttributeName'](_0x545a17),_0x1904cd=_0x545a17['item']['getAttribute'](_0x5a252a);if(_0x29d491['has'](_0x1904cd)){const _0x11a1af=_0x545a17['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b6dc1=_0x386dca['get'](_0x11a1af)||new Set();_0x5b6dc1['add'](_0x29d491['get'](_0x1904cd)['userId']),_0x386dca['set'](_0x11a1af,_0x5b6dc1);}}_0x3b82b9=_0x2c8887['deletions'][_0x17fda8];for(const _0x59f51b of _0x3b82b9)if(_0x59f51b['item']['is']('element','tableCell')){const _0x402f43=this['_getVidAttributeName'](_0x59f51b),_0x5c00f8=_0x59f51b['item']['getAttribute'](_0x402f43);if(_0x6326b5['has'](_0x5c00f8)){const _0x2955b0=_0x59f51b['item']['parent']['parent']['getAttribute']('vid_start'),_0x59326e=_0x386dca['get'](_0x2955b0)||new Set();_0x59326e['add'](_0x6326b5['get'](_0x5c00f8)['userId']),_0x386dca['set'](_0x2955b0,_0x59326e);}}for(const _0x218855 of _0x386dca['keys']())(_0x29d491['has'](_0x218855)||_0x6326b5['has'](_0x218855))&&_0x386dca['delete'](_0x218855);}for(const _0x42b2b2 of _0x5ce9b7){const _0x425c25=_0x2c8887['insertions'][_0x42b2b2];let _0x3f1039=null,_0x3c4b72=null;for(const _0x3801df of _0x425c25){const _0x203601=this['_getVidAttributeName'](_0x3801df),_0x71b32f=_0x3801df['item']['getAttribute'](_0x203601),_0x15f38c=_0x386dca['get'](_0x71b32f);_0x15f38c&&'elementStart'==_0x3801df['type']&&(_0x3f1039=Array['from'](_0x15f38c)[0x0],_0x3c4b72=_0x3801df['item']['getAttribute']('vid_end')),_0x3f1039&&(_0x6326b5['set'](_0x71b32f,{'userId':_0x3f1039}),_0x29d491['set'](_0x71b32f,{'userId':_0x3f1039})),_0x71b32f==_0x3c4b72&&(_0x3f1039=null,_0x3c4b72=null);}}const _0x17ff1e={},_0x3b6054=new Set();for(const _0x5c269c of _0x5ce9b7){const _0x232cfa=_0x31d825['deletions'][_0x5c269c],_0x273365=_0x31d825['insertions'][_0x5c269c];for(const {userId:_0x5b5bb0}of this['_touchedMarkers']['values']())null!==_0x5b5bb0&&_0x3b6054['add'](_0x5b5bb0);for(const {userId:_0x165e5f}of this['_touchedRoots']['values']())null!==_0x165e5f&&_0x3b6054['add'](_0x165e5f);this['_markChanges'](_0x273365,_0x2c8887['insertions'][_0x5c269c],_0x29d491,'insertion',_0x3b6054),this['_markChanges'](_0x232cfa,_0x2c8887['deletions'][_0x5c269c],_0x6326b5,'deletion',_0x3b6054),_0x17ff1e[_0x5c269c]={'insertions':this['_prepareViewToSave'](_0x273365),'deletions':this['_prepareViewToSave'](_0x232cfa),'attachChange':this['_touchedRoots']['get'](_0x5c269c)||null,'attributesBefore':_0x36f289(this['_baseRootsAttributes']['get'](_0x5c269c))||{},'attributesAfter':_0x36f289(this['_diffRootsAttributes']['get'](_0x5c269c))};}return{'diffData':_0x17ff1e,'authorsIds':Array['from'](_0x3b6054)};}['_processRootBeforeSave'](_0x41a7f1){for(const [,_0x19bbe0]of _0x41a7f1['markers']){const _0x400877=_0x19bbe0['start']['getAncestors']()['filter'](_0x7264c0=>'tableCell'==_0x7264c0['name']);for(const _0x26e858 of _0x400877)0x1==_0x26e858['childCount']&&_0x26e858['getChild'](0x0)['is']('element','paragraph')&&_0x26e858['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1e1ff6){this['_processRootBeforeSave'](_0x1e1ff6);const _0x4d0099=this['editor']['data']['toView'](_0x1e1ff6,{}),_0x3a2686=Array['from'](_0x4d0099['getChildren']())['map'](_0x310bb6=>this['_getViewJson'](_0x310bb6));return JSON['stringify'](_0x3a2686);}['_getViewJson'](_0x5d9103){if(_0x5d9103['is']('$text'))return _0x5d9103['data'];{const _0x3df6e4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xcd1216=_0x5d9103,_0x4c03ad=this['editor']['data']['htmlProcessor']['domConverter'],_0x278afa={'type':_0x3df6e4['_getTypeCharForViewElement'](_0xcd1216),'name':_0xcd1216['name'],'attributes':Array['from'](_0xcd1216['getAttributes']()),'children':Array['from'](_0xcd1216['getChildren']())['map'](_0x3fc44a=>this['_getViewJson'](_0x3fc44a))};if(_0x5d9103['is']('uiElement')&&'$comment'!=_0x5d9103['name']){const _0x2d469c=_0x5d9103['render'](_0x4c03ad['domDocument'],_0x4c03ad);_0x278afa['children']['push'](_0x2d469c['outerHTML']);}else{if(_0x5d9103['is']('rawElement')){const _0x4753b9=_0x4c03ad['domDocument']['createElement'](_0xcd1216['name']);_0x5d9103['render'](_0x4753b9,_0x4c03ad),_0x278afa['children']['push'](_0x4753b9['innerHTML']);}}const _0x4ae966=Array['from'](_0xcd1216['getCustomProperties']());_0x4ae966['length']>0x0&&(_0x278afa['customProperties']=_0x4ae966);const _0x5ec59b=_0xcd1216['getFillerOffset']();return null!==_0x5ec59b&&(_0x278afa['fillerOffset']=_0x5ec59b),_0x278afa;}}['_markChanges'](_0x3f4a16,_0x58a16b,_0x1e1b2c,_0x24b61e,_0x114d07){let _0x182ec3=null,_0x1f137b=null,_0x1e189b=0x0;const _0x19f232=this['editor']['model'];for(let _0xde32d2=0x0;_0xde32d2<_0x58a16b['length'];_0xde32d2++){const _0x3d5b88=this['_getVidAttributeName'](_0x58a16b[_0xde32d2]),_0x33b786=_0x58a16b[_0xde32d2]['item']['getAttribute'](_0x3d5b88),_0x364f27=_0x1e1b2c['get'](_0x33b786),_0x38fec3=_0xde32d2==_0x58a16b['length']-0x1;(!_0x182ec3&&_0x364f27&&(_0x182ec3=_0x364f27,_0x1f137b=_0x58a16b[_0xde32d2]),_0x182ec3&&(!_0x364f27||_0x364f27['userId']!=_0x182ec3['userId']))&&(_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),F(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232)),_0x182ec3=_0x364f27||null,_0x1f137b=_0x364f27?_0x58a16b[_0xde32d2]:null),_0x182ec3&&_0x38fec3&&_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),B(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232));}function _0x5b7aca(_0x3f45c6,_0x41f18d,_0xfe9161){const _0x21516d=_0x182ec3['userId'],_0x559f2d='revision:'+_0x24b61e+':'+_0x21516d+':'+_0x1e189b++,_0x5b0541=_0x19f232['createRange'](_0x41f18d,_0xfe9161);_0x3f4a16['markers']['set'](_0x559f2d,_0x5b0541),null!==_0x21516d&&_0x114d07['add'](_0x21516d);}}['_getVidAttributeName'](_0x55008f){switch(_0x55008f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xf84edd,_0x5d4e60){_0xf84edd['baseVersion']=null;for(const _0x4439ae in _0xf84edd){const _0xd8d9be=_0xf84edd[_0x4439ae];if(_0xd8d9be instanceof ft){const _0x299d34=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixPosition'](_0xd8d9be,_0x299d34);}if(_0xd8d9be instanceof lt){const _0x3d5321=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixRange'](_0xd8d9be,_0x3d5321);}'root'===_0x4439ae&&(_0xf84edd['root']=_0x5d4e60['get'](_0xf84edd['root']['rootName']));}}['_fixRange'](_0x3d8714,_0x5c6d3a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d8714['start'],_0x5c6d3a),this['_fixPosition'](_0x3d8714['end'],_0x5c6d3a));}['_fixPosition'](_0x5cb701,_0x525976){return this['editor']['model']['createPositionFromPath'](_0x525976,_0x5cb701['path'],_0x5cb701['stickiness']);}['_handleInsertOperation'](_0x262b45){const _0x5307a9=this['_idsRoots']['get'](_0x262b45['position']['root']['rootName']),_0x3b0610=this['_fixPosition'](_0x262b45['position'],_0x5307a9),_0x27e9a2=null===_0x262b45['_authorId']?null:_0x262b45['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x68cd7f=_0x3b0610['parent'],_0x4161ea=this['_revisionId'],_0x2906b4=[];for(const _0xf24ed1 of _0x262b45['nodes'])if(_0xf24ed1['is']('element'))_0x2906b4['push'](this['_makeIdsRoot'](_0xf24ed1));else{for(let _0x438acd=0x0;_0x438acd<_0xf24ed1['offsetSize'];_0x438acd++)_0x2906b4['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4e139a=this['_revisionId'];for(let _0x450f8e=_0x4161ea;_0x450f8e<_0x4e139a;_0x450f8e++)this['_touched']['set'](_0x450f8e,{'userId':_0x27e9a2});_0x68cd7f['_insertChild'](_0x3b0610['offset'],_0x2906b4);}['_handleMoveOperation'](_0x3bd06d){(_0x3bd06d=this['_cloneOperation'](_0x3bd06d,this['_idsRoots']))['_execute']();const _0x1e2495=null===_0x3bd06d['_authorId']?null:_0x3bd06d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x171eb8=_0x3bd06d['getMovedRangeStart'](),_0x1b0eb1=_0x171eb8['parent'],_0x370494=_0x171eb8['offset'];!function _0x4da2b3(_0x2781f9,_0x7c4ce4,_0x562275,_0xdd6d93){for(let _0x539633=_0x562275;_0x539633<_0xdd6d93;_0x539633++){const _0x148328=_0x7c4ce4['getChild'](_0x539633);_0x148328['is']('element','$text')?_0x2781f9['set'](_0x148328['getAttribute']('vid'),{'userId':_0x1e2495}):(_0x2781f9['set'](_0x148328['getAttribute']('vid_start'),{'userId':_0x1e2495}),_0x4da2b3(_0x2781f9,_0x148328,0x0,_0x148328['childCount']),_0x2781f9['set'](_0x148328['getAttribute']('vid_end'),{'userId':_0x1e2495}));}}(this['_touched'],_0x1b0eb1,_0x370494,_0x370494+_0x3bd06d['howMany']);}['_handleMergeOperation'](_0x32ab64){const _0xe4acb8=null===(_0x32ab64=this['_cloneOperation'](_0x32ab64,this['_idsRoots']))['_authorId']?null:_0x32ab64['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c01fb=_0x32ab64['targetPosition']['parent'],_0x56d082=_0x32ab64['sourcePosition']['parent'],_0x21fdd8=_0x5c01fb['getAttribute']('vid_end'),_0x401b3c=_0x56d082['getAttribute']('vid_start');_0x5c01fb['_setAttribute']('vid_end',_0x56d082['getAttribute']('vid_end')),_0x56d082['_setAttribute']('vid_end',_0x21fdd8),this['_touched']['set'](_0x401b3c,{'userId':_0xe4acb8}),this['_touched']['set'](_0x21fdd8,{'userId':_0xe4acb8}),_0x32ab64['_execute']();}['_handleSplitOperation'](_0x5404af){const _0x1b9821=null===(_0x5404af=this['_cloneOperation'](_0x5404af,this['_idsRoots']))['_authorId']?null:_0x5404af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x568084=_0x5404af['graveyardPosition'],_0x5f4015=_0x5404af['splitPosition']['parent'];_0x5404af['_execute']();const _0x271da5=_0x5f4015['getAttribute']('vid_end'),_0x3c58d2=_0x5404af['insertionPosition']['nodeAfter'];if(_0x568084){const _0x5973b6=_0x3c58d2['getAttribute']('vid_end'),_0x39d990=_0x5f4015['getAttribute']('vid_end');_0x5f4015['_setAttribute']('vid_end',_0x5973b6),_0x3c58d2['_setAttribute']('vid_end',_0x39d990),this['_touched']['set'](_0x5f4015['getAttribute']('vid_end'),{'userId':_0x1b9821}),this['_touched']['set'](_0x3c58d2['getAttribute']('vid_start'),{'userId':_0x1b9821});}else{const _0x5a350b=this['_revisionId']++,_0x171fb8=this['_revisionId']++;_0x5f4015['_setAttribute']('vid_end',_0x5a350b),_0x3c58d2['_setAttribute']('vid_start',_0x171fb8),_0x3c58d2['_setAttribute']('vid_end',_0x271da5),this['_touched']['set'](_0x5a350b,{'userId':_0x1b9821}),this['_touched']['set'](_0x171fb8,{'userId':_0x1b9821});}}['_handleMarkerOperation'](_0x375dc1){if(!_0x375dc1['affectsData'])return;const _0x438f89=(_0x375dc1=this['_cloneOperation'](_0x375dc1,this['_diffRoots']))['oldRange']?_0x375dc1['oldRange']['root']:null,_0x4272e3=_0x375dc1['newRange']?_0x375dc1['newRange']['root']:null;_0x438f89&&this['_markers']['delete'](_0x375dc1['name']),_0x4272e3&&this['_markers']['set'](_0x375dc1['name'],_0x375dc1['newRange']['clone']());const _0xcfed27=null===_0x375dc1['_authorId']?null:_0x375dc1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575bbd=_0x375dc1['name'];if(!this['_touchedMarkers']['has'](_0x575bbd))return void this['_touchedMarkers']['set'](_0x575bbd,{'range':_0x375dc1['oldRange'],'userId':_0xcfed27});const _0x12bf72=this['_touchedMarkers']['get'](_0x575bbd),_0x9bc576=_0x12bf72['range'],_0x279a03=_0x375dc1['newRange'];null==_0x9bc576&&null==_0x279a03||_0x9bc576&&_0x279a03&&_0x9bc576['isEqual'](_0x279a03)?this['_touchedMarkers']['delete'](_0x375dc1['name']):_0x12bf72['userId']=_0xcfed27;}['_handleRootOperation'](_0xa93cfc,_0x4bf02c){this['_diffRoots']['has'](_0xa93cfc['rootName'])?this['_diffRoots']['get'](_0xa93cfc['rootName'])['_isAttached']=_0xa93cfc['isAdd']:(this['_diffRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xa93cfc['rootName'],{}),_0x4bf02c&&this['_idsRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)));const _0x5b5fbc=null===_0xa93cfc['_authorId']?null:_0xa93cfc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x403f89=this['_touchedRoots']['get'](_0xa93cfc['rootName']);_0x403f89&&_0x403f89['userId']===_0x5b5fbc?this['_touchedRoots']['delete'](_0xa93cfc['rootName']):this['_touchedRoots']['set'](_0xa93cfc['rootName'],{'userId':_0x5b5fbc,'isAttached':_0xa93cfc['isAdd']});}['_handleRootAttributeOperation'](_0x55fa24){const _0x3593c0=this['_diffRootsAttributes']['get'](_0x55fa24['root']['rootName']);null===_0x55fa24['newValue']?delete _0x3593c0[_0x55fa24['key']]:_0x3593c0[_0x55fa24['key']]=_0x55fa24['newValue'];}}function N(_0x57bb9f){const _0xcfb389=P(_0x57bb9f['rootName'],_0x57bb9f['isAttached']());for(const _0x2332b2 of _0x57bb9f['getChildren']()){const _0x2729ae=_0x2332b2['_clone'](!0x0);_0xcfb389['_appendChild'](_0x2729ae);}return _0xcfb389;}function P(_0x434ad7,_0x44c56f=!0x0){const _0x581458=new vt();return _0x581458['rootName']=_0x434ad7,_0x581458['_isAttached']=_0x44c56f,_0x581458['isAttached']=()=>_0x581458['_isAttached'],_0x581458;}function F(_0x1b523b,_0x49b00e,_0xcfc8e2){const _0x35e07b='elementEnd'==_0x1b523b['type']?_0xcfc8e2['createPositionAt'](_0x1b523b['item'],'end'):_0xcfc8e2['createPositionBefore'](_0x1b523b['item']);return _0xcfc8e2['createPositionFromPath'](_0x49b00e,_0x35e07b['path'],_0x35e07b['stickiness']);}function B(_0x27987f,_0x517c85,_0x5263a3){const _0x23275b='elementStart'==_0x27987f['type']?_0x5263a3['createPositionAt'](_0x27987f['item'],0x0):_0x5263a3['createPositionAfter'](_0x27987f['item']);return _0x5263a3['createPositionFromPath'](_0x517c85,_0x23275b['path'],_0x23275b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13a62c,_0xb7a8e4){super(_0x13a62c),this['focusTracker']=new _0x5a36b0(),this['keystrokes']=new _0x37dc31(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb7a8e4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1d874c(this);}['render'](){super['render'](),_0x5b119f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2578dd=_0x1f4fdf=>_0x1f4fdf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2578dd),this['keystrokes']['set']('arrowleft',_0x2578dd),this['keystrokes']['set']('arrowup',_0x2578dd),this['keystrokes']['set']('arrowdown',_0x2578dd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x25b97e){this['revisionNameInputView']['fieldView']['element']['value']=_0x25b97e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1ed1b2){const _0x395e3f=new _0x256e64(this['locale'],_0xb8ce7b),_0x5bc6a1=_0x395e3f['fieldView'];_0x5bc6a1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x542acd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1ed1b2&&(_0x542acd+='\x20('+g(this['locale'],'optional')+')'),(_0x395e3f['label']=_0x542acd,_0x5bc6a1['on']('input',()=>{this['revisionNameInputValue']=_0x5bc6a1['element']['value']['trim']();}),_0x395e3f);}}class f extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4cc819=this['editor'],_0x59c2e7=_0x4cc819['plugins']['get']('RevisionTracker');_0x4cc819['ui']['componentFactory']['add']('revisionHistory',_0x288aad=>{const _0x578182=_0x3c0c02(_0x288aad),_0x585acf=_0x578182['panelView']['children'],_0x35d9e6=new _0x5b1655(_0x288aad),_0x2f0cf7=new _0x3f34f5(_0x288aad),_0x479034=new te(_0x288aad),_0x15cafd=new _0x3f34f5(_0x288aad),_0x5a84cc=new te(_0x288aad);return _0x578182['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x3cda6d,_0x2fbe9b,_0xe3657e)=>_0x3cda6d&&_0x2fbe9b&&!_0xe3657e),_0x578182['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x288aad,'Revision\x20history'),'tooltip':!0x0}),_0x479034['set']({'label':g(_0x288aad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x479034['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x46f285,_0x246e5c,_0x4290d6)=>_0x46f285&&_0x246e5c&&!_0x4290d6),_0x479034['on']('execute',()=>this['_showDialog']()),_0x5a84cc['set']({'label':g(_0x288aad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a84cc['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x4cc819,'isReadOnly',(_0xb2c515,_0x5c650f)=>_0xb2c515&&!_0x5c650f),_0x5a84cc['on']('execute',()=>{_0x4cc819['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x578182['isOpen']=!0x1,_0x4cc819['editing']['view']['focus']();}),_0x2f0cf7['children']['add'](_0x479034),_0x15cafd['children']['add'](_0x5a84cc),_0x35d9e6['role']='menu',_0x35d9e6['items']['addMany']([_0x2f0cf7,_0x15cafd]),_0x585acf['add'](_0x35d9e6),_0x578182;}),_0x4cc819['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1cace1=this['editor'],_0x304b90=_0x1cace1['locale'],_0xfd533a=new _0x505352(_0x304b90),_0x59b376=new _0x222b9c(_0x304b90);_0xfd533a['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x304b90,'Revision\x20history')});const _0x7525ec=new _0x1d2298(_0x304b90,_0xfd533a),_0x1c3c2f=new _0x11e198(_0x304b90);_0x1c3c2f['set']({'label':g(_0x304b90,'Save\x20current\x20revision')}),_0x1c3c2f['delegate']('execute')['to'](_0xfd533a),_0x1c3c2f['on']('execute',()=>{this['_showDialog']();}),_0x7525ec['children']['add'](_0x1c3c2f),_0x59b376['items']['add'](_0x7525ec);const _0x1ec4dc=new _0x1d2298(_0x304b90,_0xfd533a),_0x5ebb38=new _0x11e198(_0x304b90);return _0x5ebb38['set']({'label':g(_0x304b90,'Open\x20revision\x20history')}),_0x5ebb38['delegate']('execute')['to'](_0xfd533a),_0x5ebb38['on']('execute',()=>{_0x1cace1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ec4dc['children']['add'](_0x5ebb38),_0x59b376['items']['add'](_0x1ec4dc),_0xfd533a['panelView']['children']['add'](_0x59b376),_0xfd533a;}['_showDialog'](){const _0x18e2ac=this['editor'],_0x1eef08=_0x18e2ac['locale'],_0x47b89a=_0x18e2ac['plugins']['get']('Dialog'),_0x5848ce=_0x18e2ac['plugins']['get']('RevisionTracker');function _0x3b98b2(_0x3c7613){_0x18e2ac['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c7613['revisionName']?_0x3c7613['revisionNameInputView']['errorText']=g(_0x1eef08,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x18e2ac['plugins']['get'](u)['saveRevision']({'name':_0x3c7613['revisionName']}),_0x47b89a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b98b2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x47b89a['show']({'id':'revisionSave','title':g(_0x1eef08,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x18e2ac['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x47b89a['hide']()},{'label':g(_0x18e2ac['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5de72e){_0x5de72e['bind']('isEnabled')['to'](_0x5848ce,'isReady',_0x5848ce,'isEnabled',_0x18e2ac,'isReadOnly',(_0x8f302a,_0x54520c,_0x466030)=>_0x8f302a&&_0x54520c&&!_0x466030);},'onExecute':()=>_0x3b98b2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x553dd7=this['editor'],_0x160e8d=_0x553dd7['locale'];this['_saveRevisionFormView']=new hs(_0x160e8d,_0x553dd7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x541ee7,_0x356984){super(_0x541ee7),this['_model']=_0x356984,this['changeId']=_0x356984['id'];const _0x33f012=this['bindTemplate'],_0x407b91=g(_0x541ee7,_0x356984['data']['isSuggestion']?'Suggested\x20by':'add'==_0x356984['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x356984['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33f012['to']('type',_0x379064=>'ck-revision-change__'+_0x379064)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x407b91}]},{'text':'\x20'+_0x356984['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x14857d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ee65e){super(),this['id']=_0x1ee65e['id']||_0x451426(),this['author']=_0x1ee65e['author'],this['type']=_0x1ee65e['type'],this['data']=_0x1ee65e['data']||{},this['rootName']=_0x1ee65e['rootName'],this['set']('createdAt',_0x1ee65e['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(_0xf27823,_0x280bdf){this['newRevisionId']=_0xf27823,this['oldRevisionId']=_0x280bdf,this['changes']=new _0x3fcc51();}['_setChanges'](_0x4cd166){for(const _0x528328 of _0x4cd166)this['changes']['add'](_0x528328);}}class m extends _0x149b28{['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[_0x43b4df,_0x1663f0,I,V];}constructor(_0xda1191){super(_0xda1191),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',(_0x181734,_0x143b0d,_0x3259dd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x9fc213=>{for(const _0x529733 of this['editor']['editing']['view']['document']['roots'])_0x3259dd?_0x9fc213['removeClass']('ck-editor__editable__overlay',_0x529733):_0x9fc213['addClass']('ck-editor__editable__overlay',_0x529733);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x320d63=>null!==_0x320d63),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x466cf7,_0x544a0c,_0x64a5b6)=>_0x466cf7&&_0x64a5b6?_0x544a0c['changes']['getIndex'](_0x64a5b6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x11863c,_0x572c8b)=>_0x11863c?_0x572c8b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1663f0);}['init'](){const _0x1f4ed3=this['editor'],_0x5587fe=new wt(_0x1f4ed3,{'direction':'backward'}),_0x586276=new wt(_0x1f4ed3,{'direction':'forward'});(_0x1f4ed3['commands']['add']('showPreviousChange',_0x5587fe),_0x1f4ed3['commands']['add']('showNextChange',_0x586276),_0x1f4ed3['commands']['add']('restoreRevision',new mt(_0x1f4ed3)),this['on']('change:numberOfChanges',()=>{_0x5587fe['refresh'](),_0x586276['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f4ed3['enableReadOnlyMode']('revision-viewer'),_0x1f4ed3['plugins']['has']('WidgetToolbarRepository'))&&_0x1f4ed3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x34345d){return await this['_utils']['loadRevisionData'](_0x34345d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x34345d);}async['getRevisionRootsAttributes'](_0x68be0a){return await this['_utils']['loadRevisionData'](_0x68be0a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x68be0a);}async['compare'](_0x412686,_0x247e60,_0x2cd7c6=!0x1){if(!this['isEnabled'])return;const _0x313833=this['diff'],_0xb72f1=this['repository'],_0x5f1182='string'==typeof _0x412686?_0xb72f1['getRevision'](_0x412686):_0x412686,_0x4012d5='string'==typeof _0x247e60?_0xb72f1['getRevision'](_0x247e60):_0x247e60,_0x10ad4a=_0x5f1182['id'],_0x35386d=_0x4012d5?_0x4012d5['id']:null;if(!_0x2cd7c6&&this['diff']&&this['diff']['newRevisionId']===_0x10ad4a&&this['diff']['oldRevisionId']===_0x35386d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x10ad4a,_0x35386d);const _0x442776=this['_getRevisionsRange'](_0x5f1182,_0x4012d5,!0x0)['map'](_0x2af5bb=>this['_utils']['loadRevisionData'](_0x2af5bb,this['adapter']));return _0x442776['push'](new Promise(_0x51d4b1=>{setTimeout(_0x51d4b1,0x14);})),Promise['all'](_0x442776)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x316303=this['_getDiff'](_0x10ad4a,_0x35386d);for(const _0x17444c of _0x316303['changes'])this['_changeIdToChange']['set'](_0x17444c['id'],_0x17444c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x323efd=>{for(const _0x2f24f1 of this['editor']['model']['document']['getRootNames']())_0x323efd['detachRoot'](_0x2f24f1);for(const _0x32ec56 of Object['keys'](_0x316303['model'])){const _0x5bde61=_0x323efd['addRoot'](_0x32ec56);for(const _0x40423e of Object['keys'](_0x316303['attributes'][_0x32ec56]))_0x323efd['setAttribute'](_0x40423e,_0x316303['attributes'][_0x32ec56][_0x40423e],_0x5bde61);_0x323efd['insert'](_0x316303['model'][_0x32ec56],_0x5bde61,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x316303['changes'])),this['isReady']=!0x0;})['catch'](_0x22aa41=>{console['error'](_0x22aa41),this['_cleanUp'](),_0x313833&&(this['diff']=_0x313833),this['isReady']=!0x0;});}['addRevisionData'](_0x173394,_0x1e4e7f){const _0xde2de4=this['repository']['createRevision'](_0x173394);return _0xde2de4['on']('_update',(_0x599007,_0x27f085,_0x411686)=>_0x1e4e7f(_0x27f085,_0x411686,_0xde2de4)),this['repository']['addRevision'](_0xde2de4),_0xde2de4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x551c54=>{for(const _0x50e483 of this['editor']['model']['document']['getRootNames']())_0x551c54['detachRoot'](_0x50e483);});}['_sortAndFilterDiffChanges'](_0x283421){const _0x4bfe46=[],_0x46239b=new Map();for(const _0x34e831 of this['editor']['model']['document']['getRootNames']()){const _0x2c3b07=this['editor']['editing']['view']['getDomRoot'](_0x34e831);if(!_0x2c3b07)continue;const _0x528a56=_0x2c3b07['getClientRects']()['item'](0x0);_0x528a56&&(_0x4bfe46['push'](_0x34e831),_0x46239b['set'](_0x34e831,_0x528a56));}return _0x4bfe46['sort']((_0x1bd447,_0x1a194e)=>{const _0x211d4d=_0x46239b['get'](_0x1bd447),_0x19e167=_0x46239b['get'](_0x1a194e);return _0x211d4d['y']-_0x19e167['y']||_0x211d4d['x']-_0x19e167['x'];}),(_0x283421=_0x283421['filter'](_0x296dd2=>_0x4bfe46['includes'](_0x296dd2['rootName'])))['sort']((_0xbe5028,_0x315da0)=>_0x4bfe46['indexOf'](_0xbe5028['rootName'])-_0x4bfe46['indexOf'](_0x315da0['rootName'])),_0x283421;}['_makeTape'](_0xb0e5dd){const _0xcb5390=Array['from'](_0xb0e5dd['markers'])['filter'](([_0x1a0de9,_0x5cfb0c])=>_0x1a0de9['startsWith']('revision:')&&!_0x5cfb0c['isCollapsed']),_0x594700=Array['from'](this['editor']['model']['createRangeIn'](_0xb0e5dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcb5390['length'])for(const _0x44b8fa of _0x594700){const [_0x144796,_0xfcbaf9]=_0xcb5390[0x0],[,_0xc0a35d,_0x2a7ca1]=_0x144796['split'](':');if(_0xfcbaf9['end']['isEqual'](_0x44b8fa['nextPosition'])&&_0xcb5390['shift'](),(_0x44b8fa['previousPosition']['isEqual'](_0xfcbaf9['start'])||_0x44b8fa['previousPosition']['isAfter'](_0xfcbaf9['start']))&&('insertion'==_0xc0a35d?_0x44b8fa['isAdded']={'userId':_0x2a7ca1}:'deletion'==_0xc0a35d&&(_0x44b8fa['isRemoved']={'userId':_0x2a7ca1})),0x0==_0xcb5390['length'])break;}return _0x594700;}['_refreshStartEndIndex'](_0x580a1e){const _0x55838e=new Map();for(let _0x5dccd1=0x0;_0x5dccd1<_0x580a1e['length'];_0x5dccd1++)'text'===_0x580a1e[_0x5dccd1]['type']?(_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1,_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1):('elementStart'===_0x580a1e[_0x5dccd1]['type']?_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1:'elementEnd'===_0x580a1e[_0x5dccd1]['type']&&(_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1),_0x55838e['set'](_0x580a1e[_0x5dccd1]['id'],_0x5dccd1));for(const _0x4eeade of _0x55838e['values']())'elementStart'===_0x580a1e[_0x4eeade]['type']?_0x580a1e[_0x4eeade]['item']['endIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']):'elementEnd'===_0x580a1e[_0x4eeade]['type']&&(_0x580a1e[_0x4eeade]['item']['startIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']));}['_processTape'](_0x19a606){for(let _0x1b7905=0x0;_0x1b7905<_0x19a606['length'];_0x1b7905++){if('elementStart'===_0x19a606[_0x1b7905]['type'])_0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905;else{if('elementEnd'===_0x19a606[_0x1b7905]['type']){_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905;const _0x37ba9f=_0x19a606[_0x1b7905]['item']['startIndex'];_0x19a606[_0x37ba9f]['pairId']=_0x19a606[_0x1b7905]['id'],_0x19a606[_0x1b7905]['pairId']=_0x19a606[_0x37ba9f]['id'];}else _0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905,_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905,_0x19a606[_0x1b7905]['pairId']=null;}_0x19a606[_0x1b7905]['markersStart']||(_0x19a606[_0x1b7905]['markersStart']=[],_0x19a606[_0x1b7905]['markersEnd']=[]);}}['_markInsertions'](_0xeb1826,_0x202223){const _0x503ba1=_0xeb1826['filter'](_0x27a267=>!_0x27a267['isAdded']);for(let _0x5b2cf0=0x0;_0x5b2cf0<_0x202223['length'];_0x5b2cf0++)_0x202223[_0x5b2cf0]['isAdded']&&(_0x503ba1[_0x5b2cf0]['isAdded']=_0x202223[_0x5b2cf0]['isAdded']);}['_getDiff'](_0x37abd1,_0x1c2b2c=null){const _0x4fa35b=this['repository']['getRevision'](_0x37abd1),_0x408dd0=_0x1c2b2c?this['repository']['getRevision'](_0x1c2b2c):null,_0x34baec=this['_getRevisionsRange'](_0x4fa35b,_0x408dd0),_0x5a91dc=_0x34baec[_0x34baec['length']-0x1],_0x548368=new Map(),_0x4be1f2={'model':{},'attributes':{},'changes':[]},_0x142885=new Set(),_0x380cbc=new Map();for(let _0x166c45=_0x34baec['length']-0x1;_0x166c45>=0x0;_0x166c45--){const _0x480e0b=_0x34baec[_0x166c45];for(const _0x4a8d5b of Object['keys'](_0x480e0b['diffData']))if(_0x480e0b['diffData'][_0x4a8d5b]['attachChange']){const _0x5f5d5=_0x480e0b['diffData'][_0x4a8d5b]['attachChange'];_0x5f5d5['isAttached']?(_0x142885['add'](_0x4a8d5b),_0x380cbc['has'](_0x4a8d5b)&&_0x380cbc['get'](_0x4a8d5b)['userId']==_0x5f5d5['userId']?_0x380cbc['delete'](_0x4a8d5b):_0x380cbc['set'](_0x4a8d5b,_0x5f5d5)):_0x380cbc['has'](_0x4a8d5b)?(_0x142885['delete'](_0x4a8d5b),_0x380cbc['delete'](_0x4a8d5b)):(_0x142885['add'](_0x4a8d5b),_0x380cbc['set'](_0x4a8d5b,_0x5f5d5));}else _0x142885['add'](_0x4a8d5b);}for(const _0x5b6023 of _0x142885){const _0x5cbf59=_0x380cbc['has'](_0x5b6023)&&!_0x380cbc['get'](_0x5b6023)['isAttached'];let _0x153e25=_0x5cbf59?_0x34baec['length']-0x1:0x0;const _0x522b2c=_0x5cbf59?-0x1:0x1;for(;_0x34baec[_0x153e25];){const _0x1194b7=_0x34baec[_0x153e25];if(_0x1194b7['diffData'][_0x5b6023]){const _0x4d036e=_0x5cbf59?_0x1194b7['diffData'][_0x5b6023]['attributesBefore']:_0x1194b7['diffData'][_0x5b6023]['attributesAfter'];_0x4be1f2['attributes'][_0x5b6023]=_0x4d036e?_0x36f289(_0x4d036e):{};break;}_0x153e25+=_0x522b2c;}}for(const _0x3f0912 of _0x34baec){_0x3f0912['model']={};for(const _0xe547b4 of _0x3f0912['authors'])_0x548368['set'](_0xe547b4['id'],_0xe547b4);for(const _0x1bd8c1 of _0x142885){const _0x2dcc24=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['insertions']:'[]',_0x15aff5=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['deletions']:'[]';_0x3f0912['model'][_0x1bd8c1]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2dcc24),'deletions':this['_utils']['_makeModelFromViewString'](_0x15aff5)};}}for(const _0x393141 of _0x142885){let _0x2146b6=null,_0x52d2f6=0x0;const _0x2b15c4=new Map(Array['from'](_0x4fa35b['model'][_0x393141]['insertions']['markers'])['filter'](([_0x51d9c2])=>!_0x51d9c2['startsWith']('revision:')));let _0x905f91=0x0;for(const _0x59ce36 of _0x34baec){const _0x47eb6a=this['_makeTape'](_0x59ce36['model'][_0x393141]['insertions']);_0x59ce36==_0x4fa35b?(_0x2146b6=_0x47eb6a,_0x52d2f6=_0x2146b6['length'],_0x2146b6['forEach'](_0x3cc919=>{_0x3cc919['id']=_0x905f91++;}),this['_processTape'](_0x2146b6)):this['_markInsertions'](_0x2146b6,_0x47eb6a);const _0x2e1fac=_0x2146b6['filter'](_0x4abb61=>!_0x4abb61['isAdded'])['map'](_0x43d134=>_0x43d134['id']);let _0x3d55f2=0x0;const _0x179132=this['_makeTape'](_0x59ce36['model'][_0x393141]['deletions']);_0x179132['forEach'](_0x4656f7=>{_0x4656f7['isRemoved']?_0x4656f7['id']=_0x52d2f6++:_0x4656f7['id']=_0x2e1fac[_0x3d55f2++];}),this['_processTape'](_0x179132),this['_setDistance'](_0x2146b6,'isAdded'),this['_setDistance'](_0x179132,'isRemoved'),_0x59ce36==_0x4fa35b&&this['_markMarkers'](_0x2146b6,_0x2b15c4),_0x2146b6=this['_joinTapes'](_0x2146b6,_0x179132),this['_refreshStartEndIndex'](_0x2146b6),this['_setDistance'](_0x2146b6,'isRemoved');}_0x2146b6=_0x2146b6['filter'](_0x4abb8=>!(_0x4abb8['isAdded']&&_0x4abb8['isRemoved']));const _0x14a66b=new Map(_0x5a91dc['model'][_0x393141]['deletions']['markers']),_0x128050=new Set(_0x2b15c4['keys']());for(const _0x46ada8 of _0x14a66b['keys']())_0x128050['delete'](_0x46ada8);this['_markSuggestions'](_0x2146b6,_0x128050),this['_fixObsoleteTags'](_0x2146b6),_0x2146b6=this['_removeMissingPairs'](_0x2146b6),_0x2146b6=this['_markMismatchedRemovedTags'](_0x2146b6),_0x2146b6=this['_removeUnsupportedChanges'](_0x2146b6);const {root:_0x421b05,changes:_0x50dfb7}=this['_makeModelFromTape'](_0x2146b6,_0x548368,_0x393141);_0x4be1f2['model'][_0x393141]=_0x421b05;const _0x5b85a1=_0x380cbc['get'](_0x393141);if(_0x5b85a1){const _0x2e933c=_0x548368['get'](_0x5b85a1['userId']),_0x184188=new r({'author':_0x2e933c,'type':_0x5b85a1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x393141});_0x50dfb7['unshift'](_0x184188),_0x4be1f2['attributes'][_0x393141]['revisionHistoryAttachChange']=_0x184188['id'];}_0x4be1f2['changes']=_0x4be1f2['changes']['concat'](_0x50dfb7);}return _0x4be1f2;}['_markMarkers'](_0x4e3434,_0x5b5a46){for(let _0x559a19=0x0;_0x559a19<_0x4e3434['length'];_0x559a19++)for(const [_0x15ecee,_0x51b527]of _0x5b5a46)!_0x51b527['isCollapsed']&&_0x51b527['start']['isEqual'](_0x4e3434[_0x559a19]['previousPosition'])&&_0x4e3434[_0x559a19]['markersStart']['push'](_0x15ecee),_0x51b527['end']['isEqual'](_0x4e3434[_0x559a19]['nextPosition'])&&_0x4e3434[_0x559a19]['markersEnd']['push'](_0x15ecee);}['_joinTapes'](_0x9e13fc,_0x4ec9c3){let _0x917218=[],_0x7dc234=0x0,_0x260d5a=0x0;for(;_0x7dc234<_0x9e13fc['length']||_0x260d5a<_0x4ec9c3['length'];){const _0x29111f=_0x9e13fc[_0x7dc234]||{},_0x363cdb=_0x4ec9c3[_0x260d5a]||{};if(_0x29111f['id']==_0x363cdb['id'])_0x7dc234++,_0x260d5a++,_0x917218['push'](_0x29111f);else{if(_0x363cdb['isRemoved']&&_0x29111f['isAdded']){const {commonTape:_0x102e73,iEnd:_0x519295,jEnd:_0x228435}=this['_threeWayMerge'](_0x9e13fc,_0x7dc234,_0x4ec9c3,_0x260d5a);_0x917218=_0x917218['concat'](_0x102e73),_0x7dc234=_0x519295,_0x260d5a=_0x228435;}else _0x363cdb['isRemoved']?(_0x260d5a++,_0x917218['push'](_0x363cdb)):(_0x7dc234++,_0x917218['push'](_0x29111f));}}return _0x917218;}['_markSuggestions'](_0x1b8a6e,_0x2609fb){const _0xcc0343=[];for(let _0x3f1231=0x0;_0x3f1231<_0x1b8a6e['length'];_0x3f1231++){for(let _0x39d393=0x0;_0x39d393<_0x1b8a6e[_0x3f1231]['markersStart']['length'];_0x39d393++){const _0x47ead5=_0x1b8a6e[_0x3f1231]['markersStart'][_0x39d393];if(!_0x2609fb['has'](_0x47ead5))continue;const {group:_0xff4bc5,type:_0x284563,authorId:_0x3a3c60}=_0x549143(_0x47ead5);'revision-suggestion'!=_0xff4bc5||'insertion'!=_0x284563&&'deletion'!=_0x284563||(_0xcc0343['unshift']({'type':_0x284563,'name':_0x47ead5,'userId':_0x3a3c60}),_0x1b8a6e[_0x3f1231]['markersStart']['splice'](_0x39d393,0x1),_0x39d393--);}_0xad8822(_0x1b8a6e[_0x3f1231]);for(let _0x3e14a1=0x0;_0x3e14a1<_0x1b8a6e[_0x3f1231]['markersEnd']['length'];_0x3e14a1++){const _0x408d85=_0x1b8a6e[_0x3f1231]['markersEnd'][_0x3e14a1];if(!_0x2609fb['has'](_0x408d85))continue;const {group:_0x4f37f7,type:_0x5bdea0}=_0x549143(_0x408d85);if('revision-suggestion'!=_0x4f37f7||'insertion'!=_0x5bdea0&&'deletion'!=_0x5bdea0)continue;_0x1b8a6e[_0x3f1231]['markersEnd']['splice'](_0x3e14a1,0x1),_0x3e14a1--;const _0x4e73a9=_0xcc0343['findIndex'](_0x525933=>_0x525933['name']==_0x408d85);_0x4e73a9>-0x1&&_0xcc0343['splice'](_0x4e73a9,0x1);}}function _0x549143(_0x558c2e){const _0x1d85b3=_0x558c2e['split'](':');return{'group':_0x1d85b3[0x0],'type':_0x1d85b3[0x1],'subType':_0x1d85b3['length']>=0x5?_0x1d85b3[0x2]:null,'id':_0x1d85b3['length']<0x5?_0x1d85b3[0x2]:_0x1d85b3[0x3],'authorId':_0x1d85b3['length']<0x5?_0x1d85b3[0x3]:_0x1d85b3[0x4],'markerCount':0x6==_0x1d85b3['length']?_0x1d85b3[0x5]:null};}function _0xad8822(_0x44a026){for(let _0x547a96=0x0;_0x547a96<_0xcc0343['length'];_0x547a96++){if(_0x44a026['isAdded']&&'insertion'==_0xcc0343[_0x547a96]['type'])return _0x44a026['isAddSuggestion']=_0xcc0343[_0x547a96],void delete _0x44a026['isAdded'];if(!_0x44a026['isAdded']&&!_0x44a026['isRemoved']&&'deletion'==_0xcc0343[_0x547a96]['type'])return void(_0x44a026['isRemoveSuggestion']=_0xcc0343[_0x547a96]);}}}['_setDistance'](_0x1f5eb8,_0x11528b){let _0x46d956=0x0,_0x52f550=!0x1;const _0x20471e=new Map();for(const _0x144c52 of _0x1f5eb8)_0x144c52[_0x11528b]?_0x52f550&&(_0x46d956++,_0x52f550=!0x1):(_0x46d956++,_0x52f550=!0x0),_0x20471e['set'](_0x144c52['id'],_0x46d956);for(let _0x58345f=0x0;_0x58345f<_0x1f5eb8['length'];_0x58345f++){if('isRemoved'==_0x11528b&&_0x1f5eb8[_0x58345f]['isAdded']||'isAdded'==_0x11528b&&_0x1f5eb8[_0x58345f]['isRemoved'])continue;if('text'==_0x1f5eb8[_0x58345f]['type']){_0x1f5eb8[_0x58345f]['distance']=0x0;continue;}const _0xb5aa3=_0x20471e['get'](_0x1f5eb8[_0x58345f]['pairId']),_0x23eade=_0x20471e['get'](_0x1f5eb8[_0x58345f]['id']);_0x1f5eb8[_0x58345f]['distance']=_0xb5aa3-_0x23eade;}}['_getRevisionsRange'](_0x650b66,_0x4464bc,_0x9dbec9=!0x1){const _0x2812d6=[];let _0x1df885=this['repository']['getIndex'](_0x650b66),_0x309f5c=this['repository']['getIndex'](_0x4464bc);for(-0x1==_0x309f5c&&(_0x309f5c=this['repository']['_revisions']['length'],_0x9dbec9=!0x1);_0x1df885<_0x309f5c;)_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x1df885++;return _0x9dbec9&&_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x2812d6;}['_threeWayMerge'](_0x36de31,_0x23e84a,_0x456594,_0x5503eb){const _0x3302b7=this['editor']['model']['schema'];let _0x1e91c5=_0x23e84a;for(;_0x36de31[_0x1e91c5]&&_0x36de31[_0x1e91c5]['isAdded'];)_0x1e91c5++;let _0x548337=_0x5503eb;for(;_0x456594[_0x548337]&&_0x456594[_0x548337]['isRemoved'];)_0x548337++;_0x195629(_0x36de31,_0x23e84a,_0x1e91c5),_0x195629(_0x456594,_0x5503eb,_0x548337);const _0x23ef1d=_0x456594['slice'](_0x5503eb,_0x548337)['concat'](_0x36de31['slice'](_0x23e84a,_0x1e91c5));return _0x23ef1d['sort']((_0x71a524,_0x122faf)=>_0x71a524['side']!=_0x122faf['side']?_0x71a524['side']-_0x122faf['side']:_0x71a524['level']!=_0x122faf['level']?_0x71a524['level']-_0x122faf['level']:_0x71a524['distance']!=_0x122faf['distance']?_0x122faf['distance']-_0x71a524['distance']:!!_0x71a524['isAdded']!=!!_0x122faf['isAdded']?-0x1==_0x71a524['side']||0x0==_0x71a524['side']?_0x71a524['isAdded']?-0x1:0x1:_0x71a524['isAdded']?0x1:-0x1:_0x71a524['index']-_0x122faf['index']),{'commonTape':_0x23ef1d,'iEnd':_0x1e91c5,'jEnd':_0x548337};function _0x195629(_0x32b679,_0x517049,_0x22f594){let _0x4486d2=-0x1,_0x484f38=Number['POSITIVE_INFINITY'],_0x41e682=!0x0;for(let _0x4ae4bb=_0x517049;_0x4ae4bb<_0x22f594;_0x4ae4bb++)if(_0x3302b7['isInline'](_0x32b679[_0x4ae4bb]['item'])||(_0x41e682=!0x1),_0x32b679[_0x4ae4bb]['item']['startIndex']<_0x517049&&(_0x4486d2=_0x4ae4bb),_0x32b679[_0x4ae4bb]['item']['endIndex']>=_0x22f594){_0x484f38=_0x4ae4bb;break;}_0x41e682&&(_0x4486d2=_0x22f594-0x1);for(let _0x2b219a=_0x517049;_0x2b219a<_0x22f594;_0x2b219a++)_0x32b679[_0x2b219a]['side']=_0x2b219a<=_0x4486d2?-0x1:_0x2b219a<_0x484f38?0x0:0x1,_0x32b679[_0x2b219a]['index']=_0x2b219a;let _0x2221ff=0x0;for(let _0x13eabd=_0x517049;_0x13eabd<=_0x4486d2;_0x13eabd++)0x0==_0x32b679[_0x13eabd]['distance']?_0x32b679[_0x13eabd]['level']=_0x2221ff:(_0x2221ff++,_0x32b679[_0x13eabd]['level']=_0x2221ff,_0x2221ff++);for(let _0x3ffff4=_0x517049;_0x3ffff4<_0x22f594;_0x3ffff4++)0x0==_0x32b679[_0x3ffff4]['side']&&(_0x32b679[_0x3ffff4]['level']=_0x2221ff);_0x2221ff=0x0;for(let _0x5924b1=_0x22f594-0x1;_0x5924b1>=_0x484f38;_0x5924b1--)0x0==_0x32b679[_0x5924b1]['distance']?_0x32b679[_0x5924b1]['level']=_0x2221ff:(_0x2221ff--,_0x32b679[_0x5924b1]['level']=_0x2221ff,_0x2221ff--);}}['_fixObsoleteTags'](_0x4a7102){const _0x3fe779=new Map(),_0x2c3eb5=this['editor']['model']['schema'];for(let _0x2fefa4=0x1;_0x2fefa4<_0x4a7102['length'];_0x2fefa4++){let _0x70e90e,_0x374920,_0x1e0403;const _0x1bfbfb=_0x4a7102[_0x2fefa4],_0xb00624=_0x4a7102[_0x2fefa4-0x1];if('text'==_0x1bfbfb['type'])continue;if(_0x1bfbfb['type']!=_0xb00624['type'])continue;if(!_0x2c3eb5['isBlock'](_0xb00624['item'])||_0x2c3eb5['isLimit'](_0xb00624['item']))continue;if(!_0x2c3eb5['isBlock'](_0x1bfbfb['item'])||_0x2c3eb5['isLimit'](_0x1bfbfb['item']))continue;if((_0x4a7102[_0x2fefa4]['isAdded']||_0x4a7102[_0x2fefa4]['isAddSuggestion'])&&_0x4a7102[_0x2fefa4-0x1]['isRemoved'])_0x70e90e=_0x4a7102[_0x2fefa4],_0x374920=_0x4a7102[_0x2fefa4-0x1],_0x1e0403=_0x2fefa4-0x1;else{if(!_0x4a7102[_0x2fefa4]['isRemoved']||!_0x4a7102[_0x2fefa4-0x1]['isAdded']&&!_0x4a7102[_0x2fefa4-0x1]['isAddSuggestion'])continue;_0x70e90e=_0x4a7102[_0x2fefa4-0x1],_0x374920=_0x4a7102[_0x2fefa4],_0x1e0403=_0x2fefa4;}const _0x3677f7=_0x70e90e['level']==_0x374920['level'],_0x546bd6=Math['abs'](_0x70e90e['level'])<Math['abs'](_0x374920['level'])&&0x0==_0x374920['distance'];(_0x3677f7||_0x546bd6)&&(_0x3fe779['set'](_0x374920['id'],_0x70e90e['id']),_0x4a7102['splice'](_0x1e0403,0x1),_0x2fefa4--,_0x70e90e['isAdded']=!0x1);}for(let _0x375e14=0x0;_0x375e14<_0x4a7102['length'];_0x375e14++)_0x3fe779['has'](_0x4a7102[_0x375e14]['pairId'])&&(_0x4a7102[_0x375e14]['pairId']=_0x3fe779['get'](_0x4a7102[_0x375e14]['pairId']));}['_removeMissingPairs'](_0x46eaf8){const _0xa3d99b=new Set(_0x46eaf8['map'](_0x39d884=>_0x39d884['id']));for(let _0x9a8ed6=0x0;_0x9a8ed6<_0x46eaf8['length'];_0x9a8ed6++)_0xa3d99b['has'](_0x46eaf8[_0x9a8ed6]['pairId'])||0x0==_0x46eaf8[_0x9a8ed6]['distance']||(_0x46eaf8[_0x9a8ed6]['isIncorrect']=!0x0);return _0x46eaf8['filter'](_0x632dfc=>!_0x632dfc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x51c2d2){const _0x2f5911=new Set();for(let _0x26d0b7=0x0;_0x26d0b7<_0x51c2d2['length'];_0x26d0b7++){if(_0x2f5911['has'](_0x51c2d2[_0x26d0b7]['id'])&&_0x51c2d2[_0x26d0b7]['isRemoved']&&(_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0),_0x51c2d2[_0x26d0b7]['isIncorrect'])continue;if(0x0==_0x51c2d2[_0x26d0b7]['distance'])continue;if('elementStart'!=_0x51c2d2[_0x26d0b7]['type'])continue;if(null==_0x51c2d2[_0x26d0b7]['pairId'])continue;let _0x5e2a82=_0x26d0b7+0x1,_0x3c4d53=0x0;for(;_0x51c2d2[_0x5e2a82]['id']!=_0x51c2d2[_0x26d0b7]['pairId'];)'elementStart'==_0x51c2d2[_0x5e2a82]['type']?_0x3c4d53++:'elementEnd'==_0x51c2d2[_0x5e2a82]['type']&&_0x3c4d53--,_0x5e2a82++;if(0x0!=_0x3c4d53){if(_0x51c2d2[_0x26d0b7]['isRemoved'])_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0;else{for(;_0x5e2a82!=_0x26d0b7;)_0x51c2d2[_0x5e2a82]['isRemoved']&&0x0!=_0x51c2d2[_0x5e2a82]['distance']&&(_0x51c2d2[_0x5e2a82]['isIncorrect']=!0x0,_0x2f5911['add'](_0x51c2d2[_0x5e2a82]['pairId'])),_0x5e2a82--;}}}return _0x51c2d2['filter'](_0x27599e=>!_0x27599e['isIncorrect']);}['_removeUnsupportedChanges'](_0x56ef81){const _0x4ef10d=this['editor']['model']['schema'];for(let _0x492302=0x0;_0x492302<_0x56ef81['length'];_0x492302++){if(!(_0x56ef81[_0x492302]['isAdded']||_0x56ef81[_0x492302]['isAddSuggestion']||_0x56ef81[_0x492302]['isRemoved']||_0x56ef81[_0x492302]['isRemoveSuggestion']))continue;if(0x0==_0x56ef81[_0x492302]['distance'])continue;const _0x5b9c7d=_0x56ef81[_0x492302]['item'];_0x4ef10d['isBlock'](_0x5b9c7d)||_0x4ef10d['isLimit'](_0x5b9c7d)||(_0x56ef81[_0x492302]['isAdded']&&delete _0x56ef81[_0x492302]['isAdded'],_0x56ef81[_0x492302]['isAddSuggestion']&&delete _0x56ef81[_0x492302]['isAddSuggestion'],_0x56ef81[_0x492302]['isRemoveSuggestion']&&delete _0x56ef81[_0x492302]['isRemoveSuggestion'],_0x56ef81[_0x492302]['isRemoved']&&(_0x56ef81[_0x492302]['isIncorrect']=!0x0));}return _0x56ef81['filter'](_0x58b676=>!_0x58b676['isIncorrect']);}['_makeModelFromTape'](_0x538320,_0x1cb4eb,_0x315ef0){const _0x3a4dd8=new vt(),_0x37a1b7=[],_0x8f7e7=new Map(),_0x26a505=this['editor']['model'],_0x4d3951=_0x26a505['schema'],_0x64e6c7=[_0x3a4dd8],_0x1707b8={},_0x36ef85={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x83f2b8=null;const _0x210d28=[0x0];for(let _0x40f7f9=0x0;_0x40f7f9<_0x538320['length'];_0x40f7f9++)if('elementStart'===_0x538320[_0x40f7f9]['type']){_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);const _0x3523fd=new ut(_0x538320[_0x40f7f9]['item']['name'],_0x538320[_0x40f7f9]['item']['getAttributes']());_0x64e6c7[0x0]['_appendChild'](_0x3523fd),_0x210d28['push'](0x0),_0x64e6c7['unshift'](_0x3523fd),_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);}else'elementEnd'===_0x538320[_0x40f7f9]['type']?(_0x64e6c7['shift'](),_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x210d28['pop'](),_0x210d28[_0x210d28['length']-0x1]++,_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28)):(_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x83f2b8?_0x83f2b8['_data']+=_0x538320[_0x40f7f9]['item']['data']:_0x83f2b8=new gt(_0x538320[_0x40f7f9]['item']['data'],_0x538320[_0x40f7f9]['item']['getAttributes']()),_0x538320[_0x40f7f9+0x1]&&'text'===_0x538320[_0x40f7f9+0x1]['type']&&_0x5a1477(_0x83f2b8,_0x538320[_0x40f7f9+0x1]['item'])||(_0x64e6c7[0x0]['_appendChild'](_0x83f2b8),_0x83f2b8=null),_0x210d28[_0x210d28['length']-0x1]+=_0x538320[_0x40f7f9]['item']['offsetSize'],_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28));for(let _0x5aa9ee=0x0;_0x5aa9ee<_0x538320['length'];_0x5aa9ee++){const _0x439e1e=_0x538320[_0x5aa9ee]['previousPosition'],_0x240f05=_0x538320[_0x5aa9ee]['nextPosition'];for(const _0x27bcb8 of _0x538320[_0x5aa9ee]['markersStart'])_0x8f7e7['set'](_0x27bcb8,{'start':_0x439e1e,'end':null});_0xbf2be1('isRemoveSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAddSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isRemoved',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAdded',_0x5aa9ee,_0x439e1e,_0x240f05);for(const _0x3888fc of _0x538320[_0x5aa9ee]['markersEnd']){const _0xf2c2da=_0x8f7e7['get'](_0x3888fc);_0xf2c2da?_0xf2c2da['end']=_0x240f05:_0x8f7e7['set'](_0x3888fc,{'start':_0x240f05,'end':_0x240f05});}}for(const [_0x178a30,_0x3f507f]of _0x8f7e7){const _0x55e126=this['editor']['model']['createRange'](_0x3f507f['start'],_0x3f507f['end']);_0x3a4dd8['markers']['set'](_0x178a30,_0x55e126);}return _0x37a1b7['sort']((_0x4d09e8,_0x58c1a2)=>{const _0x43575a=_0x3a4dd8['markers']['get']('revision:'+_0x4d09e8['id']),_0x59023e=_0x3a4dd8['markers']['get']('revision:'+_0x58c1a2['id']);return _0x43575a['start']['isBefore'](_0x59023e['start'])?-0x1:_0x43575a['start']['isAfter'](_0x59023e['start'])?0x1:_0x43575a['end']['isBefore'](_0x59023e['end'])?-0x1:_0x43575a['end']['isAfter'](_0x59023e['end'])?0x1:'add'===_0x4d09e8['type']?-0x1:0x1;}),{'root':_0x3a4dd8,'changes':_0x37a1b7};function _0xbf2be1(_0x2245a1,_0x197de9,_0x5c4ed0,_0x702007){const _0x4745a8=!!_0x538320[_0x197de9][_0x2245a1],_0x52e1bc=_0x4745a8?_0x538320[_0x197de9][_0x2245a1]['userId']:null,_0x5a7a28=_0x197de9===_0x538320['length']-0x1,_0x5e517e=_0x36ef85[_0x2245a1][0x0],_0x35c574=_0x4d3951['isObject'](_0x538320[_0x197de9]['item']);!_0x1707b8[_0x2245a1]&&_0x4745a8?_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}:_0x1707b8[_0x2245a1]&&!_0x4745a8?(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null):_0x1707b8[_0x2245a1]&&_0x4745a8&&_0x1707b8[_0x2245a1]['userId']!==_0x52e1bc&&(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x5e517e&&_0x5e517e['userId']===_0x1707b8[_0x2245a1]['userId']||_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}),_0x1707b8[_0x2245a1]&&_0x35c574&&('elementStart'!==_0x538320[_0x197de9]['type']||_0x5e517e&&_0x5e517e['userId']===_0x52e1bc||_0x36ef85[_0x2245a1]['unshift']({'userId':_0x52e1bc,'object':_0x538320[_0x197de9]['item'],'change':_0x1707b8[_0x2245a1]}),'elementEnd'===_0x538320[_0x197de9]['type']&&_0x5e517e&&_0x5e517e['object']===_0x538320[_0x197de9]['item']&&(_0x36ef85[_0x2245a1]['shift'](),_0x1707b8[_0x2245a1]=_0x5e517e['change'])),_0x1707b8[_0x2245a1]&&_0x5a7a28&&(_0x1707b8[_0x2245a1]['end']=_0x702007,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null);}function _0x2d1954({start:_0x26b22c,end:_0x5b08eb,tapeItem:_0x2bac61,userId:_0x4b2493,type:_0x6f53be}){const _0x54b3eb=_0x2bac61['item'],_0x212393=_0x26a505['schema']['isBlock'](_0x54b3eb)&&!_0x26a505['schema']['isLimit'](_0x54b3eb),_0x5dd370=_0x26b22c['nodeAfter']==_0x5b08eb['parent']&&_0x5b08eb['isAtStart'];if(_0x212393&&_0x5dd370)return;const _0x31d06a=_0x26a505['createRange'](_0x26b22c,_0x5b08eb),_0x4be777=_0x1cb4eb['get'](_0x4b2493),_0x26cf41=new r({'author':_0x4be777,'type':'isAdded'==_0x6f53be||'isAddSuggestion'==_0x6f53be?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6f53be||'isRemoveSuggestion'==_0x6f53be},'createdAt':new Date(),'rootName':_0x315ef0});_0x37a1b7['push'](_0x26cf41),_0x3a4dd8['markers']['set']('revision:'+_0x26cf41['id'],_0x31d06a);}function _0x5a1477(_0x5c9578,_0x366f70){const _0x2de1bc=_0x5c9578['getAttributes'](),_0x24e443=_0x366f70['getAttributes']();for(const _0x581272 of _0x2de1bc){if(_0x581272[0x1]!==_0x366f70['getAttribute'](_0x581272[0x0]))return!0x1;_0x24e443['next']();}return _0x24e443['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e276=>{const _0x298634=_0x42e276['markerName']['split'](':')[0x1],_0x4868e3=this['_getChangeFromId'](_0x298634);if(!_0x4868e3)return null;const _0x21c094='add'==_0x4868e3['type']?'insertion':'deletion',_0x3b0d35=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21c094];return _0x4868e3['data']['isSuggestion']&&_0x3b0d35['push']('ck-suggestion-marker-'+_0x21c094+'-new'),this['activeChange']==_0x4868e3&&_0x3b0d35['push']('ck-suggestion-marker--active'),{'classes':_0x3b0d35,'attributes':{'data-change-id':_0x298634}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5ce872=>{_0x5ce872['on']('element:pre',(_0x75234a,_0x1e04d8,_0x32cc0b)=>{const _0x24a491=_0x1e04d8['viewItem']['getChild'](0x0);if(!_0x24a491||!_0x24a491['is']('element','code'))return;if(!_0x32cc0b['consumable']['consume'](_0x24a491,{'attributes':['vid_start','vid_end']}))return;const _0x172a5d=_0x1e04d8['modelRange']['start']['nodeAfter'];_0x32cc0b['writer']['setAttribute']('vid_start',_0x24a491['getAttribute']('vid_start'),_0x172a5d),_0x32cc0b['writer']['setAttribute']('vid_end',_0x24a491['getAttribute']('vid_end'),_0x172a5d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xeb0d71=>{_0xeb0d71['on']('element',(_0x55a306,_0x28e4b1,_0x3bc32e)=>{if(!_0x3bc32e['consumable']['consume'](_0x28e4b1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x28e4b1['modelRange']['isCollapsed'])return;const _0x4a1645=_0x28e4b1['modelRange']['start']['nodeAfter'];_0x4a1645['hasAttribute']('vid_start')||_0x4a1645['hasAttribute']('vid')||(_0x3bc32e['writer']['setAttribute']('vid_start',_0x28e4b1['viewItem']['getAttribute']('vid_start'),_0x4a1645),_0x3bc32e['writer']['setAttribute']('vid_end',_0x28e4b1['viewItem']['getAttribute']('vid_end'),_0x4a1645));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x457c8a=>_0x457c8a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4da576,[,_0x582141])=>{['vid_start','vid_end','vid']['includes'](_0x582141)&&(_0x4da576['return']=!0x0,_0x4da576['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6cf283=>{_0x6cf283['on']('attribute:vid',(_0x518853,_0xa23fd2,_0x18016d)=>{if('\x20'!=_0xa23fd2['item']['data']||_0xa23fd2['item']['parent']['maxOffset']>0x1)return;if(!_0x18016d['consumable']['consume'](_0xa23fd2['item'],_0x518853['name']))return;const _0x428709=_0x18016d['writer'],_0x8e271c=_0x18016d['mapper']['toViewRange'](_0xa23fd2['range']);_0x428709['wrap'](_0x8e271c,_0x428709['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3a2ee6){const _0x21ecfa=_0x3a2ee6['plugins']['get']('RevisionViewer');return(_0x5348ff,_0x33bf8a,_0x4bc233)=>{const _0x5c1801=_0x33bf8a['markerName']['split'](':')[0x1],_0x301b4e=_0x21ecfa['_getChangeFromId'](_0x5c1801);if(!_0x301b4e)return null;const _0x56b66e='add'==_0x301b4e['type']?'split':'merge';if(!_0x4bc233['consumable']['test'](_0x33bf8a['markerRange'],_0x5348ff['name']))return;const _0x59ad0d=_0x33bf8a['markerRange']['getWalker'](),_0x41d2e1=_0x33bf8a['markerRange']['start'],_0xacf022=_0x3a2ee6['model']['schema'];let _0x22f6e1=null,_0xf22d45=null,_0xbf4848=!0x1,_0x26f10f=!0x1;for(const _0x431bba of _0x59ad0d){const _0x42fe00=_0x431bba['item'];_0xbf4848=_0xbf4848||_0xacf022['isContent'](_0x42fe00);const _0x5c3f14=_0x4bc233['mapper']['toViewElement'](_0x42fe00);if(_0x5c3f14&&_0x5c3f14['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x431bba['type']&&(_0xacf022['isBlock'](_0x42fe00)&&!_0xacf022['isLimit'](_0x42fe00)&&(_0x42fe00['nextSibling']||_0x41d2e1['isAtEnd']?_0x22f6e1&&_0x22f6e1['parent']==_0x42fe00||(_0x22f6e1=_0x42fe00,_0x5e98e3(_0x431bba['previousPosition']),_0x26f10f=!0x0):_0xf22d45=_0xf22d45||_0x431bba['previousPosition']));}function _0x5e98e3(_0x561f3e){const _0x1e7631=_0x4bc233['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56b66e}),_0x531541=_0x4bc233['mapper']['toViewPosition'](_0x561f3e);_0x301b4e['data']['isSuggestion']&&_0x4bc233['writer']['addClass']('ck-suggestion-marker-'+_0x56b66e+'-new',_0x1e7631),_0x21ecfa['activeChange']==_0x301b4e&&_0x4bc233['writer']['addClass']('ck-suggestion-marker--active',_0x1e7631),_0x4bc233['writer']['insert'](_0x531541,_0x1e7631),_0x4bc233['mapper']['bindElementToMarker'](_0x1e7631,_0x33bf8a['markerName']);}_0xbf4848||_0x26f10f||!_0xf22d45||_0x5e98e3(_0xf22d45);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xcce3bf,_0x100c5c,_0x54240d)=>{const _0x1c88c0=_0x54240d['mapper']['markerNameToElements'](_0x100c5c['markerName']);if(_0x1c88c0){for(const _0x4eb9b5 of _0x1c88c0)(_0x4eb9b5['hasClass']('ck-suggestion-marker-split')||_0x4eb9b5['hasClass']('ck-suggestion-marker-merge'))&&(_0x54240d['mapper']['unbindElementFromMarkerName'](_0x4eb9b5,_0x100c5c['markerName']),_0x54240d['writer']['remove'](_0x4eb9b5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd6d18d,_0xa02e5f,_0x1f83d2)=>{const _0x279ca5=_0xa02e5f['markerName']['split'](':')[0x1],_0x332b7e=this['_getChangeFromId'](_0x279ca5);if(!_0x332b7e)return null;const _0x1b30c2='add'==_0x332b7e['type']?'split':'merge';if(_0x1f83d2['consumable']['test'](_0xa02e5f['markerRange'],_0xd6d18d['name']))for(const _0x41ede1 of _0xa02e5f['markerRange']['getItems']()){if(!_0x41ede1['is']('element','softBreak'))continue;const _0x3a15c6=_0x1f83d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b30c2}),_0x44d433=_0x1f83d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x41ede1));_0x332b7e['data']['isSuggestion']&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker-'+_0x1b30c2+'-new',_0x3a15c6),this['activeChange']==_0x332b7e&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker--active',_0x3a15c6),_0x1f83d2['writer']['insert'](_0x44d433,_0x3a15c6),_0x1f83d2['mapper']['bindElementToMarker'](_0x3a15c6,_0xa02e5f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x19743b=>{for(const _0xfceba8 of this['editor']['model']['document']['getRootNames']()){const _0xf1b70e=this['editor']['model']['document']['getRoot'](_0xfceba8),_0xf9274=this['editor']['editing']['view']['document']['getRoot'](_0xfceba8);if(_0xf9274){const _0x2bf3a3=_0xf1b70e['getAttribute']('revisionHistoryAttachChange');if(_0x19743b['removeAttribute']('data-change-id',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-add',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-remove',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root--active',_0xf9274),_0x2bf3a3){const _0x1986ba=this['_getChangeFromId'](_0x2bf3a3);if(!_0x1986ba)return null;_0x19743b['setAttribute']('data-change-id',_0x2bf3a3,_0xf9274),_0x19743b['addClass']('ck-revision-history-root-'+_0x1986ba['type'],_0xf9274),this['activeChange']==_0x1986ba&&_0x19743b['addClass']('ck-revision-history-root--active',_0xf9274);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x128dac=>'revision-comment:'+_0x128dac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b87c5=>'revision-suggestion:'+_0x3b87c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x103e96=>({'name':'suggestion:'+_0x103e96,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x24a910=>{const _0x1a3de5=_0x24a910['markerName']['split'](':')[0x1];return'insertion'!=_0x1a3de5&&'deletion'!=_0x1a3de5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a3de5]};}}),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',(_0x85ba7e,_0x4ca2a6,_0x2ec598)=>{const _0x145893=_0x2ec598['mapper']['markerNameToElements'](_0x4ca2a6['markerName']);if(_0x145893){for(const _0x454688 of _0x145893)_0x454688['is']('uiElement')&&(_0x2ec598['mapper']['unbindElementFromMarkerName'](_0x454688,_0x4ca2a6['markerName']),_0x2ec598['writer']['remove'](_0x454688));}},{'priority':'high'});}['_getChangeFromId'](_0x24e5dd){return this['_changeIdToChange']['get'](_0x24e5dd);}['_getViewForChange'](_0x1ce054){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1ce054),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8af1f5,_0x1bdae6,_0x26eec,_0x53c24d)=>{_0x53c24d&&this['_balloon']['remove'](_0x53c24d),_0x26eec&&(this['_balloon']['add']({'view':_0x26eec,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x98b21c=this['editor']['editing'],_0x3166a4=this['_getChangeFromId'](_0x26eec['changeId']);let _0x1d4c60;if(_0x3166a4['data']['isOnRoot']){const _0x23e2bb=_0x98b21c['view']['getDomRoot'](_0x3166a4['rootName']);_0x1d4c60=Array['from'](_0x23e2bb['getClientRects']());}else{const _0x30720c=this['editor']['model']['markers']['get']('revision:'+_0x26eec['changeId']);_0x1d4c60=Array['from'](_0x98b21c['mapper']['markerNameToElements'](_0x30720c['name']))['map'](_0x419d0d=>_0x98b21c['view']['domConverter']['mapViewToDom'](_0x419d0d))['map'](_0x3bef20=>Array['from'](_0x3bef20['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1d4c60[0x0];return _0x1d4c60['find'](_0x440793=>_0x440793['top']-0x3<=this['_activeViewTarget']['y']&&_0x440793['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x440793['left']-0x3<=this['_activeViewTarget']['x']&&_0x440793['right']+0x3>=this['_activeViewTarget']['x'])||_0x1d4c60[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3cbeae,_0x36732b,_0x205d8b,_0x22ba27)=>{this['activeView']=_0x205d8b?this['_getViewForChange'](_0x205d8b):null,this['editor']['model']['change'](()=>{const _0x4e6be1=this['editor']['editing'];_0x22ba27&&(_0x22ba27['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x16311d=>{_0x16311d['removeClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x22ba27['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x22ba27['id'])),_0x205d8b&&(_0x205d8b['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x355b75=>{_0x355b75['addClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x205d8b['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x205d8b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x113518,_0x140f13)=>{if(this['activeChange'])return;const _0x5affa1=this['_findChangeIdFromDomTarget'](_0x140f13['target']),_0x3e0989=this['_changeIdToChange']['get'](_0x5affa1);_0x3e0989?(this['_activeViewTarget']={'x':_0x140f13['domEvent']['x'],'y':_0x140f13['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3e0989)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3c5475,_0x32e0d8)=>{const _0x5519dd=this['_findChangeIdFromDomTarget'](_0x32e0d8['target']),_0xbd8a92=this['_changeIdToChange']['get'](_0x5519dd);_0xbd8a92?(this['_activeViewTarget']={'x':_0x32e0d8['domEvent']['x'],'y':_0x32e0d8['domEvent']['y']},_0xbd8a92===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xbd8a92):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x405e9f){do{const _0x4408a9=_0x405e9f['getAttribute']('data-change-id');if(_0x4408a9)return _0x4408a9;_0x405e9f=_0x405e9f['parent'];}while(_0x405e9f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45ec8d=>{for(const _0x4459f2 of this['editor']['model']['markers'])_0x45ec8d['removeMarker'](_0x4459f2);});}}function X(_0x36252d,_0xf4b222){return(_0x3a2243,_0x55e88d,_0x5d4158)=>{if(!_0x5d4158['consumable']['test'](_0x55e88d['markerRange'],_0x3a2243['name']))return;const _0x3dd49a=_0x55e88d['markerRange']['getWalker'](),_0x301eb9=_0x55e88d['markerRange']['start'],_0xf1b48=_0x36252d['model']['schema'];let _0x17936b=null,_0x2ae2d7=null,_0x256b3e=!0x1,_0xe9eaca=!0x1;for(const _0x4b6e4 of _0x3dd49a){const _0x4bdaa8=_0x4b6e4['item'];_0x256b3e=_0x256b3e||_0xf1b48['isContent'](_0x4bdaa8);const _0x1ac16c=_0x5d4158['mapper']['toViewElement'](_0x4bdaa8);if(_0x1ac16c&&_0x1ac16c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b6e4['type']&&(_0xf1b48['isBlock'](_0x4bdaa8)&&!_0xf1b48['isLimit'](_0x4bdaa8)&&(_0x4bdaa8['nextSibling']||_0x301eb9['isAtEnd']?_0x17936b&&_0x17936b['parent']==_0x4bdaa8||(_0x17936b=_0x4bdaa8,_0x15b53a(_0x4b6e4['previousPosition']),_0xe9eaca=!0x0):_0x2ae2d7=_0x2ae2d7||_0x4b6e4['previousPosition']));}function _0x15b53a(_0x38c30a){const _0x1cedd7=_0x5d4158['mapper']['toViewPosition'](_0x38c30a),_0x456012=_0x5d4158['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf4b222});_0x5d4158['writer']['insert'](_0x1cedd7,_0x456012),_0x5d4158['mapper']['bindElementToMarker'](_0x456012,_0x55e88d['markerName']);}_0x256b3e||_0xe9eaca||!_0x2ae2d7||_0x15b53a(_0x2ae2d7);};}class mt extends _0x2a06ae{constructor(_0x4f86d1){super(_0x4f86d1);const _0x15c3f8=_0x4f86d1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x15c3f8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x15c3f8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ae506=this['editor'],_0x2fe020=_0x5ae506['plugins']['get'](m),_0x544551=_0x2fe020['isReady']?_0x2fe020['diff']['newRevisionId']:null;_0x5ae506['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x544551);}['refresh'](){const {isReady:_0x19763c,isEnabled:_0x466f9f,repository:_0x2b4c59,diff:_0x491918}=this['editor']['plugins']['get'](m),_0x4a44c9=_0x491918&&_0x2b4c59['getLaterVisibleRevision'](_0x491918['newRevisionId']);this['isEnabled']=_0x19763c&&_0x466f9f&&Boolean(_0x4a44c9);}}class wt extends _0x2a06ae{['_step'];constructor(_0x379e79,{direction:_0x2a040e}){super(_0x379e79);const _0x4bf289=_0x379e79['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2a040e?0x1:-0x1,this['listenTo'](_0x4bf289,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38598e=this['editor'],_0x5a86bf=_0x38598e['plugins']['get'](m),{isNavigationMode:_0x23871b,currentChangeNumber:_0x3b77df}=_0x5a86bf;let _0x5cf56e;if(_0x5a86bf['activeChange']=_0x23871b?_0x5a86bf['diff']['changes']['get'](_0x3b77df+this['_step']):_0x5a86bf['diff']['changes']['first'],_0x5a86bf['activeChange']['data']['isOnRoot'])_0x5cf56e=_0x38598e['editing']['view']['getDomRoot'](_0x5a86bf['activeChange']['rootName']);else{const _0x5b8046=_0x38598e['model']['markers']['get']('revision:'+_0x5a86bf['activeChange']['id']);_0x5cf56e=_0x5dbfca(_0x38598e['editing'],_0x5b8046);}_0x5d9a0a({'target':_0x5cf56e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11cc68,currentChangeNumber:_0x5f3a45,numberOfChanges:_0x330ba9,isReady:_0x44d526,isEnabled:_0x5bc334}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x5bc334&&_0x44d526&&_0x330ba9)&&(!_0x11cc68||(0x1===this['_step']?_0x5f3a45<_0x330ba9-0x1:_0x5f3a45>0x0));}}class _i extends ts{constructor(_0x19cd30){super(_0x19cd30);const _0x3c60d8=this['bindTemplate'],_0x3f187a=new te(_0x19cd30),_0x42133d=new te(_0x19cd30);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',(_0x37fd22,_0x1164ce)=>_0x37fd22&&_0x1164ce>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x47fcda,_0x4f4965,_0x4cc8b9,_0x26a802)=>{if(!_0x47fcda)return g(_0x19cd30,'Loading...');if(!_0x4cc8b9)return g(_0x19cd30,'No\x20changes');const _0x392937=g(_0x19cd30,'NUMBER_OF_CHANGES',_0x4cc8b9);return _0x26a802?g(_0x19cd30,'X_OF_Y_CHANGES',[_0x4f4965+0x1,_0x4cc8b9]):_0x392937;}),_0x3f187a['set']({'label':g(_0x19cd30,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x19d9b9}),_0x42133d['set']({'label':g(_0x19cd30,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x44f056}),_0x3f187a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x42133d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f187a['on']('execute',()=>this['fire']('execute','backward')),_0x42133d['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',_0x3c60d8['if']('_isStatusLabelVisible','ck-hidden',_0x2c0600=>!_0x2c0600)]},'children':[{'text':_0x3c60d8['to']('isNavigationMode',_0x2acd4c=>_0x2acd4c?g(_0x19cd30,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x19cd30,'Total')+':\x20')}]},{'text':_0x3c60d8['to']('_statusText')}]},new _0x114a41(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f187a,_0x42133d]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x149b28{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46deb7=this['editor']['editing']['view'];_0x46deb7['change'](_0x39f7cb=>{for(const _0x5a9757 of _0x46deb7['document']['roots'])_0x39f7cb['addClass'](le,_0x5a9757);});}['hide'](){const _0x1e3589=this['editor']['editing']['view'];_0x1e3589['change'](_0x253e79=>{for(const _0x8eb99a of _0x1e3589['document']['roots'])_0x253e79['removeClass'](le,_0x8eb99a);});}}class R extends _0x149b28{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x556deb=this['editor'],_0x2d0749=_0x556deb['plugins']['get'](m),_0x220d75=_0x556deb['plugins']['get'](ge);_0x556deb['ui']['componentFactory']['add']('exitToEditing',_0x33be0b=>{const _0x1c95db=new te(_0x33be0b);return _0x1c95db['set']({'label':g(_0x33be0b,'Back\x20to\x20editing'),'icon':_0x58cf49,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1c95db,'execute',()=>{_0x556deb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1c95db;}),_0x556deb['ui']['componentFactory']['add']('restoreRevision',_0x3dd955=>{const _0x305cd8=new te(_0x3dd955);return _0x305cd8['set']({'label':g(_0x3dd955,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x305cd8['bind']('isEnabled')['to'](_0x556deb['commands']['get']('restoreRevision')),this['listenTo'](_0x305cd8,'execute',()=>_0x556deb['execute']('restoreRevision')),_0x305cd8;}),_0x556deb['ui']['componentFactory']['add']('changesNavigation',_0x190cc9=>{const _0x30cb1e=new _i(_0x190cc9),_0x3044aa=_0x556deb['commands']['get']('showPreviousChange'),_0x59566c=_0x556deb['commands']['get']('showNextChange');return _0x30cb1e['bind']('isBackwardNavigationEnabled')['to'](_0x3044aa,'isEnabled'),_0x30cb1e['bind']('isForwardNavigationEnabled')['to'](_0x59566c,'isEnabled'),_0x30cb1e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d0749),this['listenTo'](_0x30cb1e,'execute',(_0x25f81f,_0x4f639e)=>{_0x556deb['execute']('forward'===_0x4f639e?'showNextChange':'showPreviousChange');}),_0x30cb1e;}),_0x220d75['show'](),_0x2d0749['on']('change:isReady',(_0x70b489,_0x1968b9,_0x18f0e8)=>{_0x18f0e8?_0x220d75['hide']():_0x220d75['show']();});}}class at extends _0x256e64{['_resizeObserver']=null;constructor(_0x5713ce,_0x58f1c2){super(_0x5713ce,_0x58f1c2);const _0x2cfa55=this['bindTemplate'];this['set']({'label':g(_0x5713ce,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5713ce,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2cfa55['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 _0x2e3c8e=this['fieldView']['element'];this['_tooltipString']=_0x2e3c8e['scrollWidth']>_0x2e3c8e['clientWidth']&&_0x2e3c8e['value']||'';}}class si extends ts{constructor(_0x349ff5,_0xb417c,_0x3d3a84){super(_0x349ff5);const _0xd1c2a4=new _0x418e0a();_0xd1c2a4['set']({'content':_0xe5b4b4,'viewBox':'0\x200\x2011\x2010'});const _0x1e2b9c=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3a84&&_0x1e2b9c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x400eb9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x349ff5,_0x3d3a84?'Revision\x20creator':'Revision\x20author')},'children':[_0xd1c2a4,_0xb417c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1e2b9c},'children':_0x400eb9});}}function oi(_0x2abfeb,_0x25a06b){const _0x30c9b2=_0x2abfeb['bindTemplate'],_0x1c986d=_0x2abfeb['locale'],_0x1c69ae=_0x3c0c02(_0x1c986d);_0x1c69ae['panelPosition']='sw';const _0x3a595b=function(_0xbac91e,_0x14d689){const _0x2d3d79=function(_0x273c79,_0x5ee27f){const _0x431d8c=_0x273c79['locale'],_0x260df1={'Compare\x20against\x20selected':g(_0x431d8c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x431d8c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x431d8c,'Restore\x20this\x20revision')};return _0x5ee27f['map'](_0x2c79a3=>{const _0x5b1317=_0x260df1[_0x2c79a3['name']];return _0x5b1317&&_0x5b1317!==_0x2c79a3['name']&&(_0x2c79a3['name']=_0x5b1317),_0x2c79a3;});}(_0xbac91e,_0x14d689),_0x2f09b9=new _0x3fcc51();for(const _0x34010f of _0x2d3d79){const _0x298e17={'type':'button','model':new to({'label':_0x34010f['name'],'class':_0x34010f['class'],'withText':!0x0,'role':'menuitem','_action':_0x34010f['action']})};_0x298e17['model']['bind']('isEnabled')['to'](_0xbac91e,'isActionsDropdownOpen',_0x48f951=>'function'!=typeof _0x34010f['isEnabled']||(!_0x48f951||_0x34010f['isEnabled'](_0xbac91e))),_0x2f09b9['add'](_0x298e17);}return _0x2f09b9;}(_0x2abfeb,_0x25a06b);return _0x2abfeb['bind']('isActionsDropdownOpen')['to'](_0x1c69ae,'isOpen'),_0x1c69ae['buttonView']['set']({'label':g(_0x1c986d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28c0d7}),_0x1c69ae['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x30c9b2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x30c9b2['to'](_0x3b684b=>_0x3b684b['stopPropagation']())}}),_0x1c69ae['on']('execute',_0x193747=>{_0x2abfeb['isReady']&&'function'==typeof _0x193747['source']['_action']&&_0x193747['source']['_action'](_0x2abfeb);}),_0x2ce9a1(_0x1c69ae,_0x3a595b,{'role':'menu'}),_0x1c69ae['listenTo'](_0x2abfeb,'change:isActionsDropdownOpen',(_0x40baa3,_0x525df7,_0x3bb58d)=>{if(_0x3bb58d)for(const _0x27be87 of _0x1c69ae['listView']['items']){const _0x369ca1=_0x27be87['children']['first'],_0x594d7f=_0x25a06b['find'](_0x1d6699=>_0x1d6699['action']===_0x369ca1['_action'])['isVisible'];_0x27be87['isVisible']=void 0x0===_0x594d7f||_0x594d7f(_0x2abfeb);}}),_0x1c69ae;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x58c48e,uid as _0x488afd,Collection as _0x4419cc,logWarning as _0x31fe21,FocusTracker as _0x82470a,KeystrokeHandler as _0x35e91d,scrollViewportToShowTarget as _0x27def4,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x1065a6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4631d1,set as _0x48f215,unset as _0xac9e88,isEqual as _0x244206}from'es-toolkit/compat';import{Plugin as _0x3f2981,PendingActions as _0x1b5502,Command as _0x206a38,ElementApiMixin as _0xf04e0d,Editor as _0x26f9dc}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2f8fb9,getMarkerDomElement as _0x3238b7,ConfirmMixin as _0x157757,sanitizeEditorConfig as _0x12d3c4}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4ed95e,ViewAttributeElement as _0x42afb0,ViewEmptyElement as _0x5e0b07,ViewRawElement as _0x3af5e8,ViewUIElement as _0x5a13dc,ViewDocumentFragment as _0xc287ed,ViewText as _0x4757dc,ViewElement as _0xf31048,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x184d1b,IconChevronUp as _0x351ec1,IconChevronDown as _0x182f02,IconUndo as te,IconUser as _0x3b361c,IconThreeVerticalDots as _0x38ab36}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1792c1,injectCssTransitionDisabler as ts,submitHandler as _0x44053f,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x542f9c,ListView as _0x5142bf,ListItemView as _0x5acfd9,ButtonView as _0x1abc3e,MenuBarMenuView as _0x106d50,MenuBarMenuListView as _0x5c1d2b,MenuBarMenuListItemView as _0x1afdb1,MenuBarMenuListItemButtonView as _0x3eef0c,ContextualBalloon as _0x191e0,ToolbarSeparatorView as _0xea1f65,IconView as _0x184ac0,addListToDropdown as _0x1b9e98,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 _0x28e6bf}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x58c48e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x279e12){super(),this['id']=_0x279e12['id']||_0x488afd(),this['creator']=_0x279e12['creator']||null,this['authors']=_0x279e12['authors']||[],this['diffData']=_0x279e12['diffData']||null,this['toVersion']=_0x279e12['toVersion']||0x0,this['fromVersion']=_0x279e12['fromVersion']||0x0,this['set']('name',_0x279e12['name']||''),this['set']('createdAt',_0x279e12['createdAt']||new Date()),this['set']('attributes',_0x279e12['attributes']||{});}['setName'](_0x1bf047){this['_update']({'name':_0x1bf047});}['setAttribute'](_0x3a8f67,_0xd3175c){const _0xb2e790=_0x4631d1(this['attributes']);_0x48f215(_0xb2e790,_0x3a8f67,_0xd3175c),this['_update']({'attributes':_0xb2e790});}['removeAttribute'](_0x1a5a73){const _0x3682c8=_0x4631d1(this['attributes']);_0xac9e88(_0x3682c8,_0x1a5a73),this['_update']({'attributes':_0x3682c8});}['_update'](_0x22cc22,_0x5572be=!0x1){let _0xaceb8c=!0x1;const _0x17ea66={'id':this['id']},_0x47e1ac=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x297898 of _0x47e1ac){const _0x4a9de4=_0x22cc22[_0x297898];void 0x0!==_0x4a9de4&&_0x4a9de4!==this[_0x297898]&&(this[_0x297898]=_0x4a9de4,_0x17ea66[_0x297898]=_0x4a9de4,_0xaceb8c=!0x0);}_0xaceb8c&&(_0x17ea66['authors']&&(_0x17ea66['authorsIds']=_0x17ea66['authors']['map'](_0x1583b8=>_0x1583b8['id']),delete _0x17ea66['authors']),this['fire']('_update',_0x17ea66,_0x5572be));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59cdf7=>_0x59cdf7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3f2981{['_revisions'];static get['requires'](){return[_0x2f8fb9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x540a37){super(_0x540a37),this['_revisions']=new _0x4419cc();}['afterInit'](){!async function(_0xb73076){const _0x27cd2f=_0x204fdb([0x42,0x41,0x35,0x56,0x5a,0x55,0x38,0x70,0x6d,0x36,0x4d,0x57,0x62,0x71,0x61,0x32,0x73,0x7a,0x64,0x6b,0x43,0x6c,0x78,0x58,0x46,0x30,0x51,0x48,0x49,0x74,0x52,0x31,0x67,0x54,0x6e,0x4a,0x44,0x37,0x69,0x4e,0x6f,0x75,0x6a,0x4f,0x47,0x33,0x63,0x68,0x77,0x66,0x65,0x59,0x39,0x4c,0x72,0x4b,0x34,0x76,0x45,0x79,0x53,0x50]),_0x4e5e0=0xeb829,_0x552a11=0x6ca2974b,_0x5d5452=0x6ca5f313^_0x552a11,_0x2c7e8d=window[_0x204fdb([0x44,0x61,0x74,0x65])][_0x204fdb([0x6e,0x6f,0x77])](),_0x244159=_0xb73076[_0x204fdb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x341c72=new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5090f8=>{_0x244159[_0x204fdb([0x6f,0x6e,0x63,0x65])](_0x204fdb([0x72,0x65,0x61,0x64,0x79]),_0x5090f8);}),_0x4ed8d6={[_0x204fdb([0x6b,0x74,0x79])]:_0x204fdb([0x45,0x43]),[_0x204fdb([0x75,0x73,0x65])]:_0x204fdb([0x73,0x69,0x67]),[_0x204fdb([0x63,0x72,0x76])]:_0x204fdb([0x50,0x2d,0x32,0x35,0x36]),[_0x204fdb([0x78])]:_0x204fdb([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]),[_0x204fdb([0x79])]:_0x204fdb([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]),[_0x204fdb([0x61,0x6c,0x67])]:_0x204fdb([0x45,0x53,0x32,0x35,0x36])},_0x4e7295=_0x244159[_0x204fdb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x204fdb([0x67,0x65,0x74])](_0x204fdb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x467916(){let _0x481c83,_0x1af809=null,_0xd7f97d=null;try{if(_0x4e7295==_0x204fdb([0x47,0x50,0x4c]))return _0x204fdb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x481c83=_0x468187(),!_0x481c83)return _0x204fdb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x481c83[_0x204fdb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd7f97d=_0x5e13df(_0x481c83[_0x204fdb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x481c83[_0x204fdb([0x6a,0x74,0x69])])),await _0x14839a()?_0x36e8a1()?_0x4a0c51()?_0x204fdb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3365e4()?(_0x481c83[_0x204fdb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x204fdb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1af809=_0x44e145(_0x204fdb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x481c83[_0x204fdb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x204fdb([0x74,0x72,0x69,0x61,0x6c])&&(_0x1af809=_0x44e145(_0x204fdb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bc108()):_0x204fdb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x204fdb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x204fdb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x201187){return _0x204fdb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0c51(){const _0x47270b=[_0x204fdb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x204fdb([0x74,0x72,0x69,0x61,0x6c])][_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x481c83[_0x204fdb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c7e8d/0x3e8:0xe10*_0x5d5452;return _0x481c83[_0x204fdb([0x65,0x78,0x70])]<_0x47270b;}function _0x36e8a1(){const _0x5b0ca6=_0x481c83[_0x204fdb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5b0ca6)return!0x1;if(_0x5b0ca6[_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x204fdb([0x2a])))return!0x0;if(_0x5b0ca6[_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x204fdb([0x52,0x48])))return!0x0;if(_0x5b0ca6[_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x204fdb([0x52,0x52,0x48]))){if(_0x44a92c())return!0x0;if(_0x477f68()||_0x2bea26())return!0x0;}return!0x1;}function _0x3365e4(){const _0x33dcda=_0x481c83[_0x204fdb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33dcda||0x0==_0x33dcda[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x377e47}=new URL(window[_0x204fdb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33dcda[_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x377e47))return!0x0;const _0x2e1ce3=_0x377e47[_0x204fdb([0x73,0x70,0x6c,0x69,0x74])](_0x204fdb([0x2e]));return _0x33dcda[_0x204fdb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ef22f=>_0x3ef22f[_0x204fdb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x204fdb([0x2a])))[_0x204fdb([0x6d,0x61,0x70])](_0xe08448=>_0xe08448[_0x204fdb([0x73,0x70,0x6c,0x69,0x74])](_0x204fdb([0x2e])))[_0x204fdb([0x73,0x6f,0x6d,0x65])](_0x526b9a=>_0x2e1ce3[_0x204fdb([0x65,0x76,0x65,0x72,0x79])]((_0x44d197,_0x42ae5e)=>_0x526b9a[_0x42ae5e]===_0x44d197||_0x526b9a[_0x42ae5e]===_0x204fdb([0x2a])));}function _0x2bc108(){return _0x1af809&&_0xd7f97d?new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32b060,_0x3b7844)=>{_0x1af809[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x32b060,_0x3b7844),_0xd7f97d[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x1806d0=>{_0x1806d0!=_0x204fdb([0x56,0x61,0x6c,0x69,0x64])&&_0x32b060(_0x1806d0);},_0x3b7844);}):_0x1af809||_0xd7f97d||_0x204fdb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e13df(_0xa035bf,_0x253b11){return new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2956b0=>{if(_0x553345())return _0x2956b0(_0x204fdb([0x56,0x61,0x6c,0x69,0x64]));_0x165604(),_0x244159[_0x204fdb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x204fdb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20b495=!0x1;const _0x20c6e2=_0x488afd();function _0x5e6d5c(_0x452f53){return!!_0x452f53&&(typeof _0x452f53===_0x204fdb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x452f53===_0x204fdb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x452f53[_0x204fdb([0x74,0x68,0x65,0x6e])]===_0x204fdb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x452f53[_0x204fdb([0x63,0x61,0x74,0x63,0x68])]===_0x204fdb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a87de(_0x21521c){_0x345621(_0x21521c)[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x4e2197=>{if(!_0x4e2197||_0x4e2197[_0x204fdb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x204fdb([0x6f,0x6b]))return _0x204fdb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2adf62(_0x146f01(_0x20c6e2+_0x253b11))!=_0x4e2197[_0x204fdb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x204fdb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x204fdb([0x56,0x61,0x6c,0x69,0x64]);})[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x4253b9=>(_0x5b493b(),_0x4253b9),()=>{const _0x5d56d0=_0x493582();return null==_0x5d56d0?(_0x5b493b(),_0x204fdb([0x56,0x61,0x6c,0x69,0x64])):_0x204fdb(_0x2c7e8d-_0x5d56d0>(0x48ae134b^_0x552a11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x2956b0)[_0x204fdb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2956b0(_0x204fdb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x331488=0x6c9479cb^_0x552a11;function _0x5b493b(){const _0x3f103c=_0x204fdb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2adf62(_0x146f01(_0xa035bf)),_0x39e854=_0xd80031(_0x2adf62(window[_0x204fdb([0x4d,0x61,0x74,0x68])][_0x204fdb([0x63,0x65,0x69,0x6c])](_0x2c7e8d/_0x331488)));window[_0x204fdb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x204fdb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f103c,_0x39e854);}function _0x493582(){const _0x22760f=_0x204fdb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2adf62(_0x146f01(_0xa035bf)),_0xa306f9=window[_0x204fdb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x204fdb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22760f);return _0xa306f9?window[_0x204fdb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd80031(_0xa306f9),0x10)*_0x331488:null;}function _0x345621(_0x18e128){return new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35f4d9,_0x4bfb18)=>{_0x18e128[_0x204fdb([0x74,0x68,0x65,0x6e])](_0x35f4d9,_0x4bfb18),window[_0x204fdb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bfb18,0x6ca3438b^_0x552a11);});}}_0x244159[_0x204fdb([0x6f,0x6e])](_0x204fdb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3552a6,_0x5554f9)=>{if(_0x5554f9[0x0]!=_0xa035bf)return _0x2956b0(_0x204fdb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5554f9[0x1]={..._0x5554f9[0x1],[_0x204fdb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20c6e2};},{[_0x204fdb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x204fdb([0x68,0x69,0x67,0x68])}),_0x244159[_0x204fdb([0x6f,0x6e])](_0x204fdb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfe7f7e=>{_0x5e6d5c(_0xfe7f7e[_0x204fdb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20b495=!0x0,_0x5a87de(_0xfe7f7e[_0x204fdb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x204fdb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x204fdb([0x6c,0x6f,0x77])}),_0x341c72[_0x204fdb([0x74,0x68,0x65,0x6e])](()=>{_0x20b495||_0x2956b0(_0x204fdb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x553345(){return _0x244159[_0x204fdb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x204fdb([0x76,0x69,0x65,0x77])][_0x204fdb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x204fdb([0x61,0x75,0x74,0x6f]);}function _0x165604(){_0x244159[_0x204fdb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x204fdb([0x76,0x69,0x65,0x77])][_0x204fdb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x204fdb([0x61,0x75,0x74,0x6f]);}}function _0x44e145(_0x22d9d3){const _0x91ff6=[new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172bb8=>setTimeout(_0x172bb8,0x6caba987^_0x552a11)),_0x341c72[_0x204fdb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x501f4b=>{const _0x3eb499=0x6ca2974c^_0x552a11,_0x1e3932=_0xb73076[_0x204fdb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x448239(){_0x1e3932[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3eb499&&_0x501f4b();}_0x448239(),_0x1e3932[_0x204fdb([0x6f,0x6e])](_0x204fdb([0x61,0x64,0x64]),_0x448239);})),new window[(_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xada659=>{function _0x2b5b60(){for(const _0x19086a in window)if(window[_0x204fdb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x204fdb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x19086a))&&window[_0x19086a]==_0x4e5e0)return _0xada659();_0x244159[_0x204fdb([0x73,0x74,0x61,0x74,0x65])]!=_0x204fdb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x204fdb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b5b60,0x6ca284c3^_0x552a11);}_0x1a7216(_0x204fdb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2b5b60();})];return window[_0x204fdb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x204fdb([0x72,0x61,0x63,0x65])](_0x91ff6)[_0x204fdb([0x74,0x68,0x65,0x6e])](()=>_0x22d9d3);}async function _0x12677d(){if(await _0x341c72,_0x1a7216(_0x204fdb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x20f5a1=_0xb73076[_0x204fdb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x19f131=_0xb73076[_0x204fdb([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])](_0x20f5a1[_0x204fdb([0x69,0x64])]),_0x109a44=_0x2c4cd9(_0x204fdb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x109a44[_0x204fdb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x20f5a1['id'],_0x19f131?_0x19f131['id']:null,!0x0),_0x109a44[_0x204fdb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x204fdb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x109a44[_0x204fdb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x109a44[_0x204fdb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5b5575,void(_0x109a44[_0x204fdb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5b5575);}if(_0x1a7216(_0x204fdb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x32ef82=_0x2c4cd9(_0x204fdb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x32ef82[_0x204fdb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x204fdb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32ef82[_0x204fdb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32ef82[_0x204fdb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5b5575,_0x32ef82[_0x204fdb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5b5575;}_0x244159[_0x204fdb([0x6d,0x6f,0x64,0x65,0x6c])][_0x204fdb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b5575,_0x244159[_0x204fdb([0x6d,0x6f,0x64,0x65,0x6c])][_0x204fdb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b5575,_0x244159[_0x204fdb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x204fdb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44a92c(){return _0x1a7216(_0x204fdb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c4cd9(_0x204fdb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x204fdb([0x73,0x74,0x61,0x74,0x65])]==_0x204fdb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x477f68(){return _0x1a7216(_0x204fdb([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 _0x2bea26(){return _0x1a7216(_0x204fdb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b1a85(_0xa7b0d9){const _0x3300cb=_0x55dfaf();_0x244159[_0x3300cb]=_0x204fdb([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])+_0xa7b0d9,_0xa7b0d9[_0x204fdb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x204fdb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x55dfaf()]=_0x4e5e0),_0xa7b0d9!=_0x204fdb([0x56,0x61,0x6c,0x69,0x64])&&_0x12677d();}function _0x55dfaf(){const _0x1d438e=window[_0x204fdb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x204fdb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x204fdb([0x6e,0x6f,0x77])]())[_0x204fdb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x204fdb([0x2e]),'');let _0x14cb00=_0x204fdb([0x42]);for(let _0x1ab91a=0x0;_0x1ab91a<_0x1d438e[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ab91a+=0x2){let _0x281dff=window[_0x204fdb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d438e[_0x204fdb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab91a,_0x1ab91a+0x2));_0x281dff>=_0x27cd2f[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x281dff-=_0x27cd2f[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14cb00+=_0x27cd2f[_0x281dff];}return _0x14cb00;}function _0x468187(){const _0x23b331=_0x4e7295[_0x204fdb([0x73,0x70,0x6c,0x69,0x74])](_0x204fdb([0x2e]));if(0x3!=_0x23b331[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e9941(_0x23b331[0x1]);function _0x2e9941(_0x3fe453){const _0x41f192=_0x1dd8ec(_0x3fe453);return _0x41f192&&_0x79d021()?_0x41f192:null;function _0x79d021(){const _0x210775=_0x41f192[_0x204fdb([0x6a,0x74,0x69])],_0x2a3820=window[_0x204fdb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x210775[_0x204fdb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x210775[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a6d7a={..._0x41f192,[_0x204fdb([0x6a,0x74,0x69])]:_0x210775[_0x204fdb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x210775[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a6d7a[_0x204fdb([0x76,0x63])],_0x146f01(_0x1a6d7a)==_0x2a3820;}}}async function _0x14839a(){let _0x1744f9=!0x0;try{const _0x42504a=_0x4e7295[_0x204fdb([0x73,0x70,0x6c,0x69,0x74])](_0x204fdb([0x2e])),[_0x428d3d,_0x32a3d5,_0x55b94c]=_0x42504a;return _0x3c7288(_0x428d3d),await _0x28935e(_0x428d3d,_0x32a3d5,_0x55b94c),_0x1744f9;}catch(_0x2d5c26){return!0x1;}function _0x3c7288(_0x2433dd){const _0x63c80b=_0x1dd8ec(_0x2433dd);_0x63c80b&&_0x63c80b[_0x204fdb([0x61,0x6c,0x67])]==_0x204fdb([0x45,0x53,0x32,0x35,0x36])||(_0x1744f9=!0x1);}async function _0x28935e(_0xe8cc2b,_0x7ebcc2,_0x3beb03){const _0x16e807=window[_0x204fdb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x204fdb([0x66,0x72,0x6f,0x6d])](_0x1d7b34(_0x3beb03),_0x566cd5=>_0x566cd5[_0x204fdb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x214994=new window[(_0x204fdb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x204fdb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe8cc2b+_0x204fdb([0x2e])+_0x7ebcc2),_0x3b9f50=window[_0x204fdb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x204fdb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b9f50)return;const _0x276c0f=await _0x3b9f50[_0x204fdb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x204fdb([0x6a,0x77,0x6b]),_0x4ed8d6,{[_0x204fdb([0x6e,0x61,0x6d,0x65])]:_0x204fdb([0x45,0x43,0x44,0x53,0x41]),[_0x204fdb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x204fdb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x204fdb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b9f50[_0x204fdb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x204fdb([0x6e,0x61,0x6d,0x65])]:_0x204fdb([0x45,0x43,0x44,0x53,0x41]),[_0x204fdb([0x68,0x61,0x73,0x68])]:{[_0x204fdb([0x6e,0x61,0x6d,0x65])]:_0x204fdb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x276c0f,_0x16e807,_0x214994)||(_0x1744f9=!0x1);}}function _0x1dd8ec(_0x550374){return _0x550374[_0x204fdb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x204fdb([0x65,0x79]))?JSON[_0x204fdb([0x70,0x61,0x72,0x73,0x65])](_0x1d7b34(_0x550374)):null;}function _0x1d7b34(_0x100579){return window[_0x204fdb([0x61,0x74,0x6f,0x62])](_0x100579[_0x204fdb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x204fdb([0x2b]))[_0x204fdb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x204fdb([0x2f])));}function _0x146f01(_0x3925ea){let _0x4af4ad=0x1505;function _0x19daf1(_0x1f1438){for(let _0x2f97f7=0x0;_0x2f97f7<_0x1f1438[_0x204fdb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f97f7++){const _0x2e9186=_0x1f1438[_0x204fdb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f97f7);_0x4af4ad=(_0x4af4ad<<0x5)+_0x4af4ad+_0x2e9186,_0x4af4ad&=_0x4af4ad;}}function _0x335a07(_0x19b29d){Array[_0x204fdb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19b29d)?_0x19b29d[_0x204fdb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x335a07):_0x19b29d&&typeof _0x19b29d==_0x204fdb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x204fdb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19b29d)[_0x204fdb([0x73,0x6f,0x72,0x74])]()[_0x204fdb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49c1d9,_0x1d6490])=>{_0x19daf1(_0x49c1d9),_0x335a07(_0x1d6490);}):_0x19daf1(window[_0x204fdb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19b29d));}return _0x335a07(_0x3925ea),_0x4af4ad>>>0x0;}function _0x2adf62(_0x2191c6){return _0x2191c6[_0x204fdb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x204fdb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x204fdb([0x30]));}function _0xd80031(_0xb12fee){return _0xb12fee[_0x204fdb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x204fdb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x204fdb([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a7216(_0x364941){return _0x244159[_0x204fdb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x204fdb([0x68,0x61,0x73])](_0x364941);}function _0x2c4cd9(_0x504e5d){return _0x244159[_0x204fdb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x204fdb([0x67,0x65,0x74])](_0x504e5d);}function _0x5b5575(){}function _0x204fdb(_0x57b214){return _0x57b214['map'](_0x1a0ce9=>String['fromCharCode'](_0x1a0ce9))['join']('');}_0x2b1a85(await _0x467916());}(this);}['createRevision'](_0x4fc3d5){const _0x239d7e=this['editor']['plugins']['get']('Users');return new h({'id':_0x4fc3d5['id'],'name':_0x4fc3d5['name'],'creator':_0x4fc3d5['creatorId']?_0x239d7e['getUser'](_0x4fc3d5['creatorId']):null,'diffData':_0x4fc3d5['diffData']||_0x4fc3d5['data'],'authors':_0x4fc3d5['authorsIds']['map'](_0x10b9d9=>_0x239d7e['getUser'](_0x10b9d9)),'createdAt':new Date(_0x4fc3d5['createdAt']),'attributes':_0x4fc3d5['attributes'],'fromVersion':_0x4fc3d5['fromVersion'],'toVersion':_0x4fc3d5['toVersion']});}['addRevision'](_0x2c97e4,_0x501aed=0x0){this['_revisions']['add'](_0x2c97e4,_0x501aed);}['getRevision'](_0x59ddd6){return this['_revisions']['get'](_0x59ddd6);}['getRevisions'](_0xdfe86f={'toJSON':!0x1}){const _0x12f8f9=Array['from'](this['_revisions']);return _0x12f8f9['reverse'](),_0xdfe86f['toJSON']?_0x12f8f9['map'](_0x25ed89=>_0x25ed89['toJSON']()):_0x12f8f9;}['getIndex'](_0x2e7af9){return this['_revisions']['getIndex'](_0x2e7af9);}['getEarlierVisibleRevision'](_0x36d379){const [,_0x6ced66]=this['getRevisionsIterator'](_0x36d379,{'direction':'earlier'});return _0x6ced66;}['getLaterVisibleRevision'](_0x1e6ec8){const [,_0x47d2be]=this['getRevisionsIterator'](_0x1e6ec8,{'direction':'later'});return _0x47d2be;}['getRevisionsInDiff'](_0x40b58c){const _0x291c48=[];for(const _0x2966bf of this['getRevisionsIterator'](_0x40b58c['newRevisionId']))if(_0x291c48['push'](_0x2966bf),_0x2966bf['id']===_0x40b58c['oldRevisionId'])break;return _0x291c48;}*['getRevisionsIterator'](_0x7d144c,{direction:_0x13f178='earlier',filter:_0x27e5d5=()=>!0x0}={}){const _0x4c2f89='earlier'===_0x13f178?0x1:-0x1;let _0x4844fd=this['_revisions']['get'](_0x7d144c),_0x3f6329=this['getIndex'](_0x4844fd);for(yield _0x4844fd;_0x4844fd;){if(_0x3f6329+=_0x4c2f89,_0x4844fd=this['getRevision'](_0x3f6329),!_0x4844fd)return;_0x27e5d5(_0x4844fd)&&(yield _0x4844fd);}}}class V extends _0x3f2981{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4ed95e,'c'],[_0x42afb0,'a'],[_0x5e0b07,'e'],[_0x3af5e8,'r'],[_0x5a13dc,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4ed95e],['a',_0x42afb0],['e',_0x5e0b07],['r',_0x3af5e8],['u',_0x5a13dc]]);async['loadRevisionData'](_0x4746e8,_0x4d11a6){if(_0x4746e8['diffData']||!_0x4d11a6)return;const _0x4462a5=this['editor']['config']['get']('collaboration.channelId'),_0x404a28=await _0x4d11a6['getRevision']({'channelId':_0x4462a5,'revisionId':_0x4746e8['id']});_0x4746e8['diffData']=_0x404a28['diffData'];}['getRevisionDocumentData'](_0x3bbc48){const _0x4deaa9={};for(const _0xfc5e32 in _0x3bbc48['diffData']){if(_0x3bbc48['diffData'][_0xfc5e32]['attachChange']&&!_0x3bbc48['diffData'][_0xfc5e32]['attachChange']['isAttached'])continue;const _0x1ccc2e=this['_removeRevisionMarkers'](JSON['parse'](_0x3bbc48['diffData'][_0xfc5e32]['insertions'])),_0x1f0cd5=this['editor']['editing']['view']['document'],_0x49f14f=new _0xc287ed(_0x1f0cd5,_0x1ccc2e['map'](_0x1a4247=>this['_getViewFromDiffObj'](_0x1a4247,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4deaa9[_0xfc5e32]=this['editor']['data']['processor']['toData'](_0x49f14f),this['editor']['data']['processor']['useFillerType']('default');}return _0x4deaa9;}['getRevisionRootsAttributes'](_0x3f7e61){const _0x3ecf74={};for(const _0x4bcfc1 in _0x3f7e61['diffData'])_0x3f7e61['diffData'][_0x4bcfc1]['attachChange']&&!_0x3f7e61['diffData'][_0x4bcfc1]['attachChange']['isAttached']||(_0x3ecf74[_0x4bcfc1]=_0x3f7e61['diffData'][_0x4bcfc1]['attributesAfter']||{});return _0x3ecf74;}['_getTypeCharForViewElement'](_0x45b7e4){return this['_viewClassToTypeChar']['get'](_0x45b7e4['constructor']);}['_getViewFromDiffObj'](_0x14d507,_0x2aff8d){const _0x5f4733=this['editor']['editing']['view']['document'];if('string'==typeof _0x14d507)return new _0x4757dc(_0x5f4733,_0x14d507);{let _0x54d35a,_0x32abc3;_0x32abc3='u'==_0x14d507['type']||'r'==_0x14d507['type']?[]:_0x14d507['children']['map'](_0x20a2bf=>this['_getViewFromDiffObj'](_0x20a2bf,_0x2aff8d));const _0x66aad0=this['_typeCharToViewClass']['get'](_0x14d507['type'])||_0xf31048,_0x106779=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54d35a=new _0x66aad0(_0x5f4733,_0x14d507['name'],_0x14d507['attributes'],_0x32abc3),'u'==_0x14d507['type']&&_0x14d507['children'][0x0]){const _0xdcd2c4=_0x14d507['children'][0x0];if(_0x54d35a['render']=function(_0x24a2c4){const _0x1c9eff=_0x24a2c4['createElement']('div');return _0x1c9eff['innerHTML']=_0xdcd2c4,_0x1c9eff['childNodes'][0x0];},_0x2aff8d){const _0x70edc1=new _0xc287ed(_0x5f4733);_0x70edc1['_appendChild'](_0x54d35a);const _0x2c7fd3=Array['from'](_0x106779['viewChildrenToDom'](_0x70edc1,{'bind':!0x1})),_0x57975d=_0x106779['domDocument']['createElement']('div');_0x57975d['append'](..._0x2c7fd3),_0x54d35a=Array['from'](_0x106779['domChildrenToView'](_0x57975d))[0x0];}}else{if('r'==_0x14d507['type']&&_0x14d507['children'][0x0]){const _0x473150=_0x14d507['children'][0x0];if(_0x54d35a['render']=function(_0x3db87b){_0x3db87b['innerHTML']=_0x473150;},_0x2aff8d){const _0x3237dc=new _0xc287ed(_0x5f4733);_0x3237dc['_appendChild'](_0x54d35a);const _0x1f8daf=Array['from'](_0x106779['viewChildrenToDom'](_0x3237dc,{'bind':!0x1})),_0x2f4d32=_0x106779['domDocument']['createElement']('div');_0x2f4d32['append'](..._0x1f8daf);const _0x3ace1e=Array['from'](_0x106779['domChildrenToView'](_0x2f4d32));_0x3ace1e['length']>0x1?_0x54d35a['_appendChild'](_0x3ace1e):_0x54d35a=_0x3ace1e[0x0];}}}if(_0x14d507['customProperties']){for(const [_0x383fed,_0x47397d]of _0x14d507['customProperties'])_0x54d35a['_setCustomProperty'](_0x383fed,_0x47397d);}const _0xc6568c=void 0x0===_0x14d507['fillerOffset']?null:_0x14d507['fillerOffset'];return null!==_0xc6568c&&(_0x54d35a['getFillerOffset']=()=>_0xc6568c),_0x54d35a;}}['_makeModelFromViewString'](_0x54b0b0){const _0x573091=JSON['parse'](_0x54b0b0),_0x282659=this['editor']['editing']['view']['document'],_0x3731fa=new _0xc287ed(_0x282659,_0x573091['map'](_0x38becf=>this['_getViewFromDiffObj'](_0x38becf,!0x0)));return this['editor']['data']['toModel'](_0x3731fa);}['_removeRevisionMarkers'](_0x6bcc3d){return(_0x6bcc3d=_0x6bcc3d['filter'](_0x53441a=>!_0x53441a['name']||'revision-start'!==_0x53441a['name']&&'revision-end'!==_0x53441a['name']))['forEach'](_0x581196=>{'string'!=typeof _0x581196&&(_0x581196['children']=this['_removeRevisionMarkers'](_0x581196['children']),_0x581196['attributes']=_0x581196['attributes']['filter'](_0x386dce=>!_0x386dce[0x0]['startsWith']('data-revision-')));}),_0x6bcc3d;}}function g(_0x32ee4e,_0x311452,_0x258e3a){const t=_0x32ee4e['t'];switch(_0x311452){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'},_0x258e3a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x258e3a);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 _0x3f2981{['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[_0x2f8fb9,I,V,_0x1b5502];}constructor(_0x35eea4){super(_0x35eea4),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 _0x99fec9=_0x488afd();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x99fec9},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 _0xf1bd7e=this['repository']['getRevision'](0x0),_0x40d268=_0xf1bd7e&&null===_0xf1bd7e['creator']?_0xf1bd7e:null;if(this['_continueCurrentRevision']=!!_0x40d268&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b8c36=this['_source']['getCurrentRevisionId'](),_0x28a1c7=this['repository']['getRevision'](_0x4b8c36);if(_0x28a1c7)this['_startingVersion']=_0x28a1c7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x193eb1=this['_source']['history']['_operations']['find'](_0x3728ac=>!_0x3728ac['_isInit']),_0xc52001=_0x193eb1?_0x193eb1['baseVersion']:this['_source']['history']['version'];_0xf1bd7e?(_0xf1bd7e['toVersion']<_0xc52001&&_0xf1bd7e['_update']({'toVersion':_0xc52001}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x40d268['id'],this['_startingVersion']=_0x40d268['fromVersion']):(this['_startingVersion']=_0xf1bd7e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xc52001,this['_continueCurrentRevision']=!0x1);}}else _0x40d268&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x40d268['toVersion'],this['editor']['model']['document']['history']['version']),_0x40d268['fromVersion']===_0x40d268['toVersion']?(0x0!==_0x40d268['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d268['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d268['id'],this['_startingVersion']=_0x40d268['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',_0x2c5c14=>!_0x2c5c14),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c0492=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c46b5;for(const _0x4553df in _0x3c0492){const _0x59314b=_0x4553df,_0x4d3c20=_0x3c0492[_0x59314b];if('revisionHistoryLicenseKeyValid'==_0x4d3c20||'revisionHistoryLicenseKeyInvalid'==_0x4d3c20||'revisionHistoryLicenseKeyExpired'==_0x4d3c20||'revisionHistoryLicenseKeyDomainLimit'==_0x4d3c20||'revisionHistoryLicenseKeyNotAllowed'==_0x4d3c20||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4d3c20||'revisionHistoryLicenseKeyTrialLimit'==_0x4d3c20||'revisionHistoryLicenseKeyUsageLimit'==_0x4d3c20){delete _0x3c0492[_0x59314b],_0x2c46b5=_0x4d3c20,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2c46b5&&_0x3c0492['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2c46b5&&_0x3c0492['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2c46b5&&_0x3c0492['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2c46b5&&_0x3c0492['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c46b5&&_0x3c0492['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2c46b5&&_0x3c0492['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2c46b5&&_0x3c0492['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5b8e26=this['repository']['getRevision'](0x0),_0x38b7ff=await this['getRevisionDocumentData'](_0x5b8e26),_0x1ce9bd=await this['getRevisionRootsAttributes'](_0x5b8e26);this['_replaceEditorDataWithRevisionData'](_0x38b7ff,_0x1ce9bd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4b6eca){this['_source']=_0x4b6eca;}async['update'](){const _0x4ce2da=await this['_source']['getLatestVersion']();if(_0x4ce2da>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5eaff4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4ce2da});_0x5eaff4['authors']=_0x5eaff4['authorsIds']['map'](_0x280a73=>this['editor']['plugins']['get']('Users')['getUser'](_0x280a73)),this['currentRevision']['_update'](_0x5eaff4);}}async['saveRevision'](_0x598ab5={},_0x4490cd=null){const _0xab17cd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4490cd>this['currentRevision']['toVersion']&&(_0x4490cd=null),null===_0x4490cd&&(_0x4490cd=await this['_source']['getLatestVersion']());const _0x50cdaf=this['_getFromVersion'](_0x4490cd),_0x48fb16=this['buildRevisionData']({'from':_0x50cdaf,'to':_0x4490cd});if(this['currentRevision']['toVersion']<_0x4490cd){const _0x27c8f8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4490cd,'to':_0x4490cd});_0x27c8f8['authors']=[],_0x27c8f8['authorsIds']=[],_0x27c8f8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x27c8f8,!0x0),delete _0x27c8f8['authors'],_0xab17cd['push'](_0x27c8f8);}_0x598ab5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x598ab5['name']=_0x598ab5['name']||null,_0x598ab5['id']=_0x598ab5['id']||_0x488afd(),_0x598ab5={..._0x598ab5,..._0x48fb16};const _0x262cb7=this['addRevisionData'](_0x598ab5);_0xab17cd['push'](_0x598ab5);const _0x596b5d=this['repository']['getIndex'](_0x262cb7);if(0x0!==_0x596b5d){const _0x1b8288=this['repository']['getRevision'](_0x596b5d-0x1);if(_0x1b8288['fromVersion']!==_0x4490cd){const _0x304407=this['_revisionDataBuilder']['getData'](_0x4490cd,_0x1b8288['toVersion']),_0x51d1b3={'id':_0x1b8288['id'],'diffData':_0x304407['diffData'],'authorsIds':_0x304407['authorsIds'],'authors':_0x304407['authorsIds']['map'](_0x4a7a5b=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a7a5b)),'fromVersion':_0x4490cd};_0x1b8288===this['currentRevision']&&(_0x51d1b3['createdAt']=new Date(_0x598ab5['createdAt']['getTime']()+0xa)),_0x1b8288['_update'](_0x51d1b3,!0x0),delete _0x51d1b3['authors'],_0xab17cd['push'](_0x51d1b3);}}if(this['adapter']){for(const _0x881168 of _0xab17cd)this['_bufferUpdate'](_0x881168['id'],_0x881168,!0x0);this['sendBufferedUpdates']();}return _0x262cb7;}['addRevisionData'](_0x542f06){const _0x1ddf38=this['repository']['createRevision'](_0x542f06);return this['adapter']&&_0x1ddf38['on']('_update',(_0x2b3cf6,_0x3dae63,_0x63f77a)=>{_0x63f77a||(this['_bufferUpdate'](_0x3dae63['id'],_0x3dae63,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1ddf38,this['_findInsertionIndex'](_0x1ddf38)),_0x1ddf38;}async['getRevisionDocumentData'](_0x2dd7ed){return await this['_utils']['loadRevisionData'](_0x2dd7ed,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2dd7ed);}async['getRevisionRootsAttributes'](_0x1041c4){return await this['_utils']['loadRevisionData'](_0x1041c4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1041c4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4eb1e0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4b32c3=0x0;_0x4b32c3<_0x4eb1e0['length'];_0x4b32c3++){const _0x885dc2=_0x4eb1e0[_0x4b32c3];let _0xafb69b=!0x1;for(const _0x2f75f8 of Object['keys'](_0x885dc2))void 0x0===_0x885dc2[_0x2f75f8]?delete _0x885dc2[_0x2f75f8]:'id'!==_0x2f75f8&&(_0xafb69b=!0x0);_0xafb69b||(_0x4eb1e0[_0x4b32c3]=null);}if(_0x4eb1e0=_0x4eb1e0['filter'](_0x7e00bc=>null!==_0x7e00bc),!_0x4eb1e0['length'])return;for(let _0x2d71f0=0x0;_0x2d71f0<_0x4eb1e0['length'];_0x2d71f0++){const _0xeb7deb=_0x4eb1e0[_0x2d71f0];void 0x0!==_0xeb7deb['fromVersion']&&void 0x0===_0xeb7deb['toVersion']&&(_0xeb7deb['toVersion']=this['repository']['getRevision'](_0xeb7deb['id'])['toVersion']),void 0x0!==_0xeb7deb['toVersion']&&void 0x0===_0xeb7deb['fromVersion']&&(_0xeb7deb['fromVersion']=this['repository']['getRevision'](_0xeb7deb['id'])['fromVersion']);}const _0x5ef6d9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4eb1e0,_0x5ef6d9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x362c29=>{if(_0x362c29){for(const _0x11162a of _0x362c29)this['setRevisionData']({'id':_0x11162a['id'],'createdAt':_0x11162a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xc4264e=null,from:_0x64bf6f=null,to:_0x2c061c=null}){_0x64bf6f=null!==_0x64bf6f?_0x64bf6f:_0xc4264e['fromVersion'],_0x2c061c=null!==_0x2c061c?_0x2c061c:_0xc4264e['toVersion'];const _0x559f49=this['_revisionDataBuilder']['getData'](_0x64bf6f,_0x2c061c),_0x2cd559={'diffData':_0x559f49['diffData'],'authorsIds':_0x559f49['authorsIds'],'fromVersion':_0x64bf6f,'toVersion':_0x2c061c};if(!_0xc4264e||_0x2c061c!==_0xc4264e['toVersion']){const _0x3e0fad=_0x2c061c-0x1,_0x5a69e4=this['_source']['history']['getOperation'](_0x3e0fad);_0x2cd559['createdAt']=_0x5a69e4&&_0x5a69e4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x64bf6f===this['_loadedStateData']['fromVersion']){for(const _0x2b2d46 of this['_loadedStateData']['authors'])_0x2cd559['authorsIds']['includes'](_0x2b2d46['id'])||_0x2cd559['authorsIds']['push'](_0x2b2d46['id']);}return _0x2cd559;}['_bufferUpdate'](_0x20c9d0,_0x3353b8,_0x3fc1e2){if(this['_bufferedUpdates']['has'](_0x20c9d0)){const _0x1572e9=this['_bufferedUpdates']['get'](_0x20c9d0);_0x3353b8=_0x3fc1e2?{..._0x1572e9,..._0x3353b8}:{..._0x3353b8,..._0x1572e9};}this['_bufferedUpdates']['set'](_0x20c9d0,_0x3353b8);}['setRevisionData'](_0x520ac8){const _0x758847=this['repository']['getRevision'](_0x520ac8['id']);if(_0x520ac8['createdAt']&&(_0x520ac8['createdAt']=new Date(_0x520ac8['createdAt'])),_0x520ac8['authorsIds']){const _0xaa13ea=this['editor']['plugins']['get']('Users');_0x520ac8['authors']=_0x520ac8['authorsIds']['map'](_0x2a6d0b=>_0xaa13ea['getUser'](_0x2a6d0b));}_0x758847['_update'](_0x520ac8,!0x0);}['_createInitialRevision'](_0x29b0c2){const _0x3eeea7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3eeea7)this['_initialRevisionId']=_0x3eeea7['id'];else{const _0x21c8f8=!this['editor']['model']['document']['roots']['find'](_0x5e49e4=>this['editor']['model']['hasContent'](_0x5e49e4)),_0x2792fe=this['editor']['plugins']['get']('Users')['me']['id'],_0x4789a3=g(this['editor']['locale'],_0x21c8f8?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x29b0c2,'to':_0x29b0c2,'id':this['_initialRevisionId'],'name':_0x4789a3,'creatorId':_0x2792fe});}}['_createCurrentRevision'](_0xadaf47){const _0x515200=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x515200),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xadaf47,'to':_0xadaf47,'id':_0x515200,'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'](_0x4916c3,_0x278a6e){let _0x10e1e7=this['editor']['config']['get']('initialData'),_0x587e9b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x10e1e7){_0x10e1e7={};for(const _0x5dcc96 of this['editor']['model']['document']['getRootNames']())_0x10e1e7[_0x5dcc96]='';}if('string'==typeof _0x10e1e7&&(_0x10e1e7={'main':_0x10e1e7}),void 0x0===_0x587e9b){_0x587e9b={};for(const _0x59a124 of this['editor']['model']['document']['getRootNames']())_0x587e9b[_0x59a124]={};}let _0x1cf69e=!0x1;const _0x5a7e03=Object['keys'](_0x10e1e7),_0x2823de=Object['keys'](_0x4916c3);for(const _0x1643dd of _0x5a7e03){if(_0x10e1e7[_0x1643dd]!==_0x4916c3[_0x1643dd]&&''!==_0x10e1e7[_0x1643dd]['trim']()){_0x1cf69e=!0x0;break;}if(!_0x244206(_0x587e9b[_0x1643dd],_0x278a6e[_0x1643dd])&&Object['keys'](_0x587e9b[_0x1643dd])['length']>0x0){_0x1cf69e=!0x0;break;}}_0x1cf69e||(_0x1cf69e=_0x2823de['some'](_0x34b60f=>!this['editor']['model']['document']['getRoot'](_0x34b60f))),_0x1cf69e&&_0x31fe21('editor-initial-data-replaced-with-revision-data',{'editorData':_0x10e1e7,'editorRootsAttributes':_0x587e9b,'revisionData':_0x4916c3,'revisionRootsAttributes':_0x278a6e}),this['editor']['config']['set']('initialData',_0x4916c3),this['editor']['config']['set']('rootsAttributes',_0x278a6e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x102916=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x102916['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48d516){const _0x5a3707=this['repository']['getRevisions']();_0x5a3707['reverse']();let _0x2d49eb=0x0;for(;_0x2d49eb<_0x5a3707['length'];){const _0xb43c3=_0x5a3707[_0x2d49eb];if(_0xb43c3===this['currentRevision']){_0x2d49eb++;continue;}if(_0xb43c3['id']===this['_initialRevisionId'])break;const _0x28ad6c=_0x48d516['toVersion']-_0xb43c3['toVersion']||_0x48d516['fromVersion']-_0xb43c3['fromVersion'];if(_0x28ad6c>0x0)break;if(_0x28ad6c<0x0)_0x2d49eb++;else{if(!_0x48d516['creator']&&_0xb43c3['creator'])break;if(_0xb43c3['creator']||!_0x48d516['creator']){if(_0x48d516['createdAt']>_0xb43c3['createdAt'])break;_0x2d49eb++;}else _0x2d49eb++;}}return _0x2d49eb;}['_getFromVersion'](_0x4e189c){const _0x3aca5b=this['repository']['getRevisions']();_0x3aca5b['reverse'](),_0x3aca5b['shift']();const _0x49ae52=_0x3aca5b['find'](_0x191049=>_0x191049['toVersion']<=_0x4e189c)['toVersion'];return _0x49ae52<this['_startingVersion']?this['_startingVersion']:_0x49ae52;}['_makeRevision']({name:_0x3b353f,from:_0x271912,to:_0x5b826d,creatorId:_0x3413f7,id:_0x1450cb}){const _0x4298a5=this['buildRevisionData']({'from':_0x271912,'to':_0x5b826d});_0x4298a5['name']=_0x3b353f,_0x4298a5['creatorId']=_0x3413f7,_0x4298a5['id']=_0x1450cb;const _0x380d12=this['addRevisionData'](_0x4298a5);return this['adapter']&&this['_bufferUpdate'](_0x4298a5['id'],_0x4298a5,!0x0),_0x380d12;}['_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(_0x1c3b70){this['editor']=_0x1c3b70,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'](_0x405150){this['source']=_0x405150;const _0x535131=new Map(),_0x3e1bce=new Map(),_0x5b307a=this['editor']['model']['document']['roots']['map'](_0x1fc407=>_0x1fc407['rootName']);for(const _0x23c5b2 of _0x5b307a){const _0x26cabb=this['editor']['model']['document']['getRoot'](_0x23c5b2),_0x53f0b2=N(_0x26cabb);_0x535131['set'](_0x23c5b2,_0x53f0b2),_0x3e1bce['set'](_0x23c5b2,Object['fromEntries'](_0x26cabb['getAttributes']()));}const _0x44749a=Array['from'](this['editor']['model']['markers'])['map'](_0x279910=>[_0x279910['name'],_0x279910['getRange']()]),_0xf3daee=this['source']['version'];this['_saveMetaData'](_0xf3daee,_0x535131,_0x44749a,_0x3e1bce),this['_startingRevisionId']=this['_revisionId'];const _0x162c51=new Map(),_0x36788d=new Map();for(const _0x2b7a8e of _0x5b307a){const _0x1f6e05=P(_0x2b7a8e);_0x162c51['set'](_0x2b7a8e,_0x1f6e05),_0x36788d['set'](_0x2b7a8e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x162c51,[],_0x36788d);}['getData'](_0x2cbe30,_0x108cc7){if(this['_lastFrom']===_0x2cbe30&&this['_lastTo']<=_0x108cc7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x108cc7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2cbe30)){const _0x4292ef=this['_getPreviousFrom'](_0x2cbe30);this['_calculateMetaData'](_0x4292ef,_0x2cbe30,!0x1);}this['_calculateMetaData'](_0x2cbe30,_0x108cc7,!0x0);}return this['_lastFrom']=_0x2cbe30,this['_lastTo']=_0x108cc7,this['_getState']();}['loadState'](_0x4f362e){const _0x58b483=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4f362e['fromVersion'],this['_lastTo']=_0x4f362e['toVersion'];for(const _0xa69d9c in _0x4f362e['diffData']){const _0x3f7a90=_0x4f362e['diffData'][_0xa69d9c]['attachChange'],_0x13c66f=_0x4631d1(_0x4f362e['diffData'][_0xa69d9c]['attributesBefore'])||{},_0x39244e=_0x58b483['_makeModelFromViewString'](_0x4f362e['diffData'][_0xa69d9c]['deletions']);_0x39244e['rootName']=_0xa69d9c,_0x39244e['_isAttached']=!_0x3f7a90||!_0x3f7a90['isAttached'],_0x39244e['isAttached']=()=>_0x39244e['_isAttached'],this['_baseRoots']['set'](_0xa69d9c,_0x39244e),this['_baseRootsAttributes']['set'](_0xa69d9c,_0x13c66f),_0x3f7a90&&this['_touchedRoots']['set'](_0xa69d9c,_0x3f7a90);const _0x4a318a=this['_makeIdsRoot'](_0x39244e);this['_baseIdsRoots']['set'](_0xa69d9c,_0x4a318a);for(const [_0x1d0410,_0x5f2a7a]of _0x39244e['markers']){if(!_0x1d0410['startsWith']('revision:'))continue;const _0x57fbd7=_0x1d0410['split'](':')[0x2];for(const _0x2c0a7f of _0x5f2a7a['getWalker']({'singleCharacters':!0x0})){const _0x3ae25b=this['_getVidAttributeName'](_0x2c0a7f),_0x2bdb4a='elementEnd'==_0x2c0a7f['type']?_0x2c0a7f['previousPosition']['path']['slice'](0x0,-0x1):_0x2c0a7f['previousPosition']['path'],_0x26e1d1=_0x4a318a['getNodeByPath'](_0x2bdb4a)['getAttribute'](_0x3ae25b);this['_touched']['set'](_0x26e1d1,{'userId':_0x57fbd7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1e3b46=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xaebc4d=>!this['_touched']['has'](_0xaebc4d));let _0x55fce4=0x0;const _0x20cd30=new Map();for(const _0x4d74b0 in _0x4f362e['diffData']){const _0x239d6b=_0x4f362e['diffData'][_0x4d74b0]['attachChange'],_0x2c3940=_0x4631d1(_0x4f362e['diffData'][_0x4d74b0]['attributesAfter'])||{},_0x51f4ba=_0x58b483['_makeModelFromViewString'](_0x4f362e['diffData'][_0x4d74b0]['insertions']);_0x51f4ba['rootName']=_0x4d74b0,_0x51f4ba['_isAttached']=!_0x239d6b||_0x239d6b['isAttached'],_0x51f4ba['isAttached']=()=>_0x51f4ba['_isAttached'],this['_diffRoots']['set'](_0x4d74b0,_0x51f4ba),this['_diffRootsAttributes']['set'](_0x4d74b0,_0x2c3940);const _0x16f341=this['_makeIdsRoot'](_0x51f4ba,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4d74b0,_0x16f341),_0x20cd30['set'](_0x4d74b0,_0x51f4ba['isAttached']()?_0x2c3940:{});for(const [_0x10356a,_0x3097de]of _0x51f4ba['markers']){if(!_0x10356a['startsWith']('revision:'))continue;const _0x45357f=_0x10356a['split'](':')[0x2];for(const _0x594717 of _0x3097de['getWalker']({'singleCharacters':!0x0})){const _0x11d929=this['_getVidAttributeName'](_0x594717),_0x5221b4=this['_revisionId']++,_0x37aa60='elementEnd'==_0x594717['type']?_0x594717['previousPosition']['path']['slice'](0x0,-0x1):_0x594717['previousPosition']['path'];_0x16f341['getNodeByPath'](_0x37aa60)['_setAttribute'](_0x11d929,_0x5221b4),this['_touched']['set'](_0x5221b4,{'userId':_0x45357f});}}for(const _0xfa576d of this['editor']['model']['createRangeIn'](_0x51f4ba)['getWalker']({'singleCharacters':!0x0})){const _0x46972c=this['_getVidAttributeName'](_0xfa576d),_0x580d16='elementEnd'==_0xfa576d['type']?_0xfa576d['previousPosition']['path']['slice'](0x0,-0x1):_0xfa576d['previousPosition']['path'],_0x195c21=_0x16f341['getNodeByPath'](_0x580d16);_0x195c21['getAttribute'](_0x46972c)>0x0||_0x195c21['_setAttribute'](_0x46972c,_0x1e3b46[_0x55fce4++]);}for(const [_0x569350,_0x15fbf2]of _0x51f4ba['markers'])_0x569350['startsWith']('revision:')||this['_markers']['set'](_0x569350,_0x15fbf2);}const _0x2b19f0=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2b19f0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b19f0,0x1));const _0x21b3dd=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x21b3dd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x21b3dd,0x1));const _0x3c4f84=Array['from'](this['_diffRoots'])['map'](([_0x21c18b,_0x28f0ee])=>[_0x21c18b,N(_0x28f0ee)]);this['_saveMetaData'](this['_lastTo'],_0x3c4f84,this['_markers'],_0x20cd30);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1bfbc3,_0x1a1c1d,_0x4188d8,_0x5dfc4b){const _0x3e402c=new Map(_0x1a1c1d),_0xd7efd0=new Map(_0x4631d1(_0x5dfc4b)),_0x248207=new Map();for(const [_0x5981c6,_0x1cdc03]of _0x4188d8)_0x248207['set'](_0x5981c6,{'start':_0x1cdc03['start']['clone'](),'end':_0x1cdc03['end']['clone'](),'rootName':_0x1cdc03['root']['rootName']});this['_savedMetaData']['set'](_0x1bfbc3,{'roots':_0x3e402c,'markers':_0x248207,'rootsAttributes':_0xd7efd0});}['_removeMetaData'](_0x33852e){this['_savedMetaData']['delete'](_0x33852e);}['_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'](_0x4a5d9a,_0x34ef7c=null){let _0x1b0a2b=null;_0x4a5d9a['is']('documentFragment')||(_0x1b0a2b=new ut(_0x4a5d9a['name'],{'vid_start':null===_0x34ef7c?this['_revisionId']++:_0x34ef7c++}));const _0x1dbd15=[];for(const _0x10342c of _0x4a5d9a['getChildren']())if(_0x10342c['is']('element')){_0x1dbd15['push'](this['_makeIdsRoot'](_0x10342c,_0x34ef7c));const _0x42de70=_0x1dbd15[_0x1dbd15['length']-0x1];null!==_0x34ef7c&&(_0x34ef7c=_0x42de70['is']('element','$text')?_0x42de70['getAttribute']('vid')+0x1:_0x42de70['getAttribute']('vid_end')+0x1);}else{for(let _0x25fe72=0x0;_0x25fe72<_0x10342c['offsetSize'];_0x25fe72++)_0x1dbd15['push'](new ut('$text',{'vid':null===_0x34ef7c?this['_revisionId']++:_0x34ef7c++}));}if(_0x4a5d9a['is']('documentFragment')){const _0x5a177d=P(_0x4a5d9a['rootName']);return _0x5a177d['_insertChild'](0x0,_0x1dbd15),_0x5a177d;}return _0x1b0a2b['_setAttribute']('vid_end',null===_0x34ef7c?this['_revisionId']++:_0x34ef7c++),_0x1b0a2b['_insertChild'](0x0,_0x1dbd15),_0x1b0a2b;}['_calculateMetaData'](_0x3ab3c4,_0x120da1,_0x1a7e09){this['_reset']();const {roots:_0x307735,markers:_0x406d7d,rootsAttributes:_0x174011}=this['_savedMetaData']['get'](_0x3ab3c4);this['_baseRoots']=new Map(_0x307735),this['_baseRootsAttributes']=new Map(_0x4631d1(_0x174011));for(const [_0x5cc45a,_0x5020c3]of this['_baseRoots'])if('$graveyard'!==_0x5cc45a&&(this['_diffRoots']['set'](_0x5cc45a,N(_0x5020c3)),this['_diffRootsAttributes']=new Map(_0x4631d1(_0x174011)),_0x1a7e09)){const _0x559076=this['_revisionId'];this['_idsRoots']['set'](_0x5cc45a,this['_makeIdsRoot'](_0x5020c3)),this['_baseIdsRoots']['set'](_0x5cc45a,this['_makeIdsRoot'](_0x5020c3,_0x559076));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1a7e09&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d4a20,_0x33273f]of _0x406d7d){const _0x3e0dec=this['_baseRoots']['get'](_0x33273f['rootName']),_0x56885f=this['_diffRoots']['get'](_0x33273f['rootName']),_0x30ac01=new ft(this['_fixPosition'](_0x33273f['start'],_0x3e0dec),this['_fixPosition'](_0x33273f['end'],_0x3e0dec)),_0x50b87b=this['_fixRange'](_0x30ac01,_0x56885f);_0x3e0dec['markers']['set'](_0x1d4a20,_0x30ac01),this['_markers']['set'](_0x1d4a20,_0x50b87b);}this['_applyOperations'](_0x3ab3c4,_0x120da1,_0x1a7e09);}['_applyOperations'](_0x2c3136,_0x41c74b,_0x509f73){for(const _0x4a8612 of this['source']['getOperations'](_0x2c3136,_0x41c74b))this['_handleOperation'](_0x4a8612,_0x509f73);for(const _0x242562 of this['_diffRoots']['values']())_0x242562['markers']['clear']();for(const [_0x55b18b,_0x107b2a]of this['_markers']){this['_diffRoots']['get'](_0x107b2a['root']['rootName'])['markers']['set'](_0x55b18b,_0x107b2a['clone']());}const _0x5d12c5=new Map(),_0x1f121c=new Map();for(const [_0x28c4b4,_0x52a25a]of this['_diffRoots'])_0x5d12c5['set'](_0x28c4b4,N(_0x52a25a)),_0x1f121c['set'](_0x28c4b4,this['_diffRootsAttributes']['get'](_0x28c4b4));this['_saveMetaData'](_0x41c74b,_0x5d12c5,this['_markers'],_0x1f121c);}['_getPreviousFrom'](_0x190e35){const _0x4f117d=Array['from'](this['_savedMetaData']['keys']());_0x4f117d['sort']((_0x18f995,_0x2239c3)=>_0x18f995-_0x2239c3),_0x4f117d['reverse']();for(const _0x10fd32 of _0x4f117d)if(_0x10fd32<_0x190e35)return _0x10fd32;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x359b58,_0x4a0228){const _0x53353f=Array['from'](_0x4a0228['markers'])['map'](([_0xe27f5a,_0x5c667b])=>[_0xe27f5a,this['_fixRange'](_0x5c667b,_0x359b58)]);_0x359b58['markers']=new Map(_0x53353f);}['_transformMarkers'](_0x53a912){for(const _0x47c70c of this['_markers']['values']()){const _0x515347=_0x47c70c['getTransformedByOperation'](_0x53a912),_0x51887e=ft['_createFromRanges'](_0x515347);_0x47c70c['start']=_0x51887e['start'],_0x47c70c['end']=_0x51887e['end'];}}['_handleOperation'](_0x19ee15,_0x4cd3bd){if('addRoot'!=_0x19ee15['type']&&'detachRoot'!=_0x19ee15['type']){if('insert'==_0x19ee15['type']){const _0x2a624a=_0x19ee15['position']['root']['rootName'];this['_diffRoots']['has'](_0x2a624a)||(this['_diffRoots']['set'](_0x2a624a,P(_0x2a624a,!0x0)),this['_diffRootsAttributes']['set'](_0x2a624a,{}),_0x4cd3bd&&this['_idsRoots']['set'](_0x2a624a,P(_0x2a624a,!0x0)));}else{if('addRootAttribute'==_0x19ee15['type']||'removeRootAttribute'==_0x19ee15['type']||'changeRootAttribute'==_0x19ee15['type'])return void this['_handleRootAttributeOperation'](_0x19ee15);'marker'==_0x19ee15['type']&&this['_handleMarkerOperation'](_0x19ee15);}if('marker'!==_0x19ee15['type']){const _0x19326a=this['_cloneOperation'](_0x19ee15,this['_diffRoots']);_0x19326a['_execute'](),this['_transformMarkers'](_0x19326a);}if(_0x4cd3bd)switch(_0x19ee15['type']){case'insert':this['_handleInsertOperation'](_0x19ee15);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x19ee15);break;case'merge':this['_handleMergeOperation'](_0x19ee15);break;case'split':this['_handleSplitOperation'](_0x19ee15);}}else this['_handleRootOperation'](_0x19ee15,_0x4cd3bd);}['_cloneOperation'](_0x1c56fd,_0x36ada5){const _0x3a5041=_0x1c56fd['clone']();return _0x3a5041['_authorId']=_0x1c56fd['_authorId'],this['_fixOperation'](_0x3a5041,_0x36ada5),_0x3a5041;}['_getBaseVids'](_0x899f0a){return _0x899f0a['map'](_0x25c61b=>{const _0x4a95cf=this['_getVidAttributeName'](_0x25c61b);return Number(_0x25c61b['item']['getAttribute'](_0x4a95cf));});}['_generateTape'](_0x40d85f,_0x37ab37){if(_0x40d85f['is']('element','$text'))_0x37ab37['push']({'item':_0x40d85f,'type':'text'});else{_0x40d85f['is']('element')&&_0x37ab37['push']({'item':_0x40d85f,'type':'elementStart'});for(const _0x2ea59 of _0x40d85f['getChildren']())this['_generateTape'](_0x2ea59,_0x37ab37);_0x40d85f['is']('element')&&_0x37ab37['push']({'item':_0x40d85f,'type':'elementEnd'});}return _0x37ab37;}['_getState'](){const _0xc689d8=new Map(this['_touched']),_0x4f9c92=new Map(_0xc689d8),_0x223899=new Map(),_0x1ff92e={'insertions':{},'deletions':{}},_0x523883={'insertions':{},'deletions':{}},_0x59a550=new Map(),_0x47ab78=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x47ab78['delete']('$graveyard');for(const _0x40aebc of _0x47ab78){const _0x2ad19f=this['_diffRoots']['get'](_0x40aebc)||P(_0x40aebc,!0x1),_0xa71f13=this['_baseRoots']['get'](_0x40aebc)||P(_0x40aebc,!0x1);_0x2ad19f['isAttached']()||_0xa71f13['isAttached']()?(_0x1ff92e['insertions'][_0x40aebc]=N(_0x2ad19f),_0x1ff92e['deletions'][_0x40aebc]=N(_0xa71f13),this['_copyMarkers'](_0x1ff92e['deletions'][_0x40aebc],_0xa71f13),this['_copyMarkers'](_0x1ff92e['insertions'][_0x40aebc],_0x2ad19f),_0x523883['insertions'][_0x40aebc]=this['_generateTape'](this['_idsRoots']['get'](_0x40aebc),[]),_0x523883['deletions'][_0x40aebc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x40aebc)||P(_0x40aebc,!0x1),[])):_0x47ab78['delete'](_0x40aebc);}for(const _0x472c45 of _0x47ab78){const _0x422683=_0x523883['insertions'][_0x472c45];for(const _0x256327 of _0x422683){const _0x177145=this['_getVidAttributeName'](_0x256327),_0x225db8=_0x256327['item']['getAttribute'](_0x177145);_0x4f9c92['delete'](_0x225db8),_0x225db8>=this['_startingRevisionId']&&_0x223899['set'](_0x225db8,_0xc689d8['get'](_0x225db8));}}for(const _0x16fdfb of _0x47ab78){const _0x480143=_0x523883['insertions'][_0x16fdfb],_0x2f72fc=this['_getBaseVids'](_0x523883['deletions'][_0x16fdfb]);let _0x5214e8=0x0;for(const _0x407013 of _0x480143){const _0x5b8d98=this['_getVidAttributeName'](_0x407013),_0x970256=_0x407013['item']['getAttribute'](_0x5b8d98);if(!_0x223899['has'](_0x970256)&&!_0x59a550['has'](_0x970256)){if(_0x4f9c92['has'](_0x970256))_0x5214e8++;else{if(_0x970256!=_0x2f72fc[_0x5214e8]){const _0x563ea9=_0xc689d8['get'](_0x970256)||_0xc689d8['get'](_0x2f72fc[_0x5214e8]);for(;_0x970256!=_0x2f72fc[_0x5214e8];)_0x4f9c92['has'](_0x2f72fc[_0x5214e8])||(_0x59a550['set'](_0x2f72fc[_0x5214e8],_0x563ea9),_0xc689d8['set'](_0x2f72fc[_0x5214e8],_0x563ea9)),_0x5214e8++;}_0x5214e8++;}}}}for(const _0x33cf4e of _0x47ab78){const _0x3570c8=_0x523883['insertions'][_0x33cf4e];for(const _0x4c7c76 of _0x3570c8){const _0x2f804e=this['_getVidAttributeName'](_0x4c7c76),_0x1c9d65=_0x4c7c76['item']['getAttribute'](_0x2f804e);if(_0x59a550['has'](_0x1c9d65)){const _0x1a8a1e=_0x59a550['get'](_0x1c9d65);_0x4f9c92['has'](_0x1c9d65)||_0x4f9c92['set'](_0x1c9d65,{..._0x1a8a1e}),_0x223899['set'](_0x1c9d65,{..._0x1a8a1e});}}}for(const _0x447e55 of _0x4f9c92['keys']())_0x447e55>=this['_startingRevisionId']&&_0x4f9c92['delete'](_0x447e55);const _0x3cc44e=new Map();for(const _0x486916 of _0x47ab78){let _0x97860a=_0x523883['insertions'][_0x486916];for(const _0x2a654c of _0x97860a)if(_0x2a654c['item']['is']('element','tableCell')){const _0x2fc8e0=this['_getVidAttributeName'](_0x2a654c),_0x2ce7f5=_0x2a654c['item']['getAttribute'](_0x2fc8e0);if(_0x223899['has'](_0x2ce7f5)){const _0x2f3124=_0x2a654c['item']['parent']['parent']['getAttribute']('vid_start'),_0x48ea70=_0x3cc44e['get'](_0x2f3124)||new Set();_0x48ea70['add'](_0x223899['get'](_0x2ce7f5)['userId']),_0x3cc44e['set'](_0x2f3124,_0x48ea70);}}_0x97860a=_0x523883['deletions'][_0x486916];for(const _0x33df90 of _0x97860a)if(_0x33df90['item']['is']('element','tableCell')){const _0x36f305=this['_getVidAttributeName'](_0x33df90),_0x15c7e5=_0x33df90['item']['getAttribute'](_0x36f305);if(_0x4f9c92['has'](_0x15c7e5)){const _0x1bc708=_0x33df90['item']['parent']['parent']['getAttribute']('vid_start'),_0x12812e=_0x3cc44e['get'](_0x1bc708)||new Set();_0x12812e['add'](_0x4f9c92['get'](_0x15c7e5)['userId']),_0x3cc44e['set'](_0x1bc708,_0x12812e);}}for(const _0x276a0e of _0x3cc44e['keys']())(_0x223899['has'](_0x276a0e)||_0x4f9c92['has'](_0x276a0e))&&_0x3cc44e['delete'](_0x276a0e);}for(const _0x114f6a of _0x47ab78){const _0x2a99f3=_0x523883['insertions'][_0x114f6a];let _0x51e357=null,_0x326c81=null;for(const _0x311f86 of _0x2a99f3){const _0x14daf5=this['_getVidAttributeName'](_0x311f86),_0x3a7317=_0x311f86['item']['getAttribute'](_0x14daf5),_0x9b402c=_0x3cc44e['get'](_0x3a7317);_0x9b402c&&'elementStart'==_0x311f86['type']&&(_0x51e357=Array['from'](_0x9b402c)[0x0],_0x326c81=_0x311f86['item']['getAttribute']('vid_end')),_0x51e357&&(_0x4f9c92['set'](_0x3a7317,{'userId':_0x51e357}),_0x223899['set'](_0x3a7317,{'userId':_0x51e357})),_0x3a7317==_0x326c81&&(_0x51e357=null,_0x326c81=null);}}const _0x1d052a={},_0x20d10e=new Set();for(const _0x24a622 of _0x47ab78){const _0x3b1c91=_0x1ff92e['deletions'][_0x24a622],_0x4335bf=_0x1ff92e['insertions'][_0x24a622];for(const {userId:_0x581eb6}of this['_touchedMarkers']['values']())null!==_0x581eb6&&_0x20d10e['add'](_0x581eb6);for(const {userId:_0x437f31}of this['_touchedRoots']['values']())null!==_0x437f31&&_0x20d10e['add'](_0x437f31);this['_markChanges'](_0x4335bf,_0x523883['insertions'][_0x24a622],_0x223899,'insertion',_0x20d10e),this['_markChanges'](_0x3b1c91,_0x523883['deletions'][_0x24a622],_0x4f9c92,'deletion',_0x20d10e),_0x1d052a[_0x24a622]={'insertions':this['_prepareViewToSave'](_0x4335bf),'deletions':this['_prepareViewToSave'](_0x3b1c91),'attachChange':this['_touchedRoots']['get'](_0x24a622)||null,'attributesBefore':_0x4631d1(this['_baseRootsAttributes']['get'](_0x24a622))||{},'attributesAfter':_0x4631d1(this['_diffRootsAttributes']['get'](_0x24a622))};}return{'diffData':_0x1d052a,'authorsIds':Array['from'](_0x20d10e)};}['_processRootBeforeSave'](_0x3b4fce){for(const [,_0x120e57]of _0x3b4fce['markers']){const _0x193b6c=_0x120e57['start']['getAncestors']()['filter'](_0x4b7d4e=>'tableCell'==_0x4b7d4e['name']);for(const _0x218095 of _0x193b6c)0x1==_0x218095['childCount']&&_0x218095['getChild'](0x0)['is']('element','paragraph')&&_0x218095['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3194d0){this['_processRootBeforeSave'](_0x3194d0);const _0x45c813=this['editor']['data']['toView'](_0x3194d0,{}),_0x5ce54a=Array['from'](_0x45c813['getChildren']())['map'](_0x2527f3=>this['_getViewJson'](_0x2527f3));return JSON['stringify'](_0x5ce54a);}['_getViewJson'](_0x32a8e1){if(_0x32a8e1['is']('$text'))return _0x32a8e1['data'];{const _0x30962e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2c2eb0=_0x32a8e1,_0x12d0d1=this['editor']['data']['htmlProcessor']['domConverter'],_0x1212e7={'type':_0x30962e['_getTypeCharForViewElement'](_0x2c2eb0),'name':_0x2c2eb0['name'],'attributes':Array['from'](_0x2c2eb0['getAttributes']()),'children':Array['from'](_0x2c2eb0['getChildren']())['map'](_0x5558fd=>this['_getViewJson'](_0x5558fd))};if(_0x32a8e1['is']('uiElement')&&'$comment'!=_0x32a8e1['name']){const _0x15a176=_0x32a8e1['render'](_0x12d0d1['domDocument'],_0x12d0d1);_0x1212e7['children']['push'](_0x15a176['outerHTML']);}else{if(_0x32a8e1['is']('rawElement')){const _0x211d82=_0x12d0d1['domDocument']['createElement'](_0x2c2eb0['name']);_0x32a8e1['render'](_0x211d82,_0x12d0d1),_0x1212e7['children']['push'](_0x211d82['innerHTML']);}}const _0x2e1a0b=Array['from'](_0x2c2eb0['getCustomProperties']());_0x2e1a0b['length']>0x0&&(_0x1212e7['customProperties']=_0x2e1a0b);const _0x76c399=_0x2c2eb0['getFillerOffset']();return null!==_0x76c399&&(_0x1212e7['fillerOffset']=_0x76c399),_0x1212e7;}}['_markChanges'](_0x4fb294,_0x4a045d,_0x477ed6,_0x2ce52e,_0xfc1aae){let _0x34e230=null,_0x4c2db8=null,_0x43676f=0x0;const _0x567f87=this['editor']['model'];for(let _0x59c528=0x0;_0x59c528<_0x4a045d['length'];_0x59c528++){const _0x59b9e0=this['_getVidAttributeName'](_0x4a045d[_0x59c528]),_0x62e870=_0x4a045d[_0x59c528]['item']['getAttribute'](_0x59b9e0),_0x278bed=_0x477ed6['get'](_0x62e870),_0x3aea07=_0x59c528==_0x4a045d['length']-0x1;(!_0x34e230&&_0x278bed&&(_0x34e230=_0x278bed,_0x4c2db8=_0x4a045d[_0x59c528]),_0x34e230&&(!_0x278bed||_0x278bed['userId']!=_0x34e230['userId']))&&(_0x46b7a2(_0x278bed,F(_0x4c2db8,_0x4fb294,_0x567f87),F(_0x4a045d[_0x59c528],_0x4fb294,_0x567f87)),_0x34e230=_0x278bed||null,_0x4c2db8=_0x278bed?_0x4a045d[_0x59c528]:null),_0x34e230&&_0x3aea07&&_0x46b7a2(_0x278bed,F(_0x4c2db8,_0x4fb294,_0x567f87),B(_0x4a045d[_0x59c528],_0x4fb294,_0x567f87));}function _0x46b7a2(_0x1e1d9a,_0x4969ba,_0x29557c){const _0x29b7f6=_0x34e230['userId'],_0x433b17='revision:'+_0x2ce52e+':'+_0x29b7f6+':'+_0x43676f++,_0x5cf697=_0x567f87['createRange'](_0x4969ba,_0x29557c);_0x4fb294['markers']['set'](_0x433b17,_0x5cf697),null!==_0x29b7f6&&_0xfc1aae['add'](_0x29b7f6);}}['_getVidAttributeName'](_0x55fdd7){switch(_0x55fdd7['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1616de,_0x4b3dbc){_0x1616de['baseVersion']=null;for(const _0x48eaef in _0x1616de){const _0x3d1152=_0x1616de[_0x48eaef];if(_0x3d1152 instanceof vt){const _0x21d715=_0x4b3dbc['get'](_0x3d1152['root']['rootName']);_0x1616de[_0x48eaef]=this['_fixPosition'](_0x3d1152,_0x21d715);}if(_0x3d1152 instanceof ft){const _0x2d9a24=_0x4b3dbc['get'](_0x3d1152['root']['rootName']);_0x1616de[_0x48eaef]=this['_fixRange'](_0x3d1152,_0x2d9a24);}'root'===_0x48eaef&&(_0x1616de['root']=_0x4b3dbc['get'](_0x1616de['root']['rootName']));}}['_fixRange'](_0x3cd180,_0x1e414a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3cd180['start'],_0x1e414a),this['_fixPosition'](_0x3cd180['end'],_0x1e414a));}['_fixPosition'](_0x48c5ff,_0x451cd6){return this['editor']['model']['createPositionFromPath'](_0x451cd6,_0x48c5ff['path'],_0x48c5ff['stickiness']);}['_handleInsertOperation'](_0x576247){const _0x366e9e=this['_idsRoots']['get'](_0x576247['position']['root']['rootName']),_0xcecc9a=this['_fixPosition'](_0x576247['position'],_0x366e9e),_0x1185e0=null===_0x576247['_authorId']?null:_0x576247['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55bb2b=_0xcecc9a['parent'],_0x136a3a=this['_revisionId'],_0x68b3be=[];for(const _0xadbeaa of _0x576247['nodes'])if(_0xadbeaa['is']('element'))_0x68b3be['push'](this['_makeIdsRoot'](_0xadbeaa));else{for(let _0x4f2b7d=0x0;_0x4f2b7d<_0xadbeaa['offsetSize'];_0x4f2b7d++)_0x68b3be['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1fc730=this['_revisionId'];for(let _0x81f9f2=_0x136a3a;_0x81f9f2<_0x1fc730;_0x81f9f2++)this['_touched']['set'](_0x81f9f2,{'userId':_0x1185e0});_0x55bb2b['_insertChild'](_0xcecc9a['offset'],_0x68b3be);}['_handleMoveOperation'](_0x4c87ff){(_0x4c87ff=this['_cloneOperation'](_0x4c87ff,this['_idsRoots']))['_execute']();const _0x2be398=null===_0x4c87ff['_authorId']?null:_0x4c87ff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b29e6=_0x4c87ff['getMovedRangeStart'](),_0x4b9406=_0x4b29e6['parent'],_0x43601a=_0x4b29e6['offset'];!function _0x460fa9(_0xd0c6d5,_0x2d5906,_0x402901,_0x5e4532){for(let _0x5995d5=_0x402901;_0x5995d5<_0x5e4532;_0x5995d5++){const _0x150e50=_0x2d5906['getChild'](_0x5995d5);_0x150e50['is']('element','$text')?_0xd0c6d5['set'](_0x150e50['getAttribute']('vid'),{'userId':_0x2be398}):(_0xd0c6d5['set'](_0x150e50['getAttribute']('vid_start'),{'userId':_0x2be398}),_0x460fa9(_0xd0c6d5,_0x150e50,0x0,_0x150e50['childCount']),_0xd0c6d5['set'](_0x150e50['getAttribute']('vid_end'),{'userId':_0x2be398}));}}(this['_touched'],_0x4b9406,_0x43601a,_0x43601a+_0x4c87ff['howMany']);}['_handleMergeOperation'](_0x3982cd){const _0x4babda=null===(_0x3982cd=this['_cloneOperation'](_0x3982cd,this['_idsRoots']))['_authorId']?null:_0x3982cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xace258=_0x3982cd['targetPosition']['parent'],_0x5eeee0=_0x3982cd['sourcePosition']['parent'],_0x29be6c=_0xace258['getAttribute']('vid_end'),_0xb4fc52=_0x5eeee0['getAttribute']('vid_start');_0xace258['_setAttribute']('vid_end',_0x5eeee0['getAttribute']('vid_end')),_0x5eeee0['_setAttribute']('vid_end',_0x29be6c),this['_touched']['set'](_0xb4fc52,{'userId':_0x4babda}),this['_touched']['set'](_0x29be6c,{'userId':_0x4babda}),_0x3982cd['_execute']();}['_handleSplitOperation'](_0x122661){const _0x2e83ea=null===(_0x122661=this['_cloneOperation'](_0x122661,this['_idsRoots']))['_authorId']?null:_0x122661['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31b4b3=_0x122661['graveyardPosition'],_0x4d4d3c=_0x122661['splitPosition']['parent'];_0x122661['_execute']();const _0x22a854=_0x4d4d3c['getAttribute']('vid_end'),_0x38ef47=_0x122661['insertionPosition']['nodeAfter'];if(_0x31b4b3){const _0x448491=_0x38ef47['getAttribute']('vid_end'),_0x222010=_0x4d4d3c['getAttribute']('vid_end');_0x4d4d3c['_setAttribute']('vid_end',_0x448491),_0x38ef47['_setAttribute']('vid_end',_0x222010),this['_touched']['set'](_0x4d4d3c['getAttribute']('vid_end'),{'userId':_0x2e83ea}),this['_touched']['set'](_0x38ef47['getAttribute']('vid_start'),{'userId':_0x2e83ea});}else{const _0x54f35e=this['_revisionId']++,_0x2fa035=this['_revisionId']++;_0x4d4d3c['_setAttribute']('vid_end',_0x54f35e),_0x38ef47['_setAttribute']('vid_start',_0x2fa035),_0x38ef47['_setAttribute']('vid_end',_0x22a854),this['_touched']['set'](_0x54f35e,{'userId':_0x2e83ea}),this['_touched']['set'](_0x2fa035,{'userId':_0x2e83ea});}}['_handleMarkerOperation'](_0x6793e){if(!_0x6793e['affectsData'])return;const _0x4c056c=(_0x6793e=this['_cloneOperation'](_0x6793e,this['_diffRoots']))['oldRange']?_0x6793e['oldRange']['root']:null,_0x469713=_0x6793e['newRange']?_0x6793e['newRange']['root']:null;_0x4c056c&&this['_markers']['delete'](_0x6793e['name']),_0x469713&&this['_markers']['set'](_0x6793e['name'],_0x6793e['newRange']['clone']());const _0x4d6d76=null===_0x6793e['_authorId']?null:_0x6793e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3487e6=_0x6793e['name'];if(!this['_touchedMarkers']['has'](_0x3487e6))return void this['_touchedMarkers']['set'](_0x3487e6,{'range':_0x6793e['oldRange'],'userId':_0x4d6d76});const _0x4de979=this['_touchedMarkers']['get'](_0x3487e6),_0x31dc8e=_0x4de979['range'],_0x2fd508=_0x6793e['newRange'];null==_0x31dc8e&&null==_0x2fd508||_0x31dc8e&&_0x2fd508&&_0x31dc8e['isEqual'](_0x2fd508)?this['_touchedMarkers']['delete'](_0x6793e['name']):_0x4de979['userId']=_0x4d6d76;}['_handleRootOperation'](_0x3eee25,_0x3a99d6){this['_diffRoots']['has'](_0x3eee25['rootName'])?this['_diffRoots']['get'](_0x3eee25['rootName'])['_isAttached']=_0x3eee25['isAdd']:(this['_diffRoots']['set'](_0x3eee25['rootName'],P(_0x3eee25['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3eee25['rootName'],{}),_0x3a99d6&&this['_idsRoots']['set'](_0x3eee25['rootName'],P(_0x3eee25['rootName'],!0x0)));const _0xd320b0=null===_0x3eee25['_authorId']?null:_0x3eee25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14ce91=this['_touchedRoots']['get'](_0x3eee25['rootName']);_0x14ce91&&_0x14ce91['userId']===_0xd320b0?this['_touchedRoots']['delete'](_0x3eee25['rootName']):this['_touchedRoots']['set'](_0x3eee25['rootName'],{'userId':_0xd320b0,'isAttached':_0x3eee25['isAdd']});}['_handleRootAttributeOperation'](_0x1bea7a){const _0x18fb51=this['_diffRootsAttributes']['get'](_0x1bea7a['root']['rootName']);null===_0x1bea7a['newValue']?delete _0x18fb51[_0x1bea7a['key']]:_0x18fb51[_0x1bea7a['key']]=_0x1bea7a['newValue'];}}function N(_0x503662){const _0x5db0cc=P(_0x503662['rootName'],_0x503662['isAttached']());for(const _0x14e21e of _0x503662['getChildren']()){const _0x5b7c31=_0x14e21e['_clone'](!0x0);_0x5db0cc['_appendChild'](_0x5b7c31);}return _0x5db0cc;}function P(_0x19f86b,_0x583d3e=!0x0){const _0x45e0cc=new gt();return _0x45e0cc['rootName']=_0x19f86b,_0x45e0cc['_isAttached']=_0x583d3e,_0x45e0cc['isAttached']=()=>_0x45e0cc['_isAttached'],_0x45e0cc;}function F(_0x2ac4b9,_0x152348,_0x31404a){const _0x28ba73='elementEnd'==_0x2ac4b9['type']?_0x31404a['createPositionAt'](_0x2ac4b9['item'],'end'):_0x31404a['createPositionBefore'](_0x2ac4b9['item']);return _0x31404a['createPositionFromPath'](_0x152348,_0x28ba73['path'],_0x28ba73['stickiness']);}function B(_0x5a0955,_0x73e8c8,_0x4a447c){const _0x3b362e='elementStart'==_0x5a0955['type']?_0x4a447c['createPositionAt'](_0x5a0955['item'],0x0):_0x4a447c['createPositionAfter'](_0x5a0955['item']);return _0x4a447c['createPositionFromPath'](_0x73e8c8,_0x3b362e['path'],_0x3b362e['stickiness']);}class hs extends _0x1792c1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xdcfe11,_0x313757){super(_0xdcfe11),this['focusTracker']=new _0x82470a(),this['keystrokes']=new _0x35e91d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x313757),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'](),_0x44053f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x26bd17=_0x56ff32=>_0x56ff32['stopPropagation']();this['keystrokes']['set']('arrowright',_0x26bd17),this['keystrokes']['set']('arrowleft',_0x26bd17),this['keystrokes']['set']('arrowup',_0x26bd17),this['keystrokes']['set']('arrowdown',_0x26bd17);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x470b63){this['revisionNameInputView']['fieldView']['element']['value']=_0x470b63['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3d7b07){const _0x17feea=new nt(this['locale'],ti),_0x4c78a6=_0x17feea['fieldView'];_0x4c78a6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x44b97e=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3d7b07&&(_0x44b97e+='\x20('+g(this['locale'],'optional')+')'),(_0x17feea['label']=_0x44b97e,_0x4c78a6['on']('input',()=>{this['revisionNameInputValue']=_0x4c78a6['element']['value']['trim']();}),_0x17feea);}}class f extends _0x3f2981{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xd62710=this['editor'],_0x4323de=_0xd62710['plugins']['get']('RevisionTracker');_0xd62710['ui']['componentFactory']['add']('revisionHistory',_0x51b66e=>{const _0x1dac34=_0x542f9c(_0x51b66e),_0x199ddc=_0x1dac34['panelView']['children'],_0xd6c70a=new _0x5142bf(_0x51b66e),_0xeaa97a=new _0x5acfd9(_0x51b66e),_0x2dde42=new _0x1abc3e(_0x51b66e),_0x1c6947=new _0x5acfd9(_0x51b66e),_0x2a00c6=new _0x1abc3e(_0x51b66e);return _0x1dac34['bind']('isEnabled')['to'](_0x4323de,'isReady',_0x4323de,'isEnabled',_0xd62710,'isReadOnly',(_0x29748d,_0x431f73,_0x5020a1)=>_0x29748d&&_0x431f73&&!_0x5020a1),_0x1dac34['buttonView']['set']({'icon':_0x184d1b,'label':g(_0x51b66e,'Revision\x20history'),'tooltip':!0x0}),_0x2dde42['set']({'label':g(_0x51b66e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2dde42['bind']('isEnabled')['to'](_0x4323de,'isReady',_0x4323de,'isEnabled',_0xd62710,'isReadOnly',(_0x429499,_0x5079d9,_0x18b428)=>_0x429499&&_0x5079d9&&!_0x18b428),_0x2dde42['on']('execute',()=>this['_showDialog']()),_0x2a00c6['set']({'label':g(_0x51b66e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a00c6['bind']('isEnabled')['to'](_0x4323de,'isReady',_0xd62710,'isReadOnly',(_0x89ba18,_0x4c3d8b)=>_0x89ba18&&!_0x4c3d8b),_0x2a00c6['on']('execute',()=>{_0xd62710['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1dac34['isOpen']=!0x1,_0xd62710['editing']['view']['focus']();}),_0xeaa97a['children']['add'](_0x2dde42),_0x1c6947['children']['add'](_0x2a00c6),_0xd6c70a['role']='menu',_0xd6c70a['items']['addMany']([_0xeaa97a,_0x1c6947]),_0x199ddc['add'](_0xd6c70a),_0x1dac34;}),_0xd62710['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49dbd9=this['editor'],_0x451e7e=_0x49dbd9['locale'],_0x209f93=new _0x106d50(_0x451e7e),_0x5e7019=new _0x5c1d2b(_0x451e7e);_0x209f93['buttonView']['set']({'icon':_0x184d1b,'label':g(_0x451e7e,'Revision\x20history')});const _0x49e43c=new _0x1afdb1(_0x451e7e,_0x209f93),_0x711da2=new _0x3eef0c(_0x451e7e);_0x711da2['set']({'label':g(_0x451e7e,'Save\x20current\x20revision')}),_0x711da2['delegate']('execute')['to'](_0x209f93),_0x711da2['on']('execute',()=>{this['_showDialog']();}),_0x49e43c['children']['add'](_0x711da2),_0x5e7019['items']['add'](_0x49e43c);const _0x366eb4=new _0x1afdb1(_0x451e7e,_0x209f93),_0x326bd7=new _0x3eef0c(_0x451e7e);return _0x326bd7['set']({'label':g(_0x451e7e,'Open\x20revision\x20history')}),_0x326bd7['delegate']('execute')['to'](_0x209f93),_0x326bd7['on']('execute',()=>{_0x49dbd9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x366eb4['children']['add'](_0x326bd7),_0x5e7019['items']['add'](_0x366eb4),_0x209f93['panelView']['children']['add'](_0x5e7019),_0x209f93;}['_showDialog'](){const _0x27ff18=this['editor'],_0x2d87e6=_0x27ff18['locale'],_0x32c405=_0x27ff18['plugins']['get']('Dialog'),_0x1eebb0=_0x27ff18['plugins']['get']('RevisionTracker');function _0x4bda5f(_0x5109fb){_0x27ff18['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5109fb['revisionName']?_0x5109fb['revisionNameInputView']['errorText']=g(_0x2d87e6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x27ff18['plugins']['get'](u)['saveRevision']({'name':_0x5109fb['revisionName']}),_0x32c405['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4bda5f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x32c405['show']({'id':'revisionSave','title':g(_0x2d87e6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x27ff18['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x32c405['hide']()},{'label':g(_0x27ff18['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3377e6){_0x3377e6['bind']('isEnabled')['to'](_0x1eebb0,'isReady',_0x1eebb0,'isEnabled',_0x27ff18,'isReadOnly',(_0x3e4985,_0x58a8d3,_0x4a0419)=>_0x3e4985&&_0x58a8d3&&!_0x4a0419);},'onExecute':()=>_0x4bda5f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x21f363=this['editor'],_0x5dff57=_0x21f363['locale'];this['_saveRevisionFormView']=new hs(_0x5dff57,_0x21f363['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x1792c1{['changeId'];['_model'];constructor(_0x544e84,_0x1014ed){super(_0x544e84),this['_model']=_0x1014ed,this['changeId']=_0x1014ed['id'];const _0x120012=this['bindTemplate'],_0x44f4e3=g(_0x544e84,_0x1014ed['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1014ed['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1014ed['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x120012['to']('type',_0x1a393f=>'ck-revision-change__'+_0x1a393f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x44f4e3}]},{'text':'\x20'+_0x1014ed['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x58c48e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x402ab1){super(),this['id']=_0x402ab1['id']||_0x488afd(),this['author']=_0x402ab1['author'],this['type']=_0x402ab1['type'],this['data']=_0x402ab1['data']||{},this['rootName']=_0x402ab1['rootName'],this['set']('createdAt',_0x402ab1['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(_0x4cec02,_0x1febda){this['newRevisionId']=_0x4cec02,this['oldRevisionId']=_0x1febda,this['changes']=new _0x4419cc();}['_setChanges'](_0x21e84d){for(const _0x25ee00 of _0x21e84d)this['changes']['add'](_0x25ee00);}}class m extends _0x3f2981{['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[_0x2f8fb9,_0x191e0,I,V];}constructor(_0x26bac9){super(_0x26bac9),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',(_0x56e722,_0x2594e6,_0x2d0ae4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32d834=>{for(const _0x31615d of this['editor']['editing']['view']['document']['roots'])_0x2d0ae4?_0x32d834['removeClass']('ck-editor__editable__overlay',_0x31615d):_0x32d834['addClass']('ck-editor__editable__overlay',_0x31615d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x26c4ed=>null!==_0x26c4ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1138e0,_0x3e4f52,_0x5820a7)=>_0x1138e0&&_0x5820a7?_0x3e4f52['changes']['getIndex'](_0x5820a7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3bb0ec,_0x584c3f)=>_0x3bb0ec?_0x584c3f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x191e0);}['init'](){const _0x2dd8bb=this['editor'],_0x766951=new pt(_0x2dd8bb,{'direction':'backward'}),_0x4d5909=new pt(_0x2dd8bb,{'direction':'forward'});(_0x2dd8bb['commands']['add']('showPreviousChange',_0x766951),_0x2dd8bb['commands']['add']('showNextChange',_0x4d5909),_0x2dd8bb['commands']['add']('restoreRevision',new wt(_0x2dd8bb)),this['on']('change:numberOfChanges',()=>{_0x766951['refresh'](),_0x4d5909['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dd8bb['enableReadOnlyMode']('revision-viewer'),_0x2dd8bb['plugins']['has']('WidgetToolbarRepository'))&&_0x2dd8bb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x30fc94){return await this['_utils']['loadRevisionData'](_0x30fc94,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x30fc94);}async['getRevisionRootsAttributes'](_0x65ddb1){return await this['_utils']['loadRevisionData'](_0x65ddb1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x65ddb1);}async['compare'](_0x2ea771,_0x4f3942,_0x32675a=!0x1){if(!this['isEnabled'])return;const _0x23a735=this['diff'],_0x1c5c5f=this['repository'],_0x3f6a2b='string'==typeof _0x2ea771?_0x1c5c5f['getRevision'](_0x2ea771):_0x2ea771,_0x36cddc='string'==typeof _0x4f3942?_0x1c5c5f['getRevision'](_0x4f3942):_0x4f3942,_0x49c6cb=_0x3f6a2b['id'],_0x2e9ac2=_0x36cddc?_0x36cddc['id']:null;if(!_0x32675a&&this['diff']&&this['diff']['newRevisionId']===_0x49c6cb&&this['diff']['oldRevisionId']===_0x2e9ac2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x49c6cb,_0x2e9ac2);const _0x3c3352=this['_getRevisionsRange'](_0x3f6a2b,_0x36cddc,!0x0)['map'](_0x42fd8f=>this['_utils']['loadRevisionData'](_0x42fd8f,this['adapter']));return _0x3c3352['push'](new Promise(_0x1c518a=>{setTimeout(_0x1c518a,0x14);})),Promise['all'](_0x3c3352)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x25502b=this['_getDiff'](_0x49c6cb,_0x2e9ac2);for(const _0x3e99de of _0x25502b['changes'])this['_changeIdToChange']['set'](_0x3e99de['id'],_0x3e99de);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x284bfd=>{for(const _0x4c733b of this['editor']['model']['document']['getRootNames']())_0x284bfd['detachRoot'](_0x4c733b);for(const _0x248be8 of Object['keys'](_0x25502b['model'])){const _0x47bfbe=_0x284bfd['addRoot'](_0x248be8);for(const _0x3f7b1b of Object['keys'](_0x25502b['attributes'][_0x248be8]))_0x284bfd['setAttribute'](_0x3f7b1b,_0x25502b['attributes'][_0x248be8][_0x3f7b1b],_0x47bfbe);_0x284bfd['insert'](_0x25502b['model'][_0x248be8],_0x47bfbe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x25502b['changes'])),this['isReady']=!0x0;})['catch'](_0x326f0f=>{console['error'](_0x326f0f),this['_cleanUp'](),_0x23a735&&(this['diff']=_0x23a735),this['isReady']=!0x0;});}['addRevisionData'](_0x4a3736,_0x15f144){const _0x3caa5e=this['repository']['createRevision'](_0x4a3736);return _0x3caa5e['on']('_update',(_0xf68382,_0x53cda8,_0x481346)=>_0x15f144(_0x53cda8,_0x481346,_0x3caa5e)),this['repository']['addRevision'](_0x3caa5e),_0x3caa5e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb73680=>{for(const _0x52b0d5 of this['editor']['model']['document']['getRootNames']())_0xb73680['detachRoot'](_0x52b0d5);});}['_sortAndFilterDiffChanges'](_0x347f32){const _0x352d5c=[],_0x50e60d=new Map();for(const _0x4d0089 of this['editor']['model']['document']['getRootNames']()){const _0x4f9d27=this['editor']['editing']['view']['getDomRoot'](_0x4d0089);if(!_0x4f9d27)continue;const _0x5cad2f=_0x4f9d27['getClientRects']()['item'](0x0);_0x5cad2f&&(_0x352d5c['push'](_0x4d0089),_0x50e60d['set'](_0x4d0089,_0x5cad2f));}return _0x352d5c['sort']((_0xc72860,_0x532688)=>{const _0x749d5c=_0x50e60d['get'](_0xc72860),_0x38064f=_0x50e60d['get'](_0x532688);return _0x749d5c['y']-_0x38064f['y']||_0x749d5c['x']-_0x38064f['x'];}),(_0x347f32=_0x347f32['filter'](_0x2bbe62=>_0x352d5c['includes'](_0x2bbe62['rootName'])))['sort']((_0x3255eb,_0x362d65)=>_0x352d5c['indexOf'](_0x3255eb['rootName'])-_0x352d5c['indexOf'](_0x362d65['rootName'])),_0x347f32;}['_makeTape'](_0x4dd0c0){const _0x479885=Array['from'](_0x4dd0c0['markers'])['filter'](([_0x64635c,_0x3b4573])=>_0x64635c['startsWith']('revision:')&&!_0x3b4573['isCollapsed']),_0x39b64b=Array['from'](this['editor']['model']['createRangeIn'](_0x4dd0c0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x479885['length'])for(const _0x28f599 of _0x39b64b){const [_0x181944,_0x573daf]=_0x479885[0x0],[,_0x5dc3ed,_0x206ed6]=_0x181944['split'](':');if(_0x573daf['end']['isEqual'](_0x28f599['nextPosition'])&&_0x479885['shift'](),(_0x28f599['previousPosition']['isEqual'](_0x573daf['start'])||_0x28f599['previousPosition']['isAfter'](_0x573daf['start']))&&('insertion'==_0x5dc3ed?_0x28f599['isAdded']={'userId':_0x206ed6}:'deletion'==_0x5dc3ed&&(_0x28f599['isRemoved']={'userId':_0x206ed6})),0x0==_0x479885['length'])break;}return _0x39b64b;}['_refreshStartEndIndex'](_0x5f4aa5){const _0x4370ec=new Map();for(let _0x4b92ba=0x0;_0x4b92ba<_0x5f4aa5['length'];_0x4b92ba++)'text'===_0x5f4aa5[_0x4b92ba]['type']?(_0x5f4aa5[_0x4b92ba]['item']['startIndex']=_0x4b92ba,_0x5f4aa5[_0x4b92ba]['item']['endIndex']=_0x4b92ba):('elementStart'===_0x5f4aa5[_0x4b92ba]['type']?_0x5f4aa5[_0x4b92ba]['item']['startIndex']=_0x4b92ba:'elementEnd'===_0x5f4aa5[_0x4b92ba]['type']&&(_0x5f4aa5[_0x4b92ba]['item']['endIndex']=_0x4b92ba),_0x4370ec['set'](_0x5f4aa5[_0x4b92ba]['id'],_0x4b92ba));for(const _0x1ae1fd of _0x4370ec['values']())'elementStart'===_0x5f4aa5[_0x1ae1fd]['type']?_0x5f4aa5[_0x1ae1fd]['item']['endIndex']=_0x4370ec['get'](_0x5f4aa5[_0x1ae1fd]['pairId']):'elementEnd'===_0x5f4aa5[_0x1ae1fd]['type']&&(_0x5f4aa5[_0x1ae1fd]['item']['startIndex']=_0x4370ec['get'](_0x5f4aa5[_0x1ae1fd]['pairId']));}['_processTape'](_0x4d3711){for(let _0x5837b7=0x0;_0x5837b7<_0x4d3711['length'];_0x5837b7++){if('elementStart'===_0x4d3711[_0x5837b7]['type'])_0x4d3711[_0x5837b7]['item']['startIndex']=_0x5837b7;else{if('elementEnd'===_0x4d3711[_0x5837b7]['type']){_0x4d3711[_0x5837b7]['item']['endIndex']=_0x5837b7;const _0x5cab39=_0x4d3711[_0x5837b7]['item']['startIndex'];_0x4d3711[_0x5cab39]['pairId']=_0x4d3711[_0x5837b7]['id'],_0x4d3711[_0x5837b7]['pairId']=_0x4d3711[_0x5cab39]['id'];}else _0x4d3711[_0x5837b7]['item']['startIndex']=_0x5837b7,_0x4d3711[_0x5837b7]['item']['endIndex']=_0x5837b7,_0x4d3711[_0x5837b7]['pairId']=null;}_0x4d3711[_0x5837b7]['markersStart']||(_0x4d3711[_0x5837b7]['markersStart']=[],_0x4d3711[_0x5837b7]['markersEnd']=[]);}}['_markInsertions'](_0xa54b0e,_0xa80ac3){const _0x524bc0=_0xa54b0e['filter'](_0x33cefa=>!_0x33cefa['isAdded']);for(let _0x2d3e9e=0x0;_0x2d3e9e<_0xa80ac3['length'];_0x2d3e9e++)_0xa80ac3[_0x2d3e9e]['isAdded']&&(_0x524bc0[_0x2d3e9e]['isAdded']=_0xa80ac3[_0x2d3e9e]['isAdded']);}['_getDiff'](_0x16a9e1,_0x3751c4=null){const _0x4697e1=this['repository']['getRevision'](_0x16a9e1),_0x1fb0c4=_0x3751c4?this['repository']['getRevision'](_0x3751c4):null,_0x24d78f=this['_getRevisionsRange'](_0x4697e1,_0x1fb0c4),_0x3e857e=_0x24d78f[_0x24d78f['length']-0x1],_0x196f9b=new Map(),_0x2f55a3={'model':{},'attributes':{},'changes':[]},_0x4d2514=new Set(),_0x4392b1=new Map();for(let _0x455c49=_0x24d78f['length']-0x1;_0x455c49>=0x0;_0x455c49--){const _0x3247e4=_0x24d78f[_0x455c49];for(const _0x3b15f0 of Object['keys'](_0x3247e4['diffData']))if(_0x3247e4['diffData'][_0x3b15f0]['attachChange']){const _0x3fa5b6=_0x3247e4['diffData'][_0x3b15f0]['attachChange'];_0x3fa5b6['isAttached']?(_0x4d2514['add'](_0x3b15f0),_0x4392b1['has'](_0x3b15f0)&&_0x4392b1['get'](_0x3b15f0)['userId']==_0x3fa5b6['userId']?_0x4392b1['delete'](_0x3b15f0):_0x4392b1['set'](_0x3b15f0,_0x3fa5b6)):_0x4392b1['has'](_0x3b15f0)?(_0x4d2514['delete'](_0x3b15f0),_0x4392b1['delete'](_0x3b15f0)):(_0x4d2514['add'](_0x3b15f0),_0x4392b1['set'](_0x3b15f0,_0x3fa5b6));}else _0x4d2514['add'](_0x3b15f0);}for(const _0x48e514 of _0x4d2514){const _0x5c29c1=_0x4392b1['has'](_0x48e514)&&!_0x4392b1['get'](_0x48e514)['isAttached'];let _0x18a6ce=_0x5c29c1?_0x24d78f['length']-0x1:0x0;const _0x2ea464=_0x5c29c1?-0x1:0x1;for(;_0x24d78f[_0x18a6ce];){const _0x35d414=_0x24d78f[_0x18a6ce];if(_0x35d414['diffData'][_0x48e514]){const _0x401f30=_0x5c29c1?_0x35d414['diffData'][_0x48e514]['attributesBefore']:_0x35d414['diffData'][_0x48e514]['attributesAfter'];_0x2f55a3['attributes'][_0x48e514]=_0x401f30?_0x4631d1(_0x401f30):{};break;}_0x18a6ce+=_0x2ea464;}}for(const _0x5c796c of _0x24d78f){_0x5c796c['model']={};for(const _0x4e263f of _0x5c796c['authors'])_0x196f9b['set'](_0x4e263f['id'],_0x4e263f);for(const _0x5e8300 of _0x4d2514){const _0x3fe813=_0x5c796c['diffData'][_0x5e8300]?_0x5c796c['diffData'][_0x5e8300]['insertions']:'[]',_0x17a49c=_0x5c796c['diffData'][_0x5e8300]?_0x5c796c['diffData'][_0x5e8300]['deletions']:'[]';_0x5c796c['model'][_0x5e8300]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3fe813),'deletions':this['_utils']['_makeModelFromViewString'](_0x17a49c)};}}for(const _0x9d9a36 of _0x4d2514){let _0x461c7b=null,_0x16c6c9=0x0;const _0xe8d7a2=new Map(Array['from'](_0x4697e1['model'][_0x9d9a36]['insertions']['markers'])['filter'](([_0xf6ea33])=>!_0xf6ea33['startsWith']('revision:')));let _0x3c79f6=0x0;for(const _0x4d644f of _0x24d78f){const _0x223c9d=this['_makeTape'](_0x4d644f['model'][_0x9d9a36]['insertions']);_0x4d644f==_0x4697e1?(_0x461c7b=_0x223c9d,_0x16c6c9=_0x461c7b['length'],_0x461c7b['forEach'](_0x2338dc=>{_0x2338dc['id']=_0x3c79f6++;}),this['_processTape'](_0x461c7b)):this['_markInsertions'](_0x461c7b,_0x223c9d);const _0x11b278=_0x461c7b['filter'](_0x1c1134=>!_0x1c1134['isAdded'])['map'](_0x6f8c2f=>_0x6f8c2f['id']);let _0x123392=0x0;const _0xd123a8=this['_makeTape'](_0x4d644f['model'][_0x9d9a36]['deletions']);_0xd123a8['forEach'](_0x43377f=>{_0x43377f['isRemoved']?_0x43377f['id']=_0x16c6c9++:_0x43377f['id']=_0x11b278[_0x123392++];}),this['_processTape'](_0xd123a8),this['_setDistance'](_0x461c7b,'isAdded'),this['_setDistance'](_0xd123a8,'isRemoved'),_0x4d644f==_0x4697e1&&this['_markMarkers'](_0x461c7b,_0xe8d7a2),_0x461c7b=this['_joinTapes'](_0x461c7b,_0xd123a8),this['_refreshStartEndIndex'](_0x461c7b),this['_setDistance'](_0x461c7b,'isRemoved');}_0x461c7b=_0x461c7b['filter'](_0x1300b5=>!(_0x1300b5['isAdded']&&_0x1300b5['isRemoved']));const _0x51da43=new Map(_0x3e857e['model'][_0x9d9a36]['deletions']['markers']),_0x30672b=new Set(_0xe8d7a2['keys']());for(const _0x5453c8 of _0x51da43['keys']())_0x30672b['delete'](_0x5453c8);this['_markSuggestions'](_0x461c7b,_0x30672b),this['_fixObsoleteTags'](_0x461c7b),_0x461c7b=this['_removeMissingPairs'](_0x461c7b),_0x461c7b=this['_markMismatchedRemovedTags'](_0x461c7b),_0x461c7b=this['_removeUnsupportedChanges'](_0x461c7b);const {root:_0x12355d,changes:_0x58297a}=this['_makeModelFromTape'](_0x461c7b,_0x196f9b,_0x9d9a36);_0x2f55a3['model'][_0x9d9a36]=_0x12355d;const _0x1e6588=_0x4392b1['get'](_0x9d9a36);if(_0x1e6588){const _0x301e89=_0x196f9b['get'](_0x1e6588['userId']),_0x415e5a=new r({'author':_0x301e89,'type':_0x1e6588['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x9d9a36});_0x58297a['unshift'](_0x415e5a),_0x2f55a3['attributes'][_0x9d9a36]['revisionHistoryAttachChange']=_0x415e5a['id'];}_0x2f55a3['changes']=_0x2f55a3['changes']['concat'](_0x58297a);}return _0x2f55a3;}['_markMarkers'](_0xf5fbde,_0x4c8392){for(let _0x601fa7=0x0;_0x601fa7<_0xf5fbde['length'];_0x601fa7++)for(const [_0x54c76c,_0x34846b]of _0x4c8392)!_0x34846b['isCollapsed']&&_0x34846b['start']['isEqual'](_0xf5fbde[_0x601fa7]['previousPosition'])&&_0xf5fbde[_0x601fa7]['markersStart']['push'](_0x54c76c),_0x34846b['end']['isEqual'](_0xf5fbde[_0x601fa7]['nextPosition'])&&_0xf5fbde[_0x601fa7]['markersEnd']['push'](_0x54c76c);}['_joinTapes'](_0x678cd5,_0x3d75f7){let _0x17628a=[],_0x53644c=0x0,_0x13572a=0x0;for(;_0x53644c<_0x678cd5['length']||_0x13572a<_0x3d75f7['length'];){const _0x283472=_0x678cd5[_0x53644c]||{},_0x4638c9=_0x3d75f7[_0x13572a]||{};if(_0x283472['id']==_0x4638c9['id'])_0x53644c++,_0x13572a++,_0x17628a['push'](_0x283472);else{if(_0x4638c9['isRemoved']&&_0x283472['isAdded']){const {commonTape:_0x4a0255,iEnd:_0x2ab6f7,jEnd:_0x2cd7c9}=this['_threeWayMerge'](_0x678cd5,_0x53644c,_0x3d75f7,_0x13572a);_0x17628a=_0x17628a['concat'](_0x4a0255),_0x53644c=_0x2ab6f7,_0x13572a=_0x2cd7c9;}else _0x4638c9['isRemoved']?(_0x13572a++,_0x17628a['push'](_0x4638c9)):(_0x53644c++,_0x17628a['push'](_0x283472));}}return _0x17628a;}['_markSuggestions'](_0x4d647f,_0x1864ad){const _0x517de2=[];for(let _0x3be6a3=0x0;_0x3be6a3<_0x4d647f['length'];_0x3be6a3++){for(let _0xeb4fc1=0x0;_0xeb4fc1<_0x4d647f[_0x3be6a3]['markersStart']['length'];_0xeb4fc1++){const _0x5f2356=_0x4d647f[_0x3be6a3]['markersStart'][_0xeb4fc1];if(!_0x1864ad['has'](_0x5f2356))continue;const {group:_0x39dbcd,type:_0x150088,authorId:_0x10e96c}=_0x159e23(_0x5f2356);'revision-suggestion'!=_0x39dbcd||'insertion'!=_0x150088&&'deletion'!=_0x150088||(_0x517de2['unshift']({'type':_0x150088,'name':_0x5f2356,'userId':_0x10e96c}),_0x4d647f[_0x3be6a3]['markersStart']['splice'](_0xeb4fc1,0x1),_0xeb4fc1--);}_0x42cd22(_0x4d647f[_0x3be6a3]);for(let _0x16e2dc=0x0;_0x16e2dc<_0x4d647f[_0x3be6a3]['markersEnd']['length'];_0x16e2dc++){const _0x24c1ae=_0x4d647f[_0x3be6a3]['markersEnd'][_0x16e2dc];if(!_0x1864ad['has'](_0x24c1ae))continue;const {group:_0x134331,type:_0x43581c}=_0x159e23(_0x24c1ae);if('revision-suggestion'!=_0x134331||'insertion'!=_0x43581c&&'deletion'!=_0x43581c)continue;_0x4d647f[_0x3be6a3]['markersEnd']['splice'](_0x16e2dc,0x1),_0x16e2dc--;const _0x583463=_0x517de2['findIndex'](_0x1f180d=>_0x1f180d['name']==_0x24c1ae);_0x583463>-0x1&&_0x517de2['splice'](_0x583463,0x1);}}function _0x159e23(_0x392302){const _0x5b3888=_0x392302['split'](':');return{'group':_0x5b3888[0x0],'type':_0x5b3888[0x1],'subType':_0x5b3888['length']>=0x5?_0x5b3888[0x2]:null,'id':_0x5b3888['length']<0x5?_0x5b3888[0x2]:_0x5b3888[0x3],'authorId':_0x5b3888['length']<0x5?_0x5b3888[0x3]:_0x5b3888[0x4],'markerCount':0x6==_0x5b3888['length']?_0x5b3888[0x5]:null};}function _0x42cd22(_0x3d3070){for(let _0x163a92=0x0;_0x163a92<_0x517de2['length'];_0x163a92++){if(_0x3d3070['isAdded']&&'insertion'==_0x517de2[_0x163a92]['type'])return _0x3d3070['isAddSuggestion']=_0x517de2[_0x163a92],void delete _0x3d3070['isAdded'];if(!_0x3d3070['isAdded']&&!_0x3d3070['isRemoved']&&'deletion'==_0x517de2[_0x163a92]['type'])return void(_0x3d3070['isRemoveSuggestion']=_0x517de2[_0x163a92]);}}}['_setDistance'](_0x5c7538,_0x2ada06){let _0x291d36=0x0,_0x20ec5d=!0x1;const _0x1662c9=new Map();for(const _0x4e6cd0 of _0x5c7538)_0x4e6cd0[_0x2ada06]?_0x20ec5d&&(_0x291d36++,_0x20ec5d=!0x1):(_0x291d36++,_0x20ec5d=!0x0),_0x1662c9['set'](_0x4e6cd0['id'],_0x291d36);for(let _0x30ccaa=0x0;_0x30ccaa<_0x5c7538['length'];_0x30ccaa++){if('isRemoved'==_0x2ada06&&_0x5c7538[_0x30ccaa]['isAdded']||'isAdded'==_0x2ada06&&_0x5c7538[_0x30ccaa]['isRemoved'])continue;if('text'==_0x5c7538[_0x30ccaa]['type']){_0x5c7538[_0x30ccaa]['distance']=0x0;continue;}const _0x178e4d=_0x1662c9['get'](_0x5c7538[_0x30ccaa]['pairId']),_0x18fea5=_0x1662c9['get'](_0x5c7538[_0x30ccaa]['id']);_0x5c7538[_0x30ccaa]['distance']=_0x178e4d-_0x18fea5;}}['_getRevisionsRange'](_0x500da3,_0x59a532,_0x317da8=!0x1){const _0x388bc0=[];let _0x255425=this['repository']['getIndex'](_0x500da3),_0x1689c3=this['repository']['getIndex'](_0x59a532);for(-0x1==_0x1689c3&&(_0x1689c3=this['repository']['_revisions']['length'],_0x317da8=!0x1);_0x255425<_0x1689c3;)_0x388bc0['push'](this['repository']['getRevision'](_0x255425)),_0x255425++;return _0x317da8&&_0x388bc0['push'](this['repository']['getRevision'](_0x255425)),_0x388bc0;}['_threeWayMerge'](_0x4c8848,_0x37fec8,_0xee659b,_0x50027e){const _0x377b2f=this['editor']['model']['schema'];let _0x481427=_0x37fec8;for(;_0x4c8848[_0x481427]&&_0x4c8848[_0x481427]['isAdded'];)_0x481427++;let _0x55c812=_0x50027e;for(;_0xee659b[_0x55c812]&&_0xee659b[_0x55c812]['isRemoved'];)_0x55c812++;_0x3f751d(_0x4c8848,_0x37fec8,_0x481427),_0x3f751d(_0xee659b,_0x50027e,_0x55c812);const _0x16ba5a=_0xee659b['slice'](_0x50027e,_0x55c812)['concat'](_0x4c8848['slice'](_0x37fec8,_0x481427));return _0x16ba5a['sort']((_0x15ae4c,_0x42a43f)=>_0x15ae4c['side']!=_0x42a43f['side']?_0x15ae4c['side']-_0x42a43f['side']:_0x15ae4c['level']!=_0x42a43f['level']?_0x15ae4c['level']-_0x42a43f['level']:_0x15ae4c['distance']!=_0x42a43f['distance']?_0x42a43f['distance']-_0x15ae4c['distance']:!!_0x15ae4c['isAdded']!=!!_0x42a43f['isAdded']?-0x1==_0x15ae4c['side']||0x0==_0x15ae4c['side']?_0x15ae4c['isAdded']?-0x1:0x1:_0x15ae4c['isAdded']?0x1:-0x1:_0x15ae4c['index']-_0x42a43f['index']),{'commonTape':_0x16ba5a,'iEnd':_0x481427,'jEnd':_0x55c812};function _0x3f751d(_0x12fb49,_0x3346e1,_0x58084e){let _0xe88cca=-0x1,_0x4505ef=Number['POSITIVE_INFINITY'],_0x134680=!0x0;for(let _0x454f08=_0x3346e1;_0x454f08<_0x58084e;_0x454f08++)if(_0x377b2f['isInline'](_0x12fb49[_0x454f08]['item'])||(_0x134680=!0x1),_0x12fb49[_0x454f08]['item']['startIndex']<_0x3346e1&&(_0xe88cca=_0x454f08),_0x12fb49[_0x454f08]['item']['endIndex']>=_0x58084e){_0x4505ef=_0x454f08;break;}_0x134680&&(_0xe88cca=_0x58084e-0x1);for(let _0x41c564=_0x3346e1;_0x41c564<_0x58084e;_0x41c564++)_0x12fb49[_0x41c564]['side']=_0x41c564<=_0xe88cca?-0x1:_0x41c564<_0x4505ef?0x0:0x1,_0x12fb49[_0x41c564]['index']=_0x41c564;let _0x3febb5=0x0;for(let _0x299568=_0x3346e1;_0x299568<=_0xe88cca;_0x299568++)0x0==_0x12fb49[_0x299568]['distance']?_0x12fb49[_0x299568]['level']=_0x3febb5:(_0x3febb5++,_0x12fb49[_0x299568]['level']=_0x3febb5,_0x3febb5++);for(let _0x2e1491=_0x3346e1;_0x2e1491<_0x58084e;_0x2e1491++)0x0==_0x12fb49[_0x2e1491]['side']&&(_0x12fb49[_0x2e1491]['level']=_0x3febb5);_0x3febb5=0x0;for(let _0x33dcb6=_0x58084e-0x1;_0x33dcb6>=_0x4505ef;_0x33dcb6--)0x0==_0x12fb49[_0x33dcb6]['distance']?_0x12fb49[_0x33dcb6]['level']=_0x3febb5:(_0x3febb5--,_0x12fb49[_0x33dcb6]['level']=_0x3febb5,_0x3febb5--);}}['_fixObsoleteTags'](_0x4abf68){const _0x136067=new Map(),_0x5f2351=this['editor']['model']['schema'];for(let _0x6ec5f0=0x1;_0x6ec5f0<_0x4abf68['length'];_0x6ec5f0++){let _0x2d272d,_0x3c2c3f,_0x30307c;const _0x256f89=_0x4abf68[_0x6ec5f0],_0x3f1477=_0x4abf68[_0x6ec5f0-0x1];if('text'==_0x256f89['type'])continue;if(_0x256f89['type']!=_0x3f1477['type'])continue;if(!_0x5f2351['isBlock'](_0x3f1477['item'])||_0x5f2351['isLimit'](_0x3f1477['item']))continue;if(!_0x5f2351['isBlock'](_0x256f89['item'])||_0x5f2351['isLimit'](_0x256f89['item']))continue;if((_0x4abf68[_0x6ec5f0]['isAdded']||_0x4abf68[_0x6ec5f0]['isAddSuggestion'])&&_0x4abf68[_0x6ec5f0-0x1]['isRemoved'])_0x2d272d=_0x4abf68[_0x6ec5f0],_0x3c2c3f=_0x4abf68[_0x6ec5f0-0x1],_0x30307c=_0x6ec5f0-0x1;else{if(!_0x4abf68[_0x6ec5f0]['isRemoved']||!_0x4abf68[_0x6ec5f0-0x1]['isAdded']&&!_0x4abf68[_0x6ec5f0-0x1]['isAddSuggestion'])continue;_0x2d272d=_0x4abf68[_0x6ec5f0-0x1],_0x3c2c3f=_0x4abf68[_0x6ec5f0],_0x30307c=_0x6ec5f0;}const _0xc64b65=_0x2d272d['level']==_0x3c2c3f['level'],_0x50eb40=Math['abs'](_0x2d272d['level'])<Math['abs'](_0x3c2c3f['level'])&&0x0==_0x3c2c3f['distance'];(_0xc64b65||_0x50eb40)&&(_0x136067['set'](_0x3c2c3f['id'],_0x2d272d['id']),_0x4abf68['splice'](_0x30307c,0x1),_0x6ec5f0--,_0x2d272d['isAdded']=!0x1);}for(let _0xc00f8=0x0;_0xc00f8<_0x4abf68['length'];_0xc00f8++)_0x136067['has'](_0x4abf68[_0xc00f8]['pairId'])&&(_0x4abf68[_0xc00f8]['pairId']=_0x136067['get'](_0x4abf68[_0xc00f8]['pairId']));}['_removeMissingPairs'](_0x5232ed){const _0x2d8d93=new Set(_0x5232ed['map'](_0x14d0d6=>_0x14d0d6['id']));for(let _0x49c017=0x0;_0x49c017<_0x5232ed['length'];_0x49c017++)_0x2d8d93['has'](_0x5232ed[_0x49c017]['pairId'])||0x0==_0x5232ed[_0x49c017]['distance']||(_0x5232ed[_0x49c017]['isIncorrect']=!0x0);return _0x5232ed['filter'](_0x2a4791=>!_0x2a4791['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4a10b8){const _0x51be04=new Set();for(let _0xeb1946=0x0;_0xeb1946<_0x4a10b8['length'];_0xeb1946++){if(_0x51be04['has'](_0x4a10b8[_0xeb1946]['id'])&&_0x4a10b8[_0xeb1946]['isRemoved']&&(_0x4a10b8[_0xeb1946]['isIncorrect']=!0x0),_0x4a10b8[_0xeb1946]['isIncorrect'])continue;if(0x0==_0x4a10b8[_0xeb1946]['distance'])continue;if('elementStart'!=_0x4a10b8[_0xeb1946]['type'])continue;if(null==_0x4a10b8[_0xeb1946]['pairId'])continue;let _0x53826c=_0xeb1946+0x1,_0x38c4fc=0x0;for(;_0x4a10b8[_0x53826c]['id']!=_0x4a10b8[_0xeb1946]['pairId'];)'elementStart'==_0x4a10b8[_0x53826c]['type']?_0x38c4fc++:'elementEnd'==_0x4a10b8[_0x53826c]['type']&&_0x38c4fc--,_0x53826c++;if(0x0!=_0x38c4fc){if(_0x4a10b8[_0xeb1946]['isRemoved'])_0x4a10b8[_0xeb1946]['isIncorrect']=!0x0;else{for(;_0x53826c!=_0xeb1946;)_0x4a10b8[_0x53826c]['isRemoved']&&0x0!=_0x4a10b8[_0x53826c]['distance']&&(_0x4a10b8[_0x53826c]['isIncorrect']=!0x0,_0x51be04['add'](_0x4a10b8[_0x53826c]['pairId'])),_0x53826c--;}}}return _0x4a10b8['filter'](_0x2f972a=>!_0x2f972a['isIncorrect']);}['_removeUnsupportedChanges'](_0x996ad2){const _0x26f1cf=this['editor']['model']['schema'];for(let _0x4151cf=0x0;_0x4151cf<_0x996ad2['length'];_0x4151cf++){if(!(_0x996ad2[_0x4151cf]['isAdded']||_0x996ad2[_0x4151cf]['isAddSuggestion']||_0x996ad2[_0x4151cf]['isRemoved']||_0x996ad2[_0x4151cf]['isRemoveSuggestion']))continue;if(0x0==_0x996ad2[_0x4151cf]['distance'])continue;const _0x1cfe60=_0x996ad2[_0x4151cf]['item'];_0x26f1cf['isBlock'](_0x1cfe60)||_0x26f1cf['isLimit'](_0x1cfe60)||(_0x996ad2[_0x4151cf]['isAdded']&&delete _0x996ad2[_0x4151cf]['isAdded'],_0x996ad2[_0x4151cf]['isAddSuggestion']&&delete _0x996ad2[_0x4151cf]['isAddSuggestion'],_0x996ad2[_0x4151cf]['isRemoveSuggestion']&&delete _0x996ad2[_0x4151cf]['isRemoveSuggestion'],_0x996ad2[_0x4151cf]['isRemoved']&&(_0x996ad2[_0x4151cf]['isIncorrect']=!0x0));}return _0x996ad2['filter'](_0x3ae12a=>!_0x3ae12a['isIncorrect']);}['_makeModelFromTape'](_0x1e10ae,_0x59f2d2,_0x439ccc){const _0x14f86e=new gt(),_0x9b033=[],_0x55308a=new Map(),_0x416549=this['editor']['model'],_0x3d8474=_0x416549['schema'],_0x179221=[_0x14f86e],_0x25eb01={},_0x4fd70f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x419517=null;const _0x4df2e5=[0x0];for(let _0x338640=0x0;_0x338640<_0x1e10ae['length'];_0x338640++)if('elementStart'===_0x1e10ae[_0x338640]['type']){_0x1e10ae[_0x338640]['previousPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5);const _0x2d928a=new ut(_0x1e10ae[_0x338640]['item']['name'],_0x1e10ae[_0x338640]['item']['getAttributes']());_0x179221[0x0]['_appendChild'](_0x2d928a),_0x4df2e5['push'](0x0),_0x179221['unshift'](_0x2d928a),_0x1e10ae[_0x338640]['nextPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5);}else'elementEnd'===_0x1e10ae[_0x338640]['type']?(_0x179221['shift'](),_0x1e10ae[_0x338640]['previousPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5),_0x4df2e5['pop'](),_0x4df2e5[_0x4df2e5['length']-0x1]++,_0x1e10ae[_0x338640]['nextPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5)):(_0x1e10ae[_0x338640]['previousPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5),_0x419517?_0x419517['_data']+=_0x1e10ae[_0x338640]['item']['data']:_0x419517=new mt(_0x1e10ae[_0x338640]['item']['data'],_0x1e10ae[_0x338640]['item']['getAttributes']()),_0x1e10ae[_0x338640+0x1]&&'text'===_0x1e10ae[_0x338640+0x1]['type']&&_0x1bec9c(_0x419517,_0x1e10ae[_0x338640+0x1]['item'])||(_0x179221[0x0]['_appendChild'](_0x419517),_0x419517=null),_0x4df2e5[_0x4df2e5['length']-0x1]+=_0x1e10ae[_0x338640]['item']['offsetSize'],_0x1e10ae[_0x338640]['nextPosition']=_0x416549['createPositionFromPath'](_0x14f86e,_0x4df2e5));for(let _0x18c1f5=0x0;_0x18c1f5<_0x1e10ae['length'];_0x18c1f5++){const _0x40f993=_0x1e10ae[_0x18c1f5]['previousPosition'],_0x10a573=_0x1e10ae[_0x18c1f5]['nextPosition'];for(const _0x40dac9 of _0x1e10ae[_0x18c1f5]['markersStart'])_0x55308a['set'](_0x40dac9,{'start':_0x40f993,'end':null});_0x28b80a('isRemoveSuggestion',_0x18c1f5,_0x40f993,_0x10a573),_0x28b80a('isAddSuggestion',_0x18c1f5,_0x40f993,_0x10a573),_0x28b80a('isRemoved',_0x18c1f5,_0x40f993,_0x10a573),_0x28b80a('isAdded',_0x18c1f5,_0x40f993,_0x10a573);for(const _0x4fda35 of _0x1e10ae[_0x18c1f5]['markersEnd']){const _0x877382=_0x55308a['get'](_0x4fda35);_0x877382?_0x877382['end']=_0x10a573:_0x55308a['set'](_0x4fda35,{'start':_0x10a573,'end':_0x10a573});}}for(const [_0x2675cf,_0x3a135d]of _0x55308a){const _0x2c1c55=this['editor']['model']['createRange'](_0x3a135d['start'],_0x3a135d['end']);_0x14f86e['markers']['set'](_0x2675cf,_0x2c1c55);}return _0x9b033['sort']((_0x10598b,_0x40af21)=>{const _0x146196=_0x14f86e['markers']['get']('revision:'+_0x10598b['id']),_0x513253=_0x14f86e['markers']['get']('revision:'+_0x40af21['id']);return _0x146196['start']['isBefore'](_0x513253['start'])?-0x1:_0x146196['start']['isAfter'](_0x513253['start'])?0x1:_0x146196['end']['isBefore'](_0x513253['end'])?-0x1:_0x146196['end']['isAfter'](_0x513253['end'])?0x1:'add'===_0x10598b['type']?-0x1:0x1;}),{'root':_0x14f86e,'changes':_0x9b033};function _0x28b80a(_0x2e69c6,_0x3302ac,_0x4085ec,_0x584ef2){const _0x554b4d=!!_0x1e10ae[_0x3302ac][_0x2e69c6],_0x3a6f6d=_0x554b4d?_0x1e10ae[_0x3302ac][_0x2e69c6]['userId']:null,_0x449fc6=_0x3302ac===_0x1e10ae['length']-0x1,_0x409f76=_0x4fd70f[_0x2e69c6][0x0],_0xf2c491=_0x3d8474['isObject'](_0x1e10ae[_0x3302ac]['item']);!_0x25eb01[_0x2e69c6]&&_0x554b4d?_0x25eb01[_0x2e69c6]={'start':_0x4085ec,'tapeItem':_0x1e10ae[_0x3302ac],'userId':_0x3a6f6d,'type':_0x2e69c6}:_0x25eb01[_0x2e69c6]&&!_0x554b4d?(_0x25eb01[_0x2e69c6]['end']=_0x4085ec,_0x1f17be(_0x25eb01[_0x2e69c6]),_0x25eb01[_0x2e69c6]=null):_0x25eb01[_0x2e69c6]&&_0x554b4d&&_0x25eb01[_0x2e69c6]['userId']!==_0x3a6f6d&&(_0x25eb01[_0x2e69c6]['end']=_0x4085ec,_0x409f76&&_0x409f76['userId']===_0x25eb01[_0x2e69c6]['userId']||_0x1f17be(_0x25eb01[_0x2e69c6]),_0x25eb01[_0x2e69c6]={'start':_0x4085ec,'tapeItem':_0x1e10ae[_0x3302ac],'userId':_0x3a6f6d,'type':_0x2e69c6}),_0x25eb01[_0x2e69c6]&&_0xf2c491&&('elementStart'!==_0x1e10ae[_0x3302ac]['type']||_0x409f76&&_0x409f76['userId']===_0x3a6f6d||_0x4fd70f[_0x2e69c6]['unshift']({'userId':_0x3a6f6d,'object':_0x1e10ae[_0x3302ac]['item'],'change':_0x25eb01[_0x2e69c6]}),'elementEnd'===_0x1e10ae[_0x3302ac]['type']&&_0x409f76&&_0x409f76['object']===_0x1e10ae[_0x3302ac]['item']&&(_0x4fd70f[_0x2e69c6]['shift'](),_0x25eb01[_0x2e69c6]=_0x409f76['change'])),_0x25eb01[_0x2e69c6]&&_0x449fc6&&(_0x25eb01[_0x2e69c6]['end']=_0x584ef2,_0x1f17be(_0x25eb01[_0x2e69c6]),_0x25eb01[_0x2e69c6]=null);}function _0x1f17be({start:_0x5dc639,end:_0x2a3091,tapeItem:_0x30fa88,userId:_0x71b333,type:_0x56835f}){const _0x48a00c=_0x30fa88['item'],_0x4d2bf1=_0x416549['schema']['isBlock'](_0x48a00c)&&!_0x416549['schema']['isLimit'](_0x48a00c),_0xf445be=_0x5dc639['nodeAfter']==_0x2a3091['parent']&&_0x2a3091['isAtStart'];if(_0x4d2bf1&&_0xf445be)return;const _0x2d52d0=_0x416549['createRange'](_0x5dc639,_0x2a3091),_0x3c923a=_0x59f2d2['get'](_0x71b333),_0x2f75aa=new r({'author':_0x3c923a,'type':'isAdded'==_0x56835f||'isAddSuggestion'==_0x56835f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56835f||'isRemoveSuggestion'==_0x56835f},'createdAt':new Date(),'rootName':_0x439ccc});_0x9b033['push'](_0x2f75aa),_0x14f86e['markers']['set']('revision:'+_0x2f75aa['id'],_0x2d52d0);}function _0x1bec9c(_0x48517a,_0x129422){const _0x2562fa=_0x48517a['getAttributes'](),_0x98b067=_0x129422['getAttributes']();for(const _0xff072c of _0x2562fa){if(_0xff072c[0x1]!==_0x129422['getAttribute'](_0xff072c[0x0]))return!0x1;_0x98b067['next']();}return _0x98b067['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xa84147=>{const _0x402e07=_0xa84147['markerName']['split'](':')[0x1],_0x129b5b=this['_getChangeFromId'](_0x402e07);if(!_0x129b5b)return null;const _0xec0abc='add'==_0x129b5b['type']?'insertion':'deletion',_0x105ab8=['ck-suggestion-marker','ck-suggestion-marker-'+_0xec0abc];return _0x129b5b['data']['isSuggestion']&&_0x105ab8['push']('ck-suggestion-marker-'+_0xec0abc+'-new'),this['activeChange']==_0x129b5b&&_0x105ab8['push']('ck-suggestion-marker--active'),{'classes':_0x105ab8,'attributes':{'data-change-id':_0x402e07}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x23e779=>{_0x23e779['on']('element:pre',(_0x2eef12,_0xdb44a7,_0x2c5630)=>{const _0x45a3cd=_0xdb44a7['viewItem']['getChild'](0x0);if(!_0x45a3cd||!_0x45a3cd['is']('element','code'))return;if(!_0x2c5630['consumable']['consume'](_0x45a3cd,{'attributes':['vid_start','vid_end']}))return;const _0xbc911b=_0xdb44a7['modelRange']['start']['nodeAfter'];_0x2c5630['writer']['setAttribute']('vid_start',_0x45a3cd['getAttribute']('vid_start'),_0xbc911b),_0x2c5630['writer']['setAttribute']('vid_end',_0x45a3cd['getAttribute']('vid_end'),_0xbc911b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3aec78=>{_0x3aec78['on']('element',(_0x346042,_0x4b09f3,_0x458191)=>{if(!_0x458191['consumable']['consume'](_0x4b09f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4b09f3['modelRange']['isCollapsed'])return;const _0x54b507=_0x4b09f3['modelRange']['start']['nodeAfter'];_0x54b507['hasAttribute']('vid_start')||_0x54b507['hasAttribute']('vid')||(_0x458191['writer']['setAttribute']('vid_start',_0x4b09f3['viewItem']['getAttribute']('vid_start'),_0x54b507),_0x458191['writer']['setAttribute']('vid_end',_0x4b09f3['viewItem']['getAttribute']('vid_end'),_0x54b507));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x277785=>_0x277785['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5dbaac,[,_0x1c8930])=>{['vid_start','vid_end','vid']['includes'](_0x1c8930)&&(_0x5dbaac['return']=!0x0,_0x5dbaac['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x287081=>{_0x287081['on']('attribute:vid',(_0x2f7968,_0x2a7c9f,_0x55aa13)=>{if('\x20'!=_0x2a7c9f['item']['data']||_0x2a7c9f['item']['parent']['maxOffset']>0x1)return;if(!_0x55aa13['consumable']['consume'](_0x2a7c9f['item'],_0x2f7968['name']))return;const _0x4024a8=_0x55aa13['writer'],_0x45e4aa=_0x55aa13['mapper']['toViewRange'](_0x2a7c9f['range']);_0x4024a8['wrap'](_0x45e4aa,_0x4024a8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2fc647){const _0x158bfe=_0x2fc647['plugins']['get']('RevisionViewer');return(_0x981151,_0xef5701,_0x409a2a)=>{const _0x1a5c9b=_0xef5701['markerName']['split'](':')[0x1],_0x4074c5=_0x158bfe['_getChangeFromId'](_0x1a5c9b);if(!_0x4074c5)return null;const _0x5559c0='add'==_0x4074c5['type']?'split':'merge';if(!_0x409a2a['consumable']['test'](_0xef5701['markerRange'],_0x981151['name']))return;const _0x4f203e=_0xef5701['markerRange']['getWalker'](),_0x3b760b=_0xef5701['markerRange']['start'],_0x313667=_0x2fc647['model']['schema'];let _0x39a536=null,_0x2b101a=null,_0x123e17=!0x1,_0x1c9a75=!0x1;for(const _0x3b482d of _0x4f203e){const _0x1a4d38=_0x3b482d['item'];_0x123e17=_0x123e17||_0x313667['isContent'](_0x1a4d38);const _0x29e570=_0x409a2a['mapper']['toViewElement'](_0x1a4d38);if(_0x29e570&&_0x29e570['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b482d['type']&&(_0x313667['isBlock'](_0x1a4d38)&&!_0x313667['isLimit'](_0x1a4d38)&&(_0x1a4d38['nextSibling']||_0x3b760b['isAtEnd']?_0x39a536&&_0x39a536['parent']==_0x1a4d38||(_0x39a536=_0x1a4d38,_0x8645fb(_0x3b482d['previousPosition']),_0x1c9a75=!0x0):_0x2b101a=_0x2b101a||_0x3b482d['previousPosition']));}function _0x8645fb(_0x476ed0){const _0x3d2d6a=_0x409a2a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5559c0}),_0x2878d5=_0x409a2a['mapper']['toViewPosition'](_0x476ed0);_0x4074c5['data']['isSuggestion']&&_0x409a2a['writer']['addClass']('ck-suggestion-marker-'+_0x5559c0+'-new',_0x3d2d6a),_0x158bfe['activeChange']==_0x4074c5&&_0x409a2a['writer']['addClass']('ck-suggestion-marker--active',_0x3d2d6a),_0x409a2a['writer']['insert'](_0x2878d5,_0x3d2d6a),_0x409a2a['mapper']['bindElementToMarker'](_0x3d2d6a,_0xef5701['markerName']);}_0x123e17||_0x1c9a75||!_0x2b101a||_0x8645fb(_0x2b101a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x440566,_0x5963a5,_0x49d91d)=>{const _0x5e7c83=_0x49d91d['mapper']['markerNameToElements'](_0x5963a5['markerName']);if(_0x5e7c83){for(const _0xf7c2fc of _0x5e7c83)(_0xf7c2fc['hasClass']('ck-suggestion-marker-split')||_0xf7c2fc['hasClass']('ck-suggestion-marker-merge'))&&(_0x49d91d['mapper']['unbindElementFromMarkerName'](_0xf7c2fc,_0x5963a5['markerName']),_0x49d91d['writer']['remove'](_0xf7c2fc));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2d7d65,_0xe71063,_0x1cd2df)=>{const _0x91992e=_0xe71063['markerName']['split'](':')[0x1],_0x15da86=this['_getChangeFromId'](_0x91992e);if(!_0x15da86)return null;const _0x364c97='add'==_0x15da86['type']?'split':'merge';if(_0x1cd2df['consumable']['test'](_0xe71063['markerRange'],_0x2d7d65['name']))for(const _0x5922e9 of _0xe71063['markerRange']['getItems']()){if(!_0x5922e9['is']('element','softBreak'))continue;const _0x18729f=_0x1cd2df['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x364c97}),_0x374546=_0x1cd2df['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5922e9));_0x15da86['data']['isSuggestion']&&_0x1cd2df['writer']['addClass']('ck-suggestion-marker-'+_0x364c97+'-new',_0x18729f),this['activeChange']==_0x15da86&&_0x1cd2df['writer']['addClass']('ck-suggestion-marker--active',_0x18729f),_0x1cd2df['writer']['insert'](_0x374546,_0x18729f),_0x1cd2df['mapper']['bindElementToMarker'](_0x18729f,_0xe71063['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4b6bd5=>{for(const _0x19d068 of this['editor']['model']['document']['getRootNames']()){const _0x178c3d=this['editor']['model']['document']['getRoot'](_0x19d068),_0x4fecb3=this['editor']['editing']['view']['document']['getRoot'](_0x19d068);if(_0x4fecb3){const _0x5e7f3d=_0x178c3d['getAttribute']('revisionHistoryAttachChange');if(_0x4b6bd5['removeAttribute']('data-change-id',_0x4fecb3),_0x4b6bd5['removeClass']('ck-revision-history-root-add',_0x4fecb3),_0x4b6bd5['removeClass']('ck-revision-history-root-remove',_0x4fecb3),_0x4b6bd5['removeClass']('ck-revision-history-root--active',_0x4fecb3),_0x5e7f3d){const _0x23781e=this['_getChangeFromId'](_0x5e7f3d);if(!_0x23781e)return null;_0x4b6bd5['setAttribute']('data-change-id',_0x5e7f3d,_0x4fecb3),_0x4b6bd5['addClass']('ck-revision-history-root-'+_0x23781e['type'],_0x4fecb3),this['activeChange']==_0x23781e&&_0x4b6bd5['addClass']('ck-revision-history-root--active',_0x4fecb3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x13bf4d=>'revision-comment:'+_0x13bf4d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x6c6376=>'revision-suggestion:'+_0x6c6376,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x135893=>({'name':'suggestion:'+_0x135893,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x7d686f=>{const _0x3af224=_0x7d686f['markerName']['split'](':')[0x1];return'insertion'!=_0x3af224&&'deletion'!=_0x3af224?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3af224]};}}),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',(_0x57d48f,_0x20cea9,_0x3d14fd)=>{const _0x23f653=_0x3d14fd['mapper']['markerNameToElements'](_0x20cea9['markerName']);if(_0x23f653){for(const _0x545555 of _0x23f653)_0x545555['is']('uiElement')&&(_0x3d14fd['mapper']['unbindElementFromMarkerName'](_0x545555,_0x20cea9['markerName']),_0x3d14fd['writer']['remove'](_0x545555));}},{'priority':'high'});}['_getChangeFromId'](_0x7542e6){return this['_changeIdToChange']['get'](_0x7542e6);}['_getViewForChange'](_0x50c370){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x50c370),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x32e2b4,_0xb2f11a,_0x14a094,_0x3fa776)=>{_0x3fa776&&this['_balloon']['remove'](_0x3fa776),_0x14a094&&(this['_balloon']['add']({'view':_0x14a094,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x58dd9e=this['editor']['editing'],_0x134b7e=this['_getChangeFromId'](_0x14a094['changeId']);let _0x190540;if(_0x134b7e['data']['isOnRoot']){const _0x2d976d=_0x58dd9e['view']['getDomRoot'](_0x134b7e['rootName']);_0x190540=Array['from'](_0x2d976d['getClientRects']());}else{const _0x370184=this['editor']['model']['markers']['get']('revision:'+_0x14a094['changeId']);_0x190540=Array['from'](_0x58dd9e['mapper']['markerNameToElements'](_0x370184['name']))['map'](_0x3ce12f=>_0x58dd9e['view']['domConverter']['mapViewToDom'](_0x3ce12f))['map'](_0x4957a1=>Array['from'](_0x4957a1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x190540[0x0];return _0x190540['find'](_0x15da92=>_0x15da92['top']-0x3<=this['_activeViewTarget']['y']&&_0x15da92['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15da92['left']-0x3<=this['_activeViewTarget']['x']&&_0x15da92['right']+0x3>=this['_activeViewTarget']['x'])||_0x190540[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x412181,_0x2c737a,_0x30714d,_0x285d6e)=>{this['activeView']=_0x30714d?this['_getViewForChange'](_0x30714d):null,this['editor']['model']['change'](()=>{const _0x4918b3=this['editor']['editing'];_0x285d6e&&(_0x285d6e['data']['isOnRoot']?_0x4918b3['view']['change'](_0x1c3c57=>{_0x1c3c57['removeClass']('ck-revision-history-root--active',_0x4918b3['view']['document']['getRoot'](_0x285d6e['rootName']));}):_0x4918b3['reconvertMarker']('revision:'+_0x285d6e['id'])),_0x30714d&&(_0x30714d['data']['isOnRoot']?_0x4918b3['view']['change'](_0x4f3f02=>{_0x4f3f02['addClass']('ck-revision-history-root--active',_0x4918b3['view']['document']['getRoot'](_0x30714d['rootName']));}):_0x4918b3['reconvertMarker']('revision:'+_0x30714d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x514058,_0x35c6e5)=>{if(this['activeChange'])return;const _0x6a16c4=this['_findChangeIdFromDomTarget'](_0x35c6e5['target']),_0x1230f9=this['_changeIdToChange']['get'](_0x6a16c4);_0x1230f9?(this['_activeViewTarget']={'x':_0x35c6e5['domEvent']['x'],'y':_0x35c6e5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1230f9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1faed8,_0x426bcf)=>{const _0x47ca72=this['_findChangeIdFromDomTarget'](_0x426bcf['target']),_0x2e4a75=this['_changeIdToChange']['get'](_0x47ca72);_0x2e4a75?(this['_activeViewTarget']={'x':_0x426bcf['domEvent']['x'],'y':_0x426bcf['domEvent']['y']},_0x2e4a75===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2e4a75):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x47511e){do{const _0x263b69=_0x47511e['getAttribute']('data-change-id');if(_0x263b69)return _0x263b69;_0x47511e=_0x47511e['parent'];}while(_0x47511e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x6246c3=>{for(const _0x5f247d of this['editor']['model']['markers'])_0x6246c3['removeMarker'](_0x5f247d);});}}function X(_0x2f95cf,_0x3b961d){return(_0x407239,_0x20af65,_0x89f0a8)=>{if(!_0x89f0a8['consumable']['test'](_0x20af65['markerRange'],_0x407239['name']))return;const _0x218cc1=_0x20af65['markerRange']['getWalker'](),_0x1c03e8=_0x20af65['markerRange']['start'],_0x439731=_0x2f95cf['model']['schema'];let _0xbe7116=null,_0x2b595b=null,_0x2c00ee=!0x1,_0x59c8e0=!0x1;for(const _0x4b639d of _0x218cc1){const _0x31b8b2=_0x4b639d['item'];_0x2c00ee=_0x2c00ee||_0x439731['isContent'](_0x31b8b2);const _0x286b57=_0x89f0a8['mapper']['toViewElement'](_0x31b8b2);if(_0x286b57&&_0x286b57['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b639d['type']&&(_0x439731['isBlock'](_0x31b8b2)&&!_0x439731['isLimit'](_0x31b8b2)&&(_0x31b8b2['nextSibling']||_0x1c03e8['isAtEnd']?_0xbe7116&&_0xbe7116['parent']==_0x31b8b2||(_0xbe7116=_0x31b8b2,_0x96a1c0(_0x4b639d['previousPosition']),_0x59c8e0=!0x0):_0x2b595b=_0x2b595b||_0x4b639d['previousPosition']));}function _0x96a1c0(_0x4ac61d){const _0x2c97a6=_0x89f0a8['mapper']['toViewPosition'](_0x4ac61d),_0x3b5099=_0x89f0a8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3b961d});_0x89f0a8['writer']['insert'](_0x2c97a6,_0x3b5099),_0x89f0a8['mapper']['bindElementToMarker'](_0x3b5099,_0x20af65['markerName']);}_0x2c00ee||_0x59c8e0||!_0x2b595b||_0x96a1c0(_0x2b595b);};}class wt extends _0x206a38{constructor(_0x4df41a){super(_0x4df41a);const _0x2818a9=_0x4df41a['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2818a9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2818a9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x46c679=this['editor'],_0x47678d=_0x46c679['plugins']['get'](m),_0x3ff15c=_0x47678d['isReady']?_0x47678d['diff']['newRevisionId']:null;_0x46c679['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ff15c);}['refresh'](){const {isReady:_0x26c9dd,isEnabled:_0x469ca3,repository:_0x269407,diff:_0x4aea17}=this['editor']['plugins']['get'](m),_0x548914=_0x4aea17&&_0x269407['getLaterVisibleRevision'](_0x4aea17['newRevisionId']);this['isEnabled']=_0x26c9dd&&_0x469ca3&&Boolean(_0x548914);}}class pt extends _0x206a38{['_step'];constructor(_0x461f27,{direction:_0x1ed859}){super(_0x461f27);const _0x4467e2=_0x461f27['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1ed859?0x1:-0x1,this['listenTo'](_0x4467e2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4467e2,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4467e2,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xfd67c0=this['editor'],_0x546b96=_0xfd67c0['plugins']['get'](m),{isNavigationMode:_0x191223,currentChangeNumber:_0x214d96}=_0x546b96;let _0x10b67b;if(_0x546b96['activeChange']=_0x191223?_0x546b96['diff']['changes']['get'](_0x214d96+this['_step']):_0x546b96['diff']['changes']['first'],_0x546b96['activeChange']['data']['isOnRoot'])_0x10b67b=_0xfd67c0['editing']['view']['getDomRoot'](_0x546b96['activeChange']['rootName']);else{const _0x452479=_0xfd67c0['model']['markers']['get']('revision:'+_0x546b96['activeChange']['id']);_0x10b67b=_0x3238b7(_0xfd67c0['editing'],_0x452479);}_0x27def4({'target':_0x10b67b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5e06d5,currentChangeNumber:_0x2bf319,numberOfChanges:_0x8b0030,isReady:_0x2188f2,isEnabled:_0x2c3a8e}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2c3a8e&&_0x2188f2&&_0x8b0030)&&(!_0x5e06d5||(0x1===this['_step']?_0x2bf319<_0x8b0030-0x1:_0x2bf319>0x0));}}class _i extends _0x1792c1{constructor(_0x2b9add){super(_0x2b9add);const _0xaf159d=this['bindTemplate'],_0x259db6=new _0x1abc3e(_0x2b9add),_0xa8d7bc=new _0x1abc3e(_0x2b9add);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',(_0x1627b4,_0xc1cf0)=>_0x1627b4&&_0xc1cf0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5bf9eb,_0xb40fc9,_0x343e27,_0x1e7fb2)=>{if(!_0x5bf9eb)return g(_0x2b9add,'Loading...');if(!_0x343e27)return g(_0x2b9add,'No\x20changes');const _0x6f2e99=g(_0x2b9add,'NUMBER_OF_CHANGES',_0x343e27);return _0x1e7fb2?g(_0x2b9add,'X_OF_Y_CHANGES',[_0xb40fc9+0x1,_0x343e27]):_0x6f2e99;}),_0x259db6['set']({'label':g(_0x2b9add,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x351ec1}),_0xa8d7bc['set']({'label':g(_0x2b9add,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x182f02}),_0x259db6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xa8d7bc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x259db6['on']('execute',()=>this['fire']('execute','backward')),_0xa8d7bc['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',_0xaf159d['if']('_isStatusLabelVisible','ck-hidden',_0x5db455=>!_0x5db455)]},'children':[{'text':_0xaf159d['to']('isNavigationMode',_0x16895a=>_0x16895a?g(_0x2b9add,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2b9add,'Total')+':\x20')}]},{'text':_0xaf159d['to']('_statusText')}]},new _0xea1f65(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x259db6,_0xa8d7bc]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x3f2981{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x267d16=this['editor']['editing']['view'];_0x267d16['change'](_0x410e3d=>{for(const _0x555cf2 of _0x267d16['document']['roots'])_0x410e3d['addClass'](ee,_0x555cf2);});}['hide'](){const _0x32354b=this['editor']['editing']['view'];_0x32354b['change'](_0x9a16f0=>{for(const _0x359bbf of _0x32354b['document']['roots'])_0x9a16f0['removeClass'](ee,_0x359bbf);});}}class R extends _0x3f2981{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ie];}['init'](){const _0x44e0f0=this['editor'],_0x12c965=_0x44e0f0['plugins']['get'](m),_0x2ec12a=_0x44e0f0['plugins']['get'](ie);_0x44e0f0['ui']['componentFactory']['add']('exitToEditing',_0x2ed037=>{const _0x4ab295=new _0x1abc3e(_0x2ed037);return _0x4ab295['set']({'label':g(_0x2ed037,'Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ab295,'execute',()=>{_0x44e0f0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ab295;}),_0x44e0f0['ui']['componentFactory']['add']('restoreRevision',_0x579002=>{const _0x46f160=new _0x1abc3e(_0x579002);return _0x46f160['set']({'label':g(_0x579002,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x46f160['bind']('isEnabled')['to'](_0x44e0f0['commands']['get']('restoreRevision')),this['listenTo'](_0x46f160,'execute',()=>_0x44e0f0['execute']('restoreRevision')),_0x46f160;}),_0x44e0f0['ui']['componentFactory']['add']('changesNavigation',_0x1de8f3=>{const _0x2d023e=new _i(_0x1de8f3),_0x32f148=_0x44e0f0['commands']['get']('showPreviousChange'),_0x3227bc=_0x44e0f0['commands']['get']('showNextChange');return _0x2d023e['bind']('isBackwardNavigationEnabled')['to'](_0x32f148,'isEnabled'),_0x2d023e['bind']('isForwardNavigationEnabled')['to'](_0x3227bc,'isEnabled'),_0x2d023e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12c965),this['listenTo'](_0x2d023e,'execute',(_0x30ba2b,_0x5238ea)=>{_0x44e0f0['execute']('forward'===_0x5238ea?'showNextChange':'showPreviousChange');}),_0x2d023e;}),_0x2ec12a['show'](),_0x12c965['on']('change:isReady',(_0x58d3af,_0x583358,_0x443a83)=>{_0x443a83?_0x2ec12a['hide']():_0x2ec12a['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x8c56bc,_0x725078){super(_0x8c56bc,_0x725078);const _0x1e240f=this['bindTemplate'];this['set']({'label':g(_0x8c56bc,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x8c56bc,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1e240f['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 _0x3756ff=this['fieldView']['element'];this['_tooltipString']=_0x3756ff['scrollWidth']>_0x3756ff['clientWidth']&&_0x3756ff['value']||'';}}class oi extends _0x1792c1{constructor(_0x20f2c3,_0x5b4650,_0x3f16b0){super(_0x20f2c3);const _0x3f9a21=new _0x184ac0();_0x3f9a21['set']({'content':_0x3b361c,'viewBox':'0\x200\x2011\x2010'});const _0x1dba16=['ck','ck-revision-history-sidebar__revision-author'];_0x3f16b0&&_0x1dba16['push']('ck-revision-history-sidebar__revision-author_creator');const _0x26551f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x20f2c3,_0x3f16b0?'Revision\x20creator':'Revision\x20author')},'children':[_0x3f9a21,_0x5b4650['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1dba16},'children':_0x26551f});}}function ni(_0x3dde4a,_0x64f123){const _0x2671f3=_0x3dde4a['bindTemplate'],_0xb15b0=_0x3dde4a['locale'],_0x4c62d4=_0x542f9c(_0xb15b0);_0x4c62d4['panelPosition']='sw';const _0x4ee97f=function(_0x2afec4,_0x28a511){const _0x4dca92=function(_0x5a4ced,_0x2c75fa){const _0xac0116=_0x5a4ced['locale'],_0x221054={'Compare\x20against\x20selected':g(_0xac0116,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xac0116,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xac0116,'Restore\x20this\x20revision')};return _0x2c75fa['map'](_0x28bcdd=>{const _0x29d8ac=_0x221054[_0x28bcdd['name']];return _0x29d8ac&&_0x29d8ac!==_0x28bcdd['name']&&(_0x28bcdd['name']=_0x29d8ac),_0x28bcdd;});}(_0x2afec4,_0x28a511),_0x2033ad=new _0x4419cc();for(const _0x10cafd of _0x4dca92){const _0x2b7604={'type':'button','model':new to({'label':_0x10cafd['name'],'class':_0x10cafd['class'],'withText':!0x0,'role':'menuitem','_action':_0x10cafd['action']})};_0x2b7604['model']['bind']('isEnabled')['to'](_0x2afec4,'isActionsDropdownOpen',_0x48faac=>'function'!=typeof _0x10cafd['isEnabled']||(!_0x48faac||_0x10cafd['isEnabled'](_0x2afec4))),_0x2033ad['add'](_0x2b7604);}return _0x2033ad;}(_0x3dde4a,_0x64f123);return _0x3dde4a['bind']('isActionsDropdownOpen')['to'](_0x4c62d4,'isOpen'),_0x4c62d4['buttonView']['set']({'label':g(_0xb15b0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x38ab36}),_0x4c62d4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2671f3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2671f3['to'](_0x5e013c=>_0x5e013c['stopPropagation']())}}),_0x4c62d4['on']('execute',_0x1d87e6=>{_0x3dde4a['isReady']&&'function'==typeof _0x1d87e6['source']['_action']&&_0x1d87e6['source']['_action'](_0x3dde4a);}),_0x1b9e98(_0x4c62d4,_0x4ee97f,{'role':'menu'}),_0x4c62d4['listenTo'](_0x3dde4a,'change:isActionsDropdownOpen',(_0x3fde91,_0x48baa5,_0x401591)=>{if(_0x401591)for(const _0x1c2d5c of _0x4c62d4['listView']['items']){const _0x18db1e=_0x1c2d5c['children']['first'],_0x1ba3fe=_0x64f123['find'](_0x55f2a7=>_0x55f2a7['action']===_0x18db1e['_action'])['isVisible'];_0x1c2d5c['isVisible']=void 0x0===_0x1ba3fe||_0x1ba3fe(_0x3dde4a);}}),_0x4c62d4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x157757(_0x1792c1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x462d78,_0x4fe854,_0x2e5dfb,_0x37fe9a){super(_0x462d78);const _0x3036f6=this['bindTemplate'],_0x44414f=function(_0x3bdcb1,_0x49fe2d){const _0x305c24=Array['from'](_0x49fe2d['authors'])['filter'](_0x529d9f=>_0x529d9f!=_0x49fe2d['creator']);return _0x49fe2d['creator']&&_0x305c24['unshift'](_0x49fe2d['creator']),_0x305c24['map'](_0x2c5708=>new oi(_0x3bdcb1,_0x2c5708,_0x2c5708==_0x49fe2d['creator']));}(_0x462d78,_0x4fe854);this['id']=_0x4fe854['id'],this['_revision']=_0x4fe854,this['_requireRevisionName']=_0x37fe9a,this['bind']('name','createdAt')['to'](_0x4fe854),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x57e9b1=>{return _0x575068=_0x462d78['uiLanguage'],(_0x111002=_0x57e9b1)['toLocaleDateString'](_0x575068,{'month':'long','day':'numeric'})+',\x20'+_0x111002['toLocaleTimeString'](_0x575068,{'hour':'numeric','minute':'numeric'});var _0x575068,_0x111002;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x462d78,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x44cfc4=>_0x44cfc4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2e60cf,_0x2b6128)=>_0x2e60cf&&_0x2b6128),this['revisionActionsView']=_0x2e5dfb&&_0x2e5dfb['length']?ni(this,_0x2e5dfb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3036f6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3036f6['if']('isEnabled','ck-disabled',_0x3844bb=>!_0x3844bb),_0x3036f6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3036f6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3036f6['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':_0x3036f6['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':_0x44414f}]},this['revisionActionsView']],'on':{'click':_0x3036f6['to'](_0x4e4e43=>{_0x4e4e43['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x37845d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x37845d,'change',()=>{this['_requireRevisionName']&&!_0x37845d['value']||this['fire']('setName',{'id':this['id'],'name':_0x37845d['value']}),_0x37845d['value']||(_0x37845d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3ea6a6,_0x53be98){const _0x33e8fb=_0x28e6bf['fromJSDate'](_0x3ea6a6)['setLocale'](_0x53be98),_0x476287=_0x28e6bf['local'](),_0x1b4f84=_0x476287['minus']({'days':0x1})['startOf']('day');let _0x3dfe2b,_0x296a00;return _0x33e8fb['hasSame'](_0x476287,'day')?(_0x3dfe2b=_0x33e8fb['startOf']('day')['toJSDate'](),_0x296a00=_0x33e8fb['toRelativeCalendar']()):_0x33e8fb['hasSame'](_0x1b4f84,'day')?(_0x3dfe2b=_0x1b4f84['toJSDate'](),_0x296a00=_0x33e8fb['toRelativeCalendar']()):_0x33e8fb['hasSame'](_0x476287,'week')?(_0x3dfe2b=_0x33e8fb['startOf']('week')['toJSDate'](),_0x296a00=_0x33e8fb['weekdayLong']||''):_0x33e8fb['hasSame'](_0x476287,'year')?(_0x3dfe2b=_0x33e8fb['startOf']('month')['toJSDate'](),_0x296a00=_0x33e8fb['monthLong']||''):(_0x3dfe2b=_0x33e8fb['startOf']('year')['toJSDate'](),_0x296a00=String(_0x33e8fb['year'])),{'startDate':_0x3dfe2b,'localizedPeriodName':_0x296a00};}class pi extends _0x1792c1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2c77b5,_0x171686,_0x114826,_0x368513){super(_0x2c77b5);const _0x201940=mi(_0x171686,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x171686,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x114826,this['_requireRevisionName']=_0x368513,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':_0x201940}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x52c185){const _0x4b3468=new ai(this['locale'],_0x52c185,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4b3468);}['removeRevision'](_0x5e6154){const _0x3c2b5e=this['revisionViews']['find'](_0x5e3643=>_0x5e3643['id']===_0x5e6154['id']);this['revisionViews']['remove'](_0x3c2b5e);}}class is extends _0x1792c1{constructor(_0x19b809){super(_0x19b809);const _0x42234f=new _0x184ac0();_0x42234f['content']=_0x184d1b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x42234f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x19b809,'Revision\x20history')]}]});}}class vi extends _0x1792c1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x39d87f,_0x4cfed0,_0xc5e2d8,_0x1d16ab){super(_0x39d87f);const _0x575f94=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4cfed0,this['_revisionActions']=_0xc5e2d8,this['_requireRevisionName']=_0x1d16ab,this['on']('select',(_0x3bcdd8,_0x44c60f)=>{this['fire']('revisionSelected',_0x44c60f);}),this['on']('setName',(_0x39e032,_0x3da972)=>{this['fire']('revisionSetName',_0x3da972);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x39d87f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x575f94['if']('isEnabled','ck-disabled',_0x2dcb72=>!_0x2dcb72)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x57f144 of this['_revisions'])this['_addRevision'](_0x57f144);this['_revisions']['on']('add',(_0x1b3ecf,_0x857eeb)=>{this['_addRevision'](_0x857eeb);}),this['_revisions']['on']('remove',(_0x3f8229,_0x4a7397)=>{this['_removeRevision'](_0x4a7397);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x439d72=>_0x439d72['revisionViews']['map'](_0x516e63=>_0x516e63))['flat']();}['selectRevision'](_0x119bac){for(const _0x4f1bc4 of this['revisionViews'])_0x119bac&&_0x119bac['id']===_0x4f1bc4['id']?_0x4f1bc4['select']():_0x4f1bc4['deselect']();}['highlightRevisions'](_0x8645f7){for(const _0x762090 of this['revisionViews'])_0x8645f7['some'](({id:_0x13fc29})=>_0x13fc29===_0x762090['id'])?_0x762090['highlight']():_0x762090['unhighlight']();}['_addRevision'](_0x13c42a){const _0x249055=mi(_0x13c42a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x24ec1e=this['timePeriodViews']['get'](0x0);_0x24ec1e&&_0x24ec1e['startDate']['getTime']()===_0x249055['getTime']()||(_0x24ec1e=new pi(this['locale'],_0x249055,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x24ec1e)),_0x24ec1e['addRevision'](_0x13c42a);}['_removeRevision'](_0x4bcb57){const _0x292fd2=mi(_0x4bcb57['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x292fd2)['removeRevision'](_0x4bcb57);}['_getTimePeriodViewByStartDate'](_0x3f6fb5){return this['timePeriodViews']['find'](_0x474858=>_0x474858['startDate']['getTime']()===_0x3f6fb5['getTime']());}}class d extends _0x3f2981{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x5055df(_0x5c1f04){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x668e62,_0x5accf7){super(_0x5accf7),this['sourceElement']=_0x668e62,this['model']['document']['createRoot']();const _0x540847=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x540847);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3bf4b2,_0x5936ce){const _0x5a1ac4=new this(_0x3bf4b2,_0x5936ce);return await _0x5a1ac4['initPlugins'](),await _0x5a1ac4['ui']['init'](_0x3bf4b2),await _0x5a1ac4['data']['init'](_0x5a1ac4['config']['get']('initialData')||''),_0x5a1ac4['fire']('ready'),_0x5a1ac4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x149b28{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4085){function _0x434caf(_0x59818d){return _0x59818d['map'](_0x565821=>String['fromCharCode'](_0x565821))['join']('');}super(_0x4f4085),this['result']='end',_0x4f4085[_0x434caf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x434caf([0x76,0x69,0x65,0x77])][_0x434caf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x434caf([0x61,0x75,0x74,0x6f]),_0x4f4085[_0x434caf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x434caf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x434caf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x434caf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x434caf([0x6f,0x6b])});}}class k extends _0x149b28{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x22a2a8){if(super(_0x22a2a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4676dd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4a61a6=>this['_showRevisionViewer']({..._0x4a61a6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a5c8e=>this['_closeRevisionViewer'](_0x3a5c8e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x238889=>this['_restoreRevision'](_0x238889)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3d8a16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3d8a16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1131b4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1131b4);}['getRevision'](_0x2ce890){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2ce890);}['getRevisions'](_0x2aefea){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2aefea||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d64bc=this['editor'],_0x4bc25d=_0x38849b(_0x4d64bc,p),_0x78221b=_0x4d64bc['plugins']['get']('RevisionTracker'),_0x5ead80=_0x4d64bc['plugins']['get']('Users')['users'];return _0x4bc25d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4bc25d['lazyRoots'],(_0x4bc25d['plugins']['push'](_t,m,R,class extends _0x149b28{static get['requires'](){return[m,'Users'];}['init'](){const _0x29d2b4=this['editor']['plugins']['get']('Users');for(const _0x19c9bc of _0x5ead80)_0x19c9bc['isAnonymous']||_0x29d2b4['getUser'](_0x19c9bc['id'])||_0x29d2b4['addUser'](_0x19c9bc);const _0x417eeb=_0x78221b['repository']['getRevisions']();let _0x158710=null;const _0x3cb49c=this['editor']['plugins']['get']('RevisionViewer');_0x3cb49c['adapter']=_0x78221b['adapter'],_0x3cb49c['bind']('isEnabled')['to'](_0x78221b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d64bc,'isReadOnly',_0x384f54=>!_0x384f54);for(const _0x4d4a87 of _0x417eeb){const _0x5d82f0=null===_0x4d4a87['creator'];if(_0x5d82f0&&_0x4d4a87['toVersion']===_0x4d4a87['fromVersion'])continue;const _0x30fd7e=_0x4d4a87['toJSON']();_0x3cb49c['addRevisionData'](_0x30fd7e,(_0x4d0b18,_0x40df68,_0x1cd910)=>{if(_0x5d82f0){if(_0x158710)_0x158710['_update'](_0x4d0b18,_0x40df68);else{if(!_0x40df68){const _0x574cf7=_0x1cd910['toJSON']();_0x574cf7['id']=_0x451426(),_0x78221b['saveRevision'](_0x574cf7,_0x1cd910['toVersion'])['then'](_0x5463c2=>{_0x158710=_0x5463c2;});}}}else _0x4d4a87['_update'](_0x4d0b18,_0x40df68);});}}},d),_0x4bc25d);}['_enhanceShowRevisionViewerCallback'](){const _0x4d18b6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4a1622=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1eb4d9=this['editor']['plugins']['get']('Autosave');await _0x1eb4d9['save']();}else await _0x4a1622['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5c4573=this['editor']['plugins']['get']('Dialog');_0x5c4573['isOpen']&&_0x5c4573['hide']();}const _0x4cf10b=this['_getRevisionViewerEditorConfig']();return _0x4d18b6(_0x4cf10b)['then'](_0x36b139=>{return(this['_viewerEditor']=_0x36b139,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'),_0x36b139);})['catch'](_0x9e6de9=>(console['error'](_0x9e6de9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5be9c4=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'](),_0x5be9c4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4ffc83=this['editor']['plugins']['get']('Annotations');_0x4ffc83['refreshVisibility'](),_0x4ffc83['refreshPositioning']();}})));}['_showRevisionViewer'](_0x518ae6){const _0x50c373=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xae1a2d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x194825=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x194825,_0x518ae6)['then'](_0x53de9d=>(_0xae1a2d['style']['display']='block',_0x50c373['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x53de9d));}['_closeRevisionViewer'](_0x323aed){const _0x401746=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401746['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x323aed['destroy']();}async['_restoreRevision'](_0x5b7759){const _0x41522d=this['editor'],_0x4d9fd3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59473c=_0x41522d['plugins']['get']('RevisionTracker'),_0x259b85=_0x41522d['plugins']['get']('RevisionHistoryUtils'),_0x10f51f=_0x4d9fd3['repository']['getRevision'](_0x5b7759);let _0x280b9e,_0x5cb54b,_0x1fc12b;try{await _0x259b85['loadRevisionData'](_0x10f51f,this['adapter']),_0x280b9e=_0x259b85['getRevisionDocumentData'](_0x10f51f),_0x5cb54b=_0x259b85['getRevisionRootsAttributes'](_0x10f51f);}catch(_0x1f3c5b){return void console['error'](_0x1f3c5b);}_0x41522d['model']['change'](_0x4fd2e0=>{for(const _0x143870 of Array['from'](_0x41522d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4fd2e0['removeMarker'](_0x143870);}),_0x4d9fd3['isReady']=!0x1,_0x41522d['model']['enqueueChange'](_0x23f048=>{_0x23f048['setSelection'](null),_0x23f048['removeSelectionAttribute'](_0x41522d['model']['document']['selection']['getAttributeKeys']());const _0x2a92bc=Object['keys'](_0x280b9e);for(const _0x3ca3d0 of _0x41522d['model']['document']['roots'])'$graveyard'!=_0x3ca3d0['rootName']&&_0x3ca3d0['isAttached']()&&!_0x2a92bc['includes'](_0x3ca3d0['rootName'])&&_0x23f048['detachRoot'](_0x3ca3d0);for(const _0x397281 of _0x2a92bc){let _0x53a4c4=_0x41522d['model']['document']['getRoot'](_0x397281);_0x53a4c4&&_0x53a4c4['isAttached']()||(_0x53a4c4=_0x23f048['addRoot'](_0x397281));const _0x55a493=_0x5cb54b[_0x397281],_0x3ad2c1=Object['keys'](_0x55a493),_0x1eed79=_0x280b9e[_0x397281];for(const _0x17a89c of _0x53a4c4['getAttributeKeys']())_0x3ad2c1['includes'](_0x17a89c)||_0x23f048['removeAttribute'](_0x17a89c,_0x53a4c4);for(const _0x247cb0 of _0x3ad2c1)_0x23f048['setAttribute'](_0x247cb0,_0x5cb54b[_0x397281][_0x247cb0],_0x53a4c4);_0x23f048['remove'](_0x23f048['createRangeIn'](_0x53a4c4)),_0x23f048['insert'](_0x41522d['data']['parse'](_0x1eed79,_0x53a4c4),_0x53a4c4,0x0);}});const _0x49c7d3=g(_0x41522d['locale'],'Restored');if(_0x10f51f['name'])_0x1fc12b=-0x1==_0x10f51f['name']['indexOf'](_0x49c7d3)?_0x49c7d3+':\x20'+_0x10f51f['name']:_0x10f51f['name'];else _0x1fc12b=_0x49c7d3+':\x20'+(_0x10f51f['createdAt']['toLocaleDateString'](_0x41522d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x10f51f['createdAt']['toLocaleTimeString'](_0x41522d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59473c['saveRevision']({'name':_0x1fc12b}),_0x4d9fd3['isReady']=!0x0,_0x41522d['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};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2f2fbf){super(_0x2f2fbf),this['_revisionViewer']=_0x2f2fbf['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1374c5=this['_revisionsRepository']['_revisions'],_0x28aae9=this['_createRevisionActions'](),_0xff193b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x1374c5,_0x28aae9,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',(_0x2a8f54,_0x52b589)=>{_0x52b589['revisionViews']['on']('add',(_0x4fb09e,_0x2df8c6)=>{_0x2df8c6['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)),_0xff193b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3302a7=this['_revisionsRepository']['getRevision'](0x0);if(_0x3302a7){const _0x4647e4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3302a7['id']);this['_revisionViewer']['compare'](_0x3302a7,_0x4647e4);}}['_handleRevisionSelected'](_0x41799a,_0x50b32e){const _0x370ab3=this['_revisionsRepository']['getRevision'](_0x50b32e['id']),_0x2be0d9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x370ab3['id']);this['_revisionViewer']['compare'](_0x370ab3,_0x2be0d9);}['_handleRevisionSetName'](_0xecc0d1,_0x17eada){this['_revisionsRepository']['getRevision'](_0x17eada['id'])['setName'](_0x17eada['name']);}['_handleDiffChange'](_0x40b063,_0x5d3048,_0x283673){const _0x403c84=this['_revisionsRepository']['getRevisionsInDiff'](_0x283673);_0x403c84['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x403c84),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x403c84[0x0]));}['_createRevisionActions'](){const _0x4bab21=this['editor'],_0x5d8f22=d['availableRevisionActions'],_0x51e2fc=_0x4bab21['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x51e2fc['length'])return _0x51e2fc['map'](_0x32dd56=>{const _0x16fc3a='string'==typeof _0x32dd56?Object['assign']({},_0x5d8f22[_0x32dd56]):_0x32dd56;return _0x16fc3a['action']=_0x16fc3a['action']['bind'](this,_0x4bab21),_0x16fc3a['isVisible']&&(_0x16fc3a['isVisible']=_0x16fc3a['isVisible']['bind'](this,_0x4bab21)),_0x16fc3a;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4768b2},_0x12ef99)=>{const _0x533a33=_0x4768b2['get'](m),_0x157a95=_0x533a33['repository'];let _0x287c73=_0x533a33['diff']['newRevisionId'],_0x27ba0a=_0x12ef99['id'];_0x157a95['getIndex'](_0x287c73)>_0x157a95['getIndex'](_0x27ba0a)&&([_0x287c73,_0x27ba0a]=[_0x27ba0a,_0x287c73]),_0x533a33['compare'](_0x287c73,_0x27ba0a);},'isVisible':({plugins:_0x4bf441},_0x38d73d)=>{const _0x346c0a=_0x4bf441['get'](m);return!(_0x346c0a['repository']['getRevisionsInDiff'](_0x346c0a['diff'])['length']>0x2)&&!_0x38d73d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1c11c2,{id:_0x1442fb})=>{_0x1c11c2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1442fb);},'isVisible':({plugins:_0x1db530},_0x15454c)=>!!_0x1db530['get'](m)['repository']['getLaterVisibleRevision'](_0x15454c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4aef79},{id:_0x3ef2e3,revisionNameView:_0x4a785a})=>{const _0x23d86=_0x4aef79['get'](m),_0x52bf29=_0x23d86['repository']['getEarlierVisibleRevision'](_0x3ef2e3);_0x23d86['compare'](_0x3ef2e3,_0x52bf29),_0x4a785a['focus'](),_0x4a785a['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x135a6a,_0x3d1fa9){super(_0x135a6a),this['_view']=_0x3d1fa9,this['_toolbarConfig']=et(_0x135a6a['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x29f28a){const _0x180a36=this['editor'],_0x1b1bef=this['view'],_0x226751=_0x180a36['editing']['view'],_0x2adf39=_0x1b1bef['editable'],_0x160524=_0x226751['document']['getRoot']();_0x2adf39['name']=_0x160524['rootName'],_0x1b1bef['render']();const _0x30a9cc=_0x2adf39['element'];this['setEditableElement'](_0x2adf39['name'],_0x30a9cc),_0x1b1bef['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x226751['attachDomRoot'](_0x30a9cc),this['_elementReplacer']['replace'](_0x29f28a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2a8936=this['view'],_0x3e3efc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3e3efc['detachDomRoot'](_0x2a8936['editable']['name']),_0x2a8936['destroy']();}['_initToolbar'](){const _0x21d9ae=this['view'];_0x21d9ae['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x21d9ae['stickyPanel']['limiterElement']=_0x21d9ae['element'],_0x21d9ae['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x16c38a})=>_0x16c38a),_0x21d9ae['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x21d9ae['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x57df53,_0x18774d,_0x3d76c4={}){super(_0x57df53),this['stickyPanel']=new ht(_0x57df53),this['toolbar']=new dt(_0x57df53,{'shouldGroupWhenFull':_0x3d76c4['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x57df53,_0x18774d);}['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
|
+
_0xf04e0d(_0x26f9dc){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ff5c2,_0x2102c8){super(_0x2102c8),this['sourceElement']=_0x2ff5c2,this['model']['document']['createRoot']();const _0x3a6a93=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3a6a93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x404673,_0x2fa8d7){const _0x559a00=new this(_0x404673,_0x2fa8d7);return await _0x559a00['initPlugins'](),await _0x559a00['ui']['init'](_0x404673),await _0x559a00['data']['init'](_0x559a00['config']['get']('initialData')||''),_0x559a00['fire']('ready'),_0x559a00;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x3f2981{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23914f){function _0x3a1765(_0x5a2d92){return _0x5a2d92['map'](_0xa4ec27=>String['fromCharCode'](_0xa4ec27))['join']('');}super(_0x23914f),this['result']='end',_0x23914f[_0x3a1765([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a1765([0x76,0x69,0x65,0x77])][_0x3a1765([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a1765([0x61,0x75,0x74,0x6f]),_0x23914f[_0x3a1765([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a1765([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a1765([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a1765([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a1765([0x6f,0x6b])});}}class k extends _0x3f2981{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1e7c93){if(super(_0x1e7c93),!this['editor']['config']['get']('revisionHistory'))throw new _0x1065a6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5a88e8=>this['_showRevisionViewer']({..._0x5a88e8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x38a1b5=>this['_closeRevisionViewer'](_0x38a1b5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x434e52=>this['_restoreRevision'](_0x434e52)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x31f063){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x31f063;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x17a6ae){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x17a6ae);}['getRevision'](_0xdc3fd8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xdc3fd8);}['getRevisions'](_0x4c0a28){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c0a28||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x22dbf3=this['editor'],_0x315f15=_0x12d3c4(_0x22dbf3,p),_0x1e4c6a=_0x22dbf3['plugins']['get']('RevisionTracker'),_0x5343b0=_0x22dbf3['plugins']['get']('Users')['users'];return _0x315f15['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x315f15['lazyRoots'],(_0x315f15['plugins']['push'](yt,m,R,class extends _0x3f2981{static get['requires'](){return[m,'Users'];}['init'](){const _0x36ec5e=this['editor']['plugins']['get']('Users');for(const _0x516621 of _0x5343b0)_0x516621['isAnonymous']||_0x36ec5e['getUser'](_0x516621['id'])||_0x36ec5e['addUser'](_0x516621);const _0x5bf7a8=_0x1e4c6a['repository']['getRevisions']();let _0x10b44a=null;const _0x1637bc=this['editor']['plugins']['get']('RevisionViewer');_0x1637bc['adapter']=_0x1e4c6a['adapter'],_0x1637bc['bind']('isEnabled')['to'](_0x1e4c6a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x22dbf3,'isReadOnly',_0x18cbc9=>!_0x18cbc9);for(const _0x5b8d95 of _0x5bf7a8){const _0x2ced21=null===_0x5b8d95['creator'];if(_0x2ced21&&_0x5b8d95['toVersion']===_0x5b8d95['fromVersion'])continue;const _0x1b2f58=_0x5b8d95['toJSON']();_0x1637bc['addRevisionData'](_0x1b2f58,(_0x4ea4ce,_0x4e9113,_0x31d5af)=>{if(_0x2ced21){if(_0x10b44a)_0x10b44a['_update'](_0x4ea4ce,_0x4e9113);else{if(!_0x4e9113){const _0x475c83=_0x31d5af['toJSON']();_0x475c83['id']=_0x488afd(),_0x1e4c6a['saveRevision'](_0x475c83,_0x31d5af['toVersion'])['then'](_0x5020db=>{_0x10b44a=_0x5020db;});}}}else _0x5b8d95['_update'](_0x4ea4ce,_0x4e9113);});}}},d),_0x315f15);}['_enhanceShowRevisionViewerCallback'](){const _0x5a2f21=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x24b674=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3a5dd2=this['editor']['plugins']['get']('Autosave');await _0x3a5dd2['save']();}else await _0x24b674['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x52520a=this['editor']['plugins']['get']('Dialog');_0x52520a['isOpen']&&_0x52520a['hide']();}const _0x3f73e4=this['_getRevisionViewerEditorConfig']();return _0x5a2f21(_0x3f73e4)['then'](_0x596959=>{return(this['_viewerEditor']=_0x596959,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'),_0x596959);})['catch'](_0x3f1f98=>(console['error'](_0x3f1f98),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57b317=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'](),_0x57b317(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c9233=this['editor']['plugins']['get']('Annotations');_0x2c9233['refreshVisibility'](),_0x2c9233['refreshPositioning']();}})));}['_showRevisionViewer'](_0x45fa36){const _0x28e865=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1aedc2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x554989=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x554989,_0x45fa36)['then'](_0x43f9ef=>(_0x1aedc2['style']['display']='block',_0x28e865['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x43f9ef));}['_closeRevisionViewer'](_0x1acb8b){const _0xc99f32=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xc99f32['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1acb8b['destroy']();}async['_restoreRevision'](_0x5ee87b){const _0x4e8d45=this['editor'],_0x5704f2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a2fe4=_0x4e8d45['plugins']['get']('RevisionTracker'),_0x29136f=_0x4e8d45['plugins']['get']('RevisionHistoryUtils'),_0x2dd4f0=_0x5704f2['repository']['getRevision'](_0x5ee87b);let _0x539d87,_0x3f6222,_0x1d8b8f;try{await _0x29136f['loadRevisionData'](_0x2dd4f0,this['adapter']),_0x539d87=_0x29136f['getRevisionDocumentData'](_0x2dd4f0),_0x3f6222=_0x29136f['getRevisionRootsAttributes'](_0x2dd4f0);}catch(_0x19c851){return void console['error'](_0x19c851);}_0x4e8d45['model']['change'](_0x178a2f=>{for(const _0x21b28f of Array['from'](_0x4e8d45['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x178a2f['removeMarker'](_0x21b28f);}),_0x5704f2['isReady']=!0x1,_0x4e8d45['model']['enqueueChange'](_0xf3ae0b=>{_0xf3ae0b['setSelection'](null),_0xf3ae0b['removeSelectionAttribute'](_0x4e8d45['model']['document']['selection']['getAttributeKeys']());const _0x4d5523=Object['keys'](_0x539d87);for(const _0xcc2d0 of _0x4e8d45['model']['document']['roots'])'$graveyard'!=_0xcc2d0['rootName']&&_0xcc2d0['isAttached']()&&!_0x4d5523['includes'](_0xcc2d0['rootName'])&&_0xf3ae0b['detachRoot'](_0xcc2d0);for(const _0x19a031 of _0x4d5523){let _0x189847=_0x4e8d45['model']['document']['getRoot'](_0x19a031);_0x189847&&_0x189847['isAttached']()||(_0x189847=_0xf3ae0b['addRoot'](_0x19a031));const _0x23edba=_0x3f6222[_0x19a031],_0x28522c=Object['keys'](_0x23edba),_0xde23e=_0x539d87[_0x19a031];for(const _0x196033 of _0x189847['getAttributeKeys']())_0x28522c['includes'](_0x196033)||_0xf3ae0b['removeAttribute'](_0x196033,_0x189847);for(const _0x8cb4b6 of _0x28522c)_0xf3ae0b['setAttribute'](_0x8cb4b6,_0x3f6222[_0x19a031][_0x8cb4b6],_0x189847);_0xf3ae0b['remove'](_0xf3ae0b['createRangeIn'](_0x189847)),_0xf3ae0b['insert'](_0x4e8d45['data']['parse'](_0xde23e,_0x189847),_0x189847,0x0);}});const _0x366009=g(_0x4e8d45['locale'],'Restored');if(_0x2dd4f0['name'])_0x1d8b8f=-0x1==_0x2dd4f0['name']['indexOf'](_0x366009)?_0x366009+':\x20'+_0x2dd4f0['name']:_0x2dd4f0['name'];else _0x1d8b8f=_0x366009+':\x20'+(_0x2dd4f0['createdAt']['toLocaleDateString'](_0x4e8d45['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2dd4f0['createdAt']['toLocaleTimeString'](_0x4e8d45['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a2fe4['saveRevision']({'name':_0x1d8b8f}),_0x5704f2['isReady']=!0x0,_0x4e8d45['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,ie as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|