@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250208.0 → 0.0.0-nightly-20250209.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 +10 -10
- package/src/revisionsrepository.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/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
|
-
_0x617c10(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21348f){super(),this['id']=_0x21348f['id']||_0x8b6b64(),this['creator']=_0x21348f['creator']||null,this['authors']=_0x21348f['authors']||[],this['diffData']=_0x21348f['diffData']||null,this['toVersion']=_0x21348f['toVersion']||0x0,this['fromVersion']=_0x21348f['fromVersion']||0x0,this['set']('name',_0x21348f['name']||''),this['set']('createdAt',_0x21348f['createdAt']||new Date()),this['set']('attributes',_0x21348f['attributes']||{});}['setName'](_0x13fca8){this['_update']({'name':_0x13fca8});}['setAttribute'](_0x5330fc,_0x45397c){const _0x2caa56=_0x46ce2c(this['attributes']);_0x10224e(_0x2caa56,_0x5330fc,_0x45397c),this['_update']({'attributes':_0x2caa56});}['removeAttribute'](_0x3f87ee){const _0x393f4d=_0x46ce2c(this['attributes']);_0x132f99(_0x393f4d,_0x3f87ee),this['_update']({'attributes':_0x393f4d});}['_update'](_0x2286b4,_0x4c7a68=!0x1){let _0x56a31e=!0x1;const _0x5b2170={'id':this['id']},_0x2bd514=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4a7208 of _0x2bd514){const _0x37f606=_0x2286b4[_0x4a7208];void 0x0!==_0x37f606&&_0x37f606!==this[_0x4a7208]&&(this[_0x4a7208]=_0x37f606,_0x5b2170[_0x4a7208]=_0x37f606,_0x56a31e=!0x0);}_0x56a31e&&(_0x5b2170['authors']&&(_0x5b2170['authorsIds']=_0x5b2170['authors']['map'](_0x557857=>_0x557857['id']),delete _0x5b2170['authors']),this['fire']('_update',_0x5b2170,_0x4c7a68));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3cfa2d=>_0x3cfa2d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xfe3bb5{['_revisions'];static get['requires'](){return[_0xb344ce];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1a09aa){super(_0x1a09aa),this['_revisions']=new _0x3ac5ee();}['afterInit'](){!async function(_0x5ecc57){const _0x52821a=_0xbbebc8([0x43,0x30,0x61,0x63,0x5a,0x4e,0x4c,0x46,0x68,0x7a,0x73,0x67,0x6b,0x70,0x55,0x39,0x45,0x32,0x59,0x36,0x64,0x56,0x4d,0x49,0x66,0x48,0x71,0x79,0x31,0x51,0x35,0x6d,0x74,0x4f,0x41,0x47,0x4b,0x57,0x76,0x34,0x65,0x6f,0x37,0x6a,0x62,0x77,0x78,0x42,0x53,0x50,0x69,0x38,0x4a,0x6c,0x6e,0x52,0x75,0x33,0x54,0x58,0x72,0x44]),_0x4db850=0xeb829,_0x37c2bd=0x1f1b58df,_0x1e53e8=0x1f1c0637^_0x37c2bd,_0x3da6ba=window[_0xbbebc8([0x44,0x61,0x74,0x65])][_0xbbebc8([0x6e,0x6f,0x77])](),_0x530cd8=_0x5ecc57[_0xbbebc8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x356ec4=new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f9cac=>{_0x530cd8[_0xbbebc8([0x6f,0x6e,0x63,0x65])](_0xbbebc8([0x72,0x65,0x61,0x64,0x79]),_0x3f9cac);}),_0x2acc52={[_0xbbebc8([0x6b,0x74,0x79])]:_0xbbebc8([0x45,0x43]),[_0xbbebc8([0x75,0x73,0x65])]:_0xbbebc8([0x73,0x69,0x67]),[_0xbbebc8([0x63,0x72,0x76])]:_0xbbebc8([0x50,0x2d,0x32,0x35,0x36]),[_0xbbebc8([0x78])]:_0xbbebc8([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]),[_0xbbebc8([0x79])]:_0xbbebc8([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]),[_0xbbebc8([0x61,0x6c,0x67])]:_0xbbebc8([0x45,0x53,0x32,0x35,0x36])},_0x42a38c=_0x530cd8[_0xbbebc8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbbebc8([0x67,0x65,0x74])](_0xbbebc8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c3592(){let _0x3f9bad,_0x3e5091=null,_0x2a510f=null;try{if(_0x42a38c==_0xbbebc8([0x47,0x50,0x4c]))return _0xbbebc8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f9bad=_0x20a559(),!_0x3f9bad)return _0xbbebc8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f9bad[_0xbbebc8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a510f=_0x49c903(_0x3f9bad[_0xbbebc8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f9bad[_0xbbebc8([0x6a,0x74,0x69])])),await _0x907731()?_0x26ce12()?_0x379e22()?_0xbbebc8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13784f()?(_0x3f9bad[_0xbbebc8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbbebc8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e5091=_0x3a557e(_0xbbebc8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f9bad[_0xbbebc8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbbebc8([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e5091=_0x3a557e(_0xbbebc8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x283c26()):_0xbbebc8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbbebc8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbbebc8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x65436){return _0xbbebc8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x379e22(){const _0x1e0579=[_0xbbebc8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbbebc8([0x74,0x72,0x69,0x61,0x6c])][_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9bad[_0xbbebc8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3da6ba/0x3e8:0xe10*_0x1e53e8;return _0x3f9bad[_0xbbebc8([0x65,0x78,0x70])]<_0x1e0579;}function _0x26ce12(){const _0x267846=_0x3f9bad[_0xbbebc8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x267846)return!0x1;if(_0x267846[_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbbebc8([0x2a])))return!0x0;if(_0x267846[_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbbebc8([0x52,0x48])))return!0x0;if(_0x267846[_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbbebc8([0x52,0x52,0x48]))){if(_0x1a3c34())return!0x0;if(_0x106d6c()||_0x50c948())return!0x0;}return!0x1;}function _0x13784f(){const _0x51b97c=_0x3f9bad[_0xbbebc8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b97c||0x0==_0x51b97c[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x188429}=new URL(window[_0xbbebc8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b97c[_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x188429))return!0x0;const _0x15d4fd=_0x188429[_0xbbebc8([0x73,0x70,0x6c,0x69,0x74])](_0xbbebc8([0x2e]));return _0x51b97c[_0xbbebc8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23bf0b=>_0x23bf0b[_0xbbebc8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbbebc8([0x2a])))[_0xbbebc8([0x6d,0x61,0x70])](_0x34e5a0=>_0x34e5a0[_0xbbebc8([0x73,0x70,0x6c,0x69,0x74])](_0xbbebc8([0x2e])))[_0xbbebc8([0x73,0x6f,0x6d,0x65])](_0x212f03=>_0x15d4fd[_0xbbebc8([0x65,0x76,0x65,0x72,0x79])]((_0x3387f1,_0x2822dd)=>_0x212f03[_0x2822dd]===_0x3387f1||_0x212f03[_0x2822dd]===_0xbbebc8([0x2a])));}function _0x283c26(){return _0x3e5091&&_0x2a510f?new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31ccb4,_0x283e13)=>{_0x3e5091[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x31ccb4,_0x283e13),_0x2a510f[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x4d097b=>{_0x4d097b!=_0xbbebc8([0x56,0x61,0x6c,0x69,0x64])&&_0x31ccb4(_0x4d097b);},_0x283e13);}):_0x3e5091||_0x2a510f||_0xbbebc8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49c903(_0x2a420b,_0x89499d){return new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45ab5b=>{if(_0x58ea21())return _0x45ab5b(_0xbbebc8([0x56,0x61,0x6c,0x69,0x64]));_0x70c817(),_0x530cd8[_0xbbebc8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbbebc8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31a2ab=!0x1;const _0x3031bc=_0x8b6b64();function _0x4f54ad(_0x27d13f){return!!_0x27d13f&&(typeof _0x27d13f===_0xbbebc8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x27d13f===_0xbbebc8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x27d13f[_0xbbebc8([0x74,0x68,0x65,0x6e])]===_0xbbebc8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x27d13f[_0xbbebc8([0x63,0x61,0x74,0x63,0x68])]===_0xbbebc8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4119b8(_0x3cdc50){_0x294052(_0x3cdc50)[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x6dfb63=>{if(!_0x6dfb63||_0x6dfb63[_0xbbebc8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbbebc8([0x6f,0x6b]))return _0xbbebc8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e9744(_0x4f66cf(_0x3031bc+_0x89499d))!=_0x6dfb63[_0xbbebc8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbbebc8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbbebc8([0x56,0x61,0x6c,0x69,0x64]);})[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x39a198=>(_0x3a6ff1(),_0x39a198),()=>{const _0x994c8e=_0x6def4a();return null==_0x994c8e?(_0x3a6ff1(),_0xbbebc8([0x56,0x61,0x6c,0x69,0x64])):_0xbbebc8(_0x3da6ba-_0x994c8e>(0x3b17dcdf^_0x37c2bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x45ab5b)[_0xbbebc8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45ab5b(_0xbbebc8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bc04d=0x1f2db65f^_0x37c2bd;function _0x3a6ff1(){const _0x171fa0=_0xbbebc8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e9744(_0x4f66cf(_0x2a420b)),_0x2ca87d=_0x42a41c(_0x4e9744(window[_0xbbebc8([0x4d,0x61,0x74,0x68])][_0xbbebc8([0x63,0x65,0x69,0x6c])](_0x3da6ba/_0x1bc04d)));window[_0xbbebc8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbbebc8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171fa0,_0x2ca87d);}function _0x6def4a(){const _0x334a13=_0xbbebc8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e9744(_0x4f66cf(_0x2a420b)),_0x2ff902=window[_0xbbebc8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbbebc8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334a13);return _0x2ff902?window[_0xbbebc8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a41c(_0x2ff902),0x10)*_0x1bc04d:null;}function _0x294052(_0x561491){return new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b1787,_0x5c704d)=>{_0x561491[_0xbbebc8([0x74,0x68,0x65,0x6e])](_0x2b1787,_0x5c704d),window[_0xbbebc8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c704d,0x1f1a8c1f^_0x37c2bd);});}}_0x530cd8[_0xbbebc8([0x6f,0x6e])](_0xbbebc8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26b868,_0x38d374)=>{if(_0x38d374[0x0]!=_0x2a420b)return _0x45ab5b(_0xbbebc8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38d374[0x1]={..._0x38d374[0x1],[_0xbbebc8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3031bc};},{[_0xbbebc8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbbebc8([0x68,0x69,0x67,0x68])}),_0x530cd8[_0xbbebc8([0x6f,0x6e])](_0xbbebc8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a8948=>{_0x4f54ad(_0x1a8948[_0xbbebc8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31a2ab=!0x0,_0x4119b8(_0x1a8948[_0xbbebc8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbbebc8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbbebc8([0x6c,0x6f,0x77])}),_0x356ec4[_0xbbebc8([0x74,0x68,0x65,0x6e])](()=>{_0x31a2ab||_0x45ab5b(_0xbbebc8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58ea21(){return _0x530cd8[_0xbbebc8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbbebc8([0x76,0x69,0x65,0x77])][_0xbbebc8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbbebc8([0x61,0x75,0x74,0x6f]);}function _0x70c817(){_0x530cd8[_0xbbebc8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbbebc8([0x76,0x69,0x65,0x77])][_0xbbebc8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbbebc8([0x61,0x75,0x74,0x6f]);}}function _0x3a557e(_0x4ef470){const _0x214f93=[new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3136c6=>setTimeout(_0x3136c6,0x1f126613^_0x37c2bd)),_0x356ec4[_0xbbebc8([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ce3dd=>{const _0x37ac2a=0x1f1b58d8^_0x37c2bd,_0x3ba7e8=_0x5ecc57[_0xbbebc8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2e6dc2(){_0x3ba7e8[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x37ac2a&&_0x2ce3dd();}_0x2e6dc2(),_0x3ba7e8[_0xbbebc8([0x6f,0x6e])](_0xbbebc8([0x61,0x64,0x64]),_0x2e6dc2);})),new window[(_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x77747c=>{function _0x1ef4d2(){for(const _0x496687 in window)if(window[_0xbbebc8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xbbebc8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x496687))&&window[_0x496687]==_0x4db850)return _0x77747c();_0x530cd8[_0xbbebc8([0x73,0x74,0x61,0x74,0x65])]!=_0xbbebc8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xbbebc8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ef4d2,0x1f1b4b57^_0x37c2bd);}_0x52836d(_0xbbebc8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1ef4d2();})];return window[_0xbbebc8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbbebc8([0x72,0x61,0x63,0x65])](_0x214f93)[_0xbbebc8([0x74,0x68,0x65,0x6e])](()=>_0x4ef470);}async function _0x40f74f(){if(await _0x356ec4,_0x52836d(_0xbbebc8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x41895c=_0x5ecc57[_0xbbebc8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x934ffc=_0x5ecc57[_0xbbebc8([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])](_0x41895c[_0xbbebc8([0x69,0x64])]),_0x34fe42=_0x507eec(_0xbbebc8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34fe42[_0xbbebc8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x41895c['id'],_0x934ffc?_0x934ffc['id']:null,!0x0),_0x34fe42[_0xbbebc8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xbbebc8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34fe42[_0xbbebc8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34fe42[_0xbbebc8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1bdfc3,void(_0x34fe42[_0xbbebc8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1bdfc3);}if(_0x52836d(_0xbbebc8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2c677b=_0x507eec(_0xbbebc8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2c677b[_0xbbebc8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xbbebc8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2c677b[_0xbbebc8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2c677b[_0xbbebc8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1bdfc3,_0x2c677b[_0xbbebc8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1bdfc3;}_0x530cd8[_0xbbebc8([0x6d,0x6f,0x64,0x65,0x6c])][_0xbbebc8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bdfc3,_0x530cd8[_0xbbebc8([0x6d,0x6f,0x64,0x65,0x6c])][_0xbbebc8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bdfc3,_0x530cd8[_0xbbebc8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbbebc8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a3c34(){return _0x52836d(_0xbbebc8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x507eec(_0xbbebc8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xbbebc8([0x73,0x74,0x61,0x74,0x65])]==_0xbbebc8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x106d6c(){return _0x52836d(_0xbbebc8([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 _0x50c948(){return _0x52836d(_0xbbebc8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a7763(_0x462030){const _0x5123b6=_0x460996();_0x530cd8[_0x5123b6]=_0xbbebc8([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])+_0x462030,_0x462030[_0xbbebc8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xbbebc8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x460996()]=_0x4db850),_0x462030!=_0xbbebc8([0x56,0x61,0x6c,0x69,0x64])&&_0x40f74f();}function _0x460996(){const _0x4d7713=window[_0xbbebc8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbbebc8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbbebc8([0x6e,0x6f,0x77])]())[_0xbbebc8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbbebc8([0x2e]),'');let _0x55cade=_0xbbebc8([0x43]);for(let _0x242059=0x0;_0x242059<_0x4d7713[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x242059+=0x2){let _0x5ac074=window[_0xbbebc8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7713[_0xbbebc8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x242059,_0x242059+0x2));_0x5ac074>=_0x52821a[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ac074-=_0x52821a[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55cade+=_0x52821a[_0x5ac074];}return _0x55cade;}function _0x20a559(){const _0x3e62e5=_0x42a38c[_0xbbebc8([0x73,0x70,0x6c,0x69,0x74])](_0xbbebc8([0x2e]));if(0x3!=_0x3e62e5[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xace6b9(_0x3e62e5[0x1]);function _0xace6b9(_0xbf267f){const _0x241d40=_0x50d703(_0xbf267f);return _0x241d40&&_0x3ae16c()?_0x241d40:null;function _0x3ae16c(){const _0x2045f6=_0x241d40[_0xbbebc8([0x6a,0x74,0x69])],_0x4a99b6=window[_0xbbebc8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2045f6[_0xbbebc8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2045f6[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5029c6={..._0x241d40,[_0xbbebc8([0x6a,0x74,0x69])]:_0x2045f6[_0xbbebc8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2045f6[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5029c6[_0xbbebc8([0x76,0x63])],_0x4f66cf(_0x5029c6)==_0x4a99b6;}}}async function _0x907731(){let _0x40e913=!0x0;try{const _0x50111d=_0x42a38c[_0xbbebc8([0x73,0x70,0x6c,0x69,0x74])](_0xbbebc8([0x2e])),[_0x2aeabc,_0x1c80b5,_0x556484]=_0x50111d;return _0x56d808(_0x2aeabc),await _0x5033e5(_0x2aeabc,_0x1c80b5,_0x556484),_0x40e913;}catch(_0x2597a9){return!0x1;}function _0x56d808(_0x2d3d03){const _0x5c9675=_0x50d703(_0x2d3d03);_0x5c9675&&_0x5c9675[_0xbbebc8([0x61,0x6c,0x67])]==_0xbbebc8([0x45,0x53,0x32,0x35,0x36])||(_0x40e913=!0x1);}async function _0x5033e5(_0x1a1bc7,_0x5b6bff,_0x558d22){const _0x269f23=window[_0xbbebc8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbbebc8([0x66,0x72,0x6f,0x6d])](_0x37c9c3(_0x558d22),_0x3e8d6d=>_0x3e8d6d[_0xbbebc8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2aa339=new window[(_0xbbebc8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbbebc8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a1bc7+_0xbbebc8([0x2e])+_0x5b6bff),_0x2ca5a0=window[_0xbbebc8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbbebc8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ca5a0)return;const _0x2e798f=await _0x2ca5a0[_0xbbebc8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbbebc8([0x6a,0x77,0x6b]),_0x2acc52,{[_0xbbebc8([0x6e,0x61,0x6d,0x65])]:_0xbbebc8([0x45,0x43,0x44,0x53,0x41]),[_0xbbebc8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbbebc8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbbebc8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ca5a0[_0xbbebc8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbbebc8([0x6e,0x61,0x6d,0x65])]:_0xbbebc8([0x45,0x43,0x44,0x53,0x41]),[_0xbbebc8([0x68,0x61,0x73,0x68])]:{[_0xbbebc8([0x6e,0x61,0x6d,0x65])]:_0xbbebc8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e798f,_0x269f23,_0x2aa339)||(_0x40e913=!0x1);}}function _0x50d703(_0x79343c){return _0x79343c[_0xbbebc8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbbebc8([0x65,0x79]))?JSON[_0xbbebc8([0x70,0x61,0x72,0x73,0x65])](_0x37c9c3(_0x79343c)):null;}function _0x37c9c3(_0x5df155){return window[_0xbbebc8([0x61,0x74,0x6f,0x62])](_0x5df155[_0xbbebc8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbbebc8([0x2b]))[_0xbbebc8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbbebc8([0x2f])));}function _0x4f66cf(_0x3961f7){let _0x6f161b=0x1505;function _0x3db9fc(_0x1c9697){for(let _0x1a4e1c=0x0;_0x1a4e1c<_0x1c9697[_0xbbebc8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a4e1c++){const _0x368919=_0x1c9697[_0xbbebc8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a4e1c);_0x6f161b=(_0x6f161b<<0x5)+_0x6f161b+_0x368919,_0x6f161b&=_0x6f161b;}}function _0x1f7ac6(_0x3b1f58){Array[_0xbbebc8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b1f58)?_0x3b1f58[_0xbbebc8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7ac6):_0x3b1f58&&typeof _0x3b1f58==_0xbbebc8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbbebc8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b1f58)[_0xbbebc8([0x73,0x6f,0x72,0x74])]()[_0xbbebc8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40d8a2,_0x11d023])=>{_0x3db9fc(_0x40d8a2),_0x1f7ac6(_0x11d023);}):_0x3db9fc(window[_0xbbebc8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b1f58));}return _0x1f7ac6(_0x3961f7),_0x6f161b>>>0x0;}function _0x4e9744(_0x3b6dc3){return _0x3b6dc3[_0xbbebc8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbbebc8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbbebc8([0x30]));}function _0x42a41c(_0x3d833e){return _0x3d833e[_0xbbebc8([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbbebc8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbbebc8([0x6a,0x6f,0x69,0x6e])]('');}function _0x52836d(_0x5c0557){return _0x530cd8[_0xbbebc8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbbebc8([0x68,0x61,0x73])](_0x5c0557);}function _0x507eec(_0x230c7f){return _0x530cd8[_0xbbebc8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbbebc8([0x67,0x65,0x74])](_0x230c7f);}function _0x1bdfc3(){}function _0xbbebc8(_0x1315cc){return _0x1315cc['map'](_0xebb9d2=>String['fromCharCode'](_0xebb9d2))['join']('');}_0x1a7763(await _0x1c3592());}(this);}['createRevision'](_0x3e84ed){const _0x3f8b93=this['editor']['plugins']['get']('Users');return new a({'id':_0x3e84ed['id'],'name':_0x3e84ed['name'],'creator':_0x3e84ed['creatorId']?_0x3f8b93['getUser'](_0x3e84ed['creatorId']):null,'diffData':_0x3e84ed['diffData']||_0x3e84ed['data'],'authors':_0x3e84ed['authorsIds']['map'](_0x522f01=>_0x3f8b93['getUser'](_0x522f01)),'createdAt':new Date(_0x3e84ed['createdAt']),'attributes':_0x3e84ed['attributes'],'fromVersion':_0x3e84ed['fromVersion'],'toVersion':_0x3e84ed['toVersion']});}['addRevision'](_0x19a3fa,_0x557473=0x0){this['_revisions']['add'](_0x19a3fa,_0x557473);}['getRevision'](_0x6ee273){return this['_revisions']['get'](_0x6ee273);}['getRevisions'](_0x63270b={'toJSON':!0x1}){const _0x2b3a49=Array['from'](this['_revisions']);return _0x2b3a49['reverse'](),_0x63270b['toJSON']?_0x2b3a49['map'](_0x3e8f35=>_0x3e8f35['toJSON']()):_0x2b3a49;}['getIndex'](_0x1ea594){return this['_revisions']['getIndex'](_0x1ea594);}['getEarlierVisibleRevision'](_0x255c4e){const [,_0x5a4c90]=this['getRevisionsIterator'](_0x255c4e,{'direction':'earlier'});return _0x5a4c90;}['getLaterVisibleRevision'](_0x2e8bf2){const [,_0x509d91]=this['getRevisionsIterator'](_0x2e8bf2,{'direction':'later'});return _0x509d91;}['getRevisionsInDiff'](_0x17d60b){const _0x451bd8=[];for(const _0x5a50f5 of this['getRevisionsIterator'](_0x17d60b['newRevisionId']))if(_0x451bd8['push'](_0x5a50f5),_0x5a50f5['id']===_0x17d60b['oldRevisionId'])break;return _0x451bd8;}*['getRevisionsIterator'](_0x52e01f,{direction:_0x199026='earlier',filter:_0x50abb5=()=>!0x0}={}){const _0x5cc9c6='earlier'===_0x199026?0x1:-0x1;let _0x421081=this['_revisions']['get'](_0x52e01f),_0x1b3a19=this['getIndex'](_0x421081);for(yield _0x421081;_0x421081;){if(_0x1b3a19+=_0x5cc9c6,_0x421081=this['getRevision'](_0x1b3a19),!_0x421081)return;_0x50abb5(_0x421081)&&(yield _0x421081);}}}function m(_0x42e52c,_0x53e97a,_0x270e86){const t=_0x42e52c['t'];switch(_0x53e97a){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'},_0x270e86);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x270e86);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x472898,'a':_0x5bffc2,'e':_0x121052,'r':_0x44cfe8,'u':_0x35fe19};class l extends _0xfe3bb5{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb344ce,j,_0x3ac4da];}constructor(_0x4b9c72){super(_0x4b9c72),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x38c419=_0x8b6b64();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x38c419},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x37813d=this['repository']['getRevision'](0x0),_0x414b2a=_0x37813d&&null===_0x37813d['creator']?_0x37813d:null;if(this['_continueCurrentRevision']=!!_0x414b2a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x73f64c=this['_source']['getCurrentRevisionId'](),_0x344b85=this['repository']['getRevision'](_0x73f64c);if(_0x344b85)this['_startingVersion']=_0x344b85['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x46490f=this['_source']['history']['_operations']['find'](_0x3784b5=>!_0x3784b5['_isInit']),_0x329f11=_0x46490f?_0x46490f['baseVersion']:this['_source']['history']['version'];_0x37813d?(_0x37813d['toVersion']<_0x329f11&&_0x37813d['_update']({'toVersion':_0x329f11}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x414b2a['id'],this['_startingVersion']=_0x414b2a['fromVersion']):(this['_startingVersion']=_0x37813d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x329f11,this['_continueCurrentRevision']=!0x1);}}else _0x414b2a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x414b2a['toVersion'],this['editor']['model']['document']['history']['version']),_0x414b2a['fromVersion']===_0x414b2a['toVersion']?(0x0!==_0x414b2a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x414b2a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x414b2a['id'],this['_startingVersion']=_0x414b2a['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',_0x56c60f=>!_0x56c60f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c7496=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a8bdc;for(const _0x2e611c in _0x4c7496){const _0x18f99d=_0x2e611c,_0x53d47d=_0x4c7496[_0x18f99d];if('revisionHistoryLicenseKeyValid'==_0x53d47d||'revisionHistoryLicenseKeyInvalid'==_0x53d47d||'revisionHistoryLicenseKeyExpired'==_0x53d47d||'revisionHistoryLicenseKeyDomainLimit'==_0x53d47d||'revisionHistoryLicenseKeyNotAllowed'==_0x53d47d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x53d47d||'revisionHistoryLicenseKeyTrialLimit'==_0x53d47d||'revisionHistoryLicenseKeyUsageLimit'==_0x53d47d){delete _0x4c7496[_0x18f99d],_0x1a8bdc=_0x53d47d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1a8bdc&&_0x4c7496['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x171c44=this['repository']['getRevision'](0x0),_0x1bdfb2=await this['getRevisionDocumentData'](_0x171c44),_0x3da7ed=await this['getRevisionRootsAttributes'](_0x171c44);this['_replaceEditorDataWithRevisionData'](_0x1bdfb2,_0x3da7ed);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5cb35a){this['_source']=_0x5cb35a;}async['update'](){const _0x25091e=await this['_source']['getLatestVersion']();if(_0x25091e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ad1d4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x25091e});_0x2ad1d4['authors']=_0x2ad1d4['authorsIds']['map'](_0x2fa70d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2fa70d)),this['currentRevision']['_update'](_0x2ad1d4);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x20fbd5={},_0x5c0dfd=null){const _0x297fcc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5c0dfd>this['currentRevision']['toVersion']&&(_0x5c0dfd=null),null===_0x5c0dfd&&(_0x5c0dfd=await this['_source']['getLatestVersion']());const _0x598701=this['_getFromVersion'](_0x5c0dfd),_0x542530=this['buildRevisionData']({'from':_0x598701,'to':_0x5c0dfd});if(this['currentRevision']['toVersion']<_0x5c0dfd){const _0x7249be=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5c0dfd,'to':_0x5c0dfd});_0x7249be['authors']=[],_0x7249be['authorsIds']=[],_0x7249be['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x7249be,!0x0),delete _0x7249be['authors'],_0x297fcc['push'](_0x7249be);}_0x20fbd5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x20fbd5['name']=_0x20fbd5['name']||null,_0x20fbd5['id']=_0x20fbd5['id']||_0x8b6b64(),_0x20fbd5={..._0x20fbd5,..._0x542530};const _0x4af2b8=this['addRevisionData'](_0x20fbd5);_0x297fcc['push'](_0x20fbd5);const _0x2956f2=this['repository']['getIndex'](_0x4af2b8);if(0x0!==_0x2956f2){const _0xd7a7fe=this['repository']['getRevision'](_0x2956f2-0x1);if(_0xd7a7fe['fromVersion']!==_0x5c0dfd){const _0x57e765=this['_revisionDataBuilder']['getData'](_0x5c0dfd,_0xd7a7fe['toVersion']),_0x48fcb1={'id':_0xd7a7fe['id'],'diffData':_0x57e765['diffData'],'authorsIds':_0x57e765['authorsIds'],'authors':_0x57e765['authorsIds']['map'](_0x491a9e=>this['editor']['plugins']['get']('Users')['getUser'](_0x491a9e)),'fromVersion':_0x5c0dfd};_0xd7a7fe===this['currentRevision']&&(_0x48fcb1['createdAt']=new Date(_0x20fbd5['createdAt']['getTime']()+0xa)),_0xd7a7fe['_update'](_0x48fcb1,!0x0),delete _0x48fcb1['authors'],_0x297fcc['push'](_0x48fcb1);}}if(this['adapter']){for(const _0x30b0b4 of _0x297fcc)this['_bufferUpdate'](_0x30b0b4['id'],_0x30b0b4,!0x0);this['sendBufferedUpdates']();}return _0x4af2b8;}['addRevisionData'](_0x284ff7){const _0x4440d7=this['repository']['createRevision'](_0x284ff7);return this['adapter']&&_0x4440d7['on']('_update',(_0x35d6a5,_0x1427ed,_0xe5689b)=>{_0xe5689b||(this['_bufferUpdate'](_0x1427ed['id'],_0x1427ed,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4440d7,this['_findInsertionIndex'](_0x4440d7)),_0x4440d7;}async['getRevisionDocumentData'](_0x5bb611){await this['_loadRevisionData'](_0x5bb611);const _0x1c5982={};for(const _0x3cbf92 in _0x5bb611['diffData']){if(_0x5bb611['diffData'][_0x3cbf92]['attachChange']&&!_0x5bb611['diffData'][_0x3cbf92]['attachChange']['isAttached'])continue;const _0x4735b3=this['_removeRevisionMarkers'](JSON['parse'](_0x5bb611['diffData'][_0x3cbf92]['insertions'])),_0x1ebb01=this['editor']['editing']['view']['document'],_0x202dba=new _0x35fbd9(_0x1ebb01,_0x4735b3['map'](_0x4d7443=>C(_0x4d7443,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c5982[_0x3cbf92]=this['editor']['data']['processor']['toData'](_0x202dba),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c5982;}async['getRevisionRootsAttributes'](_0x1f471e){await this['_loadRevisionData'](_0x1f471e);const _0x1f352f={};for(const _0x381f2f in _0x1f471e['diffData'])_0x1f471e['diffData'][_0x381f2f]['attachChange']&&!_0x1f471e['diffData'][_0x381f2f]['attachChange']['isAttached']||(_0x1f352f[_0x381f2f]=_0x1f471e['diffData'][_0x381f2f]['attributesAfter']||{});return _0x1f352f;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x228367=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x332b71=0x0;_0x332b71<_0x228367['length'];_0x332b71++){const _0x25396b=_0x228367[_0x332b71];let _0x509606=!0x1;for(const _0x4f7948 of Object['keys'](_0x25396b))void 0x0===_0x25396b[_0x4f7948]?delete _0x25396b[_0x4f7948]:'id'!==_0x4f7948&&(_0x509606=!0x0);_0x509606||(_0x228367[_0x332b71]=null);}if(_0x228367=_0x228367['filter'](_0x4f4c02=>null!==_0x4f4c02),!_0x228367['length'])return;for(let _0x2e9bfc=0x0;_0x2e9bfc<_0x228367['length'];_0x2e9bfc++){const _0x17b110=_0x228367[_0x2e9bfc];void 0x0!==_0x17b110['fromVersion']&&void 0x0===_0x17b110['toVersion']&&(_0x17b110['toVersion']=this['repository']['getRevision'](_0x17b110['id'])['toVersion']),void 0x0!==_0x17b110['toVersion']&&void 0x0===_0x17b110['fromVersion']&&(_0x17b110['fromVersion']=this['repository']['getRevision'](_0x17b110['id'])['fromVersion']);}const _0x59735e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x228367,_0x59735e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2706ff=>{if(_0x2706ff){for(const _0x397a06 of _0x2706ff)this['setRevisionData']({'id':_0x397a06['id'],'createdAt':_0x397a06['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x389d43,_0x1b5b4e){let _0x334cc5=this['editor']['config']['get']('initialData'),_0x20617c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x334cc5){_0x334cc5={};for(const _0x2e0cff of this['editor']['model']['document']['getRootNames']())_0x334cc5[_0x2e0cff]='';}if('string'==typeof _0x334cc5&&(_0x334cc5={'main':_0x334cc5}),void 0x0===_0x20617c){_0x20617c={};for(const _0x5da139 of this['editor']['model']['document']['getRootNames']())_0x20617c[_0x5da139]={};}let _0x417779=!0x1;const _0x19a0ea=Object['keys'](_0x334cc5),_0x1caade=Object['keys'](_0x389d43);for(const _0x15a6dc of _0x19a0ea){if(_0x334cc5[_0x15a6dc]!==_0x389d43[_0x15a6dc]&&''!==_0x334cc5[_0x15a6dc]['trim']()){_0x417779=!0x0;break;}if(!_0x487d88(_0x20617c[_0x15a6dc],_0x1b5b4e[_0x15a6dc])&&Object['keys'](_0x20617c[_0x15a6dc])['length']>0x0){_0x417779=!0x0;break;}}_0x417779||(_0x417779=_0x1caade['some'](_0x15888b=>!this['editor']['model']['document']['getRoot'](_0x15888b))),_0x417779&&_0x2fedb0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x334cc5,'editorRootsAttributes':_0x20617c,'revisionData':_0x389d43,'revisionRootsAttributes':_0x1b5b4e}),this['editor']['config']['set']('initialData',_0x389d43),this['editor']['config']['set']('rootsAttributes',_0x1b5b4e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4673b9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4673b9['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x44e9b5){const _0x218007=this['repository']['getRevisions']();_0x218007['reverse']();let _0x4148f7=0x0;for(;_0x4148f7<_0x218007['length'];){const _0x118000=_0x218007[_0x4148f7];if(_0x118000===this['currentRevision']){_0x4148f7++;continue;}if(_0x118000['id']===this['_initialRevisionId'])break;const _0x3609b8=_0x44e9b5['toVersion']-_0x118000['toVersion']||_0x44e9b5['fromVersion']-_0x118000['fromVersion'];if(_0x3609b8>0x0)break;if(_0x3609b8<0x0)_0x4148f7++;else{if(!_0x44e9b5['creator']&&_0x118000['creator'])break;if(_0x118000['creator']||!_0x44e9b5['creator']){if(_0x44e9b5['createdAt']>_0x118000['createdAt'])break;_0x4148f7++;}else _0x4148f7++;}}return _0x4148f7;}['setRevisionData'](_0x3baaf3){const _0x3f1950=this['repository']['getRevision'](_0x3baaf3['id']);if(_0x3baaf3['createdAt']&&(_0x3baaf3['createdAt']=new Date(_0x3baaf3['createdAt'])),_0x3baaf3['authorsIds']){const _0x139e5c=this['editor']['plugins']['get']('Users');_0x3baaf3['authors']=_0x3baaf3['authorsIds']['map'](_0x513be9=>_0x139e5c['getUser'](_0x513be9));}_0x3f1950['_update'](_0x3baaf3,!0x0);}['buildRevisionData']({revision:_0x1268fa=null,from:_0x3ef2c7=null,to:_0x4f4782=null}){_0x3ef2c7=null!==_0x3ef2c7?_0x3ef2c7:_0x1268fa['fromVersion'],_0x4f4782=null!==_0x4f4782?_0x4f4782:_0x1268fa['toVersion'];const _0x15dcb6=this['_revisionDataBuilder']['getData'](_0x3ef2c7,_0x4f4782),_0x55ddd4={'diffData':_0x15dcb6['diffData'],'authorsIds':_0x15dcb6['authorsIds'],'fromVersion':_0x3ef2c7,'toVersion':_0x4f4782};if(!_0x1268fa||_0x4f4782!==_0x1268fa['toVersion']){const _0x49b8c0=_0x4f4782-0x1,_0x2cc679=this['_source']['history']['getOperation'](_0x49b8c0);_0x55ddd4['createdAt']=_0x2cc679&&_0x2cc679['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3ef2c7===this['_loadedStateData']['fromVersion']){for(const _0x41f4a4 of this['_loadedStateData']['authors'])_0x55ddd4['authorsIds']['includes'](_0x41f4a4['id'])||_0x55ddd4['authorsIds']['push'](_0x41f4a4['id']);}return _0x55ddd4;}['_loadRevisionData'](_0x17bfcd){if(!_0x17bfcd||_0x17bfcd['diffData'])return Promise['resolve']();{const _0x1d836f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1d836f,'revisionId':_0x17bfcd['id']})['then'](_0x3c3ada=>{_0x17bfcd['diffData']=_0x3c3ada['diffData'];});}}['_bufferUpdate'](_0x5d917b,_0x4dff19,_0xd36047){if(this['_bufferedUpdates']['has'](_0x5d917b)){const _0x4d401a=this['_bufferedUpdates']['get'](_0x5d917b);_0x4dff19=_0xd36047?{..._0x4d401a,..._0x4dff19}:{..._0x4dff19,..._0x4d401a};}this['_bufferedUpdates']['set'](_0x5d917b,_0x4dff19);}['_getFromVersion'](_0x410d9a){const _0x246064=this['repository']['getRevisions']();_0x246064['reverse'](),_0x246064['shift']();const _0x20a0d8=_0x246064['find'](_0x549ec1=>_0x549ec1['toVersion']<=_0x410d9a)['toVersion'];return _0x20a0d8<this['_startingVersion']?this['_startingVersion']:_0x20a0d8;}['_createInitialRevision'](_0x3df204){const _0x576275=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x576275)this['_initialRevisionId']=_0x576275['id'];else{const _0x4fa42c=!this['editor']['model']['document']['roots']['find'](_0x3f868f=>this['editor']['model']['hasContent'](_0x3f868f)),_0x39f606=this['editor']['plugins']['get']('Users')['me']['id'],_0x447e3f=m(this['editor']['locale'],_0x4fa42c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3df204,'to':_0x3df204,'id':this['_initialRevisionId'],'name':_0x447e3f,'creatorId':_0x39f606});}}['_createCurrentRevision'](_0x4aedbc){const _0x385adf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x385adf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4aedbc,'to':_0x4aedbc,'id':_0x385adf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c8bde,from:_0x582422,to:_0x21390c,creatorId:_0x5272e0,id:_0x478813}){const _0x2d6538=this['buildRevisionData']({'from':_0x582422,'to':_0x21390c});_0x2d6538['name']=_0x4c8bde,_0x2d6538['creatorId']=_0x5272e0,_0x2d6538['id']=_0x478813;const _0x3a55a7=this['addRevisionData'](_0x2d6538);return this['adapter']&&this['_bufferUpdate'](_0x2d6538['id'],_0x2d6538,!0x0),_0x3a55a7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x67450e){return(_0x67450e=_0x67450e['filter'](_0x260789=>!_0x260789['name']||'revision-start'!==_0x260789['name']&&'revision-end'!==_0x260789['name']))['forEach'](_0x32c16b=>{'string'!=typeof _0x32c16b&&(_0x32c16b['children']=this['_removeRevisionMarkers'](_0x32c16b['children']),_0x32c16b['attributes']=_0x32c16b['attributes']['filter'](_0x26f1d2=>!_0x26f1d2[0x0]['startsWith']('data-revision-')));}),_0x67450e;}}function C(_0x21657a,_0x2fa9d2){const _0x3ca21c=_0x2fa9d2['editing']['view']['document'];if('string'==typeof _0x21657a)return new _0x1b9a93(_0x3ca21c,_0x21657a);{const _0x103495=_0x21657a['children']['map'](_0x183824=>C(_0x183824,_0x2fa9d2));return new(P[_0x21657a['type']]||_0x2196f4)(_0x3ca21c,_0x21657a['name'],_0x21657a['attributes'],_0x103495);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x142ea7){this['editor']=_0x142ea7,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'](_0x3ebf81){this['source']=_0x3ebf81;const _0x39ff1a=new Map(),_0x29cea6=new Map(),_0x543274=this['editor']['model']['document']['roots']['map'](_0x5cb076=>_0x5cb076['rootName']);for(const _0x2aea88 of _0x543274){const _0x18d32c=this['editor']['model']['document']['getRoot'](_0x2aea88),_0xbb6dc2=T(_0x18d32c);_0x39ff1a['set'](_0x2aea88,_0xbb6dc2),_0x29cea6['set'](_0x2aea88,Object['fromEntries'](_0x18d32c['getAttributes']()));}const _0x43b850=Array['from'](this['editor']['model']['markers'])['map'](_0x3b6be4=>[_0x3b6be4['name'],_0x3b6be4['getRange']()]),_0x24155e=this['source']['version'];this['_saveMetaData'](_0x24155e,_0x39ff1a,_0x43b850,_0x29cea6),this['_startingRevisionId']=this['_revisionId'];const _0x43ae27=new Map(),_0x50909e=new Map();for(const _0x28fa55 of _0x543274){const _0x2d7e08=F(_0x28fa55);_0x43ae27['set'](_0x28fa55,_0x2d7e08),_0x50909e['set'](_0x28fa55,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43ae27,[],_0x50909e);}['getData'](_0x5cc087,_0x4297c3){if(this['_lastFrom']===_0x5cc087&&this['_lastTo']<=_0x4297c3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4297c3,!0x0);else{if(!this['_savedMetaData']['has'](_0x5cc087)){const _0x52b3e6=this['_getPreviousFrom'](_0x5cc087);this['_calculateMetaData'](_0x52b3e6,_0x5cc087,!0x1);}this['_calculateMetaData'](_0x5cc087,_0x4297c3,!0x0);}return this['_lastFrom']=_0x5cc087,this['_lastTo']=_0x4297c3,this['_getState']();}['loadState'](_0x4bec0b){this['_reset'](),this['_lastFrom']=_0x4bec0b['fromVersion'],this['_lastTo']=_0x4bec0b['toVersion'];for(const _0x31e923 in _0x4bec0b['diffData']){const _0x3fd0ec=_0x4bec0b['diffData'][_0x31e923]['attachChange'],_0x52084c=_0x46ce2c(_0x4bec0b['diffData'][_0x31e923]['attributesBefore'])||{},_0x292072=this['_makeModelFromViewString'](_0x4bec0b['diffData'][_0x31e923]['deletions']);_0x292072['rootName']=_0x31e923,_0x292072['_isAttached']=!_0x3fd0ec||!_0x3fd0ec['isAttached'],_0x292072['isAttached']=()=>_0x292072['_isAttached'],this['_baseRoots']['set'](_0x31e923,_0x292072),this['_baseRootsAttributes']['set'](_0x31e923,_0x52084c),_0x3fd0ec&&this['_touchedRoots']['set'](_0x31e923,_0x3fd0ec);const _0x5d797c=this['_makeIdsRoot'](_0x292072);this['_baseIdsRoots']['set'](_0x31e923,_0x5d797c);for(const [_0x59b58d,_0x226f88]of _0x292072['markers']){if(!_0x59b58d['startsWith']('revision:'))continue;const _0x4e007e=_0x59b58d['split'](':')[0x2];for(const _0x5ab4a6 of _0x226f88['getWalker']({'singleCharacters':!0x0})){const _0x5f3ea0=this['_getVidAttributeName'](_0x5ab4a6),_0x5a76d9='elementEnd'==_0x5ab4a6['type']?_0x5ab4a6['previousPosition']['path']['slice'](0x0,-0x1):_0x5ab4a6['previousPosition']['path'],_0x407a5d=_0x5d797c['getNodeByPath'](_0x5a76d9)['getAttribute'](_0x5f3ea0);this['_touched']['set'](_0x407a5d,{'userId':_0x4e007e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x709e83=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43a538=>!this['_touched']['has'](_0x43a538));let _0xa56dac=0x0;const _0x1c567b=new Map();for(const _0x161221 in _0x4bec0b['diffData']){const _0x3c51ff=_0x4bec0b['diffData'][_0x161221]['attachChange'],_0x12b739=_0x46ce2c(_0x4bec0b['diffData'][_0x161221]['attributesAfter'])||{},_0x381784=this['_makeModelFromViewString'](_0x4bec0b['diffData'][_0x161221]['insertions']);_0x381784['rootName']=_0x161221,_0x381784['_isAttached']=!_0x3c51ff||_0x3c51ff['isAttached'],_0x381784['isAttached']=()=>_0x381784['_isAttached'],this['_diffRoots']['set'](_0x161221,_0x381784),this['_diffRootsAttributes']['set'](_0x161221,_0x12b739);const _0x2b058c=this['_makeIdsRoot'](_0x381784,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x161221,_0x2b058c),_0x1c567b['set'](_0x161221,_0x381784['isAttached']()?_0x12b739:{});for(const [_0x17e9eb,_0x17b5bb]of _0x381784['markers']){if(!_0x17e9eb['startsWith']('revision:'))continue;const _0x1bf264=_0x17e9eb['split'](':')[0x2];for(const _0x4d5981 of _0x17b5bb['getWalker']({'singleCharacters':!0x0})){const _0x57b553=this['_getVidAttributeName'](_0x4d5981),_0x3a5617=this['_revisionId']++,_0x1d806d='elementEnd'==_0x4d5981['type']?_0x4d5981['previousPosition']['path']['slice'](0x0,-0x1):_0x4d5981['previousPosition']['path'];_0x2b058c['getNodeByPath'](_0x1d806d)['_setAttribute'](_0x57b553,_0x3a5617),this['_touched']['set'](_0x3a5617,{'userId':_0x1bf264});}}for(const _0x48b644 of this['editor']['model']['createRangeIn'](_0x381784)['getWalker']({'singleCharacters':!0x0})){const _0x4d4776=this['_getVidAttributeName'](_0x48b644),_0x183e8e='elementEnd'==_0x48b644['type']?_0x48b644['previousPosition']['path']['slice'](0x0,-0x1):_0x48b644['previousPosition']['path'],_0x820632=_0x2b058c['getNodeByPath'](_0x183e8e);_0x820632['getAttribute'](_0x4d4776)>0x0||_0x820632['_setAttribute'](_0x4d4776,_0x709e83[_0xa56dac++]);}for(const [_0x57483d,_0xaaf98d]of _0x381784['markers'])_0x57483d['startsWith']('revision:')||this['_markers']['set'](_0x57483d,_0xaaf98d);}const _0x2cf811=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2cf811),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2cf811,0x1));const _0x295003=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x295003),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x295003,0x1));const _0x542310=Array['from'](this['_diffRoots'])['map'](([_0x3e29e5,_0x295c06])=>[_0x3e29e5,T(_0x295c06)]);this['_saveMetaData'](this['_lastTo'],_0x542310,this['_markers'],_0x1c567b);}['_makeModelFromViewString'](_0x34f137){const _0x4cb41b=JSON['parse'](_0x34f137),_0x3613f6=this['editor']['editing']['view']['document'],_0x3df513=new _0x35fbd9(_0x3613f6,_0x4cb41b['map'](_0xbffa79=>C(_0xbffa79,this['editor'])));return this['editor']['data']['toModel'](_0x3df513);}['_saveMetaData'](_0xc543b5,_0x2c2974,_0x4957f4,_0x29a44e){const _0x3d9140=new Map(_0x2c2974),_0x213bd3=new Map(_0x46ce2c(_0x29a44e)),_0x4df2dc=new Map();for(const [_0x179ded,_0x48a046]of _0x4957f4)_0x4df2dc['set'](_0x179ded,{'start':_0x48a046['start']['clone'](),'end':_0x48a046['end']['clone'](),'rootName':_0x48a046['root']['rootName']});this['_savedMetaData']['set'](_0xc543b5,{'roots':_0x3d9140,'markers':_0x4df2dc,'rootsAttributes':_0x213bd3});}['_removeMetaData'](_0x86cde7){this['_savedMetaData']['delete'](_0x86cde7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x324521,_0x19caa3=null){let _0x3de1ec=null;_0x324521['is']('documentFragment')||(_0x3de1ec=new ft(_0x324521['name'],{'vid_start':null===_0x19caa3?this['_revisionId']++:_0x19caa3++}));const _0xc822fb=[];for(const _0x51fe76 of _0x324521['getChildren']())if(_0x51fe76['is']('element')){_0xc822fb['push'](this['_makeIdsRoot'](_0x51fe76,_0x19caa3));const _0x1709d1=_0xc822fb[_0xc822fb['length']-0x1];null!==_0x19caa3&&(_0x19caa3=_0x1709d1['is']('element','$text')?_0x1709d1['getAttribute']('vid')+0x1:_0x1709d1['getAttribute']('vid_end')+0x1);}else{for(let _0x585aaf=0x0;_0x585aaf<_0x51fe76['offsetSize'];_0x585aaf++)_0xc822fb['push'](new ft('$text',{'vid':null===_0x19caa3?this['_revisionId']++:_0x19caa3++}));}if(_0x324521['is']('documentFragment')){const _0x445225=F(_0x324521['rootName']);return _0x445225['_insertChild'](0x0,_0xc822fb),_0x445225;}return _0x3de1ec['_setAttribute']('vid_end',null===_0x19caa3?this['_revisionId']++:_0x19caa3++),_0x3de1ec['_insertChild'](0x0,_0xc822fb),_0x3de1ec;}['_calculateMetaData'](_0x48594a,_0x35e0e2,_0x13daf4){this['_reset']();const {roots:_0x38c1de,markers:_0x4b49fc,rootsAttributes:_0x5b891a}=this['_savedMetaData']['get'](_0x48594a);this['_baseRoots']=new Map(_0x38c1de),this['_baseRootsAttributes']=new Map(_0x46ce2c(_0x5b891a));for(const [_0x4b6716,_0x26303e]of this['_baseRoots'])if('$graveyard'!==_0x4b6716&&(this['_diffRoots']['set'](_0x4b6716,T(_0x26303e)),this['_diffRootsAttributes']=new Map(_0x46ce2c(_0x5b891a)),_0x13daf4)){const _0x3af002=this['_revisionId'];this['_idsRoots']['set'](_0x4b6716,this['_makeIdsRoot'](_0x26303e)),this['_baseIdsRoots']['set'](_0x4b6716,this['_makeIdsRoot'](_0x26303e,_0x3af002));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x13daf4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x68f13,_0x1bf230]of _0x4b49fc){const _0x125703=this['_baseRoots']['get'](_0x1bf230['rootName']),_0x3e1037=this['_diffRoots']['get'](_0x1bf230['rootName']),_0x1d0270=new vt(this['_fixPosition'](_0x1bf230['start'],_0x125703),this['_fixPosition'](_0x1bf230['end'],_0x125703)),_0x5105d1=this['_fixRange'](_0x1d0270,_0x3e1037);_0x125703['markers']['set'](_0x68f13,_0x1d0270),this['_markers']['set'](_0x68f13,_0x5105d1);}this['_applyOperations'](_0x48594a,_0x35e0e2,_0x13daf4);}['_applyOperations'](_0x4b56bb,_0x2ea560,_0x3f3be8){for(const _0x1f2c7f of this['source']['getOperations'](_0x4b56bb,_0x2ea560))this['_handleOperation'](_0x1f2c7f,_0x3f3be8);for(const _0x1f046e of this['_diffRoots']['values']())_0x1f046e['markers']['clear']();for(const [_0x5ee707,_0x716a53]of this['_markers']){this['_diffRoots']['get'](_0x716a53['root']['rootName'])['markers']['set'](_0x5ee707,_0x716a53['clone']());}const _0x878878=new Map(),_0x299d42=new Map();for(const [_0x47de5a,_0xde83de]of this['_diffRoots'])_0x878878['set'](_0x47de5a,T(_0xde83de)),_0x299d42['set'](_0x47de5a,this['_diffRootsAttributes']['get'](_0x47de5a));this['_saveMetaData'](_0x2ea560,_0x878878,this['_markers'],_0x299d42);}['_getPreviousFrom'](_0x351cb9){const _0x4fb983=Array['from'](this['_savedMetaData']['keys']());_0x4fb983['sort']((_0x38d1b3,_0x458898)=>_0x38d1b3-_0x458898),_0x4fb983['reverse']();for(const _0x27b8dc of _0x4fb983)if(_0x27b8dc<_0x351cb9)return _0x27b8dc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x225862,_0x42a8cc){const _0x4a535f=Array['from'](_0x42a8cc['markers'])['map'](([_0x2eacea,_0x52f990])=>[_0x2eacea,this['_fixRange'](_0x52f990,_0x225862)]);_0x225862['markers']=new Map(_0x4a535f);}['_transformMarkers'](_0x450468){for(const _0x46925c of this['_markers']['values']()){const _0x5df0a7=_0x46925c['getTransformedByOperation'](_0x450468),_0x27d79a=vt['_createFromRanges'](_0x5df0a7);_0x46925c['start']=_0x27d79a['start'],_0x46925c['end']=_0x27d79a['end'];}}['_handleOperation'](_0x4ef65b,_0x126b07){if('addRoot'!=_0x4ef65b['type']&&'detachRoot'!=_0x4ef65b['type']){if('insert'==_0x4ef65b['type']){const _0x1402b3=_0x4ef65b['position']['root']['rootName'];this['_diffRoots']['has'](_0x1402b3)||(this['_diffRoots']['set'](_0x1402b3,F(_0x1402b3,!0x0)),this['_diffRootsAttributes']['set'](_0x1402b3,{}),_0x126b07&&this['_idsRoots']['set'](_0x1402b3,F(_0x1402b3,!0x0)));}else{if('addRootAttribute'==_0x4ef65b['type']||'removeRootAttribute'==_0x4ef65b['type']||'changeRootAttribute'==_0x4ef65b['type'])return void this['_handleRootAttributeOperation'](_0x4ef65b);'marker'==_0x4ef65b['type']&&this['_handleMarkerOperation'](_0x4ef65b);}if('marker'!==_0x4ef65b['type']){const _0x20f9a4=this['_cloneOperation'](_0x4ef65b,this['_diffRoots']);_0x20f9a4['_execute'](),this['_transformMarkers'](_0x20f9a4);}if(_0x126b07)switch(_0x4ef65b['type']){case'insert':this['_handleInsertOperation'](_0x4ef65b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4ef65b);break;case'merge':this['_handleMergeOperation'](_0x4ef65b);break;case'split':this['_handleSplitOperation'](_0x4ef65b);}}else this['_handleRootOperation'](_0x4ef65b,_0x126b07);}['_cloneOperation'](_0x2a28ec,_0xf8c09e){const _0x573ed3=_0x2a28ec['clone']();return _0x573ed3['_authorId']=_0x2a28ec['_authorId'],this['_fixOperation'](_0x573ed3,_0xf8c09e),_0x573ed3;}['_getBaseVids'](_0xc72b9){return _0xc72b9['map'](_0x217ba2=>{const _0x129c0d=this['_getVidAttributeName'](_0x217ba2);return Number(_0x217ba2['item']['getAttribute'](_0x129c0d));});}['_generateTape'](_0x274ef2,_0x5255fc){if(_0x274ef2['is']('element','$text'))_0x5255fc['push']({'item':_0x274ef2,'type':'text'});else{_0x274ef2['is']('element')&&_0x5255fc['push']({'item':_0x274ef2,'type':'elementStart'});for(const _0x3dadd9 of _0x274ef2['getChildren']())this['_generateTape'](_0x3dadd9,_0x5255fc);_0x274ef2['is']('element')&&_0x5255fc['push']({'item':_0x274ef2,'type':'elementEnd'});}return _0x5255fc;}['_getState'](){const _0x1b9eec=new Map(this['_touched']),_0x456f31=new Map(_0x1b9eec),_0x35856b=new Map(),_0xba6790={'insertions':{},'deletions':{}},_0x31137f={'insertions':{},'deletions':{}},_0x23e738=new Map(),_0x19a4e3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x19a4e3['delete']('$graveyard');for(const _0x37b43e of _0x19a4e3){const _0x204b78=this['_diffRoots']['get'](_0x37b43e)||F(_0x37b43e,!0x1),_0x76b05f=this['_baseRoots']['get'](_0x37b43e)||F(_0x37b43e,!0x1);_0x204b78['isAttached']()||_0x76b05f['isAttached']()?(_0xba6790['insertions'][_0x37b43e]=T(_0x204b78),_0xba6790['deletions'][_0x37b43e]=T(_0x76b05f),this['_copyMarkers'](_0xba6790['deletions'][_0x37b43e],_0x76b05f),this['_copyMarkers'](_0xba6790['insertions'][_0x37b43e],_0x204b78),_0x31137f['insertions'][_0x37b43e]=this['_generateTape'](this['_idsRoots']['get'](_0x37b43e),[]),_0x31137f['deletions'][_0x37b43e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x37b43e)||F(_0x37b43e,!0x1),[])):_0x19a4e3['delete'](_0x37b43e);}for(const _0x1b3df8 of _0x19a4e3){const _0x2d6ff0=_0x31137f['insertions'][_0x1b3df8];for(const _0xd7be53 of _0x2d6ff0){const _0x5eb883=this['_getVidAttributeName'](_0xd7be53),_0xa835dc=_0xd7be53['item']['getAttribute'](_0x5eb883);_0x456f31['delete'](_0xa835dc),_0xa835dc>=this['_startingRevisionId']&&_0x35856b['set'](_0xa835dc,_0x1b9eec['get'](_0xa835dc));}}for(const _0x4464bc of _0x19a4e3){const _0x5ce753=_0x31137f['insertions'][_0x4464bc],_0x21036a=this['_getBaseVids'](_0x31137f['deletions'][_0x4464bc]);let _0x35a522=0x0;for(const _0x46a689 of _0x5ce753){const _0x3e246c=this['_getVidAttributeName'](_0x46a689),_0x450221=_0x46a689['item']['getAttribute'](_0x3e246c);if(!_0x35856b['has'](_0x450221)&&!_0x23e738['has'](_0x450221)){if(_0x456f31['has'](_0x450221))_0x35a522++;else{if(_0x450221!=_0x21036a[_0x35a522]){const _0x55051f=_0x1b9eec['get'](_0x450221)||_0x1b9eec['get'](_0x21036a[_0x35a522]);for(;_0x450221!=_0x21036a[_0x35a522];)_0x456f31['has'](_0x21036a[_0x35a522])||(_0x23e738['set'](_0x21036a[_0x35a522],_0x55051f),_0x1b9eec['set'](_0x21036a[_0x35a522],_0x55051f)),_0x35a522++;}_0x35a522++;}}}}for(const _0x4357bc of _0x19a4e3){const _0x5cafee=_0x31137f['insertions'][_0x4357bc];for(const _0x5e35a6 of _0x5cafee){const _0x49a5cc=this['_getVidAttributeName'](_0x5e35a6),_0x3c5458=_0x5e35a6['item']['getAttribute'](_0x49a5cc);if(_0x23e738['has'](_0x3c5458)){const _0x3b7b3d=_0x23e738['get'](_0x3c5458);_0x456f31['has'](_0x3c5458)||_0x456f31['set'](_0x3c5458,{..._0x3b7b3d}),_0x35856b['set'](_0x3c5458,{..._0x3b7b3d});}}}for(const _0x30b4b1 of _0x456f31['keys']())_0x30b4b1>=this['_startingRevisionId']&&_0x456f31['delete'](_0x30b4b1);const _0x2c7a5c=new Map();for(const _0x37a83b of _0x19a4e3){let _0x818f54=_0x31137f['insertions'][_0x37a83b];for(const _0x3ca812 of _0x818f54)if(_0x3ca812['item']['is']('element','tableCell')){const _0x1df663=this['_getVidAttributeName'](_0x3ca812),_0x54df37=_0x3ca812['item']['getAttribute'](_0x1df663);if(_0x35856b['has'](_0x54df37)){const _0x256291=_0x3ca812['item']['parent']['parent']['getAttribute']('vid_start'),_0x4d0e13=_0x2c7a5c['get'](_0x256291)||new Set();_0x4d0e13['add'](_0x35856b['get'](_0x54df37)['userId']),_0x2c7a5c['set'](_0x256291,_0x4d0e13);}}_0x818f54=_0x31137f['deletions'][_0x37a83b];for(const _0x38236f of _0x818f54)if(_0x38236f['item']['is']('element','tableCell')){const _0x255fb6=this['_getVidAttributeName'](_0x38236f),_0x21bd9f=_0x38236f['item']['getAttribute'](_0x255fb6);if(_0x456f31['has'](_0x21bd9f)){const _0x172e78=_0x38236f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4cf5b2=_0x2c7a5c['get'](_0x172e78)||new Set();_0x4cf5b2['add'](_0x456f31['get'](_0x21bd9f)['userId']),_0x2c7a5c['set'](_0x172e78,_0x4cf5b2);}}for(const _0x92fd7c of _0x2c7a5c['keys']())(_0x35856b['has'](_0x92fd7c)||_0x456f31['has'](_0x92fd7c))&&_0x2c7a5c['delete'](_0x92fd7c);}for(const _0x54ef5b of _0x19a4e3){const _0x2cde10=_0x31137f['insertions'][_0x54ef5b];let _0xd4d1e9=null,_0x548c8f=null;for(const _0x2fb8fd of _0x2cde10){const _0x491e63=this['_getVidAttributeName'](_0x2fb8fd),_0x2345f9=_0x2fb8fd['item']['getAttribute'](_0x491e63),_0x127db6=_0x2c7a5c['get'](_0x2345f9);_0x127db6&&'elementStart'==_0x2fb8fd['type']&&(_0xd4d1e9=Array['from'](_0x127db6)[0x0],_0x548c8f=_0x2fb8fd['item']['getAttribute']('vid_end')),_0xd4d1e9&&(_0x456f31['set'](_0x2345f9,{'userId':_0xd4d1e9}),_0x35856b['set'](_0x2345f9,{'userId':_0xd4d1e9})),_0x2345f9==_0x548c8f&&(_0xd4d1e9=null,_0x548c8f=null);}}const _0x5d6ac3={},_0x40bd30=new Set();for(const _0x57d596 of _0x19a4e3){const _0x14e63b=_0xba6790['deletions'][_0x57d596],_0x2de4de=_0xba6790['insertions'][_0x57d596];for(const {userId:_0x3d1f44}of this['_touchedMarkers']['values']())null!==_0x3d1f44&&_0x40bd30['add'](_0x3d1f44);for(const {userId:_0x6d834e}of this['_touchedRoots']['values']())null!==_0x6d834e&&_0x40bd30['add'](_0x6d834e);this['_markChanges'](_0x2de4de,_0x31137f['insertions'][_0x57d596],_0x35856b,'insertion',_0x40bd30),this['_markChanges'](_0x14e63b,_0x31137f['deletions'][_0x57d596],_0x456f31,'deletion',_0x40bd30),_0x5d6ac3[_0x57d596]={'insertions':this['_prepareViewToSave'](_0x2de4de),'deletions':this['_prepareViewToSave'](_0x14e63b),'attachChange':this['_touchedRoots']['get'](_0x57d596)||null,'attributesBefore':_0x46ce2c(this['_baseRootsAttributes']['get'](_0x57d596))||{},'attributesAfter':_0x46ce2c(this['_diffRootsAttributes']['get'](_0x57d596))};}return{'diffData':_0x5d6ac3,'authorsIds':Array['from'](_0x40bd30)};}['_processRootBeforeSave'](_0x47c0d4){for(const [,_0x257335]of _0x47c0d4['markers']){const _0x99028e=_0x257335['start']['getAncestors']()['filter'](_0x2877be=>'tableCell'==_0x2877be['name']);for(const _0x35235f of _0x99028e)0x1==_0x35235f['childCount']&&_0x35235f['getChild'](0x0)['is']('element','paragraph')&&_0x35235f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x57b06c){this['_processRootBeforeSave'](_0x57b06c);const _0x5f57d6=this['editor']['data']['toView'](_0x57b06c,{}),_0x2bf61f=Array['from'](_0x5f57d6['getChildren']())['map'](_0x5c256d=>this['_getViewJson'](_0x5c256d));return JSON['stringify'](_0x2bf61f);}['_getViewJson'](_0x3670da){if(_0x3670da['is']('$text'))return _0x3670da['data'];{const _0x40dcc5=_0x3670da;return{'type':Object['keys'](P)['find'](_0xf8bcba=>_0x3670da instanceof P[_0xf8bcba]),'name':_0x40dcc5['name'],'attributes':Array['from'](_0x40dcc5['getAttributes']()),'children':Array['from'](_0x40dcc5['getChildren']())['map'](_0x38ff3a=>this['_getViewJson'](_0x38ff3a))};}}['_markChanges'](_0x5d3bb4,_0x5bb199,_0x25d396,_0x4dfc27,_0x303136){let _0x875334=null,_0x4fb5a5=null,_0x598006=0x0;const _0x39d12f=this['editor']['model'];for(let _0x4a7f07=0x0;_0x4a7f07<_0x5bb199['length'];_0x4a7f07++){const _0x771acb=this['_getVidAttributeName'](_0x5bb199[_0x4a7f07]),_0x1de09d=_0x5bb199[_0x4a7f07]['item']['getAttribute'](_0x771acb),_0x1df62f=_0x25d396['get'](_0x1de09d),_0x251c3b=_0x4a7f07==_0x5bb199['length']-0x1;(!_0x875334&&_0x1df62f&&(_0x875334=_0x1df62f,_0x4fb5a5=_0x5bb199[_0x4a7f07]),_0x875334&&(!_0x1df62f||_0x1df62f['userId']!=_0x875334['userId']))&&(_0x40541a(_0x1df62f,B(_0x4fb5a5,_0x5d3bb4,_0x39d12f),B(_0x5bb199[_0x4a7f07],_0x5d3bb4,_0x39d12f)),_0x875334=_0x1df62f||null,_0x4fb5a5=_0x1df62f?_0x5bb199[_0x4a7f07]:null),_0x875334&&_0x251c3b&&_0x40541a(_0x1df62f,B(_0x4fb5a5,_0x5d3bb4,_0x39d12f),J(_0x5bb199[_0x4a7f07],_0x5d3bb4,_0x39d12f));}function _0x40541a(_0xbd77db,_0x177646,_0x11491e){const _0x5aa9cd=_0x875334['userId'],_0x12534a='revision:'+_0x4dfc27+':'+_0x5aa9cd+':'+_0x598006++,_0x3b1fa2=_0x39d12f['createRange'](_0x177646,_0x11491e);_0x5d3bb4['markers']['set'](_0x12534a,_0x3b1fa2),null!==_0x5aa9cd&&_0x303136['add'](_0x5aa9cd);}}['_getVidAttributeName'](_0x4307d0){switch(_0x4307d0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x338113,_0x2b82e3){_0x338113['baseVersion']=null;for(const _0x7c92c2 in _0x338113){const _0x3a09e9=_0x338113[_0x7c92c2];if(_0x3a09e9 instanceof gt){const _0x5f0458=_0x2b82e3['get'](_0x3a09e9['root']['rootName']);_0x338113[_0x7c92c2]=this['_fixPosition'](_0x3a09e9,_0x5f0458);}if(_0x3a09e9 instanceof vt){const _0x414ec8=_0x2b82e3['get'](_0x3a09e9['root']['rootName']);_0x338113[_0x7c92c2]=this['_fixRange'](_0x3a09e9,_0x414ec8);}'root'===_0x7c92c2&&(_0x338113['root']=_0x2b82e3['get'](_0x338113['root']['rootName']));}}['_fixRange'](_0x5d47c6,_0x116957){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5d47c6['start'],_0x116957),this['_fixPosition'](_0x5d47c6['end'],_0x116957));}['_fixPosition'](_0x58f995,_0x5013b5){return this['editor']['model']['createPositionFromPath'](_0x5013b5,_0x58f995['path'],_0x58f995['stickiness']);}['_handleInsertOperation'](_0x53608e){const _0x209c51=this['_idsRoots']['get'](_0x53608e['position']['root']['rootName']),_0x313465=this['_fixPosition'](_0x53608e['position'],_0x209c51),_0x417281=null===_0x53608e['_authorId']?null:_0x53608e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54df2f=_0x313465['parent'],_0x19042f=this['_revisionId'],_0x5ab6ad=[];for(const _0x574f1b of _0x53608e['nodes'])if(_0x574f1b['is']('element'))_0x5ab6ad['push'](this['_makeIdsRoot'](_0x574f1b));else{for(let _0x1d308e=0x0;_0x1d308e<_0x574f1b['offsetSize'];_0x1d308e++)_0x5ab6ad['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x24f966=this['_revisionId'];for(let _0x2539f6=_0x19042f;_0x2539f6<_0x24f966;_0x2539f6++)this['_touched']['set'](_0x2539f6,{'userId':_0x417281});_0x54df2f['_insertChild'](_0x313465['offset'],_0x5ab6ad);}['_handleMoveOperation'](_0x2f8b68){(_0x2f8b68=this['_cloneOperation'](_0x2f8b68,this['_idsRoots']))['_execute']();const _0x4106be=null===_0x2f8b68['_authorId']?null:_0x2f8b68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1008ba=_0x2f8b68['getMovedRangeStart'](),_0x123620=_0x1008ba['parent'],_0x56b372=_0x1008ba['offset'];!function _0xe15452(_0x454c5b,_0x37f28e,_0x1fdec5,_0x62f5ce){for(let _0x55fefa=_0x1fdec5;_0x55fefa<_0x62f5ce;_0x55fefa++){const _0xbb3a6b=_0x37f28e['getChild'](_0x55fefa);_0xbb3a6b['is']('element','$text')?_0x454c5b['set'](_0xbb3a6b['getAttribute']('vid'),{'userId':_0x4106be}):(_0x454c5b['set'](_0xbb3a6b['getAttribute']('vid_start'),{'userId':_0x4106be}),_0xe15452(_0x454c5b,_0xbb3a6b,0x0,_0xbb3a6b['childCount']),_0x454c5b['set'](_0xbb3a6b['getAttribute']('vid_end'),{'userId':_0x4106be}));}}(this['_touched'],_0x123620,_0x56b372,_0x56b372+_0x2f8b68['howMany']);}['_handleMergeOperation'](_0x17a881){const _0x1cc56c=null===(_0x17a881=this['_cloneOperation'](_0x17a881,this['_idsRoots']))['_authorId']?null:_0x17a881['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x323d2e=_0x17a881['targetPosition']['parent'],_0x16888c=_0x17a881['sourcePosition']['parent'],_0x569d87=_0x323d2e['getAttribute']('vid_end'),_0x3859b9=_0x16888c['getAttribute']('vid_start');_0x323d2e['_setAttribute']('vid_end',_0x16888c['getAttribute']('vid_end')),_0x16888c['_setAttribute']('vid_end',_0x569d87),this['_touched']['set'](_0x3859b9,{'userId':_0x1cc56c}),this['_touched']['set'](_0x569d87,{'userId':_0x1cc56c}),_0x17a881['_execute']();}['_handleSplitOperation'](_0xb62c7){const _0x409577=null===(_0xb62c7=this['_cloneOperation'](_0xb62c7,this['_idsRoots']))['_authorId']?null:_0xb62c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23cc25=_0xb62c7['graveyardPosition'],_0x180383=_0xb62c7['splitPosition']['parent'];_0xb62c7['_execute']();const _0x34ba2f=_0x180383['getAttribute']('vid_end'),_0x15f8a6=_0xb62c7['insertionPosition']['nodeAfter'];if(_0x23cc25){const _0x5939f2=_0x15f8a6['getAttribute']('vid_end'),_0xa32476=_0x180383['getAttribute']('vid_end');_0x180383['_setAttribute']('vid_end',_0x5939f2),_0x15f8a6['_setAttribute']('vid_end',_0xa32476),this['_touched']['set'](_0x180383['getAttribute']('vid_end'),{'userId':_0x409577}),this['_touched']['set'](_0x15f8a6['getAttribute']('vid_start'),{'userId':_0x409577});}else{const _0xab3706=this['_revisionId']++,_0x817b93=this['_revisionId']++;_0x180383['_setAttribute']('vid_end',_0xab3706),_0x15f8a6['_setAttribute']('vid_start',_0x817b93),_0x15f8a6['_setAttribute']('vid_end',_0x34ba2f),this['_touched']['set'](_0xab3706,{'userId':_0x409577}),this['_touched']['set'](_0x817b93,{'userId':_0x409577});}}['_handleMarkerOperation'](_0x3d12c8){if(!_0x3d12c8['affectsData'])return;const _0x346fa7=(_0x3d12c8=this['_cloneOperation'](_0x3d12c8,this['_diffRoots']))['oldRange']?_0x3d12c8['oldRange']['root']:null,_0x244fd2=_0x3d12c8['newRange']?_0x3d12c8['newRange']['root']:null;_0x346fa7&&this['_markers']['delete'](_0x3d12c8['name']),_0x244fd2&&this['_markers']['set'](_0x3d12c8['name'],_0x3d12c8['newRange']['clone']());const _0x5305ec=null===_0x3d12c8['_authorId']?null:_0x3d12c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f3fd1=_0x3d12c8['name'];if(!this['_touchedMarkers']['has'](_0x3f3fd1))return void this['_touchedMarkers']['set'](_0x3f3fd1,{'range':_0x3d12c8['oldRange'],'userId':_0x5305ec});const _0x22b2b8=this['_touchedMarkers']['get'](_0x3f3fd1),_0x2cb753=_0x22b2b8['range'],_0x43b844=_0x3d12c8['newRange'];null==_0x2cb753&&null==_0x43b844||_0x2cb753&&_0x43b844&&_0x2cb753['isEqual'](_0x43b844)?this['_touchedMarkers']['delete'](_0x3d12c8['name']):_0x22b2b8['userId']=_0x5305ec;}['_handleRootOperation'](_0x5ef60c,_0x6fd2d8){this['_diffRoots']['has'](_0x5ef60c['rootName'])?this['_diffRoots']['get'](_0x5ef60c['rootName'])['_isAttached']=_0x5ef60c['isAdd']:(this['_diffRoots']['set'](_0x5ef60c['rootName'],F(_0x5ef60c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ef60c['rootName'],{}),_0x6fd2d8&&this['_idsRoots']['set'](_0x5ef60c['rootName'],F(_0x5ef60c['rootName'],!0x0)));const _0x4900e2=null===_0x5ef60c['_authorId']?null:_0x5ef60c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x420d7b=this['_touchedRoots']['get'](_0x5ef60c['rootName']);_0x420d7b&&_0x420d7b['userId']===_0x4900e2?this['_touchedRoots']['delete'](_0x5ef60c['rootName']):this['_touchedRoots']['set'](_0x5ef60c['rootName'],{'userId':_0x4900e2,'isAttached':_0x5ef60c['isAdd']});}['_handleRootAttributeOperation'](_0x1280f){const _0x12f9df=this['_diffRootsAttributes']['get'](_0x1280f['root']['rootName']);null===_0x1280f['newValue']?delete _0x12f9df[_0x1280f['key']]:_0x12f9df[_0x1280f['key']]=_0x1280f['newValue'];}}function T(_0x51d2d7){const _0x1faf51=F(_0x51d2d7['rootName'],_0x51d2d7['isAttached']());for(const _0x5cf854 of _0x51d2d7['getChildren']()){const _0x3fba7c=_0x5cf854['_clone'](!0x0);_0x1faf51['_appendChild'](_0x3fba7c);}return _0x1faf51;}function F(_0x58e8fb,_0x50c2d2=!0x0){const _0x15e19e=new mt();return _0x15e19e['rootName']=_0x58e8fb,_0x15e19e['_isAttached']=_0x50c2d2,_0x15e19e['isAttached']=()=>_0x15e19e['_isAttached'],_0x15e19e;}function B(_0x47bf3a,_0x174040,_0x4313de){const _0x33af14='elementEnd'==_0x47bf3a['type']?_0x4313de['createPositionAt'](_0x47bf3a['item'],'end'):_0x4313de['createPositionBefore'](_0x47bf3a['item']);return _0x4313de['createPositionFromPath'](_0x174040,_0x33af14['path'],_0x33af14['stickiness']);}function J(_0x2ae54b,_0x11bc65,_0x5a4262){const _0x73c61e='elementStart'==_0x2ae54b['type']?_0x5a4262['createPositionAt'](_0x2ae54b['item'],0x0):_0x5a4262['createPositionAfter'](_0x2ae54b['item']);return _0x5a4262['createPositionFromPath'](_0x11bc65,_0x73c61e['path'],_0x73c61e['stickiness']);}class hs extends _0xb3e154{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3ab10f,_0x187f93){super(_0x3ab10f),this['focusTracker']=new _0x5daf42(),this['keystrokes']=new _0x52e9c9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x187f93),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'](),_0x1d4585({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e1916=_0xd5be4a=>_0xd5be4a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e1916),this['keystrokes']['set']('arrowleft',_0x3e1916),this['keystrokes']['set']('arrowup',_0x3e1916),this['keystrokes']['set']('arrowdown',_0x3e1916);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1fa98b){this['revisionNameInputView']['fieldView']['element']['value']=_0x1fa98b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x562869){const _0x1a96ed=new nt(this['locale'],_0x4784d1),_0x3d4d2c=_0x1a96ed['fieldView'];_0x3d4d2c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x56f2be=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x562869&&(_0x56f2be+='\x20('+m(this['locale'],'optional')+')'),(_0x1a96ed['label']=_0x56f2be,_0x3d4d2c['on']('input',()=>{this['revisionNameInputValue']=_0x3d4d2c['element']['value']['trim']();}),_0x1a96ed);}}class u extends _0xfe3bb5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x13b7db=this['editor'],_0x3328ad=_0x13b7db['plugins']['get']('RevisionTracker');_0x13b7db['ui']['componentFactory']['add']('revisionHistory',_0x3c4bfc=>{const _0x2daa1d=_0x5bb041(_0x3c4bfc),_0x206d2e=_0x2daa1d['panelView']['children'],_0xfc6a55=new _0x420ef0(_0x3c4bfc),_0x153293=new te(_0x3c4bfc),_0x5139df=new _0x5dee9b(_0x3c4bfc),_0x3befdb=new te(_0x3c4bfc),_0x2d5e25=new _0x5dee9b(_0x3c4bfc);return _0x2daa1d['bind']('isEnabled')['to'](_0x3328ad,'isReady',_0x3328ad,'isEnabled',_0x13b7db,'isReadOnly',(_0x4f66a3,_0x4260eb,_0x56b6fa)=>_0x4f66a3&&_0x4260eb&&!_0x56b6fa),_0x2daa1d['buttonView']['set']({'icon':_0x18c0e5['history'],'label':m(_0x3c4bfc,'Revision\x20history'),'tooltip':!0x0}),_0x5139df['set']({'label':m(_0x3c4bfc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5139df['bind']('isEnabled')['to'](_0x3328ad,'isReady',_0x3328ad,'isEnabled',_0x13b7db,'isReadOnly',(_0x3c8574,_0x5530bc,_0x586e4b)=>_0x3c8574&&_0x5530bc&&!_0x586e4b),_0x5139df['on']('execute',()=>this['_showDialog']()),_0x2d5e25['set']({'label':m(_0x3c4bfc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2d5e25['bind']('isEnabled')['to'](_0x3328ad,'isReady',_0x13b7db,'isReadOnly',(_0x5cbfb8,_0x4e4c72)=>_0x5cbfb8&&!_0x4e4c72),_0x2d5e25['on']('execute',()=>{_0x13b7db['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2daa1d['isOpen']=!0x1,_0x13b7db['editing']['view']['focus']();}),_0x153293['children']['add'](_0x5139df),_0x3befdb['children']['add'](_0x2d5e25),_0xfc6a55['role']='menu',_0xfc6a55['items']['addMany']([_0x153293,_0x3befdb]),_0x206d2e['add'](_0xfc6a55),_0x2daa1d;}),_0x13b7db['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1844d8=this['editor'],_0x36e415=_0x1844d8['locale'],_0xce4c74=new _0x56e9ac(_0x36e415),_0x215f6a=new _0x3de66c(_0x36e415);_0xce4c74['buttonView']['set']({'icon':_0x18c0e5['history'],'label':m(_0x36e415,'Revision\x20history')});const _0x2c9c0a=new _0x12e631(_0x36e415,_0xce4c74),_0x5bf304=new _0x287de1(_0x36e415);_0x5bf304['set']({'label':m(_0x36e415,'Save\x20current\x20revision')}),_0x5bf304['delegate']('execute')['to'](_0xce4c74),_0x5bf304['on']('execute',()=>{this['_showDialog']();}),_0x2c9c0a['children']['add'](_0x5bf304),_0x215f6a['items']['add'](_0x2c9c0a);const _0x234165=new _0x12e631(_0x36e415,_0xce4c74),_0x13da1b=new _0x287de1(_0x36e415);return _0x13da1b['set']({'label':m(_0x36e415,'Open\x20revision\x20history')}),_0x13da1b['delegate']('execute')['to'](_0xce4c74),_0x13da1b['on']('execute',()=>{_0x1844d8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x234165['children']['add'](_0x13da1b),_0x215f6a['items']['add'](_0x234165),_0xce4c74['panelView']['children']['add'](_0x215f6a),_0xce4c74;}['_showDialog'](){const _0x410e82=this['editor'],_0x106482=_0x410e82['locale'],_0x3bbf37=_0x410e82['plugins']['get']('Dialog'),_0x1f6612=_0x410e82['plugins']['get']('RevisionTracker');function _0x7fff69(_0x36c614){_0x410e82['config']['get']('revisionHistory.requireRevisionName')&&''===_0x36c614['revisionName']?_0x36c614['revisionNameInputView']['errorText']=m(_0x106482,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x410e82['plugins']['get'](l)['saveRevision']({'name':_0x36c614['revisionName']}),_0x3bbf37['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x7fff69(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3bbf37['show']({'id':'revisionSave','title':m(_0x106482,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x410e82['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3bbf37['hide']()},{'label':m(_0x410e82['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x6d1f9a){_0x6d1f9a['bind']('isEnabled')['to'](_0x1f6612,'isReady',_0x1f6612,'isEnabled',_0x410e82,'isReadOnly',(_0x35ec21,_0x57d80e,_0x239218)=>_0x35ec21&&_0x57d80e&&!_0x239218);},'onExecute':()=>_0x7fff69(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x249867=this['editor'],_0x237910=_0x249867['locale'];this['_saveRevisionFormView']=new hs(_0x237910,_0x249867['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xb3e154{['changeId'];['_model'];constructor(_0x10b077,_0x2121b3){super(_0x10b077),this['_model']=_0x2121b3,this['changeId']=_0x2121b3['id'];const _0x2ff604=this['bindTemplate'],_0x322931=m(_0x10b077,_0x2121b3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2121b3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2121b3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2ff604['to']('type',_0x3aa3e5=>'ck-revision-change__'+_0x3aa3e5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x322931}]},{'text':'\x20'+_0x2121b3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x617c10(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5a4c6f){super(),this['id']=_0x5a4c6f['id']||_0x8b6b64(),this['author']=_0x5a4c6f['author'],this['type']=_0x5a4c6f['type'],this['data']=_0x5a4c6f['data']||{},this['rootName']=_0x5a4c6f['rootName'],this['set']('createdAt',_0x5a4c6f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3ea403,_0x36029a){this['newRevisionId']=_0x3ea403,this['oldRevisionId']=_0x36029a,this['changes']=new _0x3ac5ee();}['_setChanges'](_0x5114c4){for(const _0xf756fe of _0x5114c4)this['changes']['add'](_0xf756fe);}}const Y={'c':_0x472898,'a':_0x5bffc2,'e':_0x121052,'r':_0x44cfe8,'u':_0x35fe19};class d extends _0xfe3bb5{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb344ce,_0x3c70fa,j];}constructor(_0xc8074d){super(_0xc8074d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x32a148,_0x5b7b0c,_0x205f89)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x37769e=>{for(const _0x45e74f of this['editor']['editing']['view']['document']['roots'])_0x205f89?_0x37769e['removeClass']('ck-editor__editable__overlay',_0x45e74f):_0x37769e['addClass']('ck-editor__editable__overlay',_0x45e74f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x149d01=>null!==_0x149d01),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x43f4cf,_0x544fa1,_0x1a7faf)=>_0x43f4cf&&_0x1a7faf?_0x544fa1['changes']['getIndex'](_0x1a7faf):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x17bfe5,_0x56b3a7)=>_0x17bfe5?_0x56b3a7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3c70fa);}['init'](){const _0x1ea07a=this['editor'],_0xb36094=new yt(_0x1ea07a,{'direction':'backward'}),_0x3fb0c8=new yt(_0x1ea07a,{'direction':'forward'});(_0x1ea07a['commands']['add']('showPreviousChange',_0xb36094),_0x1ea07a['commands']['add']('showNextChange',_0x3fb0c8),_0x1ea07a['commands']['add']('restoreRevision',new _t(_0x1ea07a)),this['on']('change:numberOfChanges',()=>{_0xb36094['refresh'](),_0x3fb0c8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1ea07a['enableReadOnlyMode']('revision-viewer'),_0x1ea07a['plugins']['has']('WidgetToolbarRepository'))&&_0x1ea07a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xda0c74){await this['loadRevisionData'](_0xda0c74);const _0x1643d0={};for(const _0x23d26b in _0xda0c74['diffData']){if(_0xda0c74['diffData'][_0x23d26b]['attachChange']&&!_0xda0c74['diffData'][_0x23d26b]['attachChange']['isAttached'])continue;const _0x5955b3=this['_removeRevisionMarkers'](JSON['parse'](_0xda0c74['diffData'][_0x23d26b]['insertions'])),_0x135418=this['editor']['editing']['view']['document'],_0x2a70de=new _0x35fbd9(_0x135418,_0x5955b3['map'](_0x35993b=>this['_getViewObj'](_0x35993b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1643d0[_0x23d26b]=this['editor']['data']['processor']['toData'](_0x2a70de),this['editor']['data']['processor']['useFillerType']('default');}return _0x1643d0;}async['getRevisionRootsAttributes'](_0x5988f7){await this['loadRevisionData'](_0x5988f7);const _0x4a993d={};for(const _0x17fb24 in _0x5988f7['diffData'])_0x5988f7['diffData'][_0x17fb24]['attachChange']&&!_0x5988f7['diffData'][_0x17fb24]['attachChange']['isAttached']||(_0x4a993d[_0x17fb24]=_0x5988f7['diffData'][_0x17fb24]['attributesAfter']||{});return _0x4a993d;}['_removeRevisionMarkers'](_0x4b523e){return(_0x4b523e=_0x4b523e['filter'](_0x213a16=>!_0x213a16['name']||'revision-start'!==_0x213a16['name']&&'revision-end'!==_0x213a16['name']))['forEach'](_0x4ec1ab=>{'string'!=typeof _0x4ec1ab&&(_0x4ec1ab['children']=this['_removeRevisionMarkers'](_0x4ec1ab['children']),_0x4ec1ab['attributes']=_0x4ec1ab['attributes']['filter'](_0xdd81b8=>!_0xdd81b8[0x0]['startsWith']('data-revision-')));}),_0x4b523e;}async['compare'](_0x37fa6e,_0xe0e952,_0x10192b=!0x1){if(!this['isEnabled'])return;const _0x359d78=this['diff'],_0x3a6515=this['repository'],_0x28a529='string'==typeof _0x37fa6e?_0x3a6515['getRevision'](_0x37fa6e):_0x37fa6e,_0x1c3fa2='string'==typeof _0xe0e952?_0x3a6515['getRevision'](_0xe0e952):_0xe0e952,_0x4ec918=_0x28a529['id'],_0x35ae2f=_0x1c3fa2?_0x1c3fa2['id']:null;if(!_0x10192b&&this['diff']&&this['diff']['newRevisionId']===_0x4ec918&&this['diff']['oldRevisionId']===_0x35ae2f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4ec918,_0x35ae2f);const _0x46919b=this['_getRevisionsRange'](_0x28a529,_0x1c3fa2,!0x0)['map'](_0x1d328c=>this['loadRevisionData'](_0x1d328c));return _0x46919b['push'](new Promise(_0x424c6b=>{setTimeout(_0x424c6b,0x14);})),Promise['all'](_0x46919b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d163a=this['_getDiff'](_0x4ec918,_0x35ae2f);for(const _0x29512b of _0x2d163a['changes'])this['_changeIdToChange']['set'](_0x29512b['id'],_0x29512b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f083f=>{for(const _0x1d1f49 of this['editor']['model']['document']['getRootNames']())_0x5f083f['detachRoot'](_0x1d1f49);for(const _0x401173 of Object['keys'](_0x2d163a['model'])){const _0x50f496=_0x5f083f['addRoot'](_0x401173);for(const _0x47033a of Object['keys'](_0x2d163a['attributes'][_0x401173]))_0x5f083f['setAttribute'](_0x47033a,_0x2d163a['attributes'][_0x401173][_0x47033a],_0x50f496);_0x5f083f['insert'](_0x2d163a['model'][_0x401173],_0x50f496,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2d163a['changes'])),this['isReady']=!0x0;})['catch'](_0x350562=>{console['error'](_0x350562),this['_cleanUp'](),_0x359d78&&(this['diff']=_0x359d78),this['isReady']=!0x0;});}['addRevisionData'](_0x431a8a,_0x2429f6){const _0x4c741e=this['repository']['createRevision'](_0x431a8a);return _0x4c741e['on']('_update',(_0x4e4706,_0x912e54,_0x47895a)=>_0x2429f6(_0x912e54,_0x47895a,_0x4c741e)),this['repository']['addRevision'](_0x4c741e),_0x4c741e;}['loadRevisionData'](_0x50a2ca){if(!_0x50a2ca||_0x50a2ca['diffData'])return Promise['resolve']();{const _0x29b8d4=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x29b8d4,'revisionId':_0x50a2ca['id']})['then'](_0x183369=>{_0x50a2ca['_update']({'diffData':_0x183369['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1e4c17=>{for(const _0x23092f of this['editor']['model']['document']['getRootNames']())_0x1e4c17['detachRoot'](_0x23092f);});}['_sortAndFilterDiffChanges'](_0x2acf7b){const _0x23a70b=[],_0x48c2ae=new Map();for(const _0x41c82b of this['editor']['model']['document']['getRootNames']()){const _0x120c44=this['editor']['editing']['view']['getDomRoot'](_0x41c82b);if(!_0x120c44)continue;const _0x40447f=_0x120c44['getClientRects']()['item'](0x0);_0x40447f&&(_0x23a70b['push'](_0x41c82b),_0x48c2ae['set'](_0x41c82b,_0x40447f));}return _0x23a70b['sort']((_0xac3fc1,_0x32ce9e)=>{const _0x4b5364=_0x48c2ae['get'](_0xac3fc1),_0x59a257=_0x48c2ae['get'](_0x32ce9e);return _0x4b5364['y']-_0x59a257['y']||_0x4b5364['x']-_0x59a257['x'];}),(_0x2acf7b=_0x2acf7b['filter'](_0x24f10a=>_0x23a70b['includes'](_0x24f10a['rootName'])))['sort']((_0x64f47b,_0x25c532)=>_0x23a70b['indexOf'](_0x64f47b['rootName'])-_0x23a70b['indexOf'](_0x25c532['rootName'])),_0x2acf7b;}['_makeTape'](_0x4f09de){const _0x584966=Array['from'](_0x4f09de['markers'])['filter'](([_0x7a3006,_0x4dcd3c])=>_0x7a3006['startsWith']('revision:')&&!_0x4dcd3c['isCollapsed']),_0x5e0673=Array['from'](this['editor']['model']['createRangeIn'](_0x4f09de)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x584966['length'])for(const _0x441368 of _0x5e0673){const [_0x369dd3,_0x2ecd88]=_0x584966[0x0],[,_0xaf3562,_0xe11027]=_0x369dd3['split'](':');if(_0x2ecd88['end']['isEqual'](_0x441368['nextPosition'])&&_0x584966['shift'](),(_0x441368['previousPosition']['isEqual'](_0x2ecd88['start'])||_0x441368['previousPosition']['isAfter'](_0x2ecd88['start']))&&('insertion'==_0xaf3562?_0x441368['isAdded']={'userId':_0xe11027}:'deletion'==_0xaf3562&&(_0x441368['isRemoved']={'userId':_0xe11027})),0x0==_0x584966['length'])break;}return _0x5e0673;}['_refreshStartEndIndex'](_0x4f40e2){const _0x5a980d=new Map();for(let _0x2808c5=0x0;_0x2808c5<_0x4f40e2['length'];_0x2808c5++)'text'===_0x4f40e2[_0x2808c5]['type']?(_0x4f40e2[_0x2808c5]['item']['startIndex']=_0x2808c5,_0x4f40e2[_0x2808c5]['item']['endIndex']=_0x2808c5):('elementStart'===_0x4f40e2[_0x2808c5]['type']?_0x4f40e2[_0x2808c5]['item']['startIndex']=_0x2808c5:'elementEnd'===_0x4f40e2[_0x2808c5]['type']&&(_0x4f40e2[_0x2808c5]['item']['endIndex']=_0x2808c5),_0x5a980d['set'](_0x4f40e2[_0x2808c5]['id'],_0x2808c5));for(const _0x298048 of _0x5a980d['values']())'elementStart'===_0x4f40e2[_0x298048]['type']?_0x4f40e2[_0x298048]['item']['endIndex']=_0x5a980d['get'](_0x4f40e2[_0x298048]['pairId']):'elementEnd'===_0x4f40e2[_0x298048]['type']&&(_0x4f40e2[_0x298048]['item']['startIndex']=_0x5a980d['get'](_0x4f40e2[_0x298048]['pairId']));}['_processTape'](_0x57d175){for(let _0x4e68ab=0x0;_0x4e68ab<_0x57d175['length'];_0x4e68ab++){if('elementStart'===_0x57d175[_0x4e68ab]['type'])_0x57d175[_0x4e68ab]['item']['startIndex']=_0x4e68ab;else{if('elementEnd'===_0x57d175[_0x4e68ab]['type']){_0x57d175[_0x4e68ab]['item']['endIndex']=_0x4e68ab;const _0x25817e=_0x57d175[_0x4e68ab]['item']['startIndex'];_0x57d175[_0x25817e]['pairId']=_0x57d175[_0x4e68ab]['id'],_0x57d175[_0x4e68ab]['pairId']=_0x57d175[_0x25817e]['id'];}else _0x57d175[_0x4e68ab]['item']['startIndex']=_0x4e68ab,_0x57d175[_0x4e68ab]['item']['endIndex']=_0x4e68ab,_0x57d175[_0x4e68ab]['pairId']=null;}_0x57d175[_0x4e68ab]['markersStart']||(_0x57d175[_0x4e68ab]['markersStart']=[],_0x57d175[_0x4e68ab]['markersEnd']=[]);}}['_markInsertions'](_0x35aad3,_0x39d6bb){const _0x31c80d=_0x35aad3['filter'](_0x54f843=>!_0x54f843['isAdded']);for(let _0xd8a0b7=0x0;_0xd8a0b7<_0x39d6bb['length'];_0xd8a0b7++)_0x39d6bb[_0xd8a0b7]['isAdded']&&(_0x31c80d[_0xd8a0b7]['isAdded']=_0x39d6bb[_0xd8a0b7]['isAdded']);}['_makeModelFromViewString'](_0x4f477d){const _0x3be8f4=JSON['parse'](_0x4f477d),_0x30e933=this['editor']['editing']['view']['document'],_0x27cf92=new _0x35fbd9(_0x30e933,_0x3be8f4['map'](_0x35e4bb=>this['_getViewObj'](_0x35e4bb)));return this['editor']['data']['toModel'](_0x27cf92);}['_getViewObj'](_0x3f36b8){const _0x3ded96=this['editor']['editing']['view']['document'];if('string'==typeof _0x3f36b8)return new _0x1b9a93(_0x3ded96,_0x3f36b8);{const _0x5cb292=_0x3f36b8['children']['map'](_0x68da78=>this['_getViewObj'](_0x68da78));return new(Y[_0x3f36b8['type']]||_0x2196f4)(_0x3ded96,_0x3f36b8['name'],_0x3f36b8['attributes'],_0x5cb292);}}['_getDiff'](_0x54f099,_0x56d608=null){const _0x36a741=this['repository']['getRevision'](_0x54f099),_0x1f9aea=_0x56d608?this['repository']['getRevision'](_0x56d608):null,_0x3baa86=this['_getRevisionsRange'](_0x36a741,_0x1f9aea),_0x1a5a89=_0x3baa86[_0x3baa86['length']-0x1],_0x370245=new Map(),_0x2aa6cd={'model':{},'attributes':{},'changes':[]},_0xf60286=new Set(),_0xa88fd7=new Map();for(let _0x293dfd=_0x3baa86['length']-0x1;_0x293dfd>=0x0;_0x293dfd--){const _0x269389=_0x3baa86[_0x293dfd];for(const _0x313770 of Object['keys'](_0x269389['diffData']))if(_0x269389['diffData'][_0x313770]['attachChange']){const _0x8357f2=_0x269389['diffData'][_0x313770]['attachChange'];_0x8357f2['isAttached']?(_0xf60286['add'](_0x313770),_0xa88fd7['has'](_0x313770)&&_0xa88fd7['get'](_0x313770)['userId']==_0x8357f2['userId']?_0xa88fd7['delete'](_0x313770):_0xa88fd7['set'](_0x313770,_0x8357f2)):_0xa88fd7['has'](_0x313770)?(_0xf60286['delete'](_0x313770),_0xa88fd7['delete'](_0x313770)):(_0xf60286['add'](_0x313770),_0xa88fd7['set'](_0x313770,_0x8357f2));}else _0xf60286['add'](_0x313770);}for(const _0x3d9fb9 of _0xf60286){const _0xd83102=_0xa88fd7['has'](_0x3d9fb9)&&!_0xa88fd7['get'](_0x3d9fb9)['isAttached'];let _0x5b4763=_0xd83102?_0x3baa86['length']-0x1:0x0;const _0x31c727=_0xd83102?-0x1:0x1;for(;_0x3baa86[_0x5b4763];){const _0x49d4e0=_0x3baa86[_0x5b4763];if(_0x49d4e0['diffData'][_0x3d9fb9]){const _0x4b8321=_0xd83102?_0x49d4e0['diffData'][_0x3d9fb9]['attributesBefore']:_0x49d4e0['diffData'][_0x3d9fb9]['attributesAfter'];_0x2aa6cd['attributes'][_0x3d9fb9]=_0x4b8321?_0x46ce2c(_0x4b8321):{};break;}_0x5b4763+=_0x31c727;}}for(const _0x49026d of _0x3baa86){_0x49026d['model']={};for(const _0x2f9a9f of _0x49026d['authors'])_0x370245['set'](_0x2f9a9f['id'],_0x2f9a9f);for(const _0x57dce7 of _0xf60286){const _0x5aa61b=_0x49026d['diffData'][_0x57dce7]?_0x49026d['diffData'][_0x57dce7]['insertions']:'[]',_0x26defa=_0x49026d['diffData'][_0x57dce7]?_0x49026d['diffData'][_0x57dce7]['deletions']:'[]';_0x49026d['model'][_0x57dce7]={'insertions':this['_makeModelFromViewString'](_0x5aa61b),'deletions':this['_makeModelFromViewString'](_0x26defa)};}}for(const _0x171270 of _0xf60286){let _0x33bd25=null,_0x56edee=0x0;const _0x502fe1=new Map(Array['from'](_0x36a741['model'][_0x171270]['insertions']['markers'])['filter'](([_0x5bbae8])=>!_0x5bbae8['startsWith']('revision:')));let _0x39ffe5=0x0;for(const _0x4d537c of _0x3baa86){const _0x508f6d=this['_makeTape'](_0x4d537c['model'][_0x171270]['insertions']);_0x4d537c==_0x36a741?(_0x33bd25=_0x508f6d,_0x56edee=_0x33bd25['length'],_0x33bd25['forEach'](_0x725b73=>{_0x725b73['id']=_0x39ffe5++;}),this['_processTape'](_0x33bd25)):this['_markInsertions'](_0x33bd25,_0x508f6d);const _0x1a4edf=_0x33bd25['filter'](_0x34a4c0=>!_0x34a4c0['isAdded'])['map'](_0x542fb5=>_0x542fb5['id']);let _0x4ff130=0x0;const _0x3a9c9d=this['_makeTape'](_0x4d537c['model'][_0x171270]['deletions']);_0x3a9c9d['forEach'](_0xd1c744=>{_0xd1c744['isRemoved']?_0xd1c744['id']=_0x56edee++:_0xd1c744['id']=_0x1a4edf[_0x4ff130++];}),this['_processTape'](_0x3a9c9d),this['_setDistance'](_0x33bd25,'isAdded'),this['_setDistance'](_0x3a9c9d,'isRemoved'),_0x4d537c==_0x36a741&&this['_markMarkers'](_0x33bd25,_0x502fe1),_0x33bd25=this['_joinTapes'](_0x33bd25,_0x3a9c9d),this['_refreshStartEndIndex'](_0x33bd25),this['_setDistance'](_0x33bd25,'isRemoved');}_0x33bd25=_0x33bd25['filter'](_0x1b5b18=>!(_0x1b5b18['isAdded']&&_0x1b5b18['isRemoved']));const _0x17c9e0=new Map(_0x1a5a89['model'][_0x171270]['deletions']['markers']),_0x38b785=new Set(_0x502fe1['keys']());for(const _0x45600e of _0x17c9e0['keys']())_0x38b785['delete'](_0x45600e);this['_markSuggestions'](_0x33bd25,_0x38b785),this['_fixObsoleteTags'](_0x33bd25),_0x33bd25=this['_removeMissingPairs'](_0x33bd25),_0x33bd25=this['_markMismatchedRemovedTags'](_0x33bd25),_0x33bd25=this['_removeUnsupportedChanges'](_0x33bd25);const {root:_0x47198f,changes:_0x31bd37}=this['_makeModelFromTape'](_0x33bd25,_0x370245,_0x171270);_0x2aa6cd['model'][_0x171270]=_0x47198f;const _0x78bdc=_0xa88fd7['get'](_0x171270);if(_0x78bdc){const _0x197438=_0x370245['get'](_0x78bdc['userId']),_0x947160=new r({'author':_0x197438,'type':_0x78bdc['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x171270});_0x31bd37['unshift'](_0x947160),_0x2aa6cd['attributes'][_0x171270]['revisionHistoryAttachChange']=_0x947160['id'];}_0x2aa6cd['changes']=_0x2aa6cd['changes']['concat'](_0x31bd37);}return _0x2aa6cd;}['_markMarkers'](_0x2ef511,_0x120945){for(let _0x1fa7da=0x0;_0x1fa7da<_0x2ef511['length'];_0x1fa7da++)for(const [_0x3135dc,_0x269638]of _0x120945)_0x269638['start']['isEqual'](_0x2ef511[_0x1fa7da]['previousPosition'])&&_0x2ef511[_0x1fa7da]['markersStart']['push'](_0x3135dc),_0x269638['end']['isEqual'](_0x2ef511[_0x1fa7da]['nextPosition'])&&_0x2ef511[_0x1fa7da]['markersEnd']['push'](_0x3135dc);}['_joinTapes'](_0x570e2a,_0x249a5a){let _0x32e970=[],_0x4f6d87=0x0,_0x4f58fa=0x0;for(;_0x4f6d87<_0x570e2a['length']||_0x4f58fa<_0x249a5a['length'];){const _0xb29500=_0x570e2a[_0x4f6d87]||{},_0x48b8c1=_0x249a5a[_0x4f58fa]||{};if(_0xb29500['id']==_0x48b8c1['id'])_0x4f6d87++,_0x4f58fa++,_0x32e970['push'](_0xb29500);else{if(_0x48b8c1['isRemoved']&&_0xb29500['isAdded']){const {commonTape:_0x318fc7,iEnd:_0x24ff45,jEnd:_0x1f7294}=this['_threeWayMerge'](_0x570e2a,_0x4f6d87,_0x249a5a,_0x4f58fa);_0x32e970=_0x32e970['concat'](_0x318fc7),_0x4f6d87=_0x24ff45,_0x4f58fa=_0x1f7294;}else _0x48b8c1['isRemoved']?(_0x4f58fa++,_0x32e970['push'](_0x48b8c1)):(_0x4f6d87++,_0x32e970['push'](_0xb29500));}}return _0x32e970;}['_markSuggestions'](_0x5d9c19,_0x250fcc){const _0x22434f=[];for(let _0x8be528=0x0;_0x8be528<_0x5d9c19['length'];_0x8be528++){for(let _0x4294a4=0x0;_0x4294a4<_0x5d9c19[_0x8be528]['markersStart']['length'];_0x4294a4++){const _0x5067f4=_0x5d9c19[_0x8be528]['markersStart'][_0x4294a4];if(!_0x250fcc['has'](_0x5067f4))continue;const {group:_0xb68f33,type:_0x4175b8,authorId:_0x4d6388}=_0x401e3a(_0x5067f4);'revision-suggestion'!=_0xb68f33||'insertion'!=_0x4175b8&&'deletion'!=_0x4175b8||(_0x22434f['unshift']({'type':_0x4175b8,'name':_0x5067f4,'userId':_0x4d6388}),_0x5d9c19[_0x8be528]['markersStart']['splice'](_0x4294a4,0x1),_0x4294a4--);}_0x3f29ab(_0x5d9c19[_0x8be528]);for(let _0x56b02d=0x0;_0x56b02d<_0x5d9c19[_0x8be528]['markersEnd']['length'];_0x56b02d++){const _0x1e95e2=_0x5d9c19[_0x8be528]['markersEnd'][_0x56b02d];if(!_0x250fcc['has'](_0x1e95e2))continue;const {group:_0x546461,type:_0x5a162e}=_0x401e3a(_0x1e95e2);if('revision-suggestion'!=_0x546461||'insertion'!=_0x5a162e&&'deletion'!=_0x5a162e)continue;_0x5d9c19[_0x8be528]['markersEnd']['splice'](_0x56b02d,0x1),_0x56b02d--;const _0xd2face=_0x22434f['findIndex'](_0xc8fe9b=>_0xc8fe9b['name']==_0x1e95e2);_0xd2face>-0x1&&_0x22434f['splice'](_0xd2face,0x1);}}function _0x401e3a(_0x13feb9){const _0x5145e6=_0x13feb9['split'](':');return{'group':_0x5145e6[0x0],'type':_0x5145e6[0x1],'subType':_0x5145e6['length']>=0x5?_0x5145e6[0x2]:null,'id':_0x5145e6['length']<0x5?_0x5145e6[0x2]:_0x5145e6[0x3],'authorId':_0x5145e6['length']<0x5?_0x5145e6[0x3]:_0x5145e6[0x4],'markerCount':0x6==_0x5145e6['length']?_0x5145e6[0x5]:null};}function _0x3f29ab(_0x14c4d5){for(let _0x845a3e=0x0;_0x845a3e<_0x22434f['length'];_0x845a3e++){if(_0x14c4d5['isAdded']&&'insertion'==_0x22434f[_0x845a3e]['type'])return _0x14c4d5['isAddSuggestion']=_0x22434f[_0x845a3e],void delete _0x14c4d5['isAdded'];if(!_0x14c4d5['isAdded']&&!_0x14c4d5['isRemoved']&&'deletion'==_0x22434f[_0x845a3e]['type'])return void(_0x14c4d5['isRemoveSuggestion']=_0x22434f[_0x845a3e]);}}}['_setDistance'](_0x1d86f5,_0x5ec585){let _0x294422=0x0,_0x2f2194=!0x1;const _0x1cf994=new Map();for(const _0x4da1e0 of _0x1d86f5)_0x4da1e0[_0x5ec585]?_0x2f2194&&(_0x294422++,_0x2f2194=!0x1):(_0x294422++,_0x2f2194=!0x0),_0x1cf994['set'](_0x4da1e0['id'],_0x294422);for(let _0xadef50=0x0;_0xadef50<_0x1d86f5['length'];_0xadef50++){if('isRemoved'==_0x5ec585&&_0x1d86f5[_0xadef50]['isAdded']||'isAdded'==_0x5ec585&&_0x1d86f5[_0xadef50]['isRemoved'])continue;if('text'==_0x1d86f5[_0xadef50]['type']){_0x1d86f5[_0xadef50]['distance']=0x0;continue;}const _0x71ed2d=_0x1cf994['get'](_0x1d86f5[_0xadef50]['pairId']),_0xa84321=_0x1cf994['get'](_0x1d86f5[_0xadef50]['id']);_0x1d86f5[_0xadef50]['distance']=_0x71ed2d-_0xa84321;}}['_getRevisionsRange'](_0x89ec40,_0x617756,_0x5de505=!0x1){const _0x53a424=[];let _0x567918=this['repository']['getIndex'](_0x89ec40),_0x5c4ed7=this['repository']['getIndex'](_0x617756);for(-0x1==_0x5c4ed7&&(_0x5c4ed7=this['repository']['_revisions']['length'],_0x5de505=!0x1);_0x567918<_0x5c4ed7;)_0x53a424['push'](this['repository']['getRevision'](_0x567918)),_0x567918++;return _0x5de505&&_0x53a424['push'](this['repository']['getRevision'](_0x567918)),_0x53a424;}['_threeWayMerge'](_0x45354e,_0x355a41,_0x530c7c,_0x2ddcdc){const _0xa384be=this['editor']['model']['schema'];let _0x4797b2=_0x355a41;for(;_0x45354e[_0x4797b2]&&_0x45354e[_0x4797b2]['isAdded'];)_0x4797b2++;let _0x1fb120=_0x2ddcdc;for(;_0x530c7c[_0x1fb120]&&_0x530c7c[_0x1fb120]['isRemoved'];)_0x1fb120++;_0x36bdb3(_0x45354e,_0x355a41,_0x4797b2),_0x36bdb3(_0x530c7c,_0x2ddcdc,_0x1fb120);const _0x42d235=_0x530c7c['slice'](_0x2ddcdc,_0x1fb120)['concat'](_0x45354e['slice'](_0x355a41,_0x4797b2));return _0x42d235['sort']((_0x18d6d9,_0x8c03b4)=>_0x18d6d9['side']!=_0x8c03b4['side']?_0x18d6d9['side']-_0x8c03b4['side']:_0x18d6d9['level']!=_0x8c03b4['level']?_0x18d6d9['level']-_0x8c03b4['level']:_0x18d6d9['distance']!=_0x8c03b4['distance']?_0x8c03b4['distance']-_0x18d6d9['distance']:!!_0x18d6d9['isAdded']!=!!_0x8c03b4['isAdded']?-0x1==_0x18d6d9['side']||0x0==_0x18d6d9['side']?_0x18d6d9['isAdded']?-0x1:0x1:_0x18d6d9['isAdded']?0x1:-0x1:_0x18d6d9['index']-_0x8c03b4['index']),{'commonTape':_0x42d235,'iEnd':_0x4797b2,'jEnd':_0x1fb120};function _0x36bdb3(_0x27a85d,_0x531556,_0x347eb4){let _0x15077c=-0x1,_0x357540=Number['POSITIVE_INFINITY'],_0x5d67c9=!0x0;for(let _0x331a5a=_0x531556;_0x331a5a<_0x347eb4;_0x331a5a++)if(_0xa384be['isInline'](_0x27a85d[_0x331a5a]['item'])||(_0x5d67c9=!0x1),_0x27a85d[_0x331a5a]['item']['startIndex']<_0x531556&&(_0x15077c=_0x331a5a),_0x27a85d[_0x331a5a]['item']['endIndex']>=_0x347eb4){_0x357540=_0x331a5a;break;}_0x5d67c9&&(_0x15077c=_0x347eb4-0x1);for(let _0x3282d1=_0x531556;_0x3282d1<_0x347eb4;_0x3282d1++)_0x27a85d[_0x3282d1]['side']=_0x3282d1<=_0x15077c?-0x1:_0x3282d1<_0x357540?0x0:0x1,_0x27a85d[_0x3282d1]['index']=_0x3282d1;let _0x510224=0x0;for(let _0x32c713=_0x531556;_0x32c713<=_0x15077c;_0x32c713++)0x0==_0x27a85d[_0x32c713]['distance']?_0x27a85d[_0x32c713]['level']=_0x510224:(_0x510224++,_0x27a85d[_0x32c713]['level']=_0x510224,_0x510224++);for(let _0x134cb9=_0x531556;_0x134cb9<_0x347eb4;_0x134cb9++)0x0==_0x27a85d[_0x134cb9]['side']&&(_0x27a85d[_0x134cb9]['level']=_0x510224);_0x510224=0x0;for(let _0x1ece85=_0x347eb4-0x1;_0x1ece85>=_0x357540;_0x1ece85--)0x0==_0x27a85d[_0x1ece85]['distance']?_0x27a85d[_0x1ece85]['level']=_0x510224:(_0x510224--,_0x27a85d[_0x1ece85]['level']=_0x510224,_0x510224--);}}['_fixObsoleteTags'](_0x3f1cca){const _0x2b1073=new Map(),_0x572b1d=this['editor']['model']['schema'];for(let _0x5aabbb=0x1;_0x5aabbb<_0x3f1cca['length'];_0x5aabbb++){let _0xfb0d0a,_0x8c64d1,_0x159a7c;const _0x193db0=_0x3f1cca[_0x5aabbb],_0x558e9d=_0x3f1cca[_0x5aabbb-0x1];if('text'==_0x193db0['type'])continue;if(_0x193db0['type']!=_0x558e9d['type'])continue;if(!_0x572b1d['isBlock'](_0x558e9d['item'])||_0x572b1d['isLimit'](_0x558e9d['item']))continue;if(!_0x572b1d['isBlock'](_0x193db0['item'])||_0x572b1d['isLimit'](_0x193db0['item']))continue;if((_0x3f1cca[_0x5aabbb]['isAdded']||_0x3f1cca[_0x5aabbb]['isAddSuggestion'])&&_0x3f1cca[_0x5aabbb-0x1]['isRemoved'])_0xfb0d0a=_0x3f1cca[_0x5aabbb],_0x8c64d1=_0x3f1cca[_0x5aabbb-0x1],_0x159a7c=_0x5aabbb-0x1;else{if(!_0x3f1cca[_0x5aabbb]['isRemoved']||!_0x3f1cca[_0x5aabbb-0x1]['isAdded']&&!_0x3f1cca[_0x5aabbb-0x1]['isAddSuggestion'])continue;_0xfb0d0a=_0x3f1cca[_0x5aabbb-0x1],_0x8c64d1=_0x3f1cca[_0x5aabbb],_0x159a7c=_0x5aabbb;}const _0x150fc7=_0xfb0d0a['level']==_0x8c64d1['level'],_0x52d9d0=Math['abs'](_0xfb0d0a['level'])<Math['abs'](_0x8c64d1['level'])&&0x0==_0x8c64d1['distance'];(_0x150fc7||_0x52d9d0)&&(_0x2b1073['set'](_0x8c64d1['id'],_0xfb0d0a['id']),_0x3f1cca['splice'](_0x159a7c,0x1),_0x5aabbb--,_0xfb0d0a['isAdded']=!0x1);}for(let _0x16824d=0x0;_0x16824d<_0x3f1cca['length'];_0x16824d++)_0x2b1073['has'](_0x3f1cca[_0x16824d]['pairId'])&&(_0x3f1cca[_0x16824d]['pairId']=_0x2b1073['get'](_0x3f1cca[_0x16824d]['pairId']));}['_removeMissingPairs'](_0x2be996){const _0x3a37c3=new Set(_0x2be996['map'](_0x3d3066=>_0x3d3066['id']));for(let _0xf871d8=0x0;_0xf871d8<_0x2be996['length'];_0xf871d8++)_0x3a37c3['has'](_0x2be996[_0xf871d8]['pairId'])||0x0==_0x2be996[_0xf871d8]['distance']||(_0x2be996[_0xf871d8]['isIncorrect']=!0x0);return _0x2be996['filter'](_0x497ff1=>!_0x497ff1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x345385){const _0x1e6b34=new Set();for(let _0x686577=0x0;_0x686577<_0x345385['length'];_0x686577++){if(_0x1e6b34['has'](_0x345385[_0x686577]['id'])&&_0x345385[_0x686577]['isRemoved']&&(_0x345385[_0x686577]['isIncorrect']=!0x0),_0x345385[_0x686577]['isIncorrect'])continue;if(0x0==_0x345385[_0x686577]['distance'])continue;if('elementStart'!=_0x345385[_0x686577]['type'])continue;if(null==_0x345385[_0x686577]['pairId'])continue;let _0x360094=_0x686577+0x1,_0x3d4ca7=0x0;for(;_0x345385[_0x360094]['id']!=_0x345385[_0x686577]['pairId'];)'elementStart'==_0x345385[_0x360094]['type']?_0x3d4ca7++:'elementEnd'==_0x345385[_0x360094]['type']&&_0x3d4ca7--,_0x360094++;if(0x0!=_0x3d4ca7){if(_0x345385[_0x686577]['isRemoved'])_0x345385[_0x686577]['isIncorrect']=!0x0;else{for(;_0x360094!=_0x686577;)_0x345385[_0x360094]['isRemoved']&&0x0!=_0x345385[_0x360094]['distance']&&(_0x345385[_0x360094]['isIncorrect']=!0x0,_0x1e6b34['add'](_0x345385[_0x360094]['pairId'])),_0x360094--;}}}return _0x345385['filter'](_0x4a9fb7=>!_0x4a9fb7['isIncorrect']);}['_removeUnsupportedChanges'](_0x549d04){const _0x5028db=this['editor']['model']['schema'];for(let _0x1f81d3=0x0;_0x1f81d3<_0x549d04['length'];_0x1f81d3++){if(!(_0x549d04[_0x1f81d3]['isAdded']||_0x549d04[_0x1f81d3]['isAddSuggestion']||_0x549d04[_0x1f81d3]['isRemoved']||_0x549d04[_0x1f81d3]['isRemoveSuggestion']))continue;if(0x0==_0x549d04[_0x1f81d3]['distance'])continue;const _0x5837d1=_0x549d04[_0x1f81d3]['item'];_0x5028db['isBlock'](_0x5837d1)||_0x5028db['isLimit'](_0x5837d1)||(_0x549d04[_0x1f81d3]['isAdded']&&delete _0x549d04[_0x1f81d3]['isAdded'],_0x549d04[_0x1f81d3]['isAddSuggestion']&&delete _0x549d04[_0x1f81d3]['isAddSuggestion'],_0x549d04[_0x1f81d3]['isRemoveSuggestion']&&delete _0x549d04[_0x1f81d3]['isRemoveSuggestion'],_0x549d04[_0x1f81d3]['isRemoved']&&(_0x549d04[_0x1f81d3]['isIncorrect']=!0x0));}return _0x549d04['filter'](_0xd2bde0=>!_0xd2bde0['isIncorrect']);}['_makeModelFromTape'](_0x2dd4a8,_0x2ff64,_0x23a8a5){const _0x58c160=new mt(),_0x3371a5=[],_0x4d0667=new Map(),_0x510fcd=this['editor']['model'],_0x49a5f7=_0x510fcd['schema'],_0x21da4c=[_0x58c160],_0x5dd025={},_0x42c01c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x30ce3a=null;const _0x3412be=[0x0];for(let _0x3c29e9=0x0;_0x3c29e9<_0x2dd4a8['length'];_0x3c29e9++)if('elementStart'===_0x2dd4a8[_0x3c29e9]['type']){_0x2dd4a8[_0x3c29e9]['previousPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be);const _0x38bf16=new ft(_0x2dd4a8[_0x3c29e9]['item']['name'],_0x2dd4a8[_0x3c29e9]['item']['getAttributes']());_0x21da4c[0x0]['_appendChild'](_0x38bf16),_0x3412be['push'](0x0),_0x21da4c['unshift'](_0x38bf16),_0x2dd4a8[_0x3c29e9]['nextPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be);}else'elementEnd'===_0x2dd4a8[_0x3c29e9]['type']?(_0x21da4c['shift'](),_0x2dd4a8[_0x3c29e9]['previousPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be),_0x3412be['pop'](),_0x3412be[_0x3412be['length']-0x1]++,_0x2dd4a8[_0x3c29e9]['nextPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be)):(_0x2dd4a8[_0x3c29e9]['previousPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be),_0x30ce3a?_0x30ce3a['_data']+=_0x2dd4a8[_0x3c29e9]['item']['data']:_0x30ce3a=new wt(_0x2dd4a8[_0x3c29e9]['item']['data'],_0x2dd4a8[_0x3c29e9]['item']['getAttributes']()),_0x2dd4a8[_0x3c29e9+0x1]&&'text'===_0x2dd4a8[_0x3c29e9+0x1]['type']&&_0x591af2(_0x30ce3a,_0x2dd4a8[_0x3c29e9+0x1]['item'])||(_0x21da4c[0x0]['_appendChild'](_0x30ce3a),_0x30ce3a=null),_0x3412be[_0x3412be['length']-0x1]+=_0x2dd4a8[_0x3c29e9]['item']['offsetSize'],_0x2dd4a8[_0x3c29e9]['nextPosition']=_0x510fcd['createPositionFromPath'](_0x58c160,_0x3412be));for(let _0x5598cf=0x0;_0x5598cf<_0x2dd4a8['length'];_0x5598cf++){const _0x3898c5=_0x2dd4a8[_0x5598cf]['previousPosition'],_0x13e3df=_0x2dd4a8[_0x5598cf]['nextPosition'];for(const _0x29a59e of _0x2dd4a8[_0x5598cf]['markersStart'])_0x4d0667['set'](_0x29a59e,{'start':_0x3898c5,'end':null});_0x30c3fe('isRemoveSuggestion',_0x5598cf,_0x3898c5,_0x13e3df),_0x30c3fe('isAddSuggestion',_0x5598cf,_0x3898c5,_0x13e3df),_0x30c3fe('isRemoved',_0x5598cf,_0x3898c5,_0x13e3df),_0x30c3fe('isAdded',_0x5598cf,_0x3898c5,_0x13e3df);for(const _0x36b117 of _0x2dd4a8[_0x5598cf]['markersEnd']){_0x4d0667['get'](_0x36b117)['end']=_0x13e3df;}}for(const [_0xc3f461,_0x520963]of _0x4d0667){const _0x127e7e=this['editor']['model']['createRange'](_0x520963['start'],_0x520963['end']);_0x58c160['markers']['set'](_0xc3f461,_0x127e7e);}return _0x3371a5['sort']((_0x42243c,_0x2ebec7)=>{const _0x25f38=_0x58c160['markers']['get']('revision:'+_0x42243c['id']),_0x573f45=_0x58c160['markers']['get']('revision:'+_0x2ebec7['id']);return _0x25f38['start']['isBefore'](_0x573f45['start'])?-0x1:_0x25f38['start']['isAfter'](_0x573f45['start'])?0x1:_0x25f38['end']['isBefore'](_0x573f45['end'])?-0x1:_0x25f38['end']['isAfter'](_0x573f45['end'])?0x1:'add'===_0x42243c['type']?-0x1:0x1;}),{'root':_0x58c160,'changes':_0x3371a5};function _0x30c3fe(_0x3625c9,_0x308a6b,_0x4bd47a,_0x1dc79a){const _0x3eee5e=!!_0x2dd4a8[_0x308a6b][_0x3625c9],_0x13fc94=_0x3eee5e?_0x2dd4a8[_0x308a6b][_0x3625c9]['userId']:null,_0x3c110d=_0x308a6b===_0x2dd4a8['length']-0x1,_0x49da07=_0x42c01c[_0x3625c9][0x0],_0xc192fe=_0x49a5f7['isObject'](_0x2dd4a8[_0x308a6b]['item']);!_0x5dd025[_0x3625c9]&&_0x3eee5e?_0x5dd025[_0x3625c9]={'start':_0x4bd47a,'tapeItem':_0x2dd4a8[_0x308a6b],'userId':_0x13fc94,'type':_0x3625c9}:_0x5dd025[_0x3625c9]&&!_0x3eee5e?(_0x5dd025[_0x3625c9]['end']=_0x4bd47a,_0x457fd2(_0x5dd025[_0x3625c9]),_0x5dd025[_0x3625c9]=null):_0x5dd025[_0x3625c9]&&_0x3eee5e&&_0x5dd025[_0x3625c9]['userId']!==_0x13fc94&&(_0x5dd025[_0x3625c9]['end']=_0x4bd47a,_0x49da07&&_0x49da07['userId']===_0x5dd025[_0x3625c9]['userId']||_0x457fd2(_0x5dd025[_0x3625c9]),_0x5dd025[_0x3625c9]={'start':_0x4bd47a,'tapeItem':_0x2dd4a8[_0x308a6b],'userId':_0x13fc94,'type':_0x3625c9}),_0x5dd025[_0x3625c9]&&_0xc192fe&&('elementStart'!==_0x2dd4a8[_0x308a6b]['type']||_0x49da07&&_0x49da07['userId']===_0x13fc94||_0x42c01c[_0x3625c9]['unshift']({'userId':_0x13fc94,'object':_0x2dd4a8[_0x308a6b]['item'],'change':_0x5dd025[_0x3625c9]}),'elementEnd'===_0x2dd4a8[_0x308a6b]['type']&&_0x49da07&&_0x49da07['object']===_0x2dd4a8[_0x308a6b]['item']&&(_0x42c01c[_0x3625c9]['shift'](),_0x5dd025[_0x3625c9]=_0x49da07['change'])),_0x5dd025[_0x3625c9]&&_0x3c110d&&(_0x5dd025[_0x3625c9]['end']=_0x1dc79a,_0x457fd2(_0x5dd025[_0x3625c9]),_0x5dd025[_0x3625c9]=null);}function _0x457fd2({start:_0x3488ee,end:_0xbcaa08,tapeItem:_0x2577db,userId:_0x149cd6,type:_0x3dc591}){const _0x4cd598=_0x2577db['item'],_0x22b5fc=_0x510fcd['schema']['isBlock'](_0x4cd598)&&!_0x510fcd['schema']['isLimit'](_0x4cd598),_0x48808c=_0x3488ee['nodeAfter']==_0xbcaa08['parent']&&_0xbcaa08['isAtStart'];if(_0x22b5fc&&_0x48808c)return;const _0x77800d=_0x510fcd['createRange'](_0x3488ee,_0xbcaa08),_0x530882=_0x2ff64['get'](_0x149cd6),_0x3b1c51=new r({'author':_0x530882,'type':'isAdded'==_0x3dc591||'isAddSuggestion'==_0x3dc591?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3dc591||'isRemoveSuggestion'==_0x3dc591},'createdAt':new Date(),'rootName':_0x23a8a5});_0x3371a5['push'](_0x3b1c51),_0x58c160['markers']['set']('revision:'+_0x3b1c51['id'],_0x77800d);}function _0x591af2(_0xe57269,_0x4c0ef6){const _0x576e63=_0xe57269['getAttributes'](),_0x234939=_0x4c0ef6['getAttributes']();for(const _0x5523f3 of _0x576e63){if(_0x5523f3[0x1]!==_0x4c0ef6['getAttribute'](_0x5523f3[0x0]))return!0x1;_0x234939['next']();}return _0x234939['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x210c5a=>{const _0x41c3e0=_0x210c5a['markerName']['split'](':')[0x1],_0x2be5cb=this['_getChangeFromId'](_0x41c3e0);if(!_0x2be5cb)return null;const _0x35d28f='add'==_0x2be5cb['type']?'insertion':'deletion',_0x1c644c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x35d28f];return _0x2be5cb['data']['isSuggestion']&&_0x1c644c['push']('ck-suggestion-marker-'+_0x35d28f+'-new'),this['activeChange']==_0x2be5cb&&_0x1c644c['push']('ck-suggestion-marker--active'),{'classes':_0x1c644c,'attributes':{'data-change-id':_0x41c3e0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x557576=>{_0x557576['on']('element:pre',(_0x3bdf68,_0x1bcca1,_0x463e30)=>{const _0x1de359=_0x1bcca1['viewItem']['getChild'](0x0);if(!_0x1de359||!_0x1de359['is']('element','code'))return;if(!_0x463e30['consumable']['consume'](_0x1de359,{'attributes':['vid_start','vid_end']}))return;const _0xe9ed9b=_0x1bcca1['modelRange']['start']['nodeAfter'];_0x463e30['writer']['setAttribute']('vid_start',_0x1de359['getAttribute']('vid_start'),_0xe9ed9b),_0x463e30['writer']['setAttribute']('vid_end',_0x1de359['getAttribute']('vid_end'),_0xe9ed9b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x17e5e2=>{_0x17e5e2['on']('element',(_0x5d1e38,_0x4f13f6,_0xb6bc3e)=>{if(!_0xb6bc3e['consumable']['consume'](_0x4f13f6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4f13f6['modelRange']['isCollapsed'])return;const _0x54e585=_0x4f13f6['modelRange']['start']['nodeAfter'];_0x54e585['hasAttribute']('vid_start')||_0x54e585['hasAttribute']('vid')||(_0xb6bc3e['writer']['setAttribute']('vid_start',_0x4f13f6['viewItem']['getAttribute']('vid_start'),_0x54e585),_0xb6bc3e['writer']['setAttribute']('vid_end',_0x4f13f6['viewItem']['getAttribute']('vid_end'),_0x54e585));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1b35d7=>_0x1b35d7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2df04c,[,_0x5555d9])=>{['vid_start','vid_end','vid']['includes'](_0x5555d9)&&(_0x2df04c['return']=!0x0,_0x2df04c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x35053e=>{_0x35053e['on']('attribute:vid',(_0x45ad6e,_0x49b935,_0x6bbea7)=>{if('\x20'!=_0x49b935['item']['data']||_0x49b935['item']['parent']['maxOffset']>0x1)return;if(!_0x6bbea7['consumable']['consume'](_0x49b935['item'],_0x45ad6e['name']))return;const _0x2eb6c0=_0x6bbea7['writer'],_0x554d89=_0x6bbea7['mapper']['toViewRange'](_0x49b935['range']);_0x2eb6c0['wrap'](_0x554d89,_0x2eb6c0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x57fba0){const _0xaee579=_0x57fba0['plugins']['get']('RevisionViewer');return(_0x125edd,_0x1ce6f6,_0x13d08d)=>{const _0xa38a77=_0x1ce6f6['markerName']['split'](':')[0x1],_0x58e6a1=_0xaee579['_getChangeFromId'](_0xa38a77);if(!_0x58e6a1)return null;const _0x5d6972='add'==_0x58e6a1['type']?'split':'merge';if(!_0x13d08d['consumable']['test'](_0x1ce6f6['markerRange'],_0x125edd['name']))return;const _0x844326=_0x1ce6f6['markerRange']['getWalker'](),_0x574767=_0x1ce6f6['markerRange']['start'],_0x202c01=_0x57fba0['model']['schema'];let _0x4e41d3=null,_0x57abd6=null,_0x116fb7=!0x1,_0x2219ca=!0x1;for(const _0x368ef0 of _0x844326){const _0x1f1d2a=_0x368ef0['item'];_0x116fb7=_0x116fb7||_0x202c01['isContent'](_0x1f1d2a);const _0x161b36=_0x13d08d['mapper']['toViewElement'](_0x1f1d2a);if(_0x161b36&&_0x161b36['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x368ef0['type']&&(_0x202c01['isBlock'](_0x1f1d2a)&&!_0x202c01['isLimit'](_0x1f1d2a)&&(_0x1f1d2a['nextSibling']||_0x574767['isAtEnd']?_0x4e41d3&&_0x4e41d3['parent']==_0x1f1d2a||(_0x4e41d3=_0x1f1d2a,_0x4111f2(_0x368ef0['previousPosition']),_0x2219ca=!0x0):_0x57abd6=_0x57abd6||_0x368ef0['previousPosition']));}function _0x4111f2(_0x43f340){const _0x4c5a8b=_0x13d08d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6972}),_0x341dcc=_0x13d08d['mapper']['toViewPosition'](_0x43f340);_0x58e6a1['data']['isSuggestion']&&_0x13d08d['writer']['addClass']('ck-suggestion-marker-'+_0x5d6972+'-new',_0x4c5a8b),_0xaee579['activeChange']==_0x58e6a1&&_0x13d08d['writer']['addClass']('ck-suggestion-marker--active',_0x4c5a8b),_0x13d08d['writer']['insert'](_0x341dcc,_0x4c5a8b),_0x13d08d['mapper']['bindElementToMarker'](_0x4c5a8b,_0x1ce6f6['markerName']);}_0x116fb7||_0x2219ca||!_0x57abd6||_0x4111f2(_0x57abd6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2d2d4c,_0x470fc9,_0x180ac1)=>{const _0x5433df=_0x180ac1['mapper']['markerNameToElements'](_0x470fc9['markerName']);if(_0x5433df){for(const _0x1d696a of _0x5433df)(_0x1d696a['hasClass']('ck-suggestion-marker-split')||_0x1d696a['hasClass']('ck-suggestion-marker-merge'))&&(_0x180ac1['mapper']['unbindElementFromMarkerName'](_0x1d696a,_0x470fc9['markerName']),_0x180ac1['writer']['remove'](_0x1d696a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x56aab5,_0x2e6224,_0x2485a5)=>{const _0x34ca22=_0x2e6224['markerName']['split'](':')[0x1],_0x2ee016=this['_getChangeFromId'](_0x34ca22);if(!_0x2ee016)return null;const _0x57fda6='add'==_0x2ee016['type']?'split':'merge';if(_0x2485a5['consumable']['test'](_0x2e6224['markerRange'],_0x56aab5['name']))for(const _0x57644f of _0x2e6224['markerRange']['getItems']()){if(!_0x57644f['is']('element','softBreak'))continue;const _0x48246e=_0x2485a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57fda6}),_0x4e2979=_0x2485a5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x57644f));_0x2ee016['data']['isSuggestion']&&_0x2485a5['writer']['addClass']('ck-suggestion-marker-'+_0x57fda6+'-new',_0x48246e),this['activeChange']==_0x2ee016&&_0x2485a5['writer']['addClass']('ck-suggestion-marker--active',_0x48246e),_0x2485a5['writer']['insert'](_0x4e2979,_0x48246e),_0x2485a5['mapper']['bindElementToMarker'](_0x48246e,_0x2e6224['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x16ca0c=>{for(const _0xd9c6fb of this['editor']['model']['document']['getRootNames']()){const _0x1582e6=this['editor']['model']['document']['getRoot'](_0xd9c6fb),_0x3eb16f=this['editor']['editing']['view']['document']['getRoot'](_0xd9c6fb);if(_0x3eb16f){const _0x2f42dc=_0x1582e6['getAttribute']('revisionHistoryAttachChange');if(_0x16ca0c['removeAttribute']('data-change-id',_0x3eb16f),_0x16ca0c['removeClass']('ck-revision-history-root-add',_0x3eb16f),_0x16ca0c['removeClass']('ck-revision-history-root-remove',_0x3eb16f),_0x16ca0c['removeClass']('ck-revision-history-root--active',_0x3eb16f),_0x2f42dc){const _0x414c9b=this['_getChangeFromId'](_0x2f42dc);if(!_0x414c9b)return null;_0x16ca0c['setAttribute']('data-change-id',_0x2f42dc,_0x3eb16f),_0x16ca0c['addClass']('ck-revision-history-root-'+_0x414c9b['type'],_0x3eb16f),this['activeChange']==_0x414c9b&&_0x16ca0c['addClass']('ck-revision-history-root--active',_0x3eb16f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1f25e1=>'revision-comment:'+_0x1f25e1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x446927=>'revision-suggestion:'+_0x446927,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x11b78e=>({'name':'suggestion:'+_0x11b78e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xb04e79=>{const _0x106fae=_0xb04e79['markerName']['split'](':')[0x1];return'insertion'!=_0x106fae&&'deletion'!=_0x106fae?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x106fae]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5cdd76,_0x26c17c,_0x5de902)=>{const _0x553e77=_0x5de902['mapper']['markerNameToElements'](_0x26c17c['markerName']);if(_0x553e77){for(const _0x91278 of _0x553e77)_0x91278['is']('uiElement')&&(_0x5de902['mapper']['unbindElementFromMarkerName'](_0x91278,_0x26c17c['markerName']),_0x5de902['writer']['remove'](_0x91278));}},{'priority':'high'});}['_getChangeFromId'](_0x33ec3d){return this['_changeIdToChange']['get'](_0x33ec3d);}['_getViewForChange'](_0xa249fb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xa249fb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5d37c5,_0x15066d,_0x1fffde,_0x1d568a)=>{_0x1d568a&&this['_balloon']['remove'](_0x1d568a),_0x1fffde&&(this['_balloon']['add']({'view':_0x1fffde,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2b8d4d=this['editor']['editing'],_0x320801=this['_getChangeFromId'](_0x1fffde['changeId']);let _0x3e9529;if(_0x320801['data']['isOnRoot']){const _0x3a624c=_0x2b8d4d['view']['getDomRoot'](_0x320801['rootName']);_0x3e9529=Array['from'](_0x3a624c['getClientRects']());}else{const _0x1cec79=this['editor']['model']['markers']['get']('revision:'+_0x1fffde['changeId']);_0x3e9529=Array['from'](_0x2b8d4d['mapper']['markerNameToElements'](_0x1cec79['name']))['map'](_0x6df443=>_0x2b8d4d['view']['domConverter']['mapViewToDom'](_0x6df443))['map'](_0x5dc5a9=>Array['from'](_0x5dc5a9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3e9529[0x0];return _0x3e9529['find'](_0x405d66=>_0x405d66['top']-0x3<=this['_activeViewTarget']['y']&&_0x405d66['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x405d66['left']-0x3<=this['_activeViewTarget']['x']&&_0x405d66['right']+0x3>=this['_activeViewTarget']['x'])||_0x3e9529[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x478e3c,_0x155f82,_0x830974,_0x5f17a6)=>{this['activeView']=_0x830974?this['_getViewForChange'](_0x830974):null,this['editor']['model']['change'](()=>{const _0x31b2af=this['editor']['editing'];_0x5f17a6&&(_0x5f17a6['data']['isOnRoot']?_0x31b2af['view']['change'](_0x316265=>{_0x316265['removeClass']('ck-revision-history-root--active',_0x31b2af['view']['document']['getRoot'](_0x5f17a6['rootName']));}):_0x31b2af['reconvertMarker']('revision:'+_0x5f17a6['id'])),_0x830974&&(_0x830974['data']['isOnRoot']?_0x31b2af['view']['change'](_0x34d607=>{_0x34d607['addClass']('ck-revision-history-root--active',_0x31b2af['view']['document']['getRoot'](_0x830974['rootName']));}):_0x31b2af['reconvertMarker']('revision:'+_0x830974['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x20677d,_0x3b6b74)=>{if(this['activeChange'])return;const _0xa30470=this['_findChangeIdFromDomTarget'](_0x3b6b74['target']),_0x187fa8=this['_changeIdToChange']['get'](_0xa30470);_0x187fa8?(this['_activeViewTarget']={'x':_0x3b6b74['domEvent']['x'],'y':_0x3b6b74['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x187fa8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x20dcaa,_0x1ae1ee)=>{const _0x27a77d=this['_findChangeIdFromDomTarget'](_0x1ae1ee['target']),_0x5ef276=this['_changeIdToChange']['get'](_0x27a77d);_0x5ef276?(this['_activeViewTarget']={'x':_0x1ae1ee['domEvent']['x'],'y':_0x1ae1ee['domEvent']['y']},_0x5ef276===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ef276):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x804a9c){do{const _0xb9ff6f=_0x804a9c['getAttribute']('data-change-id');if(_0xb9ff6f)return _0xb9ff6f;_0x804a9c=_0x804a9c['parent'];}while(_0x804a9c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x33a676=>{for(const _0xbb9058 of this['editor']['model']['markers'])_0x33a676['removeMarker'](_0xbb9058);});}}function Z(_0x1d4fee,_0x591877){return(_0x4e1b52,_0xcea2df,_0x1aef14)=>{if(!_0x1aef14['consumable']['test'](_0xcea2df['markerRange'],_0x4e1b52['name']))return;const _0xd882ea=_0xcea2df['markerRange']['getWalker'](),_0x6cd3fe=_0xcea2df['markerRange']['start'],_0x3cc977=_0x1d4fee['model']['schema'];let _0x273803=null,_0x1959e7=null,_0x10f3d8=!0x1,_0x36cc06=!0x1;for(const _0x2e8f46 of _0xd882ea){const _0x35ceee=_0x2e8f46['item'];_0x10f3d8=_0x10f3d8||_0x3cc977['isContent'](_0x35ceee);const _0x2d5dfd=_0x1aef14['mapper']['toViewElement'](_0x35ceee);if(_0x2d5dfd&&_0x2d5dfd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e8f46['type']&&(_0x3cc977['isBlock'](_0x35ceee)&&!_0x3cc977['isLimit'](_0x35ceee)&&(_0x35ceee['nextSibling']||_0x6cd3fe['isAtEnd']?_0x273803&&_0x273803['parent']==_0x35ceee||(_0x273803=_0x35ceee,_0x1a02c1(_0x2e8f46['previousPosition']),_0x36cc06=!0x0):_0x1959e7=_0x1959e7||_0x2e8f46['previousPosition']));}function _0x1a02c1(_0x1e7b32){const _0x39b909=_0x1aef14['mapper']['toViewPosition'](_0x1e7b32),_0x450d88=_0x1aef14['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x591877});_0x1aef14['writer']['insert'](_0x39b909,_0x450d88),_0x1aef14['mapper']['bindElementToMarker'](_0x450d88,_0xcea2df['markerName']);}_0x10f3d8||_0x36cc06||!_0x1959e7||_0x1a02c1(_0x1959e7);};}class _t extends _0x475aaa{constructor(_0x40bc68){super(_0x40bc68);const _0x46cb81=_0x40bc68['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x46cb81,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x46cb81,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2cf5b6=this['editor'],_0x1e7f50=_0x2cf5b6['plugins']['get'](d),_0x20e2ec=_0x1e7f50['isReady']?_0x1e7f50['diff']['newRevisionId']:null;_0x2cf5b6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x20e2ec);}['refresh'](){const {isReady:_0x12d92b,isEnabled:_0xf0e545,repository:_0x3c8941,diff:_0x5df479}=this['editor']['plugins']['get'](d),_0x4720d7=_0x5df479&&_0x3c8941['getLaterVisibleRevision'](_0x5df479['newRevisionId']);this['isEnabled']=_0x12d92b&&_0xf0e545&&Boolean(_0x4720d7);}}class yt extends _0x475aaa{['_step'];constructor(_0x728d69,{direction:_0x28c0f6}){super(_0x728d69);const _0x41d3da=_0x728d69['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x28c0f6?0x1:-0x1,this['listenTo'](_0x41d3da,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x41d3da,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x41d3da,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x376412=this['editor'],_0x5a5f5b=_0x376412['plugins']['get'](d),{isNavigationMode:_0x4e2bf3,currentChangeNumber:_0x499e57}=_0x5a5f5b;let _0x12b98f;if(_0x5a5f5b['activeChange']=_0x4e2bf3?_0x5a5f5b['diff']['changes']['get'](_0x499e57+this['_step']):_0x5a5f5b['diff']['changes']['first'],_0x5a5f5b['activeChange']['data']['isOnRoot'])_0x12b98f=_0x376412['editing']['view']['getDomRoot'](_0x5a5f5b['activeChange']['rootName']);else{const _0x480f70=_0x376412['model']['markers']['get']('revision:'+_0x5a5f5b['activeChange']['id']);_0x12b98f=_0x5390ac(_0x376412['editing'],_0x480f70);}_0x2fdffe({'target':_0x12b98f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x48f0cb,currentChangeNumber:_0x47e38b,numberOfChanges:_0x18c123,isReady:_0x41030b,isEnabled:_0x147e51}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x147e51&&_0x41030b&&_0x18c123)&&(!_0x48f0cb||(0x1===this['_step']?_0x47e38b<_0x18c123-0x1:_0x47e38b>0x0));}}class _i extends _0xb3e154{constructor(_0x3715f6){super(_0x3715f6);const _0x378379=this['bindTemplate'],_0xa32317=new _0x5dee9b(_0x3715f6),_0x1f2b83=new _0x5dee9b(_0x3715f6);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',(_0x577994,_0x15ef07)=>_0x577994&&_0x15ef07>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x291740,_0x20a249,_0x413667,_0x5c20d5)=>{if(!_0x291740)return m(_0x3715f6,'Loading...');if(!_0x413667)return m(_0x3715f6,'No\x20changes');const _0x28b666=m(_0x3715f6,'NUMBER_OF_CHANGES',_0x413667);return _0x5c20d5?m(_0x3715f6,'X_OF_Y_CHANGES',[_0x20a249+0x1,_0x413667]):_0x28b666;}),_0xa32317['set']({'label':m(_0x3715f6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x1f2b83['set']({'label':m(_0x3715f6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xa32317['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1f2b83['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xa32317['on']('execute',()=>this['fire']('execute','backward')),_0x1f2b83['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',_0x378379['if']('_isStatusLabelVisible','ck-hidden',_0x18f3bc=>!_0x18f3bc)]},'children':[{'text':_0x378379['to']('isNavigationMode',_0x59fd24=>_0x59fd24?m(_0x3715f6,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3715f6,'Total')+':\x20')}]},{'text':_0x378379['to']('_statusText')}]},new _0x2a47b8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xa32317,_0x1f2b83]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xfe3bb5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x52e6d1=this['editor']['editing']['view'];_0x52e6d1['change'](_0x257abb=>{for(const _0x428285 of _0x52e6d1['document']['roots'])_0x257abb['addClass'](ce,_0x428285);});}['hide'](){const _0x5bcba4=this['editor']['editing']['view'];_0x5bcba4['change'](_0x3a848a=>{for(const _0x172ac0 of _0x5bcba4['document']['roots'])_0x3a848a['removeClass'](ce,_0x172ac0);});}}class g extends _0xfe3bb5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x39609c=this['editor'],_0x34ab27=_0x39609c['plugins']['get'](d),_0x3e9562=_0x39609c['plugins']['get'](le);_0x39609c['ui']['componentFactory']['add']('exitToEditing',_0x94254e=>{const _0x422ef9=new _0x5dee9b(_0x94254e);return _0x422ef9['set']({'label':m(_0x94254e,'Back\x20to\x20editing'),'icon':_0x18c0e5['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x422ef9,'execute',()=>{_0x39609c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x422ef9;}),_0x39609c['ui']['componentFactory']['add']('restoreRevision',_0x193ed9=>{const _0x5b95ec=new _0x5dee9b(_0x193ed9);return _0x5b95ec['set']({'label':m(_0x193ed9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b95ec['bind']('isEnabled')['to'](_0x39609c['commands']['get']('restoreRevision')),this['listenTo'](_0x5b95ec,'execute',()=>_0x39609c['execute']('restoreRevision')),_0x5b95ec;}),_0x39609c['ui']['componentFactory']['add']('changesNavigation',_0x8e7dab=>{const _0x1f10c9=new _i(_0x8e7dab),_0x1de233=_0x39609c['commands']['get']('showPreviousChange'),_0x159a34=_0x39609c['commands']['get']('showNextChange');return _0x1f10c9['bind']('isBackwardNavigationEnabled')['to'](_0x1de233,'isEnabled'),_0x1f10c9['bind']('isForwardNavigationEnabled')['to'](_0x159a34,'isEnabled'),_0x1f10c9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x34ab27),this['listenTo'](_0x1f10c9,'execute',(_0x39ede6,_0x57ccac)=>{_0x39609c['execute']('forward'===_0x57ccac?'showNextChange':'showPreviousChange');}),_0x1f10c9;}),_0x3e9562['show'](),_0x34ab27['on']('change:isReady',(_0x5d20f4,_0x1b0a4e,_0x3109bf)=>{_0x3109bf?_0x3e9562['hide']():_0x3e9562['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x545117,_0x4faf29){super(_0x545117,_0x4faf29);const _0x3eef7e=this['bindTemplate'];this['set']({'label':m(_0x545117,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x545117,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3eef7e['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 _0x4ef85d=this['fieldView']['element'];this['_tooltipString']=_0x4ef85d['scrollWidth']>_0x4ef85d['clientWidth']&&_0x4ef85d['value']||'';}}class ti extends _0xb3e154{constructor(_0x231f2d,_0x5af633,_0x4d83db){super(_0x231f2d);const _0xa82cfd=new _0x2019db();_0xa82cfd['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0xb797d2=['ck','ck-revision-history-sidebar__revision-author'];_0x4d83db&&_0xb797d2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4576db=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x231f2d,_0x4d83db?'Revision\x20creator':'Revision\x20author')},'children':[_0xa82cfd,_0x5af633['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xb797d2},'children':_0x4576db});}}function ni(_0x554982,_0x45dfd0){const _0x331ddb=_0x554982['bindTemplate'],_0x3cfd3b=_0x554982['locale'],_0x2b4144=_0x5bb041(_0x3cfd3b);_0x2b4144['panelPosition']='sw';const _0x6a21bc=function(_0x14fca4,_0x4de1da){const _0x1cc8f6=function(_0x35aa3d,_0x5e6d22){const _0x336800=_0x35aa3d['locale'],_0x4a22b0={'Compare\x20against\x20selected':m(_0x336800,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x336800,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x336800,'Restore\x20this\x20revision')};return _0x5e6d22['map'](_0x29d297=>{const _0x279468=_0x4a22b0[_0x29d297['name']];return _0x279468&&_0x279468!==_0x29d297['name']&&(_0x29d297['name']=_0x279468),_0x29d297;});}(_0x14fca4,_0x4de1da),_0x29ff11=new _0x3ac5ee();for(const _0x212b19 of _0x1cc8f6){const _0x4a4311={'type':'button','model':new to({'label':_0x212b19['name'],'class':_0x212b19['class'],'withText':!0x0,'role':'menuitem','_action':_0x212b19['action']})};_0x4a4311['model']['bind']('isEnabled')['to'](_0x14fca4,'isActionsDropdownOpen',_0x4a0318=>'function'!=typeof _0x212b19['isEnabled']||(!_0x4a0318||_0x212b19['isEnabled'](_0x14fca4))),_0x29ff11['add'](_0x4a4311);}return _0x29ff11;}(_0x554982,_0x45dfd0);return _0x554982['bind']('isActionsDropdownOpen')['to'](_0x2b4144,'isOpen'),_0x2b4144['buttonView']['set']({'label':m(_0x3cfd3b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x18c0e5['threeVerticalDots']}),_0x2b4144['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x331ddb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x331ddb['to'](_0x13954d=>_0x13954d['stopPropagation']())}}),_0x2b4144['on']('execute',_0x370859=>{_0x554982['isReady']&&'function'==typeof _0x370859['source']['_action']&&_0x370859['source']['_action'](_0x554982);}),_0x473570(_0x2b4144,_0x6a21bc,{'role':'menu'}),_0x2b4144['listenTo'](_0x554982,'change:isActionsDropdownOpen',(_0x46b4e3,_0x22a731,_0x196778)=>{if(_0x196778)for(const _0x347435 of _0x2b4144['listView']['items']){const _0x20f04f=_0x347435['children']['first'],_0x452d6d=_0x45dfd0['find'](_0x4d139e=>_0x4d139e['action']===_0x20f04f['_action'])['isVisible'];_0x347435['isVisible']=void 0x0===_0x452d6d||_0x452d6d(_0x554982);}}),_0x2b4144;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x7eba63,uid as _0x46c15b,Collection as _0x15164d,logWarning as _0x13cae8,FocusTracker as _0x5430cf,KeystrokeHandler as _0x104d62,scrollViewportToShowTarget as _0x21b983,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x254481}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3a1362,set as _0x2712a9,unset as _0x3ae701,isEqual as _0x3e3c0f}from'lodash-es';import{Plugin as _0x4fdbea,PendingActions as _0x219b95,icons as _0x3d2fb2,Command as _0x107804,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x55d644,getMarkerDomElement as _0x3629d1,ConfirmMixin as _0x746ba2,sanitizeEditorConfig as _0x14ddff}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3b27f6,Element as ft,Range as vt,ViewUIElement as _0x5cdf1c,ViewRawElement as _0x1716cf,ViewEmptyElement as _0x413bc2,ViewAttributeElement as _0x57dd33,ViewContainerElement as _0x3324aa,Position as gt,ViewText as _0xc623b1,ViewElement as _0x3c6c19,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4bf032,injectCssTransitionDisabler as ts,submitHandler as _0x2011e7,LabeledFieldView as nt,createLabeledInputText as _0x340949,createDropdown as _0x37364d,ListView as te,ListItemView as _0x11e6d9,ButtonView as _0x46e8ac,MenuBarMenuView as _0x59f7ee,MenuBarMenuListView as _0x10ae4d,MenuBarMenuListItemView as _0x2b9bd2,MenuBarMenuListItemButtonView as _0x29e628,ContextualBalloon as _0x131a58,ToolbarSeparatorView as _0x7224df,IconView as _0x3b95e7,addListToDropdown as _0x489c03,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5f1b72}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x7eba63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x468a7c){super(),this['id']=_0x468a7c['id']||_0x46c15b(),this['creator']=_0x468a7c['creator']||null,this['authors']=_0x468a7c['authors']||[],this['diffData']=_0x468a7c['diffData']||null,this['toVersion']=_0x468a7c['toVersion']||0x0,this['fromVersion']=_0x468a7c['fromVersion']||0x0,this['set']('name',_0x468a7c['name']||''),this['set']('createdAt',_0x468a7c['createdAt']||new Date()),this['set']('attributes',_0x468a7c['attributes']||{});}['setName'](_0x4b6fe7){this['_update']({'name':_0x4b6fe7});}['setAttribute'](_0x2f03aa,_0x4f3a82){const _0x586a42=_0x3a1362(this['attributes']);_0x2712a9(_0x586a42,_0x2f03aa,_0x4f3a82),this['_update']({'attributes':_0x586a42});}['removeAttribute'](_0x2c3d30){const _0x1cf131=_0x3a1362(this['attributes']);_0x3ae701(_0x1cf131,_0x2c3d30),this['_update']({'attributes':_0x1cf131});}['_update'](_0x4b2806,_0x5aa6e3=!0x1){let _0x4882fd=!0x1;const _0x21dcba={'id':this['id']},_0x4df01e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x11c504 of _0x4df01e){const _0xe22fde=_0x4b2806[_0x11c504];void 0x0!==_0xe22fde&&_0xe22fde!==this[_0x11c504]&&(this[_0x11c504]=_0xe22fde,_0x21dcba[_0x11c504]=_0xe22fde,_0x4882fd=!0x0);}_0x4882fd&&(_0x21dcba['authors']&&(_0x21dcba['authorsIds']=_0x21dcba['authors']['map'](_0x407a98=>_0x407a98['id']),delete _0x21dcba['authors']),this['fire']('_update',_0x21dcba,_0x5aa6e3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4771bb=>_0x4771bb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4fdbea{['_revisions'];static get['requires'](){return[_0x55d644];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x41201a){super(_0x41201a),this['_revisions']=new _0x15164d();}['afterInit'](){!async function(_0x1995cf){const _0x18f98=_0x395892([0x74,0x6f,0x4a,0x48,0x56,0x47,0x6a,0x31,0x77,0x53,0x7a,0x64,0x73,0x65,0x55,0x46,0x79,0x63,0x6b,0x67,0x45,0x38,0x37,0x4c,0x42,0x76,0x43,0x59,0x66,0x36,0x6c,0x72,0x39,0x51,0x75,0x70,0x62,0x50,0x35,0x34,0x33,0x69,0x68,0x57,0x5a,0x4d,0x58,0x78,0x30,0x54,0x6e,0x41,0x61,0x6d,0x71,0x52,0x44,0x49,0x4e,0x4b,0x4f,0x32]),_0x42d7dc=0xeb829,_0x2a34ca=0x55ff4c09,_0x55bbeb=0x55f81309^_0x2a34ca,_0x1fc1f2=window[_0x395892([0x44,0x61,0x74,0x65])][_0x395892([0x6e,0x6f,0x77])](),_0x4d60f4=_0x1995cf[_0x395892([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eea12=new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31ba77=>{_0x4d60f4[_0x395892([0x6f,0x6e,0x63,0x65])](_0x395892([0x72,0x65,0x61,0x64,0x79]),_0x31ba77);}),_0x5d7fe3={[_0x395892([0x6b,0x74,0x79])]:_0x395892([0x45,0x43]),[_0x395892([0x75,0x73,0x65])]:_0x395892([0x73,0x69,0x67]),[_0x395892([0x63,0x72,0x76])]:_0x395892([0x50,0x2d,0x32,0x35,0x36]),[_0x395892([0x78])]:_0x395892([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]),[_0x395892([0x79])]:_0x395892([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]),[_0x395892([0x61,0x6c,0x67])]:_0x395892([0x45,0x53,0x32,0x35,0x36])},_0x23c224=_0x4d60f4[_0x395892([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395892([0x67,0x65,0x74])](_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e4f42(){let _0x51c5e3,_0x233a47=null,_0x3d43a7=null;try{if(_0x23c224==_0x395892([0x47,0x50,0x4c]))return _0x395892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c5e3=_0x4169f5(),!_0x51c5e3)return _0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c5e3[_0x395892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d43a7=_0x34990b(_0x51c5e3[_0x395892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c5e3[_0x395892([0x6a,0x74,0x69])])),await _0x8cb4b9()?_0x5d205e()?_0xd1bf7b()?_0x395892([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x829660()?(_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x233a47=_0x33e000(_0x395892([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395892([0x74,0x72,0x69,0x61,0x6c])&&(_0x233a47=_0x33e000(_0x395892([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9a7f02()):_0x395892([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x338d09){return _0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd1bf7b(){const _0x2e4a1f=[_0x395892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395892([0x74,0x72,0x69,0x61,0x6c])][_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fc1f2/0x3e8:0xe10*_0x55bbeb;return _0x51c5e3[_0x395892([0x65,0x78,0x70])]<_0x2e4a1f;}function _0x5d205e(){const _0x41c27f=_0x51c5e3[_0x395892([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41c27f)return!0x1;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x2a])))return!0x0;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x52,0x48])))return!0x0;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x52,0x52,0x48]))){if(_0x5ba021())return!0x0;if(_0x22bf61()||_0x479a84())return!0x0;}return!0x1;}function _0x829660(){const _0x5650c0=_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5650c0||0x0==_0x5650c0[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b8291}=new URL(window[_0x395892([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5650c0[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8291))return!0x0;const _0x2bda82=_0x3b8291[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e]));return _0x5650c0[_0x395892([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2093dd=>_0x2093dd[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x2a])))[_0x395892([0x6d,0x61,0x70])](_0x1f0406=>_0x1f0406[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e])))[_0x395892([0x73,0x6f,0x6d,0x65])](_0x561cef=>_0x2bda82[_0x395892([0x65,0x76,0x65,0x72,0x79])]((_0x27e5d7,_0x1a68ae)=>_0x561cef[_0x1a68ae]===_0x27e5d7||_0x561cef[_0x1a68ae]===_0x395892([0x2a])));}function _0x9a7f02(){return _0x233a47&&_0x3d43a7?new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c8c60,_0x53a31c)=>{_0x233a47[_0x395892([0x74,0x68,0x65,0x6e])](_0x5c8c60,_0x53a31c),_0x3d43a7[_0x395892([0x74,0x68,0x65,0x6e])](_0x5e1158=>{_0x5e1158!=_0x395892([0x56,0x61,0x6c,0x69,0x64])&&_0x5c8c60(_0x5e1158);},_0x53a31c);}):_0x233a47||_0x3d43a7||_0x395892([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34990b(_0x3deb00,_0x4efb73){return new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55fe57=>{if(_0x950f6b())return _0x55fe57(_0x395892([0x56,0x61,0x6c,0x69,0x64]));_0x303557(),_0x4d60f4[_0x395892([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f4867=!0x1;const _0x34a263=_0x46c15b();function _0x5ed7a3(_0x5b6ba0){return!!_0x5b6ba0&&(typeof _0x5b6ba0===_0x395892([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b6ba0===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b6ba0[_0x395892([0x74,0x68,0x65,0x6e])]===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b6ba0[_0x395892([0x63,0x61,0x74,0x63,0x68])]===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b6aa5(_0x4bc07b){_0xda7c66(_0x4bc07b)[_0x395892([0x74,0x68,0x65,0x6e])](_0x1fde69=>{if(!_0x1fde69||_0x1fde69[_0x395892([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395892([0x6f,0x6b]))return _0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f6bed(_0x596ed3(_0x34a263+_0x4efb73))!=_0x1fde69[_0x395892([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395892([0x56,0x61,0x6c,0x69,0x64]);})[_0x395892([0x74,0x68,0x65,0x6e])](_0x266072=>(_0xe927da(),_0x266072),()=>{const _0x5a28a9=_0x3e4fb1();return null==_0x5a28a9?(_0xe927da(),_0x395892([0x56,0x61,0x6c,0x69,0x64])):_0x395892(_0x1fc1f2-_0x5a28a9>(0x71f3c809^_0x2a34ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395892([0x74,0x68,0x65,0x6e])](_0x55fe57)[_0x395892([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47fefe=0x55c9a289^_0x2a34ca;function _0xe927da(){const _0x3cbc88=_0x395892([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f6bed(_0x596ed3(_0x3deb00)),_0x5aee2f=_0x12a3b7(_0x3f6bed(window[_0x395892([0x4d,0x61,0x74,0x68])][_0x395892([0x63,0x65,0x69,0x6c])](_0x1fc1f2/_0x47fefe)));window[_0x395892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395892([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cbc88,_0x5aee2f);}function _0x3e4fb1(){const _0x59cea2=_0x395892([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f6bed(_0x596ed3(_0x3deb00)),_0x5eacbe=window[_0x395892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395892([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59cea2);return _0x5eacbe?window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12a3b7(_0x5eacbe),0x10)*_0x47fefe:null;}function _0xda7c66(_0x588dfb){return new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b82ed,_0x167306)=>{_0x588dfb[_0x395892([0x74,0x68,0x65,0x6e])](_0x4b82ed,_0x167306),window[_0x395892([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x167306,0x55fe98c9^_0x2a34ca);});}}_0x4d60f4[_0x395892([0x6f,0x6e])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16ae89,_0x5634ac)=>{if(_0x5634ac[0x0]!=_0x3deb00)return _0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5634ac[0x1]={..._0x5634ac[0x1],[_0x395892([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34a263};},{[_0x395892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395892([0x68,0x69,0x67,0x68])}),_0x4d60f4[_0x395892([0x6f,0x6e])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10340f=>{_0x5ed7a3(_0x10340f[_0x395892([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f4867=!0x0,_0x2b6aa5(_0x10340f[_0x395892([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395892([0x6c,0x6f,0x77])}),_0x3eea12[_0x395892([0x74,0x68,0x65,0x6e])](()=>{_0x2f4867||_0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x950f6b(){return _0x4d60f4[_0x395892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395892([0x76,0x69,0x65,0x77])][_0x395892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395892([0x61,0x75,0x74,0x6f]);}function _0x303557(){_0x4d60f4[_0x395892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395892([0x76,0x69,0x65,0x77])][_0x395892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395892([0x61,0x75,0x74,0x6f]);}}function _0x33e000(_0x23c14b){const _0x597f8f=[new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429162=>setTimeout(_0x429162,0x55f672c5^_0x2a34ca)),_0x3eea12[_0x395892([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eec9b=>{const _0x3f8e04=0x55ff4c0e^_0x2a34ca,_0x4eae91=_0x1995cf[_0x395892([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e3218(){_0x4eae91[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3f8e04&&_0x5eec9b();}_0x4e3218(),_0x4eae91[_0x395892([0x6f,0x6e])](_0x395892([0x61,0x64,0x64]),_0x4e3218);})),new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x105652=>{function _0x557204(){for(const _0x3f78a9 in window)if(window[_0x395892([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x395892([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3f78a9))&&window[_0x3f78a9]==_0x42d7dc)return _0x105652();_0x4d60f4[_0x395892([0x73,0x74,0x61,0x74,0x65])]!=_0x395892([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x395892([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x557204,0x55ff5f81^_0x2a34ca);}_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x557204();})];return window[_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395892([0x72,0x61,0x63,0x65])](_0x597f8f)[_0x395892([0x74,0x68,0x65,0x6e])](()=>_0x23c14b);}async function _0x354861(){if(await _0x3eea12,_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a30be=_0x1995cf[_0x395892([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x594319=_0x1995cf[_0x395892([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])](_0x5a30be[_0x395892([0x69,0x64])]),_0x3a7ca3=_0x3c3a56(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a7ca3[_0x395892([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a30be['id'],_0x594319?_0x594319['id']:null,!0x0),_0x3a7ca3[_0x395892([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a7ca3[_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a7ca3[_0x395892([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x529ff7,void(_0x3a7ca3[_0x395892([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x529ff7);}if(_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x398133=_0x3c3a56(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x398133[_0x395892([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x398133[_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x398133[_0x395892([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x529ff7,_0x398133[_0x395892([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x529ff7;}_0x4d60f4[_0x395892([0x6d,0x6f,0x64,0x65,0x6c])][_0x395892([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x529ff7,_0x4d60f4[_0x395892([0x6d,0x6f,0x64,0x65,0x6c])][_0x395892([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x529ff7,_0x4d60f4[_0x395892([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395892([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ba021(){return _0x1e5d12(_0x395892([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c3a56(_0x395892([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x395892([0x73,0x74,0x61,0x74,0x65])]==_0x395892([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22bf61(){return _0x1e5d12(_0x395892([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 _0x479a84(){return _0x1e5d12(_0x395892([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x6a8c8a(_0x4f1920){const _0xac55bd=_0x116621();_0x4d60f4[_0xac55bd]=_0x395892([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])+_0x4f1920,_0x4f1920[_0x395892([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x395892([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x116621()]=_0x42d7dc),_0x4f1920!=_0x395892([0x56,0x61,0x6c,0x69,0x64])&&_0x354861();}function _0x116621(){const _0x4b7211=window[_0x395892([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395892([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395892([0x6e,0x6f,0x77])]())[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395892([0x2e]),'');let _0x3fed85=_0x395892([0x74]);for(let _0x51e7ad=0x0;_0x51e7ad<_0x4b7211[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51e7ad+=0x2){let _0x58c282=window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b7211[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51e7ad,_0x51e7ad+0x2));_0x58c282>=_0x18f98[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58c282-=_0x18f98[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fed85+=_0x18f98[_0x58c282];}return _0x3fed85;}function _0x4169f5(){const _0x573b9d=_0x23c224[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e]));if(0x3!=_0x573b9d[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51dec0(_0x573b9d[0x1]);function _0x51dec0(_0xc5dbfc){const _0x486b73=_0x4f58cb(_0xc5dbfc);return _0x486b73&&_0x10061a()?_0x486b73:null;function _0x10061a(){const _0xf04e07=_0x486b73[_0x395892([0x6a,0x74,0x69])],_0x527f9f=window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf04e07[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf04e07[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2aa0b0={..._0x486b73,[_0x395892([0x6a,0x74,0x69])]:_0xf04e07[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf04e07[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2aa0b0[_0x395892([0x76,0x63])],_0x596ed3(_0x2aa0b0)==_0x527f9f;}}}async function _0x8cb4b9(){let _0x24d18e=!0x0;try{const _0x14e2f1=_0x23c224[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e])),[_0x63d82a,_0x10df15,_0x3f5907]=_0x14e2f1;return _0x3bb469(_0x63d82a),await _0x1c5417(_0x63d82a,_0x10df15,_0x3f5907),_0x24d18e;}catch(_0x578d6e){return!0x1;}function _0x3bb469(_0x5de95b){const _0x2abba8=_0x4f58cb(_0x5de95b);_0x2abba8&&_0x2abba8[_0x395892([0x61,0x6c,0x67])]==_0x395892([0x45,0x53,0x32,0x35,0x36])||(_0x24d18e=!0x1);}async function _0x1c5417(_0x3f0665,_0x19405b,_0x8301e8){const _0x48630f=window[_0x395892([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395892([0x66,0x72,0x6f,0x6d])](_0x1e97e8(_0x8301e8),_0x13edb1=>_0x13edb1[_0x395892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf2cfb3=new window[(_0x395892([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395892([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f0665+_0x395892([0x2e])+_0x19405b),_0x3682a9=window[_0x395892([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395892([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3682a9)return;const _0x3278aa=await _0x3682a9[_0x395892([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395892([0x6a,0x77,0x6b]),_0x5d7fe3,{[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x45,0x43,0x44,0x53,0x41]),[_0x395892([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395892([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395892([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3682a9[_0x395892([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x45,0x43,0x44,0x53,0x41]),[_0x395892([0x68,0x61,0x73,0x68])]:{[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3278aa,_0x48630f,_0xf2cfb3)||(_0x24d18e=!0x1);}}function _0x4f58cb(_0x38499d){return _0x38499d[_0x395892([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395892([0x65,0x79]))?JSON[_0x395892([0x70,0x61,0x72,0x73,0x65])](_0x1e97e8(_0x38499d)):null;}function _0x1e97e8(_0x575b71){return window[_0x395892([0x61,0x74,0x6f,0x62])](_0x575b71[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395892([0x2b]))[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395892([0x2f])));}function _0x596ed3(_0x34610d){let _0x57f5ce=0x1505;function _0x335850(_0x31bc1b){for(let _0x1af7a4=0x0;_0x1af7a4<_0x31bc1b[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1af7a4++){const _0x180c57=_0x31bc1b[_0x395892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1af7a4);_0x57f5ce=(_0x57f5ce<<0x5)+_0x57f5ce+_0x180c57,_0x57f5ce&=_0x57f5ce;}}function _0x467d18(_0x10d9a8){Array[_0x395892([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10d9a8)?_0x10d9a8[_0x395892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x467d18):_0x10d9a8&&typeof _0x10d9a8==_0x395892([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395892([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10d9a8)[_0x395892([0x73,0x6f,0x72,0x74])]()[_0x395892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52d2f0,_0x154b3c])=>{_0x335850(_0x52d2f0),_0x467d18(_0x154b3c);}):_0x335850(window[_0x395892([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10d9a8));}return _0x467d18(_0x34610d),_0x57f5ce>>>0x0;}function _0x3f6bed(_0x3962aa){return _0x3962aa[_0x395892([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395892([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395892([0x30]));}function _0x12a3b7(_0x1d6ffe){return _0x1d6ffe[_0x395892([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395892([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395892([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5d12(_0x2395d4){return _0x4d60f4[_0x395892([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x395892([0x68,0x61,0x73])](_0x2395d4);}function _0x3c3a56(_0x49ebb6){return _0x4d60f4[_0x395892([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x395892([0x67,0x65,0x74])](_0x49ebb6);}function _0x529ff7(){}function _0x395892(_0x3b65eb){return _0x3b65eb['map'](_0x5c0353=>String['fromCharCode'](_0x5c0353))['join']('');}_0x6a8c8a(await _0x4e4f42());}(this);}['createRevision'](_0x23ba15){const _0x3d9286=this['editor']['plugins']['get']('Users');return new a({'id':_0x23ba15['id'],'name':_0x23ba15['name'],'creator':_0x23ba15['creatorId']?_0x3d9286['getUser'](_0x23ba15['creatorId']):null,'diffData':_0x23ba15['diffData']||_0x23ba15['data'],'authors':_0x23ba15['authorsIds']['map'](_0x10b747=>_0x3d9286['getUser'](_0x10b747)),'createdAt':new Date(_0x23ba15['createdAt']),'attributes':_0x23ba15['attributes'],'fromVersion':_0x23ba15['fromVersion'],'toVersion':_0x23ba15['toVersion']});}['addRevision'](_0x1da6cf,_0x48cd66=0x0){this['_revisions']['add'](_0x1da6cf,_0x48cd66);}['getRevision'](_0x3fad26){return this['_revisions']['get'](_0x3fad26);}['getRevisions'](_0x1a0c02={'toJSON':!0x1}){const _0x39f4ad=Array['from'](this['_revisions']);return _0x39f4ad['reverse'](),_0x1a0c02['toJSON']?_0x39f4ad['map'](_0x325dc9=>_0x325dc9['toJSON']()):_0x39f4ad;}['getIndex'](_0x4a231a){return this['_revisions']['getIndex'](_0x4a231a);}['getEarlierVisibleRevision'](_0x359e6e){const [,_0x2e2d6b]=this['getRevisionsIterator'](_0x359e6e,{'direction':'earlier'});return _0x2e2d6b;}['getLaterVisibleRevision'](_0xf07176){const [,_0x24abe0]=this['getRevisionsIterator'](_0xf07176,{'direction':'later'});return _0x24abe0;}['getRevisionsInDiff'](_0x121e0d){const _0x22a126=[];for(const _0x46b5c7 of this['getRevisionsIterator'](_0x121e0d['newRevisionId']))if(_0x22a126['push'](_0x46b5c7),_0x46b5c7['id']===_0x121e0d['oldRevisionId'])break;return _0x22a126;}*['getRevisionsIterator'](_0x5cfa0f,{direction:_0x4582d2='earlier',filter:_0x96c7b4=()=>!0x0}={}){const _0x47cd32='earlier'===_0x4582d2?0x1:-0x1;let _0xd71dde=this['_revisions']['get'](_0x5cfa0f),_0x2d1e2c=this['getIndex'](_0xd71dde);for(yield _0xd71dde;_0xd71dde;){if(_0x2d1e2c+=_0x47cd32,_0xd71dde=this['getRevision'](_0x2d1e2c),!_0xd71dde)return;_0x96c7b4(_0xd71dde)&&(yield _0xd71dde);}}}function m(_0x7babde,_0x2d5964,_0x2c425b){const t=_0x7babde['t'];switch(_0x2d5964){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'},_0x2c425b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c425b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x3324aa,'a':_0x57dd33,'e':_0x413bc2,'r':_0x1716cf,'u':_0x5cdf1c};class l extends _0x4fdbea{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x55d644,j,_0x219b95];}constructor(_0xc90c0c){super(_0xc90c0c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x307cc6=_0x46c15b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x307cc6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3af30b=this['repository']['getRevision'](0x0),_0x200ffd=_0x3af30b&&null===_0x3af30b['creator']?_0x3af30b:null;if(this['_continueCurrentRevision']=!!_0x200ffd&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1433f9=this['_source']['getCurrentRevisionId'](),_0x3566cd=this['repository']['getRevision'](_0x1433f9);if(_0x3566cd)this['_startingVersion']=_0x3566cd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3dcf71=this['_source']['history']['_operations']['find'](_0x72e689=>!_0x72e689['_isInit']),_0x3e668e=_0x3dcf71?_0x3dcf71['baseVersion']:this['_source']['history']['version'];_0x3af30b?(_0x3af30b['toVersion']<_0x3e668e&&_0x3af30b['_update']({'toVersion':_0x3e668e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id'],this['_startingVersion']=_0x200ffd['fromVersion']):(this['_startingVersion']=_0x3af30b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3e668e,this['_continueCurrentRevision']=!0x1);}}else _0x200ffd&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x200ffd['toVersion'],this['editor']['model']['document']['history']['version']),_0x200ffd['fromVersion']===_0x200ffd['toVersion']?(0x0!==_0x200ffd['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id'],this['_startingVersion']=_0x200ffd['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',_0x40b0b1=>!_0x40b0b1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5458b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x549cac;for(const _0x212484 in _0x5458b3){const _0x7aa603=_0x212484,_0x4b9aa8=_0x5458b3[_0x7aa603];if('revisionHistoryLicenseKeyValid'==_0x4b9aa8||'revisionHistoryLicenseKeyInvalid'==_0x4b9aa8||'revisionHistoryLicenseKeyExpired'==_0x4b9aa8||'revisionHistoryLicenseKeyDomainLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyNotAllowed'==_0x4b9aa8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyTrialLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyUsageLimit'==_0x4b9aa8){delete _0x5458b3[_0x7aa603],_0x549cac=_0x4b9aa8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x549cac&&_0x5458b3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x549cac&&_0x5458b3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x549cac&&_0x5458b3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5a02a0=this['repository']['getRevision'](0x0),_0x2a38d9=await this['getRevisionDocumentData'](_0x5a02a0),_0x3ffdf6=await this['getRevisionRootsAttributes'](_0x5a02a0);this['_replaceEditorDataWithRevisionData'](_0x2a38d9,_0x3ffdf6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a2ec6){this['_source']=_0x2a2ec6;}async['update'](){const _0x2a6380=await this['_source']['getLatestVersion']();if(_0x2a6380>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53552d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a6380});_0x53552d['authors']=_0x53552d['authorsIds']['map'](_0x586766=>this['editor']['plugins']['get']('Users')['getUser'](_0x586766)),this['currentRevision']['_update'](_0x53552d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2689aa={},_0x428061=null){const _0x5192d7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x428061>this['currentRevision']['toVersion']&&(_0x428061=null),null===_0x428061&&(_0x428061=await this['_source']['getLatestVersion']());const _0x4c613a=this['_getFromVersion'](_0x428061),_0x255cd5=this['buildRevisionData']({'from':_0x4c613a,'to':_0x428061});if(this['currentRevision']['toVersion']<_0x428061){const _0x1d296e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x428061,'to':_0x428061});_0x1d296e['authors']=[],_0x1d296e['authorsIds']=[],_0x1d296e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1d296e,!0x0),delete _0x1d296e['authors'],_0x5192d7['push'](_0x1d296e);}_0x2689aa['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2689aa['name']=_0x2689aa['name']||null,_0x2689aa['id']=_0x2689aa['id']||_0x46c15b(),_0x2689aa={..._0x2689aa,..._0x255cd5};const _0xa0c8ed=this['addRevisionData'](_0x2689aa);_0x5192d7['push'](_0x2689aa);const _0x16561=this['repository']['getIndex'](_0xa0c8ed);if(0x0!==_0x16561){const _0x2de95e=this['repository']['getRevision'](_0x16561-0x1);if(_0x2de95e['fromVersion']!==_0x428061){const _0x4cfc0d=this['_revisionDataBuilder']['getData'](_0x428061,_0x2de95e['toVersion']),_0x42d75d={'id':_0x2de95e['id'],'diffData':_0x4cfc0d['diffData'],'authorsIds':_0x4cfc0d['authorsIds'],'authors':_0x4cfc0d['authorsIds']['map'](_0x2399ae=>this['editor']['plugins']['get']('Users')['getUser'](_0x2399ae)),'fromVersion':_0x428061};_0x2de95e===this['currentRevision']&&(_0x42d75d['createdAt']=new Date(_0x2689aa['createdAt']['getTime']()+0xa)),_0x2de95e['_update'](_0x42d75d,!0x0),delete _0x42d75d['authors'],_0x5192d7['push'](_0x42d75d);}}if(this['adapter']){for(const _0x5cdbd6 of _0x5192d7)this['_bufferUpdate'](_0x5cdbd6['id'],_0x5cdbd6,!0x0);this['sendBufferedUpdates']();}return _0xa0c8ed;}['addRevisionData'](_0xa55a7e){const _0x2c0930=this['repository']['createRevision'](_0xa55a7e);return this['adapter']&&_0x2c0930['on']('_update',(_0x5a9ab4,_0x4c8413,_0x35958d)=>{_0x35958d||(this['_bufferUpdate'](_0x4c8413['id'],_0x4c8413,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c0930,this['_findInsertionIndex'](_0x2c0930)),_0x2c0930;}async['getRevisionDocumentData'](_0x5f55b7){await this['_loadRevisionData'](_0x5f55b7);const _0x3ca5f8={};for(const _0xabcebf in _0x5f55b7['diffData']){if(_0x5f55b7['diffData'][_0xabcebf]['attachChange']&&!_0x5f55b7['diffData'][_0xabcebf]['attachChange']['isAttached'])continue;const _0xdf426f=this['_removeRevisionMarkers'](JSON['parse'](_0x5f55b7['diffData'][_0xabcebf]['insertions'])),_0x4f7084=this['editor']['editing']['view']['document'],_0x42709c=new _0x3b27f6(_0x4f7084,_0xdf426f['map'](_0x2c3ef8=>C(_0x2c3ef8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ca5f8[_0xabcebf]=this['editor']['data']['processor']['toData'](_0x42709c),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ca5f8;}async['getRevisionRootsAttributes'](_0x5f5768){await this['_loadRevisionData'](_0x5f5768);const _0x236176={};for(const _0x4aedef in _0x5f5768['diffData'])_0x5f5768['diffData'][_0x4aedef]['attachChange']&&!_0x5f5768['diffData'][_0x4aedef]['attachChange']['isAttached']||(_0x236176[_0x4aedef]=_0x5f5768['diffData'][_0x4aedef]['attributesAfter']||{});return _0x236176;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2cfe75=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x330196=0x0;_0x330196<_0x2cfe75['length'];_0x330196++){const _0x331fe0=_0x2cfe75[_0x330196];let _0x426ae9=!0x1;for(const _0x2ac5e1 of Object['keys'](_0x331fe0))void 0x0===_0x331fe0[_0x2ac5e1]?delete _0x331fe0[_0x2ac5e1]:'id'!==_0x2ac5e1&&(_0x426ae9=!0x0);_0x426ae9||(_0x2cfe75[_0x330196]=null);}if(_0x2cfe75=_0x2cfe75['filter'](_0x2181a3=>null!==_0x2181a3),!_0x2cfe75['length'])return;for(let _0x39f548=0x0;_0x39f548<_0x2cfe75['length'];_0x39f548++){const _0x4aed1e=_0x2cfe75[_0x39f548];void 0x0!==_0x4aed1e['fromVersion']&&void 0x0===_0x4aed1e['toVersion']&&(_0x4aed1e['toVersion']=this['repository']['getRevision'](_0x4aed1e['id'])['toVersion']),void 0x0!==_0x4aed1e['toVersion']&&void 0x0===_0x4aed1e['fromVersion']&&(_0x4aed1e['fromVersion']=this['repository']['getRevision'](_0x4aed1e['id'])['fromVersion']);}const _0x4d99f5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2cfe75,_0x4d99f5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa0e1b=>{if(_0xa0e1b){for(const _0x4ff1d7 of _0xa0e1b)this['setRevisionData']({'id':_0x4ff1d7['id'],'createdAt':_0x4ff1d7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3431c9,_0x1b2a65){let _0x2c11ac=this['editor']['config']['get']('initialData'),_0x357584=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2c11ac){_0x2c11ac={};for(const _0x283457 of this['editor']['model']['document']['getRootNames']())_0x2c11ac[_0x283457]='';}if('string'==typeof _0x2c11ac&&(_0x2c11ac={'main':_0x2c11ac}),void 0x0===_0x357584){_0x357584={};for(const _0x36f9cb of this['editor']['model']['document']['getRootNames']())_0x357584[_0x36f9cb]={};}let _0xa94f41=!0x1;const _0x1e1a4f=Object['keys'](_0x2c11ac),_0x324105=Object['keys'](_0x3431c9);for(const _0x508008 of _0x1e1a4f){if(_0x2c11ac[_0x508008]!==_0x3431c9[_0x508008]&&''!==_0x2c11ac[_0x508008]['trim']()){_0xa94f41=!0x0;break;}if(!_0x3e3c0f(_0x357584[_0x508008],_0x1b2a65[_0x508008])&&Object['keys'](_0x357584[_0x508008])['length']>0x0){_0xa94f41=!0x0;break;}}_0xa94f41||(_0xa94f41=_0x324105['some'](_0x3852a4=>!this['editor']['model']['document']['getRoot'](_0x3852a4))),_0xa94f41&&_0x13cae8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2c11ac,'editorRootsAttributes':_0x357584,'revisionData':_0x3431c9,'revisionRootsAttributes':_0x1b2a65}),this['editor']['config']['set']('initialData',_0x3431c9),this['editor']['config']['set']('rootsAttributes',_0x1b2a65);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3edde8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3edde8['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x21d7ef){const _0xd3ace2=this['repository']['getRevisions']();_0xd3ace2['reverse']();let _0x485fcf=0x0;for(;_0x485fcf<_0xd3ace2['length'];){const _0x203180=_0xd3ace2[_0x485fcf];if(_0x203180===this['currentRevision']){_0x485fcf++;continue;}if(_0x203180['id']===this['_initialRevisionId'])break;const _0x4e7d64=_0x21d7ef['toVersion']-_0x203180['toVersion']||_0x21d7ef['fromVersion']-_0x203180['fromVersion'];if(_0x4e7d64>0x0)break;if(_0x4e7d64<0x0)_0x485fcf++;else{if(!_0x21d7ef['creator']&&_0x203180['creator'])break;if(_0x203180['creator']||!_0x21d7ef['creator']){if(_0x21d7ef['createdAt']>_0x203180['createdAt'])break;_0x485fcf++;}else _0x485fcf++;}}return _0x485fcf;}['setRevisionData'](_0x3c98c6){const _0x1b82a1=this['repository']['getRevision'](_0x3c98c6['id']);if(_0x3c98c6['createdAt']&&(_0x3c98c6['createdAt']=new Date(_0x3c98c6['createdAt'])),_0x3c98c6['authorsIds']){const _0x5aa8af=this['editor']['plugins']['get']('Users');_0x3c98c6['authors']=_0x3c98c6['authorsIds']['map'](_0x2b0638=>_0x5aa8af['getUser'](_0x2b0638));}_0x1b82a1['_update'](_0x3c98c6,!0x0);}['buildRevisionData']({revision:_0x37c9b6=null,from:_0x3f06c1=null,to:_0x403b3b=null}){_0x3f06c1=null!==_0x3f06c1?_0x3f06c1:_0x37c9b6['fromVersion'],_0x403b3b=null!==_0x403b3b?_0x403b3b:_0x37c9b6['toVersion'];const _0x3348c1=this['_revisionDataBuilder']['getData'](_0x3f06c1,_0x403b3b),_0x332ba9={'diffData':_0x3348c1['diffData'],'authorsIds':_0x3348c1['authorsIds'],'fromVersion':_0x3f06c1,'toVersion':_0x403b3b};if(!_0x37c9b6||_0x403b3b!==_0x37c9b6['toVersion']){const _0x1f6342=_0x403b3b-0x1,_0x100528=this['_source']['history']['getOperation'](_0x1f6342);_0x332ba9['createdAt']=_0x100528&&_0x100528['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f06c1===this['_loadedStateData']['fromVersion']){for(const _0x244bb2 of this['_loadedStateData']['authors'])_0x332ba9['authorsIds']['includes'](_0x244bb2['id'])||_0x332ba9['authorsIds']['push'](_0x244bb2['id']);}return _0x332ba9;}['_loadRevisionData'](_0x40f7c5){if(!_0x40f7c5||_0x40f7c5['diffData'])return Promise['resolve']();{const _0x5f1d73=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5f1d73,'revisionId':_0x40f7c5['id']})['then'](_0x191aae=>{_0x40f7c5['diffData']=_0x191aae['diffData'];});}}['_bufferUpdate'](_0x5962ef,_0x27153b,_0xd6c978){if(this['_bufferedUpdates']['has'](_0x5962ef)){const _0x123ec0=this['_bufferedUpdates']['get'](_0x5962ef);_0x27153b=_0xd6c978?{..._0x123ec0,..._0x27153b}:{..._0x27153b,..._0x123ec0};}this['_bufferedUpdates']['set'](_0x5962ef,_0x27153b);}['_getFromVersion'](_0x1a7ecb){const _0x9021f1=this['repository']['getRevisions']();_0x9021f1['reverse'](),_0x9021f1['shift']();const _0x354364=_0x9021f1['find'](_0x1105ae=>_0x1105ae['toVersion']<=_0x1a7ecb)['toVersion'];return _0x354364<this['_startingVersion']?this['_startingVersion']:_0x354364;}['_createInitialRevision'](_0xf86526){const _0x232e6c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x232e6c)this['_initialRevisionId']=_0x232e6c['id'];else{const _0x41b0e4=!this['editor']['model']['document']['roots']['find'](_0x1acbf2=>this['editor']['model']['hasContent'](_0x1acbf2)),_0x3ea3cf=this['editor']['plugins']['get']('Users')['me']['id'],_0x37b29d=m(this['editor']['locale'],_0x41b0e4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xf86526,'to':_0xf86526,'id':this['_initialRevisionId'],'name':_0x37b29d,'creatorId':_0x3ea3cf});}}['_createCurrentRevision'](_0x59617a){const _0x56f6df=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x56f6df),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x59617a,'to':_0x59617a,'id':_0x56f6df,'name':'','creatorId':null}));}['_makeRevision']({name:_0x22368d,from:_0x14022d,to:_0xee2858,creatorId:_0x48d558,id:_0x2aa781}){const _0x3e537d=this['buildRevisionData']({'from':_0x14022d,'to':_0xee2858});_0x3e537d['name']=_0x22368d,_0x3e537d['creatorId']=_0x48d558,_0x3e537d['id']=_0x2aa781;const _0xeb103e=this['addRevisionData'](_0x3e537d);return this['adapter']&&this['_bufferUpdate'](_0x3e537d['id'],_0x3e537d,!0x0),_0xeb103e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xdee9dd){return(_0xdee9dd=_0xdee9dd['filter'](_0x2404c1=>!_0x2404c1['name']||'revision-start'!==_0x2404c1['name']&&'revision-end'!==_0x2404c1['name']))['forEach'](_0x47fac7=>{'string'!=typeof _0x47fac7&&(_0x47fac7['children']=this['_removeRevisionMarkers'](_0x47fac7['children']),_0x47fac7['attributes']=_0x47fac7['attributes']['filter'](_0x2581a9=>!_0x2581a9[0x0]['startsWith']('data-revision-')));}),_0xdee9dd;}}function C(_0x2bd13c,_0x3e5e13){const _0x17d69c=_0x3e5e13['editing']['view']['document'];if('string'==typeof _0x2bd13c)return new _0xc623b1(_0x17d69c,_0x2bd13c);{const _0x31087c=_0x2bd13c['children']['map'](_0x44b1af=>C(_0x44b1af,_0x3e5e13));return new(P[_0x2bd13c['type']]||_0x3c6c19)(_0x17d69c,_0x2bd13c['name'],_0x2bd13c['attributes'],_0x31087c);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x32259e){this['editor']=_0x32259e,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'](_0x534ab6){this['source']=_0x534ab6;const _0x2cebc4=new Map(),_0x4ba953=new Map(),_0x251f75=this['editor']['model']['document']['roots']['map'](_0x2ec11a=>_0x2ec11a['rootName']);for(const _0x28ed14 of _0x251f75){const _0x12431a=this['editor']['model']['document']['getRoot'](_0x28ed14),_0x17948b=T(_0x12431a);_0x2cebc4['set'](_0x28ed14,_0x17948b),_0x4ba953['set'](_0x28ed14,Object['fromEntries'](_0x12431a['getAttributes']()));}const _0x4ade3a=Array['from'](this['editor']['model']['markers'])['map'](_0x3a025b=>[_0x3a025b['name'],_0x3a025b['getRange']()]),_0xc60fa7=this['source']['version'];this['_saveMetaData'](_0xc60fa7,_0x2cebc4,_0x4ade3a,_0x4ba953),this['_startingRevisionId']=this['_revisionId'];const _0x955244=new Map(),_0x43f1e1=new Map();for(const _0x1d3a93 of _0x251f75){const _0x27de93=F(_0x1d3a93);_0x955244['set'](_0x1d3a93,_0x27de93),_0x43f1e1['set'](_0x1d3a93,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x955244,[],_0x43f1e1);}['getData'](_0x2e892c,_0x473fc7){if(this['_lastFrom']===_0x2e892c&&this['_lastTo']<=_0x473fc7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x473fc7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e892c)){const _0x33690e=this['_getPreviousFrom'](_0x2e892c);this['_calculateMetaData'](_0x33690e,_0x2e892c,!0x1);}this['_calculateMetaData'](_0x2e892c,_0x473fc7,!0x0);}return this['_lastFrom']=_0x2e892c,this['_lastTo']=_0x473fc7,this['_getState']();}['loadState'](_0x1b5fbe){this['_reset'](),this['_lastFrom']=_0x1b5fbe['fromVersion'],this['_lastTo']=_0x1b5fbe['toVersion'];for(const _0x97d3e1 in _0x1b5fbe['diffData']){const _0x1cc55a=_0x1b5fbe['diffData'][_0x97d3e1]['attachChange'],_0x18cd44=_0x3a1362(_0x1b5fbe['diffData'][_0x97d3e1]['attributesBefore'])||{},_0x3f5880=this['_makeModelFromViewString'](_0x1b5fbe['diffData'][_0x97d3e1]['deletions']);_0x3f5880['rootName']=_0x97d3e1,_0x3f5880['_isAttached']=!_0x1cc55a||!_0x1cc55a['isAttached'],_0x3f5880['isAttached']=()=>_0x3f5880['_isAttached'],this['_baseRoots']['set'](_0x97d3e1,_0x3f5880),this['_baseRootsAttributes']['set'](_0x97d3e1,_0x18cd44),_0x1cc55a&&this['_touchedRoots']['set'](_0x97d3e1,_0x1cc55a);const _0x3ffecc=this['_makeIdsRoot'](_0x3f5880);this['_baseIdsRoots']['set'](_0x97d3e1,_0x3ffecc);for(const [_0x1c6f1b,_0x418ea8]of _0x3f5880['markers']){if(!_0x1c6f1b['startsWith']('revision:'))continue;const _0x33739c=_0x1c6f1b['split'](':')[0x2];for(const _0x67a421 of _0x418ea8['getWalker']({'singleCharacters':!0x0})){const _0x2576b1=this['_getVidAttributeName'](_0x67a421),_0x3f3e1b='elementEnd'==_0x67a421['type']?_0x67a421['previousPosition']['path']['slice'](0x0,-0x1):_0x67a421['previousPosition']['path'],_0x460e2d=_0x3ffecc['getNodeByPath'](_0x3f3e1b)['getAttribute'](_0x2576b1);this['_touched']['set'](_0x460e2d,{'userId':_0x33739c});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe600a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3779f1=>!this['_touched']['has'](_0x3779f1));let _0x23a66d=0x0;const _0x4f564e=new Map();for(const _0x4783b3 in _0x1b5fbe['diffData']){const _0x2581ff=_0x1b5fbe['diffData'][_0x4783b3]['attachChange'],_0x37a5f4=_0x3a1362(_0x1b5fbe['diffData'][_0x4783b3]['attributesAfter'])||{},_0x46e10d=this['_makeModelFromViewString'](_0x1b5fbe['diffData'][_0x4783b3]['insertions']);_0x46e10d['rootName']=_0x4783b3,_0x46e10d['_isAttached']=!_0x2581ff||_0x2581ff['isAttached'],_0x46e10d['isAttached']=()=>_0x46e10d['_isAttached'],this['_diffRoots']['set'](_0x4783b3,_0x46e10d),this['_diffRootsAttributes']['set'](_0x4783b3,_0x37a5f4);const _0x2264fd=this['_makeIdsRoot'](_0x46e10d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4783b3,_0x2264fd),_0x4f564e['set'](_0x4783b3,_0x46e10d['isAttached']()?_0x37a5f4:{});for(const [_0x2d71d3,_0x4960f3]of _0x46e10d['markers']){if(!_0x2d71d3['startsWith']('revision:'))continue;const _0x1e80fb=_0x2d71d3['split'](':')[0x2];for(const _0x20ccb5 of _0x4960f3['getWalker']({'singleCharacters':!0x0})){const _0x3b4b06=this['_getVidAttributeName'](_0x20ccb5),_0x3d80db=this['_revisionId']++,_0x142b1f='elementEnd'==_0x20ccb5['type']?_0x20ccb5['previousPosition']['path']['slice'](0x0,-0x1):_0x20ccb5['previousPosition']['path'];_0x2264fd['getNodeByPath'](_0x142b1f)['_setAttribute'](_0x3b4b06,_0x3d80db),this['_touched']['set'](_0x3d80db,{'userId':_0x1e80fb});}}for(const _0x123431 of this['editor']['model']['createRangeIn'](_0x46e10d)['getWalker']({'singleCharacters':!0x0})){const _0x173f0e=this['_getVidAttributeName'](_0x123431),_0x564d6b='elementEnd'==_0x123431['type']?_0x123431['previousPosition']['path']['slice'](0x0,-0x1):_0x123431['previousPosition']['path'],_0x1b6c2d=_0x2264fd['getNodeByPath'](_0x564d6b);_0x1b6c2d['getAttribute'](_0x173f0e)>0x0||_0x1b6c2d['_setAttribute'](_0x173f0e,_0xe600a[_0x23a66d++]);}for(const [_0x527f48,_0x13e4f6]of _0x46e10d['markers'])_0x527f48['startsWith']('revision:')||this['_markers']['set'](_0x527f48,_0x13e4f6);}const _0x2d0265=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2d0265),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d0265,0x1));const _0x223484=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x223484),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x223484,0x1));const _0x5997d7=Array['from'](this['_diffRoots'])['map'](([_0x55f121,_0x309d86])=>[_0x55f121,T(_0x309d86)]);this['_saveMetaData'](this['_lastTo'],_0x5997d7,this['_markers'],_0x4f564e);}['_makeModelFromViewString'](_0x3def32){const _0x177a02=JSON['parse'](_0x3def32),_0x4b0e0a=this['editor']['editing']['view']['document'],_0x3c4bcf=new _0x3b27f6(_0x4b0e0a,_0x177a02['map'](_0x977730=>C(_0x977730,this['editor'])));return this['editor']['data']['toModel'](_0x3c4bcf);}['_saveMetaData'](_0x4f1cb8,_0x10f92d,_0x339a20,_0x44756f){const _0x51608a=new Map(_0x10f92d),_0x28033e=new Map(_0x3a1362(_0x44756f)),_0x3e742a=new Map();for(const [_0x34ec28,_0xb9fe1a]of _0x339a20)_0x3e742a['set'](_0x34ec28,{'start':_0xb9fe1a['start']['clone'](),'end':_0xb9fe1a['end']['clone'](),'rootName':_0xb9fe1a['root']['rootName']});this['_savedMetaData']['set'](_0x4f1cb8,{'roots':_0x51608a,'markers':_0x3e742a,'rootsAttributes':_0x28033e});}['_removeMetaData'](_0x530b65){this['_savedMetaData']['delete'](_0x530b65);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x20bf2a,_0xc26486=null){let _0x138543=null;_0x20bf2a['is']('documentFragment')||(_0x138543=new ft(_0x20bf2a['name'],{'vid_start':null===_0xc26486?this['_revisionId']++:_0xc26486++}));const _0x12af5b=[];for(const _0x8c3ff6 of _0x20bf2a['getChildren']())if(_0x8c3ff6['is']('element')){_0x12af5b['push'](this['_makeIdsRoot'](_0x8c3ff6,_0xc26486));const _0x8dd40e=_0x12af5b[_0x12af5b['length']-0x1];null!==_0xc26486&&(_0xc26486=_0x8dd40e['is']('element','$text')?_0x8dd40e['getAttribute']('vid')+0x1:_0x8dd40e['getAttribute']('vid_end')+0x1);}else{for(let _0x330815=0x0;_0x330815<_0x8c3ff6['offsetSize'];_0x330815++)_0x12af5b['push'](new ft('$text',{'vid':null===_0xc26486?this['_revisionId']++:_0xc26486++}));}if(_0x20bf2a['is']('documentFragment')){const _0x3f9732=F(_0x20bf2a['rootName']);return _0x3f9732['_insertChild'](0x0,_0x12af5b),_0x3f9732;}return _0x138543['_setAttribute']('vid_end',null===_0xc26486?this['_revisionId']++:_0xc26486++),_0x138543['_insertChild'](0x0,_0x12af5b),_0x138543;}['_calculateMetaData'](_0x56755c,_0x418cb7,_0x1371a0){this['_reset']();const {roots:_0xb9b7f2,markers:_0xfd217a,rootsAttributes:_0x51e42c}=this['_savedMetaData']['get'](_0x56755c);this['_baseRoots']=new Map(_0xb9b7f2),this['_baseRootsAttributes']=new Map(_0x3a1362(_0x51e42c));for(const [_0x3e3446,_0x368011]of this['_baseRoots'])if('$graveyard'!==_0x3e3446&&(this['_diffRoots']['set'](_0x3e3446,T(_0x368011)),this['_diffRootsAttributes']=new Map(_0x3a1362(_0x51e42c)),_0x1371a0)){const _0x4da89e=this['_revisionId'];this['_idsRoots']['set'](_0x3e3446,this['_makeIdsRoot'](_0x368011)),this['_baseIdsRoots']['set'](_0x3e3446,this['_makeIdsRoot'](_0x368011,_0x4da89e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1371a0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x360b07,_0xaffba6]of _0xfd217a){const _0x52da32=this['_baseRoots']['get'](_0xaffba6['rootName']),_0x185dba=this['_diffRoots']['get'](_0xaffba6['rootName']),_0x24d973=new vt(this['_fixPosition'](_0xaffba6['start'],_0x52da32),this['_fixPosition'](_0xaffba6['end'],_0x52da32)),_0x59ba37=this['_fixRange'](_0x24d973,_0x185dba);_0x52da32['markers']['set'](_0x360b07,_0x24d973),this['_markers']['set'](_0x360b07,_0x59ba37);}this['_applyOperations'](_0x56755c,_0x418cb7,_0x1371a0);}['_applyOperations'](_0x62cdb6,_0x40afb5,_0x3b572b){for(const _0x3e65c9 of this['source']['getOperations'](_0x62cdb6,_0x40afb5))this['_handleOperation'](_0x3e65c9,_0x3b572b);for(const _0x3c0618 of this['_diffRoots']['values']())_0x3c0618['markers']['clear']();for(const [_0x323ecb,_0x42acfd]of this['_markers']){this['_diffRoots']['get'](_0x42acfd['root']['rootName'])['markers']['set'](_0x323ecb,_0x42acfd['clone']());}const _0x19cd78=new Map(),_0x407945=new Map();for(const [_0x282be6,_0x1d98a3]of this['_diffRoots'])_0x19cd78['set'](_0x282be6,T(_0x1d98a3)),_0x407945['set'](_0x282be6,this['_diffRootsAttributes']['get'](_0x282be6));this['_saveMetaData'](_0x40afb5,_0x19cd78,this['_markers'],_0x407945);}['_getPreviousFrom'](_0x5262e5){const _0x5690e8=Array['from'](this['_savedMetaData']['keys']());_0x5690e8['sort']((_0x5a9e5a,_0x41a655)=>_0x5a9e5a-_0x41a655),_0x5690e8['reverse']();for(const _0x28c079 of _0x5690e8)if(_0x28c079<_0x5262e5)return _0x28c079;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4e39a9,_0x39ab1b){const _0x4fa1b9=Array['from'](_0x39ab1b['markers'])['map'](([_0x1eebf1,_0x3523e9])=>[_0x1eebf1,this['_fixRange'](_0x3523e9,_0x4e39a9)]);_0x4e39a9['markers']=new Map(_0x4fa1b9);}['_transformMarkers'](_0x192b89){for(const _0x4d64ee of this['_markers']['values']()){const _0x35a195=_0x4d64ee['getTransformedByOperation'](_0x192b89),_0x2bde03=vt['_createFromRanges'](_0x35a195);_0x4d64ee['start']=_0x2bde03['start'],_0x4d64ee['end']=_0x2bde03['end'];}}['_handleOperation'](_0x542dbb,_0x595079){if('addRoot'!=_0x542dbb['type']&&'detachRoot'!=_0x542dbb['type']){if('insert'==_0x542dbb['type']){const _0x12bb0e=_0x542dbb['position']['root']['rootName'];this['_diffRoots']['has'](_0x12bb0e)||(this['_diffRoots']['set'](_0x12bb0e,F(_0x12bb0e,!0x0)),this['_diffRootsAttributes']['set'](_0x12bb0e,{}),_0x595079&&this['_idsRoots']['set'](_0x12bb0e,F(_0x12bb0e,!0x0)));}else{if('addRootAttribute'==_0x542dbb['type']||'removeRootAttribute'==_0x542dbb['type']||'changeRootAttribute'==_0x542dbb['type'])return void this['_handleRootAttributeOperation'](_0x542dbb);'marker'==_0x542dbb['type']&&this['_handleMarkerOperation'](_0x542dbb);}if('marker'!==_0x542dbb['type']){const _0x4108cb=this['_cloneOperation'](_0x542dbb,this['_diffRoots']);_0x4108cb['_execute'](),this['_transformMarkers'](_0x4108cb);}if(_0x595079)switch(_0x542dbb['type']){case'insert':this['_handleInsertOperation'](_0x542dbb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x542dbb);break;case'merge':this['_handleMergeOperation'](_0x542dbb);break;case'split':this['_handleSplitOperation'](_0x542dbb);}}else this['_handleRootOperation'](_0x542dbb,_0x595079);}['_cloneOperation'](_0x3b8905,_0x33f107){const _0x1afb4b=_0x3b8905['clone']();return _0x1afb4b['_authorId']=_0x3b8905['_authorId'],this['_fixOperation'](_0x1afb4b,_0x33f107),_0x1afb4b;}['_getBaseVids'](_0x5b4ff4){return _0x5b4ff4['map'](_0x3874e7=>{const _0x5ce277=this['_getVidAttributeName'](_0x3874e7);return Number(_0x3874e7['item']['getAttribute'](_0x5ce277));});}['_generateTape'](_0x416e46,_0xdd93f1){if(_0x416e46['is']('element','$text'))_0xdd93f1['push']({'item':_0x416e46,'type':'text'});else{_0x416e46['is']('element')&&_0xdd93f1['push']({'item':_0x416e46,'type':'elementStart'});for(const _0x51fa11 of _0x416e46['getChildren']())this['_generateTape'](_0x51fa11,_0xdd93f1);_0x416e46['is']('element')&&_0xdd93f1['push']({'item':_0x416e46,'type':'elementEnd'});}return _0xdd93f1;}['_getState'](){const _0x59154d=new Map(this['_touched']),_0x364e75=new Map(_0x59154d),_0x2a0700=new Map(),_0xe68eee={'insertions':{},'deletions':{}},_0x1e1784={'insertions':{},'deletions':{}},_0x3350bc=new Map(),_0x338d22=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x338d22['delete']('$graveyard');for(const _0x41475f of _0x338d22){const _0x224e88=this['_diffRoots']['get'](_0x41475f)||F(_0x41475f,!0x1),_0x37e7e0=this['_baseRoots']['get'](_0x41475f)||F(_0x41475f,!0x1);_0x224e88['isAttached']()||_0x37e7e0['isAttached']()?(_0xe68eee['insertions'][_0x41475f]=T(_0x224e88),_0xe68eee['deletions'][_0x41475f]=T(_0x37e7e0),this['_copyMarkers'](_0xe68eee['deletions'][_0x41475f],_0x37e7e0),this['_copyMarkers'](_0xe68eee['insertions'][_0x41475f],_0x224e88),_0x1e1784['insertions'][_0x41475f]=this['_generateTape'](this['_idsRoots']['get'](_0x41475f),[]),_0x1e1784['deletions'][_0x41475f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x41475f)||F(_0x41475f,!0x1),[])):_0x338d22['delete'](_0x41475f);}for(const _0x1849a1 of _0x338d22){const _0x4a8138=_0x1e1784['insertions'][_0x1849a1];for(const _0x2a1cd2 of _0x4a8138){const _0x1fec2d=this['_getVidAttributeName'](_0x2a1cd2),_0x39c8dc=_0x2a1cd2['item']['getAttribute'](_0x1fec2d);_0x364e75['delete'](_0x39c8dc),_0x39c8dc>=this['_startingRevisionId']&&_0x2a0700['set'](_0x39c8dc,_0x59154d['get'](_0x39c8dc));}}for(const _0x3260ab of _0x338d22){const _0x2fe2c3=_0x1e1784['insertions'][_0x3260ab],_0x38320c=this['_getBaseVids'](_0x1e1784['deletions'][_0x3260ab]);let _0x1c4a9f=0x0;for(const _0x3b6b6d of _0x2fe2c3){const _0x20f4b6=this['_getVidAttributeName'](_0x3b6b6d),_0xc65da0=_0x3b6b6d['item']['getAttribute'](_0x20f4b6);if(!_0x2a0700['has'](_0xc65da0)&&!_0x3350bc['has'](_0xc65da0)){if(_0x364e75['has'](_0xc65da0))_0x1c4a9f++;else{if(_0xc65da0!=_0x38320c[_0x1c4a9f]){const _0x1298e2=_0x59154d['get'](_0xc65da0)||_0x59154d['get'](_0x38320c[_0x1c4a9f]);for(;_0xc65da0!=_0x38320c[_0x1c4a9f];)_0x364e75['has'](_0x38320c[_0x1c4a9f])||(_0x3350bc['set'](_0x38320c[_0x1c4a9f],_0x1298e2),_0x59154d['set'](_0x38320c[_0x1c4a9f],_0x1298e2)),_0x1c4a9f++;}_0x1c4a9f++;}}}}for(const _0x153e6c of _0x338d22){const _0x2a5b13=_0x1e1784['insertions'][_0x153e6c];for(const _0x524e19 of _0x2a5b13){const _0x3eefef=this['_getVidAttributeName'](_0x524e19),_0x2c3f69=_0x524e19['item']['getAttribute'](_0x3eefef);if(_0x3350bc['has'](_0x2c3f69)){const _0x152abb=_0x3350bc['get'](_0x2c3f69);_0x364e75['has'](_0x2c3f69)||_0x364e75['set'](_0x2c3f69,{..._0x152abb}),_0x2a0700['set'](_0x2c3f69,{..._0x152abb});}}}for(const _0x4d3f27 of _0x364e75['keys']())_0x4d3f27>=this['_startingRevisionId']&&_0x364e75['delete'](_0x4d3f27);const _0x424130=new Map();for(const _0x297293 of _0x338d22){let _0x3e3472=_0x1e1784['insertions'][_0x297293];for(const _0x790620 of _0x3e3472)if(_0x790620['item']['is']('element','tableCell')){const _0x96e487=this['_getVidAttributeName'](_0x790620),_0x50f8d0=_0x790620['item']['getAttribute'](_0x96e487);if(_0x2a0700['has'](_0x50f8d0)){const _0x44e948=_0x790620['item']['parent']['parent']['getAttribute']('vid_start'),_0x2dccf4=_0x424130['get'](_0x44e948)||new Set();_0x2dccf4['add'](_0x2a0700['get'](_0x50f8d0)['userId']),_0x424130['set'](_0x44e948,_0x2dccf4);}}_0x3e3472=_0x1e1784['deletions'][_0x297293];for(const _0x536323 of _0x3e3472)if(_0x536323['item']['is']('element','tableCell')){const _0x379c1e=this['_getVidAttributeName'](_0x536323),_0x298661=_0x536323['item']['getAttribute'](_0x379c1e);if(_0x364e75['has'](_0x298661)){const _0x15e5d5=_0x536323['item']['parent']['parent']['getAttribute']('vid_start'),_0x20e1aa=_0x424130['get'](_0x15e5d5)||new Set();_0x20e1aa['add'](_0x364e75['get'](_0x298661)['userId']),_0x424130['set'](_0x15e5d5,_0x20e1aa);}}for(const _0x3009c7 of _0x424130['keys']())(_0x2a0700['has'](_0x3009c7)||_0x364e75['has'](_0x3009c7))&&_0x424130['delete'](_0x3009c7);}for(const _0x20ad3a of _0x338d22){const _0x2c7fb9=_0x1e1784['insertions'][_0x20ad3a];let _0x39e741=null,_0x173399=null;for(const _0x2efa1e of _0x2c7fb9){const _0x51e01a=this['_getVidAttributeName'](_0x2efa1e),_0x430c42=_0x2efa1e['item']['getAttribute'](_0x51e01a),_0x2d636d=_0x424130['get'](_0x430c42);_0x2d636d&&'elementStart'==_0x2efa1e['type']&&(_0x39e741=Array['from'](_0x2d636d)[0x0],_0x173399=_0x2efa1e['item']['getAttribute']('vid_end')),_0x39e741&&(_0x364e75['set'](_0x430c42,{'userId':_0x39e741}),_0x2a0700['set'](_0x430c42,{'userId':_0x39e741})),_0x430c42==_0x173399&&(_0x39e741=null,_0x173399=null);}}const _0x5deb02={},_0x2a9c4d=new Set();for(const _0x1a34c4 of _0x338d22){const _0x3e6887=_0xe68eee['deletions'][_0x1a34c4],_0x2a3d62=_0xe68eee['insertions'][_0x1a34c4];for(const {userId:_0x44affd}of this['_touchedMarkers']['values']())null!==_0x44affd&&_0x2a9c4d['add'](_0x44affd);for(const {userId:_0x52a448}of this['_touchedRoots']['values']())null!==_0x52a448&&_0x2a9c4d['add'](_0x52a448);this['_markChanges'](_0x2a3d62,_0x1e1784['insertions'][_0x1a34c4],_0x2a0700,'insertion',_0x2a9c4d),this['_markChanges'](_0x3e6887,_0x1e1784['deletions'][_0x1a34c4],_0x364e75,'deletion',_0x2a9c4d),_0x5deb02[_0x1a34c4]={'insertions':this['_prepareViewToSave'](_0x2a3d62),'deletions':this['_prepareViewToSave'](_0x3e6887),'attachChange':this['_touchedRoots']['get'](_0x1a34c4)||null,'attributesBefore':_0x3a1362(this['_baseRootsAttributes']['get'](_0x1a34c4))||{},'attributesAfter':_0x3a1362(this['_diffRootsAttributes']['get'](_0x1a34c4))};}return{'diffData':_0x5deb02,'authorsIds':Array['from'](_0x2a9c4d)};}['_processRootBeforeSave'](_0x13c776){for(const [,_0x406085]of _0x13c776['markers']){const _0x3ae0dc=_0x406085['start']['getAncestors']()['filter'](_0x842015=>'tableCell'==_0x842015['name']);for(const _0x262efa of _0x3ae0dc)0x1==_0x262efa['childCount']&&_0x262efa['getChild'](0x0)['is']('element','paragraph')&&_0x262efa['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1a246c){this['_processRootBeforeSave'](_0x1a246c);const _0x447fe4=this['editor']['data']['toView'](_0x1a246c,{}),_0x20f22d=Array['from'](_0x447fe4['getChildren']())['map'](_0x1cb29c=>this['_getViewJson'](_0x1cb29c));return JSON['stringify'](_0x20f22d);}['_getViewJson'](_0x45250b){if(_0x45250b['is']('$text'))return _0x45250b['data'];{const _0x27081b=_0x45250b;return{'type':Object['keys'](P)['find'](_0xc0e29a=>_0x45250b instanceof P[_0xc0e29a]),'name':_0x27081b['name'],'attributes':Array['from'](_0x27081b['getAttributes']()),'children':Array['from'](_0x27081b['getChildren']())['map'](_0x57b2bd=>this['_getViewJson'](_0x57b2bd))};}}['_markChanges'](_0x55f9b1,_0x358096,_0x56afe1,_0x53b2bb,_0x260a28){let _0x339475=null,_0x17c8d2=null,_0x288516=0x0;const _0x164c6c=this['editor']['model'];for(let _0x3bb91a=0x0;_0x3bb91a<_0x358096['length'];_0x3bb91a++){const _0x390632=this['_getVidAttributeName'](_0x358096[_0x3bb91a]),_0x40ad0b=_0x358096[_0x3bb91a]['item']['getAttribute'](_0x390632),_0x3b3927=_0x56afe1['get'](_0x40ad0b),_0x48e5c6=_0x3bb91a==_0x358096['length']-0x1;(!_0x339475&&_0x3b3927&&(_0x339475=_0x3b3927,_0x17c8d2=_0x358096[_0x3bb91a]),_0x339475&&(!_0x3b3927||_0x3b3927['userId']!=_0x339475['userId']))&&(_0x330e6a(_0x3b3927,B(_0x17c8d2,_0x55f9b1,_0x164c6c),B(_0x358096[_0x3bb91a],_0x55f9b1,_0x164c6c)),_0x339475=_0x3b3927||null,_0x17c8d2=_0x3b3927?_0x358096[_0x3bb91a]:null),_0x339475&&_0x48e5c6&&_0x330e6a(_0x3b3927,B(_0x17c8d2,_0x55f9b1,_0x164c6c),J(_0x358096[_0x3bb91a],_0x55f9b1,_0x164c6c));}function _0x330e6a(_0x419b82,_0xce456f,_0xfcded1){const _0x125888=_0x339475['userId'],_0x9b1281='revision:'+_0x53b2bb+':'+_0x125888+':'+_0x288516++,_0x2b25b1=_0x164c6c['createRange'](_0xce456f,_0xfcded1);_0x55f9b1['markers']['set'](_0x9b1281,_0x2b25b1),null!==_0x125888&&_0x260a28['add'](_0x125888);}}['_getVidAttributeName'](_0x5a39e5){switch(_0x5a39e5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4ac1b4,_0x3ef2b7){_0x4ac1b4['baseVersion']=null;for(const _0x3ce900 in _0x4ac1b4){const _0xa6d24f=_0x4ac1b4[_0x3ce900];if(_0xa6d24f instanceof gt){const _0x3dbefe=_0x3ef2b7['get'](_0xa6d24f['root']['rootName']);_0x4ac1b4[_0x3ce900]=this['_fixPosition'](_0xa6d24f,_0x3dbefe);}if(_0xa6d24f instanceof vt){const _0x53904c=_0x3ef2b7['get'](_0xa6d24f['root']['rootName']);_0x4ac1b4[_0x3ce900]=this['_fixRange'](_0xa6d24f,_0x53904c);}'root'===_0x3ce900&&(_0x4ac1b4['root']=_0x3ef2b7['get'](_0x4ac1b4['root']['rootName']));}}['_fixRange'](_0xf6035c,_0x401876){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf6035c['start'],_0x401876),this['_fixPosition'](_0xf6035c['end'],_0x401876));}['_fixPosition'](_0x583e7d,_0x424fdb){return this['editor']['model']['createPositionFromPath'](_0x424fdb,_0x583e7d['path'],_0x583e7d['stickiness']);}['_handleInsertOperation'](_0x31c6b6){const _0x131e5a=this['_idsRoots']['get'](_0x31c6b6['position']['root']['rootName']),_0x59b5c8=this['_fixPosition'](_0x31c6b6['position'],_0x131e5a),_0x16fb78=null===_0x31c6b6['_authorId']?null:_0x31c6b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x524131=_0x59b5c8['parent'],_0x2ecc82=this['_revisionId'],_0x5acd3a=[];for(const _0x3752c3 of _0x31c6b6['nodes'])if(_0x3752c3['is']('element'))_0x5acd3a['push'](this['_makeIdsRoot'](_0x3752c3));else{for(let _0xb1b52b=0x0;_0xb1b52b<_0x3752c3['offsetSize'];_0xb1b52b++)_0x5acd3a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x12ff22=this['_revisionId'];for(let _0x1d83f7=_0x2ecc82;_0x1d83f7<_0x12ff22;_0x1d83f7++)this['_touched']['set'](_0x1d83f7,{'userId':_0x16fb78});_0x524131['_insertChild'](_0x59b5c8['offset'],_0x5acd3a);}['_handleMoveOperation'](_0x1b81b1){(_0x1b81b1=this['_cloneOperation'](_0x1b81b1,this['_idsRoots']))['_execute']();const _0x5e52e8=null===_0x1b81b1['_authorId']?null:_0x1b81b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46d351=_0x1b81b1['getMovedRangeStart'](),_0x199eac=_0x46d351['parent'],_0x44a92d=_0x46d351['offset'];!function _0x11978e(_0x372e11,_0x6d520b,_0x5e7ba3,_0x3d4896){for(let _0x18c1eb=_0x5e7ba3;_0x18c1eb<_0x3d4896;_0x18c1eb++){const _0x5b0ebc=_0x6d520b['getChild'](_0x18c1eb);_0x5b0ebc['is']('element','$text')?_0x372e11['set'](_0x5b0ebc['getAttribute']('vid'),{'userId':_0x5e52e8}):(_0x372e11['set'](_0x5b0ebc['getAttribute']('vid_start'),{'userId':_0x5e52e8}),_0x11978e(_0x372e11,_0x5b0ebc,0x0,_0x5b0ebc['childCount']),_0x372e11['set'](_0x5b0ebc['getAttribute']('vid_end'),{'userId':_0x5e52e8}));}}(this['_touched'],_0x199eac,_0x44a92d,_0x44a92d+_0x1b81b1['howMany']);}['_handleMergeOperation'](_0x595bd2){const _0x56a146=null===(_0x595bd2=this['_cloneOperation'](_0x595bd2,this['_idsRoots']))['_authorId']?null:_0x595bd2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x154a88=_0x595bd2['targetPosition']['parent'],_0x5812ac=_0x595bd2['sourcePosition']['parent'],_0x3ec77f=_0x154a88['getAttribute']('vid_end'),_0x8093b7=_0x5812ac['getAttribute']('vid_start');_0x154a88['_setAttribute']('vid_end',_0x5812ac['getAttribute']('vid_end')),_0x5812ac['_setAttribute']('vid_end',_0x3ec77f),this['_touched']['set'](_0x8093b7,{'userId':_0x56a146}),this['_touched']['set'](_0x3ec77f,{'userId':_0x56a146}),_0x595bd2['_execute']();}['_handleSplitOperation'](_0x118531){const _0x23dc91=null===(_0x118531=this['_cloneOperation'](_0x118531,this['_idsRoots']))['_authorId']?null:_0x118531['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49e194=_0x118531['graveyardPosition'],_0x4ab93d=_0x118531['splitPosition']['parent'];_0x118531['_execute']();const _0x1c360a=_0x4ab93d['getAttribute']('vid_end'),_0x482146=_0x118531['insertionPosition']['nodeAfter'];if(_0x49e194){const _0x4f6cb5=_0x482146['getAttribute']('vid_end'),_0xf62857=_0x4ab93d['getAttribute']('vid_end');_0x4ab93d['_setAttribute']('vid_end',_0x4f6cb5),_0x482146['_setAttribute']('vid_end',_0xf62857),this['_touched']['set'](_0x4ab93d['getAttribute']('vid_end'),{'userId':_0x23dc91}),this['_touched']['set'](_0x482146['getAttribute']('vid_start'),{'userId':_0x23dc91});}else{const _0x490760=this['_revisionId']++,_0x22ab79=this['_revisionId']++;_0x4ab93d['_setAttribute']('vid_end',_0x490760),_0x482146['_setAttribute']('vid_start',_0x22ab79),_0x482146['_setAttribute']('vid_end',_0x1c360a),this['_touched']['set'](_0x490760,{'userId':_0x23dc91}),this['_touched']['set'](_0x22ab79,{'userId':_0x23dc91});}}['_handleMarkerOperation'](_0x51b0c0){if(!_0x51b0c0['affectsData'])return;const _0x1257c7=(_0x51b0c0=this['_cloneOperation'](_0x51b0c0,this['_diffRoots']))['oldRange']?_0x51b0c0['oldRange']['root']:null,_0x194791=_0x51b0c0['newRange']?_0x51b0c0['newRange']['root']:null;_0x1257c7&&this['_markers']['delete'](_0x51b0c0['name']),_0x194791&&this['_markers']['set'](_0x51b0c0['name'],_0x51b0c0['newRange']['clone']());const _0x12cd5d=null===_0x51b0c0['_authorId']?null:_0x51b0c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x387b9c=_0x51b0c0['name'];if(!this['_touchedMarkers']['has'](_0x387b9c))return void this['_touchedMarkers']['set'](_0x387b9c,{'range':_0x51b0c0['oldRange'],'userId':_0x12cd5d});const _0x5c121f=this['_touchedMarkers']['get'](_0x387b9c),_0x3e9b98=_0x5c121f['range'],_0x1bfa4e=_0x51b0c0['newRange'];null==_0x3e9b98&&null==_0x1bfa4e||_0x3e9b98&&_0x1bfa4e&&_0x3e9b98['isEqual'](_0x1bfa4e)?this['_touchedMarkers']['delete'](_0x51b0c0['name']):_0x5c121f['userId']=_0x12cd5d;}['_handleRootOperation'](_0x4e7b14,_0x514c76){this['_diffRoots']['has'](_0x4e7b14['rootName'])?this['_diffRoots']['get'](_0x4e7b14['rootName'])['_isAttached']=_0x4e7b14['isAdd']:(this['_diffRoots']['set'](_0x4e7b14['rootName'],F(_0x4e7b14['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e7b14['rootName'],{}),_0x514c76&&this['_idsRoots']['set'](_0x4e7b14['rootName'],F(_0x4e7b14['rootName'],!0x0)));const _0x52a525=null===_0x4e7b14['_authorId']?null:_0x4e7b14['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xaa1b22=this['_touchedRoots']['get'](_0x4e7b14['rootName']);_0xaa1b22&&_0xaa1b22['userId']===_0x52a525?this['_touchedRoots']['delete'](_0x4e7b14['rootName']):this['_touchedRoots']['set'](_0x4e7b14['rootName'],{'userId':_0x52a525,'isAttached':_0x4e7b14['isAdd']});}['_handleRootAttributeOperation'](_0x5b9d5c){const _0x482743=this['_diffRootsAttributes']['get'](_0x5b9d5c['root']['rootName']);null===_0x5b9d5c['newValue']?delete _0x482743[_0x5b9d5c['key']]:_0x482743[_0x5b9d5c['key']]=_0x5b9d5c['newValue'];}}function T(_0x52f0f6){const _0x45ce99=F(_0x52f0f6['rootName'],_0x52f0f6['isAttached']());for(const _0x18d374 of _0x52f0f6['getChildren']()){const _0x755517=_0x18d374['_clone'](!0x0);_0x45ce99['_appendChild'](_0x755517);}return _0x45ce99;}function F(_0x32f69b,_0x4138a8=!0x0){const _0x10fc6a=new mt();return _0x10fc6a['rootName']=_0x32f69b,_0x10fc6a['_isAttached']=_0x4138a8,_0x10fc6a['isAttached']=()=>_0x10fc6a['_isAttached'],_0x10fc6a;}function B(_0x3487dd,_0x15009c,_0x30d3ed){const _0x4ac238='elementEnd'==_0x3487dd['type']?_0x30d3ed['createPositionAt'](_0x3487dd['item'],'end'):_0x30d3ed['createPositionBefore'](_0x3487dd['item']);return _0x30d3ed['createPositionFromPath'](_0x15009c,_0x4ac238['path'],_0x4ac238['stickiness']);}function J(_0x152eb6,_0x195808,_0x4e9581){const _0x3b82f3='elementStart'==_0x152eb6['type']?_0x4e9581['createPositionAt'](_0x152eb6['item'],0x0):_0x4e9581['createPositionAfter'](_0x152eb6['item']);return _0x4e9581['createPositionFromPath'](_0x195808,_0x3b82f3['path'],_0x3b82f3['stickiness']);}class ns extends _0x4bf032{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x29579e,_0x205bb0){super(_0x29579e),this['focusTracker']=new _0x5430cf(),this['keystrokes']=new _0x104d62(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x205bb0),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'](),_0x2011e7({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b8c8=_0x1371a8=>_0x1371a8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b8c8),this['keystrokes']['set']('arrowleft',_0x2b8c8),this['keystrokes']['set']('arrowup',_0x2b8c8),this['keystrokes']['set']('arrowdown',_0x2b8c8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4dc34a){this['revisionNameInputView']['fieldView']['element']['value']=_0x4dc34a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x523d02){const _0x5b21bb=new nt(this['locale'],_0x340949),_0x30226f=_0x5b21bb['fieldView'];_0x30226f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x506123=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x523d02&&(_0x506123+='\x20('+m(this['locale'],'optional')+')'),(_0x5b21bb['label']=_0x506123,_0x30226f['on']('input',()=>{this['revisionNameInputValue']=_0x30226f['element']['value']['trim']();}),_0x5b21bb);}}class u extends _0x4fdbea{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x276703=this['editor'],_0x23bc14=_0x276703['plugins']['get']('RevisionTracker');_0x276703['ui']['componentFactory']['add']('revisionHistory',_0x325b28=>{const _0x18c15f=_0x37364d(_0x325b28),_0xc0c6e6=_0x18c15f['panelView']['children'],_0x48fda0=new te(_0x325b28),_0x43b79e=new _0x11e6d9(_0x325b28),_0x1fe773=new _0x46e8ac(_0x325b28),_0x21b495=new _0x11e6d9(_0x325b28),_0x191561=new _0x46e8ac(_0x325b28);return _0x18c15f['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x23bc14,'isEnabled',_0x276703,'isReadOnly',(_0x484a42,_0x212b85,_0x43bd69)=>_0x484a42&&_0x212b85&&!_0x43bd69),_0x18c15f['buttonView']['set']({'icon':_0x3d2fb2['history'],'label':m(_0x325b28,'Revision\x20history'),'tooltip':!0x0}),_0x1fe773['set']({'label':m(_0x325b28,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fe773['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x23bc14,'isEnabled',_0x276703,'isReadOnly',(_0x1325df,_0x1da602,_0x1277ab)=>_0x1325df&&_0x1da602&&!_0x1277ab),_0x1fe773['on']('execute',()=>this['_showDialog']()),_0x191561['set']({'label':m(_0x325b28,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x191561['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x276703,'isReadOnly',(_0x176545,_0xbf11d9)=>_0x176545&&!_0xbf11d9),_0x191561['on']('execute',()=>{_0x276703['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x18c15f['isOpen']=!0x1,_0x276703['editing']['view']['focus']();}),_0x43b79e['children']['add'](_0x1fe773),_0x21b495['children']['add'](_0x191561),_0x48fda0['role']='menu',_0x48fda0['items']['addMany']([_0x43b79e,_0x21b495]),_0xc0c6e6['add'](_0x48fda0),_0x18c15f;}),_0x276703['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2525a4=this['editor'],_0x4648ce=_0x2525a4['locale'],_0x25de45=new _0x59f7ee(_0x4648ce),_0x319214=new _0x10ae4d(_0x4648ce);_0x25de45['buttonView']['set']({'icon':_0x3d2fb2['history'],'label':m(_0x4648ce,'Revision\x20history')});const _0x1d53bd=new _0x2b9bd2(_0x4648ce,_0x25de45),_0x40a100=new _0x29e628(_0x4648ce);_0x40a100['set']({'label':m(_0x4648ce,'Save\x20current\x20revision')}),_0x40a100['delegate']('execute')['to'](_0x25de45),_0x40a100['on']('execute',()=>{this['_showDialog']();}),_0x1d53bd['children']['add'](_0x40a100),_0x319214['items']['add'](_0x1d53bd);const _0x4161e3=new _0x2b9bd2(_0x4648ce,_0x25de45),_0x475def=new _0x29e628(_0x4648ce);return _0x475def['set']({'label':m(_0x4648ce,'Open\x20revision\x20history')}),_0x475def['delegate']('execute')['to'](_0x25de45),_0x475def['on']('execute',()=>{_0x2525a4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4161e3['children']['add'](_0x475def),_0x319214['items']['add'](_0x4161e3),_0x25de45['panelView']['children']['add'](_0x319214),_0x25de45;}['_showDialog'](){const _0x2adf6d=this['editor'],_0x3669f9=_0x2adf6d['locale'],_0x345267=_0x2adf6d['plugins']['get']('Dialog'),_0x571fc2=_0x2adf6d['plugins']['get']('RevisionTracker');function _0x2a3fe8(_0x5aff16){_0x2adf6d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5aff16['revisionName']?_0x5aff16['revisionNameInputView']['errorText']=m(_0x3669f9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2adf6d['plugins']['get'](l)['saveRevision']({'name':_0x5aff16['revisionName']}),_0x345267['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a3fe8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x345267['show']({'id':'revisionSave','title':m(_0x3669f9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2adf6d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x345267['hide']()},{'label':m(_0x2adf6d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1248b6){_0x1248b6['bind']('isEnabled')['to'](_0x571fc2,'isReady',_0x571fc2,'isEnabled',_0x2adf6d,'isReadOnly',(_0x4dd686,_0x2ed1b1,_0x81819a)=>_0x4dd686&&_0x2ed1b1&&!_0x81819a);},'onExecute':()=>_0x2a3fe8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2f324b=this['editor'],_0x4d4813=_0x2f324b['locale'];this['_saveRevisionFormView']=new ns(_0x4d4813,_0x2f324b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4bf032{['changeId'];['_model'];constructor(_0x1b62a5,_0x5a1ccc){super(_0x1b62a5),this['_model']=_0x5a1ccc,this['changeId']=_0x5a1ccc['id'];const _0x52e49f=this['bindTemplate'],_0x4466de=m(_0x1b62a5,_0x5a1ccc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a1ccc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a1ccc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52e49f['to']('type',_0x1c48b8=>'ck-revision-change__'+_0x1c48b8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4466de}]},{'text':'\x20'+_0x5a1ccc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x7eba63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a1157){super(),this['id']=_0x4a1157['id']||_0x46c15b(),this['author']=_0x4a1157['author'],this['type']=_0x4a1157['type'],this['data']=_0x4a1157['data']||{},this['rootName']=_0x4a1157['rootName'],this['set']('createdAt',_0x4a1157['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x234608,_0x3fc9d0){this['newRevisionId']=_0x234608,this['oldRevisionId']=_0x3fc9d0,this['changes']=new _0x15164d();}['_setChanges'](_0x4a7e28){for(const _0x523a66 of _0x4a7e28)this['changes']['add'](_0x523a66);}}const Y={'c':_0x3324aa,'a':_0x57dd33,'e':_0x413bc2,'r':_0x1716cf,'u':_0x5cdf1c};class d extends _0x4fdbea{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x55d644,_0x131a58,j];}constructor(_0x49ecff){super(_0x49ecff),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x544f31,_0x17cd09,_0x278ead)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x23604a=>{for(const _0x24ce59 of this['editor']['editing']['view']['document']['roots'])_0x278ead?_0x23604a['removeClass']('ck-editor__editable__overlay',_0x24ce59):_0x23604a['addClass']('ck-editor__editable__overlay',_0x24ce59);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x169ac0=>null!==_0x169ac0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x353d55,_0x25e9b8,_0x536c33)=>_0x353d55&&_0x536c33?_0x25e9b8['changes']['getIndex'](_0x536c33):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x43b80e,_0x371826)=>_0x43b80e?_0x371826['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x131a58);}['init'](){const _0x2acb81=this['editor'],_0x5744df=new yt(_0x2acb81,{'direction':'backward'}),_0x5b4c13=new yt(_0x2acb81,{'direction':'forward'});(_0x2acb81['commands']['add']('showPreviousChange',_0x5744df),_0x2acb81['commands']['add']('showNextChange',_0x5b4c13),_0x2acb81['commands']['add']('restoreRevision',new _t(_0x2acb81)),this['on']('change:numberOfChanges',()=>{_0x5744df['refresh'](),_0x5b4c13['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2acb81['enableReadOnlyMode']('revision-viewer'),_0x2acb81['plugins']['has']('WidgetToolbarRepository'))&&_0x2acb81['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x216a61){await this['loadRevisionData'](_0x216a61);const _0x439ab1={};for(const _0x26f8a2 in _0x216a61['diffData']){if(_0x216a61['diffData'][_0x26f8a2]['attachChange']&&!_0x216a61['diffData'][_0x26f8a2]['attachChange']['isAttached'])continue;const _0x2c5231=this['_removeRevisionMarkers'](JSON['parse'](_0x216a61['diffData'][_0x26f8a2]['insertions'])),_0x3d5950=this['editor']['editing']['view']['document'],_0x18fec8=new _0x3b27f6(_0x3d5950,_0x2c5231['map'](_0x5a6a2d=>this['_getViewObj'](_0x5a6a2d)));this['editor']['data']['processor']['useFillerType']('marked'),_0x439ab1[_0x26f8a2]=this['editor']['data']['processor']['toData'](_0x18fec8),this['editor']['data']['processor']['useFillerType']('default');}return _0x439ab1;}async['getRevisionRootsAttributes'](_0x2f9b73){await this['loadRevisionData'](_0x2f9b73);const _0x5dd74c={};for(const _0x16ae43 in _0x2f9b73['diffData'])_0x2f9b73['diffData'][_0x16ae43]['attachChange']&&!_0x2f9b73['diffData'][_0x16ae43]['attachChange']['isAttached']||(_0x5dd74c[_0x16ae43]=_0x2f9b73['diffData'][_0x16ae43]['attributesAfter']||{});return _0x5dd74c;}['_removeRevisionMarkers'](_0x255507){return(_0x255507=_0x255507['filter'](_0x301cac=>!_0x301cac['name']||'revision-start'!==_0x301cac['name']&&'revision-end'!==_0x301cac['name']))['forEach'](_0x59da6b=>{'string'!=typeof _0x59da6b&&(_0x59da6b['children']=this['_removeRevisionMarkers'](_0x59da6b['children']),_0x59da6b['attributes']=_0x59da6b['attributes']['filter'](_0x351399=>!_0x351399[0x0]['startsWith']('data-revision-')));}),_0x255507;}async['compare'](_0x142636,_0x30f853,_0xdae57a=!0x1){if(!this['isEnabled'])return;const _0x69a996=this['diff'],_0x2ada0f=this['repository'],_0x8ebe34='string'==typeof _0x142636?_0x2ada0f['getRevision'](_0x142636):_0x142636,_0x4bfcff='string'==typeof _0x30f853?_0x2ada0f['getRevision'](_0x30f853):_0x30f853,_0x26e847=_0x8ebe34['id'],_0x4811de=_0x4bfcff?_0x4bfcff['id']:null;if(!_0xdae57a&&this['diff']&&this['diff']['newRevisionId']===_0x26e847&&this['diff']['oldRevisionId']===_0x4811de)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x26e847,_0x4811de);const _0x594d37=this['_getRevisionsRange'](_0x8ebe34,_0x4bfcff,!0x0)['map'](_0x2aedcf=>this['loadRevisionData'](_0x2aedcf));return _0x594d37['push'](new Promise(_0xf6f792=>{setTimeout(_0xf6f792,0x14);})),Promise['all'](_0x594d37)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x462a5b=this['_getDiff'](_0x26e847,_0x4811de);for(const _0x2975cc of _0x462a5b['changes'])this['_changeIdToChange']['set'](_0x2975cc['id'],_0x2975cc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x47bc31=>{for(const _0x13e5ae of this['editor']['model']['document']['getRootNames']())_0x47bc31['detachRoot'](_0x13e5ae);for(const _0x16b10e of Object['keys'](_0x462a5b['model'])){const _0x5dc90b=_0x47bc31['addRoot'](_0x16b10e);for(const _0x119a3f of Object['keys'](_0x462a5b['attributes'][_0x16b10e]))_0x47bc31['setAttribute'](_0x119a3f,_0x462a5b['attributes'][_0x16b10e][_0x119a3f],_0x5dc90b);_0x47bc31['insert'](_0x462a5b['model'][_0x16b10e],_0x5dc90b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x462a5b['changes'])),this['isReady']=!0x0;})['catch'](_0x2a22dd=>{console['error'](_0x2a22dd),this['_cleanUp'](),_0x69a996&&(this['diff']=_0x69a996),this['isReady']=!0x0;});}['addRevisionData'](_0x37afa5,_0x5a5eb5){const _0x15bb3c=this['repository']['createRevision'](_0x37afa5);return _0x15bb3c['on']('_update',(_0x4fe9d0,_0x549f49,_0x2a5889)=>_0x5a5eb5(_0x549f49,_0x2a5889,_0x15bb3c)),this['repository']['addRevision'](_0x15bb3c),_0x15bb3c;}['loadRevisionData'](_0x372237){if(!_0x372237||_0x372237['diffData'])return Promise['resolve']();{const _0x55d7e9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x55d7e9,'revisionId':_0x372237['id']})['then'](_0x4ef5ac=>{_0x372237['_update']({'diffData':_0x4ef5ac['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x28c653=>{for(const _0x195c08 of this['editor']['model']['document']['getRootNames']())_0x28c653['detachRoot'](_0x195c08);});}['_sortAndFilterDiffChanges'](_0x88bc6){const _0x30c5f6=[],_0x1fa3bc=new Map();for(const _0x2e1ebd of this['editor']['model']['document']['getRootNames']()){const _0x3b2d55=this['editor']['editing']['view']['getDomRoot'](_0x2e1ebd);if(!_0x3b2d55)continue;const _0x5301e4=_0x3b2d55['getClientRects']()['item'](0x0);_0x5301e4&&(_0x30c5f6['push'](_0x2e1ebd),_0x1fa3bc['set'](_0x2e1ebd,_0x5301e4));}return _0x30c5f6['sort']((_0x49ef2,_0x505b72)=>{const _0x1909b7=_0x1fa3bc['get'](_0x49ef2),_0x154aed=_0x1fa3bc['get'](_0x505b72);return _0x1909b7['y']-_0x154aed['y']||_0x1909b7['x']-_0x154aed['x'];}),(_0x88bc6=_0x88bc6['filter'](_0x685ddc=>_0x30c5f6['includes'](_0x685ddc['rootName'])))['sort']((_0x281a3e,_0x2ecef2)=>_0x30c5f6['indexOf'](_0x281a3e['rootName'])-_0x30c5f6['indexOf'](_0x2ecef2['rootName'])),_0x88bc6;}['_makeTape'](_0x15bd4c){const _0x49c9d0=Array['from'](_0x15bd4c['markers'])['filter'](([_0x371ead,_0xafef05])=>_0x371ead['startsWith']('revision:')&&!_0xafef05['isCollapsed']),_0x59a554=Array['from'](this['editor']['model']['createRangeIn'](_0x15bd4c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x49c9d0['length'])for(const _0x30d82a of _0x59a554){const [_0x2fb6dd,_0x247687]=_0x49c9d0[0x0],[,_0x788961,_0x506fa3]=_0x2fb6dd['split'](':');if(_0x247687['end']['isEqual'](_0x30d82a['nextPosition'])&&_0x49c9d0['shift'](),(_0x30d82a['previousPosition']['isEqual'](_0x247687['start'])||_0x30d82a['previousPosition']['isAfter'](_0x247687['start']))&&('insertion'==_0x788961?_0x30d82a['isAdded']={'userId':_0x506fa3}:'deletion'==_0x788961&&(_0x30d82a['isRemoved']={'userId':_0x506fa3})),0x0==_0x49c9d0['length'])break;}return _0x59a554;}['_refreshStartEndIndex'](_0xb4ad7a){const _0x433d89=new Map();for(let _0x3de708=0x0;_0x3de708<_0xb4ad7a['length'];_0x3de708++)'text'===_0xb4ad7a[_0x3de708]['type']?(_0xb4ad7a[_0x3de708]['item']['startIndex']=_0x3de708,_0xb4ad7a[_0x3de708]['item']['endIndex']=_0x3de708):('elementStart'===_0xb4ad7a[_0x3de708]['type']?_0xb4ad7a[_0x3de708]['item']['startIndex']=_0x3de708:'elementEnd'===_0xb4ad7a[_0x3de708]['type']&&(_0xb4ad7a[_0x3de708]['item']['endIndex']=_0x3de708),_0x433d89['set'](_0xb4ad7a[_0x3de708]['id'],_0x3de708));for(const _0x17d8ce of _0x433d89['values']())'elementStart'===_0xb4ad7a[_0x17d8ce]['type']?_0xb4ad7a[_0x17d8ce]['item']['endIndex']=_0x433d89['get'](_0xb4ad7a[_0x17d8ce]['pairId']):'elementEnd'===_0xb4ad7a[_0x17d8ce]['type']&&(_0xb4ad7a[_0x17d8ce]['item']['startIndex']=_0x433d89['get'](_0xb4ad7a[_0x17d8ce]['pairId']));}['_processTape'](_0x4e6390){for(let _0x2d02b7=0x0;_0x2d02b7<_0x4e6390['length'];_0x2d02b7++){if('elementStart'===_0x4e6390[_0x2d02b7]['type'])_0x4e6390[_0x2d02b7]['item']['startIndex']=_0x2d02b7;else{if('elementEnd'===_0x4e6390[_0x2d02b7]['type']){_0x4e6390[_0x2d02b7]['item']['endIndex']=_0x2d02b7;const _0x4a7b68=_0x4e6390[_0x2d02b7]['item']['startIndex'];_0x4e6390[_0x4a7b68]['pairId']=_0x4e6390[_0x2d02b7]['id'],_0x4e6390[_0x2d02b7]['pairId']=_0x4e6390[_0x4a7b68]['id'];}else _0x4e6390[_0x2d02b7]['item']['startIndex']=_0x2d02b7,_0x4e6390[_0x2d02b7]['item']['endIndex']=_0x2d02b7,_0x4e6390[_0x2d02b7]['pairId']=null;}_0x4e6390[_0x2d02b7]['markersStart']||(_0x4e6390[_0x2d02b7]['markersStart']=[],_0x4e6390[_0x2d02b7]['markersEnd']=[]);}}['_markInsertions'](_0x4e9904,_0x3d3f24){const _0x144702=_0x4e9904['filter'](_0x1a7e50=>!_0x1a7e50['isAdded']);for(let _0x151338=0x0;_0x151338<_0x3d3f24['length'];_0x151338++)_0x3d3f24[_0x151338]['isAdded']&&(_0x144702[_0x151338]['isAdded']=_0x3d3f24[_0x151338]['isAdded']);}['_makeModelFromViewString'](_0x42bf0c){const _0x5a692a=JSON['parse'](_0x42bf0c),_0x4c6629=this['editor']['editing']['view']['document'],_0x41e12b=new _0x3b27f6(_0x4c6629,_0x5a692a['map'](_0x5dcd43=>this['_getViewObj'](_0x5dcd43)));return this['editor']['data']['toModel'](_0x41e12b);}['_getViewObj'](_0x195447){const _0x213a7b=this['editor']['editing']['view']['document'];if('string'==typeof _0x195447)return new _0xc623b1(_0x213a7b,_0x195447);{const _0x1d87b6=_0x195447['children']['map'](_0x1d324e=>this['_getViewObj'](_0x1d324e));return new(Y[_0x195447['type']]||_0x3c6c19)(_0x213a7b,_0x195447['name'],_0x195447['attributes'],_0x1d87b6);}}['_getDiff'](_0x50cdff,_0x5d4f54=null){const _0x58e153=this['repository']['getRevision'](_0x50cdff),_0x4318c0=_0x5d4f54?this['repository']['getRevision'](_0x5d4f54):null,_0x19ffc1=this['_getRevisionsRange'](_0x58e153,_0x4318c0),_0x143b42=_0x19ffc1[_0x19ffc1['length']-0x1],_0x3e423a=new Map(),_0x1f1538={'model':{},'attributes':{},'changes':[]},_0x399ba0=new Set(),_0x37d996=new Map();for(let _0x4b2d6b=_0x19ffc1['length']-0x1;_0x4b2d6b>=0x0;_0x4b2d6b--){const _0x592f3d=_0x19ffc1[_0x4b2d6b];for(const _0x198e25 of Object['keys'](_0x592f3d['diffData']))if(_0x592f3d['diffData'][_0x198e25]['attachChange']){const _0x72cdbc=_0x592f3d['diffData'][_0x198e25]['attachChange'];_0x72cdbc['isAttached']?(_0x399ba0['add'](_0x198e25),_0x37d996['has'](_0x198e25)&&_0x37d996['get'](_0x198e25)['userId']==_0x72cdbc['userId']?_0x37d996['delete'](_0x198e25):_0x37d996['set'](_0x198e25,_0x72cdbc)):_0x37d996['has'](_0x198e25)?(_0x399ba0['delete'](_0x198e25),_0x37d996['delete'](_0x198e25)):(_0x399ba0['add'](_0x198e25),_0x37d996['set'](_0x198e25,_0x72cdbc));}else _0x399ba0['add'](_0x198e25);}for(const _0x1b4d67 of _0x399ba0){const _0x46755f=_0x37d996['has'](_0x1b4d67)&&!_0x37d996['get'](_0x1b4d67)['isAttached'];let _0x2f5737=_0x46755f?_0x19ffc1['length']-0x1:0x0;const _0x3c1ebc=_0x46755f?-0x1:0x1;for(;_0x19ffc1[_0x2f5737];){const _0x324dbf=_0x19ffc1[_0x2f5737];if(_0x324dbf['diffData'][_0x1b4d67]){const _0x4c37c4=_0x46755f?_0x324dbf['diffData'][_0x1b4d67]['attributesBefore']:_0x324dbf['diffData'][_0x1b4d67]['attributesAfter'];_0x1f1538['attributes'][_0x1b4d67]=_0x4c37c4?_0x3a1362(_0x4c37c4):{};break;}_0x2f5737+=_0x3c1ebc;}}for(const _0x36f23d of _0x19ffc1){_0x36f23d['model']={};for(const _0x3a7457 of _0x36f23d['authors'])_0x3e423a['set'](_0x3a7457['id'],_0x3a7457);for(const _0x2d5f37 of _0x399ba0){const _0x18eece=_0x36f23d['diffData'][_0x2d5f37]?_0x36f23d['diffData'][_0x2d5f37]['insertions']:'[]',_0x1aafd7=_0x36f23d['diffData'][_0x2d5f37]?_0x36f23d['diffData'][_0x2d5f37]['deletions']:'[]';_0x36f23d['model'][_0x2d5f37]={'insertions':this['_makeModelFromViewString'](_0x18eece),'deletions':this['_makeModelFromViewString'](_0x1aafd7)};}}for(const _0x11cd2d of _0x399ba0){let _0x123f5c=null,_0x1cf8de=0x0;const _0x3cdafe=new Map(Array['from'](_0x58e153['model'][_0x11cd2d]['insertions']['markers'])['filter'](([_0x1f1ccc])=>!_0x1f1ccc['startsWith']('revision:')));let _0x5b79a1=0x0;for(const _0x1466b7 of _0x19ffc1){const _0x2d89b8=this['_makeTape'](_0x1466b7['model'][_0x11cd2d]['insertions']);_0x1466b7==_0x58e153?(_0x123f5c=_0x2d89b8,_0x1cf8de=_0x123f5c['length'],_0x123f5c['forEach'](_0x326532=>{_0x326532['id']=_0x5b79a1++;}),this['_processTape'](_0x123f5c)):this['_markInsertions'](_0x123f5c,_0x2d89b8);const _0x418578=_0x123f5c['filter'](_0x5c8371=>!_0x5c8371['isAdded'])['map'](_0xa0c015=>_0xa0c015['id']);let _0x17900d=0x0;const _0x11adc6=this['_makeTape'](_0x1466b7['model'][_0x11cd2d]['deletions']);_0x11adc6['forEach'](_0x25ebfc=>{_0x25ebfc['isRemoved']?_0x25ebfc['id']=_0x1cf8de++:_0x25ebfc['id']=_0x418578[_0x17900d++];}),this['_processTape'](_0x11adc6),this['_setDistance'](_0x123f5c,'isAdded'),this['_setDistance'](_0x11adc6,'isRemoved'),_0x1466b7==_0x58e153&&this['_markMarkers'](_0x123f5c,_0x3cdafe),_0x123f5c=this['_joinTapes'](_0x123f5c,_0x11adc6),this['_refreshStartEndIndex'](_0x123f5c),this['_setDistance'](_0x123f5c,'isRemoved');}_0x123f5c=_0x123f5c['filter'](_0x582cc5=>!(_0x582cc5['isAdded']&&_0x582cc5['isRemoved']));const _0x4931db=new Map(_0x143b42['model'][_0x11cd2d]['deletions']['markers']),_0x3fb836=new Set(_0x3cdafe['keys']());for(const _0x1799e9 of _0x4931db['keys']())_0x3fb836['delete'](_0x1799e9);this['_markSuggestions'](_0x123f5c,_0x3fb836),this['_fixObsoleteTags'](_0x123f5c),_0x123f5c=this['_removeMissingPairs'](_0x123f5c),_0x123f5c=this['_markMismatchedRemovedTags'](_0x123f5c),_0x123f5c=this['_removeUnsupportedChanges'](_0x123f5c);const {root:_0x1f09b7,changes:_0x29bf77}=this['_makeModelFromTape'](_0x123f5c,_0x3e423a,_0x11cd2d);_0x1f1538['model'][_0x11cd2d]=_0x1f09b7;const _0x1ea09=_0x37d996['get'](_0x11cd2d);if(_0x1ea09){const _0xd6bd6b=_0x3e423a['get'](_0x1ea09['userId']),_0x1645d7=new r({'author':_0xd6bd6b,'type':_0x1ea09['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11cd2d});_0x29bf77['unshift'](_0x1645d7),_0x1f1538['attributes'][_0x11cd2d]['revisionHistoryAttachChange']=_0x1645d7['id'];}_0x1f1538['changes']=_0x1f1538['changes']['concat'](_0x29bf77);}return _0x1f1538;}['_markMarkers'](_0x52a056,_0x1eea47){for(let _0x57b5e3=0x0;_0x57b5e3<_0x52a056['length'];_0x57b5e3++)for(const [_0x46921f,_0x34bc04]of _0x1eea47)_0x34bc04['start']['isEqual'](_0x52a056[_0x57b5e3]['previousPosition'])&&_0x52a056[_0x57b5e3]['markersStart']['push'](_0x46921f),_0x34bc04['end']['isEqual'](_0x52a056[_0x57b5e3]['nextPosition'])&&_0x52a056[_0x57b5e3]['markersEnd']['push'](_0x46921f);}['_joinTapes'](_0x4eb849,_0x2d819a){let _0x497900=[],_0x392bb9=0x0,_0x59a69c=0x0;for(;_0x392bb9<_0x4eb849['length']||_0x59a69c<_0x2d819a['length'];){const _0x1b14fb=_0x4eb849[_0x392bb9]||{},_0x474790=_0x2d819a[_0x59a69c]||{};if(_0x1b14fb['id']==_0x474790['id'])_0x392bb9++,_0x59a69c++,_0x497900['push'](_0x1b14fb);else{if(_0x474790['isRemoved']&&_0x1b14fb['isAdded']){const {commonTape:_0xc87ad0,iEnd:_0x55fd96,jEnd:_0xd5d586}=this['_threeWayMerge'](_0x4eb849,_0x392bb9,_0x2d819a,_0x59a69c);_0x497900=_0x497900['concat'](_0xc87ad0),_0x392bb9=_0x55fd96,_0x59a69c=_0xd5d586;}else _0x474790['isRemoved']?(_0x59a69c++,_0x497900['push'](_0x474790)):(_0x392bb9++,_0x497900['push'](_0x1b14fb));}}return _0x497900;}['_markSuggestions'](_0x3f195e,_0x4f1091){const _0x4004f8=[];for(let _0x5beee6=0x0;_0x5beee6<_0x3f195e['length'];_0x5beee6++){for(let _0x2543b7=0x0;_0x2543b7<_0x3f195e[_0x5beee6]['markersStart']['length'];_0x2543b7++){const _0xbbaae9=_0x3f195e[_0x5beee6]['markersStart'][_0x2543b7];if(!_0x4f1091['has'](_0xbbaae9))continue;const {group:_0x4e62e6,type:_0x14e58a,authorId:_0x4dadb7}=_0x14f214(_0xbbaae9);'revision-suggestion'!=_0x4e62e6||'insertion'!=_0x14e58a&&'deletion'!=_0x14e58a||(_0x4004f8['unshift']({'type':_0x14e58a,'name':_0xbbaae9,'userId':_0x4dadb7}),_0x3f195e[_0x5beee6]['markersStart']['splice'](_0x2543b7,0x1),_0x2543b7--);}_0x1c742c(_0x3f195e[_0x5beee6]);for(let _0x3f0a54=0x0;_0x3f0a54<_0x3f195e[_0x5beee6]['markersEnd']['length'];_0x3f0a54++){const _0x119185=_0x3f195e[_0x5beee6]['markersEnd'][_0x3f0a54];if(!_0x4f1091['has'](_0x119185))continue;const {group:_0x82a7e,type:_0x67d0f}=_0x14f214(_0x119185);if('revision-suggestion'!=_0x82a7e||'insertion'!=_0x67d0f&&'deletion'!=_0x67d0f)continue;_0x3f195e[_0x5beee6]['markersEnd']['splice'](_0x3f0a54,0x1),_0x3f0a54--;const _0x30ea87=_0x4004f8['findIndex'](_0x33a342=>_0x33a342['name']==_0x119185);_0x30ea87>-0x1&&_0x4004f8['splice'](_0x30ea87,0x1);}}function _0x14f214(_0x333df4){const _0xfa6f01=_0x333df4['split'](':');return{'group':_0xfa6f01[0x0],'type':_0xfa6f01[0x1],'subType':_0xfa6f01['length']>=0x5?_0xfa6f01[0x2]:null,'id':_0xfa6f01['length']<0x5?_0xfa6f01[0x2]:_0xfa6f01[0x3],'authorId':_0xfa6f01['length']<0x5?_0xfa6f01[0x3]:_0xfa6f01[0x4],'markerCount':0x6==_0xfa6f01['length']?_0xfa6f01[0x5]:null};}function _0x1c742c(_0x1acfd5){for(let _0x2e00a1=0x0;_0x2e00a1<_0x4004f8['length'];_0x2e00a1++){if(_0x1acfd5['isAdded']&&'insertion'==_0x4004f8[_0x2e00a1]['type'])return _0x1acfd5['isAddSuggestion']=_0x4004f8[_0x2e00a1],void delete _0x1acfd5['isAdded'];if(!_0x1acfd5['isAdded']&&!_0x1acfd5['isRemoved']&&'deletion'==_0x4004f8[_0x2e00a1]['type'])return void(_0x1acfd5['isRemoveSuggestion']=_0x4004f8[_0x2e00a1]);}}}['_setDistance'](_0x522d54,_0x4130b8){let _0x32e099=0x0,_0x4de0a6=!0x1;const _0x11b90c=new Map();for(const _0x45cdb3 of _0x522d54)_0x45cdb3[_0x4130b8]?_0x4de0a6&&(_0x32e099++,_0x4de0a6=!0x1):(_0x32e099++,_0x4de0a6=!0x0),_0x11b90c['set'](_0x45cdb3['id'],_0x32e099);for(let _0x2e682c=0x0;_0x2e682c<_0x522d54['length'];_0x2e682c++){if('isRemoved'==_0x4130b8&&_0x522d54[_0x2e682c]['isAdded']||'isAdded'==_0x4130b8&&_0x522d54[_0x2e682c]['isRemoved'])continue;if('text'==_0x522d54[_0x2e682c]['type']){_0x522d54[_0x2e682c]['distance']=0x0;continue;}const _0x475c1d=_0x11b90c['get'](_0x522d54[_0x2e682c]['pairId']),_0x3521ce=_0x11b90c['get'](_0x522d54[_0x2e682c]['id']);_0x522d54[_0x2e682c]['distance']=_0x475c1d-_0x3521ce;}}['_getRevisionsRange'](_0x300ea4,_0x512749,_0x409948=!0x1){const _0xe3b393=[];let _0x376607=this['repository']['getIndex'](_0x300ea4),_0xc47abd=this['repository']['getIndex'](_0x512749);for(-0x1==_0xc47abd&&(_0xc47abd=this['repository']['_revisions']['length'],_0x409948=!0x1);_0x376607<_0xc47abd;)_0xe3b393['push'](this['repository']['getRevision'](_0x376607)),_0x376607++;return _0x409948&&_0xe3b393['push'](this['repository']['getRevision'](_0x376607)),_0xe3b393;}['_threeWayMerge'](_0x452a0d,_0x55e3bd,_0x5360a7,_0x54c44a){const _0x2a5d25=this['editor']['model']['schema'];let _0x2efa26=_0x55e3bd;for(;_0x452a0d[_0x2efa26]&&_0x452a0d[_0x2efa26]['isAdded'];)_0x2efa26++;let _0x5c3b4e=_0x54c44a;for(;_0x5360a7[_0x5c3b4e]&&_0x5360a7[_0x5c3b4e]['isRemoved'];)_0x5c3b4e++;_0x1cf275(_0x452a0d,_0x55e3bd,_0x2efa26),_0x1cf275(_0x5360a7,_0x54c44a,_0x5c3b4e);const _0x403421=_0x5360a7['slice'](_0x54c44a,_0x5c3b4e)['concat'](_0x452a0d['slice'](_0x55e3bd,_0x2efa26));return _0x403421['sort']((_0x319995,_0x485c49)=>_0x319995['side']!=_0x485c49['side']?_0x319995['side']-_0x485c49['side']:_0x319995['level']!=_0x485c49['level']?_0x319995['level']-_0x485c49['level']:_0x319995['distance']!=_0x485c49['distance']?_0x485c49['distance']-_0x319995['distance']:!!_0x319995['isAdded']!=!!_0x485c49['isAdded']?-0x1==_0x319995['side']||0x0==_0x319995['side']?_0x319995['isAdded']?-0x1:0x1:_0x319995['isAdded']?0x1:-0x1:_0x319995['index']-_0x485c49['index']),{'commonTape':_0x403421,'iEnd':_0x2efa26,'jEnd':_0x5c3b4e};function _0x1cf275(_0x5aef88,_0x2259ae,_0x32b7f4){let _0x3eca49=-0x1,_0xcf01a3=Number['POSITIVE_INFINITY'],_0x2205f7=!0x0;for(let _0x38d257=_0x2259ae;_0x38d257<_0x32b7f4;_0x38d257++)if(_0x2a5d25['isInline'](_0x5aef88[_0x38d257]['item'])||(_0x2205f7=!0x1),_0x5aef88[_0x38d257]['item']['startIndex']<_0x2259ae&&(_0x3eca49=_0x38d257),_0x5aef88[_0x38d257]['item']['endIndex']>=_0x32b7f4){_0xcf01a3=_0x38d257;break;}_0x2205f7&&(_0x3eca49=_0x32b7f4-0x1);for(let _0xfc9061=_0x2259ae;_0xfc9061<_0x32b7f4;_0xfc9061++)_0x5aef88[_0xfc9061]['side']=_0xfc9061<=_0x3eca49?-0x1:_0xfc9061<_0xcf01a3?0x0:0x1,_0x5aef88[_0xfc9061]['index']=_0xfc9061;let _0x30756b=0x0;for(let _0xab8700=_0x2259ae;_0xab8700<=_0x3eca49;_0xab8700++)0x0==_0x5aef88[_0xab8700]['distance']?_0x5aef88[_0xab8700]['level']=_0x30756b:(_0x30756b++,_0x5aef88[_0xab8700]['level']=_0x30756b,_0x30756b++);for(let _0x9e88e7=_0x2259ae;_0x9e88e7<_0x32b7f4;_0x9e88e7++)0x0==_0x5aef88[_0x9e88e7]['side']&&(_0x5aef88[_0x9e88e7]['level']=_0x30756b);_0x30756b=0x0;for(let _0x289b99=_0x32b7f4-0x1;_0x289b99>=_0xcf01a3;_0x289b99--)0x0==_0x5aef88[_0x289b99]['distance']?_0x5aef88[_0x289b99]['level']=_0x30756b:(_0x30756b--,_0x5aef88[_0x289b99]['level']=_0x30756b,_0x30756b--);}}['_fixObsoleteTags'](_0x41305a){const _0x110900=new Map(),_0x4dfa12=this['editor']['model']['schema'];for(let _0x4ab151=0x1;_0x4ab151<_0x41305a['length'];_0x4ab151++){let _0x523009,_0x5b72a8,_0xde1d3f;const _0x1b51cc=_0x41305a[_0x4ab151],_0x1cca51=_0x41305a[_0x4ab151-0x1];if('text'==_0x1b51cc['type'])continue;if(_0x1b51cc['type']!=_0x1cca51['type'])continue;if(!_0x4dfa12['isBlock'](_0x1cca51['item'])||_0x4dfa12['isLimit'](_0x1cca51['item']))continue;if(!_0x4dfa12['isBlock'](_0x1b51cc['item'])||_0x4dfa12['isLimit'](_0x1b51cc['item']))continue;if((_0x41305a[_0x4ab151]['isAdded']||_0x41305a[_0x4ab151]['isAddSuggestion'])&&_0x41305a[_0x4ab151-0x1]['isRemoved'])_0x523009=_0x41305a[_0x4ab151],_0x5b72a8=_0x41305a[_0x4ab151-0x1],_0xde1d3f=_0x4ab151-0x1;else{if(!_0x41305a[_0x4ab151]['isRemoved']||!_0x41305a[_0x4ab151-0x1]['isAdded']&&!_0x41305a[_0x4ab151-0x1]['isAddSuggestion'])continue;_0x523009=_0x41305a[_0x4ab151-0x1],_0x5b72a8=_0x41305a[_0x4ab151],_0xde1d3f=_0x4ab151;}const _0x126b5e=_0x523009['level']==_0x5b72a8['level'],_0x358d86=Math['abs'](_0x523009['level'])<Math['abs'](_0x5b72a8['level'])&&0x0==_0x5b72a8['distance'];(_0x126b5e||_0x358d86)&&(_0x110900['set'](_0x5b72a8['id'],_0x523009['id']),_0x41305a['splice'](_0xde1d3f,0x1),_0x4ab151--,_0x523009['isAdded']=!0x1);}for(let _0x35f474=0x0;_0x35f474<_0x41305a['length'];_0x35f474++)_0x110900['has'](_0x41305a[_0x35f474]['pairId'])&&(_0x41305a[_0x35f474]['pairId']=_0x110900['get'](_0x41305a[_0x35f474]['pairId']));}['_removeMissingPairs'](_0x1891bd){const _0x9cf937=new Set(_0x1891bd['map'](_0x31ee35=>_0x31ee35['id']));for(let _0xb8d6dc=0x0;_0xb8d6dc<_0x1891bd['length'];_0xb8d6dc++)_0x9cf937['has'](_0x1891bd[_0xb8d6dc]['pairId'])||0x0==_0x1891bd[_0xb8d6dc]['distance']||(_0x1891bd[_0xb8d6dc]['isIncorrect']=!0x0);return _0x1891bd['filter'](_0x55a8c0=>!_0x55a8c0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1d7189){const _0x370920=new Set();for(let _0x435607=0x0;_0x435607<_0x1d7189['length'];_0x435607++){if(_0x370920['has'](_0x1d7189[_0x435607]['id'])&&_0x1d7189[_0x435607]['isRemoved']&&(_0x1d7189[_0x435607]['isIncorrect']=!0x0),_0x1d7189[_0x435607]['isIncorrect'])continue;if(0x0==_0x1d7189[_0x435607]['distance'])continue;if('elementStart'!=_0x1d7189[_0x435607]['type'])continue;if(null==_0x1d7189[_0x435607]['pairId'])continue;let _0x40bdf9=_0x435607+0x1,_0x5b1582=0x0;for(;_0x1d7189[_0x40bdf9]['id']!=_0x1d7189[_0x435607]['pairId'];)'elementStart'==_0x1d7189[_0x40bdf9]['type']?_0x5b1582++:'elementEnd'==_0x1d7189[_0x40bdf9]['type']&&_0x5b1582--,_0x40bdf9++;if(0x0!=_0x5b1582){if(_0x1d7189[_0x435607]['isRemoved'])_0x1d7189[_0x435607]['isIncorrect']=!0x0;else{for(;_0x40bdf9!=_0x435607;)_0x1d7189[_0x40bdf9]['isRemoved']&&0x0!=_0x1d7189[_0x40bdf9]['distance']&&(_0x1d7189[_0x40bdf9]['isIncorrect']=!0x0,_0x370920['add'](_0x1d7189[_0x40bdf9]['pairId'])),_0x40bdf9--;}}}return _0x1d7189['filter'](_0x31ceb2=>!_0x31ceb2['isIncorrect']);}['_removeUnsupportedChanges'](_0x116db9){const _0x2c991e=this['editor']['model']['schema'];for(let _0xde8dd2=0x0;_0xde8dd2<_0x116db9['length'];_0xde8dd2++){if(!(_0x116db9[_0xde8dd2]['isAdded']||_0x116db9[_0xde8dd2]['isAddSuggestion']||_0x116db9[_0xde8dd2]['isRemoved']||_0x116db9[_0xde8dd2]['isRemoveSuggestion']))continue;if(0x0==_0x116db9[_0xde8dd2]['distance'])continue;const _0x3363a3=_0x116db9[_0xde8dd2]['item'];_0x2c991e['isBlock'](_0x3363a3)||_0x2c991e['isLimit'](_0x3363a3)||(_0x116db9[_0xde8dd2]['isAdded']&&delete _0x116db9[_0xde8dd2]['isAdded'],_0x116db9[_0xde8dd2]['isAddSuggestion']&&delete _0x116db9[_0xde8dd2]['isAddSuggestion'],_0x116db9[_0xde8dd2]['isRemoveSuggestion']&&delete _0x116db9[_0xde8dd2]['isRemoveSuggestion'],_0x116db9[_0xde8dd2]['isRemoved']&&(_0x116db9[_0xde8dd2]['isIncorrect']=!0x0));}return _0x116db9['filter'](_0x3755b6=>!_0x3755b6['isIncorrect']);}['_makeModelFromTape'](_0x20de54,_0xdd1fdd,_0x4b3c30){const _0xf8f2c4=new mt(),_0x527a55=[],_0x2274de=new Map(),_0x5df55a=this['editor']['model'],_0x3fe5b4=_0x5df55a['schema'],_0x2228bd=[_0xf8f2c4],_0x28c2e8={},_0x1644cc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56b84b=null;const _0x12d48d=[0x0];for(let _0x490905=0x0;_0x490905<_0x20de54['length'];_0x490905++)if('elementStart'===_0x20de54[_0x490905]['type']){_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d);const _0x37474a=new ft(_0x20de54[_0x490905]['item']['name'],_0x20de54[_0x490905]['item']['getAttributes']());_0x2228bd[0x0]['_appendChild'](_0x37474a),_0x12d48d['push'](0x0),_0x2228bd['unshift'](_0x37474a),_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d);}else'elementEnd'===_0x20de54[_0x490905]['type']?(_0x2228bd['shift'](),_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d),_0x12d48d['pop'](),_0x12d48d[_0x12d48d['length']-0x1]++,_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d)):(_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d),_0x56b84b?_0x56b84b['_data']+=_0x20de54[_0x490905]['item']['data']:_0x56b84b=new wt(_0x20de54[_0x490905]['item']['data'],_0x20de54[_0x490905]['item']['getAttributes']()),_0x20de54[_0x490905+0x1]&&'text'===_0x20de54[_0x490905+0x1]['type']&&_0x24d9d3(_0x56b84b,_0x20de54[_0x490905+0x1]['item'])||(_0x2228bd[0x0]['_appendChild'](_0x56b84b),_0x56b84b=null),_0x12d48d[_0x12d48d['length']-0x1]+=_0x20de54[_0x490905]['item']['offsetSize'],_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d));for(let _0x30357b=0x0;_0x30357b<_0x20de54['length'];_0x30357b++){const _0x4c6244=_0x20de54[_0x30357b]['previousPosition'],_0x36012e=_0x20de54[_0x30357b]['nextPosition'];for(const _0x1f9129 of _0x20de54[_0x30357b]['markersStart'])_0x2274de['set'](_0x1f9129,{'start':_0x4c6244,'end':null});_0x9b79f7('isRemoveSuggestion',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isAddSuggestion',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isRemoved',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isAdded',_0x30357b,_0x4c6244,_0x36012e);for(const _0x3afb75 of _0x20de54[_0x30357b]['markersEnd']){_0x2274de['get'](_0x3afb75)['end']=_0x36012e;}}for(const [_0x2bc25a,_0x1a232a]of _0x2274de){const _0x427408=this['editor']['model']['createRange'](_0x1a232a['start'],_0x1a232a['end']);_0xf8f2c4['markers']['set'](_0x2bc25a,_0x427408);}return _0x527a55['sort']((_0x4c0b21,_0x3d109c)=>{const _0x1400b2=_0xf8f2c4['markers']['get']('revision:'+_0x4c0b21['id']),_0x35b0ee=_0xf8f2c4['markers']['get']('revision:'+_0x3d109c['id']);return _0x1400b2['start']['isBefore'](_0x35b0ee['start'])?-0x1:_0x1400b2['start']['isAfter'](_0x35b0ee['start'])?0x1:_0x1400b2['end']['isBefore'](_0x35b0ee['end'])?-0x1:_0x1400b2['end']['isAfter'](_0x35b0ee['end'])?0x1:'add'===_0x4c0b21['type']?-0x1:0x1;}),{'root':_0xf8f2c4,'changes':_0x527a55};function _0x9b79f7(_0x24d600,_0x8b6552,_0x2b7329,_0xd73323){const _0x3348de=!!_0x20de54[_0x8b6552][_0x24d600],_0x839c07=_0x3348de?_0x20de54[_0x8b6552][_0x24d600]['userId']:null,_0x3392d4=_0x8b6552===_0x20de54['length']-0x1,_0x314a17=_0x1644cc[_0x24d600][0x0],_0xff87df=_0x3fe5b4['isObject'](_0x20de54[_0x8b6552]['item']);!_0x28c2e8[_0x24d600]&&_0x3348de?_0x28c2e8[_0x24d600]={'start':_0x2b7329,'tapeItem':_0x20de54[_0x8b6552],'userId':_0x839c07,'type':_0x24d600}:_0x28c2e8[_0x24d600]&&!_0x3348de?(_0x28c2e8[_0x24d600]['end']=_0x2b7329,_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]=null):_0x28c2e8[_0x24d600]&&_0x3348de&&_0x28c2e8[_0x24d600]['userId']!==_0x839c07&&(_0x28c2e8[_0x24d600]['end']=_0x2b7329,_0x314a17&&_0x314a17['userId']===_0x28c2e8[_0x24d600]['userId']||_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]={'start':_0x2b7329,'tapeItem':_0x20de54[_0x8b6552],'userId':_0x839c07,'type':_0x24d600}),_0x28c2e8[_0x24d600]&&_0xff87df&&('elementStart'!==_0x20de54[_0x8b6552]['type']||_0x314a17&&_0x314a17['userId']===_0x839c07||_0x1644cc[_0x24d600]['unshift']({'userId':_0x839c07,'object':_0x20de54[_0x8b6552]['item'],'change':_0x28c2e8[_0x24d600]}),'elementEnd'===_0x20de54[_0x8b6552]['type']&&_0x314a17&&_0x314a17['object']===_0x20de54[_0x8b6552]['item']&&(_0x1644cc[_0x24d600]['shift'](),_0x28c2e8[_0x24d600]=_0x314a17['change'])),_0x28c2e8[_0x24d600]&&_0x3392d4&&(_0x28c2e8[_0x24d600]['end']=_0xd73323,_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]=null);}function _0x186382({start:_0x4679c3,end:_0x16660e,tapeItem:_0xf3e08d,userId:_0x5ae5c5,type:_0x312246}){const _0x265186=_0xf3e08d['item'],_0x28f37c=_0x5df55a['schema']['isBlock'](_0x265186)&&!_0x5df55a['schema']['isLimit'](_0x265186),_0x4d64d9=_0x4679c3['nodeAfter']==_0x16660e['parent']&&_0x16660e['isAtStart'];if(_0x28f37c&&_0x4d64d9)return;const _0x4dd79d=_0x5df55a['createRange'](_0x4679c3,_0x16660e),_0x383c66=_0xdd1fdd['get'](_0x5ae5c5),_0x22e77f=new r({'author':_0x383c66,'type':'isAdded'==_0x312246||'isAddSuggestion'==_0x312246?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x312246||'isRemoveSuggestion'==_0x312246},'createdAt':new Date(),'rootName':_0x4b3c30});_0x527a55['push'](_0x22e77f),_0xf8f2c4['markers']['set']('revision:'+_0x22e77f['id'],_0x4dd79d);}function _0x24d9d3(_0x2561f2,_0x19d312){const _0x4e6e90=_0x2561f2['getAttributes'](),_0x591044=_0x19d312['getAttributes']();for(const _0x5db4f9 of _0x4e6e90){if(_0x5db4f9[0x1]!==_0x19d312['getAttribute'](_0x5db4f9[0x0]))return!0x1;_0x591044['next']();}return _0x591044['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x458f10=>{const _0x270c6c=_0x458f10['markerName']['split'](':')[0x1],_0x712939=this['_getChangeFromId'](_0x270c6c);if(!_0x712939)return null;const _0x1d03d4='add'==_0x712939['type']?'insertion':'deletion',_0x86a9c5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1d03d4];return _0x712939['data']['isSuggestion']&&_0x86a9c5['push']('ck-suggestion-marker-'+_0x1d03d4+'-new'),this['activeChange']==_0x712939&&_0x86a9c5['push']('ck-suggestion-marker--active'),{'classes':_0x86a9c5,'attributes':{'data-change-id':_0x270c6c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3929d8=>{_0x3929d8['on']('element:pre',(_0x1124fb,_0x539f6b,_0x5319e9)=>{const _0x564d3c=_0x539f6b['viewItem']['getChild'](0x0);if(!_0x564d3c||!_0x564d3c['is']('element','code'))return;if(!_0x5319e9['consumable']['consume'](_0x564d3c,{'attributes':['vid_start','vid_end']}))return;const _0x544bf6=_0x539f6b['modelRange']['start']['nodeAfter'];_0x5319e9['writer']['setAttribute']('vid_start',_0x564d3c['getAttribute']('vid_start'),_0x544bf6),_0x5319e9['writer']['setAttribute']('vid_end',_0x564d3c['getAttribute']('vid_end'),_0x544bf6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x54f363=>{_0x54f363['on']('element',(_0x4d65be,_0x111a87,_0x4e787d)=>{if(!_0x4e787d['consumable']['consume'](_0x111a87['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x111a87['modelRange']['isCollapsed'])return;const _0x3556a8=_0x111a87['modelRange']['start']['nodeAfter'];_0x3556a8['hasAttribute']('vid_start')||_0x3556a8['hasAttribute']('vid')||(_0x4e787d['writer']['setAttribute']('vid_start',_0x111a87['viewItem']['getAttribute']('vid_start'),_0x3556a8),_0x4e787d['writer']['setAttribute']('vid_end',_0x111a87['viewItem']['getAttribute']('vid_end'),_0x3556a8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5670d2=>_0x5670d2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x20f045,[,_0x476a3d])=>{['vid_start','vid_end','vid']['includes'](_0x476a3d)&&(_0x20f045['return']=!0x0,_0x20f045['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4b4694=>{_0x4b4694['on']('attribute:vid',(_0x66b836,_0x4aa299,_0x3a74fd)=>{if('\x20'!=_0x4aa299['item']['data']||_0x4aa299['item']['parent']['maxOffset']>0x1)return;if(!_0x3a74fd['consumable']['consume'](_0x4aa299['item'],_0x66b836['name']))return;const _0x499313=_0x3a74fd['writer'],_0x324b1d=_0x3a74fd['mapper']['toViewRange'](_0x4aa299['range']);_0x499313['wrap'](_0x324b1d,_0x499313['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21c3ef){const _0x4c9a63=_0x21c3ef['plugins']['get']('RevisionViewer');return(_0x3b0159,_0x37cb32,_0x57896d)=>{const _0x379ebf=_0x37cb32['markerName']['split'](':')[0x1],_0xe0cc4b=_0x4c9a63['_getChangeFromId'](_0x379ebf);if(!_0xe0cc4b)return null;const _0xb35ffd='add'==_0xe0cc4b['type']?'split':'merge';if(!_0x57896d['consumable']['test'](_0x37cb32['markerRange'],_0x3b0159['name']))return;const _0x2dd28d=_0x37cb32['markerRange']['getWalker'](),_0x417297=_0x37cb32['markerRange']['start'],_0x38880e=_0x21c3ef['model']['schema'];let _0x36ce0d=null,_0x8c2127=null,_0x2204b7=!0x1,_0x2b54f3=!0x1;for(const _0x549374 of _0x2dd28d){const _0x305352=_0x549374['item'];_0x2204b7=_0x2204b7||_0x38880e['isContent'](_0x305352);const _0x52f82c=_0x57896d['mapper']['toViewElement'](_0x305352);if(_0x52f82c&&_0x52f82c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x549374['type']&&(_0x38880e['isBlock'](_0x305352)&&!_0x38880e['isLimit'](_0x305352)&&(_0x305352['nextSibling']||_0x417297['isAtEnd']?_0x36ce0d&&_0x36ce0d['parent']==_0x305352||(_0x36ce0d=_0x305352,_0x457fd6(_0x549374['previousPosition']),_0x2b54f3=!0x0):_0x8c2127=_0x8c2127||_0x549374['previousPosition']));}function _0x457fd6(_0x591e70){const _0x128139=_0x57896d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb35ffd}),_0x407a9e=_0x57896d['mapper']['toViewPosition'](_0x591e70);_0xe0cc4b['data']['isSuggestion']&&_0x57896d['writer']['addClass']('ck-suggestion-marker-'+_0xb35ffd+'-new',_0x128139),_0x4c9a63['activeChange']==_0xe0cc4b&&_0x57896d['writer']['addClass']('ck-suggestion-marker--active',_0x128139),_0x57896d['writer']['insert'](_0x407a9e,_0x128139),_0x57896d['mapper']['bindElementToMarker'](_0x128139,_0x37cb32['markerName']);}_0x2204b7||_0x2b54f3||!_0x8c2127||_0x457fd6(_0x8c2127);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b6fa0,_0x38ca4b,_0x28ac7b)=>{const _0x2871a2=_0x28ac7b['mapper']['markerNameToElements'](_0x38ca4b['markerName']);if(_0x2871a2){for(const _0x5acd53 of _0x2871a2)(_0x5acd53['hasClass']('ck-suggestion-marker-split')||_0x5acd53['hasClass']('ck-suggestion-marker-merge'))&&(_0x28ac7b['mapper']['unbindElementFromMarkerName'](_0x5acd53,_0x38ca4b['markerName']),_0x28ac7b['writer']['remove'](_0x5acd53));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x22e671,_0xb1014,_0x5ee820)=>{const _0x5963c3=_0xb1014['markerName']['split'](':')[0x1],_0x16fdf6=this['_getChangeFromId'](_0x5963c3);if(!_0x16fdf6)return null;const _0xd16b97='add'==_0x16fdf6['type']?'split':'merge';if(_0x5ee820['consumable']['test'](_0xb1014['markerRange'],_0x22e671['name']))for(const _0x3bf80d of _0xb1014['markerRange']['getItems']()){if(!_0x3bf80d['is']('element','softBreak'))continue;const _0x1a6bab=_0x5ee820['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd16b97}),_0x48315a=_0x5ee820['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3bf80d));_0x16fdf6['data']['isSuggestion']&&_0x5ee820['writer']['addClass']('ck-suggestion-marker-'+_0xd16b97+'-new',_0x1a6bab),this['activeChange']==_0x16fdf6&&_0x5ee820['writer']['addClass']('ck-suggestion-marker--active',_0x1a6bab),_0x5ee820['writer']['insert'](_0x48315a,_0x1a6bab),_0x5ee820['mapper']['bindElementToMarker'](_0x1a6bab,_0xb1014['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x112396=>{for(const _0x416f59 of this['editor']['model']['document']['getRootNames']()){const _0x455eb1=this['editor']['model']['document']['getRoot'](_0x416f59),_0xd8f6ae=this['editor']['editing']['view']['document']['getRoot'](_0x416f59);if(_0xd8f6ae){const _0x286c12=_0x455eb1['getAttribute']('revisionHistoryAttachChange');if(_0x112396['removeAttribute']('data-change-id',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root-add',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root-remove',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root--active',_0xd8f6ae),_0x286c12){const _0x7dfb3b=this['_getChangeFromId'](_0x286c12);if(!_0x7dfb3b)return null;_0x112396['setAttribute']('data-change-id',_0x286c12,_0xd8f6ae),_0x112396['addClass']('ck-revision-history-root-'+_0x7dfb3b['type'],_0xd8f6ae),this['activeChange']==_0x7dfb3b&&_0x112396['addClass']('ck-revision-history-root--active',_0xd8f6ae);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2abe02=>'revision-comment:'+_0x2abe02,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x326df2=>'revision-suggestion:'+_0x326df2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1b44fc=>({'name':'suggestion:'+_0x1b44fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4221e6=>{const _0x1962ee=_0x4221e6['markerName']['split'](':')[0x1];return'insertion'!=_0x1962ee&&'deletion'!=_0x1962ee?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1962ee]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x29521c,_0x10177a,_0x296001)=>{const _0x1d88aa=_0x296001['mapper']['markerNameToElements'](_0x10177a['markerName']);if(_0x1d88aa){for(const _0x34751c of _0x1d88aa)_0x34751c['is']('uiElement')&&(_0x296001['mapper']['unbindElementFromMarkerName'](_0x34751c,_0x10177a['markerName']),_0x296001['writer']['remove'](_0x34751c));}},{'priority':'high'});}['_getChangeFromId'](_0x39bad3){return this['_changeIdToChange']['get'](_0x39bad3);}['_getViewForChange'](_0x599d03){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x599d03),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22d3b0,_0x1dbd8c,_0x36d2c0,_0x5a4b76)=>{_0x5a4b76&&this['_balloon']['remove'](_0x5a4b76),_0x36d2c0&&(this['_balloon']['add']({'view':_0x36d2c0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1e468f=this['editor']['editing'],_0x1774d7=this['_getChangeFromId'](_0x36d2c0['changeId']);let _0x5a3695;if(_0x1774d7['data']['isOnRoot']){const _0xb7691=_0x1e468f['view']['getDomRoot'](_0x1774d7['rootName']);_0x5a3695=Array['from'](_0xb7691['getClientRects']());}else{const _0x183c7a=this['editor']['model']['markers']['get']('revision:'+_0x36d2c0['changeId']);_0x5a3695=Array['from'](_0x1e468f['mapper']['markerNameToElements'](_0x183c7a['name']))['map'](_0x570e56=>_0x1e468f['view']['domConverter']['mapViewToDom'](_0x570e56))['map'](_0x2797bb=>Array['from'](_0x2797bb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5a3695[0x0];return _0x5a3695['find'](_0x4ef422=>_0x4ef422['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ef422['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ef422['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ef422['right']+0x3>=this['_activeViewTarget']['x'])||_0x5a3695[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x46cd4d,_0x1d8c3a,_0x314845,_0x3f30ba)=>{this['activeView']=_0x314845?this['_getViewForChange'](_0x314845):null,this['editor']['model']['change'](()=>{const _0x349bfe=this['editor']['editing'];_0x3f30ba&&(_0x3f30ba['data']['isOnRoot']?_0x349bfe['view']['change'](_0x31555a=>{_0x31555a['removeClass']('ck-revision-history-root--active',_0x349bfe['view']['document']['getRoot'](_0x3f30ba['rootName']));}):_0x349bfe['reconvertMarker']('revision:'+_0x3f30ba['id'])),_0x314845&&(_0x314845['data']['isOnRoot']?_0x349bfe['view']['change'](_0x458b36=>{_0x458b36['addClass']('ck-revision-history-root--active',_0x349bfe['view']['document']['getRoot'](_0x314845['rootName']));}):_0x349bfe['reconvertMarker']('revision:'+_0x314845['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1bbdd7,_0x115d44)=>{if(this['activeChange'])return;const _0x482491=this['_findChangeIdFromDomTarget'](_0x115d44['target']),_0x6cc75a=this['_changeIdToChange']['get'](_0x482491);_0x6cc75a?(this['_activeViewTarget']={'x':_0x115d44['domEvent']['x'],'y':_0x115d44['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6cc75a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x30d0a9,_0x364e80)=>{const _0x34bba4=this['_findChangeIdFromDomTarget'](_0x364e80['target']),_0x15b75d=this['_changeIdToChange']['get'](_0x34bba4);_0x15b75d?(this['_activeViewTarget']={'x':_0x364e80['domEvent']['x'],'y':_0x364e80['domEvent']['y']},_0x15b75d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x15b75d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ec9ce){do{const _0x55763e=_0x3ec9ce['getAttribute']('data-change-id');if(_0x55763e)return _0x55763e;_0x3ec9ce=_0x3ec9ce['parent'];}while(_0x3ec9ce);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x35a5e2=>{for(const _0x4c8afd of this['editor']['model']['markers'])_0x35a5e2['removeMarker'](_0x4c8afd);});}}function Z(_0x4d3c85,_0x24c5b0){return(_0x4114e9,_0x3c03e0,_0x457f3e)=>{if(!_0x457f3e['consumable']['test'](_0x3c03e0['markerRange'],_0x4114e9['name']))return;const _0x411768=_0x3c03e0['markerRange']['getWalker'](),_0x34baa3=_0x3c03e0['markerRange']['start'],_0x3a4897=_0x4d3c85['model']['schema'];let _0x94ee47=null,_0x153e48=null,_0x2e6a14=!0x1,_0x202264=!0x1;for(const _0x272fa3 of _0x411768){const _0x47e7ca=_0x272fa3['item'];_0x2e6a14=_0x2e6a14||_0x3a4897['isContent'](_0x47e7ca);const _0x1e7366=_0x457f3e['mapper']['toViewElement'](_0x47e7ca);if(_0x1e7366&&_0x1e7366['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x272fa3['type']&&(_0x3a4897['isBlock'](_0x47e7ca)&&!_0x3a4897['isLimit'](_0x47e7ca)&&(_0x47e7ca['nextSibling']||_0x34baa3['isAtEnd']?_0x94ee47&&_0x94ee47['parent']==_0x47e7ca||(_0x94ee47=_0x47e7ca,_0x51b467(_0x272fa3['previousPosition']),_0x202264=!0x0):_0x153e48=_0x153e48||_0x272fa3['previousPosition']));}function _0x51b467(_0xfd9007){const _0x26a5ad=_0x457f3e['mapper']['toViewPosition'](_0xfd9007),_0x267ddd=_0x457f3e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x24c5b0});_0x457f3e['writer']['insert'](_0x26a5ad,_0x267ddd),_0x457f3e['mapper']['bindElementToMarker'](_0x267ddd,_0x3c03e0['markerName']);}_0x2e6a14||_0x202264||!_0x153e48||_0x51b467(_0x153e48);};}class _t extends _0x107804{constructor(_0x384920){super(_0x384920);const _0x50bdd0=_0x384920['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x50bdd0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50bdd0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2d3e02=this['editor'],_0x4066bd=_0x2d3e02['plugins']['get'](d),_0x40354e=_0x4066bd['isReady']?_0x4066bd['diff']['newRevisionId']:null;_0x2d3e02['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40354e);}['refresh'](){const {isReady:_0x2bee67,isEnabled:_0x46df5e,repository:_0x2d2204,diff:_0x112a0c}=this['editor']['plugins']['get'](d),_0x1bbd85=_0x112a0c&&_0x2d2204['getLaterVisibleRevision'](_0x112a0c['newRevisionId']);this['isEnabled']=_0x2bee67&&_0x46df5e&&Boolean(_0x1bbd85);}}class yt extends _0x107804{['_step'];constructor(_0x25b111,{direction:_0x5e27e}){super(_0x25b111);const _0x3e1ea7=_0x25b111['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5e27e?0x1:-0x1,this['listenTo'](_0x3e1ea7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e1ea7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e1ea7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4b3676=this['editor'],_0x52554c=_0x4b3676['plugins']['get'](d),{isNavigationMode:_0x2c47cc,currentChangeNumber:_0x2b5f4e}=_0x52554c;let _0xb2b68d;if(_0x52554c['activeChange']=_0x2c47cc?_0x52554c['diff']['changes']['get'](_0x2b5f4e+this['_step']):_0x52554c['diff']['changes']['first'],_0x52554c['activeChange']['data']['isOnRoot'])_0xb2b68d=_0x4b3676['editing']['view']['getDomRoot'](_0x52554c['activeChange']['rootName']);else{const _0x17c1e4=_0x4b3676['model']['markers']['get']('revision:'+_0x52554c['activeChange']['id']);_0xb2b68d=_0x3629d1(_0x4b3676['editing'],_0x17c1e4);}_0x21b983({'target':_0xb2b68d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1187d4,currentChangeNumber:_0x4114f1,numberOfChanges:_0x4ad550,isReady:_0x1a6ea5,isEnabled:_0x4364cf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4364cf&&_0x1a6ea5&&_0x4ad550)&&(!_0x1187d4||(0x1===this['_step']?_0x4114f1<_0x4ad550-0x1:_0x4114f1>0x0));}}class di extends _0x4bf032{constructor(_0x1245cc){super(_0x1245cc);const _0xbea05e=this['bindTemplate'],_0x53dc0e=new _0x46e8ac(_0x1245cc),_0x3e0324=new _0x46e8ac(_0x1245cc);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',(_0x4188f0,_0x3cf944)=>_0x4188f0&&_0x3cf944>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x594deb,_0x7a818a,_0x78d2c8,_0x455173)=>{if(!_0x594deb)return m(_0x1245cc,'Loading...');if(!_0x78d2c8)return m(_0x1245cc,'No\x20changes');const _0x596ab0=m(_0x1245cc,'NUMBER_OF_CHANGES',_0x78d2c8);return _0x455173?m(_0x1245cc,'X_OF_Y_CHANGES',[_0x7a818a+0x1,_0x78d2c8]):_0x596ab0;}),_0x53dc0e['set']({'label':m(_0x1245cc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3e0324['set']({'label':m(_0x1245cc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x53dc0e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3e0324['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x53dc0e['on']('execute',()=>this['fire']('execute','backward')),_0x3e0324['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',_0xbea05e['if']('_isStatusLabelVisible','ck-hidden',_0xf649b9=>!_0xf649b9)]},'children':[{'text':_0xbea05e['to']('isNavigationMode',_0x1847d0=>_0x1847d0?m(_0x1245cc,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1245cc,'Total')+':\x20')}]},{'text':_0xbea05e['to']('_statusText')}]},new _0x7224df(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x53dc0e,_0x3e0324]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x4fdbea{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1cb7c2=this['editor']['editing']['view'];_0x1cb7c2['change'](_0xffadd3=>{for(const _0x38c899 of _0x1cb7c2['document']['roots'])_0xffadd3['addClass'](ce,_0x38c899);});}['hide'](){const _0x170bfc=this['editor']['editing']['view'];_0x170bfc['change'](_0x2b256c=>{for(const _0x2d263c of _0x170bfc['document']['roots'])_0x2b256c['removeClass'](ce,_0x2d263c);});}}class g extends _0x4fdbea{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2d8a8b=this['editor'],_0x27a19d=_0x2d8a8b['plugins']['get'](d),_0x23d016=_0x2d8a8b['plugins']['get'](ae);_0x2d8a8b['ui']['componentFactory']['add']('exitToEditing',_0x4ef5b4=>{const _0x54d5d2=new _0x46e8ac(_0x4ef5b4);return _0x54d5d2['set']({'label':m(_0x4ef5b4,'Back\x20to\x20editing'),'icon':_0x3d2fb2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x54d5d2,'execute',()=>{_0x2d8a8b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x54d5d2;}),_0x2d8a8b['ui']['componentFactory']['add']('restoreRevision',_0x2bed22=>{const _0x26d663=new _0x46e8ac(_0x2bed22);return _0x26d663['set']({'label':m(_0x2bed22,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x26d663['bind']('isEnabled')['to'](_0x2d8a8b['commands']['get']('restoreRevision')),this['listenTo'](_0x26d663,'execute',()=>_0x2d8a8b['execute']('restoreRevision')),_0x26d663;}),_0x2d8a8b['ui']['componentFactory']['add']('changesNavigation',_0x4cc260=>{const _0x4e8ef1=new di(_0x4cc260),_0x90caa5=_0x2d8a8b['commands']['get']('showPreviousChange'),_0x1888a0=_0x2d8a8b['commands']['get']('showNextChange');return _0x4e8ef1['bind']('isBackwardNavigationEnabled')['to'](_0x90caa5,'isEnabled'),_0x4e8ef1['bind']('isForwardNavigationEnabled')['to'](_0x1888a0,'isEnabled'),_0x4e8ef1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x27a19d),this['listenTo'](_0x4e8ef1,'execute',(_0x10be06,_0x4e3a37)=>{_0x2d8a8b['execute']('forward'===_0x4e3a37?'showNextChange':'showPreviousChange');}),_0x4e8ef1;}),_0x23d016['show'](),_0x27a19d['on']('change:isReady',(_0x53e5ae,_0x5de6f4,_0x17e7d3)=>{_0x17e7d3?_0x23d016['hide']():_0x23d016['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x25885f,_0x33e1ab){super(_0x25885f,_0x33e1ab);const _0x177dad=this['bindTemplate'];this['set']({'label':m(_0x25885f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x25885f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x177dad['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 _0x59805f=this['fieldView']['element'];this['_tooltipString']=_0x59805f['scrollWidth']>_0x59805f['clientWidth']&&_0x59805f['value']||'';}}class ti extends _0x4bf032{constructor(_0x23079f,_0x3976ce,_0x5ee9fc){super(_0x23079f);const _0x34d1f9=new _0x3b95e7();_0x34d1f9['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1c9349=['ck','ck-revision-history-sidebar__revision-author'];_0x5ee9fc&&_0x1c9349['push']('ck-revision-history-sidebar__revision-author_creator');const _0x14d983=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x23079f,_0x5ee9fc?'Revision\x20creator':'Revision\x20author')},'children':[_0x34d1f9,_0x3976ce['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1c9349},'children':_0x14d983});}}function ni(_0x2ef6ea,_0x38af46){const _0x304b82=_0x2ef6ea['bindTemplate'],_0x37bf33=_0x2ef6ea['locale'],_0x58e3f0=_0x37364d(_0x37bf33);_0x58e3f0['panelPosition']='sw';const _0x5f17e3=function(_0x5d44be,_0x4765eb){const _0x46b959=function(_0x32a1ad,_0x5e5a38){const _0x36511a=_0x32a1ad['locale'],_0x58b2d2={'Compare\x20against\x20selected':m(_0x36511a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x36511a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x36511a,'Restore\x20this\x20revision')};return _0x5e5a38['map'](_0x1f4428=>{const _0x37fe75=_0x58b2d2[_0x1f4428['name']];return _0x37fe75&&_0x37fe75!==_0x1f4428['name']&&(_0x1f4428['name']=_0x37fe75),_0x1f4428;});}(_0x5d44be,_0x4765eb),_0x42b3a6=new _0x15164d();for(const _0x18da52 of _0x46b959){const _0x222ac9={'type':'button','model':new to({'label':_0x18da52['name'],'class':_0x18da52['class'],'withText':!0x0,'role':'menuitem','_action':_0x18da52['action']})};_0x222ac9['model']['bind']('isEnabled')['to'](_0x5d44be,'isActionsDropdownOpen',_0x1c1b56=>'function'!=typeof _0x18da52['isEnabled']||(!_0x1c1b56||_0x18da52['isEnabled'](_0x5d44be))),_0x42b3a6['add'](_0x222ac9);}return _0x42b3a6;}(_0x2ef6ea,_0x38af46);return _0x2ef6ea['bind']('isActionsDropdownOpen')['to'](_0x58e3f0,'isOpen'),_0x58e3f0['buttonView']['set']({'label':m(_0x37bf33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d2fb2['threeVerticalDots']}),_0x58e3f0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x304b82['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x304b82['to'](_0x2c5ab6=>_0x2c5ab6['stopPropagation']())}}),_0x58e3f0['on']('execute',_0x450234=>{_0x2ef6ea['isReady']&&'function'==typeof _0x450234['source']['_action']&&_0x450234['source']['_action'](_0x2ef6ea);}),_0x489c03(_0x58e3f0,_0x5f17e3,{'role':'menu'}),_0x58e3f0['listenTo'](_0x2ef6ea,'change:isActionsDropdownOpen',(_0x420643,_0x4d96c9,_0x49815)=>{if(_0x49815)for(const _0x4dc69a of _0x58e3f0['listView']['items']){const _0x1daea1=_0x4dc69a['children']['first'],_0x455239=_0x38af46['find'](_0x5af9da=>_0x5af9da['action']===_0x1daea1['_action'])['isVisible'];_0x4dc69a['isVisible']=void 0x0===_0x455239||_0x455239(_0x2ef6ea);}}),_0x58e3f0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x746ba2(_0x4bf032){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3eb2d4,_0x32d0ee,_0x365acd,_0x45b1e6){super(_0x3eb2d4);const _0x49592c=this['bindTemplate'],_0x22fc88=function(_0xbed66b,_0x1a2159){const _0x4aca2b=Array['from'](_0x1a2159['authors'])['filter'](_0x2f5589=>_0x2f5589!=_0x1a2159['creator']);return _0x1a2159['creator']&&_0x4aca2b['unshift'](_0x1a2159['creator']),_0x4aca2b['map'](_0x5f5c3b=>new ti(_0xbed66b,_0x5f5c3b,_0x5f5c3b==_0x1a2159['creator']));}(_0x3eb2d4,_0x32d0ee);this['id']=_0x32d0ee['id'],this['_revision']=_0x32d0ee,this['_requireRevisionName']=_0x45b1e6,this['bind']('name','createdAt')['to'](_0x32d0ee),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x12b9f6=>{return _0x1bb15b=_0x3eb2d4['uiLanguage'],(_0x50dbe4=_0x12b9f6)['toLocaleDateString'](_0x1bb15b,{'month':'long','day':'numeric'})+',\x20'+_0x50dbe4['toLocaleTimeString'](_0x1bb15b,{'hour':'numeric','minute':'numeric'});var _0x1bb15b,_0x50dbe4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3eb2d4,_0x340949),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x24d0c8=>_0x24d0c8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26c662,_0x46d53b)=>_0x26c662&&_0x46d53b),this['revisionActionsView']=_0x365acd&&_0x365acd['length']?ni(this,_0x365acd):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x49592c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x49592c['if']('isEnabled','ck-disabled',_0x4013a6=>!_0x4013a6),_0x49592c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x49592c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x49592c['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':_0x49592c['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':_0x22fc88}]},this['revisionActionsView']],'on':{'click':_0x49592c['to'](_0x35db0e=>{_0x35db0e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x198582=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x198582,'change',()=>{this['_requireRevisionName']&&!_0x198582['value']||this['fire']('setName',{'id':this['id'],'name':_0x198582['value']}),_0x198582['value']||(_0x198582['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x34a2c3,_0x2aae7d){const _0x2169f6=_0x5f1b72['fromJSDate'](_0x34a2c3)['setLocale'](_0x2aae7d),_0x53d189=_0x5f1b72['local'](),_0x55f86d=_0x53d189['minus']({'days':0x1})['startOf']('day');let _0x1b23aa,_0xa2cdfd;return _0x2169f6['hasSame'](_0x53d189,'day')?(_0x1b23aa=_0x2169f6['startOf']('day')['toJSDate'](),_0xa2cdfd=_0x2169f6['toRelativeCalendar']()):_0x2169f6['hasSame'](_0x55f86d,'day')?(_0x1b23aa=_0x55f86d['toJSDate'](),_0xa2cdfd=_0x2169f6['toRelativeCalendar']()):_0x2169f6['hasSame'](_0x53d189,'week')?(_0x1b23aa=_0x2169f6['startOf']('week')['toJSDate'](),_0xa2cdfd=_0x2169f6['weekdayLong']||''):_0x2169f6['hasSame'](_0x53d189,'year')?(_0x1b23aa=_0x2169f6['startOf']('month')['toJSDate'](),_0xa2cdfd=_0x2169f6['monthLong']||''):(_0x1b23aa=_0x2169f6['startOf']('year')['toJSDate'](),_0xa2cdfd=String(_0x2169f6['year'])),{'startDate':_0x1b23aa,'localizedPeriodName':_0xa2cdfd};}class vi extends _0x4bf032{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x380004,_0x5404d4,_0x11049f,_0x218046){super(_0x380004);const _0x115fa8=mi(_0x5404d4,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5404d4,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x11049f,this['_requireRevisionName']=_0x218046,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':_0x115fa8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x84b0a2){const _0x45a99a=new ai(this['locale'],_0x84b0a2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x45a99a);}['removeRevision'](_0x3bcc4d){const _0x522567=this['revisionViews']['find'](_0x4adee2=>_0x4adee2['id']===_0x3bcc4d['id']);this['revisionViews']['remove'](_0x522567);}}class as extends _0x4bf032{constructor(_0x2a2c6f){super(_0x2a2c6f);const _0xaafbb4=new _0x3b95e7();_0xaafbb4['content']=_0x3d2fb2['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xaafbb4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x2a2c6f,'Revision\x20history')]}]});}}class li extends _0x4bf032{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e266f,_0x191ee8,_0x5d0583,_0x538062){super(_0x2e266f);const _0x2fc678=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x191ee8,this['_revisionActions']=_0x5d0583,this['_requireRevisionName']=_0x538062,this['on']('select',(_0x3a7700,_0xa7a1e8)=>{this['fire']('revisionSelected',_0xa7a1e8);}),this['on']('setName',(_0x551435,_0x1e0dde)=>{this['fire']('revisionSetName',_0x1e0dde);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2e266f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2fc678['if']('isEnabled','ck-disabled',_0x125182=>!_0x125182)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x593615 of this['_revisions'])this['_addRevision'](_0x593615);this['_revisions']['on']('add',(_0x1a767b,_0x477f51)=>{this['_addRevision'](_0x477f51);}),this['_revisions']['on']('remove',(_0x50ceec,_0x285d77)=>{this['_removeRevision'](_0x285d77);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5245ed=>_0x5245ed['revisionViews']['map'](_0x4808aa=>_0x4808aa))['flat']();}['selectRevision'](_0x36b068){for(const _0x4c6eda of this['revisionViews'])_0x36b068&&_0x36b068['id']===_0x4c6eda['id']?_0x4c6eda['select']():_0x4c6eda['deselect']();}['highlightRevisions'](_0x58a634){for(const _0x2f26e of this['revisionViews'])_0x58a634['some'](({id:_0x32456e})=>_0x32456e===_0x2f26e['id'])?_0x2f26e['highlight']():_0x2f26e['unhighlight']();}['_addRevision'](_0x23d416){const _0x13178b=mi(_0x23d416['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf46c6f=this['timePeriodViews']['get'](0x0);_0xf46c6f&&_0xf46c6f['startDate']['getTime']()===_0x13178b['getTime']()||(_0xf46c6f=new vi(this['locale'],_0x13178b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf46c6f)),_0xf46c6f['addRevision'](_0x23d416);}['_removeRevision'](_0x4d0e49){const _0x2825aa=mi(_0x4d0e49['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2825aa)['removeRevision'](_0x4d0e49);}['_getTimePeriodViewByStartDate'](_0xc2c2b0){return this['timePeriodViews']['find'](_0x287f0e=>_0x287f0e['startDate']['getTime']()===_0xc2c2b0['getTime']());}}class w extends _0x4fdbea{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x57f47a,_0x3eb423){super(_0x3eb423),this['sourceElement']=_0x57f47a,this['model']['document']['createRoot']();const _0x2a452a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2a452a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x52dcce,_0x5ec232){const _0x2dd554=new this(_0x52dcce,_0x5ec232);return await _0x2dd554['initPlugins'](),await _0x2dd554['ui']['init'](_0x52dcce),await _0x2dd554['data']['init'](_0x2dd554['config']['get']('initialData')||''),_0x2dd554['fire']('ready'),_0x2dd554;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xfe3bb5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbee553){function _0x3af110(_0x10ded6){return _0x10ded6['map'](_0x3a6c7f=>String['fromCharCode'](_0x3a6c7f))['join']('');}super(_0xbee553),this['result']='end',_0xbee553[_0x3af110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3af110([0x76,0x69,0x65,0x77])][_0x3af110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3af110([0x61,0x75,0x74,0x6f]),_0xbee553[_0x3af110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3af110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3af110([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3af110([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3af110([0x6f,0x6b])});}}class k extends _0xfe3bb5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1da54a){if(super(_0x1da54a),!this['editor']['config']['get']('revisionHistory'))throw new _0x814232('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5fdd9d=>this['_showRevisionViewer']({..._0x5fdd9d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4c73c0=>this['_closeRevisionViewer'](_0x4c73c0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x23d9d2=>this['_restoreRevision'](_0x23d9d2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3b4719){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3b4719;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5520a1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5520a1);}['getRevision'](_0x3d021f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3d021f);}['getRevisions'](_0x375cb4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x375cb4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3be57c=this['editor'],_0x11c386=_0x53a213(_0x3be57c,p),_0x23d2bf=_0x3be57c['plugins']['get']('RevisionTracker'),_0x299b2f=_0x3be57c['plugins']['get']('Users')['users'];return _0x11c386['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x11c386['lazyRoots'],(_0x11c386['plugins']['push'](Rt,d,g,class extends _0xfe3bb5{static get['requires'](){return[d,'Users'];}['init'](){const _0x4beb5a=this['editor']['plugins']['get']('Users');for(const _0x151b25 of _0x299b2f)_0x151b25['isAnonymous']||_0x4beb5a['getUser'](_0x151b25['id'])||_0x4beb5a['addUser'](_0x151b25);const _0x3ac801=_0x23d2bf['repository']['getRevisions']();let _0x4c1aee=null;const _0x135bff=this['editor']['plugins']['get']('RevisionViewer');_0x135bff['adapter']=_0x23d2bf['adapter'],_0x135bff['bind']('isEnabled')['to'](_0x23d2bf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3be57c,'isReadOnly',_0x58c7db=>!_0x58c7db);for(const _0x18db54 of _0x3ac801){const _0x1e599b=null===_0x18db54['creator'];if(_0x1e599b&&_0x18db54['toVersion']===_0x18db54['fromVersion'])continue;const _0x121aef=_0x18db54['toJSON']();_0x135bff['addRevisionData'](_0x121aef,(_0x454c55,_0x168a4a,_0x388be9)=>{if(_0x1e599b){if(_0x4c1aee)_0x4c1aee['_update'](_0x454c55,_0x168a4a);else{if(!_0x168a4a){const _0x48f151=_0x388be9['toJSON']();_0x48f151['id']=_0x8b6b64(),_0x23d2bf['saveRevision'](_0x48f151,_0x388be9['toVersion'])['then'](_0x3ddad8=>{_0x4c1aee=_0x3ddad8;});}}}else _0x18db54['_update'](_0x454c55,_0x168a4a);});}}},w),_0x11c386);}['_enhanceShowRevisionViewerCallback'](){const _0x1a4c8b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xf6ed51=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5134d4=this['editor']['plugins']['get']('Autosave');await _0x5134d4['save']();}else await _0xf6ed51['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d7772=this['editor']['plugins']['get']('Dialog');_0x1d7772['isOpen']&&_0x1d7772['hide']();}const _0x5802ae=this['_getRevisionViewerEditorConfig']();return _0x1a4c8b(_0x5802ae)['then'](_0xaa3fde=>{return(this['_viewerEditor']=_0xaa3fde,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xaa3fde;})['catch'](_0x42a3b8=>(console['error'](_0x42a3b8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x159645=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x159645(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x39a289=this['editor']['plugins']['get']('Annotations');_0x39a289['refreshVisibility'](),_0x39a289['refreshPositioning']();}})));}['_showRevisionViewer'](_0x482583){const _0x44eb2c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4522bc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x324a23=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x324a23,_0x482583)['then'](_0x159275=>(_0x4522bc['style']['display']='block',_0x44eb2c['style']['display']='none',_0x159275));}['_closeRevisionViewer'](_0x480e96){const _0x3b0ab5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b0ab5['style']['display']='',_0x480e96['destroy']();}async['_restoreRevision'](_0x28d444){const _0x14ad39=this['editor'],_0x3679a3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4665b1=_0x14ad39['plugins']['get']('RevisionTracker'),_0x747a68=_0x3679a3['repository']['getRevision'](_0x28d444);let _0x531fc6,_0x442f27,_0x367254;try{_0x531fc6=await _0x3679a3['getRevisionData'](_0x747a68),_0x442f27=await _0x3679a3['getRevisionRootsAttributes'](_0x747a68);}catch(_0x74f48c){return void console['error'](_0x74f48c);}_0x14ad39['model']['change'](_0x435318=>{for(const _0xe0640e of Array['from'](_0x14ad39['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x435318['removeMarker'](_0xe0640e);}),_0x3679a3['isReady']=!0x1,_0x14ad39['model']['enqueueChange'](_0x441e0a=>{_0x441e0a['setSelection'](null),_0x441e0a['removeSelectionAttribute'](_0x14ad39['model']['document']['selection']['getAttributeKeys']());const _0x4f7f41=Object['keys'](_0x531fc6);for(const _0x4bd984 of _0x14ad39['model']['document']['roots'])'$graveyard'!=_0x4bd984['rootName']&&_0x4bd984['isAttached']()&&!_0x4f7f41['includes'](_0x4bd984['rootName'])&&_0x441e0a['detachRoot'](_0x4bd984);for(const _0x4c4488 of _0x4f7f41){let _0x30836c=_0x14ad39['model']['document']['getRoot'](_0x4c4488);_0x30836c&&_0x30836c['isAttached']()||(_0x30836c=_0x441e0a['addRoot'](_0x4c4488));const _0x4975b0=_0x442f27[_0x4c4488],_0x786879=Object['keys'](_0x4975b0),_0x3ecb0f=_0x531fc6[_0x4c4488];for(const _0x51397a of _0x30836c['getAttributeKeys']())_0x786879['includes'](_0x51397a)||_0x441e0a['removeAttribute'](_0x51397a,_0x30836c);for(const _0x33c67e of _0x786879)_0x441e0a['setAttribute'](_0x33c67e,_0x442f27[_0x4c4488][_0x33c67e],_0x30836c);_0x441e0a['remove'](_0x441e0a['createRangeIn'](_0x30836c)),_0x441e0a['insert'](_0x14ad39['data']['parse'](_0x3ecb0f,_0x30836c),_0x30836c,0x0);}});const _0x6e830b=m(_0x14ad39['locale'],'Restored');if(_0x747a68['name'])_0x367254=-0x1==_0x747a68['name']['indexOf'](_0x6e830b)?_0x6e830b+':\x20'+_0x747a68['name']:_0x747a68['name'];else _0x367254=_0x6e830b+':\x20'+(_0x747a68['createdAt']['toLocaleDateString'](_0x14ad39['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x747a68['createdAt']['toLocaleTimeString'](_0x14ad39['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4665b1['saveRevision']({'name':_0x367254}),_0x3679a3['isReady']=!0x0,_0x14ad39['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5e6069){super(_0x5e6069),this['_revisionViewer']=_0x5e6069['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ce640=this['_revisionsRepository']['_revisions'],_0xef9c0f=this['_createRevisionActions'](),_0x463f1e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x4ce640,_0xef9c0f,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',(_0x4cb4e0,_0x269c1a)=>{_0x269c1a['revisionViews']['on']('add',(_0x4ce1c,_0x5adeff)=>{_0x5adeff['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)),_0x463f1e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4f10db=this['_revisionsRepository']['getRevision'](0x0);if(_0x4f10db){const _0x29c14d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4f10db['id']);this['_revisionViewer']['compare'](_0x4f10db,_0x29c14d);}}['_handleRevisionSelected'](_0x1e7821,_0x3478e8){const _0x3e469e=this['_revisionsRepository']['getRevision'](_0x3478e8['id']),_0x4d5c8e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e469e['id']);this['_revisionViewer']['compare'](_0x3e469e,_0x4d5c8e);}['_handleRevisionSetName'](_0x2ddc4b,_0x32e906){this['_revisionsRepository']['getRevision'](_0x32e906['id'])['setName'](_0x32e906['name']);}['_handleDiffChange'](_0x3ecda8,_0x10dc76,_0x51bd0e){const _0x43fa9d=this['_revisionsRepository']['getRevisionsInDiff'](_0x51bd0e);_0x43fa9d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x43fa9d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x43fa9d[0x0]));}['_createRevisionActions'](){const _0x42b109=this['editor'],_0x5d2962=w['availableRevisionActions'],_0x42e923=_0x42b109['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x42e923['length'])return _0x42e923['map'](_0x3d97ec=>{const _0x31f81c='string'==typeof _0x3d97ec?Object['assign']({},_0x5d2962[_0x3d97ec]):_0x3d97ec;return _0x31f81c['action']=_0x31f81c['action']['bind'](this,_0x42b109),_0x31f81c['isVisible']&&(_0x31f81c['isVisible']=_0x31f81c['isVisible']['bind'](this,_0x42b109)),_0x31f81c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3c1854},_0x5950b1)=>{const _0xe921ea=_0x3c1854['get'](d),_0x52ba83=_0xe921ea['repository'];let _0xcb5de1=_0xe921ea['diff']['newRevisionId'],_0x21b5b8=_0x5950b1['id'];_0x52ba83['getIndex'](_0xcb5de1)>_0x52ba83['getIndex'](_0x21b5b8)&&([_0xcb5de1,_0x21b5b8]=[_0x21b5b8,_0xcb5de1]),_0xe921ea['compare'](_0xcb5de1,_0x21b5b8);},'isVisible':({plugins:_0x3d8188},_0x3e8d27)=>{const _0x9184c1=_0x3d8188['get'](d);return!(_0x9184c1['repository']['getRevisionsInDiff'](_0x9184c1['diff'])['length']>0x2)&&!_0x3e8d27['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3bd51b,{id:_0x46561b})=>{_0x3bd51b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46561b);},'isVisible':({plugins:_0x10b60a},_0x501653)=>!!_0x10b60a['get'](d)['repository']['getLaterVisibleRevision'](_0x501653['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b24e8},{id:_0x147b12,revisionNameView:_0x100994})=>{const _0x17a337=_0x2b24e8['get'](d),_0x547482=_0x17a337['repository']['getEarlierVisibleRevision'](_0x147b12);_0x17a337['compare'](_0x147b12,_0x547482),_0x100994['focus'](),_0x100994['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xe18b18,_0x5ce04d){super(_0xe18b18),this['_view']=_0x5ce04d,this['_toolbarConfig']=ot(_0xe18b18['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x416e1f){const _0x2e636a=this['editor'],_0x4a5016=this['view'],_0x2a0564=_0x2e636a['editing']['view'],_0x3e3588=_0x4a5016['editable'],_0x424329=_0x2a0564['document']['getRoot']();_0x3e3588['name']=_0x424329['rootName'],_0x4a5016['render']();const _0x1d6501=_0x3e3588['element'];this['setEditableElement'](_0x3e3588['name'],_0x1d6501),_0x4a5016['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2a0564['attachDomRoot'](_0x1d6501),this['_elementReplacer']['replace'](_0x416e1f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xfc874d=this['view'],_0x360698=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x360698['detachDomRoot'](_0xfc874d['editable']['name']),_0xfc874d['destroy']();}['_initToolbar'](){const _0x50c889=this['view'];_0x50c889['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x50c889['stickyPanel']['limiterElement']=_0x50c889['element'],_0x50c889['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x248331})=>_0x248331),_0x50c889['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x50c889['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x46678e,_0x1154ff,_0x4ac7ce={}){super(_0x46678e),this['stickyPanel']=new ut(_0x46678e),this['toolbar']=new lt(_0x46678e,{'shouldGroupWhenFull':_0x4ac7ce['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x46678e,_0x1154ff);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x312faf,_0x4cf19d){super(_0x4cf19d),this['sourceElement']=_0x312faf,this['model']['document']['createRoot']();const _0x160914=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x160914);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x214a12,_0x28ec23){const _0x28c011=new this(_0x214a12,_0x28ec23);return await _0x28c011['initPlugins'](),await _0x28c011['ui']['init'](_0x214a12),await _0x28c011['data']['init'](_0x28c011['config']['get']('initialData')||''),_0x28c011['fire']('ready'),_0x28c011;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4fdbea{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1007a7){function _0x5dbda6(_0x4f1281){return _0x4f1281['map'](_0x3053bb=>String['fromCharCode'](_0x3053bb))['join']('');}super(_0x1007a7),this['result']='end',_0x1007a7[_0x5dbda6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dbda6([0x76,0x69,0x65,0x77])][_0x5dbda6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5dbda6([0x61,0x75,0x74,0x6f]),_0x1007a7[_0x5dbda6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5dbda6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5dbda6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5dbda6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5dbda6([0x6f,0x6b])});}}class k extends _0x4fdbea{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x189674){if(super(_0x189674),!this['editor']['config']['get']('revisionHistory'))throw new _0x254481('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x217153=>this['_showRevisionViewer']({..._0x217153,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57b228=>this['_closeRevisionViewer'](_0x57b228)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x53ea4a=>this['_restoreRevision'](_0x53ea4a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x37f89f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x37f89f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x212570){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x212570);}['getRevision'](_0x5e26f5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e26f5);}['getRevisions'](_0x59f624){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x59f624||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2728ca=this['editor'],_0x4af912=_0x14ddff(_0x2728ca,p),_0x28fded=_0x2728ca['plugins']['get']('RevisionTracker'),_0x326224=_0x2728ca['plugins']['get']('Users')['users'];return _0x4af912['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4af912['lazyRoots'],(_0x4af912['plugins']['push'](Rt,d,g,class extends _0x4fdbea{static get['requires'](){return[d,'Users'];}['init'](){const _0xa6ecba=this['editor']['plugins']['get']('Users');for(const _0x3937e4 of _0x326224)_0x3937e4['isAnonymous']||_0xa6ecba['getUser'](_0x3937e4['id'])||_0xa6ecba['addUser'](_0x3937e4);const _0x276f5c=_0x28fded['repository']['getRevisions']();let _0x495b02=null;const _0x206413=this['editor']['plugins']['get']('RevisionViewer');_0x206413['adapter']=_0x28fded['adapter'],_0x206413['bind']('isEnabled')['to'](_0x28fded),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2728ca,'isReadOnly',_0x3fb3e1=>!_0x3fb3e1);for(const _0x5dceff of _0x276f5c){const _0x11b00a=null===_0x5dceff['creator'];if(_0x11b00a&&_0x5dceff['toVersion']===_0x5dceff['fromVersion'])continue;const _0x11d4cc=_0x5dceff['toJSON']();_0x206413['addRevisionData'](_0x11d4cc,(_0x8a62c1,_0x2eaac3,_0x9d9bb4)=>{if(_0x11b00a){if(_0x495b02)_0x495b02['_update'](_0x8a62c1,_0x2eaac3);else{if(!_0x2eaac3){const _0x479776=_0x9d9bb4['toJSON']();_0x479776['id']=_0x46c15b(),_0x28fded['saveRevision'](_0x479776,_0x9d9bb4['toVersion'])['then'](_0x4418b5=>{_0x495b02=_0x4418b5;});}}}else _0x5dceff['_update'](_0x8a62c1,_0x2eaac3);});}}},w),_0x4af912);}['_enhanceShowRevisionViewerCallback'](){const _0x4fcdca=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x195964=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4180ed=this['editor']['plugins']['get']('Autosave');await _0x4180ed['save']();}else await _0x195964['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x10c3f5=this['editor']['plugins']['get']('Dialog');_0x10c3f5['isOpen']&&_0x10c3f5['hide']();}const _0x3787fc=this['_getRevisionViewerEditorConfig']();return _0x4fcdca(_0x3787fc)['then'](_0x2d9c8d=>{return(this['_viewerEditor']=_0x2d9c8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2d9c8d;})['catch'](_0x1d2e7b=>(console['error'](_0x1d2e7b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x627105=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x627105(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c0c70=this['editor']['plugins']['get']('Annotations');_0x2c0c70['refreshVisibility'](),_0x2c0c70['refreshPositioning']();}})));}['_showRevisionViewer'](_0x274960){const _0xe85a37=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202288=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3bacfe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3bacfe,_0x274960)['then'](_0x2bae45=>(_0x202288['style']['display']='block',_0xe85a37['style']['display']='none',_0x2bae45));}['_closeRevisionViewer'](_0x5b6108){const _0x2280be=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2280be['style']['display']='',_0x5b6108['destroy']();}async['_restoreRevision'](_0x41173b){const _0x5f30a6=this['editor'],_0x571369=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x18d1fa=_0x5f30a6['plugins']['get']('RevisionTracker'),_0x321a3e=_0x571369['repository']['getRevision'](_0x41173b);let _0x178cc5,_0x3f6c68,_0x3bd3f9;try{_0x178cc5=await _0x571369['getRevisionData'](_0x321a3e),_0x3f6c68=await _0x571369['getRevisionRootsAttributes'](_0x321a3e);}catch(_0x42e153){return void console['error'](_0x42e153);}_0x5f30a6['model']['change'](_0x3f84d9=>{for(const _0x38e6ea of Array['from'](_0x5f30a6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f84d9['removeMarker'](_0x38e6ea);}),_0x571369['isReady']=!0x1,_0x5f30a6['model']['enqueueChange'](_0x3e2af2=>{_0x3e2af2['setSelection'](null),_0x3e2af2['removeSelectionAttribute'](_0x5f30a6['model']['document']['selection']['getAttributeKeys']());const _0x5d7a56=Object['keys'](_0x178cc5);for(const _0x3f09f8 of _0x5f30a6['model']['document']['roots'])'$graveyard'!=_0x3f09f8['rootName']&&_0x3f09f8['isAttached']()&&!_0x5d7a56['includes'](_0x3f09f8['rootName'])&&_0x3e2af2['detachRoot'](_0x3f09f8);for(const _0x3fd6dc of _0x5d7a56){let _0x6e7629=_0x5f30a6['model']['document']['getRoot'](_0x3fd6dc);_0x6e7629&&_0x6e7629['isAttached']()||(_0x6e7629=_0x3e2af2['addRoot'](_0x3fd6dc));const _0x218959=_0x3f6c68[_0x3fd6dc],_0x9a1193=Object['keys'](_0x218959),_0x195aba=_0x178cc5[_0x3fd6dc];for(const _0x3a579c of _0x6e7629['getAttributeKeys']())_0x9a1193['includes'](_0x3a579c)||_0x3e2af2['removeAttribute'](_0x3a579c,_0x6e7629);for(const _0x11d4e5 of _0x9a1193)_0x3e2af2['setAttribute'](_0x11d4e5,_0x3f6c68[_0x3fd6dc][_0x11d4e5],_0x6e7629);_0x3e2af2['remove'](_0x3e2af2['createRangeIn'](_0x6e7629)),_0x3e2af2['insert'](_0x5f30a6['data']['parse'](_0x195aba,_0x6e7629),_0x6e7629,0x0);}});const _0x1fa6b0=m(_0x5f30a6['locale'],'Restored');if(_0x321a3e['name'])_0x3bd3f9=-0x1==_0x321a3e['name']['indexOf'](_0x1fa6b0)?_0x1fa6b0+':\x20'+_0x321a3e['name']:_0x321a3e['name'];else _0x3bd3f9=_0x1fa6b0+':\x20'+(_0x321a3e['createdAt']['toLocaleDateString'](_0x5f30a6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x321a3e['createdAt']['toLocaleTimeString'](_0x5f30a6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x18d1fa['saveRevision']({'name':_0x3bd3f9}),_0x571369['isReady']=!0x0,_0x5f30a6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|