@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250101.0 → 0.0.0-nightly-20250102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/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
|
-
_0x4f37d9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xe1b97){super(),this['id']=_0xe1b97['id']||_0x443970(),this['creator']=_0xe1b97['creator']||null,this['authors']=_0xe1b97['authors']||[],this['diffData']=_0xe1b97['diffData']||null,this['toVersion']=_0xe1b97['toVersion']||0x0,this['fromVersion']=_0xe1b97['fromVersion']||0x0,this['set']('name',_0xe1b97['name']||''),this['set']('createdAt',_0xe1b97['createdAt']||new Date()),this['set']('attributes',_0xe1b97['attributes']||{});}['setName'](_0x2ded57){this['_update']({'name':_0x2ded57});}['setAttribute'](_0x14a769,_0x219405){const _0x9af031=_0x13b21d(this['attributes']);_0xb45956(_0x9af031,_0x14a769,_0x219405),this['_update']({'attributes':_0x9af031});}['removeAttribute'](_0x138e4a){const _0x39722f=_0x13b21d(this['attributes']);_0x4906fd(_0x39722f,_0x138e4a),this['_update']({'attributes':_0x39722f});}['_update'](_0xd4c12c,_0x52fd0c=!0x1){let _0x37ec20=!0x1;const _0x1c6140={'id':this['id']},_0x43dd7f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xa23133 of _0x43dd7f){const _0x17da00=_0xd4c12c[_0xa23133];void 0x0!==_0x17da00&&_0x17da00!==this[_0xa23133]&&(this[_0xa23133]=_0x17da00,_0x1c6140[_0xa23133]=_0x17da00,_0x37ec20=!0x0);}_0x37ec20&&(_0x1c6140['authors']&&(_0x1c6140['authorsIds']=_0x1c6140['authors']['map'](_0x200e2c=>_0x200e2c['id']),delete _0x1c6140['authors']),this['fire']('_update',_0x1c6140,_0x52fd0c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11659a=>_0x11659a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x173480{['_revisions'];static get['requires'](){return[_0x421b50];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b78a9){super(_0x2b78a9),this['_revisions']=new _0x7320e5();}['afterInit'](){!async function(_0x2d9426){const _0x5bfae9=_0x36e77b([0x52,0x6b,0x73,0x57,0x71,0x74,0x64,0x62,0x4c,0x46,0x79,0x50,0x7a,0x4e,0x4d,0x43,0x6a,0x54,0x33,0x6f,0x78,0x4a,0x47,0x45,0x53,0x75,0x30,0x49,0x59,0x31,0x70,0x65,0x6c,0x35,0x39,0x66,0x36,0x58,0x44,0x38,0x4f,0x37,0x6d,0x6e,0x72,0x56,0x77,0x76,0x67,0x51,0x34,0x4b,0x41,0x61,0x32,0x69,0x42,0x55,0x48,0x5a,0x68,0x63]),_0x1d79aa=0xeb829,_0xb511ad=0x1b1bd56f,_0x22ab8f=0x1b1c8e37^_0xb511ad,_0xfa13c9=window[_0x36e77b([0x44,0x61,0x74,0x65])][_0x36e77b([0x6e,0x6f,0x77])](),_0x2dcb3a=_0x2d9426[_0x36e77b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51911=new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3843aa=>{_0x2dcb3a[_0x36e77b([0x6f,0x6e,0x63,0x65])](_0x36e77b([0x72,0x65,0x61,0x64,0x79]),_0x3843aa);}),_0x1980e8={[_0x36e77b([0x6b,0x74,0x79])]:_0x36e77b([0x45,0x43]),[_0x36e77b([0x75,0x73,0x65])]:_0x36e77b([0x73,0x69,0x67]),[_0x36e77b([0x63,0x72,0x76])]:_0x36e77b([0x50,0x2d,0x32,0x35,0x36]),[_0x36e77b([0x78])]:_0x36e77b([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]),[_0x36e77b([0x79])]:_0x36e77b([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]),[_0x36e77b([0x61,0x6c,0x67])]:_0x36e77b([0x45,0x53,0x32,0x35,0x36])},_0x37894d=_0x2dcb3a[_0x36e77b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36e77b([0x67,0x65,0x74])](_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x556c23(){let _0x123f8f,_0x14dee2=null,_0x515440=null;try{if(_0x37894d==_0x36e77b([0x47,0x50,0x4c]))return _0x36e77b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x123f8f=_0x12c142(),!_0x123f8f)return _0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x123f8f[_0x36e77b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x515440=_0x15e6b2(_0x123f8f[_0x36e77b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x123f8f[_0x36e77b([0x6a,0x74,0x69])])),await _0x3891f8()?_0x118fbb()?_0x1fb8df()?_0x36e77b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x118789()?(_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14dee2=_0x43153f(_0x36e77b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x74,0x72,0x69,0x61,0x6c])&&(_0x14dee2=_0x43153f(_0x36e77b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x14dee2=_0x43153f(_0x36e77b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c8ecc()):_0x36e77b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36e77b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45f668){return _0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fb8df(){const _0x25b838=[_0x36e77b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36e77b([0x74,0x72,0x69,0x61,0x6c])][_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfa13c9/0x3e8:0xe10*_0x22ab8f;return _0x123f8f[_0x36e77b([0x65,0x78,0x70])]<_0x25b838;}function _0x118fbb(){const _0x2c82f4=_0x123f8f[_0x36e77b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c82f4)return!0x1;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x2a])))return!0x0;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x52,0x48])))return!0x0;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x52,0x52,0x48]))){if(_0x499b05())return!0x0;if(_0x16318f()||_0x3eb990())return!0x0;}return!0x1;}function _0x118789(){const _0x482be6=_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x482be6||0x0==_0x482be6[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a10c7}=new URL(window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x482be6[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a10c7))return!0x0;const _0x1d84ea=_0x4a10c7[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e]));return _0x482be6[_0x36e77b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e2f26=>_0x4e2f26[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x2a])))[_0x36e77b([0x6d,0x61,0x70])](_0x12f51e=>_0x12f51e[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e])))[_0x36e77b([0x73,0x6f,0x6d,0x65])](_0x55bc11=>_0x1d84ea[_0x36e77b([0x65,0x76,0x65,0x72,0x79])]((_0x2b93a4,_0x4d7b41)=>_0x55bc11[_0x4d7b41]===_0x2b93a4||_0x55bc11[_0x4d7b41]===_0x36e77b([0x2a])));}function _0x4c8ecc(){return _0x14dee2&&_0x515440?new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32b9cb,_0x41d4fc)=>{_0x14dee2[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x32b9cb,_0x41d4fc),_0x515440[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x3b2e1b=>{_0x3b2e1b!=_0x36e77b([0x56,0x61,0x6c,0x69,0x64])&&_0x32b9cb(_0x3b2e1b);},_0x41d4fc);}):_0x14dee2||_0x515440||_0x36e77b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15e6b2(_0x2cee48,_0x3487d1){return new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd750=>{if(_0x4280a1())return _0x2bd750(_0x36e77b([0x56,0x61,0x6c,0x69,0x64]));_0x1c7cf9(),_0x2dcb3a[_0x36e77b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37ac6c=!0x1;const _0x44aed5=_0x443970();function _0x335d4f(_0x239089){return!!_0x239089&&(typeof _0x239089===_0x36e77b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x239089===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x239089[_0x36e77b([0x74,0x68,0x65,0x6e])]===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x239089[_0x36e77b([0x63,0x61,0x74,0x63,0x68])]===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e4b26(_0x1a2d69){_0x3f0fe7(_0x1a2d69)[_0x36e77b([0x74,0x68,0x65,0x6e])](_0xa84c18=>{if(!_0xa84c18||_0xa84c18[_0x36e77b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36e77b([0x6f,0x6b]))return _0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x907dc4(_0x2f1e1c(_0x44aed5+_0x3487d1))!=_0xa84c18[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36e77b([0x56,0x61,0x6c,0x69,0x64]);})[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x1c4639=>(_0x4bc115(),_0x1c4639),()=>{const _0x12ca8c=_0x3ecf21();return null==_0x12ca8c?(_0x4bc115(),_0x36e77b([0x56,0x61,0x6c,0x69,0x64])):_0x36e77b(_0xfa13c9-_0x12ca8c>(0x3f17516f^_0xb511ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x2bd750)[_0x36e77b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31122f=0x1b2d3bef^_0xb511ad;function _0x4bc115(){const _0x7509f7=_0x36e77b([0x6c,0x6c,0x63,0x74,0x2d])+_0x907dc4(_0x2f1e1c(_0x2cee48)),_0xdc1802=_0x372a53(_0x907dc4(window[_0x36e77b([0x4d,0x61,0x74,0x68])][_0x36e77b([0x63,0x65,0x69,0x6c])](_0xfa13c9/_0x31122f)));window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36e77b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7509f7,_0xdc1802);}function _0x3ecf21(){const _0x5ef0cc=_0x36e77b([0x6c,0x6c,0x63,0x74,0x2d])+_0x907dc4(_0x2f1e1c(_0x2cee48)),_0x4c92b0=window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36e77b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ef0cc);return _0x4c92b0?window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372a53(_0x4c92b0),0x10)*_0x31122f:null;}function _0x3f0fe7(_0x54d5f5){return new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17c3e6,_0x5ab710)=>{_0x54d5f5[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x17c3e6,_0x5ab710),window[_0x36e77b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ab710,0x1b1a01af^_0xb511ad);});}}_0x2dcb3a[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9078f5,_0x3fe484)=>{if(_0x3fe484[0x0]!=_0x2cee48)return _0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fe484[0x1]={..._0x3fe484[0x1],[_0x36e77b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44aed5};},{[_0x36e77b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36e77b([0x68,0x69,0x67,0x68])}),_0x2dcb3a[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8ee5=>{_0x335d4f(_0x3a8ee5[_0x36e77b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37ac6c=!0x0,_0x5e4b26(_0x3a8ee5[_0x36e77b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36e77b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36e77b([0x6c,0x6f,0x77])}),_0x51911[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>{_0x37ac6c||_0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4280a1(){return _0x2dcb3a[_0x36e77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36e77b([0x76,0x69,0x65,0x77])][_0x36e77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36e77b([0x61,0x75,0x74,0x6f]);}function _0x1c7cf9(){_0x2dcb3a[_0x36e77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36e77b([0x76,0x69,0x65,0x77])][_0x36e77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36e77b([0x61,0x75,0x74,0x6f]);}}function _0x43153f(_0x2eeb52){const _0x23bdbf=[new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a1a4=>setTimeout(_0x30a1a4,0x1b12eba3^_0xb511ad)),_0x51911[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452741=>{const _0x10a151=0x1b1bd568^_0xb511ad,_0x40eb1b=_0x2d9426[_0x36e77b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x229a78(){_0x40eb1b[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10a151&&_0x452741();}_0x229a78(),_0x40eb1b[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x61,0x64,0x64]),_0x229a78);})),new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cb504=>{function _0x2dc5a1(){for(const _0x163bcd in window)if(window[_0x36e77b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x36e77b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x163bcd))&&window[_0x163bcd]==_0x1d79aa)return _0x1cb504();_0x2dcb3a[_0x36e77b([0x73,0x74,0x61,0x74,0x65])]!=_0x36e77b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x36e77b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dc5a1,0x1b1bc6e7^_0xb511ad);}_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2dc5a1();})];return window[_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36e77b([0x72,0x61,0x63,0x65])](_0x23bdbf)[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>_0x2eeb52);}async function _0x57f2d5(){if(await _0x51911,_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x22add1=_0x2d9426[_0x36e77b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5e84e0=_0x2d9426[_0x36e77b([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])](_0x22add1[_0x36e77b([0x69,0x64])]),_0x376c34=_0x2c4ae0(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x376c34[_0x36e77b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x22add1['id'],_0x5e84e0?_0x5e84e0['id']:null,!0x0),_0x376c34[_0x36e77b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x376c34[_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x376c34[_0x36e77b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c18e4,void(_0x376c34[_0x36e77b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c18e4);}if(_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x55f770=_0x2c4ae0(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x55f770[_0x36e77b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x55f770[_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x55f770[_0x36e77b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c18e4,_0x55f770[_0x36e77b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c18e4;}_0x2dcb3a[_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c])][_0x36e77b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c18e4,_0x2dcb3a[_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c])][_0x36e77b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c18e4,_0x2dcb3a[_0x36e77b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x499b05(){return _0x21189f(_0x36e77b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c4ae0(_0x36e77b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x36e77b([0x73,0x74,0x61,0x74,0x65])]==_0x36e77b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16318f(){return _0x21189f(_0x36e77b([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 _0x3eb990(){return _0x21189f(_0x36e77b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x45242d(_0x22fb97){const _0x35338d=_0x4682c4();_0x2dcb3a[_0x35338d]=_0x36e77b([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])+_0x22fb97,_0x22fb97[_0x36e77b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x36e77b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4682c4()]=_0x1d79aa),_0x22fb97!=_0x36e77b([0x56,0x61,0x6c,0x69,0x64])&&_0x57f2d5();}function _0x4682c4(){const _0x50a8cf=window[_0x36e77b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36e77b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36e77b([0x6e,0x6f,0x77])]())[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36e77b([0x2e]),'');let _0x5383ed=_0x36e77b([0x52]);for(let _0x68e4dc=0x0;_0x68e4dc<_0x50a8cf[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x68e4dc+=0x2){let _0x322ee6=window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a8cf[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x68e4dc,_0x68e4dc+0x2));_0x322ee6>=_0x5bfae9[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x322ee6-=_0x5bfae9[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5383ed+=_0x5bfae9[_0x322ee6];}return _0x5383ed;}function _0x12c142(){const _0x123147=_0x37894d[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e]));if(0x3!=_0x123147[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18e88f(_0x123147[0x1]);function _0x18e88f(_0x8b1b19){const _0x5dc6f9=_0x48d80f(_0x8b1b19);return _0x5dc6f9&&_0x900745()?_0x5dc6f9:null;function _0x900745(){const _0x4d3050=_0x5dc6f9[_0x36e77b([0x6a,0x74,0x69])],_0x28d636=window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d3050[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d3050[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x83b0ae={..._0x5dc6f9,[_0x36e77b([0x6a,0x74,0x69])]:_0x4d3050[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d3050[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x83b0ae[_0x36e77b([0x76,0x63])],_0x2f1e1c(_0x83b0ae)==_0x28d636;}}}async function _0x3891f8(){let _0x5a3a60=!0x0;try{const _0x3280e4=_0x37894d[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e])),[_0x57971e,_0x192da0,_0x53937b]=_0x3280e4;return _0x55d13d(_0x57971e),await _0x27b4a8(_0x57971e,_0x192da0,_0x53937b),_0x5a3a60;}catch(_0x244e36){return!0x1;}function _0x55d13d(_0x3f9a28){const _0x47293e=_0x48d80f(_0x3f9a28);_0x47293e&&_0x47293e[_0x36e77b([0x61,0x6c,0x67])]==_0x36e77b([0x45,0x53,0x32,0x35,0x36])||(_0x5a3a60=!0x1);}async function _0x27b4a8(_0x1690eb,_0x55f221,_0x1b395b){const _0x3a4442=window[_0x36e77b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36e77b([0x66,0x72,0x6f,0x6d])](_0x2ce086(_0x1b395b),_0x46e948=>_0x46e948[_0x36e77b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2511a5=new window[(_0x36e77b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36e77b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1690eb+_0x36e77b([0x2e])+_0x55f221),_0x572f74=window[_0x36e77b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36e77b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x572f74)return;const _0x74d8e0=await _0x572f74[_0x36e77b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36e77b([0x6a,0x77,0x6b]),_0x1980e8,{[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x45,0x43,0x44,0x53,0x41]),[_0x36e77b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36e77b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x572f74[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x45,0x43,0x44,0x53,0x41]),[_0x36e77b([0x68,0x61,0x73,0x68])]:{[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x74d8e0,_0x3a4442,_0x2511a5)||(_0x5a3a60=!0x1);}}function _0x48d80f(_0x517a87){return _0x517a87[_0x36e77b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36e77b([0x65,0x79]))?JSON[_0x36e77b([0x70,0x61,0x72,0x73,0x65])](_0x2ce086(_0x517a87)):null;}function _0x2ce086(_0x576c55){return window[_0x36e77b([0x61,0x74,0x6f,0x62])](_0x576c55[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36e77b([0x2b]))[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36e77b([0x2f])));}function _0x2f1e1c(_0x55dc93){let _0x5b162d=0x1505;function _0x57a739(_0x2d1edb){for(let _0x2b4e18=0x0;_0x2b4e18<_0x2d1edb[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b4e18++){const _0x308537=_0x2d1edb[_0x36e77b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b4e18);_0x5b162d=(_0x5b162d<<0x5)+_0x5b162d+_0x308537,_0x5b162d&=_0x5b162d;}}function _0x5ae8d8(_0x488422){Array[_0x36e77b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x488422)?_0x488422[_0x36e77b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ae8d8):_0x488422&&typeof _0x488422==_0x36e77b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36e77b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x488422)[_0x36e77b([0x73,0x6f,0x72,0x74])]()[_0x36e77b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54a369,_0x40d216])=>{_0x57a739(_0x54a369),_0x5ae8d8(_0x40d216);}):_0x57a739(window[_0x36e77b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x488422));}return _0x5ae8d8(_0x55dc93),_0x5b162d>>>0x0;}function _0x907dc4(_0x3ac2fd){return _0x3ac2fd[_0x36e77b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36e77b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36e77b([0x30]));}function _0x372a53(_0x10bf2b){return _0x10bf2b[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36e77b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36e77b([0x6a,0x6f,0x69,0x6e])]('');}function _0x21189f(_0x1734fc){return _0x2dcb3a[_0x36e77b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36e77b([0x68,0x61,0x73])](_0x1734fc);}function _0x2c4ae0(_0x12c560){return _0x2dcb3a[_0x36e77b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36e77b([0x67,0x65,0x74])](_0x12c560);}function _0x5c18e4(){}function _0x36e77b(_0x323674){return _0x323674['map'](_0xd4dff8=>String['fromCharCode'](_0xd4dff8))['join']('');}_0x45242d(await _0x556c23());}(this);}['createRevision'](_0x1cca64){const _0x5c224f=this['editor']['plugins']['get']('Users');return new a({'id':_0x1cca64['id'],'name':_0x1cca64['name'],'creator':_0x1cca64['creatorId']?_0x5c224f['getUser'](_0x1cca64['creatorId']):null,'diffData':_0x1cca64['diffData']||_0x1cca64['data'],'authors':_0x1cca64['authorsIds']['map'](_0x289709=>_0x5c224f['getUser'](_0x289709)),'createdAt':new Date(_0x1cca64['createdAt']),'attributes':_0x1cca64['attributes'],'fromVersion':_0x1cca64['fromVersion'],'toVersion':_0x1cca64['toVersion']});}['addRevision'](_0x1b9f90,_0x10c2aa=0x0){this['_revisions']['add'](_0x1b9f90,_0x10c2aa);}['getRevision'](_0x594279){return this['_revisions']['get'](_0x594279);}['getRevisions'](_0x15ca2e={'toJSON':!0x1}){const _0x3a7c33=Array['from'](this['_revisions']);return _0x3a7c33['reverse'](),_0x15ca2e['toJSON']?_0x3a7c33['map'](_0x489f53=>_0x489f53['toJSON']()):_0x3a7c33;}['getIndex'](_0x34adfd){return this['_revisions']['getIndex'](_0x34adfd);}['getEarlierVisibleRevision'](_0x3be834){const [,_0x441e7d]=this['getRevisionsIterator'](_0x3be834,{'direction':'earlier'});return _0x441e7d;}['getLaterVisibleRevision'](_0x2aca8e){const [,_0x381310]=this['getRevisionsIterator'](_0x2aca8e,{'direction':'later'});return _0x381310;}['getRevisionsInDiff'](_0x373e16){const _0x5280bc=[];for(const _0x31f213 of this['getRevisionsIterator'](_0x373e16['newRevisionId']))if(_0x5280bc['push'](_0x31f213),_0x31f213['id']===_0x373e16['oldRevisionId'])break;return _0x5280bc;}*['getRevisionsIterator'](_0x5b446a,{direction:_0x691ffa='earlier',filter:_0x1ede75=()=>!0x0}={}){const _0x2948b7='earlier'===_0x691ffa?0x1:-0x1;let _0x5a3189=this['_revisions']['get'](_0x5b446a),_0x3401dd=this['getIndex'](_0x5a3189);for(yield _0x5a3189;_0x5a3189;){if(_0x3401dd+=_0x2948b7,_0x5a3189=this['getRevision'](_0x3401dd),!_0x5a3189)return;_0x1ede75(_0x5a3189)&&(yield _0x5a3189);}}}function R(_0x31d36e,_0x147f80,_0x352beb){const t=_0x31d36e['t'];switch(_0x147f80){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'},_0x352beb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x352beb);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':_0x269e24,'a':_0x832fa4,'e':_0x2821ca,'r':_0x46e5fa,'u':_0x1ad2b4};class l extends _0x173480{['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[_0x421b50,j,_0x169908];}constructor(_0x1afece){super(_0x1afece),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 _0x3ea2c3=_0x443970();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3ea2c3},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 _0xd72f54=this['repository']['getRevision'](0x0),_0x1d3972=_0xd72f54&&null===_0xd72f54['creator']?_0xd72f54:null;if(this['_continueCurrentRevision']=!!_0x1d3972&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd7e62d=this['_source']['getCurrentRevisionId'](),_0x5287f5=this['repository']['getRevision'](_0xd7e62d);if(_0x5287f5)this['_startingVersion']=_0x5287f5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3c67ba=this['_source']['history']['_operations']['find'](_0x4441b5=>!_0x4441b5['_isInit']),_0x36c926=_0x3c67ba?_0x3c67ba['baseVersion']:this['_source']['history']['version'];_0xd72f54?(_0xd72f54['toVersion']<_0x36c926&&_0xd72f54['_update']({'toVersion':_0x36c926}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id'],this['_startingVersion']=_0x1d3972['fromVersion']):(this['_startingVersion']=_0xd72f54['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x36c926,this['_continueCurrentRevision']=!0x1);}}else _0x1d3972&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1d3972['toVersion'],this['editor']['model']['document']['history']['version']),_0x1d3972['fromVersion']===_0x1d3972['toVersion']?(0x0!==_0x1d3972['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id'],this['_startingVersion']=_0x1d3972['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',_0x5a80cc=>!_0x5a80cc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x86efb3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b2092;for(const _0x3ef957 in _0x86efb3){const _0x90cf1c=_0x3ef957,_0x4ad99=_0x86efb3[_0x90cf1c];if('revisionHistoryLicenseKeyValid'==_0x4ad99||'revisionHistoryLicenseKeyInvalid'==_0x4ad99||'revisionHistoryLicenseKeyExpired'==_0x4ad99||'revisionHistoryLicenseKeyDomainLimit'==_0x4ad99||'revisionHistoryLicenseKeyNotAllowed'==_0x4ad99||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4ad99||'revisionHistoryLicenseKeyTrialLimit'==_0x4ad99||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4ad99||'revisionHistoryLicenseKeyUsageLimit'==_0x4ad99){delete _0x86efb3[_0x90cf1c],_0x5b2092=_0x4ad99,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5b2092&&_0x86efb3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5b2092&&_0x86efb3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5b2092&&_0x86efb3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x28c253=this['repository']['getRevision'](0x0),_0x1e3f03=await this['getRevisionDocumentData'](_0x28c253),_0xf04f29=await this['getRevisionRootsAttributes'](_0x28c253);this['_replaceEditorDataWithRevisionData'](_0x1e3f03,_0xf04f29);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x408709){this['_source']=_0x408709;}async['update'](){const _0x141999=await this['_source']['getLatestVersion']();if(_0x141999>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c9c15=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x141999});_0x2c9c15['authors']=_0x2c9c15['authorsIds']['map'](_0x28330b=>this['editor']['plugins']['get']('Users')['getUser'](_0x28330b)),this['currentRevision']['_update'](_0x2c9c15);}}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'](_0x5b378e={},_0x41dd6f=null){const _0x3be30e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x41dd6f>this['currentRevision']['toVersion']&&(_0x41dd6f=null),null===_0x41dd6f&&(_0x41dd6f=await this['_source']['getLatestVersion']());const _0x14805e=this['_getFromVersion'](_0x41dd6f),_0xb461f4=this['buildRevisionData']({'from':_0x14805e,'to':_0x41dd6f});if(this['currentRevision']['toVersion']<_0x41dd6f){const _0x2414f4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x41dd6f,'to':_0x41dd6f});_0x2414f4['authors']=[],_0x2414f4['authorsIds']=[],_0x2414f4['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2414f4,!0x0),delete _0x2414f4['authors'],_0x3be30e['push'](_0x2414f4);}_0x5b378e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b378e['name']=_0x5b378e['name']||null,_0x5b378e['id']=_0x5b378e['id']||_0x443970(),_0x5b378e={..._0x5b378e,..._0xb461f4};const _0x5412b1=this['addRevisionData'](_0x5b378e);_0x3be30e['push'](_0x5b378e);const _0x3126a7=this['repository']['getIndex'](_0x5412b1);if(0x0!==_0x3126a7){const _0x17724b=this['repository']['getRevision'](_0x3126a7-0x1);if(_0x17724b['fromVersion']!==_0x41dd6f){const _0x4b479f=this['_revisionDataBuilder']['getData'](_0x41dd6f,_0x17724b['toVersion']),_0x3e5812={'id':_0x17724b['id'],'diffData':_0x4b479f['diffData'],'authorsIds':_0x4b479f['authorsIds'],'authors':_0x4b479f['authorsIds']['map'](_0x24ddf4=>this['editor']['plugins']['get']('Users')['getUser'](_0x24ddf4)),'fromVersion':_0x41dd6f};_0x17724b===this['currentRevision']&&(_0x3e5812['createdAt']=new Date(_0x5b378e['createdAt']['getTime']()+0xa)),_0x17724b['_update'](_0x3e5812,!0x0),delete _0x3e5812['authors'],_0x3be30e['push'](_0x3e5812);}}if(this['adapter']){for(const _0x44a57e of _0x3be30e)this['_bufferUpdate'](_0x44a57e['id'],_0x44a57e,!0x0);this['sendBufferedUpdates']();}return _0x5412b1;}['addRevisionData'](_0x2fff9d){const _0x485dad=this['repository']['createRevision'](_0x2fff9d);return this['adapter']&&_0x485dad['on']('_update',(_0x42193f,_0x1ae892,_0x2d5d93)=>{_0x2d5d93||(this['_bufferUpdate'](_0x1ae892['id'],_0x1ae892,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x485dad,this['_findInsertionIndex'](_0x485dad)),_0x485dad;}async['getRevisionDocumentData'](_0x4fc829){await this['_loadRevisionData'](_0x4fc829);const _0x799674={};for(const _0x19f832 in _0x4fc829['diffData']){if(_0x4fc829['diffData'][_0x19f832]['attachChange']&&!_0x4fc829['diffData'][_0x19f832]['attachChange']['isAttached'])continue;const _0x5a104f=this['_removeRevisionMarkers'](JSON['parse'](_0x4fc829['diffData'][_0x19f832]['insertions'])),_0x9ef8c0=this['editor']['editing']['view']['document'],_0x497b00=new _0x297069(_0x9ef8c0,_0x5a104f['map'](_0x49fd96=>V(_0x49fd96,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x799674[_0x19f832]=this['editor']['data']['processor']['toData'](_0x497b00),this['editor']['data']['processor']['useFillerType']('default');}return _0x799674;}async['getRevisionRootsAttributes'](_0x1f303a){await this['_loadRevisionData'](_0x1f303a);const _0x119735={};for(const _0x312ac8 in _0x1f303a['diffData'])_0x1f303a['diffData'][_0x312ac8]['attachChange']&&!_0x1f303a['diffData'][_0x312ac8]['attachChange']['isAttached']||(_0x119735[_0x312ac8]=_0x1f303a['diffData'][_0x312ac8]['attributesAfter']||{});return _0x119735;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x559314=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4294c9=0x0;_0x4294c9<_0x559314['length'];_0x4294c9++){const _0x4537c0=_0x559314[_0x4294c9];let _0x1b5913=!0x1;for(const _0x483adb of Object['keys'](_0x4537c0))void 0x0===_0x4537c0[_0x483adb]?delete _0x4537c0[_0x483adb]:'id'!==_0x483adb&&(_0x1b5913=!0x0);_0x1b5913||(_0x559314[_0x4294c9]=null);}if(_0x559314=_0x559314['filter'](_0x90e69d=>null!==_0x90e69d),!_0x559314['length'])return;for(let _0x36dcdc=0x0;_0x36dcdc<_0x559314['length'];_0x36dcdc++){const _0xf89f6b=_0x559314[_0x36dcdc];void 0x0!==_0xf89f6b['fromVersion']&&void 0x0===_0xf89f6b['toVersion']&&(_0xf89f6b['toVersion']=this['repository']['getRevision'](_0xf89f6b['id'])['toVersion']),void 0x0!==_0xf89f6b['toVersion']&&void 0x0===_0xf89f6b['fromVersion']&&(_0xf89f6b['fromVersion']=this['repository']['getRevision'](_0xf89f6b['id'])['fromVersion']);}const _0x2842b0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x559314,_0x2842b0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e6480=>{if(_0x4e6480){for(const _0x2bdd0e of _0x4e6480)this['setRevisionData']({'id':_0x2bdd0e['id'],'createdAt':_0x2bdd0e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1dd009,_0x91fc2c){let _0x365909=this['editor']['config']['get']('initialData'),_0x6d7540=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x365909){_0x365909={};for(const _0x25e86c of this['editor']['model']['document']['getRootNames']())_0x365909[_0x25e86c]='';}if('string'==typeof _0x365909&&(_0x365909={'main':_0x365909}),void 0x0===_0x6d7540){_0x6d7540={};for(const _0x511b8c of this['editor']['model']['document']['getRootNames']())_0x6d7540[_0x511b8c]={};}let _0x20f30c=!0x1;const _0x373693=Object['keys'](_0x365909),_0x2b899b=Object['keys'](_0x1dd009);for(const _0x20ca48 of _0x373693){if(_0x365909[_0x20ca48]!==_0x1dd009[_0x20ca48]&&''!==_0x365909[_0x20ca48]['trim']()){_0x20f30c=!0x0;break;}if(!_0x51c453(_0x6d7540[_0x20ca48],_0x91fc2c[_0x20ca48])&&Object['keys'](_0x6d7540[_0x20ca48])['length']>0x0){_0x20f30c=!0x0;break;}}_0x20f30c||(_0x20f30c=_0x2b899b['some'](_0xc84dda=>!this['editor']['model']['document']['getRoot'](_0xc84dda))),_0x20f30c&&_0x302b1e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x365909,'editorRootsAttributes':_0x6d7540,'revisionData':_0x1dd009,'revisionRootsAttributes':_0x91fc2c}),this['editor']['config']['set']('initialData',_0x1dd009),this['editor']['config']['set']('rootsAttributes',_0x91fc2c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x84d1f3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x84d1f3['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x380f51){const _0x4dd0d4=this['repository']['getRevisions']();_0x4dd0d4['reverse']();let _0x85973f=0x0;for(;_0x85973f<_0x4dd0d4['length'];){const _0x58ceed=_0x4dd0d4[_0x85973f];if(_0x58ceed===this['currentRevision']){_0x85973f++;continue;}if(_0x58ceed['id']===this['_initialRevisionId'])break;const _0xd6a82b=_0x380f51['toVersion']-_0x58ceed['toVersion']||_0x380f51['fromVersion']-_0x58ceed['fromVersion'];if(_0xd6a82b>0x0)break;if(_0xd6a82b<0x0)_0x85973f++;else{if(!_0x380f51['creator']&&_0x58ceed['creator'])break;if(_0x58ceed['creator']||!_0x380f51['creator']){if(_0x380f51['createdAt']>_0x58ceed['createdAt'])break;_0x85973f++;}else _0x85973f++;}}return _0x85973f;}['setRevisionData'](_0x2e2358){const _0x14b261=this['repository']['getRevision'](_0x2e2358['id']);if(_0x2e2358['createdAt']&&(_0x2e2358['createdAt']=new Date(_0x2e2358['createdAt'])),_0x2e2358['authorsIds']){const _0x196e59=this['editor']['plugins']['get']('Users');_0x2e2358['authors']=_0x2e2358['authorsIds']['map'](_0x39471b=>_0x196e59['getUser'](_0x39471b));}_0x14b261['_update'](_0x2e2358,!0x0);}['buildRevisionData']({revision:_0x46f0d3=null,from:_0x295a1b=null,to:_0x277ccf=null}){_0x295a1b=null!==_0x295a1b?_0x295a1b:_0x46f0d3['fromVersion'],_0x277ccf=null!==_0x277ccf?_0x277ccf:_0x46f0d3['toVersion'];const _0x2b5bdb=this['_revisionDataBuilder']['getData'](_0x295a1b,_0x277ccf),_0x3c322c={'diffData':_0x2b5bdb['diffData'],'authorsIds':_0x2b5bdb['authorsIds'],'fromVersion':_0x295a1b,'toVersion':_0x277ccf};if(!_0x46f0d3||_0x277ccf!==_0x46f0d3['toVersion']){const _0x40db0e=_0x277ccf-0x1,_0x5471a7=this['_source']['history']['getOperation'](_0x40db0e);_0x3c322c['createdAt']=_0x5471a7&&_0x5471a7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x295a1b===this['_loadedStateData']['fromVersion']){for(const _0x116770 of this['_loadedStateData']['authors'])_0x3c322c['authorsIds']['includes'](_0x116770['id'])||_0x3c322c['authorsIds']['push'](_0x116770['id']);}return _0x3c322c;}['_loadRevisionData'](_0x264753){if(!_0x264753||_0x264753['diffData'])return Promise['resolve']();{const _0x2fec50=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2fec50,'revisionId':_0x264753['id']})['then'](_0x4e2559=>{_0x264753['diffData']=_0x4e2559['diffData'];});}}['_bufferUpdate'](_0x3dd0cd,_0x204a44,_0x3b5702){if(this['_bufferedUpdates']['has'](_0x3dd0cd)){const _0x58a6ef=this['_bufferedUpdates']['get'](_0x3dd0cd);_0x204a44=_0x3b5702?{..._0x58a6ef,..._0x204a44}:{..._0x204a44,..._0x58a6ef};}this['_bufferedUpdates']['set'](_0x3dd0cd,_0x204a44);}['_getFromVersion'](_0x2aa858){const _0x1533ac=this['repository']['getRevisions']();_0x1533ac['reverse'](),_0x1533ac['shift']();const _0x342b22=_0x1533ac['find'](_0x3c744d=>_0x3c744d['toVersion']<=_0x2aa858)['toVersion'];return _0x342b22<this['_startingVersion']?this['_startingVersion']:_0x342b22;}['_createInitialRevision'](_0x1a4566){const _0x530d27=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x530d27)this['_initialRevisionId']=_0x530d27['id'];else{const _0x546805=!this['editor']['model']['document']['roots']['find'](_0x20d4ac=>this['editor']['model']['hasContent'](_0x20d4ac)),_0x4aaf63=this['editor']['plugins']['get']('Users')['me']['id'],_0x38a58a=R(this['editor']['locale'],_0x546805?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1a4566,'to':_0x1a4566,'id':this['_initialRevisionId'],'name':_0x38a58a,'creatorId':_0x4aaf63});}}['_createCurrentRevision'](_0x5f3d54){const _0x5233fd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5233fd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5f3d54,'to':_0x5f3d54,'id':_0x5233fd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x26c22b,from:_0x42f84a,to:_0x1e381c,creatorId:_0x2c2db8,id:_0x33f161}){const _0x2404ff=this['buildRevisionData']({'from':_0x42f84a,'to':_0x1e381c});_0x2404ff['name']=_0x26c22b,_0x2404ff['creatorId']=_0x2c2db8,_0x2404ff['id']=_0x33f161;const _0x54f4bd=this['addRevisionData'](_0x2404ff);return this['adapter']&&this['_bufferUpdate'](_0x2404ff['id'],_0x2404ff,!0x0),_0x54f4bd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5a3c03){return(_0x5a3c03=_0x5a3c03['filter'](_0x1118ea=>!_0x1118ea['name']||'revision-start'!==_0x1118ea['name']&&'revision-end'!==_0x1118ea['name']))['forEach'](_0x2da3e4=>{'string'!=typeof _0x2da3e4&&(_0x2da3e4['children']=this['_removeRevisionMarkers'](_0x2da3e4['children']),_0x2da3e4['attributes']=_0x2da3e4['attributes']['filter'](_0x7324bd=>!_0x7324bd[0x0]['startsWith']('data-revision-')));}),_0x5a3c03;}}function V(_0x1cc084,_0x400fb0){const _0x3b47f0=_0x400fb0['editing']['view']['document'];if('string'==typeof _0x1cc084)return new _0x4f05b2(_0x3b47f0,_0x1cc084);{const _0x384df4=_0x1cc084['children']['map'](_0x4484c9=>V(_0x4484c9,_0x400fb0));return new(C[_0x1cc084['type']]||_0x348f18)(_0x3b47f0,_0x1cc084['name'],_0x1cc084['attributes'],_0x384df4);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2dd5bb){this['editor']=_0x2dd5bb,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'](_0x18beb0){this['source']=_0x18beb0;const _0x1b009c=new Map(),_0x46aa10=new Map(),_0x5bac9b=this['editor']['model']['document']['roots']['map'](_0x2499bd=>_0x2499bd['rootName']);for(const _0x43163f of _0x5bac9b){const _0x78119b=this['editor']['model']['document']['getRoot'](_0x43163f),_0x14dd09=F(_0x78119b);_0x1b009c['set'](_0x43163f,_0x14dd09),_0x46aa10['set'](_0x43163f,Object['fromEntries'](_0x78119b['getAttributes']()));}const _0x617797=Array['from'](this['editor']['model']['markers'])['map'](_0x2840df=>[_0x2840df['name'],_0x2840df['getRange']()]),_0x1c2eaa=this['source']['version'];this['_saveMetaData'](_0x1c2eaa,_0x1b009c,_0x617797,_0x46aa10),this['_startingRevisionId']=this['_revisionId'];const _0x1e6703=new Map(),_0x3331cf=new Map();for(const _0x4847e8 of _0x5bac9b){const _0x16b7e3=B(_0x4847e8);_0x1e6703['set'](_0x4847e8,_0x16b7e3),_0x3331cf['set'](_0x4847e8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e6703,[],_0x3331cf);}['getData'](_0xf2fd8e,_0x3841f9){if(this['_lastFrom']===_0xf2fd8e&&this['_lastTo']<=_0x3841f9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3841f9,!0x0);else{if(!this['_savedMetaData']['has'](_0xf2fd8e)){const _0x7d8b97=this['_getPreviousFrom'](_0xf2fd8e);this['_calculateMetaData'](_0x7d8b97,_0xf2fd8e,!0x1);}this['_calculateMetaData'](_0xf2fd8e,_0x3841f9,!0x0);}return this['_lastFrom']=_0xf2fd8e,this['_lastTo']=_0x3841f9,this['_getState']();}['loadState'](_0x372eac){this['_reset'](),this['_lastFrom']=_0x372eac['fromVersion'],this['_lastTo']=_0x372eac['toVersion'];for(const _0x204be3 in _0x372eac['diffData']){const _0x264425=_0x372eac['diffData'][_0x204be3]['attachChange'],_0x2d07f1=_0x13b21d(_0x372eac['diffData'][_0x204be3]['attributesBefore'])||{},_0x10a1cf=this['_makeModelFromViewString'](_0x372eac['diffData'][_0x204be3]['deletions']);_0x10a1cf['rootName']=_0x204be3,_0x10a1cf['_isAttached']=!_0x264425||!_0x264425['isAttached'],_0x10a1cf['isAttached']=()=>_0x10a1cf['_isAttached'],this['_baseRoots']['set'](_0x204be3,_0x10a1cf),this['_baseRootsAttributes']['set'](_0x204be3,_0x2d07f1),_0x264425&&this['_touchedRoots']['set'](_0x204be3,_0x264425);const _0x1f068f=this['_makeIdsRoot'](_0x10a1cf);this['_baseIdsRoots']['set'](_0x204be3,_0x1f068f);for(const [_0x37284f,_0x46d396]of _0x10a1cf['markers']){if(!_0x37284f['startsWith']('revision:'))continue;const _0x35ccfb=_0x37284f['split'](':')[0x2];for(const _0x53cabe of _0x46d396['getWalker']({'singleCharacters':!0x0})){const _0x1a3179=this['_getVidAttributeName'](_0x53cabe),_0x5bdb44='elementEnd'==_0x53cabe['type']?_0x53cabe['previousPosition']['path']['slice'](0x0,-0x1):_0x53cabe['previousPosition']['path'],_0x781774=_0x1f068f['getNodeByPath'](_0x5bdb44)['getAttribute'](_0x1a3179);this['_touched']['set'](_0x781774,{'userId':_0x35ccfb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x201598=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2739b1=>!this['_touched']['has'](_0x2739b1));let _0xf5120=0x0;const _0x14c9b0=new Map();for(const _0x4a4df1 in _0x372eac['diffData']){const _0x3feda5=_0x372eac['diffData'][_0x4a4df1]['attachChange'],_0xef6b8d=_0x13b21d(_0x372eac['diffData'][_0x4a4df1]['attributesAfter'])||{},_0x1dc125=this['_makeModelFromViewString'](_0x372eac['diffData'][_0x4a4df1]['insertions']);_0x1dc125['rootName']=_0x4a4df1,_0x1dc125['_isAttached']=!_0x3feda5||_0x3feda5['isAttached'],_0x1dc125['isAttached']=()=>_0x1dc125['_isAttached'],this['_diffRoots']['set'](_0x4a4df1,_0x1dc125),this['_diffRootsAttributes']['set'](_0x4a4df1,_0xef6b8d);const _0xc9818e=this['_makeIdsRoot'](_0x1dc125,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a4df1,_0xc9818e),_0x14c9b0['set'](_0x4a4df1,_0x1dc125['isAttached']()?_0xef6b8d:{});for(const [_0x321083,_0x98be0b]of _0x1dc125['markers']){if(!_0x321083['startsWith']('revision:'))continue;const _0x4f7c3d=_0x321083['split'](':')[0x2];for(const _0x4065a2 of _0x98be0b['getWalker']({'singleCharacters':!0x0})){const _0x1a61fa=this['_getVidAttributeName'](_0x4065a2),_0x37fa0e=this['_revisionId']++,_0x8c66ce='elementEnd'==_0x4065a2['type']?_0x4065a2['previousPosition']['path']['slice'](0x0,-0x1):_0x4065a2['previousPosition']['path'];_0xc9818e['getNodeByPath'](_0x8c66ce)['_setAttribute'](_0x1a61fa,_0x37fa0e),this['_touched']['set'](_0x37fa0e,{'userId':_0x4f7c3d});}}for(const _0x5bf6bd of this['editor']['model']['createRangeIn'](_0x1dc125)['getWalker']({'singleCharacters':!0x0})){const _0x2666f6=this['_getVidAttributeName'](_0x5bf6bd),_0x58637b='elementEnd'==_0x5bf6bd['type']?_0x5bf6bd['previousPosition']['path']['slice'](0x0,-0x1):_0x5bf6bd['previousPosition']['path'],_0x733c95=_0xc9818e['getNodeByPath'](_0x58637b);_0x733c95['getAttribute'](_0x2666f6)>0x0||_0x733c95['_setAttribute'](_0x2666f6,_0x201598[_0xf5120++]);}for(const [_0x5aabe9,_0x27576e]of _0x1dc125['markers'])_0x5aabe9['startsWith']('revision:')||this['_markers']['set'](_0x5aabe9,_0x27576e);}const _0x5b872c=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5b872c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b872c,0x1));const _0x55e9e4=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x55e9e4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x55e9e4,0x1));const _0x1fc3ef=Array['from'](this['_diffRoots'])['map'](([_0x175b30,_0x3e8acd])=>[_0x175b30,F(_0x3e8acd)]);this['_saveMetaData'](this['_lastTo'],_0x1fc3ef,this['_markers'],_0x14c9b0);}['_makeModelFromViewString'](_0x15d4b8){const _0x1118b8=JSON['parse'](_0x15d4b8),_0x53543d=this['editor']['editing']['view']['document'],_0x1a93ea=new _0x297069(_0x53543d,_0x1118b8['map'](_0x5b74cd=>V(_0x5b74cd,this['editor'])));return this['editor']['data']['toModel'](_0x1a93ea);}['_saveMetaData'](_0x4256a2,_0x4d0c4f,_0x55b398,_0x521ac7){const _0x28dbb0=new Map(_0x4d0c4f),_0x2053dd=new Map(_0x13b21d(_0x521ac7)),_0x270b23=new Map();for(const [_0x2b0c9b,_0x536869]of _0x55b398)_0x270b23['set'](_0x2b0c9b,{'start':_0x536869['start']['clone'](),'end':_0x536869['end']['clone'](),'rootName':_0x536869['root']['rootName']});this['_savedMetaData']['set'](_0x4256a2,{'roots':_0x28dbb0,'markers':_0x270b23,'rootsAttributes':_0x2053dd});}['_removeMetaData'](_0x24148b){this['_savedMetaData']['delete'](_0x24148b);}['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'](_0x4cdf9c,_0x3167e6=null){let _0x38e34c=null;_0x4cdf9c['is']('documentFragment')||(_0x38e34c=new ft(_0x4cdf9c['name'],{'vid_start':null===_0x3167e6?this['_revisionId']++:_0x3167e6++}));const _0x31abed=[];for(const _0x56e597 of _0x4cdf9c['getChildren']())if(_0x56e597['is']('element')){_0x31abed['push'](this['_makeIdsRoot'](_0x56e597,_0x3167e6));const _0x560967=_0x31abed[_0x31abed['length']-0x1];null!==_0x3167e6&&(_0x3167e6=_0x560967['is']('element','$text')?_0x560967['getAttribute']('vid')+0x1:_0x560967['getAttribute']('vid_end')+0x1);}else{for(let _0x29ec43=0x0;_0x29ec43<_0x56e597['offsetSize'];_0x29ec43++)_0x31abed['push'](new ft('$text',{'vid':null===_0x3167e6?this['_revisionId']++:_0x3167e6++}));}if(_0x4cdf9c['is']('documentFragment')){const _0xe5b4e9=B(_0x4cdf9c['rootName']);return _0xe5b4e9['_insertChild'](0x0,_0x31abed),_0xe5b4e9;}return _0x38e34c['_setAttribute']('vid_end',null===_0x3167e6?this['_revisionId']++:_0x3167e6++),_0x38e34c['_insertChild'](0x0,_0x31abed),_0x38e34c;}['_calculateMetaData'](_0x3413eb,_0xebe8c0,_0x483fc0){this['_reset']();const {roots:_0x326e71,markers:_0x1d0f30,rootsAttributes:_0x3d1ca0}=this['_savedMetaData']['get'](_0x3413eb);this['_baseRoots']=new Map(_0x326e71),this['_baseRootsAttributes']=new Map(_0x13b21d(_0x3d1ca0));for(const [_0x3a89ba,_0x53bc13]of this['_baseRoots'])if('$graveyard'!==_0x3a89ba&&(this['_diffRoots']['set'](_0x3a89ba,F(_0x53bc13)),this['_diffRootsAttributes']=new Map(_0x13b21d(_0x3d1ca0)),_0x483fc0)){const _0x11e932=this['_revisionId'];this['_idsRoots']['set'](_0x3a89ba,this['_makeIdsRoot'](_0x53bc13)),this['_baseIdsRoots']['set'](_0x3a89ba,this['_makeIdsRoot'](_0x53bc13,_0x11e932));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x483fc0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4f43f9,_0x65eb10]of _0x1d0f30){const _0x2fade2=this['_baseRoots']['get'](_0x65eb10['rootName']),_0x43757e=this['_diffRoots']['get'](_0x65eb10['rootName']),_0x24fe28=new vt(this['_fixPosition'](_0x65eb10['start'],_0x2fade2),this['_fixPosition'](_0x65eb10['end'],_0x2fade2)),_0xd8e72a=this['_fixRange'](_0x24fe28,_0x43757e);_0x2fade2['markers']['set'](_0x4f43f9,_0x24fe28),this['_markers']['set'](_0x4f43f9,_0xd8e72a);}this['_applyOperations'](_0x3413eb,_0xebe8c0,_0x483fc0);}['_applyOperations'](_0x1481f8,_0xbf7b99,_0x5f3e9f){for(const _0x25849d of this['source']['getOperations'](_0x1481f8,_0xbf7b99))this['_handleOperation'](_0x25849d,_0x5f3e9f);for(const _0x26221d of this['_diffRoots']['values']())_0x26221d['markers']['clear']();for(const [_0x39e78b,_0x199565]of this['_markers']){this['_diffRoots']['get'](_0x199565['root']['rootName'])['markers']['set'](_0x39e78b,_0x199565['clone']());}const _0x48e24c=new Map(),_0x441aa7=new Map();for(const [_0x47acf5,_0x22209d]of this['_diffRoots'])_0x48e24c['set'](_0x47acf5,F(_0x22209d)),_0x441aa7['set'](_0x47acf5,this['_diffRootsAttributes']['get'](_0x47acf5));this['_saveMetaData'](_0xbf7b99,_0x48e24c,this['_markers'],_0x441aa7);}['_getPreviousFrom'](_0x221d9d){const _0x28c9a4=Array['from'](this['_savedMetaData']['keys']());_0x28c9a4['sort']((_0xa95adf,_0x105d11)=>_0xa95adf-_0x105d11),_0x28c9a4['reverse']();for(const _0x21d5ff of _0x28c9a4)if(_0x21d5ff<_0x221d9d)return _0x21d5ff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bce1e,_0x5ee943){const _0xd62423=Array['from'](_0x5ee943['markers'])['map'](([_0x444082,_0x2be6dc])=>[_0x444082,this['_fixRange'](_0x2be6dc,_0x3bce1e)]);_0x3bce1e['markers']=new Map(_0xd62423);}['_transformMarkers'](_0x16e65a){for(const _0x100791 of this['_markers']['values']()){const _0x77fcc2=_0x100791['getTransformedByOperation'](_0x16e65a),_0x26915d=vt['_createFromRanges'](_0x77fcc2);_0x100791['start']=_0x26915d['start'],_0x100791['end']=_0x26915d['end'];}}['_handleOperation'](_0x1c576f,_0x2fac77){if('addRoot'!=_0x1c576f['type']&&'detachRoot'!=_0x1c576f['type']){if('insert'==_0x1c576f['type']){const _0x419b71=_0x1c576f['position']['root']['rootName'];this['_diffRoots']['has'](_0x419b71)||(this['_diffRoots']['set'](_0x419b71,B(_0x419b71,!0x0)),this['_diffRootsAttributes']['set'](_0x419b71,{}),_0x2fac77&&this['_idsRoots']['set'](_0x419b71,B(_0x419b71,!0x0)));}else{if('addRootAttribute'==_0x1c576f['type']||'removeRootAttribute'==_0x1c576f['type']||'changeRootAttribute'==_0x1c576f['type'])return void this['_handleRootAttributeOperation'](_0x1c576f);'marker'==_0x1c576f['type']&&this['_handleMarkerOperation'](_0x1c576f);}if('marker'!==_0x1c576f['type']){const _0x513cd3=this['_cloneOperation'](_0x1c576f,this['_diffRoots']);_0x513cd3['_execute'](),this['_transformMarkers'](_0x513cd3);}if(_0x2fac77)switch(_0x1c576f['type']){case'insert':this['_handleInsertOperation'](_0x1c576f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1c576f);break;case'merge':this['_handleMergeOperation'](_0x1c576f);break;case'split':this['_handleSplitOperation'](_0x1c576f);}}else this['_handleRootOperation'](_0x1c576f,_0x2fac77);}['_cloneOperation'](_0xec4c06,_0x372a28){const _0x28d464=_0xec4c06['clone']();return _0x28d464['_authorId']=_0xec4c06['_authorId'],this['_fixOperation'](_0x28d464,_0x372a28),_0x28d464;}['_getBaseVids'](_0x3fe617){return _0x3fe617['map'](_0x3d9605=>{const _0x497ee9=this['_getVidAttributeName'](_0x3d9605);return Number(_0x3d9605['item']['getAttribute'](_0x497ee9));});}['_generateTape'](_0x5649fb,_0x41abb8){if(_0x5649fb['is']('element','$text'))_0x41abb8['push']({'item':_0x5649fb,'type':'text'});else{_0x5649fb['is']('element')&&_0x41abb8['push']({'item':_0x5649fb,'type':'elementStart'});for(const _0x36de29 of _0x5649fb['getChildren']())this['_generateTape'](_0x36de29,_0x41abb8);_0x5649fb['is']('element')&&_0x41abb8['push']({'item':_0x5649fb,'type':'elementEnd'});}return _0x41abb8;}['_getState'](){const _0x9a760a=new Map(this['_touched']),_0x1e310c=new Map(_0x9a760a),_0x49af37=new Map(),_0x41edea={'insertions':{},'deletions':{}},_0x487827={'insertions':{},'deletions':{}},_0x451560=new Map(),_0x616ac2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x616ac2['delete']('$graveyard');for(const _0x2768f4 of _0x616ac2){const _0x6ca964=this['_diffRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1),_0x59db42=this['_baseRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1);_0x6ca964['isAttached']()||_0x59db42['isAttached']()?(_0x41edea['insertions'][_0x2768f4]=F(_0x6ca964),_0x41edea['deletions'][_0x2768f4]=F(_0x59db42),this['_copyMarkers'](_0x41edea['deletions'][_0x2768f4],_0x59db42),this['_copyMarkers'](_0x41edea['insertions'][_0x2768f4],_0x6ca964),_0x487827['insertions'][_0x2768f4]=this['_generateTape'](this['_idsRoots']['get'](_0x2768f4),[]),_0x487827['deletions'][_0x2768f4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1),[])):_0x616ac2['delete'](_0x2768f4);}for(const _0x26d110 of _0x616ac2){const _0x4994b7=_0x487827['insertions'][_0x26d110];for(const _0x201302 of _0x4994b7){const _0x459a01=this['_getVidAttributeName'](_0x201302),_0x42baaf=_0x201302['item']['getAttribute'](_0x459a01);_0x1e310c['delete'](_0x42baaf),_0x42baaf>=this['_startingRevisionId']&&_0x49af37['set'](_0x42baaf,_0x9a760a['get'](_0x42baaf));}}for(const _0x3f98c9 of _0x616ac2){const _0x4c9ebc=_0x487827['insertions'][_0x3f98c9],_0x2949b6=this['_getBaseVids'](_0x487827['deletions'][_0x3f98c9]);let _0x1e9f1c=0x0;for(const _0x45c6fb of _0x4c9ebc){const _0x6e1526=this['_getVidAttributeName'](_0x45c6fb),_0x311acb=_0x45c6fb['item']['getAttribute'](_0x6e1526);if(!_0x49af37['has'](_0x311acb)&&!_0x451560['has'](_0x311acb)){if(_0x1e310c['has'](_0x311acb))_0x1e9f1c++;else{if(_0x311acb!=_0x2949b6[_0x1e9f1c]){const _0x2f3475=_0x9a760a['get'](_0x311acb)||_0x9a760a['get'](_0x2949b6[_0x1e9f1c]);for(;_0x311acb!=_0x2949b6[_0x1e9f1c];)_0x1e310c['has'](_0x2949b6[_0x1e9f1c])||(_0x451560['set'](_0x2949b6[_0x1e9f1c],_0x2f3475),_0x9a760a['set'](_0x2949b6[_0x1e9f1c],_0x2f3475)),_0x1e9f1c++;}_0x1e9f1c++;}}}}for(const _0x558e5a of _0x616ac2){const _0x54546b=_0x487827['insertions'][_0x558e5a];for(const _0x47f217 of _0x54546b){const _0x41a71c=this['_getVidAttributeName'](_0x47f217),_0x5c7995=_0x47f217['item']['getAttribute'](_0x41a71c);if(_0x451560['has'](_0x5c7995)){const _0x2d4de2=_0x451560['get'](_0x5c7995);_0x1e310c['has'](_0x5c7995)||_0x1e310c['set'](_0x5c7995,{..._0x2d4de2}),_0x49af37['set'](_0x5c7995,{..._0x2d4de2});}}}for(const _0xe924f6 of _0x1e310c['keys']())_0xe924f6>=this['_startingRevisionId']&&_0x1e310c['delete'](_0xe924f6);const _0x25a586=new Map();for(const _0x24c69c of _0x616ac2){let _0x403899=_0x487827['insertions'][_0x24c69c];for(const _0x1e4151 of _0x403899)if(_0x1e4151['item']['is']('element','tableCell')){const _0x2f3886=this['_getVidAttributeName'](_0x1e4151),_0x436a09=_0x1e4151['item']['getAttribute'](_0x2f3886);if(_0x49af37['has'](_0x436a09)){const _0x124268=_0x1e4151['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ce460=_0x25a586['get'](_0x124268)||new Set();_0x4ce460['add'](_0x49af37['get'](_0x436a09)['userId']),_0x25a586['set'](_0x124268,_0x4ce460);}}_0x403899=_0x487827['deletions'][_0x24c69c];for(const _0x54f108 of _0x403899)if(_0x54f108['item']['is']('element','tableCell')){const _0x495045=this['_getVidAttributeName'](_0x54f108),_0x8f4937=_0x54f108['item']['getAttribute'](_0x495045);if(_0x1e310c['has'](_0x8f4937)){const _0xb28e1a=_0x54f108['item']['parent']['parent']['getAttribute']('vid_start'),_0x1d9733=_0x25a586['get'](_0xb28e1a)||new Set();_0x1d9733['add'](_0x1e310c['get'](_0x8f4937)['userId']),_0x25a586['set'](_0xb28e1a,_0x1d9733);}}for(const _0x1d92ea of _0x25a586['keys']())(_0x49af37['has'](_0x1d92ea)||_0x1e310c['has'](_0x1d92ea))&&_0x25a586['delete'](_0x1d92ea);}for(const _0x2953c3 of _0x616ac2){const _0x41305b=_0x487827['insertions'][_0x2953c3];let _0x493dd3=null,_0x169f3c=null;for(const _0x1e4e04 of _0x41305b){const _0x7e7139=this['_getVidAttributeName'](_0x1e4e04),_0x36b6d4=_0x1e4e04['item']['getAttribute'](_0x7e7139),_0x5211b0=_0x25a586['get'](_0x36b6d4);_0x5211b0&&'elementStart'==_0x1e4e04['type']&&(_0x493dd3=Array['from'](_0x5211b0)[0x0],_0x169f3c=_0x1e4e04['item']['getAttribute']('vid_end')),_0x493dd3&&(_0x1e310c['set'](_0x36b6d4,{'userId':_0x493dd3}),_0x49af37['set'](_0x36b6d4,{'userId':_0x493dd3})),_0x36b6d4==_0x169f3c&&(_0x493dd3=null,_0x169f3c=null);}}const _0x6644cf={},_0x4b6c98=new Set();for(const _0x55b0cd of _0x616ac2){const _0x31680c=_0x41edea['deletions'][_0x55b0cd],_0x5514be=_0x41edea['insertions'][_0x55b0cd];for(const {userId:_0x3050e2}of this['_touchedMarkers']['values']())null!==_0x3050e2&&_0x4b6c98['add'](_0x3050e2);for(const {userId:_0x6fe7ca}of this['_touchedRoots']['values']())null!==_0x6fe7ca&&_0x4b6c98['add'](_0x6fe7ca);this['_markChanges'](_0x5514be,_0x487827['insertions'][_0x55b0cd],_0x49af37,'insertion',_0x4b6c98),this['_markChanges'](_0x31680c,_0x487827['deletions'][_0x55b0cd],_0x1e310c,'deletion',_0x4b6c98),_0x6644cf[_0x55b0cd]={'insertions':this['_prepareViewToSave'](_0x5514be),'deletions':this['_prepareViewToSave'](_0x31680c),'attachChange':this['_touchedRoots']['get'](_0x55b0cd)||null,'attributesBefore':_0x13b21d(this['_baseRootsAttributes']['get'](_0x55b0cd))||{},'attributesAfter':_0x13b21d(this['_diffRootsAttributes']['get'](_0x55b0cd))};}return{'diffData':_0x6644cf,'authorsIds':Array['from'](_0x4b6c98)};}['_processRootBeforeSave'](_0x2901fd){for(const [,_0x4cb0eb]of _0x2901fd['markers']){const _0x4497e1=_0x4cb0eb['start']['getAncestors']()['filter'](_0x59325d=>'tableCell'==_0x59325d['name']);for(const _0x3714e1 of _0x4497e1)0x1==_0x3714e1['childCount']&&_0x3714e1['getChild'](0x0)['is']('element','paragraph')&&_0x3714e1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3d34a1){this['_processRootBeforeSave'](_0x3d34a1);const _0x5206a1=this['editor']['data']['toView'](_0x3d34a1,{}),_0x777249=Array['from'](_0x5206a1['getChildren']())['map'](_0xa44b16=>this['_getViewJson'](_0xa44b16));return JSON['stringify'](_0x777249);}['_getViewJson'](_0x3e3137){if(_0x3e3137['is']('$text'))return _0x3e3137['data'];{const _0x5f1633=_0x3e3137;return{'type':Object['keys'](C)['find'](_0x538b9c=>_0x3e3137 instanceof C[_0x538b9c]),'name':_0x5f1633['name'],'attributes':Array['from'](_0x5f1633['getAttributes']()),'children':Array['from'](_0x5f1633['getChildren']())['map'](_0x32efb8=>this['_getViewJson'](_0x32efb8))};}}['_markChanges'](_0x1ffe3f,_0x4994e7,_0x6ade61,_0x50a436,_0x519292){let _0x359784=null,_0x1faa6f=null,_0x48136d=0x0;const _0x36aa06=this['editor']['model'];for(let _0x1d5ef4=0x0;_0x1d5ef4<_0x4994e7['length'];_0x1d5ef4++){const _0x4b4134=this['_getVidAttributeName'](_0x4994e7[_0x1d5ef4]),_0x5b2110=_0x4994e7[_0x1d5ef4]['item']['getAttribute'](_0x4b4134),_0x2d4f16=_0x6ade61['get'](_0x5b2110),_0x31ea52=_0x1d5ef4==_0x4994e7['length']-0x1;(!_0x359784&&_0x2d4f16&&(_0x359784=_0x2d4f16,_0x1faa6f=_0x4994e7[_0x1d5ef4]),_0x359784&&(!_0x2d4f16||_0x2d4f16['userId']!=_0x359784['userId']))&&(_0x4330cb(_0x2d4f16,J(_0x1faa6f,_0x1ffe3f,_0x36aa06),J(_0x4994e7[_0x1d5ef4],_0x1ffe3f,_0x36aa06)),_0x359784=_0x2d4f16||null,_0x1faa6f=_0x2d4f16?_0x4994e7[_0x1d5ef4]:null),_0x359784&&_0x31ea52&&_0x4330cb(_0x2d4f16,J(_0x1faa6f,_0x1ffe3f,_0x36aa06),q(_0x4994e7[_0x1d5ef4],_0x1ffe3f,_0x36aa06));}function _0x4330cb(_0x7ec0eb,_0x3a06ec,_0x2b5287){const _0x55f6e7=_0x359784['userId'],_0x542089='revision:'+_0x50a436+':'+_0x55f6e7+':'+_0x48136d++,_0x3e0e1e=_0x36aa06['createRange'](_0x3a06ec,_0x2b5287);_0x1ffe3f['markers']['set'](_0x542089,_0x3e0e1e),null!==_0x55f6e7&&_0x519292['add'](_0x55f6e7);}}['_getVidAttributeName'](_0x33d56f){switch(_0x33d56f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2fdbc4,_0x19f0fb){_0x2fdbc4['baseVersion']=null;for(const _0x60fac1 in _0x2fdbc4){const _0x5a9483=_0x2fdbc4[_0x60fac1];if(_0x5a9483 instanceof gt){const _0x241a17=_0x19f0fb['get'](_0x5a9483['root']['rootName']);_0x2fdbc4[_0x60fac1]=this['_fixPosition'](_0x5a9483,_0x241a17);}if(_0x5a9483 instanceof vt){const _0x655dab=_0x19f0fb['get'](_0x5a9483['root']['rootName']);_0x2fdbc4[_0x60fac1]=this['_fixRange'](_0x5a9483,_0x655dab);}'root'===_0x60fac1&&(_0x2fdbc4['root']=_0x19f0fb['get'](_0x2fdbc4['root']['rootName']));}}['_fixRange'](_0x23bbd6,_0x5e606f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23bbd6['start'],_0x5e606f),this['_fixPosition'](_0x23bbd6['end'],_0x5e606f));}['_fixPosition'](_0x528f35,_0x21af8b){return this['editor']['model']['createPositionFromPath'](_0x21af8b,_0x528f35['path'],_0x528f35['stickiness']);}['_handleInsertOperation'](_0x51afda){const _0x544358=this['_idsRoots']['get'](_0x51afda['position']['root']['rootName']),_0x2b6095=this['_fixPosition'](_0x51afda['position'],_0x544358),_0x4f55e6=null===_0x51afda['_authorId']?null:_0x51afda['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f508c=_0x2b6095['parent'],_0x54b77a=this['_revisionId'],_0x11a167=[];for(const _0x32fbdd of _0x51afda['nodes'])if(_0x32fbdd['is']('element'))_0x11a167['push'](this['_makeIdsRoot'](_0x32fbdd));else{for(let _0x586e3f=0x0;_0x586e3f<_0x32fbdd['offsetSize'];_0x586e3f++)_0x11a167['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x39cc48=this['_revisionId'];for(let _0x10fb9b=_0x54b77a;_0x10fb9b<_0x39cc48;_0x10fb9b++)this['_touched']['set'](_0x10fb9b,{'userId':_0x4f55e6});_0x2f508c['_insertChild'](_0x2b6095['offset'],_0x11a167);}['_handleMoveOperation'](_0x5e7c53){(_0x5e7c53=this['_cloneOperation'](_0x5e7c53,this['_idsRoots']))['_execute']();const _0x3e1482=null===_0x5e7c53['_authorId']?null:_0x5e7c53['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43ba0b=_0x5e7c53['getMovedRangeStart'](),_0x4abb1d=_0x43ba0b['parent'],_0x3eb801=_0x43ba0b['offset'];!function _0x3e76bb(_0x200966,_0x552203,_0x4652ec,_0x9b50df){for(let _0x50ab88=_0x4652ec;_0x50ab88<_0x9b50df;_0x50ab88++){const _0x1053fc=_0x552203['getChild'](_0x50ab88);_0x1053fc['is']('element','$text')?_0x200966['set'](_0x1053fc['getAttribute']('vid'),{'userId':_0x3e1482}):(_0x200966['set'](_0x1053fc['getAttribute']('vid_start'),{'userId':_0x3e1482}),_0x3e76bb(_0x200966,_0x1053fc,0x0,_0x1053fc['childCount']),_0x200966['set'](_0x1053fc['getAttribute']('vid_end'),{'userId':_0x3e1482}));}}(this['_touched'],_0x4abb1d,_0x3eb801,_0x3eb801+_0x5e7c53['howMany']);}['_handleMergeOperation'](_0xd1ff21){const _0x5eda68=null===(_0xd1ff21=this['_cloneOperation'](_0xd1ff21,this['_idsRoots']))['_authorId']?null:_0xd1ff21['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366ef6=_0xd1ff21['targetPosition']['parent'],_0x561429=_0xd1ff21['sourcePosition']['parent'],_0x1b04ec=_0x366ef6['getAttribute']('vid_end'),_0x2a55c9=_0x561429['getAttribute']('vid_start');_0x366ef6['_setAttribute']('vid_end',_0x561429['getAttribute']('vid_end')),_0x561429['_setAttribute']('vid_end',_0x1b04ec),this['_touched']['set'](_0x2a55c9,{'userId':_0x5eda68}),this['_touched']['set'](_0x1b04ec,{'userId':_0x5eda68}),_0xd1ff21['_execute']();}['_handleSplitOperation'](_0x27d05e){const _0x1bed5a=null===(_0x27d05e=this['_cloneOperation'](_0x27d05e,this['_idsRoots']))['_authorId']?null:_0x27d05e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57447b=_0x27d05e['graveyardPosition'],_0x58a783=_0x27d05e['splitPosition']['parent'];_0x27d05e['_execute']();const _0x457941=_0x58a783['getAttribute']('vid_end'),_0x23fcab=_0x27d05e['insertionPosition']['nodeAfter'];if(_0x57447b){const _0x438932=_0x23fcab['getAttribute']('vid_end'),_0x55c093=_0x58a783['getAttribute']('vid_end');_0x58a783['_setAttribute']('vid_end',_0x438932),_0x23fcab['_setAttribute']('vid_end',_0x55c093),this['_touched']['set'](_0x58a783['getAttribute']('vid_end'),{'userId':_0x1bed5a}),this['_touched']['set'](_0x23fcab['getAttribute']('vid_start'),{'userId':_0x1bed5a});}else{const _0x2790e1=this['_revisionId']++,_0x385823=this['_revisionId']++;_0x58a783['_setAttribute']('vid_end',_0x2790e1),_0x23fcab['_setAttribute']('vid_start',_0x385823),_0x23fcab['_setAttribute']('vid_end',_0x457941),this['_touched']['set'](_0x2790e1,{'userId':_0x1bed5a}),this['_touched']['set'](_0x385823,{'userId':_0x1bed5a});}}['_handleMarkerOperation'](_0x523fc5){if(!_0x523fc5['affectsData'])return;const _0x520a3=(_0x523fc5=this['_cloneOperation'](_0x523fc5,this['_diffRoots']))['oldRange']?_0x523fc5['oldRange']['root']:null,_0x886eb5=_0x523fc5['newRange']?_0x523fc5['newRange']['root']:null;_0x520a3&&this['_markers']['delete'](_0x523fc5['name']),_0x886eb5&&this['_markers']['set'](_0x523fc5['name'],_0x523fc5['newRange']['clone']());const _0x2d842f=null===_0x523fc5['_authorId']?null:_0x523fc5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2352f2=_0x523fc5['name'];if(!this['_touchedMarkers']['has'](_0x2352f2))return void this['_touchedMarkers']['set'](_0x2352f2,{'range':_0x523fc5['oldRange'],'userId':_0x2d842f});const _0x24b186=this['_touchedMarkers']['get'](_0x2352f2),_0x4dc7c8=_0x24b186['range'],_0x50a1a7=_0x523fc5['newRange'];null==_0x4dc7c8&&null==_0x50a1a7||_0x4dc7c8&&_0x50a1a7&&_0x4dc7c8['isEqual'](_0x50a1a7)?this['_touchedMarkers']['delete'](_0x523fc5['name']):_0x24b186['userId']=_0x2d842f;}['_handleRootOperation'](_0x281978,_0x54bb10){this['_diffRoots']['has'](_0x281978['rootName'])?this['_diffRoots']['get'](_0x281978['rootName'])['_isAttached']=_0x281978['isAdd']:(this['_diffRoots']['set'](_0x281978['rootName'],B(_0x281978['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x281978['rootName'],{}),_0x54bb10&&this['_idsRoots']['set'](_0x281978['rootName'],B(_0x281978['rootName'],!0x0)));const _0x3848d3=null===_0x281978['_authorId']?null:_0x281978['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a48=this['_touchedRoots']['get'](_0x281978['rootName']);_0x4a48&&_0x4a48['userId']===_0x3848d3?this['_touchedRoots']['delete'](_0x281978['rootName']):this['_touchedRoots']['set'](_0x281978['rootName'],{'userId':_0x3848d3,'isAttached':_0x281978['isAdd']});}['_handleRootAttributeOperation'](_0x309d35){const _0x4f86ea=this['_diffRootsAttributes']['get'](_0x309d35['root']['rootName']);null===_0x309d35['newValue']?delete _0x4f86ea[_0x309d35['key']]:_0x4f86ea[_0x309d35['key']]=_0x309d35['newValue'];}}function F(_0x30a872){const _0x33c33f=B(_0x30a872['rootName'],_0x30a872['isAttached']());for(const _0x38219a of _0x30a872['getChildren']()){const _0x504788=_0x38219a['_clone'](!0x0);_0x33c33f['_appendChild'](_0x504788);}return _0x33c33f;}function B(_0x291a7d,_0x482842=!0x0){const _0x14a925=new wt();return _0x14a925['rootName']=_0x291a7d,_0x14a925['_isAttached']=_0x482842,_0x14a925['isAttached']=()=>_0x14a925['_isAttached'],_0x14a925;}function J(_0x4ece21,_0xc5dfcc,_0x2d622c){const _0x59d9a7='elementEnd'==_0x4ece21['type']?_0x2d622c['createPositionAt'](_0x4ece21['item'],'end'):_0x2d622c['createPositionBefore'](_0x4ece21['item']);return _0x2d622c['createPositionFromPath'](_0xc5dfcc,_0x59d9a7['path'],_0x59d9a7['stickiness']);}function q(_0x34b402,_0xcdff08,_0x17300b){const _0x10baa4='elementStart'==_0x34b402['type']?_0x17300b['createPositionAt'](_0x34b402['item'],0x0):_0x17300b['createPositionAfter'](_0x34b402['item']);return _0x17300b['createPositionFromPath'](_0xcdff08,_0x10baa4['path'],_0x10baa4['stickiness']);}class ns extends _0x30dbe4{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4c6b00,_0x49e050){super(_0x4c6b00),this['focusTracker']=new _0x234b54(),this['keystrokes']=new _0x816803(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x49e050),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'](),_0x2b4b69({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x53e980=_0x49d74b=>_0x49d74b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x53e980),this['keystrokes']['set']('arrowleft',_0x53e980),this['keystrokes']['set']('arrowup',_0x53e980),this['keystrokes']['set']('arrowdown',_0x53e980);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x57e59b){this['revisionNameInputView']['fieldView']['element']['value']=_0x57e59b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x56f9f4){const _0x2a909a=new at(this['locale'],_0x3fc3d3),_0xe8a0e0=_0x2a909a['fieldView'];_0xe8a0e0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfc59da=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x56f9f4&&(_0xfc59da+='\x20('+R(this['locale'],'optional')+')'),(_0x2a909a['label']=_0xfc59da,_0xe8a0e0['on']('input',()=>{this['revisionNameInputValue']=_0xe8a0e0['element']['value']['trim']();}),_0x2a909a);}}class u extends _0x173480{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1fed06=this['editor'],_0x1af67e=_0x1fed06['plugins']['get']('RevisionTracker');_0x1fed06['ui']['componentFactory']['add']('revisionHistory',_0x29e893=>{const _0x318a08=_0x4bbaf9(_0x29e893),_0x4693d4=_0x318a08['panelView']['children'],_0x8ec9b6=new te(_0x29e893),_0x54deeb=new _0x40cc38(_0x29e893),_0x362428=new _0x380986(_0x29e893),_0x56e3fd=new _0x40cc38(_0x29e893),_0x531ac6=new _0x380986(_0x29e893);return _0x318a08['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1af67e,'isEnabled',_0x1fed06,'isReadOnly',(_0x1af36b,_0x556957,_0xfa2a5e)=>_0x1af36b&&_0x556957&&!_0xfa2a5e),_0x318a08['buttonView']['set']({'icon':_0x29afe1['history'],'label':R(_0x29e893,'Revision\x20history'),'tooltip':!0x0}),_0x362428['set']({'label':R(_0x29e893,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x362428['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1af67e,'isEnabled',_0x1fed06,'isReadOnly',(_0x3fe5e9,_0x20e9bc,_0x47fd9c)=>_0x3fe5e9&&_0x20e9bc&&!_0x47fd9c),_0x362428['on']('execute',()=>this['_showDialog']()),_0x531ac6['set']({'label':R(_0x29e893,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x531ac6['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1fed06,'isReadOnly',(_0x477c45,_0x54c609)=>_0x477c45&&!_0x54c609),_0x531ac6['on']('execute',()=>{_0x1fed06['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x318a08['isOpen']=!0x1,_0x1fed06['editing']['view']['focus']();}),_0x54deeb['children']['add'](_0x362428),_0x56e3fd['children']['add'](_0x531ac6),_0x8ec9b6['role']='menu',_0x8ec9b6['items']['addMany']([_0x54deeb,_0x56e3fd]),_0x4693d4['add'](_0x8ec9b6),_0x318a08;}),_0x1fed06['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x37edf5=this['editor'],_0xf82137=_0x37edf5['locale'],_0x371c15=new _0x4d58f8(_0xf82137),_0x2fd1f7=new _0x4d1ea3(_0xf82137);_0x371c15['buttonView']['set']({'icon':_0x29afe1['history'],'label':R(_0xf82137,'Revision\x20history')});const _0x28dcdf=new _0x33d201(_0xf82137,_0x371c15),_0x2666f7=new _0x2e40e7(_0xf82137);_0x2666f7['set']({'label':R(_0xf82137,'Save\x20current\x20revision')}),_0x2666f7['delegate']('execute')['to'](_0x371c15),_0x2666f7['on']('execute',()=>{this['_showDialog']();}),_0x28dcdf['children']['add'](_0x2666f7),_0x2fd1f7['items']['add'](_0x28dcdf);const _0x4ba9ca=new _0x33d201(_0xf82137,_0x371c15),_0x48e891=new _0x2e40e7(_0xf82137);return _0x48e891['set']({'label':R(_0xf82137,'Open\x20revision\x20history')}),_0x48e891['delegate']('execute')['to'](_0x371c15),_0x48e891['on']('execute',()=>{_0x37edf5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4ba9ca['children']['add'](_0x48e891),_0x2fd1f7['items']['add'](_0x4ba9ca),_0x371c15['panelView']['children']['add'](_0x2fd1f7),_0x371c15;}['_showDialog'](){const _0x4a9f69=this['editor'],_0x57dd9a=_0x4a9f69['locale'],_0x5a7f6e=_0x4a9f69['plugins']['get']('Dialog'),_0x83b11d=_0x4a9f69['plugins']['get']('RevisionTracker');function _0xf51de2(_0x1b0bb6){_0x4a9f69['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1b0bb6['revisionName']?_0x1b0bb6['revisionNameInputView']['errorText']=R(_0x57dd9a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4a9f69['plugins']['get'](l)['saveRevision']({'name':_0x1b0bb6['revisionName']}),_0x5a7f6e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf51de2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5a7f6e['show']({'id':'revisionSave','title':R(_0x57dd9a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4a9f69['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5a7f6e['hide']()},{'label':R(_0x4a9f69['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1396c4){_0x1396c4['bind']('isEnabled')['to'](_0x83b11d,'isReady',_0x83b11d,'isEnabled',_0x4a9f69,'isReadOnly',(_0x439ac5,_0x370512,_0x2baf24)=>_0x439ac5&&_0x370512&&!_0x2baf24);},'onExecute':()=>_0xf51de2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x24783b=this['editor'],_0x42f1a0=_0x24783b['locale'];this['_saveRevisionFormView']=new ns(_0x42f1a0,_0x24783b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x30dbe4{['changeId'];['_model'];constructor(_0x121170,_0x315b32){super(_0x121170),this['_model']=_0x315b32,this['changeId']=_0x315b32['id'];const _0x523d12=this['bindTemplate'],_0x3ff1e=R(_0x121170,_0x315b32['data']['isSuggestion']?'Suggested\x20by':'add'==_0x315b32['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x315b32['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x523d12['to']('type',_0x49f639=>'ck-revision-change__'+_0x49f639)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ff1e}]},{'text':'\x20'+_0x315b32['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f37d9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b0d2d){super(),this['id']=_0x5b0d2d['id']||_0x443970(),this['author']=_0x5b0d2d['author'],this['type']=_0x5b0d2d['type'],this['data']=_0x5b0d2d['data']||{},this['rootName']=_0x5b0d2d['rootName'],this['set']('createdAt',_0x5b0d2d['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(_0x45f874,_0x2dc2ff){this['newRevisionId']=_0x45f874,this['oldRevisionId']=_0x2dc2ff,this['changes']=new _0x7320e5();}['_setChanges'](_0xc9b9ff){for(const _0x349154 of _0xc9b9ff)this['changes']['add'](_0x349154);}}const Z={'c':_0x269e24,'a':_0x832fa4,'e':_0x2821ca,'r':_0x46e5fa,'u':_0x1ad2b4};class d extends _0x173480{['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[_0x421b50,_0x264182,j];}constructor(_0x55e7fa){super(_0x55e7fa),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',(_0x50a008,_0x52ceb5,_0x137a94)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1c011b=>{for(const _0x426906 of this['editor']['editing']['view']['document']['roots'])_0x137a94?_0x1c011b['removeClass']('ck-editor__editable__overlay',_0x426906):_0x1c011b['addClass']('ck-editor__editable__overlay',_0x426906);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x22e95c=>null!==_0x22e95c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x52fde8,_0x5d7461,_0x23fd08)=>_0x52fde8&&_0x23fd08?_0x5d7461['changes']['getIndex'](_0x23fd08):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4a9209,_0x4b530b)=>_0x4a9209?_0x4b530b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x264182);}['init'](){const _0x43b171=this['editor'],_0x5e8559=new bt(_0x43b171,{'direction':'backward'}),_0x178bef=new bt(_0x43b171,{'direction':'forward'});(_0x43b171['commands']['add']('showPreviousChange',_0x5e8559),_0x43b171['commands']['add']('showNextChange',_0x178bef),_0x43b171['commands']['add']('restoreRevision',new yt(_0x43b171)),this['on']('change:numberOfChanges',()=>{_0x5e8559['refresh'](),_0x178bef['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x43b171['enableReadOnlyMode']('revision-viewer'),_0x43b171['plugins']['has']('WidgetToolbarRepository'))&&_0x43b171['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5972b0){await this['loadRevisionData'](_0x5972b0);const _0x3ca0e9={};for(const _0x94f544 in _0x5972b0['diffData']){if(_0x5972b0['diffData'][_0x94f544]['attachChange']&&!_0x5972b0['diffData'][_0x94f544]['attachChange']['isAttached'])continue;const _0x190ccf=this['_removeRevisionMarkers'](JSON['parse'](_0x5972b0['diffData'][_0x94f544]['insertions'])),_0x2fdecc=this['editor']['editing']['view']['document'],_0x20225d=new _0x297069(_0x2fdecc,_0x190ccf['map'](_0x875b28=>this['_getViewObj'](_0x875b28)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ca0e9[_0x94f544]=this['editor']['data']['processor']['toData'](_0x20225d),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ca0e9;}async['getRevisionRootsAttributes'](_0x3594e4){await this['loadRevisionData'](_0x3594e4);const _0x47c908={};for(const _0x53da6c in _0x3594e4['diffData'])_0x3594e4['diffData'][_0x53da6c]['attachChange']&&!_0x3594e4['diffData'][_0x53da6c]['attachChange']['isAttached']||(_0x47c908[_0x53da6c]=_0x3594e4['diffData'][_0x53da6c]['attributesAfter']||{});return _0x47c908;}['_removeRevisionMarkers'](_0x44270d){return(_0x44270d=_0x44270d['filter'](_0x1ddbdd=>!_0x1ddbdd['name']||'revision-start'!==_0x1ddbdd['name']&&'revision-end'!==_0x1ddbdd['name']))['forEach'](_0x1d0b16=>{'string'!=typeof _0x1d0b16&&(_0x1d0b16['children']=this['_removeRevisionMarkers'](_0x1d0b16['children']),_0x1d0b16['attributes']=_0x1d0b16['attributes']['filter'](_0x3b67e5=>!_0x3b67e5[0x0]['startsWith']('data-revision-')));}),_0x44270d;}async['compare'](_0x39aa2d,_0x5330f5,_0x1c6e7b=!0x1){if(!this['isEnabled'])return;const _0x2e4ff7=this['diff'],_0x459a0a=this['repository'],_0x36fefb='string'==typeof _0x39aa2d?_0x459a0a['getRevision'](_0x39aa2d):_0x39aa2d,_0x3dcc44='string'==typeof _0x5330f5?_0x459a0a['getRevision'](_0x5330f5):_0x5330f5,_0x35e837=_0x36fefb['id'],_0x401f9b=_0x3dcc44?_0x3dcc44['id']:null;if(!_0x1c6e7b&&this['diff']&&this['diff']['newRevisionId']===_0x35e837&&this['diff']['oldRevisionId']===_0x401f9b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x35e837,_0x401f9b);const _0x3bf4c1=this['_getRevisionsRange'](_0x36fefb,_0x3dcc44,!0x0)['map'](_0x32cfd5=>this['loadRevisionData'](_0x32cfd5));return _0x3bf4c1['push'](new Promise(_0x46c892=>{setTimeout(_0x46c892,0x14);})),Promise['all'](_0x3bf4c1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2bdf50=this['_getDiff'](_0x35e837,_0x401f9b);for(const _0x1064c6 of _0x2bdf50['changes'])this['_changeIdToChange']['set'](_0x1064c6['id'],_0x1064c6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15356a=>{for(const _0x182d6e of this['editor']['model']['document']['getRootNames']())_0x15356a['detachRoot'](_0x182d6e);for(const _0x397a45 of Object['keys'](_0x2bdf50['model'])){const _0x4e9474=_0x15356a['addRoot'](_0x397a45);for(const _0x1343b6 of Object['keys'](_0x2bdf50['attributes'][_0x397a45]))_0x15356a['setAttribute'](_0x1343b6,_0x2bdf50['attributes'][_0x397a45][_0x1343b6],_0x4e9474);_0x15356a['insert'](_0x2bdf50['model'][_0x397a45],_0x4e9474,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2bdf50['changes'])),this['isReady']=!0x0;})['catch'](_0x13306c=>{console['error'](_0x13306c),this['_cleanUp'](),_0x2e4ff7&&(this['diff']=_0x2e4ff7),this['isReady']=!0x0;});}['addRevisionData'](_0x320eaf,_0x4d87c8){const _0x30a9c4=this['repository']['createRevision'](_0x320eaf);return _0x30a9c4['on']('_update',(_0x554817,_0x34045f,_0x1b52d1)=>_0x4d87c8(_0x34045f,_0x1b52d1,_0x30a9c4)),this['repository']['addRevision'](_0x30a9c4),_0x30a9c4;}['loadRevisionData'](_0x21fa44){if(!_0x21fa44||_0x21fa44['diffData'])return Promise['resolve']();{const _0x2b1391=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b1391,'revisionId':_0x21fa44['id']})['then'](_0x56cfcd=>{_0x21fa44['_update']({'diffData':_0x56cfcd['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},_0x46e589=>{for(const _0x4fbf06 of this['editor']['model']['document']['getRootNames']())_0x46e589['detachRoot'](_0x4fbf06);});}['_sortAndFilterDiffChanges'](_0x5538e7){const _0xf002e3=[],_0x1518f6=new Map();for(const _0x27fc09 of this['editor']['model']['document']['getRootNames']()){const _0xd30491=this['editor']['editing']['view']['getDomRoot'](_0x27fc09);if(!_0xd30491)continue;const _0x560f35=_0xd30491['getClientRects']()['item'](0x0);_0x560f35&&(_0xf002e3['push'](_0x27fc09),_0x1518f6['set'](_0x27fc09,_0x560f35));}return _0xf002e3['sort']((_0x5d0b39,_0x4dd067)=>{const _0x26b8d6=_0x1518f6['get'](_0x5d0b39),_0x18b7fe=_0x1518f6['get'](_0x4dd067);return _0x26b8d6['y']-_0x18b7fe['y']||_0x26b8d6['x']-_0x18b7fe['x'];}),(_0x5538e7=_0x5538e7['filter'](_0x560b65=>_0xf002e3['includes'](_0x560b65['rootName'])))['sort']((_0x1b5365,_0x554000)=>_0xf002e3['indexOf'](_0x1b5365['rootName'])-_0xf002e3['indexOf'](_0x554000['rootName'])),_0x5538e7;}['_makeTape'](_0x56d80b){const _0x455406=Array['from'](_0x56d80b['markers'])['filter'](([_0x1b2ccf,_0x2651f1])=>_0x1b2ccf['startsWith']('revision:')&&!_0x2651f1['isCollapsed']),_0xaa86e4=Array['from'](this['editor']['model']['createRangeIn'](_0x56d80b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x455406['length'])for(const _0x29184f of _0xaa86e4){const [_0x331d60,_0xcb73ab]=_0x455406[0x0],[,_0x30f36e,_0x5df87e]=_0x331d60['split'](':');if(_0xcb73ab['end']['isEqual'](_0x29184f['nextPosition'])&&_0x455406['shift'](),(_0x29184f['previousPosition']['isEqual'](_0xcb73ab['start'])||_0x29184f['previousPosition']['isAfter'](_0xcb73ab['start']))&&('insertion'==_0x30f36e?_0x29184f['isAdded']={'userId':_0x5df87e}:'deletion'==_0x30f36e&&(_0x29184f['isRemoved']={'userId':_0x5df87e})),0x0==_0x455406['length'])break;}return _0xaa86e4;}['_refreshStartEndIndex'](_0x21eaba){const _0x47645e=new Map();for(let _0x5cd9de=0x0;_0x5cd9de<_0x21eaba['length'];_0x5cd9de++)'text'===_0x21eaba[_0x5cd9de]['type']?(_0x21eaba[_0x5cd9de]['item']['startIndex']=_0x5cd9de,_0x21eaba[_0x5cd9de]['item']['endIndex']=_0x5cd9de):('elementStart'===_0x21eaba[_0x5cd9de]['type']?_0x21eaba[_0x5cd9de]['item']['startIndex']=_0x5cd9de:'elementEnd'===_0x21eaba[_0x5cd9de]['type']&&(_0x21eaba[_0x5cd9de]['item']['endIndex']=_0x5cd9de),_0x47645e['set'](_0x21eaba[_0x5cd9de]['id'],_0x5cd9de));for(const _0x1df212 of _0x47645e['values']())'elementStart'===_0x21eaba[_0x1df212]['type']?_0x21eaba[_0x1df212]['item']['endIndex']=_0x47645e['get'](_0x21eaba[_0x1df212]['pairId']):'elementEnd'===_0x21eaba[_0x1df212]['type']&&(_0x21eaba[_0x1df212]['item']['startIndex']=_0x47645e['get'](_0x21eaba[_0x1df212]['pairId']));}['_processTape'](_0x59ed7c){for(let _0x11ff02=0x0;_0x11ff02<_0x59ed7c['length'];_0x11ff02++){if('elementStart'===_0x59ed7c[_0x11ff02]['type'])_0x59ed7c[_0x11ff02]['item']['startIndex']=_0x11ff02;else{if('elementEnd'===_0x59ed7c[_0x11ff02]['type']){_0x59ed7c[_0x11ff02]['item']['endIndex']=_0x11ff02;const _0x544145=_0x59ed7c[_0x11ff02]['item']['startIndex'];_0x59ed7c[_0x544145]['pairId']=_0x59ed7c[_0x11ff02]['id'],_0x59ed7c[_0x11ff02]['pairId']=_0x59ed7c[_0x544145]['id'];}else _0x59ed7c[_0x11ff02]['item']['startIndex']=_0x11ff02,_0x59ed7c[_0x11ff02]['item']['endIndex']=_0x11ff02,_0x59ed7c[_0x11ff02]['pairId']=null;}_0x59ed7c[_0x11ff02]['markersStart']||(_0x59ed7c[_0x11ff02]['markersStart']=[],_0x59ed7c[_0x11ff02]['markersEnd']=[]);}}['_markInsertions'](_0x4bf358,_0x1f9528){const _0x5d633c=_0x4bf358['filter'](_0x2f44ac=>!_0x2f44ac['isAdded']);for(let _0x24a271=0x0;_0x24a271<_0x1f9528['length'];_0x24a271++)_0x1f9528[_0x24a271]['isAdded']&&(_0x5d633c[_0x24a271]['isAdded']=_0x1f9528[_0x24a271]['isAdded']);}['_makeModelFromViewString'](_0xcae00f){const _0xb3239=JSON['parse'](_0xcae00f),_0x155263=this['editor']['editing']['view']['document'],_0x26f072=new _0x297069(_0x155263,_0xb3239['map'](_0xa371cb=>this['_getViewObj'](_0xa371cb)));return this['editor']['data']['toModel'](_0x26f072);}['_getViewObj'](_0x41c6e7){const _0x54d09b=this['editor']['editing']['view']['document'];if('string'==typeof _0x41c6e7)return new _0x4f05b2(_0x54d09b,_0x41c6e7);{const _0x10d91e=_0x41c6e7['children']['map'](_0x1320d6=>this['_getViewObj'](_0x1320d6));return new(Z[_0x41c6e7['type']]||_0x348f18)(_0x54d09b,_0x41c6e7['name'],_0x41c6e7['attributes'],_0x10d91e);}}['_getDiff'](_0x4522e4,_0x4d837f=null){const _0x3446c4=this['repository']['getRevision'](_0x4522e4),_0x556921=_0x4d837f?this['repository']['getRevision'](_0x4d837f):null,_0xf90d34=this['_getRevisionsRange'](_0x3446c4,_0x556921),_0x4583b5=_0xf90d34[_0xf90d34['length']-0x1],_0x3ff003=new Map(),_0x4f6236={'model':{},'attributes':{},'changes':[]},_0x432d43=new Set(),_0x200a6d=new Map();for(let _0x1f2aea=_0xf90d34['length']-0x1;_0x1f2aea>=0x0;_0x1f2aea--){const _0x1d3323=_0xf90d34[_0x1f2aea];for(const _0x28518e of Object['keys'](_0x1d3323['diffData']))if(_0x1d3323['diffData'][_0x28518e]['attachChange']){const _0x2b5398=_0x1d3323['diffData'][_0x28518e]['attachChange'];_0x2b5398['isAttached']?(_0x432d43['add'](_0x28518e),_0x200a6d['has'](_0x28518e)&&_0x200a6d['get'](_0x28518e)['userId']==_0x2b5398['userId']?_0x200a6d['delete'](_0x28518e):_0x200a6d['set'](_0x28518e,_0x2b5398)):_0x200a6d['has'](_0x28518e)?(_0x432d43['delete'](_0x28518e),_0x200a6d['delete'](_0x28518e)):(_0x432d43['add'](_0x28518e),_0x200a6d['set'](_0x28518e,_0x2b5398));}else _0x432d43['add'](_0x28518e);}for(const _0x2cc6ba of _0x432d43){const _0x434411=_0x200a6d['has'](_0x2cc6ba)&&!_0x200a6d['get'](_0x2cc6ba)['isAttached'];let _0xc3695=_0x434411?_0xf90d34['length']-0x1:0x0;const _0x195d3d=_0x434411?-0x1:0x1;for(;_0xf90d34[_0xc3695];){const _0x2633c5=_0xf90d34[_0xc3695];if(_0x2633c5['diffData'][_0x2cc6ba]){const _0x1a8bc7=_0x434411?_0x2633c5['diffData'][_0x2cc6ba]['attributesBefore']:_0x2633c5['diffData'][_0x2cc6ba]['attributesAfter'];_0x4f6236['attributes'][_0x2cc6ba]=_0x1a8bc7?_0x13b21d(_0x1a8bc7):{};break;}_0xc3695+=_0x195d3d;}}for(const _0x4806e4 of _0xf90d34){_0x4806e4['model']={};for(const _0x48f412 of _0x4806e4['authors'])_0x3ff003['set'](_0x48f412['id'],_0x48f412);for(const _0x1019ca of _0x432d43){const _0x40d72c=_0x4806e4['diffData'][_0x1019ca]?_0x4806e4['diffData'][_0x1019ca]['insertions']:'[]',_0x3c442b=_0x4806e4['diffData'][_0x1019ca]?_0x4806e4['diffData'][_0x1019ca]['deletions']:'[]';_0x4806e4['model'][_0x1019ca]={'insertions':this['_makeModelFromViewString'](_0x40d72c),'deletions':this['_makeModelFromViewString'](_0x3c442b)};}}for(const _0x2466fd of _0x432d43){let _0x3d1cd0=null,_0x17919a=0x0;const _0x21735e=new Map(Array['from'](_0x3446c4['model'][_0x2466fd]['insertions']['markers'])['filter'](([_0x25ec8d])=>!_0x25ec8d['startsWith']('revision:')));let _0x22c098=0x0;for(const _0x21bcdc of _0xf90d34){const _0x3f3151=this['_makeTape'](_0x21bcdc['model'][_0x2466fd]['insertions']);_0x21bcdc==_0x3446c4?(_0x3d1cd0=_0x3f3151,_0x17919a=_0x3d1cd0['length'],_0x3d1cd0['forEach'](_0x220824=>{_0x220824['id']=_0x22c098++;}),this['_processTape'](_0x3d1cd0)):this['_markInsertions'](_0x3d1cd0,_0x3f3151);const _0x468aa3=_0x3d1cd0['filter'](_0x583995=>!_0x583995['isAdded'])['map'](_0x525d98=>_0x525d98['id']);let _0x4b70dd=0x0;const _0x2d5633=this['_makeTape'](_0x21bcdc['model'][_0x2466fd]['deletions']);_0x2d5633['forEach'](_0x55a91f=>{_0x55a91f['isRemoved']?_0x55a91f['id']=_0x17919a++:_0x55a91f['id']=_0x468aa3[_0x4b70dd++];}),this['_processTape'](_0x2d5633),this['_setDistance'](_0x3d1cd0,'isAdded'),this['_setDistance'](_0x2d5633,'isRemoved'),_0x21bcdc==_0x3446c4&&this['_markMarkers'](_0x3d1cd0,_0x21735e),_0x3d1cd0=this['_joinTapes'](_0x3d1cd0,_0x2d5633),this['_refreshStartEndIndex'](_0x3d1cd0),this['_setDistance'](_0x3d1cd0,'isRemoved');}_0x3d1cd0=_0x3d1cd0['filter'](_0x4e58d9=>!(_0x4e58d9['isAdded']&&_0x4e58d9['isRemoved']));const _0x4bbff0=new Map(_0x4583b5['model'][_0x2466fd]['deletions']['markers']),_0x30f758=new Set(_0x21735e['keys']());for(const _0x56dc41 of _0x4bbff0['keys']())_0x30f758['delete'](_0x56dc41);this['_markSuggestions'](_0x3d1cd0,_0x30f758),this['_fixObsoleteTags'](_0x3d1cd0),_0x3d1cd0=this['_removeMissingPairs'](_0x3d1cd0),_0x3d1cd0=this['_markMismatchedRemovedTags'](_0x3d1cd0),_0x3d1cd0=this['_removeUnsupportedChanges'](_0x3d1cd0);const {root:_0xe10e1e,changes:_0x2749a0}=this['_makeModelFromTape'](_0x3d1cd0,_0x3ff003,_0x2466fd);_0x4f6236['model'][_0x2466fd]=_0xe10e1e;const _0x3ebabd=_0x200a6d['get'](_0x2466fd);if(_0x3ebabd){const _0x3dd99a=_0x3ff003['get'](_0x3ebabd['userId']),_0x59baf9=new r({'author':_0x3dd99a,'type':_0x3ebabd['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2466fd});_0x2749a0['unshift'](_0x59baf9),_0x4f6236['attributes'][_0x2466fd]['revisionHistoryAttachChange']=_0x59baf9['id'];}_0x4f6236['changes']=_0x4f6236['changes']['concat'](_0x2749a0);}return _0x4f6236;}['_markMarkers'](_0x46a649,_0x3b7504){for(let _0x39fa8f=0x0;_0x39fa8f<_0x46a649['length'];_0x39fa8f++)for(const [_0x5efac0,_0x2fd324]of _0x3b7504)_0x2fd324['start']['isEqual'](_0x46a649[_0x39fa8f]['previousPosition'])&&_0x46a649[_0x39fa8f]['markersStart']['push'](_0x5efac0),_0x2fd324['end']['isEqual'](_0x46a649[_0x39fa8f]['nextPosition'])&&_0x46a649[_0x39fa8f]['markersEnd']['push'](_0x5efac0);}['_joinTapes'](_0x3f6295,_0x5e1720){let _0x4fd962=[],_0x4905ee=0x0,_0x541c83=0x0;for(;_0x4905ee<_0x3f6295['length']||_0x541c83<_0x5e1720['length'];){const _0x4dda31=_0x3f6295[_0x4905ee]||{},_0x2d9d56=_0x5e1720[_0x541c83]||{};if(_0x4dda31['id']==_0x2d9d56['id'])_0x4905ee++,_0x541c83++,_0x4fd962['push'](_0x4dda31);else{if(_0x2d9d56['isRemoved']&&_0x4dda31['isAdded']){const {commonTape:_0x4bfd46,iEnd:_0x472b29,jEnd:_0x4c363a}=this['_threeWayMerge'](_0x3f6295,_0x4905ee,_0x5e1720,_0x541c83);_0x4fd962=_0x4fd962['concat'](_0x4bfd46),_0x4905ee=_0x472b29,_0x541c83=_0x4c363a;}else _0x2d9d56['isRemoved']?(_0x541c83++,_0x4fd962['push'](_0x2d9d56)):(_0x4905ee++,_0x4fd962['push'](_0x4dda31));}}return _0x4fd962;}['_markSuggestions'](_0x57c3a1,_0x25799e){const _0x1f1958=[];for(let _0x4d9d5d=0x0;_0x4d9d5d<_0x57c3a1['length'];_0x4d9d5d++){for(let _0x2e3c50=0x0;_0x2e3c50<_0x57c3a1[_0x4d9d5d]['markersStart']['length'];_0x2e3c50++){const _0x331aa4=_0x57c3a1[_0x4d9d5d]['markersStart'][_0x2e3c50];if(!_0x25799e['has'](_0x331aa4))continue;const {group:_0x160b07,type:_0x27aab2,authorId:_0x5b77ae}=_0x3dab11(_0x331aa4);'revision-suggestion'!=_0x160b07||'insertion'!=_0x27aab2&&'deletion'!=_0x27aab2||(_0x1f1958['unshift']({'type':_0x27aab2,'name':_0x331aa4,'userId':_0x5b77ae}),_0x57c3a1[_0x4d9d5d]['markersStart']['splice'](_0x2e3c50,0x1),_0x2e3c50--);}_0x470f98(_0x57c3a1[_0x4d9d5d]);for(let _0xc4da63=0x0;_0xc4da63<_0x57c3a1[_0x4d9d5d]['markersEnd']['length'];_0xc4da63++){const _0x2f698a=_0x57c3a1[_0x4d9d5d]['markersEnd'][_0xc4da63];if(!_0x25799e['has'](_0x2f698a))continue;const {group:_0x10ea2d,type:_0x3a6428}=_0x3dab11(_0x2f698a);if('revision-suggestion'!=_0x10ea2d||'insertion'!=_0x3a6428&&'deletion'!=_0x3a6428)continue;_0x57c3a1[_0x4d9d5d]['markersEnd']['splice'](_0xc4da63,0x1),_0xc4da63--;const _0xacfa38=_0x1f1958['findIndex'](_0x388b35=>_0x388b35['name']==_0x2f698a);_0xacfa38>-0x1&&_0x1f1958['splice'](_0xacfa38,0x1);}}function _0x3dab11(_0x2d9a96){const _0x4d2a0d=_0x2d9a96['split'](':');return{'group':_0x4d2a0d[0x0],'type':_0x4d2a0d[0x1],'subType':_0x4d2a0d['length']>=0x5?_0x4d2a0d[0x2]:null,'id':_0x4d2a0d['length']<0x5?_0x4d2a0d[0x2]:_0x4d2a0d[0x3],'authorId':_0x4d2a0d['length']<0x5?_0x4d2a0d[0x3]:_0x4d2a0d[0x4],'markerCount':0x6==_0x4d2a0d['length']?_0x4d2a0d[0x5]:null};}function _0x470f98(_0x6921ff){for(let _0x25dcf6=0x0;_0x25dcf6<_0x1f1958['length'];_0x25dcf6++){if(_0x6921ff['isAdded']&&'insertion'==_0x1f1958[_0x25dcf6]['type'])return _0x6921ff['isAddSuggestion']=_0x1f1958[_0x25dcf6],void delete _0x6921ff['isAdded'];if(!_0x6921ff['isAdded']&&!_0x6921ff['isRemoved']&&'deletion'==_0x1f1958[_0x25dcf6]['type'])return void(_0x6921ff['isRemoveSuggestion']=_0x1f1958[_0x25dcf6]);}}}['_setDistance'](_0x111564,_0x21cd03){let _0x52bc48=0x0,_0x4b555a=!0x1;const _0x5b2b81=new Map();for(const _0x23953b of _0x111564)_0x23953b[_0x21cd03]?_0x4b555a&&(_0x52bc48++,_0x4b555a=!0x1):(_0x52bc48++,_0x4b555a=!0x0),_0x5b2b81['set'](_0x23953b['id'],_0x52bc48);for(let _0x471f08=0x0;_0x471f08<_0x111564['length'];_0x471f08++){if('isRemoved'==_0x21cd03&&_0x111564[_0x471f08]['isAdded']||'isAdded'==_0x21cd03&&_0x111564[_0x471f08]['isRemoved'])continue;if('text'==_0x111564[_0x471f08]['type']){_0x111564[_0x471f08]['distance']=0x0;continue;}const _0x114bd6=_0x5b2b81['get'](_0x111564[_0x471f08]['pairId']),_0x21e77b=_0x5b2b81['get'](_0x111564[_0x471f08]['id']);_0x111564[_0x471f08]['distance']=_0x114bd6-_0x21e77b;}}['_getRevisionsRange'](_0xcd008d,_0x275324,_0x2dadfa=!0x1){const _0x441852=[];let _0x500ca1=this['repository']['getIndex'](_0xcd008d),_0x27773b=this['repository']['getIndex'](_0x275324);for(-0x1==_0x27773b&&(_0x27773b=this['repository']['_revisions']['length'],_0x2dadfa=!0x1);_0x500ca1<_0x27773b;)_0x441852['push'](this['repository']['getRevision'](_0x500ca1)),_0x500ca1++;return _0x2dadfa&&_0x441852['push'](this['repository']['getRevision'](_0x500ca1)),_0x441852;}['_threeWayMerge'](_0x9744df,_0x56bcd4,_0x3a3ced,_0x53962b){const _0x1bb584=this['editor']['model']['schema'];let _0x2d4b69=_0x56bcd4;for(;_0x9744df[_0x2d4b69]&&_0x9744df[_0x2d4b69]['isAdded'];)_0x2d4b69++;let _0x3a8f31=_0x53962b;for(;_0x3a3ced[_0x3a8f31]&&_0x3a3ced[_0x3a8f31]['isRemoved'];)_0x3a8f31++;_0xb76c57(_0x9744df,_0x56bcd4,_0x2d4b69),_0xb76c57(_0x3a3ced,_0x53962b,_0x3a8f31);const _0x2bb460=_0x3a3ced['slice'](_0x53962b,_0x3a8f31)['concat'](_0x9744df['slice'](_0x56bcd4,_0x2d4b69));return _0x2bb460['sort']((_0x402c99,_0x1d18e1)=>_0x402c99['side']!=_0x1d18e1['side']?_0x402c99['side']-_0x1d18e1['side']:_0x402c99['level']!=_0x1d18e1['level']?_0x402c99['level']-_0x1d18e1['level']:_0x402c99['distance']!=_0x1d18e1['distance']?_0x1d18e1['distance']-_0x402c99['distance']:!!_0x402c99['isAdded']!=!!_0x1d18e1['isAdded']?-0x1==_0x402c99['side']||0x0==_0x402c99['side']?_0x402c99['isAdded']?-0x1:0x1:_0x402c99['isAdded']?0x1:-0x1:_0x402c99['index']-_0x1d18e1['index']),{'commonTape':_0x2bb460,'iEnd':_0x2d4b69,'jEnd':_0x3a8f31};function _0xb76c57(_0x4f9d61,_0x4d7d69,_0x10966c){let _0x2ee314=-0x1,_0x2606d5=Number['POSITIVE_INFINITY'],_0x5679ce=!0x0;for(let _0x35ceda=_0x4d7d69;_0x35ceda<_0x10966c;_0x35ceda++)if(_0x1bb584['isInline'](_0x4f9d61[_0x35ceda]['item'])||(_0x5679ce=!0x1),_0x4f9d61[_0x35ceda]['item']['startIndex']<_0x4d7d69&&(_0x2ee314=_0x35ceda),_0x4f9d61[_0x35ceda]['item']['endIndex']>=_0x10966c){_0x2606d5=_0x35ceda;break;}_0x5679ce&&(_0x2ee314=_0x10966c-0x1);for(let _0x18be54=_0x4d7d69;_0x18be54<_0x10966c;_0x18be54++)_0x4f9d61[_0x18be54]['side']=_0x18be54<=_0x2ee314?-0x1:_0x18be54<_0x2606d5?0x0:0x1,_0x4f9d61[_0x18be54]['index']=_0x18be54;let _0x3b106e=0x0;for(let _0x872408=_0x4d7d69;_0x872408<=_0x2ee314;_0x872408++)0x0==_0x4f9d61[_0x872408]['distance']?_0x4f9d61[_0x872408]['level']=_0x3b106e:(_0x3b106e++,_0x4f9d61[_0x872408]['level']=_0x3b106e,_0x3b106e++);for(let _0x1dd63d=_0x4d7d69;_0x1dd63d<_0x10966c;_0x1dd63d++)0x0==_0x4f9d61[_0x1dd63d]['side']&&(_0x4f9d61[_0x1dd63d]['level']=_0x3b106e);_0x3b106e=0x0;for(let _0x211897=_0x10966c-0x1;_0x211897>=_0x2606d5;_0x211897--)0x0==_0x4f9d61[_0x211897]['distance']?_0x4f9d61[_0x211897]['level']=_0x3b106e:(_0x3b106e--,_0x4f9d61[_0x211897]['level']=_0x3b106e,_0x3b106e--);}}['_fixObsoleteTags'](_0x51b11e){const _0x2167a1=new Map(),_0x47907f=this['editor']['model']['schema'];for(let _0x2dd22e=0x1;_0x2dd22e<_0x51b11e['length'];_0x2dd22e++){let _0x136d19,_0x22896f,_0x16221e;const _0x5f4ade=_0x51b11e[_0x2dd22e],_0x4b8c5f=_0x51b11e[_0x2dd22e-0x1];if('text'==_0x5f4ade['type'])continue;if(_0x5f4ade['type']!=_0x4b8c5f['type'])continue;if(!_0x47907f['isBlock'](_0x4b8c5f['item'])||_0x47907f['isLimit'](_0x4b8c5f['item']))continue;if(!_0x47907f['isBlock'](_0x5f4ade['item'])||_0x47907f['isLimit'](_0x5f4ade['item']))continue;if((_0x51b11e[_0x2dd22e]['isAdded']||_0x51b11e[_0x2dd22e]['isAddSuggestion'])&&_0x51b11e[_0x2dd22e-0x1]['isRemoved'])_0x136d19=_0x51b11e[_0x2dd22e],_0x22896f=_0x51b11e[_0x2dd22e-0x1],_0x16221e=_0x2dd22e-0x1;else{if(!_0x51b11e[_0x2dd22e]['isRemoved']||!_0x51b11e[_0x2dd22e-0x1]['isAdded']&&!_0x51b11e[_0x2dd22e-0x1]['isAddSuggestion'])continue;_0x136d19=_0x51b11e[_0x2dd22e-0x1],_0x22896f=_0x51b11e[_0x2dd22e],_0x16221e=_0x2dd22e;}const _0x56e59c=_0x136d19['level']==_0x22896f['level'],_0x4a2bf1=Math['abs'](_0x136d19['level'])<Math['abs'](_0x22896f['level'])&&0x0==_0x22896f['distance'];(_0x56e59c||_0x4a2bf1)&&(_0x2167a1['set'](_0x22896f['id'],_0x136d19['id']),_0x51b11e['splice'](_0x16221e,0x1),_0x2dd22e--,_0x136d19['isAdded']=!0x1);}for(let _0xe9fb99=0x0;_0xe9fb99<_0x51b11e['length'];_0xe9fb99++)_0x2167a1['has'](_0x51b11e[_0xe9fb99]['pairId'])&&(_0x51b11e[_0xe9fb99]['pairId']=_0x2167a1['get'](_0x51b11e[_0xe9fb99]['pairId']));}['_removeMissingPairs'](_0x2890f8){const _0x22fc2c=new Set(_0x2890f8['map'](_0x424104=>_0x424104['id']));for(let _0x422398=0x0;_0x422398<_0x2890f8['length'];_0x422398++)_0x22fc2c['has'](_0x2890f8[_0x422398]['pairId'])||0x0==_0x2890f8[_0x422398]['distance']||(_0x2890f8[_0x422398]['isIncorrect']=!0x0);return _0x2890f8['filter'](_0x5cac0c=>!_0x5cac0c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4e8f8a){const _0xe8947b=new Set();for(let _0x38481c=0x0;_0x38481c<_0x4e8f8a['length'];_0x38481c++){if(_0xe8947b['has'](_0x4e8f8a[_0x38481c]['id'])&&_0x4e8f8a[_0x38481c]['isRemoved']&&(_0x4e8f8a[_0x38481c]['isIncorrect']=!0x0),_0x4e8f8a[_0x38481c]['isIncorrect'])continue;if(0x0==_0x4e8f8a[_0x38481c]['distance'])continue;if('elementStart'!=_0x4e8f8a[_0x38481c]['type'])continue;if(null==_0x4e8f8a[_0x38481c]['pairId'])continue;let _0xcad9e0=_0x38481c+0x1,_0x30cf8b=0x0;for(;_0x4e8f8a[_0xcad9e0]['id']!=_0x4e8f8a[_0x38481c]['pairId'];)'elementStart'==_0x4e8f8a[_0xcad9e0]['type']?_0x30cf8b++:'elementEnd'==_0x4e8f8a[_0xcad9e0]['type']&&_0x30cf8b--,_0xcad9e0++;if(0x0!=_0x30cf8b){if(_0x4e8f8a[_0x38481c]['isRemoved'])_0x4e8f8a[_0x38481c]['isIncorrect']=!0x0;else{for(;_0xcad9e0!=_0x38481c;)_0x4e8f8a[_0xcad9e0]['isRemoved']&&0x0!=_0x4e8f8a[_0xcad9e0]['distance']&&(_0x4e8f8a[_0xcad9e0]['isIncorrect']=!0x0,_0xe8947b['add'](_0x4e8f8a[_0xcad9e0]['pairId'])),_0xcad9e0--;}}}return _0x4e8f8a['filter'](_0x3deca7=>!_0x3deca7['isIncorrect']);}['_removeUnsupportedChanges'](_0x1549dc){const _0x3c0953=this['editor']['model']['schema'];for(let _0x1d9f74=0x0;_0x1d9f74<_0x1549dc['length'];_0x1d9f74++){if(!(_0x1549dc[_0x1d9f74]['isAdded']||_0x1549dc[_0x1d9f74]['isAddSuggestion']||_0x1549dc[_0x1d9f74]['isRemoved']||_0x1549dc[_0x1d9f74]['isRemoveSuggestion']))continue;if(0x0==_0x1549dc[_0x1d9f74]['distance'])continue;const _0x545671=_0x1549dc[_0x1d9f74]['item'];_0x3c0953['isBlock'](_0x545671)||_0x3c0953['isLimit'](_0x545671)||(_0x1549dc[_0x1d9f74]['isAdded']&&delete _0x1549dc[_0x1d9f74]['isAdded'],_0x1549dc[_0x1d9f74]['isAddSuggestion']&&delete _0x1549dc[_0x1d9f74]['isAddSuggestion'],_0x1549dc[_0x1d9f74]['isRemoveSuggestion']&&delete _0x1549dc[_0x1d9f74]['isRemoveSuggestion'],_0x1549dc[_0x1d9f74]['isRemoved']&&(_0x1549dc[_0x1d9f74]['isIncorrect']=!0x0));}return _0x1549dc['filter'](_0x3b8e9f=>!_0x3b8e9f['isIncorrect']);}['_makeModelFromTape'](_0x51ea5c,_0x2e0951,_0xc023b8){const _0x444b0d=new wt(),_0x38f187=[],_0x312b43=new Map(),_0x545cbd=this['editor']['model'],_0x1b79d1=_0x545cbd['schema'],_0x56a9de=[_0x444b0d],_0x1b8eca={},_0x214e70={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x125eb9=null;const _0x228ed9=[0x0];for(let _0x3f5117=0x0;_0x3f5117<_0x51ea5c['length'];_0x3f5117++)if('elementStart'===_0x51ea5c[_0x3f5117]['type']){_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9);const _0x3ea714=new ft(_0x51ea5c[_0x3f5117]['item']['name'],_0x51ea5c[_0x3f5117]['item']['getAttributes']());_0x56a9de[0x0]['_appendChild'](_0x3ea714),_0x228ed9['push'](0x0),_0x56a9de['unshift'](_0x3ea714),_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9);}else'elementEnd'===_0x51ea5c[_0x3f5117]['type']?(_0x56a9de['shift'](),_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9),_0x228ed9['pop'](),_0x228ed9[_0x228ed9['length']-0x1]++,_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9)):(_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9),_0x125eb9?_0x125eb9['_data']+=_0x51ea5c[_0x3f5117]['item']['data']:_0x125eb9=new _t(_0x51ea5c[_0x3f5117]['item']['data'],_0x51ea5c[_0x3f5117]['item']['getAttributes']()),_0x51ea5c[_0x3f5117+0x1]&&'text'===_0x51ea5c[_0x3f5117+0x1]['type']&&_0x5dcf51(_0x125eb9,_0x51ea5c[_0x3f5117+0x1]['item'])||(_0x56a9de[0x0]['_appendChild'](_0x125eb9),_0x125eb9=null),_0x228ed9[_0x228ed9['length']-0x1]+=_0x51ea5c[_0x3f5117]['item']['offsetSize'],_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9));for(let _0x9dfe68=0x0;_0x9dfe68<_0x51ea5c['length'];_0x9dfe68++){const _0x50345d=_0x51ea5c[_0x9dfe68]['previousPosition'],_0x32a613=_0x51ea5c[_0x9dfe68]['nextPosition'];for(const _0x51e211 of _0x51ea5c[_0x9dfe68]['markersStart'])_0x312b43['set'](_0x51e211,{'start':_0x50345d,'end':null});_0x3da46f('isRemoveSuggestion',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isAddSuggestion',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isRemoved',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isAdded',_0x9dfe68,_0x50345d,_0x32a613);for(const _0x3622eb of _0x51ea5c[_0x9dfe68]['markersEnd']){_0x312b43['get'](_0x3622eb)['end']=_0x32a613;}}for(const [_0x9c70b4,_0x12f948]of _0x312b43){const _0x12e9c2=this['editor']['model']['createRange'](_0x12f948['start'],_0x12f948['end']);_0x444b0d['markers']['set'](_0x9c70b4,_0x12e9c2);}return _0x38f187['sort']((_0x2b8365,_0x521563)=>{const _0x4bbeb7=_0x444b0d['markers']['get']('revision:'+_0x2b8365['id']),_0x5a9392=_0x444b0d['markers']['get']('revision:'+_0x521563['id']);return _0x4bbeb7['start']['isBefore'](_0x5a9392['start'])?-0x1:_0x4bbeb7['start']['isAfter'](_0x5a9392['start'])?0x1:_0x4bbeb7['end']['isBefore'](_0x5a9392['end'])?-0x1:_0x4bbeb7['end']['isAfter'](_0x5a9392['end'])?0x1:'add'===_0x2b8365['type']?-0x1:0x1;}),{'root':_0x444b0d,'changes':_0x38f187};function _0x3da46f(_0x11ad97,_0x3ece4b,_0x2dd58c,_0x5f31d0){const _0x71c8f8=!!_0x51ea5c[_0x3ece4b][_0x11ad97],_0x15b37a=_0x71c8f8?_0x51ea5c[_0x3ece4b][_0x11ad97]['userId']:null,_0x1b18e3=_0x3ece4b===_0x51ea5c['length']-0x1,_0x275391=_0x214e70[_0x11ad97][0x0],_0x467772=_0x1b79d1['isObject'](_0x51ea5c[_0x3ece4b]['item']);!_0x1b8eca[_0x11ad97]&&_0x71c8f8?_0x1b8eca[_0x11ad97]={'start':_0x2dd58c,'tapeItem':_0x51ea5c[_0x3ece4b],'userId':_0x15b37a,'type':_0x11ad97}:_0x1b8eca[_0x11ad97]&&!_0x71c8f8?(_0x1b8eca[_0x11ad97]['end']=_0x2dd58c,_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]=null):_0x1b8eca[_0x11ad97]&&_0x71c8f8&&_0x1b8eca[_0x11ad97]['userId']!==_0x15b37a&&(_0x1b8eca[_0x11ad97]['end']=_0x2dd58c,_0x275391&&_0x275391['userId']===_0x1b8eca[_0x11ad97]['userId']||_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]={'start':_0x2dd58c,'tapeItem':_0x51ea5c[_0x3ece4b],'userId':_0x15b37a,'type':_0x11ad97}),_0x1b8eca[_0x11ad97]&&_0x467772&&('elementStart'!==_0x51ea5c[_0x3ece4b]['type']||_0x275391&&_0x275391['userId']===_0x15b37a||_0x214e70[_0x11ad97]['unshift']({'userId':_0x15b37a,'object':_0x51ea5c[_0x3ece4b]['item'],'change':_0x1b8eca[_0x11ad97]}),'elementEnd'===_0x51ea5c[_0x3ece4b]['type']&&_0x275391&&_0x275391['object']===_0x51ea5c[_0x3ece4b]['item']&&(_0x214e70[_0x11ad97]['shift'](),_0x1b8eca[_0x11ad97]=_0x275391['change'])),_0x1b8eca[_0x11ad97]&&_0x1b18e3&&(_0x1b8eca[_0x11ad97]['end']=_0x5f31d0,_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]=null);}function _0x17fb1a({start:_0x59d79b,end:_0x258604,tapeItem:_0x433108,userId:_0x1c8c4a,type:_0x35806c}){const _0xa55fa1=_0x433108['item'],_0x35bb93=_0x545cbd['schema']['isBlock'](_0xa55fa1)&&!_0x545cbd['schema']['isLimit'](_0xa55fa1),_0xc93e67=_0x59d79b['nodeAfter']==_0x258604['parent']&&_0x258604['isAtStart'];if(_0x35bb93&&_0xc93e67)return;const _0xe01ac=_0x545cbd['createRange'](_0x59d79b,_0x258604),_0x45e1d3=_0x2e0951['get'](_0x1c8c4a),_0x34a529=new r({'author':_0x45e1d3,'type':'isAdded'==_0x35806c||'isAddSuggestion'==_0x35806c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35806c||'isRemoveSuggestion'==_0x35806c},'createdAt':new Date(),'rootName':_0xc023b8});_0x38f187['push'](_0x34a529),_0x444b0d['markers']['set']('revision:'+_0x34a529['id'],_0xe01ac);}function _0x5dcf51(_0xa547b3,_0x11aeed){const _0x103465=_0xa547b3['getAttributes'](),_0x47809e=_0x11aeed['getAttributes']();for(const _0xefef97 of _0x103465){if(_0xefef97[0x1]!==_0x11aeed['getAttribute'](_0xefef97[0x0]))return!0x1;_0x47809e['next']();}return _0x47809e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5654c3=>{const _0x42ae39=_0x5654c3['markerName']['split'](':')[0x1],_0x373745=this['_getChangeFromId'](_0x42ae39);if(!_0x373745)return null;const _0x36532e='add'==_0x373745['type']?'insertion':'deletion',_0x1feb9b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36532e];return _0x373745['data']['isSuggestion']&&_0x1feb9b['push']('ck-suggestion-marker-'+_0x36532e+'-new'),this['activeChange']==_0x373745&&_0x1feb9b['push']('ck-suggestion-marker--active'),{'classes':_0x1feb9b,'attributes':{'data-change-id':_0x42ae39}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3a2155=>{_0x3a2155['on']('element:pre',(_0x28ab75,_0x2b6842,_0x20cf33)=>{const _0x2084ab=_0x2b6842['viewItem']['getChild'](0x0);if(!_0x2084ab||!_0x2084ab['is']('element','code'))return;if(!_0x20cf33['consumable']['consume'](_0x2084ab,{'attributes':['vid_start','vid_end']}))return;const _0x180f04=_0x2b6842['modelRange']['start']['nodeAfter'];_0x20cf33['writer']['setAttribute']('vid_start',_0x2084ab['getAttribute']('vid_start'),_0x180f04),_0x20cf33['writer']['setAttribute']('vid_end',_0x2084ab['getAttribute']('vid_end'),_0x180f04);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27adfd=>{_0x27adfd['on']('element',(_0x1a8a43,_0x39023b,_0x39a84c)=>{if(!_0x39a84c['consumable']['consume'](_0x39023b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x39023b['modelRange']['isCollapsed'])return;const _0x3e232e=_0x39023b['modelRange']['start']['nodeAfter'];_0x3e232e['hasAttribute']('vid_start')||_0x3e232e['hasAttribute']('vid')||(_0x39a84c['writer']['setAttribute']('vid_start',_0x39023b['viewItem']['getAttribute']('vid_start'),_0x3e232e),_0x39a84c['writer']['setAttribute']('vid_end',_0x39023b['viewItem']['getAttribute']('vid_end'),_0x3e232e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x19d5d6=>_0x19d5d6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5d5b84,[,_0x49da72])=>{['vid_start','vid_end','vid']['includes'](_0x49da72)&&(_0x5d5b84['return']=!0x0,_0x5d5b84['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x530459=>{_0x530459['on']('attribute:vid',(_0x1864c6,_0x3a43ee,_0x5638b8)=>{if('\x20'!=_0x3a43ee['item']['data']||_0x3a43ee['item']['parent']['maxOffset']>0x1)return;if(!_0x5638b8['consumable']['consume'](_0x3a43ee['item'],_0x1864c6['name']))return;const _0x2c67dd=_0x5638b8['writer'],_0x426860=_0x5638b8['mapper']['toViewRange'](_0x3a43ee['range']);_0x2c67dd['wrap'](_0x426860,_0x2c67dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x360257){const _0x2e4916=_0x360257['plugins']['get']('RevisionViewer');return(_0x5b3743,_0x13f570,_0x3fc3fe)=>{const _0x57c345=_0x13f570['markerName']['split'](':')[0x1],_0x21df80=_0x2e4916['_getChangeFromId'](_0x57c345);if(!_0x21df80)return null;const _0x3d80db='add'==_0x21df80['type']?'split':'merge';if(!_0x3fc3fe['consumable']['test'](_0x13f570['markerRange'],_0x5b3743['name']))return;const _0x1a364e=_0x13f570['markerRange']['getWalker'](),_0x48fd16=_0x13f570['markerRange']['start'],_0x1b57cd=_0x360257['model']['schema'];let _0x4131d9=null,_0x3f391d=null,_0x30d97d=!0x1,_0x90c836=!0x1;for(const _0x4f0957 of _0x1a364e){const _0x3d32ff=_0x4f0957['item'];_0x30d97d=_0x30d97d||_0x1b57cd['isContent'](_0x3d32ff);const _0x37c43b=_0x3fc3fe['mapper']['toViewElement'](_0x3d32ff);if(_0x37c43b&&_0x37c43b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f0957['type']&&(_0x1b57cd['isBlock'](_0x3d32ff)&&!_0x1b57cd['isLimit'](_0x3d32ff)&&(_0x3d32ff['nextSibling']||_0x48fd16['isAtEnd']?_0x4131d9&&_0x4131d9['parent']==_0x3d32ff||(_0x4131d9=_0x3d32ff,_0x4605f3(_0x4f0957['previousPosition']),_0x90c836=!0x0):_0x3f391d=_0x3f391d||_0x4f0957['previousPosition']));}function _0x4605f3(_0x3401ec){const _0x503fe6=_0x3fc3fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d80db}),_0xc684de=_0x3fc3fe['mapper']['toViewPosition'](_0x3401ec);_0x21df80['data']['isSuggestion']&&_0x3fc3fe['writer']['addClass']('ck-suggestion-marker-'+_0x3d80db+'-new',_0x503fe6),_0x2e4916['activeChange']==_0x21df80&&_0x3fc3fe['writer']['addClass']('ck-suggestion-marker--active',_0x503fe6),_0x3fc3fe['writer']['insert'](_0xc684de,_0x503fe6),_0x3fc3fe['mapper']['bindElementToMarker'](_0x503fe6,_0x13f570['markerName']);}_0x30d97d||_0x90c836||!_0x3f391d||_0x4605f3(_0x3f391d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e29c9,_0x3b769b,_0x2640b2)=>{const _0x3e5b4d=_0x2640b2['mapper']['markerNameToElements'](_0x3b769b['markerName']);if(_0x3e5b4d){for(const _0x45baab of _0x3e5b4d)(_0x45baab['hasClass']('ck-suggestion-marker-split')||_0x45baab['hasClass']('ck-suggestion-marker-merge'))&&(_0x2640b2['mapper']['unbindElementFromMarkerName'](_0x45baab,_0x3b769b['markerName']),_0x2640b2['writer']['remove'](_0x45baab));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5595cd,_0x6b27b6,_0x5e7654)=>{const _0x1eb3a1=_0x6b27b6['markerName']['split'](':')[0x1],_0x581682=this['_getChangeFromId'](_0x1eb3a1);if(!_0x581682)return null;const _0x127037='add'==_0x581682['type']?'split':'merge';if(_0x5e7654['consumable']['test'](_0x6b27b6['markerRange'],_0x5595cd['name']))for(const _0x4ead83 of _0x6b27b6['markerRange']['getItems']()){if(!_0x4ead83['is']('element','softBreak'))continue;const _0x26bb7c=_0x5e7654['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x127037}),_0x2a23ff=_0x5e7654['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4ead83));_0x581682['data']['isSuggestion']&&_0x5e7654['writer']['addClass']('ck-suggestion-marker-'+_0x127037+'-new',_0x26bb7c),this['activeChange']==_0x581682&&_0x5e7654['writer']['addClass']('ck-suggestion-marker--active',_0x26bb7c),_0x5e7654['writer']['insert'](_0x2a23ff,_0x26bb7c),_0x5e7654['mapper']['bindElementToMarker'](_0x26bb7c,_0x6b27b6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x213256=>{for(const _0x4a8643 of this['editor']['model']['document']['getRootNames']()){const _0x2f60b2=this['editor']['model']['document']['getRoot'](_0x4a8643),_0xc3b8da=this['editor']['editing']['view']['document']['getRoot'](_0x4a8643);if(_0xc3b8da){const _0x4f525e=_0x2f60b2['getAttribute']('revisionHistoryAttachChange');if(_0x213256['removeAttribute']('data-change-id',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root-add',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root-remove',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root--active',_0xc3b8da),_0x4f525e){const _0x296591=this['_getChangeFromId'](_0x4f525e);if(!_0x296591)return null;_0x213256['setAttribute']('data-change-id',_0x4f525e,_0xc3b8da),_0x213256['addClass']('ck-revision-history-root-'+_0x296591['type'],_0xc3b8da),this['activeChange']==_0x296591&&_0x213256['addClass']('ck-revision-history-root--active',_0xc3b8da);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39a490=>'revision-comment:'+_0x39a490,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1c4808=>'revision-suggestion:'+_0x1c4808,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xc2afab=>({'name':'suggestion:'+_0xc2afab,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47c244=>{const _0x372c78=_0x47c244['markerName']['split'](':')[0x1];return'insertion'!=_0x372c78&&'deletion'!=_0x372c78?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x372c78]};}}),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',(_0x130502,_0x303856,_0x53d978)=>{const _0x2eea57=_0x53d978['mapper']['markerNameToElements'](_0x303856['markerName']);if(_0x2eea57){for(const _0x2ee897 of _0x2eea57)_0x2ee897['is']('uiElement')&&(_0x53d978['mapper']['unbindElementFromMarkerName'](_0x2ee897,_0x303856['markerName']),_0x53d978['writer']['remove'](_0x2ee897));}},{'priority':'high'});}['_getChangeFromId'](_0x3ba6ca){return this['_changeIdToChange']['get'](_0x3ba6ca);}['_getViewForChange'](_0x3b00e9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3b00e9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x14a22d,_0x32e5d2,_0x14fa1c,_0x8d8f08)=>{_0x8d8f08&&this['_balloon']['remove'](_0x8d8f08),_0x14fa1c&&(this['_balloon']['add']({'view':_0x14fa1c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2188cd=this['editor']['editing'],_0xd6c9c8=this['_getChangeFromId'](_0x14fa1c['changeId']);let _0x2a7c96;if(_0xd6c9c8['data']['isOnRoot']){const _0x2d1722=_0x2188cd['view']['getDomRoot'](_0xd6c9c8['rootName']);_0x2a7c96=Array['from'](_0x2d1722['getClientRects']());}else{const _0x508913=this['editor']['model']['markers']['get']('revision:'+_0x14fa1c['changeId']);_0x2a7c96=Array['from'](_0x2188cd['mapper']['markerNameToElements'](_0x508913['name']))['map'](_0xe0665d=>_0x2188cd['view']['domConverter']['mapViewToDom'](_0xe0665d))['map'](_0xdc920e=>Array['from'](_0xdc920e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a7c96[0x0];return _0x2a7c96['find'](_0x30e629=>_0x30e629['top']-0x3<=this['_activeViewTarget']['y']&&_0x30e629['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30e629['left']-0x3<=this['_activeViewTarget']['x']&&_0x30e629['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a7c96[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xfd0eb5,_0xb21c08,_0x251d58,_0x3c2561)=>{this['activeView']=_0x251d58?this['_getViewForChange'](_0x251d58):null,this['editor']['model']['change'](()=>{const _0x3e5174=this['editor']['editing'];_0x3c2561&&(_0x3c2561['data']['isOnRoot']?_0x3e5174['view']['change'](_0xb6e4c2=>{_0xb6e4c2['removeClass']('ck-revision-history-root--active',_0x3e5174['view']['document']['getRoot'](_0x3c2561['rootName']));}):_0x3e5174['reconvertMarker']('revision:'+_0x3c2561['id'])),_0x251d58&&(_0x251d58['data']['isOnRoot']?_0x3e5174['view']['change'](_0x4051ec=>{_0x4051ec['addClass']('ck-revision-history-root--active',_0x3e5174['view']['document']['getRoot'](_0x251d58['rootName']));}):_0x3e5174['reconvertMarker']('revision:'+_0x251d58['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd01a67,_0x28d62f)=>{if(this['activeChange'])return;const _0x2be637=this['_findChangeIdFromDomTarget'](_0x28d62f['target']),_0x4f0308=this['_changeIdToChange']['get'](_0x2be637);_0x4f0308?(this['_activeViewTarget']={'x':_0x28d62f['domEvent']['x'],'y':_0x28d62f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4f0308)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x548306,_0x27d573)=>{const _0x559e56=this['_findChangeIdFromDomTarget'](_0x27d573['target']),_0x6106e1=this['_changeIdToChange']['get'](_0x559e56);_0x6106e1?(this['_activeViewTarget']={'x':_0x27d573['domEvent']['x'],'y':_0x27d573['domEvent']['y']},_0x6106e1===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x6106e1):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d582f){do{const _0x4a7516=_0x1d582f['getAttribute']('data-change-id');if(_0x4a7516)return _0x4a7516;_0x1d582f=_0x1d582f['parent'];}while(_0x1d582f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5079d0=>{for(const _0x3bb3fb of this['editor']['model']['markers'])_0x5079d0['removeMarker'](_0x3bb3fb);});}}function tt(_0x14c189,_0x209fbb){return(_0x459fd2,_0x266ca1,_0x2e648c)=>{if(!_0x2e648c['consumable']['test'](_0x266ca1['markerRange'],_0x459fd2['name']))return;const _0x23d7fb=_0x266ca1['markerRange']['getWalker'](),_0x562fde=_0x266ca1['markerRange']['start'],_0xf76809=_0x14c189['model']['schema'];let _0x3038e2=null,_0x1eba1c=null,_0x4dfe4f=!0x1,_0x2f0911=!0x1;for(const _0x3f39fb of _0x23d7fb){const _0x7b9656=_0x3f39fb['item'];_0x4dfe4f=_0x4dfe4f||_0xf76809['isContent'](_0x7b9656);const _0x5da25d=_0x2e648c['mapper']['toViewElement'](_0x7b9656);if(_0x5da25d&&_0x5da25d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f39fb['type']&&(_0xf76809['isBlock'](_0x7b9656)&&!_0xf76809['isLimit'](_0x7b9656)&&(_0x7b9656['nextSibling']||_0x562fde['isAtEnd']?_0x3038e2&&_0x3038e2['parent']==_0x7b9656||(_0x3038e2=_0x7b9656,_0x35666d(_0x3f39fb['previousPosition']),_0x2f0911=!0x0):_0x1eba1c=_0x1eba1c||_0x3f39fb['previousPosition']));}function _0x35666d(_0x2e6bbe){const _0x53f555=_0x2e648c['mapper']['toViewPosition'](_0x2e6bbe),_0x287c20=_0x2e648c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x209fbb});_0x2e648c['writer']['insert'](_0x53f555,_0x287c20),_0x2e648c['mapper']['bindElementToMarker'](_0x287c20,_0x266ca1['markerName']);}_0x4dfe4f||_0x2f0911||!_0x1eba1c||_0x35666d(_0x1eba1c);};}class yt extends _0x3334d3{constructor(_0x2e55ca){super(_0x2e55ca);const _0x3139b1=_0x2e55ca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3139b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3139b1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x476e47=this['editor'],_0x283ed8=_0x476e47['plugins']['get'](d),_0x3849bb=_0x283ed8['isReady']?_0x283ed8['diff']['newRevisionId']:null;_0x476e47['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3849bb);}['refresh'](){const {isReady:_0x10c287,isEnabled:_0x43a078,repository:_0x4ab77,diff:_0x1528d7}=this['editor']['plugins']['get'](d),_0x8ce74c=_0x1528d7&&_0x4ab77['getLaterVisibleRevision'](_0x1528d7['newRevisionId']);this['isEnabled']=_0x10c287&&_0x43a078&&Boolean(_0x8ce74c);}}class bt extends _0x3334d3{['_step'];constructor(_0x219252,{direction:_0xf38459}){super(_0x219252);const _0x5dc0c9=_0x219252['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xf38459?0x1:-0x1,this['listenTo'](_0x5dc0c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5dc0c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5dc0c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3a9ced=this['editor'],_0x5a56e7=_0x3a9ced['plugins']['get'](d),{isNavigationMode:_0x2ffa63,currentChangeNumber:_0x53f95a}=_0x5a56e7;let _0x391f7b;if(_0x5a56e7['activeChange']=_0x2ffa63?_0x5a56e7['diff']['changes']['get'](_0x53f95a+this['_step']):_0x5a56e7['diff']['changes']['first'],_0x5a56e7['activeChange']['data']['isOnRoot'])_0x391f7b=_0x3a9ced['editing']['view']['getDomRoot'](_0x5a56e7['activeChange']['rootName']);else{const _0x266340=_0x3a9ced['model']['markers']['get']('revision:'+_0x5a56e7['activeChange']['id']);_0x391f7b=_0xdad008(_0x3a9ced['editing'],_0x266340);}_0x4ff583({'target':_0x391f7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1cdecb,currentChangeNumber:_0x1d744a,numberOfChanges:_0x2f22e3,isReady:_0x1e332c,isEnabled:_0x18103c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x18103c&&_0x1e332c&&_0x2f22e3)&&(!_0x1cdecb||(0x1===this['_step']?_0x1d744a<_0x2f22e3-0x1:_0x1d744a>0x0));}}class _i extends _0x30dbe4{constructor(_0xf1a9fe){super(_0xf1a9fe);const _0x485b1b=this['bindTemplate'],_0x1ccf9b=new _0x380986(_0xf1a9fe),_0x4c4dcf=new _0x380986(_0xf1a9fe);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',(_0x46db2e,_0x23e0cb)=>_0x46db2e&&_0x23e0cb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46d490,_0x4c4202,_0x19f1de,_0x786032)=>{if(!_0x46d490)return R(_0xf1a9fe,'Loading...');if(!_0x19f1de)return R(_0xf1a9fe,'No\x20changes');const _0x8b3d9d=R(_0xf1a9fe,'NUMBER_OF_CHANGES',_0x19f1de);return _0x786032?R(_0xf1a9fe,'X_OF_Y_CHANGES',[_0x4c4202+0x1,_0x19f1de]):_0x8b3d9d;}),_0x1ccf9b['set']({'label':R(_0xf1a9fe,'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'}),_0x4c4dcf['set']({'label':R(_0xf1a9fe,'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'}),_0x1ccf9b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c4dcf['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ccf9b['on']('execute',()=>this['fire']('execute','backward')),_0x4c4dcf['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',_0x485b1b['if']('_isStatusLabelVisible','ck-hidden',_0x309dad=>!_0x309dad)]},'children':[{'text':_0x485b1b['to']('isNavigationMode',_0x118297=>_0x118297?R(_0xf1a9fe,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xf1a9fe,'Total')+':\x20')}]},{'text':_0x485b1b['to']('_statusText')}]},new _0xe63aea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ccf9b,_0x4c4dcf]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x173480{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1c92f2=this['editor']['editing']['view'];_0x1c92f2['change'](_0x1bbd5e=>{for(const _0x46517f of _0x1c92f2['document']['roots'])_0x1bbd5e['addClass'](ce,_0x46517f);});}['hide'](){const _0x3a114a=this['editor']['editing']['view'];_0x3a114a['change'](_0x1fbcf5=>{for(const _0x3245c4 of _0x3a114a['document']['roots'])_0x1fbcf5['removeClass'](ce,_0x3245c4);});}}class m extends _0x173480{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x103727=this['editor'],_0x30f3f6=_0x103727['plugins']['get'](d),_0x4af009=_0x103727['plugins']['get'](le);_0x103727['ui']['componentFactory']['add']('exitToEditing',_0x1f994c=>{const _0x2a2d1c=new _0x380986(_0x1f994c);return _0x2a2d1c['set']({'label':R(_0x1f994c,'Back\x20to\x20editing'),'icon':_0x29afe1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2a2d1c,'execute',()=>{_0x103727['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2a2d1c;}),_0x103727['ui']['componentFactory']['add']('restoreRevision',_0x37e026=>{const _0x1499f0=new _0x380986(_0x37e026);return _0x1499f0['set']({'label':R(_0x37e026,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1499f0['bind']('isEnabled')['to'](_0x103727['commands']['get']('restoreRevision')),this['listenTo'](_0x1499f0,'execute',()=>_0x103727['execute']('restoreRevision')),_0x1499f0;}),_0x103727['ui']['componentFactory']['add']('changesNavigation',_0x2d35a4=>{const _0xc964bf=new _i(_0x2d35a4),_0x5e7a52=_0x103727['commands']['get']('showPreviousChange'),_0x513ca7=_0x103727['commands']['get']('showNextChange');return _0xc964bf['bind']('isBackwardNavigationEnabled')['to'](_0x5e7a52,'isEnabled'),_0xc964bf['bind']('isForwardNavigationEnabled')['to'](_0x513ca7,'isEnabled'),_0xc964bf['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x30f3f6),this['listenTo'](_0xc964bf,'execute',(_0x5f180d,_0xe3a473)=>{_0x103727['execute']('forward'===_0xe3a473?'showNextChange':'showPreviousChange');}),_0xc964bf;}),_0x4af009['show'](),_0x30f3f6['on']('change:isReady',(_0x105add,_0x496f62,_0x37e9f8)=>{_0x37e9f8?_0x4af009['hide']():_0x4af009['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1c897f,_0x3ad7c0){super(_0x1c897f,_0x3ad7c0);const _0x5e3642=this['bindTemplate'];this['set']({'label':R(_0x1c897f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1c897f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5e3642['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 _0x1e84ea=this['fieldView']['element'];this['_tooltipString']=_0x1e84ea['scrollWidth']>_0x1e84ea['clientWidth']&&_0x1e84ea['value']||'';}}class ti extends _0x30dbe4{constructor(_0x27236b,_0x40fc8c,_0x3c7a15){super(_0x27236b);const _0x43a618=new _0xb4e60f();_0x43a618['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 _0x4311b6=['ck','ck-revision-history-sidebar__revision-author'];_0x3c7a15&&_0x4311b6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x51c28d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x27236b,_0x3c7a15?'Revision\x20creator':'Revision\x20author')},'children':[_0x43a618,_0x40fc8c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4311b6},'children':_0x51c28d});}}function ni(_0x4fe33b,_0x8f2a04){const _0x3829d3=_0x4fe33b['bindTemplate'],_0x559c71=_0x4fe33b['locale'],_0x608b45=_0x4bbaf9(_0x559c71);_0x608b45['panelPosition']='sw';const _0x367dc1=function(_0x4fa0d3,_0x2bce03){const _0x546cda=function(_0x220fc3,_0x5bd507){const _0x43c6c6=_0x220fc3['locale'],_0x41e914={'Compare\x20against\x20selected':R(_0x43c6c6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x43c6c6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x43c6c6,'Restore\x20this\x20revision')};return _0x5bd507['map'](_0x40c457=>{const _0x4ab0ca=_0x41e914[_0x40c457['name']];return _0x4ab0ca&&_0x4ab0ca!==_0x40c457['name']&&(_0x40c457['name']=_0x4ab0ca),_0x40c457;});}(_0x4fa0d3,_0x2bce03),_0x4b85c4=new _0x7320e5();for(const _0x54e297 of _0x546cda){const _0x380827={'type':'button','model':new to({'label':_0x54e297['name'],'class':_0x54e297['class'],'withText':!0x0,'role':'menuitem','_action':_0x54e297['action']})};_0x380827['model']['bind']('isEnabled')['to'](_0x4fa0d3,'isActionsDropdownOpen',_0x936f7=>'function'!=typeof _0x54e297['isEnabled']||(!_0x936f7||_0x54e297['isEnabled'](_0x4fa0d3))),_0x4b85c4['add'](_0x380827);}return _0x4b85c4;}(_0x4fe33b,_0x8f2a04);return _0x4fe33b['bind']('isActionsDropdownOpen')['to'](_0x608b45,'isOpen'),_0x608b45['buttonView']['set']({'label':R(_0x559c71,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x29afe1['threeVerticalDots']}),_0x608b45['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3829d3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3829d3['to'](_0x3d3e50=>_0x3d3e50['stopPropagation']())}}),_0x608b45['on']('execute',_0x383c4c=>{_0x4fe33b['isReady']&&'function'==typeof _0x383c4c['source']['_action']&&_0x383c4c['source']['_action'](_0x4fe33b);}),_0x229028(_0x608b45,_0x367dc1,{'role':'menu'}),_0x608b45['listenTo'](_0x4fe33b,'change:isActionsDropdownOpen',(_0x594261,_0xa474a,_0x26ade8)=>{if(_0x26ade8)for(const _0xa99681 of _0x608b45['listView']['items']){const _0x168734=_0xa99681['children']['first'],_0x266f62=_0x8f2a04['find'](_0x4a5dca=>_0x4a5dca['action']===_0x168734['_action'])['isVisible'];_0xa99681['isVisible']=void 0x0===_0x266f62||_0x266f62(_0x4fe33b);}}),_0x608b45;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x16ad9e,uid as _0x49b2b2,Collection as _0x24f698,logWarning as _0x263ef1,FocusTracker as _0xf20832,KeystrokeHandler as _0x282e49,scrollViewportToShowTarget as _0x2ad45b,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x53c33b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b9a95,set as _0x90e3f0,unset as _0x4f9793,isEqual as _0x23f9d9}from'lodash-es';import{Plugin as _0x27bfb5,PendingActions as _0x382727,icons as _0x1fbbe3,Command as _0x419747,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3253d7,getMarkerDomElement as _0x4c1d78,ConfirmMixin as ti,sanitizeEditorConfig as _0x25769a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2d7291,ViewText as _0x309635,ViewElement as _0x3489bf,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x1cf001,ViewAttributeElement as _0x14893b,ViewEmptyElement as _0x815d87,ViewRawElement as _0xa92a0d,ViewUIElement as _0x34b803,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x105f99,submitHandler as _0x24b08d,LabeledFieldView as _0x3bef68,createLabeledInputText as _0x4d2d9f,createDropdown as _0x327b70,ListView as _0x3362f5,ListItemView as _0x2be56c,ButtonView as te,MenuBarMenuView as _0x236325,MenuBarMenuListView as _0x3ecedc,MenuBarMenuListItemView as _0x391bac,MenuBarMenuListItemButtonView as _0x47c8b3,ContextualBalloon as _0x112130,ToolbarSeparatorView as _0x4e96f3,IconView as _0x32e90e,addListToDropdown as to,ViewModel as _0x2cea3a,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 _0x49cbb2}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x16ad9e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x53e82f){super(),this['id']=_0x53e82f['id']||_0x49b2b2(),this['creator']=_0x53e82f['creator']||null,this['authors']=_0x53e82f['authors']||[],this['diffData']=_0x53e82f['diffData']||null,this['toVersion']=_0x53e82f['toVersion']||0x0,this['fromVersion']=_0x53e82f['fromVersion']||0x0,this['set']('name',_0x53e82f['name']||''),this['set']('createdAt',_0x53e82f['createdAt']||new Date()),this['set']('attributes',_0x53e82f['attributes']||{});}['setName'](_0x511392){this['_update']({'name':_0x511392});}['setAttribute'](_0x43dbde,_0xf8623f){const _0x13a812=_0x2b9a95(this['attributes']);_0x90e3f0(_0x13a812,_0x43dbde,_0xf8623f),this['_update']({'attributes':_0x13a812});}['removeAttribute'](_0x5051c8){const _0x390dab=_0x2b9a95(this['attributes']);_0x4f9793(_0x390dab,_0x5051c8),this['_update']({'attributes':_0x390dab});}['_update'](_0x38d1ef,_0x5e6853=!0x1){let _0x4f8060=!0x1;const _0x1391af={'id':this['id']},_0x37f8ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x282257 of _0x37f8ad){const _0x10efad=_0x38d1ef[_0x282257];void 0x0!==_0x10efad&&_0x10efad!==this[_0x282257]&&(this[_0x282257]=_0x10efad,_0x1391af[_0x282257]=_0x10efad,_0x4f8060=!0x0);}_0x4f8060&&(_0x1391af['authors']&&(_0x1391af['authorsIds']=_0x1391af['authors']['map'](_0x3cd2a2=>_0x3cd2a2['id']),delete _0x1391af['authors']),this['fire']('_update',_0x1391af,_0x5e6853));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a1c96=>_0x5a1c96['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x27bfb5{['_revisions'];static get['requires'](){return[_0x3253d7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x50dddf){super(_0x50dddf),this['_revisions']=new _0x24f698();}['afterInit'](){!async function(_0x179738){const _0x29186=_0x3daf34([0x51,0x64,0x79,0x44,0x32,0x53,0x4e,0x49,0x41,0x42,0x46,0x43,0x75,0x68,0x31,0x4a,0x69,0x55,0x73,0x77,0x58,0x59,0x6c,0x66,0x67,0x50,0x30,0x6b,0x6d,0x57,0x36,0x7a,0x4c,0x6f,0x56,0x37,0x70,0x35,0x33,0x47,0x71,0x38,0x4d,0x6e,0x61,0x4f,0x78,0x62,0x65,0x74,0x5a,0x54,0x63,0x4b,0x72,0x6a,0x76,0x39,0x48,0x52,0x45,0x34]),_0x46ecfb=0xeb829,_0x5b25fa=0x405d899c,_0x88b36f=0x405ad2ec^_0x5b25fa,_0x252d22=window[_0x3daf34([0x44,0x61,0x74,0x65])][_0x3daf34([0x6e,0x6f,0x77])](),_0x2ea138=_0x179738[_0x3daf34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50cddb=new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cdcd=>{_0x2ea138[_0x3daf34([0x6f,0x6e,0x63,0x65])](_0x3daf34([0x72,0x65,0x61,0x64,0x79]),_0x51cdcd);}),_0x30a349={[_0x3daf34([0x6b,0x74,0x79])]:_0x3daf34([0x45,0x43]),[_0x3daf34([0x75,0x73,0x65])]:_0x3daf34([0x73,0x69,0x67]),[_0x3daf34([0x63,0x72,0x76])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36]),[_0x3daf34([0x78])]:_0x3daf34([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]),[_0x3daf34([0x79])]:_0x3daf34([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]),[_0x3daf34([0x61,0x6c,0x67])]:_0x3daf34([0x45,0x53,0x32,0x35,0x36])},_0x360883=_0x2ea138[_0x3daf34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3daf34([0x67,0x65,0x74])](_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e6979(){let _0x2b4dd7,_0x3d5bd=null,_0x26ec06=null;try{if(_0x360883==_0x3daf34([0x47,0x50,0x4c]))return _0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b4dd7=_0x28b455(),!_0x2b4dd7)return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26ec06=_0x4b44d6(_0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b4dd7[_0x3daf34([0x6a,0x74,0x69])])),await _0x4b393d()?_0x45fed4()?_0x4478df()?_0x3daf34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x518f26()?(_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf3c372()):_0x3daf34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4cbe8e){return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4478df(){const _0x4e75f5=[_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3daf34([0x74,0x72,0x69,0x61,0x6c])][_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x252d22/0x3e8:0xe10*_0x88b36f;return _0x2b4dd7[_0x3daf34([0x65,0x78,0x70])]<_0x4e75f5;}function _0x45fed4(){const _0x2d9fcc=_0x2b4dd7[_0x3daf34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d9fcc)return!0x1;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x48])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x52,0x48]))){if(_0x3c0712())return!0x0;if(_0x408483()||_0x20dc50())return!0x0;}return!0x1;}function _0x518f26(){const _0x5732e2=_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5732e2||0x0==_0x5732e2[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x486694}=new URL(window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5732e2[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486694))return!0x0;const _0x5669d0=_0x486694[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));return _0x5732e2[_0x3daf34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2160c4=>_0x2160c4[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))[_0x3daf34([0x6d,0x61,0x70])](_0x44d033=>_0x44d033[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])))[_0x3daf34([0x73,0x6f,0x6d,0x65])](_0x2a1216=>_0x5669d0[_0x3daf34([0x65,0x76,0x65,0x72,0x79])]((_0x1cf0ce,_0x1d7e49)=>_0x2a1216[_0x1d7e49]===_0x1cf0ce||_0x2a1216[_0x1d7e49]===_0x3daf34([0x2a])));}function _0xf3c372(){return _0x3d5bd&&_0x26ec06?new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd04e,_0x23f4b7)=>{_0x3d5bd[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2cd04e,_0x23f4b7),_0x26ec06[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2decda=>{_0x2decda!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd04e(_0x2decda);},_0x23f4b7);}):_0x3d5bd||_0x26ec06||_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b44d6(_0x20a1e8,_0x137a10){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efd79=>{if(_0x3fd7e3())return _0x2efd79(_0x3daf34([0x56,0x61,0x6c,0x69,0x64]));_0x4f495d(),_0x2ea138[_0x3daf34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ed219=!0x1;const _0x1d0f73=_0x49b2b2();function _0x2acff9(_0x502d77){return!!_0x502d77&&(typeof _0x502d77===_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x502d77===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x502d77[_0x3daf34([0x74,0x68,0x65,0x6e])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x502d77[_0x3daf34([0x63,0x61,0x74,0x63,0x68])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x423f8d(_0xbbc9a6){_0x54d5ca(_0xbbc9a6)[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x413b3b=>{if(!_0x413b3b||_0x413b3b[_0x3daf34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3daf34([0x6f,0x6b]))return _0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572711(_0x158add(_0x1d0f73+_0x137a10))!=_0x413b3b[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x1f6ca6=>(_0x534217(),_0x1f6ca6),()=>{const _0x387e2d=_0x2da112();return null==_0x387e2d?(_0x534217(),_0x3daf34([0x56,0x61,0x6c,0x69,0x64])):_0x3daf34(_0x252d22-_0x387e2d>(0x64510d9c^_0x5b25fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2efd79)[_0x3daf34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bb09e=0x406b671c^_0x5b25fa;function _0x534217(){const _0x4dd4c9=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x4bf69d=_0x1d3aec(_0x572711(window[_0x3daf34([0x4d,0x61,0x74,0x68])][_0x3daf34([0x63,0x65,0x69,0x6c])](_0x252d22/_0x4bb09e)));window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd4c9,_0x4bf69d);}function _0x2da112(){const _0x334483=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x5ec565=window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334483);return _0x5ec565?window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d3aec(_0x5ec565),0x10)*_0x4bb09e:null;}function _0x54d5ca(_0x520222){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b893,_0x1069c9)=>{_0x520222[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x49b893,_0x1069c9),window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1069c9,0x405c5d5c^_0x5b25fa);});}}_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x361a00,_0x3c986b)=>{if(_0x3c986b[0x0]!=_0x20a1e8)return _0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c986b[0x1]={..._0x3c986b[0x1],[_0x3daf34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0f73};},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x68,0x69,0x67,0x68])}),_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dbdbb=>{_0x2acff9(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ed219=!0x0,_0x423f8d(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x6c,0x6f,0x77])}),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>{_0x4ed219||_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd7e3(){return _0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3daf34([0x61,0x75,0x74,0x6f]);}function _0x4f495d(){_0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3daf34([0x61,0x75,0x74,0x6f]);}}function _0x54832f(_0x4df090){const _0xa643fe=[new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1188bb=>setTimeout(_0x1188bb,0x4054b750^_0x5b25fa)),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3c566=>{const _0x8d5ea=0x405d899b^_0x5b25fa,_0x5138a7=_0x179738[_0x3daf34([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x364cc1(){_0x5138a7[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8d5ea&&_0xf3c566();}_0x364cc1(),_0x5138a7[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x61,0x64,0x64]),_0x364cc1);})),new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a1ea3=>{function _0x2a1b08(){for(const _0x26d39b in window)if(window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x26d39b))&&window[_0x26d39b]==_0x46ecfb)return _0x7a1ea3();_0x2ea138[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]!=_0x3daf34([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a1b08,0x405d9a14^_0x5b25fa);}_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a1b08();})];return window[_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3daf34([0x72,0x61,0x63,0x65])](_0xa643fe)[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>_0x4df090);}async function _0x348dc5(){if(await _0x50cddb,_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1ead5e=_0x179738[_0x3daf34([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x553371=_0x179738[_0x3daf34([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])](_0x1ead5e[_0x3daf34([0x69,0x64])]),_0x4e4ad0=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1ead5e['id'],_0x553371?_0x553371['id']:null,!0x0),_0x4e4ad0[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e4ad0[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cc247,void(_0x4e4ad0[_0x3daf34([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cc247);}if(_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x472eb3=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x472eb3[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x472eb3[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x472eb3[_0x3daf34([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cc247,_0x472eb3[_0x3daf34([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cc247;}_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0712(){return _0x5e11a9(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40b1d7(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]==_0x3daf34([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x408483(){return _0x5e11a9(_0x3daf34([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 _0x20dc50(){return _0x5e11a9(_0x3daf34([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3cc412(_0x1f6f1b){const _0x3ce969=_0x83e8a1();_0x2ea138[_0x3ce969]=_0x3daf34([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])+_0x1f6f1b,_0x1f6f1b[_0x3daf34([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x83e8a1()]=_0x46ecfb),_0x1f6f1b!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x348dc5();}function _0x83e8a1(){const _0x2ea970=window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3daf34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3daf34([0x6e,0x6f,0x77])]())[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3daf34([0x2e]),'');let _0x3379da=_0x3daf34([0x51]);for(let _0x343cb8=0x0;_0x343cb8<_0x2ea970[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x343cb8+=0x2){let _0x5b2be0=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea970[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x343cb8,_0x343cb8+0x2));_0x5b2be0>=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b2be0-=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3379da+=_0x29186[_0x5b2be0];}return _0x3379da;}function _0x28b455(){const _0x2d198e=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));if(0x3!=_0x2d198e[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f0c9d(_0x2d198e[0x1]);function _0x4f0c9d(_0x4f4b7a){const _0x325eec=_0x22ae10(_0x4f4b7a);return _0x325eec&&_0x41eebe()?_0x325eec:null;function _0x41eebe(){const _0x31134b=_0x325eec[_0x3daf34([0x6a,0x74,0x69])],_0x489402=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x296af3={..._0x325eec,[_0x3daf34([0x6a,0x74,0x69])]:_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x296af3[_0x3daf34([0x76,0x63])],_0x158add(_0x296af3)==_0x489402;}}}async function _0x4b393d(){let _0x5a9f97=!0x0;try{const _0x5954ed=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])),[_0xe541af,_0x5a54cc,_0x2acc4c]=_0x5954ed;return _0x14ccf0(_0xe541af),await _0x3278e6(_0xe541af,_0x5a54cc,_0x2acc4c),_0x5a9f97;}catch(_0x2197ae){return!0x1;}function _0x14ccf0(_0xb7e847){const _0x2f6559=_0x22ae10(_0xb7e847);_0x2f6559&&_0x2f6559[_0x3daf34([0x61,0x6c,0x67])]==_0x3daf34([0x45,0x53,0x32,0x35,0x36])||(_0x5a9f97=!0x1);}async function _0x3278e6(_0x209e16,_0x1dba54,_0x2f9e43){const _0x410369=window[_0x3daf34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3daf34([0x66,0x72,0x6f,0x6d])](_0xe5e4aa(_0x2f9e43),_0x1675b2=>_0x1675b2[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19a98b=new window[(_0x3daf34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3daf34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209e16+_0x3daf34([0x2e])+_0x1dba54),_0x53bac4=window[_0x3daf34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3daf34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bac4)return;const _0x4074de=await _0x53bac4[_0x3daf34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3daf34([0x6a,0x77,0x6b]),_0x30a349,{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bac4[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x68,0x61,0x73,0x68])]:{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4074de,_0x410369,_0x19a98b)||(_0x5a9f97=!0x1);}}function _0x22ae10(_0x24fd1c){return _0x24fd1c[_0x3daf34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x65,0x79]))?JSON[_0x3daf34([0x70,0x61,0x72,0x73,0x65])](_0xe5e4aa(_0x24fd1c)):null;}function _0xe5e4aa(_0x5eb733){return window[_0x3daf34([0x61,0x74,0x6f,0x62])](_0x5eb733[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3daf34([0x2b]))[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3daf34([0x2f])));}function _0x158add(_0x5c6615){let _0xd92dbd=0x1505;function _0x2aa56b(_0x8c8104){for(let _0x23cce2=0x0;_0x23cce2<_0x8c8104[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23cce2++){const _0x4fe018=_0x8c8104[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23cce2);_0xd92dbd=(_0xd92dbd<<0x5)+_0xd92dbd+_0x4fe018,_0xd92dbd&=_0xd92dbd;}}function _0x1f2afe(_0x3c7492){Array[_0x3daf34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c7492)?_0x3c7492[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f2afe):_0x3c7492&&typeof _0x3c7492==_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3daf34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c7492)[_0x3daf34([0x73,0x6f,0x72,0x74])]()[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205236,_0x433d3b])=>{_0x2aa56b(_0x205236),_0x1f2afe(_0x433d3b);}):_0x2aa56b(window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c7492));}return _0x1f2afe(_0x5c6615),_0xd92dbd>>>0x0;}function _0x572711(_0x3dd9ba){return _0x3dd9ba[_0x3daf34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3daf34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3daf34([0x30]));}function _0x1d3aec(_0x25d67e){return _0x25d67e[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3daf34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3daf34([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e11a9(_0x4293e9){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x68,0x61,0x73])](_0x4293e9);}function _0x40b1d7(_0x2d2ee6){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x67,0x65,0x74])](_0x2d2ee6);}function _0x5cc247(){}function _0x3daf34(_0x3e1c5e){return _0x3e1c5e['map'](_0xbc90ba=>String['fromCharCode'](_0xbc90ba))['join']('');}_0x3cc412(await _0x3e6979());}(this);}['createRevision'](_0x4f124d){const _0xc1d1a1=this['editor']['plugins']['get']('Users');return new a({'id':_0x4f124d['id'],'name':_0x4f124d['name'],'creator':_0x4f124d['creatorId']?_0xc1d1a1['getUser'](_0x4f124d['creatorId']):null,'diffData':_0x4f124d['diffData']||_0x4f124d['data'],'authors':_0x4f124d['authorsIds']['map'](_0x543392=>_0xc1d1a1['getUser'](_0x543392)),'createdAt':new Date(_0x4f124d['createdAt']),'attributes':_0x4f124d['attributes'],'fromVersion':_0x4f124d['fromVersion'],'toVersion':_0x4f124d['toVersion']});}['addRevision'](_0x228128,_0x299714=0x0){this['_revisions']['add'](_0x228128,_0x299714);}['getRevision'](_0xf430e9){return this['_revisions']['get'](_0xf430e9);}['getRevisions'](_0x304ab8={'toJSON':!0x1}){const _0xa9e0c3=Array['from'](this['_revisions']);return _0xa9e0c3['reverse'](),_0x304ab8['toJSON']?_0xa9e0c3['map'](_0x3e39c3=>_0x3e39c3['toJSON']()):_0xa9e0c3;}['getIndex'](_0x54b95f){return this['_revisions']['getIndex'](_0x54b95f);}['getEarlierVisibleRevision'](_0x40e6ba){const [,_0x168b1c]=this['getRevisionsIterator'](_0x40e6ba,{'direction':'earlier'});return _0x168b1c;}['getLaterVisibleRevision'](_0x17e789){const [,_0x142c51]=this['getRevisionsIterator'](_0x17e789,{'direction':'later'});return _0x142c51;}['getRevisionsInDiff'](_0x57e9ef){const _0xdbf1e7=[];for(const _0x3a8f76 of this['getRevisionsIterator'](_0x57e9ef['newRevisionId']))if(_0xdbf1e7['push'](_0x3a8f76),_0x3a8f76['id']===_0x57e9ef['oldRevisionId'])break;return _0xdbf1e7;}*['getRevisionsIterator'](_0x42fc33,{direction:_0x1457f1='earlier',filter:_0x3daa93=()=>!0x0}={}){const _0x195d03='earlier'===_0x1457f1?0x1:-0x1;let _0x5044a2=this['_revisions']['get'](_0x42fc33),_0x3deebb=this['getIndex'](_0x5044a2);for(yield _0x5044a2;_0x5044a2;){if(_0x3deebb+=_0x195d03,_0x5044a2=this['getRevision'](_0x3deebb),!_0x5044a2)return;_0x3daa93(_0x5044a2)&&(yield _0x5044a2);}}}function R(_0x301c55,_0x42b82d,_0x3ee0ff){const t=_0x301c55['t'];switch(_0x42b82d){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'},_0x3ee0ff);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ee0ff);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':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class l extends _0x27bfb5{['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[_0x3253d7,j,_0x382727];}constructor(_0x3303ed){super(_0x3303ed),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 _0xb1856f=_0x49b2b2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb1856f},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 _0x576683=this['repository']['getRevision'](0x0),_0x3f7f5d=_0x576683&&null===_0x576683['creator']?_0x576683:null;if(this['_continueCurrentRevision']=!!_0x3f7f5d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50db27=this['_source']['getCurrentRevisionId'](),_0x3d1064=this['repository']['getRevision'](_0x50db27);if(_0x3d1064)this['_startingVersion']=_0x3d1064['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5cc675=this['_source']['history']['_operations']['find'](_0x123b56=>!_0x123b56['_isInit']),_0x2e75d8=_0x5cc675?_0x5cc675['baseVersion']:this['_source']['history']['version'];_0x576683?(_0x576683['toVersion']<_0x2e75d8&&_0x576683['_update']({'toVersion':_0x2e75d8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['fromVersion']):(this['_startingVersion']=_0x576683['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e75d8,this['_continueCurrentRevision']=!0x1);}}else _0x3f7f5d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3f7f5d['toVersion'],this['editor']['model']['document']['history']['version']),_0x3f7f5d['fromVersion']===_0x3f7f5d['toVersion']?(0x0!==_0x3f7f5d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['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',_0x3713ec=>!_0x3713ec),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x120bbc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b2dca;for(const _0x1b8166 in _0x120bbc){const _0x36eabd=_0x1b8166,_0x4c74b9=_0x120bbc[_0x36eabd];if('revisionHistoryLicenseKeyValid'==_0x4c74b9||'revisionHistoryLicenseKeyInvalid'==_0x4c74b9||'revisionHistoryLicenseKeyExpired'==_0x4c74b9||'revisionHistoryLicenseKeyDomainLimit'==_0x4c74b9||'revisionHistoryLicenseKeyNotAllowed'==_0x4c74b9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c74b9||'revisionHistoryLicenseKeyTrialLimit'==_0x4c74b9||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4c74b9||'revisionHistoryLicenseKeyUsageLimit'==_0x4c74b9){delete _0x120bbc[_0x36eabd],_0x4b2dca=_0x4c74b9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4b2dca&&_0x120bbc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4b2dca&&_0x120bbc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4b2dca&&_0x120bbc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5508f0=this['repository']['getRevision'](0x0),_0x32fac1=await this['getRevisionDocumentData'](_0x5508f0),_0x1874d1=await this['getRevisionRootsAttributes'](_0x5508f0);this['_replaceEditorDataWithRevisionData'](_0x32fac1,_0x1874d1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xad9af6){this['_source']=_0xad9af6;}async['update'](){const _0x379c5d=await this['_source']['getLatestVersion']();if(_0x379c5d>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa96159=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x379c5d});_0xa96159['authors']=_0xa96159['authorsIds']['map'](_0x2d0faa=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d0faa)),this['currentRevision']['_update'](_0xa96159);}}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'](_0x691d36={},_0x2739fa=null){const _0x1edd8b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2739fa>this['currentRevision']['toVersion']&&(_0x2739fa=null),null===_0x2739fa&&(_0x2739fa=await this['_source']['getLatestVersion']());const _0x2ed99d=this['_getFromVersion'](_0x2739fa),_0xd8afa7=this['buildRevisionData']({'from':_0x2ed99d,'to':_0x2739fa});if(this['currentRevision']['toVersion']<_0x2739fa){const _0xf9a99=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2739fa,'to':_0x2739fa});_0xf9a99['authors']=[],_0xf9a99['authorsIds']=[],_0xf9a99['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf9a99,!0x0),delete _0xf9a99['authors'],_0x1edd8b['push'](_0xf9a99);}_0x691d36['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x691d36['name']=_0x691d36['name']||null,_0x691d36['id']=_0x691d36['id']||_0x49b2b2(),_0x691d36={..._0x691d36,..._0xd8afa7};const _0x33f230=this['addRevisionData'](_0x691d36);_0x1edd8b['push'](_0x691d36);const _0x34300b=this['repository']['getIndex'](_0x33f230);if(0x0!==_0x34300b){const _0x333087=this['repository']['getRevision'](_0x34300b-0x1);if(_0x333087['fromVersion']!==_0x2739fa){const _0x31eed3=this['_revisionDataBuilder']['getData'](_0x2739fa,_0x333087['toVersion']),_0x2d7207={'id':_0x333087['id'],'diffData':_0x31eed3['diffData'],'authorsIds':_0x31eed3['authorsIds'],'authors':_0x31eed3['authorsIds']['map'](_0x90f6c3=>this['editor']['plugins']['get']('Users')['getUser'](_0x90f6c3)),'fromVersion':_0x2739fa};_0x333087===this['currentRevision']&&(_0x2d7207['createdAt']=new Date(_0x691d36['createdAt']['getTime']()+0xa)),_0x333087['_update'](_0x2d7207,!0x0),delete _0x2d7207['authors'],_0x1edd8b['push'](_0x2d7207);}}if(this['adapter']){for(const _0x813e7 of _0x1edd8b)this['_bufferUpdate'](_0x813e7['id'],_0x813e7,!0x0);this['sendBufferedUpdates']();}return _0x33f230;}['addRevisionData'](_0x5dc0e6){const _0x59a0ac=this['repository']['createRevision'](_0x5dc0e6);return this['adapter']&&_0x59a0ac['on']('_update',(_0x1c9927,_0x5d18ff,_0x5ea2ca)=>{_0x5ea2ca||(this['_bufferUpdate'](_0x5d18ff['id'],_0x5d18ff,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59a0ac,this['_findInsertionIndex'](_0x59a0ac)),_0x59a0ac;}async['getRevisionDocumentData'](_0x3fd0d5){await this['_loadRevisionData'](_0x3fd0d5);const _0x525de9={};for(const _0x52fc58 in _0x3fd0d5['diffData']){if(_0x3fd0d5['diffData'][_0x52fc58]['attachChange']&&!_0x3fd0d5['diffData'][_0x52fc58]['attachChange']['isAttached'])continue;const _0x238b58=this['_removeRevisionMarkers'](JSON['parse'](_0x3fd0d5['diffData'][_0x52fc58]['insertions'])),_0x4197a2=this['editor']['editing']['view']['document'],_0x481c97=new _0x2d7291(_0x4197a2,_0x238b58['map'](_0x454dc7=>V(_0x454dc7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x525de9[_0x52fc58]=this['editor']['data']['processor']['toData'](_0x481c97),this['editor']['data']['processor']['useFillerType']('default');}return _0x525de9;}async['getRevisionRootsAttributes'](_0x34d89e){await this['_loadRevisionData'](_0x34d89e);const _0x3ce859={};for(const _0xae3eb7 in _0x34d89e['diffData'])_0x34d89e['diffData'][_0xae3eb7]['attachChange']&&!_0x34d89e['diffData'][_0xae3eb7]['attachChange']['isAttached']||(_0x3ce859[_0xae3eb7]=_0x34d89e['diffData'][_0xae3eb7]['attributesAfter']||{});return _0x3ce859;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x21c2ba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b420e=0x0;_0x1b420e<_0x21c2ba['length'];_0x1b420e++){const _0x1d3e1e=_0x21c2ba[_0x1b420e];let _0x3a742f=!0x1;for(const _0x7a59b2 of Object['keys'](_0x1d3e1e))void 0x0===_0x1d3e1e[_0x7a59b2]?delete _0x1d3e1e[_0x7a59b2]:'id'!==_0x7a59b2&&(_0x3a742f=!0x0);_0x3a742f||(_0x21c2ba[_0x1b420e]=null);}if(_0x21c2ba=_0x21c2ba['filter'](_0x2de3c5=>null!==_0x2de3c5),!_0x21c2ba['length'])return;for(let _0x320f87=0x0;_0x320f87<_0x21c2ba['length'];_0x320f87++){const _0x482b5b=_0x21c2ba[_0x320f87];void 0x0!==_0x482b5b['fromVersion']&&void 0x0===_0x482b5b['toVersion']&&(_0x482b5b['toVersion']=this['repository']['getRevision'](_0x482b5b['id'])['toVersion']),void 0x0!==_0x482b5b['toVersion']&&void 0x0===_0x482b5b['fromVersion']&&(_0x482b5b['fromVersion']=this['repository']['getRevision'](_0x482b5b['id'])['fromVersion']);}const _0x25c7ee=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x21c2ba,_0x25c7ee)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x294161=>{if(_0x294161){for(const _0x5c7082 of _0x294161)this['setRevisionData']({'id':_0x5c7082['id'],'createdAt':_0x5c7082['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2e0073,_0x460ebc){let _0x23d465=this['editor']['config']['get']('initialData'),_0xff5a23=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x23d465){_0x23d465={};for(const _0x17b390 of this['editor']['model']['document']['getRootNames']())_0x23d465[_0x17b390]='';}if('string'==typeof _0x23d465&&(_0x23d465={'main':_0x23d465}),void 0x0===_0xff5a23){_0xff5a23={};for(const _0x330c84 of this['editor']['model']['document']['getRootNames']())_0xff5a23[_0x330c84]={};}let _0x47995a=!0x1;const _0x2c7baa=Object['keys'](_0x23d465),_0x5d9994=Object['keys'](_0x2e0073);for(const _0x4364c6 of _0x2c7baa){if(_0x23d465[_0x4364c6]!==_0x2e0073[_0x4364c6]&&''!==_0x23d465[_0x4364c6]['trim']()){_0x47995a=!0x0;break;}if(!_0x23f9d9(_0xff5a23[_0x4364c6],_0x460ebc[_0x4364c6])&&Object['keys'](_0xff5a23[_0x4364c6])['length']>0x0){_0x47995a=!0x0;break;}}_0x47995a||(_0x47995a=_0x5d9994['some'](_0x303e84=>!this['editor']['model']['document']['getRoot'](_0x303e84))),_0x47995a&&_0x263ef1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x23d465,'editorRootsAttributes':_0xff5a23,'revisionData':_0x2e0073,'revisionRootsAttributes':_0x460ebc}),this['editor']['config']['set']('initialData',_0x2e0073),this['editor']['config']['set']('rootsAttributes',_0x460ebc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51131d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51131d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36a908){const _0x71f104=this['repository']['getRevisions']();_0x71f104['reverse']();let _0x209974=0x0;for(;_0x209974<_0x71f104['length'];){const _0xe12989=_0x71f104[_0x209974];if(_0xe12989===this['currentRevision']){_0x209974++;continue;}if(_0xe12989['id']===this['_initialRevisionId'])break;const _0x7bd985=_0x36a908['toVersion']-_0xe12989['toVersion']||_0x36a908['fromVersion']-_0xe12989['fromVersion'];if(_0x7bd985>0x0)break;if(_0x7bd985<0x0)_0x209974++;else{if(!_0x36a908['creator']&&_0xe12989['creator'])break;if(_0xe12989['creator']||!_0x36a908['creator']){if(_0x36a908['createdAt']>_0xe12989['createdAt'])break;_0x209974++;}else _0x209974++;}}return _0x209974;}['setRevisionData'](_0xf1b75e){const _0x323f0d=this['repository']['getRevision'](_0xf1b75e['id']);if(_0xf1b75e['createdAt']&&(_0xf1b75e['createdAt']=new Date(_0xf1b75e['createdAt'])),_0xf1b75e['authorsIds']){const _0x1a03dd=this['editor']['plugins']['get']('Users');_0xf1b75e['authors']=_0xf1b75e['authorsIds']['map'](_0x3114d1=>_0x1a03dd['getUser'](_0x3114d1));}_0x323f0d['_update'](_0xf1b75e,!0x0);}['buildRevisionData']({revision:_0x2ecbd9=null,from:_0x5bfb8a=null,to:_0x1f3c24=null}){_0x5bfb8a=null!==_0x5bfb8a?_0x5bfb8a:_0x2ecbd9['fromVersion'],_0x1f3c24=null!==_0x1f3c24?_0x1f3c24:_0x2ecbd9['toVersion'];const _0x570540=this['_revisionDataBuilder']['getData'](_0x5bfb8a,_0x1f3c24),_0x31b111={'diffData':_0x570540['diffData'],'authorsIds':_0x570540['authorsIds'],'fromVersion':_0x5bfb8a,'toVersion':_0x1f3c24};if(!_0x2ecbd9||_0x1f3c24!==_0x2ecbd9['toVersion']){const _0x50f178=_0x1f3c24-0x1,_0x5abb5e=this['_source']['history']['getOperation'](_0x50f178);_0x31b111['createdAt']=_0x5abb5e&&_0x5abb5e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5bfb8a===this['_loadedStateData']['fromVersion']){for(const _0x271cbe of this['_loadedStateData']['authors'])_0x31b111['authorsIds']['includes'](_0x271cbe['id'])||_0x31b111['authorsIds']['push'](_0x271cbe['id']);}return _0x31b111;}['_loadRevisionData'](_0x3a5d15){if(!_0x3a5d15||_0x3a5d15['diffData'])return Promise['resolve']();{const _0x9e6ca2=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9e6ca2,'revisionId':_0x3a5d15['id']})['then'](_0x5cd110=>{_0x3a5d15['diffData']=_0x5cd110['diffData'];});}}['_bufferUpdate'](_0x3e9428,_0x66c2d7,_0x587e80){if(this['_bufferedUpdates']['has'](_0x3e9428)){const _0x397e3a=this['_bufferedUpdates']['get'](_0x3e9428);_0x66c2d7=_0x587e80?{..._0x397e3a,..._0x66c2d7}:{..._0x66c2d7,..._0x397e3a};}this['_bufferedUpdates']['set'](_0x3e9428,_0x66c2d7);}['_getFromVersion'](_0x3c5764){const _0x1d6110=this['repository']['getRevisions']();_0x1d6110['reverse'](),_0x1d6110['shift']();const _0x2f8445=_0x1d6110['find'](_0x260caa=>_0x260caa['toVersion']<=_0x3c5764)['toVersion'];return _0x2f8445<this['_startingVersion']?this['_startingVersion']:_0x2f8445;}['_createInitialRevision'](_0x1a2214){const _0x30d697=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x30d697)this['_initialRevisionId']=_0x30d697['id'];else{const _0x4d6ec0=!this['editor']['model']['document']['roots']['find'](_0x340772=>this['editor']['model']['hasContent'](_0x340772)),_0x2e6ec6=this['editor']['plugins']['get']('Users')['me']['id'],_0x4492f2=R(this['editor']['locale'],_0x4d6ec0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1a2214,'to':_0x1a2214,'id':this['_initialRevisionId'],'name':_0x4492f2,'creatorId':_0x2e6ec6});}}['_createCurrentRevision'](_0x46dabb){const _0x51a536=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x51a536),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x46dabb,'to':_0x46dabb,'id':_0x51a536,'name':'','creatorId':null}));}['_makeRevision']({name:_0x13f1ab,from:_0xaa543,to:_0x36235f,creatorId:_0xc2544f,id:_0x271a79}){const _0x576711=this['buildRevisionData']({'from':_0xaa543,'to':_0x36235f});_0x576711['name']=_0x13f1ab,_0x576711['creatorId']=_0xc2544f,_0x576711['id']=_0x271a79;const _0x234858=this['addRevisionData'](_0x576711);return this['adapter']&&this['_bufferUpdate'](_0x576711['id'],_0x576711,!0x0),_0x234858;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x25b89a){return(_0x25b89a=_0x25b89a['filter'](_0x5d1293=>!_0x5d1293['name']||'revision-start'!==_0x5d1293['name']&&'revision-end'!==_0x5d1293['name']))['forEach'](_0x358e5d=>{'string'!=typeof _0x358e5d&&(_0x358e5d['children']=this['_removeRevisionMarkers'](_0x358e5d['children']),_0x358e5d['attributes']=_0x358e5d['attributes']['filter'](_0x574c6f=>!_0x574c6f[0x0]['startsWith']('data-revision-')));}),_0x25b89a;}}function V(_0x61d035,_0x225d6e){const _0xeafad0=_0x225d6e['editing']['view']['document'];if('string'==typeof _0x61d035)return new _0x309635(_0xeafad0,_0x61d035);{const _0x3c70c5=_0x61d035['children']['map'](_0x125185=>V(_0x125185,_0x225d6e));return new(C[_0x61d035['type']]||_0x3489bf)(_0xeafad0,_0x61d035['name'],_0x61d035['attributes'],_0x3c70c5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1e3f73){this['editor']=_0x1e3f73,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'](_0x94e661){this['source']=_0x94e661;const _0x52b037=new Map(),_0x2851a0=new Map(),_0x7ed1=this['editor']['model']['document']['roots']['map'](_0x48e510=>_0x48e510['rootName']);for(const _0xa130ed of _0x7ed1){const _0x6f57ce=this['editor']['model']['document']['getRoot'](_0xa130ed),_0x52dbb8=F(_0x6f57ce);_0x52b037['set'](_0xa130ed,_0x52dbb8),_0x2851a0['set'](_0xa130ed,Object['fromEntries'](_0x6f57ce['getAttributes']()));}const _0x238299=Array['from'](this['editor']['model']['markers'])['map'](_0x51a495=>[_0x51a495['name'],_0x51a495['getRange']()]),_0x281844=this['source']['version'];this['_saveMetaData'](_0x281844,_0x52b037,_0x238299,_0x2851a0),this['_startingRevisionId']=this['_revisionId'];const _0x971ba5=new Map(),_0x45da51=new Map();for(const _0x103711 of _0x7ed1){const _0x2741c3=B(_0x103711);_0x971ba5['set'](_0x103711,_0x2741c3),_0x45da51['set'](_0x103711,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x971ba5,[],_0x45da51);}['getData'](_0x1a36c8,_0x53730a){if(this['_lastFrom']===_0x1a36c8&&this['_lastTo']<=_0x53730a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x53730a,!0x0);else{if(!this['_savedMetaData']['has'](_0x1a36c8)){const _0x5e5144=this['_getPreviousFrom'](_0x1a36c8);this['_calculateMetaData'](_0x5e5144,_0x1a36c8,!0x1);}this['_calculateMetaData'](_0x1a36c8,_0x53730a,!0x0);}return this['_lastFrom']=_0x1a36c8,this['_lastTo']=_0x53730a,this['_getState']();}['loadState'](_0xbe564b){this['_reset'](),this['_lastFrom']=_0xbe564b['fromVersion'],this['_lastTo']=_0xbe564b['toVersion'];for(const _0x248318 in _0xbe564b['diffData']){const _0x26e798=_0xbe564b['diffData'][_0x248318]['attachChange'],_0x46c922=_0x2b9a95(_0xbe564b['diffData'][_0x248318]['attributesBefore'])||{},_0x412fe3=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x248318]['deletions']);_0x412fe3['rootName']=_0x248318,_0x412fe3['_isAttached']=!_0x26e798||!_0x26e798['isAttached'],_0x412fe3['isAttached']=()=>_0x412fe3['_isAttached'],this['_baseRoots']['set'](_0x248318,_0x412fe3),this['_baseRootsAttributes']['set'](_0x248318,_0x46c922),_0x26e798&&this['_touchedRoots']['set'](_0x248318,_0x26e798);const _0x48e7a9=this['_makeIdsRoot'](_0x412fe3);this['_baseIdsRoots']['set'](_0x248318,_0x48e7a9);for(const [_0x84e5cf,_0x43648b]of _0x412fe3['markers']){if(!_0x84e5cf['startsWith']('revision:'))continue;const _0x48b185=_0x84e5cf['split'](':')[0x2];for(const _0x43d1bf of _0x43648b['getWalker']({'singleCharacters':!0x0})){const _0x5c6539=this['_getVidAttributeName'](_0x43d1bf),_0x3e557a='elementEnd'==_0x43d1bf['type']?_0x43d1bf['previousPosition']['path']['slice'](0x0,-0x1):_0x43d1bf['previousPosition']['path'],_0x25c67a=_0x48e7a9['getNodeByPath'](_0x3e557a)['getAttribute'](_0x5c6539);this['_touched']['set'](_0x25c67a,{'userId':_0x48b185});}}}this['_startingRevisionId']=this['_revisionId'];const _0x103241=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x582916=>!this['_touched']['has'](_0x582916));let _0x5bfa3e=0x0;const _0x3108fc=new Map();for(const _0x44f0d9 in _0xbe564b['diffData']){const _0x31fa80=_0xbe564b['diffData'][_0x44f0d9]['attachChange'],_0x290f1f=_0x2b9a95(_0xbe564b['diffData'][_0x44f0d9]['attributesAfter'])||{},_0x502f63=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x44f0d9]['insertions']);_0x502f63['rootName']=_0x44f0d9,_0x502f63['_isAttached']=!_0x31fa80||_0x31fa80['isAttached'],_0x502f63['isAttached']=()=>_0x502f63['_isAttached'],this['_diffRoots']['set'](_0x44f0d9,_0x502f63),this['_diffRootsAttributes']['set'](_0x44f0d9,_0x290f1f);const _0x15e4da=this['_makeIdsRoot'](_0x502f63,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44f0d9,_0x15e4da),_0x3108fc['set'](_0x44f0d9,_0x502f63['isAttached']()?_0x290f1f:{});for(const [_0x53074a,_0x158562]of _0x502f63['markers']){if(!_0x53074a['startsWith']('revision:'))continue;const _0x23c898=_0x53074a['split'](':')[0x2];for(const _0x125ecd of _0x158562['getWalker']({'singleCharacters':!0x0})){const _0x14b5c9=this['_getVidAttributeName'](_0x125ecd),_0x477d4b=this['_revisionId']++,_0xe704d='elementEnd'==_0x125ecd['type']?_0x125ecd['previousPosition']['path']['slice'](0x0,-0x1):_0x125ecd['previousPosition']['path'];_0x15e4da['getNodeByPath'](_0xe704d)['_setAttribute'](_0x14b5c9,_0x477d4b),this['_touched']['set'](_0x477d4b,{'userId':_0x23c898});}}for(const _0x525d13 of this['editor']['model']['createRangeIn'](_0x502f63)['getWalker']({'singleCharacters':!0x0})){const _0x41220e=this['_getVidAttributeName'](_0x525d13),_0x20b11a='elementEnd'==_0x525d13['type']?_0x525d13['previousPosition']['path']['slice'](0x0,-0x1):_0x525d13['previousPosition']['path'],_0x5353f4=_0x15e4da['getNodeByPath'](_0x20b11a);_0x5353f4['getAttribute'](_0x41220e)>0x0||_0x5353f4['_setAttribute'](_0x41220e,_0x103241[_0x5bfa3e++]);}for(const [_0x63bc3d,_0x143997]of _0x502f63['markers'])_0x63bc3d['startsWith']('revision:')||this['_markers']['set'](_0x63bc3d,_0x143997);}const _0x15ccfc=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x15ccfc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x15ccfc,0x1));const _0xf28af2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf28af2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf28af2,0x1));const _0x35fee5=Array['from'](this['_diffRoots'])['map'](([_0x46804b,_0xbaef83])=>[_0x46804b,F(_0xbaef83)]);this['_saveMetaData'](this['_lastTo'],_0x35fee5,this['_markers'],_0x3108fc);}['_makeModelFromViewString'](_0x4b98db){const _0x12a2ae=JSON['parse'](_0x4b98db),_0x5d84ff=this['editor']['editing']['view']['document'],_0x3eb596=new _0x2d7291(_0x5d84ff,_0x12a2ae['map'](_0x49e413=>V(_0x49e413,this['editor'])));return this['editor']['data']['toModel'](_0x3eb596);}['_saveMetaData'](_0x102d9a,_0x3bd018,_0x340b2b,_0x90fd01){const _0x338d7d=new Map(_0x3bd018),_0x3b17cc=new Map(_0x2b9a95(_0x90fd01)),_0x178169=new Map();for(const [_0x39f1f9,_0x32c01e]of _0x340b2b)_0x178169['set'](_0x39f1f9,{'start':_0x32c01e['start']['clone'](),'end':_0x32c01e['end']['clone'](),'rootName':_0x32c01e['root']['rootName']});this['_savedMetaData']['set'](_0x102d9a,{'roots':_0x338d7d,'markers':_0x178169,'rootsAttributes':_0x3b17cc});}['_removeMetaData'](_0x27a7c7){this['_savedMetaData']['delete'](_0x27a7c7);}['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'](_0x1be006,_0x3bfdbd=null){let _0x589904=null;_0x1be006['is']('documentFragment')||(_0x589904=new ft(_0x1be006['name'],{'vid_start':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));const _0x534edd=[];for(const _0x1ea679 of _0x1be006['getChildren']())if(_0x1ea679['is']('element')){_0x534edd['push'](this['_makeIdsRoot'](_0x1ea679,_0x3bfdbd));const _0x35761d=_0x534edd[_0x534edd['length']-0x1];null!==_0x3bfdbd&&(_0x3bfdbd=_0x35761d['is']('element','$text')?_0x35761d['getAttribute']('vid')+0x1:_0x35761d['getAttribute']('vid_end')+0x1);}else{for(let _0xb86fab=0x0;_0xb86fab<_0x1ea679['offsetSize'];_0xb86fab++)_0x534edd['push'](new ft('$text',{'vid':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));}if(_0x1be006['is']('documentFragment')){const _0x446e9e=B(_0x1be006['rootName']);return _0x446e9e['_insertChild'](0x0,_0x534edd),_0x446e9e;}return _0x589904['_setAttribute']('vid_end',null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++),_0x589904['_insertChild'](0x0,_0x534edd),_0x589904;}['_calculateMetaData'](_0x2ecc7a,_0x3538ef,_0x3887dd){this['_reset']();const {roots:_0x3effe5,markers:_0x136d40,rootsAttributes:_0xef34f9}=this['_savedMetaData']['get'](_0x2ecc7a);this['_baseRoots']=new Map(_0x3effe5),this['_baseRootsAttributes']=new Map(_0x2b9a95(_0xef34f9));for(const [_0x4372ca,_0x5c1e75]of this['_baseRoots'])if('$graveyard'!==_0x4372ca&&(this['_diffRoots']['set'](_0x4372ca,F(_0x5c1e75)),this['_diffRootsAttributes']=new Map(_0x2b9a95(_0xef34f9)),_0x3887dd)){const _0x38bb64=this['_revisionId'];this['_idsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75)),this['_baseIdsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75,_0x38bb64));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3887dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x358a8e,_0x2b4922]of _0x136d40){const _0x1443ac=this['_baseRoots']['get'](_0x2b4922['rootName']),_0xded7f0=this['_diffRoots']['get'](_0x2b4922['rootName']),_0x5bded7=new vt(this['_fixPosition'](_0x2b4922['start'],_0x1443ac),this['_fixPosition'](_0x2b4922['end'],_0x1443ac)),_0x56b804=this['_fixRange'](_0x5bded7,_0xded7f0);_0x1443ac['markers']['set'](_0x358a8e,_0x5bded7),this['_markers']['set'](_0x358a8e,_0x56b804);}this['_applyOperations'](_0x2ecc7a,_0x3538ef,_0x3887dd);}['_applyOperations'](_0xbb97cf,_0x2e0713,_0x54692e){for(const _0x407f95 of this['source']['getOperations'](_0xbb97cf,_0x2e0713))this['_handleOperation'](_0x407f95,_0x54692e);for(const _0x43d9d0 of this['_diffRoots']['values']())_0x43d9d0['markers']['clear']();for(const [_0x9367ec,_0x3fca48]of this['_markers']){this['_diffRoots']['get'](_0x3fca48['root']['rootName'])['markers']['set'](_0x9367ec,_0x3fca48['clone']());}const _0x4d6480=new Map(),_0x5877fc=new Map();for(const [_0x24b433,_0x404980]of this['_diffRoots'])_0x4d6480['set'](_0x24b433,F(_0x404980)),_0x5877fc['set'](_0x24b433,this['_diffRootsAttributes']['get'](_0x24b433));this['_saveMetaData'](_0x2e0713,_0x4d6480,this['_markers'],_0x5877fc);}['_getPreviousFrom'](_0x51b33c){const _0x36e8ad=Array['from'](this['_savedMetaData']['keys']());_0x36e8ad['sort']((_0x442ca5,_0x27defe)=>_0x442ca5-_0x27defe),_0x36e8ad['reverse']();for(const _0xaaa098 of _0x36e8ad)if(_0xaaa098<_0x51b33c)return _0xaaa098;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2bfcb8,_0x3c6814){const _0x467dcd=Array['from'](_0x3c6814['markers'])['map'](([_0x5c916a,_0x37fdee])=>[_0x5c916a,this['_fixRange'](_0x37fdee,_0x2bfcb8)]);_0x2bfcb8['markers']=new Map(_0x467dcd);}['_transformMarkers'](_0x1ad72d){for(const _0x33ab81 of this['_markers']['values']()){const _0x22c0bc=_0x33ab81['getTransformedByOperation'](_0x1ad72d),_0x196797=vt['_createFromRanges'](_0x22c0bc);_0x33ab81['start']=_0x196797['start'],_0x33ab81['end']=_0x196797['end'];}}['_handleOperation'](_0x230a2d,_0x5f1d59){if('addRoot'!=_0x230a2d['type']&&'detachRoot'!=_0x230a2d['type']){if('insert'==_0x230a2d['type']){const _0x21ed36=_0x230a2d['position']['root']['rootName'];this['_diffRoots']['has'](_0x21ed36)||(this['_diffRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)),this['_diffRootsAttributes']['set'](_0x21ed36,{}),_0x5f1d59&&this['_idsRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)));}else{if('addRootAttribute'==_0x230a2d['type']||'removeRootAttribute'==_0x230a2d['type']||'changeRootAttribute'==_0x230a2d['type'])return void this['_handleRootAttributeOperation'](_0x230a2d);'marker'==_0x230a2d['type']&&this['_handleMarkerOperation'](_0x230a2d);}if('marker'!==_0x230a2d['type']){const _0x248cda=this['_cloneOperation'](_0x230a2d,this['_diffRoots']);_0x248cda['_execute'](),this['_transformMarkers'](_0x248cda);}if(_0x5f1d59)switch(_0x230a2d['type']){case'insert':this['_handleInsertOperation'](_0x230a2d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x230a2d);break;case'merge':this['_handleMergeOperation'](_0x230a2d);break;case'split':this['_handleSplitOperation'](_0x230a2d);}}else this['_handleRootOperation'](_0x230a2d,_0x5f1d59);}['_cloneOperation'](_0x288e30,_0x7bef1d){const _0x513f6c=_0x288e30['clone']();return _0x513f6c['_authorId']=_0x288e30['_authorId'],this['_fixOperation'](_0x513f6c,_0x7bef1d),_0x513f6c;}['_getBaseVids'](_0x591058){return _0x591058['map'](_0x5502c0=>{const _0x5678bc=this['_getVidAttributeName'](_0x5502c0);return Number(_0x5502c0['item']['getAttribute'](_0x5678bc));});}['_generateTape'](_0x1a96ba,_0x7c5654){if(_0x1a96ba['is']('element','$text'))_0x7c5654['push']({'item':_0x1a96ba,'type':'text'});else{_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementStart'});for(const _0x2a8d57 of _0x1a96ba['getChildren']())this['_generateTape'](_0x2a8d57,_0x7c5654);_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementEnd'});}return _0x7c5654;}['_getState'](){const _0x1c5010=new Map(this['_touched']),_0x173263=new Map(_0x1c5010),_0x338dbc=new Map(),_0x3924b1={'insertions':{},'deletions':{}},_0x50a4c8={'insertions':{},'deletions':{}},_0x5436ff=new Map(),_0x2af4ce=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2af4ce['delete']('$graveyard');for(const _0x2df96f of _0x2af4ce){const _0x2864cc=this['_diffRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),_0x2252e4=this['_baseRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1);_0x2864cc['isAttached']()||_0x2252e4['isAttached']()?(_0x3924b1['insertions'][_0x2df96f]=F(_0x2864cc),_0x3924b1['deletions'][_0x2df96f]=F(_0x2252e4),this['_copyMarkers'](_0x3924b1['deletions'][_0x2df96f],_0x2252e4),this['_copyMarkers'](_0x3924b1['insertions'][_0x2df96f],_0x2864cc),_0x50a4c8['insertions'][_0x2df96f]=this['_generateTape'](this['_idsRoots']['get'](_0x2df96f),[]),_0x50a4c8['deletions'][_0x2df96f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),[])):_0x2af4ce['delete'](_0x2df96f);}for(const _0x9c8f71 of _0x2af4ce){const _0x13f96e=_0x50a4c8['insertions'][_0x9c8f71];for(const _0x2cd4fa of _0x13f96e){const _0x3de769=this['_getVidAttributeName'](_0x2cd4fa),_0x291cac=_0x2cd4fa['item']['getAttribute'](_0x3de769);_0x173263['delete'](_0x291cac),_0x291cac>=this['_startingRevisionId']&&_0x338dbc['set'](_0x291cac,_0x1c5010['get'](_0x291cac));}}for(const _0x2a8dd9 of _0x2af4ce){const _0x6f7ea9=_0x50a4c8['insertions'][_0x2a8dd9],_0x13b6ca=this['_getBaseVids'](_0x50a4c8['deletions'][_0x2a8dd9]);let _0x9b5023=0x0;for(const _0x30ddb3 of _0x6f7ea9){const _0x3a0c32=this['_getVidAttributeName'](_0x30ddb3),_0x17f767=_0x30ddb3['item']['getAttribute'](_0x3a0c32);if(!_0x338dbc['has'](_0x17f767)&&!_0x5436ff['has'](_0x17f767)){if(_0x173263['has'](_0x17f767))_0x9b5023++;else{if(_0x17f767!=_0x13b6ca[_0x9b5023]){const _0x1f2159=_0x1c5010['get'](_0x17f767)||_0x1c5010['get'](_0x13b6ca[_0x9b5023]);for(;_0x17f767!=_0x13b6ca[_0x9b5023];)_0x173263['has'](_0x13b6ca[_0x9b5023])||(_0x5436ff['set'](_0x13b6ca[_0x9b5023],_0x1f2159),_0x1c5010['set'](_0x13b6ca[_0x9b5023],_0x1f2159)),_0x9b5023++;}_0x9b5023++;}}}}for(const _0x5e8f78 of _0x2af4ce){const _0x10a7aa=_0x50a4c8['insertions'][_0x5e8f78];for(const _0x2ebdcc of _0x10a7aa){const _0x2669cb=this['_getVidAttributeName'](_0x2ebdcc),_0x1a7279=_0x2ebdcc['item']['getAttribute'](_0x2669cb);if(_0x5436ff['has'](_0x1a7279)){const _0xfabe47=_0x5436ff['get'](_0x1a7279);_0x173263['has'](_0x1a7279)||_0x173263['set'](_0x1a7279,{..._0xfabe47}),_0x338dbc['set'](_0x1a7279,{..._0xfabe47});}}}for(const _0x411a43 of _0x173263['keys']())_0x411a43>=this['_startingRevisionId']&&_0x173263['delete'](_0x411a43);const _0x353db0=new Map();for(const _0x47ae07 of _0x2af4ce){let _0x47dc77=_0x50a4c8['insertions'][_0x47ae07];for(const _0xf5b244 of _0x47dc77)if(_0xf5b244['item']['is']('element','tableCell')){const _0x356386=this['_getVidAttributeName'](_0xf5b244),_0xe5e052=_0xf5b244['item']['getAttribute'](_0x356386);if(_0x338dbc['has'](_0xe5e052)){const _0x2e3407=_0xf5b244['item']['parent']['parent']['getAttribute']('vid_start'),_0x348739=_0x353db0['get'](_0x2e3407)||new Set();_0x348739['add'](_0x338dbc['get'](_0xe5e052)['userId']),_0x353db0['set'](_0x2e3407,_0x348739);}}_0x47dc77=_0x50a4c8['deletions'][_0x47ae07];for(const _0x296156 of _0x47dc77)if(_0x296156['item']['is']('element','tableCell')){const _0x3ea9b9=this['_getVidAttributeName'](_0x296156),_0x1d2b73=_0x296156['item']['getAttribute'](_0x3ea9b9);if(_0x173263['has'](_0x1d2b73)){const _0x34b4b5=_0x296156['item']['parent']['parent']['getAttribute']('vid_start'),_0x80224=_0x353db0['get'](_0x34b4b5)||new Set();_0x80224['add'](_0x173263['get'](_0x1d2b73)['userId']),_0x353db0['set'](_0x34b4b5,_0x80224);}}for(const _0x138ce5 of _0x353db0['keys']())(_0x338dbc['has'](_0x138ce5)||_0x173263['has'](_0x138ce5))&&_0x353db0['delete'](_0x138ce5);}for(const _0x33630d of _0x2af4ce){const _0xa35c46=_0x50a4c8['insertions'][_0x33630d];let _0x3499ce=null,_0x2693e7=null;for(const _0x373a17 of _0xa35c46){const _0xe7e3e5=this['_getVidAttributeName'](_0x373a17),_0x5275d6=_0x373a17['item']['getAttribute'](_0xe7e3e5),_0x29e477=_0x353db0['get'](_0x5275d6);_0x29e477&&'elementStart'==_0x373a17['type']&&(_0x3499ce=Array['from'](_0x29e477)[0x0],_0x2693e7=_0x373a17['item']['getAttribute']('vid_end')),_0x3499ce&&(_0x173263['set'](_0x5275d6,{'userId':_0x3499ce}),_0x338dbc['set'](_0x5275d6,{'userId':_0x3499ce})),_0x5275d6==_0x2693e7&&(_0x3499ce=null,_0x2693e7=null);}}const _0x467ce2={},_0xef4baa=new Set();for(const _0x481ef3 of _0x2af4ce){const _0x4ac529=_0x3924b1['deletions'][_0x481ef3],_0x2bfdd9=_0x3924b1['insertions'][_0x481ef3];for(const {userId:_0x1a92b8}of this['_touchedMarkers']['values']())null!==_0x1a92b8&&_0xef4baa['add'](_0x1a92b8);for(const {userId:_0x47bf54}of this['_touchedRoots']['values']())null!==_0x47bf54&&_0xef4baa['add'](_0x47bf54);this['_markChanges'](_0x2bfdd9,_0x50a4c8['insertions'][_0x481ef3],_0x338dbc,'insertion',_0xef4baa),this['_markChanges'](_0x4ac529,_0x50a4c8['deletions'][_0x481ef3],_0x173263,'deletion',_0xef4baa),_0x467ce2[_0x481ef3]={'insertions':this['_prepareViewToSave'](_0x2bfdd9),'deletions':this['_prepareViewToSave'](_0x4ac529),'attachChange':this['_touchedRoots']['get'](_0x481ef3)||null,'attributesBefore':_0x2b9a95(this['_baseRootsAttributes']['get'](_0x481ef3))||{},'attributesAfter':_0x2b9a95(this['_diffRootsAttributes']['get'](_0x481ef3))};}return{'diffData':_0x467ce2,'authorsIds':Array['from'](_0xef4baa)};}['_processRootBeforeSave'](_0x225b88){for(const [,_0x3a769c]of _0x225b88['markers']){const _0x28b003=_0x3a769c['start']['getAncestors']()['filter'](_0x43cc78=>'tableCell'==_0x43cc78['name']);for(const _0x2f14bd of _0x28b003)0x1==_0x2f14bd['childCount']&&_0x2f14bd['getChild'](0x0)['is']('element','paragraph')&&_0x2f14bd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x363627){this['_processRootBeforeSave'](_0x363627);const _0x4d3e92=this['editor']['data']['toView'](_0x363627,{}),_0x5bb39b=Array['from'](_0x4d3e92['getChildren']())['map'](_0x5702d4=>this['_getViewJson'](_0x5702d4));return JSON['stringify'](_0x5bb39b);}['_getViewJson'](_0x25d110){if(_0x25d110['is']('$text'))return _0x25d110['data'];{const _0x3f08b5=_0x25d110;return{'type':Object['keys'](C)['find'](_0x218a88=>_0x25d110 instanceof C[_0x218a88]),'name':_0x3f08b5['name'],'attributes':Array['from'](_0x3f08b5['getAttributes']()),'children':Array['from'](_0x3f08b5['getChildren']())['map'](_0x5f4a2e=>this['_getViewJson'](_0x5f4a2e))};}}['_markChanges'](_0x2e4317,_0x34fa2f,_0x12f413,_0x34b45b,_0x4cbeca){let _0x44ace3=null,_0xc78b2d=null,_0x4812e6=0x0;const _0x345e92=this['editor']['model'];for(let _0x125b44=0x0;_0x125b44<_0x34fa2f['length'];_0x125b44++){const _0x27bb48=this['_getVidAttributeName'](_0x34fa2f[_0x125b44]),_0x36aa27=_0x34fa2f[_0x125b44]['item']['getAttribute'](_0x27bb48),_0x436005=_0x12f413['get'](_0x36aa27),_0x453be8=_0x125b44==_0x34fa2f['length']-0x1;(!_0x44ace3&&_0x436005&&(_0x44ace3=_0x436005,_0xc78b2d=_0x34fa2f[_0x125b44]),_0x44ace3&&(!_0x436005||_0x436005['userId']!=_0x44ace3['userId']))&&(_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),J(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92)),_0x44ace3=_0x436005||null,_0xc78b2d=_0x436005?_0x34fa2f[_0x125b44]:null),_0x44ace3&&_0x453be8&&_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),q(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92));}function _0x50737f(_0x3501cb,_0x169967,_0x54a080){const _0x1062b8=_0x44ace3['userId'],_0x166977='revision:'+_0x34b45b+':'+_0x1062b8+':'+_0x4812e6++,_0x1aa20c=_0x345e92['createRange'](_0x169967,_0x54a080);_0x2e4317['markers']['set'](_0x166977,_0x1aa20c),null!==_0x1062b8&&_0x4cbeca['add'](_0x1062b8);}}['_getVidAttributeName'](_0x28fb7e){switch(_0x28fb7e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x50b154,_0x494f68){_0x50b154['baseVersion']=null;for(const _0x2a2138 in _0x50b154){const _0x353f71=_0x50b154[_0x2a2138];if(_0x353f71 instanceof gt){const _0x321c5c=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixPosition'](_0x353f71,_0x321c5c);}if(_0x353f71 instanceof vt){const _0x457490=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixRange'](_0x353f71,_0x457490);}'root'===_0x2a2138&&(_0x50b154['root']=_0x494f68['get'](_0x50b154['root']['rootName']));}}['_fixRange'](_0x58a225,_0x4c366b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58a225['start'],_0x4c366b),this['_fixPosition'](_0x58a225['end'],_0x4c366b));}['_fixPosition'](_0x4514b1,_0x57339a){return this['editor']['model']['createPositionFromPath'](_0x57339a,_0x4514b1['path'],_0x4514b1['stickiness']);}['_handleInsertOperation'](_0x44901e){const _0x55f12e=this['_idsRoots']['get'](_0x44901e['position']['root']['rootName']),_0x4027eb=this['_fixPosition'](_0x44901e['position'],_0x55f12e),_0x3975cf=null===_0x44901e['_authorId']?null:_0x44901e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa20124=_0x4027eb['parent'],_0x1be5d9=this['_revisionId'],_0x5aeceb=[];for(const _0x3a9b6c of _0x44901e['nodes'])if(_0x3a9b6c['is']('element'))_0x5aeceb['push'](this['_makeIdsRoot'](_0x3a9b6c));else{for(let _0x5522e2=0x0;_0x5522e2<_0x3a9b6c['offsetSize'];_0x5522e2++)_0x5aeceb['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x52fa87=this['_revisionId'];for(let _0x4bbc01=_0x1be5d9;_0x4bbc01<_0x52fa87;_0x4bbc01++)this['_touched']['set'](_0x4bbc01,{'userId':_0x3975cf});_0xa20124['_insertChild'](_0x4027eb['offset'],_0x5aeceb);}['_handleMoveOperation'](_0x579b13){(_0x579b13=this['_cloneOperation'](_0x579b13,this['_idsRoots']))['_execute']();const _0x40f71d=null===_0x579b13['_authorId']?null:_0x579b13['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x143859=_0x579b13['getMovedRangeStart'](),_0x235570=_0x143859['parent'],_0x36180c=_0x143859['offset'];!function _0x4231a3(_0x27f816,_0x178271,_0x2753b3,_0x5e7dc2){for(let _0x26761b=_0x2753b3;_0x26761b<_0x5e7dc2;_0x26761b++){const _0x1272ba=_0x178271['getChild'](_0x26761b);_0x1272ba['is']('element','$text')?_0x27f816['set'](_0x1272ba['getAttribute']('vid'),{'userId':_0x40f71d}):(_0x27f816['set'](_0x1272ba['getAttribute']('vid_start'),{'userId':_0x40f71d}),_0x4231a3(_0x27f816,_0x1272ba,0x0,_0x1272ba['childCount']),_0x27f816['set'](_0x1272ba['getAttribute']('vid_end'),{'userId':_0x40f71d}));}}(this['_touched'],_0x235570,_0x36180c,_0x36180c+_0x579b13['howMany']);}['_handleMergeOperation'](_0x44f069){const _0x1ed7cd=null===(_0x44f069=this['_cloneOperation'](_0x44f069,this['_idsRoots']))['_authorId']?null:_0x44f069['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bdc5f=_0x44f069['targetPosition']['parent'],_0x32f4b0=_0x44f069['sourcePosition']['parent'],_0x4da512=_0x2bdc5f['getAttribute']('vid_end'),_0xab72b5=_0x32f4b0['getAttribute']('vid_start');_0x2bdc5f['_setAttribute']('vid_end',_0x32f4b0['getAttribute']('vid_end')),_0x32f4b0['_setAttribute']('vid_end',_0x4da512),this['_touched']['set'](_0xab72b5,{'userId':_0x1ed7cd}),this['_touched']['set'](_0x4da512,{'userId':_0x1ed7cd}),_0x44f069['_execute']();}['_handleSplitOperation'](_0x3988cf){const _0x5e4594=null===(_0x3988cf=this['_cloneOperation'](_0x3988cf,this['_idsRoots']))['_authorId']?null:_0x3988cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x920233=_0x3988cf['graveyardPosition'],_0xc5f0f3=_0x3988cf['splitPosition']['parent'];_0x3988cf['_execute']();const _0x34896c=_0xc5f0f3['getAttribute']('vid_end'),_0x39d160=_0x3988cf['insertionPosition']['nodeAfter'];if(_0x920233){const _0x214757=_0x39d160['getAttribute']('vid_end'),_0x28dcd7=_0xc5f0f3['getAttribute']('vid_end');_0xc5f0f3['_setAttribute']('vid_end',_0x214757),_0x39d160['_setAttribute']('vid_end',_0x28dcd7),this['_touched']['set'](_0xc5f0f3['getAttribute']('vid_end'),{'userId':_0x5e4594}),this['_touched']['set'](_0x39d160['getAttribute']('vid_start'),{'userId':_0x5e4594});}else{const _0x127e98=this['_revisionId']++,_0x9d10b3=this['_revisionId']++;_0xc5f0f3['_setAttribute']('vid_end',_0x127e98),_0x39d160['_setAttribute']('vid_start',_0x9d10b3),_0x39d160['_setAttribute']('vid_end',_0x34896c),this['_touched']['set'](_0x127e98,{'userId':_0x5e4594}),this['_touched']['set'](_0x9d10b3,{'userId':_0x5e4594});}}['_handleMarkerOperation'](_0x5c0105){if(!_0x5c0105['affectsData'])return;const _0x6c86d7=(_0x5c0105=this['_cloneOperation'](_0x5c0105,this['_diffRoots']))['oldRange']?_0x5c0105['oldRange']['root']:null,_0x3d7d4b=_0x5c0105['newRange']?_0x5c0105['newRange']['root']:null;_0x6c86d7&&this['_markers']['delete'](_0x5c0105['name']),_0x3d7d4b&&this['_markers']['set'](_0x5c0105['name'],_0x5c0105['newRange']['clone']());const _0x5ab811=null===_0x5c0105['_authorId']?null:_0x5c0105['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e86f6=_0x5c0105['name'];if(!this['_touchedMarkers']['has'](_0x2e86f6))return void this['_touchedMarkers']['set'](_0x2e86f6,{'range':_0x5c0105['oldRange'],'userId':_0x5ab811});const _0x4ed442=this['_touchedMarkers']['get'](_0x2e86f6),_0xa890d=_0x4ed442['range'],_0x2717de=_0x5c0105['newRange'];null==_0xa890d&&null==_0x2717de||_0xa890d&&_0x2717de&&_0xa890d['isEqual'](_0x2717de)?this['_touchedMarkers']['delete'](_0x5c0105['name']):_0x4ed442['userId']=_0x5ab811;}['_handleRootOperation'](_0x111d69,_0xea8da2){this['_diffRoots']['has'](_0x111d69['rootName'])?this['_diffRoots']['get'](_0x111d69['rootName'])['_isAttached']=_0x111d69['isAdd']:(this['_diffRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x111d69['rootName'],{}),_0xea8da2&&this['_idsRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)));const _0x36227e=null===_0x111d69['_authorId']?null:_0x111d69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa8ae2a=this['_touchedRoots']['get'](_0x111d69['rootName']);_0xa8ae2a&&_0xa8ae2a['userId']===_0x36227e?this['_touchedRoots']['delete'](_0x111d69['rootName']):this['_touchedRoots']['set'](_0x111d69['rootName'],{'userId':_0x36227e,'isAttached':_0x111d69['isAdd']});}['_handleRootAttributeOperation'](_0x577498){const _0x526c50=this['_diffRootsAttributes']['get'](_0x577498['root']['rootName']);null===_0x577498['newValue']?delete _0x526c50[_0x577498['key']]:_0x526c50[_0x577498['key']]=_0x577498['newValue'];}}function F(_0x3db3fe){const _0xe4da1e=B(_0x3db3fe['rootName'],_0x3db3fe['isAttached']());for(const _0x43f575 of _0x3db3fe['getChildren']()){const _0xfbc9b4=_0x43f575['_clone'](!0x0);_0xe4da1e['_appendChild'](_0xfbc9b4);}return _0xe4da1e;}function B(_0x2366bc,_0x24ef0b=!0x0){const _0x121983=new mt();return _0x121983['rootName']=_0x2366bc,_0x121983['_isAttached']=_0x24ef0b,_0x121983['isAttached']=()=>_0x121983['_isAttached'],_0x121983;}function J(_0x12341c,_0x444b44,_0x2d4234){const _0x45d692='elementEnd'==_0x12341c['type']?_0x2d4234['createPositionAt'](_0x12341c['item'],'end'):_0x2d4234['createPositionBefore'](_0x12341c['item']);return _0x2d4234['createPositionFromPath'](_0x444b44,_0x45d692['path'],_0x45d692['stickiness']);}function q(_0x494f87,_0x5c362f,_0x4750d4){const _0x53ae59='elementStart'==_0x494f87['type']?_0x4750d4['createPositionAt'](_0x494f87['item'],0x0):_0x4750d4['createPositionAfter'](_0x494f87['item']);return _0x4750d4['createPositionFromPath'](_0x5c362f,_0x53ae59['path'],_0x53ae59['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x368337,_0x355702){super(_0x368337),this['focusTracker']=new _0xf20832(),this['keystrokes']=new _0x282e49(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x355702),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x105f99(this);}['render'](){super['render'](),_0x24b08d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xa68cb3=_0x5d1638=>_0x5d1638['stopPropagation']();this['keystrokes']['set']('arrowright',_0xa68cb3),this['keystrokes']['set']('arrowleft',_0xa68cb3),this['keystrokes']['set']('arrowup',_0xa68cb3),this['keystrokes']['set']('arrowdown',_0xa68cb3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x165840){this['revisionNameInputView']['fieldView']['element']['value']=_0x165840['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35ea51){const _0x4e9177=new _0x3bef68(this['locale'],_0x4d2d9f),_0x498b50=_0x4e9177['fieldView'];_0x498b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3cc4d8=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35ea51&&(_0x3cc4d8+='\x20('+R(this['locale'],'optional')+')'),(_0x4e9177['label']=_0x3cc4d8,_0x498b50['on']('input',()=>{this['revisionNameInputValue']=_0x498b50['element']['value']['trim']();}),_0x4e9177);}}class u extends _0x27bfb5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xd33d9f=this['editor'],_0x538c26=_0xd33d9f['plugins']['get']('RevisionTracker');_0xd33d9f['ui']['componentFactory']['add']('revisionHistory',_0x32869e=>{const _0x4433f3=_0x327b70(_0x32869e),_0x4d294d=_0x4433f3['panelView']['children'],_0x386357=new _0x3362f5(_0x32869e),_0x2851af=new _0x2be56c(_0x32869e),_0x164115=new te(_0x32869e),_0x41e458=new _0x2be56c(_0x32869e),_0x4bda6b=new te(_0x32869e);return _0x4433f3['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x4405f2,_0x1fb57f,_0x349b7a)=>_0x4405f2&&_0x1fb57f&&!_0x349b7a),_0x4433f3['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x32869e,'Revision\x20history'),'tooltip':!0x0}),_0x164115['set']({'label':R(_0x32869e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x164115['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x39fa45,_0x2a2a14,_0x3b33ec)=>_0x39fa45&&_0x2a2a14&&!_0x3b33ec),_0x164115['on']('execute',()=>this['_showDialog']()),_0x4bda6b['set']({'label':R(_0x32869e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4bda6b['bind']('isEnabled')['to'](_0x538c26,'isReady',_0xd33d9f,'isReadOnly',(_0x2a688b,_0x5dfcea)=>_0x2a688b&&!_0x5dfcea),_0x4bda6b['on']('execute',()=>{_0xd33d9f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4433f3['isOpen']=!0x1,_0xd33d9f['editing']['view']['focus']();}),_0x2851af['children']['add'](_0x164115),_0x41e458['children']['add'](_0x4bda6b),_0x386357['role']='menu',_0x386357['items']['addMany']([_0x2851af,_0x41e458]),_0x4d294d['add'](_0x386357),_0x4433f3;}),_0xd33d9f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4f0c77=this['editor'],_0x4399b5=_0x4f0c77['locale'],_0x1d6249=new _0x236325(_0x4399b5),_0x5de0be=new _0x3ecedc(_0x4399b5);_0x1d6249['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x4399b5,'Revision\x20history')});const _0x34b169=new _0x391bac(_0x4399b5,_0x1d6249),_0x8ed6a9=new _0x47c8b3(_0x4399b5);_0x8ed6a9['set']({'label':R(_0x4399b5,'Save\x20current\x20revision')}),_0x8ed6a9['delegate']('execute')['to'](_0x1d6249),_0x8ed6a9['on']('execute',()=>{this['_showDialog']();}),_0x34b169['children']['add'](_0x8ed6a9),_0x5de0be['items']['add'](_0x34b169);const _0x24f1dc=new _0x391bac(_0x4399b5,_0x1d6249),_0x438cde=new _0x47c8b3(_0x4399b5);return _0x438cde['set']({'label':R(_0x4399b5,'Open\x20revision\x20history')}),_0x438cde['delegate']('execute')['to'](_0x1d6249),_0x438cde['on']('execute',()=>{_0x4f0c77['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x24f1dc['children']['add'](_0x438cde),_0x5de0be['items']['add'](_0x24f1dc),_0x1d6249['panelView']['children']['add'](_0x5de0be),_0x1d6249;}['_showDialog'](){const _0x328b5e=this['editor'],_0x177dc6=_0x328b5e['locale'],_0xb63fe2=_0x328b5e['plugins']['get']('Dialog'),_0x26c5c1=_0x328b5e['plugins']['get']('RevisionTracker');function _0x346d09(_0x1078eb){_0x328b5e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1078eb['revisionName']?_0x1078eb['revisionNameInputView']['errorText']=R(_0x177dc6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x328b5e['plugins']['get'](l)['saveRevision']({'name':_0x1078eb['revisionName']}),_0xb63fe2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x346d09(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb63fe2['show']({'id':'revisionSave','title':R(_0x177dc6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x328b5e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb63fe2['hide']()},{'label':R(_0x328b5e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4955da){_0x4955da['bind']('isEnabled')['to'](_0x26c5c1,'isReady',_0x26c5c1,'isEnabled',_0x328b5e,'isReadOnly',(_0x510720,_0x1aaf90,_0x496845)=>_0x510720&&_0x1aaf90&&!_0x496845);},'onExecute':()=>_0x346d09(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4717c7=this['editor'],_0x3621e0=_0x4717c7['locale'];this['_saveRevisionFormView']=new hs(_0x3621e0,_0x4717c7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x24507d,_0x43d1e2){super(_0x24507d),this['_model']=_0x43d1e2,this['changeId']=_0x43d1e2['id'];const _0x8f2c99=this['bindTemplate'],_0x49ff88=R(_0x24507d,_0x43d1e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x43d1e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x43d1e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x8f2c99['to']('type',_0x1b8325=>'ck-revision-change__'+_0x1b8325)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49ff88}]},{'text':'\x20'+_0x43d1e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x16ad9e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1b8c37){super(),this['id']=_0x1b8c37['id']||_0x49b2b2(),this['author']=_0x1b8c37['author'],this['type']=_0x1b8c37['type'],this['data']=_0x1b8c37['data']||{},this['rootName']=_0x1b8c37['rootName'],this['set']('createdAt',_0x1b8c37['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(_0x557768,_0x1fd650){this['newRevisionId']=_0x557768,this['oldRevisionId']=_0x1fd650,this['changes']=new _0x24f698();}['_setChanges'](_0x444f85){for(const _0x419796 of _0x444f85)this['changes']['add'](_0x419796);}}const Z={'c':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class d extends _0x27bfb5{['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[_0x3253d7,_0x112130,j];}constructor(_0x3256d0){super(_0x3256d0),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',(_0x563515,_0x4e829c,_0x5295ac)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2c98a0=>{for(const _0x4b14c5 of this['editor']['editing']['view']['document']['roots'])_0x5295ac?_0x2c98a0['removeClass']('ck-editor__editable__overlay',_0x4b14c5):_0x2c98a0['addClass']('ck-editor__editable__overlay',_0x4b14c5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x540533=>null!==_0x540533),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27a754,_0x1f0be5,_0x43a2f2)=>_0x27a754&&_0x43a2f2?_0x1f0be5['changes']['getIndex'](_0x43a2f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x57d32c,_0xd3cec0)=>_0x57d32c?_0xd3cec0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x112130);}['init'](){const _0x229843=this['editor'],_0x593b7f=new yt(_0x229843,{'direction':'backward'}),_0x2855b3=new yt(_0x229843,{'direction':'forward'});(_0x229843['commands']['add']('showPreviousChange',_0x593b7f),_0x229843['commands']['add']('showNextChange',_0x2855b3),_0x229843['commands']['add']('restoreRevision',new _t(_0x229843)),this['on']('change:numberOfChanges',()=>{_0x593b7f['refresh'](),_0x2855b3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x229843['enableReadOnlyMode']('revision-viewer'),_0x229843['plugins']['has']('WidgetToolbarRepository'))&&_0x229843['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x376f17){await this['loadRevisionData'](_0x376f17);const _0x49456a={};for(const _0x20e344 in _0x376f17['diffData']){if(_0x376f17['diffData'][_0x20e344]['attachChange']&&!_0x376f17['diffData'][_0x20e344]['attachChange']['isAttached'])continue;const _0x4fbc45=this['_removeRevisionMarkers'](JSON['parse'](_0x376f17['diffData'][_0x20e344]['insertions'])),_0x50bb3b=this['editor']['editing']['view']['document'],_0x4a4ee0=new _0x2d7291(_0x50bb3b,_0x4fbc45['map'](_0x3e622e=>this['_getViewObj'](_0x3e622e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49456a[_0x20e344]=this['editor']['data']['processor']['toData'](_0x4a4ee0),this['editor']['data']['processor']['useFillerType']('default');}return _0x49456a;}async['getRevisionRootsAttributes'](_0x5ed7bd){await this['loadRevisionData'](_0x5ed7bd);const _0x1e8ae3={};for(const _0x2bbb8d in _0x5ed7bd['diffData'])_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']&&!_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']['isAttached']||(_0x1e8ae3[_0x2bbb8d]=_0x5ed7bd['diffData'][_0x2bbb8d]['attributesAfter']||{});return _0x1e8ae3;}['_removeRevisionMarkers'](_0x5d5010){return(_0x5d5010=_0x5d5010['filter'](_0x406a3f=>!_0x406a3f['name']||'revision-start'!==_0x406a3f['name']&&'revision-end'!==_0x406a3f['name']))['forEach'](_0x2c03f1=>{'string'!=typeof _0x2c03f1&&(_0x2c03f1['children']=this['_removeRevisionMarkers'](_0x2c03f1['children']),_0x2c03f1['attributes']=_0x2c03f1['attributes']['filter'](_0x3fae97=>!_0x3fae97[0x0]['startsWith']('data-revision-')));}),_0x5d5010;}async['compare'](_0x9d6dda,_0x5bdb4f,_0x55129e=!0x1){if(!this['isEnabled'])return;const _0x542fb2=this['diff'],_0x32254b=this['repository'],_0x3ebc7b='string'==typeof _0x9d6dda?_0x32254b['getRevision'](_0x9d6dda):_0x9d6dda,_0xf7a29d='string'==typeof _0x5bdb4f?_0x32254b['getRevision'](_0x5bdb4f):_0x5bdb4f,_0x1c09f7=_0x3ebc7b['id'],_0x4b20a0=_0xf7a29d?_0xf7a29d['id']:null;if(!_0x55129e&&this['diff']&&this['diff']['newRevisionId']===_0x1c09f7&&this['diff']['oldRevisionId']===_0x4b20a0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1c09f7,_0x4b20a0);const _0x29f774=this['_getRevisionsRange'](_0x3ebc7b,_0xf7a29d,!0x0)['map'](_0x2416c3=>this['loadRevisionData'](_0x2416c3));return _0x29f774['push'](new Promise(_0x443945=>{setTimeout(_0x443945,0x14);})),Promise['all'](_0x29f774)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3584ff=this['_getDiff'](_0x1c09f7,_0x4b20a0);for(const _0x176fa1 of _0x3584ff['changes'])this['_changeIdToChange']['set'](_0x176fa1['id'],_0x176fa1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc99371=>{for(const _0x35fb9f of this['editor']['model']['document']['getRootNames']())_0xc99371['detachRoot'](_0x35fb9f);for(const _0x2dc5ba of Object['keys'](_0x3584ff['model'])){const _0x70e35e=_0xc99371['addRoot'](_0x2dc5ba);for(const _0x3579f1 of Object['keys'](_0x3584ff['attributes'][_0x2dc5ba]))_0xc99371['setAttribute'](_0x3579f1,_0x3584ff['attributes'][_0x2dc5ba][_0x3579f1],_0x70e35e);_0xc99371['insert'](_0x3584ff['model'][_0x2dc5ba],_0x70e35e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3584ff['changes'])),this['isReady']=!0x0;})['catch'](_0x25b4b6=>{console['error'](_0x25b4b6),this['_cleanUp'](),_0x542fb2&&(this['diff']=_0x542fb2),this['isReady']=!0x0;});}['addRevisionData'](_0x54156a,_0x248d28){const _0x166317=this['repository']['createRevision'](_0x54156a);return _0x166317['on']('_update',(_0xb1bece,_0x29afa8,_0x6f96f9)=>_0x248d28(_0x29afa8,_0x6f96f9,_0x166317)),this['repository']['addRevision'](_0x166317),_0x166317;}['loadRevisionData'](_0x377330){if(!_0x377330||_0x377330['diffData'])return Promise['resolve']();{const _0xcd661d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xcd661d,'revisionId':_0x377330['id']})['then'](_0x4c3c54=>{_0x377330['_update']({'diffData':_0x4c3c54['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},_0x53fae0=>{for(const _0x4fcd30 of this['editor']['model']['document']['getRootNames']())_0x53fae0['detachRoot'](_0x4fcd30);});}['_sortAndFilterDiffChanges'](_0x458b2e){const _0x2f76c2=[],_0x1a61be=new Map();for(const _0x40acd0 of this['editor']['model']['document']['getRootNames']()){const _0x5df763=this['editor']['editing']['view']['getDomRoot'](_0x40acd0);if(!_0x5df763)continue;const _0xd9b013=_0x5df763['getClientRects']()['item'](0x0);_0xd9b013&&(_0x2f76c2['push'](_0x40acd0),_0x1a61be['set'](_0x40acd0,_0xd9b013));}return _0x2f76c2['sort']((_0x519e9d,_0x3fc077)=>{const _0x312bfd=_0x1a61be['get'](_0x519e9d),_0x52b6b1=_0x1a61be['get'](_0x3fc077);return _0x312bfd['y']-_0x52b6b1['y']||_0x312bfd['x']-_0x52b6b1['x'];}),(_0x458b2e=_0x458b2e['filter'](_0x360ec7=>_0x2f76c2['includes'](_0x360ec7['rootName'])))['sort']((_0x45a763,_0x254524)=>_0x2f76c2['indexOf'](_0x45a763['rootName'])-_0x2f76c2['indexOf'](_0x254524['rootName'])),_0x458b2e;}['_makeTape'](_0xc17974){const _0x59e0a3=Array['from'](_0xc17974['markers'])['filter'](([_0x2977ce,_0x2d6fc7])=>_0x2977ce['startsWith']('revision:')&&!_0x2d6fc7['isCollapsed']),_0x61ed7=Array['from'](this['editor']['model']['createRangeIn'](_0xc17974)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x59e0a3['length'])for(const _0xfd21f7 of _0x61ed7){const [_0xd10d80,_0x224d54]=_0x59e0a3[0x0],[,_0x3a74fe,_0x441b36]=_0xd10d80['split'](':');if(_0x224d54['end']['isEqual'](_0xfd21f7['nextPosition'])&&_0x59e0a3['shift'](),(_0xfd21f7['previousPosition']['isEqual'](_0x224d54['start'])||_0xfd21f7['previousPosition']['isAfter'](_0x224d54['start']))&&('insertion'==_0x3a74fe?_0xfd21f7['isAdded']={'userId':_0x441b36}:'deletion'==_0x3a74fe&&(_0xfd21f7['isRemoved']={'userId':_0x441b36})),0x0==_0x59e0a3['length'])break;}return _0x61ed7;}['_refreshStartEndIndex'](_0x4b4a04){const _0x3dbca6=new Map();for(let _0x2f5302=0x0;_0x2f5302<_0x4b4a04['length'];_0x2f5302++)'text'===_0x4b4a04[_0x2f5302]['type']?(_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302,_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302):('elementStart'===_0x4b4a04[_0x2f5302]['type']?_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302:'elementEnd'===_0x4b4a04[_0x2f5302]['type']&&(_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302),_0x3dbca6['set'](_0x4b4a04[_0x2f5302]['id'],_0x2f5302));for(const _0x2d2eb0 of _0x3dbca6['values']())'elementStart'===_0x4b4a04[_0x2d2eb0]['type']?_0x4b4a04[_0x2d2eb0]['item']['endIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']):'elementEnd'===_0x4b4a04[_0x2d2eb0]['type']&&(_0x4b4a04[_0x2d2eb0]['item']['startIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']));}['_processTape'](_0x4165f8){for(let _0x1df855=0x0;_0x1df855<_0x4165f8['length'];_0x1df855++){if('elementStart'===_0x4165f8[_0x1df855]['type'])_0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855;else{if('elementEnd'===_0x4165f8[_0x1df855]['type']){_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855;const _0x28ccfa=_0x4165f8[_0x1df855]['item']['startIndex'];_0x4165f8[_0x28ccfa]['pairId']=_0x4165f8[_0x1df855]['id'],_0x4165f8[_0x1df855]['pairId']=_0x4165f8[_0x28ccfa]['id'];}else _0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855,_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855,_0x4165f8[_0x1df855]['pairId']=null;}_0x4165f8[_0x1df855]['markersStart']||(_0x4165f8[_0x1df855]['markersStart']=[],_0x4165f8[_0x1df855]['markersEnd']=[]);}}['_markInsertions'](_0x539b59,_0x5c089b){const _0xb51e4b=_0x539b59['filter'](_0x6a9a58=>!_0x6a9a58['isAdded']);for(let _0x39ec74=0x0;_0x39ec74<_0x5c089b['length'];_0x39ec74++)_0x5c089b[_0x39ec74]['isAdded']&&(_0xb51e4b[_0x39ec74]['isAdded']=_0x5c089b[_0x39ec74]['isAdded']);}['_makeModelFromViewString'](_0x3b85a5){const _0x4cf8a=JSON['parse'](_0x3b85a5),_0x49c0fa=this['editor']['editing']['view']['document'],_0xfa0bd0=new _0x2d7291(_0x49c0fa,_0x4cf8a['map'](_0xf3953d=>this['_getViewObj'](_0xf3953d)));return this['editor']['data']['toModel'](_0xfa0bd0);}['_getViewObj'](_0x94b4fc){const _0x483c93=this['editor']['editing']['view']['document'];if('string'==typeof _0x94b4fc)return new _0x309635(_0x483c93,_0x94b4fc);{const _0x363636=_0x94b4fc['children']['map'](_0xe58112=>this['_getViewObj'](_0xe58112));return new(Z[_0x94b4fc['type']]||_0x3489bf)(_0x483c93,_0x94b4fc['name'],_0x94b4fc['attributes'],_0x363636);}}['_getDiff'](_0x178eb8,_0x3cd307=null){const _0x3a4a60=this['repository']['getRevision'](_0x178eb8),_0x361a9d=_0x3cd307?this['repository']['getRevision'](_0x3cd307):null,_0x8c127c=this['_getRevisionsRange'](_0x3a4a60,_0x361a9d),_0x516138=_0x8c127c[_0x8c127c['length']-0x1],_0x51f4ff=new Map(),_0x17661b={'model':{},'attributes':{},'changes':[]},_0x1e63ae=new Set(),_0x4b9f55=new Map();for(let _0x138754=_0x8c127c['length']-0x1;_0x138754>=0x0;_0x138754--){const _0x5be6b9=_0x8c127c[_0x138754];for(const _0x46c0a9 of Object['keys'](_0x5be6b9['diffData']))if(_0x5be6b9['diffData'][_0x46c0a9]['attachChange']){const _0x691fde=_0x5be6b9['diffData'][_0x46c0a9]['attachChange'];_0x691fde['isAttached']?(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['has'](_0x46c0a9)&&_0x4b9f55['get'](_0x46c0a9)['userId']==_0x691fde['userId']?_0x4b9f55['delete'](_0x46c0a9):_0x4b9f55['set'](_0x46c0a9,_0x691fde)):_0x4b9f55['has'](_0x46c0a9)?(_0x1e63ae['delete'](_0x46c0a9),_0x4b9f55['delete'](_0x46c0a9)):(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['set'](_0x46c0a9,_0x691fde));}else _0x1e63ae['add'](_0x46c0a9);}for(const _0x24bafd of _0x1e63ae){const _0x138072=_0x4b9f55['has'](_0x24bafd)&&!_0x4b9f55['get'](_0x24bafd)['isAttached'];let _0x20a843=_0x138072?_0x8c127c['length']-0x1:0x0;const _0x51154e=_0x138072?-0x1:0x1;for(;_0x8c127c[_0x20a843];){const _0x4a858b=_0x8c127c[_0x20a843];if(_0x4a858b['diffData'][_0x24bafd]){const _0x2e5790=_0x138072?_0x4a858b['diffData'][_0x24bafd]['attributesBefore']:_0x4a858b['diffData'][_0x24bafd]['attributesAfter'];_0x17661b['attributes'][_0x24bafd]=_0x2e5790?_0x2b9a95(_0x2e5790):{};break;}_0x20a843+=_0x51154e;}}for(const _0xe4a39f of _0x8c127c){_0xe4a39f['model']={};for(const _0xb70ded of _0xe4a39f['authors'])_0x51f4ff['set'](_0xb70ded['id'],_0xb70ded);for(const _0x41775e of _0x1e63ae){const _0x366bab=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['insertions']:'[]',_0x85ffa5=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['deletions']:'[]';_0xe4a39f['model'][_0x41775e]={'insertions':this['_makeModelFromViewString'](_0x366bab),'deletions':this['_makeModelFromViewString'](_0x85ffa5)};}}for(const _0x62e427 of _0x1e63ae){let _0x10004b=null,_0x74d701=0x0;const _0x130c58=new Map(Array['from'](_0x3a4a60['model'][_0x62e427]['insertions']['markers'])['filter'](([_0xf1da6b])=>!_0xf1da6b['startsWith']('revision:')));let _0x4c3cd3=0x0;for(const _0x449fc2 of _0x8c127c){const _0x4ab6a3=this['_makeTape'](_0x449fc2['model'][_0x62e427]['insertions']);_0x449fc2==_0x3a4a60?(_0x10004b=_0x4ab6a3,_0x74d701=_0x10004b['length'],_0x10004b['forEach'](_0x374e08=>{_0x374e08['id']=_0x4c3cd3++;}),this['_processTape'](_0x10004b)):this['_markInsertions'](_0x10004b,_0x4ab6a3);const _0x3ba2e5=_0x10004b['filter'](_0x1fce7b=>!_0x1fce7b['isAdded'])['map'](_0x102a36=>_0x102a36['id']);let _0x4d8842=0x0;const _0x2b964f=this['_makeTape'](_0x449fc2['model'][_0x62e427]['deletions']);_0x2b964f['forEach'](_0x4d1fcf=>{_0x4d1fcf['isRemoved']?_0x4d1fcf['id']=_0x74d701++:_0x4d1fcf['id']=_0x3ba2e5[_0x4d8842++];}),this['_processTape'](_0x2b964f),this['_setDistance'](_0x10004b,'isAdded'),this['_setDistance'](_0x2b964f,'isRemoved'),_0x449fc2==_0x3a4a60&&this['_markMarkers'](_0x10004b,_0x130c58),_0x10004b=this['_joinTapes'](_0x10004b,_0x2b964f),this['_refreshStartEndIndex'](_0x10004b),this['_setDistance'](_0x10004b,'isRemoved');}_0x10004b=_0x10004b['filter'](_0x4b80e2=>!(_0x4b80e2['isAdded']&&_0x4b80e2['isRemoved']));const _0x296ba9=new Map(_0x516138['model'][_0x62e427]['deletions']['markers']),_0x333095=new Set(_0x130c58['keys']());for(const _0x1e7a35 of _0x296ba9['keys']())_0x333095['delete'](_0x1e7a35);this['_markSuggestions'](_0x10004b,_0x333095),this['_fixObsoleteTags'](_0x10004b),_0x10004b=this['_removeMissingPairs'](_0x10004b),_0x10004b=this['_markMismatchedRemovedTags'](_0x10004b),_0x10004b=this['_removeUnsupportedChanges'](_0x10004b);const {root:_0x4a46c1,changes:_0x35e2b5}=this['_makeModelFromTape'](_0x10004b,_0x51f4ff,_0x62e427);_0x17661b['model'][_0x62e427]=_0x4a46c1;const _0x5ae188=_0x4b9f55['get'](_0x62e427);if(_0x5ae188){const _0x379a9c=_0x51f4ff['get'](_0x5ae188['userId']),_0x28f3fe=new r({'author':_0x379a9c,'type':_0x5ae188['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x62e427});_0x35e2b5['unshift'](_0x28f3fe),_0x17661b['attributes'][_0x62e427]['revisionHistoryAttachChange']=_0x28f3fe['id'];}_0x17661b['changes']=_0x17661b['changes']['concat'](_0x35e2b5);}return _0x17661b;}['_markMarkers'](_0x613dd0,_0x239c8a){for(let _0x5976db=0x0;_0x5976db<_0x613dd0['length'];_0x5976db++)for(const [_0x1f8255,_0x29fbda]of _0x239c8a)_0x29fbda['start']['isEqual'](_0x613dd0[_0x5976db]['previousPosition'])&&_0x613dd0[_0x5976db]['markersStart']['push'](_0x1f8255),_0x29fbda['end']['isEqual'](_0x613dd0[_0x5976db]['nextPosition'])&&_0x613dd0[_0x5976db]['markersEnd']['push'](_0x1f8255);}['_joinTapes'](_0x686dbc,_0x18da1d){let _0xd70e42=[],_0x47020f=0x0,_0x26207c=0x0;for(;_0x47020f<_0x686dbc['length']||_0x26207c<_0x18da1d['length'];){const _0x38478a=_0x686dbc[_0x47020f]||{},_0xda72b8=_0x18da1d[_0x26207c]||{};if(_0x38478a['id']==_0xda72b8['id'])_0x47020f++,_0x26207c++,_0xd70e42['push'](_0x38478a);else{if(_0xda72b8['isRemoved']&&_0x38478a['isAdded']){const {commonTape:_0xef2f68,iEnd:_0x4fdb38,jEnd:_0x140c0c}=this['_threeWayMerge'](_0x686dbc,_0x47020f,_0x18da1d,_0x26207c);_0xd70e42=_0xd70e42['concat'](_0xef2f68),_0x47020f=_0x4fdb38,_0x26207c=_0x140c0c;}else _0xda72b8['isRemoved']?(_0x26207c++,_0xd70e42['push'](_0xda72b8)):(_0x47020f++,_0xd70e42['push'](_0x38478a));}}return _0xd70e42;}['_markSuggestions'](_0x548cf7,_0x1a689b){const _0x32cb5d=[];for(let _0x978992=0x0;_0x978992<_0x548cf7['length'];_0x978992++){for(let _0x13fd12=0x0;_0x13fd12<_0x548cf7[_0x978992]['markersStart']['length'];_0x13fd12++){const _0x472637=_0x548cf7[_0x978992]['markersStart'][_0x13fd12];if(!_0x1a689b['has'](_0x472637))continue;const {group:_0x2ed440,type:_0x26956e,authorId:_0x4b4506}=_0x3f78d0(_0x472637);'revision-suggestion'!=_0x2ed440||'insertion'!=_0x26956e&&'deletion'!=_0x26956e||(_0x32cb5d['unshift']({'type':_0x26956e,'name':_0x472637,'userId':_0x4b4506}),_0x548cf7[_0x978992]['markersStart']['splice'](_0x13fd12,0x1),_0x13fd12--);}_0x3c29b7(_0x548cf7[_0x978992]);for(let _0x5e3167=0x0;_0x5e3167<_0x548cf7[_0x978992]['markersEnd']['length'];_0x5e3167++){const _0x2a014e=_0x548cf7[_0x978992]['markersEnd'][_0x5e3167];if(!_0x1a689b['has'](_0x2a014e))continue;const {group:_0x269f5a,type:_0x5c5820}=_0x3f78d0(_0x2a014e);if('revision-suggestion'!=_0x269f5a||'insertion'!=_0x5c5820&&'deletion'!=_0x5c5820)continue;_0x548cf7[_0x978992]['markersEnd']['splice'](_0x5e3167,0x1),_0x5e3167--;const _0x9a83a=_0x32cb5d['findIndex'](_0x1c6fde=>_0x1c6fde['name']==_0x2a014e);_0x9a83a>-0x1&&_0x32cb5d['splice'](_0x9a83a,0x1);}}function _0x3f78d0(_0x162a8b){const _0x32633d=_0x162a8b['split'](':');return{'group':_0x32633d[0x0],'type':_0x32633d[0x1],'subType':_0x32633d['length']>=0x5?_0x32633d[0x2]:null,'id':_0x32633d['length']<0x5?_0x32633d[0x2]:_0x32633d[0x3],'authorId':_0x32633d['length']<0x5?_0x32633d[0x3]:_0x32633d[0x4],'markerCount':0x6==_0x32633d['length']?_0x32633d[0x5]:null};}function _0x3c29b7(_0x3643f0){for(let _0x184257=0x0;_0x184257<_0x32cb5d['length'];_0x184257++){if(_0x3643f0['isAdded']&&'insertion'==_0x32cb5d[_0x184257]['type'])return _0x3643f0['isAddSuggestion']=_0x32cb5d[_0x184257],void delete _0x3643f0['isAdded'];if(!_0x3643f0['isAdded']&&!_0x3643f0['isRemoved']&&'deletion'==_0x32cb5d[_0x184257]['type'])return void(_0x3643f0['isRemoveSuggestion']=_0x32cb5d[_0x184257]);}}}['_setDistance'](_0x40c7a0,_0x427af7){let _0x58f780=0x0,_0x4391ac=!0x1;const _0x31361c=new Map();for(const _0x5d9542 of _0x40c7a0)_0x5d9542[_0x427af7]?_0x4391ac&&(_0x58f780++,_0x4391ac=!0x1):(_0x58f780++,_0x4391ac=!0x0),_0x31361c['set'](_0x5d9542['id'],_0x58f780);for(let _0x2d4fd6=0x0;_0x2d4fd6<_0x40c7a0['length'];_0x2d4fd6++){if('isRemoved'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isAdded']||'isAdded'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isRemoved'])continue;if('text'==_0x40c7a0[_0x2d4fd6]['type']){_0x40c7a0[_0x2d4fd6]['distance']=0x0;continue;}const _0x365901=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['pairId']),_0x517ae0=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['id']);_0x40c7a0[_0x2d4fd6]['distance']=_0x365901-_0x517ae0;}}['_getRevisionsRange'](_0x573d61,_0x3f7b54,_0x5adf4b=!0x1){const _0x112d3a=[];let _0x262658=this['repository']['getIndex'](_0x573d61),_0x4430ba=this['repository']['getIndex'](_0x3f7b54);for(-0x1==_0x4430ba&&(_0x4430ba=this['repository']['_revisions']['length'],_0x5adf4b=!0x1);_0x262658<_0x4430ba;)_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x262658++;return _0x5adf4b&&_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x112d3a;}['_threeWayMerge'](_0x19ae76,_0x351a83,_0x2cc293,_0x25fc5d){const _0x4efc1f=this['editor']['model']['schema'];let _0x3ea27f=_0x351a83;for(;_0x19ae76[_0x3ea27f]&&_0x19ae76[_0x3ea27f]['isAdded'];)_0x3ea27f++;let _0x512ff8=_0x25fc5d;for(;_0x2cc293[_0x512ff8]&&_0x2cc293[_0x512ff8]['isRemoved'];)_0x512ff8++;_0x393c89(_0x19ae76,_0x351a83,_0x3ea27f),_0x393c89(_0x2cc293,_0x25fc5d,_0x512ff8);const _0x380b86=_0x2cc293['slice'](_0x25fc5d,_0x512ff8)['concat'](_0x19ae76['slice'](_0x351a83,_0x3ea27f));return _0x380b86['sort']((_0x4b7920,_0x13350f)=>_0x4b7920['side']!=_0x13350f['side']?_0x4b7920['side']-_0x13350f['side']:_0x4b7920['level']!=_0x13350f['level']?_0x4b7920['level']-_0x13350f['level']:_0x4b7920['distance']!=_0x13350f['distance']?_0x13350f['distance']-_0x4b7920['distance']:!!_0x4b7920['isAdded']!=!!_0x13350f['isAdded']?-0x1==_0x4b7920['side']||0x0==_0x4b7920['side']?_0x4b7920['isAdded']?-0x1:0x1:_0x4b7920['isAdded']?0x1:-0x1:_0x4b7920['index']-_0x13350f['index']),{'commonTape':_0x380b86,'iEnd':_0x3ea27f,'jEnd':_0x512ff8};function _0x393c89(_0x548167,_0x3bfdf7,_0x28d169){let _0x107186=-0x1,_0x32127b=Number['POSITIVE_INFINITY'],_0x3a5357=!0x0;for(let _0x102e11=_0x3bfdf7;_0x102e11<_0x28d169;_0x102e11++)if(_0x4efc1f['isInline'](_0x548167[_0x102e11]['item'])||(_0x3a5357=!0x1),_0x548167[_0x102e11]['item']['startIndex']<_0x3bfdf7&&(_0x107186=_0x102e11),_0x548167[_0x102e11]['item']['endIndex']>=_0x28d169){_0x32127b=_0x102e11;break;}_0x3a5357&&(_0x107186=_0x28d169-0x1);for(let _0x5caea0=_0x3bfdf7;_0x5caea0<_0x28d169;_0x5caea0++)_0x548167[_0x5caea0]['side']=_0x5caea0<=_0x107186?-0x1:_0x5caea0<_0x32127b?0x0:0x1,_0x548167[_0x5caea0]['index']=_0x5caea0;let _0x17cdb9=0x0;for(let _0x5738c8=_0x3bfdf7;_0x5738c8<=_0x107186;_0x5738c8++)0x0==_0x548167[_0x5738c8]['distance']?_0x548167[_0x5738c8]['level']=_0x17cdb9:(_0x17cdb9++,_0x548167[_0x5738c8]['level']=_0x17cdb9,_0x17cdb9++);for(let _0x16528d=_0x3bfdf7;_0x16528d<_0x28d169;_0x16528d++)0x0==_0x548167[_0x16528d]['side']&&(_0x548167[_0x16528d]['level']=_0x17cdb9);_0x17cdb9=0x0;for(let _0x211252=_0x28d169-0x1;_0x211252>=_0x32127b;_0x211252--)0x0==_0x548167[_0x211252]['distance']?_0x548167[_0x211252]['level']=_0x17cdb9:(_0x17cdb9--,_0x548167[_0x211252]['level']=_0x17cdb9,_0x17cdb9--);}}['_fixObsoleteTags'](_0x1db992){const _0x1efb6a=new Map(),_0x1865b2=this['editor']['model']['schema'];for(let _0x7dd145=0x1;_0x7dd145<_0x1db992['length'];_0x7dd145++){let _0x1588b6,_0x293743,_0x13de96;const _0x30453b=_0x1db992[_0x7dd145],_0x1daa9f=_0x1db992[_0x7dd145-0x1];if('text'==_0x30453b['type'])continue;if(_0x30453b['type']!=_0x1daa9f['type'])continue;if(!_0x1865b2['isBlock'](_0x1daa9f['item'])||_0x1865b2['isLimit'](_0x1daa9f['item']))continue;if(!_0x1865b2['isBlock'](_0x30453b['item'])||_0x1865b2['isLimit'](_0x30453b['item']))continue;if((_0x1db992[_0x7dd145]['isAdded']||_0x1db992[_0x7dd145]['isAddSuggestion'])&&_0x1db992[_0x7dd145-0x1]['isRemoved'])_0x1588b6=_0x1db992[_0x7dd145],_0x293743=_0x1db992[_0x7dd145-0x1],_0x13de96=_0x7dd145-0x1;else{if(!_0x1db992[_0x7dd145]['isRemoved']||!_0x1db992[_0x7dd145-0x1]['isAdded']&&!_0x1db992[_0x7dd145-0x1]['isAddSuggestion'])continue;_0x1588b6=_0x1db992[_0x7dd145-0x1],_0x293743=_0x1db992[_0x7dd145],_0x13de96=_0x7dd145;}const _0x547259=_0x1588b6['level']==_0x293743['level'],_0x234769=Math['abs'](_0x1588b6['level'])<Math['abs'](_0x293743['level'])&&0x0==_0x293743['distance'];(_0x547259||_0x234769)&&(_0x1efb6a['set'](_0x293743['id'],_0x1588b6['id']),_0x1db992['splice'](_0x13de96,0x1),_0x7dd145--,_0x1588b6['isAdded']=!0x1);}for(let _0x5abda4=0x0;_0x5abda4<_0x1db992['length'];_0x5abda4++)_0x1efb6a['has'](_0x1db992[_0x5abda4]['pairId'])&&(_0x1db992[_0x5abda4]['pairId']=_0x1efb6a['get'](_0x1db992[_0x5abda4]['pairId']));}['_removeMissingPairs'](_0x3ced13){const _0x20730e=new Set(_0x3ced13['map'](_0x77e1b6=>_0x77e1b6['id']));for(let _0x4d1ef4=0x0;_0x4d1ef4<_0x3ced13['length'];_0x4d1ef4++)_0x20730e['has'](_0x3ced13[_0x4d1ef4]['pairId'])||0x0==_0x3ced13[_0x4d1ef4]['distance']||(_0x3ced13[_0x4d1ef4]['isIncorrect']=!0x0);return _0x3ced13['filter'](_0x3f91ff=>!_0x3f91ff['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4ec946){const _0x1c4319=new Set();for(let _0x103d3e=0x0;_0x103d3e<_0x4ec946['length'];_0x103d3e++){if(_0x1c4319['has'](_0x4ec946[_0x103d3e]['id'])&&_0x4ec946[_0x103d3e]['isRemoved']&&(_0x4ec946[_0x103d3e]['isIncorrect']=!0x0),_0x4ec946[_0x103d3e]['isIncorrect'])continue;if(0x0==_0x4ec946[_0x103d3e]['distance'])continue;if('elementStart'!=_0x4ec946[_0x103d3e]['type'])continue;if(null==_0x4ec946[_0x103d3e]['pairId'])continue;let _0x2342d0=_0x103d3e+0x1,_0x21e3d7=0x0;for(;_0x4ec946[_0x2342d0]['id']!=_0x4ec946[_0x103d3e]['pairId'];)'elementStart'==_0x4ec946[_0x2342d0]['type']?_0x21e3d7++:'elementEnd'==_0x4ec946[_0x2342d0]['type']&&_0x21e3d7--,_0x2342d0++;if(0x0!=_0x21e3d7){if(_0x4ec946[_0x103d3e]['isRemoved'])_0x4ec946[_0x103d3e]['isIncorrect']=!0x0;else{for(;_0x2342d0!=_0x103d3e;)_0x4ec946[_0x2342d0]['isRemoved']&&0x0!=_0x4ec946[_0x2342d0]['distance']&&(_0x4ec946[_0x2342d0]['isIncorrect']=!0x0,_0x1c4319['add'](_0x4ec946[_0x2342d0]['pairId'])),_0x2342d0--;}}}return _0x4ec946['filter'](_0x2ab2ef=>!_0x2ab2ef['isIncorrect']);}['_removeUnsupportedChanges'](_0x5b872d){const _0x3b8246=this['editor']['model']['schema'];for(let _0x59f589=0x0;_0x59f589<_0x5b872d['length'];_0x59f589++){if(!(_0x5b872d[_0x59f589]['isAdded']||_0x5b872d[_0x59f589]['isAddSuggestion']||_0x5b872d[_0x59f589]['isRemoved']||_0x5b872d[_0x59f589]['isRemoveSuggestion']))continue;if(0x0==_0x5b872d[_0x59f589]['distance'])continue;const _0x3b56b7=_0x5b872d[_0x59f589]['item'];_0x3b8246['isBlock'](_0x3b56b7)||_0x3b8246['isLimit'](_0x3b56b7)||(_0x5b872d[_0x59f589]['isAdded']&&delete _0x5b872d[_0x59f589]['isAdded'],_0x5b872d[_0x59f589]['isAddSuggestion']&&delete _0x5b872d[_0x59f589]['isAddSuggestion'],_0x5b872d[_0x59f589]['isRemoveSuggestion']&&delete _0x5b872d[_0x59f589]['isRemoveSuggestion'],_0x5b872d[_0x59f589]['isRemoved']&&(_0x5b872d[_0x59f589]['isIncorrect']=!0x0));}return _0x5b872d['filter'](_0x313dca=>!_0x313dca['isIncorrect']);}['_makeModelFromTape'](_0x310085,_0x2b5239,_0x416cf7){const _0x5cb760=new mt(),_0xab9630=[],_0x13faa9=new Map(),_0x4cedf5=this['editor']['model'],_0x37ece1=_0x4cedf5['schema'],_0xf93fc1=[_0x5cb760],_0x897120={},_0x56bea3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x443c98=null;const _0x4c3101=[0x0];for(let _0x3c9aef=0x0;_0x3c9aef<_0x310085['length'];_0x3c9aef++)if('elementStart'===_0x310085[_0x3c9aef]['type']){_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);const _0x3a6eaa=new ft(_0x310085[_0x3c9aef]['item']['name'],_0x310085[_0x3c9aef]['item']['getAttributes']());_0xf93fc1[0x0]['_appendChild'](_0x3a6eaa),_0x4c3101['push'](0x0),_0xf93fc1['unshift'](_0x3a6eaa),_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);}else'elementEnd'===_0x310085[_0x3c9aef]['type']?(_0xf93fc1['shift'](),_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x4c3101['pop'](),_0x4c3101[_0x4c3101['length']-0x1]++,_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101)):(_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x443c98?_0x443c98['_data']+=_0x310085[_0x3c9aef]['item']['data']:_0x443c98=new wt(_0x310085[_0x3c9aef]['item']['data'],_0x310085[_0x3c9aef]['item']['getAttributes']()),_0x310085[_0x3c9aef+0x1]&&'text'===_0x310085[_0x3c9aef+0x1]['type']&&_0x34bffc(_0x443c98,_0x310085[_0x3c9aef+0x1]['item'])||(_0xf93fc1[0x0]['_appendChild'](_0x443c98),_0x443c98=null),_0x4c3101[_0x4c3101['length']-0x1]+=_0x310085[_0x3c9aef]['item']['offsetSize'],_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101));for(let _0x42da9d=0x0;_0x42da9d<_0x310085['length'];_0x42da9d++){const _0x45d5bb=_0x310085[_0x42da9d]['previousPosition'],_0x1a17b5=_0x310085[_0x42da9d]['nextPosition'];for(const _0x4b5122 of _0x310085[_0x42da9d]['markersStart'])_0x13faa9['set'](_0x4b5122,{'start':_0x45d5bb,'end':null});_0x22ad7c('isRemoveSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAddSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isRemoved',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAdded',_0x42da9d,_0x45d5bb,_0x1a17b5);for(const _0x38c847 of _0x310085[_0x42da9d]['markersEnd']){_0x13faa9['get'](_0x38c847)['end']=_0x1a17b5;}}for(const [_0xf8407a,_0x4e95f4]of _0x13faa9){const _0x41275b=this['editor']['model']['createRange'](_0x4e95f4['start'],_0x4e95f4['end']);_0x5cb760['markers']['set'](_0xf8407a,_0x41275b);}return _0xab9630['sort']((_0x1c0558,_0x3a43c6)=>{const _0x521cb7=_0x5cb760['markers']['get']('revision:'+_0x1c0558['id']),_0xf26e44=_0x5cb760['markers']['get']('revision:'+_0x3a43c6['id']);return _0x521cb7['start']['isBefore'](_0xf26e44['start'])?-0x1:_0x521cb7['start']['isAfter'](_0xf26e44['start'])?0x1:_0x521cb7['end']['isBefore'](_0xf26e44['end'])?-0x1:_0x521cb7['end']['isAfter'](_0xf26e44['end'])?0x1:'add'===_0x1c0558['type']?-0x1:0x1;}),{'root':_0x5cb760,'changes':_0xab9630};function _0x22ad7c(_0x405736,_0x1fe17e,_0x260c34,_0x2ee222){const _0x189e87=!!_0x310085[_0x1fe17e][_0x405736],_0x55dfd8=_0x189e87?_0x310085[_0x1fe17e][_0x405736]['userId']:null,_0x3612b4=_0x1fe17e===_0x310085['length']-0x1,_0x37adc2=_0x56bea3[_0x405736][0x0],_0x272bd0=_0x37ece1['isObject'](_0x310085[_0x1fe17e]['item']);!_0x897120[_0x405736]&&_0x189e87?_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}:_0x897120[_0x405736]&&!_0x189e87?(_0x897120[_0x405736]['end']=_0x260c34,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null):_0x897120[_0x405736]&&_0x189e87&&_0x897120[_0x405736]['userId']!==_0x55dfd8&&(_0x897120[_0x405736]['end']=_0x260c34,_0x37adc2&&_0x37adc2['userId']===_0x897120[_0x405736]['userId']||_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}),_0x897120[_0x405736]&&_0x272bd0&&('elementStart'!==_0x310085[_0x1fe17e]['type']||_0x37adc2&&_0x37adc2['userId']===_0x55dfd8||_0x56bea3[_0x405736]['unshift']({'userId':_0x55dfd8,'object':_0x310085[_0x1fe17e]['item'],'change':_0x897120[_0x405736]}),'elementEnd'===_0x310085[_0x1fe17e]['type']&&_0x37adc2&&_0x37adc2['object']===_0x310085[_0x1fe17e]['item']&&(_0x56bea3[_0x405736]['shift'](),_0x897120[_0x405736]=_0x37adc2['change'])),_0x897120[_0x405736]&&_0x3612b4&&(_0x897120[_0x405736]['end']=_0x2ee222,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null);}function _0x585376({start:_0x36e853,end:_0x5211ce,tapeItem:_0x4a6a09,userId:_0x5ab361,type:_0x2d3342}){const _0x57aefd=_0x4a6a09['item'],_0x451705=_0x4cedf5['schema']['isBlock'](_0x57aefd)&&!_0x4cedf5['schema']['isLimit'](_0x57aefd),_0x529443=_0x36e853['nodeAfter']==_0x5211ce['parent']&&_0x5211ce['isAtStart'];if(_0x451705&&_0x529443)return;const _0x40cc3d=_0x4cedf5['createRange'](_0x36e853,_0x5211ce),_0x116daf=_0x2b5239['get'](_0x5ab361),_0x23f2c4=new r({'author':_0x116daf,'type':'isAdded'==_0x2d3342||'isAddSuggestion'==_0x2d3342?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2d3342||'isRemoveSuggestion'==_0x2d3342},'createdAt':new Date(),'rootName':_0x416cf7});_0xab9630['push'](_0x23f2c4),_0x5cb760['markers']['set']('revision:'+_0x23f2c4['id'],_0x40cc3d);}function _0x34bffc(_0x16793f,_0x5dfdde){const _0x4dd752=_0x16793f['getAttributes'](),_0xae642e=_0x5dfdde['getAttributes']();for(const _0x3ce68b of _0x4dd752){if(_0x3ce68b[0x1]!==_0x5dfdde['getAttribute'](_0x3ce68b[0x0]))return!0x1;_0xae642e['next']();}return _0xae642e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1c72ea=>{const _0x4b6b0d=_0x1c72ea['markerName']['split'](':')[0x1],_0x4e1a7e=this['_getChangeFromId'](_0x4b6b0d);if(!_0x4e1a7e)return null;const _0x1240d2='add'==_0x4e1a7e['type']?'insertion':'deletion',_0xb21a11=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1240d2];return _0x4e1a7e['data']['isSuggestion']&&_0xb21a11['push']('ck-suggestion-marker-'+_0x1240d2+'-new'),this['activeChange']==_0x4e1a7e&&_0xb21a11['push']('ck-suggestion-marker--active'),{'classes':_0xb21a11,'attributes':{'data-change-id':_0x4b6b0d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x16ae12=>{_0x16ae12['on']('element:pre',(_0x1c00a8,_0x14069a,_0x48608f)=>{const _0x2833af=_0x14069a['viewItem']['getChild'](0x0);if(!_0x2833af||!_0x2833af['is']('element','code'))return;if(!_0x48608f['consumable']['consume'](_0x2833af,{'attributes':['vid_start','vid_end']}))return;const _0x28068f=_0x14069a['modelRange']['start']['nodeAfter'];_0x48608f['writer']['setAttribute']('vid_start',_0x2833af['getAttribute']('vid_start'),_0x28068f),_0x48608f['writer']['setAttribute']('vid_end',_0x2833af['getAttribute']('vid_end'),_0x28068f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x32ec30=>{_0x32ec30['on']('element',(_0x2f7039,_0x3e7202,_0x1a2fff)=>{if(!_0x1a2fff['consumable']['consume'](_0x3e7202['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e7202['modelRange']['isCollapsed'])return;const _0x501eb9=_0x3e7202['modelRange']['start']['nodeAfter'];_0x501eb9['hasAttribute']('vid_start')||_0x501eb9['hasAttribute']('vid')||(_0x1a2fff['writer']['setAttribute']('vid_start',_0x3e7202['viewItem']['getAttribute']('vid_start'),_0x501eb9),_0x1a2fff['writer']['setAttribute']('vid_end',_0x3e7202['viewItem']['getAttribute']('vid_end'),_0x501eb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5cb223=>_0x5cb223['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3498ff,[,_0x1c1575])=>{['vid_start','vid_end','vid']['includes'](_0x1c1575)&&(_0x3498ff['return']=!0x0,_0x3498ff['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4435f1=>{_0x4435f1['on']('attribute:vid',(_0x4a89c8,_0x317e45,_0x19d441)=>{if('\x20'!=_0x317e45['item']['data']||_0x317e45['item']['parent']['maxOffset']>0x1)return;if(!_0x19d441['consumable']['consume'](_0x317e45['item'],_0x4a89c8['name']))return;const _0x28493b=_0x19d441['writer'],_0x456e64=_0x19d441['mapper']['toViewRange'](_0x317e45['range']);_0x28493b['wrap'](_0x456e64,_0x28493b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x24c6fc){const _0x163ec9=_0x24c6fc['plugins']['get']('RevisionViewer');return(_0x172f5d,_0x339015,_0x39330d)=>{const _0x27eafa=_0x339015['markerName']['split'](':')[0x1],_0x44abbc=_0x163ec9['_getChangeFromId'](_0x27eafa);if(!_0x44abbc)return null;const _0x5ddbc2='add'==_0x44abbc['type']?'split':'merge';if(!_0x39330d['consumable']['test'](_0x339015['markerRange'],_0x172f5d['name']))return;const _0x455beb=_0x339015['markerRange']['getWalker'](),_0x235486=_0x339015['markerRange']['start'],_0x132753=_0x24c6fc['model']['schema'];let _0x5765d8=null,_0x4d1f47=null,_0x14277f=!0x1,_0x22f4e8=!0x1;for(const _0x5829e5 of _0x455beb){const _0x470ac4=_0x5829e5['item'];_0x14277f=_0x14277f||_0x132753['isContent'](_0x470ac4);const _0x102b86=_0x39330d['mapper']['toViewElement'](_0x470ac4);if(_0x102b86&&_0x102b86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5829e5['type']&&(_0x132753['isBlock'](_0x470ac4)&&!_0x132753['isLimit'](_0x470ac4)&&(_0x470ac4['nextSibling']||_0x235486['isAtEnd']?_0x5765d8&&_0x5765d8['parent']==_0x470ac4||(_0x5765d8=_0x470ac4,_0x13c3f7(_0x5829e5['previousPosition']),_0x22f4e8=!0x0):_0x4d1f47=_0x4d1f47||_0x5829e5['previousPosition']));}function _0x13c3f7(_0x9706a4){const _0x2929b3=_0x39330d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ddbc2}),_0x4b7c35=_0x39330d['mapper']['toViewPosition'](_0x9706a4);_0x44abbc['data']['isSuggestion']&&_0x39330d['writer']['addClass']('ck-suggestion-marker-'+_0x5ddbc2+'-new',_0x2929b3),_0x163ec9['activeChange']==_0x44abbc&&_0x39330d['writer']['addClass']('ck-suggestion-marker--active',_0x2929b3),_0x39330d['writer']['insert'](_0x4b7c35,_0x2929b3),_0x39330d['mapper']['bindElementToMarker'](_0x2929b3,_0x339015['markerName']);}_0x14277f||_0x22f4e8||!_0x4d1f47||_0x13c3f7(_0x4d1f47);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x17ced5,_0x2c9af0,_0x7e90cc)=>{const _0x5c2030=_0x7e90cc['mapper']['markerNameToElements'](_0x2c9af0['markerName']);if(_0x5c2030){for(const _0x4a4d0e of _0x5c2030)(_0x4a4d0e['hasClass']('ck-suggestion-marker-split')||_0x4a4d0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x7e90cc['mapper']['unbindElementFromMarkerName'](_0x4a4d0e,_0x2c9af0['markerName']),_0x7e90cc['writer']['remove'](_0x4a4d0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2998f6,_0x52488b,_0x2331dd)=>{const _0x463b54=_0x52488b['markerName']['split'](':')[0x1],_0xafc038=this['_getChangeFromId'](_0x463b54);if(!_0xafc038)return null;const _0x1b9023='add'==_0xafc038['type']?'split':'merge';if(_0x2331dd['consumable']['test'](_0x52488b['markerRange'],_0x2998f6['name']))for(const _0x1eb889 of _0x52488b['markerRange']['getItems']()){if(!_0x1eb889['is']('element','softBreak'))continue;const _0x2aecda=_0x2331dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b9023}),_0x6cff97=_0x2331dd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1eb889));_0xafc038['data']['isSuggestion']&&_0x2331dd['writer']['addClass']('ck-suggestion-marker-'+_0x1b9023+'-new',_0x2aecda),this['activeChange']==_0xafc038&&_0x2331dd['writer']['addClass']('ck-suggestion-marker--active',_0x2aecda),_0x2331dd['writer']['insert'](_0x6cff97,_0x2aecda),_0x2331dd['mapper']['bindElementToMarker'](_0x2aecda,_0x52488b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x161edd=>{for(const _0x21cf4f of this['editor']['model']['document']['getRootNames']()){const _0x113549=this['editor']['model']['document']['getRoot'](_0x21cf4f),_0xf647d4=this['editor']['editing']['view']['document']['getRoot'](_0x21cf4f);if(_0xf647d4){const _0x3686c5=_0x113549['getAttribute']('revisionHistoryAttachChange');if(_0x161edd['removeAttribute']('data-change-id',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-add',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-remove',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root--active',_0xf647d4),_0x3686c5){const _0x3b1714=this['_getChangeFromId'](_0x3686c5);if(!_0x3b1714)return null;_0x161edd['setAttribute']('data-change-id',_0x3686c5,_0xf647d4),_0x161edd['addClass']('ck-revision-history-root-'+_0x3b1714['type'],_0xf647d4),this['activeChange']==_0x3b1714&&_0x161edd['addClass']('ck-revision-history-root--active',_0xf647d4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18e309=>'revision-comment:'+_0x18e309,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x123c22=>'revision-suggestion:'+_0x123c22,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x515086=>({'name':'suggestion:'+_0x515086,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x153bc4=>{const _0x299198=_0x153bc4['markerName']['split'](':')[0x1];return'insertion'!=_0x299198&&'deletion'!=_0x299198?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x299198]};}}),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',(_0x567407,_0x4d547d,_0x41c0c3)=>{const _0x24ea9e=_0x41c0c3['mapper']['markerNameToElements'](_0x4d547d['markerName']);if(_0x24ea9e){for(const _0x567835 of _0x24ea9e)_0x567835['is']('uiElement')&&(_0x41c0c3['mapper']['unbindElementFromMarkerName'](_0x567835,_0x4d547d['markerName']),_0x41c0c3['writer']['remove'](_0x567835));}},{'priority':'high'});}['_getChangeFromId'](_0x2608fd){return this['_changeIdToChange']['get'](_0x2608fd);}['_getViewForChange'](_0x24c4b3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x24c4b3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1912fc,_0x155eed,_0x4b95f5,_0x2dd2de)=>{_0x2dd2de&&this['_balloon']['remove'](_0x2dd2de),_0x4b95f5&&(this['_balloon']['add']({'view':_0x4b95f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3d106e=this['editor']['editing'],_0x7aca32=this['_getChangeFromId'](_0x4b95f5['changeId']);let _0x1279e3;if(_0x7aca32['data']['isOnRoot']){const _0x181633=_0x3d106e['view']['getDomRoot'](_0x7aca32['rootName']);_0x1279e3=Array['from'](_0x181633['getClientRects']());}else{const _0x31db13=this['editor']['model']['markers']['get']('revision:'+_0x4b95f5['changeId']);_0x1279e3=Array['from'](_0x3d106e['mapper']['markerNameToElements'](_0x31db13['name']))['map'](_0x3f990d=>_0x3d106e['view']['domConverter']['mapViewToDom'](_0x3f990d))['map'](_0x19ccfe=>Array['from'](_0x19ccfe['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1279e3[0x0];return _0x1279e3['find'](_0x319724=>_0x319724['top']-0x3<=this['_activeViewTarget']['y']&&_0x319724['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x319724['left']-0x3<=this['_activeViewTarget']['x']&&_0x319724['right']+0x3>=this['_activeViewTarget']['x'])||_0x1279e3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x425527,_0x216c93,_0x3b8da0,_0x2d8e2e)=>{this['activeView']=_0x3b8da0?this['_getViewForChange'](_0x3b8da0):null,this['editor']['model']['change'](()=>{const _0x23f2c0=this['editor']['editing'];_0x2d8e2e&&(_0x2d8e2e['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x957d14=>{_0x957d14['removeClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x2d8e2e['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x2d8e2e['id'])),_0x3b8da0&&(_0x3b8da0['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x58fc91=>{_0x58fc91['addClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x3b8da0['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x3b8da0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4185ed,_0x4fb9c6)=>{if(this['activeChange'])return;const _0x145922=this['_findChangeIdFromDomTarget'](_0x4fb9c6['target']),_0x2deb52=this['_changeIdToChange']['get'](_0x145922);_0x2deb52?(this['_activeViewTarget']={'x':_0x4fb9c6['domEvent']['x'],'y':_0x4fb9c6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2deb52)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50cf37,_0x13c33e)=>{const _0x36cb9a=this['_findChangeIdFromDomTarget'](_0x13c33e['target']),_0x4275b3=this['_changeIdToChange']['get'](_0x36cb9a);_0x4275b3?(this['_activeViewTarget']={'x':_0x13c33e['domEvent']['x'],'y':_0x13c33e['domEvent']['y']},_0x4275b3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4275b3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x140cc5){do{const _0x5a8746=_0x140cc5['getAttribute']('data-change-id');if(_0x5a8746)return _0x5a8746;_0x140cc5=_0x140cc5['parent'];}while(_0x140cc5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x287bb6=>{for(const _0x2042bc of this['editor']['model']['markers'])_0x287bb6['removeMarker'](_0x2042bc);});}}function tt(_0x3e845c,_0x1e7cbb){return(_0x1d3bb8,_0x9a56ce,_0xcadafa)=>{if(!_0xcadafa['consumable']['test'](_0x9a56ce['markerRange'],_0x1d3bb8['name']))return;const _0x364ad0=_0x9a56ce['markerRange']['getWalker'](),_0x3d93c4=_0x9a56ce['markerRange']['start'],_0x41b976=_0x3e845c['model']['schema'];let _0x3856a2=null,_0x2c635c=null,_0x4dd4af=!0x1,_0x498906=!0x1;for(const _0x35c464 of _0x364ad0){const _0x5d631d=_0x35c464['item'];_0x4dd4af=_0x4dd4af||_0x41b976['isContent'](_0x5d631d);const _0x54e612=_0xcadafa['mapper']['toViewElement'](_0x5d631d);if(_0x54e612&&_0x54e612['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35c464['type']&&(_0x41b976['isBlock'](_0x5d631d)&&!_0x41b976['isLimit'](_0x5d631d)&&(_0x5d631d['nextSibling']||_0x3d93c4['isAtEnd']?_0x3856a2&&_0x3856a2['parent']==_0x5d631d||(_0x3856a2=_0x5d631d,_0x405ce3(_0x35c464['previousPosition']),_0x498906=!0x0):_0x2c635c=_0x2c635c||_0x35c464['previousPosition']));}function _0x405ce3(_0x5f4af7){const _0x226925=_0xcadafa['mapper']['toViewPosition'](_0x5f4af7),_0x596724=_0xcadafa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e7cbb});_0xcadafa['writer']['insert'](_0x226925,_0x596724),_0xcadafa['mapper']['bindElementToMarker'](_0x596724,_0x9a56ce['markerName']);}_0x4dd4af||_0x498906||!_0x2c635c||_0x405ce3(_0x2c635c);};}class _t extends _0x419747{constructor(_0x4bd8cb){super(_0x4bd8cb);const _0x42298f=_0x4bd8cb['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x42298f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42298f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5bfddb=this['editor'],_0x3891a1=_0x5bfddb['plugins']['get'](d),_0x34a657=_0x3891a1['isReady']?_0x3891a1['diff']['newRevisionId']:null;_0x5bfddb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x34a657);}['refresh'](){const {isReady:_0x12f4db,isEnabled:_0x164ddc,repository:_0x1b201d,diff:_0x117002}=this['editor']['plugins']['get'](d),_0x3383bd=_0x117002&&_0x1b201d['getLaterVisibleRevision'](_0x117002['newRevisionId']);this['isEnabled']=_0x12f4db&&_0x164ddc&&Boolean(_0x3383bd);}}class yt extends _0x419747{['_step'];constructor(_0x1aa893,{direction:_0x5d3cfc}){super(_0x1aa893);const _0x13f990=_0x1aa893['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d3cfc?0x1:-0x1,this['listenTo'](_0x13f990,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x50a76f=this['editor'],_0x39c171=_0x50a76f['plugins']['get'](d),{isNavigationMode:_0x400131,currentChangeNumber:_0x29692e}=_0x39c171;let _0x52b84a;if(_0x39c171['activeChange']=_0x400131?_0x39c171['diff']['changes']['get'](_0x29692e+this['_step']):_0x39c171['diff']['changes']['first'],_0x39c171['activeChange']['data']['isOnRoot'])_0x52b84a=_0x50a76f['editing']['view']['getDomRoot'](_0x39c171['activeChange']['rootName']);else{const _0xf8eb79=_0x50a76f['model']['markers']['get']('revision:'+_0x39c171['activeChange']['id']);_0x52b84a=_0x4c1d78(_0x50a76f['editing'],_0xf8eb79);}_0x2ad45b({'target':_0x52b84a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5d1573,currentChangeNumber:_0x4e6ad0,numberOfChanges:_0x1e31e2,isReady:_0x5c0b1f,isEnabled:_0x345560}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x345560&&_0x5c0b1f&&_0x1e31e2)&&(!_0x5d1573||(0x1===this['_step']?_0x4e6ad0<_0x1e31e2-0x1:_0x4e6ad0>0x0));}}class li extends ts{constructor(_0x9e279c){super(_0x9e279c);const _0x15a34c=this['bindTemplate'],_0xb5df65=new te(_0x9e279c),_0x572a88=new te(_0x9e279c);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',(_0x171e08,_0x91ef6d)=>_0x171e08&&_0x91ef6d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ae3c4,_0x43c934,_0x5dc501,_0x2440d0)=>{if(!_0x5ae3c4)return R(_0x9e279c,'Loading...');if(!_0x5dc501)return R(_0x9e279c,'No\x20changes');const _0x4039be=R(_0x9e279c,'NUMBER_OF_CHANGES',_0x5dc501);return _0x2440d0?R(_0x9e279c,'X_OF_Y_CHANGES',[_0x43c934+0x1,_0x5dc501]):_0x4039be;}),_0xb5df65['set']({'label':R(_0x9e279c,'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'}),_0x572a88['set']({'label':R(_0x9e279c,'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'}),_0xb5df65['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x572a88['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xb5df65['on']('execute',()=>this['fire']('execute','backward')),_0x572a88['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',_0x15a34c['if']('_isStatusLabelVisible','ck-hidden',_0x41465b=>!_0x41465b)]},'children':[{'text':_0x15a34c['to']('isNavigationMode',_0x3adf38=>_0x3adf38?R(_0x9e279c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x9e279c,'Total')+':\x20')}]},{'text':_0x15a34c['to']('_statusText')}]},new _0x4e96f3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xb5df65,_0x572a88]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6303e4=this['editor']['editing']['view'];_0x6303e4['change'](_0x4864ad=>{for(const _0x4ccc37 of _0x6303e4['document']['roots'])_0x4864ad['addClass'](le,_0x4ccc37);});}['hide'](){const _0x3abcf4=this['editor']['editing']['view'];_0x3abcf4['change'](_0x1300d0=>{for(const _0x130fa7 of _0x3abcf4['document']['roots'])_0x1300d0['removeClass'](le,_0x130fa7);});}}class m extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1bac38=this['editor'],_0x2f737c=_0x1bac38['plugins']['get'](d),_0x4b7ae4=_0x1bac38['plugins']['get'](ge);_0x1bac38['ui']['componentFactory']['add']('exitToEditing',_0x1e4d70=>{const _0x44da0d=new te(_0x1e4d70);return _0x44da0d['set']({'label':R(_0x1e4d70,'Back\x20to\x20editing'),'icon':_0x1fbbe3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44da0d,'execute',()=>{_0x1bac38['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44da0d;}),_0x1bac38['ui']['componentFactory']['add']('restoreRevision',_0x1c63ad=>{const _0x5b0214=new te(_0x1c63ad);return _0x5b0214['set']({'label':R(_0x1c63ad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b0214['bind']('isEnabled')['to'](_0x1bac38['commands']['get']('restoreRevision')),this['listenTo'](_0x5b0214,'execute',()=>_0x1bac38['execute']('restoreRevision')),_0x5b0214;}),_0x1bac38['ui']['componentFactory']['add']('changesNavigation',_0xa73327=>{const _0x21f088=new li(_0xa73327),_0x46355e=_0x1bac38['commands']['get']('showPreviousChange'),_0x4bc63b=_0x1bac38['commands']['get']('showNextChange');return _0x21f088['bind']('isBackwardNavigationEnabled')['to'](_0x46355e,'isEnabled'),_0x21f088['bind']('isForwardNavigationEnabled')['to'](_0x4bc63b,'isEnabled'),_0x21f088['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f737c),this['listenTo'](_0x21f088,'execute',(_0x4d9a4f,_0x116a2b)=>{_0x1bac38['execute']('forward'===_0x116a2b?'showNextChange':'showPreviousChange');}),_0x21f088;}),_0x4b7ae4['show'](),_0x2f737c['on']('change:isReady',(_0x456c58,_0x489d39,_0x57fc95)=>{_0x57fc95?_0x4b7ae4['hide']():_0x4b7ae4['show']();});}}class pt extends _0x3bef68{['_resizeObserver']=null;constructor(_0x49af24,_0x32e227){super(_0x49af24,_0x32e227);const _0x1f3d26=this['bindTemplate'];this['set']({'label':R(_0x49af24,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x49af24,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1f3d26['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 _0x3c624e=this['fieldView']['element'];this['_tooltipString']=_0x3c624e['scrollWidth']>_0x3c624e['clientWidth']&&_0x3c624e['value']||'';}}class ri extends ts{constructor(_0x243498,_0x37d636,_0x1e4568){super(_0x243498);const _0x216ba3=new _0x32e90e();_0x216ba3['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 _0xa16476=['ck','ck-revision-history-sidebar__revision-author'];_0x1e4568&&_0xa16476['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1fc14e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x243498,_0x1e4568?'Revision\x20creator':'Revision\x20author')},'children':[_0x216ba3,_0x37d636['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xa16476},'children':_0x1fc14e});}}function oi(_0x2fd70b,_0xf11441){const _0x4da873=_0x2fd70b['bindTemplate'],_0x37fd3e=_0x2fd70b['locale'],_0xb5ba94=_0x327b70(_0x37fd3e);_0xb5ba94['panelPosition']='sw';const _0x24fd62=function(_0x2f90ce,_0x1b27ef){const _0xd9f2ac=function(_0x57ed47,_0x5e3f62){const _0x358434=_0x57ed47['locale'],_0x47e7d6={'Compare\x20against\x20selected':R(_0x358434,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x358434,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x358434,'Restore\x20this\x20revision')};return _0x5e3f62['map'](_0x5d4432=>{const _0x725f0=_0x47e7d6[_0x5d4432['name']];return _0x725f0&&_0x725f0!==_0x5d4432['name']&&(_0x5d4432['name']=_0x725f0),_0x5d4432;});}(_0x2f90ce,_0x1b27ef),_0x554be0=new _0x24f698();for(const _0x4f368e of _0xd9f2ac){const _0x2c6b5b={'type':'button','model':new _0x2cea3a({'label':_0x4f368e['name'],'class':_0x4f368e['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f368e['action']})};_0x2c6b5b['model']['bind']('isEnabled')['to'](_0x2f90ce,'isActionsDropdownOpen',_0x3f3863=>'function'!=typeof _0x4f368e['isEnabled']||(!_0x3f3863||_0x4f368e['isEnabled'](_0x2f90ce))),_0x554be0['add'](_0x2c6b5b);}return _0x554be0;}(_0x2fd70b,_0xf11441);return _0x2fd70b['bind']('isActionsDropdownOpen')['to'](_0xb5ba94,'isOpen'),_0xb5ba94['buttonView']['set']({'label':R(_0x37fd3e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1fbbe3['threeVerticalDots']}),_0xb5ba94['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4da873['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4da873['to'](_0x22ab55=>_0x22ab55['stopPropagation']())}}),_0xb5ba94['on']('execute',_0x47038d=>{_0x2fd70b['isReady']&&'function'==typeof _0x47038d['source']['_action']&&_0x47038d['source']['_action'](_0x2fd70b);}),to(_0xb5ba94,_0x24fd62,{'role':'menu'}),_0xb5ba94['listenTo'](_0x2fd70b,'change:isActionsDropdownOpen',(_0x127d2c,_0x374868,_0x308f47)=>{if(_0x308f47)for(const _0x1a08e1 of _0xb5ba94['listView']['items']){const _0x4e93f7=_0x1a08e1['children']['first'],_0x4f03f6=_0xf11441['find'](_0x326912=>_0x326912['action']===_0x4e93f7['_action'])['isVisible'];_0x1a08e1['isVisible']=void 0x0===_0x4f03f6||_0x4f03f6(_0x2fd70b);}}),_0xb5ba94;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x16fb8d,_0x2030ae,_0x45842c,_0x4a0e78){super(_0x16fb8d);const _0x2b0668=this['bindTemplate'],_0x198183=function(_0x339227,_0x31f30c){const _0x13d000=Array['from'](_0x31f30c['authors'])['filter'](_0xac66ba=>_0xac66ba!=_0x31f30c['creator']);return _0x31f30c['creator']&&_0x13d000['unshift'](_0x31f30c['creator']),_0x13d000['map'](_0x196b8b=>new ri(_0x339227,_0x196b8b,_0x196b8b==_0x31f30c['creator']));}(_0x16fb8d,_0x2030ae);this['id']=_0x2030ae['id'],this['_revision']=_0x2030ae,this['_requireRevisionName']=_0x4a0e78,this['bind']('name','createdAt')['to'](_0x2030ae),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5ab238=>{return _0x2e21c8=_0x16fb8d['uiLanguage'],(_0x3a668a=_0x5ab238)['toLocaleDateString'](_0x2e21c8,{'month':'long','day':'numeric'})+',\x20'+_0x3a668a['toLocaleTimeString'](_0x2e21c8,{'hour':'numeric','minute':'numeric'});var _0x2e21c8,_0x3a668a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x16fb8d,_0x4d2d9f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xe1bfbb=>_0xe1bfbb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1c0c59,_0xf419a8)=>_0x1c0c59&&_0xf419a8),this['revisionActionsView']=_0x45842c&&_0x45842c['length']?oi(this,_0x45842c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2b0668['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2b0668['if']('isEnabled','ck-disabled',_0x426112=>!_0x426112),_0x2b0668['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2b0668['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2b0668['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':_0x2b0668['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':_0x198183}]},this['revisionActionsView']],'on':{'click':_0x2b0668['to'](_0x5b2b84=>{_0x5b2b84['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x26b19c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x26b19c,'change',()=>{this['_requireRevisionName']&&!_0x26b19c['value']||this['fire']('setName',{'id':this['id'],'name':_0x26b19c['value']}),_0x26b19c['value']||(_0x26b19c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x16e1e9,_0x2b882b){const _0x28992b=_0x49cbb2['fromJSDate'](_0x16e1e9)['setLocale'](_0x2b882b),_0x4bda5f=_0x49cbb2['local'](),_0x3a2d67=_0x4bda5f['minus']({'days':0x1})['startOf']('day');let _0x2bb55c,_0x2a650d;return _0x28992b['hasSame'](_0x4bda5f,'day')?(_0x2bb55c=_0x28992b['startOf']('day')['toJSDate'](),_0x2a650d=_0x28992b['toRelativeCalendar']()):_0x28992b['hasSame'](_0x3a2d67,'day')?(_0x2bb55c=_0x3a2d67['toJSDate'](),_0x2a650d=_0x28992b['toRelativeCalendar']()):_0x28992b['hasSame'](_0x4bda5f,'week')?(_0x2bb55c=_0x28992b['startOf']('week')['toJSDate'](),_0x2a650d=_0x28992b['weekdayLong']||''):_0x28992b['hasSame'](_0x4bda5f,'year')?(_0x2bb55c=_0x28992b['startOf']('month')['toJSDate'](),_0x2a650d=_0x28992b['monthLong']||''):(_0x2bb55c=_0x28992b['startOf']('year')['toJSDate'](),_0x2a650d=String(_0x28992b['year'])),{'startDate':_0x2bb55c,'localizedPeriodName':_0x2a650d};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x289c16,_0x188f40,_0x226a4d,_0x19f6c2){super(_0x289c16);const _0x336914=ci(_0x188f40,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x188f40,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x226a4d,this['_requireRevisionName']=_0x19f6c2,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':_0x336914}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x788d8f){const _0xbb3ba=new hi(this['locale'],_0x788d8f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xbb3ba);}['removeRevision'](_0xd9fc46){const _0x4c192e=this['revisionViews']['find'](_0x240132=>_0x240132['id']===_0xd9fc46['id']);this['revisionViews']['remove'](_0x4c192e);}}class as extends ts{constructor(_0x5cfc98){super(_0x5cfc98);const _0x3dca78=new _0x32e90e();_0x3dca78['content']=_0x1fbbe3['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3dca78,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5cfc98,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c8c54,_0x29cf0c,_0xfd107b,_0x5a042a){super(_0x5c8c54);const _0x53741c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x29cf0c,this['_revisionActions']=_0xfd107b,this['_requireRevisionName']=_0x5a042a,this['on']('select',(_0x1c1bd5,_0x7c5782)=>{this['fire']('revisionSelected',_0x7c5782);}),this['on']('setName',(_0x85a8b8,_0x3d1ada)=>{this['fire']('revisionSetName',_0x3d1ada);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5c8c54),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x53741c['if']('isEnabled','ck-disabled',_0x544c62=>!_0x544c62)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1b92c7 of this['_revisions'])this['_addRevision'](_0x1b92c7);this['_revisions']['on']('add',(_0x290bda,_0x733ec2)=>{this['_addRevision'](_0x733ec2);}),this['_revisions']['on']('remove',(_0x4da894,_0x4e4d67)=>{this['_removeRevision'](_0x4e4d67);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x241f56=>_0x241f56['revisionViews']['map'](_0x3095d3=>_0x3095d3))['flat']();}['selectRevision'](_0x3c1680){for(const _0x3b4709 of this['revisionViews'])_0x3c1680&&_0x3c1680['id']===_0x3b4709['id']?_0x3b4709['select']():_0x3b4709['deselect']();}['highlightRevisions'](_0x5c79c6){for(const _0x498f74 of this['revisionViews'])_0x5c79c6['some'](({id:_0x1b96c2})=>_0x1b96c2===_0x498f74['id'])?_0x498f74['highlight']():_0x498f74['unhighlight']();}['_addRevision'](_0x146bc8){const _0x803bd2=ci(_0x146bc8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3621f7=this['timePeriodViews']['get'](0x0);_0x3621f7&&_0x3621f7['startDate']['getTime']()===_0x803bd2['getTime']()||(_0x3621f7=new ai(this['locale'],_0x803bd2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3621f7)),_0x3621f7['addRevision'](_0x146bc8);}['_removeRevision'](_0x25111a){const _0x4068db=ci(_0x25111a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4068db)['removeRevision'](_0x25111a);}['_getTimePeriodViewByStartDate'](_0x4aa412){return this['timePeriodViews']['find'](_0x18945a=>_0x18945a['startDate']['getTime']()===_0x4aa412['getTime']());}}class g extends _0x27bfb5{['_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(_0x406b1c,_0x1225f3){super(_0x1225f3),this['sourceElement']=_0x406b1c,this['model']['document']['createRoot']();const _0x5b1cc7=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x5b1cc7);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x20087c,_0x2d6443){const _0x1276cf=new this(_0x20087c,_0x2d6443);return await _0x1276cf['initPlugins'](),await _0x1276cf['ui']['init'](_0x20087c),await _0x1276cf['data']['init'](_0x1276cf['config']['get']('initialData')||''),_0x1276cf['fire']('ready'),_0x1276cf;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x173480{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x430086){function _0x163c89(_0x21ac0b){return _0x21ac0b['map'](_0x16225a=>String['fromCharCode'](_0x16225a))['join']('');}super(_0x430086),this['result']='end',_0x430086[_0x163c89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163c89([0x76,0x69,0x65,0x77])][_0x163c89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x163c89([0x61,0x75,0x74,0x6f]),_0x430086[_0x163c89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x163c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x163c89([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x163c89([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x163c89([0x6f,0x6b])});}}class H extends _0x173480{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e5159){if(super(_0x4e5159),!this['editor']['config']['get']('revisionHistory'))throw new _0xd71846('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa421f0=>this['_showRevisionViewer']({..._0xa421f0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34ab00=>this['_closeRevisionViewer'](_0x34ab00)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x511499=>this['_restoreRevision'](_0x511499)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xb2df56){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xb2df56;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x745407){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x745407);}['getRevision'](_0x3ad1c3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ad1c3);}['getRevisions'](_0x4352ef){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4352ef||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x601821=this['editor'],_0x24b14d=_0x4edf6a(_0x601821,p),_0x390fd3=_0x601821['plugins']['get']('RevisionTracker'),_0x374d4b=_0x601821['plugins']['get']('Users')['users'];return _0x24b14d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x24b14d['lazyRoots'],(_0x24b14d['plugins']['push'](k,d,m,class extends _0x173480{static get['requires'](){return[d,'Users'];}['init'](){const _0x4ea901=this['editor']['plugins']['get']('Users');for(const _0x20416c of _0x374d4b)_0x20416c['isAnonymous']||_0x4ea901['getUser'](_0x20416c['id'])||_0x4ea901['addUser'](_0x20416c);const _0x28df7=_0x390fd3['repository']['getRevisions']();let _0x464f88=null;const _0x584178=this['editor']['plugins']['get']('RevisionViewer');_0x584178['adapter']=_0x390fd3['adapter'],_0x584178['bind']('isEnabled')['to'](_0x390fd3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x601821,'isReadOnly',_0x469f7d=>!_0x469f7d);for(const _0x5c3284 of _0x28df7){const _0x2a9cfc=null===_0x5c3284['creator'];if(_0x2a9cfc&&_0x5c3284['toVersion']===_0x5c3284['fromVersion'])continue;const _0x36788d=_0x5c3284['toJSON']();_0x584178['addRevisionData'](_0x36788d,(_0x24812f,_0x4d3370,_0x45c341)=>{if(_0x2a9cfc){if(_0x464f88)_0x464f88['_update'](_0x24812f,_0x4d3370);else{if(!_0x4d3370){const _0x7d61d1=_0x45c341['toJSON']();_0x7d61d1['id']=_0x443970(),_0x390fd3['saveRevision'](_0x7d61d1,_0x45c341['toVersion'])['then'](_0x23b696=>{_0x464f88=_0x23b696;});}}}else _0x5c3284['_update'](_0x24812f,_0x4d3370);});}}},g),_0x24b14d);}['_enhanceShowRevisionViewerCallback'](){const _0x13e7e1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x45ac35=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5615b8=this['editor']['plugins']['get']('Autosave');await _0x5615b8['save']();}else await _0x45ac35['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2e5cd9=this['editor']['plugins']['get']('Dialog');_0x2e5cd9['isOpen']&&_0x2e5cd9['hide']();}const _0x3bd428=this['_getRevisionViewerEditorConfig']();return _0x13e7e1(_0x3bd428)['then'](_0x4862f0=>{return(this['_viewerEditor']=_0x4862f0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4862f0;})['catch'](_0x22e7c=>(console['error'](_0x22e7c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x10931d=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'](),_0x10931d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4e52af=this['editor']['plugins']['get']('Annotations');_0x4e52af['refreshVisibility'](),_0x4e52af['refreshPositioning']();}})));}['_showRevisionViewer'](_0x122da6){const _0x8d3886=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x396cb1=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c9b68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1c9b68,_0x122da6)['then'](_0x5f2476=>(_0x396cb1['style']['display']='block',_0x8d3886['style']['display']='none',_0x5f2476));}['_closeRevisionViewer'](_0x828f66){const _0x219dfc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x219dfc['style']['display']='',_0x828f66['destroy']();}async['_restoreRevision'](_0xe2b072){const _0xd6eb6=this['editor'],_0xc1436d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43ecfd=_0xd6eb6['plugins']['get']('RevisionTracker'),_0x387194=_0xc1436d['repository']['getRevision'](_0xe2b072);let _0x1f78cd,_0x40fc7d,_0x4a648e;try{_0x1f78cd=await _0xc1436d['getRevisionData'](_0x387194),_0x40fc7d=await _0xc1436d['getRevisionRootsAttributes'](_0x387194);}catch(_0x2d3169){return void console['error'](_0x2d3169);}_0xd6eb6['model']['change'](_0x3c4ead=>{for(const _0x5bbd65 of Array['from'](_0xd6eb6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c4ead['removeMarker'](_0x5bbd65);}),_0xc1436d['isReady']=!0x1,_0xd6eb6['model']['enqueueChange'](_0x30519d=>{_0x30519d['setSelection'](null),_0x30519d['removeSelectionAttribute'](_0xd6eb6['model']['document']['selection']['getAttributeKeys']());const _0x4dfdcf=Object['keys'](_0x1f78cd);for(const _0x742a20 of _0xd6eb6['model']['document']['roots'])'$graveyard'!=_0x742a20['rootName']&&_0x742a20['isAttached']()&&!_0x4dfdcf['includes'](_0x742a20['rootName'])&&_0x30519d['detachRoot'](_0x742a20);for(const _0x32d799 of _0x4dfdcf){let _0x2db728=_0xd6eb6['model']['document']['getRoot'](_0x32d799);_0x2db728&&_0x2db728['isAttached']()||(_0x2db728=_0x30519d['addRoot'](_0x32d799));const _0x333220=_0x40fc7d[_0x32d799],_0x2f2edc=Object['keys'](_0x333220),_0x11d59e=_0x1f78cd[_0x32d799];for(const _0x91b79e of _0x2db728['getAttributeKeys']())_0x2f2edc['includes'](_0x91b79e)||_0x30519d['removeAttribute'](_0x91b79e,_0x2db728);for(const _0x57cca0 of _0x2f2edc)_0x30519d['setAttribute'](_0x57cca0,_0x40fc7d[_0x32d799][_0x57cca0],_0x2db728);_0x30519d['remove'](_0x30519d['createRangeIn'](_0x2db728)),_0x30519d['insert'](_0xd6eb6['data']['parse'](_0x11d59e,_0x2db728),_0x2db728,0x0);}});const _0x45565f=R(_0xd6eb6['locale'],'Restored');if(_0x387194['name'])_0x4a648e=-0x1==_0x387194['name']['indexOf'](_0x45565f)?_0x45565f+':\x20'+_0x387194['name']:_0x387194['name'];else _0x4a648e=_0x45565f+':\x20'+(_0x387194['createdAt']['toLocaleDateString'](_0xd6eb6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x387194['createdAt']['toLocaleTimeString'](_0xd6eb6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43ecfd['saveRevision']({'name':_0x4a648e}),_0xc1436d['isReady']=!0x0,_0xd6eb6['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(_0x208ad1){super(_0x208ad1),this['_revisionViewer']=_0x208ad1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3913f8=this['_revisionsRepository']['_revisions'],_0x13e671=this['_createRevisionActions'](),_0x20f84a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3913f8,_0x13e671,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',(_0x1c7287,_0x1d078c)=>{_0x1d078c['revisionViews']['on']('add',(_0x3809cc,_0x190b40)=>{_0x190b40['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)),_0x20f84a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x31d247=this['_revisionsRepository']['getRevision'](0x0);if(_0x31d247){const _0x54b653=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x31d247['id']);this['_revisionViewer']['compare'](_0x31d247,_0x54b653);}}['_handleRevisionSelected'](_0x20ada4,_0xb61620){const _0x5f1f1a=this['_revisionsRepository']['getRevision'](_0xb61620['id']),_0x2ed326=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5f1f1a['id']);this['_revisionViewer']['compare'](_0x5f1f1a,_0x2ed326);}['_handleRevisionSetName'](_0x1791dd,_0x264c77){this['_revisionsRepository']['getRevision'](_0x264c77['id'])['setName'](_0x264c77['name']);}['_handleDiffChange'](_0xc7354f,_0x4a1d73,_0x4c7d57){const _0x2be54b=this['_revisionsRepository']['getRevisionsInDiff'](_0x4c7d57);_0x2be54b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2be54b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2be54b[0x0]));}['_createRevisionActions'](){const _0x248e03=this['editor'],_0x195b17=g['availableRevisionActions'],_0x4cc222=_0x248e03['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x4cc222['length'])return _0x4cc222['map'](_0x370d13=>{const _0x5dd20b='string'==typeof _0x370d13?Object['assign']({},_0x195b17[_0x370d13]):_0x370d13;return _0x5dd20b['action']=_0x5dd20b['action']['bind'](this,_0x248e03),_0x5dd20b['isVisible']&&(_0x5dd20b['isVisible']=_0x5dd20b['isVisible']['bind'](this,_0x248e03)),_0x5dd20b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1d0cd2},_0x56011d)=>{const _0x3fdeff=_0x1d0cd2['get'](d),_0x534251=_0x3fdeff['repository'];let _0x34ff39=_0x3fdeff['diff']['newRevisionId'],_0x33d6f4=_0x56011d['id'];_0x534251['getIndex'](_0x34ff39)>_0x534251['getIndex'](_0x33d6f4)&&([_0x34ff39,_0x33d6f4]=[_0x33d6f4,_0x34ff39]),_0x3fdeff['compare'](_0x34ff39,_0x33d6f4);},'isVisible':({plugins:_0x5d6e19},_0x5754bb)=>{const _0x4d8996=_0x5d6e19['get'](d);return!(_0x4d8996['repository']['getRevisionsInDiff'](_0x4d8996['diff'])['length']>0x2)&&!_0x5754bb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x568735,{id:_0x492067})=>{_0x568735['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x492067);},'isVisible':({plugins:_0x20d49a},_0x3f1320)=>!!_0x20d49a['get'](d)['repository']['getLaterVisibleRevision'](_0x3f1320['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x57a374},{id:_0x22a02a,revisionNameView:_0x5643f0})=>{const _0x149c17=_0x57a374['get'](d),_0x450afc=_0x149c17['repository']['getEarlierVisibleRevision'](_0x22a02a);_0x149c17['compare'](_0x22a02a,_0x450afc),_0x5643f0['focus'](),_0x5643f0['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5e8d9e,_0x21d8d0){super(_0x5e8d9e),this['_view']=_0x21d8d0,this['_toolbarConfig']=ht(_0x5e8d9e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2d03e7){const _0x596c16=this['editor'],_0xd25ec4=this['view'],_0x2d5b09=_0x596c16['editing']['view'],_0x2ee3b5=_0xd25ec4['editable'],_0x4f02e6=_0x2d5b09['document']['getRoot']();_0x2ee3b5['name']=_0x4f02e6['rootName'],_0xd25ec4['render']();const _0x1c5c2e=_0x2ee3b5['element'];this['setEditableElement'](_0x2ee3b5['name'],_0x1c5c2e),_0xd25ec4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2d5b09['attachDomRoot'](_0x1c5c2e),this['_elementReplacer']['replace'](_0x2d03e7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x395a7b=this['view'],_0x3ea255=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ea255['detachDomRoot'](_0x395a7b['editable']['name']),_0x395a7b['destroy']();}['_initToolbar'](){const _0x153da0=this['view'];_0x153da0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x153da0['stickyPanel']['limiterElement']=_0x153da0['element'],_0x153da0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xc492f1})=>_0xc492f1),_0x153da0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x153da0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3df475,_0x1066c4,_0x3a63f5={}){super(_0x3df475),this['stickyPanel']=new lt(_0x3df475),this['toolbar']=new nt(_0x3df475,{'shouldGroupWhenFull':_0x3a63f5['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3df475,_0x1066c4);}['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(_0x2275a8,_0x1e1d8a){super(_0x1e1d8a),this['sourceElement']=_0x2275a8,this['model']['document']['createRoot']();const _0x585b93=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x585b93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xa6a62,_0x1181e3){const _0x43503e=new this(_0xa6a62,_0x1181e3);return await _0x43503e['initPlugins'](),await _0x43503e['ui']['init'](_0xa6a62),await _0x43503e['data']['init'](_0x43503e['config']['get']('initialData')||''),_0x43503e['fire']('ready'),_0x43503e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x27bfb5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11d80b){function _0x4211c1(_0x12e4dd){return _0x12e4dd['map'](_0x467dc3=>String['fromCharCode'](_0x467dc3))['join']('');}super(_0x11d80b),this['result']='end',_0x11d80b[_0x4211c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4211c1([0x76,0x69,0x65,0x77])][_0x4211c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4211c1([0x61,0x75,0x74,0x6f]),_0x11d80b[_0x4211c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4211c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4211c1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4211c1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4211c1([0x6f,0x6b])});}}class H extends _0x27bfb5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x26644a){if(super(_0x26644a),!this['editor']['config']['get']('revisionHistory'))throw new _0x53c33b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5f189a=>this['_showRevisionViewer']({..._0x5f189a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3869c4=>this['_closeRevisionViewer'](_0x3869c4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b801b=>this['_restoreRevision'](_0x2b801b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x351c5c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x351c5c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x263ac3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x263ac3);}['getRevision'](_0x6b2169){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6b2169);}['getRevisions'](_0x4b4e78){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b4e78||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x104fb8=this['editor'],_0x5dede2=_0x25769a(_0x104fb8,p),_0x3aa9b7=_0x104fb8['plugins']['get']('RevisionTracker'),_0x1bb9c6=_0x104fb8['plugins']['get']('Users')['users'];return _0x5dede2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5dede2['lazyRoots'],(_0x5dede2['plugins']['push'](k,d,m,class extends _0x27bfb5{static get['requires'](){return[d,'Users'];}['init'](){const _0x40a6a9=this['editor']['plugins']['get']('Users');for(const _0x324f77 of _0x1bb9c6)_0x324f77['isAnonymous']||_0x40a6a9['getUser'](_0x324f77['id'])||_0x40a6a9['addUser'](_0x324f77);const _0x3ca9d4=_0x3aa9b7['repository']['getRevisions']();let _0x4cbb94=null;const _0x189cd0=this['editor']['plugins']['get']('RevisionViewer');_0x189cd0['adapter']=_0x3aa9b7['adapter'],_0x189cd0['bind']('isEnabled')['to'](_0x3aa9b7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x104fb8,'isReadOnly',_0x5ba649=>!_0x5ba649);for(const _0x2b69f6 of _0x3ca9d4){const _0x56479a=null===_0x2b69f6['creator'];if(_0x56479a&&_0x2b69f6['toVersion']===_0x2b69f6['fromVersion'])continue;const _0x3787e7=_0x2b69f6['toJSON']();_0x189cd0['addRevisionData'](_0x3787e7,(_0x5d5c46,_0x3e58fa,_0x32fbd1)=>{if(_0x56479a){if(_0x4cbb94)_0x4cbb94['_update'](_0x5d5c46,_0x3e58fa);else{if(!_0x3e58fa){const _0x4b8f48=_0x32fbd1['toJSON']();_0x4b8f48['id']=_0x49b2b2(),_0x3aa9b7['saveRevision'](_0x4b8f48,_0x32fbd1['toVersion'])['then'](_0x39bae0=>{_0x4cbb94=_0x39bae0;});}}}else _0x2b69f6['_update'](_0x5d5c46,_0x3e58fa);});}}},g),_0x5dede2);}['_enhanceShowRevisionViewerCallback'](){const _0x2b8794=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5689a3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bb7e6=this['editor']['plugins']['get']('Autosave');await _0x4bb7e6['save']();}else await _0x5689a3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6a7eaa=this['editor']['plugins']['get']('Dialog');_0x6a7eaa['isOpen']&&_0x6a7eaa['hide']();}const _0x3d921f=this['_getRevisionViewerEditorConfig']();return _0x2b8794(_0x3d921f)['then'](_0x27c591=>{return(this['_viewerEditor']=_0x27c591,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x27c591;})['catch'](_0x131e49=>(console['error'](_0x131e49),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5896bd=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'](),_0x5896bd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x342515=this['editor']['plugins']['get']('Annotations');_0x342515['refreshVisibility'](),_0x342515['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5d040a){const _0x2b54d5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5a68e7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33bd77=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33bd77,_0x5d040a)['then'](_0x4b9126=>(_0x5a68e7['style']['display']='block',_0x2b54d5['style']['display']='none',_0x4b9126));}['_closeRevisionViewer'](_0x5552fc){const _0x55d5af=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x55d5af['style']['display']='',_0x5552fc['destroy']();}async['_restoreRevision'](_0x527666){const _0x49346b=this['editor'],_0x504897=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x674c8d=_0x49346b['plugins']['get']('RevisionTracker'),_0x113a94=_0x504897['repository']['getRevision'](_0x527666);let _0x25484d,_0x299753,_0x43c8a5;try{_0x25484d=await _0x504897['getRevisionData'](_0x113a94),_0x299753=await _0x504897['getRevisionRootsAttributes'](_0x113a94);}catch(_0x41d365){return void console['error'](_0x41d365);}_0x49346b['model']['change'](_0x441aa1=>{for(const _0x1d2e20 of Array['from'](_0x49346b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x441aa1['removeMarker'](_0x1d2e20);}),_0x504897['isReady']=!0x1,_0x49346b['model']['enqueueChange'](_0x35a0c9=>{_0x35a0c9['setSelection'](null),_0x35a0c9['removeSelectionAttribute'](_0x49346b['model']['document']['selection']['getAttributeKeys']());const _0x1b4784=Object['keys'](_0x25484d);for(const _0x1f55c2 of _0x49346b['model']['document']['roots'])'$graveyard'!=_0x1f55c2['rootName']&&_0x1f55c2['isAttached']()&&!_0x1b4784['includes'](_0x1f55c2['rootName'])&&_0x35a0c9['detachRoot'](_0x1f55c2);for(const _0x1f00c2 of _0x1b4784){let _0x160e6c=_0x49346b['model']['document']['getRoot'](_0x1f00c2);_0x160e6c&&_0x160e6c['isAttached']()||(_0x160e6c=_0x35a0c9['addRoot'](_0x1f00c2));const _0x2f7f39=_0x299753[_0x1f00c2],_0x2c3ed3=Object['keys'](_0x2f7f39),_0x2166bb=_0x25484d[_0x1f00c2];for(const _0x8f0a69 of _0x160e6c['getAttributeKeys']())_0x2c3ed3['includes'](_0x8f0a69)||_0x35a0c9['removeAttribute'](_0x8f0a69,_0x160e6c);for(const _0x1d9eae of _0x2c3ed3)_0x35a0c9['setAttribute'](_0x1d9eae,_0x299753[_0x1f00c2][_0x1d9eae],_0x160e6c);_0x35a0c9['remove'](_0x35a0c9['createRangeIn'](_0x160e6c)),_0x35a0c9['insert'](_0x49346b['data']['parse'](_0x2166bb,_0x160e6c),_0x160e6c,0x0);}});const _0xc0b4a6=R(_0x49346b['locale'],'Restored');if(_0x113a94['name'])_0x43c8a5=-0x1==_0x113a94['name']['indexOf'](_0xc0b4a6)?_0xc0b4a6+':\x20'+_0x113a94['name']:_0x113a94['name'];else _0x43c8a5=_0xc0b4a6+':\x20'+(_0x113a94['createdAt']['toLocaleDateString'](_0x49346b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a94['createdAt']['toLocaleTimeString'](_0x49346b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x674c8d['saveRevision']({'name':_0x43c8a5}),_0x504897['isReady']=!0x0,_0x49346b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|