@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241219.1 → 0.0.0-nightly-20241220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +15 -12
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +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
|
-
_0x26f143(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x391070){super(),this['id']=_0x391070['id']||_0x5bfa17(),this['creator']=_0x391070['creator']||null,this['authors']=_0x391070['authors']||[],this['diffData']=_0x391070['diffData']||null,this['toVersion']=_0x391070['toVersion']||0x0,this['fromVersion']=_0x391070['fromVersion']||0x0,this['set']('name',_0x391070['name']||''),this['set']('createdAt',_0x391070['createdAt']||new Date()),this['set']('attributes',_0x391070['attributes']||{});}['setName'](_0x33b1f0){this['_update']({'name':_0x33b1f0});}['setAttribute'](_0x20ce65,_0x5972d1){const _0x213d10=_0x14ebb3(this['attributes']);_0x1e188a(_0x213d10,_0x20ce65,_0x5972d1),this['_update']({'attributes':_0x213d10});}['removeAttribute'](_0x73c48e){const _0x170d97=_0x14ebb3(this['attributes']);_0x147d50(_0x170d97,_0x73c48e),this['_update']({'attributes':_0x170d97});}['_update'](_0x542e96,_0x5ec7a1=!0x1){let _0xdfbc43=!0x1;const _0x51a7ca={'id':this['id']},_0x19ec3c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2e6b2d of _0x19ec3c){const _0x55021f=_0x542e96[_0x2e6b2d];void 0x0!==_0x55021f&&_0x55021f!==this[_0x2e6b2d]&&(this[_0x2e6b2d]=_0x55021f,_0x51a7ca[_0x2e6b2d]=_0x55021f,_0xdfbc43=!0x0);}_0xdfbc43&&(_0x51a7ca['authors']&&(_0x51a7ca['authorsIds']=_0x51a7ca['authors']['map'](_0x527f31=>_0x527f31['id']),delete _0x51a7ca['authors']),this['fire']('_update',_0x51a7ca,_0x5ec7a1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe0cb7b=>_0xe0cb7b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4b13f8{['_revisions'];static get['requires'](){return[_0x1b324b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x399b83){super(_0x399b83),this['_revisions']=new _0x107ef2();}['afterInit'](){!async function(_0x5616e6){const _0x5a07b7=_0x4fd5fb([0x6f,0x7a,0x38,0x62,0x4a,0x39,0x64,0x51,0x66,0x75,0x79,0x6c,0x4c,0x46,0x31,0x53,0x6e,0x73,0x44,0x55,0x49,0x72,0x33,0x52,0x45,0x54,0x57,0x41,0x35,0x58,0x50,0x4e,0x77,0x47,0x48,0x56,0x30,0x71,0x4b,0x69,0x4d,0x76,0x6a,0x70,0x78,0x37,0x43,0x67,0x65,0x68,0x5a,0x59,0x74,0x34,0x6d,0x4f,0x61,0x42,0x63,0x6b,0x32,0x36]),_0x5801a8=0xeb829,_0x4ecc8f=0x5dd1022e,_0x3a0e7b=0x5dd6580e^_0x4ecc8f,_0x570a1a=window[_0x4fd5fb([0x44,0x61,0x74,0x65])][_0x4fd5fb([0x6e,0x6f,0x77])](),_0x2f3051=_0x5616e6[_0x4fd5fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ffc4f=new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2616f5=>{_0x2f3051[_0x4fd5fb([0x6f,0x6e,0x63,0x65])](_0x4fd5fb([0x72,0x65,0x61,0x64,0x79]),_0x2616f5);}),_0x3e4fd5={[_0x4fd5fb([0x6b,0x74,0x79])]:_0x4fd5fb([0x45,0x43]),[_0x4fd5fb([0x75,0x73,0x65])]:_0x4fd5fb([0x73,0x69,0x67]),[_0x4fd5fb([0x63,0x72,0x76])]:_0x4fd5fb([0x50,0x2d,0x32,0x35,0x36]),[_0x4fd5fb([0x78])]:_0x4fd5fb([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]),[_0x4fd5fb([0x79])]:_0x4fd5fb([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]),[_0x4fd5fb([0x61,0x6c,0x67])]:_0x4fd5fb([0x45,0x53,0x32,0x35,0x36])},_0x22e763=_0x2f3051[_0x4fd5fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4fd5fb([0x67,0x65,0x74])](_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49e024(){let _0x308624,_0x356bfd=null,_0x5df813=null;try{if(_0x22e763==_0x4fd5fb([0x47,0x50,0x4c]))return _0x4fd5fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x308624=_0xcc10d2(),!_0x308624)return _0x4fd5fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x308624[_0x4fd5fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5df813=_0x229237(_0x308624[_0x4fd5fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x308624[_0x4fd5fb([0x6a,0x74,0x69])])),await _0x150f0f()?_0x4b2dca()?_0x110aca()?_0x4fd5fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50000c()?(_0x308624[_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fd5fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x356bfd=_0x8cafbd(_0x4fd5fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x308624[_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fd5fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x356bfd=_0x8cafbd(_0x4fd5fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x308624[_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fd5fb([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x356bfd=_0x8cafbd(_0x4fd5fb([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c988d()):_0x4fd5fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4fd5fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4fd5fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x40b5c4){return _0x4fd5fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x110aca(){const _0x36ea9b=[_0x4fd5fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4fd5fb([0x74,0x72,0x69,0x61,0x6c])][_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308624[_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x570a1a/0x3e8:0xe10*_0x3a0e7b;return _0x308624[_0x4fd5fb([0x65,0x78,0x70])]<_0x36ea9b;}function _0x4b2dca(){const _0x4e4d7c=_0x308624[_0x4fd5fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e4d7c)return!0x1;if(_0x4e4d7c[_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd5fb([0x2a])))return!0x0;if(_0x4e4d7c[_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd5fb([0x52,0x48])))return!0x0;if(_0x4e4d7c[_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd5fb([0x52,0x52,0x48]))){if(_0x244d02())return!0x0;if(_0x593bde()||_0x1df5f9())return!0x0;}return!0x1;}function _0x50000c(){const _0x390acb=_0x308624[_0x4fd5fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x390acb||0x0==_0x390acb[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x225851}=new URL(window[_0x4fd5fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x390acb[_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225851))return!0x0;const _0x5671c0=_0x225851[_0x4fd5fb([0x73,0x70,0x6c,0x69,0x74])](_0x4fd5fb([0x2e]));return _0x390acb[_0x4fd5fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cc1d5=>_0x3cc1d5[_0x4fd5fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd5fb([0x2a])))[_0x4fd5fb([0x6d,0x61,0x70])](_0xf0b184=>_0xf0b184[_0x4fd5fb([0x73,0x70,0x6c,0x69,0x74])](_0x4fd5fb([0x2e])))[_0x4fd5fb([0x73,0x6f,0x6d,0x65])](_0x330ce2=>_0x5671c0[_0x4fd5fb([0x65,0x76,0x65,0x72,0x79])]((_0x23b5ed,_0x34b85d)=>_0x330ce2[_0x34b85d]===_0x23b5ed||_0x330ce2[_0x34b85d]===_0x4fd5fb([0x2a])));}function _0x5c988d(){return _0x356bfd&&_0x5df813?new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x775952,_0x551fc2)=>{_0x356bfd[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0x775952,_0x551fc2),_0x5df813[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0x2021d8=>{_0x2021d8!=_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64])&&_0x775952(_0x2021d8);},_0x551fc2);}):_0x356bfd||_0x5df813||_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x229237(_0xf88f6d,_0x348770){return new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa4191a=>{if(_0x1e351d())return _0xa4191a(_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64]));_0x3d9405(),_0x2f3051[_0x4fd5fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4fd5fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c6963=!0x1;const _0x5b9690=_0x5bfa17();function _0x1d2a89(_0x2a3f21){return!!_0x2a3f21&&(typeof _0x2a3f21===_0x4fd5fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a3f21===_0x4fd5fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a3f21[_0x4fd5fb([0x74,0x68,0x65,0x6e])]===_0x4fd5fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a3f21[_0x4fd5fb([0x63,0x61,0x74,0x63,0x68])]===_0x4fd5fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51a7d7(_0x507b5a){_0x58d0b2(_0x507b5a)[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0x8d7325=>{if(!_0x8d7325||_0x8d7325[_0x4fd5fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4fd5fb([0x6f,0x6b]))return _0x4fd5fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44ca28(_0x180d06(_0x5b9690+_0x348770))!=_0x8d7325[_0x4fd5fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4fd5fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0x34b1d2=>(_0xdfef32(),_0x34b1d2),()=>{const _0x177389=_0x4cc22e();return null==_0x177389?(_0xdfef32(),_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64])):_0x4fd5fb(_0x570a1a-_0x177389>(0x79dd862e^_0x4ecc8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0xa4191a)[_0x4fd5fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa4191a(_0x4fd5fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x549c34=0x5de7ecae^_0x4ecc8f;function _0xdfef32(){const _0x24f1e6=_0x4fd5fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x44ca28(_0x180d06(_0xf88f6d)),_0x359d43=_0x26b4d4(_0x44ca28(window[_0x4fd5fb([0x4d,0x61,0x74,0x68])][_0x4fd5fb([0x63,0x65,0x69,0x6c])](_0x570a1a/_0x549c34)));window[_0x4fd5fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fd5fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f1e6,_0x359d43);}function _0x4cc22e(){const _0x5316f9=_0x4fd5fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x44ca28(_0x180d06(_0xf88f6d)),_0x376cd6=window[_0x4fd5fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fd5fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5316f9);return _0x376cd6?window[_0x4fd5fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26b4d4(_0x376cd6),0x10)*_0x549c34:null;}function _0x58d0b2(_0x3f2cfc){return new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x339df7,_0x1ccb6f)=>{_0x3f2cfc[_0x4fd5fb([0x74,0x68,0x65,0x6e])](_0x339df7,_0x1ccb6f),window[_0x4fd5fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ccb6f,0x5dd0d6ee^_0x4ecc8f);});}}_0x2f3051[_0x4fd5fb([0x6f,0x6e])](_0x4fd5fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7b6fd4,_0x140686)=>{if(_0x140686[0x0]!=_0xf88f6d)return _0xa4191a(_0x4fd5fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x140686[0x1]={..._0x140686[0x1],[_0x4fd5fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b9690};},{[_0x4fd5fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fd5fb([0x68,0x69,0x67,0x68])}),_0x2f3051[_0x4fd5fb([0x6f,0x6e])](_0x4fd5fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2675f3=>{_0x1d2a89(_0x2675f3[_0x4fd5fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c6963=!0x0,_0x51a7d7(_0x2675f3[_0x4fd5fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4fd5fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fd5fb([0x6c,0x6f,0x77])}),_0x2ffc4f[_0x4fd5fb([0x74,0x68,0x65,0x6e])](()=>{_0x4c6963||_0xa4191a(_0x4fd5fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e351d(){return _0x2f3051[_0x4fd5fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fd5fb([0x76,0x69,0x65,0x77])][_0x4fd5fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4fd5fb([0x61,0x75,0x74,0x6f]);}function _0x3d9405(){_0x2f3051[_0x4fd5fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fd5fb([0x76,0x69,0x65,0x77])][_0x4fd5fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fd5fb([0x61,0x75,0x74,0x6f]);}}function _0x8cafbd(_0x34cc01){const _0x376cda=[new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x401ebd=>setTimeout(_0x401ebd,0x5dd83ce2^_0x4ecc8f)),_0x2ffc4f[_0x4fd5fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x535da3=>{const _0x39e10f=0x5dd10229^_0x4ecc8f,_0x4ded63=_0x5616e6[_0x4fd5fb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1514a7(){_0x4ded63[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x39e10f&&_0x535da3();}_0x1514a7(),_0x4ded63[_0x4fd5fb([0x6f,0x6e])](_0x4fd5fb([0x61,0x64,0x64]),_0x1514a7);})),new window[(_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c36b=>{function _0x17d364(){for(const _0x453ebb in window)if(window[_0x4fd5fb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4fd5fb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x453ebb))&&window[_0x453ebb]==_0x5801a8)return _0x10c36b();_0x2f3051[_0x4fd5fb([0x73,0x74,0x61,0x74,0x65])]!=_0x4fd5fb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4fd5fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17d364,0x5dd111a6^_0x4ecc8f);}_0x24afd2(_0x4fd5fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x17d364();})];return window[_0x4fd5fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fd5fb([0x72,0x61,0x63,0x65])](_0x376cda)[_0x4fd5fb([0x74,0x68,0x65,0x6e])](()=>_0x34cc01);}async function _0x88afb9(){if(await _0x2ffc4f,_0x24afd2(_0x4fd5fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x39806a=_0x5616e6[_0x4fd5fb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x26a4d2=_0x5616e6[_0x4fd5fb([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])](_0x39806a[_0x4fd5fb([0x69,0x64])]),_0x31e7f3=_0xfd81b3(_0x4fd5fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x31e7f3[_0x4fd5fb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x39806a['id'],_0x26a4d2?_0x26a4d2['id']:null,!0x0),_0x31e7f3[_0x4fd5fb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4fd5fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x31e7f3[_0x4fd5fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x31e7f3[_0x4fd5fb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb9c964,void(_0x31e7f3[_0x4fd5fb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb9c964);}if(_0x24afd2(_0x4fd5fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x241d13=_0xfd81b3(_0x4fd5fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x241d13[_0x4fd5fb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4fd5fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x241d13[_0x4fd5fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x241d13[_0x4fd5fb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb9c964,_0x241d13[_0x4fd5fb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb9c964;}_0x2f3051[_0x4fd5fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fd5fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb9c964,_0x2f3051[_0x4fd5fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fd5fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb9c964,_0x2f3051[_0x4fd5fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4fd5fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x244d02(){return _0x24afd2(_0x4fd5fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xfd81b3(_0x4fd5fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4fd5fb([0x73,0x74,0x61,0x74,0x65])]==_0x4fd5fb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x593bde(){return _0x24afd2(_0x4fd5fb([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 _0x1df5f9(){return _0x24afd2(_0x4fd5fb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa6ca4b(_0x453882){const _0x2b0c65=_0x32c02b();_0x2f3051[_0x2b0c65]=_0x4fd5fb([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])+_0x453882,_0x453882[_0x4fd5fb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4fd5fb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x32c02b()]=_0x5801a8),_0x453882!=_0x4fd5fb([0x56,0x61,0x6c,0x69,0x64])&&_0x88afb9();}function _0x32c02b(){const _0x52bd7b=window[_0x4fd5fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4fd5fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4fd5fb([0x6e,0x6f,0x77])]())[_0x4fd5fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4fd5fb([0x2e]),'');let _0x1a493b=_0x4fd5fb([0x6f]);for(let _0x52b339=0x0;_0x52b339<_0x52bd7b[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52b339+=0x2){let _0x5e5887=window[_0x4fd5fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52bd7b[_0x4fd5fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52b339,_0x52b339+0x2));_0x5e5887>=_0x5a07b7[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e5887-=_0x5a07b7[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a493b+=_0x5a07b7[_0x5e5887];}return _0x1a493b;}function _0xcc10d2(){const _0x2775e7=_0x22e763[_0x4fd5fb([0x73,0x70,0x6c,0x69,0x74])](_0x4fd5fb([0x2e]));if(0x3!=_0x2775e7[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f2502(_0x2775e7[0x1]);function _0x2f2502(_0x4a9691){const _0x181594=_0x11a254(_0x4a9691);return _0x181594&&_0x577976()?_0x181594:null;function _0x577976(){const _0x2c31b2=_0x181594[_0x4fd5fb([0x6a,0x74,0x69])],_0xfa45a9=window[_0x4fd5fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c31b2[_0x4fd5fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c31b2[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x510910={..._0x181594,[_0x4fd5fb([0x6a,0x74,0x69])]:_0x2c31b2[_0x4fd5fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c31b2[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x510910[_0x4fd5fb([0x76,0x63])],_0x180d06(_0x510910)==_0xfa45a9;}}}async function _0x150f0f(){let _0xbd0a55=!0x0;try{const _0x5417ef=_0x22e763[_0x4fd5fb([0x73,0x70,0x6c,0x69,0x74])](_0x4fd5fb([0x2e])),[_0x45ebca,_0x438c14,_0x426767]=_0x5417ef;return _0x18cea5(_0x45ebca),await _0xbc3d59(_0x45ebca,_0x438c14,_0x426767),_0xbd0a55;}catch(_0x2e0d14){return!0x1;}function _0x18cea5(_0x5c2058){const _0x1c8711=_0x11a254(_0x5c2058);_0x1c8711&&_0x1c8711[_0x4fd5fb([0x61,0x6c,0x67])]==_0x4fd5fb([0x45,0x53,0x32,0x35,0x36])||(_0xbd0a55=!0x1);}async function _0xbc3d59(_0x3574dc,_0x2cbc4c,_0x5e86fb){const _0x13d674=window[_0x4fd5fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4fd5fb([0x66,0x72,0x6f,0x6d])](_0x5cfa81(_0x5e86fb),_0x366a28=>_0x366a28[_0x4fd5fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e455b=new window[(_0x4fd5fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4fd5fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3574dc+_0x4fd5fb([0x2e])+_0x2cbc4c),_0xbe83ee=window[_0x4fd5fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4fd5fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbe83ee)return;const _0x142550=await _0xbe83ee[_0x4fd5fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4fd5fb([0x6a,0x77,0x6b]),_0x3e4fd5,{[_0x4fd5fb([0x6e,0x61,0x6d,0x65])]:_0x4fd5fb([0x45,0x43,0x44,0x53,0x41]),[_0x4fd5fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4fd5fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4fd5fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbe83ee[_0x4fd5fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4fd5fb([0x6e,0x61,0x6d,0x65])]:_0x4fd5fb([0x45,0x43,0x44,0x53,0x41]),[_0x4fd5fb([0x68,0x61,0x73,0x68])]:{[_0x4fd5fb([0x6e,0x61,0x6d,0x65])]:_0x4fd5fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x142550,_0x13d674,_0x3e455b)||(_0xbd0a55=!0x1);}}function _0x11a254(_0x460359){return _0x460359[_0x4fd5fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4fd5fb([0x65,0x79]))?JSON[_0x4fd5fb([0x70,0x61,0x72,0x73,0x65])](_0x5cfa81(_0x460359)):null;}function _0x5cfa81(_0x3ec6f4){return window[_0x4fd5fb([0x61,0x74,0x6f,0x62])](_0x3ec6f4[_0x4fd5fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4fd5fb([0x2b]))[_0x4fd5fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4fd5fb([0x2f])));}function _0x180d06(_0x2b1670){let _0x4c5b74=0x1505;function _0x5a37db(_0x289ef8){for(let _0x3cad11=0x0;_0x3cad11<_0x289ef8[_0x4fd5fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cad11++){const _0x4c1d20=_0x289ef8[_0x4fd5fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cad11);_0x4c5b74=(_0x4c5b74<<0x5)+_0x4c5b74+_0x4c1d20,_0x4c5b74&=_0x4c5b74;}}function _0x487c82(_0x3d2537){Array[_0x4fd5fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d2537)?_0x3d2537[_0x4fd5fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x487c82):_0x3d2537&&typeof _0x3d2537==_0x4fd5fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4fd5fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d2537)[_0x4fd5fb([0x73,0x6f,0x72,0x74])]()[_0x4fd5fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58193a,_0x5c1740])=>{_0x5a37db(_0x58193a),_0x487c82(_0x5c1740);}):_0x5a37db(window[_0x4fd5fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d2537));}return _0x487c82(_0x2b1670),_0x4c5b74>>>0x0;}function _0x44ca28(_0xee2c84){return _0xee2c84[_0x4fd5fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4fd5fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4fd5fb([0x30]));}function _0x26b4d4(_0x55b339){return _0x55b339[_0x4fd5fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4fd5fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4fd5fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x24afd2(_0x1e44e7){return _0x2f3051[_0x4fd5fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fd5fb([0x68,0x61,0x73])](_0x1e44e7);}function _0xfd81b3(_0x25de4a){return _0x2f3051[_0x4fd5fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fd5fb([0x67,0x65,0x74])](_0x25de4a);}function _0xb9c964(){}function _0x4fd5fb(_0x59f501){return _0x59f501['map'](_0x314f46=>String['fromCharCode'](_0x314f46))['join']('');}_0xa6ca4b(await _0x49e024());}(this);}['createRevision'](_0x189bfd){const _0x539851=this['editor']['plugins']['get']('Users');return new a({'id':_0x189bfd['id'],'name':_0x189bfd['name'],'creator':_0x189bfd['creatorId']?_0x539851['getUser'](_0x189bfd['creatorId']):null,'diffData':_0x189bfd['diffData']||_0x189bfd['data'],'authors':_0x189bfd['authorsIds']['map'](_0x204471=>_0x539851['getUser'](_0x204471)),'createdAt':new Date(_0x189bfd['createdAt']),'attributes':_0x189bfd['attributes'],'fromVersion':_0x189bfd['fromVersion'],'toVersion':_0x189bfd['toVersion']});}['addRevision'](_0x458495,_0x588236=0x0){this['_revisions']['add'](_0x458495,_0x588236);}['getRevision'](_0x3edf60){return this['_revisions']['get'](_0x3edf60);}['getRevisions'](_0x3b859a={'toJSON':!0x1}){const _0x5cde4e=Array['from'](this['_revisions']);return _0x5cde4e['reverse'](),_0x3b859a['toJSON']?_0x5cde4e['map'](_0x3289eb=>_0x3289eb['toJSON']()):_0x5cde4e;}['getIndex'](_0x2060bd){return this['_revisions']['getIndex'](_0x2060bd);}['getEarlierVisibleRevision'](_0x415076){const [,_0xa4ee29]=this['getRevisionsIterator'](_0x415076,{'direction':'earlier'});return _0xa4ee29;}['getLaterVisibleRevision'](_0x585f46){const [,_0x498e1e]=this['getRevisionsIterator'](_0x585f46,{'direction':'later'});return _0x498e1e;}['getRevisionsInDiff'](_0xb041e6){const _0x4353fc=[];for(const _0x5a9f37 of this['getRevisionsIterator'](_0xb041e6['newRevisionId']))if(_0x4353fc['push'](_0x5a9f37),_0x5a9f37['id']===_0xb041e6['oldRevisionId'])break;return _0x4353fc;}*['getRevisionsIterator'](_0x107c36,{direction:_0x156c1c='earlier',filter:_0xc7e75c=()=>!0x0}={}){const _0x47bb06='earlier'===_0x156c1c?0x1:-0x1;let _0x483473=this['_revisions']['get'](_0x107c36),_0x92f782=this['getIndex'](_0x483473);for(yield _0x483473;_0x483473;){if(_0x92f782+=_0x47bb06,_0x483473=this['getRevision'](_0x92f782),!_0x483473)return;_0xc7e75c(_0x483473)&&(yield _0x483473);}}}function R(_0x4b975b,_0x50c941,_0x5abbab){const t=_0x4b975b['t'];switch(_0x50c941){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'},_0x5abbab);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5abbab);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x290f31,'a':_0x528f07,'e':_0x4daf52,'r':_0x5c1967,'u':_0x1d7be9};class l extends _0x4b13f8{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b324b,j,_0x38ae7d];}constructor(_0x2ee65d){super(_0x2ee65d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x109ce1=_0x5bfa17();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x109ce1},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2b016a=this['repository']['getRevision'](0x0),_0x3ce047=_0x2b016a&&null===_0x2b016a['creator']?_0x2b016a:null;if(this['_continueCurrentRevision']=!!_0x3ce047&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1704d9=this['_source']['getCurrentRevisionId'](),_0xf10e9d=this['repository']['getRevision'](_0x1704d9);if(_0xf10e9d)this['_startingVersion']=_0xf10e9d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x302b91=this['_source']['history']['_operations']['find'](_0x497677=>!_0x497677['_isInit']),_0x7d46=_0x302b91?_0x302b91['baseVersion']:this['_source']['history']['version'];_0x2b016a?(_0x2b016a['toVersion']<_0x7d46&&_0x2b016a['_update']({'toVersion':_0x7d46}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3ce047['id'],this['_startingVersion']=_0x3ce047['fromVersion']):(this['_startingVersion']=_0x2b016a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x7d46,this['_continueCurrentRevision']=!0x1);}}else _0x3ce047&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3ce047['toVersion'],this['editor']['model']['document']['history']['version']),_0x3ce047['fromVersion']===_0x3ce047['toVersion']?(0x0!==_0x3ce047['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3ce047['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3ce047['id'],this['_startingVersion']=_0x3ce047['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',_0x3f43b3=>!_0x3f43b3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3452f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a0952;for(const _0x6c3ef1 in _0x3452f9){const _0x2c4f97=_0x6c3ef1,_0x487ac5=_0x3452f9[_0x2c4f97];if('revisionHistoryLicenseKeyValid'==_0x487ac5||'revisionHistoryLicenseKeyInvalid'==_0x487ac5||'revisionHistoryLicenseKeyExpired'==_0x487ac5||'revisionHistoryLicenseKeyDomainLimit'==_0x487ac5||'revisionHistoryLicenseKeyNotAllowed'==_0x487ac5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x487ac5||'revisionHistoryLicenseKeyTrialLimit'==_0x487ac5||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x487ac5||'revisionHistoryLicenseKeyUsageLimit'==_0x487ac5){delete _0x3452f9[_0x2c4f97],_0x3a0952=_0x487ac5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3a0952&&_0x3452f9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3a0952&&_0x3452f9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3a0952&&_0x3452f9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3a0952&&_0x3452f9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3a0952&&_0x3452f9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3a0952&&_0x3452f9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3a0952&&_0x3452f9['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3a0952&&_0x3452f9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x148f69=this['repository']['getRevision'](0x0),_0x467d7c=await this['getRevisionDocumentData'](_0x148f69),_0x236dc2=await this['getRevisionRootsAttributes'](_0x148f69);this['_replaceEditorDataWithRevisionData'](_0x467d7c,_0x236dc2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2e486c){this['_source']=_0x2e486c;}async['update'](){const _0x943e4c=await this['_source']['getLatestVersion']();if(_0x943e4c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x43bc9c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x943e4c});_0x43bc9c['authors']=_0x43bc9c['authorsIds']['map'](_0x207ee9=>this['editor']['plugins']['get']('Users')['getUser'](_0x207ee9)),this['currentRevision']['_update'](_0x43bc9c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5d0493={},_0x1e4a65=null){const _0xf61cb0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e4a65>this['currentRevision']['toVersion']&&(_0x1e4a65=null),null===_0x1e4a65&&(_0x1e4a65=await this['_source']['getLatestVersion']());const _0x1699e8=this['_getFromVersion'](_0x1e4a65),_0x1a3212=this['buildRevisionData']({'from':_0x1699e8,'to':_0x1e4a65});if(this['currentRevision']['toVersion']<_0x1e4a65){const _0x399848=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e4a65,'to':_0x1e4a65});_0x399848['authors']=[],_0x399848['authorsIds']=[],_0x399848['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x399848,!0x0),delete _0x399848['authors'],_0xf61cb0['push'](_0x399848);}_0x5d0493['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d0493['name']=_0x5d0493['name']||null,_0x5d0493['id']=_0x5d0493['id']||_0x5bfa17(),_0x5d0493={..._0x5d0493,..._0x1a3212};const _0x51d97f=this['addRevisionData'](_0x5d0493);_0xf61cb0['push'](_0x5d0493);const _0x162c93=this['repository']['getIndex'](_0x51d97f);if(0x0!==_0x162c93){const _0x258f6d=this['repository']['getRevision'](_0x162c93-0x1);if(_0x258f6d['fromVersion']!==_0x1e4a65){const _0x2d10ff=this['_revisionDataBuilder']['getData'](_0x1e4a65,_0x258f6d['toVersion']),_0x3101ba={'id':_0x258f6d['id'],'diffData':_0x2d10ff['diffData'],'authorsIds':_0x2d10ff['authorsIds'],'authors':_0x2d10ff['authorsIds']['map'](_0x56b095=>this['editor']['plugins']['get']('Users')['getUser'](_0x56b095)),'fromVersion':_0x1e4a65};_0x258f6d===this['currentRevision']&&(_0x3101ba['createdAt']=new Date(_0x5d0493['createdAt']['getTime']()+0xa)),_0x258f6d['_update'](_0x3101ba,!0x0),delete _0x3101ba['authors'],_0xf61cb0['push'](_0x3101ba);}}if(this['adapter']){for(const _0x3ea448 of _0xf61cb0)this['_bufferUpdate'](_0x3ea448['id'],_0x3ea448,!0x0);this['sendBufferedUpdates']();}return _0x51d97f;}['addRevisionData'](_0x253ed1){const _0x468e5d=this['repository']['createRevision'](_0x253ed1);return this['adapter']&&_0x468e5d['on']('_update',(_0x5607fe,_0x4eabd6,_0x5b7e53)=>{_0x5b7e53||(this['_bufferUpdate'](_0x4eabd6['id'],_0x4eabd6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x468e5d,this['_findInsertionIndex'](_0x468e5d)),_0x468e5d;}async['getRevisionDocumentData'](_0x2ac780){await this['_loadRevisionData'](_0x2ac780);const _0x68d7e0={};for(const _0x40f451 in _0x2ac780['diffData']){if(_0x2ac780['diffData'][_0x40f451]['attachChange']&&!_0x2ac780['diffData'][_0x40f451]['attachChange']['isAttached'])continue;const _0x4f0399=this['_removeRevisionMarkers'](JSON['parse'](_0x2ac780['diffData'][_0x40f451]['insertions'])),_0x225af4=this['editor']['editing']['view']['document'],_0x320983=new _0x102a68(_0x225af4,_0x4f0399['map'](_0x255c6b=>V(_0x255c6b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x68d7e0[_0x40f451]=this['editor']['data']['processor']['toData'](_0x320983),this['editor']['data']['processor']['useFillerType']('default');}return _0x68d7e0;}async['getRevisionRootsAttributes'](_0x56af68){await this['_loadRevisionData'](_0x56af68);const _0x94bfb2={};for(const _0x1c6916 in _0x56af68['diffData'])_0x56af68['diffData'][_0x1c6916]['attachChange']&&!_0x56af68['diffData'][_0x1c6916]['attachChange']['isAttached']||(_0x94bfb2[_0x1c6916]=_0x56af68['diffData'][_0x1c6916]['attributesAfter']||{});return _0x94bfb2;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xf115cd=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1d63aa=0x0;_0x1d63aa<_0xf115cd['length'];_0x1d63aa++){const _0x5d82b5=_0xf115cd[_0x1d63aa];let _0xb50f62=!0x1;for(const _0x398a45 of Object['keys'](_0x5d82b5))void 0x0===_0x5d82b5[_0x398a45]?delete _0x5d82b5[_0x398a45]:'id'!==_0x398a45&&(_0xb50f62=!0x0);_0xb50f62||(_0xf115cd[_0x1d63aa]=null);}if(_0xf115cd=_0xf115cd['filter'](_0x1c3987=>null!==_0x1c3987),!_0xf115cd['length'])return;for(let _0x56f735=0x0;_0x56f735<_0xf115cd['length'];_0x56f735++){const _0x43582a=_0xf115cd[_0x56f735];void 0x0!==_0x43582a['fromVersion']&&void 0x0===_0x43582a['toVersion']&&(_0x43582a['toVersion']=this['repository']['getRevision'](_0x43582a['id'])['toVersion']),void 0x0!==_0x43582a['toVersion']&&void 0x0===_0x43582a['fromVersion']&&(_0x43582a['fromVersion']=this['repository']['getRevision'](_0x43582a['id'])['fromVersion']);}const _0x4ee8b7=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xf115cd,_0x4ee8b7)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4c0633=>{if(_0x4c0633){for(const _0x137fee of _0x4c0633)this['setRevisionData']({'id':_0x137fee['id'],'createdAt':_0x137fee['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1034c8,_0x108f19){let _0x1bda30=this['editor']['config']['get']('initialData'),_0x24b53a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1bda30){_0x1bda30={};for(const _0x219d34 of this['editor']['model']['document']['getRootNames']())_0x1bda30[_0x219d34]='';}if('string'==typeof _0x1bda30&&(_0x1bda30={'main':_0x1bda30}),void 0x0===_0x24b53a){_0x24b53a={};for(const _0xadf3de of this['editor']['model']['document']['getRootNames']())_0x24b53a[_0xadf3de]={};}let _0xa981da=!0x1;const _0x32fc6d=Object['keys'](_0x1bda30),_0x524a32=Object['keys'](_0x1034c8);for(const _0x18cb68 of _0x32fc6d){if(_0x1bda30[_0x18cb68]!==_0x1034c8[_0x18cb68]&&''!==_0x1bda30[_0x18cb68]['trim']()){_0xa981da=!0x0;break;}if(!_0x5336bd(_0x24b53a[_0x18cb68],_0x108f19[_0x18cb68])&&Object['keys'](_0x24b53a[_0x18cb68])['length']>0x0){_0xa981da=!0x0;break;}}_0xa981da||(_0xa981da=_0x524a32['some'](_0x233b55=>!this['editor']['model']['document']['getRoot'](_0x233b55))),_0xa981da&&_0x5da175('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1bda30,'editorRootsAttributes':_0x24b53a,'revisionData':_0x1034c8,'revisionRootsAttributes':_0x108f19}),this['editor']['config']['set']('initialData',_0x1034c8),this['editor']['config']['set']('rootsAttributes',_0x108f19);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4b831f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4b831f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x223361){const _0x3d0884=this['repository']['getRevisions']();_0x3d0884['reverse']();let _0x308c3c=0x0;for(;_0x308c3c<_0x3d0884['length'];){const _0x364078=_0x3d0884[_0x308c3c];if(_0x364078===this['currentRevision']){_0x308c3c++;continue;}if(_0x364078['id']===this['_initialRevisionId'])break;const _0x1bd0fc=_0x223361['toVersion']-_0x364078['toVersion']||_0x223361['fromVersion']-_0x364078['fromVersion'];if(_0x1bd0fc>0x0)break;if(_0x1bd0fc<0x0)_0x308c3c++;else{if(!_0x223361['creator']&&_0x364078['creator'])break;if(_0x364078['creator']||!_0x223361['creator']){if(_0x223361['createdAt']>_0x364078['createdAt'])break;_0x308c3c++;}else _0x308c3c++;}}return _0x308c3c;}['setRevisionData'](_0x4ccc04){const _0x2f53d1=this['repository']['getRevision'](_0x4ccc04['id']);if(_0x4ccc04['createdAt']&&(_0x4ccc04['createdAt']=new Date(_0x4ccc04['createdAt'])),_0x4ccc04['authorsIds']){const _0x1b98d0=this['editor']['plugins']['get']('Users');_0x4ccc04['authors']=_0x4ccc04['authorsIds']['map'](_0x8efcd3=>_0x1b98d0['getUser'](_0x8efcd3));}_0x2f53d1['_update'](_0x4ccc04,!0x0);}['buildRevisionData']({revision:_0x43d29c=null,from:_0x2b6f33=null,to:_0x502cfb=null}){_0x2b6f33=null!==_0x2b6f33?_0x2b6f33:_0x43d29c['fromVersion'],_0x502cfb=null!==_0x502cfb?_0x502cfb:_0x43d29c['toVersion'];const _0x5bd7fc=this['_revisionDataBuilder']['getData'](_0x2b6f33,_0x502cfb),_0x1429c7={'diffData':_0x5bd7fc['diffData'],'authorsIds':_0x5bd7fc['authorsIds'],'fromVersion':_0x2b6f33,'toVersion':_0x502cfb};if(!_0x43d29c||_0x502cfb!==_0x43d29c['toVersion']){const _0x4edd68=_0x502cfb-0x1,_0x5c9ff9=this['_source']['history']['getOperation'](_0x4edd68);_0x1429c7['createdAt']=_0x5c9ff9&&_0x5c9ff9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2b6f33===this['_loadedStateData']['fromVersion']){for(const _0x36fe60 of this['_loadedStateData']['authors'])_0x1429c7['authorsIds']['includes'](_0x36fe60['id'])||_0x1429c7['authorsIds']['push'](_0x36fe60['id']);}return _0x1429c7;}['_loadRevisionData'](_0x180b75){if(!_0x180b75||_0x180b75['diffData'])return Promise['resolve']();{const _0x2c8198=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c8198,'revisionId':_0x180b75['id']})['then'](_0x358af8=>{_0x180b75['diffData']=_0x358af8['diffData'];});}}['_bufferUpdate'](_0x13714c,_0x351092,_0x38df5){if(this['_bufferedUpdates']['has'](_0x13714c)){const _0x3519e2=this['_bufferedUpdates']['get'](_0x13714c);_0x351092=_0x38df5?{..._0x3519e2,..._0x351092}:{..._0x351092,..._0x3519e2};}this['_bufferedUpdates']['set'](_0x13714c,_0x351092);}['_getFromVersion'](_0x42404d){const _0xe87877=this['repository']['getRevisions']();_0xe87877['reverse'](),_0xe87877['shift']();const _0x357dff=_0xe87877['find'](_0x8133d7=>_0x8133d7['toVersion']<=_0x42404d)['toVersion'];return _0x357dff<this['_startingVersion']?this['_startingVersion']:_0x357dff;}['_createInitialRevision'](_0x5d4636){const _0x97560f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x97560f)this['_initialRevisionId']=_0x97560f['id'];else{const _0x48f09a=!this['editor']['model']['document']['roots']['find'](_0x3770a0=>this['editor']['model']['hasContent'](_0x3770a0)),_0x58157c=this['editor']['plugins']['get']('Users')['me']['id'],_0x476cb1=R(this['editor']['locale'],_0x48f09a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d4636,'to':_0x5d4636,'id':this['_initialRevisionId'],'name':_0x476cb1,'creatorId':_0x58157c});}}['_createCurrentRevision'](_0x18128f){const _0xa63ba0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xa63ba0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18128f,'to':_0x18128f,'id':_0xa63ba0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x18566c,from:_0xd9895b,to:_0x4f4322,creatorId:_0x58663d,id:_0x5df54f}){const _0xac624c=this['buildRevisionData']({'from':_0xd9895b,'to':_0x4f4322});_0xac624c['name']=_0x18566c,_0xac624c['creatorId']=_0x58663d,_0xac624c['id']=_0x5df54f;const _0x22a76f=this['addRevisionData'](_0xac624c);return this['adapter']&&this['_bufferUpdate'](_0xac624c['id'],_0xac624c,!0x0),_0x22a76f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x46ff62){return(_0x46ff62=_0x46ff62['filter'](_0xa0c134=>!_0xa0c134['name']||'revision-start'!==_0xa0c134['name']&&'revision-end'!==_0xa0c134['name']))['forEach'](_0x48d26d=>{'string'!=typeof _0x48d26d&&(_0x48d26d['children']=this['_removeRevisionMarkers'](_0x48d26d['children']),_0x48d26d['attributes']=_0x48d26d['attributes']['filter'](_0x380553=>!_0x380553[0x0]['startsWith']('data-revision-')));}),_0x46ff62;}}function V(_0x57066b,_0x359e76){const _0x906ae9=_0x359e76['editing']['view']['document'];if('string'==typeof _0x57066b)return new _0x53b0f8(_0x906ae9,_0x57066b);{const _0x329b4a=_0x57066b['children']['map'](_0x142147=>V(_0x142147,_0x359e76));return new(C[_0x57066b['type']]||_0x7409a)(_0x906ae9,_0x57066b['name'],_0x57066b['attributes'],_0x329b4a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x528c8b){this['editor']=_0x528c8b,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'](_0x3c6881){this['source']=_0x3c6881;const _0x463b4f=new Map(),_0xf543fa=new Map(),_0x3aaa0d=this['editor']['model']['document']['roots']['map'](_0x22b287=>_0x22b287['rootName']);for(const _0x5b2c83 of _0x3aaa0d){const _0x429e12=this['editor']['model']['document']['getRoot'](_0x5b2c83),_0x4989ee=F(_0x429e12);_0x463b4f['set'](_0x5b2c83,_0x4989ee),_0xf543fa['set'](_0x5b2c83,Object['fromEntries'](_0x429e12['getAttributes']()));}const _0x142a90=Array['from'](this['editor']['model']['markers'])['map'](_0x1fb287=>[_0x1fb287['name'],_0x1fb287['getRange']()]),_0x1f3980=this['source']['version'];this['_saveMetaData'](_0x1f3980,_0x463b4f,_0x142a90,_0xf543fa),this['_startingRevisionId']=this['_revisionId'];const _0x490992=new Map(),_0x49fa02=new Map();for(const _0x50ef77 of _0x3aaa0d){const _0x30041e=B(_0x50ef77);_0x490992['set'](_0x50ef77,_0x30041e),_0x49fa02['set'](_0x50ef77,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x490992,[],_0x49fa02);}['getData'](_0x2b76a6,_0x2b32ff){if(this['_lastFrom']===_0x2b76a6&&this['_lastTo']<=_0x2b32ff)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b32ff,!0x0);else{if(!this['_savedMetaData']['has'](_0x2b76a6)){const _0x8dab68=this['_getPreviousFrom'](_0x2b76a6);this['_calculateMetaData'](_0x8dab68,_0x2b76a6,!0x1);}this['_calculateMetaData'](_0x2b76a6,_0x2b32ff,!0x0);}return this['_lastFrom']=_0x2b76a6,this['_lastTo']=_0x2b32ff,this['_getState']();}['loadState'](_0x2f3502){this['_reset'](),this['_lastFrom']=_0x2f3502['fromVersion'],this['_lastTo']=_0x2f3502['toVersion'];for(const _0x2af5dc in _0x2f3502['diffData']){const _0x388251=_0x2f3502['diffData'][_0x2af5dc]['attachChange'],_0x322839=_0x14ebb3(_0x2f3502['diffData'][_0x2af5dc]['attributesBefore'])||{},_0x118281=this['_makeModelFromViewString'](_0x2f3502['diffData'][_0x2af5dc]['deletions']);_0x118281['rootName']=_0x2af5dc,_0x118281['_isAttached']=!_0x388251||!_0x388251['isAttached'],_0x118281['isAttached']=()=>_0x118281['_isAttached'],this['_baseRoots']['set'](_0x2af5dc,_0x118281),this['_baseRootsAttributes']['set'](_0x2af5dc,_0x322839),_0x388251&&this['_touchedRoots']['set'](_0x2af5dc,_0x388251);const _0x2efe9b=this['_makeIdsRoot'](_0x118281);this['_baseIdsRoots']['set'](_0x2af5dc,_0x2efe9b);for(const [_0xd77517,_0x1f40e7]of _0x118281['markers']){if(!_0xd77517['startsWith']('revision:'))continue;const _0x1e7f10=_0xd77517['split'](':')[0x2];for(const _0x33b04b of _0x1f40e7['getWalker']({'singleCharacters':!0x0})){const _0x26af6f=this['_getVidAttributeName'](_0x33b04b),_0x18efd6='elementEnd'==_0x33b04b['type']?_0x33b04b['previousPosition']['path']['slice'](0x0,-0x1):_0x33b04b['previousPosition']['path'],_0x2f01fa=_0x2efe9b['getNodeByPath'](_0x18efd6)['getAttribute'](_0x26af6f);this['_touched']['set'](_0x2f01fa,{'userId':_0x1e7f10});}}}this['_startingRevisionId']=this['_revisionId'];const _0x248f9c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x660c7d=>!this['_touched']['has'](_0x660c7d));let _0x115663=0x0;const _0xc8ebc2=new Map();for(const _0xda6f33 in _0x2f3502['diffData']){const _0x16ad3d=_0x2f3502['diffData'][_0xda6f33]['attachChange'],_0x2a5a2c=_0x14ebb3(_0x2f3502['diffData'][_0xda6f33]['attributesAfter'])||{},_0xc87367=this['_makeModelFromViewString'](_0x2f3502['diffData'][_0xda6f33]['insertions']);_0xc87367['rootName']=_0xda6f33,_0xc87367['_isAttached']=!_0x16ad3d||_0x16ad3d['isAttached'],_0xc87367['isAttached']=()=>_0xc87367['_isAttached'],this['_diffRoots']['set'](_0xda6f33,_0xc87367),this['_diffRootsAttributes']['set'](_0xda6f33,_0x2a5a2c);const _0x45e3ae=this['_makeIdsRoot'](_0xc87367,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xda6f33,_0x45e3ae),_0xc8ebc2['set'](_0xda6f33,_0xc87367['isAttached']()?_0x2a5a2c:{});for(const [_0x5e644b,_0x1b1c08]of _0xc87367['markers']){if(!_0x5e644b['startsWith']('revision:'))continue;const _0x341226=_0x5e644b['split'](':')[0x2];for(const _0x5cbf43 of _0x1b1c08['getWalker']({'singleCharacters':!0x0})){const _0x405bab=this['_getVidAttributeName'](_0x5cbf43),_0xcac7af=this['_revisionId']++,_0x225154='elementEnd'==_0x5cbf43['type']?_0x5cbf43['previousPosition']['path']['slice'](0x0,-0x1):_0x5cbf43['previousPosition']['path'];_0x45e3ae['getNodeByPath'](_0x225154)['_setAttribute'](_0x405bab,_0xcac7af),this['_touched']['set'](_0xcac7af,{'userId':_0x341226});}}for(const _0x28e650 of this['editor']['model']['createRangeIn'](_0xc87367)['getWalker']({'singleCharacters':!0x0})){const _0x221f4a=this['_getVidAttributeName'](_0x28e650),_0x41e70e='elementEnd'==_0x28e650['type']?_0x28e650['previousPosition']['path']['slice'](0x0,-0x1):_0x28e650['previousPosition']['path'],_0x54ea40=_0x45e3ae['getNodeByPath'](_0x41e70e);_0x54ea40['getAttribute'](_0x221f4a)>0x0||_0x54ea40['_setAttribute'](_0x221f4a,_0x248f9c[_0x115663++]);}for(const [_0x161638,_0x22a427]of _0xc87367['markers'])_0x161638['startsWith']('revision:')||this['_markers']['set'](_0x161638,_0x22a427);}const _0x2ad2e0=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2ad2e0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ad2e0,0x1));const _0x3c439e=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c439e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c439e,0x1));const _0xb96986=Array['from'](this['_diffRoots'])['map'](([_0x22e162,_0x27f606])=>[_0x22e162,F(_0x27f606)]);this['_saveMetaData'](this['_lastTo'],_0xb96986,this['_markers'],_0xc8ebc2);}['_makeModelFromViewString'](_0x393349){const _0x564c7f=JSON['parse'](_0x393349),_0x52580c=this['editor']['editing']['view']['document'],_0x413c29=new _0x102a68(_0x52580c,_0x564c7f['map'](_0x560e51=>V(_0x560e51,this['editor'])));return this['editor']['data']['toModel'](_0x413c29);}['_saveMetaData'](_0x1828ed,_0x2fa39f,_0x97fee9,_0x292e4b){const _0x1f5dc2=new Map(_0x2fa39f),_0x69dd8e=new Map(_0x14ebb3(_0x292e4b)),_0x3dc99c=new Map();for(const [_0x207b96,_0x4ad37e]of _0x97fee9)_0x3dc99c['set'](_0x207b96,{'start':_0x4ad37e['start']['clone'](),'end':_0x4ad37e['end']['clone'](),'rootName':_0x4ad37e['root']['rootName']});this['_savedMetaData']['set'](_0x1828ed,{'roots':_0x1f5dc2,'markers':_0x3dc99c,'rootsAttributes':_0x69dd8e});}['_removeMetaData'](_0x552192){this['_savedMetaData']['delete'](_0x552192);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1a8dbe,_0x84b11=null){let _0x3fe120=null;_0x1a8dbe['is']('documentFragment')||(_0x3fe120=new ft(_0x1a8dbe['name'],{'vid_start':null===_0x84b11?this['_revisionId']++:_0x84b11++}));const _0xccdc9d=[];for(const _0x3c75cd of _0x1a8dbe['getChildren']())if(_0x3c75cd['is']('element')){_0xccdc9d['push'](this['_makeIdsRoot'](_0x3c75cd,_0x84b11));const _0x336b5b=_0xccdc9d[_0xccdc9d['length']-0x1];null!==_0x84b11&&(_0x84b11=_0x336b5b['is']('element','$text')?_0x336b5b['getAttribute']('vid')+0x1:_0x336b5b['getAttribute']('vid_end')+0x1);}else{for(let _0x5bd18a=0x0;_0x5bd18a<_0x3c75cd['offsetSize'];_0x5bd18a++)_0xccdc9d['push'](new ft('$text',{'vid':null===_0x84b11?this['_revisionId']++:_0x84b11++}));}if(_0x1a8dbe['is']('documentFragment')){const _0x17f6a6=B(_0x1a8dbe['rootName']);return _0x17f6a6['_insertChild'](0x0,_0xccdc9d),_0x17f6a6;}return _0x3fe120['_setAttribute']('vid_end',null===_0x84b11?this['_revisionId']++:_0x84b11++),_0x3fe120['_insertChild'](0x0,_0xccdc9d),_0x3fe120;}['_calculateMetaData'](_0x52bcac,_0x5294ed,_0x134534){this['_reset']();const {roots:_0x8cf30f,markers:_0x4b444d,rootsAttributes:_0x583bc9}=this['_savedMetaData']['get'](_0x52bcac);this['_baseRoots']=new Map(_0x8cf30f),this['_baseRootsAttributes']=new Map(_0x14ebb3(_0x583bc9));for(const [_0x23123d,_0x2b2d9f]of this['_baseRoots'])if('$graveyard'!==_0x23123d&&(this['_diffRoots']['set'](_0x23123d,F(_0x2b2d9f)),this['_diffRootsAttributes']=new Map(_0x14ebb3(_0x583bc9)),_0x134534)){const _0x478e6d=this['_revisionId'];this['_idsRoots']['set'](_0x23123d,this['_makeIdsRoot'](_0x2b2d9f)),this['_baseIdsRoots']['set'](_0x23123d,this['_makeIdsRoot'](_0x2b2d9f,_0x478e6d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x134534&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x93e64f,_0x18baf5]of _0x4b444d){const _0x1073a6=this['_baseRoots']['get'](_0x18baf5['rootName']),_0x186e5a=this['_diffRoots']['get'](_0x18baf5['rootName']),_0x38d6bf=new vt(this['_fixPosition'](_0x18baf5['start'],_0x1073a6),this['_fixPosition'](_0x18baf5['end'],_0x1073a6)),_0x6d230e=this['_fixRange'](_0x38d6bf,_0x186e5a);_0x1073a6['markers']['set'](_0x93e64f,_0x38d6bf),this['_markers']['set'](_0x93e64f,_0x6d230e);}this['_applyOperations'](_0x52bcac,_0x5294ed,_0x134534);}['_applyOperations'](_0x522f8,_0x2e2d44,_0x6a95ae){for(const _0x17733f of this['source']['getOperations'](_0x522f8,_0x2e2d44))this['_handleOperation'](_0x17733f,_0x6a95ae);for(const _0x35fab7 of this['_diffRoots']['values']())_0x35fab7['markers']['clear']();for(const [_0x146c5a,_0x19094a]of this['_markers']){this['_diffRoots']['get'](_0x19094a['root']['rootName'])['markers']['set'](_0x146c5a,_0x19094a['clone']());}const _0xe8d14d=new Map(),_0x1c2bf9=new Map();for(const [_0x81934f,_0x2d1515]of this['_diffRoots'])_0xe8d14d['set'](_0x81934f,F(_0x2d1515)),_0x1c2bf9['set'](_0x81934f,this['_diffRootsAttributes']['get'](_0x81934f));this['_saveMetaData'](_0x2e2d44,_0xe8d14d,this['_markers'],_0x1c2bf9);}['_getPreviousFrom'](_0x377981){const _0x1a18d8=Array['from'](this['_savedMetaData']['keys']());_0x1a18d8['sort']((_0x1311ca,_0xa5c69d)=>_0x1311ca-_0xa5c69d),_0x1a18d8['reverse']();for(const _0x4789e9 of _0x1a18d8)if(_0x4789e9<_0x377981)return _0x4789e9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2e667d,_0x2edee2){const _0x3d1ee9=Array['from'](_0x2edee2['markers'])['map'](([_0x555d2d,_0x4867df])=>[_0x555d2d,this['_fixRange'](_0x4867df,_0x2e667d)]);_0x2e667d['markers']=new Map(_0x3d1ee9);}['_transformMarkers'](_0x2a0f2a){for(const _0x462baf of this['_markers']['values']()){const _0x324750=_0x462baf['getTransformedByOperation'](_0x2a0f2a),_0x6dfc5c=vt['_createFromRanges'](_0x324750);_0x462baf['start']=_0x6dfc5c['start'],_0x462baf['end']=_0x6dfc5c['end'];}}['_handleOperation'](_0xd9faf5,_0x39c60c){if('addRoot'!=_0xd9faf5['type']&&'detachRoot'!=_0xd9faf5['type']){if('insert'==_0xd9faf5['type']){const _0x412a9c=_0xd9faf5['position']['root']['rootName'];this['_diffRoots']['has'](_0x412a9c)||(this['_diffRoots']['set'](_0x412a9c,B(_0x412a9c,!0x0)),this['_diffRootsAttributes']['set'](_0x412a9c,{}),_0x39c60c&&this['_idsRoots']['set'](_0x412a9c,B(_0x412a9c,!0x0)));}else{if('addRootAttribute'==_0xd9faf5['type']||'removeRootAttribute'==_0xd9faf5['type']||'changeRootAttribute'==_0xd9faf5['type'])return void this['_handleRootAttributeOperation'](_0xd9faf5);'marker'==_0xd9faf5['type']&&this['_handleMarkerOperation'](_0xd9faf5);}if('marker'!==_0xd9faf5['type']){const _0x3023f7=this['_cloneOperation'](_0xd9faf5,this['_diffRoots']);_0x3023f7['_execute'](),this['_transformMarkers'](_0x3023f7);}if(_0x39c60c)switch(_0xd9faf5['type']){case'insert':this['_handleInsertOperation'](_0xd9faf5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xd9faf5);break;case'merge':this['_handleMergeOperation'](_0xd9faf5);break;case'split':this['_handleSplitOperation'](_0xd9faf5);}}else this['_handleRootOperation'](_0xd9faf5,_0x39c60c);}['_cloneOperation'](_0x261360,_0x485c48){const _0x195b51=_0x261360['clone']();return _0x195b51['_authorId']=_0x261360['_authorId'],this['_fixOperation'](_0x195b51,_0x485c48),_0x195b51;}['_getBaseVids'](_0x8cef93){return _0x8cef93['map'](_0x41d8a8=>{const _0x402ba3=this['_getVidAttributeName'](_0x41d8a8);return Number(_0x41d8a8['item']['getAttribute'](_0x402ba3));});}['_generateTape'](_0x354305,_0x2837ce){if(_0x354305['is']('element','$text'))_0x2837ce['push']({'item':_0x354305,'type':'text'});else{_0x354305['is']('element')&&_0x2837ce['push']({'item':_0x354305,'type':'elementStart'});for(const _0x12e20f of _0x354305['getChildren']())this['_generateTape'](_0x12e20f,_0x2837ce);_0x354305['is']('element')&&_0x2837ce['push']({'item':_0x354305,'type':'elementEnd'});}return _0x2837ce;}['_getState'](){const _0xd5cdc=new Map(this['_touched']),_0x2835c0=new Map(_0xd5cdc),_0x1a1457=new Map(),_0x207a9c={'insertions':{},'deletions':{}},_0x1748e6={'insertions':{},'deletions':{}},_0xdd0abb=new Map(),_0x277a3e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x277a3e['delete']('$graveyard');for(const _0x575c29 of _0x277a3e){const _0x4029e1=this['_diffRoots']['get'](_0x575c29)||B(_0x575c29,!0x1),_0x48e524=this['_baseRoots']['get'](_0x575c29)||B(_0x575c29,!0x1);_0x4029e1['isAttached']()||_0x48e524['isAttached']()?(_0x207a9c['insertions'][_0x575c29]=F(_0x4029e1),_0x207a9c['deletions'][_0x575c29]=F(_0x48e524),this['_copyMarkers'](_0x207a9c['deletions'][_0x575c29],_0x48e524),this['_copyMarkers'](_0x207a9c['insertions'][_0x575c29],_0x4029e1),_0x1748e6['insertions'][_0x575c29]=this['_generateTape'](this['_idsRoots']['get'](_0x575c29),[]),_0x1748e6['deletions'][_0x575c29]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x575c29)||B(_0x575c29,!0x1),[])):_0x277a3e['delete'](_0x575c29);}for(const _0x1781fb of _0x277a3e){const _0x2d9636=_0x1748e6['insertions'][_0x1781fb];for(const _0x51fa60 of _0x2d9636){const _0x56e9a7=this['_getVidAttributeName'](_0x51fa60),_0x2bd651=_0x51fa60['item']['getAttribute'](_0x56e9a7);_0x2835c0['delete'](_0x2bd651),_0x2bd651>=this['_startingRevisionId']&&_0x1a1457['set'](_0x2bd651,_0xd5cdc['get'](_0x2bd651));}}for(const _0x347502 of _0x277a3e){const _0x747391=_0x1748e6['insertions'][_0x347502],_0x3b99a4=this['_getBaseVids'](_0x1748e6['deletions'][_0x347502]);let _0x256fb2=0x0;for(const _0x370db3 of _0x747391){const _0x3e930b=this['_getVidAttributeName'](_0x370db3),_0x3fcd17=_0x370db3['item']['getAttribute'](_0x3e930b);if(!_0x1a1457['has'](_0x3fcd17)&&!_0xdd0abb['has'](_0x3fcd17)){if(_0x2835c0['has'](_0x3fcd17))_0x256fb2++;else{if(_0x3fcd17!=_0x3b99a4[_0x256fb2]){const _0xbbecc9=_0xd5cdc['get'](_0x3fcd17)||_0xd5cdc['get'](_0x3b99a4[_0x256fb2]);for(;_0x3fcd17!=_0x3b99a4[_0x256fb2];)_0x2835c0['has'](_0x3b99a4[_0x256fb2])||(_0xdd0abb['set'](_0x3b99a4[_0x256fb2],_0xbbecc9),_0xd5cdc['set'](_0x3b99a4[_0x256fb2],_0xbbecc9)),_0x256fb2++;}_0x256fb2++;}}}}for(const _0x5a18df of _0x277a3e){const _0x251b93=_0x1748e6['insertions'][_0x5a18df];for(const _0x340a6f of _0x251b93){const _0x1f13cc=this['_getVidAttributeName'](_0x340a6f),_0x5145a2=_0x340a6f['item']['getAttribute'](_0x1f13cc);if(_0xdd0abb['has'](_0x5145a2)){const _0x1260e9=_0xdd0abb['get'](_0x5145a2);_0x2835c0['has'](_0x5145a2)||_0x2835c0['set'](_0x5145a2,{..._0x1260e9}),_0x1a1457['set'](_0x5145a2,{..._0x1260e9});}}}for(const _0x408f39 of _0x2835c0['keys']())_0x408f39>=this['_startingRevisionId']&&_0x2835c0['delete'](_0x408f39);const _0x47148=new Map();for(const _0x1622f0 of _0x277a3e){let _0x380aaf=_0x1748e6['insertions'][_0x1622f0];for(const _0x39400d of _0x380aaf)if(_0x39400d['item']['is']('element','tableCell')){const _0x2e296b=this['_getVidAttributeName'](_0x39400d),_0x4e7383=_0x39400d['item']['getAttribute'](_0x2e296b);if(_0x1a1457['has'](_0x4e7383)){const _0x5f56d7=_0x39400d['item']['parent']['parent']['getAttribute']('vid_start'),_0x32c74c=_0x47148['get'](_0x5f56d7)||new Set();_0x32c74c['add'](_0x1a1457['get'](_0x4e7383)['userId']),_0x47148['set'](_0x5f56d7,_0x32c74c);}}_0x380aaf=_0x1748e6['deletions'][_0x1622f0];for(const _0x2791a1 of _0x380aaf)if(_0x2791a1['item']['is']('element','tableCell')){const _0x576a45=this['_getVidAttributeName'](_0x2791a1),_0x29cb87=_0x2791a1['item']['getAttribute'](_0x576a45);if(_0x2835c0['has'](_0x29cb87)){const _0x4c646f=_0x2791a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x388687=_0x47148['get'](_0x4c646f)||new Set();_0x388687['add'](_0x2835c0['get'](_0x29cb87)['userId']),_0x47148['set'](_0x4c646f,_0x388687);}}for(const _0x5636e5 of _0x47148['keys']())(_0x1a1457['has'](_0x5636e5)||_0x2835c0['has'](_0x5636e5))&&_0x47148['delete'](_0x5636e5);}for(const _0x46db65 of _0x277a3e){const _0x172a65=_0x1748e6['insertions'][_0x46db65];let _0x2473d6=null,_0x97b529=null;for(const _0x2a4b12 of _0x172a65){const _0x1cdd14=this['_getVidAttributeName'](_0x2a4b12),_0x58e465=_0x2a4b12['item']['getAttribute'](_0x1cdd14),_0x541cd2=_0x47148['get'](_0x58e465);_0x541cd2&&'elementStart'==_0x2a4b12['type']&&(_0x2473d6=Array['from'](_0x541cd2)[0x0],_0x97b529=_0x2a4b12['item']['getAttribute']('vid_end')),_0x2473d6&&(_0x2835c0['set'](_0x58e465,{'userId':_0x2473d6}),_0x1a1457['set'](_0x58e465,{'userId':_0x2473d6})),_0x58e465==_0x97b529&&(_0x2473d6=null,_0x97b529=null);}}const _0x4879fc={},_0x452691=new Set();for(const _0x21a77f of _0x277a3e){const _0x59bcf1=_0x207a9c['deletions'][_0x21a77f],_0x33c0f7=_0x207a9c['insertions'][_0x21a77f];for(const {userId:_0x496c8f}of this['_touchedMarkers']['values']())null!==_0x496c8f&&_0x452691['add'](_0x496c8f);for(const {userId:_0xababd9}of this['_touchedRoots']['values']())null!==_0xababd9&&_0x452691['add'](_0xababd9);this['_markChanges'](_0x33c0f7,_0x1748e6['insertions'][_0x21a77f],_0x1a1457,'insertion',_0x452691),this['_markChanges'](_0x59bcf1,_0x1748e6['deletions'][_0x21a77f],_0x2835c0,'deletion',_0x452691),_0x4879fc[_0x21a77f]={'insertions':this['_prepareViewToSave'](_0x33c0f7),'deletions':this['_prepareViewToSave'](_0x59bcf1),'attachChange':this['_touchedRoots']['get'](_0x21a77f)||null,'attributesBefore':_0x14ebb3(this['_baseRootsAttributes']['get'](_0x21a77f))||{},'attributesAfter':_0x14ebb3(this['_diffRootsAttributes']['get'](_0x21a77f))};}return{'diffData':_0x4879fc,'authorsIds':Array['from'](_0x452691)};}['_processRootBeforeSave'](_0xfe0e53){for(const [,_0x53b984]of _0xfe0e53['markers']){const _0x1dc650=_0x53b984['start']['getAncestors']()['filter'](_0x487ede=>'tableCell'==_0x487ede['name']);for(const _0x38be15 of _0x1dc650)0x1==_0x38be15['childCount']&&_0x38be15['getChild'](0x0)['is']('element','paragraph')&&_0x38be15['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x45b09d){this['_processRootBeforeSave'](_0x45b09d);const _0x3b7594=this['editor']['data']['toView'](_0x45b09d,{}),_0xe8b025=Array['from'](_0x3b7594['getChildren']())['map'](_0x91cbd8=>this['_getViewJson'](_0x91cbd8));return JSON['stringify'](_0xe8b025);}['_getViewJson'](_0x2d7f0e){if(_0x2d7f0e['is']('$text'))return _0x2d7f0e['data'];{const _0x13fe97=_0x2d7f0e;return{'type':Object['keys'](C)['find'](_0x4705d1=>_0x2d7f0e instanceof C[_0x4705d1]),'name':_0x13fe97['name'],'attributes':Array['from'](_0x13fe97['getAttributes']()),'children':Array['from'](_0x13fe97['getChildren']())['map'](_0x3a91b2=>this['_getViewJson'](_0x3a91b2))};}}['_markChanges'](_0x11307a,_0x673863,_0x20762c,_0x555dfd,_0x570ced){let _0x213762=null,_0x5a8822=null,_0x10ac0a=0x0;const _0x3a2156=this['editor']['model'];for(let _0x3444b4=0x0;_0x3444b4<_0x673863['length'];_0x3444b4++){const _0x1cfdf8=this['_getVidAttributeName'](_0x673863[_0x3444b4]),_0x207d0d=_0x673863[_0x3444b4]['item']['getAttribute'](_0x1cfdf8),_0x2bd94c=_0x20762c['get'](_0x207d0d),_0x45fd35=_0x3444b4==_0x673863['length']-0x1;(!_0x213762&&_0x2bd94c&&(_0x213762=_0x2bd94c,_0x5a8822=_0x673863[_0x3444b4]),_0x213762&&(!_0x2bd94c||_0x2bd94c['userId']!=_0x213762['userId']))&&(_0x2676eb(_0x2bd94c,J(_0x5a8822,_0x11307a,_0x3a2156),J(_0x673863[_0x3444b4],_0x11307a,_0x3a2156)),_0x213762=_0x2bd94c||null,_0x5a8822=_0x2bd94c?_0x673863[_0x3444b4]:null),_0x213762&&_0x45fd35&&_0x2676eb(_0x2bd94c,J(_0x5a8822,_0x11307a,_0x3a2156),q(_0x673863[_0x3444b4],_0x11307a,_0x3a2156));}function _0x2676eb(_0x52e860,_0x3a3a95,_0x1350b3){const _0x1da57=_0x213762['userId'],_0x3cd9ac='revision:'+_0x555dfd+':'+_0x1da57+':'+_0x10ac0a++,_0x10ecf1=_0x3a2156['createRange'](_0x3a3a95,_0x1350b3);_0x11307a['markers']['set'](_0x3cd9ac,_0x10ecf1),null!==_0x1da57&&_0x570ced['add'](_0x1da57);}}['_getVidAttributeName'](_0x1e00d5){switch(_0x1e00d5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xbb0e7,_0x331bda){_0xbb0e7['baseVersion']=null;for(const _0x4dbbb2 in _0xbb0e7){const _0x8a1a72=_0xbb0e7[_0x4dbbb2];if(_0x8a1a72 instanceof gt){const _0x4a5667=_0x331bda['get'](_0x8a1a72['root']['rootName']);_0xbb0e7[_0x4dbbb2]=this['_fixPosition'](_0x8a1a72,_0x4a5667);}if(_0x8a1a72 instanceof vt){const _0x4b272d=_0x331bda['get'](_0x8a1a72['root']['rootName']);_0xbb0e7[_0x4dbbb2]=this['_fixRange'](_0x8a1a72,_0x4b272d);}'root'===_0x4dbbb2&&(_0xbb0e7['root']=_0x331bda['get'](_0xbb0e7['root']['rootName']));}}['_fixRange'](_0x3620c9,_0x4379f0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3620c9['start'],_0x4379f0),this['_fixPosition'](_0x3620c9['end'],_0x4379f0));}['_fixPosition'](_0xdfa21b,_0x124a54){return this['editor']['model']['createPositionFromPath'](_0x124a54,_0xdfa21b['path'],_0xdfa21b['stickiness']);}['_handleInsertOperation'](_0x519b91){const _0x13c086=this['_idsRoots']['get'](_0x519b91['position']['root']['rootName']),_0x84eeb4=this['_fixPosition'](_0x519b91['position'],_0x13c086),_0x33a98a=null===_0x519b91['_authorId']?null:_0x519b91['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23b069=_0x84eeb4['parent'],_0x427da4=this['_revisionId'],_0x5bdb7f=[];for(const _0x4359d3 of _0x519b91['nodes'])if(_0x4359d3['is']('element'))_0x5bdb7f['push'](this['_makeIdsRoot'](_0x4359d3));else{for(let _0x341702=0x0;_0x341702<_0x4359d3['offsetSize'];_0x341702++)_0x5bdb7f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2f499d=this['_revisionId'];for(let _0x2788c4=_0x427da4;_0x2788c4<_0x2f499d;_0x2788c4++)this['_touched']['set'](_0x2788c4,{'userId':_0x33a98a});_0x23b069['_insertChild'](_0x84eeb4['offset'],_0x5bdb7f);}['_handleMoveOperation'](_0x5d16e1){(_0x5d16e1=this['_cloneOperation'](_0x5d16e1,this['_idsRoots']))['_execute']();const _0x4e2fe8=null===_0x5d16e1['_authorId']?null:_0x5d16e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x72fee=_0x5d16e1['getMovedRangeStart'](),_0x3828cb=_0x72fee['parent'],_0x2ceada=_0x72fee['offset'];!function _0x1b7444(_0x4e6f7d,_0xe637e1,_0x43202d,_0x34e19f){for(let _0x2e86f8=_0x43202d;_0x2e86f8<_0x34e19f;_0x2e86f8++){const _0x5ae300=_0xe637e1['getChild'](_0x2e86f8);_0x5ae300['is']('element','$text')?_0x4e6f7d['set'](_0x5ae300['getAttribute']('vid'),{'userId':_0x4e2fe8}):(_0x4e6f7d['set'](_0x5ae300['getAttribute']('vid_start'),{'userId':_0x4e2fe8}),_0x1b7444(_0x4e6f7d,_0x5ae300,0x0,_0x5ae300['childCount']),_0x4e6f7d['set'](_0x5ae300['getAttribute']('vid_end'),{'userId':_0x4e2fe8}));}}(this['_touched'],_0x3828cb,_0x2ceada,_0x2ceada+_0x5d16e1['howMany']);}['_handleMergeOperation'](_0x1cdb26){const _0x21638f=null===(_0x1cdb26=this['_cloneOperation'](_0x1cdb26,this['_idsRoots']))['_authorId']?null:_0x1cdb26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dfbc6=_0x1cdb26['targetPosition']['parent'],_0x27ca07=_0x1cdb26['sourcePosition']['parent'],_0x5ebad3=_0x3dfbc6['getAttribute']('vid_end'),_0x412d3f=_0x27ca07['getAttribute']('vid_start');_0x3dfbc6['_setAttribute']('vid_end',_0x27ca07['getAttribute']('vid_end')),_0x27ca07['_setAttribute']('vid_end',_0x5ebad3),this['_touched']['set'](_0x412d3f,{'userId':_0x21638f}),this['_touched']['set'](_0x5ebad3,{'userId':_0x21638f}),_0x1cdb26['_execute']();}['_handleSplitOperation'](_0x33eaf9){const _0x5e8e37=null===(_0x33eaf9=this['_cloneOperation'](_0x33eaf9,this['_idsRoots']))['_authorId']?null:_0x33eaf9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55f7e5=_0x33eaf9['graveyardPosition'],_0x2e2673=_0x33eaf9['splitPosition']['parent'];_0x33eaf9['_execute']();const _0x2e85fa=_0x2e2673['getAttribute']('vid_end'),_0x2d37b9=_0x33eaf9['insertionPosition']['nodeAfter'];if(_0x55f7e5){const _0x2aabff=_0x2d37b9['getAttribute']('vid_end'),_0x173eb9=_0x2e2673['getAttribute']('vid_end');_0x2e2673['_setAttribute']('vid_end',_0x2aabff),_0x2d37b9['_setAttribute']('vid_end',_0x173eb9),this['_touched']['set'](_0x2e2673['getAttribute']('vid_end'),{'userId':_0x5e8e37}),this['_touched']['set'](_0x2d37b9['getAttribute']('vid_start'),{'userId':_0x5e8e37});}else{const _0x460574=this['_revisionId']++,_0x577ce5=this['_revisionId']++;_0x2e2673['_setAttribute']('vid_end',_0x460574),_0x2d37b9['_setAttribute']('vid_start',_0x577ce5),_0x2d37b9['_setAttribute']('vid_end',_0x2e85fa),this['_touched']['set'](_0x460574,{'userId':_0x5e8e37}),this['_touched']['set'](_0x577ce5,{'userId':_0x5e8e37});}}['_handleMarkerOperation'](_0x1e378e){if(!_0x1e378e['affectsData'])return;const _0x462d2e=(_0x1e378e=this['_cloneOperation'](_0x1e378e,this['_diffRoots']))['oldRange']?_0x1e378e['oldRange']['root']:null,_0x1d3a56=_0x1e378e['newRange']?_0x1e378e['newRange']['root']:null;_0x462d2e&&this['_markers']['delete'](_0x1e378e['name']),_0x1d3a56&&this['_markers']['set'](_0x1e378e['name'],_0x1e378e['newRange']['clone']());const _0x309780=null===_0x1e378e['_authorId']?null:_0x1e378e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c3195=_0x1e378e['name'];if(!this['_touchedMarkers']['has'](_0x1c3195))return void this['_touchedMarkers']['set'](_0x1c3195,{'range':_0x1e378e['oldRange'],'userId':_0x309780});const _0x3d9a4a=this['_touchedMarkers']['get'](_0x1c3195),_0x4027ee=_0x3d9a4a['range'],_0x18bbf0=_0x1e378e['newRange'];null==_0x4027ee&&null==_0x18bbf0||_0x4027ee&&_0x18bbf0&&_0x4027ee['isEqual'](_0x18bbf0)?this['_touchedMarkers']['delete'](_0x1e378e['name']):_0x3d9a4a['userId']=_0x309780;}['_handleRootOperation'](_0x1f97be,_0x2919b6){this['_diffRoots']['has'](_0x1f97be['rootName'])?this['_diffRoots']['get'](_0x1f97be['rootName'])['_isAttached']=_0x1f97be['isAdd']:(this['_diffRoots']['set'](_0x1f97be['rootName'],B(_0x1f97be['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f97be['rootName'],{}),_0x2919b6&&this['_idsRoots']['set'](_0x1f97be['rootName'],B(_0x1f97be['rootName'],!0x0)));const _0x4ab3f1=null===_0x1f97be['_authorId']?null:_0x1f97be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ad473=this['_touchedRoots']['get'](_0x1f97be['rootName']);_0x2ad473&&_0x2ad473['userId']===_0x4ab3f1?this['_touchedRoots']['delete'](_0x1f97be['rootName']):this['_touchedRoots']['set'](_0x1f97be['rootName'],{'userId':_0x4ab3f1,'isAttached':_0x1f97be['isAdd']});}['_handleRootAttributeOperation'](_0x50dcb9){const _0x26b7b4=this['_diffRootsAttributes']['get'](_0x50dcb9['root']['rootName']);null===_0x50dcb9['newValue']?delete _0x26b7b4[_0x50dcb9['key']]:_0x26b7b4[_0x50dcb9['key']]=_0x50dcb9['newValue'];}}function F(_0x23ffd4){const _0x4d052d=B(_0x23ffd4['rootName'],_0x23ffd4['isAttached']());for(const _0x198de0 of _0x23ffd4['getChildren']()){const _0x54e278=_0x198de0['_clone'](!0x0);_0x4d052d['_appendChild'](_0x54e278);}return _0x4d052d;}function B(_0x464d24,_0x3cad76=!0x0){const _0x5c63cc=new wt();return _0x5c63cc['rootName']=_0x464d24,_0x5c63cc['_isAttached']=_0x3cad76,_0x5c63cc['isAttached']=()=>_0x5c63cc['_isAttached'],_0x5c63cc;}function J(_0x1adc20,_0x100819,_0x5e109b){const _0x5175c6='elementEnd'==_0x1adc20['type']?_0x5e109b['createPositionAt'](_0x1adc20['item'],'end'):_0x5e109b['createPositionBefore'](_0x1adc20['item']);return _0x5e109b['createPositionFromPath'](_0x100819,_0x5175c6['path'],_0x5175c6['stickiness']);}function q(_0x596399,_0x848326,_0x4032ab){const _0x753bc7='elementStart'==_0x596399['type']?_0x4032ab['createPositionAt'](_0x596399['item'],0x0):_0x4032ab['createPositionAfter'](_0x596399['item']);return _0x4032ab['createPositionFromPath'](_0x848326,_0x753bc7['path'],_0x753bc7['stickiness']);}class ns extends _0x25ffd9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4815d1,_0x572f95){super(_0x4815d1),this['focusTracker']=new _0x4d313b(),this['keystrokes']=new _0x80ad83(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x572f95),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'](),_0x1c7252({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4b3258=_0x5dbf19=>_0x5dbf19['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4b3258),this['keystrokes']['set']('arrowleft',_0x4b3258),this['keystrokes']['set']('arrowup',_0x4b3258),this['keystrokes']['set']('arrowdown',_0x4b3258);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5ecd71){this['revisionNameInputView']['fieldView']['element']['value']=_0x5ecd71['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3fc3e7){const _0x5e7f69=new at(this['locale'],_0x4a679c),_0x59cb9a=_0x5e7f69['fieldView'];_0x59cb9a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5d1cb9=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3fc3e7&&(_0x5d1cb9+='\x20('+R(this['locale'],'optional')+')'),(_0x5e7f69['label']=_0x5d1cb9,_0x59cb9a['on']('input',()=>{this['revisionNameInputValue']=_0x59cb9a['element']['value']['trim']();}),_0x5e7f69);}}class u extends _0x4b13f8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1a477f=this['editor'],_0x434510=_0x1a477f['plugins']['get']('RevisionTracker');_0x1a477f['ui']['componentFactory']['add']('revisionHistory',_0x47fa10=>{const _0x2c3607=_0x65832e(_0x47fa10),_0x39e818=_0x2c3607['panelView']['children'],_0x266778=new te(_0x47fa10),_0xe51f68=new _0x1f5b57(_0x47fa10),_0x22728b=new _0x26af07(_0x47fa10),_0x1bdfb0=new _0x1f5b57(_0x47fa10),_0x25fe69=new _0x26af07(_0x47fa10);return _0x2c3607['bind']('isEnabled')['to'](_0x434510,'isReady',_0x434510,'isEnabled',_0x1a477f,'isReadOnly',(_0xeb0494,_0x29b3e8,_0x31da45)=>_0xeb0494&&_0x29b3e8&&!_0x31da45),_0x2c3607['buttonView']['set']({'icon':_0x3a372f['history'],'label':R(_0x47fa10,'Revision\x20history'),'tooltip':!0x0}),_0x22728b['set']({'label':R(_0x47fa10,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x22728b['bind']('isEnabled')['to'](_0x434510,'isReady',_0x434510,'isEnabled',_0x1a477f,'isReadOnly',(_0x205c83,_0x223264,_0x395f16)=>_0x205c83&&_0x223264&&!_0x395f16),_0x22728b['on']('execute',()=>this['_showDialog']()),_0x25fe69['set']({'label':R(_0x47fa10,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25fe69['bind']('isEnabled')['to'](_0x434510,'isReady',_0x1a477f,'isReadOnly',(_0xe137bf,_0x4e0976)=>_0xe137bf&&!_0x4e0976),_0x25fe69['on']('execute',()=>{_0x1a477f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2c3607['isOpen']=!0x1,_0x1a477f['editing']['view']['focus']();}),_0xe51f68['children']['add'](_0x22728b),_0x1bdfb0['children']['add'](_0x25fe69),_0x266778['role']='menu',_0x266778['items']['addMany']([_0xe51f68,_0x1bdfb0]),_0x39e818['add'](_0x266778),_0x2c3607;}),_0x1a477f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x581966=this['editor'],_0x101b40=_0x581966['locale'],_0xd80c10=new _0x35bce9(_0x101b40),_0x2b0c3b=new _0x4f074a(_0x101b40);_0xd80c10['buttonView']['set']({'icon':_0x3a372f['history'],'label':R(_0x101b40,'Revision\x20history')});const _0x5b29cf=new _0x51c798(_0x101b40,_0xd80c10),_0x1e18d3=new _0x2e0f71(_0x101b40);_0x1e18d3['set']({'label':R(_0x101b40,'Save\x20current\x20revision')}),_0x1e18d3['delegate']('execute')['to'](_0xd80c10),_0x1e18d3['on']('execute',()=>{this['_showDialog']();}),_0x5b29cf['children']['add'](_0x1e18d3),_0x2b0c3b['items']['add'](_0x5b29cf);const _0x5b0bfa=new _0x51c798(_0x101b40,_0xd80c10),_0x40c63d=new _0x2e0f71(_0x101b40);return _0x40c63d['set']({'label':R(_0x101b40,'Open\x20revision\x20history')}),_0x40c63d['delegate']('execute')['to'](_0xd80c10),_0x40c63d['on']('execute',()=>{_0x581966['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5b0bfa['children']['add'](_0x40c63d),_0x2b0c3b['items']['add'](_0x5b0bfa),_0xd80c10['panelView']['children']['add'](_0x2b0c3b),_0xd80c10;}['_showDialog'](){const _0x65d748=this['editor'],_0xc3205d=_0x65d748['locale'],_0x3c6730=_0x65d748['plugins']['get']('Dialog'),_0x4fc4c5=_0x65d748['plugins']['get']('RevisionTracker');function _0x469232(_0x5c9445){_0x65d748['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5c9445['revisionName']?_0x5c9445['revisionNameInputView']['errorText']=R(_0xc3205d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x65d748['plugins']['get'](l)['saveRevision']({'name':_0x5c9445['revisionName']}),_0x3c6730['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x469232(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c6730['show']({'id':'revisionSave','title':R(_0xc3205d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x65d748['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c6730['hide']()},{'label':R(_0x65d748['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e5506){_0x4e5506['bind']('isEnabled')['to'](_0x4fc4c5,'isReady',_0x4fc4c5,'isEnabled',_0x65d748,'isReadOnly',(_0x26a612,_0x37a761,_0x34cec2)=>_0x26a612&&_0x37a761&&!_0x34cec2);},'onExecute':()=>_0x469232(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5d8768=this['editor'],_0x4c5739=_0x5d8768['locale'];this['_saveRevisionFormView']=new ns(_0x4c5739,_0x5d8768['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x25ffd9{['changeId'];['_model'];constructor(_0x1a87aa,_0x325c1b){super(_0x1a87aa),this['_model']=_0x325c1b,this['changeId']=_0x325c1b['id'];const _0x2e60d3=this['bindTemplate'],_0x3b1596=R(_0x1a87aa,_0x325c1b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x325c1b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x325c1b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2e60d3['to']('type',_0x46fe7f=>'ck-revision-change__'+_0x46fe7f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3b1596}]},{'text':'\x20'+_0x325c1b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x26f143(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1b7eff){super(),this['id']=_0x1b7eff['id']||_0x5bfa17(),this['author']=_0x1b7eff['author'],this['type']=_0x1b7eff['type'],this['data']=_0x1b7eff['data']||{},this['rootName']=_0x1b7eff['rootName'],this['set']('createdAt',_0x1b7eff['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5f3357,_0x3a61ff){this['newRevisionId']=_0x5f3357,this['oldRevisionId']=_0x3a61ff,this['changes']=new _0x107ef2();}['_setChanges'](_0x3a140e){for(const _0x310778 of _0x3a140e)this['changes']['add'](_0x310778);}}const Z={'c':_0x290f31,'a':_0x528f07,'e':_0x4daf52,'r':_0x5c1967,'u':_0x1d7be9};class d extends _0x4b13f8{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b324b,_0x1749b5,j];}constructor(_0x257e4c){super(_0x257e4c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x227a01,_0x494795,_0x39df8c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x392659=>{for(const _0x2f234c of this['editor']['editing']['view']['document']['roots'])_0x39df8c?_0x392659['removeClass']('ck-editor__editable__overlay',_0x2f234c):_0x392659['addClass']('ck-editor__editable__overlay',_0x2f234c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2447d0=>null!==_0x2447d0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x206d11,_0x4592cd,_0x195721)=>_0x206d11&&_0x195721?_0x4592cd['changes']['getIndex'](_0x195721):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5522a6,_0x24649b)=>_0x5522a6?_0x24649b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1749b5);}['init'](){const _0x2709d5=this['editor'],_0x1ef5bf=new bt(_0x2709d5,{'direction':'backward'}),_0x4ce4d=new bt(_0x2709d5,{'direction':'forward'});(_0x2709d5['commands']['add']('showPreviousChange',_0x1ef5bf),_0x2709d5['commands']['add']('showNextChange',_0x4ce4d),_0x2709d5['commands']['add']('restoreRevision',new yt(_0x2709d5)),this['on']('change:numberOfChanges',()=>{_0x1ef5bf['refresh'](),_0x4ce4d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2709d5['enableReadOnlyMode']('revision-viewer'),_0x2709d5['plugins']['has']('WidgetToolbarRepository'))&&_0x2709d5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x47d573){await this['loadRevisionData'](_0x47d573);const _0x3d3a8d={};for(const _0x406f9b in _0x47d573['diffData']){if(_0x47d573['diffData'][_0x406f9b]['attachChange']&&!_0x47d573['diffData'][_0x406f9b]['attachChange']['isAttached'])continue;const _0x1a8f45=this['_removeRevisionMarkers'](JSON['parse'](_0x47d573['diffData'][_0x406f9b]['insertions'])),_0x5b21a5=this['editor']['editing']['view']['document'],_0x151538=new _0x102a68(_0x5b21a5,_0x1a8f45['map'](_0x1532d1=>this['_getViewObj'](_0x1532d1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3d3a8d[_0x406f9b]=this['editor']['data']['processor']['toData'](_0x151538),this['editor']['data']['processor']['useFillerType']('default');}return _0x3d3a8d;}async['getRevisionRootsAttributes'](_0x7605b6){await this['loadRevisionData'](_0x7605b6);const _0x2d0815={};for(const _0x729f03 in _0x7605b6['diffData'])_0x7605b6['diffData'][_0x729f03]['attachChange']&&!_0x7605b6['diffData'][_0x729f03]['attachChange']['isAttached']||(_0x2d0815[_0x729f03]=_0x7605b6['diffData'][_0x729f03]['attributesAfter']||{});return _0x2d0815;}['_removeRevisionMarkers'](_0x48fdcf){return(_0x48fdcf=_0x48fdcf['filter'](_0x182893=>!_0x182893['name']||'revision-start'!==_0x182893['name']&&'revision-end'!==_0x182893['name']))['forEach'](_0x462933=>{'string'!=typeof _0x462933&&(_0x462933['children']=this['_removeRevisionMarkers'](_0x462933['children']),_0x462933['attributes']=_0x462933['attributes']['filter'](_0x3b4013=>!_0x3b4013[0x0]['startsWith']('data-revision-')));}),_0x48fdcf;}async['compare'](_0x1c0f8f,_0x4c32dc,_0x1c908e=!0x1){if(!this['isEnabled'])return;const _0x291b9d=this['diff'],_0x4a8683=this['repository'],_0x296153='string'==typeof _0x1c0f8f?_0x4a8683['getRevision'](_0x1c0f8f):_0x1c0f8f,_0x37b860='string'==typeof _0x4c32dc?_0x4a8683['getRevision'](_0x4c32dc):_0x4c32dc,_0x20fce4=_0x296153['id'],_0x94357d=_0x37b860?_0x37b860['id']:null;if(!_0x1c908e&&this['diff']&&this['diff']['newRevisionId']===_0x20fce4&&this['diff']['oldRevisionId']===_0x94357d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x20fce4,_0x94357d);const _0xb7df97=this['_getRevisionsRange'](_0x296153,_0x37b860,!0x0)['map'](_0x134863=>this['loadRevisionData'](_0x134863));return _0xb7df97['push'](new Promise(_0x9eba12=>{setTimeout(_0x9eba12,0x14);})),Promise['all'](_0xb7df97)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x919f33=this['_getDiff'](_0x20fce4,_0x94357d);for(const _0x3a5c17 of _0x919f33['changes'])this['_changeIdToChange']['set'](_0x3a5c17['id'],_0x3a5c17);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17f746=>{for(const _0x1bef11 of this['editor']['model']['document']['getRootNames']())_0x17f746['detachRoot'](_0x1bef11);for(const _0x52df6e of Object['keys'](_0x919f33['model'])){const _0x4cdebd=_0x17f746['addRoot'](_0x52df6e);for(const _0x390712 of Object['keys'](_0x919f33['attributes'][_0x52df6e]))_0x17f746['setAttribute'](_0x390712,_0x919f33['attributes'][_0x52df6e][_0x390712],_0x4cdebd);_0x17f746['insert'](_0x919f33['model'][_0x52df6e],_0x4cdebd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x919f33['changes'])),this['isReady']=!0x0;})['catch'](_0x5dfa71=>{console['error'](_0x5dfa71),this['_cleanUp'](),_0x291b9d&&(this['diff']=_0x291b9d),this['isReady']=!0x0;});}['addRevisionData'](_0x5718bc,_0x23a40f){const _0x4b26aa=this['repository']['createRevision'](_0x5718bc);return _0x4b26aa['on']('_update',(_0x5522f8,_0x2a493a,_0x2a5326)=>_0x23a40f(_0x2a493a,_0x2a5326,_0x4b26aa)),this['repository']['addRevision'](_0x4b26aa),_0x4b26aa;}['loadRevisionData'](_0x2f49ea){if(!_0x2f49ea||_0x2f49ea['diffData'])return Promise['resolve']();{const _0x10fe5c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10fe5c,'revisionId':_0x2f49ea['id']})['then'](_0xaa521e=>{_0x2f49ea['_update']({'diffData':_0xaa521e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3181f3=>{for(const _0x4b2915 of this['editor']['model']['document']['getRootNames']())_0x3181f3['detachRoot'](_0x4b2915);});}['_sortAndFilterDiffChanges'](_0x6e7e30){const _0x2ea796=[],_0x5c6ea0=new Map();for(const _0x10e028 of this['editor']['model']['document']['getRootNames']()){const _0x3d287c=this['editor']['editing']['view']['getDomRoot'](_0x10e028);if(!_0x3d287c)continue;const _0x105289=_0x3d287c['getClientRects']()['item'](0x0);_0x105289&&(_0x2ea796['push'](_0x10e028),_0x5c6ea0['set'](_0x10e028,_0x105289));}return _0x2ea796['sort']((_0x3c9db5,_0x1491ab)=>{const _0x424ca3=_0x5c6ea0['get'](_0x3c9db5),_0x39b924=_0x5c6ea0['get'](_0x1491ab);return _0x424ca3['y']-_0x39b924['y']||_0x424ca3['x']-_0x39b924['x'];}),(_0x6e7e30=_0x6e7e30['filter'](_0x9e4da9=>_0x2ea796['includes'](_0x9e4da9['rootName'])))['sort']((_0x13df5c,_0x2261d2)=>_0x2ea796['indexOf'](_0x13df5c['rootName'])-_0x2ea796['indexOf'](_0x2261d2['rootName'])),_0x6e7e30;}['_makeTape'](_0x1172d0){const _0xe7ff47=Array['from'](_0x1172d0['markers'])['filter'](([_0x51f532,_0x53250c])=>_0x51f532['startsWith']('revision:')&&!_0x53250c['isCollapsed']),_0x1eac6f=Array['from'](this['editor']['model']['createRangeIn'](_0x1172d0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xe7ff47['length'])for(const _0x2c6c59 of _0x1eac6f){const [_0x50742d,_0x50b1f9]=_0xe7ff47[0x0],[,_0xbfdf83,_0x21a853]=_0x50742d['split'](':');if(_0x50b1f9['end']['isEqual'](_0x2c6c59['nextPosition'])&&_0xe7ff47['shift'](),(_0x2c6c59['previousPosition']['isEqual'](_0x50b1f9['start'])||_0x2c6c59['previousPosition']['isAfter'](_0x50b1f9['start']))&&('insertion'==_0xbfdf83?_0x2c6c59['isAdded']={'userId':_0x21a853}:'deletion'==_0xbfdf83&&(_0x2c6c59['isRemoved']={'userId':_0x21a853})),0x0==_0xe7ff47['length'])break;}return _0x1eac6f;}['_refreshStartEndIndex'](_0x70a402){const _0x2c0db7=new Map();for(let _0x544721=0x0;_0x544721<_0x70a402['length'];_0x544721++)'text'===_0x70a402[_0x544721]['type']?(_0x70a402[_0x544721]['item']['startIndex']=_0x544721,_0x70a402[_0x544721]['item']['endIndex']=_0x544721):('elementStart'===_0x70a402[_0x544721]['type']?_0x70a402[_0x544721]['item']['startIndex']=_0x544721:'elementEnd'===_0x70a402[_0x544721]['type']&&(_0x70a402[_0x544721]['item']['endIndex']=_0x544721),_0x2c0db7['set'](_0x70a402[_0x544721]['id'],_0x544721));for(const _0x37889a of _0x2c0db7['values']())'elementStart'===_0x70a402[_0x37889a]['type']?_0x70a402[_0x37889a]['item']['endIndex']=_0x2c0db7['get'](_0x70a402[_0x37889a]['pairId']):'elementEnd'===_0x70a402[_0x37889a]['type']&&(_0x70a402[_0x37889a]['item']['startIndex']=_0x2c0db7['get'](_0x70a402[_0x37889a]['pairId']));}['_processTape'](_0x2fd413){for(let _0x59001c=0x0;_0x59001c<_0x2fd413['length'];_0x59001c++){if('elementStart'===_0x2fd413[_0x59001c]['type'])_0x2fd413[_0x59001c]['item']['startIndex']=_0x59001c;else{if('elementEnd'===_0x2fd413[_0x59001c]['type']){_0x2fd413[_0x59001c]['item']['endIndex']=_0x59001c;const _0xdaa43a=_0x2fd413[_0x59001c]['item']['startIndex'];_0x2fd413[_0xdaa43a]['pairId']=_0x2fd413[_0x59001c]['id'],_0x2fd413[_0x59001c]['pairId']=_0x2fd413[_0xdaa43a]['id'];}else _0x2fd413[_0x59001c]['item']['startIndex']=_0x59001c,_0x2fd413[_0x59001c]['item']['endIndex']=_0x59001c,_0x2fd413[_0x59001c]['pairId']=null;}_0x2fd413[_0x59001c]['markersStart']||(_0x2fd413[_0x59001c]['markersStart']=[],_0x2fd413[_0x59001c]['markersEnd']=[]);}}['_markInsertions'](_0x4bbcb3,_0x1d58b7){const _0x315376=_0x4bbcb3['filter'](_0x33087d=>!_0x33087d['isAdded']);for(let _0xe70d59=0x0;_0xe70d59<_0x1d58b7['length'];_0xe70d59++)_0x1d58b7[_0xe70d59]['isAdded']&&(_0x315376[_0xe70d59]['isAdded']=_0x1d58b7[_0xe70d59]['isAdded']);}['_makeModelFromViewString'](_0x59b85a){const _0x564ab6=JSON['parse'](_0x59b85a),_0x2ad122=this['editor']['editing']['view']['document'],_0x15ba96=new _0x102a68(_0x2ad122,_0x564ab6['map'](_0x25905d=>this['_getViewObj'](_0x25905d)));return this['editor']['data']['toModel'](_0x15ba96);}['_getViewObj'](_0x520d80){const _0x442328=this['editor']['editing']['view']['document'];if('string'==typeof _0x520d80)return new _0x53b0f8(_0x442328,_0x520d80);{const _0x336ca5=_0x520d80['children']['map'](_0x5480f8=>this['_getViewObj'](_0x5480f8));return new(Z[_0x520d80['type']]||_0x7409a)(_0x442328,_0x520d80['name'],_0x520d80['attributes'],_0x336ca5);}}['_getDiff'](_0x549e05,_0x39e22e=null){const _0xd83043=this['repository']['getRevision'](_0x549e05),_0x14878f=_0x39e22e?this['repository']['getRevision'](_0x39e22e):null,_0x215eac=this['_getRevisionsRange'](_0xd83043,_0x14878f),_0x1b9791=_0x215eac[_0x215eac['length']-0x1],_0x52528f=new Map(),_0x3f31b3={'model':{},'attributes':{},'changes':[]},_0x360847=new Set(),_0x4e4f95=new Map();for(let _0x173313=_0x215eac['length']-0x1;_0x173313>=0x0;_0x173313--){const _0x262702=_0x215eac[_0x173313];for(const _0x3c3327 of Object['keys'](_0x262702['diffData']))if(_0x262702['diffData'][_0x3c3327]['attachChange']){const _0x523148=_0x262702['diffData'][_0x3c3327]['attachChange'];_0x523148['isAttached']?(_0x360847['add'](_0x3c3327),_0x4e4f95['has'](_0x3c3327)&&_0x4e4f95['get'](_0x3c3327)['userId']==_0x523148['userId']?_0x4e4f95['delete'](_0x3c3327):_0x4e4f95['set'](_0x3c3327,_0x523148)):_0x4e4f95['has'](_0x3c3327)?(_0x360847['delete'](_0x3c3327),_0x4e4f95['delete'](_0x3c3327)):(_0x360847['add'](_0x3c3327),_0x4e4f95['set'](_0x3c3327,_0x523148));}else _0x360847['add'](_0x3c3327);}for(const _0x4e7a85 of _0x360847){const _0x50d313=_0x4e4f95['has'](_0x4e7a85)&&!_0x4e4f95['get'](_0x4e7a85)['isAttached'];let _0x57336e=_0x50d313?_0x215eac['length']-0x1:0x0;const _0x551738=_0x50d313?-0x1:0x1;for(;_0x215eac[_0x57336e];){const _0x4dbbf4=_0x215eac[_0x57336e];if(_0x4dbbf4['diffData'][_0x4e7a85]){const _0x258efa=_0x50d313?_0x4dbbf4['diffData'][_0x4e7a85]['attributesBefore']:_0x4dbbf4['diffData'][_0x4e7a85]['attributesAfter'];_0x3f31b3['attributes'][_0x4e7a85]=_0x258efa?_0x14ebb3(_0x258efa):{};break;}_0x57336e+=_0x551738;}}for(const _0x4b8d13 of _0x215eac){_0x4b8d13['model']={};for(const _0x4a5acd of _0x4b8d13['authors'])_0x52528f['set'](_0x4a5acd['id'],_0x4a5acd);for(const _0x3aa35c of _0x360847){const _0x5257bc=_0x4b8d13['diffData'][_0x3aa35c]?_0x4b8d13['diffData'][_0x3aa35c]['insertions']:'[]',_0x112445=_0x4b8d13['diffData'][_0x3aa35c]?_0x4b8d13['diffData'][_0x3aa35c]['deletions']:'[]';_0x4b8d13['model'][_0x3aa35c]={'insertions':this['_makeModelFromViewString'](_0x5257bc),'deletions':this['_makeModelFromViewString'](_0x112445)};}}for(const _0x5bed24 of _0x360847){let _0x4e6ab6=null,_0x564380=0x0;const _0x47d6d5=new Map(Array['from'](_0xd83043['model'][_0x5bed24]['insertions']['markers'])['filter'](([_0x1de5e0])=>!_0x1de5e0['startsWith']('revision:')));let _0x580c5f=0x0;for(const _0x45a15c of _0x215eac){const _0xb3abb8=this['_makeTape'](_0x45a15c['model'][_0x5bed24]['insertions']);_0x45a15c==_0xd83043?(_0x4e6ab6=_0xb3abb8,_0x564380=_0x4e6ab6['length'],_0x4e6ab6['forEach'](_0x5688a9=>{_0x5688a9['id']=_0x580c5f++;}),this['_processTape'](_0x4e6ab6)):this['_markInsertions'](_0x4e6ab6,_0xb3abb8);const _0x4891fa=_0x4e6ab6['filter'](_0x43598c=>!_0x43598c['isAdded'])['map'](_0x52ff30=>_0x52ff30['id']);let _0x4e3c97=0x0;const _0x4bd17a=this['_makeTape'](_0x45a15c['model'][_0x5bed24]['deletions']);_0x4bd17a['forEach'](_0x1d2f80=>{_0x1d2f80['isRemoved']?_0x1d2f80['id']=_0x564380++:_0x1d2f80['id']=_0x4891fa[_0x4e3c97++];}),this['_processTape'](_0x4bd17a),this['_setDistance'](_0x4e6ab6,'isAdded'),this['_setDistance'](_0x4bd17a,'isRemoved'),_0x45a15c==_0xd83043&&this['_markMarkers'](_0x4e6ab6,_0x47d6d5),_0x4e6ab6=this['_joinTapes'](_0x4e6ab6,_0x4bd17a),this['_refreshStartEndIndex'](_0x4e6ab6),this['_setDistance'](_0x4e6ab6,'isRemoved');}_0x4e6ab6=_0x4e6ab6['filter'](_0x3be78d=>!(_0x3be78d['isAdded']&&_0x3be78d['isRemoved']));const _0x76b658=new Map(_0x1b9791['model'][_0x5bed24]['deletions']['markers']),_0x887971=new Set(_0x47d6d5['keys']());for(const _0x242e16 of _0x76b658['keys']())_0x887971['delete'](_0x242e16);this['_markSuggestions'](_0x4e6ab6,_0x887971),this['_fixObsoleteTags'](_0x4e6ab6),_0x4e6ab6=this['_removeMissingPairs'](_0x4e6ab6),_0x4e6ab6=this['_markMismatchedRemovedTags'](_0x4e6ab6),_0x4e6ab6=this['_removeUnsupportedChanges'](_0x4e6ab6);const {root:_0x54a179,changes:_0x361062}=this['_makeModelFromTape'](_0x4e6ab6,_0x52528f,_0x5bed24);_0x3f31b3['model'][_0x5bed24]=_0x54a179;const _0x51ab78=_0x4e4f95['get'](_0x5bed24);if(_0x51ab78){const _0x28982a=_0x52528f['get'](_0x51ab78['userId']),_0x5c856d=new r({'author':_0x28982a,'type':_0x51ab78['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5bed24});_0x361062['unshift'](_0x5c856d),_0x3f31b3['attributes'][_0x5bed24]['revisionHistoryAttachChange']=_0x5c856d['id'];}_0x3f31b3['changes']=_0x3f31b3['changes']['concat'](_0x361062);}return _0x3f31b3;}['_markMarkers'](_0x461c60,_0x451379){for(let _0x15e970=0x0;_0x15e970<_0x461c60['length'];_0x15e970++)for(const [_0x201055,_0x958fca]of _0x451379)_0x958fca['start']['isEqual'](_0x461c60[_0x15e970]['previousPosition'])&&_0x461c60[_0x15e970]['markersStart']['push'](_0x201055),_0x958fca['end']['isEqual'](_0x461c60[_0x15e970]['nextPosition'])&&_0x461c60[_0x15e970]['markersEnd']['push'](_0x201055);}['_joinTapes'](_0x44c68c,_0x4e8a75){let _0xaeaa2f=[],_0x2775fb=0x0,_0x35c24f=0x0;for(;_0x2775fb<_0x44c68c['length']||_0x35c24f<_0x4e8a75['length'];){const _0x4bc3a2=_0x44c68c[_0x2775fb]||{},_0x25f57b=_0x4e8a75[_0x35c24f]||{};if(_0x4bc3a2['id']==_0x25f57b['id'])_0x2775fb++,_0x35c24f++,_0xaeaa2f['push'](_0x4bc3a2);else{if(_0x25f57b['isRemoved']&&_0x4bc3a2['isAdded']){const {commonTape:_0x337308,iEnd:_0x1c865e,jEnd:_0x2d5268}=this['_threeWayMerge'](_0x44c68c,_0x2775fb,_0x4e8a75,_0x35c24f);_0xaeaa2f=_0xaeaa2f['concat'](_0x337308),_0x2775fb=_0x1c865e,_0x35c24f=_0x2d5268;}else _0x25f57b['isRemoved']?(_0x35c24f++,_0xaeaa2f['push'](_0x25f57b)):(_0x2775fb++,_0xaeaa2f['push'](_0x4bc3a2));}}return _0xaeaa2f;}['_markSuggestions'](_0x15d55b,_0x2ab923){const _0x40a257=[];for(let _0x1a8fb3=0x0;_0x1a8fb3<_0x15d55b['length'];_0x1a8fb3++){for(let _0x3a5790=0x0;_0x3a5790<_0x15d55b[_0x1a8fb3]['markersStart']['length'];_0x3a5790++){const _0x40fd8b=_0x15d55b[_0x1a8fb3]['markersStart'][_0x3a5790];if(!_0x2ab923['has'](_0x40fd8b))continue;const {group:_0x53eea2,type:_0x18304f,authorId:_0x5813e5}=_0x474b8a(_0x40fd8b);'revision-suggestion'!=_0x53eea2||'insertion'!=_0x18304f&&'deletion'!=_0x18304f||(_0x40a257['unshift']({'type':_0x18304f,'name':_0x40fd8b,'userId':_0x5813e5}),_0x15d55b[_0x1a8fb3]['markersStart']['splice'](_0x3a5790,0x1),_0x3a5790--);}_0x1d105d(_0x15d55b[_0x1a8fb3]);for(let _0x580248=0x0;_0x580248<_0x15d55b[_0x1a8fb3]['markersEnd']['length'];_0x580248++){const _0x23b34f=_0x15d55b[_0x1a8fb3]['markersEnd'][_0x580248];if(!_0x2ab923['has'](_0x23b34f))continue;const {group:_0x2f5dba,type:_0x3a385d}=_0x474b8a(_0x23b34f);if('revision-suggestion'!=_0x2f5dba||'insertion'!=_0x3a385d&&'deletion'!=_0x3a385d)continue;_0x15d55b[_0x1a8fb3]['markersEnd']['splice'](_0x580248,0x1),_0x580248--;const _0x130785=_0x40a257['findIndex'](_0x5eec1c=>_0x5eec1c['name']==_0x23b34f);_0x130785>-0x1&&_0x40a257['splice'](_0x130785,0x1);}}function _0x474b8a(_0x4f44fc){const _0x477833=_0x4f44fc['split'](':');return{'group':_0x477833[0x0],'type':_0x477833[0x1],'subType':_0x477833['length']>=0x5?_0x477833[0x2]:null,'id':_0x477833['length']<0x5?_0x477833[0x2]:_0x477833[0x3],'authorId':_0x477833['length']<0x5?_0x477833[0x3]:_0x477833[0x4],'markerCount':0x6==_0x477833['length']?_0x477833[0x5]:null};}function _0x1d105d(_0x328855){for(let _0x5d80ef=0x0;_0x5d80ef<_0x40a257['length'];_0x5d80ef++){if(_0x328855['isAdded']&&'insertion'==_0x40a257[_0x5d80ef]['type'])return _0x328855['isAddSuggestion']=_0x40a257[_0x5d80ef],void delete _0x328855['isAdded'];if(!_0x328855['isAdded']&&!_0x328855['isRemoved']&&'deletion'==_0x40a257[_0x5d80ef]['type'])return void(_0x328855['isRemoveSuggestion']=_0x40a257[_0x5d80ef]);}}}['_setDistance'](_0x3a75b7,_0x35a952){let _0x40a034=0x0,_0x1738a1=!0x1;const _0x3ca5bf=new Map();for(const _0x32825c of _0x3a75b7)_0x32825c[_0x35a952]?_0x1738a1&&(_0x40a034++,_0x1738a1=!0x1):(_0x40a034++,_0x1738a1=!0x0),_0x3ca5bf['set'](_0x32825c['id'],_0x40a034);for(let _0x53ac1d=0x0;_0x53ac1d<_0x3a75b7['length'];_0x53ac1d++){if('isRemoved'==_0x35a952&&_0x3a75b7[_0x53ac1d]['isAdded']||'isAdded'==_0x35a952&&_0x3a75b7[_0x53ac1d]['isRemoved'])continue;if('text'==_0x3a75b7[_0x53ac1d]['type']){_0x3a75b7[_0x53ac1d]['distance']=0x0;continue;}const _0x36c3d8=_0x3ca5bf['get'](_0x3a75b7[_0x53ac1d]['pairId']),_0x5a6aaf=_0x3ca5bf['get'](_0x3a75b7[_0x53ac1d]['id']);_0x3a75b7[_0x53ac1d]['distance']=_0x36c3d8-_0x5a6aaf;}}['_getRevisionsRange'](_0x59e347,_0x35073f,_0x3c7e48=!0x1){const _0x1b0961=[];let _0x22353f=this['repository']['getIndex'](_0x59e347),_0x545f61=this['repository']['getIndex'](_0x35073f);for(-0x1==_0x545f61&&(_0x545f61=this['repository']['_revisions']['length'],_0x3c7e48=!0x1);_0x22353f<_0x545f61;)_0x1b0961['push'](this['repository']['getRevision'](_0x22353f)),_0x22353f++;return _0x3c7e48&&_0x1b0961['push'](this['repository']['getRevision'](_0x22353f)),_0x1b0961;}['_threeWayMerge'](_0x8a6770,_0x2072b6,_0xe2f539,_0x3641e4){const _0x444031=this['editor']['model']['schema'];let _0x151953=_0x2072b6;for(;_0x8a6770[_0x151953]&&_0x8a6770[_0x151953]['isAdded'];)_0x151953++;let _0x5836f6=_0x3641e4;for(;_0xe2f539[_0x5836f6]&&_0xe2f539[_0x5836f6]['isRemoved'];)_0x5836f6++;_0x460a2e(_0x8a6770,_0x2072b6,_0x151953),_0x460a2e(_0xe2f539,_0x3641e4,_0x5836f6);const _0x314ba6=_0xe2f539['slice'](_0x3641e4,_0x5836f6)['concat'](_0x8a6770['slice'](_0x2072b6,_0x151953));return _0x314ba6['sort']((_0x377c7f,_0x54d142)=>_0x377c7f['side']!=_0x54d142['side']?_0x377c7f['side']-_0x54d142['side']:_0x377c7f['level']!=_0x54d142['level']?_0x377c7f['level']-_0x54d142['level']:_0x377c7f['distance']!=_0x54d142['distance']?_0x54d142['distance']-_0x377c7f['distance']:!!_0x377c7f['isAdded']!=!!_0x54d142['isAdded']?-0x1==_0x377c7f['side']||0x0==_0x377c7f['side']?_0x377c7f['isAdded']?-0x1:0x1:_0x377c7f['isAdded']?0x1:-0x1:_0x377c7f['index']-_0x54d142['index']),{'commonTape':_0x314ba6,'iEnd':_0x151953,'jEnd':_0x5836f6};function _0x460a2e(_0x19617f,_0x4833ce,_0x4828a2){let _0xd221e3=-0x1,_0x1cb8ab=Number['POSITIVE_INFINITY'],_0x89dfe0=!0x0;for(let _0x51a29f=_0x4833ce;_0x51a29f<_0x4828a2;_0x51a29f++)if(_0x444031['isInline'](_0x19617f[_0x51a29f]['item'])||(_0x89dfe0=!0x1),_0x19617f[_0x51a29f]['item']['startIndex']<_0x4833ce&&(_0xd221e3=_0x51a29f),_0x19617f[_0x51a29f]['item']['endIndex']>=_0x4828a2){_0x1cb8ab=_0x51a29f;break;}_0x89dfe0&&(_0xd221e3=_0x4828a2-0x1);for(let _0x52b615=_0x4833ce;_0x52b615<_0x4828a2;_0x52b615++)_0x19617f[_0x52b615]['side']=_0x52b615<=_0xd221e3?-0x1:_0x52b615<_0x1cb8ab?0x0:0x1,_0x19617f[_0x52b615]['index']=_0x52b615;let _0x2a982a=0x0;for(let _0x9f11ed=_0x4833ce;_0x9f11ed<=_0xd221e3;_0x9f11ed++)0x0==_0x19617f[_0x9f11ed]['distance']?_0x19617f[_0x9f11ed]['level']=_0x2a982a:(_0x2a982a++,_0x19617f[_0x9f11ed]['level']=_0x2a982a,_0x2a982a++);for(let _0x1684fb=_0x4833ce;_0x1684fb<_0x4828a2;_0x1684fb++)0x0==_0x19617f[_0x1684fb]['side']&&(_0x19617f[_0x1684fb]['level']=_0x2a982a);_0x2a982a=0x0;for(let _0x279569=_0x4828a2-0x1;_0x279569>=_0x1cb8ab;_0x279569--)0x0==_0x19617f[_0x279569]['distance']?_0x19617f[_0x279569]['level']=_0x2a982a:(_0x2a982a--,_0x19617f[_0x279569]['level']=_0x2a982a,_0x2a982a--);}}['_fixObsoleteTags'](_0x35800c){const _0x23fef3=new Map(),_0x495a13=this['editor']['model']['schema'];for(let _0x5a0bb4=0x1;_0x5a0bb4<_0x35800c['length'];_0x5a0bb4++){let _0x49d317,_0x1c334a,_0x58003f;const _0x2f2941=_0x35800c[_0x5a0bb4],_0x251b96=_0x35800c[_0x5a0bb4-0x1];if('text'==_0x2f2941['type'])continue;if(_0x2f2941['type']!=_0x251b96['type'])continue;if(!_0x495a13['isBlock'](_0x251b96['item'])||_0x495a13['isLimit'](_0x251b96['item']))continue;if(!_0x495a13['isBlock'](_0x2f2941['item'])||_0x495a13['isLimit'](_0x2f2941['item']))continue;if((_0x35800c[_0x5a0bb4]['isAdded']||_0x35800c[_0x5a0bb4]['isAddSuggestion'])&&_0x35800c[_0x5a0bb4-0x1]['isRemoved'])_0x49d317=_0x35800c[_0x5a0bb4],_0x1c334a=_0x35800c[_0x5a0bb4-0x1],_0x58003f=_0x5a0bb4-0x1;else{if(!_0x35800c[_0x5a0bb4]['isRemoved']||!_0x35800c[_0x5a0bb4-0x1]['isAdded']&&!_0x35800c[_0x5a0bb4-0x1]['isAddSuggestion'])continue;_0x49d317=_0x35800c[_0x5a0bb4-0x1],_0x1c334a=_0x35800c[_0x5a0bb4],_0x58003f=_0x5a0bb4;}const _0x42421b=_0x49d317['level']==_0x1c334a['level'],_0x9cc432=Math['abs'](_0x49d317['level'])<Math['abs'](_0x1c334a['level'])&&0x0==_0x1c334a['distance'];(_0x42421b||_0x9cc432)&&(_0x23fef3['set'](_0x1c334a['id'],_0x49d317['id']),_0x35800c['splice'](_0x58003f,0x1),_0x5a0bb4--,_0x49d317['isAdded']=!0x1);}for(let _0x300385=0x0;_0x300385<_0x35800c['length'];_0x300385++)_0x23fef3['has'](_0x35800c[_0x300385]['pairId'])&&(_0x35800c[_0x300385]['pairId']=_0x23fef3['get'](_0x35800c[_0x300385]['pairId']));}['_removeMissingPairs'](_0xf1e5c6){const _0x259f02=new Set(_0xf1e5c6['map'](_0x2e8ef2=>_0x2e8ef2['id']));for(let _0x3d78e5=0x0;_0x3d78e5<_0xf1e5c6['length'];_0x3d78e5++)_0x259f02['has'](_0xf1e5c6[_0x3d78e5]['pairId'])||0x0==_0xf1e5c6[_0x3d78e5]['distance']||(_0xf1e5c6[_0x3d78e5]['isIncorrect']=!0x0);return _0xf1e5c6['filter'](_0x401909=>!_0x401909['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4114d1){const _0x3a32d7=new Set();for(let _0x1c68c7=0x0;_0x1c68c7<_0x4114d1['length'];_0x1c68c7++){if(_0x3a32d7['has'](_0x4114d1[_0x1c68c7]['id'])&&_0x4114d1[_0x1c68c7]['isRemoved']&&(_0x4114d1[_0x1c68c7]['isIncorrect']=!0x0),_0x4114d1[_0x1c68c7]['isIncorrect'])continue;if(0x0==_0x4114d1[_0x1c68c7]['distance'])continue;if('elementStart'!=_0x4114d1[_0x1c68c7]['type'])continue;if(null==_0x4114d1[_0x1c68c7]['pairId'])continue;let _0x29731e=_0x1c68c7+0x1,_0xaeda19=0x0;for(;_0x4114d1[_0x29731e]['id']!=_0x4114d1[_0x1c68c7]['pairId'];)'elementStart'==_0x4114d1[_0x29731e]['type']?_0xaeda19++:'elementEnd'==_0x4114d1[_0x29731e]['type']&&_0xaeda19--,_0x29731e++;if(0x0!=_0xaeda19){if(_0x4114d1[_0x1c68c7]['isRemoved'])_0x4114d1[_0x1c68c7]['isIncorrect']=!0x0;else{for(;_0x29731e!=_0x1c68c7;)_0x4114d1[_0x29731e]['isRemoved']&&0x0!=_0x4114d1[_0x29731e]['distance']&&(_0x4114d1[_0x29731e]['isIncorrect']=!0x0,_0x3a32d7['add'](_0x4114d1[_0x29731e]['pairId'])),_0x29731e--;}}}return _0x4114d1['filter'](_0x3b593c=>!_0x3b593c['isIncorrect']);}['_removeUnsupportedChanges'](_0x1adc35){const _0x25ff00=this['editor']['model']['schema'];for(let _0x5139b5=0x0;_0x5139b5<_0x1adc35['length'];_0x5139b5++){if(!(_0x1adc35[_0x5139b5]['isAdded']||_0x1adc35[_0x5139b5]['isAddSuggestion']||_0x1adc35[_0x5139b5]['isRemoved']||_0x1adc35[_0x5139b5]['isRemoveSuggestion']))continue;if(0x0==_0x1adc35[_0x5139b5]['distance'])continue;const _0x44ad46=_0x1adc35[_0x5139b5]['item'];_0x25ff00['isBlock'](_0x44ad46)||_0x25ff00['isLimit'](_0x44ad46)||(_0x1adc35[_0x5139b5]['isAdded']&&delete _0x1adc35[_0x5139b5]['isAdded'],_0x1adc35[_0x5139b5]['isAddSuggestion']&&delete _0x1adc35[_0x5139b5]['isAddSuggestion'],_0x1adc35[_0x5139b5]['isRemoveSuggestion']&&delete _0x1adc35[_0x5139b5]['isRemoveSuggestion'],_0x1adc35[_0x5139b5]['isRemoved']&&(_0x1adc35[_0x5139b5]['isIncorrect']=!0x0));}return _0x1adc35['filter'](_0x33e0f1=>!_0x33e0f1['isIncorrect']);}['_makeModelFromTape'](_0x3930cd,_0xadaed2,_0x587ae9){const _0x41f9c6=new wt(),_0x34fe4a=[],_0x5a4785=new Map(),_0x7d9ae6=this['editor']['model'],_0xd42c1b=_0x7d9ae6['schema'],_0x2accec=[_0x41f9c6],_0x1536e4={},_0x98b253={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c4661=null;const _0x155bd7=[0x0];for(let _0x303b13=0x0;_0x303b13<_0x3930cd['length'];_0x303b13++)if('elementStart'===_0x3930cd[_0x303b13]['type']){_0x3930cd[_0x303b13]['previousPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7);const _0x39e67d=new ft(_0x3930cd[_0x303b13]['item']['name'],_0x3930cd[_0x303b13]['item']['getAttributes']());_0x2accec[0x0]['_appendChild'](_0x39e67d),_0x155bd7['push'](0x0),_0x2accec['unshift'](_0x39e67d),_0x3930cd[_0x303b13]['nextPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7);}else'elementEnd'===_0x3930cd[_0x303b13]['type']?(_0x2accec['shift'](),_0x3930cd[_0x303b13]['previousPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7),_0x155bd7['pop'](),_0x155bd7[_0x155bd7['length']-0x1]++,_0x3930cd[_0x303b13]['nextPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7)):(_0x3930cd[_0x303b13]['previousPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7),_0x5c4661?_0x5c4661['_data']+=_0x3930cd[_0x303b13]['item']['data']:_0x5c4661=new _t(_0x3930cd[_0x303b13]['item']['data'],_0x3930cd[_0x303b13]['item']['getAttributes']()),_0x3930cd[_0x303b13+0x1]&&'text'===_0x3930cd[_0x303b13+0x1]['type']&&_0x3b95e5(_0x5c4661,_0x3930cd[_0x303b13+0x1]['item'])||(_0x2accec[0x0]['_appendChild'](_0x5c4661),_0x5c4661=null),_0x155bd7[_0x155bd7['length']-0x1]+=_0x3930cd[_0x303b13]['item']['offsetSize'],_0x3930cd[_0x303b13]['nextPosition']=_0x7d9ae6['createPositionFromPath'](_0x41f9c6,_0x155bd7));for(let _0x1e51d1=0x0;_0x1e51d1<_0x3930cd['length'];_0x1e51d1++){const _0x397ae8=_0x3930cd[_0x1e51d1]['previousPosition'],_0x4b8ecc=_0x3930cd[_0x1e51d1]['nextPosition'];for(const _0x2ea62b of _0x3930cd[_0x1e51d1]['markersStart'])_0x5a4785['set'](_0x2ea62b,{'start':_0x397ae8,'end':null});_0x2c28a5('isRemoveSuggestion',_0x1e51d1,_0x397ae8,_0x4b8ecc),_0x2c28a5('isAddSuggestion',_0x1e51d1,_0x397ae8,_0x4b8ecc),_0x2c28a5('isRemoved',_0x1e51d1,_0x397ae8,_0x4b8ecc),_0x2c28a5('isAdded',_0x1e51d1,_0x397ae8,_0x4b8ecc);for(const _0x3199ea of _0x3930cd[_0x1e51d1]['markersEnd']){_0x5a4785['get'](_0x3199ea)['end']=_0x4b8ecc;}}for(const [_0x44a56e,_0x12381a]of _0x5a4785){const _0x2e3230=this['editor']['model']['createRange'](_0x12381a['start'],_0x12381a['end']);_0x41f9c6['markers']['set'](_0x44a56e,_0x2e3230);}return _0x34fe4a['sort']((_0x5d8ae8,_0x276262)=>{const _0x19ad99=_0x41f9c6['markers']['get']('revision:'+_0x5d8ae8['id']),_0x234042=_0x41f9c6['markers']['get']('revision:'+_0x276262['id']);return _0x19ad99['start']['isBefore'](_0x234042['start'])?-0x1:_0x19ad99['start']['isAfter'](_0x234042['start'])?0x1:_0x19ad99['end']['isBefore'](_0x234042['end'])?-0x1:_0x19ad99['end']['isAfter'](_0x234042['end'])?0x1:'add'===_0x5d8ae8['type']?-0x1:0x1;}),{'root':_0x41f9c6,'changes':_0x34fe4a};function _0x2c28a5(_0x54c40e,_0x3ca580,_0xf1bbef,_0x31d12c){const _0x4d7e72=!!_0x3930cd[_0x3ca580][_0x54c40e],_0x55677f=_0x4d7e72?_0x3930cd[_0x3ca580][_0x54c40e]['userId']:null,_0xab779a=_0x3ca580===_0x3930cd['length']-0x1,_0x2c2458=_0x98b253[_0x54c40e][0x0],_0x57c3aa=_0xd42c1b['isObject'](_0x3930cd[_0x3ca580]['item']);!_0x1536e4[_0x54c40e]&&_0x4d7e72?_0x1536e4[_0x54c40e]={'start':_0xf1bbef,'tapeItem':_0x3930cd[_0x3ca580],'userId':_0x55677f,'type':_0x54c40e}:_0x1536e4[_0x54c40e]&&!_0x4d7e72?(_0x1536e4[_0x54c40e]['end']=_0xf1bbef,_0x2f7420(_0x1536e4[_0x54c40e]),_0x1536e4[_0x54c40e]=null):_0x1536e4[_0x54c40e]&&_0x4d7e72&&_0x1536e4[_0x54c40e]['userId']!==_0x55677f&&(_0x1536e4[_0x54c40e]['end']=_0xf1bbef,_0x2c2458&&_0x2c2458['userId']===_0x1536e4[_0x54c40e]['userId']||_0x2f7420(_0x1536e4[_0x54c40e]),_0x1536e4[_0x54c40e]={'start':_0xf1bbef,'tapeItem':_0x3930cd[_0x3ca580],'userId':_0x55677f,'type':_0x54c40e}),_0x1536e4[_0x54c40e]&&_0x57c3aa&&('elementStart'!==_0x3930cd[_0x3ca580]['type']||_0x2c2458&&_0x2c2458['userId']===_0x55677f||_0x98b253[_0x54c40e]['unshift']({'userId':_0x55677f,'object':_0x3930cd[_0x3ca580]['item'],'change':_0x1536e4[_0x54c40e]}),'elementEnd'===_0x3930cd[_0x3ca580]['type']&&_0x2c2458&&_0x2c2458['object']===_0x3930cd[_0x3ca580]['item']&&(_0x98b253[_0x54c40e]['shift'](),_0x1536e4[_0x54c40e]=_0x2c2458['change'])),_0x1536e4[_0x54c40e]&&_0xab779a&&(_0x1536e4[_0x54c40e]['end']=_0x31d12c,_0x2f7420(_0x1536e4[_0x54c40e]),_0x1536e4[_0x54c40e]=null);}function _0x2f7420({start:_0x4f844b,end:_0x21dae2,tapeItem:_0x3cee8f,userId:_0x1cf6f7,type:_0x48b0a4}){const _0x219870=_0x3cee8f['item'],_0x33cb52=_0x7d9ae6['schema']['isBlock'](_0x219870)&&!_0x7d9ae6['schema']['isLimit'](_0x219870),_0x325ee0=_0x4f844b['nodeAfter']==_0x21dae2['parent']&&_0x21dae2['isAtStart'];if(_0x33cb52&&_0x325ee0)return;const _0x4bc9ff=_0x7d9ae6['createRange'](_0x4f844b,_0x21dae2),_0x56899d=_0xadaed2['get'](_0x1cf6f7),_0x1687ef=new r({'author':_0x56899d,'type':'isAdded'==_0x48b0a4||'isAddSuggestion'==_0x48b0a4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x48b0a4||'isRemoveSuggestion'==_0x48b0a4},'createdAt':new Date(),'rootName':_0x587ae9});_0x34fe4a['push'](_0x1687ef),_0x41f9c6['markers']['set']('revision:'+_0x1687ef['id'],_0x4bc9ff);}function _0x3b95e5(_0x477e5b,_0x3785d6){const _0x1a8aba=_0x477e5b['getAttributes'](),_0x1b7c46=_0x3785d6['getAttributes']();for(const _0x45e1dd of _0x1a8aba){if(_0x45e1dd[0x1]!==_0x3785d6['getAttribute'](_0x45e1dd[0x0]))return!0x1;_0x1b7c46['next']();}return _0x1b7c46['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5f0dc1=>{const _0x35f17a=_0x5f0dc1['markerName']['split'](':')[0x1],_0x191023=this['_getChangeFromId'](_0x35f17a);if(!_0x191023)return null;const _0xce551a='add'==_0x191023['type']?'insertion':'deletion',_0x1a95b4=['ck-suggestion-marker','ck-suggestion-marker-'+_0xce551a];return _0x191023['data']['isSuggestion']&&_0x1a95b4['push']('ck-suggestion-marker-'+_0xce551a+'-new'),this['activeChange']==_0x191023&&_0x1a95b4['push']('ck-suggestion-marker--active'),{'classes':_0x1a95b4,'attributes':{'data-change-id':_0x35f17a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x58e7b3=>{_0x58e7b3['on']('element:pre',(_0x4f934c,_0xd4aa2f,_0xc70a73)=>{const _0x145844=_0xd4aa2f['viewItem']['getChild'](0x0);if(!_0x145844||!_0x145844['is']('element','code'))return;if(!_0xc70a73['consumable']['consume'](_0x145844,{'attributes':['vid_start','vid_end']}))return;const _0x38de9a=_0xd4aa2f['modelRange']['start']['nodeAfter'];_0xc70a73['writer']['setAttribute']('vid_start',_0x145844['getAttribute']('vid_start'),_0x38de9a),_0xc70a73['writer']['setAttribute']('vid_end',_0x145844['getAttribute']('vid_end'),_0x38de9a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x54473f=>{_0x54473f['on']('element',(_0x3a7826,_0x4150a3,_0x187ec3)=>{if(!_0x187ec3['consumable']['consume'](_0x4150a3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4150a3['modelRange']['isCollapsed'])return;const _0x1bb2fc=_0x4150a3['modelRange']['start']['nodeAfter'];_0x1bb2fc['hasAttribute']('vid_start')||_0x1bb2fc['hasAttribute']('vid')||(_0x187ec3['writer']['setAttribute']('vid_start',_0x4150a3['viewItem']['getAttribute']('vid_start'),_0x1bb2fc),_0x187ec3['writer']['setAttribute']('vid_end',_0x4150a3['viewItem']['getAttribute']('vid_end'),_0x1bb2fc));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xd6040c=>_0xd6040c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2a6b78,[,_0x484191])=>{['vid_start','vid_end','vid']['includes'](_0x484191)&&(_0x2a6b78['return']=!0x0,_0x2a6b78['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xc1abb3=>{_0xc1abb3['on']('attribute:vid',(_0x4ab3c6,_0x1cb321,_0x617042)=>{if('\x20'!=_0x1cb321['item']['data']||_0x1cb321['item']['parent']['maxOffset']>0x1)return;if(!_0x617042['consumable']['consume'](_0x1cb321['item'],_0x4ab3c6['name']))return;const _0x4de278=_0x617042['writer'],_0x2f8b95=_0x617042['mapper']['toViewRange'](_0x1cb321['range']);_0x4de278['wrap'](_0x2f8b95,_0x4de278['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x32d163){const _0x141e4f=_0x32d163['plugins']['get']('RevisionViewer');return(_0x2bcb29,_0xd24728,_0x3ef4c4)=>{const _0x2fe0c9=_0xd24728['markerName']['split'](':')[0x1],_0x191a03=_0x141e4f['_getChangeFromId'](_0x2fe0c9);if(!_0x191a03)return null;const _0x4f3337='add'==_0x191a03['type']?'split':'merge';if(!_0x3ef4c4['consumable']['test'](_0xd24728['markerRange'],_0x2bcb29['name']))return;const _0x4fba3b=_0xd24728['markerRange']['getWalker'](),_0x4b1d85=_0xd24728['markerRange']['start'],_0x2a6b4c=_0x32d163['model']['schema'];let _0x1ce268=null,_0x211302=null,_0x14d64b=!0x1,_0x16d8bc=!0x1;for(const _0x3a4873 of _0x4fba3b){const _0x5c03a0=_0x3a4873['item'];_0x14d64b=_0x14d64b||_0x2a6b4c['isContent'](_0x5c03a0);const _0x19f47a=_0x3ef4c4['mapper']['toViewElement'](_0x5c03a0);if(_0x19f47a&&_0x19f47a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a4873['type']&&(_0x2a6b4c['isBlock'](_0x5c03a0)&&!_0x2a6b4c['isLimit'](_0x5c03a0)&&(_0x5c03a0['nextSibling']||_0x4b1d85['isAtEnd']?_0x1ce268&&_0x1ce268['parent']==_0x5c03a0||(_0x1ce268=_0x5c03a0,_0x19930a(_0x3a4873['previousPosition']),_0x16d8bc=!0x0):_0x211302=_0x211302||_0x3a4873['previousPosition']));}function _0x19930a(_0x3ab976){const _0x1c07a0=_0x3ef4c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f3337}),_0x54f2c2=_0x3ef4c4['mapper']['toViewPosition'](_0x3ab976);_0x191a03['data']['isSuggestion']&&_0x3ef4c4['writer']['addClass']('ck-suggestion-marker-'+_0x4f3337+'-new',_0x1c07a0),_0x141e4f['activeChange']==_0x191a03&&_0x3ef4c4['writer']['addClass']('ck-suggestion-marker--active',_0x1c07a0),_0x3ef4c4['writer']['insert'](_0x54f2c2,_0x1c07a0),_0x3ef4c4['mapper']['bindElementToMarker'](_0x1c07a0,_0xd24728['markerName']);}_0x14d64b||_0x16d8bc||!_0x211302||_0x19930a(_0x211302);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4afd7f,_0xd964b1,_0x47e3f5)=>{const _0x2d069c=_0x47e3f5['mapper']['markerNameToElements'](_0xd964b1['markerName']);if(_0x2d069c){for(const _0x1c43d0 of _0x2d069c)(_0x1c43d0['hasClass']('ck-suggestion-marker-split')||_0x1c43d0['hasClass']('ck-suggestion-marker-merge'))&&(_0x47e3f5['mapper']['unbindElementFromMarkerName'](_0x1c43d0,_0xd964b1['markerName']),_0x47e3f5['writer']['remove'](_0x1c43d0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x29298f,_0x11fd6b,_0x17f81f)=>{const _0x10e581=_0x11fd6b['markerName']['split'](':')[0x1],_0xb60399=this['_getChangeFromId'](_0x10e581);if(!_0xb60399)return null;const _0x3de9e9='add'==_0xb60399['type']?'split':'merge';if(_0x17f81f['consumable']['test'](_0x11fd6b['markerRange'],_0x29298f['name']))for(const _0x4e04f6 of _0x11fd6b['markerRange']['getItems']()){if(!_0x4e04f6['is']('element','softBreak'))continue;const _0x48ef61=_0x17f81f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3de9e9}),_0x4834a7=_0x17f81f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e04f6));_0xb60399['data']['isSuggestion']&&_0x17f81f['writer']['addClass']('ck-suggestion-marker-'+_0x3de9e9+'-new',_0x48ef61),this['activeChange']==_0xb60399&&_0x17f81f['writer']['addClass']('ck-suggestion-marker--active',_0x48ef61),_0x17f81f['writer']['insert'](_0x4834a7,_0x48ef61),_0x17f81f['mapper']['bindElementToMarker'](_0x48ef61,_0x11fd6b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x43d6ac=>{for(const _0x4c39bb of this['editor']['model']['document']['getRootNames']()){const _0x25364c=this['editor']['model']['document']['getRoot'](_0x4c39bb),_0x3e75c1=this['editor']['editing']['view']['document']['getRoot'](_0x4c39bb);if(_0x3e75c1){const _0x44b638=_0x25364c['getAttribute']('revisionHistoryAttachChange');if(_0x43d6ac['removeAttribute']('data-change-id',_0x3e75c1),_0x43d6ac['removeClass']('ck-revision-history-root-add',_0x3e75c1),_0x43d6ac['removeClass']('ck-revision-history-root-remove',_0x3e75c1),_0x43d6ac['removeClass']('ck-revision-history-root--active',_0x3e75c1),_0x44b638){const _0x547da1=this['_getChangeFromId'](_0x44b638);if(!_0x547da1)return null;_0x43d6ac['setAttribute']('data-change-id',_0x44b638,_0x3e75c1),_0x43d6ac['addClass']('ck-revision-history-root-'+_0x547da1['type'],_0x3e75c1),this['activeChange']==_0x547da1&&_0x43d6ac['addClass']('ck-revision-history-root--active',_0x3e75c1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xdab080=>'revision-comment:'+_0xdab080,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xcf0e98=>'revision-suggestion:'+_0xcf0e98,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x103959=>({'name':'suggestion:'+_0x103959,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x91ae9b=>{const _0xc4f959=_0x91ae9b['markerName']['split'](':')[0x1];return'insertion'!=_0xc4f959&&'deletion'!=_0xc4f959?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xc4f959]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4b7ced,_0x543d17,_0x487fe9)=>{const _0x2b6716=_0x487fe9['mapper']['markerNameToElements'](_0x543d17['markerName']);if(_0x2b6716){for(const _0x2dff7b of _0x2b6716)_0x2dff7b['is']('uiElement')&&(_0x487fe9['mapper']['unbindElementFromMarkerName'](_0x2dff7b,_0x543d17['markerName']),_0x487fe9['writer']['remove'](_0x2dff7b));}},{'priority':'high'});}['_getChangeFromId'](_0x1a266a){return this['_changeIdToChange']['get'](_0x1a266a);}['_getViewForChange'](_0x580e97){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x580e97),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x210449,_0x6874cf,_0x2b0f63,_0x59dec3)=>{_0x59dec3&&this['_balloon']['remove'](_0x59dec3),_0x2b0f63&&(this['_balloon']['add']({'view':_0x2b0f63,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ab853=this['editor']['editing'],_0x56ed93=this['_getChangeFromId'](_0x2b0f63['changeId']);let _0x50cef1;if(_0x56ed93['data']['isOnRoot']){const _0x41f4da=_0x3ab853['view']['getDomRoot'](_0x56ed93['rootName']);_0x50cef1=Array['from'](_0x41f4da['getClientRects']());}else{const _0x5046b5=this['editor']['model']['markers']['get']('revision:'+_0x2b0f63['changeId']);_0x50cef1=Array['from'](_0x3ab853['mapper']['markerNameToElements'](_0x5046b5['name']))['map'](_0x217e79=>_0x3ab853['view']['domConverter']['mapViewToDom'](_0x217e79))['map'](_0x880bc8=>Array['from'](_0x880bc8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x50cef1[0x0];return _0x50cef1['find'](_0x440d3d=>_0x440d3d['top']-0x3<=this['_activeViewTarget']['y']&&_0x440d3d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x440d3d['left']-0x3<=this['_activeViewTarget']['x']&&_0x440d3d['right']+0x3>=this['_activeViewTarget']['x'])||_0x50cef1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x456e07,_0x35a2a3,_0x31c6d3,_0x39823d)=>{this['activeView']=_0x31c6d3?this['_getViewForChange'](_0x31c6d3):null,this['editor']['model']['change'](()=>{const _0x397577=this['editor']['editing'];_0x39823d&&(_0x39823d['data']['isOnRoot']?_0x397577['view']['change'](_0x4d00df=>{_0x4d00df['removeClass']('ck-revision-history-root--active',_0x397577['view']['document']['getRoot'](_0x39823d['rootName']));}):_0x397577['reconvertMarker']('revision:'+_0x39823d['id'])),_0x31c6d3&&(_0x31c6d3['data']['isOnRoot']?_0x397577['view']['change'](_0xefc0d0=>{_0xefc0d0['addClass']('ck-revision-history-root--active',_0x397577['view']['document']['getRoot'](_0x31c6d3['rootName']));}):_0x397577['reconvertMarker']('revision:'+_0x31c6d3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xb7efab,_0xee4208)=>{if(this['activeChange'])return;const _0x1a9b73=this['_findChangeIdFromDomTarget'](_0xee4208['target']),_0x2e13cd=this['_changeIdToChange']['get'](_0x1a9b73);_0x2e13cd?(this['_activeViewTarget']={'x':_0xee4208['domEvent']['x'],'y':_0xee4208['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2e13cd)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x41ce6b,_0x1d3484)=>{const _0x491de2=this['_findChangeIdFromDomTarget'](_0x1d3484['target']),_0x333587=this['_changeIdToChange']['get'](_0x491de2);_0x333587?(this['_activeViewTarget']={'x':_0x1d3484['domEvent']['x'],'y':_0x1d3484['domEvent']['y']},_0x333587===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x333587):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3f391f){do{const _0x44a974=_0x3f391f['getAttribute']('data-change-id');if(_0x44a974)return _0x44a974;_0x3f391f=_0x3f391f['parent'];}while(_0x3f391f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ee7f3=>{for(const _0x442bde of this['editor']['model']['markers'])_0x3ee7f3['removeMarker'](_0x442bde);});}}function tt(_0x2864b4,_0x1a86f9){return(_0x23a13c,_0x16f3fb,_0x4cc4ce)=>{if(!_0x4cc4ce['consumable']['test'](_0x16f3fb['markerRange'],_0x23a13c['name']))return;const _0x3e3ed5=_0x16f3fb['markerRange']['getWalker'](),_0x130b6c=_0x16f3fb['markerRange']['start'],_0x107c37=_0x2864b4['model']['schema'];let _0x15b37d=null,_0x3ca2b4=null,_0x2be16c=!0x1,_0x443850=!0x1;for(const _0x3d2755 of _0x3e3ed5){const _0x59972f=_0x3d2755['item'];_0x2be16c=_0x2be16c||_0x107c37['isContent'](_0x59972f);const _0xc32a42=_0x4cc4ce['mapper']['toViewElement'](_0x59972f);if(_0xc32a42&&_0xc32a42['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d2755['type']&&(_0x107c37['isBlock'](_0x59972f)&&!_0x107c37['isLimit'](_0x59972f)&&(_0x59972f['nextSibling']||_0x130b6c['isAtEnd']?_0x15b37d&&_0x15b37d['parent']==_0x59972f||(_0x15b37d=_0x59972f,_0x5f5d79(_0x3d2755['previousPosition']),_0x443850=!0x0):_0x3ca2b4=_0x3ca2b4||_0x3d2755['previousPosition']));}function _0x5f5d79(_0x2f83f1){const _0x1eb120=_0x4cc4ce['mapper']['toViewPosition'](_0x2f83f1),_0x5dfd73=_0x4cc4ce['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a86f9});_0x4cc4ce['writer']['insert'](_0x1eb120,_0x5dfd73),_0x4cc4ce['mapper']['bindElementToMarker'](_0x5dfd73,_0x16f3fb['markerName']);}_0x2be16c||_0x443850||!_0x3ca2b4||_0x5f5d79(_0x3ca2b4);};}class yt extends _0x19d45e{constructor(_0x52baf1){super(_0x52baf1);const _0x2764a8=_0x52baf1['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2764a8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2764a8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2a365b=this['editor'],_0x2ffa6d=_0x2a365b['plugins']['get'](d),_0xe5ad17=_0x2ffa6d['isReady']?_0x2ffa6d['diff']['newRevisionId']:null;_0x2a365b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xe5ad17);}['refresh'](){const {isReady:_0x280363,isEnabled:_0x277eb1,repository:_0x2079dc,diff:_0x46406b}=this['editor']['plugins']['get'](d),_0x20e58c=_0x46406b&&_0x2079dc['getLaterVisibleRevision'](_0x46406b['newRevisionId']);this['isEnabled']=_0x280363&&_0x277eb1&&Boolean(_0x20e58c);}}class bt extends _0x19d45e{['_step'];constructor(_0x261ded,{direction:_0x44aeb3}){super(_0x261ded);const _0x2051b1=_0x261ded['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x44aeb3?0x1:-0x1,this['listenTo'](_0x2051b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2051b1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2051b1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1a8ee0=this['editor'],_0x34e72c=_0x1a8ee0['plugins']['get'](d),{isNavigationMode:_0x5758ee,currentChangeNumber:_0x5d8b10}=_0x34e72c;let _0x1adfd7;if(_0x34e72c['activeChange']=_0x5758ee?_0x34e72c['diff']['changes']['get'](_0x5d8b10+this['_step']):_0x34e72c['diff']['changes']['first'],_0x34e72c['activeChange']['data']['isOnRoot'])_0x1adfd7=_0x1a8ee0['editing']['view']['getDomRoot'](_0x34e72c['activeChange']['rootName']);else{const _0x4f61b1=_0x1a8ee0['model']['markers']['get']('revision:'+_0x34e72c['activeChange']['id']);_0x1adfd7=_0x1b172d(_0x1a8ee0['editing'],_0x4f61b1);}_0x29d0f1({'target':_0x1adfd7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d0c5f,currentChangeNumber:_0x5cc69b,numberOfChanges:_0x2f804b,isReady:_0x5d9fd1,isEnabled:_0x5cb647}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5cb647&&_0x5d9fd1&&_0x2f804b)&&(!_0x1d0c5f||(0x1===this['_step']?_0x5cc69b<_0x2f804b-0x1:_0x5cc69b>0x0));}}class _i extends _0x25ffd9{constructor(_0x26e5d2){super(_0x26e5d2);const _0x1f2445=this['bindTemplate'],_0x11cf7f=new _0x26af07(_0x26e5d2),_0x151d3e=new _0x26af07(_0x26e5d2);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',(_0x4e51f4,_0x470faa)=>_0x4e51f4&&_0x470faa>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9ee97,_0x51961e,_0x4891bb,_0x32c14a)=>{if(!_0x9ee97)return R(_0x26e5d2,'Loading...');if(!_0x4891bb)return R(_0x26e5d2,'No\x20changes');const _0x14bf1e=R(_0x26e5d2,'NUMBER_OF_CHANGES',_0x4891bb);return _0x32c14a?R(_0x26e5d2,'X_OF_Y_CHANGES',[_0x51961e+0x1,_0x4891bb]):_0x14bf1e;}),_0x11cf7f['set']({'label':R(_0x26e5d2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x151d3e['set']({'label':R(_0x26e5d2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x11cf7f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x151d3e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x11cf7f['on']('execute',()=>this['fire']('execute','backward')),_0x151d3e['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',_0x1f2445['if']('_isStatusLabelVisible','ck-hidden',_0x1fa480=>!_0x1fa480)]},'children':[{'text':_0x1f2445['to']('isNavigationMode',_0x3f8c49=>_0x3f8c49?R(_0x26e5d2,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x26e5d2,'Total')+':\x20')}]},{'text':_0x1f2445['to']('_statusText')}]},new _0x2fcb45(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x11cf7f,_0x151d3e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4b13f8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x558918=this['editor']['editing']['view'];_0x558918['change'](_0x4aebe8=>{for(const _0x3d386e of _0x558918['document']['roots'])_0x4aebe8['addClass'](ce,_0x3d386e);});}['hide'](){const _0x1bcdc7=this['editor']['editing']['view'];_0x1bcdc7['change'](_0x25e92e=>{for(const _0x3a4fe3 of _0x1bcdc7['document']['roots'])_0x25e92e['removeClass'](ce,_0x3a4fe3);});}}class m extends _0x4b13f8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x1fe760=this['editor'],_0x1fcaea=_0x1fe760['plugins']['get'](d),_0x45df3c=_0x1fe760['plugins']['get'](le);_0x1fe760['ui']['componentFactory']['add']('exitToEditing',_0x1f6c37=>{const _0x387957=new _0x26af07(_0x1f6c37);return _0x387957['set']({'label':R(_0x1f6c37,'Back\x20to\x20editing'),'icon':_0x3a372f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x387957,'execute',()=>{_0x1fe760['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x387957;}),_0x1fe760['ui']['componentFactory']['add']('restoreRevision',_0x1bf3a0=>{const _0x4b73fb=new _0x26af07(_0x1bf3a0);return _0x4b73fb['set']({'label':R(_0x1bf3a0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4b73fb['bind']('isEnabled')['to'](_0x1fe760['commands']['get']('restoreRevision')),this['listenTo'](_0x4b73fb,'execute',()=>_0x1fe760['execute']('restoreRevision')),_0x4b73fb;}),_0x1fe760['ui']['componentFactory']['add']('changesNavigation',_0x4283fa=>{const _0x5de8ed=new _i(_0x4283fa),_0x35561c=_0x1fe760['commands']['get']('showPreviousChange'),_0x5988ec=_0x1fe760['commands']['get']('showNextChange');return _0x5de8ed['bind']('isBackwardNavigationEnabled')['to'](_0x35561c,'isEnabled'),_0x5de8ed['bind']('isForwardNavigationEnabled')['to'](_0x5988ec,'isEnabled'),_0x5de8ed['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1fcaea),this['listenTo'](_0x5de8ed,'execute',(_0x44e425,_0x34be5f)=>{_0x1fe760['execute']('forward'===_0x34be5f?'showNextChange':'showPreviousChange');}),_0x5de8ed;}),_0x45df3c['show'](),_0x1fcaea['on']('change:isReady',(_0x7e10ef,_0x1eac5c,_0x445ada)=>{_0x445ada?_0x45df3c['hide']():_0x45df3c['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4f4505,_0xfadeb7){super(_0x4f4505,_0xfadeb7);const _0x25020e=this['bindTemplate'];this['set']({'label':R(_0x4f4505,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4f4505,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x25020e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5f55d6=this['fieldView']['element'];this['_tooltipString']=_0x5f55d6['scrollWidth']>_0x5f55d6['clientWidth']&&_0x5f55d6['value']||'';}}class ti extends _0x25ffd9{constructor(_0x12fa56,_0x1afbad,_0x5bf9ce){super(_0x12fa56);const _0xa192cb=new _0x19c1bb();_0xa192cb['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3aaaa3=['ck','ck-revision-history-sidebar__revision-author'];_0x5bf9ce&&_0x3aaaa3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x14fff3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x12fa56,_0x5bf9ce?'Revision\x20creator':'Revision\x20author')},'children':[_0xa192cb,_0x1afbad['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3aaaa3},'children':_0x14fff3});}}function ni(_0x2cba1b,_0x295262){const _0x53274c=_0x2cba1b['bindTemplate'],_0x3abec3=_0x2cba1b['locale'],_0x1e1eff=_0x65832e(_0x3abec3);_0x1e1eff['panelPosition']='sw';const _0x22e895=function(_0x39606d,_0x291aec){const _0x417003=function(_0x473412,_0x3f7ba8){const _0x3f4ee6=_0x473412['locale'],_0x4c422f={'Compare\x20against\x20selected':R(_0x3f4ee6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3f4ee6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3f4ee6,'Restore\x20this\x20revision')};return _0x3f7ba8['map'](_0x10e540=>{const _0x57c24d=_0x4c422f[_0x10e540['name']];return _0x57c24d&&_0x57c24d!==_0x10e540['name']&&(_0x10e540['name']=_0x57c24d),_0x10e540;});}(_0x39606d,_0x291aec),_0x4ca4e4=new _0x107ef2();for(const _0x2861ca of _0x417003){const _0x300c48={'type':'button','model':new to({'label':_0x2861ca['name'],'class':_0x2861ca['class'],'withText':!0x0,'role':'menuitem','_action':_0x2861ca['action']})};_0x300c48['model']['bind']('isEnabled')['to'](_0x39606d,'isActionsDropdownOpen',_0x565c48=>'function'!=typeof _0x2861ca['isEnabled']||(!_0x565c48||_0x2861ca['isEnabled'](_0x39606d))),_0x4ca4e4['add'](_0x300c48);}return _0x4ca4e4;}(_0x2cba1b,_0x295262);return _0x2cba1b['bind']('isActionsDropdownOpen')['to'](_0x1e1eff,'isOpen'),_0x1e1eff['buttonView']['set']({'label':R(_0x3abec3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a372f['threeVerticalDots']}),_0x1e1eff['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x53274c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x53274c['to'](_0x5e4101=>_0x5e4101['stopPropagation']())}}),_0x1e1eff['on']('execute',_0x4e3e60=>{_0x2cba1b['isReady']&&'function'==typeof _0x4e3e60['source']['_action']&&_0x4e3e60['source']['_action'](_0x2cba1b);}),_0x1d179d(_0x1e1eff,_0x22e895,{'role':'menu'}),_0x1e1eff['listenTo'](_0x2cba1b,'change:isActionsDropdownOpen',(_0x57ad03,_0x48ebb2,_0x3f4abf)=>{if(_0x3f4abf)for(const _0x13c51a of _0x1e1eff['listView']['items']){const _0x36520b=_0x13c51a['children']['first'],_0x3d3816=_0x295262['find'](_0x412411=>_0x412411['action']===_0x36520b['_action'])['isVisible'];_0x13c51a['isVisible']=void 0x0===_0x3d3816||_0x3d3816(_0x2cba1b);}}),_0x1e1eff;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x3e6ed2,uid as _0x3b74fc,Collection as _0x446eb4,logWarning as _0x380917,FocusTracker as _0x30b6e5,KeystrokeHandler as _0x3fb620,scrollViewportToShowTarget as _0x4d440c,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x4d2749}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x41eccd,set as _0x2ec4da,unset as _0x129ccc,isEqual as _0x200d1b}from'lodash-es';import{Plugin as _0x251bb4,PendingActions as _0x29438d,icons as _0x1732ef,Command as _0x145cd4,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5574af,getMarkerDomElement as _0x6d9d4c,ConfirmMixin as ti,sanitizeEditorConfig as _0x18eb90}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x6ca5de,ViewText as _0x478b27,ViewElement as _0x753289,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x17be35,ViewAttributeElement as _0x4cb7a9,ViewEmptyElement as _0x4981a3,ViewRawElement as _0x478851,ViewUIElement as _0x3248d9,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x54f796,submitHandler as _0x1a42db,LabeledFieldView as _0x5a6b56,createLabeledInputText as _0x152253,createDropdown as _0x37ee2e,ListView as _0x37bea1,ListItemView as _0x2f4504,ButtonView as te,MenuBarMenuView as _0x494df9,MenuBarMenuListView as _0x1fe0dc,MenuBarMenuListItemView as _0x4848dd,MenuBarMenuListItemButtonView as _0x3a0910,ContextualBalloon as _0xa0f5e9,ToolbarSeparatorView as _0x32d385,IconView as _0x1d461a,addListToDropdown as to,ViewModel as _0x5eb87b,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5355cc}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e6ed2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1028f0){super(),this['id']=_0x1028f0['id']||_0x3b74fc(),this['creator']=_0x1028f0['creator']||null,this['authors']=_0x1028f0['authors']||[],this['diffData']=_0x1028f0['diffData']||null,this['toVersion']=_0x1028f0['toVersion']||0x0,this['fromVersion']=_0x1028f0['fromVersion']||0x0,this['set']('name',_0x1028f0['name']||''),this['set']('createdAt',_0x1028f0['createdAt']||new Date()),this['set']('attributes',_0x1028f0['attributes']||{});}['setName'](_0x2d2e83){this['_update']({'name':_0x2d2e83});}['setAttribute'](_0x1b94be,_0x2491f3){const _0x2fa7eb=_0x41eccd(this['attributes']);_0x2ec4da(_0x2fa7eb,_0x1b94be,_0x2491f3),this['_update']({'attributes':_0x2fa7eb});}['removeAttribute'](_0x4b4124){const _0x20daa8=_0x41eccd(this['attributes']);_0x129ccc(_0x20daa8,_0x4b4124),this['_update']({'attributes':_0x20daa8});}['_update'](_0x36a753,_0x33e43b=!0x1){let _0x12ad66=!0x1;const _0x5f5d38={'id':this['id']},_0x366ae3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3dbfd1 of _0x366ae3){const _0x2032db=_0x36a753[_0x3dbfd1];void 0x0!==_0x2032db&&_0x2032db!==this[_0x3dbfd1]&&(this[_0x3dbfd1]=_0x2032db,_0x5f5d38[_0x3dbfd1]=_0x2032db,_0x12ad66=!0x0);}_0x12ad66&&(_0x5f5d38['authors']&&(_0x5f5d38['authorsIds']=_0x5f5d38['authors']['map'](_0x5ac8d7=>_0x5ac8d7['id']),delete _0x5f5d38['authors']),this['fire']('_update',_0x5f5d38,_0x33e43b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x266cb1=>_0x266cb1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x251bb4{['_revisions'];static get['requires'](){return[_0x5574af];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3c5537){super(_0x3c5537),this['_revisions']=new _0x446eb4();}['afterInit'](){!async function(_0x3a8af1){const _0x528245=_0x39d7f8([0x6e,0x4c,0x6b,0x4a,0x32,0x67,0x58,0x53,0x78,0x6c,0x63,0x37,0x34,0x5a,0x39,0x64,0x6f,0x44,0x70,0x42,0x31,0x41,0x51,0x7a,0x66,0x4e,0x50,0x62,0x72,0x65,0x4b,0x30,0x76,0x48,0x71,0x74,0x68,0x33,0x52,0x4d,0x61,0x43,0x47,0x4f,0x54,0x55,0x45,0x36,0x77,0x38,0x6a,0x59,0x57,0x46,0x6d,0x35,0x56,0x79,0x75,0x49,0x69,0x73]),_0x2fc2ca=0xeb829,_0x51c77f=0xf3fd86d,_0xf14d2b=0xf388255^_0x51c77f,_0x3b5e14=window[_0x39d7f8([0x44,0x61,0x74,0x65])][_0x39d7f8([0x6e,0x6f,0x77])](),_0x5c50e1=_0x3a8af1[_0x39d7f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d9089=new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382ab1=>{_0x5c50e1[_0x39d7f8([0x6f,0x6e,0x63,0x65])](_0x39d7f8([0x72,0x65,0x61,0x64,0x79]),_0x382ab1);}),_0x46e0f2={[_0x39d7f8([0x6b,0x74,0x79])]:_0x39d7f8([0x45,0x43]),[_0x39d7f8([0x75,0x73,0x65])]:_0x39d7f8([0x73,0x69,0x67]),[_0x39d7f8([0x63,0x72,0x76])]:_0x39d7f8([0x50,0x2d,0x32,0x35,0x36]),[_0x39d7f8([0x78])]:_0x39d7f8([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]),[_0x39d7f8([0x79])]:_0x39d7f8([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]),[_0x39d7f8([0x61,0x6c,0x67])]:_0x39d7f8([0x45,0x53,0x32,0x35,0x36])},_0x45f406=_0x5c50e1[_0x39d7f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39d7f8([0x67,0x65,0x74])](_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e6ea7(){let _0x4e97ef,_0xba03cb=null,_0x179fa0=null;try{if(_0x45f406==_0x39d7f8([0x47,0x50,0x4c]))return _0x39d7f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e97ef=_0x4a238b(),!_0x4e97ef)return _0x39d7f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e97ef[_0x39d7f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x179fa0=_0x599324(_0x4e97ef[_0x39d7f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e97ef[_0x39d7f8([0x6a,0x74,0x69])])),await _0x25f594()?_0x5bfc03()?_0x395b9f()?_0x39d7f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19603d()?(_0x4e97ef[_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39d7f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xba03cb=_0x36534f(_0x39d7f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e97ef[_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39d7f8([0x74,0x72,0x69,0x61,0x6c])&&(_0xba03cb=_0x36534f(_0x39d7f8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e97ef[_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39d7f8([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xba03cb=_0x36534f(_0x39d7f8([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33abcf()):_0x39d7f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39d7f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39d7f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x6d585b){return _0x39d7f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x395b9f(){const _0x3c9387=[_0x39d7f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39d7f8([0x74,0x72,0x69,0x61,0x6c])][_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e97ef[_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b5e14/0x3e8:0xe10*_0xf14d2b;return _0x4e97ef[_0x39d7f8([0x65,0x78,0x70])]<_0x3c9387;}function _0x5bfc03(){const _0x4d9f6f=_0x4e97ef[_0x39d7f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d9f6f)return!0x1;if(_0x4d9f6f[_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d7f8([0x2a])))return!0x0;if(_0x4d9f6f[_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d7f8([0x52,0x48])))return!0x0;if(_0x4d9f6f[_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d7f8([0x52,0x52,0x48]))){if(_0x5ca959())return!0x0;if(_0x39bd2e()||_0x233285())return!0x0;}return!0x1;}function _0x19603d(){const _0x5943bf=_0x4e97ef[_0x39d7f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5943bf||0x0==_0x5943bf[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56326e}=new URL(window[_0x39d7f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5943bf[_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56326e))return!0x0;const _0x4c6241=_0x56326e[_0x39d7f8([0x73,0x70,0x6c,0x69,0x74])](_0x39d7f8([0x2e]));return _0x5943bf[_0x39d7f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b6e00=>_0x5b6e00[_0x39d7f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d7f8([0x2a])))[_0x39d7f8([0x6d,0x61,0x70])](_0x2c3338=>_0x2c3338[_0x39d7f8([0x73,0x70,0x6c,0x69,0x74])](_0x39d7f8([0x2e])))[_0x39d7f8([0x73,0x6f,0x6d,0x65])](_0xb4cb2e=>_0x4c6241[_0x39d7f8([0x65,0x76,0x65,0x72,0x79])]((_0x4947a9,_0x4c3c45)=>_0xb4cb2e[_0x4c3c45]===_0x4947a9||_0xb4cb2e[_0x4c3c45]===_0x39d7f8([0x2a])));}function _0x33abcf(){return _0xba03cb&&_0x179fa0?new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32b942,_0x465f2d)=>{_0xba03cb[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x32b942,_0x465f2d),_0x179fa0[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x4d8908=>{_0x4d8908!=_0x39d7f8([0x56,0x61,0x6c,0x69,0x64])&&_0x32b942(_0x4d8908);},_0x465f2d);}):_0xba03cb||_0x179fa0||_0x39d7f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x599324(_0x510216,_0x5483ff){return new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f1678=>{if(_0x137ae4())return _0x3f1678(_0x39d7f8([0x56,0x61,0x6c,0x69,0x64]));_0x3b7684(),_0x5c50e1[_0x39d7f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39d7f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f45fc=!0x1;const _0x45d105=_0x3b74fc();function _0x398fdc(_0x1881b7){return!!_0x1881b7&&(typeof _0x1881b7===_0x39d7f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1881b7===_0x39d7f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1881b7[_0x39d7f8([0x74,0x68,0x65,0x6e])]===_0x39d7f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1881b7[_0x39d7f8([0x63,0x61,0x74,0x63,0x68])]===_0x39d7f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59aec2(_0x572137){_0x243104(_0x572137)[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x2ef4b5=>{if(!_0x2ef4b5||_0x2ef4b5[_0x39d7f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39d7f8([0x6f,0x6b]))return _0x39d7f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53f8b6(_0x57f6a2(_0x45d105+_0x5483ff))!=_0x2ef4b5[_0x39d7f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39d7f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39d7f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x4270ee=>(_0xf11905(),_0x4270ee),()=>{const _0x28fd81=_0x3141fa();return null==_0x28fd81?(_0xf11905(),_0x39d7f8([0x56,0x61,0x6c,0x69,0x64])):_0x39d7f8(_0x3b5e14-_0x28fd81>(0x2b335c6d^_0x51c77f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x3f1678)[_0x39d7f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f1678(_0x39d7f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33c22b=0xf0936ed^_0x51c77f;function _0xf11905(){const _0x52a854=_0x39d7f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x53f8b6(_0x57f6a2(_0x510216)),_0x1ae457=_0x2e43fa(_0x53f8b6(window[_0x39d7f8([0x4d,0x61,0x74,0x68])][_0x39d7f8([0x63,0x65,0x69,0x6c])](_0x3b5e14/_0x33c22b)));window[_0x39d7f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39d7f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52a854,_0x1ae457);}function _0x3141fa(){const _0x4c345=_0x39d7f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x53f8b6(_0x57f6a2(_0x510216)),_0x1f8f2c=window[_0x39d7f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39d7f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c345);return _0x1f8f2c?window[_0x39d7f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e43fa(_0x1f8f2c),0x10)*_0x33c22b:null;}function _0x243104(_0x308426){return new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b7dd2,_0x539ea7)=>{_0x308426[_0x39d7f8([0x74,0x68,0x65,0x6e])](_0x4b7dd2,_0x539ea7),window[_0x39d7f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x539ea7,0xf3e0cad^_0x51c77f);});}}_0x5c50e1[_0x39d7f8([0x6f,0x6e])](_0x39d7f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17e3be,_0x34247f)=>{if(_0x34247f[0x0]!=_0x510216)return _0x3f1678(_0x39d7f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34247f[0x1]={..._0x34247f[0x1],[_0x39d7f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d105};},{[_0x39d7f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39d7f8([0x68,0x69,0x67,0x68])}),_0x5c50e1[_0x39d7f8([0x6f,0x6e])](_0x39d7f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x576fae=>{_0x398fdc(_0x576fae[_0x39d7f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f45fc=!0x0,_0x59aec2(_0x576fae[_0x39d7f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39d7f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39d7f8([0x6c,0x6f,0x77])}),_0x5d9089[_0x39d7f8([0x74,0x68,0x65,0x6e])](()=>{_0x5f45fc||_0x3f1678(_0x39d7f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x137ae4(){return _0x5c50e1[_0x39d7f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39d7f8([0x76,0x69,0x65,0x77])][_0x39d7f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39d7f8([0x61,0x75,0x74,0x6f]);}function _0x3b7684(){_0x5c50e1[_0x39d7f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39d7f8([0x76,0x69,0x65,0x77])][_0x39d7f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39d7f8([0x61,0x75,0x74,0x6f]);}}function _0x36534f(_0x4652ff){const _0x1784bf=[new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16ecfd=>setTimeout(_0x16ecfd,0xf36e6a1^_0x51c77f)),_0x5d9089[_0x39d7f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c65a2=>{const _0x15f833=0xf3fd86a^_0x51c77f,_0x3384a8=_0x3a8af1[_0x39d7f8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3c5322(){_0x3384a8[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x15f833&&_0x4c65a2();}_0x3c5322(),_0x3384a8[_0x39d7f8([0x6f,0x6e])](_0x39d7f8([0x61,0x64,0x64]),_0x3c5322);})),new window[(_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22ae27=>{function _0x4321ca(){for(const _0x1f3350 in window)if(window[_0x39d7f8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39d7f8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1f3350))&&window[_0x1f3350]==_0x2fc2ca)return _0x22ae27();_0x5c50e1[_0x39d7f8([0x73,0x74,0x61,0x74,0x65])]!=_0x39d7f8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39d7f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4321ca,0xf3fcbe5^_0x51c77f);}_0x6a1b27(_0x39d7f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4321ca();})];return window[_0x39d7f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39d7f8([0x72,0x61,0x63,0x65])](_0x1784bf)[_0x39d7f8([0x74,0x68,0x65,0x6e])](()=>_0x4652ff);}async function _0x5be781(){if(await _0x5d9089,_0x6a1b27(_0x39d7f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5ec6c9=_0x3a8af1[_0x39d7f8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x532678=_0x3a8af1[_0x39d7f8([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])](_0x5ec6c9[_0x39d7f8([0x69,0x64])]),_0x27fd0a=_0x11ccf7(_0x39d7f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x27fd0a[_0x39d7f8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5ec6c9['id'],_0x532678?_0x532678['id']:null,!0x0),_0x27fd0a[_0x39d7f8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39d7f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27fd0a[_0x39d7f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27fd0a[_0x39d7f8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4c1402,void(_0x27fd0a[_0x39d7f8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4c1402);}if(_0x6a1b27(_0x39d7f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x18f8be=_0x11ccf7(_0x39d7f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x18f8be[_0x39d7f8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39d7f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18f8be[_0x39d7f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18f8be[_0x39d7f8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4c1402,_0x18f8be[_0x39d7f8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4c1402;}_0x5c50e1[_0x39d7f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x39d7f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1402,_0x5c50e1[_0x39d7f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x39d7f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1402,_0x5c50e1[_0x39d7f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39d7f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ca959(){return _0x6a1b27(_0x39d7f8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x11ccf7(_0x39d7f8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39d7f8([0x73,0x74,0x61,0x74,0x65])]==_0x39d7f8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39bd2e(){return _0x6a1b27(_0x39d7f8([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 _0x233285(){return _0x6a1b27(_0x39d7f8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf14a2(_0x5cfd25){const _0x130293=_0x4f9efc();_0x5c50e1[_0x130293]=_0x39d7f8([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])+_0x5cfd25,_0x5cfd25[_0x39d7f8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39d7f8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4f9efc()]=_0x2fc2ca),_0x5cfd25!=_0x39d7f8([0x56,0x61,0x6c,0x69,0x64])&&_0x5be781();}function _0x4f9efc(){const _0x4bcc13=window[_0x39d7f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39d7f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39d7f8([0x6e,0x6f,0x77])]())[_0x39d7f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39d7f8([0x2e]),'');let _0x13b586=_0x39d7f8([0x6e]);for(let _0x1c5a5a=0x0;_0x1c5a5a<_0x4bcc13[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c5a5a+=0x2){let _0x1b9ee9=window[_0x39d7f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bcc13[_0x39d7f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c5a5a,_0x1c5a5a+0x2));_0x1b9ee9>=_0x528245[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b9ee9-=_0x528245[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13b586+=_0x528245[_0x1b9ee9];}return _0x13b586;}function _0x4a238b(){const _0x2d9b3b=_0x45f406[_0x39d7f8([0x73,0x70,0x6c,0x69,0x74])](_0x39d7f8([0x2e]));if(0x3!=_0x2d9b3b[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f388d(_0x2d9b3b[0x1]);function _0x4f388d(_0x36e6d5){const _0x41cafb=_0x10c92d(_0x36e6d5);return _0x41cafb&&_0x3a3c72()?_0x41cafb:null;function _0x3a3c72(){const _0x4c8071=_0x41cafb[_0x39d7f8([0x6a,0x74,0x69])],_0x5721be=window[_0x39d7f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c8071[_0x39d7f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c8071[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d3c77={..._0x41cafb,[_0x39d7f8([0x6a,0x74,0x69])]:_0x4c8071[_0x39d7f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c8071[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d3c77[_0x39d7f8([0x76,0x63])],_0x57f6a2(_0x2d3c77)==_0x5721be;}}}async function _0x25f594(){let _0x52b81a=!0x0;try{const _0x3edaf5=_0x45f406[_0x39d7f8([0x73,0x70,0x6c,0x69,0x74])](_0x39d7f8([0x2e])),[_0x53a2f1,_0x7511b,_0xf48a40]=_0x3edaf5;return _0x4f7261(_0x53a2f1),await _0x5077a9(_0x53a2f1,_0x7511b,_0xf48a40),_0x52b81a;}catch(_0x4299f5){return!0x1;}function _0x4f7261(_0x4d3ee0){const _0x2ee28d=_0x10c92d(_0x4d3ee0);_0x2ee28d&&_0x2ee28d[_0x39d7f8([0x61,0x6c,0x67])]==_0x39d7f8([0x45,0x53,0x32,0x35,0x36])||(_0x52b81a=!0x1);}async function _0x5077a9(_0x3e27be,_0x347ca1,_0x5bd7fa){const _0x4a0851=window[_0x39d7f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39d7f8([0x66,0x72,0x6f,0x6d])](_0x4f1121(_0x5bd7fa),_0x3b1384=>_0x3b1384[_0x39d7f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16c6b6=new window[(_0x39d7f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39d7f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e27be+_0x39d7f8([0x2e])+_0x347ca1),_0x4631dd=window[_0x39d7f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39d7f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4631dd)return;const _0x511f2a=await _0x4631dd[_0x39d7f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39d7f8([0x6a,0x77,0x6b]),_0x46e0f2,{[_0x39d7f8([0x6e,0x61,0x6d,0x65])]:_0x39d7f8([0x45,0x43,0x44,0x53,0x41]),[_0x39d7f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39d7f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39d7f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4631dd[_0x39d7f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39d7f8([0x6e,0x61,0x6d,0x65])]:_0x39d7f8([0x45,0x43,0x44,0x53,0x41]),[_0x39d7f8([0x68,0x61,0x73,0x68])]:{[_0x39d7f8([0x6e,0x61,0x6d,0x65])]:_0x39d7f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x511f2a,_0x4a0851,_0x16c6b6)||(_0x52b81a=!0x1);}}function _0x10c92d(_0x348f85){return _0x348f85[_0x39d7f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39d7f8([0x65,0x79]))?JSON[_0x39d7f8([0x70,0x61,0x72,0x73,0x65])](_0x4f1121(_0x348f85)):null;}function _0x4f1121(_0x58c8e6){return window[_0x39d7f8([0x61,0x74,0x6f,0x62])](_0x58c8e6[_0x39d7f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39d7f8([0x2b]))[_0x39d7f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39d7f8([0x2f])));}function _0x57f6a2(_0x4faced){let _0x259649=0x1505;function _0x57b8d8(_0x5386ee){for(let _0x86df1b=0x0;_0x86df1b<_0x5386ee[_0x39d7f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x86df1b++){const _0x519646=_0x5386ee[_0x39d7f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x86df1b);_0x259649=(_0x259649<<0x5)+_0x259649+_0x519646,_0x259649&=_0x259649;}}function _0x41931f(_0x5034f1){Array[_0x39d7f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5034f1)?_0x5034f1[_0x39d7f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41931f):_0x5034f1&&typeof _0x5034f1==_0x39d7f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39d7f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5034f1)[_0x39d7f8([0x73,0x6f,0x72,0x74])]()[_0x39d7f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b7662,_0x1b15cb])=>{_0x57b8d8(_0x4b7662),_0x41931f(_0x1b15cb);}):_0x57b8d8(window[_0x39d7f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5034f1));}return _0x41931f(_0x4faced),_0x259649>>>0x0;}function _0x53f8b6(_0xb66564){return _0xb66564[_0x39d7f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39d7f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39d7f8([0x30]));}function _0x2e43fa(_0xcd384){return _0xcd384[_0x39d7f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39d7f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39d7f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x6a1b27(_0x54a1b2){return _0x5c50e1[_0x39d7f8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39d7f8([0x68,0x61,0x73])](_0x54a1b2);}function _0x11ccf7(_0x17ecdc){return _0x5c50e1[_0x39d7f8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39d7f8([0x67,0x65,0x74])](_0x17ecdc);}function _0x4c1402(){}function _0x39d7f8(_0x46f6b){return _0x46f6b['map'](_0x55c548=>String['fromCharCode'](_0x55c548))['join']('');}_0xf14a2(await _0x2e6ea7());}(this);}['createRevision'](_0x483554){const _0x2e6c0c=this['editor']['plugins']['get']('Users');return new a({'id':_0x483554['id'],'name':_0x483554['name'],'creator':_0x483554['creatorId']?_0x2e6c0c['getUser'](_0x483554['creatorId']):null,'diffData':_0x483554['diffData']||_0x483554['data'],'authors':_0x483554['authorsIds']['map'](_0xc04c5e=>_0x2e6c0c['getUser'](_0xc04c5e)),'createdAt':new Date(_0x483554['createdAt']),'attributes':_0x483554['attributes'],'fromVersion':_0x483554['fromVersion'],'toVersion':_0x483554['toVersion']});}['addRevision'](_0x2e198a,_0x3070b5=0x0){this['_revisions']['add'](_0x2e198a,_0x3070b5);}['getRevision'](_0x4e3575){return this['_revisions']['get'](_0x4e3575);}['getRevisions'](_0x175b18={'toJSON':!0x1}){const _0x174f18=Array['from'](this['_revisions']);return _0x174f18['reverse'](),_0x175b18['toJSON']?_0x174f18['map'](_0x4f0e1e=>_0x4f0e1e['toJSON']()):_0x174f18;}['getIndex'](_0x3317e2){return this['_revisions']['getIndex'](_0x3317e2);}['getEarlierVisibleRevision'](_0x1b593f){const [,_0x27cda7]=this['getRevisionsIterator'](_0x1b593f,{'direction':'earlier'});return _0x27cda7;}['getLaterVisibleRevision'](_0x56eb04){const [,_0x3a6422]=this['getRevisionsIterator'](_0x56eb04,{'direction':'later'});return _0x3a6422;}['getRevisionsInDiff'](_0x139623){const _0x3801ca=[];for(const _0x524d64 of this['getRevisionsIterator'](_0x139623['newRevisionId']))if(_0x3801ca['push'](_0x524d64),_0x524d64['id']===_0x139623['oldRevisionId'])break;return _0x3801ca;}*['getRevisionsIterator'](_0x169c21,{direction:_0x213617='earlier',filter:_0x545cee=()=>!0x0}={}){const _0x159c4e='earlier'===_0x213617?0x1:-0x1;let _0x32f721=this['_revisions']['get'](_0x169c21),_0x5a2012=this['getIndex'](_0x32f721);for(yield _0x32f721;_0x32f721;){if(_0x5a2012+=_0x159c4e,_0x32f721=this['getRevision'](_0x5a2012),!_0x32f721)return;_0x545cee(_0x32f721)&&(yield _0x32f721);}}}function R(_0x63319a,_0x2f70c3,_0x529ab3){const t=_0x63319a['t'];switch(_0x2f70c3){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'},_0x529ab3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x529ab3);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x17be35,'a':_0x4cb7a9,'e':_0x4981a3,'r':_0x478851,'u':_0x3248d9};class l extends _0x251bb4{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5574af,j,_0x29438d];}constructor(_0x481a8d){super(_0x481a8d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3c768f=_0x3b74fc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3c768f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x58950c=this['repository']['getRevision'](0x0),_0x14f1d7=_0x58950c&&null===_0x58950c['creator']?_0x58950c:null;if(this['_continueCurrentRevision']=!!_0x14f1d7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x351172=this['_source']['getCurrentRevisionId'](),_0x45ac07=this['repository']['getRevision'](_0x351172);if(_0x45ac07)this['_startingVersion']=_0x45ac07['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x460a46=this['_source']['history']['_operations']['find'](_0x25c379=>!_0x25c379['_isInit']),_0x3aa44b=_0x460a46?_0x460a46['baseVersion']:this['_source']['history']['version'];_0x58950c?(_0x58950c['toVersion']<_0x3aa44b&&_0x58950c['_update']({'toVersion':_0x3aa44b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x14f1d7['id'],this['_startingVersion']=_0x14f1d7['fromVersion']):(this['_startingVersion']=_0x58950c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3aa44b,this['_continueCurrentRevision']=!0x1);}}else _0x14f1d7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x14f1d7['toVersion'],this['editor']['model']['document']['history']['version']),_0x14f1d7['fromVersion']===_0x14f1d7['toVersion']?(0x0!==_0x14f1d7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x14f1d7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x14f1d7['id'],this['_startingVersion']=_0x14f1d7['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',_0x27b263=>!_0x27b263),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58a72b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27d94d;for(const _0x3f4608 in _0x58a72b){const _0x349539=_0x3f4608,_0x484a16=_0x58a72b[_0x349539];if('revisionHistoryLicenseKeyValid'==_0x484a16||'revisionHistoryLicenseKeyInvalid'==_0x484a16||'revisionHistoryLicenseKeyExpired'==_0x484a16||'revisionHistoryLicenseKeyDomainLimit'==_0x484a16||'revisionHistoryLicenseKeyNotAllowed'==_0x484a16||'revisionHistoryLicenseKeyEvaluationLimit'==_0x484a16||'revisionHistoryLicenseKeyTrialLimit'==_0x484a16||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x484a16||'revisionHistoryLicenseKeyUsageLimit'==_0x484a16){delete _0x58a72b[_0x349539],_0x27d94d=_0x484a16,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x27d94d&&_0x58a72b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x27d94d&&_0x58a72b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x27d94d&&_0x58a72b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x27d94d&&_0x58a72b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x27d94d&&_0x58a72b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x27d94d&&_0x58a72b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x27d94d&&_0x58a72b['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x27d94d&&_0x58a72b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x49ad08=this['repository']['getRevision'](0x0),_0x3527fb=await this['getRevisionDocumentData'](_0x49ad08),_0x8a2278=await this['getRevisionRootsAttributes'](_0x49ad08);this['_replaceEditorDataWithRevisionData'](_0x3527fb,_0x8a2278);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x10527b){this['_source']=_0x10527b;}async['update'](){const _0x2a56f0=await this['_source']['getLatestVersion']();if(_0x2a56f0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x174c40=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a56f0});_0x174c40['authors']=_0x174c40['authorsIds']['map'](_0x5986c0=>this['editor']['plugins']['get']('Users')['getUser'](_0x5986c0)),this['currentRevision']['_update'](_0x174c40);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x45636d={},_0x120b89=null){const _0x11fecc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x120b89>this['currentRevision']['toVersion']&&(_0x120b89=null),null===_0x120b89&&(_0x120b89=await this['_source']['getLatestVersion']());const _0x49044d=this['_getFromVersion'](_0x120b89),_0x56887c=this['buildRevisionData']({'from':_0x49044d,'to':_0x120b89});if(this['currentRevision']['toVersion']<_0x120b89){const _0x3ba93a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x120b89,'to':_0x120b89});_0x3ba93a['authors']=[],_0x3ba93a['authorsIds']=[],_0x3ba93a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3ba93a,!0x0),delete _0x3ba93a['authors'],_0x11fecc['push'](_0x3ba93a);}_0x45636d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x45636d['name']=_0x45636d['name']||null,_0x45636d['id']=_0x45636d['id']||_0x3b74fc(),_0x45636d={..._0x45636d,..._0x56887c};const _0x317160=this['addRevisionData'](_0x45636d);_0x11fecc['push'](_0x45636d);const _0x281544=this['repository']['getIndex'](_0x317160);if(0x0!==_0x281544){const _0x176f32=this['repository']['getRevision'](_0x281544-0x1);if(_0x176f32['fromVersion']!==_0x120b89){const _0x3378ff=this['_revisionDataBuilder']['getData'](_0x120b89,_0x176f32['toVersion']),_0xfe1b8={'id':_0x176f32['id'],'diffData':_0x3378ff['diffData'],'authorsIds':_0x3378ff['authorsIds'],'authors':_0x3378ff['authorsIds']['map'](_0x45ab3c=>this['editor']['plugins']['get']('Users')['getUser'](_0x45ab3c)),'fromVersion':_0x120b89};_0x176f32===this['currentRevision']&&(_0xfe1b8['createdAt']=new Date(_0x45636d['createdAt']['getTime']()+0xa)),_0x176f32['_update'](_0xfe1b8,!0x0),delete _0xfe1b8['authors'],_0x11fecc['push'](_0xfe1b8);}}if(this['adapter']){for(const _0x1bea3b of _0x11fecc)this['_bufferUpdate'](_0x1bea3b['id'],_0x1bea3b,!0x0);this['sendBufferedUpdates']();}return _0x317160;}['addRevisionData'](_0x20e902){const _0x186e05=this['repository']['createRevision'](_0x20e902);return this['adapter']&&_0x186e05['on']('_update',(_0x1d1b1a,_0x21c92c,_0x4e3646)=>{_0x4e3646||(this['_bufferUpdate'](_0x21c92c['id'],_0x21c92c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x186e05,this['_findInsertionIndex'](_0x186e05)),_0x186e05;}async['getRevisionDocumentData'](_0x196f06){await this['_loadRevisionData'](_0x196f06);const _0x49a685={};for(const _0x261e0f in _0x196f06['diffData']){if(_0x196f06['diffData'][_0x261e0f]['attachChange']&&!_0x196f06['diffData'][_0x261e0f]['attachChange']['isAttached'])continue;const _0x7af308=this['_removeRevisionMarkers'](JSON['parse'](_0x196f06['diffData'][_0x261e0f]['insertions'])),_0x11fdaf=this['editor']['editing']['view']['document'],_0x4dffb7=new _0x6ca5de(_0x11fdaf,_0x7af308['map'](_0x1ca8ef=>V(_0x1ca8ef,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x49a685[_0x261e0f]=this['editor']['data']['processor']['toData'](_0x4dffb7),this['editor']['data']['processor']['useFillerType']('default');}return _0x49a685;}async['getRevisionRootsAttributes'](_0x1f25e3){await this['_loadRevisionData'](_0x1f25e3);const _0x51c15f={};for(const _0x39ed1c in _0x1f25e3['diffData'])_0x1f25e3['diffData'][_0x39ed1c]['attachChange']&&!_0x1f25e3['diffData'][_0x39ed1c]['attachChange']['isAttached']||(_0x51c15f[_0x39ed1c]=_0x1f25e3['diffData'][_0x39ed1c]['attributesAfter']||{});return _0x51c15f;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x31ecdb=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe752db=0x0;_0xe752db<_0x31ecdb['length'];_0xe752db++){const _0x42a053=_0x31ecdb[_0xe752db];let _0x414931=!0x1;for(const _0xe9286e of Object['keys'](_0x42a053))void 0x0===_0x42a053[_0xe9286e]?delete _0x42a053[_0xe9286e]:'id'!==_0xe9286e&&(_0x414931=!0x0);_0x414931||(_0x31ecdb[_0xe752db]=null);}if(_0x31ecdb=_0x31ecdb['filter'](_0x369a81=>null!==_0x369a81),!_0x31ecdb['length'])return;for(let _0x298f50=0x0;_0x298f50<_0x31ecdb['length'];_0x298f50++){const _0x594663=_0x31ecdb[_0x298f50];void 0x0!==_0x594663['fromVersion']&&void 0x0===_0x594663['toVersion']&&(_0x594663['toVersion']=this['repository']['getRevision'](_0x594663['id'])['toVersion']),void 0x0!==_0x594663['toVersion']&&void 0x0===_0x594663['fromVersion']&&(_0x594663['fromVersion']=this['repository']['getRevision'](_0x594663['id'])['fromVersion']);}const _0x317b39=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x31ecdb,_0x317b39)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1b8444=>{if(_0x1b8444){for(const _0x55429f of _0x1b8444)this['setRevisionData']({'id':_0x55429f['id'],'createdAt':_0x55429f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a67ce,_0x40e88f){let _0x44349e=this['editor']['config']['get']('initialData'),_0x16ce5c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x44349e){_0x44349e={};for(const _0x21484a of this['editor']['model']['document']['getRootNames']())_0x44349e[_0x21484a]='';}if('string'==typeof _0x44349e&&(_0x44349e={'main':_0x44349e}),void 0x0===_0x16ce5c){_0x16ce5c={};for(const _0x17de54 of this['editor']['model']['document']['getRootNames']())_0x16ce5c[_0x17de54]={};}let _0x2035cf=!0x1;const _0x27b1ee=Object['keys'](_0x44349e),_0x2e1cb4=Object['keys'](_0x1a67ce);for(const _0x10c847 of _0x27b1ee){if(_0x44349e[_0x10c847]!==_0x1a67ce[_0x10c847]&&''!==_0x44349e[_0x10c847]['trim']()){_0x2035cf=!0x0;break;}if(!_0x200d1b(_0x16ce5c[_0x10c847],_0x40e88f[_0x10c847])&&Object['keys'](_0x16ce5c[_0x10c847])['length']>0x0){_0x2035cf=!0x0;break;}}_0x2035cf||(_0x2035cf=_0x2e1cb4['some'](_0x3fa818=>!this['editor']['model']['document']['getRoot'](_0x3fa818))),_0x2035cf&&_0x380917('editor-initial-data-replaced-with-revision-data',{'editorData':_0x44349e,'editorRootsAttributes':_0x16ce5c,'revisionData':_0x1a67ce,'revisionRootsAttributes':_0x40e88f}),this['editor']['config']['set']('initialData',_0x1a67ce),this['editor']['config']['set']('rootsAttributes',_0x40e88f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x56eb35=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x56eb35['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2d8bb7){const _0x38df3f=this['repository']['getRevisions']();_0x38df3f['reverse']();let _0x26af8a=0x0;for(;_0x26af8a<_0x38df3f['length'];){const _0x2b5ca2=_0x38df3f[_0x26af8a];if(_0x2b5ca2===this['currentRevision']){_0x26af8a++;continue;}if(_0x2b5ca2['id']===this['_initialRevisionId'])break;const _0x3f3cbe=_0x2d8bb7['toVersion']-_0x2b5ca2['toVersion']||_0x2d8bb7['fromVersion']-_0x2b5ca2['fromVersion'];if(_0x3f3cbe>0x0)break;if(_0x3f3cbe<0x0)_0x26af8a++;else{if(!_0x2d8bb7['creator']&&_0x2b5ca2['creator'])break;if(_0x2b5ca2['creator']||!_0x2d8bb7['creator']){if(_0x2d8bb7['createdAt']>_0x2b5ca2['createdAt'])break;_0x26af8a++;}else _0x26af8a++;}}return _0x26af8a;}['setRevisionData'](_0x5e4a60){const _0x2f3287=this['repository']['getRevision'](_0x5e4a60['id']);if(_0x5e4a60['createdAt']&&(_0x5e4a60['createdAt']=new Date(_0x5e4a60['createdAt'])),_0x5e4a60['authorsIds']){const _0x4ca508=this['editor']['plugins']['get']('Users');_0x5e4a60['authors']=_0x5e4a60['authorsIds']['map'](_0x2f74f6=>_0x4ca508['getUser'](_0x2f74f6));}_0x2f3287['_update'](_0x5e4a60,!0x0);}['buildRevisionData']({revision:_0xb4d18e=null,from:_0xc17a3c=null,to:_0x1ee301=null}){_0xc17a3c=null!==_0xc17a3c?_0xc17a3c:_0xb4d18e['fromVersion'],_0x1ee301=null!==_0x1ee301?_0x1ee301:_0xb4d18e['toVersion'];const _0x590355=this['_revisionDataBuilder']['getData'](_0xc17a3c,_0x1ee301),_0x475294={'diffData':_0x590355['diffData'],'authorsIds':_0x590355['authorsIds'],'fromVersion':_0xc17a3c,'toVersion':_0x1ee301};if(!_0xb4d18e||_0x1ee301!==_0xb4d18e['toVersion']){const _0x41d6a9=_0x1ee301-0x1,_0x40cd89=this['_source']['history']['getOperation'](_0x41d6a9);_0x475294['createdAt']=_0x40cd89&&_0x40cd89['createdAt']||new Date();}if(this['_loadedStateData']&&_0xc17a3c===this['_loadedStateData']['fromVersion']){for(const _0x54218d of this['_loadedStateData']['authors'])_0x475294['authorsIds']['includes'](_0x54218d['id'])||_0x475294['authorsIds']['push'](_0x54218d['id']);}return _0x475294;}['_loadRevisionData'](_0x2aad30){if(!_0x2aad30||_0x2aad30['diffData'])return Promise['resolve']();{const _0x39fac1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x39fac1,'revisionId':_0x2aad30['id']})['then'](_0xc4ea1c=>{_0x2aad30['diffData']=_0xc4ea1c['diffData'];});}}['_bufferUpdate'](_0x3e000d,_0x37e108,_0x387241){if(this['_bufferedUpdates']['has'](_0x3e000d)){const _0x569946=this['_bufferedUpdates']['get'](_0x3e000d);_0x37e108=_0x387241?{..._0x569946,..._0x37e108}:{..._0x37e108,..._0x569946};}this['_bufferedUpdates']['set'](_0x3e000d,_0x37e108);}['_getFromVersion'](_0x3f6e7c){const _0x486285=this['repository']['getRevisions']();_0x486285['reverse'](),_0x486285['shift']();const _0x3ee6de=_0x486285['find'](_0x31eb3a=>_0x31eb3a['toVersion']<=_0x3f6e7c)['toVersion'];return _0x3ee6de<this['_startingVersion']?this['_startingVersion']:_0x3ee6de;}['_createInitialRevision'](_0x2d910c){const _0x590132=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x590132)this['_initialRevisionId']=_0x590132['id'];else{const _0x18559f=!this['editor']['model']['document']['roots']['find'](_0x4afcd6=>this['editor']['model']['hasContent'](_0x4afcd6)),_0x4d75a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x6a2ba2=R(this['editor']['locale'],_0x18559f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2d910c,'to':_0x2d910c,'id':this['_initialRevisionId'],'name':_0x6a2ba2,'creatorId':_0x4d75a0});}}['_createCurrentRevision'](_0x3dd53a){const _0x457501=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x457501),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3dd53a,'to':_0x3dd53a,'id':_0x457501,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5ac820,from:_0x169953,to:_0x2611e4,creatorId:_0x3ef53b,id:_0x470816}){const _0x786a3a=this['buildRevisionData']({'from':_0x169953,'to':_0x2611e4});_0x786a3a['name']=_0x5ac820,_0x786a3a['creatorId']=_0x3ef53b,_0x786a3a['id']=_0x470816;const _0x34e53f=this['addRevisionData'](_0x786a3a);return this['adapter']&&this['_bufferUpdate'](_0x786a3a['id'],_0x786a3a,!0x0),_0x34e53f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x35b6b3){return(_0x35b6b3=_0x35b6b3['filter'](_0x2c3f41=>!_0x2c3f41['name']||'revision-start'!==_0x2c3f41['name']&&'revision-end'!==_0x2c3f41['name']))['forEach'](_0x1d485f=>{'string'!=typeof _0x1d485f&&(_0x1d485f['children']=this['_removeRevisionMarkers'](_0x1d485f['children']),_0x1d485f['attributes']=_0x1d485f['attributes']['filter'](_0xd6e275=>!_0xd6e275[0x0]['startsWith']('data-revision-')));}),_0x35b6b3;}}function V(_0x3b2be9,_0x2c5c8e){const _0x1d30a2=_0x2c5c8e['editing']['view']['document'];if('string'==typeof _0x3b2be9)return new _0x478b27(_0x1d30a2,_0x3b2be9);{const _0x5daa14=_0x3b2be9['children']['map'](_0x4fb2db=>V(_0x4fb2db,_0x2c5c8e));return new(C[_0x3b2be9['type']]||_0x753289)(_0x1d30a2,_0x3b2be9['name'],_0x3b2be9['attributes'],_0x5daa14);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2227a3){this['editor']=_0x2227a3,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'](_0x425fe4){this['source']=_0x425fe4;const _0xffd73e=new Map(),_0x5c54a0=new Map(),_0x26945=this['editor']['model']['document']['roots']['map'](_0x33afe9=>_0x33afe9['rootName']);for(const _0x2286c4 of _0x26945){const _0x3b18ed=this['editor']['model']['document']['getRoot'](_0x2286c4),_0x7b91b2=F(_0x3b18ed);_0xffd73e['set'](_0x2286c4,_0x7b91b2),_0x5c54a0['set'](_0x2286c4,Object['fromEntries'](_0x3b18ed['getAttributes']()));}const _0xb6c225=Array['from'](this['editor']['model']['markers'])['map'](_0x48331f=>[_0x48331f['name'],_0x48331f['getRange']()]),_0x5c2fd9=this['source']['version'];this['_saveMetaData'](_0x5c2fd9,_0xffd73e,_0xb6c225,_0x5c54a0),this['_startingRevisionId']=this['_revisionId'];const _0x13a712=new Map(),_0x5e6288=new Map();for(const _0x1af858 of _0x26945){const _0x440902=B(_0x1af858);_0x13a712['set'](_0x1af858,_0x440902),_0x5e6288['set'](_0x1af858,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x13a712,[],_0x5e6288);}['getData'](_0x2e39f5,_0x1ff37c){if(this['_lastFrom']===_0x2e39f5&&this['_lastTo']<=_0x1ff37c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ff37c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e39f5)){const _0x3dde21=this['_getPreviousFrom'](_0x2e39f5);this['_calculateMetaData'](_0x3dde21,_0x2e39f5,!0x1);}this['_calculateMetaData'](_0x2e39f5,_0x1ff37c,!0x0);}return this['_lastFrom']=_0x2e39f5,this['_lastTo']=_0x1ff37c,this['_getState']();}['loadState'](_0x2a6291){this['_reset'](),this['_lastFrom']=_0x2a6291['fromVersion'],this['_lastTo']=_0x2a6291['toVersion'];for(const _0x4580e2 in _0x2a6291['diffData']){const _0x2f63fa=_0x2a6291['diffData'][_0x4580e2]['attachChange'],_0x1a7b03=_0x41eccd(_0x2a6291['diffData'][_0x4580e2]['attributesBefore'])||{},_0x18bbc9=this['_makeModelFromViewString'](_0x2a6291['diffData'][_0x4580e2]['deletions']);_0x18bbc9['rootName']=_0x4580e2,_0x18bbc9['_isAttached']=!_0x2f63fa||!_0x2f63fa['isAttached'],_0x18bbc9['isAttached']=()=>_0x18bbc9['_isAttached'],this['_baseRoots']['set'](_0x4580e2,_0x18bbc9),this['_baseRootsAttributes']['set'](_0x4580e2,_0x1a7b03),_0x2f63fa&&this['_touchedRoots']['set'](_0x4580e2,_0x2f63fa);const _0x523bf5=this['_makeIdsRoot'](_0x18bbc9);this['_baseIdsRoots']['set'](_0x4580e2,_0x523bf5);for(const [_0x40c802,_0x2b6469]of _0x18bbc9['markers']){if(!_0x40c802['startsWith']('revision:'))continue;const _0x173df9=_0x40c802['split'](':')[0x2];for(const _0x4f17ea of _0x2b6469['getWalker']({'singleCharacters':!0x0})){const _0x181aa5=this['_getVidAttributeName'](_0x4f17ea),_0x362c4a='elementEnd'==_0x4f17ea['type']?_0x4f17ea['previousPosition']['path']['slice'](0x0,-0x1):_0x4f17ea['previousPosition']['path'],_0x1bc46c=_0x523bf5['getNodeByPath'](_0x362c4a)['getAttribute'](_0x181aa5);this['_touched']['set'](_0x1bc46c,{'userId':_0x173df9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x336f3f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4a14b9=>!this['_touched']['has'](_0x4a14b9));let _0x4837c7=0x0;const _0x19b3c5=new Map();for(const _0x34658a in _0x2a6291['diffData']){const _0x1cdc21=_0x2a6291['diffData'][_0x34658a]['attachChange'],_0x1ccd89=_0x41eccd(_0x2a6291['diffData'][_0x34658a]['attributesAfter'])||{},_0x5d4510=this['_makeModelFromViewString'](_0x2a6291['diffData'][_0x34658a]['insertions']);_0x5d4510['rootName']=_0x34658a,_0x5d4510['_isAttached']=!_0x1cdc21||_0x1cdc21['isAttached'],_0x5d4510['isAttached']=()=>_0x5d4510['_isAttached'],this['_diffRoots']['set'](_0x34658a,_0x5d4510),this['_diffRootsAttributes']['set'](_0x34658a,_0x1ccd89);const _0x725b18=this['_makeIdsRoot'](_0x5d4510,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x34658a,_0x725b18),_0x19b3c5['set'](_0x34658a,_0x5d4510['isAttached']()?_0x1ccd89:{});for(const [_0x1531ea,_0x112033]of _0x5d4510['markers']){if(!_0x1531ea['startsWith']('revision:'))continue;const _0x3d233f=_0x1531ea['split'](':')[0x2];for(const _0xb7018 of _0x112033['getWalker']({'singleCharacters':!0x0})){const _0x1baecd=this['_getVidAttributeName'](_0xb7018),_0x1161b5=this['_revisionId']++,_0x54fa08='elementEnd'==_0xb7018['type']?_0xb7018['previousPosition']['path']['slice'](0x0,-0x1):_0xb7018['previousPosition']['path'];_0x725b18['getNodeByPath'](_0x54fa08)['_setAttribute'](_0x1baecd,_0x1161b5),this['_touched']['set'](_0x1161b5,{'userId':_0x3d233f});}}for(const _0x37c94e of this['editor']['model']['createRangeIn'](_0x5d4510)['getWalker']({'singleCharacters':!0x0})){const _0xfede4a=this['_getVidAttributeName'](_0x37c94e),_0x325b97='elementEnd'==_0x37c94e['type']?_0x37c94e['previousPosition']['path']['slice'](0x0,-0x1):_0x37c94e['previousPosition']['path'],_0x23abcf=_0x725b18['getNodeByPath'](_0x325b97);_0x23abcf['getAttribute'](_0xfede4a)>0x0||_0x23abcf['_setAttribute'](_0xfede4a,_0x336f3f[_0x4837c7++]);}for(const [_0x3a319b,_0x361c3a]of _0x5d4510['markers'])_0x3a319b['startsWith']('revision:')||this['_markers']['set'](_0x3a319b,_0x361c3a);}const _0x502d74=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x502d74),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x502d74,0x1));const _0x47ffaf=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x47ffaf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47ffaf,0x1));const _0x19d12c=Array['from'](this['_diffRoots'])['map'](([_0x43a614,_0x504015])=>[_0x43a614,F(_0x504015)]);this['_saveMetaData'](this['_lastTo'],_0x19d12c,this['_markers'],_0x19b3c5);}['_makeModelFromViewString'](_0xe8ed4d){const _0x2d7bdd=JSON['parse'](_0xe8ed4d),_0x44fde3=this['editor']['editing']['view']['document'],_0x5b5556=new _0x6ca5de(_0x44fde3,_0x2d7bdd['map'](_0x4ca17e=>V(_0x4ca17e,this['editor'])));return this['editor']['data']['toModel'](_0x5b5556);}['_saveMetaData'](_0x4fd90b,_0x3de75b,_0x3ae3d9,_0x28af81){const _0x1815cb=new Map(_0x3de75b),_0x4b3e91=new Map(_0x41eccd(_0x28af81)),_0xd6c7ca=new Map();for(const [_0x1ecc37,_0x40dc72]of _0x3ae3d9)_0xd6c7ca['set'](_0x1ecc37,{'start':_0x40dc72['start']['clone'](),'end':_0x40dc72['end']['clone'](),'rootName':_0x40dc72['root']['rootName']});this['_savedMetaData']['set'](_0x4fd90b,{'roots':_0x1815cb,'markers':_0xd6c7ca,'rootsAttributes':_0x4b3e91});}['_removeMetaData'](_0x34e0fe){this['_savedMetaData']['delete'](_0x34e0fe);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x44fe66,_0x3b5500=null){let _0x49c3fe=null;_0x44fe66['is']('documentFragment')||(_0x49c3fe=new ft(_0x44fe66['name'],{'vid_start':null===_0x3b5500?this['_revisionId']++:_0x3b5500++}));const _0xfb5e24=[];for(const _0x482f7f of _0x44fe66['getChildren']())if(_0x482f7f['is']('element')){_0xfb5e24['push'](this['_makeIdsRoot'](_0x482f7f,_0x3b5500));const _0x536b2c=_0xfb5e24[_0xfb5e24['length']-0x1];null!==_0x3b5500&&(_0x3b5500=_0x536b2c['is']('element','$text')?_0x536b2c['getAttribute']('vid')+0x1:_0x536b2c['getAttribute']('vid_end')+0x1);}else{for(let _0x514bfe=0x0;_0x514bfe<_0x482f7f['offsetSize'];_0x514bfe++)_0xfb5e24['push'](new ft('$text',{'vid':null===_0x3b5500?this['_revisionId']++:_0x3b5500++}));}if(_0x44fe66['is']('documentFragment')){const _0x31c692=B(_0x44fe66['rootName']);return _0x31c692['_insertChild'](0x0,_0xfb5e24),_0x31c692;}return _0x49c3fe['_setAttribute']('vid_end',null===_0x3b5500?this['_revisionId']++:_0x3b5500++),_0x49c3fe['_insertChild'](0x0,_0xfb5e24),_0x49c3fe;}['_calculateMetaData'](_0x428157,_0x13b8fd,_0x5f3752){this['_reset']();const {roots:_0x55d3c6,markers:_0xefa35d,rootsAttributes:_0xabdd7b}=this['_savedMetaData']['get'](_0x428157);this['_baseRoots']=new Map(_0x55d3c6),this['_baseRootsAttributes']=new Map(_0x41eccd(_0xabdd7b));for(const [_0x5191eb,_0x5951db]of this['_baseRoots'])if('$graveyard'!==_0x5191eb&&(this['_diffRoots']['set'](_0x5191eb,F(_0x5951db)),this['_diffRootsAttributes']=new Map(_0x41eccd(_0xabdd7b)),_0x5f3752)){const _0x50f257=this['_revisionId'];this['_idsRoots']['set'](_0x5191eb,this['_makeIdsRoot'](_0x5951db)),this['_baseIdsRoots']['set'](_0x5191eb,this['_makeIdsRoot'](_0x5951db,_0x50f257));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5f3752&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x350df5,_0xeac368]of _0xefa35d){const _0x4a32a3=this['_baseRoots']['get'](_0xeac368['rootName']),_0x159cd5=this['_diffRoots']['get'](_0xeac368['rootName']),_0x4186e7=new vt(this['_fixPosition'](_0xeac368['start'],_0x4a32a3),this['_fixPosition'](_0xeac368['end'],_0x4a32a3)),_0x384fe5=this['_fixRange'](_0x4186e7,_0x159cd5);_0x4a32a3['markers']['set'](_0x350df5,_0x4186e7),this['_markers']['set'](_0x350df5,_0x384fe5);}this['_applyOperations'](_0x428157,_0x13b8fd,_0x5f3752);}['_applyOperations'](_0x2b4216,_0x2cfee3,_0x1481dc){for(const _0x4c0296 of this['source']['getOperations'](_0x2b4216,_0x2cfee3))this['_handleOperation'](_0x4c0296,_0x1481dc);for(const _0x2b1844 of this['_diffRoots']['values']())_0x2b1844['markers']['clear']();for(const [_0x2239e,_0xca3d99]of this['_markers']){this['_diffRoots']['get'](_0xca3d99['root']['rootName'])['markers']['set'](_0x2239e,_0xca3d99['clone']());}const _0x1acb8e=new Map(),_0x358694=new Map();for(const [_0x262666,_0x2bc011]of this['_diffRoots'])_0x1acb8e['set'](_0x262666,F(_0x2bc011)),_0x358694['set'](_0x262666,this['_diffRootsAttributes']['get'](_0x262666));this['_saveMetaData'](_0x2cfee3,_0x1acb8e,this['_markers'],_0x358694);}['_getPreviousFrom'](_0x3c54eb){const _0x360f03=Array['from'](this['_savedMetaData']['keys']());_0x360f03['sort']((_0x20655c,_0x6fab15)=>_0x20655c-_0x6fab15),_0x360f03['reverse']();for(const _0x5d38cd of _0x360f03)if(_0x5d38cd<_0x3c54eb)return _0x5d38cd;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xe8b9e3,_0x172d29){const _0x3a370e=Array['from'](_0x172d29['markers'])['map'](([_0x3d6377,_0x3d559a])=>[_0x3d6377,this['_fixRange'](_0x3d559a,_0xe8b9e3)]);_0xe8b9e3['markers']=new Map(_0x3a370e);}['_transformMarkers'](_0x132040){for(const _0x4d0700 of this['_markers']['values']()){const _0x549b82=_0x4d0700['getTransformedByOperation'](_0x132040),_0x264b7c=vt['_createFromRanges'](_0x549b82);_0x4d0700['start']=_0x264b7c['start'],_0x4d0700['end']=_0x264b7c['end'];}}['_handleOperation'](_0x349515,_0x21acde){if('addRoot'!=_0x349515['type']&&'detachRoot'!=_0x349515['type']){if('insert'==_0x349515['type']){const _0x432905=_0x349515['position']['root']['rootName'];this['_diffRoots']['has'](_0x432905)||(this['_diffRoots']['set'](_0x432905,B(_0x432905,!0x0)),this['_diffRootsAttributes']['set'](_0x432905,{}),_0x21acde&&this['_idsRoots']['set'](_0x432905,B(_0x432905,!0x0)));}else{if('addRootAttribute'==_0x349515['type']||'removeRootAttribute'==_0x349515['type']||'changeRootAttribute'==_0x349515['type'])return void this['_handleRootAttributeOperation'](_0x349515);'marker'==_0x349515['type']&&this['_handleMarkerOperation'](_0x349515);}if('marker'!==_0x349515['type']){const _0x1cc720=this['_cloneOperation'](_0x349515,this['_diffRoots']);_0x1cc720['_execute'](),this['_transformMarkers'](_0x1cc720);}if(_0x21acde)switch(_0x349515['type']){case'insert':this['_handleInsertOperation'](_0x349515);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x349515);break;case'merge':this['_handleMergeOperation'](_0x349515);break;case'split':this['_handleSplitOperation'](_0x349515);}}else this['_handleRootOperation'](_0x349515,_0x21acde);}['_cloneOperation'](_0x160a93,_0x1ec9dc){const _0x23a8f0=_0x160a93['clone']();return _0x23a8f0['_authorId']=_0x160a93['_authorId'],this['_fixOperation'](_0x23a8f0,_0x1ec9dc),_0x23a8f0;}['_getBaseVids'](_0x1f7767){return _0x1f7767['map'](_0x21008a=>{const _0x54ebaf=this['_getVidAttributeName'](_0x21008a);return Number(_0x21008a['item']['getAttribute'](_0x54ebaf));});}['_generateTape'](_0x1b561c,_0x5c0dbd){if(_0x1b561c['is']('element','$text'))_0x5c0dbd['push']({'item':_0x1b561c,'type':'text'});else{_0x1b561c['is']('element')&&_0x5c0dbd['push']({'item':_0x1b561c,'type':'elementStart'});for(const _0x71d01 of _0x1b561c['getChildren']())this['_generateTape'](_0x71d01,_0x5c0dbd);_0x1b561c['is']('element')&&_0x5c0dbd['push']({'item':_0x1b561c,'type':'elementEnd'});}return _0x5c0dbd;}['_getState'](){const _0x552ba4=new Map(this['_touched']),_0x4afda6=new Map(_0x552ba4),_0x46a470=new Map(),_0x3ec246={'insertions':{},'deletions':{}},_0x29aa6d={'insertions':{},'deletions':{}},_0x4c7d1d=new Map(),_0x505c13=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x505c13['delete']('$graveyard');for(const _0x59744b of _0x505c13){const _0x349581=this['_diffRoots']['get'](_0x59744b)||B(_0x59744b,!0x1),_0xb0ada5=this['_baseRoots']['get'](_0x59744b)||B(_0x59744b,!0x1);_0x349581['isAttached']()||_0xb0ada5['isAttached']()?(_0x3ec246['insertions'][_0x59744b]=F(_0x349581),_0x3ec246['deletions'][_0x59744b]=F(_0xb0ada5),this['_copyMarkers'](_0x3ec246['deletions'][_0x59744b],_0xb0ada5),this['_copyMarkers'](_0x3ec246['insertions'][_0x59744b],_0x349581),_0x29aa6d['insertions'][_0x59744b]=this['_generateTape'](this['_idsRoots']['get'](_0x59744b),[]),_0x29aa6d['deletions'][_0x59744b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59744b)||B(_0x59744b,!0x1),[])):_0x505c13['delete'](_0x59744b);}for(const _0x297e77 of _0x505c13){const _0x33d67e=_0x29aa6d['insertions'][_0x297e77];for(const _0x157da8 of _0x33d67e){const _0x33938b=this['_getVidAttributeName'](_0x157da8),_0x42222a=_0x157da8['item']['getAttribute'](_0x33938b);_0x4afda6['delete'](_0x42222a),_0x42222a>=this['_startingRevisionId']&&_0x46a470['set'](_0x42222a,_0x552ba4['get'](_0x42222a));}}for(const _0x3e780d of _0x505c13){const _0x1dab6f=_0x29aa6d['insertions'][_0x3e780d],_0x1a5a16=this['_getBaseVids'](_0x29aa6d['deletions'][_0x3e780d]);let _0x401913=0x0;for(const _0x44b58d of _0x1dab6f){const _0x43ba07=this['_getVidAttributeName'](_0x44b58d),_0x137e1a=_0x44b58d['item']['getAttribute'](_0x43ba07);if(!_0x46a470['has'](_0x137e1a)&&!_0x4c7d1d['has'](_0x137e1a)){if(_0x4afda6['has'](_0x137e1a))_0x401913++;else{if(_0x137e1a!=_0x1a5a16[_0x401913]){const _0x267111=_0x552ba4['get'](_0x137e1a)||_0x552ba4['get'](_0x1a5a16[_0x401913]);for(;_0x137e1a!=_0x1a5a16[_0x401913];)_0x4afda6['has'](_0x1a5a16[_0x401913])||(_0x4c7d1d['set'](_0x1a5a16[_0x401913],_0x267111),_0x552ba4['set'](_0x1a5a16[_0x401913],_0x267111)),_0x401913++;}_0x401913++;}}}}for(const _0x37e476 of _0x505c13){const _0x42db8a=_0x29aa6d['insertions'][_0x37e476];for(const _0x18ab6c of _0x42db8a){const _0x26bcec=this['_getVidAttributeName'](_0x18ab6c),_0x52b43b=_0x18ab6c['item']['getAttribute'](_0x26bcec);if(_0x4c7d1d['has'](_0x52b43b)){const _0x57887d=_0x4c7d1d['get'](_0x52b43b);_0x4afda6['has'](_0x52b43b)||_0x4afda6['set'](_0x52b43b,{..._0x57887d}),_0x46a470['set'](_0x52b43b,{..._0x57887d});}}}for(const _0x382ce4 of _0x4afda6['keys']())_0x382ce4>=this['_startingRevisionId']&&_0x4afda6['delete'](_0x382ce4);const _0x1fce02=new Map();for(const _0x123639 of _0x505c13){let _0x452424=_0x29aa6d['insertions'][_0x123639];for(const _0x1b006c of _0x452424)if(_0x1b006c['item']['is']('element','tableCell')){const _0x294018=this['_getVidAttributeName'](_0x1b006c),_0x19ab99=_0x1b006c['item']['getAttribute'](_0x294018);if(_0x46a470['has'](_0x19ab99)){const _0x3b6590=_0x1b006c['item']['parent']['parent']['getAttribute']('vid_start'),_0xc5c83=_0x1fce02['get'](_0x3b6590)||new Set();_0xc5c83['add'](_0x46a470['get'](_0x19ab99)['userId']),_0x1fce02['set'](_0x3b6590,_0xc5c83);}}_0x452424=_0x29aa6d['deletions'][_0x123639];for(const _0xdafe00 of _0x452424)if(_0xdafe00['item']['is']('element','tableCell')){const _0x354caa=this['_getVidAttributeName'](_0xdafe00),_0x59f0b8=_0xdafe00['item']['getAttribute'](_0x354caa);if(_0x4afda6['has'](_0x59f0b8)){const _0x520d91=_0xdafe00['item']['parent']['parent']['getAttribute']('vid_start'),_0x924c66=_0x1fce02['get'](_0x520d91)||new Set();_0x924c66['add'](_0x4afda6['get'](_0x59f0b8)['userId']),_0x1fce02['set'](_0x520d91,_0x924c66);}}for(const _0x54fa9b of _0x1fce02['keys']())(_0x46a470['has'](_0x54fa9b)||_0x4afda6['has'](_0x54fa9b))&&_0x1fce02['delete'](_0x54fa9b);}for(const _0x4a4b86 of _0x505c13){const _0x32d794=_0x29aa6d['insertions'][_0x4a4b86];let _0x3b0f32=null,_0x2204fe=null;for(const _0x56132b of _0x32d794){const _0x272b85=this['_getVidAttributeName'](_0x56132b),_0x530cf0=_0x56132b['item']['getAttribute'](_0x272b85),_0x867922=_0x1fce02['get'](_0x530cf0);_0x867922&&'elementStart'==_0x56132b['type']&&(_0x3b0f32=Array['from'](_0x867922)[0x0],_0x2204fe=_0x56132b['item']['getAttribute']('vid_end')),_0x3b0f32&&(_0x4afda6['set'](_0x530cf0,{'userId':_0x3b0f32}),_0x46a470['set'](_0x530cf0,{'userId':_0x3b0f32})),_0x530cf0==_0x2204fe&&(_0x3b0f32=null,_0x2204fe=null);}}const _0x3cdb82={},_0x39ed9f=new Set();for(const _0xe7145d of _0x505c13){const _0x32548a=_0x3ec246['deletions'][_0xe7145d],_0x265f28=_0x3ec246['insertions'][_0xe7145d];for(const {userId:_0x2d2f0b}of this['_touchedMarkers']['values']())null!==_0x2d2f0b&&_0x39ed9f['add'](_0x2d2f0b);for(const {userId:_0x433c6a}of this['_touchedRoots']['values']())null!==_0x433c6a&&_0x39ed9f['add'](_0x433c6a);this['_markChanges'](_0x265f28,_0x29aa6d['insertions'][_0xe7145d],_0x46a470,'insertion',_0x39ed9f),this['_markChanges'](_0x32548a,_0x29aa6d['deletions'][_0xe7145d],_0x4afda6,'deletion',_0x39ed9f),_0x3cdb82[_0xe7145d]={'insertions':this['_prepareViewToSave'](_0x265f28),'deletions':this['_prepareViewToSave'](_0x32548a),'attachChange':this['_touchedRoots']['get'](_0xe7145d)||null,'attributesBefore':_0x41eccd(this['_baseRootsAttributes']['get'](_0xe7145d))||{},'attributesAfter':_0x41eccd(this['_diffRootsAttributes']['get'](_0xe7145d))};}return{'diffData':_0x3cdb82,'authorsIds':Array['from'](_0x39ed9f)};}['_processRootBeforeSave'](_0x26309e){for(const [,_0x4043bb]of _0x26309e['markers']){const _0x3b1d27=_0x4043bb['start']['getAncestors']()['filter'](_0x44476a=>'tableCell'==_0x44476a['name']);for(const _0x52f951 of _0x3b1d27)0x1==_0x52f951['childCount']&&_0x52f951['getChild'](0x0)['is']('element','paragraph')&&_0x52f951['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xaca479){this['_processRootBeforeSave'](_0xaca479);const _0x2b2971=this['editor']['data']['toView'](_0xaca479,{}),_0x439cd7=Array['from'](_0x2b2971['getChildren']())['map'](_0xbb1d58=>this['_getViewJson'](_0xbb1d58));return JSON['stringify'](_0x439cd7);}['_getViewJson'](_0x2c9b0c){if(_0x2c9b0c['is']('$text'))return _0x2c9b0c['data'];{const _0x95d4a0=_0x2c9b0c;return{'type':Object['keys'](C)['find'](_0x42959f=>_0x2c9b0c instanceof C[_0x42959f]),'name':_0x95d4a0['name'],'attributes':Array['from'](_0x95d4a0['getAttributes']()),'children':Array['from'](_0x95d4a0['getChildren']())['map'](_0x54c471=>this['_getViewJson'](_0x54c471))};}}['_markChanges'](_0xa7155c,_0x5130c1,_0x299d58,_0x15f9c5,_0x16316c){let _0x2857f6=null,_0xeda03d=null,_0x56c49f=0x0;const _0x1a2c5f=this['editor']['model'];for(let _0x46d25f=0x0;_0x46d25f<_0x5130c1['length'];_0x46d25f++){const _0xd3d202=this['_getVidAttributeName'](_0x5130c1[_0x46d25f]),_0x1db637=_0x5130c1[_0x46d25f]['item']['getAttribute'](_0xd3d202),_0x58779a=_0x299d58['get'](_0x1db637),_0x37201e=_0x46d25f==_0x5130c1['length']-0x1;(!_0x2857f6&&_0x58779a&&(_0x2857f6=_0x58779a,_0xeda03d=_0x5130c1[_0x46d25f]),_0x2857f6&&(!_0x58779a||_0x58779a['userId']!=_0x2857f6['userId']))&&(_0x450cc7(_0x58779a,J(_0xeda03d,_0xa7155c,_0x1a2c5f),J(_0x5130c1[_0x46d25f],_0xa7155c,_0x1a2c5f)),_0x2857f6=_0x58779a||null,_0xeda03d=_0x58779a?_0x5130c1[_0x46d25f]:null),_0x2857f6&&_0x37201e&&_0x450cc7(_0x58779a,J(_0xeda03d,_0xa7155c,_0x1a2c5f),q(_0x5130c1[_0x46d25f],_0xa7155c,_0x1a2c5f));}function _0x450cc7(_0x1b9969,_0x1dbfc5,_0x1703f9){const _0x3790d4=_0x2857f6['userId'],_0x12e49e='revision:'+_0x15f9c5+':'+_0x3790d4+':'+_0x56c49f++,_0x5dbc83=_0x1a2c5f['createRange'](_0x1dbfc5,_0x1703f9);_0xa7155c['markers']['set'](_0x12e49e,_0x5dbc83),null!==_0x3790d4&&_0x16316c['add'](_0x3790d4);}}['_getVidAttributeName'](_0x5d67f4){switch(_0x5d67f4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2aa4fe,_0x1c4f8d){_0x2aa4fe['baseVersion']=null;for(const _0x13c1f4 in _0x2aa4fe){const _0x39d583=_0x2aa4fe[_0x13c1f4];if(_0x39d583 instanceof gt){const _0x49155b=_0x1c4f8d['get'](_0x39d583['root']['rootName']);_0x2aa4fe[_0x13c1f4]=this['_fixPosition'](_0x39d583,_0x49155b);}if(_0x39d583 instanceof vt){const _0x47b84a=_0x1c4f8d['get'](_0x39d583['root']['rootName']);_0x2aa4fe[_0x13c1f4]=this['_fixRange'](_0x39d583,_0x47b84a);}'root'===_0x13c1f4&&(_0x2aa4fe['root']=_0x1c4f8d['get'](_0x2aa4fe['root']['rootName']));}}['_fixRange'](_0x5cea3d,_0x43449d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5cea3d['start'],_0x43449d),this['_fixPosition'](_0x5cea3d['end'],_0x43449d));}['_fixPosition'](_0x4a798b,_0x3429cf){return this['editor']['model']['createPositionFromPath'](_0x3429cf,_0x4a798b['path'],_0x4a798b['stickiness']);}['_handleInsertOperation'](_0xefb68d){const _0x1ab833=this['_idsRoots']['get'](_0xefb68d['position']['root']['rootName']),_0x538243=this['_fixPosition'](_0xefb68d['position'],_0x1ab833),_0x4616eb=null===_0xefb68d['_authorId']?null:_0xefb68d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5720bf=_0x538243['parent'],_0x456556=this['_revisionId'],_0x1ba977=[];for(const _0x311579 of _0xefb68d['nodes'])if(_0x311579['is']('element'))_0x1ba977['push'](this['_makeIdsRoot'](_0x311579));else{for(let _0x2f772d=0x0;_0x2f772d<_0x311579['offsetSize'];_0x2f772d++)_0x1ba977['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5215ca=this['_revisionId'];for(let _0x1ff213=_0x456556;_0x1ff213<_0x5215ca;_0x1ff213++)this['_touched']['set'](_0x1ff213,{'userId':_0x4616eb});_0x5720bf['_insertChild'](_0x538243['offset'],_0x1ba977);}['_handleMoveOperation'](_0x2d5d65){(_0x2d5d65=this['_cloneOperation'](_0x2d5d65,this['_idsRoots']))['_execute']();const _0x27fddc=null===_0x2d5d65['_authorId']?null:_0x2d5d65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8cb0bf=_0x2d5d65['getMovedRangeStart'](),_0x7cad1a=_0x8cb0bf['parent'],_0x19bc05=_0x8cb0bf['offset'];!function _0x13dacf(_0x326365,_0x3028cb,_0x24cfbd,_0x2fb17c){for(let _0x580a6f=_0x24cfbd;_0x580a6f<_0x2fb17c;_0x580a6f++){const _0x31c7e2=_0x3028cb['getChild'](_0x580a6f);_0x31c7e2['is']('element','$text')?_0x326365['set'](_0x31c7e2['getAttribute']('vid'),{'userId':_0x27fddc}):(_0x326365['set'](_0x31c7e2['getAttribute']('vid_start'),{'userId':_0x27fddc}),_0x13dacf(_0x326365,_0x31c7e2,0x0,_0x31c7e2['childCount']),_0x326365['set'](_0x31c7e2['getAttribute']('vid_end'),{'userId':_0x27fddc}));}}(this['_touched'],_0x7cad1a,_0x19bc05,_0x19bc05+_0x2d5d65['howMany']);}['_handleMergeOperation'](_0x2aa7f3){const _0x2afc5e=null===(_0x2aa7f3=this['_cloneOperation'](_0x2aa7f3,this['_idsRoots']))['_authorId']?null:_0x2aa7f3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f2cbe=_0x2aa7f3['targetPosition']['parent'],_0x1efbf3=_0x2aa7f3['sourcePosition']['parent'],_0x43bc93=_0x1f2cbe['getAttribute']('vid_end'),_0x4e3f7b=_0x1efbf3['getAttribute']('vid_start');_0x1f2cbe['_setAttribute']('vid_end',_0x1efbf3['getAttribute']('vid_end')),_0x1efbf3['_setAttribute']('vid_end',_0x43bc93),this['_touched']['set'](_0x4e3f7b,{'userId':_0x2afc5e}),this['_touched']['set'](_0x43bc93,{'userId':_0x2afc5e}),_0x2aa7f3['_execute']();}['_handleSplitOperation'](_0x5b2a0b){const _0x2a0524=null===(_0x5b2a0b=this['_cloneOperation'](_0x5b2a0b,this['_idsRoots']))['_authorId']?null:_0x5b2a0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bb7ac=_0x5b2a0b['graveyardPosition'],_0x188387=_0x5b2a0b['splitPosition']['parent'];_0x5b2a0b['_execute']();const _0x26bcfc=_0x188387['getAttribute']('vid_end'),_0x18beb2=_0x5b2a0b['insertionPosition']['nodeAfter'];if(_0x2bb7ac){const _0x29816b=_0x18beb2['getAttribute']('vid_end'),_0x23b1e0=_0x188387['getAttribute']('vid_end');_0x188387['_setAttribute']('vid_end',_0x29816b),_0x18beb2['_setAttribute']('vid_end',_0x23b1e0),this['_touched']['set'](_0x188387['getAttribute']('vid_end'),{'userId':_0x2a0524}),this['_touched']['set'](_0x18beb2['getAttribute']('vid_start'),{'userId':_0x2a0524});}else{const _0x22f66c=this['_revisionId']++,_0x2295f2=this['_revisionId']++;_0x188387['_setAttribute']('vid_end',_0x22f66c),_0x18beb2['_setAttribute']('vid_start',_0x2295f2),_0x18beb2['_setAttribute']('vid_end',_0x26bcfc),this['_touched']['set'](_0x22f66c,{'userId':_0x2a0524}),this['_touched']['set'](_0x2295f2,{'userId':_0x2a0524});}}['_handleMarkerOperation'](_0x50111a){if(!_0x50111a['affectsData'])return;const _0x2ff2cd=(_0x50111a=this['_cloneOperation'](_0x50111a,this['_diffRoots']))['oldRange']?_0x50111a['oldRange']['root']:null,_0x5b1122=_0x50111a['newRange']?_0x50111a['newRange']['root']:null;_0x2ff2cd&&this['_markers']['delete'](_0x50111a['name']),_0x5b1122&&this['_markers']['set'](_0x50111a['name'],_0x50111a['newRange']['clone']());const _0x5580d4=null===_0x50111a['_authorId']?null:_0x50111a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12bfcf=_0x50111a['name'];if(!this['_touchedMarkers']['has'](_0x12bfcf))return void this['_touchedMarkers']['set'](_0x12bfcf,{'range':_0x50111a['oldRange'],'userId':_0x5580d4});const _0x550ec4=this['_touchedMarkers']['get'](_0x12bfcf),_0x1f0314=_0x550ec4['range'],_0x44757a=_0x50111a['newRange'];null==_0x1f0314&&null==_0x44757a||_0x1f0314&&_0x44757a&&_0x1f0314['isEqual'](_0x44757a)?this['_touchedMarkers']['delete'](_0x50111a['name']):_0x550ec4['userId']=_0x5580d4;}['_handleRootOperation'](_0x340ffa,_0x358779){this['_diffRoots']['has'](_0x340ffa['rootName'])?this['_diffRoots']['get'](_0x340ffa['rootName'])['_isAttached']=_0x340ffa['isAdd']:(this['_diffRoots']['set'](_0x340ffa['rootName'],B(_0x340ffa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x340ffa['rootName'],{}),_0x358779&&this['_idsRoots']['set'](_0x340ffa['rootName'],B(_0x340ffa['rootName'],!0x0)));const _0xe093cf=null===_0x340ffa['_authorId']?null:_0x340ffa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x222497=this['_touchedRoots']['get'](_0x340ffa['rootName']);_0x222497&&_0x222497['userId']===_0xe093cf?this['_touchedRoots']['delete'](_0x340ffa['rootName']):this['_touchedRoots']['set'](_0x340ffa['rootName'],{'userId':_0xe093cf,'isAttached':_0x340ffa['isAdd']});}['_handleRootAttributeOperation'](_0x89e8ec){const _0x5af253=this['_diffRootsAttributes']['get'](_0x89e8ec['root']['rootName']);null===_0x89e8ec['newValue']?delete _0x5af253[_0x89e8ec['key']]:_0x5af253[_0x89e8ec['key']]=_0x89e8ec['newValue'];}}function F(_0xa851f0){const _0xb40509=B(_0xa851f0['rootName'],_0xa851f0['isAttached']());for(const _0x1fb5ab of _0xa851f0['getChildren']()){const _0x281d2f=_0x1fb5ab['_clone'](!0x0);_0xb40509['_appendChild'](_0x281d2f);}return _0xb40509;}function B(_0x143885,_0x737750=!0x0){const _0x3f7a75=new mt();return _0x3f7a75['rootName']=_0x143885,_0x3f7a75['_isAttached']=_0x737750,_0x3f7a75['isAttached']=()=>_0x3f7a75['_isAttached'],_0x3f7a75;}function J(_0x1ef03f,_0x1318cb,_0x2a5d2b){const _0x1ae967='elementEnd'==_0x1ef03f['type']?_0x2a5d2b['createPositionAt'](_0x1ef03f['item'],'end'):_0x2a5d2b['createPositionBefore'](_0x1ef03f['item']);return _0x2a5d2b['createPositionFromPath'](_0x1318cb,_0x1ae967['path'],_0x1ae967['stickiness']);}function q(_0x51af5f,_0x1016d7,_0x353838){const _0x3228f5='elementStart'==_0x51af5f['type']?_0x353838['createPositionAt'](_0x51af5f['item'],0x0):_0x353838['createPositionAfter'](_0x51af5f['item']);return _0x353838['createPositionFromPath'](_0x1016d7,_0x3228f5['path'],_0x3228f5['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1a9ee3,_0x235398){super(_0x1a9ee3),this['focusTracker']=new _0x30b6e5(),this['keystrokes']=new _0x3fb620(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x235398),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x54f796(this);}['render'](){super['render'](),_0x1a42db({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a80d4=_0x2b648e=>_0x2b648e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a80d4),this['keystrokes']['set']('arrowleft',_0x3a80d4),this['keystrokes']['set']('arrowup',_0x3a80d4),this['keystrokes']['set']('arrowdown',_0x3a80d4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x20973d){this['revisionNameInputView']['fieldView']['element']['value']=_0x20973d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x8576cc){const _0x4d860b=new _0x5a6b56(this['locale'],_0x152253),_0xb4213b=_0x4d860b['fieldView'];_0xb4213b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3c96c3=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x8576cc&&(_0x3c96c3+='\x20('+R(this['locale'],'optional')+')'),(_0x4d860b['label']=_0x3c96c3,_0xb4213b['on']('input',()=>{this['revisionNameInputValue']=_0xb4213b['element']['value']['trim']();}),_0x4d860b);}}class u extends _0x251bb4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1e7f22=this['editor'],_0x147686=_0x1e7f22['plugins']['get']('RevisionTracker');_0x1e7f22['ui']['componentFactory']['add']('revisionHistory',_0x259842=>{const _0x195e84=_0x37ee2e(_0x259842),_0x5ac8b6=_0x195e84['panelView']['children'],_0x3de1f4=new _0x37bea1(_0x259842),_0x581224=new _0x2f4504(_0x259842),_0xc8d41c=new te(_0x259842),_0x54093d=new _0x2f4504(_0x259842),_0x5003aa=new te(_0x259842);return _0x195e84['bind']('isEnabled')['to'](_0x147686,'isReady',_0x147686,'isEnabled',_0x1e7f22,'isReadOnly',(_0x496e19,_0x4c8f2f,_0x11b3fd)=>_0x496e19&&_0x4c8f2f&&!_0x11b3fd),_0x195e84['buttonView']['set']({'icon':_0x1732ef['history'],'label':R(_0x259842,'Revision\x20history'),'tooltip':!0x0}),_0xc8d41c['set']({'label':R(_0x259842,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xc8d41c['bind']('isEnabled')['to'](_0x147686,'isReady',_0x147686,'isEnabled',_0x1e7f22,'isReadOnly',(_0x3befc9,_0x2dcbad,_0x1976e2)=>_0x3befc9&&_0x2dcbad&&!_0x1976e2),_0xc8d41c['on']('execute',()=>this['_showDialog']()),_0x5003aa['set']({'label':R(_0x259842,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5003aa['bind']('isEnabled')['to'](_0x147686,'isReady',_0x1e7f22,'isReadOnly',(_0x3f237a,_0x197265)=>_0x3f237a&&!_0x197265),_0x5003aa['on']('execute',()=>{_0x1e7f22['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x195e84['isOpen']=!0x1,_0x1e7f22['editing']['view']['focus']();}),_0x581224['children']['add'](_0xc8d41c),_0x54093d['children']['add'](_0x5003aa),_0x3de1f4['role']='menu',_0x3de1f4['items']['addMany']([_0x581224,_0x54093d]),_0x5ac8b6['add'](_0x3de1f4),_0x195e84;}),_0x1e7f22['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1215ce=this['editor'],_0x2eca3f=_0x1215ce['locale'],_0x57f45e=new _0x494df9(_0x2eca3f),_0xa01de5=new _0x1fe0dc(_0x2eca3f);_0x57f45e['buttonView']['set']({'icon':_0x1732ef['history'],'label':R(_0x2eca3f,'Revision\x20history')});const _0x5448c2=new _0x4848dd(_0x2eca3f,_0x57f45e),_0x97bff2=new _0x3a0910(_0x2eca3f);_0x97bff2['set']({'label':R(_0x2eca3f,'Save\x20current\x20revision')}),_0x97bff2['delegate']('execute')['to'](_0x57f45e),_0x97bff2['on']('execute',()=>{this['_showDialog']();}),_0x5448c2['children']['add'](_0x97bff2),_0xa01de5['items']['add'](_0x5448c2);const _0x3e8f38=new _0x4848dd(_0x2eca3f,_0x57f45e),_0x51d078=new _0x3a0910(_0x2eca3f);return _0x51d078['set']({'label':R(_0x2eca3f,'Open\x20revision\x20history')}),_0x51d078['delegate']('execute')['to'](_0x57f45e),_0x51d078['on']('execute',()=>{_0x1215ce['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3e8f38['children']['add'](_0x51d078),_0xa01de5['items']['add'](_0x3e8f38),_0x57f45e['panelView']['children']['add'](_0xa01de5),_0x57f45e;}['_showDialog'](){const _0x101cb1=this['editor'],_0x2e6f6d=_0x101cb1['locale'],_0x199586=_0x101cb1['plugins']['get']('Dialog'),_0x380459=_0x101cb1['plugins']['get']('RevisionTracker');function _0x1b02e4(_0x1c1cce){_0x101cb1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1c1cce['revisionName']?_0x1c1cce['revisionNameInputView']['errorText']=R(_0x2e6f6d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x101cb1['plugins']['get'](l)['saveRevision']({'name':_0x1c1cce['revisionName']}),_0x199586['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1b02e4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x199586['show']({'id':'revisionSave','title':R(_0x2e6f6d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x101cb1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x199586['hide']()},{'label':R(_0x101cb1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x26ba9e){_0x26ba9e['bind']('isEnabled')['to'](_0x380459,'isReady',_0x380459,'isEnabled',_0x101cb1,'isReadOnly',(_0x54e536,_0x3f3dd7,_0x32a73a)=>_0x54e536&&_0x3f3dd7&&!_0x32a73a);},'onExecute':()=>_0x1b02e4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3a3bf9=this['editor'],_0x1a6d9f=_0x3a3bf9['locale'];this['_saveRevisionFormView']=new hs(_0x1a6d9f,_0x3a3bf9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x3fe612,_0x4ae523){super(_0x3fe612),this['_model']=_0x4ae523,this['changeId']=_0x4ae523['id'];const _0x4d8351=this['bindTemplate'],_0x2abea7=R(_0x3fe612,_0x4ae523['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4ae523['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4ae523['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4d8351['to']('type',_0x3da6b3=>'ck-revision-change__'+_0x3da6b3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2abea7}]},{'text':'\x20'+_0x4ae523['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3e6ed2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1f39f1){super(),this['id']=_0x1f39f1['id']||_0x3b74fc(),this['author']=_0x1f39f1['author'],this['type']=_0x1f39f1['type'],this['data']=_0x1f39f1['data']||{},this['rootName']=_0x1f39f1['rootName'],this['set']('createdAt',_0x1f39f1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x27e260,_0x480b54){this['newRevisionId']=_0x27e260,this['oldRevisionId']=_0x480b54,this['changes']=new _0x446eb4();}['_setChanges'](_0x5c509b){for(const _0x407951 of _0x5c509b)this['changes']['add'](_0x407951);}}const Z={'c':_0x17be35,'a':_0x4cb7a9,'e':_0x4981a3,'r':_0x478851,'u':_0x3248d9};class d extends _0x251bb4{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5574af,_0xa0f5e9,j];}constructor(_0x1fc738){super(_0x1fc738),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3c669e,_0x2735ad,_0x36d87b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x10f441=>{for(const _0x52f7b6 of this['editor']['editing']['view']['document']['roots'])_0x36d87b?_0x10f441['removeClass']('ck-editor__editable__overlay',_0x52f7b6):_0x10f441['addClass']('ck-editor__editable__overlay',_0x52f7b6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x30972a=>null!==_0x30972a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x21b1a8,_0x177a6d,_0x40dcf2)=>_0x21b1a8&&_0x40dcf2?_0x177a6d['changes']['getIndex'](_0x40dcf2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x6eee59,_0x922b5a)=>_0x6eee59?_0x922b5a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xa0f5e9);}['init'](){const _0x4046c9=this['editor'],_0x96cce6=new yt(_0x4046c9,{'direction':'backward'}),_0x13b7b3=new yt(_0x4046c9,{'direction':'forward'});(_0x4046c9['commands']['add']('showPreviousChange',_0x96cce6),_0x4046c9['commands']['add']('showNextChange',_0x13b7b3),_0x4046c9['commands']['add']('restoreRevision',new _t(_0x4046c9)),this['on']('change:numberOfChanges',()=>{_0x96cce6['refresh'](),_0x13b7b3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4046c9['enableReadOnlyMode']('revision-viewer'),_0x4046c9['plugins']['has']('WidgetToolbarRepository'))&&_0x4046c9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x470509){await this['loadRevisionData'](_0x470509);const _0x4ce7ef={};for(const _0x37439b in _0x470509['diffData']){if(_0x470509['diffData'][_0x37439b]['attachChange']&&!_0x470509['diffData'][_0x37439b]['attachChange']['isAttached'])continue;const _0x16eba6=this['_removeRevisionMarkers'](JSON['parse'](_0x470509['diffData'][_0x37439b]['insertions'])),_0x245025=this['editor']['editing']['view']['document'],_0x1fbad1=new _0x6ca5de(_0x245025,_0x16eba6['map'](_0xd25471=>this['_getViewObj'](_0xd25471)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4ce7ef[_0x37439b]=this['editor']['data']['processor']['toData'](_0x1fbad1),this['editor']['data']['processor']['useFillerType']('default');}return _0x4ce7ef;}async['getRevisionRootsAttributes'](_0x3850e7){await this['loadRevisionData'](_0x3850e7);const _0x4b3b35={};for(const _0x4f8cb5 in _0x3850e7['diffData'])_0x3850e7['diffData'][_0x4f8cb5]['attachChange']&&!_0x3850e7['diffData'][_0x4f8cb5]['attachChange']['isAttached']||(_0x4b3b35[_0x4f8cb5]=_0x3850e7['diffData'][_0x4f8cb5]['attributesAfter']||{});return _0x4b3b35;}['_removeRevisionMarkers'](_0x3f9ce9){return(_0x3f9ce9=_0x3f9ce9['filter'](_0x326e0d=>!_0x326e0d['name']||'revision-start'!==_0x326e0d['name']&&'revision-end'!==_0x326e0d['name']))['forEach'](_0x7fe9ff=>{'string'!=typeof _0x7fe9ff&&(_0x7fe9ff['children']=this['_removeRevisionMarkers'](_0x7fe9ff['children']),_0x7fe9ff['attributes']=_0x7fe9ff['attributes']['filter'](_0x49297d=>!_0x49297d[0x0]['startsWith']('data-revision-')));}),_0x3f9ce9;}async['compare'](_0x2f98e4,_0x3b71cc,_0x382c19=!0x1){if(!this['isEnabled'])return;const _0x1b6b5a=this['diff'],_0x474abd=this['repository'],_0x2ade52='string'==typeof _0x2f98e4?_0x474abd['getRevision'](_0x2f98e4):_0x2f98e4,_0x14cd89='string'==typeof _0x3b71cc?_0x474abd['getRevision'](_0x3b71cc):_0x3b71cc,_0xe9da32=_0x2ade52['id'],_0x1779ad=_0x14cd89?_0x14cd89['id']:null;if(!_0x382c19&&this['diff']&&this['diff']['newRevisionId']===_0xe9da32&&this['diff']['oldRevisionId']===_0x1779ad)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xe9da32,_0x1779ad);const _0x369a06=this['_getRevisionsRange'](_0x2ade52,_0x14cd89,!0x0)['map'](_0x21692d=>this['loadRevisionData'](_0x21692d));return _0x369a06['push'](new Promise(_0x3bdacb=>{setTimeout(_0x3bdacb,0x14);})),Promise['all'](_0x369a06)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52844b=this['_getDiff'](_0xe9da32,_0x1779ad);for(const _0x1bdc27 of _0x52844b['changes'])this['_changeIdToChange']['set'](_0x1bdc27['id'],_0x1bdc27);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1dbe16=>{for(const _0x370264 of this['editor']['model']['document']['getRootNames']())_0x1dbe16['detachRoot'](_0x370264);for(const _0x4ffeb2 of Object['keys'](_0x52844b['model'])){const _0x3d0a12=_0x1dbe16['addRoot'](_0x4ffeb2);for(const _0x1318c3 of Object['keys'](_0x52844b['attributes'][_0x4ffeb2]))_0x1dbe16['setAttribute'](_0x1318c3,_0x52844b['attributes'][_0x4ffeb2][_0x1318c3],_0x3d0a12);_0x1dbe16['insert'](_0x52844b['model'][_0x4ffeb2],_0x3d0a12,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52844b['changes'])),this['isReady']=!0x0;})['catch'](_0x2f886e=>{console['error'](_0x2f886e),this['_cleanUp'](),_0x1b6b5a&&(this['diff']=_0x1b6b5a),this['isReady']=!0x0;});}['addRevisionData'](_0x3ccd2c,_0x6672f8){const _0x40c7b0=this['repository']['createRevision'](_0x3ccd2c);return _0x40c7b0['on']('_update',(_0x30d034,_0x37f837,_0x190c8b)=>_0x6672f8(_0x37f837,_0x190c8b,_0x40c7b0)),this['repository']['addRevision'](_0x40c7b0),_0x40c7b0;}['loadRevisionData'](_0x3eb1cd){if(!_0x3eb1cd||_0x3eb1cd['diffData'])return Promise['resolve']();{const _0x3d1bee=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3d1bee,'revisionId':_0x3eb1cd['id']})['then'](_0x1784c1=>{_0x3eb1cd['_update']({'diffData':_0x1784c1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x52e9f5=>{for(const _0x53aa30 of this['editor']['model']['document']['getRootNames']())_0x52e9f5['detachRoot'](_0x53aa30);});}['_sortAndFilterDiffChanges'](_0x5597f3){const _0xcfb839=[],_0x895194=new Map();for(const _0x412ff2 of this['editor']['model']['document']['getRootNames']()){const _0x8edd80=this['editor']['editing']['view']['getDomRoot'](_0x412ff2);if(!_0x8edd80)continue;const _0x1a8f33=_0x8edd80['getClientRects']()['item'](0x0);_0x1a8f33&&(_0xcfb839['push'](_0x412ff2),_0x895194['set'](_0x412ff2,_0x1a8f33));}return _0xcfb839['sort']((_0x5800d6,_0x2b48aa)=>{const _0x11936b=_0x895194['get'](_0x5800d6),_0x12724d=_0x895194['get'](_0x2b48aa);return _0x11936b['y']-_0x12724d['y']||_0x11936b['x']-_0x12724d['x'];}),(_0x5597f3=_0x5597f3['filter'](_0x491e3c=>_0xcfb839['includes'](_0x491e3c['rootName'])))['sort']((_0x3fc405,_0x107007)=>_0xcfb839['indexOf'](_0x3fc405['rootName'])-_0xcfb839['indexOf'](_0x107007['rootName'])),_0x5597f3;}['_makeTape'](_0x33af00){const _0x4c685e=Array['from'](_0x33af00['markers'])['filter'](([_0x3f5241,_0x518e20])=>_0x3f5241['startsWith']('revision:')&&!_0x518e20['isCollapsed']),_0x5d7fb5=Array['from'](this['editor']['model']['createRangeIn'](_0x33af00)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4c685e['length'])for(const _0x5487fd of _0x5d7fb5){const [_0x3c22ec,_0x2d0ed2]=_0x4c685e[0x0],[,_0x4d9c30,_0x1c2b3a]=_0x3c22ec['split'](':');if(_0x2d0ed2['end']['isEqual'](_0x5487fd['nextPosition'])&&_0x4c685e['shift'](),(_0x5487fd['previousPosition']['isEqual'](_0x2d0ed2['start'])||_0x5487fd['previousPosition']['isAfter'](_0x2d0ed2['start']))&&('insertion'==_0x4d9c30?_0x5487fd['isAdded']={'userId':_0x1c2b3a}:'deletion'==_0x4d9c30&&(_0x5487fd['isRemoved']={'userId':_0x1c2b3a})),0x0==_0x4c685e['length'])break;}return _0x5d7fb5;}['_refreshStartEndIndex'](_0x194e73){const _0x1d00b3=new Map();for(let _0x4b91f2=0x0;_0x4b91f2<_0x194e73['length'];_0x4b91f2++)'text'===_0x194e73[_0x4b91f2]['type']?(_0x194e73[_0x4b91f2]['item']['startIndex']=_0x4b91f2,_0x194e73[_0x4b91f2]['item']['endIndex']=_0x4b91f2):('elementStart'===_0x194e73[_0x4b91f2]['type']?_0x194e73[_0x4b91f2]['item']['startIndex']=_0x4b91f2:'elementEnd'===_0x194e73[_0x4b91f2]['type']&&(_0x194e73[_0x4b91f2]['item']['endIndex']=_0x4b91f2),_0x1d00b3['set'](_0x194e73[_0x4b91f2]['id'],_0x4b91f2));for(const _0x2685b6 of _0x1d00b3['values']())'elementStart'===_0x194e73[_0x2685b6]['type']?_0x194e73[_0x2685b6]['item']['endIndex']=_0x1d00b3['get'](_0x194e73[_0x2685b6]['pairId']):'elementEnd'===_0x194e73[_0x2685b6]['type']&&(_0x194e73[_0x2685b6]['item']['startIndex']=_0x1d00b3['get'](_0x194e73[_0x2685b6]['pairId']));}['_processTape'](_0x2ec2c0){for(let _0x258275=0x0;_0x258275<_0x2ec2c0['length'];_0x258275++){if('elementStart'===_0x2ec2c0[_0x258275]['type'])_0x2ec2c0[_0x258275]['item']['startIndex']=_0x258275;else{if('elementEnd'===_0x2ec2c0[_0x258275]['type']){_0x2ec2c0[_0x258275]['item']['endIndex']=_0x258275;const _0x28c3d9=_0x2ec2c0[_0x258275]['item']['startIndex'];_0x2ec2c0[_0x28c3d9]['pairId']=_0x2ec2c0[_0x258275]['id'],_0x2ec2c0[_0x258275]['pairId']=_0x2ec2c0[_0x28c3d9]['id'];}else _0x2ec2c0[_0x258275]['item']['startIndex']=_0x258275,_0x2ec2c0[_0x258275]['item']['endIndex']=_0x258275,_0x2ec2c0[_0x258275]['pairId']=null;}_0x2ec2c0[_0x258275]['markersStart']||(_0x2ec2c0[_0x258275]['markersStart']=[],_0x2ec2c0[_0x258275]['markersEnd']=[]);}}['_markInsertions'](_0x46d64c,_0x4cd52c){const _0x192ba0=_0x46d64c['filter'](_0x1e36e6=>!_0x1e36e6['isAdded']);for(let _0x3bb4ac=0x0;_0x3bb4ac<_0x4cd52c['length'];_0x3bb4ac++)_0x4cd52c[_0x3bb4ac]['isAdded']&&(_0x192ba0[_0x3bb4ac]['isAdded']=_0x4cd52c[_0x3bb4ac]['isAdded']);}['_makeModelFromViewString'](_0x24e174){const _0x16849e=JSON['parse'](_0x24e174),_0x45ae72=this['editor']['editing']['view']['document'],_0x58750b=new _0x6ca5de(_0x45ae72,_0x16849e['map'](_0x311264=>this['_getViewObj'](_0x311264)));return this['editor']['data']['toModel'](_0x58750b);}['_getViewObj'](_0x469daf){const _0xd09589=this['editor']['editing']['view']['document'];if('string'==typeof _0x469daf)return new _0x478b27(_0xd09589,_0x469daf);{const _0x171a7e=_0x469daf['children']['map'](_0x2d1ed6=>this['_getViewObj'](_0x2d1ed6));return new(Z[_0x469daf['type']]||_0x753289)(_0xd09589,_0x469daf['name'],_0x469daf['attributes'],_0x171a7e);}}['_getDiff'](_0x51cec0,_0x44c187=null){const _0x638c2f=this['repository']['getRevision'](_0x51cec0),_0x16567a=_0x44c187?this['repository']['getRevision'](_0x44c187):null,_0x4df04f=this['_getRevisionsRange'](_0x638c2f,_0x16567a),_0x42c282=_0x4df04f[_0x4df04f['length']-0x1],_0x4aecf2=new Map(),_0xae0866={'model':{},'attributes':{},'changes':[]},_0x2cc214=new Set(),_0x3592e5=new Map();for(let _0x2faecf=_0x4df04f['length']-0x1;_0x2faecf>=0x0;_0x2faecf--){const _0x247114=_0x4df04f[_0x2faecf];for(const _0x615d01 of Object['keys'](_0x247114['diffData']))if(_0x247114['diffData'][_0x615d01]['attachChange']){const _0x5b2794=_0x247114['diffData'][_0x615d01]['attachChange'];_0x5b2794['isAttached']?(_0x2cc214['add'](_0x615d01),_0x3592e5['has'](_0x615d01)&&_0x3592e5['get'](_0x615d01)['userId']==_0x5b2794['userId']?_0x3592e5['delete'](_0x615d01):_0x3592e5['set'](_0x615d01,_0x5b2794)):_0x3592e5['has'](_0x615d01)?(_0x2cc214['delete'](_0x615d01),_0x3592e5['delete'](_0x615d01)):(_0x2cc214['add'](_0x615d01),_0x3592e5['set'](_0x615d01,_0x5b2794));}else _0x2cc214['add'](_0x615d01);}for(const _0x23b54e of _0x2cc214){const _0x35f0d4=_0x3592e5['has'](_0x23b54e)&&!_0x3592e5['get'](_0x23b54e)['isAttached'];let _0x174615=_0x35f0d4?_0x4df04f['length']-0x1:0x0;const _0x275380=_0x35f0d4?-0x1:0x1;for(;_0x4df04f[_0x174615];){const _0x5d2b27=_0x4df04f[_0x174615];if(_0x5d2b27['diffData'][_0x23b54e]){const _0x310d41=_0x35f0d4?_0x5d2b27['diffData'][_0x23b54e]['attributesBefore']:_0x5d2b27['diffData'][_0x23b54e]['attributesAfter'];_0xae0866['attributes'][_0x23b54e]=_0x310d41?_0x41eccd(_0x310d41):{};break;}_0x174615+=_0x275380;}}for(const _0x37ff5 of _0x4df04f){_0x37ff5['model']={};for(const _0x4fa291 of _0x37ff5['authors'])_0x4aecf2['set'](_0x4fa291['id'],_0x4fa291);for(const _0x5f43e5 of _0x2cc214){const _0x2960a2=_0x37ff5['diffData'][_0x5f43e5]?_0x37ff5['diffData'][_0x5f43e5]['insertions']:'[]',_0x272411=_0x37ff5['diffData'][_0x5f43e5]?_0x37ff5['diffData'][_0x5f43e5]['deletions']:'[]';_0x37ff5['model'][_0x5f43e5]={'insertions':this['_makeModelFromViewString'](_0x2960a2),'deletions':this['_makeModelFromViewString'](_0x272411)};}}for(const _0x25df25 of _0x2cc214){let _0x5807bb=null,_0x1d6ab1=0x0;const _0x2894f8=new Map(Array['from'](_0x638c2f['model'][_0x25df25]['insertions']['markers'])['filter'](([_0x3c8fb7])=>!_0x3c8fb7['startsWith']('revision:')));let _0x3cc8d2=0x0;for(const _0x2e77c0 of _0x4df04f){const _0x17ec14=this['_makeTape'](_0x2e77c0['model'][_0x25df25]['insertions']);_0x2e77c0==_0x638c2f?(_0x5807bb=_0x17ec14,_0x1d6ab1=_0x5807bb['length'],_0x5807bb['forEach'](_0x24c333=>{_0x24c333['id']=_0x3cc8d2++;}),this['_processTape'](_0x5807bb)):this['_markInsertions'](_0x5807bb,_0x17ec14);const _0x23e2ce=_0x5807bb['filter'](_0x20e67e=>!_0x20e67e['isAdded'])['map'](_0x5a782a=>_0x5a782a['id']);let _0x5f07d1=0x0;const _0x1b25d8=this['_makeTape'](_0x2e77c0['model'][_0x25df25]['deletions']);_0x1b25d8['forEach'](_0x112563=>{_0x112563['isRemoved']?_0x112563['id']=_0x1d6ab1++:_0x112563['id']=_0x23e2ce[_0x5f07d1++];}),this['_processTape'](_0x1b25d8),this['_setDistance'](_0x5807bb,'isAdded'),this['_setDistance'](_0x1b25d8,'isRemoved'),_0x2e77c0==_0x638c2f&&this['_markMarkers'](_0x5807bb,_0x2894f8),_0x5807bb=this['_joinTapes'](_0x5807bb,_0x1b25d8),this['_refreshStartEndIndex'](_0x5807bb),this['_setDistance'](_0x5807bb,'isRemoved');}_0x5807bb=_0x5807bb['filter'](_0xa89e77=>!(_0xa89e77['isAdded']&&_0xa89e77['isRemoved']));const _0x49bc55=new Map(_0x42c282['model'][_0x25df25]['deletions']['markers']),_0x56f09c=new Set(_0x2894f8['keys']());for(const _0x3510ee of _0x49bc55['keys']())_0x56f09c['delete'](_0x3510ee);this['_markSuggestions'](_0x5807bb,_0x56f09c),this['_fixObsoleteTags'](_0x5807bb),_0x5807bb=this['_removeMissingPairs'](_0x5807bb),_0x5807bb=this['_markMismatchedRemovedTags'](_0x5807bb),_0x5807bb=this['_removeUnsupportedChanges'](_0x5807bb);const {root:_0x137323,changes:_0x1a15f}=this['_makeModelFromTape'](_0x5807bb,_0x4aecf2,_0x25df25);_0xae0866['model'][_0x25df25]=_0x137323;const _0x599aa6=_0x3592e5['get'](_0x25df25);if(_0x599aa6){const _0x54f0cc=_0x4aecf2['get'](_0x599aa6['userId']),_0x1d6ddb=new r({'author':_0x54f0cc,'type':_0x599aa6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x25df25});_0x1a15f['unshift'](_0x1d6ddb),_0xae0866['attributes'][_0x25df25]['revisionHistoryAttachChange']=_0x1d6ddb['id'];}_0xae0866['changes']=_0xae0866['changes']['concat'](_0x1a15f);}return _0xae0866;}['_markMarkers'](_0x3b85f6,_0x4e9791){for(let _0x4d7471=0x0;_0x4d7471<_0x3b85f6['length'];_0x4d7471++)for(const [_0x28de65,_0xc1c7bc]of _0x4e9791)_0xc1c7bc['start']['isEqual'](_0x3b85f6[_0x4d7471]['previousPosition'])&&_0x3b85f6[_0x4d7471]['markersStart']['push'](_0x28de65),_0xc1c7bc['end']['isEqual'](_0x3b85f6[_0x4d7471]['nextPosition'])&&_0x3b85f6[_0x4d7471]['markersEnd']['push'](_0x28de65);}['_joinTapes'](_0x25f222,_0x194f7e){let _0x32ad19=[],_0x57c7ba=0x0,_0x397098=0x0;for(;_0x57c7ba<_0x25f222['length']||_0x397098<_0x194f7e['length'];){const _0x4f25a4=_0x25f222[_0x57c7ba]||{},_0x3e1345=_0x194f7e[_0x397098]||{};if(_0x4f25a4['id']==_0x3e1345['id'])_0x57c7ba++,_0x397098++,_0x32ad19['push'](_0x4f25a4);else{if(_0x3e1345['isRemoved']&&_0x4f25a4['isAdded']){const {commonTape:_0x48c880,iEnd:_0x545de4,jEnd:_0x1fc8c8}=this['_threeWayMerge'](_0x25f222,_0x57c7ba,_0x194f7e,_0x397098);_0x32ad19=_0x32ad19['concat'](_0x48c880),_0x57c7ba=_0x545de4,_0x397098=_0x1fc8c8;}else _0x3e1345['isRemoved']?(_0x397098++,_0x32ad19['push'](_0x3e1345)):(_0x57c7ba++,_0x32ad19['push'](_0x4f25a4));}}return _0x32ad19;}['_markSuggestions'](_0x5e98fb,_0x356971){const _0x21268d=[];for(let _0x45bf6f=0x0;_0x45bf6f<_0x5e98fb['length'];_0x45bf6f++){for(let _0x465848=0x0;_0x465848<_0x5e98fb[_0x45bf6f]['markersStart']['length'];_0x465848++){const _0x266ace=_0x5e98fb[_0x45bf6f]['markersStart'][_0x465848];if(!_0x356971['has'](_0x266ace))continue;const {group:_0x38391c,type:_0x19aae1,authorId:_0x298ef7}=_0x1ad01e(_0x266ace);'revision-suggestion'!=_0x38391c||'insertion'!=_0x19aae1&&'deletion'!=_0x19aae1||(_0x21268d['unshift']({'type':_0x19aae1,'name':_0x266ace,'userId':_0x298ef7}),_0x5e98fb[_0x45bf6f]['markersStart']['splice'](_0x465848,0x1),_0x465848--);}_0x13e085(_0x5e98fb[_0x45bf6f]);for(let _0x25c0d5=0x0;_0x25c0d5<_0x5e98fb[_0x45bf6f]['markersEnd']['length'];_0x25c0d5++){const _0x4f139f=_0x5e98fb[_0x45bf6f]['markersEnd'][_0x25c0d5];if(!_0x356971['has'](_0x4f139f))continue;const {group:_0x9e963c,type:_0x5156a7}=_0x1ad01e(_0x4f139f);if('revision-suggestion'!=_0x9e963c||'insertion'!=_0x5156a7&&'deletion'!=_0x5156a7)continue;_0x5e98fb[_0x45bf6f]['markersEnd']['splice'](_0x25c0d5,0x1),_0x25c0d5--;const _0x5734af=_0x21268d['findIndex'](_0x1a8ed7=>_0x1a8ed7['name']==_0x4f139f);_0x5734af>-0x1&&_0x21268d['splice'](_0x5734af,0x1);}}function _0x1ad01e(_0x182408){const _0x185d34=_0x182408['split'](':');return{'group':_0x185d34[0x0],'type':_0x185d34[0x1],'subType':_0x185d34['length']>=0x5?_0x185d34[0x2]:null,'id':_0x185d34['length']<0x5?_0x185d34[0x2]:_0x185d34[0x3],'authorId':_0x185d34['length']<0x5?_0x185d34[0x3]:_0x185d34[0x4],'markerCount':0x6==_0x185d34['length']?_0x185d34[0x5]:null};}function _0x13e085(_0x15e8f1){for(let _0x4f37f0=0x0;_0x4f37f0<_0x21268d['length'];_0x4f37f0++){if(_0x15e8f1['isAdded']&&'insertion'==_0x21268d[_0x4f37f0]['type'])return _0x15e8f1['isAddSuggestion']=_0x21268d[_0x4f37f0],void delete _0x15e8f1['isAdded'];if(!_0x15e8f1['isAdded']&&!_0x15e8f1['isRemoved']&&'deletion'==_0x21268d[_0x4f37f0]['type'])return void(_0x15e8f1['isRemoveSuggestion']=_0x21268d[_0x4f37f0]);}}}['_setDistance'](_0x56980e,_0x1d76f1){let _0x378982=0x0,_0x51bf7c=!0x1;const _0x5ddb51=new Map();for(const _0x4db479 of _0x56980e)_0x4db479[_0x1d76f1]?_0x51bf7c&&(_0x378982++,_0x51bf7c=!0x1):(_0x378982++,_0x51bf7c=!0x0),_0x5ddb51['set'](_0x4db479['id'],_0x378982);for(let _0x46bd2f=0x0;_0x46bd2f<_0x56980e['length'];_0x46bd2f++){if('isRemoved'==_0x1d76f1&&_0x56980e[_0x46bd2f]['isAdded']||'isAdded'==_0x1d76f1&&_0x56980e[_0x46bd2f]['isRemoved'])continue;if('text'==_0x56980e[_0x46bd2f]['type']){_0x56980e[_0x46bd2f]['distance']=0x0;continue;}const _0x23f777=_0x5ddb51['get'](_0x56980e[_0x46bd2f]['pairId']),_0x18aaea=_0x5ddb51['get'](_0x56980e[_0x46bd2f]['id']);_0x56980e[_0x46bd2f]['distance']=_0x23f777-_0x18aaea;}}['_getRevisionsRange'](_0x4ef982,_0x25008b,_0x343a9b=!0x1){const _0x346e16=[];let _0x22d627=this['repository']['getIndex'](_0x4ef982),_0x5d8413=this['repository']['getIndex'](_0x25008b);for(-0x1==_0x5d8413&&(_0x5d8413=this['repository']['_revisions']['length'],_0x343a9b=!0x1);_0x22d627<_0x5d8413;)_0x346e16['push'](this['repository']['getRevision'](_0x22d627)),_0x22d627++;return _0x343a9b&&_0x346e16['push'](this['repository']['getRevision'](_0x22d627)),_0x346e16;}['_threeWayMerge'](_0x22f7de,_0x3a2a50,_0x55b726,_0x404f5f){const _0x255646=this['editor']['model']['schema'];let _0x4fc5a9=_0x3a2a50;for(;_0x22f7de[_0x4fc5a9]&&_0x22f7de[_0x4fc5a9]['isAdded'];)_0x4fc5a9++;let _0x1671c1=_0x404f5f;for(;_0x55b726[_0x1671c1]&&_0x55b726[_0x1671c1]['isRemoved'];)_0x1671c1++;_0x45c69c(_0x22f7de,_0x3a2a50,_0x4fc5a9),_0x45c69c(_0x55b726,_0x404f5f,_0x1671c1);const _0x3e6cbb=_0x55b726['slice'](_0x404f5f,_0x1671c1)['concat'](_0x22f7de['slice'](_0x3a2a50,_0x4fc5a9));return _0x3e6cbb['sort']((_0x93b27e,_0x4febbf)=>_0x93b27e['side']!=_0x4febbf['side']?_0x93b27e['side']-_0x4febbf['side']:_0x93b27e['level']!=_0x4febbf['level']?_0x93b27e['level']-_0x4febbf['level']:_0x93b27e['distance']!=_0x4febbf['distance']?_0x4febbf['distance']-_0x93b27e['distance']:!!_0x93b27e['isAdded']!=!!_0x4febbf['isAdded']?-0x1==_0x93b27e['side']||0x0==_0x93b27e['side']?_0x93b27e['isAdded']?-0x1:0x1:_0x93b27e['isAdded']?0x1:-0x1:_0x93b27e['index']-_0x4febbf['index']),{'commonTape':_0x3e6cbb,'iEnd':_0x4fc5a9,'jEnd':_0x1671c1};function _0x45c69c(_0x216703,_0x4446b7,_0x60d8f3){let _0xc57d81=-0x1,_0x1e2c2b=Number['POSITIVE_INFINITY'],_0x13ce16=!0x0;for(let _0x2e8a1e=_0x4446b7;_0x2e8a1e<_0x60d8f3;_0x2e8a1e++)if(_0x255646['isInline'](_0x216703[_0x2e8a1e]['item'])||(_0x13ce16=!0x1),_0x216703[_0x2e8a1e]['item']['startIndex']<_0x4446b7&&(_0xc57d81=_0x2e8a1e),_0x216703[_0x2e8a1e]['item']['endIndex']>=_0x60d8f3){_0x1e2c2b=_0x2e8a1e;break;}_0x13ce16&&(_0xc57d81=_0x60d8f3-0x1);for(let _0x34002d=_0x4446b7;_0x34002d<_0x60d8f3;_0x34002d++)_0x216703[_0x34002d]['side']=_0x34002d<=_0xc57d81?-0x1:_0x34002d<_0x1e2c2b?0x0:0x1,_0x216703[_0x34002d]['index']=_0x34002d;let _0x38cb2e=0x0;for(let _0x543445=_0x4446b7;_0x543445<=_0xc57d81;_0x543445++)0x0==_0x216703[_0x543445]['distance']?_0x216703[_0x543445]['level']=_0x38cb2e:(_0x38cb2e++,_0x216703[_0x543445]['level']=_0x38cb2e,_0x38cb2e++);for(let _0x2bcebf=_0x4446b7;_0x2bcebf<_0x60d8f3;_0x2bcebf++)0x0==_0x216703[_0x2bcebf]['side']&&(_0x216703[_0x2bcebf]['level']=_0x38cb2e);_0x38cb2e=0x0;for(let _0x7a6d8a=_0x60d8f3-0x1;_0x7a6d8a>=_0x1e2c2b;_0x7a6d8a--)0x0==_0x216703[_0x7a6d8a]['distance']?_0x216703[_0x7a6d8a]['level']=_0x38cb2e:(_0x38cb2e--,_0x216703[_0x7a6d8a]['level']=_0x38cb2e,_0x38cb2e--);}}['_fixObsoleteTags'](_0x44342c){const _0x108157=new Map(),_0x333848=this['editor']['model']['schema'];for(let _0xd16cd0=0x1;_0xd16cd0<_0x44342c['length'];_0xd16cd0++){let _0x24050f,_0x294431,_0x16e43b;const _0x265a68=_0x44342c[_0xd16cd0],_0xdf1a8f=_0x44342c[_0xd16cd0-0x1];if('text'==_0x265a68['type'])continue;if(_0x265a68['type']!=_0xdf1a8f['type'])continue;if(!_0x333848['isBlock'](_0xdf1a8f['item'])||_0x333848['isLimit'](_0xdf1a8f['item']))continue;if(!_0x333848['isBlock'](_0x265a68['item'])||_0x333848['isLimit'](_0x265a68['item']))continue;if((_0x44342c[_0xd16cd0]['isAdded']||_0x44342c[_0xd16cd0]['isAddSuggestion'])&&_0x44342c[_0xd16cd0-0x1]['isRemoved'])_0x24050f=_0x44342c[_0xd16cd0],_0x294431=_0x44342c[_0xd16cd0-0x1],_0x16e43b=_0xd16cd0-0x1;else{if(!_0x44342c[_0xd16cd0]['isRemoved']||!_0x44342c[_0xd16cd0-0x1]['isAdded']&&!_0x44342c[_0xd16cd0-0x1]['isAddSuggestion'])continue;_0x24050f=_0x44342c[_0xd16cd0-0x1],_0x294431=_0x44342c[_0xd16cd0],_0x16e43b=_0xd16cd0;}const _0x1d7746=_0x24050f['level']==_0x294431['level'],_0x19ab12=Math['abs'](_0x24050f['level'])<Math['abs'](_0x294431['level'])&&0x0==_0x294431['distance'];(_0x1d7746||_0x19ab12)&&(_0x108157['set'](_0x294431['id'],_0x24050f['id']),_0x44342c['splice'](_0x16e43b,0x1),_0xd16cd0--,_0x24050f['isAdded']=!0x1);}for(let _0x2668f4=0x0;_0x2668f4<_0x44342c['length'];_0x2668f4++)_0x108157['has'](_0x44342c[_0x2668f4]['pairId'])&&(_0x44342c[_0x2668f4]['pairId']=_0x108157['get'](_0x44342c[_0x2668f4]['pairId']));}['_removeMissingPairs'](_0x1d13b5){const _0x2a5efc=new Set(_0x1d13b5['map'](_0x393bdc=>_0x393bdc['id']));for(let _0x362211=0x0;_0x362211<_0x1d13b5['length'];_0x362211++)_0x2a5efc['has'](_0x1d13b5[_0x362211]['pairId'])||0x0==_0x1d13b5[_0x362211]['distance']||(_0x1d13b5[_0x362211]['isIncorrect']=!0x0);return _0x1d13b5['filter'](_0x7af1c5=>!_0x7af1c5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x439a30){const _0x27769c=new Set();for(let _0x2f2fbf=0x0;_0x2f2fbf<_0x439a30['length'];_0x2f2fbf++){if(_0x27769c['has'](_0x439a30[_0x2f2fbf]['id'])&&_0x439a30[_0x2f2fbf]['isRemoved']&&(_0x439a30[_0x2f2fbf]['isIncorrect']=!0x0),_0x439a30[_0x2f2fbf]['isIncorrect'])continue;if(0x0==_0x439a30[_0x2f2fbf]['distance'])continue;if('elementStart'!=_0x439a30[_0x2f2fbf]['type'])continue;if(null==_0x439a30[_0x2f2fbf]['pairId'])continue;let _0x2f6563=_0x2f2fbf+0x1,_0x3b1be0=0x0;for(;_0x439a30[_0x2f6563]['id']!=_0x439a30[_0x2f2fbf]['pairId'];)'elementStart'==_0x439a30[_0x2f6563]['type']?_0x3b1be0++:'elementEnd'==_0x439a30[_0x2f6563]['type']&&_0x3b1be0--,_0x2f6563++;if(0x0!=_0x3b1be0){if(_0x439a30[_0x2f2fbf]['isRemoved'])_0x439a30[_0x2f2fbf]['isIncorrect']=!0x0;else{for(;_0x2f6563!=_0x2f2fbf;)_0x439a30[_0x2f6563]['isRemoved']&&0x0!=_0x439a30[_0x2f6563]['distance']&&(_0x439a30[_0x2f6563]['isIncorrect']=!0x0,_0x27769c['add'](_0x439a30[_0x2f6563]['pairId'])),_0x2f6563--;}}}return _0x439a30['filter'](_0x373cc2=>!_0x373cc2['isIncorrect']);}['_removeUnsupportedChanges'](_0x29e5f0){const _0x3b03c0=this['editor']['model']['schema'];for(let _0x5de946=0x0;_0x5de946<_0x29e5f0['length'];_0x5de946++){if(!(_0x29e5f0[_0x5de946]['isAdded']||_0x29e5f0[_0x5de946]['isAddSuggestion']||_0x29e5f0[_0x5de946]['isRemoved']||_0x29e5f0[_0x5de946]['isRemoveSuggestion']))continue;if(0x0==_0x29e5f0[_0x5de946]['distance'])continue;const _0x2fe521=_0x29e5f0[_0x5de946]['item'];_0x3b03c0['isBlock'](_0x2fe521)||_0x3b03c0['isLimit'](_0x2fe521)||(_0x29e5f0[_0x5de946]['isAdded']&&delete _0x29e5f0[_0x5de946]['isAdded'],_0x29e5f0[_0x5de946]['isAddSuggestion']&&delete _0x29e5f0[_0x5de946]['isAddSuggestion'],_0x29e5f0[_0x5de946]['isRemoveSuggestion']&&delete _0x29e5f0[_0x5de946]['isRemoveSuggestion'],_0x29e5f0[_0x5de946]['isRemoved']&&(_0x29e5f0[_0x5de946]['isIncorrect']=!0x0));}return _0x29e5f0['filter'](_0x1bbbc5=>!_0x1bbbc5['isIncorrect']);}['_makeModelFromTape'](_0x1d1902,_0x419f5a,_0x3ce229){const _0x1a5fbe=new mt(),_0x1487b8=[],_0x388b6e=new Map(),_0x552556=this['editor']['model'],_0xa99063=_0x552556['schema'],_0x2d7b8c=[_0x1a5fbe],_0x1ef2a1={},_0x378d83={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1c9c75=null;const _0xddca29=[0x0];for(let _0x58f69b=0x0;_0x58f69b<_0x1d1902['length'];_0x58f69b++)if('elementStart'===_0x1d1902[_0x58f69b]['type']){_0x1d1902[_0x58f69b]['previousPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29);const _0x2324e4=new ft(_0x1d1902[_0x58f69b]['item']['name'],_0x1d1902[_0x58f69b]['item']['getAttributes']());_0x2d7b8c[0x0]['_appendChild'](_0x2324e4),_0xddca29['push'](0x0),_0x2d7b8c['unshift'](_0x2324e4),_0x1d1902[_0x58f69b]['nextPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29);}else'elementEnd'===_0x1d1902[_0x58f69b]['type']?(_0x2d7b8c['shift'](),_0x1d1902[_0x58f69b]['previousPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29),_0xddca29['pop'](),_0xddca29[_0xddca29['length']-0x1]++,_0x1d1902[_0x58f69b]['nextPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29)):(_0x1d1902[_0x58f69b]['previousPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29),_0x1c9c75?_0x1c9c75['_data']+=_0x1d1902[_0x58f69b]['item']['data']:_0x1c9c75=new wt(_0x1d1902[_0x58f69b]['item']['data'],_0x1d1902[_0x58f69b]['item']['getAttributes']()),_0x1d1902[_0x58f69b+0x1]&&'text'===_0x1d1902[_0x58f69b+0x1]['type']&&_0x2fe4d1(_0x1c9c75,_0x1d1902[_0x58f69b+0x1]['item'])||(_0x2d7b8c[0x0]['_appendChild'](_0x1c9c75),_0x1c9c75=null),_0xddca29[_0xddca29['length']-0x1]+=_0x1d1902[_0x58f69b]['item']['offsetSize'],_0x1d1902[_0x58f69b]['nextPosition']=_0x552556['createPositionFromPath'](_0x1a5fbe,_0xddca29));for(let _0x4ad526=0x0;_0x4ad526<_0x1d1902['length'];_0x4ad526++){const _0x3f2caf=_0x1d1902[_0x4ad526]['previousPosition'],_0x1bed22=_0x1d1902[_0x4ad526]['nextPosition'];for(const _0x1e307d of _0x1d1902[_0x4ad526]['markersStart'])_0x388b6e['set'](_0x1e307d,{'start':_0x3f2caf,'end':null});_0x38df06('isRemoveSuggestion',_0x4ad526,_0x3f2caf,_0x1bed22),_0x38df06('isAddSuggestion',_0x4ad526,_0x3f2caf,_0x1bed22),_0x38df06('isRemoved',_0x4ad526,_0x3f2caf,_0x1bed22),_0x38df06('isAdded',_0x4ad526,_0x3f2caf,_0x1bed22);for(const _0x13c78c of _0x1d1902[_0x4ad526]['markersEnd']){_0x388b6e['get'](_0x13c78c)['end']=_0x1bed22;}}for(const [_0x43c6bf,_0x2238f1]of _0x388b6e){const _0x465a29=this['editor']['model']['createRange'](_0x2238f1['start'],_0x2238f1['end']);_0x1a5fbe['markers']['set'](_0x43c6bf,_0x465a29);}return _0x1487b8['sort']((_0x50e909,_0x3638eb)=>{const _0x10578d=_0x1a5fbe['markers']['get']('revision:'+_0x50e909['id']),_0x45c230=_0x1a5fbe['markers']['get']('revision:'+_0x3638eb['id']);return _0x10578d['start']['isBefore'](_0x45c230['start'])?-0x1:_0x10578d['start']['isAfter'](_0x45c230['start'])?0x1:_0x10578d['end']['isBefore'](_0x45c230['end'])?-0x1:_0x10578d['end']['isAfter'](_0x45c230['end'])?0x1:'add'===_0x50e909['type']?-0x1:0x1;}),{'root':_0x1a5fbe,'changes':_0x1487b8};function _0x38df06(_0x281ba4,_0x46ed0e,_0x59ac99,_0x2f7591){const _0x37d4f6=!!_0x1d1902[_0x46ed0e][_0x281ba4],_0x632e07=_0x37d4f6?_0x1d1902[_0x46ed0e][_0x281ba4]['userId']:null,_0x422434=_0x46ed0e===_0x1d1902['length']-0x1,_0xbf3f0e=_0x378d83[_0x281ba4][0x0],_0x3046ea=_0xa99063['isObject'](_0x1d1902[_0x46ed0e]['item']);!_0x1ef2a1[_0x281ba4]&&_0x37d4f6?_0x1ef2a1[_0x281ba4]={'start':_0x59ac99,'tapeItem':_0x1d1902[_0x46ed0e],'userId':_0x632e07,'type':_0x281ba4}:_0x1ef2a1[_0x281ba4]&&!_0x37d4f6?(_0x1ef2a1[_0x281ba4]['end']=_0x59ac99,_0x102950(_0x1ef2a1[_0x281ba4]),_0x1ef2a1[_0x281ba4]=null):_0x1ef2a1[_0x281ba4]&&_0x37d4f6&&_0x1ef2a1[_0x281ba4]['userId']!==_0x632e07&&(_0x1ef2a1[_0x281ba4]['end']=_0x59ac99,_0xbf3f0e&&_0xbf3f0e['userId']===_0x1ef2a1[_0x281ba4]['userId']||_0x102950(_0x1ef2a1[_0x281ba4]),_0x1ef2a1[_0x281ba4]={'start':_0x59ac99,'tapeItem':_0x1d1902[_0x46ed0e],'userId':_0x632e07,'type':_0x281ba4}),_0x1ef2a1[_0x281ba4]&&_0x3046ea&&('elementStart'!==_0x1d1902[_0x46ed0e]['type']||_0xbf3f0e&&_0xbf3f0e['userId']===_0x632e07||_0x378d83[_0x281ba4]['unshift']({'userId':_0x632e07,'object':_0x1d1902[_0x46ed0e]['item'],'change':_0x1ef2a1[_0x281ba4]}),'elementEnd'===_0x1d1902[_0x46ed0e]['type']&&_0xbf3f0e&&_0xbf3f0e['object']===_0x1d1902[_0x46ed0e]['item']&&(_0x378d83[_0x281ba4]['shift'](),_0x1ef2a1[_0x281ba4]=_0xbf3f0e['change'])),_0x1ef2a1[_0x281ba4]&&_0x422434&&(_0x1ef2a1[_0x281ba4]['end']=_0x2f7591,_0x102950(_0x1ef2a1[_0x281ba4]),_0x1ef2a1[_0x281ba4]=null);}function _0x102950({start:_0x1443f1,end:_0x500e99,tapeItem:_0x12308f,userId:_0x5416c3,type:_0x3ad6a1}){const _0x11fa4a=_0x12308f['item'],_0x36f101=_0x552556['schema']['isBlock'](_0x11fa4a)&&!_0x552556['schema']['isLimit'](_0x11fa4a),_0x29939f=_0x1443f1['nodeAfter']==_0x500e99['parent']&&_0x500e99['isAtStart'];if(_0x36f101&&_0x29939f)return;const _0x177096=_0x552556['createRange'](_0x1443f1,_0x500e99),_0x5bdb1d=_0x419f5a['get'](_0x5416c3),_0x275a82=new r({'author':_0x5bdb1d,'type':'isAdded'==_0x3ad6a1||'isAddSuggestion'==_0x3ad6a1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3ad6a1||'isRemoveSuggestion'==_0x3ad6a1},'createdAt':new Date(),'rootName':_0x3ce229});_0x1487b8['push'](_0x275a82),_0x1a5fbe['markers']['set']('revision:'+_0x275a82['id'],_0x177096);}function _0x2fe4d1(_0x2be974,_0xd37d44){const _0xa278ce=_0x2be974['getAttributes'](),_0x207956=_0xd37d44['getAttributes']();for(const _0x304a40 of _0xa278ce){if(_0x304a40[0x1]!==_0xd37d44['getAttribute'](_0x304a40[0x0]))return!0x1;_0x207956['next']();}return _0x207956['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3d3886=>{const _0x3b4a15=_0x3d3886['markerName']['split'](':')[0x1],_0x2cece7=this['_getChangeFromId'](_0x3b4a15);if(!_0x2cece7)return null;const _0x21ff4e='add'==_0x2cece7['type']?'insertion':'deletion',_0x11363f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21ff4e];return _0x2cece7['data']['isSuggestion']&&_0x11363f['push']('ck-suggestion-marker-'+_0x21ff4e+'-new'),this['activeChange']==_0x2cece7&&_0x11363f['push']('ck-suggestion-marker--active'),{'classes':_0x11363f,'attributes':{'data-change-id':_0x3b4a15}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1dc335=>{_0x1dc335['on']('element:pre',(_0x2e4f08,_0x1d7ecc,_0x2f905e)=>{const _0xa45b40=_0x1d7ecc['viewItem']['getChild'](0x0);if(!_0xa45b40||!_0xa45b40['is']('element','code'))return;if(!_0x2f905e['consumable']['consume'](_0xa45b40,{'attributes':['vid_start','vid_end']}))return;const _0x2c0a01=_0x1d7ecc['modelRange']['start']['nodeAfter'];_0x2f905e['writer']['setAttribute']('vid_start',_0xa45b40['getAttribute']('vid_start'),_0x2c0a01),_0x2f905e['writer']['setAttribute']('vid_end',_0xa45b40['getAttribute']('vid_end'),_0x2c0a01);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3c37cd=>{_0x3c37cd['on']('element',(_0x84458e,_0x2e06a6,_0x5e405d)=>{if(!_0x5e405d['consumable']['consume'](_0x2e06a6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e06a6['modelRange']['isCollapsed'])return;const _0x3d0a89=_0x2e06a6['modelRange']['start']['nodeAfter'];_0x3d0a89['hasAttribute']('vid_start')||_0x3d0a89['hasAttribute']('vid')||(_0x5e405d['writer']['setAttribute']('vid_start',_0x2e06a6['viewItem']['getAttribute']('vid_start'),_0x3d0a89),_0x5e405d['writer']['setAttribute']('vid_end',_0x2e06a6['viewItem']['getAttribute']('vid_end'),_0x3d0a89));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2bb78b=>_0x2bb78b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40728d,[,_0x15ab00])=>{['vid_start','vid_end','vid']['includes'](_0x15ab00)&&(_0x40728d['return']=!0x0,_0x40728d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3513b3=>{_0x3513b3['on']('attribute:vid',(_0x43b532,_0x4b5e85,_0x1e5166)=>{if('\x20'!=_0x4b5e85['item']['data']||_0x4b5e85['item']['parent']['maxOffset']>0x1)return;if(!_0x1e5166['consumable']['consume'](_0x4b5e85['item'],_0x43b532['name']))return;const _0x3d0b02=_0x1e5166['writer'],_0x1f65b8=_0x1e5166['mapper']['toViewRange'](_0x4b5e85['range']);_0x3d0b02['wrap'](_0x1f65b8,_0x3d0b02['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x568838){const _0x310d65=_0x568838['plugins']['get']('RevisionViewer');return(_0x32881f,_0x383275,_0x3853b1)=>{const _0x41e284=_0x383275['markerName']['split'](':')[0x1],_0x28fe4e=_0x310d65['_getChangeFromId'](_0x41e284);if(!_0x28fe4e)return null;const _0x4a8991='add'==_0x28fe4e['type']?'split':'merge';if(!_0x3853b1['consumable']['test'](_0x383275['markerRange'],_0x32881f['name']))return;const _0x4986a0=_0x383275['markerRange']['getWalker'](),_0x20df9f=_0x383275['markerRange']['start'],_0x475ede=_0x568838['model']['schema'];let _0x33c135=null,_0x5f584e=null,_0xe8a71f=!0x1,_0x5e188a=!0x1;for(const _0x3b2c4f of _0x4986a0){const _0x59746d=_0x3b2c4f['item'];_0xe8a71f=_0xe8a71f||_0x475ede['isContent'](_0x59746d);const _0xcf3365=_0x3853b1['mapper']['toViewElement'](_0x59746d);if(_0xcf3365&&_0xcf3365['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b2c4f['type']&&(_0x475ede['isBlock'](_0x59746d)&&!_0x475ede['isLimit'](_0x59746d)&&(_0x59746d['nextSibling']||_0x20df9f['isAtEnd']?_0x33c135&&_0x33c135['parent']==_0x59746d||(_0x33c135=_0x59746d,_0x5958a4(_0x3b2c4f['previousPosition']),_0x5e188a=!0x0):_0x5f584e=_0x5f584e||_0x3b2c4f['previousPosition']));}function _0x5958a4(_0x1f95c5){const _0x77e63c=_0x3853b1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a8991}),_0x3af345=_0x3853b1['mapper']['toViewPosition'](_0x1f95c5);_0x28fe4e['data']['isSuggestion']&&_0x3853b1['writer']['addClass']('ck-suggestion-marker-'+_0x4a8991+'-new',_0x77e63c),_0x310d65['activeChange']==_0x28fe4e&&_0x3853b1['writer']['addClass']('ck-suggestion-marker--active',_0x77e63c),_0x3853b1['writer']['insert'](_0x3af345,_0x77e63c),_0x3853b1['mapper']['bindElementToMarker'](_0x77e63c,_0x383275['markerName']);}_0xe8a71f||_0x5e188a||!_0x5f584e||_0x5958a4(_0x5f584e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3771ce,_0x5c76df,_0x1a9ff4)=>{const _0x23b6ad=_0x1a9ff4['mapper']['markerNameToElements'](_0x5c76df['markerName']);if(_0x23b6ad){for(const _0x54fcaa of _0x23b6ad)(_0x54fcaa['hasClass']('ck-suggestion-marker-split')||_0x54fcaa['hasClass']('ck-suggestion-marker-merge'))&&(_0x1a9ff4['mapper']['unbindElementFromMarkerName'](_0x54fcaa,_0x5c76df['markerName']),_0x1a9ff4['writer']['remove'](_0x54fcaa));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x556a47,_0xbe8ad3,_0x2581fd)=>{const _0x166a57=_0xbe8ad3['markerName']['split'](':')[0x1],_0x372ff3=this['_getChangeFromId'](_0x166a57);if(!_0x372ff3)return null;const _0x5de845='add'==_0x372ff3['type']?'split':'merge';if(_0x2581fd['consumable']['test'](_0xbe8ad3['markerRange'],_0x556a47['name']))for(const _0x500726 of _0xbe8ad3['markerRange']['getItems']()){if(!_0x500726['is']('element','softBreak'))continue;const _0xd96ab0=_0x2581fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5de845}),_0x176d22=_0x2581fd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x500726));_0x372ff3['data']['isSuggestion']&&_0x2581fd['writer']['addClass']('ck-suggestion-marker-'+_0x5de845+'-new',_0xd96ab0),this['activeChange']==_0x372ff3&&_0x2581fd['writer']['addClass']('ck-suggestion-marker--active',_0xd96ab0),_0x2581fd['writer']['insert'](_0x176d22,_0xd96ab0),_0x2581fd['mapper']['bindElementToMarker'](_0xd96ab0,_0xbe8ad3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x650127=>{for(const _0x14aefe of this['editor']['model']['document']['getRootNames']()){const _0x4bb692=this['editor']['model']['document']['getRoot'](_0x14aefe),_0x4452cc=this['editor']['editing']['view']['document']['getRoot'](_0x14aefe);if(_0x4452cc){const _0x3afb32=_0x4bb692['getAttribute']('revisionHistoryAttachChange');if(_0x650127['removeAttribute']('data-change-id',_0x4452cc),_0x650127['removeClass']('ck-revision-history-root-add',_0x4452cc),_0x650127['removeClass']('ck-revision-history-root-remove',_0x4452cc),_0x650127['removeClass']('ck-revision-history-root--active',_0x4452cc),_0x3afb32){const _0x33ea40=this['_getChangeFromId'](_0x3afb32);if(!_0x33ea40)return null;_0x650127['setAttribute']('data-change-id',_0x3afb32,_0x4452cc),_0x650127['addClass']('ck-revision-history-root-'+_0x33ea40['type'],_0x4452cc),this['activeChange']==_0x33ea40&&_0x650127['addClass']('ck-revision-history-root--active',_0x4452cc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x11e22f=>'revision-comment:'+_0x11e22f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x9e1c15=>'revision-suggestion:'+_0x9e1c15,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4a3ee7=>({'name':'suggestion:'+_0x4a3ee7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x499669=>{const _0x484539=_0x499669['markerName']['split'](':')[0x1];return'insertion'!=_0x484539&&'deletion'!=_0x484539?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x484539]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x135044,_0xfe4c25,_0x5d50c8)=>{const _0x31ae74=_0x5d50c8['mapper']['markerNameToElements'](_0xfe4c25['markerName']);if(_0x31ae74){for(const _0x25eb40 of _0x31ae74)_0x25eb40['is']('uiElement')&&(_0x5d50c8['mapper']['unbindElementFromMarkerName'](_0x25eb40,_0xfe4c25['markerName']),_0x5d50c8['writer']['remove'](_0x25eb40));}},{'priority':'high'});}['_getChangeFromId'](_0x54ccda){return this['_changeIdToChange']['get'](_0x54ccda);}['_getViewForChange'](_0x519c87){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x519c87),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2d3761,_0x29a570,_0x517b25,_0x1f5c06)=>{_0x1f5c06&&this['_balloon']['remove'](_0x1f5c06),_0x517b25&&(this['_balloon']['add']({'view':_0x517b25,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x459f4e=this['editor']['editing'],_0x3aea00=this['_getChangeFromId'](_0x517b25['changeId']);let _0x2e0fe9;if(_0x3aea00['data']['isOnRoot']){const _0x28b5af=_0x459f4e['view']['getDomRoot'](_0x3aea00['rootName']);_0x2e0fe9=Array['from'](_0x28b5af['getClientRects']());}else{const _0x4f3bf4=this['editor']['model']['markers']['get']('revision:'+_0x517b25['changeId']);_0x2e0fe9=Array['from'](_0x459f4e['mapper']['markerNameToElements'](_0x4f3bf4['name']))['map'](_0x300a3e=>_0x459f4e['view']['domConverter']['mapViewToDom'](_0x300a3e))['map'](_0xcf5ed7=>Array['from'](_0xcf5ed7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e0fe9[0x0];return _0x2e0fe9['find'](_0x56e844=>_0x56e844['top']-0x3<=this['_activeViewTarget']['y']&&_0x56e844['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x56e844['left']-0x3<=this['_activeViewTarget']['x']&&_0x56e844['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e0fe9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x12ab3e,_0x242447,_0x226843,_0xf5de24)=>{this['activeView']=_0x226843?this['_getViewForChange'](_0x226843):null,this['editor']['model']['change'](()=>{const _0x3047af=this['editor']['editing'];_0xf5de24&&(_0xf5de24['data']['isOnRoot']?_0x3047af['view']['change'](_0x476b65=>{_0x476b65['removeClass']('ck-revision-history-root--active',_0x3047af['view']['document']['getRoot'](_0xf5de24['rootName']));}):_0x3047af['reconvertMarker']('revision:'+_0xf5de24['id'])),_0x226843&&(_0x226843['data']['isOnRoot']?_0x3047af['view']['change'](_0x49e583=>{_0x49e583['addClass']('ck-revision-history-root--active',_0x3047af['view']['document']['getRoot'](_0x226843['rootName']));}):_0x3047af['reconvertMarker']('revision:'+_0x226843['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xa71974,_0x44f48a)=>{if(this['activeChange'])return;const _0x462c92=this['_findChangeIdFromDomTarget'](_0x44f48a['target']),_0x564361=this['_changeIdToChange']['get'](_0x462c92);_0x564361?(this['_activeViewTarget']={'x':_0x44f48a['domEvent']['x'],'y':_0x44f48a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x564361)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x79e99a,_0x380648)=>{const _0x1ebcb8=this['_findChangeIdFromDomTarget'](_0x380648['target']),_0x16b728=this['_changeIdToChange']['get'](_0x1ebcb8);_0x16b728?(this['_activeViewTarget']={'x':_0x380648['domEvent']['x'],'y':_0x380648['domEvent']['y']},_0x16b728===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x16b728):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5d6356){do{const _0x7893f0=_0x5d6356['getAttribute']('data-change-id');if(_0x7893f0)return _0x7893f0;_0x5d6356=_0x5d6356['parent'];}while(_0x5d6356);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5f36a2=>{for(const _0x52dc56 of this['editor']['model']['markers'])_0x5f36a2['removeMarker'](_0x52dc56);});}}function tt(_0x5e54b5,_0x2d6a2a){return(_0x33b93a,_0x39af30,_0x58fb53)=>{if(!_0x58fb53['consumable']['test'](_0x39af30['markerRange'],_0x33b93a['name']))return;const _0x44a6c6=_0x39af30['markerRange']['getWalker'](),_0x7f1e24=_0x39af30['markerRange']['start'],_0x33e491=_0x5e54b5['model']['schema'];let _0x549c6f=null,_0x42677f=null,_0x2c84e8=!0x1,_0x25255e=!0x1;for(const _0x1e5189 of _0x44a6c6){const _0x3ed9ba=_0x1e5189['item'];_0x2c84e8=_0x2c84e8||_0x33e491['isContent'](_0x3ed9ba);const _0x594a7a=_0x58fb53['mapper']['toViewElement'](_0x3ed9ba);if(_0x594a7a&&_0x594a7a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e5189['type']&&(_0x33e491['isBlock'](_0x3ed9ba)&&!_0x33e491['isLimit'](_0x3ed9ba)&&(_0x3ed9ba['nextSibling']||_0x7f1e24['isAtEnd']?_0x549c6f&&_0x549c6f['parent']==_0x3ed9ba||(_0x549c6f=_0x3ed9ba,_0x41470a(_0x1e5189['previousPosition']),_0x25255e=!0x0):_0x42677f=_0x42677f||_0x1e5189['previousPosition']));}function _0x41470a(_0x563a0e){const _0xc18b91=_0x58fb53['mapper']['toViewPosition'](_0x563a0e),_0x3110ab=_0x58fb53['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2d6a2a});_0x58fb53['writer']['insert'](_0xc18b91,_0x3110ab),_0x58fb53['mapper']['bindElementToMarker'](_0x3110ab,_0x39af30['markerName']);}_0x2c84e8||_0x25255e||!_0x42677f||_0x41470a(_0x42677f);};}class _t extends _0x145cd4{constructor(_0x35c719){super(_0x35c719);const _0x189daa=_0x35c719['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x189daa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x189daa,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x176777=this['editor'],_0x3bb3bf=_0x176777['plugins']['get'](d),_0x51e8c3=_0x3bb3bf['isReady']?_0x3bb3bf['diff']['newRevisionId']:null;_0x176777['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x51e8c3);}['refresh'](){const {isReady:_0x2691b3,isEnabled:_0x59bd88,repository:_0x4ad48c,diff:_0x2abb28}=this['editor']['plugins']['get'](d),_0x238b51=_0x2abb28&&_0x4ad48c['getLaterVisibleRevision'](_0x2abb28['newRevisionId']);this['isEnabled']=_0x2691b3&&_0x59bd88&&Boolean(_0x238b51);}}class yt extends _0x145cd4{['_step'];constructor(_0x493d8d,{direction:_0x22b557}){super(_0x493d8d);const _0x47037a=_0x493d8d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x22b557?0x1:-0x1,this['listenTo'](_0x47037a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47037a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x47037a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x414153=this['editor'],_0x5497aa=_0x414153['plugins']['get'](d),{isNavigationMode:_0x2ca07a,currentChangeNumber:_0x4ab213}=_0x5497aa;let _0x1293b4;if(_0x5497aa['activeChange']=_0x2ca07a?_0x5497aa['diff']['changes']['get'](_0x4ab213+this['_step']):_0x5497aa['diff']['changes']['first'],_0x5497aa['activeChange']['data']['isOnRoot'])_0x1293b4=_0x414153['editing']['view']['getDomRoot'](_0x5497aa['activeChange']['rootName']);else{const _0x1fe66f=_0x414153['model']['markers']['get']('revision:'+_0x5497aa['activeChange']['id']);_0x1293b4=_0x6d9d4c(_0x414153['editing'],_0x1fe66f);}_0x4d440c({'target':_0x1293b4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x36af4c,currentChangeNumber:_0x55e657,numberOfChanges:_0x7c25c7,isReady:_0x56b870,isEnabled:_0x15d176}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x15d176&&_0x56b870&&_0x7c25c7)&&(!_0x36af4c||(0x1===this['_step']?_0x55e657<_0x7c25c7-0x1:_0x55e657>0x0));}}class ui extends ts{constructor(_0x12eb3d){super(_0x12eb3d);const _0x10d61f=this['bindTemplate'],_0x196934=new te(_0x12eb3d),_0x432658=new te(_0x12eb3d);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',(_0x20f704,_0x418cae)=>_0x20f704&&_0x418cae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c4714,_0xd05cfa,_0x256d23,_0x498b8c)=>{if(!_0x5c4714)return R(_0x12eb3d,'Loading...');if(!_0x256d23)return R(_0x12eb3d,'No\x20changes');const _0xf40efc=R(_0x12eb3d,'NUMBER_OF_CHANGES',_0x256d23);return _0x498b8c?R(_0x12eb3d,'X_OF_Y_CHANGES',[_0xd05cfa+0x1,_0x256d23]):_0xf40efc;}),_0x196934['set']({'label':R(_0x12eb3d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x432658['set']({'label':R(_0x12eb3d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x196934['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x432658['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x196934['on']('execute',()=>this['fire']('execute','backward')),_0x432658['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',_0x10d61f['if']('_isStatusLabelVisible','ck-hidden',_0x54f5e=>!_0x54f5e)]},'children':[{'text':_0x10d61f['to']('isNavigationMode',_0x21528c=>_0x21528c?R(_0x12eb3d,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x12eb3d,'Total')+':\x20')}]},{'text':_0x10d61f['to']('_statusText')}]},new _0x32d385(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x196934,_0x432658]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x251bb4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f74a8=this['editor']['editing']['view'];_0x1f74a8['change'](_0x3ea591=>{for(const _0x609158 of _0x1f74a8['document']['roots'])_0x3ea591['addClass'](le,_0x609158);});}['hide'](){const _0x31facc=this['editor']['editing']['view'];_0x31facc['change'](_0x35206c=>{for(const _0x20f9e9 of _0x31facc['document']['roots'])_0x35206c['removeClass'](le,_0x20f9e9);});}}class m extends _0x251bb4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x269e1c=this['editor'],_0x7f4816=_0x269e1c['plugins']['get'](d),_0x51218b=_0x269e1c['plugins']['get'](de);_0x269e1c['ui']['componentFactory']['add']('exitToEditing',_0x2f1e0b=>{const _0x2ff709=new te(_0x2f1e0b);return _0x2ff709['set']({'label':R(_0x2f1e0b,'Back\x20to\x20editing'),'icon':_0x1732ef['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ff709,'execute',()=>{_0x269e1c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ff709;}),_0x269e1c['ui']['componentFactory']['add']('restoreRevision',_0x361daa=>{const _0x6b8d27=new te(_0x361daa);return _0x6b8d27['set']({'label':R(_0x361daa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x6b8d27['bind']('isEnabled')['to'](_0x269e1c['commands']['get']('restoreRevision')),this['listenTo'](_0x6b8d27,'execute',()=>_0x269e1c['execute']('restoreRevision')),_0x6b8d27;}),_0x269e1c['ui']['componentFactory']['add']('changesNavigation',_0x302332=>{const _0x28abe1=new ui(_0x302332),_0x2ffa5c=_0x269e1c['commands']['get']('showPreviousChange'),_0xf2b937=_0x269e1c['commands']['get']('showNextChange');return _0x28abe1['bind']('isBackwardNavigationEnabled')['to'](_0x2ffa5c,'isEnabled'),_0x28abe1['bind']('isForwardNavigationEnabled')['to'](_0xf2b937,'isEnabled'),_0x28abe1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x7f4816),this['listenTo'](_0x28abe1,'execute',(_0x4a6365,_0x3c0cff)=>{_0x269e1c['execute']('forward'===_0x3c0cff?'showNextChange':'showPreviousChange');}),_0x28abe1;}),_0x51218b['show'](),_0x7f4816['on']('change:isReady',(_0x4314ea,_0x4efae6,_0x4f62dd)=>{_0x4f62dd?_0x51218b['hide']():_0x51218b['show']();});}}class pt extends _0x5a6b56{['_resizeObserver']=null;constructor(_0x50f0bb,_0xe8985b){super(_0x50f0bb,_0xe8985b);const _0x4143fa=this['bindTemplate'];this['set']({'label':R(_0x50f0bb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x50f0bb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4143fa['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 _0x90a71d=this['fieldView']['element'];this['_tooltipString']=_0x90a71d['scrollWidth']>_0x90a71d['clientWidth']&&_0x90a71d['value']||'';}}class ri extends ts{constructor(_0x136506,_0x1ca49b,_0x381640){super(_0x136506);const _0x3f06bc=new _0x1d461a();_0x3f06bc['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x78622a=['ck','ck-revision-history-sidebar__revision-author'];_0x381640&&_0x78622a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a6e1c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x136506,_0x381640?'Revision\x20creator':'Revision\x20author')},'children':[_0x3f06bc,_0x1ca49b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x78622a},'children':_0x5a6e1c});}}function oi(_0x3bfbbe,_0xf99ad9){const _0x3cbd3a=_0x3bfbbe['bindTemplate'],_0x42bbdf=_0x3bfbbe['locale'],_0x420176=_0x37ee2e(_0x42bbdf);_0x420176['panelPosition']='sw';const _0x22dae9=function(_0x13290d,_0x2caa5d){const _0x8ef683=function(_0xde9cde,_0x2334d4){const _0x4636c0=_0xde9cde['locale'],_0x49aa8a={'Compare\x20against\x20selected':R(_0x4636c0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4636c0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4636c0,'Restore\x20this\x20revision')};return _0x2334d4['map'](_0x42b7f6=>{const _0x569ede=_0x49aa8a[_0x42b7f6['name']];return _0x569ede&&_0x569ede!==_0x42b7f6['name']&&(_0x42b7f6['name']=_0x569ede),_0x42b7f6;});}(_0x13290d,_0x2caa5d),_0x3bbc3a=new _0x446eb4();for(const _0x600ac1 of _0x8ef683){const _0x3ae197={'type':'button','model':new _0x5eb87b({'label':_0x600ac1['name'],'class':_0x600ac1['class'],'withText':!0x0,'role':'menuitem','_action':_0x600ac1['action']})};_0x3ae197['model']['bind']('isEnabled')['to'](_0x13290d,'isActionsDropdownOpen',_0x2aafd9=>'function'!=typeof _0x600ac1['isEnabled']||(!_0x2aafd9||_0x600ac1['isEnabled'](_0x13290d))),_0x3bbc3a['add'](_0x3ae197);}return _0x3bbc3a;}(_0x3bfbbe,_0xf99ad9);return _0x3bfbbe['bind']('isActionsDropdownOpen')['to'](_0x420176,'isOpen'),_0x420176['buttonView']['set']({'label':R(_0x42bbdf,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1732ef['threeVerticalDots']}),_0x420176['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3cbd3a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3cbd3a['to'](_0x720fce=>_0x720fce['stopPropagation']())}}),_0x420176['on']('execute',_0x3c826f=>{_0x3bfbbe['isReady']&&'function'==typeof _0x3c826f['source']['_action']&&_0x3c826f['source']['_action'](_0x3bfbbe);}),to(_0x420176,_0x22dae9,{'role':'menu'}),_0x420176['listenTo'](_0x3bfbbe,'change:isActionsDropdownOpen',(_0x295109,_0x513f04,_0x4dc2a7)=>{if(_0x4dc2a7)for(const _0x275efd of _0x420176['listView']['items']){const _0x30a142=_0x275efd['children']['first'],_0x732926=_0xf99ad9['find'](_0x57d7b5=>_0x57d7b5['action']===_0x30a142['_action'])['isVisible'];_0x275efd['isVisible']=void 0x0===_0x732926||_0x732926(_0x3bfbbe);}}),_0x420176;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x49c2d8,_0xf6e8d1,_0x1607cb,_0x570dd0){super(_0x49c2d8);const _0x90e3f1=this['bindTemplate'],_0x657dcc=function(_0x4c3ae5,_0x30f7a0){const _0x505ae8=Array['from'](_0x30f7a0['authors'])['filter'](_0x142376=>_0x142376!=_0x30f7a0['creator']);return _0x30f7a0['creator']&&_0x505ae8['unshift'](_0x30f7a0['creator']),_0x505ae8['map'](_0x5c1549=>new ri(_0x4c3ae5,_0x5c1549,_0x5c1549==_0x30f7a0['creator']));}(_0x49c2d8,_0xf6e8d1);this['id']=_0xf6e8d1['id'],this['_revision']=_0xf6e8d1,this['_requireRevisionName']=_0x570dd0,this['bind']('name','createdAt')['to'](_0xf6e8d1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x395c7c=>{return _0x4c2cdc=_0x49c2d8['uiLanguage'],(_0x2cfb66=_0x395c7c)['toLocaleDateString'](_0x4c2cdc,{'month':'long','day':'numeric'})+',\x20'+_0x2cfb66['toLocaleTimeString'](_0x4c2cdc,{'hour':'numeric','minute':'numeric'});var _0x4c2cdc,_0x2cfb66;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x49c2d8,_0x152253),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x296031=>_0x296031||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4c282f,_0x29dfbe)=>_0x4c282f&&_0x29dfbe),this['revisionActionsView']=_0x1607cb&&_0x1607cb['length']?oi(this,_0x1607cb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x90e3f1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x90e3f1['if']('isEnabled','ck-disabled',_0x40c754=>!_0x40c754),_0x90e3f1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x90e3f1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x90e3f1['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':_0x90e3f1['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':_0x657dcc}]},this['revisionActionsView']],'on':{'click':_0x90e3f1['to'](_0xcb119a=>{_0xcb119a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xbb801=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xbb801,'change',()=>{this['_requireRevisionName']&&!_0xbb801['value']||this['fire']('setName',{'id':this['id'],'name':_0xbb801['value']}),_0xbb801['value']||(_0xbb801['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(_0x49036c,_0x575f31){const _0x1bd57b=_0x5355cc['fromJSDate'](_0x49036c)['setLocale'](_0x575f31),_0x4ff404=_0x5355cc['local'](),_0x2406a1=_0x4ff404['minus']({'days':0x1})['startOf']('day');let _0x18e2a5,_0x20fd9d;return _0x1bd57b['hasSame'](_0x4ff404,'day')?(_0x18e2a5=_0x1bd57b['startOf']('day')['toJSDate'](),_0x20fd9d=_0x1bd57b['toRelativeCalendar']()):_0x1bd57b['hasSame'](_0x2406a1,'day')?(_0x18e2a5=_0x2406a1['toJSDate'](),_0x20fd9d=_0x1bd57b['toRelativeCalendar']()):_0x1bd57b['hasSame'](_0x4ff404,'week')?(_0x18e2a5=_0x1bd57b['startOf']('week')['toJSDate'](),_0x20fd9d=_0x1bd57b['weekdayLong']||''):_0x1bd57b['hasSame'](_0x4ff404,'year')?(_0x18e2a5=_0x1bd57b['startOf']('month')['toJSDate'](),_0x20fd9d=_0x1bd57b['monthLong']||''):(_0x18e2a5=_0x1bd57b['startOf']('year')['toJSDate'](),_0x20fd9d=String(_0x1bd57b['year'])),{'startDate':_0x18e2a5,'localizedPeriodName':_0x20fd9d};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x11b768,_0x31d9f7,_0x44999c,_0x8d1fc){super(_0x11b768);const _0x3b2932=mi(_0x31d9f7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x31d9f7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x44999c,this['_requireRevisionName']=_0x8d1fc,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':_0x3b2932}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4773ba){const _0xa8e677=new hi(this['locale'],_0x4773ba,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xa8e677);}['removeRevision'](_0x289ded){const _0x10cf8c=this['revisionViews']['find'](_0x48909e=>_0x48909e['id']===_0x289ded['id']);this['revisionViews']['remove'](_0x10cf8c);}}class as extends ts{constructor(_0x4b1e36){super(_0x4b1e36);const _0x193ddc=new _0x1d461a();_0x193ddc['content']=_0x1732ef['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x193ddc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x4b1e36,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ecbf2,_0x131eac,_0x454ac0,_0x3c3c75){super(_0x2ecbf2);const _0xaa4d94=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x131eac,this['_revisionActions']=_0x454ac0,this['_requireRevisionName']=_0x3c3c75,this['on']('select',(_0x59f478,_0x475b47)=>{this['fire']('revisionSelected',_0x475b47);}),this['on']('setName',(_0x201a3c,_0x173890)=>{this['fire']('revisionSetName',_0x173890);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2ecbf2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xaa4d94['if']('isEnabled','ck-disabled',_0xeae332=>!_0xeae332)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x14e1d6 of this['_revisions'])this['_addRevision'](_0x14e1d6);this['_revisions']['on']('add',(_0x5ef047,_0x4c9b6b)=>{this['_addRevision'](_0x4c9b6b);}),this['_revisions']['on']('remove',(_0x829748,_0x4075c2)=>{this['_removeRevision'](_0x4075c2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xeebb01=>_0xeebb01['revisionViews']['map'](_0x1c98f6=>_0x1c98f6))['flat']();}['selectRevision'](_0x4668b2){for(const _0x1c01ba of this['revisionViews'])_0x4668b2&&_0x4668b2['id']===_0x1c01ba['id']?_0x1c01ba['select']():_0x1c01ba['deselect']();}['highlightRevisions'](_0x32dea2){for(const _0x2de28d of this['revisionViews'])_0x32dea2['some'](({id:_0x5b76de})=>_0x5b76de===_0x2de28d['id'])?_0x2de28d['highlight']():_0x2de28d['unhighlight']();}['_addRevision'](_0x102f73){const _0x45960e=mi(_0x102f73['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3c6864=this['timePeriodViews']['get'](0x0);_0x3c6864&&_0x3c6864['startDate']['getTime']()===_0x45960e['getTime']()||(_0x3c6864=new vi(this['locale'],_0x45960e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3c6864)),_0x3c6864['addRevision'](_0x102f73);}['_removeRevision'](_0x4a0d55){const _0x5aab3b=mi(_0x4a0d55['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5aab3b)['removeRevision'](_0x4a0d55);}['_getTimePeriodViewByStartDate'](_0x55d02f){return this['timePeriodViews']['find'](_0x14c4e9=>_0x14c4e9['startDate']['getTime']()===_0x55d02f['getTime']());}}class g extends _0x251bb4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2c710d,_0x529bf5){super(_0x529bf5),this['sourceElement']=_0x2c710d,this['model']['document']['createRoot']();const _0x586ac2=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x586ac2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d8858,_0x31be19){const _0x584cbe=new this(_0x4d8858,_0x31be19);return await _0x584cbe['initPlugins'](),await _0x584cbe['ui']['init'](_0x4d8858),await _0x584cbe['data']['init'](_0x584cbe['config']['get']('initialData')||''),_0x584cbe['fire']('ready'),_0x584cbe;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x4b13f8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a5839){function _0x5a7de3(_0x36d75b){return _0x36d75b['map'](_0xe740c2=>String['fromCharCode'](_0xe740c2))['join']('');}super(_0x1a5839),this['result']='end',_0x1a5839[_0x5a7de3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a7de3([0x76,0x69,0x65,0x77])][_0x5a7de3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a7de3([0x61,0x75,0x74,0x6f]),_0x1a5839[_0x5a7de3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a7de3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a7de3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a7de3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a7de3([0x6f,0x6b])});}}class H extends _0x4b13f8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3cc448){if(super(_0x3cc448),!this['editor']['config']['get']('revisionHistory'))throw new _0x244890('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5ef256=>this['_showRevisionViewer']({..._0x5ef256,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x312f8a=>this['_closeRevisionViewer'](_0x312f8a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2e38bd=>this['_restoreRevision'](_0x2e38bd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3599c8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3599c8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xf291a4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xf291a4);}['getRevision'](_0x3462ff){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3462ff);}['getRevisions'](_0x17734c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x17734c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15f57d=this['editor'],_0x51fae2=_0x5a2b01(_0x15f57d,p),_0x5f0687=_0x15f57d['plugins']['get']('RevisionTracker'),_0x300c75=_0x15f57d['plugins']['get']('Users')['users'];return _0x51fae2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x51fae2['lazyRoots'],(_0x51fae2['plugins']['push'](k,d,m,class extends _0x4b13f8{static get['requires'](){return[d,'Users'];}['init'](){const _0x3f9416=this['editor']['plugins']['get']('Users');for(const _0x241fd6 of _0x300c75)_0x241fd6['isAnonymous']||_0x3f9416['getUser'](_0x241fd6['id'])||_0x3f9416['addUser'](_0x241fd6);const _0x5c34fd=_0x5f0687['repository']['getRevisions']();let _0x3779f4=null;const _0x2ba4e7=this['editor']['plugins']['get']('RevisionViewer');_0x2ba4e7['adapter']=_0x5f0687['adapter'],_0x2ba4e7['bind']('isEnabled')['to'](_0x5f0687),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15f57d,'isReadOnly',_0x1f0dfe=>!_0x1f0dfe);for(const _0x3b43cc of _0x5c34fd){const _0x1ec1fe=null===_0x3b43cc['creator'];if(_0x1ec1fe&&_0x3b43cc['toVersion']===_0x3b43cc['fromVersion'])continue;const _0x4d12f0=_0x3b43cc['toJSON']();_0x2ba4e7['addRevisionData'](_0x4d12f0,(_0xa4fa03,_0x460720,_0x28ec6d)=>{if(_0x1ec1fe){if(_0x3779f4)_0x3779f4['_update'](_0xa4fa03,_0x460720);else{if(!_0x460720){const _0x18a63a=_0x28ec6d['toJSON']();_0x18a63a['id']=_0x5bfa17(),_0x5f0687['saveRevision'](_0x18a63a,_0x28ec6d['toVersion'])['then'](_0x265327=>{_0x3779f4=_0x265327;});}}}else _0x3b43cc['_update'](_0xa4fa03,_0x460720);});}}},g),_0x51fae2);}['_enhanceShowRevisionViewerCallback'](){const _0x444ddc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1020d3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x44427a=this['editor']['plugins']['get']('Autosave');await _0x44427a['save']();}else await _0x1020d3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x112a15=this['editor']['plugins']['get']('Dialog');_0x112a15['isOpen']&&_0x112a15['hide']();}const _0x2b49b5=this['_getRevisionViewerEditorConfig']();return _0x444ddc(_0x2b49b5)['then'](_0x5ba343=>{return(this['_viewerEditor']=_0x5ba343,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5ba343;})['catch'](_0x5457cd=>(console['error'](_0x5457cd),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x92c45e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x92c45e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x301a23=this['editor']['plugins']['get']('Annotations');_0x301a23['refreshVisibility'](),_0x301a23['refreshPositioning']();}})));}['_showRevisionViewer'](_0x126664){const _0x4afa17=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x400c7b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x26af1b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x26af1b,_0x126664)['then'](_0x422222=>(_0x400c7b['style']['display']='block',_0x4afa17['style']['display']='none',_0x422222));}['_closeRevisionViewer'](_0x36f102){const _0xc213c3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xc213c3['style']['display']='',_0x36f102['destroy']();}async['_restoreRevision'](_0x106cb4){const _0x2f62c9=this['editor'],_0x32e44=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x28b321=_0x2f62c9['plugins']['get']('RevisionTracker'),_0x2b7d32=_0x32e44['repository']['getRevision'](_0x106cb4);let _0x1eadc7,_0xa59219,_0x3e6d52;try{_0x1eadc7=await _0x32e44['getRevisionData'](_0x2b7d32),_0xa59219=await _0x32e44['getRevisionRootsAttributes'](_0x2b7d32);}catch(_0x25e6c7){return void console['error'](_0x25e6c7);}_0x2f62c9['model']['change'](_0x40e77b=>{for(const _0x37c6a4 of Array['from'](_0x2f62c9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x40e77b['removeMarker'](_0x37c6a4);}),_0x32e44['isReady']=!0x1,_0x2f62c9['model']['enqueueChange'](_0x277115=>{_0x277115['setSelection'](null),_0x277115['removeSelectionAttribute'](_0x2f62c9['model']['document']['selection']['getAttributeKeys']());const _0x352c7e=Object['keys'](_0x1eadc7);for(const _0x417f8f of _0x2f62c9['model']['document']['roots'])'$graveyard'!=_0x417f8f['rootName']&&_0x417f8f['isAttached']()&&!_0x352c7e['includes'](_0x417f8f['rootName'])&&_0x277115['detachRoot'](_0x417f8f);for(const _0x3c3c35 of _0x352c7e){let _0x3b6d86=_0x2f62c9['model']['document']['getRoot'](_0x3c3c35);_0x3b6d86&&_0x3b6d86['isAttached']()||(_0x3b6d86=_0x277115['addRoot'](_0x3c3c35));const _0x5aeff5=_0xa59219[_0x3c3c35],_0x1aa157=Object['keys'](_0x5aeff5),_0x56fcc9=_0x1eadc7[_0x3c3c35];for(const _0x41c067 of _0x3b6d86['getAttributeKeys']())_0x1aa157['includes'](_0x41c067)||_0x277115['removeAttribute'](_0x41c067,_0x3b6d86);for(const _0x47c429 of _0x1aa157)_0x277115['setAttribute'](_0x47c429,_0xa59219[_0x3c3c35][_0x47c429],_0x3b6d86);_0x277115['remove'](_0x277115['createRangeIn'](_0x3b6d86)),_0x277115['insert'](_0x2f62c9['data']['parse'](_0x56fcc9,_0x3b6d86),_0x3b6d86,0x0);}});const _0x3111ea=R(_0x2f62c9['locale'],'Restored');if(_0x2b7d32['name'])_0x3e6d52=-0x1==_0x2b7d32['name']['indexOf'](_0x3111ea)?_0x3111ea+':\x20'+_0x2b7d32['name']:_0x2b7d32['name'];else _0x3e6d52=_0x3111ea+':\x20'+(_0x2b7d32['createdAt']['toLocaleDateString'](_0x2f62c9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2b7d32['createdAt']['toLocaleTimeString'](_0x2f62c9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x28b321['saveRevision']({'name':_0x3e6d52}),_0x32e44['isReady']=!0x0,_0x2f62c9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x29c0d9){super(_0x29c0d9),this['_revisionViewer']=_0x29c0d9['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x595aaf=this['_revisionsRepository']['_revisions'],_0x357dd3=this['_createRevisionActions'](),_0x109a85=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x595aaf,_0x357dd3,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',(_0x4dd426,_0x556f31)=>{_0x556f31['revisionViews']['on']('add',(_0x5121de,_0x278546)=>{_0x278546['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)),_0x109a85['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5f0914=this['_revisionsRepository']['getRevision'](0x0);if(_0x5f0914){const _0x350a31=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5f0914['id']);this['_revisionViewer']['compare'](_0x5f0914,_0x350a31);}}['_handleRevisionSelected'](_0x41c01f,_0x26fd35){const _0x2ca06a=this['_revisionsRepository']['getRevision'](_0x26fd35['id']),_0x526e4e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2ca06a['id']);this['_revisionViewer']['compare'](_0x2ca06a,_0x526e4e);}['_handleRevisionSetName'](_0x1aafad,_0x228530){this['_revisionsRepository']['getRevision'](_0x228530['id'])['setName'](_0x228530['name']);}['_handleDiffChange'](_0x5e4b27,_0x24b7d5,_0x22b137){const _0x427619=this['_revisionsRepository']['getRevisionsInDiff'](_0x22b137);_0x427619['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x427619),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x427619[0x0]));}['_createRevisionActions'](){const _0x131256=this['editor'],_0x2774d4=g['availableRevisionActions'],_0x16c38e=_0x131256['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x16c38e['length'])return _0x16c38e['map'](_0xbff9b3=>{const _0x2834cb='string'==typeof _0xbff9b3?Object['assign']({},_0x2774d4[_0xbff9b3]):_0xbff9b3;return _0x2834cb['action']=_0x2834cb['action']['bind'](this,_0x131256),_0x2834cb['isVisible']&&(_0x2834cb['isVisible']=_0x2834cb['isVisible']['bind'](this,_0x131256)),_0x2834cb;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54fc08},_0x2b929e)=>{const _0x5c0364=_0x54fc08['get'](d),_0x97f8b2=_0x5c0364['repository'];let _0x448bdf=_0x5c0364['diff']['newRevisionId'],_0x2f94cf=_0x2b929e['id'];_0x97f8b2['getIndex'](_0x448bdf)>_0x97f8b2['getIndex'](_0x2f94cf)&&([_0x448bdf,_0x2f94cf]=[_0x2f94cf,_0x448bdf]),_0x5c0364['compare'](_0x448bdf,_0x2f94cf);},'isVisible':({plugins:_0x3b5c67},_0x13b66f)=>{const _0x4dd76e=_0x3b5c67['get'](d);return!(_0x4dd76e['repository']['getRevisionsInDiff'](_0x4dd76e['diff'])['length']>0x2)&&!_0x13b66f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5844b3,{id:_0x558cba})=>{_0x5844b3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x558cba);},'isVisible':({plugins:_0x51441d},_0x1e5e7c)=>!!_0x51441d['get'](d)['repository']['getLaterVisibleRevision'](_0x1e5e7c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x92b38d},{id:_0x332e1b,revisionNameView:_0x454246})=>{const _0x21d63f=_0x92b38d['get'](d),_0x1f6def=_0x21d63f['repository']['getEarlierVisibleRevision'](_0x332e1b);_0x21d63f['compare'](_0x332e1b,_0x1f6def),_0x454246['focus'](),_0x454246['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x41b934,_0x40bf7e){super(_0x41b934),this['_view']=_0x40bf7e,this['_toolbarConfig']=ht(_0x41b934['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x237b91){const _0x584652=this['editor'],_0x22f5de=this['view'],_0x5721b2=_0x584652['editing']['view'],_0x35464d=_0x22f5de['editable'],_0x578032=_0x5721b2['document']['getRoot']();_0x35464d['name']=_0x578032['rootName'],_0x22f5de['render']();const _0x4b15b5=_0x35464d['element'];this['setEditableElement'](_0x35464d['name'],_0x4b15b5),_0x22f5de['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5721b2['attachDomRoot'](_0x4b15b5),this['_elementReplacer']['replace'](_0x237b91,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x43e557=this['view'],_0x2293ad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2293ad['detachDomRoot'](_0x43e557['editable']['name']),_0x43e557['destroy']();}['_initToolbar'](){const _0x1b1773=this['view'];_0x1b1773['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1b1773['stickyPanel']['limiterElement']=_0x1b1773['element'],_0x1b1773['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1ae50e})=>_0x1ae50e),_0x1b1773['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1b1773['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x453244,_0x436504,_0x323f19={}){super(_0x453244),this['stickyPanel']=new lt(_0x453244),this['toolbar']=new nt(_0x453244,{'shouldGroupWhenFull':_0x323f19['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x453244,_0x436504);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x194938,_0x494353){super(_0x494353),this['sourceElement']=_0x194938,this['model']['document']['createRoot']();const _0x153971=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x153971);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x15303d,_0x1c216b){const _0x16e84b=new this(_0x15303d,_0x1c216b);return await _0x16e84b['initPlugins'](),await _0x16e84b['ui']['init'](_0x15303d),await _0x16e84b['data']['init'](_0x16e84b['config']['get']('initialData')||''),_0x16e84b['fire']('ready'),_0x16e84b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x251bb4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e1690){function _0x2a8b2e(_0xa78573){return _0xa78573['map'](_0x33ef1e=>String['fromCharCode'](_0x33ef1e))['join']('');}super(_0x5e1690),this['result']='end',_0x5e1690[_0x2a8b2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a8b2e([0x76,0x69,0x65,0x77])][_0x2a8b2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a8b2e([0x61,0x75,0x74,0x6f]),_0x5e1690[_0x2a8b2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a8b2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a8b2e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a8b2e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a8b2e([0x6f,0x6b])});}}class H extends _0x251bb4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2675ae){if(super(_0x2675ae),!this['editor']['config']['get']('revisionHistory'))throw new _0x4d2749('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x22ae9a=>this['_showRevisionViewer']({..._0x22ae9a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x42d2d6=>this['_closeRevisionViewer'](_0x42d2d6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5bb90e=>this['_restoreRevision'](_0x5bb90e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x28158a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x28158a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x349bb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x349bb);}['getRevision'](_0x2d88ca){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2d88ca);}['getRevisions'](_0x14d681){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x14d681||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4f2fba=this['editor'],_0xa9cf88=_0x18eb90(_0x4f2fba,p),_0x10b9b4=_0x4f2fba['plugins']['get']('RevisionTracker'),_0x4f454f=_0x4f2fba['plugins']['get']('Users')['users'];return _0xa9cf88['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xa9cf88['lazyRoots'],(_0xa9cf88['plugins']['push'](k,d,m,class extends _0x251bb4{static get['requires'](){return[d,'Users'];}['init'](){const _0x39ec89=this['editor']['plugins']['get']('Users');for(const _0x5cb15b of _0x4f454f)_0x5cb15b['isAnonymous']||_0x39ec89['getUser'](_0x5cb15b['id'])||_0x39ec89['addUser'](_0x5cb15b);const _0x2f00d4=_0x10b9b4['repository']['getRevisions']();let _0x4ecd44=null;const _0x48c171=this['editor']['plugins']['get']('RevisionViewer');_0x48c171['adapter']=_0x10b9b4['adapter'],_0x48c171['bind']('isEnabled')['to'](_0x10b9b4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4f2fba,'isReadOnly',_0x5d3ae1=>!_0x5d3ae1);for(const _0x4d3fc4 of _0x2f00d4){const _0xc32e1a=null===_0x4d3fc4['creator'];if(_0xc32e1a&&_0x4d3fc4['toVersion']===_0x4d3fc4['fromVersion'])continue;const _0x50406d=_0x4d3fc4['toJSON']();_0x48c171['addRevisionData'](_0x50406d,(_0xcea7ed,_0x56f65a,_0x47a359)=>{if(_0xc32e1a){if(_0x4ecd44)_0x4ecd44['_update'](_0xcea7ed,_0x56f65a);else{if(!_0x56f65a){const _0x18588e=_0x47a359['toJSON']();_0x18588e['id']=_0x3b74fc(),_0x10b9b4['saveRevision'](_0x18588e,_0x47a359['toVersion'])['then'](_0x2e93b6=>{_0x4ecd44=_0x2e93b6;});}}}else _0x4d3fc4['_update'](_0xcea7ed,_0x56f65a);});}}},g),_0xa9cf88);}['_enhanceShowRevisionViewerCallback'](){const _0x2daf10=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x29e93d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3a04e1=this['editor']['plugins']['get']('Autosave');await _0x3a04e1['save']();}else await _0x29e93d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3bcd67=this['editor']['plugins']['get']('Dialog');_0x3bcd67['isOpen']&&_0x3bcd67['hide']();}const _0xe59164=this['_getRevisionViewerEditorConfig']();return _0x2daf10(_0xe59164)['then'](_0x287f65=>{return(this['_viewerEditor']=_0x287f65,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x287f65;})['catch'](_0x2e3e3c=>(console['error'](_0x2e3e3c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x588de8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x588de8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x174b16=this['editor']['plugins']['get']('Annotations');_0x174b16['refreshVisibility'](),_0x174b16['refreshPositioning']();}})));}['_showRevisionViewer'](_0x142a87){const _0x36c2bd=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x853329=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xb5d2f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xb5d2f,_0x142a87)['then'](_0x1120ba=>(_0x853329['style']['display']='block',_0x36c2bd['style']['display']='none',_0x1120ba));}['_closeRevisionViewer'](_0x1829a1){const _0x32b99a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x32b99a['style']['display']='',_0x1829a1['destroy']();}async['_restoreRevision'](_0xe2d9b5){const _0x3d7c07=this['editor'],_0x1b614d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e1f7c=_0x3d7c07['plugins']['get']('RevisionTracker'),_0x5d1594=_0x1b614d['repository']['getRevision'](_0xe2d9b5);let _0x40469a,_0x28f142,_0x4459c0;try{_0x40469a=await _0x1b614d['getRevisionData'](_0x5d1594),_0x28f142=await _0x1b614d['getRevisionRootsAttributes'](_0x5d1594);}catch(_0x50a401){return void console['error'](_0x50a401);}_0x3d7c07['model']['change'](_0x63ab16=>{for(const _0x3f0927 of Array['from'](_0x3d7c07['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x63ab16['removeMarker'](_0x3f0927);}),_0x1b614d['isReady']=!0x1,_0x3d7c07['model']['enqueueChange'](_0x2de35d=>{_0x2de35d['setSelection'](null),_0x2de35d['removeSelectionAttribute'](_0x3d7c07['model']['document']['selection']['getAttributeKeys']());const _0x3952f0=Object['keys'](_0x40469a);for(const _0x2f9ef5 of _0x3d7c07['model']['document']['roots'])'$graveyard'!=_0x2f9ef5['rootName']&&_0x2f9ef5['isAttached']()&&!_0x3952f0['includes'](_0x2f9ef5['rootName'])&&_0x2de35d['detachRoot'](_0x2f9ef5);for(const _0x1c6d42 of _0x3952f0){let _0x1f3083=_0x3d7c07['model']['document']['getRoot'](_0x1c6d42);_0x1f3083&&_0x1f3083['isAttached']()||(_0x1f3083=_0x2de35d['addRoot'](_0x1c6d42));const _0x3ac9eb=_0x28f142[_0x1c6d42],_0x12ccb9=Object['keys'](_0x3ac9eb),_0x4ea9cc=_0x40469a[_0x1c6d42];for(const _0x183614 of _0x1f3083['getAttributeKeys']())_0x12ccb9['includes'](_0x183614)||_0x2de35d['removeAttribute'](_0x183614,_0x1f3083);for(const _0x10cec1 of _0x12ccb9)_0x2de35d['setAttribute'](_0x10cec1,_0x28f142[_0x1c6d42][_0x10cec1],_0x1f3083);_0x2de35d['remove'](_0x2de35d['createRangeIn'](_0x1f3083)),_0x2de35d['insert'](_0x3d7c07['data']['parse'](_0x4ea9cc,_0x1f3083),_0x1f3083,0x0);}});const _0x16b6ea=R(_0x3d7c07['locale'],'Restored');if(_0x5d1594['name'])_0x4459c0=-0x1==_0x5d1594['name']['indexOf'](_0x16b6ea)?_0x16b6ea+':\x20'+_0x5d1594['name']:_0x5d1594['name'];else _0x4459c0=_0x16b6ea+':\x20'+(_0x5d1594['createdAt']['toLocaleDateString'](_0x3d7c07['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5d1594['createdAt']['toLocaleTimeString'](_0x3d7c07['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e1f7c['saveRevision']({'name':_0x4459c0}),_0x1b614d['isReady']=!0x0,_0x3d7c07['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|