@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250405.0 → 0.0.0-nightly-20250406.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 +11 -11
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x38fc2e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x467eff){super(),this['id']=_0x467eff['id']||_0x35025a(),this['creator']=_0x467eff['creator']||null,this['authors']=_0x467eff['authors']||[],this['diffData']=_0x467eff['diffData']||null,this['toVersion']=_0x467eff['toVersion']||0x0,this['fromVersion']=_0x467eff['fromVersion']||0x0,this['set']('name',_0x467eff['name']||''),this['set']('createdAt',_0x467eff['createdAt']||new Date()),this['set']('attributes',_0x467eff['attributes']||{});}['setName'](_0xd0e76e){this['_update']({'name':_0xd0e76e});}['setAttribute'](_0x1d5427,_0x38d218){const _0x2cae2f=_0x34117b(this['attributes']);_0x1d2faa(_0x2cae2f,_0x1d5427,_0x38d218),this['_update']({'attributes':_0x2cae2f});}['removeAttribute'](_0x4e3b30){const _0x445731=_0x34117b(this['attributes']);_0x437219(_0x445731,_0x4e3b30),this['_update']({'attributes':_0x445731});}['_update'](_0xf6cdf3,_0x37be42=!0x1){let _0xa5d017=!0x1;const _0x566e96={'id':this['id']},_0x43bdeb=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x190fea of _0x43bdeb){const _0x37a9ce=_0xf6cdf3[_0x190fea];void 0x0!==_0x37a9ce&&_0x37a9ce!==this[_0x190fea]&&(this[_0x190fea]=_0x37a9ce,_0x566e96[_0x190fea]=_0x37a9ce,_0xa5d017=!0x0);}_0xa5d017&&(_0x566e96['authors']&&(_0x566e96['authorsIds']=_0x566e96['authors']['map'](_0x5685e9=>_0x5685e9['id']),delete _0x566e96['authors']),this['fire']('_update',_0x566e96,_0x37be42));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x50f418=>_0x50f418['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x28ae17{['_revisions'];static get['requires'](){return[_0x5c61f4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x452b87){super(_0x452b87),this['_revisions']=new _0x1190c4();}['afterInit'](){!async function(_0x127692){const _0x6c8bc5=_0x442fd2([0x68,0x4e,0x67,0x56,0x61,0x41,0x43,0x36,0x71,0x30,0x59,0x78,0x66,0x6e,0x35,0x72,0x62,0x32,0x6d,0x73,0x4a,0x52,0x64,0x55,0x4b,0x38,0x6b,0x69,0x31,0x7a,0x39,0x6f,0x58,0x4f,0x45,0x75,0x5a,0x33,0x77,0x70,0x51,0x65,0x4d,0x63,0x46,0x34,0x49,0x6c,0x37,0x6a,0x57,0x74,0x48,0x54,0x53,0x4c,0x76,0x44,0x79,0x42,0x47,0x50]),_0x57ae7a=0xeb829,_0x12b6d9=0x767d2121,_0x16316b=0x767a4509^_0x12b6d9,_0x5ac6be=window[_0x442fd2([0x44,0x61,0x74,0x65])][_0x442fd2([0x6e,0x6f,0x77])](),_0x3bfee6=_0x127692[_0x442fd2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58799e=new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5847ef=>{_0x3bfee6[_0x442fd2([0x6f,0x6e,0x63,0x65])](_0x442fd2([0x72,0x65,0x61,0x64,0x79]),_0x5847ef);}),_0xf5cbb9={[_0x442fd2([0x6b,0x74,0x79])]:_0x442fd2([0x45,0x43]),[_0x442fd2([0x75,0x73,0x65])]:_0x442fd2([0x73,0x69,0x67]),[_0x442fd2([0x63,0x72,0x76])]:_0x442fd2([0x50,0x2d,0x32,0x35,0x36]),[_0x442fd2([0x78])]:_0x442fd2([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]),[_0x442fd2([0x79])]:_0x442fd2([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]),[_0x442fd2([0x61,0x6c,0x67])]:_0x442fd2([0x45,0x53,0x32,0x35,0x36])},_0x53991e=_0x3bfee6[_0x442fd2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x442fd2([0x67,0x65,0x74])](_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x131c16(){let _0x461a8d,_0x38ec25=null,_0x449b8f=null;try{if(_0x53991e==_0x442fd2([0x47,0x50,0x4c]))return _0x442fd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x461a8d=_0x39d43e(),!_0x461a8d)return _0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x461a8d[_0x442fd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x449b8f=_0xe04335(_0x461a8d[_0x442fd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x461a8d[_0x442fd2([0x6a,0x74,0x69])])),await _0x5cc37e()?_0x279456()?_0xe29eca()?_0x442fd2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x182e62()?(_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x442fd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38ec25=_0x3a3bb5(_0x442fd2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x442fd2([0x74,0x72,0x69,0x61,0x6c])&&(_0x38ec25=_0x3a3bb5(_0x442fd2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d8559()):_0x442fd2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x442fd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bae86){return _0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe29eca(){const _0x19adac=[_0x442fd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x442fd2([0x74,0x72,0x69,0x61,0x6c])][_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ac6be/0x3e8:0xe10*_0x16316b;return _0x461a8d[_0x442fd2([0x65,0x78,0x70])]<_0x19adac;}function _0x279456(){const _0x4e1a3d=_0x461a8d[_0x442fd2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e1a3d)return!0x1;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x2a])))return!0x0;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x52,0x48])))return!0x0;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x52,0x52,0x48]))){if(_0x3d8c05())return!0x0;if(_0x36b5ec()||_0x27f9cd())return!0x0;}return!0x1;}function _0x182e62(){const _0x24c101=_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c101||0x0==_0x24c101[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa53255}=new URL(window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c101[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa53255))return!0x0;const _0x48ec6c=_0xa53255[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e]));return _0x24c101[_0x442fd2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf633e8=>_0xf633e8[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x2a])))[_0x442fd2([0x6d,0x61,0x70])](_0x1a43de=>_0x1a43de[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e])))[_0x442fd2([0x73,0x6f,0x6d,0x65])](_0x4a2eda=>_0x48ec6c[_0x442fd2([0x65,0x76,0x65,0x72,0x79])]((_0x4d846e,_0x165b60)=>_0x4a2eda[_0x165b60]===_0x4d846e||_0x4a2eda[_0x165b60]===_0x442fd2([0x2a])));}function _0x4d8559(){return _0x38ec25&&_0x449b8f?new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0e48,_0x2a32ff)=>{_0x38ec25[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x5b0e48,_0x2a32ff),_0x449b8f[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x304d69=>{_0x304d69!=_0x442fd2([0x56,0x61,0x6c,0x69,0x64])&&_0x5b0e48(_0x304d69);},_0x2a32ff);}):_0x38ec25||_0x449b8f||_0x442fd2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe04335(_0x209ff6,_0x342f3a){return new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41b7dd=>{if(_0x426839())return _0x41b7dd(_0x442fd2([0x56,0x61,0x6c,0x69,0x64]));_0x222eae(),_0x3bfee6[_0x442fd2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2678=!0x1;const _0x401c7e=_0x35025a();function _0x477c2(_0x51da86){return!!_0x51da86&&(typeof _0x51da86===_0x442fd2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51da86===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51da86[_0x442fd2([0x74,0x68,0x65,0x6e])]===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51da86[_0x442fd2([0x63,0x61,0x74,0x63,0x68])]===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53aefc(_0xb7e8f3){_0x5681a6(_0xb7e8f3)[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x545749=>{if(!_0x545749||_0x545749[_0x442fd2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x442fd2([0x6f,0x6b]))return _0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cdceb(_0x16c510(_0x401c7e+_0x342f3a))!=_0x545749[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x442fd2([0x56,0x61,0x6c,0x69,0x64]);})[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x503330=>(_0xc38fc(),_0x503330),()=>{const _0x53c4e7=_0x31a199();return null==_0x53c4e7?(_0xc38fc(),_0x442fd2([0x56,0x61,0x6c,0x69,0x64])):_0x442fd2(_0x5ac6be-_0x53c4e7>(0x5271a521^_0x12b6d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x41b7dd)[_0x442fd2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f12bb=0x764bcfa1^_0x12b6d9;function _0xc38fc(){const _0x4a4ac6=_0x442fd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdceb(_0x16c510(_0x209ff6)),_0x25db69=_0x4fb20f(_0x3cdceb(window[_0x442fd2([0x4d,0x61,0x74,0x68])][_0x442fd2([0x63,0x65,0x69,0x6c])](_0x5ac6be/_0x2f12bb)));window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442fd2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a4ac6,_0x25db69);}function _0x31a199(){const _0x330d40=_0x442fd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdceb(_0x16c510(_0x209ff6)),_0x2647e1=window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442fd2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x330d40);return _0x2647e1?window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fb20f(_0x2647e1),0x10)*_0x2f12bb:null;}function _0x5681a6(_0x1ddff7){return new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12ff8d,_0x1cdd8e)=>{_0x1ddff7[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x12ff8d,_0x1cdd8e),window[_0x442fd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cdd8e,0x767cf5e1^_0x12b6d9);});}}_0x3bfee6[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d7503,_0x452153)=>{if(_0x452153[0x0]!=_0x209ff6)return _0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x452153[0x1]={..._0x452153[0x1],[_0x442fd2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x401c7e};},{[_0x442fd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442fd2([0x68,0x69,0x67,0x68])}),_0x3bfee6[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c7f05=>{_0x477c2(_0x1c7f05[_0x442fd2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2678=!0x0,_0x53aefc(_0x1c7f05[_0x442fd2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x442fd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442fd2([0x6c,0x6f,0x77])}),_0x58799e[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>{_0x2c2678||_0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x426839(){return _0x3bfee6[_0x442fd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442fd2([0x76,0x69,0x65,0x77])][_0x442fd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x442fd2([0x61,0x75,0x74,0x6f]);}function _0x222eae(){_0x3bfee6[_0x442fd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442fd2([0x76,0x69,0x65,0x77])][_0x442fd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x442fd2([0x61,0x75,0x74,0x6f]);}}function _0x3a3bb5(_0x5ebb94){const _0x5b00d3=[new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3f52=>setTimeout(_0x5e3f52,0x76741fed^_0x12b6d9)),_0x58799e[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20241a=>{const _0x363a0f=0x767d2126^_0x12b6d9,_0x2a447a=_0x127692[_0x442fd2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x18d634(){_0x2a447a[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x363a0f&&_0x20241a();}_0x18d634(),_0x2a447a[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x61,0x64,0x64]),_0x18d634);})),new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4099af=>{function _0x38710d(){for(const _0x4c0fbe in window)if(window[_0x442fd2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x442fd2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4c0fbe))&&window[_0x4c0fbe]==_0x57ae7a)return _0x4099af();_0x3bfee6[_0x442fd2([0x73,0x74,0x61,0x74,0x65])]!=_0x442fd2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x442fd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38710d,0x767d32a9^_0x12b6d9);}_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38710d();})];return window[_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x442fd2([0x72,0x61,0x63,0x65])](_0x5b00d3)[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>_0x5ebb94);}async function _0x53b4f0(){if(await _0x58799e,_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x6c6c5e=_0x127692[_0x442fd2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x262e50=_0x127692[_0x442fd2([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])](_0x6c6c5e[_0x442fd2([0x69,0x64])]),_0x326472=_0x173fab(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x326472[_0x442fd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x6c6c5e['id'],_0x262e50?_0x262e50['id']:null,!0x0),_0x326472[_0x442fd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x326472[_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x326472[_0x442fd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x689f75,void(_0x326472[_0x442fd2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x689f75);}if(_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c6f9b=_0x173fab(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c6f9b[_0x442fd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c6f9b[_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c6f9b[_0x442fd2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x689f75,_0x3c6f9b[_0x442fd2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x689f75;}_0x3bfee6[_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x442fd2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x689f75,_0x3bfee6[_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x442fd2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x689f75,_0x3bfee6[_0x442fd2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d8c05(){return _0x3bc45c(_0x442fd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x173fab(_0x442fd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x442fd2([0x73,0x74,0x61,0x74,0x65])]==_0x442fd2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36b5ec(){return _0x3bc45c(_0x442fd2([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 _0x27f9cd(){return _0x3bc45c(_0x442fd2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xeb9c(_0x3e20b7){const _0x2259d5=_0x19a7ad();_0x3bfee6[_0x2259d5]=_0x442fd2([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])+_0x3e20b7,_0x3e20b7[_0x442fd2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x442fd2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x19a7ad()]=_0x57ae7a),_0x3e20b7!=_0x442fd2([0x56,0x61,0x6c,0x69,0x64])&&_0x53b4f0();}function _0x19a7ad(){const _0x188bc3=window[_0x442fd2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x442fd2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x442fd2([0x6e,0x6f,0x77])]())[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x442fd2([0x2e]),'');let _0xb3d61c=_0x442fd2([0x68]);for(let _0x1f89bc=0x0;_0x1f89bc<_0x188bc3[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f89bc+=0x2){let _0x48fe83=window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x188bc3[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f89bc,_0x1f89bc+0x2));_0x48fe83>=_0x6c8bc5[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48fe83-=_0x6c8bc5[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb3d61c+=_0x6c8bc5[_0x48fe83];}return _0xb3d61c;}function _0x39d43e(){const _0x473c3b=_0x53991e[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e]));if(0x3!=_0x473c3b[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37f4a5(_0x473c3b[0x1]);function _0x37f4a5(_0x2625fe){const _0x9b9227=_0x314f59(_0x2625fe);return _0x9b9227&&_0x127d70()?_0x9b9227:null;function _0x127d70(){const _0x33c000=_0x9b9227[_0x442fd2([0x6a,0x74,0x69])],_0xde44a=window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33c000[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33c000[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d2164={..._0x9b9227,[_0x442fd2([0x6a,0x74,0x69])]:_0x33c000[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33c000[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d2164[_0x442fd2([0x76,0x63])],_0x16c510(_0x1d2164)==_0xde44a;}}}async function _0x5cc37e(){let _0x1dd7f1=!0x0;try{const _0x4d436e=_0x53991e[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e])),[_0x1d8ffb,_0x1b3172,_0x25eaf5]=_0x4d436e;return _0x5dd8c5(_0x1d8ffb),await _0x178a0a(_0x1d8ffb,_0x1b3172,_0x25eaf5),_0x1dd7f1;}catch(_0x3ceecd){return!0x1;}function _0x5dd8c5(_0x1ce7a){const _0x5d38e0=_0x314f59(_0x1ce7a);_0x5d38e0&&_0x5d38e0[_0x442fd2([0x61,0x6c,0x67])]==_0x442fd2([0x45,0x53,0x32,0x35,0x36])||(_0x1dd7f1=!0x1);}async function _0x178a0a(_0x4a6fe3,_0x160e61,_0x3a5427){const _0x2aaa0a=window[_0x442fd2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x442fd2([0x66,0x72,0x6f,0x6d])](_0x26cb5c(_0x3a5427),_0x2a21c4=>_0x2a21c4[_0x442fd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2446e3=new window[(_0x442fd2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x442fd2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6fe3+_0x442fd2([0x2e])+_0x160e61),_0x3da452=window[_0x442fd2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x442fd2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3da452)return;const _0x3b871c=await _0x3da452[_0x442fd2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x442fd2([0x6a,0x77,0x6b]),_0xf5cbb9,{[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x45,0x43,0x44,0x53,0x41]),[_0x442fd2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x442fd2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3da452[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x45,0x43,0x44,0x53,0x41]),[_0x442fd2([0x68,0x61,0x73,0x68])]:{[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b871c,_0x2aaa0a,_0x2446e3)||(_0x1dd7f1=!0x1);}}function _0x314f59(_0x3183ea){return _0x3183ea[_0x442fd2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x442fd2([0x65,0x79]))?JSON[_0x442fd2([0x70,0x61,0x72,0x73,0x65])](_0x26cb5c(_0x3183ea)):null;}function _0x26cb5c(_0x1ed528){return window[_0x442fd2([0x61,0x74,0x6f,0x62])](_0x1ed528[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x442fd2([0x2b]))[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x442fd2([0x2f])));}function _0x16c510(_0x1a7394){let _0x567e02=0x1505;function _0x31136c(_0x39fc72){for(let _0x29ae63=0x0;_0x29ae63<_0x39fc72[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29ae63++){const _0x40256c=_0x39fc72[_0x442fd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29ae63);_0x567e02=(_0x567e02<<0x5)+_0x567e02+_0x40256c,_0x567e02&=_0x567e02;}}function _0x5d632e(_0x58d9a0){Array[_0x442fd2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58d9a0)?_0x58d9a0[_0x442fd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d632e):_0x58d9a0&&typeof _0x58d9a0==_0x442fd2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x442fd2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58d9a0)[_0x442fd2([0x73,0x6f,0x72,0x74])]()[_0x442fd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x531f4a,_0x58a40c])=>{_0x31136c(_0x531f4a),_0x5d632e(_0x58a40c);}):_0x31136c(window[_0x442fd2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58d9a0));}return _0x5d632e(_0x1a7394),_0x567e02>>>0x0;}function _0x3cdceb(_0x17d5a3){return _0x17d5a3[_0x442fd2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x442fd2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x442fd2([0x30]));}function _0x4fb20f(_0x22bceb){return _0x22bceb[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x442fd2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x442fd2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bc45c(_0x536e81){return _0x3bfee6[_0x442fd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x442fd2([0x68,0x61,0x73])](_0x536e81);}function _0x173fab(_0x1211c4){return _0x3bfee6[_0x442fd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x442fd2([0x67,0x65,0x74])](_0x1211c4);}function _0x689f75(){}function _0x442fd2(_0x2aebbe){return _0x2aebbe['map'](_0x39abae=>String['fromCharCode'](_0x39abae))['join']('');}_0xeb9c(await _0x131c16());}(this);}['createRevision'](_0x2c6583){const _0x5c42d7=this['editor']['plugins']['get']('Users');return new h({'id':_0x2c6583['id'],'name':_0x2c6583['name'],'creator':_0x2c6583['creatorId']?_0x5c42d7['getUser'](_0x2c6583['creatorId']):null,'diffData':_0x2c6583['diffData']||_0x2c6583['data'],'authors':_0x2c6583['authorsIds']['map'](_0x2cc513=>_0x5c42d7['getUser'](_0x2cc513)),'createdAt':new Date(_0x2c6583['createdAt']),'attributes':_0x2c6583['attributes'],'fromVersion':_0x2c6583['fromVersion'],'toVersion':_0x2c6583['toVersion']});}['addRevision'](_0x15adc2,_0x221e84=0x0){this['_revisions']['add'](_0x15adc2,_0x221e84);}['getRevision'](_0x3e1bae){return this['_revisions']['get'](_0x3e1bae);}['getRevisions'](_0x1730fe={'toJSON':!0x1}){const _0xce23a5=Array['from'](this['_revisions']);return _0xce23a5['reverse'](),_0x1730fe['toJSON']?_0xce23a5['map'](_0x1acab1=>_0x1acab1['toJSON']()):_0xce23a5;}['getIndex'](_0x1893ca){return this['_revisions']['getIndex'](_0x1893ca);}['getEarlierVisibleRevision'](_0x3c6ae8){const [,_0xb9c9b3]=this['getRevisionsIterator'](_0x3c6ae8,{'direction':'earlier'});return _0xb9c9b3;}['getLaterVisibleRevision'](_0x54b1b4){const [,_0x32bebd]=this['getRevisionsIterator'](_0x54b1b4,{'direction':'later'});return _0x32bebd;}['getRevisionsInDiff'](_0x2aacd7){const _0x31a63c=[];for(const _0x581ef8 of this['getRevisionsIterator'](_0x2aacd7['newRevisionId']))if(_0x31a63c['push'](_0x581ef8),_0x581ef8['id']===_0x2aacd7['oldRevisionId'])break;return _0x31a63c;}*['getRevisionsIterator'](_0x1ab92f,{direction:_0x2102e1='earlier',filter:_0x1980b8=()=>!0x0}={}){const _0x31d75e='earlier'===_0x2102e1?0x1:-0x1;let _0x51d8f1=this['_revisions']['get'](_0x1ab92f),_0x1e13d3=this['getIndex'](_0x51d8f1);for(yield _0x51d8f1;_0x51d8f1;){if(_0x1e13d3+=_0x31d75e,_0x51d8f1=this['getRevision'](_0x1e13d3),!_0x51d8f1)return;_0x1980b8(_0x51d8f1)&&(yield _0x51d8f1);}}}class V extends _0x28ae17{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x79fb41,'c'],[_0x515fc9,'a'],[_0x567e69,'e'],[_0x34696e,'r'],[_0x4f05c8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x79fb41],['a',_0x515fc9],['e',_0x567e69],['r',_0x34696e],['u',_0x4f05c8]]);async['loadRevisionData'](_0x5e5129,_0x6e52ce){if(_0x5e5129['diffData']||!_0x6e52ce)return;const _0x31bb2c=this['editor']['config']['get']('collaboration.channelId'),_0x238f45=await _0x6e52ce['getRevision']({'channelId':_0x31bb2c,'revisionId':_0x5e5129['id']});_0x5e5129['diffData']=_0x238f45['diffData'];}['getRevisionDocumentData'](_0x2b654a){const _0x1c8c0b={};for(const _0x29211a in _0x2b654a['diffData']){if(_0x2b654a['diffData'][_0x29211a]['attachChange']&&!_0x2b654a['diffData'][_0x29211a]['attachChange']['isAttached'])continue;const _0x235df6=this['_removeRevisionMarkers'](JSON['parse'](_0x2b654a['diffData'][_0x29211a]['insertions'])),_0x2a7514=this['editor']['editing']['view']['document'],_0x2441fb=new _0x6d880a(_0x2a7514,_0x235df6['map'](_0x2e024e=>this['_getViewFromDiffObj'](_0x2e024e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c8c0b[_0x29211a]=this['editor']['data']['processor']['toData'](_0x2441fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c8c0b;}['getRevisionRootsAttributes'](_0x44aeb7){const _0x197b77={};for(const _0x39a586 in _0x44aeb7['diffData'])_0x44aeb7['diffData'][_0x39a586]['attachChange']&&!_0x44aeb7['diffData'][_0x39a586]['attachChange']['isAttached']||(_0x197b77[_0x39a586]=_0x44aeb7['diffData'][_0x39a586]['attributesAfter']||{});return _0x197b77;}['_getTypeCharForViewElement'](_0x345b6a){return this['_viewClassToTypeChar']['get'](_0x345b6a['constructor']);}['_getViewFromDiffObj'](_0x59179c,_0x4e0bd9){const _0x4a90f5=this['editor']['editing']['view']['document'];if('string'==typeof _0x59179c)return new _0x26347f(_0x4a90f5,_0x59179c);{let _0x20f7e3,_0x1971e7;_0x1971e7='u'==_0x59179c['type']||'r'==_0x59179c['type']?[]:_0x59179c['children']['map'](_0x3e440f=>this['_getViewFromDiffObj'](_0x3e440f,_0x4e0bd9));const _0x1cd0c9=this['_typeCharToViewClass']['get'](_0x59179c['type'])||_0x393065,_0x385667=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x20f7e3=new _0x1cd0c9(_0x4a90f5,_0x59179c['name'],_0x59179c['attributes'],_0x1971e7),'u'==_0x59179c['type']){const _0x57c0a1=_0x59179c['children'][0x0];if(_0x20f7e3['render']=function(_0x284774){const _0x2fb2b9=_0x284774['createElement']('div');return _0x2fb2b9['innerHTML']=_0x57c0a1,_0x2fb2b9['childNodes'][0x0];},_0x4e0bd9){const _0x3a175d=new _0x6d880a(_0x4a90f5);_0x3a175d['_appendChild'](_0x20f7e3);const _0x4e09a3=Array['from'](_0x385667['viewChildrenToDom'](_0x3a175d,{'bind':!0x1})),_0x5e02c9=_0x385667['domDocument']['createElement']('div');_0x5e02c9['append'](..._0x4e09a3),_0x20f7e3=Array['from'](_0x385667['domChildrenToView'](_0x5e02c9))[0x0];}}else{if('r'==_0x59179c['type']){const _0x55fd53=_0x59179c['children'][0x0];if(_0x20f7e3['render']=function(_0x362c03){_0x362c03['innerHTML']=_0x55fd53;},_0x4e0bd9){const _0x2d9fd0=new _0x6d880a(_0x4a90f5);_0x2d9fd0['_appendChild'](_0x20f7e3);const _0x247133=Array['from'](_0x385667['viewChildrenToDom'](_0x2d9fd0,{'bind':!0x1})),_0x416141=_0x385667['domDocument']['createElement']('div');_0x416141['append'](..._0x247133);const _0x8dc5f3=Array['from'](_0x385667['domChildrenToView'](_0x416141));_0x8dc5f3['length']>0x1?_0x20f7e3['_appendChild'](_0x8dc5f3):_0x20f7e3=_0x8dc5f3[0x0];}}}if(_0x59179c['customProperties']){for(const [_0x1da83d,_0x45c9a3]of _0x59179c['customProperties'])_0x20f7e3['_setCustomProperty'](_0x1da83d,_0x45c9a3);}const _0x3a7b5b=_0x59179c['fillerOffset']||null;return _0x20f7e3['getFillerOffset']=()=>_0x3a7b5b,_0x20f7e3;}}['_makeModelFromViewString'](_0x33a46e){const _0x2e1b0a=JSON['parse'](_0x33a46e),_0x17a31b=this['editor']['editing']['view']['document'],_0x2fe054=new _0x6d880a(_0x17a31b,_0x2e1b0a['map'](_0x30fa33=>this['_getViewFromDiffObj'](_0x30fa33,!0x0)));return this['editor']['data']['toModel'](_0x2fe054);}['_removeRevisionMarkers'](_0x184b68){return(_0x184b68=_0x184b68['filter'](_0x106c16=>!_0x106c16['name']||'revision-start'!==_0x106c16['name']&&'revision-end'!==_0x106c16['name']))['forEach'](_0x5c1aeb=>{'string'!=typeof _0x5c1aeb&&(_0x5c1aeb['children']=this['_removeRevisionMarkers'](_0x5c1aeb['children']),_0x5c1aeb['attributes']=_0x5c1aeb['attributes']['filter'](_0x25a6e1=>!_0x25a6e1[0x0]['startsWith']('data-revision-')));}),_0x184b68;}}function g(_0x441ecc,_0x49a317,_0xeb1d62){const t=_0x441ecc['t'];switch(_0x49a317){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'},_0xeb1d62);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeb1d62);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x28ae17{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5c61f4,I,V,_0x5b1285];}constructor(_0x33b53f){super(_0x33b53f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b7c05=_0x35025a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b7c05},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x595448=this['repository']['getRevision'](0x0),_0xc516a8=_0x595448&&null===_0x595448['creator']?_0x595448:null;if(this['_continueCurrentRevision']=!!_0xc516a8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2349d9=this['_source']['getCurrentRevisionId'](),_0xb92b2d=this['repository']['getRevision'](_0x2349d9);if(_0xb92b2d)this['_startingVersion']=_0xb92b2d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12aa13=this['_source']['history']['_operations']['find'](_0x5ce293=>!_0x5ce293['_isInit']),_0x487cdc=_0x12aa13?_0x12aa13['baseVersion']:this['_source']['history']['version'];_0x595448?(_0x595448['toVersion']<_0x487cdc&&_0x595448['_update']({'toVersion':_0x487cdc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id'],this['_startingVersion']=_0xc516a8['fromVersion']):(this['_startingVersion']=_0x595448['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x487cdc,this['_continueCurrentRevision']=!0x1);}}else _0xc516a8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc516a8['toVersion'],this['editor']['model']['document']['history']['version']),_0xc516a8['fromVersion']===_0xc516a8['toVersion']?(0x0!==_0xc516a8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id'],this['_startingVersion']=_0xc516a8['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',_0x33c7a8=>!_0x33c7a8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24966a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d0cc1;for(const _0x1c8961 in _0x24966a){const _0xfc7f7a=_0x1c8961,_0xca9b72=_0x24966a[_0xfc7f7a];if('revisionHistoryLicenseKeyValid'==_0xca9b72||'revisionHistoryLicenseKeyInvalid'==_0xca9b72||'revisionHistoryLicenseKeyExpired'==_0xca9b72||'revisionHistoryLicenseKeyDomainLimit'==_0xca9b72||'revisionHistoryLicenseKeyNotAllowed'==_0xca9b72||'revisionHistoryLicenseKeyEvaluationLimit'==_0xca9b72||'revisionHistoryLicenseKeyTrialLimit'==_0xca9b72||'revisionHistoryLicenseKeyUsageLimit'==_0xca9b72){delete _0x24966a[_0xfc7f7a],_0x5d0cc1=_0xca9b72,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5d0cc1&&_0x24966a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5d0cc1&&_0x24966a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5d0cc1&&_0x24966a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x144bb1=this['repository']['getRevision'](0x0),_0x5a7650=await this['getRevisionDocumentData'](_0x144bb1),_0x40c643=await this['getRevisionRootsAttributes'](_0x144bb1);this['_replaceEditorDataWithRevisionData'](_0x5a7650,_0x40c643);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1b4dd1){this['_source']=_0x1b4dd1;}async['update'](){const _0xca532b=await this['_source']['getLatestVersion']();if(_0xca532b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3ce3d3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xca532b});_0x3ce3d3['authors']=_0x3ce3d3['authorsIds']['map'](_0x4f1844=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f1844)),this['currentRevision']['_update'](_0x3ce3d3);}}async['saveRevision'](_0x3ebe61={},_0x1c597c=null){const _0x3cf123=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1c597c>this['currentRevision']['toVersion']&&(_0x1c597c=null),null===_0x1c597c&&(_0x1c597c=await this['_source']['getLatestVersion']());const _0x3fb70f=this['_getFromVersion'](_0x1c597c),_0x346262=this['buildRevisionData']({'from':_0x3fb70f,'to':_0x1c597c});if(this['currentRevision']['toVersion']<_0x1c597c){const _0x27dc2a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1c597c,'to':_0x1c597c});_0x27dc2a['authors']=[],_0x27dc2a['authorsIds']=[],_0x27dc2a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x27dc2a,!0x0),delete _0x27dc2a['authors'],_0x3cf123['push'](_0x27dc2a);}_0x3ebe61['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ebe61['name']=_0x3ebe61['name']||null,_0x3ebe61['id']=_0x3ebe61['id']||_0x35025a(),_0x3ebe61={..._0x3ebe61,..._0x346262};const _0x206075=this['addRevisionData'](_0x3ebe61);_0x3cf123['push'](_0x3ebe61);const _0x1a2da2=this['repository']['getIndex'](_0x206075);if(0x0!==_0x1a2da2){const _0x20338d=this['repository']['getRevision'](_0x1a2da2-0x1);if(_0x20338d['fromVersion']!==_0x1c597c){const _0x569c06=this['_revisionDataBuilder']['getData'](_0x1c597c,_0x20338d['toVersion']),_0x3b7898={'id':_0x20338d['id'],'diffData':_0x569c06['diffData'],'authorsIds':_0x569c06['authorsIds'],'authors':_0x569c06['authorsIds']['map'](_0x34766e=>this['editor']['plugins']['get']('Users')['getUser'](_0x34766e)),'fromVersion':_0x1c597c};_0x20338d===this['currentRevision']&&(_0x3b7898['createdAt']=new Date(_0x3ebe61['createdAt']['getTime']()+0xa)),_0x20338d['_update'](_0x3b7898,!0x0),delete _0x3b7898['authors'],_0x3cf123['push'](_0x3b7898);}}if(this['adapter']){for(const _0x57a93d of _0x3cf123)this['_bufferUpdate'](_0x57a93d['id'],_0x57a93d,!0x0);this['sendBufferedUpdates']();}return _0x206075;}['addRevisionData'](_0x32c1be){const _0x47dc74=this['repository']['createRevision'](_0x32c1be);return this['adapter']&&_0x47dc74['on']('_update',(_0x57ab39,_0x4a7c22,_0x131902)=>{_0x131902||(this['_bufferUpdate'](_0x4a7c22['id'],_0x4a7c22,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x47dc74,this['_findInsertionIndex'](_0x47dc74)),_0x47dc74;}async['getRevisionDocumentData'](_0x2f2285){return await this['_utils']['loadRevisionData'](_0x2f2285,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f2285);}async['getRevisionRootsAttributes'](_0x1d2fdf){return await this['_utils']['loadRevisionData'](_0x1d2fdf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1d2fdf);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x58e3cc=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x321e62=0x0;_0x321e62<_0x58e3cc['length'];_0x321e62++){const _0x60193c=_0x58e3cc[_0x321e62];let _0x3aee8c=!0x1;for(const _0x20e1f3 of Object['keys'](_0x60193c))void 0x0===_0x60193c[_0x20e1f3]?delete _0x60193c[_0x20e1f3]:'id'!==_0x20e1f3&&(_0x3aee8c=!0x0);_0x3aee8c||(_0x58e3cc[_0x321e62]=null);}if(_0x58e3cc=_0x58e3cc['filter'](_0x189f19=>null!==_0x189f19),!_0x58e3cc['length'])return;for(let _0x2b35a8=0x0;_0x2b35a8<_0x58e3cc['length'];_0x2b35a8++){const _0x5341de=_0x58e3cc[_0x2b35a8];void 0x0!==_0x5341de['fromVersion']&&void 0x0===_0x5341de['toVersion']&&(_0x5341de['toVersion']=this['repository']['getRevision'](_0x5341de['id'])['toVersion']),void 0x0!==_0x5341de['toVersion']&&void 0x0===_0x5341de['fromVersion']&&(_0x5341de['fromVersion']=this['repository']['getRevision'](_0x5341de['id'])['fromVersion']);}const _0x506740=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x58e3cc,_0x506740)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x289b4d=>{if(_0x289b4d){for(const _0x2760f6 of _0x289b4d)this['setRevisionData']({'id':_0x2760f6['id'],'createdAt':_0x2760f6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x39dbb9=null,from:_0x39d5cb=null,to:_0x2d5b64=null}){_0x39d5cb=null!==_0x39d5cb?_0x39d5cb:_0x39dbb9['fromVersion'],_0x2d5b64=null!==_0x2d5b64?_0x2d5b64:_0x39dbb9['toVersion'];const _0x5c2d19=this['_revisionDataBuilder']['getData'](_0x39d5cb,_0x2d5b64),_0x15e8fe={'diffData':_0x5c2d19['diffData'],'authorsIds':_0x5c2d19['authorsIds'],'fromVersion':_0x39d5cb,'toVersion':_0x2d5b64};if(!_0x39dbb9||_0x2d5b64!==_0x39dbb9['toVersion']){const _0xe0c45=_0x2d5b64-0x1,_0x8edda1=this['_source']['history']['getOperation'](_0xe0c45);_0x15e8fe['createdAt']=_0x8edda1&&_0x8edda1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x39d5cb===this['_loadedStateData']['fromVersion']){for(const _0x150b98 of this['_loadedStateData']['authors'])_0x15e8fe['authorsIds']['includes'](_0x150b98['id'])||_0x15e8fe['authorsIds']['push'](_0x150b98['id']);}return _0x15e8fe;}['_bufferUpdate'](_0xd6c83a,_0x2ce437,_0xddfccc){if(this['_bufferedUpdates']['has'](_0xd6c83a)){const _0x1ca764=this['_bufferedUpdates']['get'](_0xd6c83a);_0x2ce437=_0xddfccc?{..._0x1ca764,..._0x2ce437}:{..._0x2ce437,..._0x1ca764};}this['_bufferedUpdates']['set'](_0xd6c83a,_0x2ce437);}['setRevisionData'](_0xdace2d){const _0x13cdb0=this['repository']['getRevision'](_0xdace2d['id']);if(_0xdace2d['createdAt']&&(_0xdace2d['createdAt']=new Date(_0xdace2d['createdAt'])),_0xdace2d['authorsIds']){const _0x3221d1=this['editor']['plugins']['get']('Users');_0xdace2d['authors']=_0xdace2d['authorsIds']['map'](_0xa82d31=>_0x3221d1['getUser'](_0xa82d31));}_0x13cdb0['_update'](_0xdace2d,!0x0);}['_createInitialRevision'](_0x31e48e){const _0x3e0104=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3e0104)this['_initialRevisionId']=_0x3e0104['id'];else{const _0x5a249b=!this['editor']['model']['document']['roots']['find'](_0x320bd0=>this['editor']['model']['hasContent'](_0x320bd0)),_0x3ea0e6=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e61fe=g(this['editor']['locale'],_0x5a249b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x31e48e,'to':_0x31e48e,'id':this['_initialRevisionId'],'name':_0x1e61fe,'creatorId':_0x3ea0e6});}}['_createCurrentRevision'](_0x14f0ac){const _0x49d8a2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x49d8a2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x14f0ac,'to':_0x14f0ac,'id':_0x49d8a2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4649fa,_0x13fdbc){let _0x5ba69d=this['editor']['config']['get']('initialData'),_0x4fc2c3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5ba69d){_0x5ba69d={};for(const _0x58afcc of this['editor']['model']['document']['getRootNames']())_0x5ba69d[_0x58afcc]='';}if('string'==typeof _0x5ba69d&&(_0x5ba69d={'main':_0x5ba69d}),void 0x0===_0x4fc2c3){_0x4fc2c3={};for(const _0x569e4a of this['editor']['model']['document']['getRootNames']())_0x4fc2c3[_0x569e4a]={};}let _0x9e7c0a=!0x1;const _0x52f9e5=Object['keys'](_0x5ba69d),_0xf7f4e1=Object['keys'](_0x4649fa);for(const _0x3b363e of _0x52f9e5){if(_0x5ba69d[_0x3b363e]!==_0x4649fa[_0x3b363e]&&''!==_0x5ba69d[_0x3b363e]['trim']()){_0x9e7c0a=!0x0;break;}if(!_0x497102(_0x4fc2c3[_0x3b363e],_0x13fdbc[_0x3b363e])&&Object['keys'](_0x4fc2c3[_0x3b363e])['length']>0x0){_0x9e7c0a=!0x0;break;}}_0x9e7c0a||(_0x9e7c0a=_0xf7f4e1['some'](_0x286f95=>!this['editor']['model']['document']['getRoot'](_0x286f95))),_0x9e7c0a&&_0x3e5cda('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5ba69d,'editorRootsAttributes':_0x4fc2c3,'revisionData':_0x4649fa,'revisionRootsAttributes':_0x13fdbc}),this['editor']['config']['set']('initialData',_0x4649fa),this['editor']['config']['set']('rootsAttributes',_0x13fdbc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2eb4b5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2eb4b5['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x11c01f){const _0x105f00=this['repository']['getRevisions']();_0x105f00['reverse']();let _0x3efab8=0x0;for(;_0x3efab8<_0x105f00['length'];){const _0x554439=_0x105f00[_0x3efab8];if(_0x554439===this['currentRevision']){_0x3efab8++;continue;}if(_0x554439['id']===this['_initialRevisionId'])break;const _0x6d8cba=_0x11c01f['toVersion']-_0x554439['toVersion']||_0x11c01f['fromVersion']-_0x554439['fromVersion'];if(_0x6d8cba>0x0)break;if(_0x6d8cba<0x0)_0x3efab8++;else{if(!_0x11c01f['creator']&&_0x554439['creator'])break;if(_0x554439['creator']||!_0x11c01f['creator']){if(_0x11c01f['createdAt']>_0x554439['createdAt'])break;_0x3efab8++;}else _0x3efab8++;}}return _0x3efab8;}['_getFromVersion'](_0x45c599){const _0x4e8a92=this['repository']['getRevisions']();_0x4e8a92['reverse'](),_0x4e8a92['shift']();const _0x87280c=_0x4e8a92['find'](_0x346d9a=>_0x346d9a['toVersion']<=_0x45c599)['toVersion'];return _0x87280c<this['_startingVersion']?this['_startingVersion']:_0x87280c;}['_makeRevision']({name:_0x1b914f,from:_0x31ef99,to:_0x30cbb7,creatorId:_0x3c42ee,id:_0x120aeb}){const _0x4e2540=this['buildRevisionData']({'from':_0x31ef99,'to':_0x30cbb7});_0x4e2540['name']=_0x1b914f,_0x4e2540['creatorId']=_0x3c42ee,_0x4e2540['id']=_0x120aeb;const _0x14a85f=this['addRevisionData'](_0x4e2540);return this['adapter']&&this['_bufferUpdate'](_0x4e2540['id'],_0x4e2540,!0x0),_0x14a85f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x16566c){this['editor']=_0x16566c,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'](_0x405e02){this['source']=_0x405e02;const _0x336168=new Map(),_0x11ffee=new Map(),_0x17e11f=this['editor']['model']['document']['roots']['map'](_0x1b6917=>_0x1b6917['rootName']);for(const _0x23be9c of _0x17e11f){const _0x1e90fa=this['editor']['model']['document']['getRoot'](_0x23be9c),_0xf0aee7=N(_0x1e90fa);_0x336168['set'](_0x23be9c,_0xf0aee7),_0x11ffee['set'](_0x23be9c,Object['fromEntries'](_0x1e90fa['getAttributes']()));}const _0x508c68=Array['from'](this['editor']['model']['markers'])['map'](_0x3c8a93=>[_0x3c8a93['name'],_0x3c8a93['getRange']()]),_0x3dc6f6=this['source']['version'];this['_saveMetaData'](_0x3dc6f6,_0x336168,_0x508c68,_0x11ffee),this['_startingRevisionId']=this['_revisionId'];const _0x42b96b=new Map(),_0x14a8d7=new Map();for(const _0x57382a of _0x17e11f){const _0x3c8a9b=P(_0x57382a);_0x42b96b['set'](_0x57382a,_0x3c8a9b),_0x14a8d7['set'](_0x57382a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42b96b,[],_0x14a8d7);}['getData'](_0x3b0c7b,_0x186ab7){if(this['_lastFrom']===_0x3b0c7b&&this['_lastTo']<=_0x186ab7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x186ab7,!0x0);else{if(!this['_savedMetaData']['has'](_0x3b0c7b)){const _0x1606bb=this['_getPreviousFrom'](_0x3b0c7b);this['_calculateMetaData'](_0x1606bb,_0x3b0c7b,!0x1);}this['_calculateMetaData'](_0x3b0c7b,_0x186ab7,!0x0);}return this['_lastFrom']=_0x3b0c7b,this['_lastTo']=_0x186ab7,this['_getState']();}['loadState'](_0x4127a7){const _0x1a0dc1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4127a7['fromVersion'],this['_lastTo']=_0x4127a7['toVersion'];for(const _0x47bcac in _0x4127a7['diffData']){const _0x51bfc0=_0x4127a7['diffData'][_0x47bcac]['attachChange'],_0x51a8ce=_0x34117b(_0x4127a7['diffData'][_0x47bcac]['attributesBefore'])||{},_0x9c83e0=_0x1a0dc1['_makeModelFromViewString'](_0x4127a7['diffData'][_0x47bcac]['deletions']);_0x9c83e0['rootName']=_0x47bcac,_0x9c83e0['_isAttached']=!_0x51bfc0||!_0x51bfc0['isAttached'],_0x9c83e0['isAttached']=()=>_0x9c83e0['_isAttached'],this['_baseRoots']['set'](_0x47bcac,_0x9c83e0),this['_baseRootsAttributes']['set'](_0x47bcac,_0x51a8ce),_0x51bfc0&&this['_touchedRoots']['set'](_0x47bcac,_0x51bfc0);const _0x184901=this['_makeIdsRoot'](_0x9c83e0);this['_baseIdsRoots']['set'](_0x47bcac,_0x184901);for(const [_0x416951,_0x32966c]of _0x9c83e0['markers']){if(!_0x416951['startsWith']('revision:'))continue;const _0x2b30ac=_0x416951['split'](':')[0x2];for(const _0x3cf967 of _0x32966c['getWalker']({'singleCharacters':!0x0})){const _0x2d62ca=this['_getVidAttributeName'](_0x3cf967),_0x5d22c6='elementEnd'==_0x3cf967['type']?_0x3cf967['previousPosition']['path']['slice'](0x0,-0x1):_0x3cf967['previousPosition']['path'],_0x489d0d=_0x184901['getNodeByPath'](_0x5d22c6)['getAttribute'](_0x2d62ca);this['_touched']['set'](_0x489d0d,{'userId':_0x2b30ac});}}}this['_startingRevisionId']=this['_revisionId'];const _0x37dc5e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x111380=>!this['_touched']['has'](_0x111380));let _0x3abe02=0x0;const _0x5ceae5=new Map();for(const _0x3c2a51 in _0x4127a7['diffData']){const _0xc124b8=_0x4127a7['diffData'][_0x3c2a51]['attachChange'],_0xbc07e3=_0x34117b(_0x4127a7['diffData'][_0x3c2a51]['attributesAfter'])||{},_0xfebaa6=_0x1a0dc1['_makeModelFromViewString'](_0x4127a7['diffData'][_0x3c2a51]['insertions']);_0xfebaa6['rootName']=_0x3c2a51,_0xfebaa6['_isAttached']=!_0xc124b8||_0xc124b8['isAttached'],_0xfebaa6['isAttached']=()=>_0xfebaa6['_isAttached'],this['_diffRoots']['set'](_0x3c2a51,_0xfebaa6),this['_diffRootsAttributes']['set'](_0x3c2a51,_0xbc07e3);const _0x36e9ab=this['_makeIdsRoot'](_0xfebaa6,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3c2a51,_0x36e9ab),_0x5ceae5['set'](_0x3c2a51,_0xfebaa6['isAttached']()?_0xbc07e3:{});for(const [_0x46519d,_0x35c14f]of _0xfebaa6['markers']){if(!_0x46519d['startsWith']('revision:'))continue;const _0x5a205a=_0x46519d['split'](':')[0x2];for(const _0x5d51d6 of _0x35c14f['getWalker']({'singleCharacters':!0x0})){const _0x21169b=this['_getVidAttributeName'](_0x5d51d6),_0x72e25=this['_revisionId']++,_0x492467='elementEnd'==_0x5d51d6['type']?_0x5d51d6['previousPosition']['path']['slice'](0x0,-0x1):_0x5d51d6['previousPosition']['path'];_0x36e9ab['getNodeByPath'](_0x492467)['_setAttribute'](_0x21169b,_0x72e25),this['_touched']['set'](_0x72e25,{'userId':_0x5a205a});}}for(const _0x588fad of this['editor']['model']['createRangeIn'](_0xfebaa6)['getWalker']({'singleCharacters':!0x0})){const _0xef2ccb=this['_getVidAttributeName'](_0x588fad),_0x631c36='elementEnd'==_0x588fad['type']?_0x588fad['previousPosition']['path']['slice'](0x0,-0x1):_0x588fad['previousPosition']['path'],_0x462908=_0x36e9ab['getNodeByPath'](_0x631c36);_0x462908['getAttribute'](_0xef2ccb)>0x0||_0x462908['_setAttribute'](_0xef2ccb,_0x37dc5e[_0x3abe02++]);}for(const [_0x32d8ea,_0x5abbc6]of _0xfebaa6['markers'])_0x32d8ea['startsWith']('revision:')||this['_markers']['set'](_0x32d8ea,_0x5abbc6);}const _0x57e6da=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x57e6da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57e6da,0x1));const _0x53a1dd=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x53a1dd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53a1dd,0x1));const _0x2e18c1=Array['from'](this['_diffRoots'])['map'](([_0x3eabfe,_0x273806])=>[_0x3eabfe,N(_0x273806)]);this['_saveMetaData'](this['_lastTo'],_0x2e18c1,this['_markers'],_0x5ceae5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x23c82b,_0x40be3b,_0x1463f5,_0x521b78){const _0x34cb2a=new Map(_0x40be3b),_0x41e8ca=new Map(_0x34117b(_0x521b78)),_0x5bc0cd=new Map();for(const [_0x1c4e89,_0x4d6afa]of _0x1463f5)_0x5bc0cd['set'](_0x1c4e89,{'start':_0x4d6afa['start']['clone'](),'end':_0x4d6afa['end']['clone'](),'rootName':_0x4d6afa['root']['rootName']});this['_savedMetaData']['set'](_0x23c82b,{'roots':_0x34cb2a,'markers':_0x5bc0cd,'rootsAttributes':_0x41e8ca});}['_removeMetaData'](_0xcca045){this['_savedMetaData']['delete'](_0xcca045);}['_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'](_0x3a7261,_0x22c4ae=null){let _0x1ecad5=null;_0x3a7261['is']('documentFragment')||(_0x1ecad5=new ut(_0x3a7261['name'],{'vid_start':null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++}));const _0x566707=[];for(const _0x44db4b of _0x3a7261['getChildren']())if(_0x44db4b['is']('element')){_0x566707['push'](this['_makeIdsRoot'](_0x44db4b,_0x22c4ae));const _0x5e46bd=_0x566707[_0x566707['length']-0x1];null!==_0x22c4ae&&(_0x22c4ae=_0x5e46bd['is']('element','$text')?_0x5e46bd['getAttribute']('vid')+0x1:_0x5e46bd['getAttribute']('vid_end')+0x1);}else{for(let _0x1c3c95=0x0;_0x1c3c95<_0x44db4b['offsetSize'];_0x1c3c95++)_0x566707['push'](new ut('$text',{'vid':null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++}));}if(_0x3a7261['is']('documentFragment')){const _0x82bee3=P(_0x3a7261['rootName']);return _0x82bee3['_insertChild'](0x0,_0x566707),_0x82bee3;}return _0x1ecad5['_setAttribute']('vid_end',null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++),_0x1ecad5['_insertChild'](0x0,_0x566707),_0x1ecad5;}['_calculateMetaData'](_0x36109f,_0x49d684,_0x54e16a){this['_reset']();const {roots:_0x1037e6,markers:_0x2f303e,rootsAttributes:_0xa670fc}=this['_savedMetaData']['get'](_0x36109f);this['_baseRoots']=new Map(_0x1037e6),this['_baseRootsAttributes']=new Map(_0x34117b(_0xa670fc));for(const [_0x1331ee,_0x3f2752]of this['_baseRoots'])if('$graveyard'!==_0x1331ee&&(this['_diffRoots']['set'](_0x1331ee,N(_0x3f2752)),this['_diffRootsAttributes']=new Map(_0x34117b(_0xa670fc)),_0x54e16a)){const _0x439182=this['_revisionId'];this['_idsRoots']['set'](_0x1331ee,this['_makeIdsRoot'](_0x3f2752)),this['_baseIdsRoots']['set'](_0x1331ee,this['_makeIdsRoot'](_0x3f2752,_0x439182));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x54e16a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24c6f6,_0x13d869]of _0x2f303e){const _0x261c26=this['_baseRoots']['get'](_0x13d869['rootName']),_0x270aac=this['_diffRoots']['get'](_0x13d869['rootName']),_0x3ca33e=new ft(this['_fixPosition'](_0x13d869['start'],_0x261c26),this['_fixPosition'](_0x13d869['end'],_0x261c26)),_0x569999=this['_fixRange'](_0x3ca33e,_0x270aac);_0x261c26['markers']['set'](_0x24c6f6,_0x3ca33e),this['_markers']['set'](_0x24c6f6,_0x569999);}this['_applyOperations'](_0x36109f,_0x49d684,_0x54e16a);}['_applyOperations'](_0x41f689,_0x362887,_0x4cdda2){for(const _0x309545 of this['source']['getOperations'](_0x41f689,_0x362887))this['_handleOperation'](_0x309545,_0x4cdda2);for(const _0x3f2ba6 of this['_diffRoots']['values']())_0x3f2ba6['markers']['clear']();for(const [_0x284dc0,_0x2560a3]of this['_markers']){this['_diffRoots']['get'](_0x2560a3['root']['rootName'])['markers']['set'](_0x284dc0,_0x2560a3['clone']());}const _0x39898e=new Map(),_0xf54d18=new Map();for(const [_0x55057c,_0xd72e4d]of this['_diffRoots'])_0x39898e['set'](_0x55057c,N(_0xd72e4d)),_0xf54d18['set'](_0x55057c,this['_diffRootsAttributes']['get'](_0x55057c));this['_saveMetaData'](_0x362887,_0x39898e,this['_markers'],_0xf54d18);}['_getPreviousFrom'](_0x51225e){const _0x431ac4=Array['from'](this['_savedMetaData']['keys']());_0x431ac4['sort']((_0x364ebc,_0x1e3f60)=>_0x364ebc-_0x1e3f60),_0x431ac4['reverse']();for(const _0x1522c2 of _0x431ac4)if(_0x1522c2<_0x51225e)return _0x1522c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x550aa,_0x55f62e){const _0x3318ee=Array['from'](_0x55f62e['markers'])['map'](([_0x5ec206,_0x4bf86b])=>[_0x5ec206,this['_fixRange'](_0x4bf86b,_0x550aa)]);_0x550aa['markers']=new Map(_0x3318ee);}['_transformMarkers'](_0x54793d){for(const _0x329481 of this['_markers']['values']()){const _0x49756b=_0x329481['getTransformedByOperation'](_0x54793d),_0x1fea3f=ft['_createFromRanges'](_0x49756b);_0x329481['start']=_0x1fea3f['start'],_0x329481['end']=_0x1fea3f['end'];}}['_handleOperation'](_0x331e7a,_0x5f5259){if('addRoot'!=_0x331e7a['type']&&'detachRoot'!=_0x331e7a['type']){if('insert'==_0x331e7a['type']){const _0x4d9a5a=_0x331e7a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4d9a5a)||(this['_diffRoots']['set'](_0x4d9a5a,P(_0x4d9a5a,!0x0)),this['_diffRootsAttributes']['set'](_0x4d9a5a,{}),_0x5f5259&&this['_idsRoots']['set'](_0x4d9a5a,P(_0x4d9a5a,!0x0)));}else{if('addRootAttribute'==_0x331e7a['type']||'removeRootAttribute'==_0x331e7a['type']||'changeRootAttribute'==_0x331e7a['type'])return void this['_handleRootAttributeOperation'](_0x331e7a);'marker'==_0x331e7a['type']&&this['_handleMarkerOperation'](_0x331e7a);}if('marker'!==_0x331e7a['type']){const _0x106410=this['_cloneOperation'](_0x331e7a,this['_diffRoots']);_0x106410['_execute'](),this['_transformMarkers'](_0x106410);}if(_0x5f5259)switch(_0x331e7a['type']){case'insert':this['_handleInsertOperation'](_0x331e7a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x331e7a);break;case'merge':this['_handleMergeOperation'](_0x331e7a);break;case'split':this['_handleSplitOperation'](_0x331e7a);}}else this['_handleRootOperation'](_0x331e7a,_0x5f5259);}['_cloneOperation'](_0x2e31dd,_0x19ef18){const _0x58cae8=_0x2e31dd['clone']();return _0x58cae8['_authorId']=_0x2e31dd['_authorId'],this['_fixOperation'](_0x58cae8,_0x19ef18),_0x58cae8;}['_getBaseVids'](_0x583f41){return _0x583f41['map'](_0x1601b7=>{const _0xbd560e=this['_getVidAttributeName'](_0x1601b7);return Number(_0x1601b7['item']['getAttribute'](_0xbd560e));});}['_generateTape'](_0x8caee2,_0x3ab6ba){if(_0x8caee2['is']('element','$text'))_0x3ab6ba['push']({'item':_0x8caee2,'type':'text'});else{_0x8caee2['is']('element')&&_0x3ab6ba['push']({'item':_0x8caee2,'type':'elementStart'});for(const _0x3505d0 of _0x8caee2['getChildren']())this['_generateTape'](_0x3505d0,_0x3ab6ba);_0x8caee2['is']('element')&&_0x3ab6ba['push']({'item':_0x8caee2,'type':'elementEnd'});}return _0x3ab6ba;}['_getState'](){const _0x21ff8e=new Map(this['_touched']),_0x27c1cc=new Map(_0x21ff8e),_0x49e7e6=new Map(),_0xbbf90e={'insertions':{},'deletions':{}},_0x123fa1={'insertions':{},'deletions':{}},_0x146f78=new Map(),_0x1de81b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1de81b['delete']('$graveyard');for(const _0xf21ff7 of _0x1de81b){const _0x5b99ec=this['_diffRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1),_0x2cf45e=this['_baseRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1);_0x5b99ec['isAttached']()||_0x2cf45e['isAttached']()?(_0xbbf90e['insertions'][_0xf21ff7]=N(_0x5b99ec),_0xbbf90e['deletions'][_0xf21ff7]=N(_0x2cf45e),this['_copyMarkers'](_0xbbf90e['deletions'][_0xf21ff7],_0x2cf45e),this['_copyMarkers'](_0xbbf90e['insertions'][_0xf21ff7],_0x5b99ec),_0x123fa1['insertions'][_0xf21ff7]=this['_generateTape'](this['_idsRoots']['get'](_0xf21ff7),[]),_0x123fa1['deletions'][_0xf21ff7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1),[])):_0x1de81b['delete'](_0xf21ff7);}for(const _0x5877c5 of _0x1de81b){const _0x259380=_0x123fa1['insertions'][_0x5877c5];for(const _0x420f4c of _0x259380){const _0x499529=this['_getVidAttributeName'](_0x420f4c),_0x13677b=_0x420f4c['item']['getAttribute'](_0x499529);_0x27c1cc['delete'](_0x13677b),_0x13677b>=this['_startingRevisionId']&&_0x49e7e6['set'](_0x13677b,_0x21ff8e['get'](_0x13677b));}}for(const _0x259939 of _0x1de81b){const _0x537c55=_0x123fa1['insertions'][_0x259939],_0x8c8d8a=this['_getBaseVids'](_0x123fa1['deletions'][_0x259939]);let _0x3dd719=0x0;for(const _0x28d410 of _0x537c55){const _0xcdeb25=this['_getVidAttributeName'](_0x28d410),_0x17fe7d=_0x28d410['item']['getAttribute'](_0xcdeb25);if(!_0x49e7e6['has'](_0x17fe7d)&&!_0x146f78['has'](_0x17fe7d)){if(_0x27c1cc['has'](_0x17fe7d))_0x3dd719++;else{if(_0x17fe7d!=_0x8c8d8a[_0x3dd719]){const _0x5db29d=_0x21ff8e['get'](_0x17fe7d)||_0x21ff8e['get'](_0x8c8d8a[_0x3dd719]);for(;_0x17fe7d!=_0x8c8d8a[_0x3dd719];)_0x27c1cc['has'](_0x8c8d8a[_0x3dd719])||(_0x146f78['set'](_0x8c8d8a[_0x3dd719],_0x5db29d),_0x21ff8e['set'](_0x8c8d8a[_0x3dd719],_0x5db29d)),_0x3dd719++;}_0x3dd719++;}}}}for(const _0x19f631 of _0x1de81b){const _0x5f59f8=_0x123fa1['insertions'][_0x19f631];for(const _0x12085f of _0x5f59f8){const _0xbbb8f7=this['_getVidAttributeName'](_0x12085f),_0x577f31=_0x12085f['item']['getAttribute'](_0xbbb8f7);if(_0x146f78['has'](_0x577f31)){const _0x12a0e3=_0x146f78['get'](_0x577f31);_0x27c1cc['has'](_0x577f31)||_0x27c1cc['set'](_0x577f31,{..._0x12a0e3}),_0x49e7e6['set'](_0x577f31,{..._0x12a0e3});}}}for(const _0x4502d1 of _0x27c1cc['keys']())_0x4502d1>=this['_startingRevisionId']&&_0x27c1cc['delete'](_0x4502d1);const _0x131359=new Map();for(const _0x3b31ed of _0x1de81b){let _0x321b0e=_0x123fa1['insertions'][_0x3b31ed];for(const _0x39c977 of _0x321b0e)if(_0x39c977['item']['is']('element','tableCell')){const _0x17604a=this['_getVidAttributeName'](_0x39c977),_0x2534d7=_0x39c977['item']['getAttribute'](_0x17604a);if(_0x49e7e6['has'](_0x2534d7)){const _0xa98675=_0x39c977['item']['parent']['parent']['getAttribute']('vid_start'),_0xae264c=_0x131359['get'](_0xa98675)||new Set();_0xae264c['add'](_0x49e7e6['get'](_0x2534d7)['userId']),_0x131359['set'](_0xa98675,_0xae264c);}}_0x321b0e=_0x123fa1['deletions'][_0x3b31ed];for(const _0x290d84 of _0x321b0e)if(_0x290d84['item']['is']('element','tableCell')){const _0x459569=this['_getVidAttributeName'](_0x290d84),_0xed94dd=_0x290d84['item']['getAttribute'](_0x459569);if(_0x27c1cc['has'](_0xed94dd)){const _0x11af88=_0x290d84['item']['parent']['parent']['getAttribute']('vid_start'),_0x58a9ac=_0x131359['get'](_0x11af88)||new Set();_0x58a9ac['add'](_0x27c1cc['get'](_0xed94dd)['userId']),_0x131359['set'](_0x11af88,_0x58a9ac);}}for(const _0x4c45ac of _0x131359['keys']())(_0x49e7e6['has'](_0x4c45ac)||_0x27c1cc['has'](_0x4c45ac))&&_0x131359['delete'](_0x4c45ac);}for(const _0x22bc2c of _0x1de81b){const _0xf42ea2=_0x123fa1['insertions'][_0x22bc2c];let _0x3868c2=null,_0x582ed9=null;for(const _0x3d42ab of _0xf42ea2){const _0xd38537=this['_getVidAttributeName'](_0x3d42ab),_0x12de22=_0x3d42ab['item']['getAttribute'](_0xd38537),_0x16407b=_0x131359['get'](_0x12de22);_0x16407b&&'elementStart'==_0x3d42ab['type']&&(_0x3868c2=Array['from'](_0x16407b)[0x0],_0x582ed9=_0x3d42ab['item']['getAttribute']('vid_end')),_0x3868c2&&(_0x27c1cc['set'](_0x12de22,{'userId':_0x3868c2}),_0x49e7e6['set'](_0x12de22,{'userId':_0x3868c2})),_0x12de22==_0x582ed9&&(_0x3868c2=null,_0x582ed9=null);}}const _0xcac2b6={},_0x4d5940=new Set();for(const _0x15c210 of _0x1de81b){const _0x26496c=_0xbbf90e['deletions'][_0x15c210],_0x1e62b1=_0xbbf90e['insertions'][_0x15c210];for(const {userId:_0x2dfd12}of this['_touchedMarkers']['values']())null!==_0x2dfd12&&_0x4d5940['add'](_0x2dfd12);for(const {userId:_0x3344c4}of this['_touchedRoots']['values']())null!==_0x3344c4&&_0x4d5940['add'](_0x3344c4);this['_markChanges'](_0x1e62b1,_0x123fa1['insertions'][_0x15c210],_0x49e7e6,'insertion',_0x4d5940),this['_markChanges'](_0x26496c,_0x123fa1['deletions'][_0x15c210],_0x27c1cc,'deletion',_0x4d5940),_0xcac2b6[_0x15c210]={'insertions':this['_prepareViewToSave'](_0x1e62b1),'deletions':this['_prepareViewToSave'](_0x26496c),'attachChange':this['_touchedRoots']['get'](_0x15c210)||null,'attributesBefore':_0x34117b(this['_baseRootsAttributes']['get'](_0x15c210))||{},'attributesAfter':_0x34117b(this['_diffRootsAttributes']['get'](_0x15c210))};}return{'diffData':_0xcac2b6,'authorsIds':Array['from'](_0x4d5940)};}['_processRootBeforeSave'](_0x27183d){for(const [,_0x215fd1]of _0x27183d['markers']){const _0x5291d2=_0x215fd1['start']['getAncestors']()['filter'](_0x285a6e=>'tableCell'==_0x285a6e['name']);for(const _0x10348f of _0x5291d2)0x1==_0x10348f['childCount']&&_0x10348f['getChild'](0x0)['is']('element','paragraph')&&_0x10348f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3374d0){this['_processRootBeforeSave'](_0x3374d0);const _0x1b1617=this['editor']['data']['toView'](_0x3374d0,{}),_0x28e986=Array['from'](_0x1b1617['getChildren']())['map'](_0x2abc6d=>this['_getViewJson'](_0x2abc6d));return JSON['stringify'](_0x28e986);}['_getViewJson'](_0x22e56a){if(_0x22e56a['is']('$text'))return _0x22e56a['data'];{const _0xa8046f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5f0ebc=_0x22e56a,_0x57e58f=this['editor']['data']['htmlProcessor']['domConverter'],_0x56053b={'type':_0xa8046f['_getTypeCharForViewElement'](_0x5f0ebc),'name':_0x5f0ebc['name'],'attributes':Array['from'](_0x5f0ebc['getAttributes']()),'children':Array['from'](_0x5f0ebc['getChildren']())['map'](_0x1becb7=>this['_getViewJson'](_0x1becb7))};if(_0x22e56a['is']('uiElement')&&'$comment'!=_0x22e56a['name']){const _0x116919=_0x22e56a['render'](_0x57e58f['domDocument'],_0x57e58f);_0x56053b['children']['push'](_0x116919['outerHTML']);}else{if(_0x22e56a['is']('rawElement')){const _0xef319e=_0x57e58f['domDocument']['createElement'](_0x5f0ebc['name']);_0x22e56a['render'](_0xef319e,_0x57e58f),_0x56053b['children']['push'](_0xef319e['innerHTML']);}}const _0x203538=Array['from'](_0x5f0ebc['getCustomProperties']());_0x203538['length']>0x0&&(_0x56053b['customProperties']=_0x203538);const _0x1672b2=_0x5f0ebc['getFillerOffset']();return null!==_0x1672b2&&(_0x56053b['fillerOffset']=_0x1672b2),_0x56053b;}}['_markChanges'](_0x45d797,_0x110b8f,_0x3d32e9,_0x482728,_0x4999f3){let _0x34db2b=null,_0x1283d5=null,_0x26c625=0x0;const _0x4827c6=this['editor']['model'];for(let _0x7fc2a=0x0;_0x7fc2a<_0x110b8f['length'];_0x7fc2a++){const _0x10deaf=this['_getVidAttributeName'](_0x110b8f[_0x7fc2a]),_0x1aa77a=_0x110b8f[_0x7fc2a]['item']['getAttribute'](_0x10deaf),_0x7357d5=_0x3d32e9['get'](_0x1aa77a),_0xa362ab=_0x7fc2a==_0x110b8f['length']-0x1;(!_0x34db2b&&_0x7357d5&&(_0x34db2b=_0x7357d5,_0x1283d5=_0x110b8f[_0x7fc2a]),_0x34db2b&&(!_0x7357d5||_0x7357d5['userId']!=_0x34db2b['userId']))&&(_0x5ec152(_0x7357d5,F(_0x1283d5,_0x45d797,_0x4827c6),F(_0x110b8f[_0x7fc2a],_0x45d797,_0x4827c6)),_0x34db2b=_0x7357d5||null,_0x1283d5=_0x7357d5?_0x110b8f[_0x7fc2a]:null),_0x34db2b&&_0xa362ab&&_0x5ec152(_0x7357d5,F(_0x1283d5,_0x45d797,_0x4827c6),B(_0x110b8f[_0x7fc2a],_0x45d797,_0x4827c6));}function _0x5ec152(_0x3572a7,_0x22f164,_0x5eacb1){const _0x1096cc=_0x34db2b['userId'],_0x3799b9='revision:'+_0x482728+':'+_0x1096cc+':'+_0x26c625++,_0x29f19d=_0x4827c6['createRange'](_0x22f164,_0x5eacb1);_0x45d797['markers']['set'](_0x3799b9,_0x29f19d),null!==_0x1096cc&&_0x4999f3['add'](_0x1096cc);}}['_getVidAttributeName'](_0x5493ba){switch(_0x5493ba['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x270772,_0x1c0993){_0x270772['baseVersion']=null;for(const _0x54e041 in _0x270772){const _0x2021ee=_0x270772[_0x54e041];if(_0x2021ee instanceof vt){const _0x3f936e=_0x1c0993['get'](_0x2021ee['root']['rootName']);_0x270772[_0x54e041]=this['_fixPosition'](_0x2021ee,_0x3f936e);}if(_0x2021ee instanceof ft){const _0x293aa6=_0x1c0993['get'](_0x2021ee['root']['rootName']);_0x270772[_0x54e041]=this['_fixRange'](_0x2021ee,_0x293aa6);}'root'===_0x54e041&&(_0x270772['root']=_0x1c0993['get'](_0x270772['root']['rootName']));}}['_fixRange'](_0x48fb4f,_0x3ce2b9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x48fb4f['start'],_0x3ce2b9),this['_fixPosition'](_0x48fb4f['end'],_0x3ce2b9));}['_fixPosition'](_0x3fc561,_0x4b3158){return this['editor']['model']['createPositionFromPath'](_0x4b3158,_0x3fc561['path'],_0x3fc561['stickiness']);}['_handleInsertOperation'](_0x541488){const _0x4683cd=this['_idsRoots']['get'](_0x541488['position']['root']['rootName']),_0x1668e1=this['_fixPosition'](_0x541488['position'],_0x4683cd),_0x9cccfe=null===_0x541488['_authorId']?null:_0x541488['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e9723=_0x1668e1['parent'],_0x18f68b=this['_revisionId'],_0x58ad5a=[];for(const _0x2e93cc of _0x541488['nodes'])if(_0x2e93cc['is']('element'))_0x58ad5a['push'](this['_makeIdsRoot'](_0x2e93cc));else{for(let _0x2291bd=0x0;_0x2291bd<_0x2e93cc['offsetSize'];_0x2291bd++)_0x58ad5a['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4f0add=this['_revisionId'];for(let _0x59170a=_0x18f68b;_0x59170a<_0x4f0add;_0x59170a++)this['_touched']['set'](_0x59170a,{'userId':_0x9cccfe});_0x5e9723['_insertChild'](_0x1668e1['offset'],_0x58ad5a);}['_handleMoveOperation'](_0x4add2d){(_0x4add2d=this['_cloneOperation'](_0x4add2d,this['_idsRoots']))['_execute']();const _0x4b760a=null===_0x4add2d['_authorId']?null:_0x4add2d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42505c=_0x4add2d['getMovedRangeStart'](),_0xbe622b=_0x42505c['parent'],_0x5b09fa=_0x42505c['offset'];!function _0x23229d(_0x35aa7e,_0x2b0d70,_0x4d3760,_0x4b500a){for(let _0x4ae9e8=_0x4d3760;_0x4ae9e8<_0x4b500a;_0x4ae9e8++){const _0x5168bd=_0x2b0d70['getChild'](_0x4ae9e8);_0x5168bd['is']('element','$text')?_0x35aa7e['set'](_0x5168bd['getAttribute']('vid'),{'userId':_0x4b760a}):(_0x35aa7e['set'](_0x5168bd['getAttribute']('vid_start'),{'userId':_0x4b760a}),_0x23229d(_0x35aa7e,_0x5168bd,0x0,_0x5168bd['childCount']),_0x35aa7e['set'](_0x5168bd['getAttribute']('vid_end'),{'userId':_0x4b760a}));}}(this['_touched'],_0xbe622b,_0x5b09fa,_0x5b09fa+_0x4add2d['howMany']);}['_handleMergeOperation'](_0x3358a2){const _0x23f38b=null===(_0x3358a2=this['_cloneOperation'](_0x3358a2,this['_idsRoots']))['_authorId']?null:_0x3358a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a553e=_0x3358a2['targetPosition']['parent'],_0x9cc17a=_0x3358a2['sourcePosition']['parent'],_0x8c5840=_0x3a553e['getAttribute']('vid_end'),_0x56a280=_0x9cc17a['getAttribute']('vid_start');_0x3a553e['_setAttribute']('vid_end',_0x9cc17a['getAttribute']('vid_end')),_0x9cc17a['_setAttribute']('vid_end',_0x8c5840),this['_touched']['set'](_0x56a280,{'userId':_0x23f38b}),this['_touched']['set'](_0x8c5840,{'userId':_0x23f38b}),_0x3358a2['_execute']();}['_handleSplitOperation'](_0x1a4e88){const _0x50b864=null===(_0x1a4e88=this['_cloneOperation'](_0x1a4e88,this['_idsRoots']))['_authorId']?null:_0x1a4e88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x263c81=_0x1a4e88['graveyardPosition'],_0x5482fc=_0x1a4e88['splitPosition']['parent'];_0x1a4e88['_execute']();const _0x58ce04=_0x5482fc['getAttribute']('vid_end'),_0x4eeb1a=_0x1a4e88['insertionPosition']['nodeAfter'];if(_0x263c81){const _0x1b0cc3=_0x4eeb1a['getAttribute']('vid_end'),_0x2dddbd=_0x5482fc['getAttribute']('vid_end');_0x5482fc['_setAttribute']('vid_end',_0x1b0cc3),_0x4eeb1a['_setAttribute']('vid_end',_0x2dddbd),this['_touched']['set'](_0x5482fc['getAttribute']('vid_end'),{'userId':_0x50b864}),this['_touched']['set'](_0x4eeb1a['getAttribute']('vid_start'),{'userId':_0x50b864});}else{const _0x356de5=this['_revisionId']++,_0x133f36=this['_revisionId']++;_0x5482fc['_setAttribute']('vid_end',_0x356de5),_0x4eeb1a['_setAttribute']('vid_start',_0x133f36),_0x4eeb1a['_setAttribute']('vid_end',_0x58ce04),this['_touched']['set'](_0x356de5,{'userId':_0x50b864}),this['_touched']['set'](_0x133f36,{'userId':_0x50b864});}}['_handleMarkerOperation'](_0x4e9913){if(!_0x4e9913['affectsData'])return;const _0x179f6a=(_0x4e9913=this['_cloneOperation'](_0x4e9913,this['_diffRoots']))['oldRange']?_0x4e9913['oldRange']['root']:null,_0x5f4a01=_0x4e9913['newRange']?_0x4e9913['newRange']['root']:null;_0x179f6a&&this['_markers']['delete'](_0x4e9913['name']),_0x5f4a01&&this['_markers']['set'](_0x4e9913['name'],_0x4e9913['newRange']['clone']());const _0x12a6a6=null===_0x4e9913['_authorId']?null:_0x4e9913['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50f77b=_0x4e9913['name'];if(!this['_touchedMarkers']['has'](_0x50f77b))return void this['_touchedMarkers']['set'](_0x50f77b,{'range':_0x4e9913['oldRange'],'userId':_0x12a6a6});const _0x577611=this['_touchedMarkers']['get'](_0x50f77b),_0x5b8a2c=_0x577611['range'],_0x8e2305=_0x4e9913['newRange'];null==_0x5b8a2c&&null==_0x8e2305||_0x5b8a2c&&_0x8e2305&&_0x5b8a2c['isEqual'](_0x8e2305)?this['_touchedMarkers']['delete'](_0x4e9913['name']):_0x577611['userId']=_0x12a6a6;}['_handleRootOperation'](_0x9db9a,_0x3a2251){this['_diffRoots']['has'](_0x9db9a['rootName'])?this['_diffRoots']['get'](_0x9db9a['rootName'])['_isAttached']=_0x9db9a['isAdd']:(this['_diffRoots']['set'](_0x9db9a['rootName'],P(_0x9db9a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x9db9a['rootName'],{}),_0x3a2251&&this['_idsRoots']['set'](_0x9db9a['rootName'],P(_0x9db9a['rootName'],!0x0)));const _0x71ab1f=null===_0x9db9a['_authorId']?null:_0x9db9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d6269=this['_touchedRoots']['get'](_0x9db9a['rootName']);_0x2d6269&&_0x2d6269['userId']===_0x71ab1f?this['_touchedRoots']['delete'](_0x9db9a['rootName']):this['_touchedRoots']['set'](_0x9db9a['rootName'],{'userId':_0x71ab1f,'isAttached':_0x9db9a['isAdd']});}['_handleRootAttributeOperation'](_0x2232f6){const _0x55d4b0=this['_diffRootsAttributes']['get'](_0x2232f6['root']['rootName']);null===_0x2232f6['newValue']?delete _0x55d4b0[_0x2232f6['key']]:_0x55d4b0[_0x2232f6['key']]=_0x2232f6['newValue'];}}function N(_0x1efe82){const _0x1c214a=P(_0x1efe82['rootName'],_0x1efe82['isAttached']());for(const _0x50b420 of _0x1efe82['getChildren']()){const _0x176250=_0x50b420['_clone'](!0x0);_0x1c214a['_appendChild'](_0x176250);}return _0x1c214a;}function P(_0x149090,_0x2773c3=!0x0){const _0x431f86=new gt();return _0x431f86['rootName']=_0x149090,_0x431f86['_isAttached']=_0x2773c3,_0x431f86['isAttached']=()=>_0x431f86['_isAttached'],_0x431f86;}function F(_0x3d3325,_0x3d7d7b,_0x7d4049){const _0x26d09f='elementEnd'==_0x3d3325['type']?_0x7d4049['createPositionAt'](_0x3d3325['item'],'end'):_0x7d4049['createPositionBefore'](_0x3d3325['item']);return _0x7d4049['createPositionFromPath'](_0x3d7d7b,_0x26d09f['path'],_0x26d09f['stickiness']);}function B(_0x4dde7d,_0x49cac4,_0x4f5df2){const _0x106fd2='elementStart'==_0x4dde7d['type']?_0x4f5df2['createPositionAt'](_0x4dde7d['item'],0x0):_0x4f5df2['createPositionAfter'](_0x4dde7d['item']);return _0x4f5df2['createPositionFromPath'](_0x49cac4,_0x106fd2['path'],_0x106fd2['stickiness']);}class os extends _0x1528d9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x333b79,_0x3db64e){super(_0x333b79),this['focusTracker']=new _0x41023d(),this['keystrokes']=new _0x273cb9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3db64e),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'](),_0xb1bae6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x59c949=_0x21f3b4=>_0x21f3b4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x59c949),this['keystrokes']['set']('arrowleft',_0x59c949),this['keystrokes']['set']('arrowup',_0x59c949),this['keystrokes']['set']('arrowdown',_0x59c949);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x57ebe5){this['revisionNameInputView']['fieldView']['element']['value']=_0x57ebe5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4fa76e){const _0x320949=new nt(this['locale'],ti),_0x297159=_0x320949['fieldView'];_0x297159['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5d78e8=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4fa76e&&(_0x5d78e8+='\x20('+g(this['locale'],'optional')+')'),(_0x320949['label']=_0x5d78e8,_0x297159['on']('input',()=>{this['revisionNameInputValue']=_0x297159['element']['value']['trim']();}),_0x320949);}}class f extends _0x28ae17{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x58e2e6=this['editor'],_0x5ebf44=_0x58e2e6['plugins']['get']('RevisionTracker');_0x58e2e6['ui']['componentFactory']['add']('revisionHistory',_0x23d54c=>{const _0x5de0a5=_0x5be76e(_0x23d54c),_0x21fe5b=_0x5de0a5['panelView']['children'],_0x39ffdb=new _0x5cb1e7(_0x23d54c),_0x1c436c=new te(_0x23d54c),_0x48f44b=new _0x4a8ccc(_0x23d54c),_0x2f58b1=new te(_0x23d54c),_0x352e60=new _0x4a8ccc(_0x23d54c);return _0x5de0a5['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x5ebf44,'isEnabled',_0x58e2e6,'isReadOnly',(_0x4c4a6a,_0x20a587,_0x459cfd)=>_0x4c4a6a&&_0x20a587&&!_0x459cfd),_0x5de0a5['buttonView']['set']({'icon':_0x4c4ff0,'label':g(_0x23d54c,'Revision\x20history'),'tooltip':!0x0}),_0x48f44b['set']({'label':g(_0x23d54c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48f44b['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x5ebf44,'isEnabled',_0x58e2e6,'isReadOnly',(_0x2caa26,_0x3b0f34,_0x5c688a)=>_0x2caa26&&_0x3b0f34&&!_0x5c688a),_0x48f44b['on']('execute',()=>this['_showDialog']()),_0x352e60['set']({'label':g(_0x23d54c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x352e60['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x58e2e6,'isReadOnly',(_0x218c0c,_0x577d3c)=>_0x218c0c&&!_0x577d3c),_0x352e60['on']('execute',()=>{_0x58e2e6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5de0a5['isOpen']=!0x1,_0x58e2e6['editing']['view']['focus']();}),_0x1c436c['children']['add'](_0x48f44b),_0x2f58b1['children']['add'](_0x352e60),_0x39ffdb['role']='menu',_0x39ffdb['items']['addMany']([_0x1c436c,_0x2f58b1]),_0x21fe5b['add'](_0x39ffdb),_0x5de0a5;}),_0x58e2e6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x47e964=this['editor'],_0x2d377d=_0x47e964['locale'],_0x1ff172=new _0x5c84ce(_0x2d377d),_0x3e7e29=new _0x339021(_0x2d377d);_0x1ff172['buttonView']['set']({'icon':_0x4c4ff0,'label':g(_0x2d377d,'Revision\x20history')});const _0x1e2509=new _0x26cd45(_0x2d377d,_0x1ff172),_0xc6a4b2=new _0x5d0b75(_0x2d377d);_0xc6a4b2['set']({'label':g(_0x2d377d,'Save\x20current\x20revision')}),_0xc6a4b2['delegate']('execute')['to'](_0x1ff172),_0xc6a4b2['on']('execute',()=>{this['_showDialog']();}),_0x1e2509['children']['add'](_0xc6a4b2),_0x3e7e29['items']['add'](_0x1e2509);const _0x29e050=new _0x26cd45(_0x2d377d,_0x1ff172),_0x3747f3=new _0x5d0b75(_0x2d377d);return _0x3747f3['set']({'label':g(_0x2d377d,'Open\x20revision\x20history')}),_0x3747f3['delegate']('execute')['to'](_0x1ff172),_0x3747f3['on']('execute',()=>{_0x47e964['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29e050['children']['add'](_0x3747f3),_0x3e7e29['items']['add'](_0x29e050),_0x1ff172['panelView']['children']['add'](_0x3e7e29),_0x1ff172;}['_showDialog'](){const _0x16ad5c=this['editor'],_0x2a947a=_0x16ad5c['locale'],_0x451d2c=_0x16ad5c['plugins']['get']('Dialog'),_0x3fe47e=_0x16ad5c['plugins']['get']('RevisionTracker');function _0x2704ab(_0x1c7eaf){_0x16ad5c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1c7eaf['revisionName']?_0x1c7eaf['revisionNameInputView']['errorText']=g(_0x2a947a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x16ad5c['plugins']['get'](u)['saveRevision']({'name':_0x1c7eaf['revisionName']}),_0x451d2c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2704ab(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x451d2c['show']({'id':'revisionSave','title':g(_0x2a947a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x16ad5c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x451d2c['hide']()},{'label':g(_0x16ad5c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x48e786){_0x48e786['bind']('isEnabled')['to'](_0x3fe47e,'isReady',_0x3fe47e,'isEnabled',_0x16ad5c,'isReadOnly',(_0xf51b11,_0x49d93d,_0x4da774)=>_0xf51b11&&_0x49d93d&&!_0x4da774);},'onExecute':()=>_0x2704ab(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1343e4=this['editor'],_0x53b6f4=_0x1343e4['locale'];this['_saveRevisionFormView']=new os(_0x53b6f4,_0x1343e4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x1528d9{['changeId'];['_model'];constructor(_0x57705b,_0x554cc6){super(_0x57705b),this['_model']=_0x554cc6,this['changeId']=_0x554cc6['id'];const _0x36339e=this['bindTemplate'],_0xf05fa9=g(_0x57705b,_0x554cc6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x554cc6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x554cc6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x36339e['to']('type',_0x14324c=>'ck-revision-change__'+_0x14324c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xf05fa9}]},{'text':'\x20'+_0x554cc6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x38fc2e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4d1fc2){super(),this['id']=_0x4d1fc2['id']||_0x35025a(),this['author']=_0x4d1fc2['author'],this['type']=_0x4d1fc2['type'],this['data']=_0x4d1fc2['data']||{},this['rootName']=_0x4d1fc2['rootName'],this['set']('createdAt',_0x4d1fc2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x525058,_0x4f102e){this['newRevisionId']=_0x525058,this['oldRevisionId']=_0x4f102e,this['changes']=new _0x1190c4();}['_setChanges'](_0x2d9eca){for(const _0x1e4629 of _0x2d9eca)this['changes']['add'](_0x1e4629);}}class m extends _0x28ae17{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5c61f4,_0x5c2e60,I,V];}constructor(_0x5c8862){super(_0x5c8862),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1f9d89,_0x37b52e,_0x44c85b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x47dd59=>{for(const _0x3eb8ad of this['editor']['editing']['view']['document']['roots'])_0x44c85b?_0x47dd59['removeClass']('ck-editor__editable__overlay',_0x3eb8ad):_0x47dd59['addClass']('ck-editor__editable__overlay',_0x3eb8ad);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3e7d2f=>null!==_0x3e7d2f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2de225,_0x105f5f,_0x45cebf)=>_0x2de225&&_0x45cebf?_0x105f5f['changes']['getIndex'](_0x45cebf):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1a5d83,_0x9ed778)=>_0x1a5d83?_0x9ed778['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5c2e60);}['init'](){const _0x1f6ba9=this['editor'],_0x5d937e=new pt(_0x1f6ba9,{'direction':'backward'}),_0x3838cb=new pt(_0x1f6ba9,{'direction':'forward'});(_0x1f6ba9['commands']['add']('showPreviousChange',_0x5d937e),_0x1f6ba9['commands']['add']('showNextChange',_0x3838cb),_0x1f6ba9['commands']['add']('restoreRevision',new wt(_0x1f6ba9)),this['on']('change:numberOfChanges',()=>{_0x5d937e['refresh'](),_0x3838cb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f6ba9['enableReadOnlyMode']('revision-viewer'),_0x1f6ba9['plugins']['has']('WidgetToolbarRepository'))&&_0x1f6ba9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31c19f){return await this['_utils']['loadRevisionData'](_0x31c19f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31c19f);}async['getRevisionRootsAttributes'](_0x37644e){return await this['_utils']['loadRevisionData'](_0x37644e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x37644e);}async['compare'](_0x282226,_0x45a587,_0x2e34a1=!0x1){if(!this['isEnabled'])return;const _0x265ad1=this['diff'],_0x22e9bc=this['repository'],_0x1cf817='string'==typeof _0x282226?_0x22e9bc['getRevision'](_0x282226):_0x282226,_0x4ca5ca='string'==typeof _0x45a587?_0x22e9bc['getRevision'](_0x45a587):_0x45a587,_0x36fbd8=_0x1cf817['id'],_0x2ed2db=_0x4ca5ca?_0x4ca5ca['id']:null;if(!_0x2e34a1&&this['diff']&&this['diff']['newRevisionId']===_0x36fbd8&&this['diff']['oldRevisionId']===_0x2ed2db)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x36fbd8,_0x2ed2db);const _0x42397a=this['_getRevisionsRange'](_0x1cf817,_0x4ca5ca,!0x0)['map'](_0x246927=>this['_utils']['loadRevisionData'](_0x246927,this['adapter']));return _0x42397a['push'](new Promise(_0x3ac88d=>{setTimeout(_0x3ac88d,0x14);})),Promise['all'](_0x42397a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x116455=this['_getDiff'](_0x36fbd8,_0x2ed2db);for(const _0x3d68a4 of _0x116455['changes'])this['_changeIdToChange']['set'](_0x3d68a4['id'],_0x3d68a4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x142dc9=>{for(const _0x59641f of this['editor']['model']['document']['getRootNames']())_0x142dc9['detachRoot'](_0x59641f);for(const _0x236b13 of Object['keys'](_0x116455['model'])){const _0x573fb8=_0x142dc9['addRoot'](_0x236b13);for(const _0x3ef3a0 of Object['keys'](_0x116455['attributes'][_0x236b13]))_0x142dc9['setAttribute'](_0x3ef3a0,_0x116455['attributes'][_0x236b13][_0x3ef3a0],_0x573fb8);_0x142dc9['insert'](_0x116455['model'][_0x236b13],_0x573fb8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x116455['changes'])),this['isReady']=!0x0;})['catch'](_0x5c576f=>{console['error'](_0x5c576f),this['_cleanUp'](),_0x265ad1&&(this['diff']=_0x265ad1),this['isReady']=!0x0;});}['addRevisionData'](_0x452d6f,_0x24b344){const _0x4d7bee=this['repository']['createRevision'](_0x452d6f);return _0x4d7bee['on']('_update',(_0x1b1b49,_0x47cfb0,_0x3567a8)=>_0x24b344(_0x47cfb0,_0x3567a8,_0x4d7bee)),this['repository']['addRevision'](_0x4d7bee),_0x4d7bee;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2d47a5=>{for(const _0x3bc4d0 of this['editor']['model']['document']['getRootNames']())_0x2d47a5['detachRoot'](_0x3bc4d0);});}['_sortAndFilterDiffChanges'](_0x4941d2){const _0x107afa=[],_0x1b39f6=new Map();for(const _0x59b76d of this['editor']['model']['document']['getRootNames']()){const _0x4a82ef=this['editor']['editing']['view']['getDomRoot'](_0x59b76d);if(!_0x4a82ef)continue;const _0x4ef2bc=_0x4a82ef['getClientRects']()['item'](0x0);_0x4ef2bc&&(_0x107afa['push'](_0x59b76d),_0x1b39f6['set'](_0x59b76d,_0x4ef2bc));}return _0x107afa['sort']((_0x790ce9,_0x3a555c)=>{const _0x526b10=_0x1b39f6['get'](_0x790ce9),_0x3e8498=_0x1b39f6['get'](_0x3a555c);return _0x526b10['y']-_0x3e8498['y']||_0x526b10['x']-_0x3e8498['x'];}),(_0x4941d2=_0x4941d2['filter'](_0x340e38=>_0x107afa['includes'](_0x340e38['rootName'])))['sort']((_0x534444,_0x1e9c60)=>_0x107afa['indexOf'](_0x534444['rootName'])-_0x107afa['indexOf'](_0x1e9c60['rootName'])),_0x4941d2;}['_makeTape'](_0x4a24b0){const _0x2ee9ee=Array['from'](_0x4a24b0['markers'])['filter'](([_0x4cb5d8,_0x1564a0])=>_0x4cb5d8['startsWith']('revision:')&&!_0x1564a0['isCollapsed']),_0x5e9688=Array['from'](this['editor']['model']['createRangeIn'](_0x4a24b0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2ee9ee['length'])for(const _0x40fce4 of _0x5e9688){const [_0x3486d9,_0x37abf4]=_0x2ee9ee[0x0],[,_0x14ede0,_0x1c3d3e]=_0x3486d9['split'](':');if(_0x37abf4['end']['isEqual'](_0x40fce4['nextPosition'])&&_0x2ee9ee['shift'](),(_0x40fce4['previousPosition']['isEqual'](_0x37abf4['start'])||_0x40fce4['previousPosition']['isAfter'](_0x37abf4['start']))&&('insertion'==_0x14ede0?_0x40fce4['isAdded']={'userId':_0x1c3d3e}:'deletion'==_0x14ede0&&(_0x40fce4['isRemoved']={'userId':_0x1c3d3e})),0x0==_0x2ee9ee['length'])break;}return _0x5e9688;}['_refreshStartEndIndex'](_0x1fdae1){const _0x310e63=new Map();for(let _0x23540e=0x0;_0x23540e<_0x1fdae1['length'];_0x23540e++)'text'===_0x1fdae1[_0x23540e]['type']?(_0x1fdae1[_0x23540e]['item']['startIndex']=_0x23540e,_0x1fdae1[_0x23540e]['item']['endIndex']=_0x23540e):('elementStart'===_0x1fdae1[_0x23540e]['type']?_0x1fdae1[_0x23540e]['item']['startIndex']=_0x23540e:'elementEnd'===_0x1fdae1[_0x23540e]['type']&&(_0x1fdae1[_0x23540e]['item']['endIndex']=_0x23540e),_0x310e63['set'](_0x1fdae1[_0x23540e]['id'],_0x23540e));for(const _0x2ea9dc of _0x310e63['values']())'elementStart'===_0x1fdae1[_0x2ea9dc]['type']?_0x1fdae1[_0x2ea9dc]['item']['endIndex']=_0x310e63['get'](_0x1fdae1[_0x2ea9dc]['pairId']):'elementEnd'===_0x1fdae1[_0x2ea9dc]['type']&&(_0x1fdae1[_0x2ea9dc]['item']['startIndex']=_0x310e63['get'](_0x1fdae1[_0x2ea9dc]['pairId']));}['_processTape'](_0x53b1d9){for(let _0x5a425f=0x0;_0x5a425f<_0x53b1d9['length'];_0x5a425f++){if('elementStart'===_0x53b1d9[_0x5a425f]['type'])_0x53b1d9[_0x5a425f]['item']['startIndex']=_0x5a425f;else{if('elementEnd'===_0x53b1d9[_0x5a425f]['type']){_0x53b1d9[_0x5a425f]['item']['endIndex']=_0x5a425f;const _0x38d0a9=_0x53b1d9[_0x5a425f]['item']['startIndex'];_0x53b1d9[_0x38d0a9]['pairId']=_0x53b1d9[_0x5a425f]['id'],_0x53b1d9[_0x5a425f]['pairId']=_0x53b1d9[_0x38d0a9]['id'];}else _0x53b1d9[_0x5a425f]['item']['startIndex']=_0x5a425f,_0x53b1d9[_0x5a425f]['item']['endIndex']=_0x5a425f,_0x53b1d9[_0x5a425f]['pairId']=null;}_0x53b1d9[_0x5a425f]['markersStart']||(_0x53b1d9[_0x5a425f]['markersStart']=[],_0x53b1d9[_0x5a425f]['markersEnd']=[]);}}['_markInsertions'](_0x4792f7,_0x454181){const _0x57915a=_0x4792f7['filter'](_0x19f169=>!_0x19f169['isAdded']);for(let _0x457a63=0x0;_0x457a63<_0x454181['length'];_0x457a63++)_0x454181[_0x457a63]['isAdded']&&(_0x57915a[_0x457a63]['isAdded']=_0x454181[_0x457a63]['isAdded']);}['_getDiff'](_0x580daa,_0x8e2719=null){const _0x4272d8=this['repository']['getRevision'](_0x580daa),_0x2c5a33=_0x8e2719?this['repository']['getRevision'](_0x8e2719):null,_0xb05a4d=this['_getRevisionsRange'](_0x4272d8,_0x2c5a33),_0x173ede=_0xb05a4d[_0xb05a4d['length']-0x1],_0x46ff45=new Map(),_0x3e06a0={'model':{},'attributes':{},'changes':[]},_0x4d9d53=new Set(),_0x3e3c03=new Map();for(let _0x56df25=_0xb05a4d['length']-0x1;_0x56df25>=0x0;_0x56df25--){const _0x45280b=_0xb05a4d[_0x56df25];for(const _0x189db2 of Object['keys'](_0x45280b['diffData']))if(_0x45280b['diffData'][_0x189db2]['attachChange']){const _0x247988=_0x45280b['diffData'][_0x189db2]['attachChange'];_0x247988['isAttached']?(_0x4d9d53['add'](_0x189db2),_0x3e3c03['has'](_0x189db2)&&_0x3e3c03['get'](_0x189db2)['userId']==_0x247988['userId']?_0x3e3c03['delete'](_0x189db2):_0x3e3c03['set'](_0x189db2,_0x247988)):_0x3e3c03['has'](_0x189db2)?(_0x4d9d53['delete'](_0x189db2),_0x3e3c03['delete'](_0x189db2)):(_0x4d9d53['add'](_0x189db2),_0x3e3c03['set'](_0x189db2,_0x247988));}else _0x4d9d53['add'](_0x189db2);}for(const _0x27f87f of _0x4d9d53){const _0x54f5d6=_0x3e3c03['has'](_0x27f87f)&&!_0x3e3c03['get'](_0x27f87f)['isAttached'];let _0x2c735a=_0x54f5d6?_0xb05a4d['length']-0x1:0x0;const _0x37ee92=_0x54f5d6?-0x1:0x1;for(;_0xb05a4d[_0x2c735a];){const _0x5f5d0e=_0xb05a4d[_0x2c735a];if(_0x5f5d0e['diffData'][_0x27f87f]){const _0x342107=_0x54f5d6?_0x5f5d0e['diffData'][_0x27f87f]['attributesBefore']:_0x5f5d0e['diffData'][_0x27f87f]['attributesAfter'];_0x3e06a0['attributes'][_0x27f87f]=_0x342107?_0x34117b(_0x342107):{};break;}_0x2c735a+=_0x37ee92;}}for(const _0x3a4b14 of _0xb05a4d){_0x3a4b14['model']={};for(const _0x182dba of _0x3a4b14['authors'])_0x46ff45['set'](_0x182dba['id'],_0x182dba);for(const _0xb6c76e of _0x4d9d53){const _0x41be62=_0x3a4b14['diffData'][_0xb6c76e]?_0x3a4b14['diffData'][_0xb6c76e]['insertions']:'[]',_0x11794a=_0x3a4b14['diffData'][_0xb6c76e]?_0x3a4b14['diffData'][_0xb6c76e]['deletions']:'[]';_0x3a4b14['model'][_0xb6c76e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x41be62),'deletions':this['_utils']['_makeModelFromViewString'](_0x11794a)};}}for(const _0x44c946 of _0x4d9d53){let _0x28512b=null,_0x1adb53=0x0;const _0x444669=new Map(Array['from'](_0x4272d8['model'][_0x44c946]['insertions']['markers'])['filter'](([_0x361291])=>!_0x361291['startsWith']('revision:')));let _0x55d2fb=0x0;for(const _0x10a2f4 of _0xb05a4d){const _0x5d6c90=this['_makeTape'](_0x10a2f4['model'][_0x44c946]['insertions']);_0x10a2f4==_0x4272d8?(_0x28512b=_0x5d6c90,_0x1adb53=_0x28512b['length'],_0x28512b['forEach'](_0x5da872=>{_0x5da872['id']=_0x55d2fb++;}),this['_processTape'](_0x28512b)):this['_markInsertions'](_0x28512b,_0x5d6c90);const _0x59c1ba=_0x28512b['filter'](_0x12fed1=>!_0x12fed1['isAdded'])['map'](_0x3415b6=>_0x3415b6['id']);let _0x20c1b5=0x0;const _0x29e273=this['_makeTape'](_0x10a2f4['model'][_0x44c946]['deletions']);_0x29e273['forEach'](_0x3dd2cc=>{_0x3dd2cc['isRemoved']?_0x3dd2cc['id']=_0x1adb53++:_0x3dd2cc['id']=_0x59c1ba[_0x20c1b5++];}),this['_processTape'](_0x29e273),this['_setDistance'](_0x28512b,'isAdded'),this['_setDistance'](_0x29e273,'isRemoved'),_0x10a2f4==_0x4272d8&&this['_markMarkers'](_0x28512b,_0x444669),_0x28512b=this['_joinTapes'](_0x28512b,_0x29e273),this['_refreshStartEndIndex'](_0x28512b),this['_setDistance'](_0x28512b,'isRemoved');}_0x28512b=_0x28512b['filter'](_0x20c866=>!(_0x20c866['isAdded']&&_0x20c866['isRemoved']));const _0x539559=new Map(_0x173ede['model'][_0x44c946]['deletions']['markers']),_0x125b00=new Set(_0x444669['keys']());for(const _0x38d076 of _0x539559['keys']())_0x125b00['delete'](_0x38d076);this['_markSuggestions'](_0x28512b,_0x125b00),this['_fixObsoleteTags'](_0x28512b),_0x28512b=this['_removeMissingPairs'](_0x28512b),_0x28512b=this['_markMismatchedRemovedTags'](_0x28512b),_0x28512b=this['_removeUnsupportedChanges'](_0x28512b);const {root:_0x4e301c,changes:_0x331551}=this['_makeModelFromTape'](_0x28512b,_0x46ff45,_0x44c946);_0x3e06a0['model'][_0x44c946]=_0x4e301c;const _0x50f09c=_0x3e3c03['get'](_0x44c946);if(_0x50f09c){const _0xd297f6=_0x46ff45['get'](_0x50f09c['userId']),_0x204ba7=new r({'author':_0xd297f6,'type':_0x50f09c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44c946});_0x331551['unshift'](_0x204ba7),_0x3e06a0['attributes'][_0x44c946]['revisionHistoryAttachChange']=_0x204ba7['id'];}_0x3e06a0['changes']=_0x3e06a0['changes']['concat'](_0x331551);}return _0x3e06a0;}['_markMarkers'](_0x14cce1,_0xee96eb){for(let _0x3208e0=0x0;_0x3208e0<_0x14cce1['length'];_0x3208e0++)for(const [_0x48ce0e,_0x144148]of _0xee96eb)!_0x144148['isCollapsed']&&_0x144148['start']['isEqual'](_0x14cce1[_0x3208e0]['previousPosition'])&&_0x14cce1[_0x3208e0]['markersStart']['push'](_0x48ce0e),_0x144148['end']['isEqual'](_0x14cce1[_0x3208e0]['nextPosition'])&&_0x14cce1[_0x3208e0]['markersEnd']['push'](_0x48ce0e);}['_joinTapes'](_0x1fc483,_0x35f758){let _0x22751d=[],_0x4271dc=0x0,_0x220e8e=0x0;for(;_0x4271dc<_0x1fc483['length']||_0x220e8e<_0x35f758['length'];){const _0x58385c=_0x1fc483[_0x4271dc]||{},_0x1cff65=_0x35f758[_0x220e8e]||{};if(_0x58385c['id']==_0x1cff65['id'])_0x4271dc++,_0x220e8e++,_0x22751d['push'](_0x58385c);else{if(_0x1cff65['isRemoved']&&_0x58385c['isAdded']){const {commonTape:_0x5b825f,iEnd:_0x521adf,jEnd:_0x168cf1}=this['_threeWayMerge'](_0x1fc483,_0x4271dc,_0x35f758,_0x220e8e);_0x22751d=_0x22751d['concat'](_0x5b825f),_0x4271dc=_0x521adf,_0x220e8e=_0x168cf1;}else _0x1cff65['isRemoved']?(_0x220e8e++,_0x22751d['push'](_0x1cff65)):(_0x4271dc++,_0x22751d['push'](_0x58385c));}}return _0x22751d;}['_markSuggestions'](_0x39e34b,_0x1fa184){const _0x45ffba=[];for(let _0x49a7d5=0x0;_0x49a7d5<_0x39e34b['length'];_0x49a7d5++){for(let _0x958a88=0x0;_0x958a88<_0x39e34b[_0x49a7d5]['markersStart']['length'];_0x958a88++){const _0x3fca67=_0x39e34b[_0x49a7d5]['markersStart'][_0x958a88];if(!_0x1fa184['has'](_0x3fca67))continue;const {group:_0x4c66f8,type:_0xb8d475,authorId:_0xd73a1d}=_0x36433e(_0x3fca67);'revision-suggestion'!=_0x4c66f8||'insertion'!=_0xb8d475&&'deletion'!=_0xb8d475||(_0x45ffba['unshift']({'type':_0xb8d475,'name':_0x3fca67,'userId':_0xd73a1d}),_0x39e34b[_0x49a7d5]['markersStart']['splice'](_0x958a88,0x1),_0x958a88--);}_0x1e0c0f(_0x39e34b[_0x49a7d5]);for(let _0x522925=0x0;_0x522925<_0x39e34b[_0x49a7d5]['markersEnd']['length'];_0x522925++){const _0x22f49b=_0x39e34b[_0x49a7d5]['markersEnd'][_0x522925];if(!_0x1fa184['has'](_0x22f49b))continue;const {group:_0x279355,type:_0x57f27c}=_0x36433e(_0x22f49b);if('revision-suggestion'!=_0x279355||'insertion'!=_0x57f27c&&'deletion'!=_0x57f27c)continue;_0x39e34b[_0x49a7d5]['markersEnd']['splice'](_0x522925,0x1),_0x522925--;const _0x10cbb0=_0x45ffba['findIndex'](_0x366bed=>_0x366bed['name']==_0x22f49b);_0x10cbb0>-0x1&&_0x45ffba['splice'](_0x10cbb0,0x1);}}function _0x36433e(_0x141386){const _0x360fbf=_0x141386['split'](':');return{'group':_0x360fbf[0x0],'type':_0x360fbf[0x1],'subType':_0x360fbf['length']>=0x5?_0x360fbf[0x2]:null,'id':_0x360fbf['length']<0x5?_0x360fbf[0x2]:_0x360fbf[0x3],'authorId':_0x360fbf['length']<0x5?_0x360fbf[0x3]:_0x360fbf[0x4],'markerCount':0x6==_0x360fbf['length']?_0x360fbf[0x5]:null};}function _0x1e0c0f(_0x3dc0cd){for(let _0x3ff8a0=0x0;_0x3ff8a0<_0x45ffba['length'];_0x3ff8a0++){if(_0x3dc0cd['isAdded']&&'insertion'==_0x45ffba[_0x3ff8a0]['type'])return _0x3dc0cd['isAddSuggestion']=_0x45ffba[_0x3ff8a0],void delete _0x3dc0cd['isAdded'];if(!_0x3dc0cd['isAdded']&&!_0x3dc0cd['isRemoved']&&'deletion'==_0x45ffba[_0x3ff8a0]['type'])return void(_0x3dc0cd['isRemoveSuggestion']=_0x45ffba[_0x3ff8a0]);}}}['_setDistance'](_0x485c95,_0x11fdae){let _0x3e5c47=0x0,_0x5eaeb3=!0x1;const _0x45bc84=new Map();for(const _0x1a5c91 of _0x485c95)_0x1a5c91[_0x11fdae]?_0x5eaeb3&&(_0x3e5c47++,_0x5eaeb3=!0x1):(_0x3e5c47++,_0x5eaeb3=!0x0),_0x45bc84['set'](_0x1a5c91['id'],_0x3e5c47);for(let _0x291641=0x0;_0x291641<_0x485c95['length'];_0x291641++){if('isRemoved'==_0x11fdae&&_0x485c95[_0x291641]['isAdded']||'isAdded'==_0x11fdae&&_0x485c95[_0x291641]['isRemoved'])continue;if('text'==_0x485c95[_0x291641]['type']){_0x485c95[_0x291641]['distance']=0x0;continue;}const _0x10b09b=_0x45bc84['get'](_0x485c95[_0x291641]['pairId']),_0x36ad8c=_0x45bc84['get'](_0x485c95[_0x291641]['id']);_0x485c95[_0x291641]['distance']=_0x10b09b-_0x36ad8c;}}['_getRevisionsRange'](_0x44fb7b,_0x49a00a,_0x1c17a5=!0x1){const _0x5e37d8=[];let _0x32e4c8=this['repository']['getIndex'](_0x44fb7b),_0x2a9605=this['repository']['getIndex'](_0x49a00a);for(-0x1==_0x2a9605&&(_0x2a9605=this['repository']['_revisions']['length'],_0x1c17a5=!0x1);_0x32e4c8<_0x2a9605;)_0x5e37d8['push'](this['repository']['getRevision'](_0x32e4c8)),_0x32e4c8++;return _0x1c17a5&&_0x5e37d8['push'](this['repository']['getRevision'](_0x32e4c8)),_0x5e37d8;}['_threeWayMerge'](_0x1f2a55,_0x194577,_0x1b1a74,_0x501d25){const _0x553d42=this['editor']['model']['schema'];let _0xfb5d45=_0x194577;for(;_0x1f2a55[_0xfb5d45]&&_0x1f2a55[_0xfb5d45]['isAdded'];)_0xfb5d45++;let _0x519e2f=_0x501d25;for(;_0x1b1a74[_0x519e2f]&&_0x1b1a74[_0x519e2f]['isRemoved'];)_0x519e2f++;_0x5dcd7e(_0x1f2a55,_0x194577,_0xfb5d45),_0x5dcd7e(_0x1b1a74,_0x501d25,_0x519e2f);const _0x106168=_0x1b1a74['slice'](_0x501d25,_0x519e2f)['concat'](_0x1f2a55['slice'](_0x194577,_0xfb5d45));return _0x106168['sort']((_0x5ae468,_0x2d33d5)=>_0x5ae468['side']!=_0x2d33d5['side']?_0x5ae468['side']-_0x2d33d5['side']:_0x5ae468['level']!=_0x2d33d5['level']?_0x5ae468['level']-_0x2d33d5['level']:_0x5ae468['distance']!=_0x2d33d5['distance']?_0x2d33d5['distance']-_0x5ae468['distance']:!!_0x5ae468['isAdded']!=!!_0x2d33d5['isAdded']?-0x1==_0x5ae468['side']||0x0==_0x5ae468['side']?_0x5ae468['isAdded']?-0x1:0x1:_0x5ae468['isAdded']?0x1:-0x1:_0x5ae468['index']-_0x2d33d5['index']),{'commonTape':_0x106168,'iEnd':_0xfb5d45,'jEnd':_0x519e2f};function _0x5dcd7e(_0x260c73,_0x3bf9f0,_0x3cec4b){let _0x247a68=-0x1,_0x23134e=Number['POSITIVE_INFINITY'],_0x3e55fb=!0x0;for(let _0x2018b0=_0x3bf9f0;_0x2018b0<_0x3cec4b;_0x2018b0++)if(_0x553d42['isInline'](_0x260c73[_0x2018b0]['item'])||(_0x3e55fb=!0x1),_0x260c73[_0x2018b0]['item']['startIndex']<_0x3bf9f0&&(_0x247a68=_0x2018b0),_0x260c73[_0x2018b0]['item']['endIndex']>=_0x3cec4b){_0x23134e=_0x2018b0;break;}_0x3e55fb&&(_0x247a68=_0x3cec4b-0x1);for(let _0x322f50=_0x3bf9f0;_0x322f50<_0x3cec4b;_0x322f50++)_0x260c73[_0x322f50]['side']=_0x322f50<=_0x247a68?-0x1:_0x322f50<_0x23134e?0x0:0x1,_0x260c73[_0x322f50]['index']=_0x322f50;let _0x5f4399=0x0;for(let _0xb24f4f=_0x3bf9f0;_0xb24f4f<=_0x247a68;_0xb24f4f++)0x0==_0x260c73[_0xb24f4f]['distance']?_0x260c73[_0xb24f4f]['level']=_0x5f4399:(_0x5f4399++,_0x260c73[_0xb24f4f]['level']=_0x5f4399,_0x5f4399++);for(let _0x2752ff=_0x3bf9f0;_0x2752ff<_0x3cec4b;_0x2752ff++)0x0==_0x260c73[_0x2752ff]['side']&&(_0x260c73[_0x2752ff]['level']=_0x5f4399);_0x5f4399=0x0;for(let _0x448e62=_0x3cec4b-0x1;_0x448e62>=_0x23134e;_0x448e62--)0x0==_0x260c73[_0x448e62]['distance']?_0x260c73[_0x448e62]['level']=_0x5f4399:(_0x5f4399--,_0x260c73[_0x448e62]['level']=_0x5f4399,_0x5f4399--);}}['_fixObsoleteTags'](_0x485a06){const _0xe9c5b2=new Map(),_0x9a6cec=this['editor']['model']['schema'];for(let _0x222bbf=0x1;_0x222bbf<_0x485a06['length'];_0x222bbf++){let _0x51ebc1,_0x1ff54d,_0x34e0b3;const _0x3fe591=_0x485a06[_0x222bbf],_0x41b86d=_0x485a06[_0x222bbf-0x1];if('text'==_0x3fe591['type'])continue;if(_0x3fe591['type']!=_0x41b86d['type'])continue;if(!_0x9a6cec['isBlock'](_0x41b86d['item'])||_0x9a6cec['isLimit'](_0x41b86d['item']))continue;if(!_0x9a6cec['isBlock'](_0x3fe591['item'])||_0x9a6cec['isLimit'](_0x3fe591['item']))continue;if((_0x485a06[_0x222bbf]['isAdded']||_0x485a06[_0x222bbf]['isAddSuggestion'])&&_0x485a06[_0x222bbf-0x1]['isRemoved'])_0x51ebc1=_0x485a06[_0x222bbf],_0x1ff54d=_0x485a06[_0x222bbf-0x1],_0x34e0b3=_0x222bbf-0x1;else{if(!_0x485a06[_0x222bbf]['isRemoved']||!_0x485a06[_0x222bbf-0x1]['isAdded']&&!_0x485a06[_0x222bbf-0x1]['isAddSuggestion'])continue;_0x51ebc1=_0x485a06[_0x222bbf-0x1],_0x1ff54d=_0x485a06[_0x222bbf],_0x34e0b3=_0x222bbf;}const _0x48e0c1=_0x51ebc1['level']==_0x1ff54d['level'],_0x212db1=Math['abs'](_0x51ebc1['level'])<Math['abs'](_0x1ff54d['level'])&&0x0==_0x1ff54d['distance'];(_0x48e0c1||_0x212db1)&&(_0xe9c5b2['set'](_0x1ff54d['id'],_0x51ebc1['id']),_0x485a06['splice'](_0x34e0b3,0x1),_0x222bbf--,_0x51ebc1['isAdded']=!0x1);}for(let _0x27fb66=0x0;_0x27fb66<_0x485a06['length'];_0x27fb66++)_0xe9c5b2['has'](_0x485a06[_0x27fb66]['pairId'])&&(_0x485a06[_0x27fb66]['pairId']=_0xe9c5b2['get'](_0x485a06[_0x27fb66]['pairId']));}['_removeMissingPairs'](_0x7a51e4){const _0x1a6764=new Set(_0x7a51e4['map'](_0x4293a0=>_0x4293a0['id']));for(let _0x496a3b=0x0;_0x496a3b<_0x7a51e4['length'];_0x496a3b++)_0x1a6764['has'](_0x7a51e4[_0x496a3b]['pairId'])||0x0==_0x7a51e4[_0x496a3b]['distance']||(_0x7a51e4[_0x496a3b]['isIncorrect']=!0x0);return _0x7a51e4['filter'](_0x5cfa3f=>!_0x5cfa3f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x21ccda){const _0xe23c64=new Set();for(let _0xad812d=0x0;_0xad812d<_0x21ccda['length'];_0xad812d++){if(_0xe23c64['has'](_0x21ccda[_0xad812d]['id'])&&_0x21ccda[_0xad812d]['isRemoved']&&(_0x21ccda[_0xad812d]['isIncorrect']=!0x0),_0x21ccda[_0xad812d]['isIncorrect'])continue;if(0x0==_0x21ccda[_0xad812d]['distance'])continue;if('elementStart'!=_0x21ccda[_0xad812d]['type'])continue;if(null==_0x21ccda[_0xad812d]['pairId'])continue;let _0x2e0276=_0xad812d+0x1,_0x419c6d=0x0;for(;_0x21ccda[_0x2e0276]['id']!=_0x21ccda[_0xad812d]['pairId'];)'elementStart'==_0x21ccda[_0x2e0276]['type']?_0x419c6d++:'elementEnd'==_0x21ccda[_0x2e0276]['type']&&_0x419c6d--,_0x2e0276++;if(0x0!=_0x419c6d){if(_0x21ccda[_0xad812d]['isRemoved'])_0x21ccda[_0xad812d]['isIncorrect']=!0x0;else{for(;_0x2e0276!=_0xad812d;)_0x21ccda[_0x2e0276]['isRemoved']&&0x0!=_0x21ccda[_0x2e0276]['distance']&&(_0x21ccda[_0x2e0276]['isIncorrect']=!0x0,_0xe23c64['add'](_0x21ccda[_0x2e0276]['pairId'])),_0x2e0276--;}}}return _0x21ccda['filter'](_0x3ad9aa=>!_0x3ad9aa['isIncorrect']);}['_removeUnsupportedChanges'](_0x48ebfb){const _0x341975=this['editor']['model']['schema'];for(let _0x4f3f53=0x0;_0x4f3f53<_0x48ebfb['length'];_0x4f3f53++){if(!(_0x48ebfb[_0x4f3f53]['isAdded']||_0x48ebfb[_0x4f3f53]['isAddSuggestion']||_0x48ebfb[_0x4f3f53]['isRemoved']||_0x48ebfb[_0x4f3f53]['isRemoveSuggestion']))continue;if(0x0==_0x48ebfb[_0x4f3f53]['distance'])continue;const _0x41fe03=_0x48ebfb[_0x4f3f53]['item'];_0x341975['isBlock'](_0x41fe03)||_0x341975['isLimit'](_0x41fe03)||(_0x48ebfb[_0x4f3f53]['isAdded']&&delete _0x48ebfb[_0x4f3f53]['isAdded'],_0x48ebfb[_0x4f3f53]['isAddSuggestion']&&delete _0x48ebfb[_0x4f3f53]['isAddSuggestion'],_0x48ebfb[_0x4f3f53]['isRemoveSuggestion']&&delete _0x48ebfb[_0x4f3f53]['isRemoveSuggestion'],_0x48ebfb[_0x4f3f53]['isRemoved']&&(_0x48ebfb[_0x4f3f53]['isIncorrect']=!0x0));}return _0x48ebfb['filter'](_0x5ec7b2=>!_0x5ec7b2['isIncorrect']);}['_makeModelFromTape'](_0x1b73ef,_0x1f6eca,_0x55f205){const _0x4473a6=new gt(),_0x5db57a=[],_0x1abafb=new Map(),_0x44223c=this['editor']['model'],_0x5ad7ef=_0x44223c['schema'],_0x1d69d3=[_0x4473a6],_0xda1a8d={},_0x56d0bf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fd463=null;const _0x366e23=[0x0];for(let _0x137086=0x0;_0x137086<_0x1b73ef['length'];_0x137086++)if('elementStart'===_0x1b73ef[_0x137086]['type']){_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23);const _0x34ed75=new ut(_0x1b73ef[_0x137086]['item']['name'],_0x1b73ef[_0x137086]['item']['getAttributes']());_0x1d69d3[0x0]['_appendChild'](_0x34ed75),_0x366e23['push'](0x0),_0x1d69d3['unshift'](_0x34ed75),_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23);}else'elementEnd'===_0x1b73ef[_0x137086]['type']?(_0x1d69d3['shift'](),_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23),_0x366e23['pop'](),_0x366e23[_0x366e23['length']-0x1]++,_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23)):(_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23),_0x3fd463?_0x3fd463['_data']+=_0x1b73ef[_0x137086]['item']['data']:_0x3fd463=new mt(_0x1b73ef[_0x137086]['item']['data'],_0x1b73ef[_0x137086]['item']['getAttributes']()),_0x1b73ef[_0x137086+0x1]&&'text'===_0x1b73ef[_0x137086+0x1]['type']&&_0x1f6e9f(_0x3fd463,_0x1b73ef[_0x137086+0x1]['item'])||(_0x1d69d3[0x0]['_appendChild'](_0x3fd463),_0x3fd463=null),_0x366e23[_0x366e23['length']-0x1]+=_0x1b73ef[_0x137086]['item']['offsetSize'],_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23));for(let _0x1b60f4=0x0;_0x1b60f4<_0x1b73ef['length'];_0x1b60f4++){const _0x343873=_0x1b73ef[_0x1b60f4]['previousPosition'],_0x45b496=_0x1b73ef[_0x1b60f4]['nextPosition'];for(const _0x3777d3 of _0x1b73ef[_0x1b60f4]['markersStart'])_0x1abafb['set'](_0x3777d3,{'start':_0x343873,'end':null});_0x1362c0('isRemoveSuggestion',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isAddSuggestion',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isRemoved',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isAdded',_0x1b60f4,_0x343873,_0x45b496);for(const _0xe7118c of _0x1b73ef[_0x1b60f4]['markersEnd']){const _0xd4aace=_0x1abafb['get'](_0xe7118c);_0xd4aace?_0xd4aace['end']=_0x45b496:_0x1abafb['set'](_0xe7118c,{'start':_0x45b496,'end':_0x45b496});}}for(const [_0xa6fa7f,_0x562876]of _0x1abafb){const _0x42ea23=this['editor']['model']['createRange'](_0x562876['start'],_0x562876['end']);_0x4473a6['markers']['set'](_0xa6fa7f,_0x42ea23);}return _0x5db57a['sort']((_0x347343,_0x59eb82)=>{const _0x40ebda=_0x4473a6['markers']['get']('revision:'+_0x347343['id']),_0x1b19e8=_0x4473a6['markers']['get']('revision:'+_0x59eb82['id']);return _0x40ebda['start']['isBefore'](_0x1b19e8['start'])?-0x1:_0x40ebda['start']['isAfter'](_0x1b19e8['start'])?0x1:_0x40ebda['end']['isBefore'](_0x1b19e8['end'])?-0x1:_0x40ebda['end']['isAfter'](_0x1b19e8['end'])?0x1:'add'===_0x347343['type']?-0x1:0x1;}),{'root':_0x4473a6,'changes':_0x5db57a};function _0x1362c0(_0x300ecc,_0x44cddf,_0x5336b6,_0x4e174a){const _0x22b1bc=!!_0x1b73ef[_0x44cddf][_0x300ecc],_0x18c14d=_0x22b1bc?_0x1b73ef[_0x44cddf][_0x300ecc]['userId']:null,_0x295eb4=_0x44cddf===_0x1b73ef['length']-0x1,_0xdf25ca=_0x56d0bf[_0x300ecc][0x0],_0x1bf292=_0x5ad7ef['isObject'](_0x1b73ef[_0x44cddf]['item']);!_0xda1a8d[_0x300ecc]&&_0x22b1bc?_0xda1a8d[_0x300ecc]={'start':_0x5336b6,'tapeItem':_0x1b73ef[_0x44cddf],'userId':_0x18c14d,'type':_0x300ecc}:_0xda1a8d[_0x300ecc]&&!_0x22b1bc?(_0xda1a8d[_0x300ecc]['end']=_0x5336b6,_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]=null):_0xda1a8d[_0x300ecc]&&_0x22b1bc&&_0xda1a8d[_0x300ecc]['userId']!==_0x18c14d&&(_0xda1a8d[_0x300ecc]['end']=_0x5336b6,_0xdf25ca&&_0xdf25ca['userId']===_0xda1a8d[_0x300ecc]['userId']||_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]={'start':_0x5336b6,'tapeItem':_0x1b73ef[_0x44cddf],'userId':_0x18c14d,'type':_0x300ecc}),_0xda1a8d[_0x300ecc]&&_0x1bf292&&('elementStart'!==_0x1b73ef[_0x44cddf]['type']||_0xdf25ca&&_0xdf25ca['userId']===_0x18c14d||_0x56d0bf[_0x300ecc]['unshift']({'userId':_0x18c14d,'object':_0x1b73ef[_0x44cddf]['item'],'change':_0xda1a8d[_0x300ecc]}),'elementEnd'===_0x1b73ef[_0x44cddf]['type']&&_0xdf25ca&&_0xdf25ca['object']===_0x1b73ef[_0x44cddf]['item']&&(_0x56d0bf[_0x300ecc]['shift'](),_0xda1a8d[_0x300ecc]=_0xdf25ca['change'])),_0xda1a8d[_0x300ecc]&&_0x295eb4&&(_0xda1a8d[_0x300ecc]['end']=_0x4e174a,_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]=null);}function _0x3e5594({start:_0x3af7a4,end:_0x233481,tapeItem:_0x54804c,userId:_0x5ebb59,type:_0x2b80b8}){const _0x88e716=_0x54804c['item'],_0x173ae9=_0x44223c['schema']['isBlock'](_0x88e716)&&!_0x44223c['schema']['isLimit'](_0x88e716),_0x2a5dad=_0x3af7a4['nodeAfter']==_0x233481['parent']&&_0x233481['isAtStart'];if(_0x173ae9&&_0x2a5dad)return;const _0x1723f1=_0x44223c['createRange'](_0x3af7a4,_0x233481),_0x1db7ff=_0x1f6eca['get'](_0x5ebb59),_0x11d6ec=new r({'author':_0x1db7ff,'type':'isAdded'==_0x2b80b8||'isAddSuggestion'==_0x2b80b8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2b80b8||'isRemoveSuggestion'==_0x2b80b8},'createdAt':new Date(),'rootName':_0x55f205});_0x5db57a['push'](_0x11d6ec),_0x4473a6['markers']['set']('revision:'+_0x11d6ec['id'],_0x1723f1);}function _0x1f6e9f(_0x11541c,_0x11e4cb){const _0xd746ed=_0x11541c['getAttributes'](),_0x59b53a=_0x11e4cb['getAttributes']();for(const _0x57638d of _0xd746ed){if(_0x57638d[0x1]!==_0x11e4cb['getAttribute'](_0x57638d[0x0]))return!0x1;_0x59b53a['next']();}return _0x59b53a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x784bec=>{const _0x5b557e=_0x784bec['markerName']['split'](':')[0x1],_0x5ba873=this['_getChangeFromId'](_0x5b557e);if(!_0x5ba873)return null;const _0x2adff0='add'==_0x5ba873['type']?'insertion':'deletion',_0x4c3b04=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2adff0];return _0x5ba873['data']['isSuggestion']&&_0x4c3b04['push']('ck-suggestion-marker-'+_0x2adff0+'-new'),this['activeChange']==_0x5ba873&&_0x4c3b04['push']('ck-suggestion-marker--active'),{'classes':_0x4c3b04,'attributes':{'data-change-id':_0x5b557e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xce483b=>{_0xce483b['on']('element:pre',(_0x3bd0f7,_0x58cad3,_0x145d49)=>{const _0x1db798=_0x58cad3['viewItem']['getChild'](0x0);if(!_0x1db798||!_0x1db798['is']('element','code'))return;if(!_0x145d49['consumable']['consume'](_0x1db798,{'attributes':['vid_start','vid_end']}))return;const _0x20fb1e=_0x58cad3['modelRange']['start']['nodeAfter'];_0x145d49['writer']['setAttribute']('vid_start',_0x1db798['getAttribute']('vid_start'),_0x20fb1e),_0x145d49['writer']['setAttribute']('vid_end',_0x1db798['getAttribute']('vid_end'),_0x20fb1e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1fbee9=>{_0x1fbee9['on']('element',(_0x51c04d,_0x44e196,_0x28116b)=>{if(!_0x28116b['consumable']['consume'](_0x44e196['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x44e196['modelRange']['isCollapsed'])return;const _0x2cbb4b=_0x44e196['modelRange']['start']['nodeAfter'];_0x2cbb4b['hasAttribute']('vid_start')||_0x2cbb4b['hasAttribute']('vid')||(_0x28116b['writer']['setAttribute']('vid_start',_0x44e196['viewItem']['getAttribute']('vid_start'),_0x2cbb4b),_0x28116b['writer']['setAttribute']('vid_end',_0x44e196['viewItem']['getAttribute']('vid_end'),_0x2cbb4b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11dbb8=>_0x11dbb8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2734f4,[,_0x129f24])=>{['vid_start','vid_end','vid']['includes'](_0x129f24)&&(_0x2734f4['return']=!0x0,_0x2734f4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e0df6=>{_0x5e0df6['on']('attribute:vid',(_0x333a6f,_0x52560d,_0x450cf0)=>{if('\x20'!=_0x52560d['item']['data']||_0x52560d['item']['parent']['maxOffset']>0x1)return;if(!_0x450cf0['consumable']['consume'](_0x52560d['item'],_0x333a6f['name']))return;const _0x49f4df=_0x450cf0['writer'],_0x32a444=_0x450cf0['mapper']['toViewRange'](_0x52560d['range']);_0x49f4df['wrap'](_0x32a444,_0x49f4df['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3d5392){const _0x425a48=_0x3d5392['plugins']['get']('RevisionViewer');return(_0x5baaf1,_0x3980b4,_0x1b63f7)=>{const _0x6aa490=_0x3980b4['markerName']['split'](':')[0x1],_0x514f0a=_0x425a48['_getChangeFromId'](_0x6aa490);if(!_0x514f0a)return null;const _0x2c3fa2='add'==_0x514f0a['type']?'split':'merge';if(!_0x1b63f7['consumable']['test'](_0x3980b4['markerRange'],_0x5baaf1['name']))return;const _0x23bed4=_0x3980b4['markerRange']['getWalker'](),_0xd0b109=_0x3980b4['markerRange']['start'],_0x21e54d=_0x3d5392['model']['schema'];let _0x5ecf30=null,_0x2bde89=null,_0x436302=!0x1,_0x1cb9c2=!0x1;for(const _0x3d7ea3 of _0x23bed4){const _0x558df5=_0x3d7ea3['item'];_0x436302=_0x436302||_0x21e54d['isContent'](_0x558df5);const _0x173ef3=_0x1b63f7['mapper']['toViewElement'](_0x558df5);if(_0x173ef3&&_0x173ef3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d7ea3['type']&&(_0x21e54d['isBlock'](_0x558df5)&&!_0x21e54d['isLimit'](_0x558df5)&&(_0x558df5['nextSibling']||_0xd0b109['isAtEnd']?_0x5ecf30&&_0x5ecf30['parent']==_0x558df5||(_0x5ecf30=_0x558df5,_0x3a495f(_0x3d7ea3['previousPosition']),_0x1cb9c2=!0x0):_0x2bde89=_0x2bde89||_0x3d7ea3['previousPosition']));}function _0x3a495f(_0x379b15){const _0x51e1b6=_0x1b63f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c3fa2}),_0x1b774a=_0x1b63f7['mapper']['toViewPosition'](_0x379b15);_0x514f0a['data']['isSuggestion']&&_0x1b63f7['writer']['addClass']('ck-suggestion-marker-'+_0x2c3fa2+'-new',_0x51e1b6),_0x425a48['activeChange']==_0x514f0a&&_0x1b63f7['writer']['addClass']('ck-suggestion-marker--active',_0x51e1b6),_0x1b63f7['writer']['insert'](_0x1b774a,_0x51e1b6),_0x1b63f7['mapper']['bindElementToMarker'](_0x51e1b6,_0x3980b4['markerName']);}_0x436302||_0x1cb9c2||!_0x2bde89||_0x3a495f(_0x2bde89);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1e06d8,_0x21d30e,_0x35e9be)=>{const _0x29f941=_0x35e9be['mapper']['markerNameToElements'](_0x21d30e['markerName']);if(_0x29f941){for(const _0x61c58a of _0x29f941)(_0x61c58a['hasClass']('ck-suggestion-marker-split')||_0x61c58a['hasClass']('ck-suggestion-marker-merge'))&&(_0x35e9be['mapper']['unbindElementFromMarkerName'](_0x61c58a,_0x21d30e['markerName']),_0x35e9be['writer']['remove'](_0x61c58a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f3dda,_0x3063c6,_0x944dd6)=>{const _0x2769b=_0x3063c6['markerName']['split'](':')[0x1],_0x1e4331=this['_getChangeFromId'](_0x2769b);if(!_0x1e4331)return null;const _0x474551='add'==_0x1e4331['type']?'split':'merge';if(_0x944dd6['consumable']['test'](_0x3063c6['markerRange'],_0x3f3dda['name']))for(const _0xe1e4ce of _0x3063c6['markerRange']['getItems']()){if(!_0xe1e4ce['is']('element','softBreak'))continue;const _0x53964b=_0x944dd6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x474551}),_0x48e78d=_0x944dd6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xe1e4ce));_0x1e4331['data']['isSuggestion']&&_0x944dd6['writer']['addClass']('ck-suggestion-marker-'+_0x474551+'-new',_0x53964b),this['activeChange']==_0x1e4331&&_0x944dd6['writer']['addClass']('ck-suggestion-marker--active',_0x53964b),_0x944dd6['writer']['insert'](_0x48e78d,_0x53964b),_0x944dd6['mapper']['bindElementToMarker'](_0x53964b,_0x3063c6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5cc2a8=>{for(const _0x156dae of this['editor']['model']['document']['getRootNames']()){const _0x27b504=this['editor']['model']['document']['getRoot'](_0x156dae),_0x2aa184=this['editor']['editing']['view']['document']['getRoot'](_0x156dae);if(_0x2aa184){const _0x15c58d=_0x27b504['getAttribute']('revisionHistoryAttachChange');if(_0x5cc2a8['removeAttribute']('data-change-id',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root-add',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root-remove',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root--active',_0x2aa184),_0x15c58d){const _0x5872cb=this['_getChangeFromId'](_0x15c58d);if(!_0x5872cb)return null;_0x5cc2a8['setAttribute']('data-change-id',_0x15c58d,_0x2aa184),_0x5cc2a8['addClass']('ck-revision-history-root-'+_0x5872cb['type'],_0x2aa184),this['activeChange']==_0x5872cb&&_0x5cc2a8['addClass']('ck-revision-history-root--active',_0x2aa184);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x408aa2=>'revision-comment:'+_0x408aa2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3543b7=>'revision-suggestion:'+_0x3543b7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x17b4d8=>({'name':'suggestion:'+_0x17b4d8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x116701=>{const _0x521d07=_0x116701['markerName']['split'](':')[0x1];return'insertion'!=_0x521d07&&'deletion'!=_0x521d07?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x521d07]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xfc1ae9,_0x2efcb4,_0x36be0f)=>{const _0x408c6d=_0x36be0f['mapper']['markerNameToElements'](_0x2efcb4['markerName']);if(_0x408c6d){for(const _0x52169d of _0x408c6d)_0x52169d['is']('uiElement')&&(_0x36be0f['mapper']['unbindElementFromMarkerName'](_0x52169d,_0x2efcb4['markerName']),_0x36be0f['writer']['remove'](_0x52169d));}},{'priority':'high'});}['_getChangeFromId'](_0x10aefc){return this['_changeIdToChange']['get'](_0x10aefc);}['_getViewForChange'](_0x5611bb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5611bb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x896429,_0x4f2f3f,_0x2306c3,_0x2c5313)=>{_0x2c5313&&this['_balloon']['remove'](_0x2c5313),_0x2306c3&&(this['_balloon']['add']({'view':_0x2306c3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2d6edc=this['editor']['editing'],_0x3b9310=this['_getChangeFromId'](_0x2306c3['changeId']);let _0x41e05a;if(_0x3b9310['data']['isOnRoot']){const _0x2b3e77=_0x2d6edc['view']['getDomRoot'](_0x3b9310['rootName']);_0x41e05a=Array['from'](_0x2b3e77['getClientRects']());}else{const _0x4d6387=this['editor']['model']['markers']['get']('revision:'+_0x2306c3['changeId']);_0x41e05a=Array['from'](_0x2d6edc['mapper']['markerNameToElements'](_0x4d6387['name']))['map'](_0x36ca7a=>_0x2d6edc['view']['domConverter']['mapViewToDom'](_0x36ca7a))['map'](_0x14e9b0=>Array['from'](_0x14e9b0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x41e05a[0x0];return _0x41e05a['find'](_0x4867f9=>_0x4867f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x4867f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4867f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x4867f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x41e05a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d9a86,_0x4cd16b,_0x354df9,_0x51e83d)=>{this['activeView']=_0x354df9?this['_getViewForChange'](_0x354df9):null,this['editor']['model']['change'](()=>{const _0x128140=this['editor']['editing'];_0x51e83d&&(_0x51e83d['data']['isOnRoot']?_0x128140['view']['change'](_0x3b24af=>{_0x3b24af['removeClass']('ck-revision-history-root--active',_0x128140['view']['document']['getRoot'](_0x51e83d['rootName']));}):_0x128140['reconvertMarker']('revision:'+_0x51e83d['id'])),_0x354df9&&(_0x354df9['data']['isOnRoot']?_0x128140['view']['change'](_0x46721f=>{_0x46721f['addClass']('ck-revision-history-root--active',_0x128140['view']['document']['getRoot'](_0x354df9['rootName']));}):_0x128140['reconvertMarker']('revision:'+_0x354df9['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f094b,_0x2b8cb8)=>{if(this['activeChange'])return;const _0x1162d0=this['_findChangeIdFromDomTarget'](_0x2b8cb8['target']),_0x47a26a=this['_changeIdToChange']['get'](_0x1162d0);_0x47a26a?(this['_activeViewTarget']={'x':_0x2b8cb8['domEvent']['x'],'y':_0x2b8cb8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x47a26a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1e6623,_0xc91bd2)=>{const _0xa0c5ac=this['_findChangeIdFromDomTarget'](_0xc91bd2['target']),_0x43ad40=this['_changeIdToChange']['get'](_0xa0c5ac);_0x43ad40?(this['_activeViewTarget']={'x':_0xc91bd2['domEvent']['x'],'y':_0xc91bd2['domEvent']['y']},_0x43ad40===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x43ad40):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c6547){do{const _0x221e6e=_0x3c6547['getAttribute']('data-change-id');if(_0x221e6e)return _0x221e6e;_0x3c6547=_0x3c6547['parent'];}while(_0x3c6547);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x104998=>{for(const _0x446f65 of this['editor']['model']['markers'])_0x104998['removeMarker'](_0x446f65);});}}function X(_0x244486,_0x263e3b){return(_0x3c8547,_0x19e94c,_0x3352bb)=>{if(!_0x3352bb['consumable']['test'](_0x19e94c['markerRange'],_0x3c8547['name']))return;const _0x2f8c72=_0x19e94c['markerRange']['getWalker'](),_0x272c38=_0x19e94c['markerRange']['start'],_0x2d4daa=_0x244486['model']['schema'];let _0x2c39c6=null,_0x5cbc05=null,_0x22c3d7=!0x1,_0x226428=!0x1;for(const _0x5a02b5 of _0x2f8c72){const _0x543702=_0x5a02b5['item'];_0x22c3d7=_0x22c3d7||_0x2d4daa['isContent'](_0x543702);const _0x574261=_0x3352bb['mapper']['toViewElement'](_0x543702);if(_0x574261&&_0x574261['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a02b5['type']&&(_0x2d4daa['isBlock'](_0x543702)&&!_0x2d4daa['isLimit'](_0x543702)&&(_0x543702['nextSibling']||_0x272c38['isAtEnd']?_0x2c39c6&&_0x2c39c6['parent']==_0x543702||(_0x2c39c6=_0x543702,_0x3a8f4b(_0x5a02b5['previousPosition']),_0x226428=!0x0):_0x5cbc05=_0x5cbc05||_0x5a02b5['previousPosition']));}function _0x3a8f4b(_0x296174){const _0x520383=_0x3352bb['mapper']['toViewPosition'](_0x296174),_0x193a4f=_0x3352bb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x263e3b});_0x3352bb['writer']['insert'](_0x520383,_0x193a4f),_0x3352bb['mapper']['bindElementToMarker'](_0x193a4f,_0x19e94c['markerName']);}_0x22c3d7||_0x226428||!_0x5cbc05||_0x3a8f4b(_0x5cbc05);};}class wt extends _0x122b53{constructor(_0x4c5a46){super(_0x4c5a46);const _0x4923d0=_0x4c5a46['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4923d0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4923d0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x247b9c=this['editor'],_0x2a5300=_0x247b9c['plugins']['get'](m),_0x5b2e4f=_0x2a5300['isReady']?_0x2a5300['diff']['newRevisionId']:null;_0x247b9c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b2e4f);}['refresh'](){const {isReady:_0x3cd745,isEnabled:_0x199066,repository:_0x2e7c67,diff:_0x5e8618}=this['editor']['plugins']['get'](m),_0x5d375e=_0x5e8618&&_0x2e7c67['getLaterVisibleRevision'](_0x5e8618['newRevisionId']);this['isEnabled']=_0x3cd745&&_0x199066&&Boolean(_0x5d375e);}}class pt extends _0x122b53{['_step'];constructor(_0x43285b,{direction:_0x17eba7}){super(_0x43285b);const _0x49c33c=_0x43285b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x17eba7?0x1:-0x1,this['listenTo'](_0x49c33c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x49c33c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x49c33c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3e41f2=this['editor'],_0x5063af=_0x3e41f2['plugins']['get'](m),{isNavigationMode:_0x531b77,currentChangeNumber:_0x3ab870}=_0x5063af;let _0x763498;if(_0x5063af['activeChange']=_0x531b77?_0x5063af['diff']['changes']['get'](_0x3ab870+this['_step']):_0x5063af['diff']['changes']['first'],_0x5063af['activeChange']['data']['isOnRoot'])_0x763498=_0x3e41f2['editing']['view']['getDomRoot'](_0x5063af['activeChange']['rootName']);else{const _0x2ed5f2=_0x3e41f2['model']['markers']['get']('revision:'+_0x5063af['activeChange']['id']);_0x763498=_0x466b83(_0x3e41f2['editing'],_0x2ed5f2);}_0x595d08({'target':_0x763498,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4feca4,currentChangeNumber:_0x2f43ea,numberOfChanges:_0x56f3e,isReady:_0x5ca6ee,isEnabled:_0x241a89}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x241a89&&_0x5ca6ee&&_0x56f3e)&&(!_0x4feca4||(0x1===this['_step']?_0x2f43ea<_0x56f3e-0x1:_0x2f43ea>0x0));}}class _i extends _0x1528d9{constructor(_0x290d1e){super(_0x290d1e);const _0x3243b0=this['bindTemplate'],_0x1e5f8c=new _0x4a8ccc(_0x290d1e),_0x2357c0=new _0x4a8ccc(_0x290d1e);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',(_0x33bb9b,_0x4ecd8c)=>_0x33bb9b&&_0x4ecd8c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x13d65a,_0x2d2316,_0x470e41,_0x3123b7)=>{if(!_0x13d65a)return g(_0x290d1e,'Loading...');if(!_0x470e41)return g(_0x290d1e,'No\x20changes');const _0x275fd8=g(_0x290d1e,'NUMBER_OF_CHANGES',_0x470e41);return _0x3123b7?g(_0x290d1e,'X_OF_Y_CHANGES',[_0x2d2316+0x1,_0x470e41]):_0x275fd8;}),_0x1e5f8c['set']({'label':g(_0x290d1e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x37a656}),_0x2357c0['set']({'label':g(_0x290d1e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2d4d91}),_0x1e5f8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2357c0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1e5f8c['on']('execute',()=>this['fire']('execute','backward')),_0x2357c0['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',_0x3243b0['if']('_isStatusLabelVisible','ck-hidden',_0xa86a6c=>!_0xa86a6c)]},'children':[{'text':_0x3243b0['to']('isNavigationMode',_0x1ebae3=>_0x1ebae3?g(_0x290d1e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x290d1e,'Total')+':\x20')}]},{'text':_0x3243b0['to']('_statusText')}]},new _0x18bc92(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1e5f8c,_0x2357c0]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x28ae17{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x43aa5a=this['editor']['editing']['view'];_0x43aa5a['change'](_0x25a891=>{for(const _0x3bed0f of _0x43aa5a['document']['roots'])_0x25a891['addClass'](ce,_0x3bed0f);});}['hide'](){const _0x54fa41=this['editor']['editing']['view'];_0x54fa41['change'](_0x6e9ef7=>{for(const _0x5e4bdb of _0x54fa41['document']['roots'])_0x6e9ef7['removeClass'](ce,_0x5e4bdb);});}}class R extends _0x28ae17{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x39e310=this['editor'],_0x4f7317=_0x39e310['plugins']['get'](m),_0x12bdfe=_0x39e310['plugins']['get'](le);_0x39e310['ui']['componentFactory']['add']('exitToEditing',_0x1777f2=>{const _0x429922=new _0x4a8ccc(_0x1777f2);return _0x429922['set']({'label':g(_0x1777f2,'Back\x20to\x20editing'),'icon':_0x12b2e5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x429922,'execute',()=>{_0x39e310['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x429922;}),_0x39e310['ui']['componentFactory']['add']('restoreRevision',_0x1d7cf2=>{const _0xfa3faa=new _0x4a8ccc(_0x1d7cf2);return _0xfa3faa['set']({'label':g(_0x1d7cf2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xfa3faa['bind']('isEnabled')['to'](_0x39e310['commands']['get']('restoreRevision')),this['listenTo'](_0xfa3faa,'execute',()=>_0x39e310['execute']('restoreRevision')),_0xfa3faa;}),_0x39e310['ui']['componentFactory']['add']('changesNavigation',_0x55de0d=>{const _0x68814c=new _i(_0x55de0d),_0x5e4534=_0x39e310['commands']['get']('showPreviousChange'),_0x16f429=_0x39e310['commands']['get']('showNextChange');return _0x68814c['bind']('isBackwardNavigationEnabled')['to'](_0x5e4534,'isEnabled'),_0x68814c['bind']('isForwardNavigationEnabled')['to'](_0x16f429,'isEnabled'),_0x68814c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f7317),this['listenTo'](_0x68814c,'execute',(_0x4d00f5,_0xb9ef51)=>{_0x39e310['execute']('forward'===_0xb9ef51?'showNextChange':'showPreviousChange');}),_0x68814c;}),_0x12bdfe['show'](),_0x4f7317['on']('change:isReady',(_0x1e6e9b,_0x1d2254,_0x465bfa)=>{_0x465bfa?_0x12bdfe['hide']():_0x12bdfe['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x5e7b43,_0x56a178){super(_0x5e7b43,_0x56a178);const _0x159382=this['bindTemplate'];this['set']({'label':g(_0x5e7b43,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5e7b43,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x159382['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 _0x3b230d=this['fieldView']['element'];this['_tooltipString']=_0x3b230d['scrollWidth']>_0x3b230d['clientWidth']&&_0x3b230d['value']||'';}}class oi extends _0x1528d9{constructor(_0x1b580e,_0x286b37,_0x484af5){super(_0x1b580e);const _0x274d88=new _0x2ca141();_0x274d88['set']({'content':_0x2c2cfd,'viewBox':'0\x200\x2011\x2010'});const _0x399853=['ck','ck-revision-history-sidebar__revision-author'];_0x484af5&&_0x399853['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a0465=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1b580e,_0x484af5?'Revision\x20creator':'Revision\x20author')},'children':[_0x274d88,_0x286b37['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x399853},'children':_0x5a0465});}}function ni(_0x5bab94,_0x2f025a){const _0x2bdf9b=_0x5bab94['bindTemplate'],_0x28766d=_0x5bab94['locale'],_0x35164d=_0x5be76e(_0x28766d);_0x35164d['panelPosition']='sw';const _0x4aec7f=function(_0x34b9aa,_0x5cb64e){const _0x103cfa=function(_0x5390d5,_0x253e02){const _0x3d8628=_0x5390d5['locale'],_0x5c5b7d={'Compare\x20against\x20selected':g(_0x3d8628,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3d8628,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3d8628,'Restore\x20this\x20revision')};return _0x253e02['map'](_0x289295=>{const _0x355d0c=_0x5c5b7d[_0x289295['name']];return _0x355d0c&&_0x355d0c!==_0x289295['name']&&(_0x289295['name']=_0x355d0c),_0x289295;});}(_0x34b9aa,_0x5cb64e),_0x13e0de=new _0x1190c4();for(const _0x3e743d of _0x103cfa){const _0x7d447={'type':'button','model':new to({'label':_0x3e743d['name'],'class':_0x3e743d['class'],'withText':!0x0,'role':'menuitem','_action':_0x3e743d['action']})};_0x7d447['model']['bind']('isEnabled')['to'](_0x34b9aa,'isActionsDropdownOpen',_0x2e23ec=>'function'!=typeof _0x3e743d['isEnabled']||(!_0x2e23ec||_0x3e743d['isEnabled'](_0x34b9aa))),_0x13e0de['add'](_0x7d447);}return _0x13e0de;}(_0x5bab94,_0x2f025a);return _0x5bab94['bind']('isActionsDropdownOpen')['to'](_0x35164d,'isOpen'),_0x35164d['buttonView']['set']({'label':g(_0x28766d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ef3c7}),_0x35164d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2bdf9b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2bdf9b['to'](_0x29a47d=>_0x29a47d['stopPropagation']())}}),_0x35164d['on']('execute',_0x5960ab=>{_0x5bab94['isReady']&&'function'==typeof _0x5960ab['source']['_action']&&_0x5960ab['source']['_action'](_0x5bab94);}),_0x171ffa(_0x35164d,_0x4aec7f,{'role':'menu'}),_0x35164d['listenTo'](_0x5bab94,'change:isActionsDropdownOpen',(_0x3bf86c,_0x310284,_0x2457d8)=>{if(_0x2457d8)for(const _0xeda6e7 of _0x35164d['listView']['items']){const _0x57d00b=_0xeda6e7['children']['first'],_0x27c041=_0x2f025a['find'](_0x260078=>_0x260078['action']===_0x57d00b['_action'])['isVisible'];_0xeda6e7['isVisible']=void 0x0===_0x27c041||_0x27c041(_0x5bab94);}}),_0x35164d;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x23a707,uid as _0x1d6ae4,Collection as _0x20ed9a,logWarning as _0x21ae3d,FocusTracker as _0xc74c6,KeystrokeHandler as _0x3ba797,scrollViewportToShowTarget as _0x30f821,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5a71fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x980597,set as _0x29dc50,unset as _0x3bcf15,isEqual as _0x32942f}from'es-toolkit/compat';import{Plugin as _0x501960,PendingActions as _0x50707e,Command as _0x1cd17f,ElementApiMixin as _0x3625b4,Editor as _0x5b2865}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5916f6,getMarkerDomElement as _0x563781,ConfirmMixin as ti,sanitizeEditorConfig as _0x366bd7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x272f11,ViewAttributeElement as _0x255325,ViewEmptyElement as _0x40c9a6,ViewRawElement as _0x500888,ViewUIElement as _0x183300,ViewDocumentFragment as _0x5e62b6,ViewText as _0x11b39a,ViewElement as _0x4fe2ef,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x25fa61,IconChevronUp as _0x338ca2,IconChevronDown as _0x1edfec,IconUndo as _0x24c8de,IconUser as _0x5481c3,IconThreeVerticalDots as _0x41c7a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x505f3f,submitHandler as _0x5c1a28,LabeledFieldView as _0x5b135e,createLabeledInputText as _0x34358c,createDropdown as _0x26e46b,ListView as _0x322164,ListItemView as _0x2b8957,ButtonView as te,MenuBarMenuView as _0xa031ec,MenuBarMenuListView as _0x89fe1a,MenuBarMenuListItemView as _0x469118,MenuBarMenuListItemButtonView as _0x448748,ContextualBalloon as _0x4960c7,ToolbarSeparatorView as _0x3f634c,IconView as _0x4ceb1c,addListToDropdown as _0x5c8db3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x24252f}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23a707(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x6ad0ad){super(),this['id']=_0x6ad0ad['id']||_0x1d6ae4(),this['creator']=_0x6ad0ad['creator']||null,this['authors']=_0x6ad0ad['authors']||[],this['diffData']=_0x6ad0ad['diffData']||null,this['toVersion']=_0x6ad0ad['toVersion']||0x0,this['fromVersion']=_0x6ad0ad['fromVersion']||0x0,this['set']('name',_0x6ad0ad['name']||''),this['set']('createdAt',_0x6ad0ad['createdAt']||new Date()),this['set']('attributes',_0x6ad0ad['attributes']||{});}['setName'](_0x478e54){this['_update']({'name':_0x478e54});}['setAttribute'](_0x3a5d43,_0x4bc7bf){const _0x543f41=_0x980597(this['attributes']);_0x29dc50(_0x543f41,_0x3a5d43,_0x4bc7bf),this['_update']({'attributes':_0x543f41});}['removeAttribute'](_0xd8a815){const _0x25b059=_0x980597(this['attributes']);_0x3bcf15(_0x25b059,_0xd8a815),this['_update']({'attributes':_0x25b059});}['_update'](_0x498dd7,_0x231cfa=!0x1){let _0x2c23ff=!0x1;const _0x350253={'id':this['id']},_0x23994f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x56326d of _0x23994f){const _0xa3f50a=_0x498dd7[_0x56326d];void 0x0!==_0xa3f50a&&_0xa3f50a!==this[_0x56326d]&&(this[_0x56326d]=_0xa3f50a,_0x350253[_0x56326d]=_0xa3f50a,_0x2c23ff=!0x0);}_0x2c23ff&&(_0x350253['authors']&&(_0x350253['authorsIds']=_0x350253['authors']['map'](_0x210942=>_0x210942['id']),delete _0x350253['authors']),this['fire']('_update',_0x350253,_0x231cfa));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x445523=>_0x445523['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x501960{['_revisions'];static get['requires'](){return[_0x5916f6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x25f82){super(_0x25f82),this['_revisions']=new _0x20ed9a();}['afterInit'](){!async function(_0x1e7e9c){const _0x39ade1=_0x5429a7([0x4f,0x35,0x63,0x6c,0x5a,0x34,0x75,0x31,0x4c,0x56,0x32,0x43,0x68,0x73,0x30,0x6b,0x79,0x57,0x33,0x53,0x44,0x69,0x47,0x58,0x38,0x42,0x74,0x7a,0x77,0x48,0x61,0x4b,0x6a,0x67,0x4a,0x4e,0x6e,0x46,0x50,0x49,0x55,0x72,0x76,0x52,0x54,0x37,0x51,0x6f,0x65,0x41,0x36,0x66,0x78,0x39,0x45,0x4d,0x6d,0x71,0x70,0x64,0x62,0x59]),_0x5a502f=0xeb829,_0x2abbb2=0x331fbfc9,_0x51dff0=0x3318db89^_0x2abbb2,_0x4711f6=window[_0x5429a7([0x44,0x61,0x74,0x65])][_0x5429a7([0x6e,0x6f,0x77])](),_0x44f9c4=_0x1e7e9c[_0x5429a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fbbcc=new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403a46=>{_0x44f9c4[_0x5429a7([0x6f,0x6e,0x63,0x65])](_0x5429a7([0x72,0x65,0x61,0x64,0x79]),_0x403a46);}),_0x1e535e={[_0x5429a7([0x6b,0x74,0x79])]:_0x5429a7([0x45,0x43]),[_0x5429a7([0x75,0x73,0x65])]:_0x5429a7([0x73,0x69,0x67]),[_0x5429a7([0x63,0x72,0x76])]:_0x5429a7([0x50,0x2d,0x32,0x35,0x36]),[_0x5429a7([0x78])]:_0x5429a7([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]),[_0x5429a7([0x79])]:_0x5429a7([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]),[_0x5429a7([0x61,0x6c,0x67])]:_0x5429a7([0x45,0x53,0x32,0x35,0x36])},_0x229fb5=_0x44f9c4[_0x5429a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5429a7([0x67,0x65,0x74])](_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9bc175(){let _0x48789f,_0x589e18=null,_0xb640d7=null;try{if(_0x229fb5==_0x5429a7([0x47,0x50,0x4c]))return _0x5429a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48789f=_0x43ff65(),!_0x48789f)return _0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48789f[_0x5429a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb640d7=_0x509b0e(_0x48789f[_0x5429a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48789f[_0x5429a7([0x6a,0x74,0x69])])),await _0x4ef495()?_0x3b22f5()?_0x130fe0()?_0x5429a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55829c()?(_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5429a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x589e18=_0x3972ab(_0x5429a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5429a7([0x74,0x72,0x69,0x61,0x6c])&&(_0x589e18=_0x3972ab(_0x5429a7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54cf83()):_0x5429a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5429a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x47a07d){return _0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x130fe0(){const _0x320c12=[_0x5429a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5429a7([0x74,0x72,0x69,0x61,0x6c])][_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4711f6/0x3e8:0xe10*_0x51dff0;return _0x48789f[_0x5429a7([0x65,0x78,0x70])]<_0x320c12;}function _0x3b22f5(){const _0x42e9e8=_0x48789f[_0x5429a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x42e9e8)return!0x1;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x2a])))return!0x0;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x52,0x48])))return!0x0;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x52,0x52,0x48]))){if(_0x304c6e())return!0x0;if(_0x1045c6()||_0x534834())return!0x0;}return!0x1;}function _0x55829c(){const _0x9c49d3=_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9c49d3||0x0==_0x9c49d3[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17acc5}=new URL(window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9c49d3[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17acc5))return!0x0;const _0x347190=_0x17acc5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e]));return _0x9c49d3[_0x5429a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3478=>_0x4a3478[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x2a])))[_0x5429a7([0x6d,0x61,0x70])](_0x59b286=>_0x59b286[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e])))[_0x5429a7([0x73,0x6f,0x6d,0x65])](_0x394691=>_0x347190[_0x5429a7([0x65,0x76,0x65,0x72,0x79])]((_0x3b8981,_0x2147ce)=>_0x394691[_0x2147ce]===_0x3b8981||_0x394691[_0x2147ce]===_0x5429a7([0x2a])));}function _0x54cf83(){return _0x589e18&&_0xb640d7?new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc25f10,_0x357769)=>{_0x589e18[_0x5429a7([0x74,0x68,0x65,0x6e])](_0xc25f10,_0x357769),_0xb640d7[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x3cc518=>{_0x3cc518!=_0x5429a7([0x56,0x61,0x6c,0x69,0x64])&&_0xc25f10(_0x3cc518);},_0x357769);}):_0x589e18||_0xb640d7||_0x5429a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x509b0e(_0x428214,_0x26807a){return new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17c78d=>{if(_0x234de9())return _0x17c78d(_0x5429a7([0x56,0x61,0x6c,0x69,0x64]));_0x1e7ea4(),_0x44f9c4[_0x5429a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f20e5=!0x1;const _0x1253cc=_0x1d6ae4();function _0x5470d5(_0x2e09e6){return!!_0x2e09e6&&(typeof _0x2e09e6===_0x5429a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e09e6===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e09e6[_0x5429a7([0x74,0x68,0x65,0x6e])]===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e09e6[_0x5429a7([0x63,0x61,0x74,0x63,0x68])]===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527eb2(_0x396200){_0x277c5d(_0x396200)[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x193b43=>{if(!_0x193b43||_0x193b43[_0x5429a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5429a7([0x6f,0x6b]))return _0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41ffd(_0x2c3e74(_0x1253cc+_0x26807a))!=_0x193b43[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5429a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5429a7([0x74,0x68,0x65,0x6e])](_0xf4686c=>(_0x59804e(),_0xf4686c),()=>{const _0x3dcd1f=_0x2fce15();return null==_0x3dcd1f?(_0x59804e(),_0x5429a7([0x56,0x61,0x6c,0x69,0x64])):_0x5429a7(_0x4711f6-_0x3dcd1f>(0x17133bc9^_0x2abbb2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x17c78d)[_0x5429a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3782d0=0x33295149^_0x2abbb2;function _0x59804e(){const _0x449647=_0x5429a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x41ffd(_0x2c3e74(_0x428214)),_0x1e195d=_0x275d17(_0x41ffd(window[_0x5429a7([0x4d,0x61,0x74,0x68])][_0x5429a7([0x63,0x65,0x69,0x6c])](_0x4711f6/_0x3782d0)));window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5429a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x449647,_0x1e195d);}function _0x2fce15(){const _0x245d2a=_0x5429a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x41ffd(_0x2c3e74(_0x428214)),_0x56c442=window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5429a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x245d2a);return _0x56c442?window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275d17(_0x56c442),0x10)*_0x3782d0:null;}function _0x277c5d(_0x354a13){return new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x368a48,_0x3d5872)=>{_0x354a13[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x368a48,_0x3d5872),window[_0x5429a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5872,0x331e6b09^_0x2abbb2);});}}_0x44f9c4[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a23c7,_0x301074)=>{if(_0x301074[0x0]!=_0x428214)return _0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301074[0x1]={..._0x301074[0x1],[_0x5429a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1253cc};},{[_0x5429a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5429a7([0x68,0x69,0x67,0x68])}),_0x44f9c4[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f2e21=>{_0x5470d5(_0x4f2e21[_0x5429a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f20e5=!0x0,_0x527eb2(_0x4f2e21[_0x5429a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5429a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5429a7([0x6c,0x6f,0x77])}),_0x3fbbcc[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>{_0x2f20e5||_0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x234de9(){return _0x44f9c4[_0x5429a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5429a7([0x76,0x69,0x65,0x77])][_0x5429a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5429a7([0x61,0x75,0x74,0x6f]);}function _0x1e7ea4(){_0x44f9c4[_0x5429a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5429a7([0x76,0x69,0x65,0x77])][_0x5429a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5429a7([0x61,0x75,0x74,0x6f]);}}function _0x3972ab(_0xef0238){const _0x50576a=[new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe3a4d3=>setTimeout(_0xe3a4d3,0x33168105^_0x2abbb2)),_0x3fbbcc[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x74503=>{const _0x4aaac7=0x331fbfce^_0x2abbb2,_0x2c1a9d=_0x1e7e9c[_0x5429a7([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d21c8(){_0x2c1a9d[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4aaac7&&_0x74503();}_0x3d21c8(),_0x2c1a9d[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x61,0x64,0x64]),_0x3d21c8);})),new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ede25=>{function _0x19fa63(){for(const _0x2a4393 in window)if(window[_0x5429a7([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5429a7([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a4393))&&window[_0x2a4393]==_0x5a502f)return _0x3ede25();_0x44f9c4[_0x5429a7([0x73,0x74,0x61,0x74,0x65])]!=_0x5429a7([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5429a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19fa63,0x331fac41^_0x2abbb2);}_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x19fa63();})];return window[_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5429a7([0x72,0x61,0x63,0x65])](_0x50576a)[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>_0xef0238);}async function _0x3afa0d(){if(await _0x3fbbcc,_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57c679=_0x1e7e9c[_0x5429a7([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x51310c=_0x1e7e9c[_0x5429a7([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])](_0x57c679[_0x5429a7([0x69,0x64])]),_0x4dd3d4=_0x483699(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4dd3d4[_0x5429a7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57c679['id'],_0x51310c?_0x51310c['id']:null,!0x0),_0x4dd3d4[_0x5429a7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4dd3d4[_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4dd3d4[_0x5429a7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2c35df,void(_0x4dd3d4[_0x5429a7([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2c35df);}if(_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2d3bbe=_0x483699(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2d3bbe[_0x5429a7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d3bbe[_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d3bbe[_0x5429a7([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2c35df,_0x2d3bbe[_0x5429a7([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2c35df;}_0x44f9c4[_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5429a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c35df,_0x44f9c4[_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5429a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c35df,_0x44f9c4[_0x5429a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x304c6e(){return _0x2e2bfb(_0x5429a7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x483699(_0x5429a7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5429a7([0x73,0x74,0x61,0x74,0x65])]==_0x5429a7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1045c6(){return _0x2e2bfb(_0x5429a7([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 _0x534834(){return _0x2e2bfb(_0x5429a7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x184d59(_0xb3f30f){const _0x11a52c=_0x267293();_0x44f9c4[_0x11a52c]=_0x5429a7([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])+_0xb3f30f,_0xb3f30f[_0x5429a7([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5429a7([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x267293()]=_0x5a502f),_0xb3f30f!=_0x5429a7([0x56,0x61,0x6c,0x69,0x64])&&_0x3afa0d();}function _0x267293(){const _0x25e794=window[_0x5429a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5429a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5429a7([0x6e,0x6f,0x77])]())[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5429a7([0x2e]),'');let _0x1582e8=_0x5429a7([0x4f]);for(let _0x45f50f=0x0;_0x45f50f<_0x25e794[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45f50f+=0x2){let _0x694c47=window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25e794[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45f50f,_0x45f50f+0x2));_0x694c47>=_0x39ade1[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x694c47-=_0x39ade1[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1582e8+=_0x39ade1[_0x694c47];}return _0x1582e8;}function _0x43ff65(){const _0x3e8a94=_0x229fb5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e]));if(0x3!=_0x3e8a94[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x248786(_0x3e8a94[0x1]);function _0x248786(_0x1e1db3){const _0x10aff8=_0x399bec(_0x1e1db3);return _0x10aff8&&_0x4d0c57()?_0x10aff8:null;function _0x4d0c57(){const _0x2def7e=_0x10aff8[_0x5429a7([0x6a,0x74,0x69])],_0x489007=window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2def7e[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2def7e[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556601={..._0x10aff8,[_0x5429a7([0x6a,0x74,0x69])]:_0x2def7e[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2def7e[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556601[_0x5429a7([0x76,0x63])],_0x2c3e74(_0x556601)==_0x489007;}}}async function _0x4ef495(){let _0x4404e2=!0x0;try{const _0x273b8a=_0x229fb5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e])),[_0x5d6fa6,_0x3f234e,_0x75530f]=_0x273b8a;return _0x5d1719(_0x5d6fa6),await _0x5a8c5f(_0x5d6fa6,_0x3f234e,_0x75530f),_0x4404e2;}catch(_0x368578){return!0x1;}function _0x5d1719(_0x32ffd2){const _0x1a0007=_0x399bec(_0x32ffd2);_0x1a0007&&_0x1a0007[_0x5429a7([0x61,0x6c,0x67])]==_0x5429a7([0x45,0x53,0x32,0x35,0x36])||(_0x4404e2=!0x1);}async function _0x5a8c5f(_0x17dbab,_0x28c610,_0x37568c){const _0x4484b4=window[_0x5429a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5429a7([0x66,0x72,0x6f,0x6d])](_0x3b226a(_0x37568c),_0x490f0f=>_0x490f0f[_0x5429a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2821ad=new window[(_0x5429a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5429a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17dbab+_0x5429a7([0x2e])+_0x28c610),_0x598fb2=window[_0x5429a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5429a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x598fb2)return;const _0x16a2d6=await _0x598fb2[_0x5429a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5429a7([0x6a,0x77,0x6b]),_0x1e535e,{[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x45,0x43,0x44,0x53,0x41]),[_0x5429a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5429a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x598fb2[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x45,0x43,0x44,0x53,0x41]),[_0x5429a7([0x68,0x61,0x73,0x68])]:{[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16a2d6,_0x4484b4,_0x2821ad)||(_0x4404e2=!0x1);}}function _0x399bec(_0x19f68c){return _0x19f68c[_0x5429a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5429a7([0x65,0x79]))?JSON[_0x5429a7([0x70,0x61,0x72,0x73,0x65])](_0x3b226a(_0x19f68c)):null;}function _0x3b226a(_0x1b2829){return window[_0x5429a7([0x61,0x74,0x6f,0x62])](_0x1b2829[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5429a7([0x2b]))[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5429a7([0x2f])));}function _0x2c3e74(_0x4125a2){let _0x1a2808=0x1505;function _0x3d6ffe(_0x36b0a6){for(let _0x36ec53=0x0;_0x36ec53<_0x36b0a6[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36ec53++){const _0x588895=_0x36b0a6[_0x5429a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36ec53);_0x1a2808=(_0x1a2808<<0x5)+_0x1a2808+_0x588895,_0x1a2808&=_0x1a2808;}}function _0x41d5e8(_0x467489){Array[_0x5429a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x467489)?_0x467489[_0x5429a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41d5e8):_0x467489&&typeof _0x467489==_0x5429a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5429a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x467489)[_0x5429a7([0x73,0x6f,0x72,0x74])]()[_0x5429a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4471db,_0x4d5132])=>{_0x3d6ffe(_0x4471db),_0x41d5e8(_0x4d5132);}):_0x3d6ffe(window[_0x5429a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x467489));}return _0x41d5e8(_0x4125a2),_0x1a2808>>>0x0;}function _0x41ffd(_0x47188a){return _0x47188a[_0x5429a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5429a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5429a7([0x30]));}function _0x275d17(_0x1b2841){return _0x1b2841[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5429a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5429a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e2bfb(_0x36e52d){return _0x44f9c4[_0x5429a7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5429a7([0x68,0x61,0x73])](_0x36e52d);}function _0x483699(_0x530c87){return _0x44f9c4[_0x5429a7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5429a7([0x67,0x65,0x74])](_0x530c87);}function _0x2c35df(){}function _0x5429a7(_0x3a9003){return _0x3a9003['map'](_0xa0f87e=>String['fromCharCode'](_0xa0f87e))['join']('');}_0x184d59(await _0x9bc175());}(this);}['createRevision'](_0x24cd0a){const _0x4ea7bd=this['editor']['plugins']['get']('Users');return new h({'id':_0x24cd0a['id'],'name':_0x24cd0a['name'],'creator':_0x24cd0a['creatorId']?_0x4ea7bd['getUser'](_0x24cd0a['creatorId']):null,'diffData':_0x24cd0a['diffData']||_0x24cd0a['data'],'authors':_0x24cd0a['authorsIds']['map'](_0x570ed1=>_0x4ea7bd['getUser'](_0x570ed1)),'createdAt':new Date(_0x24cd0a['createdAt']),'attributes':_0x24cd0a['attributes'],'fromVersion':_0x24cd0a['fromVersion'],'toVersion':_0x24cd0a['toVersion']});}['addRevision'](_0x4abacd,_0x59c5bd=0x0){this['_revisions']['add'](_0x4abacd,_0x59c5bd);}['getRevision'](_0xd35d8c){return this['_revisions']['get'](_0xd35d8c);}['getRevisions'](_0x57ae60={'toJSON':!0x1}){const _0x501bd9=Array['from'](this['_revisions']);return _0x501bd9['reverse'](),_0x57ae60['toJSON']?_0x501bd9['map'](_0x489a63=>_0x489a63['toJSON']()):_0x501bd9;}['getIndex'](_0x40f160){return this['_revisions']['getIndex'](_0x40f160);}['getEarlierVisibleRevision'](_0x3377a0){const [,_0x5d912d]=this['getRevisionsIterator'](_0x3377a0,{'direction':'earlier'});return _0x5d912d;}['getLaterVisibleRevision'](_0x37c4f){const [,_0x130235]=this['getRevisionsIterator'](_0x37c4f,{'direction':'later'});return _0x130235;}['getRevisionsInDiff'](_0x38b8ec){const _0x2cba6e=[];for(const _0x1b7639 of this['getRevisionsIterator'](_0x38b8ec['newRevisionId']))if(_0x2cba6e['push'](_0x1b7639),_0x1b7639['id']===_0x38b8ec['oldRevisionId'])break;return _0x2cba6e;}*['getRevisionsIterator'](_0x3e78fe,{direction:_0x355250='earlier',filter:_0x3ecbf0=()=>!0x0}={}){const _0x28d615='earlier'===_0x355250?0x1:-0x1;let _0x5c7127=this['_revisions']['get'](_0x3e78fe),_0x348f53=this['getIndex'](_0x5c7127);for(yield _0x5c7127;_0x5c7127;){if(_0x348f53+=_0x28d615,_0x5c7127=this['getRevision'](_0x348f53),!_0x5c7127)return;_0x3ecbf0(_0x5c7127)&&(yield _0x5c7127);}}}class V extends _0x501960{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x272f11,'c'],[_0x255325,'a'],[_0x40c9a6,'e'],[_0x500888,'r'],[_0x183300,'u']]);['_typeCharToViewClass']=new Map([['c',_0x272f11],['a',_0x255325],['e',_0x40c9a6],['r',_0x500888],['u',_0x183300]]);async['loadRevisionData'](_0xa56c15,_0x2d369b){if(_0xa56c15['diffData']||!_0x2d369b)return;const _0x544702=this['editor']['config']['get']('collaboration.channelId'),_0x440d1c=await _0x2d369b['getRevision']({'channelId':_0x544702,'revisionId':_0xa56c15['id']});_0xa56c15['diffData']=_0x440d1c['diffData'];}['getRevisionDocumentData'](_0x3e4e4f){const _0x3c14b3={};for(const _0xde2678 in _0x3e4e4f['diffData']){if(_0x3e4e4f['diffData'][_0xde2678]['attachChange']&&!_0x3e4e4f['diffData'][_0xde2678]['attachChange']['isAttached'])continue;const _0x288e20=this['_removeRevisionMarkers'](JSON['parse'](_0x3e4e4f['diffData'][_0xde2678]['insertions'])),_0x5cbdfd=this['editor']['editing']['view']['document'],_0x1551c4=new _0x5e62b6(_0x5cbdfd,_0x288e20['map'](_0x58141b=>this['_getViewFromDiffObj'](_0x58141b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c14b3[_0xde2678]=this['editor']['data']['processor']['toData'](_0x1551c4),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c14b3;}['getRevisionRootsAttributes'](_0x41439d){const _0x37c6b5={};for(const _0x5fc14f in _0x41439d['diffData'])_0x41439d['diffData'][_0x5fc14f]['attachChange']&&!_0x41439d['diffData'][_0x5fc14f]['attachChange']['isAttached']||(_0x37c6b5[_0x5fc14f]=_0x41439d['diffData'][_0x5fc14f]['attributesAfter']||{});return _0x37c6b5;}['_getTypeCharForViewElement'](_0x5d83dd){return this['_viewClassToTypeChar']['get'](_0x5d83dd['constructor']);}['_getViewFromDiffObj'](_0x192f09,_0x2d57e9){const _0x2d663a=this['editor']['editing']['view']['document'];if('string'==typeof _0x192f09)return new _0x11b39a(_0x2d663a,_0x192f09);{let _0x185ff1,_0x131055;_0x131055='u'==_0x192f09['type']||'r'==_0x192f09['type']?[]:_0x192f09['children']['map'](_0x5213d0=>this['_getViewFromDiffObj'](_0x5213d0,_0x2d57e9));const _0x2ddde4=this['_typeCharToViewClass']['get'](_0x192f09['type'])||_0x4fe2ef,_0x967792=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x185ff1=new _0x2ddde4(_0x2d663a,_0x192f09['name'],_0x192f09['attributes'],_0x131055),'u'==_0x192f09['type']){const _0x374499=_0x192f09['children'][0x0];if(_0x185ff1['render']=function(_0x51d98c){const _0x4f23bc=_0x51d98c['createElement']('div');return _0x4f23bc['innerHTML']=_0x374499,_0x4f23bc['childNodes'][0x0];},_0x2d57e9){const _0xde13de=new _0x5e62b6(_0x2d663a);_0xde13de['_appendChild'](_0x185ff1);const _0x25873e=Array['from'](_0x967792['viewChildrenToDom'](_0xde13de,{'bind':!0x1})),_0x43e3e1=_0x967792['domDocument']['createElement']('div');_0x43e3e1['append'](..._0x25873e),_0x185ff1=Array['from'](_0x967792['domChildrenToView'](_0x43e3e1))[0x0];}}else{if('r'==_0x192f09['type']){const _0x9b22cd=_0x192f09['children'][0x0];if(_0x185ff1['render']=function(_0x2ea2c2){_0x2ea2c2['innerHTML']=_0x9b22cd;},_0x2d57e9){const _0x3348e3=new _0x5e62b6(_0x2d663a);_0x3348e3['_appendChild'](_0x185ff1);const _0xe5f9a9=Array['from'](_0x967792['viewChildrenToDom'](_0x3348e3,{'bind':!0x1})),_0x4bbf24=_0x967792['domDocument']['createElement']('div');_0x4bbf24['append'](..._0xe5f9a9);const _0x571585=Array['from'](_0x967792['domChildrenToView'](_0x4bbf24));_0x571585['length']>0x1?_0x185ff1['_appendChild'](_0x571585):_0x185ff1=_0x571585[0x0];}}}if(_0x192f09['customProperties']){for(const [_0xa4458,_0x18fd4b]of _0x192f09['customProperties'])_0x185ff1['_setCustomProperty'](_0xa4458,_0x18fd4b);}const _0x2be96d=_0x192f09['fillerOffset']||null;return _0x185ff1['getFillerOffset']=()=>_0x2be96d,_0x185ff1;}}['_makeModelFromViewString'](_0xe861a3){const _0x59edea=JSON['parse'](_0xe861a3),_0x392232=this['editor']['editing']['view']['document'],_0x53e72b=new _0x5e62b6(_0x392232,_0x59edea['map'](_0x148a93=>this['_getViewFromDiffObj'](_0x148a93,!0x0)));return this['editor']['data']['toModel'](_0x53e72b);}['_removeRevisionMarkers'](_0x440d19){return(_0x440d19=_0x440d19['filter'](_0x5cdafd=>!_0x5cdafd['name']||'revision-start'!==_0x5cdafd['name']&&'revision-end'!==_0x5cdafd['name']))['forEach'](_0x231dd4=>{'string'!=typeof _0x231dd4&&(_0x231dd4['children']=this['_removeRevisionMarkers'](_0x231dd4['children']),_0x231dd4['attributes']=_0x231dd4['attributes']['filter'](_0x12b9f1=>!_0x12b9f1[0x0]['startsWith']('data-revision-')));}),_0x440d19;}}function g(_0x20cc21,_0x1d1868,_0x1af2a0){const t=_0x20cc21['t'];switch(_0x1d1868){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'},_0x1af2a0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1af2a0);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x501960{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5916f6,I,V,_0x50707e];}constructor(_0x54ec4d){super(_0x54ec4d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2fd3b8=_0x1d6ae4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2fd3b8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5a4f71=this['repository']['getRevision'](0x0),_0x22f690=_0x5a4f71&&null===_0x5a4f71['creator']?_0x5a4f71:null;if(this['_continueCurrentRevision']=!!_0x22f690&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13111e=this['_source']['getCurrentRevisionId'](),_0x53d1cd=this['repository']['getRevision'](_0x13111e);if(_0x53d1cd)this['_startingVersion']=_0x53d1cd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2230ab=this['_source']['history']['_operations']['find'](_0x495cda=>!_0x495cda['_isInit']),_0x2b280c=_0x2230ab?_0x2230ab['baseVersion']:this['_source']['history']['version'];_0x5a4f71?(_0x5a4f71['toVersion']<_0x2b280c&&_0x5a4f71['_update']({'toVersion':_0x2b280c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id'],this['_startingVersion']=_0x22f690['fromVersion']):(this['_startingVersion']=_0x5a4f71['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2b280c,this['_continueCurrentRevision']=!0x1);}}else _0x22f690&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x22f690['toVersion'],this['editor']['model']['document']['history']['version']),_0x22f690['fromVersion']===_0x22f690['toVersion']?(0x0!==_0x22f690['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id'],this['_startingVersion']=_0x22f690['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',_0x3eb310=>!_0x3eb310),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14042d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x375211;for(const _0x40ac55 in _0x14042d){const _0x5c2813=_0x40ac55,_0x42a307=_0x14042d[_0x5c2813];if('revisionHistoryLicenseKeyValid'==_0x42a307||'revisionHistoryLicenseKeyInvalid'==_0x42a307||'revisionHistoryLicenseKeyExpired'==_0x42a307||'revisionHistoryLicenseKeyDomainLimit'==_0x42a307||'revisionHistoryLicenseKeyNotAllowed'==_0x42a307||'revisionHistoryLicenseKeyEvaluationLimit'==_0x42a307||'revisionHistoryLicenseKeyTrialLimit'==_0x42a307||'revisionHistoryLicenseKeyUsageLimit'==_0x42a307){delete _0x14042d[_0x5c2813],_0x375211=_0x42a307,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x375211&&_0x14042d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x375211&&_0x14042d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x375211&&_0x14042d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x375211&&_0x14042d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x375211&&_0x14042d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x375211&&_0x14042d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x375211&&_0x14042d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x48a9c1=this['repository']['getRevision'](0x0),_0x30057b=await this['getRevisionDocumentData'](_0x48a9c1),_0x47fc1f=await this['getRevisionRootsAttributes'](_0x48a9c1);this['_replaceEditorDataWithRevisionData'](_0x30057b,_0x47fc1f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x180bf8){this['_source']=_0x180bf8;}async['update'](){const _0x4f02f1=await this['_source']['getLatestVersion']();if(_0x4f02f1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2e1f2e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4f02f1});_0x2e1f2e['authors']=_0x2e1f2e['authorsIds']['map'](_0x4acc7d=>this['editor']['plugins']['get']('Users')['getUser'](_0x4acc7d)),this['currentRevision']['_update'](_0x2e1f2e);}}async['saveRevision'](_0x3b77c8={},_0x837f56=null){const _0x3e4749=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x837f56>this['currentRevision']['toVersion']&&(_0x837f56=null),null===_0x837f56&&(_0x837f56=await this['_source']['getLatestVersion']());const _0x5a9d88=this['_getFromVersion'](_0x837f56),_0x35e949=this['buildRevisionData']({'from':_0x5a9d88,'to':_0x837f56});if(this['currentRevision']['toVersion']<_0x837f56){const _0x53046e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x837f56,'to':_0x837f56});_0x53046e['authors']=[],_0x53046e['authorsIds']=[],_0x53046e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x53046e,!0x0),delete _0x53046e['authors'],_0x3e4749['push'](_0x53046e);}_0x3b77c8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b77c8['name']=_0x3b77c8['name']||null,_0x3b77c8['id']=_0x3b77c8['id']||_0x1d6ae4(),_0x3b77c8={..._0x3b77c8,..._0x35e949};const _0x31e0f2=this['addRevisionData'](_0x3b77c8);_0x3e4749['push'](_0x3b77c8);const _0x36dd04=this['repository']['getIndex'](_0x31e0f2);if(0x0!==_0x36dd04){const _0x540f71=this['repository']['getRevision'](_0x36dd04-0x1);if(_0x540f71['fromVersion']!==_0x837f56){const _0x73d79f=this['_revisionDataBuilder']['getData'](_0x837f56,_0x540f71['toVersion']),_0x187376={'id':_0x540f71['id'],'diffData':_0x73d79f['diffData'],'authorsIds':_0x73d79f['authorsIds'],'authors':_0x73d79f['authorsIds']['map'](_0x170f46=>this['editor']['plugins']['get']('Users')['getUser'](_0x170f46)),'fromVersion':_0x837f56};_0x540f71===this['currentRevision']&&(_0x187376['createdAt']=new Date(_0x3b77c8['createdAt']['getTime']()+0xa)),_0x540f71['_update'](_0x187376,!0x0),delete _0x187376['authors'],_0x3e4749['push'](_0x187376);}}if(this['adapter']){for(const _0x509ad2 of _0x3e4749)this['_bufferUpdate'](_0x509ad2['id'],_0x509ad2,!0x0);this['sendBufferedUpdates']();}return _0x31e0f2;}['addRevisionData'](_0xeed512){const _0x1b7034=this['repository']['createRevision'](_0xeed512);return this['adapter']&&_0x1b7034['on']('_update',(_0x12721e,_0x1adee2,_0x13804d)=>{_0x13804d||(this['_bufferUpdate'](_0x1adee2['id'],_0x1adee2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b7034,this['_findInsertionIndex'](_0x1b7034)),_0x1b7034;}async['getRevisionDocumentData'](_0x2f74e6){return await this['_utils']['loadRevisionData'](_0x2f74e6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f74e6);}async['getRevisionRootsAttributes'](_0x123204){return await this['_utils']['loadRevisionData'](_0x123204,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x123204);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4a8ee6=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x463f65=0x0;_0x463f65<_0x4a8ee6['length'];_0x463f65++){const _0x127ce4=_0x4a8ee6[_0x463f65];let _0x26c844=!0x1;for(const _0x1f4f21 of Object['keys'](_0x127ce4))void 0x0===_0x127ce4[_0x1f4f21]?delete _0x127ce4[_0x1f4f21]:'id'!==_0x1f4f21&&(_0x26c844=!0x0);_0x26c844||(_0x4a8ee6[_0x463f65]=null);}if(_0x4a8ee6=_0x4a8ee6['filter'](_0x26c45f=>null!==_0x26c45f),!_0x4a8ee6['length'])return;for(let _0x335c67=0x0;_0x335c67<_0x4a8ee6['length'];_0x335c67++){const _0x47b523=_0x4a8ee6[_0x335c67];void 0x0!==_0x47b523['fromVersion']&&void 0x0===_0x47b523['toVersion']&&(_0x47b523['toVersion']=this['repository']['getRevision'](_0x47b523['id'])['toVersion']),void 0x0!==_0x47b523['toVersion']&&void 0x0===_0x47b523['fromVersion']&&(_0x47b523['fromVersion']=this['repository']['getRevision'](_0x47b523['id'])['fromVersion']);}const _0x3f759c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4a8ee6,_0x3f759c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f2423=>{if(_0x3f2423){for(const _0x436f41 of _0x3f2423)this['setRevisionData']({'id':_0x436f41['id'],'createdAt':_0x436f41['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x343cc5=null,from:_0x374de3=null,to:_0x4d97be=null}){_0x374de3=null!==_0x374de3?_0x374de3:_0x343cc5['fromVersion'],_0x4d97be=null!==_0x4d97be?_0x4d97be:_0x343cc5['toVersion'];const _0x3b5194=this['_revisionDataBuilder']['getData'](_0x374de3,_0x4d97be),_0x46e6c3={'diffData':_0x3b5194['diffData'],'authorsIds':_0x3b5194['authorsIds'],'fromVersion':_0x374de3,'toVersion':_0x4d97be};if(!_0x343cc5||_0x4d97be!==_0x343cc5['toVersion']){const _0x198e31=_0x4d97be-0x1,_0x4a6aa1=this['_source']['history']['getOperation'](_0x198e31);_0x46e6c3['createdAt']=_0x4a6aa1&&_0x4a6aa1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x374de3===this['_loadedStateData']['fromVersion']){for(const _0x270c7f of this['_loadedStateData']['authors'])_0x46e6c3['authorsIds']['includes'](_0x270c7f['id'])||_0x46e6c3['authorsIds']['push'](_0x270c7f['id']);}return _0x46e6c3;}['_bufferUpdate'](_0x345125,_0x3f40e1,_0x44648f){if(this['_bufferedUpdates']['has'](_0x345125)){const _0x324600=this['_bufferedUpdates']['get'](_0x345125);_0x3f40e1=_0x44648f?{..._0x324600,..._0x3f40e1}:{..._0x3f40e1,..._0x324600};}this['_bufferedUpdates']['set'](_0x345125,_0x3f40e1);}['setRevisionData'](_0x172a16){const _0x450e9e=this['repository']['getRevision'](_0x172a16['id']);if(_0x172a16['createdAt']&&(_0x172a16['createdAt']=new Date(_0x172a16['createdAt'])),_0x172a16['authorsIds']){const _0x6569ab=this['editor']['plugins']['get']('Users');_0x172a16['authors']=_0x172a16['authorsIds']['map'](_0x3df364=>_0x6569ab['getUser'](_0x3df364));}_0x450e9e['_update'](_0x172a16,!0x0);}['_createInitialRevision'](_0x36a93c){const _0x458ce5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x458ce5)this['_initialRevisionId']=_0x458ce5['id'];else{const _0x2fb141=!this['editor']['model']['document']['roots']['find'](_0x4ee708=>this['editor']['model']['hasContent'](_0x4ee708)),_0x7763cb=this['editor']['plugins']['get']('Users')['me']['id'],_0x34c49b=g(this['editor']['locale'],_0x2fb141?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x36a93c,'to':_0x36a93c,'id':this['_initialRevisionId'],'name':_0x34c49b,'creatorId':_0x7763cb});}}['_createCurrentRevision'](_0xd33ec5){const _0x5a0e6c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5a0e6c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd33ec5,'to':_0xd33ec5,'id':_0x5a0e6c,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4a5fb5,_0x50eb51){let _0x4fc34b=this['editor']['config']['get']('initialData'),_0xd83c7d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4fc34b){_0x4fc34b={};for(const _0xea6f45 of this['editor']['model']['document']['getRootNames']())_0x4fc34b[_0xea6f45]='';}if('string'==typeof _0x4fc34b&&(_0x4fc34b={'main':_0x4fc34b}),void 0x0===_0xd83c7d){_0xd83c7d={};for(const _0x44d3d8 of this['editor']['model']['document']['getRootNames']())_0xd83c7d[_0x44d3d8]={};}let _0x4ee191=!0x1;const _0x406a98=Object['keys'](_0x4fc34b),_0x3337f9=Object['keys'](_0x4a5fb5);for(const _0x1eb917 of _0x406a98){if(_0x4fc34b[_0x1eb917]!==_0x4a5fb5[_0x1eb917]&&''!==_0x4fc34b[_0x1eb917]['trim']()){_0x4ee191=!0x0;break;}if(!_0x32942f(_0xd83c7d[_0x1eb917],_0x50eb51[_0x1eb917])&&Object['keys'](_0xd83c7d[_0x1eb917])['length']>0x0){_0x4ee191=!0x0;break;}}_0x4ee191||(_0x4ee191=_0x3337f9['some'](_0x5490e8=>!this['editor']['model']['document']['getRoot'](_0x5490e8))),_0x4ee191&&_0x21ae3d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4fc34b,'editorRootsAttributes':_0xd83c7d,'revisionData':_0x4a5fb5,'revisionRootsAttributes':_0x50eb51}),this['editor']['config']['set']('initialData',_0x4a5fb5),this['editor']['config']['set']('rootsAttributes',_0x50eb51);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4541cb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4541cb['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56a287){const _0x33958f=this['repository']['getRevisions']();_0x33958f['reverse']();let _0x300246=0x0;for(;_0x300246<_0x33958f['length'];){const _0x31e5a9=_0x33958f[_0x300246];if(_0x31e5a9===this['currentRevision']){_0x300246++;continue;}if(_0x31e5a9['id']===this['_initialRevisionId'])break;const _0x44a427=_0x56a287['toVersion']-_0x31e5a9['toVersion']||_0x56a287['fromVersion']-_0x31e5a9['fromVersion'];if(_0x44a427>0x0)break;if(_0x44a427<0x0)_0x300246++;else{if(!_0x56a287['creator']&&_0x31e5a9['creator'])break;if(_0x31e5a9['creator']||!_0x56a287['creator']){if(_0x56a287['createdAt']>_0x31e5a9['createdAt'])break;_0x300246++;}else _0x300246++;}}return _0x300246;}['_getFromVersion'](_0x10b7e8){const _0x33b92d=this['repository']['getRevisions']();_0x33b92d['reverse'](),_0x33b92d['shift']();const _0x173a81=_0x33b92d['find'](_0x152f2e=>_0x152f2e['toVersion']<=_0x10b7e8)['toVersion'];return _0x173a81<this['_startingVersion']?this['_startingVersion']:_0x173a81;}['_makeRevision']({name:_0x1cb8fc,from:_0x4464be,to:_0x541518,creatorId:_0x482cf6,id:_0x28b42e}){const _0x548ddb=this['buildRevisionData']({'from':_0x4464be,'to':_0x541518});_0x548ddb['name']=_0x1cb8fc,_0x548ddb['creatorId']=_0x482cf6,_0x548ddb['id']=_0x28b42e;const _0x29f42b=this['addRevisionData'](_0x548ddb);return this['adapter']&&this['_bufferUpdate'](_0x548ddb['id'],_0x548ddb,!0x0),_0x29f42b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x374521){this['editor']=_0x374521,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'](_0x172f89){this['source']=_0x172f89;const _0x451d4f=new Map(),_0xbdb8f7=new Map(),_0x282713=this['editor']['model']['document']['roots']['map'](_0x544934=>_0x544934['rootName']);for(const _0x50196c of _0x282713){const _0x2f1e21=this['editor']['model']['document']['getRoot'](_0x50196c),_0x1dd99b=N(_0x2f1e21);_0x451d4f['set'](_0x50196c,_0x1dd99b),_0xbdb8f7['set'](_0x50196c,Object['fromEntries'](_0x2f1e21['getAttributes']()));}const _0x2f1581=Array['from'](this['editor']['model']['markers'])['map'](_0x1ffde0=>[_0x1ffde0['name'],_0x1ffde0['getRange']()]),_0x14d0a2=this['source']['version'];this['_saveMetaData'](_0x14d0a2,_0x451d4f,_0x2f1581,_0xbdb8f7),this['_startingRevisionId']=this['_revisionId'];const _0x3322e3=new Map(),_0xdb82e8=new Map();for(const _0x110168 of _0x282713){const _0x5e0998=P(_0x110168);_0x3322e3['set'](_0x110168,_0x5e0998),_0xdb82e8['set'](_0x110168,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3322e3,[],_0xdb82e8);}['getData'](_0x4166cb,_0x39544f){if(this['_lastFrom']===_0x4166cb&&this['_lastTo']<=_0x39544f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39544f,!0x0);else{if(!this['_savedMetaData']['has'](_0x4166cb)){const _0x169ef0=this['_getPreviousFrom'](_0x4166cb);this['_calculateMetaData'](_0x169ef0,_0x4166cb,!0x1);}this['_calculateMetaData'](_0x4166cb,_0x39544f,!0x0);}return this['_lastFrom']=_0x4166cb,this['_lastTo']=_0x39544f,this['_getState']();}['loadState'](_0x1fe7fe){const _0x39e5de=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1fe7fe['fromVersion'],this['_lastTo']=_0x1fe7fe['toVersion'];for(const _0x2888d1 in _0x1fe7fe['diffData']){const _0x953921=_0x1fe7fe['diffData'][_0x2888d1]['attachChange'],_0x216766=_0x980597(_0x1fe7fe['diffData'][_0x2888d1]['attributesBefore'])||{},_0x12414f=_0x39e5de['_makeModelFromViewString'](_0x1fe7fe['diffData'][_0x2888d1]['deletions']);_0x12414f['rootName']=_0x2888d1,_0x12414f['_isAttached']=!_0x953921||!_0x953921['isAttached'],_0x12414f['isAttached']=()=>_0x12414f['_isAttached'],this['_baseRoots']['set'](_0x2888d1,_0x12414f),this['_baseRootsAttributes']['set'](_0x2888d1,_0x216766),_0x953921&&this['_touchedRoots']['set'](_0x2888d1,_0x953921);const _0x49fdda=this['_makeIdsRoot'](_0x12414f);this['_baseIdsRoots']['set'](_0x2888d1,_0x49fdda);for(const [_0x540b86,_0x207b6b]of _0x12414f['markers']){if(!_0x540b86['startsWith']('revision:'))continue;const _0x33cfcc=_0x540b86['split'](':')[0x2];for(const _0x2dfd0e of _0x207b6b['getWalker']({'singleCharacters':!0x0})){const _0x146c53=this['_getVidAttributeName'](_0x2dfd0e),_0x54f5b7='elementEnd'==_0x2dfd0e['type']?_0x2dfd0e['previousPosition']['path']['slice'](0x0,-0x1):_0x2dfd0e['previousPosition']['path'],_0x3345fb=_0x49fdda['getNodeByPath'](_0x54f5b7)['getAttribute'](_0x146c53);this['_touched']['set'](_0x3345fb,{'userId':_0x33cfcc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x701573=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x10e9ed=>!this['_touched']['has'](_0x10e9ed));let _0x13c0d2=0x0;const _0x1f644f=new Map();for(const _0x430744 in _0x1fe7fe['diffData']){const _0x4bf76d=_0x1fe7fe['diffData'][_0x430744]['attachChange'],_0x5deabf=_0x980597(_0x1fe7fe['diffData'][_0x430744]['attributesAfter'])||{},_0x498417=_0x39e5de['_makeModelFromViewString'](_0x1fe7fe['diffData'][_0x430744]['insertions']);_0x498417['rootName']=_0x430744,_0x498417['_isAttached']=!_0x4bf76d||_0x4bf76d['isAttached'],_0x498417['isAttached']=()=>_0x498417['_isAttached'],this['_diffRoots']['set'](_0x430744,_0x498417),this['_diffRootsAttributes']['set'](_0x430744,_0x5deabf);const _0x23f471=this['_makeIdsRoot'](_0x498417,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x430744,_0x23f471),_0x1f644f['set'](_0x430744,_0x498417['isAttached']()?_0x5deabf:{});for(const [_0x5ab8e0,_0x29923c]of _0x498417['markers']){if(!_0x5ab8e0['startsWith']('revision:'))continue;const _0x1d4d73=_0x5ab8e0['split'](':')[0x2];for(const _0x29fe71 of _0x29923c['getWalker']({'singleCharacters':!0x0})){const _0x584f71=this['_getVidAttributeName'](_0x29fe71),_0x1d3df7=this['_revisionId']++,_0xef1ed6='elementEnd'==_0x29fe71['type']?_0x29fe71['previousPosition']['path']['slice'](0x0,-0x1):_0x29fe71['previousPosition']['path'];_0x23f471['getNodeByPath'](_0xef1ed6)['_setAttribute'](_0x584f71,_0x1d3df7),this['_touched']['set'](_0x1d3df7,{'userId':_0x1d4d73});}}for(const _0x1adf9a of this['editor']['model']['createRangeIn'](_0x498417)['getWalker']({'singleCharacters':!0x0})){const _0x34c382=this['_getVidAttributeName'](_0x1adf9a),_0x473585='elementEnd'==_0x1adf9a['type']?_0x1adf9a['previousPosition']['path']['slice'](0x0,-0x1):_0x1adf9a['previousPosition']['path'],_0x1df004=_0x23f471['getNodeByPath'](_0x473585);_0x1df004['getAttribute'](_0x34c382)>0x0||_0x1df004['_setAttribute'](_0x34c382,_0x701573[_0x13c0d2++]);}for(const [_0x29c427,_0x5a3188]of _0x498417['markers'])_0x29c427['startsWith']('revision:')||this['_markers']['set'](_0x29c427,_0x5a3188);}const _0x282cca=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x282cca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x282cca,0x1));const _0xc9587a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc9587a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc9587a,0x1));const _0x79b916=Array['from'](this['_diffRoots'])['map'](([_0x1bdab0,_0xce029b])=>[_0x1bdab0,N(_0xce029b)]);this['_saveMetaData'](this['_lastTo'],_0x79b916,this['_markers'],_0x1f644f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x50c88a,_0x22bbe6,_0x4b8fa4,_0x3cd29d){const _0x553920=new Map(_0x22bbe6),_0x348ea1=new Map(_0x980597(_0x3cd29d)),_0xe2db8f=new Map();for(const [_0x2cba54,_0x19e6ab]of _0x4b8fa4)_0xe2db8f['set'](_0x2cba54,{'start':_0x19e6ab['start']['clone'](),'end':_0x19e6ab['end']['clone'](),'rootName':_0x19e6ab['root']['rootName']});this['_savedMetaData']['set'](_0x50c88a,{'roots':_0x553920,'markers':_0xe2db8f,'rootsAttributes':_0x348ea1});}['_removeMetaData'](_0x302c95){this['_savedMetaData']['delete'](_0x302c95);}['_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'](_0x41c631,_0x34d187=null){let _0x2211c0=null;_0x41c631['is']('documentFragment')||(_0x2211c0=new ut(_0x41c631['name'],{'vid_start':null===_0x34d187?this['_revisionId']++:_0x34d187++}));const _0x1569df=[];for(const _0x3a0b38 of _0x41c631['getChildren']())if(_0x3a0b38['is']('element')){_0x1569df['push'](this['_makeIdsRoot'](_0x3a0b38,_0x34d187));const _0x1c5f4e=_0x1569df[_0x1569df['length']-0x1];null!==_0x34d187&&(_0x34d187=_0x1c5f4e['is']('element','$text')?_0x1c5f4e['getAttribute']('vid')+0x1:_0x1c5f4e['getAttribute']('vid_end')+0x1);}else{for(let _0x2d179a=0x0;_0x2d179a<_0x3a0b38['offsetSize'];_0x2d179a++)_0x1569df['push'](new ut('$text',{'vid':null===_0x34d187?this['_revisionId']++:_0x34d187++}));}if(_0x41c631['is']('documentFragment')){const _0x1aafcc=P(_0x41c631['rootName']);return _0x1aafcc['_insertChild'](0x0,_0x1569df),_0x1aafcc;}return _0x2211c0['_setAttribute']('vid_end',null===_0x34d187?this['_revisionId']++:_0x34d187++),_0x2211c0['_insertChild'](0x0,_0x1569df),_0x2211c0;}['_calculateMetaData'](_0x37ff46,_0x3b217e,_0x274dcb){this['_reset']();const {roots:_0x4492f0,markers:_0x42817a,rootsAttributes:_0x4bef7c}=this['_savedMetaData']['get'](_0x37ff46);this['_baseRoots']=new Map(_0x4492f0),this['_baseRootsAttributes']=new Map(_0x980597(_0x4bef7c));for(const [_0x5ef86f,_0xa4e9f1]of this['_baseRoots'])if('$graveyard'!==_0x5ef86f&&(this['_diffRoots']['set'](_0x5ef86f,N(_0xa4e9f1)),this['_diffRootsAttributes']=new Map(_0x980597(_0x4bef7c)),_0x274dcb)){const _0x5c227b=this['_revisionId'];this['_idsRoots']['set'](_0x5ef86f,this['_makeIdsRoot'](_0xa4e9f1)),this['_baseIdsRoots']['set'](_0x5ef86f,this['_makeIdsRoot'](_0xa4e9f1,_0x5c227b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x274dcb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4932e4,_0x499a37]of _0x42817a){const _0xb82858=this['_baseRoots']['get'](_0x499a37['rootName']),_0x20e5f7=this['_diffRoots']['get'](_0x499a37['rootName']),_0x30ec8e=new lt(this['_fixPosition'](_0x499a37['start'],_0xb82858),this['_fixPosition'](_0x499a37['end'],_0xb82858)),_0x157fee=this['_fixRange'](_0x30ec8e,_0x20e5f7);_0xb82858['markers']['set'](_0x4932e4,_0x30ec8e),this['_markers']['set'](_0x4932e4,_0x157fee);}this['_applyOperations'](_0x37ff46,_0x3b217e,_0x274dcb);}['_applyOperations'](_0x352e4b,_0x9fd91d,_0x45749d){for(const _0xdf9b88 of this['source']['getOperations'](_0x352e4b,_0x9fd91d))this['_handleOperation'](_0xdf9b88,_0x45749d);for(const _0x202f94 of this['_diffRoots']['values']())_0x202f94['markers']['clear']();for(const [_0x4e0a4d,_0x5496b6]of this['_markers']){this['_diffRoots']['get'](_0x5496b6['root']['rootName'])['markers']['set'](_0x4e0a4d,_0x5496b6['clone']());}const _0x5423f9=new Map(),_0x365196=new Map();for(const [_0x4117c5,_0x2e624e]of this['_diffRoots'])_0x5423f9['set'](_0x4117c5,N(_0x2e624e)),_0x365196['set'](_0x4117c5,this['_diffRootsAttributes']['get'](_0x4117c5));this['_saveMetaData'](_0x9fd91d,_0x5423f9,this['_markers'],_0x365196);}['_getPreviousFrom'](_0x429675){const _0x1a972d=Array['from'](this['_savedMetaData']['keys']());_0x1a972d['sort']((_0x26ef04,_0x1192ae)=>_0x26ef04-_0x1192ae),_0x1a972d['reverse']();for(const _0x4aae9b of _0x1a972d)if(_0x4aae9b<_0x429675)return _0x4aae9b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x32473a,_0xb8a1b6){const _0x57e737=Array['from'](_0xb8a1b6['markers'])['map'](([_0x4f4f0e,_0x3f6d42])=>[_0x4f4f0e,this['_fixRange'](_0x3f6d42,_0x32473a)]);_0x32473a['markers']=new Map(_0x57e737);}['_transformMarkers'](_0x3ca6d1){for(const _0x8a7a43 of this['_markers']['values']()){const _0x3805f6=_0x8a7a43['getTransformedByOperation'](_0x3ca6d1),_0x318c96=lt['_createFromRanges'](_0x3805f6);_0x8a7a43['start']=_0x318c96['start'],_0x8a7a43['end']=_0x318c96['end'];}}['_handleOperation'](_0x37a9f0,_0x4e88a5){if('addRoot'!=_0x37a9f0['type']&&'detachRoot'!=_0x37a9f0['type']){if('insert'==_0x37a9f0['type']){const _0x411868=_0x37a9f0['position']['root']['rootName'];this['_diffRoots']['has'](_0x411868)||(this['_diffRoots']['set'](_0x411868,P(_0x411868,!0x0)),this['_diffRootsAttributes']['set'](_0x411868,{}),_0x4e88a5&&this['_idsRoots']['set'](_0x411868,P(_0x411868,!0x0)));}else{if('addRootAttribute'==_0x37a9f0['type']||'removeRootAttribute'==_0x37a9f0['type']||'changeRootAttribute'==_0x37a9f0['type'])return void this['_handleRootAttributeOperation'](_0x37a9f0);'marker'==_0x37a9f0['type']&&this['_handleMarkerOperation'](_0x37a9f0);}if('marker'!==_0x37a9f0['type']){const _0x44f6fa=this['_cloneOperation'](_0x37a9f0,this['_diffRoots']);_0x44f6fa['_execute'](),this['_transformMarkers'](_0x44f6fa);}if(_0x4e88a5)switch(_0x37a9f0['type']){case'insert':this['_handleInsertOperation'](_0x37a9f0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37a9f0);break;case'merge':this['_handleMergeOperation'](_0x37a9f0);break;case'split':this['_handleSplitOperation'](_0x37a9f0);}}else this['_handleRootOperation'](_0x37a9f0,_0x4e88a5);}['_cloneOperation'](_0x2677b4,_0xf0e92f){const _0x1b7079=_0x2677b4['clone']();return _0x1b7079['_authorId']=_0x2677b4['_authorId'],this['_fixOperation'](_0x1b7079,_0xf0e92f),_0x1b7079;}['_getBaseVids'](_0x3d2a05){return _0x3d2a05['map'](_0x315d22=>{const _0x3ce5de=this['_getVidAttributeName'](_0x315d22);return Number(_0x315d22['item']['getAttribute'](_0x3ce5de));});}['_generateTape'](_0x4015bb,_0x3bc2fe){if(_0x4015bb['is']('element','$text'))_0x3bc2fe['push']({'item':_0x4015bb,'type':'text'});else{_0x4015bb['is']('element')&&_0x3bc2fe['push']({'item':_0x4015bb,'type':'elementStart'});for(const _0x2177ef of _0x4015bb['getChildren']())this['_generateTape'](_0x2177ef,_0x3bc2fe);_0x4015bb['is']('element')&&_0x3bc2fe['push']({'item':_0x4015bb,'type':'elementEnd'});}return _0x3bc2fe;}['_getState'](){const _0x1d5b84=new Map(this['_touched']),_0x2cb1ec=new Map(_0x1d5b84),_0x38d61a=new Map(),_0x396859={'insertions':{},'deletions':{}},_0x3d6eef={'insertions':{},'deletions':{}},_0xedb505=new Map(),_0x535d29=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x535d29['delete']('$graveyard');for(const _0x3805a3 of _0x535d29){const _0x4e3049=this['_diffRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1),_0x3ba2b3=this['_baseRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1);_0x4e3049['isAttached']()||_0x3ba2b3['isAttached']()?(_0x396859['insertions'][_0x3805a3]=N(_0x4e3049),_0x396859['deletions'][_0x3805a3]=N(_0x3ba2b3),this['_copyMarkers'](_0x396859['deletions'][_0x3805a3],_0x3ba2b3),this['_copyMarkers'](_0x396859['insertions'][_0x3805a3],_0x4e3049),_0x3d6eef['insertions'][_0x3805a3]=this['_generateTape'](this['_idsRoots']['get'](_0x3805a3),[]),_0x3d6eef['deletions'][_0x3805a3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1),[])):_0x535d29['delete'](_0x3805a3);}for(const _0x26cb1e of _0x535d29){const _0x269a39=_0x3d6eef['insertions'][_0x26cb1e];for(const _0x1f072e of _0x269a39){const _0x5375cb=this['_getVidAttributeName'](_0x1f072e),_0x15f915=_0x1f072e['item']['getAttribute'](_0x5375cb);_0x2cb1ec['delete'](_0x15f915),_0x15f915>=this['_startingRevisionId']&&_0x38d61a['set'](_0x15f915,_0x1d5b84['get'](_0x15f915));}}for(const _0x43dd11 of _0x535d29){const _0x3e89d0=_0x3d6eef['insertions'][_0x43dd11],_0xd67cd8=this['_getBaseVids'](_0x3d6eef['deletions'][_0x43dd11]);let _0x5d918d=0x0;for(const _0x3485d2 of _0x3e89d0){const _0x2e8ea0=this['_getVidAttributeName'](_0x3485d2),_0x27d95f=_0x3485d2['item']['getAttribute'](_0x2e8ea0);if(!_0x38d61a['has'](_0x27d95f)&&!_0xedb505['has'](_0x27d95f)){if(_0x2cb1ec['has'](_0x27d95f))_0x5d918d++;else{if(_0x27d95f!=_0xd67cd8[_0x5d918d]){const _0x2ea046=_0x1d5b84['get'](_0x27d95f)||_0x1d5b84['get'](_0xd67cd8[_0x5d918d]);for(;_0x27d95f!=_0xd67cd8[_0x5d918d];)_0x2cb1ec['has'](_0xd67cd8[_0x5d918d])||(_0xedb505['set'](_0xd67cd8[_0x5d918d],_0x2ea046),_0x1d5b84['set'](_0xd67cd8[_0x5d918d],_0x2ea046)),_0x5d918d++;}_0x5d918d++;}}}}for(const _0x4f30db of _0x535d29){const _0x432bd3=_0x3d6eef['insertions'][_0x4f30db];for(const _0x10fb06 of _0x432bd3){const _0x1a18db=this['_getVidAttributeName'](_0x10fb06),_0x237ecf=_0x10fb06['item']['getAttribute'](_0x1a18db);if(_0xedb505['has'](_0x237ecf)){const _0x170ab3=_0xedb505['get'](_0x237ecf);_0x2cb1ec['has'](_0x237ecf)||_0x2cb1ec['set'](_0x237ecf,{..._0x170ab3}),_0x38d61a['set'](_0x237ecf,{..._0x170ab3});}}}for(const _0x94dc3b of _0x2cb1ec['keys']())_0x94dc3b>=this['_startingRevisionId']&&_0x2cb1ec['delete'](_0x94dc3b);const _0x5b0e37=new Map();for(const _0x14779f of _0x535d29){let _0x21e2d9=_0x3d6eef['insertions'][_0x14779f];for(const _0x3f4559 of _0x21e2d9)if(_0x3f4559['item']['is']('element','tableCell')){const _0x5ccad9=this['_getVidAttributeName'](_0x3f4559),_0x405585=_0x3f4559['item']['getAttribute'](_0x5ccad9);if(_0x38d61a['has'](_0x405585)){const _0x28d3c2=_0x3f4559['item']['parent']['parent']['getAttribute']('vid_start'),_0x504d2e=_0x5b0e37['get'](_0x28d3c2)||new Set();_0x504d2e['add'](_0x38d61a['get'](_0x405585)['userId']),_0x5b0e37['set'](_0x28d3c2,_0x504d2e);}}_0x21e2d9=_0x3d6eef['deletions'][_0x14779f];for(const _0x4b26ba of _0x21e2d9)if(_0x4b26ba['item']['is']('element','tableCell')){const _0x28fc5a=this['_getVidAttributeName'](_0x4b26ba),_0x1ff3d4=_0x4b26ba['item']['getAttribute'](_0x28fc5a);if(_0x2cb1ec['has'](_0x1ff3d4)){const _0x444724=_0x4b26ba['item']['parent']['parent']['getAttribute']('vid_start'),_0x40a8e7=_0x5b0e37['get'](_0x444724)||new Set();_0x40a8e7['add'](_0x2cb1ec['get'](_0x1ff3d4)['userId']),_0x5b0e37['set'](_0x444724,_0x40a8e7);}}for(const _0x3bfef5 of _0x5b0e37['keys']())(_0x38d61a['has'](_0x3bfef5)||_0x2cb1ec['has'](_0x3bfef5))&&_0x5b0e37['delete'](_0x3bfef5);}for(const _0xec3745 of _0x535d29){const _0x385620=_0x3d6eef['insertions'][_0xec3745];let _0xf5dc25=null,_0x12a5d6=null;for(const _0x52407a of _0x385620){const _0x36a887=this['_getVidAttributeName'](_0x52407a),_0x2c6f8a=_0x52407a['item']['getAttribute'](_0x36a887),_0x5d62b4=_0x5b0e37['get'](_0x2c6f8a);_0x5d62b4&&'elementStart'==_0x52407a['type']&&(_0xf5dc25=Array['from'](_0x5d62b4)[0x0],_0x12a5d6=_0x52407a['item']['getAttribute']('vid_end')),_0xf5dc25&&(_0x2cb1ec['set'](_0x2c6f8a,{'userId':_0xf5dc25}),_0x38d61a['set'](_0x2c6f8a,{'userId':_0xf5dc25})),_0x2c6f8a==_0x12a5d6&&(_0xf5dc25=null,_0x12a5d6=null);}}const _0x459a10={},_0x3930d1=new Set();for(const _0x2aea62 of _0x535d29){const _0x2421b4=_0x396859['deletions'][_0x2aea62],_0x11c14e=_0x396859['insertions'][_0x2aea62];for(const {userId:_0x3b34b6}of this['_touchedMarkers']['values']())null!==_0x3b34b6&&_0x3930d1['add'](_0x3b34b6);for(const {userId:_0x4df55f}of this['_touchedRoots']['values']())null!==_0x4df55f&&_0x3930d1['add'](_0x4df55f);this['_markChanges'](_0x11c14e,_0x3d6eef['insertions'][_0x2aea62],_0x38d61a,'insertion',_0x3930d1),this['_markChanges'](_0x2421b4,_0x3d6eef['deletions'][_0x2aea62],_0x2cb1ec,'deletion',_0x3930d1),_0x459a10[_0x2aea62]={'insertions':this['_prepareViewToSave'](_0x11c14e),'deletions':this['_prepareViewToSave'](_0x2421b4),'attachChange':this['_touchedRoots']['get'](_0x2aea62)||null,'attributesBefore':_0x980597(this['_baseRootsAttributes']['get'](_0x2aea62))||{},'attributesAfter':_0x980597(this['_diffRootsAttributes']['get'](_0x2aea62))};}return{'diffData':_0x459a10,'authorsIds':Array['from'](_0x3930d1)};}['_processRootBeforeSave'](_0x55cbe9){for(const [,_0xf758ce]of _0x55cbe9['markers']){const _0x5235b6=_0xf758ce['start']['getAncestors']()['filter'](_0x707401=>'tableCell'==_0x707401['name']);for(const _0x13cfa1 of _0x5235b6)0x1==_0x13cfa1['childCount']&&_0x13cfa1['getChild'](0x0)['is']('element','paragraph')&&_0x13cfa1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1e21dc){this['_processRootBeforeSave'](_0x1e21dc);const _0x592434=this['editor']['data']['toView'](_0x1e21dc,{}),_0x12d685=Array['from'](_0x592434['getChildren']())['map'](_0x282472=>this['_getViewJson'](_0x282472));return JSON['stringify'](_0x12d685);}['_getViewJson'](_0x1a9a7d){if(_0x1a9a7d['is']('$text'))return _0x1a9a7d['data'];{const _0x37c5b3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xa1b763=_0x1a9a7d,_0x26905f=this['editor']['data']['htmlProcessor']['domConverter'],_0x3c65be={'type':_0x37c5b3['_getTypeCharForViewElement'](_0xa1b763),'name':_0xa1b763['name'],'attributes':Array['from'](_0xa1b763['getAttributes']()),'children':Array['from'](_0xa1b763['getChildren']())['map'](_0x24ff0c=>this['_getViewJson'](_0x24ff0c))};if(_0x1a9a7d['is']('uiElement')&&'$comment'!=_0x1a9a7d['name']){const _0x45b368=_0x1a9a7d['render'](_0x26905f['domDocument'],_0x26905f);_0x3c65be['children']['push'](_0x45b368['outerHTML']);}else{if(_0x1a9a7d['is']('rawElement')){const _0x3ba378=_0x26905f['domDocument']['createElement'](_0xa1b763['name']);_0x1a9a7d['render'](_0x3ba378,_0x26905f),_0x3c65be['children']['push'](_0x3ba378['innerHTML']);}}const _0x445261=Array['from'](_0xa1b763['getCustomProperties']());_0x445261['length']>0x0&&(_0x3c65be['customProperties']=_0x445261);const _0x4dc292=_0xa1b763['getFillerOffset']();return null!==_0x4dc292&&(_0x3c65be['fillerOffset']=_0x4dc292),_0x3c65be;}}['_markChanges'](_0x7150ca,_0x540bc2,_0x15ca27,_0x25af09,_0x3cc0d9){let _0x5c13d2=null,_0x343c30=null,_0x5bd993=0x0;const _0x401927=this['editor']['model'];for(let _0x1ae154=0x0;_0x1ae154<_0x540bc2['length'];_0x1ae154++){const _0x473168=this['_getVidAttributeName'](_0x540bc2[_0x1ae154]),_0x45d8a1=_0x540bc2[_0x1ae154]['item']['getAttribute'](_0x473168),_0x3888cf=_0x15ca27['get'](_0x45d8a1),_0x2c17e8=_0x1ae154==_0x540bc2['length']-0x1;(!_0x5c13d2&&_0x3888cf&&(_0x5c13d2=_0x3888cf,_0x343c30=_0x540bc2[_0x1ae154]),_0x5c13d2&&(!_0x3888cf||_0x3888cf['userId']!=_0x5c13d2['userId']))&&(_0x388b67(_0x3888cf,F(_0x343c30,_0x7150ca,_0x401927),F(_0x540bc2[_0x1ae154],_0x7150ca,_0x401927)),_0x5c13d2=_0x3888cf||null,_0x343c30=_0x3888cf?_0x540bc2[_0x1ae154]:null),_0x5c13d2&&_0x2c17e8&&_0x388b67(_0x3888cf,F(_0x343c30,_0x7150ca,_0x401927),B(_0x540bc2[_0x1ae154],_0x7150ca,_0x401927));}function _0x388b67(_0x3f4a54,_0x4ec5fe,_0x9f75ae){const _0x5187e6=_0x5c13d2['userId'],_0x183de9='revision:'+_0x25af09+':'+_0x5187e6+':'+_0x5bd993++,_0x246beb=_0x401927['createRange'](_0x4ec5fe,_0x9f75ae);_0x7150ca['markers']['set'](_0x183de9,_0x246beb),null!==_0x5187e6&&_0x3cc0d9['add'](_0x5187e6);}}['_getVidAttributeName'](_0x55ebc3){switch(_0x55ebc3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x47bb12,_0xa154bb){_0x47bb12['baseVersion']=null;for(const _0x501511 in _0x47bb12){const _0x1501e6=_0x47bb12[_0x501511];if(_0x1501e6 instanceof ft){const _0x208c28=_0xa154bb['get'](_0x1501e6['root']['rootName']);_0x47bb12[_0x501511]=this['_fixPosition'](_0x1501e6,_0x208c28);}if(_0x1501e6 instanceof lt){const _0x1e0bc1=_0xa154bb['get'](_0x1501e6['root']['rootName']);_0x47bb12[_0x501511]=this['_fixRange'](_0x1501e6,_0x1e0bc1);}'root'===_0x501511&&(_0x47bb12['root']=_0xa154bb['get'](_0x47bb12['root']['rootName']));}}['_fixRange'](_0x5ba6fd,_0x3d879b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ba6fd['start'],_0x3d879b),this['_fixPosition'](_0x5ba6fd['end'],_0x3d879b));}['_fixPosition'](_0x10e2b5,_0x20be98){return this['editor']['model']['createPositionFromPath'](_0x20be98,_0x10e2b5['path'],_0x10e2b5['stickiness']);}['_handleInsertOperation'](_0x3226f8){const _0x6d809d=this['_idsRoots']['get'](_0x3226f8['position']['root']['rootName']),_0x281957=this['_fixPosition'](_0x3226f8['position'],_0x6d809d),_0x1c754a=null===_0x3226f8['_authorId']?null:_0x3226f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36ff80=_0x281957['parent'],_0x5f0008=this['_revisionId'],_0x1ed69=[];for(const _0x41aea2 of _0x3226f8['nodes'])if(_0x41aea2['is']('element'))_0x1ed69['push'](this['_makeIdsRoot'](_0x41aea2));else{for(let _0x5846c5=0x0;_0x5846c5<_0x41aea2['offsetSize'];_0x5846c5++)_0x1ed69['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4bde50=this['_revisionId'];for(let _0x439df8=_0x5f0008;_0x439df8<_0x4bde50;_0x439df8++)this['_touched']['set'](_0x439df8,{'userId':_0x1c754a});_0x36ff80['_insertChild'](_0x281957['offset'],_0x1ed69);}['_handleMoveOperation'](_0x40d57c){(_0x40d57c=this['_cloneOperation'](_0x40d57c,this['_idsRoots']))['_execute']();const _0x40aea3=null===_0x40d57c['_authorId']?null:_0x40d57c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35df74=_0x40d57c['getMovedRangeStart'](),_0xcbd98f=_0x35df74['parent'],_0x1616de=_0x35df74['offset'];!function _0x2d6f16(_0x5a4e15,_0xb851b9,_0x525c2e,_0x1bc162){for(let _0x9f509=_0x525c2e;_0x9f509<_0x1bc162;_0x9f509++){const _0x432da4=_0xb851b9['getChild'](_0x9f509);_0x432da4['is']('element','$text')?_0x5a4e15['set'](_0x432da4['getAttribute']('vid'),{'userId':_0x40aea3}):(_0x5a4e15['set'](_0x432da4['getAttribute']('vid_start'),{'userId':_0x40aea3}),_0x2d6f16(_0x5a4e15,_0x432da4,0x0,_0x432da4['childCount']),_0x5a4e15['set'](_0x432da4['getAttribute']('vid_end'),{'userId':_0x40aea3}));}}(this['_touched'],_0xcbd98f,_0x1616de,_0x1616de+_0x40d57c['howMany']);}['_handleMergeOperation'](_0x2eb488){const _0x587751=null===(_0x2eb488=this['_cloneOperation'](_0x2eb488,this['_idsRoots']))['_authorId']?null:_0x2eb488['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d9765=_0x2eb488['targetPosition']['parent'],_0x422d9a=_0x2eb488['sourcePosition']['parent'],_0x14ee13=_0x2d9765['getAttribute']('vid_end'),_0x41705b=_0x422d9a['getAttribute']('vid_start');_0x2d9765['_setAttribute']('vid_end',_0x422d9a['getAttribute']('vid_end')),_0x422d9a['_setAttribute']('vid_end',_0x14ee13),this['_touched']['set'](_0x41705b,{'userId':_0x587751}),this['_touched']['set'](_0x14ee13,{'userId':_0x587751}),_0x2eb488['_execute']();}['_handleSplitOperation'](_0x42a946){const _0x1062a9=null===(_0x42a946=this['_cloneOperation'](_0x42a946,this['_idsRoots']))['_authorId']?null:_0x42a946['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dc357=_0x42a946['graveyardPosition'],_0x393e75=_0x42a946['splitPosition']['parent'];_0x42a946['_execute']();const _0x3d2702=_0x393e75['getAttribute']('vid_end'),_0x32186d=_0x42a946['insertionPosition']['nodeAfter'];if(_0x3dc357){const _0x3b948a=_0x32186d['getAttribute']('vid_end'),_0x33fa85=_0x393e75['getAttribute']('vid_end');_0x393e75['_setAttribute']('vid_end',_0x3b948a),_0x32186d['_setAttribute']('vid_end',_0x33fa85),this['_touched']['set'](_0x393e75['getAttribute']('vid_end'),{'userId':_0x1062a9}),this['_touched']['set'](_0x32186d['getAttribute']('vid_start'),{'userId':_0x1062a9});}else{const _0x3fd617=this['_revisionId']++,_0x39aee6=this['_revisionId']++;_0x393e75['_setAttribute']('vid_end',_0x3fd617),_0x32186d['_setAttribute']('vid_start',_0x39aee6),_0x32186d['_setAttribute']('vid_end',_0x3d2702),this['_touched']['set'](_0x3fd617,{'userId':_0x1062a9}),this['_touched']['set'](_0x39aee6,{'userId':_0x1062a9});}}['_handleMarkerOperation'](_0xb191ef){if(!_0xb191ef['affectsData'])return;const _0x4e5f34=(_0xb191ef=this['_cloneOperation'](_0xb191ef,this['_diffRoots']))['oldRange']?_0xb191ef['oldRange']['root']:null,_0x55c4a6=_0xb191ef['newRange']?_0xb191ef['newRange']['root']:null;_0x4e5f34&&this['_markers']['delete'](_0xb191ef['name']),_0x55c4a6&&this['_markers']['set'](_0xb191ef['name'],_0xb191ef['newRange']['clone']());const _0x1e6603=null===_0xb191ef['_authorId']?null:_0xb191ef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f48ef=_0xb191ef['name'];if(!this['_touchedMarkers']['has'](_0x3f48ef))return void this['_touchedMarkers']['set'](_0x3f48ef,{'range':_0xb191ef['oldRange'],'userId':_0x1e6603});const _0x3d44c7=this['_touchedMarkers']['get'](_0x3f48ef),_0x28e13=_0x3d44c7['range'],_0x30df7a=_0xb191ef['newRange'];null==_0x28e13&&null==_0x30df7a||_0x28e13&&_0x30df7a&&_0x28e13['isEqual'](_0x30df7a)?this['_touchedMarkers']['delete'](_0xb191ef['name']):_0x3d44c7['userId']=_0x1e6603;}['_handleRootOperation'](_0x786033,_0x426226){this['_diffRoots']['has'](_0x786033['rootName'])?this['_diffRoots']['get'](_0x786033['rootName'])['_isAttached']=_0x786033['isAdd']:(this['_diffRoots']['set'](_0x786033['rootName'],P(_0x786033['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x786033['rootName'],{}),_0x426226&&this['_idsRoots']['set'](_0x786033['rootName'],P(_0x786033['rootName'],!0x0)));const _0xee060b=null===_0x786033['_authorId']?null:_0x786033['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x477d15=this['_touchedRoots']['get'](_0x786033['rootName']);_0x477d15&&_0x477d15['userId']===_0xee060b?this['_touchedRoots']['delete'](_0x786033['rootName']):this['_touchedRoots']['set'](_0x786033['rootName'],{'userId':_0xee060b,'isAttached':_0x786033['isAdd']});}['_handleRootAttributeOperation'](_0x13e2de){const _0xf9ca2c=this['_diffRootsAttributes']['get'](_0x13e2de['root']['rootName']);null===_0x13e2de['newValue']?delete _0xf9ca2c[_0x13e2de['key']]:_0xf9ca2c[_0x13e2de['key']]=_0x13e2de['newValue'];}}function N(_0x1ec4da){const _0x3fed90=P(_0x1ec4da['rootName'],_0x1ec4da['isAttached']());for(const _0x24180c of _0x1ec4da['getChildren']()){const _0xa58657=_0x24180c['_clone'](!0x0);_0x3fed90['_appendChild'](_0xa58657);}return _0x3fed90;}function P(_0x468c0b,_0x33f043=!0x0){const _0x2099a1=new vt();return _0x2099a1['rootName']=_0x468c0b,_0x2099a1['_isAttached']=_0x33f043,_0x2099a1['isAttached']=()=>_0x2099a1['_isAttached'],_0x2099a1;}function F(_0x51d70b,_0x38f24c,_0x5cf08a){const _0x377490='elementEnd'==_0x51d70b['type']?_0x5cf08a['createPositionAt'](_0x51d70b['item'],'end'):_0x5cf08a['createPositionBefore'](_0x51d70b['item']);return _0x5cf08a['createPositionFromPath'](_0x38f24c,_0x377490['path'],_0x377490['stickiness']);}function B(_0x4d53dc,_0x317fca,_0x264bef){const _0x535b55='elementStart'==_0x4d53dc['type']?_0x264bef['createPositionAt'](_0x4d53dc['item'],0x0):_0x264bef['createPositionAfter'](_0x4d53dc['item']);return _0x264bef['createPositionFromPath'](_0x317fca,_0x535b55['path'],_0x535b55['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4eeb69,_0x5d789a){super(_0x4eeb69),this['focusTracker']=new _0xc74c6(),this['keystrokes']=new _0x3ba797(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5d789a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x505f3f(this);}['render'](){super['render'](),_0x5c1a28({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fcb20=_0x4cb984=>_0x4cb984['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fcb20),this['keystrokes']['set']('arrowleft',_0x3fcb20),this['keystrokes']['set']('arrowup',_0x3fcb20),this['keystrokes']['set']('arrowdown',_0x3fcb20);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x14c215){this['revisionNameInputView']['fieldView']['element']['value']=_0x14c215['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1787a9){const _0x5a3823=new _0x5b135e(this['locale'],_0x34358c),_0x3af2f3=_0x5a3823['fieldView'];_0x3af2f3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x194577=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1787a9&&(_0x194577+='\x20('+g(this['locale'],'optional')+')'),(_0x5a3823['label']=_0x194577,_0x3af2f3['on']('input',()=>{this['revisionNameInputValue']=_0x3af2f3['element']['value']['trim']();}),_0x5a3823);}}class f extends _0x501960{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xe5ddff=this['editor'],_0xb49383=_0xe5ddff['plugins']['get']('RevisionTracker');_0xe5ddff['ui']['componentFactory']['add']('revisionHistory',_0xdd1a7c=>{const _0x4a411c=_0x26e46b(_0xdd1a7c),_0x5f1bd6=_0x4a411c['panelView']['children'],_0x24139e=new _0x322164(_0xdd1a7c),_0x2fee1d=new _0x2b8957(_0xdd1a7c),_0x1480de=new te(_0xdd1a7c),_0x617549=new _0x2b8957(_0xdd1a7c),_0x393c9e=new te(_0xdd1a7c);return _0x4a411c['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xb49383,'isEnabled',_0xe5ddff,'isReadOnly',(_0x111e68,_0x5b8ee0,_0x181ec8)=>_0x111e68&&_0x5b8ee0&&!_0x181ec8),_0x4a411c['buttonView']['set']({'icon':_0x25fa61,'label':g(_0xdd1a7c,'Revision\x20history'),'tooltip':!0x0}),_0x1480de['set']({'label':g(_0xdd1a7c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1480de['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xb49383,'isEnabled',_0xe5ddff,'isReadOnly',(_0x2ad851,_0x183017,_0x5c5eb9)=>_0x2ad851&&_0x183017&&!_0x5c5eb9),_0x1480de['on']('execute',()=>this['_showDialog']()),_0x393c9e['set']({'label':g(_0xdd1a7c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x393c9e['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xe5ddff,'isReadOnly',(_0x146fd6,_0x14f177)=>_0x146fd6&&!_0x14f177),_0x393c9e['on']('execute',()=>{_0xe5ddff['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4a411c['isOpen']=!0x1,_0xe5ddff['editing']['view']['focus']();}),_0x2fee1d['children']['add'](_0x1480de),_0x617549['children']['add'](_0x393c9e),_0x24139e['role']='menu',_0x24139e['items']['addMany']([_0x2fee1d,_0x617549]),_0x5f1bd6['add'](_0x24139e),_0x4a411c;}),_0xe5ddff['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4446c0=this['editor'],_0x1ab32e=_0x4446c0['locale'],_0x13c19d=new _0xa031ec(_0x1ab32e),_0x36ab73=new _0x89fe1a(_0x1ab32e);_0x13c19d['buttonView']['set']({'icon':_0x25fa61,'label':g(_0x1ab32e,'Revision\x20history')});const _0x3c021d=new _0x469118(_0x1ab32e,_0x13c19d),_0x53e81f=new _0x448748(_0x1ab32e);_0x53e81f['set']({'label':g(_0x1ab32e,'Save\x20current\x20revision')}),_0x53e81f['delegate']('execute')['to'](_0x13c19d),_0x53e81f['on']('execute',()=>{this['_showDialog']();}),_0x3c021d['children']['add'](_0x53e81f),_0x36ab73['items']['add'](_0x3c021d);const _0x3df24e=new _0x469118(_0x1ab32e,_0x13c19d),_0x44893f=new _0x448748(_0x1ab32e);return _0x44893f['set']({'label':g(_0x1ab32e,'Open\x20revision\x20history')}),_0x44893f['delegate']('execute')['to'](_0x13c19d),_0x44893f['on']('execute',()=>{_0x4446c0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3df24e['children']['add'](_0x44893f),_0x36ab73['items']['add'](_0x3df24e),_0x13c19d['panelView']['children']['add'](_0x36ab73),_0x13c19d;}['_showDialog'](){const _0x326650=this['editor'],_0x29b9ee=_0x326650['locale'],_0xc53b8b=_0x326650['plugins']['get']('Dialog'),_0x32df81=_0x326650['plugins']['get']('RevisionTracker');function _0x25b0dc(_0x353f31){_0x326650['config']['get']('revisionHistory.requireRevisionName')&&''===_0x353f31['revisionName']?_0x353f31['revisionNameInputView']['errorText']=g(_0x29b9ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x326650['plugins']['get'](u)['saveRevision']({'name':_0x353f31['revisionName']}),_0xc53b8b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x25b0dc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc53b8b['show']({'id':'revisionSave','title':g(_0x29b9ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x326650['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc53b8b['hide']()},{'label':g(_0x326650['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5976df){_0x5976df['bind']('isEnabled')['to'](_0x32df81,'isReady',_0x32df81,'isEnabled',_0x326650,'isReadOnly',(_0x3df4e9,_0x23d13e,_0x1e74ed)=>_0x3df4e9&&_0x23d13e&&!_0x1e74ed);},'onExecute':()=>_0x25b0dc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5898be=this['editor'],_0x3c3946=_0x5898be['locale'];this['_saveRevisionFormView']=new hs(_0x3c3946,_0x5898be['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0xc0b256,_0x1704f5){super(_0xc0b256),this['_model']=_0x1704f5,this['changeId']=_0x1704f5['id'];const _0x2b96e7=this['bindTemplate'],_0x59a54b=g(_0xc0b256,_0x1704f5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1704f5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1704f5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2b96e7['to']('type',_0x1d2488=>'ck-revision-change__'+_0x1d2488)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59a54b}]},{'text':'\x20'+_0x1704f5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23a707(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x38d058){super(),this['id']=_0x38d058['id']||_0x1d6ae4(),this['author']=_0x38d058['author'],this['type']=_0x38d058['type'],this['data']=_0x38d058['data']||{},this['rootName']=_0x38d058['rootName'],this['set']('createdAt',_0x38d058['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x512d60,_0x44e498){this['newRevisionId']=_0x512d60,this['oldRevisionId']=_0x44e498,this['changes']=new _0x20ed9a();}['_setChanges'](_0xe7a599){for(const _0x1a54d5 of _0xe7a599)this['changes']['add'](_0x1a54d5);}}class m extends _0x501960{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5916f6,_0x4960c7,I,V];}constructor(_0x453690){super(_0x453690),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1569e4,_0x319d78,_0x58ff92)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x23d5bc=>{for(const _0x3bf1f8 of this['editor']['editing']['view']['document']['roots'])_0x58ff92?_0x23d5bc['removeClass']('ck-editor__editable__overlay',_0x3bf1f8):_0x23d5bc['addClass']('ck-editor__editable__overlay',_0x3bf1f8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xcd9967=>null!==_0xcd9967),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x443104,_0x2473e1,_0x331c91)=>_0x443104&&_0x331c91?_0x2473e1['changes']['getIndex'](_0x331c91):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e8bb6,_0x384f39)=>_0x5e8bb6?_0x384f39['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4960c7);}['init'](){const _0x5d9b4a=this['editor'],_0x1aa182=new wt(_0x5d9b4a,{'direction':'backward'}),_0x330bc5=new wt(_0x5d9b4a,{'direction':'forward'});(_0x5d9b4a['commands']['add']('showPreviousChange',_0x1aa182),_0x5d9b4a['commands']['add']('showNextChange',_0x330bc5),_0x5d9b4a['commands']['add']('restoreRevision',new mt(_0x5d9b4a)),this['on']('change:numberOfChanges',()=>{_0x1aa182['refresh'](),_0x330bc5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5d9b4a['enableReadOnlyMode']('revision-viewer'),_0x5d9b4a['plugins']['has']('WidgetToolbarRepository'))&&_0x5d9b4a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3cc843){return await this['_utils']['loadRevisionData'](_0x3cc843,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3cc843);}async['getRevisionRootsAttributes'](_0xed1bf7){return await this['_utils']['loadRevisionData'](_0xed1bf7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xed1bf7);}async['compare'](_0x2a0f25,_0x362ef1,_0x112d83=!0x1){if(!this['isEnabled'])return;const _0x2ef7ad=this['diff'],_0x593196=this['repository'],_0x2080fc='string'==typeof _0x2a0f25?_0x593196['getRevision'](_0x2a0f25):_0x2a0f25,_0xe6dc14='string'==typeof _0x362ef1?_0x593196['getRevision'](_0x362ef1):_0x362ef1,_0x48aaa2=_0x2080fc['id'],_0x473a1c=_0xe6dc14?_0xe6dc14['id']:null;if(!_0x112d83&&this['diff']&&this['diff']['newRevisionId']===_0x48aaa2&&this['diff']['oldRevisionId']===_0x473a1c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x48aaa2,_0x473a1c);const _0x58111a=this['_getRevisionsRange'](_0x2080fc,_0xe6dc14,!0x0)['map'](_0x108a07=>this['_utils']['loadRevisionData'](_0x108a07,this['adapter']));return _0x58111a['push'](new Promise(_0x28b6d5=>{setTimeout(_0x28b6d5,0x14);})),Promise['all'](_0x58111a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40fe30=this['_getDiff'](_0x48aaa2,_0x473a1c);for(const _0x208159 of _0x40fe30['changes'])this['_changeIdToChange']['set'](_0x208159['id'],_0x208159);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e2637=>{for(const _0x5ec309 of this['editor']['model']['document']['getRootNames']())_0x3e2637['detachRoot'](_0x5ec309);for(const _0x3e6c7d of Object['keys'](_0x40fe30['model'])){const _0xd72f1c=_0x3e2637['addRoot'](_0x3e6c7d);for(const _0x48c47a of Object['keys'](_0x40fe30['attributes'][_0x3e6c7d]))_0x3e2637['setAttribute'](_0x48c47a,_0x40fe30['attributes'][_0x3e6c7d][_0x48c47a],_0xd72f1c);_0x3e2637['insert'](_0x40fe30['model'][_0x3e6c7d],_0xd72f1c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40fe30['changes'])),this['isReady']=!0x0;})['catch'](_0x3a21d1=>{console['error'](_0x3a21d1),this['_cleanUp'](),_0x2ef7ad&&(this['diff']=_0x2ef7ad),this['isReady']=!0x0;});}['addRevisionData'](_0x42dc12,_0x2cd174){const _0x393129=this['repository']['createRevision'](_0x42dc12);return _0x393129['on']('_update',(_0x30a155,_0x3cfc51,_0x2ab9fc)=>_0x2cd174(_0x3cfc51,_0x2ab9fc,_0x393129)),this['repository']['addRevision'](_0x393129),_0x393129;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x417cbe=>{for(const _0x40fb53 of this['editor']['model']['document']['getRootNames']())_0x417cbe['detachRoot'](_0x40fb53);});}['_sortAndFilterDiffChanges'](_0x35979a){const _0x11a9eb=[],_0x574d4d=new Map();for(const _0x2c0713 of this['editor']['model']['document']['getRootNames']()){const _0x5bcfe9=this['editor']['editing']['view']['getDomRoot'](_0x2c0713);if(!_0x5bcfe9)continue;const _0x44b924=_0x5bcfe9['getClientRects']()['item'](0x0);_0x44b924&&(_0x11a9eb['push'](_0x2c0713),_0x574d4d['set'](_0x2c0713,_0x44b924));}return _0x11a9eb['sort']((_0x19be5e,_0x1274f5)=>{const _0x1a05dd=_0x574d4d['get'](_0x19be5e),_0x16a8af=_0x574d4d['get'](_0x1274f5);return _0x1a05dd['y']-_0x16a8af['y']||_0x1a05dd['x']-_0x16a8af['x'];}),(_0x35979a=_0x35979a['filter'](_0x23f82f=>_0x11a9eb['includes'](_0x23f82f['rootName'])))['sort']((_0x232dc2,_0x2be8d1)=>_0x11a9eb['indexOf'](_0x232dc2['rootName'])-_0x11a9eb['indexOf'](_0x2be8d1['rootName'])),_0x35979a;}['_makeTape'](_0x3b11d2){const _0x3de715=Array['from'](_0x3b11d2['markers'])['filter'](([_0x1f84a8,_0x47df45])=>_0x1f84a8['startsWith']('revision:')&&!_0x47df45['isCollapsed']),_0x1fee72=Array['from'](this['editor']['model']['createRangeIn'](_0x3b11d2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3de715['length'])for(const _0x2c0af3 of _0x1fee72){const [_0x348203,_0x5bc13f]=_0x3de715[0x0],[,_0xb235a7,_0x5861a3]=_0x348203['split'](':');if(_0x5bc13f['end']['isEqual'](_0x2c0af3['nextPosition'])&&_0x3de715['shift'](),(_0x2c0af3['previousPosition']['isEqual'](_0x5bc13f['start'])||_0x2c0af3['previousPosition']['isAfter'](_0x5bc13f['start']))&&('insertion'==_0xb235a7?_0x2c0af3['isAdded']={'userId':_0x5861a3}:'deletion'==_0xb235a7&&(_0x2c0af3['isRemoved']={'userId':_0x5861a3})),0x0==_0x3de715['length'])break;}return _0x1fee72;}['_refreshStartEndIndex'](_0x103d39){const _0x25bb58=new Map();for(let _0x103233=0x0;_0x103233<_0x103d39['length'];_0x103233++)'text'===_0x103d39[_0x103233]['type']?(_0x103d39[_0x103233]['item']['startIndex']=_0x103233,_0x103d39[_0x103233]['item']['endIndex']=_0x103233):('elementStart'===_0x103d39[_0x103233]['type']?_0x103d39[_0x103233]['item']['startIndex']=_0x103233:'elementEnd'===_0x103d39[_0x103233]['type']&&(_0x103d39[_0x103233]['item']['endIndex']=_0x103233),_0x25bb58['set'](_0x103d39[_0x103233]['id'],_0x103233));for(const _0x430352 of _0x25bb58['values']())'elementStart'===_0x103d39[_0x430352]['type']?_0x103d39[_0x430352]['item']['endIndex']=_0x25bb58['get'](_0x103d39[_0x430352]['pairId']):'elementEnd'===_0x103d39[_0x430352]['type']&&(_0x103d39[_0x430352]['item']['startIndex']=_0x25bb58['get'](_0x103d39[_0x430352]['pairId']));}['_processTape'](_0x403a43){for(let _0x53c5dd=0x0;_0x53c5dd<_0x403a43['length'];_0x53c5dd++){if('elementStart'===_0x403a43[_0x53c5dd]['type'])_0x403a43[_0x53c5dd]['item']['startIndex']=_0x53c5dd;else{if('elementEnd'===_0x403a43[_0x53c5dd]['type']){_0x403a43[_0x53c5dd]['item']['endIndex']=_0x53c5dd;const _0x109c7b=_0x403a43[_0x53c5dd]['item']['startIndex'];_0x403a43[_0x109c7b]['pairId']=_0x403a43[_0x53c5dd]['id'],_0x403a43[_0x53c5dd]['pairId']=_0x403a43[_0x109c7b]['id'];}else _0x403a43[_0x53c5dd]['item']['startIndex']=_0x53c5dd,_0x403a43[_0x53c5dd]['item']['endIndex']=_0x53c5dd,_0x403a43[_0x53c5dd]['pairId']=null;}_0x403a43[_0x53c5dd]['markersStart']||(_0x403a43[_0x53c5dd]['markersStart']=[],_0x403a43[_0x53c5dd]['markersEnd']=[]);}}['_markInsertions'](_0x196986,_0x4b88d7){const _0x387d0e=_0x196986['filter'](_0x497866=>!_0x497866['isAdded']);for(let _0x23344d=0x0;_0x23344d<_0x4b88d7['length'];_0x23344d++)_0x4b88d7[_0x23344d]['isAdded']&&(_0x387d0e[_0x23344d]['isAdded']=_0x4b88d7[_0x23344d]['isAdded']);}['_getDiff'](_0x4db55d,_0x3c1022=null){const _0x212b34=this['repository']['getRevision'](_0x4db55d),_0x1754f4=_0x3c1022?this['repository']['getRevision'](_0x3c1022):null,_0x137141=this['_getRevisionsRange'](_0x212b34,_0x1754f4),_0xcf451f=_0x137141[_0x137141['length']-0x1],_0x5424ea=new Map(),_0x39a4c8={'model':{},'attributes':{},'changes':[]},_0x4aacba=new Set(),_0x58c1e1=new Map();for(let _0x1221a9=_0x137141['length']-0x1;_0x1221a9>=0x0;_0x1221a9--){const _0x3b3b6c=_0x137141[_0x1221a9];for(const _0x11b40b of Object['keys'](_0x3b3b6c['diffData']))if(_0x3b3b6c['diffData'][_0x11b40b]['attachChange']){const _0x246ae0=_0x3b3b6c['diffData'][_0x11b40b]['attachChange'];_0x246ae0['isAttached']?(_0x4aacba['add'](_0x11b40b),_0x58c1e1['has'](_0x11b40b)&&_0x58c1e1['get'](_0x11b40b)['userId']==_0x246ae0['userId']?_0x58c1e1['delete'](_0x11b40b):_0x58c1e1['set'](_0x11b40b,_0x246ae0)):_0x58c1e1['has'](_0x11b40b)?(_0x4aacba['delete'](_0x11b40b),_0x58c1e1['delete'](_0x11b40b)):(_0x4aacba['add'](_0x11b40b),_0x58c1e1['set'](_0x11b40b,_0x246ae0));}else _0x4aacba['add'](_0x11b40b);}for(const _0x1790f7 of _0x4aacba){const _0x3344f1=_0x58c1e1['has'](_0x1790f7)&&!_0x58c1e1['get'](_0x1790f7)['isAttached'];let _0x3db956=_0x3344f1?_0x137141['length']-0x1:0x0;const _0x4f944f=_0x3344f1?-0x1:0x1;for(;_0x137141[_0x3db956];){const _0x4d622d=_0x137141[_0x3db956];if(_0x4d622d['diffData'][_0x1790f7]){const _0x436d21=_0x3344f1?_0x4d622d['diffData'][_0x1790f7]['attributesBefore']:_0x4d622d['diffData'][_0x1790f7]['attributesAfter'];_0x39a4c8['attributes'][_0x1790f7]=_0x436d21?_0x980597(_0x436d21):{};break;}_0x3db956+=_0x4f944f;}}for(const _0x2eb4a6 of _0x137141){_0x2eb4a6['model']={};for(const _0x41f5dc of _0x2eb4a6['authors'])_0x5424ea['set'](_0x41f5dc['id'],_0x41f5dc);for(const _0x44ed5e of _0x4aacba){const _0x437dfc=_0x2eb4a6['diffData'][_0x44ed5e]?_0x2eb4a6['diffData'][_0x44ed5e]['insertions']:'[]',_0x2cda0c=_0x2eb4a6['diffData'][_0x44ed5e]?_0x2eb4a6['diffData'][_0x44ed5e]['deletions']:'[]';_0x2eb4a6['model'][_0x44ed5e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x437dfc),'deletions':this['_utils']['_makeModelFromViewString'](_0x2cda0c)};}}for(const _0x2f8076 of _0x4aacba){let _0x335d6b=null,_0x36e658=0x0;const _0x306da5=new Map(Array['from'](_0x212b34['model'][_0x2f8076]['insertions']['markers'])['filter'](([_0x5608e0])=>!_0x5608e0['startsWith']('revision:')));let _0x14cda2=0x0;for(const _0x2371a8 of _0x137141){const _0xf574cd=this['_makeTape'](_0x2371a8['model'][_0x2f8076]['insertions']);_0x2371a8==_0x212b34?(_0x335d6b=_0xf574cd,_0x36e658=_0x335d6b['length'],_0x335d6b['forEach'](_0x583911=>{_0x583911['id']=_0x14cda2++;}),this['_processTape'](_0x335d6b)):this['_markInsertions'](_0x335d6b,_0xf574cd);const _0x37d2f2=_0x335d6b['filter'](_0x51ecf1=>!_0x51ecf1['isAdded'])['map'](_0x40c75a=>_0x40c75a['id']);let _0x47e156=0x0;const _0x1defa9=this['_makeTape'](_0x2371a8['model'][_0x2f8076]['deletions']);_0x1defa9['forEach'](_0x1e56bf=>{_0x1e56bf['isRemoved']?_0x1e56bf['id']=_0x36e658++:_0x1e56bf['id']=_0x37d2f2[_0x47e156++];}),this['_processTape'](_0x1defa9),this['_setDistance'](_0x335d6b,'isAdded'),this['_setDistance'](_0x1defa9,'isRemoved'),_0x2371a8==_0x212b34&&this['_markMarkers'](_0x335d6b,_0x306da5),_0x335d6b=this['_joinTapes'](_0x335d6b,_0x1defa9),this['_refreshStartEndIndex'](_0x335d6b),this['_setDistance'](_0x335d6b,'isRemoved');}_0x335d6b=_0x335d6b['filter'](_0x4d4b36=>!(_0x4d4b36['isAdded']&&_0x4d4b36['isRemoved']));const _0x1cb167=new Map(_0xcf451f['model'][_0x2f8076]['deletions']['markers']),_0x556338=new Set(_0x306da5['keys']());for(const _0x404ec8 of _0x1cb167['keys']())_0x556338['delete'](_0x404ec8);this['_markSuggestions'](_0x335d6b,_0x556338),this['_fixObsoleteTags'](_0x335d6b),_0x335d6b=this['_removeMissingPairs'](_0x335d6b),_0x335d6b=this['_markMismatchedRemovedTags'](_0x335d6b),_0x335d6b=this['_removeUnsupportedChanges'](_0x335d6b);const {root:_0x149c43,changes:_0x151afd}=this['_makeModelFromTape'](_0x335d6b,_0x5424ea,_0x2f8076);_0x39a4c8['model'][_0x2f8076]=_0x149c43;const _0x6e49e1=_0x58c1e1['get'](_0x2f8076);if(_0x6e49e1){const _0x4e8abc=_0x5424ea['get'](_0x6e49e1['userId']),_0x24a008=new r({'author':_0x4e8abc,'type':_0x6e49e1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f8076});_0x151afd['unshift'](_0x24a008),_0x39a4c8['attributes'][_0x2f8076]['revisionHistoryAttachChange']=_0x24a008['id'];}_0x39a4c8['changes']=_0x39a4c8['changes']['concat'](_0x151afd);}return _0x39a4c8;}['_markMarkers'](_0x2abbc7,_0x451f66){for(let _0x167987=0x0;_0x167987<_0x2abbc7['length'];_0x167987++)for(const [_0x1d795f,_0xe08a5c]of _0x451f66)!_0xe08a5c['isCollapsed']&&_0xe08a5c['start']['isEqual'](_0x2abbc7[_0x167987]['previousPosition'])&&_0x2abbc7[_0x167987]['markersStart']['push'](_0x1d795f),_0xe08a5c['end']['isEqual'](_0x2abbc7[_0x167987]['nextPosition'])&&_0x2abbc7[_0x167987]['markersEnd']['push'](_0x1d795f);}['_joinTapes'](_0xc4a28,_0x55e868){let _0x1e61ed=[],_0x3c169d=0x0,_0x3cadde=0x0;for(;_0x3c169d<_0xc4a28['length']||_0x3cadde<_0x55e868['length'];){const _0x2e5773=_0xc4a28[_0x3c169d]||{},_0x5286e6=_0x55e868[_0x3cadde]||{};if(_0x2e5773['id']==_0x5286e6['id'])_0x3c169d++,_0x3cadde++,_0x1e61ed['push'](_0x2e5773);else{if(_0x5286e6['isRemoved']&&_0x2e5773['isAdded']){const {commonTape:_0x3cbb55,iEnd:_0x57cdd4,jEnd:_0x5022d2}=this['_threeWayMerge'](_0xc4a28,_0x3c169d,_0x55e868,_0x3cadde);_0x1e61ed=_0x1e61ed['concat'](_0x3cbb55),_0x3c169d=_0x57cdd4,_0x3cadde=_0x5022d2;}else _0x5286e6['isRemoved']?(_0x3cadde++,_0x1e61ed['push'](_0x5286e6)):(_0x3c169d++,_0x1e61ed['push'](_0x2e5773));}}return _0x1e61ed;}['_markSuggestions'](_0xb5dab0,_0x3544df){const _0x474f58=[];for(let _0x4e516c=0x0;_0x4e516c<_0xb5dab0['length'];_0x4e516c++){for(let _0x1ecf0a=0x0;_0x1ecf0a<_0xb5dab0[_0x4e516c]['markersStart']['length'];_0x1ecf0a++){const _0x34d59=_0xb5dab0[_0x4e516c]['markersStart'][_0x1ecf0a];if(!_0x3544df['has'](_0x34d59))continue;const {group:_0x3590a6,type:_0x32a186,authorId:_0x3132ad}=_0x1d07c4(_0x34d59);'revision-suggestion'!=_0x3590a6||'insertion'!=_0x32a186&&'deletion'!=_0x32a186||(_0x474f58['unshift']({'type':_0x32a186,'name':_0x34d59,'userId':_0x3132ad}),_0xb5dab0[_0x4e516c]['markersStart']['splice'](_0x1ecf0a,0x1),_0x1ecf0a--);}_0x44a2cc(_0xb5dab0[_0x4e516c]);for(let _0x50e8dc=0x0;_0x50e8dc<_0xb5dab0[_0x4e516c]['markersEnd']['length'];_0x50e8dc++){const _0x254b8c=_0xb5dab0[_0x4e516c]['markersEnd'][_0x50e8dc];if(!_0x3544df['has'](_0x254b8c))continue;const {group:_0x169392,type:_0x28710d}=_0x1d07c4(_0x254b8c);if('revision-suggestion'!=_0x169392||'insertion'!=_0x28710d&&'deletion'!=_0x28710d)continue;_0xb5dab0[_0x4e516c]['markersEnd']['splice'](_0x50e8dc,0x1),_0x50e8dc--;const _0xa0d4f3=_0x474f58['findIndex'](_0x273a8b=>_0x273a8b['name']==_0x254b8c);_0xa0d4f3>-0x1&&_0x474f58['splice'](_0xa0d4f3,0x1);}}function _0x1d07c4(_0x5b68f5){const _0x1222bd=_0x5b68f5['split'](':');return{'group':_0x1222bd[0x0],'type':_0x1222bd[0x1],'subType':_0x1222bd['length']>=0x5?_0x1222bd[0x2]:null,'id':_0x1222bd['length']<0x5?_0x1222bd[0x2]:_0x1222bd[0x3],'authorId':_0x1222bd['length']<0x5?_0x1222bd[0x3]:_0x1222bd[0x4],'markerCount':0x6==_0x1222bd['length']?_0x1222bd[0x5]:null};}function _0x44a2cc(_0x1eee28){for(let _0x594c1c=0x0;_0x594c1c<_0x474f58['length'];_0x594c1c++){if(_0x1eee28['isAdded']&&'insertion'==_0x474f58[_0x594c1c]['type'])return _0x1eee28['isAddSuggestion']=_0x474f58[_0x594c1c],void delete _0x1eee28['isAdded'];if(!_0x1eee28['isAdded']&&!_0x1eee28['isRemoved']&&'deletion'==_0x474f58[_0x594c1c]['type'])return void(_0x1eee28['isRemoveSuggestion']=_0x474f58[_0x594c1c]);}}}['_setDistance'](_0x218fbe,_0x533d8c){let _0x534c11=0x0,_0x2a1283=!0x1;const _0x5afa56=new Map();for(const _0x42f1a4 of _0x218fbe)_0x42f1a4[_0x533d8c]?_0x2a1283&&(_0x534c11++,_0x2a1283=!0x1):(_0x534c11++,_0x2a1283=!0x0),_0x5afa56['set'](_0x42f1a4['id'],_0x534c11);for(let _0x4ed4f7=0x0;_0x4ed4f7<_0x218fbe['length'];_0x4ed4f7++){if('isRemoved'==_0x533d8c&&_0x218fbe[_0x4ed4f7]['isAdded']||'isAdded'==_0x533d8c&&_0x218fbe[_0x4ed4f7]['isRemoved'])continue;if('text'==_0x218fbe[_0x4ed4f7]['type']){_0x218fbe[_0x4ed4f7]['distance']=0x0;continue;}const _0x4ab6ad=_0x5afa56['get'](_0x218fbe[_0x4ed4f7]['pairId']),_0x5e56fa=_0x5afa56['get'](_0x218fbe[_0x4ed4f7]['id']);_0x218fbe[_0x4ed4f7]['distance']=_0x4ab6ad-_0x5e56fa;}}['_getRevisionsRange'](_0x4b9ec9,_0x362eb9,_0x303dce=!0x1){const _0x2cf772=[];let _0x24243d=this['repository']['getIndex'](_0x4b9ec9),_0x153cc4=this['repository']['getIndex'](_0x362eb9);for(-0x1==_0x153cc4&&(_0x153cc4=this['repository']['_revisions']['length'],_0x303dce=!0x1);_0x24243d<_0x153cc4;)_0x2cf772['push'](this['repository']['getRevision'](_0x24243d)),_0x24243d++;return _0x303dce&&_0x2cf772['push'](this['repository']['getRevision'](_0x24243d)),_0x2cf772;}['_threeWayMerge'](_0x2186c2,_0x1588e4,_0x234e74,_0x49f200){const _0xdf0baf=this['editor']['model']['schema'];let _0x1872c9=_0x1588e4;for(;_0x2186c2[_0x1872c9]&&_0x2186c2[_0x1872c9]['isAdded'];)_0x1872c9++;let _0x553e75=_0x49f200;for(;_0x234e74[_0x553e75]&&_0x234e74[_0x553e75]['isRemoved'];)_0x553e75++;_0x511d32(_0x2186c2,_0x1588e4,_0x1872c9),_0x511d32(_0x234e74,_0x49f200,_0x553e75);const _0x18f3bd=_0x234e74['slice'](_0x49f200,_0x553e75)['concat'](_0x2186c2['slice'](_0x1588e4,_0x1872c9));return _0x18f3bd['sort']((_0x36ae48,_0x493dcf)=>_0x36ae48['side']!=_0x493dcf['side']?_0x36ae48['side']-_0x493dcf['side']:_0x36ae48['level']!=_0x493dcf['level']?_0x36ae48['level']-_0x493dcf['level']:_0x36ae48['distance']!=_0x493dcf['distance']?_0x493dcf['distance']-_0x36ae48['distance']:!!_0x36ae48['isAdded']!=!!_0x493dcf['isAdded']?-0x1==_0x36ae48['side']||0x0==_0x36ae48['side']?_0x36ae48['isAdded']?-0x1:0x1:_0x36ae48['isAdded']?0x1:-0x1:_0x36ae48['index']-_0x493dcf['index']),{'commonTape':_0x18f3bd,'iEnd':_0x1872c9,'jEnd':_0x553e75};function _0x511d32(_0x87e1fe,_0x4cc689,_0x236628){let _0x4acb08=-0x1,_0x18f76c=Number['POSITIVE_INFINITY'],_0x388d31=!0x0;for(let _0x570dbf=_0x4cc689;_0x570dbf<_0x236628;_0x570dbf++)if(_0xdf0baf['isInline'](_0x87e1fe[_0x570dbf]['item'])||(_0x388d31=!0x1),_0x87e1fe[_0x570dbf]['item']['startIndex']<_0x4cc689&&(_0x4acb08=_0x570dbf),_0x87e1fe[_0x570dbf]['item']['endIndex']>=_0x236628){_0x18f76c=_0x570dbf;break;}_0x388d31&&(_0x4acb08=_0x236628-0x1);for(let _0x37f87e=_0x4cc689;_0x37f87e<_0x236628;_0x37f87e++)_0x87e1fe[_0x37f87e]['side']=_0x37f87e<=_0x4acb08?-0x1:_0x37f87e<_0x18f76c?0x0:0x1,_0x87e1fe[_0x37f87e]['index']=_0x37f87e;let _0x4a9428=0x0;for(let _0x5cb6dc=_0x4cc689;_0x5cb6dc<=_0x4acb08;_0x5cb6dc++)0x0==_0x87e1fe[_0x5cb6dc]['distance']?_0x87e1fe[_0x5cb6dc]['level']=_0x4a9428:(_0x4a9428++,_0x87e1fe[_0x5cb6dc]['level']=_0x4a9428,_0x4a9428++);for(let _0x149340=_0x4cc689;_0x149340<_0x236628;_0x149340++)0x0==_0x87e1fe[_0x149340]['side']&&(_0x87e1fe[_0x149340]['level']=_0x4a9428);_0x4a9428=0x0;for(let _0x42a672=_0x236628-0x1;_0x42a672>=_0x18f76c;_0x42a672--)0x0==_0x87e1fe[_0x42a672]['distance']?_0x87e1fe[_0x42a672]['level']=_0x4a9428:(_0x4a9428--,_0x87e1fe[_0x42a672]['level']=_0x4a9428,_0x4a9428--);}}['_fixObsoleteTags'](_0x3ca193){const _0x4ff5fb=new Map(),_0x3aaab0=this['editor']['model']['schema'];for(let _0x42a62c=0x1;_0x42a62c<_0x3ca193['length'];_0x42a62c++){let _0x197a4c,_0x120dd1,_0x70c9b;const _0x211b2b=_0x3ca193[_0x42a62c],_0x198090=_0x3ca193[_0x42a62c-0x1];if('text'==_0x211b2b['type'])continue;if(_0x211b2b['type']!=_0x198090['type'])continue;if(!_0x3aaab0['isBlock'](_0x198090['item'])||_0x3aaab0['isLimit'](_0x198090['item']))continue;if(!_0x3aaab0['isBlock'](_0x211b2b['item'])||_0x3aaab0['isLimit'](_0x211b2b['item']))continue;if((_0x3ca193[_0x42a62c]['isAdded']||_0x3ca193[_0x42a62c]['isAddSuggestion'])&&_0x3ca193[_0x42a62c-0x1]['isRemoved'])_0x197a4c=_0x3ca193[_0x42a62c],_0x120dd1=_0x3ca193[_0x42a62c-0x1],_0x70c9b=_0x42a62c-0x1;else{if(!_0x3ca193[_0x42a62c]['isRemoved']||!_0x3ca193[_0x42a62c-0x1]['isAdded']&&!_0x3ca193[_0x42a62c-0x1]['isAddSuggestion'])continue;_0x197a4c=_0x3ca193[_0x42a62c-0x1],_0x120dd1=_0x3ca193[_0x42a62c],_0x70c9b=_0x42a62c;}const _0x1eb055=_0x197a4c['level']==_0x120dd1['level'],_0x5399c5=Math['abs'](_0x197a4c['level'])<Math['abs'](_0x120dd1['level'])&&0x0==_0x120dd1['distance'];(_0x1eb055||_0x5399c5)&&(_0x4ff5fb['set'](_0x120dd1['id'],_0x197a4c['id']),_0x3ca193['splice'](_0x70c9b,0x1),_0x42a62c--,_0x197a4c['isAdded']=!0x1);}for(let _0x3116c2=0x0;_0x3116c2<_0x3ca193['length'];_0x3116c2++)_0x4ff5fb['has'](_0x3ca193[_0x3116c2]['pairId'])&&(_0x3ca193[_0x3116c2]['pairId']=_0x4ff5fb['get'](_0x3ca193[_0x3116c2]['pairId']));}['_removeMissingPairs'](_0xe1d772){const _0x30fd83=new Set(_0xe1d772['map'](_0x22b56c=>_0x22b56c['id']));for(let _0x3516ed=0x0;_0x3516ed<_0xe1d772['length'];_0x3516ed++)_0x30fd83['has'](_0xe1d772[_0x3516ed]['pairId'])||0x0==_0xe1d772[_0x3516ed]['distance']||(_0xe1d772[_0x3516ed]['isIncorrect']=!0x0);return _0xe1d772['filter'](_0x1d79bd=>!_0x1d79bd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x510cc6){const _0x4ff53e=new Set();for(let _0x32f569=0x0;_0x32f569<_0x510cc6['length'];_0x32f569++){if(_0x4ff53e['has'](_0x510cc6[_0x32f569]['id'])&&_0x510cc6[_0x32f569]['isRemoved']&&(_0x510cc6[_0x32f569]['isIncorrect']=!0x0),_0x510cc6[_0x32f569]['isIncorrect'])continue;if(0x0==_0x510cc6[_0x32f569]['distance'])continue;if('elementStart'!=_0x510cc6[_0x32f569]['type'])continue;if(null==_0x510cc6[_0x32f569]['pairId'])continue;let _0x5f06af=_0x32f569+0x1,_0x1e01fd=0x0;for(;_0x510cc6[_0x5f06af]['id']!=_0x510cc6[_0x32f569]['pairId'];)'elementStart'==_0x510cc6[_0x5f06af]['type']?_0x1e01fd++:'elementEnd'==_0x510cc6[_0x5f06af]['type']&&_0x1e01fd--,_0x5f06af++;if(0x0!=_0x1e01fd){if(_0x510cc6[_0x32f569]['isRemoved'])_0x510cc6[_0x32f569]['isIncorrect']=!0x0;else{for(;_0x5f06af!=_0x32f569;)_0x510cc6[_0x5f06af]['isRemoved']&&0x0!=_0x510cc6[_0x5f06af]['distance']&&(_0x510cc6[_0x5f06af]['isIncorrect']=!0x0,_0x4ff53e['add'](_0x510cc6[_0x5f06af]['pairId'])),_0x5f06af--;}}}return _0x510cc6['filter'](_0x2ed516=>!_0x2ed516['isIncorrect']);}['_removeUnsupportedChanges'](_0x5f027a){const _0x2b689b=this['editor']['model']['schema'];for(let _0x5805d4=0x0;_0x5805d4<_0x5f027a['length'];_0x5805d4++){if(!(_0x5f027a[_0x5805d4]['isAdded']||_0x5f027a[_0x5805d4]['isAddSuggestion']||_0x5f027a[_0x5805d4]['isRemoved']||_0x5f027a[_0x5805d4]['isRemoveSuggestion']))continue;if(0x0==_0x5f027a[_0x5805d4]['distance'])continue;const _0x38279b=_0x5f027a[_0x5805d4]['item'];_0x2b689b['isBlock'](_0x38279b)||_0x2b689b['isLimit'](_0x38279b)||(_0x5f027a[_0x5805d4]['isAdded']&&delete _0x5f027a[_0x5805d4]['isAdded'],_0x5f027a[_0x5805d4]['isAddSuggestion']&&delete _0x5f027a[_0x5805d4]['isAddSuggestion'],_0x5f027a[_0x5805d4]['isRemoveSuggestion']&&delete _0x5f027a[_0x5805d4]['isRemoveSuggestion'],_0x5f027a[_0x5805d4]['isRemoved']&&(_0x5f027a[_0x5805d4]['isIncorrect']=!0x0));}return _0x5f027a['filter'](_0x1d59fb=>!_0x1d59fb['isIncorrect']);}['_makeModelFromTape'](_0x377fb0,_0x6419fd,_0x536c63){const _0x4318e5=new vt(),_0x540b5a=[],_0x28874a=new Map(),_0x5cb871=this['editor']['model'],_0x26536d=_0x5cb871['schema'],_0x2be401=[_0x4318e5],_0x25321d={},_0x6eb5c1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3cbaf=null;const _0x2ffe49=[0x0];for(let _0x111031=0x0;_0x111031<_0x377fb0['length'];_0x111031++)if('elementStart'===_0x377fb0[_0x111031]['type']){_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49);const _0x4ac1cb=new ut(_0x377fb0[_0x111031]['item']['name'],_0x377fb0[_0x111031]['item']['getAttributes']());_0x2be401[0x0]['_appendChild'](_0x4ac1cb),_0x2ffe49['push'](0x0),_0x2be401['unshift'](_0x4ac1cb),_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49);}else'elementEnd'===_0x377fb0[_0x111031]['type']?(_0x2be401['shift'](),_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49),_0x2ffe49['pop'](),_0x2ffe49[_0x2ffe49['length']-0x1]++,_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49)):(_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49),_0xa3cbaf?_0xa3cbaf['_data']+=_0x377fb0[_0x111031]['item']['data']:_0xa3cbaf=new gt(_0x377fb0[_0x111031]['item']['data'],_0x377fb0[_0x111031]['item']['getAttributes']()),_0x377fb0[_0x111031+0x1]&&'text'===_0x377fb0[_0x111031+0x1]['type']&&_0x409ae9(_0xa3cbaf,_0x377fb0[_0x111031+0x1]['item'])||(_0x2be401[0x0]['_appendChild'](_0xa3cbaf),_0xa3cbaf=null),_0x2ffe49[_0x2ffe49['length']-0x1]+=_0x377fb0[_0x111031]['item']['offsetSize'],_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49));for(let _0x19b1fa=0x0;_0x19b1fa<_0x377fb0['length'];_0x19b1fa++){const _0x9fb73c=_0x377fb0[_0x19b1fa]['previousPosition'],_0x5e4da5=_0x377fb0[_0x19b1fa]['nextPosition'];for(const _0xc54a26 of _0x377fb0[_0x19b1fa]['markersStart'])_0x28874a['set'](_0xc54a26,{'start':_0x9fb73c,'end':null});_0x4652d8('isRemoveSuggestion',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isAddSuggestion',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isRemoved',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isAdded',_0x19b1fa,_0x9fb73c,_0x5e4da5);for(const _0x237679 of _0x377fb0[_0x19b1fa]['markersEnd']){const _0x1312f6=_0x28874a['get'](_0x237679);_0x1312f6?_0x1312f6['end']=_0x5e4da5:_0x28874a['set'](_0x237679,{'start':_0x5e4da5,'end':_0x5e4da5});}}for(const [_0x647b11,_0x16058f]of _0x28874a){const _0x598d0c=this['editor']['model']['createRange'](_0x16058f['start'],_0x16058f['end']);_0x4318e5['markers']['set'](_0x647b11,_0x598d0c);}return _0x540b5a['sort']((_0x248f5a,_0x5a7567)=>{const _0x58d96e=_0x4318e5['markers']['get']('revision:'+_0x248f5a['id']),_0x1c5485=_0x4318e5['markers']['get']('revision:'+_0x5a7567['id']);return _0x58d96e['start']['isBefore'](_0x1c5485['start'])?-0x1:_0x58d96e['start']['isAfter'](_0x1c5485['start'])?0x1:_0x58d96e['end']['isBefore'](_0x1c5485['end'])?-0x1:_0x58d96e['end']['isAfter'](_0x1c5485['end'])?0x1:'add'===_0x248f5a['type']?-0x1:0x1;}),{'root':_0x4318e5,'changes':_0x540b5a};function _0x4652d8(_0x4e1508,_0x14f44c,_0x47b5bf,_0x247d86){const _0x4b936f=!!_0x377fb0[_0x14f44c][_0x4e1508],_0x420e83=_0x4b936f?_0x377fb0[_0x14f44c][_0x4e1508]['userId']:null,_0x3560e1=_0x14f44c===_0x377fb0['length']-0x1,_0x478d46=_0x6eb5c1[_0x4e1508][0x0],_0x3408cc=_0x26536d['isObject'](_0x377fb0[_0x14f44c]['item']);!_0x25321d[_0x4e1508]&&_0x4b936f?_0x25321d[_0x4e1508]={'start':_0x47b5bf,'tapeItem':_0x377fb0[_0x14f44c],'userId':_0x420e83,'type':_0x4e1508}:_0x25321d[_0x4e1508]&&!_0x4b936f?(_0x25321d[_0x4e1508]['end']=_0x47b5bf,_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]=null):_0x25321d[_0x4e1508]&&_0x4b936f&&_0x25321d[_0x4e1508]['userId']!==_0x420e83&&(_0x25321d[_0x4e1508]['end']=_0x47b5bf,_0x478d46&&_0x478d46['userId']===_0x25321d[_0x4e1508]['userId']||_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]={'start':_0x47b5bf,'tapeItem':_0x377fb0[_0x14f44c],'userId':_0x420e83,'type':_0x4e1508}),_0x25321d[_0x4e1508]&&_0x3408cc&&('elementStart'!==_0x377fb0[_0x14f44c]['type']||_0x478d46&&_0x478d46['userId']===_0x420e83||_0x6eb5c1[_0x4e1508]['unshift']({'userId':_0x420e83,'object':_0x377fb0[_0x14f44c]['item'],'change':_0x25321d[_0x4e1508]}),'elementEnd'===_0x377fb0[_0x14f44c]['type']&&_0x478d46&&_0x478d46['object']===_0x377fb0[_0x14f44c]['item']&&(_0x6eb5c1[_0x4e1508]['shift'](),_0x25321d[_0x4e1508]=_0x478d46['change'])),_0x25321d[_0x4e1508]&&_0x3560e1&&(_0x25321d[_0x4e1508]['end']=_0x247d86,_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]=null);}function _0x19251f({start:_0x54fcf2,end:_0x3e3bae,tapeItem:_0x396be1,userId:_0x4f9f0f,type:_0x3ac8ba}){const _0x2ba85c=_0x396be1['item'],_0x56ee9a=_0x5cb871['schema']['isBlock'](_0x2ba85c)&&!_0x5cb871['schema']['isLimit'](_0x2ba85c),_0x212a84=_0x54fcf2['nodeAfter']==_0x3e3bae['parent']&&_0x3e3bae['isAtStart'];if(_0x56ee9a&&_0x212a84)return;const _0x449aa4=_0x5cb871['createRange'](_0x54fcf2,_0x3e3bae),_0x592771=_0x6419fd['get'](_0x4f9f0f),_0x23e323=new r({'author':_0x592771,'type':'isAdded'==_0x3ac8ba||'isAddSuggestion'==_0x3ac8ba?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3ac8ba||'isRemoveSuggestion'==_0x3ac8ba},'createdAt':new Date(),'rootName':_0x536c63});_0x540b5a['push'](_0x23e323),_0x4318e5['markers']['set']('revision:'+_0x23e323['id'],_0x449aa4);}function _0x409ae9(_0x3fd4cc,_0x4c1a40){const _0x54e1b8=_0x3fd4cc['getAttributes'](),_0x3f15c8=_0x4c1a40['getAttributes']();for(const _0x1e5edb of _0x54e1b8){if(_0x1e5edb[0x1]!==_0x4c1a40['getAttribute'](_0x1e5edb[0x0]))return!0x1;_0x3f15c8['next']();}return _0x3f15c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xeb45a9=>{const _0x117abc=_0xeb45a9['markerName']['split'](':')[0x1],_0xd4e941=this['_getChangeFromId'](_0x117abc);if(!_0xd4e941)return null;const _0x155620='add'==_0xd4e941['type']?'insertion':'deletion',_0x3d11bf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x155620];return _0xd4e941['data']['isSuggestion']&&_0x3d11bf['push']('ck-suggestion-marker-'+_0x155620+'-new'),this['activeChange']==_0xd4e941&&_0x3d11bf['push']('ck-suggestion-marker--active'),{'classes':_0x3d11bf,'attributes':{'data-change-id':_0x117abc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e1faa=>{_0x5e1faa['on']('element:pre',(_0x1591f4,_0x4bd8ce,_0x25b2d2)=>{const _0xb1072d=_0x4bd8ce['viewItem']['getChild'](0x0);if(!_0xb1072d||!_0xb1072d['is']('element','code'))return;if(!_0x25b2d2['consumable']['consume'](_0xb1072d,{'attributes':['vid_start','vid_end']}))return;const _0x460965=_0x4bd8ce['modelRange']['start']['nodeAfter'];_0x25b2d2['writer']['setAttribute']('vid_start',_0xb1072d['getAttribute']('vid_start'),_0x460965),_0x25b2d2['writer']['setAttribute']('vid_end',_0xb1072d['getAttribute']('vid_end'),_0x460965);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2da356=>{_0x2da356['on']('element',(_0x2ad8ee,_0x6c3415,_0x2e8b77)=>{if(!_0x2e8b77['consumable']['consume'](_0x6c3415['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x6c3415['modelRange']['isCollapsed'])return;const _0x438ad5=_0x6c3415['modelRange']['start']['nodeAfter'];_0x438ad5['hasAttribute']('vid_start')||_0x438ad5['hasAttribute']('vid')||(_0x2e8b77['writer']['setAttribute']('vid_start',_0x6c3415['viewItem']['getAttribute']('vid_start'),_0x438ad5),_0x2e8b77['writer']['setAttribute']('vid_end',_0x6c3415['viewItem']['getAttribute']('vid_end'),_0x438ad5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x18d774=>_0x18d774['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2cff0e,[,_0x15aca5])=>{['vid_start','vid_end','vid']['includes'](_0x15aca5)&&(_0x2cff0e['return']=!0x0,_0x2cff0e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xb93c4=>{_0xb93c4['on']('attribute:vid',(_0x39f5bf,_0x44f6c1,_0xaace41)=>{if('\x20'!=_0x44f6c1['item']['data']||_0x44f6c1['item']['parent']['maxOffset']>0x1)return;if(!_0xaace41['consumable']['consume'](_0x44f6c1['item'],_0x39f5bf['name']))return;const _0x198ab8=_0xaace41['writer'],_0x32551b=_0xaace41['mapper']['toViewRange'](_0x44f6c1['range']);_0x198ab8['wrap'](_0x32551b,_0x198ab8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3f9138){const _0x295b5f=_0x3f9138['plugins']['get']('RevisionViewer');return(_0x4a3e3a,_0x38c710,_0x56407d)=>{const _0x52afbc=_0x38c710['markerName']['split'](':')[0x1],_0x578142=_0x295b5f['_getChangeFromId'](_0x52afbc);if(!_0x578142)return null;const _0x9e3b73='add'==_0x578142['type']?'split':'merge';if(!_0x56407d['consumable']['test'](_0x38c710['markerRange'],_0x4a3e3a['name']))return;const _0x2b0be6=_0x38c710['markerRange']['getWalker'](),_0x5252b9=_0x38c710['markerRange']['start'],_0x5633d0=_0x3f9138['model']['schema'];let _0x2262f9=null,_0x2447b6=null,_0x1ce7d0=!0x1,_0xf64b64=!0x1;for(const _0x23fbac of _0x2b0be6){const _0x85f910=_0x23fbac['item'];_0x1ce7d0=_0x1ce7d0||_0x5633d0['isContent'](_0x85f910);const _0x4b1a3e=_0x56407d['mapper']['toViewElement'](_0x85f910);if(_0x4b1a3e&&_0x4b1a3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23fbac['type']&&(_0x5633d0['isBlock'](_0x85f910)&&!_0x5633d0['isLimit'](_0x85f910)&&(_0x85f910['nextSibling']||_0x5252b9['isAtEnd']?_0x2262f9&&_0x2262f9['parent']==_0x85f910||(_0x2262f9=_0x85f910,_0x1ac1c9(_0x23fbac['previousPosition']),_0xf64b64=!0x0):_0x2447b6=_0x2447b6||_0x23fbac['previousPosition']));}function _0x1ac1c9(_0x4e82e5){const _0x4fdd46=_0x56407d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9e3b73}),_0x456bbb=_0x56407d['mapper']['toViewPosition'](_0x4e82e5);_0x578142['data']['isSuggestion']&&_0x56407d['writer']['addClass']('ck-suggestion-marker-'+_0x9e3b73+'-new',_0x4fdd46),_0x295b5f['activeChange']==_0x578142&&_0x56407d['writer']['addClass']('ck-suggestion-marker--active',_0x4fdd46),_0x56407d['writer']['insert'](_0x456bbb,_0x4fdd46),_0x56407d['mapper']['bindElementToMarker'](_0x4fdd46,_0x38c710['markerName']);}_0x1ce7d0||_0xf64b64||!_0x2447b6||_0x1ac1c9(_0x2447b6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3f1e38,_0x3dde9a,_0x3ced0a)=>{const _0x5684af=_0x3ced0a['mapper']['markerNameToElements'](_0x3dde9a['markerName']);if(_0x5684af){for(const _0x25e7c2 of _0x5684af)(_0x25e7c2['hasClass']('ck-suggestion-marker-split')||_0x25e7c2['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ced0a['mapper']['unbindElementFromMarkerName'](_0x25e7c2,_0x3dde9a['markerName']),_0x3ced0a['writer']['remove'](_0x25e7c2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3b7d26,_0xc8944,_0x25cc2e)=>{const _0x5a8a50=_0xc8944['markerName']['split'](':')[0x1],_0x1ec36d=this['_getChangeFromId'](_0x5a8a50);if(!_0x1ec36d)return null;const _0x983483='add'==_0x1ec36d['type']?'split':'merge';if(_0x25cc2e['consumable']['test'](_0xc8944['markerRange'],_0x3b7d26['name']))for(const _0x1cb968 of _0xc8944['markerRange']['getItems']()){if(!_0x1cb968['is']('element','softBreak'))continue;const _0x2d291f=_0x25cc2e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x983483}),_0x1ee82f=_0x25cc2e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1cb968));_0x1ec36d['data']['isSuggestion']&&_0x25cc2e['writer']['addClass']('ck-suggestion-marker-'+_0x983483+'-new',_0x2d291f),this['activeChange']==_0x1ec36d&&_0x25cc2e['writer']['addClass']('ck-suggestion-marker--active',_0x2d291f),_0x25cc2e['writer']['insert'](_0x1ee82f,_0x2d291f),_0x25cc2e['mapper']['bindElementToMarker'](_0x2d291f,_0xc8944['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12d8ab=>{for(const _0x2641f2 of this['editor']['model']['document']['getRootNames']()){const _0x4a68bd=this['editor']['model']['document']['getRoot'](_0x2641f2),_0x62c4b2=this['editor']['editing']['view']['document']['getRoot'](_0x2641f2);if(_0x62c4b2){const _0x31e163=_0x4a68bd['getAttribute']('revisionHistoryAttachChange');if(_0x12d8ab['removeAttribute']('data-change-id',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root-add',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root-remove',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root--active',_0x62c4b2),_0x31e163){const _0x5873d9=this['_getChangeFromId'](_0x31e163);if(!_0x5873d9)return null;_0x12d8ab['setAttribute']('data-change-id',_0x31e163,_0x62c4b2),_0x12d8ab['addClass']('ck-revision-history-root-'+_0x5873d9['type'],_0x62c4b2),this['activeChange']==_0x5873d9&&_0x12d8ab['addClass']('ck-revision-history-root--active',_0x62c4b2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x146c71=>'revision-comment:'+_0x146c71,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4679ac=>'revision-suggestion:'+_0x4679ac,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f1853=>({'name':'suggestion:'+_0x2f1853,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e860a=>{const _0x5d1a17=_0x1e860a['markerName']['split'](':')[0x1];return'insertion'!=_0x5d1a17&&'deletion'!=_0x5d1a17?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d1a17]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3bfea2,_0x513454,_0x41606d)=>{const _0x4e0353=_0x41606d['mapper']['markerNameToElements'](_0x513454['markerName']);if(_0x4e0353){for(const _0x48a122 of _0x4e0353)_0x48a122['is']('uiElement')&&(_0x41606d['mapper']['unbindElementFromMarkerName'](_0x48a122,_0x513454['markerName']),_0x41606d['writer']['remove'](_0x48a122));}},{'priority':'high'});}['_getChangeFromId'](_0x2df24f){return this['_changeIdToChange']['get'](_0x2df24f);}['_getViewForChange'](_0xf88a08){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xf88a08),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xc9eae5,_0x1c5836,_0x2f8cc8,_0x1999ad)=>{_0x1999ad&&this['_balloon']['remove'](_0x1999ad),_0x2f8cc8&&(this['_balloon']['add']({'view':_0x2f8cc8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x253e72=this['editor']['editing'],_0xe5bcd1=this['_getChangeFromId'](_0x2f8cc8['changeId']);let _0x4bc239;if(_0xe5bcd1['data']['isOnRoot']){const _0x2078e7=_0x253e72['view']['getDomRoot'](_0xe5bcd1['rootName']);_0x4bc239=Array['from'](_0x2078e7['getClientRects']());}else{const _0x88d0de=this['editor']['model']['markers']['get']('revision:'+_0x2f8cc8['changeId']);_0x4bc239=Array['from'](_0x253e72['mapper']['markerNameToElements'](_0x88d0de['name']))['map'](_0x558505=>_0x253e72['view']['domConverter']['mapViewToDom'](_0x558505))['map'](_0x2b5148=>Array['from'](_0x2b5148['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4bc239[0x0];return _0x4bc239['find'](_0x36ab2b=>_0x36ab2b['top']-0x3<=this['_activeViewTarget']['y']&&_0x36ab2b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36ab2b['left']-0x3<=this['_activeViewTarget']['x']&&_0x36ab2b['right']+0x3>=this['_activeViewTarget']['x'])||_0x4bc239[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x461286,_0x381a9b,_0x329319,_0x38e3a3)=>{this['activeView']=_0x329319?this['_getViewForChange'](_0x329319):null,this['editor']['model']['change'](()=>{const _0xd08324=this['editor']['editing'];_0x38e3a3&&(_0x38e3a3['data']['isOnRoot']?_0xd08324['view']['change'](_0x1a0c1a=>{_0x1a0c1a['removeClass']('ck-revision-history-root--active',_0xd08324['view']['document']['getRoot'](_0x38e3a3['rootName']));}):_0xd08324['reconvertMarker']('revision:'+_0x38e3a3['id'])),_0x329319&&(_0x329319['data']['isOnRoot']?_0xd08324['view']['change'](_0x20b4c4=>{_0x20b4c4['addClass']('ck-revision-history-root--active',_0xd08324['view']['document']['getRoot'](_0x329319['rootName']));}):_0xd08324['reconvertMarker']('revision:'+_0x329319['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5bf889,_0xbcc1b5)=>{if(this['activeChange'])return;const _0x3dcf2c=this['_findChangeIdFromDomTarget'](_0xbcc1b5['target']),_0x3ae947=this['_changeIdToChange']['get'](_0x3dcf2c);_0x3ae947?(this['_activeViewTarget']={'x':_0xbcc1b5['domEvent']['x'],'y':_0xbcc1b5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3ae947)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ae9b3,_0x2de263)=>{const _0x514f9b=this['_findChangeIdFromDomTarget'](_0x2de263['target']),_0x8e66df=this['_changeIdToChange']['get'](_0x514f9b);_0x8e66df?(this['_activeViewTarget']={'x':_0x2de263['domEvent']['x'],'y':_0x2de263['domEvent']['y']},_0x8e66df===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8e66df):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x9f63b6){do{const _0x4fd4b2=_0x9f63b6['getAttribute']('data-change-id');if(_0x4fd4b2)return _0x4fd4b2;_0x9f63b6=_0x9f63b6['parent'];}while(_0x9f63b6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4108be=>{for(const _0xa11404 of this['editor']['model']['markers'])_0x4108be['removeMarker'](_0xa11404);});}}function X(_0xbc7654,_0x204530){return(_0x1cfb49,_0x364ab8,_0x2a0adb)=>{if(!_0x2a0adb['consumable']['test'](_0x364ab8['markerRange'],_0x1cfb49['name']))return;const _0x5111b4=_0x364ab8['markerRange']['getWalker'](),_0x2b026e=_0x364ab8['markerRange']['start'],_0x157af0=_0xbc7654['model']['schema'];let _0x3437a6=null,_0x134459=null,_0x323778=!0x1,_0x5f3407=!0x1;for(const _0x1a8b8f of _0x5111b4){const _0x3ea291=_0x1a8b8f['item'];_0x323778=_0x323778||_0x157af0['isContent'](_0x3ea291);const _0x27c93f=_0x2a0adb['mapper']['toViewElement'](_0x3ea291);if(_0x27c93f&&_0x27c93f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a8b8f['type']&&(_0x157af0['isBlock'](_0x3ea291)&&!_0x157af0['isLimit'](_0x3ea291)&&(_0x3ea291['nextSibling']||_0x2b026e['isAtEnd']?_0x3437a6&&_0x3437a6['parent']==_0x3ea291||(_0x3437a6=_0x3ea291,_0x1395d6(_0x1a8b8f['previousPosition']),_0x5f3407=!0x0):_0x134459=_0x134459||_0x1a8b8f['previousPosition']));}function _0x1395d6(_0x283f6f){const _0x16d1a0=_0x2a0adb['mapper']['toViewPosition'](_0x283f6f),_0x40ca9a=_0x2a0adb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x204530});_0x2a0adb['writer']['insert'](_0x16d1a0,_0x40ca9a),_0x2a0adb['mapper']['bindElementToMarker'](_0x40ca9a,_0x364ab8['markerName']);}_0x323778||_0x5f3407||!_0x134459||_0x1395d6(_0x134459);};}class mt extends _0x1cd17f{constructor(_0xca8245){super(_0xca8245);const _0x1662da=_0xca8245['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1662da,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1662da,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x338ecd=this['editor'],_0x2e43f7=_0x338ecd['plugins']['get'](m),_0x5f554b=_0x2e43f7['isReady']?_0x2e43f7['diff']['newRevisionId']:null;_0x338ecd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5f554b);}['refresh'](){const {isReady:_0x2ef9a0,isEnabled:_0xc3757e,repository:_0x523cda,diff:_0x71f78f}=this['editor']['plugins']['get'](m),_0x227d1e=_0x71f78f&&_0x523cda['getLaterVisibleRevision'](_0x71f78f['newRevisionId']);this['isEnabled']=_0x2ef9a0&&_0xc3757e&&Boolean(_0x227d1e);}}class wt extends _0x1cd17f{['_step'];constructor(_0x792a04,{direction:_0xedcb33}){super(_0x792a04);const _0x20aa0=_0x792a04['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0xedcb33?0x1:-0x1,this['listenTo'](_0x20aa0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20aa0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x20aa0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e3e6d=this['editor'],_0x43656a=_0x4e3e6d['plugins']['get'](m),{isNavigationMode:_0x53df24,currentChangeNumber:_0x33bb3f}=_0x43656a;let _0x7d8c61;if(_0x43656a['activeChange']=_0x53df24?_0x43656a['diff']['changes']['get'](_0x33bb3f+this['_step']):_0x43656a['diff']['changes']['first'],_0x43656a['activeChange']['data']['isOnRoot'])_0x7d8c61=_0x4e3e6d['editing']['view']['getDomRoot'](_0x43656a['activeChange']['rootName']);else{const _0xba7624=_0x4e3e6d['model']['markers']['get']('revision:'+_0x43656a['activeChange']['id']);_0x7d8c61=_0x563781(_0x4e3e6d['editing'],_0xba7624);}_0x30f821({'target':_0x7d8c61,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3e0b63,currentChangeNumber:_0x1211fc,numberOfChanges:_0x5e7771,isReady:_0x328c58,isEnabled:_0x31dc4b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x31dc4b&&_0x328c58&&_0x5e7771)&&(!_0x3e0b63||(0x1===this['_step']?_0x1211fc<_0x5e7771-0x1:_0x1211fc>0x0));}}class di extends ts{constructor(_0x3f4d43){super(_0x3f4d43);const _0xbb7a45=this['bindTemplate'],_0x1cb16f=new te(_0x3f4d43),_0x4661dc=new te(_0x3f4d43);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',(_0x51da0e,_0x5dea4c)=>_0x51da0e&&_0x5dea4c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xd854d,_0x3a165d,_0x44af00,_0x4971cc)=>{if(!_0xd854d)return g(_0x3f4d43,'Loading...');if(!_0x44af00)return g(_0x3f4d43,'No\x20changes');const _0x15b39e=g(_0x3f4d43,'NUMBER_OF_CHANGES',_0x44af00);return _0x4971cc?g(_0x3f4d43,'X_OF_Y_CHANGES',[_0x3a165d+0x1,_0x44af00]):_0x15b39e;}),_0x1cb16f['set']({'label':g(_0x3f4d43,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x338ca2}),_0x4661dc['set']({'label':g(_0x3f4d43,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1edfec}),_0x1cb16f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4661dc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1cb16f['on']('execute',()=>this['fire']('execute','backward')),_0x4661dc['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',_0xbb7a45['if']('_isStatusLabelVisible','ck-hidden',_0x1f1f36=>!_0x1f1f36)]},'children':[{'text':_0xbb7a45['to']('isNavigationMode',_0x3a7a51=>_0x3a7a51?g(_0x3f4d43,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3f4d43,'Total')+':\x20')}]},{'text':_0xbb7a45['to']('_statusText')}]},new _0x3f634c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1cb16f,_0x4661dc]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x501960{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b08ea=this['editor']['editing']['view'];_0x1b08ea['change'](_0x3cd4c1=>{for(const _0x490055 of _0x1b08ea['document']['roots'])_0x3cd4c1['addClass'](le,_0x490055);});}['hide'](){const _0x254aaa=this['editor']['editing']['view'];_0x254aaa['change'](_0x12d17b=>{for(const _0x57fdbd of _0x254aaa['document']['roots'])_0x12d17b['removeClass'](le,_0x57fdbd);});}}class R extends _0x501960{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x3a688f=this['editor'],_0x530d3f=_0x3a688f['plugins']['get'](m),_0x7fd56c=_0x3a688f['plugins']['get'](de);_0x3a688f['ui']['componentFactory']['add']('exitToEditing',_0x271394=>{const _0x51755b=new te(_0x271394);return _0x51755b['set']({'label':g(_0x271394,'Back\x20to\x20editing'),'icon':_0x24c8de,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x51755b,'execute',()=>{_0x3a688f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x51755b;}),_0x3a688f['ui']['componentFactory']['add']('restoreRevision',_0x68ac12=>{const _0x3e2f16=new te(_0x68ac12);return _0x3e2f16['set']({'label':g(_0x68ac12,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3e2f16['bind']('isEnabled')['to'](_0x3a688f['commands']['get']('restoreRevision')),this['listenTo'](_0x3e2f16,'execute',()=>_0x3a688f['execute']('restoreRevision')),_0x3e2f16;}),_0x3a688f['ui']['componentFactory']['add']('changesNavigation',_0x4461b4=>{const _0x4bffa5=new di(_0x4461b4),_0x1db544=_0x3a688f['commands']['get']('showPreviousChange'),_0x552c79=_0x3a688f['commands']['get']('showNextChange');return _0x4bffa5['bind']('isBackwardNavigationEnabled')['to'](_0x1db544,'isEnabled'),_0x4bffa5['bind']('isForwardNavigationEnabled')['to'](_0x552c79,'isEnabled'),_0x4bffa5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x530d3f),this['listenTo'](_0x4bffa5,'execute',(_0x26a0e3,_0x11996d)=>{_0x3a688f['execute']('forward'===_0x11996d?'showNextChange':'showPreviousChange');}),_0x4bffa5;}),_0x7fd56c['show'](),_0x530d3f['on']('change:isReady',(_0x5f29c6,_0x3757bd,_0x278401)=>{_0x278401?_0x7fd56c['hide']():_0x7fd56c['show']();});}}class at extends _0x5b135e{['_resizeObserver']=null;constructor(_0x3155be,_0x286e38){super(_0x3155be,_0x286e38);const _0x338a9f=this['bindTemplate'];this['set']({'label':g(_0x3155be,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3155be,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x338a9f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x37975f=this['fieldView']['element'];this['_tooltipString']=_0x37975f['scrollWidth']>_0x37975f['clientWidth']&&_0x37975f['value']||'';}}class si extends ts{constructor(_0x2c3f2a,_0x53c583,_0x51eee7){super(_0x2c3f2a);const _0x5b23ab=new _0x4ceb1c();_0x5b23ab['set']({'content':_0x5481c3,'viewBox':'0\x200\x2011\x2010'});const _0x3b6e4b=['ck','ck-revision-history-sidebar__revision-author'];_0x51eee7&&_0x3b6e4b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x13d5b8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2c3f2a,_0x51eee7?'Revision\x20creator':'Revision\x20author')},'children':[_0x5b23ab,_0x53c583['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b6e4b},'children':_0x13d5b8});}}function oi(_0xf9b4b0,_0x5013cf){const _0x5f5cc1=_0xf9b4b0['bindTemplate'],_0x435306=_0xf9b4b0['locale'],_0x3abb05=_0x26e46b(_0x435306);_0x3abb05['panelPosition']='sw';const _0x111507=function(_0x2df39e,_0x1edf51){const _0x50870c=function(_0x1615d3,_0x1e695c){const _0x2b8669=_0x1615d3['locale'],_0x337f8c={'Compare\x20against\x20selected':g(_0x2b8669,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2b8669,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2b8669,'Restore\x20this\x20revision')};return _0x1e695c['map'](_0x56d48e=>{const _0x25a359=_0x337f8c[_0x56d48e['name']];return _0x25a359&&_0x25a359!==_0x56d48e['name']&&(_0x56d48e['name']=_0x25a359),_0x56d48e;});}(_0x2df39e,_0x1edf51),_0x209d7c=new _0x20ed9a();for(const _0x1b1e7f of _0x50870c){const _0x15f69e={'type':'button','model':new to({'label':_0x1b1e7f['name'],'class':_0x1b1e7f['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b1e7f['action']})};_0x15f69e['model']['bind']('isEnabled')['to'](_0x2df39e,'isActionsDropdownOpen',_0x3078a8=>'function'!=typeof _0x1b1e7f['isEnabled']||(!_0x3078a8||_0x1b1e7f['isEnabled'](_0x2df39e))),_0x209d7c['add'](_0x15f69e);}return _0x209d7c;}(_0xf9b4b0,_0x5013cf);return _0xf9b4b0['bind']('isActionsDropdownOpen')['to'](_0x3abb05,'isOpen'),_0x3abb05['buttonView']['set']({'label':g(_0x435306,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41c7a5}),_0x3abb05['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5f5cc1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5f5cc1['to'](_0x4ca3d0=>_0x4ca3d0['stopPropagation']())}}),_0x3abb05['on']('execute',_0x42b0ec=>{_0xf9b4b0['isReady']&&'function'==typeof _0x42b0ec['source']['_action']&&_0x42b0ec['source']['_action'](_0xf9b4b0);}),_0x5c8db3(_0x3abb05,_0x111507,{'role':'menu'}),_0x3abb05['listenTo'](_0xf9b4b0,'change:isActionsDropdownOpen',(_0x1d48e2,_0x14602f,_0x54f0b6)=>{if(_0x54f0b6)for(const _0x3285b3 of _0x3abb05['listView']['items']){const _0x53717a=_0x3285b3['children']['first'],_0x1ef72f=_0x5013cf['find'](_0x2ba5fd=>_0x2ba5fd['action']===_0x53717a['_action'])['isVisible'];_0x3285b3['isVisible']=void 0x0===_0x1ef72f||_0x1ef72f(_0xf9b4b0);}}),_0x3abb05;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x34a06b,_0x360477,_0x50746c,_0x69957){super(_0x34a06b);const _0x2a7c18=this['bindTemplate'],_0x23101c=function(_0x788e6c,_0xf4d869){const _0x1a3a04=Array['from'](_0xf4d869['authors'])['filter'](_0x1cda90=>_0x1cda90!=_0xf4d869['creator']);return _0xf4d869['creator']&&_0x1a3a04['unshift'](_0xf4d869['creator']),_0x1a3a04['map'](_0x47caa6=>new si(_0x788e6c,_0x47caa6,_0x47caa6==_0xf4d869['creator']));}(_0x34a06b,_0x360477);this['id']=_0x360477['id'],this['_revision']=_0x360477,this['_requireRevisionName']=_0x69957,this['bind']('name','createdAt')['to'](_0x360477),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x587350=>{return _0xa34a2b=_0x34a06b['uiLanguage'],(_0x8dc060=_0x587350)['toLocaleDateString'](_0xa34a2b,{'month':'long','day':'numeric'})+',\x20'+_0x8dc060['toLocaleTimeString'](_0xa34a2b,{'hour':'numeric','minute':'numeric'});var _0xa34a2b,_0x8dc060;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x34a06b,_0x34358c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a7e9f=>_0x2a7e9f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x20870c,_0x3d04e0)=>_0x20870c&&_0x3d04e0),this['revisionActionsView']=_0x50746c&&_0x50746c['length']?oi(this,_0x50746c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2a7c18['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a7c18['if']('isEnabled','ck-disabled',_0x13545c=>!_0x13545c),_0x2a7c18['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2a7c18['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2a7c18['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':_0x2a7c18['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':_0x23101c}]},this['revisionActionsView']],'on':{'click':_0x2a7c18['to'](_0x4547d7=>{_0x4547d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x399bfa=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x399bfa,'change',()=>{this['_requireRevisionName']&&!_0x399bfa['value']||this['fire']('setName',{'id':this['id'],'name':_0x399bfa['value']}),_0x399bfa['value']||(_0x399bfa['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x161c7e,_0x55478e){const _0x5c6f04=_0x24252f['fromJSDate'](_0x161c7e)['setLocale'](_0x55478e),_0x442c2d=_0x24252f['local'](),_0x31cf33=_0x442c2d['minus']({'days':0x1})['startOf']('day');let _0x1f7237,_0xcd04db;return _0x5c6f04['hasSame'](_0x442c2d,'day')?(_0x1f7237=_0x5c6f04['startOf']('day')['toJSDate'](),_0xcd04db=_0x5c6f04['toRelativeCalendar']()):_0x5c6f04['hasSame'](_0x31cf33,'day')?(_0x1f7237=_0x31cf33['toJSDate'](),_0xcd04db=_0x5c6f04['toRelativeCalendar']()):_0x5c6f04['hasSame'](_0x442c2d,'week')?(_0x1f7237=_0x5c6f04['startOf']('week')['toJSDate'](),_0xcd04db=_0x5c6f04['weekdayLong']||''):_0x5c6f04['hasSame'](_0x442c2d,'year')?(_0x1f7237=_0x5c6f04['startOf']('month')['toJSDate'](),_0xcd04db=_0x5c6f04['monthLong']||''):(_0x1f7237=_0x5c6f04['startOf']('year')['toJSDate'](),_0xcd04db=String(_0x5c6f04['year'])),{'startDate':_0x1f7237,'localizedPeriodName':_0xcd04db};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x27b60c,_0x5a7e76,_0x38430a,_0x57cb4b){super(_0x27b60c);const _0x1d6004=vi(_0x5a7e76,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a7e76,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x38430a,this['_requireRevisionName']=_0x57cb4b,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':_0x1d6004}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5ab544){const _0x176a26=new hi(this['locale'],_0x5ab544,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x176a26);}['removeRevision'](_0x1078ff){const _0x46e9fd=this['revisionViews']['find'](_0x30af1e=>_0x30af1e['id']===_0x1078ff['id']);this['revisionViews']['remove'](_0x46e9fd);}}class as extends ts{constructor(_0x1dc613){super(_0x1dc613);const _0x3c9db0=new _0x4ceb1c();_0x3c9db0['content']=_0x25fa61,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3c9db0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x1dc613,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33362d,_0x15f344,_0x29c7e0,_0x2efaaf){super(_0x33362d);const _0x8e73cf=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x15f344,this['_revisionActions']=_0x29c7e0,this['_requireRevisionName']=_0x2efaaf,this['on']('select',(_0x12b1ae,_0x18eb03)=>{this['fire']('revisionSelected',_0x18eb03);}),this['on']('setName',(_0x35013b,_0x2cca19)=>{this['fire']('revisionSetName',_0x2cca19);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x33362d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x8e73cf['if']('isEnabled','ck-disabled',_0x166657=>!_0x166657)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x551a89 of this['_revisions'])this['_addRevision'](_0x551a89);this['_revisions']['on']('add',(_0x5ed9bb,_0x1ee518)=>{this['_addRevision'](_0x1ee518);}),this['_revisions']['on']('remove',(_0x36e86a,_0x5e9de2)=>{this['_removeRevision'](_0x5e9de2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1af7eb=>_0x1af7eb['revisionViews']['map'](_0x24215c=>_0x24215c))['flat']();}['selectRevision'](_0x291639){for(const _0x110e08 of this['revisionViews'])_0x291639&&_0x291639['id']===_0x110e08['id']?_0x110e08['select']():_0x110e08['deselect']();}['highlightRevisions'](_0x3fe985){for(const _0x36a8bc of this['revisionViews'])_0x3fe985['some'](({id:_0x1be1b7})=>_0x1be1b7===_0x36a8bc['id'])?_0x36a8bc['highlight']():_0x36a8bc['unhighlight']();}['_addRevision'](_0x3ec6ea){const _0x597696=vi(_0x3ec6ea['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x349179=this['timePeriodViews']['get'](0x0);_0x349179&&_0x349179['startDate']['getTime']()===_0x597696['getTime']()||(_0x349179=new mi(this['locale'],_0x597696,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x349179)),_0x349179['addRevision'](_0x3ec6ea);}['_removeRevision'](_0xc66cf1){const _0x187a2d=vi(_0xc66cf1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x187a2d)['removeRevision'](_0xc66cf1);}['_getTimePeriodViewByStartDate'](_0x3da96e){return this['timePeriodViews']['find'](_0x1122c0=>_0x1122c0['startDate']['getTime']()===_0x3da96e['getTime']());}}class d extends _0x501960{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x4a7b9d(_0x48424a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2e1ba3,_0x4d94b0){super(_0x4d94b0),this['sourceElement']=_0x2e1ba3,this['model']['document']['createRoot']();const _0x52ccf1=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x52ccf1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x34a706,_0x33d1e9){const _0x4cbb15=new this(_0x34a706,_0x33d1e9);return await _0x4cbb15['initPlugins'](),await _0x4cbb15['ui']['init'](_0x34a706),await _0x4cbb15['data']['init'](_0x4cbb15['config']['get']('initialData')||''),_0x4cbb15['fire']('ready'),_0x4cbb15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x28ae17{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e10b5){function _0x186091(_0x55e2bb){return _0x55e2bb['map'](_0x5f34d5=>String['fromCharCode'](_0x5f34d5))['join']('');}super(_0x1e10b5),this['result']='end',_0x1e10b5[_0x186091([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x186091([0x76,0x69,0x65,0x77])][_0x186091([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x186091([0x61,0x75,0x74,0x6f]),_0x1e10b5[_0x186091([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x186091([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x186091([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x186091([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x186091([0x6f,0x6b])});}}class k extends _0x28ae17{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2cd30e){if(super(_0x2cd30e),!this['editor']['config']['get']('revisionHistory'))throw new _0x35f6cb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x336a39=>this['_showRevisionViewer']({..._0x336a39,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3766d2=>this['_closeRevisionViewer'](_0x3766d2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4fc0af=>this['_restoreRevision'](_0x4fc0af)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4a2e66){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4a2e66;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4040b1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4040b1);}['getRevision'](_0x3f35d9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f35d9);}['getRevisions'](_0xe3d860){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xe3d860||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x22b8e5=this['editor'],_0x21a111=_0x2564da(_0x22b8e5,p),_0x42b689=_0x22b8e5['plugins']['get']('RevisionTracker'),_0x2de26e=_0x22b8e5['plugins']['get']('Users')['users'];return _0x21a111['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21a111['lazyRoots'],(_0x21a111['plugins']['push'](yt,m,R,class extends _0x28ae17{static get['requires'](){return[m,'Users'];}['init'](){const _0x270855=this['editor']['plugins']['get']('Users');for(const _0x433010 of _0x2de26e)_0x433010['isAnonymous']||_0x270855['getUser'](_0x433010['id'])||_0x270855['addUser'](_0x433010);const _0x17f0f1=_0x42b689['repository']['getRevisions']();let _0x21358b=null;const _0x90e863=this['editor']['plugins']['get']('RevisionViewer');_0x90e863['adapter']=_0x42b689['adapter'],_0x90e863['bind']('isEnabled')['to'](_0x42b689),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x22b8e5,'isReadOnly',_0x4ab7f7=>!_0x4ab7f7);for(const _0x585132 of _0x17f0f1){const _0x47e3c0=null===_0x585132['creator'];if(_0x47e3c0&&_0x585132['toVersion']===_0x585132['fromVersion'])continue;const _0x3ebc23=_0x585132['toJSON']();_0x90e863['addRevisionData'](_0x3ebc23,(_0x19256c,_0x3f379d,_0x8da548)=>{if(_0x47e3c0){if(_0x21358b)_0x21358b['_update'](_0x19256c,_0x3f379d);else{if(!_0x3f379d){const _0x251fb7=_0x8da548['toJSON']();_0x251fb7['id']=_0x35025a(),_0x42b689['saveRevision'](_0x251fb7,_0x8da548['toVersion'])['then'](_0x352486=>{_0x21358b=_0x352486;});}}}else _0x585132['_update'](_0x19256c,_0x3f379d);});}}},d),_0x21a111);}['_enhanceShowRevisionViewerCallback'](){const _0x1dca92=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x260207=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x49562c=this['editor']['plugins']['get']('Autosave');await _0x49562c['save']();}else await _0x260207['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xa7cb67=this['editor']['plugins']['get']('Dialog');_0xa7cb67['isOpen']&&_0xa7cb67['hide']();}const _0x4a4297=this['_getRevisionViewerEditorConfig']();return _0x1dca92(_0x4a4297)['then'](_0x1af066=>{return(this['_viewerEditor']=_0x1af066,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1af066);})['catch'](_0x3fe920=>(console['error'](_0x3fe920),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3c4be6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3c4be6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2080c6=this['editor']['plugins']['get']('Annotations');_0x2080c6['refreshVisibility'](),_0x2080c6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x270962){const _0xff33df=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x50d1e8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x335efe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x335efe,_0x270962)['then'](_0x422f6e=>(_0x50d1e8['style']['display']='block',_0xff33df['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x422f6e));}['_closeRevisionViewer'](_0x409c02){const _0x59c695=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x59c695['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x409c02['destroy']();}async['_restoreRevision'](_0x26b856){const _0x1b5596=this['editor'],_0x462f6c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x22d0c7=_0x1b5596['plugins']['get']('RevisionTracker'),_0x53ddd9=_0x1b5596['plugins']['get']('RevisionHistoryUtils'),_0x5778fa=_0x462f6c['repository']['getRevision'](_0x26b856);let _0x267d2b,_0x51941e,_0x19eb27;try{await _0x53ddd9['loadRevisionData'](_0x5778fa,this['adapter']),_0x267d2b=_0x53ddd9['getRevisionDocumentData'](_0x5778fa),_0x51941e=_0x53ddd9['getRevisionRootsAttributes'](_0x5778fa);}catch(_0x52a107){return void console['error'](_0x52a107);}_0x1b5596['model']['change'](_0x2a17c1=>{for(const _0x3a2535 of Array['from'](_0x1b5596['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a17c1['removeMarker'](_0x3a2535);}),_0x462f6c['isReady']=!0x1,_0x1b5596['model']['enqueueChange'](_0x11f65e=>{_0x11f65e['setSelection'](null),_0x11f65e['removeSelectionAttribute'](_0x1b5596['model']['document']['selection']['getAttributeKeys']());const _0x10ce3f=Object['keys'](_0x267d2b);for(const _0x3595d9 of _0x1b5596['model']['document']['roots'])'$graveyard'!=_0x3595d9['rootName']&&_0x3595d9['isAttached']()&&!_0x10ce3f['includes'](_0x3595d9['rootName'])&&_0x11f65e['detachRoot'](_0x3595d9);for(const _0x3bbb86 of _0x10ce3f){let _0x933574=_0x1b5596['model']['document']['getRoot'](_0x3bbb86);_0x933574&&_0x933574['isAttached']()||(_0x933574=_0x11f65e['addRoot'](_0x3bbb86));const _0x445d57=_0x51941e[_0x3bbb86],_0x56ab28=Object['keys'](_0x445d57),_0x511b4e=_0x267d2b[_0x3bbb86];for(const _0x1517d3 of _0x933574['getAttributeKeys']())_0x56ab28['includes'](_0x1517d3)||_0x11f65e['removeAttribute'](_0x1517d3,_0x933574);for(const _0x43ab5a of _0x56ab28)_0x11f65e['setAttribute'](_0x43ab5a,_0x51941e[_0x3bbb86][_0x43ab5a],_0x933574);_0x11f65e['remove'](_0x11f65e['createRangeIn'](_0x933574)),_0x11f65e['insert'](_0x1b5596['data']['parse'](_0x511b4e,_0x933574),_0x933574,0x0);}});const _0x413cc2=g(_0x1b5596['locale'],'Restored');if(_0x5778fa['name'])_0x19eb27=-0x1==_0x5778fa['name']['indexOf'](_0x413cc2)?_0x413cc2+':\x20'+_0x5778fa['name']:_0x5778fa['name'];else _0x19eb27=_0x413cc2+':\x20'+(_0x5778fa['createdAt']['toLocaleDateString'](_0x1b5596['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5778fa['createdAt']['toLocaleTimeString'](_0x1b5596['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x22d0c7['saveRevision']({'name':_0x19eb27}),_0x462f6c['isReady']=!0x0,_0x1b5596['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2d6591){super(_0x2d6591),this['_revisionViewer']=_0x2d6591['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x371d44=this['_revisionsRepository']['_revisions'],_0x4de670=this['_createRevisionActions'](),_0x21cb69=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x371d44,_0x4de670,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',(_0x5cbcd4,_0x2e4280)=>{_0x2e4280['revisionViews']['on']('add',(_0x22e81c,_0xca0381)=>{_0xca0381['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)),_0x21cb69['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5b1da9=this['_revisionsRepository']['getRevision'](0x0);if(_0x5b1da9){const _0x33f29e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b1da9['id']);this['_revisionViewer']['compare'](_0x5b1da9,_0x33f29e);}}['_handleRevisionSelected'](_0x430859,_0x3032ab){const _0x768272=this['_revisionsRepository']['getRevision'](_0x3032ab['id']),_0x579fb6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x768272['id']);this['_revisionViewer']['compare'](_0x768272,_0x579fb6);}['_handleRevisionSetName'](_0x41337c,_0x4cc59a){this['_revisionsRepository']['getRevision'](_0x4cc59a['id'])['setName'](_0x4cc59a['name']);}['_handleDiffChange'](_0x352740,_0x27b197,_0x1768f9){const _0x403db1=this['_revisionsRepository']['getRevisionsInDiff'](_0x1768f9);_0x403db1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x403db1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x403db1[0x0]));}['_createRevisionActions'](){const _0x55b651=this['editor'],_0x236fa4=d['availableRevisionActions'],_0x31e2ed=_0x55b651['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x31e2ed['length'])return _0x31e2ed['map'](_0x1b1702=>{const _0x5da39f='string'==typeof _0x1b1702?Object['assign']({},_0x236fa4[_0x1b1702]):_0x1b1702;return _0x5da39f['action']=_0x5da39f['action']['bind'](this,_0x55b651),_0x5da39f['isVisible']&&(_0x5da39f['isVisible']=_0x5da39f['isVisible']['bind'](this,_0x55b651)),_0x5da39f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2136c1},_0x20b9e1)=>{const _0x2e3b74=_0x2136c1['get'](m),_0x1b8d74=_0x2e3b74['repository'];let _0x3c9b94=_0x2e3b74['diff']['newRevisionId'],_0x58d537=_0x20b9e1['id'];_0x1b8d74['getIndex'](_0x3c9b94)>_0x1b8d74['getIndex'](_0x58d537)&&([_0x3c9b94,_0x58d537]=[_0x58d537,_0x3c9b94]),_0x2e3b74['compare'](_0x3c9b94,_0x58d537);},'isVisible':({plugins:_0x37b76d},_0x3c166b)=>{const _0x118d60=_0x37b76d['get'](m);return!(_0x118d60['repository']['getRevisionsInDiff'](_0x118d60['diff'])['length']>0x2)&&!_0x3c166b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x112785,{id:_0x133099})=>{_0x112785['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x133099);},'isVisible':({plugins:_0x596de3},_0x32722c)=>!!_0x596de3['get'](m)['repository']['getLaterVisibleRevision'](_0x32722c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2df9f1},{id:_0x5e0b5b,revisionNameView:_0x2d86e7})=>{const _0x195111=_0x2df9f1['get'](m),_0x2cb41e=_0x195111['repository']['getEarlierVisibleRevision'](_0x5e0b5b);_0x195111['compare'](_0x5e0b5b,_0x2cb41e),_0x2d86e7['focus'](),_0x2d86e7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3a1124,_0x44387a){super(_0x3a1124),this['_view']=_0x44387a,this['_toolbarConfig']=et(_0x3a1124['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4e6106){const _0xa34923=this['editor'],_0x4c7057=this['view'],_0x1b3f00=_0xa34923['editing']['view'],_0x2e3073=_0x4c7057['editable'],_0x4d9147=_0x1b3f00['document']['getRoot']();_0x2e3073['name']=_0x4d9147['rootName'],_0x4c7057['render']();const _0x1058d6=_0x2e3073['element'];this['setEditableElement'](_0x2e3073['name'],_0x1058d6),_0x4c7057['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1b3f00['attachDomRoot'](_0x1058d6),this['_elementReplacer']['replace'](_0x4e6106,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x50d4fb=this['view'],_0x100ac1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x100ac1['detachDomRoot'](_0x50d4fb['editable']['name']),_0x50d4fb['destroy']();}['_initToolbar'](){const _0x49bd15=this['view'];_0x49bd15['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x49bd15['stickyPanel']['limiterElement']=_0x49bd15['element'],_0x49bd15['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e4571})=>_0x1e4571),_0x49bd15['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x49bd15['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x35f899,_0x5bbb5e,_0x12ced8={}){super(_0x35f899),this['stickyPanel']=new ht(_0x35f899),this['toolbar']=new dt(_0x35f899,{'shouldGroupWhenFull':_0x12ced8['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x35f899,_0x5bbb5e);}['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
|
+
_0x3625b4(_0x5b2865){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xca1b3b,_0x7f7182){super(_0x7f7182),this['sourceElement']=_0xca1b3b,this['model']['document']['createRoot']();const _0xdb28c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0xdb28c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1bd313,_0x194d8c){const _0x5d47d4=new this(_0x1bd313,_0x194d8c);return await _0x5d47d4['initPlugins'](),await _0x5d47d4['ui']['init'](_0x1bd313),await _0x5d47d4['data']['init'](_0x5d47d4['config']['get']('initialData')||''),_0x5d47d4['fire']('ready'),_0x5d47d4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x501960{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e877c){function _0x387558(_0xdfdc31){return _0xdfdc31['map'](_0x1fd22d=>String['fromCharCode'](_0x1fd22d))['join']('');}super(_0x1e877c),this['result']='end',_0x1e877c[_0x387558([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x387558([0x76,0x69,0x65,0x77])][_0x387558([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x387558([0x61,0x75,0x74,0x6f]),_0x1e877c[_0x387558([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x387558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x387558([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x387558([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x387558([0x6f,0x6b])});}}class k extends _0x501960{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xa901f6){if(super(_0xa901f6),!this['editor']['config']['get']('revisionHistory'))throw new _0x5a71fc('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1c0dcd=>this['_showRevisionViewer']({..._0x1c0dcd,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xf9eabc=>this['_closeRevisionViewer'](_0xf9eabc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x38da39=>this['_restoreRevision'](_0x38da39)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2a4252){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2a4252;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x209f4c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x209f4c);}['getRevision'](_0x4cbe30){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4cbe30);}['getRevisions'](_0x3abb19){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3abb19||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2366ce=this['editor'],_0x490450=_0x366bd7(_0x2366ce,p),_0x12df00=_0x2366ce['plugins']['get']('RevisionTracker'),_0x24841b=_0x2366ce['plugins']['get']('Users')['users'];return _0x490450['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x490450['lazyRoots'],(_0x490450['plugins']['push'](_t,m,R,class extends _0x501960{static get['requires'](){return[m,'Users'];}['init'](){const _0x314d5a=this['editor']['plugins']['get']('Users');for(const _0x41abd0 of _0x24841b)_0x41abd0['isAnonymous']||_0x314d5a['getUser'](_0x41abd0['id'])||_0x314d5a['addUser'](_0x41abd0);const _0x3cf0da=_0x12df00['repository']['getRevisions']();let _0x46dac4=null;const _0x478649=this['editor']['plugins']['get']('RevisionViewer');_0x478649['adapter']=_0x12df00['adapter'],_0x478649['bind']('isEnabled')['to'](_0x12df00),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2366ce,'isReadOnly',_0x1249ee=>!_0x1249ee);for(const _0x1960f3 of _0x3cf0da){const _0x543e70=null===_0x1960f3['creator'];if(_0x543e70&&_0x1960f3['toVersion']===_0x1960f3['fromVersion'])continue;const _0x39d0ea=_0x1960f3['toJSON']();_0x478649['addRevisionData'](_0x39d0ea,(_0x36f5c0,_0x5bf8ca,_0x565a77)=>{if(_0x543e70){if(_0x46dac4)_0x46dac4['_update'](_0x36f5c0,_0x5bf8ca);else{if(!_0x5bf8ca){const _0x1208f0=_0x565a77['toJSON']();_0x1208f0['id']=_0x1d6ae4(),_0x12df00['saveRevision'](_0x1208f0,_0x565a77['toVersion'])['then'](_0x2d8b34=>{_0x46dac4=_0x2d8b34;});}}}else _0x1960f3['_update'](_0x36f5c0,_0x5bf8ca);});}}},d),_0x490450);}['_enhanceShowRevisionViewerCallback'](){const _0x1cd4e4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x154d60=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x436a54=this['editor']['plugins']['get']('Autosave');await _0x436a54['save']();}else await _0x154d60['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x42df8b=this['editor']['plugins']['get']('Dialog');_0x42df8b['isOpen']&&_0x42df8b['hide']();}const _0x55f9d4=this['_getRevisionViewerEditorConfig']();return _0x1cd4e4(_0x55f9d4)['then'](_0x4fb555=>{return(this['_viewerEditor']=_0x4fb555,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4fb555);})['catch'](_0x37bfc8=>(console['error'](_0x37bfc8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xb4c8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xb4c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51fa8c=this['editor']['plugins']['get']('Annotations');_0x51fa8c['refreshVisibility'](),_0x51fa8c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5db45a){const _0x9924f9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4c77e8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x232953=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x232953,_0x5db45a)['then'](_0x586a1a=>(_0x4c77e8['style']['display']='block',_0x9924f9['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x586a1a));}['_closeRevisionViewer'](_0x3078d2){const _0x5aa75a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5aa75a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3078d2['destroy']();}async['_restoreRevision'](_0x4a77fa){const _0x47fcd8=this['editor'],_0x5db9a6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x52748c=_0x47fcd8['plugins']['get']('RevisionTracker'),_0x278d1b=_0x47fcd8['plugins']['get']('RevisionHistoryUtils'),_0x2f317f=_0x5db9a6['repository']['getRevision'](_0x4a77fa);let _0x5625a8,_0x56ccdc,_0xf3f7cc;try{await _0x278d1b['loadRevisionData'](_0x2f317f,this['adapter']),_0x5625a8=_0x278d1b['getRevisionDocumentData'](_0x2f317f),_0x56ccdc=_0x278d1b['getRevisionRootsAttributes'](_0x2f317f);}catch(_0x2bf8bb){return void console['error'](_0x2bf8bb);}_0x47fcd8['model']['change'](_0x5bdb69=>{for(const _0x5d809c of Array['from'](_0x47fcd8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5bdb69['removeMarker'](_0x5d809c);}),_0x5db9a6['isReady']=!0x1,_0x47fcd8['model']['enqueueChange'](_0x4d9ff9=>{_0x4d9ff9['setSelection'](null),_0x4d9ff9['removeSelectionAttribute'](_0x47fcd8['model']['document']['selection']['getAttributeKeys']());const _0x4cec1a=Object['keys'](_0x5625a8);for(const _0x40d123 of _0x47fcd8['model']['document']['roots'])'$graveyard'!=_0x40d123['rootName']&&_0x40d123['isAttached']()&&!_0x4cec1a['includes'](_0x40d123['rootName'])&&_0x4d9ff9['detachRoot'](_0x40d123);for(const _0x1bb9a0 of _0x4cec1a){let _0x5ae32d=_0x47fcd8['model']['document']['getRoot'](_0x1bb9a0);_0x5ae32d&&_0x5ae32d['isAttached']()||(_0x5ae32d=_0x4d9ff9['addRoot'](_0x1bb9a0));const _0x326418=_0x56ccdc[_0x1bb9a0],_0x4f8648=Object['keys'](_0x326418),_0x4f9004=_0x5625a8[_0x1bb9a0];for(const _0x425fb2 of _0x5ae32d['getAttributeKeys']())_0x4f8648['includes'](_0x425fb2)||_0x4d9ff9['removeAttribute'](_0x425fb2,_0x5ae32d);for(const _0xdaf5fa of _0x4f8648)_0x4d9ff9['setAttribute'](_0xdaf5fa,_0x56ccdc[_0x1bb9a0][_0xdaf5fa],_0x5ae32d);_0x4d9ff9['remove'](_0x4d9ff9['createRangeIn'](_0x5ae32d)),_0x4d9ff9['insert'](_0x47fcd8['data']['parse'](_0x4f9004,_0x5ae32d),_0x5ae32d,0x0);}});const _0x5a3cb8=g(_0x47fcd8['locale'],'Restored');if(_0x2f317f['name'])_0xf3f7cc=-0x1==_0x2f317f['name']['indexOf'](_0x5a3cb8)?_0x5a3cb8+':\x20'+_0x2f317f['name']:_0x2f317f['name'];else _0xf3f7cc=_0x5a3cb8+':\x20'+(_0x2f317f['createdAt']['toLocaleDateString'](_0x47fcd8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2f317f['createdAt']['toLocaleTimeString'](_0x47fcd8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x52748c['saveRevision']({'name':_0xf3f7cc}),_0x5db9a6['isReady']=!0x0,_0x47fcd8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|