@ckeditor/ckeditor5-revision-history 47.0.0-alpha.6 → 47.0.0-alpha.7
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 +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x5dfdee(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52f3a6){super(),this['id']=_0x52f3a6['id']||_0x5c7d64(),this['creator']=_0x52f3a6['creator']||null,this['authors']=_0x52f3a6['authors']||[],this['diffData']=_0x52f3a6['diffData']||null,this['toVersion']=_0x52f3a6['toVersion']||0x0,this['fromVersion']=_0x52f3a6['fromVersion']||0x0,this['set']('name',_0x52f3a6['name']||''),this['set']('createdAt',_0x52f3a6['createdAt']||new Date()),this['set']('attributes',_0x52f3a6['attributes']||{});}['setName'](_0x3bb129){this['_update']({'name':_0x3bb129});}['setAttribute'](_0x446e19,_0x48f637){const _0x18abb0=_0x558200(this['attributes']);_0x4aecf7(_0x18abb0,_0x446e19,_0x48f637),this['_update']({'attributes':_0x18abb0});}['removeAttribute'](_0x3c841c){const _0x50b8ec=_0x558200(this['attributes']);_0x1ec5a2(_0x50b8ec,_0x3c841c),this['_update']({'attributes':_0x50b8ec});}['_update'](_0x4a6bb7,_0x14acfa=!0x1){let _0x31c706=!0x1;const _0xb572dc={'id':this['id']},_0x1b5b71=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d54c5 of _0x1b5b71){const _0x422e88=_0x4a6bb7[_0x5d54c5];void 0x0!==_0x422e88&&_0x422e88!==this[_0x5d54c5]&&(this[_0x5d54c5]=_0x422e88,_0xb572dc[_0x5d54c5]=_0x422e88,_0x31c706=!0x0);}_0x31c706&&(_0xb572dc['authors']&&(_0xb572dc['authorsIds']=_0xb572dc['authors']['map'](_0xdb0ecb=>_0xdb0ecb['id']),delete _0xb572dc['authors']),this['fire']('_update',_0xb572dc,_0x14acfa));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55bfd4=>_0x55bfd4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x225e65{['_revisions'];static get['requires'](){return[_0x19dc8a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x201faf){super(_0x201faf),this['_revisions']=new _0x56bfbf();}['afterInit'](){!async function(_0x5434a1){const _0x5eb2e6=_0x39f422([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x19e0e8=0xeb829,_0x29dccf=0x7374585f,_0x14f859=0x73732c9f^_0x29dccf,_0x4f2929=window[_0x39f422([0x44,0x61,0x74,0x65])][_0x39f422([0x6e,0x6f,0x77])](),_0x26e12d=_0x5434a1[_0x39f422([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30c930=new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591146=>{_0x26e12d[_0x39f422([0x6f,0x6e,0x63,0x65])](_0x39f422([0x72,0x65,0x61,0x64,0x79]),_0x591146);}),_0x16a586={[_0x39f422([0x6b,0x74,0x79])]:_0x39f422([0x45,0x43]),[_0x39f422([0x75,0x73,0x65])]:_0x39f422([0x73,0x69,0x67]),[_0x39f422([0x63,0x72,0x76])]:_0x39f422([0x50,0x2d,0x32,0x35,0x36]),[_0x39f422([0x78])]:_0x39f422([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]),[_0x39f422([0x79])]:_0x39f422([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]),[_0x39f422([0x61,0x6c,0x67])]:_0x39f422([0x45,0x53,0x32,0x35,0x36])},_0x56c76e=_0x26e12d[_0x39f422([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39f422([0x67,0x65,0x74])](_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbca603(){let _0x1736c6,_0x2927a0=null,_0x198336=null;try{if(_0x56c76e==_0x39f422([0x47,0x50,0x4c]))return _0x39f422([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1736c6=_0xd096b0(),!_0x1736c6)return _0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1736c6[_0x39f422([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198336=_0x4f5ee3(_0x1736c6[_0x39f422([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1736c6[_0x39f422([0x6a,0x74,0x69])])),await _0x2f9e0f()?_0x466cfd()?_0x448e1c()?_0x39f422([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d9d98()?(_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f422([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2927a0=_0x482a3b(_0x39f422([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f422([0x74,0x72,0x69,0x61,0x6c])&&(_0x2927a0=_0x482a3b(_0x39f422([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13c190()):_0x39f422([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39f422([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x448e1c(){const _0x1d81ce=[_0x39f422([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39f422([0x74,0x72,0x69,0x61,0x6c])][_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f2929/0x3e8:0xe10*_0x14f859;return _0x1736c6[_0x39f422([0x65,0x78,0x70])]<_0x1d81ce;}function _0x466cfd(){const _0x1d2ec7=_0x1736c6[_0x39f422([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d2ec7)return!0x1;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x2a])))return!0x0;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x52,0x48])))return!0x0;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x52,0x52,0x48]))){if(_0x56bd0a())return!0x0;if(_0xb93c03()||_0x117e22())return!0x0;}return!0x1;}function _0x1d9d98(){const _0x50a40a=_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50a40a||0x0==_0x50a40a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37c482}=new URL(window[_0x39f422([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50a40a[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37c482))return!0x0;const _0x41999d=_0x37c482[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e]));return _0x50a40a[_0x39f422([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32c628=>_0x32c628[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x2a])))[_0x39f422([0x6d,0x61,0x70])](_0x2f81bb=>_0x2f81bb[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e])))[_0x39f422([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43f0ab=>_0x43f0ab[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x41999d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39f422([0x6d,0x61,0x70])](_0xcf60ea=>Array(_0x41999d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcf60ea[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39f422([0x66,0x69,0x6c,0x6c])](_0xcf60ea[0x0]===_0x39f422([0x2a])?_0x39f422([0x2a]):'')[_0x39f422([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcf60ea))[_0x39f422([0x73,0x6f,0x6d,0x65])](_0x766239=>_0x41999d[_0x39f422([0x65,0x76,0x65,0x72,0x79])]((_0x10c648,_0x255a7a)=>_0x766239[_0x255a7a]===_0x10c648||_0x766239[_0x255a7a]===_0x39f422([0x2a])));}function _0x13c190(){return _0x2927a0&&_0x198336?new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eb806,_0x29d818)=>{_0x2927a0[_0x39f422([0x74,0x68,0x65,0x6e])](_0x1eb806,_0x29d818),_0x198336[_0x39f422([0x74,0x68,0x65,0x6e])](_0x53b67b=>{_0x53b67b!=_0x39f422([0x56,0x61,0x6c,0x69,0x64])&&_0x1eb806(_0x53b67b);},_0x29d818);}):_0x2927a0||_0x198336||_0x39f422([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f5ee3(_0x100945,_0x171260){return new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d10fb=>{if(_0x3628c0())return _0x4d10fb(_0x39f422([0x56,0x61,0x6c,0x69,0x64]));_0x20600b(),_0x26e12d[_0x39f422([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a33d1=!0x1;const _0x415234=_0x5c7d64();function _0x2567a7(_0x53acf9){return!!_0x53acf9&&(typeof _0x53acf9===_0x39f422([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53acf9===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53acf9[_0x39f422([0x74,0x68,0x65,0x6e])]===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53acf9[_0x39f422([0x63,0x61,0x74,0x63,0x68])]===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c159b(_0x7113b4){_0x50341b(_0x7113b4)[_0x39f422([0x74,0x68,0x65,0x6e])](_0x3053cc=>{if(!_0x3053cc||_0x3053cc[_0x39f422([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39f422([0x6f,0x6b]))return _0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5edae7(_0x33faf6(_0x415234+_0x171260))!=_0x3053cc[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39f422([0x56,0x61,0x6c,0x69,0x64]);})[_0x39f422([0x74,0x68,0x65,0x6e])](_0x39346a=>(_0x2265b9(),_0x39346a),()=>{const _0x598090=_0x59958e();return null==_0x598090?(_0x2265b9(),_0x39f422([0x56,0x61,0x6c,0x69,0x64])):_0x39f422(_0x4f2929-_0x598090>(0x5778dc5f^_0x29dccf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39f422([0x74,0x68,0x65,0x6e])](_0x4d10fb)[_0x39f422([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22546c=0x7342b6df^_0x29dccf;function _0x2265b9(){const _0x4ca2cf=_0x39f422([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edae7(_0x33faf6(_0x100945)),_0x3882cf=_0x4e2c00(_0x5edae7(window[_0x39f422([0x4d,0x61,0x74,0x68])][_0x39f422([0x63,0x65,0x69,0x6c])](_0x4f2929/_0x22546c)));window[_0x39f422([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f422([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca2cf,_0x3882cf);}function _0x59958e(){const _0x5ca319=_0x39f422([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edae7(_0x33faf6(_0x100945)),_0x305326=window[_0x39f422([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f422([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ca319);return _0x305326?window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2c00(_0x305326),0x10)*_0x22546c:null;}function _0x50341b(_0x24d0b8){return new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c8ea9,_0x489a31)=>{_0x24d0b8[_0x39f422([0x74,0x68,0x65,0x6e])](_0x2c8ea9,_0x489a31),window[_0x39f422([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x489a31,0x73758c9f^_0x29dccf);});}}_0x26e12d[_0x39f422([0x6f,0x6e])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47202c,_0x5ef0cc)=>{if(_0x5ef0cc[0x0]!=_0x100945)return _0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ef0cc[0x1]={..._0x5ef0cc[0x1],[_0x39f422([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x415234};},{[_0x39f422([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f422([0x68,0x69,0x67,0x68])}),_0x26e12d[_0x39f422([0x6f,0x6e])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58b613=>{_0x2567a7(_0x58b613[_0x39f422([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a33d1=!0x0,_0x1c159b(_0x58b613[_0x39f422([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39f422([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f422([0x6c,0x6f,0x77])}),_0x30c930[_0x39f422([0x74,0x68,0x65,0x6e])](()=>{_0x4a33d1||_0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3628c0(){return _0x26e12d[_0x39f422([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f422([0x76,0x69,0x65,0x77])][_0x39f422([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39f422([0x61,0x75,0x74,0x6f]);}function _0x20600b(){_0x26e12d[_0x39f422([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f422([0x76,0x69,0x65,0x77])][_0x39f422([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f422([0x61,0x75,0x74,0x6f]);}}function _0x482a3b(_0x30af64){const _0x295dc3=[new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1038da=>setTimeout(_0x1038da,0x737d6693^_0x29dccf)),_0x30c930[_0x39f422([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdbd800=>{const _0x35df6e=0x73745858^_0x29dccf,_0x5c0c6d=_0x5434a1[_0x39f422([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b4eed(){_0x5c0c6d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35df6e&&_0xdbd800();}_0x3b4eed(),_0x5c0c6d[_0x39f422([0x6f,0x6e])](_0x39f422([0x61,0x64,0x64]),_0x3b4eed);})),new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x531dbb=>{function _0x5591de(){for(const _0x7da7b5 in window)if(window[_0x39f422([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39f422([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x7da7b5))&&window[_0x7da7b5]==_0x19e0e8)return _0x531dbb();_0x26e12d[_0x39f422([0x73,0x74,0x61,0x74,0x65])]!=_0x39f422([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39f422([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5591de,0x73744bd7^_0x29dccf);}_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5591de();})];return window[_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f422([0x72,0x61,0x63,0x65])](_0x295dc3)[_0x39f422([0x74,0x68,0x65,0x6e])](()=>_0x30af64);}async function _0x20b9de(){if(await _0x30c930,_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11ed03=_0x5434a1[_0x39f422([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2bf59c=_0x5434a1[_0x39f422([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])](_0x11ed03[_0x39f422([0x69,0x64])]),_0x156e49=_0x493164(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x156e49[_0x39f422([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11ed03['id'],_0x2bf59c?_0x2bf59c['id']:null,!0x0),_0x156e49[_0x39f422([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x156e49[_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x156e49[_0x39f422([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5b6d01,void(_0x156e49[_0x39f422([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5b6d01);}if(_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28b774=_0x493164(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28b774[_0x39f422([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28b774[_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28b774[_0x39f422([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5b6d01,_0x28b774[_0x39f422([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5b6d01;}_0x26e12d[_0x39f422([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f422([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6d01,_0x26e12d[_0x39f422([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f422([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6d01,_0x26e12d[_0x39f422([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39f422([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56bd0a(){return _0x15d0f0(_0x39f422([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x493164(_0x39f422([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39f422([0x73,0x74,0x61,0x74,0x65])]==_0x39f422([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb93c03(){return _0x15d0f0(_0x39f422([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 _0x117e22(){return _0x15d0f0(_0x39f422([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c241e(_0x47fcdd){const _0x1fa6b6=_0x349150();_0x26e12d[_0x1fa6b6]=_0x39f422([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])+_0x47fcdd,_0x47fcdd[_0x39f422([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39f422([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x349150()]=_0x19e0e8),_0x47fcdd!=_0x39f422([0x56,0x61,0x6c,0x69,0x64])&&_0x20b9de();}function _0x349150(){const _0x5ca75d=window[_0x39f422([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39f422([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39f422([0x6e,0x6f,0x77])]())[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39f422([0x2e]),'');let _0xdd7011=_0x39f422([0x73]);for(let _0x1849db=0x0;_0x1849db<_0x5ca75d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1849db+=0x2){let _0x27c539=window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ca75d[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1849db,_0x1849db+0x2));_0x27c539>=_0x5eb2e6[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c539-=_0x5eb2e6[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdd7011+=_0x5eb2e6[_0x27c539];}return _0xdd7011;}function _0xd096b0(){const _0x355e2a=_0x56c76e[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e]));if(0x3!=_0x355e2a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9e3381(_0x355e2a[0x1]);function _0x9e3381(_0xd673cc){const _0x44a7bc=_0x5bf8d8(_0xd673cc);return _0x44a7bc&&_0x282a96()?_0x44a7bc:null;function _0x282a96(){const _0x1b4b00=_0x44a7bc[_0x39f422([0x6a,0x74,0x69])],_0x376db5=window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4b00[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b4b00[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xafa2ad={..._0x44a7bc,[_0x39f422([0x6a,0x74,0x69])]:_0x1b4b00[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b4b00[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xafa2ad[_0x39f422([0x76,0x63])],_0x33faf6(_0xafa2ad)==_0x376db5;}}}async function _0x2f9e0f(){let _0x4a672a=!0x0;try{const _0x6373e4=_0x56c76e[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e])),[_0x309e7b,_0x4f2e95,_0x3305a1]=_0x6373e4;return _0x5d7c22(_0x309e7b),await _0x536a7d(_0x309e7b,_0x4f2e95,_0x3305a1),_0x4a672a;}catch{return!0x1;}function _0x5d7c22(_0x1fdd47){const _0x4cd1a4=_0x5bf8d8(_0x1fdd47);_0x4cd1a4&&_0x4cd1a4[_0x39f422([0x61,0x6c,0x67])]==_0x39f422([0x45,0x53,0x32,0x35,0x36])||(_0x4a672a=!0x1);}async function _0x536a7d(_0x59e254,_0x5c353b,_0x460b8e){const _0xe0762f=window[_0x39f422([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39f422([0x66,0x72,0x6f,0x6d])](_0x373f59(_0x460b8e),_0x765dbe=>_0x765dbe[_0x39f422([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x472f93=new window[(_0x39f422([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39f422([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e254+_0x39f422([0x2e])+_0x5c353b),_0x5cdf53=window[_0x39f422([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39f422([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cdf53)return;const _0x900c1f=await _0x5cdf53[_0x39f422([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39f422([0x6a,0x77,0x6b]),_0x16a586,{[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x45,0x43,0x44,0x53,0x41]),[_0x39f422([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39f422([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cdf53[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x45,0x43,0x44,0x53,0x41]),[_0x39f422([0x68,0x61,0x73,0x68])]:{[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x900c1f,_0xe0762f,_0x472f93)||(_0x4a672a=!0x1);}}function _0x5bf8d8(_0x14f45e){return _0x14f45e[_0x39f422([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39f422([0x65,0x79]))?JSON[_0x39f422([0x70,0x61,0x72,0x73,0x65])](_0x373f59(_0x14f45e)):null;}function _0x373f59(_0x208966){return window[_0x39f422([0x61,0x74,0x6f,0x62])](_0x208966[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39f422([0x2b]))[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39f422([0x2f])));}function _0x33faf6(_0x46927c){let _0x37abb3=0x1505;function _0x3bccb5(_0x12154a){for(let _0x24a26c=0x0;_0x24a26c<_0x12154a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a26c++){const _0x32038a=_0x12154a[_0x39f422([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24a26c);_0x37abb3=(_0x37abb3<<0x5)+_0x37abb3+_0x32038a,_0x37abb3&=_0x37abb3;}}function _0x390132(_0x3122c8){Array[_0x39f422([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3122c8)?_0x3122c8[_0x39f422([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x390132):_0x3122c8&&typeof _0x3122c8==_0x39f422([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39f422([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3122c8)[_0x39f422([0x73,0x6f,0x72,0x74])]()[_0x39f422([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x119236,_0x596061])=>{_0x3bccb5(_0x119236),_0x390132(_0x596061);}):_0x3bccb5(window[_0x39f422([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3122c8));}return _0x390132(_0x46927c),_0x37abb3>>>0x0;}function _0x5edae7(_0x46094f){return _0x46094f[_0x39f422([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39f422([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39f422([0x30]));}function _0x4e2c00(_0x322d4d){return _0x322d4d[_0x39f422([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39f422([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39f422([0x6a,0x6f,0x69,0x6e])]('');}function _0x15d0f0(_0x19882e){return _0x26e12d[_0x39f422([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f422([0x68,0x61,0x73])](_0x19882e);}function _0x493164(_0x3fabec){return _0x26e12d[_0x39f422([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f422([0x67,0x65,0x74])](_0x3fabec);}function _0x5b6d01(){}function _0x39f422(_0x27289d){return _0x27289d['map'](_0x16a6e0=>String['fromCharCode'](_0x16a6e0))['join']('');}_0x4c241e(await _0xbca603());}(this);}['createRevision'](_0x2f3abe){const _0x5efb3b=this['editor']['plugins']['get']('Users');return new I({'id':_0x2f3abe['id'],'name':_0x2f3abe['name'],'creator':_0x2f3abe['creatorId']?_0x5efb3b['getUser'](_0x2f3abe['creatorId']):null,'diffData':_0x2f3abe['diffData']||_0x2f3abe['data'],'authors':_0x2f3abe['authorsIds']['map'](_0x36b4ff=>_0x5efb3b['getUser'](_0x36b4ff)),'createdAt':new Date(_0x2f3abe['createdAt']),'attributes':_0x2f3abe['attributes'],'fromVersion':_0x2f3abe['fromVersion'],'toVersion':_0x2f3abe['toVersion']});}['addRevision'](_0x30720e,_0x123914=0x0){this['_revisions']['add'](_0x30720e,_0x123914);}['getRevision'](_0x1aad04){return this['_revisions']['get'](_0x1aad04);}['getRevisions'](_0x2932b0={'toJSON':!0x1}){const _0x375178=Array['from'](this['_revisions']);return _0x375178['reverse'](),_0x2932b0['toJSON']?_0x375178['map'](_0x3b02dc=>_0x3b02dc['toJSON']()):_0x375178;}['getIndex'](_0x45f7b6){return this['_revisions']['getIndex'](_0x45f7b6);}['getEarlierVisibleRevision'](_0x89b683){const [,_0x1c961a]=this['getRevisionsIterator'](_0x89b683,{'direction':'earlier'});return _0x1c961a;}['getLaterVisibleRevision'](_0x254f2d){const [,_0x31fcdf]=this['getRevisionsIterator'](_0x254f2d,{'direction':'later'});return _0x31fcdf;}['getRevisionsInDiff'](_0x50fbd6){const _0x194369=[];for(const _0x5e2980 of this['getRevisionsIterator'](_0x50fbd6['newRevisionId']))if(_0x194369['push'](_0x5e2980),_0x5e2980['id']===_0x50fbd6['oldRevisionId'])break;return _0x194369;}*['getRevisionsIterator'](_0x14ef9d,{direction:_0x4fb3a0='earlier',filter:_0x287b9c=()=>!0x0}={}){const _0x131590='earlier'===_0x4fb3a0?0x1:-0x1;let _0x1601ea=this['_revisions']['get'](_0x14ef9d),_0xdb629d=this['getIndex'](_0x1601ea);for(yield _0x1601ea;_0x1601ea;){if(_0xdb629d+=_0x131590,_0x1601ea=this['getRevision'](_0xdb629d),!_0x1601ea)return;_0x287b9c(_0x1601ea)&&(yield _0x1601ea);}}}class $ extends _0x225e65{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x34b395,'c'],[_0x39405c,'a'],[_0x4d2903,'e'],[_0x20f72c,'r'],[_0xe510b1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x34b395],['a',_0x39405c],['e',_0x4d2903],['r',_0x20f72c],['u',_0xe510b1]]);async['loadRevisionData'](_0x57b68a,_0x324372){if(_0x57b68a['diffData']||!_0x324372)return;const _0x52c8de=this['editor']['config']['get']('collaboration.channelId'),_0x57bbb8=await _0x324372['getRevision']({'channelId':_0x52c8de,'revisionId':_0x57b68a['id']});_0x57b68a['diffData']=_0x57bbb8['diffData'];}['getRevisionDocumentData'](_0x3c4e70){const _0x5955bc={};for(const _0x2ef066 in _0x3c4e70['diffData']){if(_0x3c4e70['diffData'][_0x2ef066]['attachChange']&&!_0x3c4e70['diffData'][_0x2ef066]['attachChange']['isAttached'])continue;const _0x303133=this['_removeRevisionMarkers'](JSON['parse'](_0x3c4e70['diffData'][_0x2ef066]['insertions'])),_0x2df251=this['editor']['editing']['view']['document'],_0x200142=new _0x1ec763(_0x2df251,_0x303133['map'](_0x4d7797=>this['_getViewFromDiffObj'](_0x4d7797,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5955bc[_0x2ef066]=this['editor']['data']['processor']['toData'](_0x200142),this['editor']['data']['processor']['useFillerType']('default');}return _0x5955bc;}['getRevisionRootsAttributes'](_0x25050b){const _0x499acf={};for(const _0x388f21 in _0x25050b['diffData'])_0x25050b['diffData'][_0x388f21]['attachChange']&&!_0x25050b['diffData'][_0x388f21]['attachChange']['isAttached']||(_0x499acf[_0x388f21]=_0x25050b['diffData'][_0x388f21]['attributesAfter']||{});return _0x499acf;}['_getTypeCharForViewElement'](_0x55fd77){return this['_viewClassToTypeChar']['get'](_0x55fd77['constructor']);}['_getViewFromDiffObj'](_0x4f4ffc,_0x1326b7){const _0x4d33ce=this['editor']['editing']['view']['document'];if('string'==typeof _0x4f4ffc)return new _0x2584c6(_0x4d33ce,_0x4f4ffc);{let _0x5baafa,_0x566901;_0x566901='u'==_0x4f4ffc['type']||'r'==_0x4f4ffc['type']?[]:_0x4f4ffc['children']['map'](_0x4dc8c0=>this['_getViewFromDiffObj'](_0x4dc8c0,_0x1326b7));const _0x29cfea=this['_typeCharToViewClass']['get'](_0x4f4ffc['type'])||_0x2057e0,_0x39e1ae=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5baafa=new _0x29cfea(_0x4d33ce,_0x4f4ffc['name'],_0x4f4ffc['attributes'],_0x566901),'u'==_0x4f4ffc['type']&&_0x4f4ffc['children'][0x0]){const _0x4433b2=_0x4f4ffc['children'][0x0];if(_0x5baafa['render']=function(_0x16dccf){const _0x2a80e0=_0x16dccf['createElement']('div');return _0x2a80e0['innerHTML']=_0x4433b2,_0x2a80e0['childNodes'][0x0];},_0x1326b7){const _0x402177=new _0x1ec763(_0x4d33ce);_0x402177['_appendChild'](_0x5baafa);const _0x487416=Array['from'](_0x39e1ae['viewChildrenToDom'](_0x402177,{'bind':!0x1})),_0x39716f=_0x39e1ae['domDocument']['createElement']('div');_0x39716f['append'](..._0x487416),_0x5baafa=Array['from'](_0x39e1ae['domChildrenToView'](_0x39716f))[0x0];}}else{if('r'==_0x4f4ffc['type']&&_0x4f4ffc['children'][0x0]){const _0x2e71d0=_0x4f4ffc['children'][0x0];if(_0x5baafa['render']=function(_0x891d65){_0x891d65['innerHTML']=_0x2e71d0;},_0x1326b7){const _0x15a85d=new _0x1ec763(_0x4d33ce);_0x15a85d['_appendChild'](_0x5baafa);const _0x25e733=Array['from'](_0x39e1ae['viewChildrenToDom'](_0x15a85d,{'bind':!0x1})),_0x800f8=_0x39e1ae['domDocument']['createElement']('div');_0x800f8['append'](..._0x25e733);const _0x12a3f3=Array['from'](_0x39e1ae['domChildrenToView'](_0x800f8));_0x12a3f3['length']>0x1?_0x5baafa['_appendChild'](_0x12a3f3):_0x5baafa=_0x12a3f3[0x0];}}}if(_0x4f4ffc['customProperties']){for(const [_0x58e13f,_0x1462ae]of _0x4f4ffc['customProperties'])_0x5baafa['_setCustomProperty'](_0x58e13f,_0x1462ae);}const _0x57f20d=void 0x0===_0x4f4ffc['fillerOffset']?null:_0x4f4ffc['fillerOffset'];return null!==_0x57f20d&&(_0x5baafa['getFillerOffset']=()=>_0x57f20d),_0x5baafa;}}['_makeModelFromViewString'](_0x553e6e){const _0x44b3b8=JSON['parse'](_0x553e6e),_0x35d03c=this['editor']['editing']['view']['document'],_0x8f1e45=new _0x1ec763(_0x35d03c,_0x44b3b8['map'](_0x3e1a90=>this['_getViewFromDiffObj'](_0x3e1a90,!0x0)));return this['editor']['data']['toModel'](_0x8f1e45);}['_removeRevisionMarkers'](_0x47a7d6){return(_0x47a7d6=_0x47a7d6['filter'](_0x49911d=>!_0x49911d['name']||'revision-start'!==_0x49911d['name']&&'revision-end'!==_0x49911d['name']))['forEach'](_0x4771f2=>{'string'!=typeof _0x4771f2&&(_0x4771f2['children']=this['_removeRevisionMarkers'](_0x4771f2['children']),_0x4771f2['attributes']=_0x4771f2['attributes']['filter'](_0x5a7e24=>!_0x5a7e24[0x0]['startsWith']('data-revision-')));}),_0x47a7d6;}}function R(_0x1921b0,_0x1b8dc1,_0x3e1565){const t=_0x1921b0['t'];switch(_0x1b8dc1){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'},_0x3e1565);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3e1565);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x225e65{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x19dc8a,S,$,_0x520f90];}constructor(_0x2f6f67){super(_0x2f6f67),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x546bd6=_0x5c7d64();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x546bd6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4ec444=this['repository']['getRevision'](0x0),_0x2469dc=_0x4ec444&&null===_0x4ec444['creator']?_0x4ec444:null;if(this['_continueCurrentRevision']=!!_0x2469dc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5da0bf=this['_source']['getCurrentRevisionId'](),_0x5a7f2a=this['repository']['getRevision'](_0x5da0bf);if(_0x5a7f2a)this['_startingVersion']=_0x5a7f2a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x44bf39=this['_source']['history']['_operations']['find'](_0x26aa75=>!_0x26aa75['_isInit']),_0x4c6b69=_0x44bf39?_0x44bf39['baseVersion']:this['_source']['history']['version'];_0x4ec444?(_0x4ec444['toVersion']<_0x4c6b69&&_0x4ec444['_update']({'toVersion':_0x4c6b69}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id'],this['_startingVersion']=_0x2469dc['fromVersion']):(this['_startingVersion']=_0x4ec444['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4c6b69,this['_continueCurrentRevision']=!0x1);}}else _0x2469dc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2469dc['toVersion'],this['editor']['model']['document']['history']['version']),_0x2469dc['fromVersion']===_0x2469dc['toVersion']?(0x0!==_0x2469dc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id'],this['_startingVersion']=_0x2469dc['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',_0x5ad9b6=>!_0x5ad9b6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ac2fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x306506;for(const _0x311392 in _0x1ac2fd){const _0x148714=_0x311392,_0x21a969=_0x1ac2fd[_0x148714];if('revisionHistoryLicenseKeyValid'==_0x21a969||'revisionHistoryLicenseKeyInvalid'==_0x21a969||'revisionHistoryLicenseKeyExpired'==_0x21a969||'revisionHistoryLicenseKeyDomainLimit'==_0x21a969||'revisionHistoryLicenseKeyNotAllowed'==_0x21a969||'revisionHistoryLicenseKeyEvaluationLimit'==_0x21a969||'revisionHistoryLicenseKeyTrialLimit'==_0x21a969||'revisionHistoryLicenseKeyUsageLimit'==_0x21a969){delete _0x1ac2fd[_0x148714],_0x306506=_0x21a969,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x306506&&_0x1ac2fd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x306506&&_0x1ac2fd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x306506&&_0x1ac2fd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x51f2c1=this['repository']['getRevision'](0x0),_0x23a98e=await this['getRevisionDocumentData'](_0x51f2c1),_0x3ce92b=await this['getRevisionRootsAttributes'](_0x51f2c1);this['_replaceEditorDataWithRevisionData'](_0x23a98e,_0x3ce92b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x44b8a2){this['_source']=_0x44b8a2;}async['update'](){const _0x3f3763=await this['_source']['getLatestVersion']();if(_0x3f3763>this['currentRevision']['toVersion']){await this['_loadState']();const _0x480d7e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f3763});_0x480d7e['authors']=_0x480d7e['authorsIds']['map'](_0x388d30=>this['editor']['plugins']['get']('Users')['getUser'](_0x388d30)),this['currentRevision']['_update'](_0x480d7e);}}async['saveRevision'](_0x6092e4={},_0x13a309=null){const _0x43718e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x13a309>this['currentRevision']['toVersion']&&(_0x13a309=null),null===_0x13a309&&(_0x13a309=await this['_source']['getLatestVersion']());const _0x3e62a6=this['_getFromVersion'](_0x13a309),_0x3657f6=this['buildRevisionData']({'from':_0x3e62a6,'to':_0x13a309});if(this['currentRevision']['toVersion']<_0x13a309){const _0x6a3174=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x13a309,'to':_0x13a309});_0x6a3174['authors']=[],_0x6a3174['authorsIds']=[],_0x6a3174['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x6a3174,!0x0),delete _0x6a3174['authors'],_0x43718e['push'](_0x6a3174);}_0x6092e4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6092e4['name']=_0x6092e4['name']||null,_0x6092e4['id']=_0x6092e4['id']||_0x5c7d64(),_0x6092e4={..._0x6092e4,..._0x3657f6};const _0x581900=this['addRevisionData'](_0x6092e4);_0x43718e['push'](_0x6092e4);const _0x217cf4=this['repository']['getIndex'](_0x581900);if(0x0!==_0x217cf4){const _0xb5617b=this['repository']['getRevision'](_0x217cf4-0x1);if(_0xb5617b['fromVersion']!==_0x13a309){const _0x29fdbe=this['_revisionDataBuilder']['getData'](_0x13a309,_0xb5617b['toVersion']),_0x3f7d79={'id':_0xb5617b['id'],'diffData':_0x29fdbe['diffData'],'authorsIds':_0x29fdbe['authorsIds'],'authors':_0x29fdbe['authorsIds']['map'](_0x5da2f3=>this['editor']['plugins']['get']('Users')['getUser'](_0x5da2f3)),'fromVersion':_0x13a309};_0xb5617b===this['currentRevision']&&(_0x3f7d79['createdAt']=new Date(_0x6092e4['createdAt']['getTime']()+0xa)),_0xb5617b['_update'](_0x3f7d79,!0x0),delete _0x3f7d79['authors'],_0x43718e['push'](_0x3f7d79);}}if(this['adapter']){for(const _0x15244c of _0x43718e)this['_bufferUpdate'](_0x15244c['id'],_0x15244c,!0x0);this['sendBufferedUpdates']();}return _0x581900;}['addRevisionData'](_0x428e09){const _0x5559f8=this['repository']['createRevision'](_0x428e09);return this['adapter']&&_0x5559f8['on']('_update',(_0x34b3fa,_0xd346fa,_0x3d60c1)=>{_0x3d60c1||(this['_bufferUpdate'](_0xd346fa['id'],_0xd346fa,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5559f8,this['_findInsertionIndex'](_0x5559f8)),_0x5559f8;}async['getRevisionDocumentData'](_0x479fb0){return await this['_utils']['loadRevisionData'](_0x479fb0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x479fb0);}async['getRevisionRootsAttributes'](_0x627187){return await this['_utils']['loadRevisionData'](_0x627187,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x627187);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x59795a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3c5349=0x0;_0x3c5349<_0x59795a['length'];_0x3c5349++){const _0x143781=_0x59795a[_0x3c5349];let _0x11be2a=!0x1;for(const _0x2d94e6 of Object['keys'](_0x143781))void 0x0===_0x143781[_0x2d94e6]?delete _0x143781[_0x2d94e6]:'id'!==_0x2d94e6&&(_0x11be2a=!0x0);_0x11be2a||(_0x59795a[_0x3c5349]=null);}if(_0x59795a=_0x59795a['filter'](_0x35e3de=>null!==_0x35e3de),!_0x59795a['length'])return;for(let _0x263941=0x0;_0x263941<_0x59795a['length'];_0x263941++){const _0x56516d=_0x59795a[_0x263941];void 0x0!==_0x56516d['fromVersion']&&void 0x0===_0x56516d['toVersion']&&(_0x56516d['toVersion']=this['repository']['getRevision'](_0x56516d['id'])['toVersion']),void 0x0!==_0x56516d['toVersion']&&void 0x0===_0x56516d['fromVersion']&&(_0x56516d['fromVersion']=this['repository']['getRevision'](_0x56516d['id'])['fromVersion']);}const _0x2c2916=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x59795a,_0x2c2916)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1932a5=>{if(_0x1932a5){for(const _0x37d87b of _0x1932a5)this['setRevisionData']({'id':_0x37d87b['id'],'createdAt':_0x37d87b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xd12c70=null,from:_0x51cfcc=null,to:_0x5939cf=null}){_0x51cfcc=null!==_0x51cfcc?_0x51cfcc:_0xd12c70['fromVersion'],_0x5939cf=null!==_0x5939cf?_0x5939cf:_0xd12c70['toVersion'];const _0x431f4f=this['_revisionDataBuilder']['getData'](_0x51cfcc,_0x5939cf),_0x5ccf17={'diffData':_0x431f4f['diffData'],'authorsIds':_0x431f4f['authorsIds'],'fromVersion':_0x51cfcc,'toVersion':_0x5939cf};if(!_0xd12c70||_0x5939cf!==_0xd12c70['toVersion']){const _0x418065=_0x5939cf-0x1,_0x2c8d02=this['_source']['history']['getOperation'](_0x418065);_0x5ccf17['createdAt']=_0x2c8d02&&_0x2c8d02['createdAt']||new Date();}if(this['_loadedStateData']&&_0x51cfcc===this['_loadedStateData']['fromVersion']){for(const _0x4d1fbb of this['_loadedStateData']['authors'])_0x5ccf17['authorsIds']['includes'](_0x4d1fbb['id'])||_0x5ccf17['authorsIds']['push'](_0x4d1fbb['id']);}return _0x5ccf17;}['_bufferUpdate'](_0x5f174c,_0x1ee54c,_0x516507){if(this['_bufferedUpdates']['has'](_0x5f174c)){const _0x185b55=this['_bufferedUpdates']['get'](_0x5f174c);_0x1ee54c=_0x516507?{..._0x185b55,..._0x1ee54c}:{..._0x1ee54c,..._0x185b55};}this['_bufferedUpdates']['set'](_0x5f174c,_0x1ee54c);}['setRevisionData'](_0x38873c){const _0x1ede03=this['repository']['getRevision'](_0x38873c['id']);if(_0x38873c['createdAt']&&(_0x38873c['createdAt']=new Date(_0x38873c['createdAt'])),_0x38873c['authorsIds']){const _0x273895=this['editor']['plugins']['get']('Users');_0x38873c['authors']=_0x38873c['authorsIds']['map'](_0x18139e=>_0x273895['getUser'](_0x18139e));}_0x1ede03['_update'](_0x38873c,!0x0);}['_createInitialRevision'](_0x43a0ba){const _0xa8731=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa8731)this['_initialRevisionId']=_0xa8731['id'];else{const _0x3b6b19=!this['editor']['model']['document']['roots']['find'](_0x2a1bfd=>this['editor']['model']['hasContent'](_0x2a1bfd)),_0x2fae49=this['editor']['plugins']['get']('Users')['me']['id'],_0x132da7=R(this['editor']['locale'],_0x3b6b19?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43a0ba,'to':_0x43a0ba,'id':this['_initialRevisionId'],'name':_0x132da7,'creatorId':_0x2fae49});}}['_createCurrentRevision'](_0x439edb){const _0x201fbd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x201fbd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x439edb,'to':_0x439edb,'id':_0x201fbd,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3f6e48,_0x4b73ca){let _0x4c12c2=this['editor']['config']['get']('initialData'),_0x5dbcdf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4c12c2){_0x4c12c2={};for(const _0x2d8acc of this['editor']['model']['document']['getRootNames']())_0x4c12c2[_0x2d8acc]='';}if('string'==typeof _0x4c12c2&&(_0x4c12c2={'main':_0x4c12c2}),void 0x0===_0x5dbcdf){_0x5dbcdf={};for(const _0x511273 of this['editor']['model']['document']['getRootNames']())_0x5dbcdf[_0x511273]={};}let _0x20b367=!0x1;const _0x4d7f10=Object['keys'](_0x4c12c2),_0x3a0595=Object['keys'](_0x3f6e48);for(const _0xbc1def of _0x4d7f10){if(_0x4c12c2[_0xbc1def]!==_0x3f6e48[_0xbc1def]&&''!==_0x4c12c2[_0xbc1def]['trim']()){_0x20b367=!0x0;break;}if(!_0x1fb6a3(_0x5dbcdf[_0xbc1def],_0x4b73ca[_0xbc1def])&&Object['keys'](_0x5dbcdf[_0xbc1def])['length']>0x0){_0x20b367=!0x0;break;}}_0x20b367||(_0x20b367=_0x3a0595['some'](_0x9d063=>!this['editor']['model']['document']['getRoot'](_0x9d063))),_0x20b367&&_0x1cc307('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4c12c2,'editorRootsAttributes':_0x5dbcdf,'revisionData':_0x3f6e48,'revisionRootsAttributes':_0x4b73ca}),this['editor']['config']['set']('initialData',_0x3f6e48),this['editor']['config']['set']('rootsAttributes',_0x4b73ca);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x15d182=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x15d182['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cdde3){const _0x4e4da7=this['repository']['getRevisions']();_0x4e4da7['reverse']();let _0xe4235d=0x0;for(;_0xe4235d<_0x4e4da7['length'];){const _0x2ac157=_0x4e4da7[_0xe4235d];if(_0x2ac157===this['currentRevision']){_0xe4235d++;continue;}if(_0x2ac157['id']===this['_initialRevisionId'])break;const _0x5d1873=_0x5cdde3['toVersion']-_0x2ac157['toVersion']||_0x5cdde3['fromVersion']-_0x2ac157['fromVersion'];if(_0x5d1873>0x0)break;if(_0x5d1873<0x0)_0xe4235d++;else{if(!_0x5cdde3['creator']&&_0x2ac157['creator'])break;if(_0x2ac157['creator']||!_0x5cdde3['creator']){if(_0x5cdde3['createdAt']>_0x2ac157['createdAt'])break;_0xe4235d++;}else _0xe4235d++;}}return _0xe4235d;}['_getFromVersion'](_0x18a57b){const _0x3811b7=this['repository']['getRevisions']();_0x3811b7['reverse'](),_0x3811b7['shift']();const _0x53633d=_0x3811b7['find'](_0x5f2379=>_0x5f2379['toVersion']<=_0x18a57b)['toVersion'];return _0x53633d<this['_startingVersion']?this['_startingVersion']:_0x53633d;}['_makeRevision']({name:_0x3d0219,from:_0x1d23fb,to:_0x20ec65,creatorId:_0x79f93c,id:_0x1e3358}){const _0x5618a2=this['buildRevisionData']({'from':_0x1d23fb,'to':_0x20ec65});_0x5618a2['name']=_0x3d0219,_0x5618a2['creatorId']=_0x79f93c,_0x5618a2['id']=_0x1e3358;const _0x4a3589=this['addRevisionData'](_0x5618a2);return this['adapter']&&this['_bufferUpdate'](_0x5618a2['id'],_0x5618a2,!0x0),_0x4a3589;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x27f4ac){this['editor']=_0x27f4ac,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'](_0x4e2a48){this['source']=_0x4e2a48;const _0x9daa5e=new Map(),_0x56665a=new Map(),_0x5eb051=this['editor']['model']['document']['roots']['map'](_0x2c5560=>_0x2c5560['rootName']);for(const _0x78b387 of _0x5eb051){const _0x1c5aca=this['editor']['model']['document']['getRoot'](_0x78b387),_0x5ee6b6=x(_0x1c5aca);_0x9daa5e['set'](_0x78b387,_0x5ee6b6),_0x56665a['set'](_0x78b387,Object['fromEntries'](_0x1c5aca['getAttributes']()));}const _0x7d5200=Array['from'](this['editor']['model']['markers'])['map'](_0xf9c7ce=>[_0xf9c7ce['name'],_0xf9c7ce['getRange']()]),_0x2c887f=this['source']['version'];this['_saveMetaData'](_0x2c887f,_0x9daa5e,_0x7d5200,_0x56665a),this['_startingRevisionId']=this['_revisionId'];const _0xb19175=new Map(),_0x2058ca=new Map();for(const _0x3b6b31 of _0x5eb051){const _0x170c57=N(_0x3b6b31);_0xb19175['set'](_0x3b6b31,_0x170c57),_0x2058ca['set'](_0x3b6b31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb19175,[],_0x2058ca);}['getData'](_0x1767ec,_0x4ac87f){if(this['_lastFrom']===_0x1767ec&&this['_lastTo']<=_0x4ac87f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4ac87f,!0x0);else{if(!this['_savedMetaData']['has'](_0x1767ec)){const _0x5ba619=this['_getPreviousFrom'](_0x1767ec);this['_calculateMetaData'](_0x5ba619,_0x1767ec,!0x1);}this['_calculateMetaData'](_0x1767ec,_0x4ac87f,!0x0);}return this['_lastFrom']=_0x1767ec,this['_lastTo']=_0x4ac87f,this['_getState']();}['loadState'](_0x375243){if(!this['_savedMetaData']['has'](_0x375243['fromVersion'])){const _0x29a719=this['_getPreviousFrom'](_0x375243['fromVersion']);this['_calculateMetaData'](_0x29a719,_0x375243['fromVersion'],!0x1);}this['_calculateMetaData'](_0x375243['fromVersion'],_0x375243['toVersion'],!0x1);const _0x2158ff=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x375243['fromVersion'],this['_lastTo']=_0x375243['toVersion'];for(const _0x171811 in _0x375243['diffData']){const _0x141907=_0x375243['diffData'][_0x171811]['attachChange'],_0x4b6b40=_0x558200(_0x375243['diffData'][_0x171811]['attributesBefore'])||{},_0x5c0f4f=_0x2158ff['_makeModelFromViewString'](_0x375243['diffData'][_0x171811]['deletions']);_0x5c0f4f['rootName']=_0x171811,_0x5c0f4f['_isAttached']=!_0x141907||!_0x141907['isAttached'],_0x5c0f4f['isAttached']=()=>_0x5c0f4f['_isAttached'],this['_baseRoots']['set'](_0x171811,_0x5c0f4f),this['_baseRootsAttributes']['set'](_0x171811,_0x4b6b40),_0x141907&&this['_touchedRoots']['set'](_0x171811,_0x141907);const _0x310157=this['_makeIdsRoot'](_0x5c0f4f);this['_baseIdsRoots']['set'](_0x171811,_0x310157);for(const [_0x33b0ac,_0x5a2350]of _0x5c0f4f['markers']){if(!_0x33b0ac['startsWith']('revision:'))continue;const _0x30e4b1=_0x33b0ac['split'](':')[0x2];for(const _0xba58e3 of _0x5a2350['getWalker']({'singleCharacters':!0x0})){const _0x4faf92=this['_getVidAttributeName'](_0xba58e3),_0x25bcba='elementEnd'==_0xba58e3['type']?_0xba58e3['previousPosition']['path']['slice'](0x0,-0x1):_0xba58e3['previousPosition']['path'],_0x4cabe6=_0x310157['getNodeByPath'](_0x25bcba)['getAttribute'](_0x4faf92);this['_touched']['set'](_0x4cabe6,{'userId':_0x30e4b1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x162bb9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4636fa=>!this['_touched']['has'](_0x4636fa));let _0x4017c8=0x0;const _0x1ec5c3=new Map();for(const _0x189f35 in _0x375243['diffData']){const _0x48e23d=_0x375243['diffData'][_0x189f35]['attachChange'],_0x11bd1e=_0x558200(_0x375243['diffData'][_0x189f35]['attributesAfter'])||{},_0x2d9588=_0x2158ff['_makeModelFromViewString'](_0x375243['diffData'][_0x189f35]['insertions']);_0x2d9588['rootName']=_0x189f35,_0x2d9588['_isAttached']=!_0x48e23d||_0x48e23d['isAttached'],_0x2d9588['isAttached']=()=>_0x2d9588['_isAttached'],this['_diffRoots']['set'](_0x189f35,_0x2d9588),this['_diffRootsAttributes']['set'](_0x189f35,_0x11bd1e);const _0x4c3818=this['_makeIdsRoot'](_0x2d9588,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x189f35,_0x4c3818),_0x1ec5c3['set'](_0x189f35,_0x2d9588['isAttached']()?_0x11bd1e:{});for(const [_0x3377b8,_0x165baa]of _0x2d9588['markers']){if(!_0x3377b8['startsWith']('revision:'))continue;const _0x416498=_0x3377b8['split'](':')[0x2];for(const _0x1e0d07 of _0x165baa['getWalker']({'singleCharacters':!0x0})){const _0x5b3214=this['_getVidAttributeName'](_0x1e0d07),_0xf6cd73=this['_revisionId']++,_0x196ceb='elementEnd'==_0x1e0d07['type']?_0x1e0d07['previousPosition']['path']['slice'](0x0,-0x1):_0x1e0d07['previousPosition']['path'];_0x4c3818['getNodeByPath'](_0x196ceb)['_setAttribute'](_0x5b3214,_0xf6cd73),this['_touched']['set'](_0xf6cd73,{'userId':_0x416498});}}for(const _0x53b6b6 of this['editor']['model']['createRangeIn'](_0x2d9588)['getWalker']({'singleCharacters':!0x0})){const _0x58d144=this['_getVidAttributeName'](_0x53b6b6),_0x315b8b='elementEnd'==_0x53b6b6['type']?_0x53b6b6['previousPosition']['path']['slice'](0x0,-0x1):_0x53b6b6['previousPosition']['path'],_0x30e0fa=_0x4c3818['getNodeByPath'](_0x315b8b);_0x30e0fa['getAttribute'](_0x58d144)>0x0||_0x30e0fa['_setAttribute'](_0x58d144,_0x162bb9[_0x4017c8++]);}for(const [_0x59a222,_0x273657]of _0x2d9588['markers'])_0x59a222['startsWith']('revision:')||this['_markers']['set'](_0x59a222,_0x273657);}const {roots:_0x2d2a57}=this['_savedMetaData']['get'](_0x375243['fromVersion']),{roots:_0x1a5883}=this['_savedMetaData']['get'](_0x375243['toVersion']),_0x13c60b=x(_0x2d2a57['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x13c60b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13c60b,Number['NEGATIVE_INFINITY']));const _0x450e70=x(_0x1a5883['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x450e70),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x450e70));const _0x5c307b=Array['from'](this['_diffRoots'])['map'](([_0x5c0310,_0x57f540])=>[_0x5c0310,x(_0x57f540)]);this['_saveMetaData'](this['_lastTo'],_0x5c307b,this['_markers'],_0x1ec5c3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d9d59,_0x3ea036,_0x567a5b,_0x1120de){const _0x53c633=new Map(_0x3ea036),_0x3803a9=new Map(_0x558200(_0x1120de)),_0x4b0eeb=new Map();for(const [_0x5c2b4c,_0x187b3c]of _0x567a5b)_0x4b0eeb['set'](_0x5c2b4c,{'start':_0x187b3c['start']['clone'](),'end':_0x187b3c['end']['clone'](),'rootName':_0x187b3c['root']['rootName']});this['_savedMetaData']['set'](_0x5d9d59,{'roots':_0x53c633,'markers':_0x4b0eeb,'rootsAttributes':_0x3803a9});}['_removeMetaData'](_0x49bd22){this['_savedMetaData']['delete'](_0x49bd22);}['_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'](_0x1d9557,_0x2792ef=null){let _0x25d1ea=null;_0x1d9557['is']('documentFragment')||(_0x25d1ea=new _0x36dcff(_0x1d9557['name'],{'vid_start':null===_0x2792ef?this['_revisionId']++:_0x2792ef++}));const _0x3992c=[];for(const _0x262e74 of _0x1d9557['getChildren']())if(_0x262e74['is']('element')){_0x3992c['push'](this['_makeIdsRoot'](_0x262e74,_0x2792ef));const _0x2acfd5=_0x3992c[_0x3992c['length']-0x1];null!==_0x2792ef&&(_0x2792ef=_0x2acfd5['is']('element','$text')?_0x2acfd5['getAttribute']('vid')+0x1:_0x2acfd5['getAttribute']('vid_end')+0x1);}else{for(let _0x1272d1=0x0;_0x1272d1<_0x262e74['offsetSize'];_0x1272d1++)_0x3992c['push'](new _0x36dcff('$text',{'vid':null===_0x2792ef?this['_revisionId']++:_0x2792ef++}));}if(_0x1d9557['is']('documentFragment')){const _0x2bafef=N(_0x1d9557['rootName']);return _0x2bafef['_insertChild'](0x0,_0x3992c),_0x2bafef;}return _0x25d1ea['_setAttribute']('vid_end',null===_0x2792ef?this['_revisionId']++:_0x2792ef++),_0x25d1ea['_insertChild'](0x0,_0x3992c),_0x25d1ea;}['_calculateMetaData'](_0x3c6f98,_0x45499d,_0x204e9a){this['_reset']();const {roots:_0x5e12f2,markers:_0x79abf6,rootsAttributes:_0x4b384f}=this['_savedMetaData']['get'](_0x3c6f98);this['_baseRoots']=new Map(_0x5e12f2),this['_baseRootsAttributes']=new Map(_0x558200(_0x4b384f));for(const [_0x12a1ff,_0x6a4ed0]of this['_baseRoots'])if('$graveyard'!==_0x12a1ff&&(this['_diffRoots']['set'](_0x12a1ff,x(_0x6a4ed0)),this['_diffRootsAttributes']=new Map(_0x558200(_0x4b384f)),_0x204e9a)){const _0x501a31=this['_revisionId'];this['_idsRoots']['set'](_0x12a1ff,this['_makeIdsRoot'](_0x6a4ed0)),this['_baseIdsRoots']['set'](_0x12a1ff,this['_makeIdsRoot'](_0x6a4ed0,_0x501a31));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x204e9a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x20202b,_0x44cff6]of _0x79abf6){const _0x764db6=this['_baseRoots']['get'](_0x44cff6['rootName']),_0x4682b6=this['_diffRoots']['get'](_0x44cff6['rootName']),_0x59a7b0=new _0x387fd5(this['_fixPosition'](_0x44cff6['start'],_0x764db6),this['_fixPosition'](_0x44cff6['end'],_0x764db6)),_0x1920f0=this['_fixRange'](_0x59a7b0,_0x4682b6);_0x764db6['markers']['set'](_0x20202b,_0x59a7b0),this['_markers']['set'](_0x20202b,_0x1920f0);}this['_applyOperations'](_0x3c6f98,_0x45499d,_0x204e9a);}['_applyOperations'](_0x5abbbf,_0x34eda4,_0x5cc8ee){for(const _0x1450f4 of this['source']['getOperations'](_0x5abbbf,_0x34eda4))this['_handleOperation'](_0x1450f4,_0x5cc8ee);for(const _0x23f33a of this['_diffRoots']['values']())_0x23f33a['markers']['clear']();for(const [_0x3e0b91,_0x1de566]of this['_markers']){this['_diffRoots']['get'](_0x1de566['root']['rootName'])['markers']['set'](_0x3e0b91,_0x1de566['clone']());}const _0x3c8450=new Map(),_0xaea94e=new Map();for(const [_0x23635d,_0x46da9a]of this['_diffRoots'])_0x3c8450['set'](_0x23635d,x(_0x46da9a)),_0xaea94e['set'](_0x23635d,this['_diffRootsAttributes']['get'](_0x23635d));this['_saveMetaData'](_0x34eda4,_0x3c8450,this['_markers'],_0xaea94e);}['_getPreviousFrom'](_0x3baf38){const _0x1cf097=Array['from'](this['_savedMetaData']['keys']());_0x1cf097['sort']((_0x44b720,_0x2ba50f)=>_0x44b720-_0x2ba50f),_0x1cf097['reverse']();for(const _0x1f0cd1 of _0x1cf097)if(_0x1f0cd1<_0x3baf38)return _0x1f0cd1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x14688d,_0x1388cc){const _0xc0ad29=Array['from'](_0x1388cc['markers'])['map'](([_0xb5c265,_0x5795b6])=>[_0xb5c265,this['_fixRange'](_0x5795b6,_0x14688d)]);_0x14688d['markers']=new Map(_0xc0ad29);}['_transformMarkers'](_0x2c2b13){for(const _0x4f256b of this['_markers']['values']()){const _0x42ec07=_0x4f256b['getTransformedByOperation'](_0x2c2b13),_0x51f90b=_0x387fd5['_createFromRanges'](_0x42ec07);_0x4f256b['start']=_0x51f90b['start'],_0x4f256b['end']=_0x51f90b['end'];}}['_handleOperation'](_0x2d4866,_0x1cc2d0){if('addRoot'!=_0x2d4866['type']&&'detachRoot'!=_0x2d4866['type']){if('insert'==_0x2d4866['type']){const _0x5a8a5c=_0x2d4866['position']['root']['rootName'];this['_diffRoots']['has'](_0x5a8a5c)||(this['_diffRoots']['set'](_0x5a8a5c,N(_0x5a8a5c,!0x0)),this['_diffRootsAttributes']['set'](_0x5a8a5c,{}),_0x1cc2d0&&this['_idsRoots']['set'](_0x5a8a5c,N(_0x5a8a5c,!0x0)));}else{if('addRootAttribute'==_0x2d4866['type']||'removeRootAttribute'==_0x2d4866['type']||'changeRootAttribute'==_0x2d4866['type'])return void this['_handleRootAttributeOperation'](_0x2d4866);'marker'==_0x2d4866['type']&&this['_handleMarkerOperation'](_0x2d4866);}if('marker'!==_0x2d4866['type']){const _0xabd5f2=this['_cloneOperation'](_0x2d4866,this['_diffRoots']);_0xabd5f2['_execute'](),this['_transformMarkers'](_0xabd5f2);}if(_0x1cc2d0)switch(_0x2d4866['type']){case'insert':this['_handleInsertOperation'](_0x2d4866);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d4866);break;case'merge':this['_handleMergeOperation'](_0x2d4866);break;case'split':this['_handleSplitOperation'](_0x2d4866);}}else this['_handleRootOperation'](_0x2d4866,_0x1cc2d0);}['_cloneOperation'](_0x24c6bc,_0x2b0622){const _0x13cfb8=_0x24c6bc['clone']();return _0x13cfb8['_authorId']=_0x24c6bc['_authorId'],this['_fixOperation'](_0x13cfb8,_0x2b0622),_0x13cfb8;}['_getBaseVids'](_0x55ad67){return _0x55ad67['map'](_0xd45905=>{const _0x1d7f1c=this['_getVidAttributeName'](_0xd45905);return Number(_0xd45905['item']['getAttribute'](_0x1d7f1c));});}['_generateTape'](_0x2c50c9,_0x90be9e){if(_0x2c50c9['is']('element','$text'))_0x90be9e['push']({'item':_0x2c50c9,'type':'text'});else{_0x2c50c9['is']('element')&&_0x90be9e['push']({'item':_0x2c50c9,'type':'elementStart'});for(const _0x2c6c9e of _0x2c50c9['getChildren']())this['_generateTape'](_0x2c6c9e,_0x90be9e);_0x2c50c9['is']('element')&&_0x90be9e['push']({'item':_0x2c50c9,'type':'elementEnd'});}return _0x90be9e;}['_getState'](){const _0x4a9829=new Map(this['_touched']),_0x401951=new Map(_0x4a9829),_0x729433=new Map(),_0x4712d9={'insertions':{},'deletions':{}},_0x4b789f={'insertions':{},'deletions':{}},_0x51ae17=new Map(),_0x3a0fbc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a0fbc['delete']('$graveyard');for(const _0x91fb of _0x3a0fbc){const _0x34c885=this['_diffRoots']['get'](_0x91fb)||N(_0x91fb,!0x1),_0x1c5c9f=this['_baseRoots']['get'](_0x91fb)||N(_0x91fb,!0x1);_0x34c885['isAttached']()||_0x1c5c9f['isAttached']()?(_0x4712d9['insertions'][_0x91fb]=x(_0x34c885),_0x4712d9['deletions'][_0x91fb]=x(_0x1c5c9f),this['_copyMarkers'](_0x4712d9['deletions'][_0x91fb],_0x1c5c9f),this['_copyMarkers'](_0x4712d9['insertions'][_0x91fb],_0x34c885),_0x4b789f['insertions'][_0x91fb]=this['_generateTape'](this['_idsRoots']['get'](_0x91fb),[]),_0x4b789f['deletions'][_0x91fb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x91fb)||N(_0x91fb,!0x1),[])):_0x3a0fbc['delete'](_0x91fb);}for(const _0x1cdcb7 of _0x3a0fbc){const _0x1296b2=_0x4b789f['insertions'][_0x1cdcb7];for(const _0x248bd6 of _0x1296b2){const _0x393be2=this['_getVidAttributeName'](_0x248bd6),_0x551f4c=_0x248bd6['item']['getAttribute'](_0x393be2);_0x401951['delete'](_0x551f4c),_0x551f4c>=this['_startingRevisionId']&&_0x729433['set'](_0x551f4c,_0x4a9829['get'](_0x551f4c));}}for(const _0x461b27 of _0x3a0fbc){const _0xa5efea=_0x4b789f['insertions'][_0x461b27],_0x123d5a=this['_getBaseVids'](_0x4b789f['deletions'][_0x461b27]);let _0x717538=0x0;for(const _0x10cc0f of _0xa5efea){const _0x18346d=this['_getVidAttributeName'](_0x10cc0f),_0x3331e6=_0x10cc0f['item']['getAttribute'](_0x18346d);if(!_0x729433['has'](_0x3331e6)&&!_0x51ae17['has'](_0x3331e6)){if(_0x401951['has'](_0x3331e6))_0x717538++;else{if(_0x3331e6!=_0x123d5a[_0x717538]){const _0x35ba4f=_0x4a9829['get'](_0x3331e6)||_0x4a9829['get'](_0x123d5a[_0x717538]);for(;_0x3331e6!=_0x123d5a[_0x717538];)_0x401951['has'](_0x123d5a[_0x717538])||(_0x51ae17['set'](_0x123d5a[_0x717538],_0x35ba4f),_0x4a9829['set'](_0x123d5a[_0x717538],_0x35ba4f)),_0x717538++;}_0x717538++;}}}}for(const _0x591eb5 of _0x3a0fbc){const _0x255b71=_0x4b789f['insertions'][_0x591eb5];for(const _0x166998 of _0x255b71){const _0x4fd706=this['_getVidAttributeName'](_0x166998),_0x45e15f=_0x166998['item']['getAttribute'](_0x4fd706);if(_0x51ae17['has'](_0x45e15f)){const _0x4de577=_0x51ae17['get'](_0x45e15f);_0x401951['has'](_0x45e15f)||_0x401951['set'](_0x45e15f,{..._0x4de577}),_0x729433['set'](_0x45e15f,{..._0x4de577});}}}for(const _0x4629c5 of _0x401951['keys']())_0x4629c5>=this['_startingRevisionId']&&_0x401951['delete'](_0x4629c5);const _0x47b9b0=new Map();for(const _0x26448d of _0x3a0fbc){let _0xa15ef1=_0x4b789f['insertions'][_0x26448d];for(const _0x1929d9 of _0xa15ef1)if(_0x1929d9['item']['is']('element','tableCell')){const _0x5972a3=this['_getVidAttributeName'](_0x1929d9),_0x5c7cdc=_0x1929d9['item']['getAttribute'](_0x5972a3);if(_0x729433['has'](_0x5c7cdc)){const _0x526634=_0x1929d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x4756bc=_0x47b9b0['get'](_0x526634)||new Set();_0x4756bc['add'](_0x729433['get'](_0x5c7cdc)['userId']),_0x47b9b0['set'](_0x526634,_0x4756bc);}}_0xa15ef1=_0x4b789f['deletions'][_0x26448d];for(const _0x57c529 of _0xa15ef1)if(_0x57c529['item']['is']('element','tableCell')){const _0x56bd7b=this['_getVidAttributeName'](_0x57c529),_0x97708c=_0x57c529['item']['getAttribute'](_0x56bd7b);if(_0x401951['has'](_0x97708c)){const _0x4a931e=_0x57c529['item']['parent']['parent']['getAttribute']('vid_start'),_0xfa1dba=_0x47b9b0['get'](_0x4a931e)||new Set();_0xfa1dba['add'](_0x401951['get'](_0x97708c)['userId']),_0x47b9b0['set'](_0x4a931e,_0xfa1dba);}}for(const _0x5ac651 of _0x47b9b0['keys']())(_0x729433['has'](_0x5ac651)||_0x401951['has'](_0x5ac651))&&_0x47b9b0['delete'](_0x5ac651);}for(const _0x13ee5d of _0x3a0fbc){const _0x3146ff=_0x4b789f['insertions'][_0x13ee5d];let _0x4caa02=null,_0x10e66b=null;for(const _0x1c4c2c of _0x3146ff){const _0x43caee=this['_getVidAttributeName'](_0x1c4c2c),_0x4f0ec4=_0x1c4c2c['item']['getAttribute'](_0x43caee),_0x2d527c=_0x47b9b0['get'](_0x4f0ec4);_0x2d527c&&'elementStart'==_0x1c4c2c['type']&&(_0x4caa02=Array['from'](_0x2d527c)[0x0],_0x10e66b=_0x1c4c2c['item']['getAttribute']('vid_end')),_0x4caa02&&(_0x401951['set'](_0x4f0ec4,{'userId':_0x4caa02}),_0x729433['set'](_0x4f0ec4,{'userId':_0x4caa02})),_0x4f0ec4==_0x10e66b&&(_0x4caa02=null,_0x10e66b=null);}}const _0x3ee884={},_0x438f18=new Set();for(const _0x823f50 of _0x3a0fbc){const _0x2a4650=_0x4712d9['deletions'][_0x823f50],_0x205ee9=_0x4712d9['insertions'][_0x823f50];for(const {userId:_0x418485}of this['_touchedMarkers']['values']())null!==_0x418485&&_0x438f18['add'](_0x418485);for(const {userId:_0x194117}of this['_touchedRoots']['values']())null!==_0x194117&&_0x438f18['add'](_0x194117);this['_markChanges'](_0x205ee9,_0x4b789f['insertions'][_0x823f50],_0x729433,'insertion',_0x438f18),this['_markChanges'](_0x2a4650,_0x4b789f['deletions'][_0x823f50],_0x401951,'deletion',_0x438f18),_0x3ee884[_0x823f50]={'insertions':this['_prepareViewToSave'](_0x205ee9),'deletions':this['_prepareViewToSave'](_0x2a4650),'attachChange':this['_touchedRoots']['get'](_0x823f50)||null,'attributesBefore':_0x558200(this['_baseRootsAttributes']['get'](_0x823f50))||{},'attributesAfter':_0x558200(this['_diffRootsAttributes']['get'](_0x823f50))};}return{'diffData':_0x3ee884,'authorsIds':Array['from'](_0x438f18)};}['_processRootBeforeSave'](_0x4f9d5d){for(const [,_0x3864e9]of _0x4f9d5d['markers']){const _0x1127dc=_0x3864e9['start']['getAncestors']()['filter'](_0x5192e6=>'tableCell'==_0x5192e6['name']);for(const _0x549edb of _0x1127dc)0x1==_0x549edb['childCount']&&_0x549edb['getChild'](0x0)['is']('element','paragraph')&&_0x549edb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x16bed6){this['_processRootBeforeSave'](_0x16bed6);const _0x39f583=this['editor']['data']['toView'](_0x16bed6,{}),_0x2bb6bc=Array['from'](_0x39f583['getChildren']())['map'](_0x4c2551=>this['_getViewJson'](_0x4c2551));return JSON['stringify'](_0x2bb6bc);}['_getViewJson'](_0x252c06){if(_0x252c06['is']('$text'))return _0x252c06['data'];{const _0x422ceb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x18b571=_0x252c06,_0x34cf00=this['editor']['data']['htmlProcessor']['domConverter'],_0x5dec54={'type':_0x422ceb['_getTypeCharForViewElement'](_0x18b571),'name':_0x18b571['name'],'attributes':Array['from'](_0x18b571['getAttributes']()),'children':Array['from'](_0x18b571['getChildren']())['map'](_0x547266=>this['_getViewJson'](_0x547266))};if(_0x252c06['is']('uiElement')&&'$comment'!=_0x252c06['name']){const _0xc6057b=_0x252c06['render'](_0x34cf00['domDocument'],_0x34cf00);_0x5dec54['children']['push'](_0xc6057b['outerHTML']);}else{if(_0x252c06['is']('rawElement')){const _0x5002d7=_0x34cf00['domDocument']['createElement'](_0x18b571['name']);_0x252c06['render'](_0x5002d7,_0x34cf00),_0x5dec54['children']['push'](_0x5002d7['innerHTML']);}}const _0x1c76d4=Array['from'](_0x18b571['getCustomProperties']());_0x1c76d4['length']>0x0&&(_0x5dec54['customProperties']=_0x1c76d4);const _0x1ca2ed=_0x18b571['getFillerOffset']();return null!==_0x1ca2ed&&(_0x5dec54['fillerOffset']=_0x1ca2ed),_0x5dec54;}}['_markChanges'](_0x3f1cf7,_0x2471b9,_0x3d4960,_0xfe562f,_0x357be2){let _0x57dd49=null,_0xe9ea07=null,_0x5e3f08=0x0;const _0x310417=this['editor']['model'];for(let _0x5d2c93=0x0;_0x5d2c93<_0x2471b9['length'];_0x5d2c93++){const _0xa0629b=this['_getVidAttributeName'](_0x2471b9[_0x5d2c93]),_0x36226b=_0x2471b9[_0x5d2c93]['item']['getAttribute'](_0xa0629b),_0x5954a3=_0x3d4960['get'](_0x36226b),_0x4018ea=_0x5d2c93==_0x2471b9['length']-0x1;(!_0x57dd49&&_0x5954a3&&(_0x57dd49=_0x5954a3,_0xe9ea07=_0x2471b9[_0x5d2c93]),_0x57dd49&&(!_0x5954a3||_0x5954a3['userId']!=_0x57dd49['userId']))&&(_0x5a7590(_0x5954a3,P(_0xe9ea07,_0x3f1cf7,_0x310417),P(_0x2471b9[_0x5d2c93],_0x3f1cf7,_0x310417)),_0x57dd49=_0x5954a3||null,_0xe9ea07=_0x5954a3?_0x2471b9[_0x5d2c93]:null),_0x57dd49&&_0x4018ea&&_0x5a7590(_0x5954a3,P(_0xe9ea07,_0x3f1cf7,_0x310417),V(_0x2471b9[_0x5d2c93],_0x3f1cf7,_0x310417));}function _0x5a7590(_0xe23c0c,_0x2ab4cb,_0x2c30dc){const _0x594341=_0x57dd49['userId'],_0x2674ed='revision:'+_0xfe562f+':'+_0x594341+':'+_0x5e3f08++,_0x2e380e=_0x310417['createRange'](_0x2ab4cb,_0x2c30dc);_0x3f1cf7['markers']['set'](_0x2674ed,_0x2e380e),null!==_0x594341&&_0x357be2['add'](_0x594341);}}['_getVidAttributeName'](_0x50738d){switch(_0x50738d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xd73c51,_0x38f1ab){_0xd73c51['baseVersion']=null;for(const _0x1db48f in _0xd73c51){const _0x10892a=_0xd73c51[_0x1db48f];if(_0x10892a instanceof _0x1717c5){const _0x3a3df5=_0x38f1ab['get'](_0x10892a['root']['rootName']);_0xd73c51[_0x1db48f]=this['_fixPosition'](_0x10892a,_0x3a3df5);}if(_0x10892a instanceof _0x387fd5){const _0x119357=_0x38f1ab['get'](_0x10892a['root']['rootName']);_0xd73c51[_0x1db48f]=this['_fixRange'](_0x10892a,_0x119357);}'root'===_0x1db48f&&(_0xd73c51['root']=_0x38f1ab['get'](_0xd73c51['root']['rootName']));}}['_fixRange'](_0xf10375,_0x30ed07){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf10375['start'],_0x30ed07),this['_fixPosition'](_0xf10375['end'],_0x30ed07));}['_fixPosition'](_0x3a4484,_0x406c75){return this['editor']['model']['createPositionFromPath'](_0x406c75,_0x3a4484['path'],_0x3a4484['stickiness']);}['_handleInsertOperation'](_0x47a809){const _0x43d11b=this['_idsRoots']['get'](_0x47a809['position']['root']['rootName']),_0x2edef9=this['_fixPosition'](_0x47a809['position'],_0x43d11b),_0x3b334c=null===_0x47a809['_authorId']?null:_0x47a809['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21d293=_0x2edef9['parent'],_0x444f28=this['_revisionId'],_0x44d74e=[];for(const _0x5001ad of _0x47a809['nodes'])if(_0x5001ad['is']('element'))_0x44d74e['push'](this['_makeIdsRoot'](_0x5001ad));else{for(let _0x4e35c1=0x0;_0x4e35c1<_0x5001ad['offsetSize'];_0x4e35c1++)_0x44d74e['push'](new _0x36dcff('$text',{'vid':this['_revisionId']++}));}const _0x551339=this['_revisionId'];for(let _0x3f1dd1=_0x444f28;_0x3f1dd1<_0x551339;_0x3f1dd1++)this['_touched']['set'](_0x3f1dd1,{'userId':_0x3b334c});_0x21d293['_insertChild'](_0x2edef9['offset'],_0x44d74e);}['_handleMoveOperation'](_0x3b425e){(_0x3b425e=this['_cloneOperation'](_0x3b425e,this['_idsRoots']))['_execute']();const _0x139491=null===_0x3b425e['_authorId']?null:_0x3b425e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x317f8d=_0x3b425e['getMovedRangeStart'](),_0x23a3a0=_0x317f8d['parent'],_0x5972ac=_0x317f8d['offset'];!function _0x21bb64(_0x22cce4,_0x5545f2,_0x290e41,_0x938e89){for(let _0x79b9a2=_0x290e41;_0x79b9a2<_0x938e89;_0x79b9a2++){const _0x1c8a8a=_0x5545f2['getChild'](_0x79b9a2);_0x1c8a8a['is']('element','$text')?_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid'),{'userId':_0x139491}):(_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid_start'),{'userId':_0x139491}),_0x21bb64(_0x22cce4,_0x1c8a8a,0x0,_0x1c8a8a['childCount']),_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid_end'),{'userId':_0x139491}));}}(this['_touched'],_0x23a3a0,_0x5972ac,_0x5972ac+_0x3b425e['howMany']);}['_handleMergeOperation'](_0x58d468){const _0x2a21c7=null===(_0x58d468=this['_cloneOperation'](_0x58d468,this['_idsRoots']))['_authorId']?null:_0x58d468['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2c5e=_0x58d468['targetPosition']['parent'],_0x503c75=_0x58d468['sourcePosition']['parent'],_0x1a4f7a=_0x4b2c5e['getAttribute']('vid_end'),_0x2154a4=_0x503c75['getAttribute']('vid_start');_0x4b2c5e['_setAttribute']('vid_end',_0x503c75['getAttribute']('vid_end')),_0x503c75['_setAttribute']('vid_end',_0x1a4f7a),this['_touched']['set'](_0x2154a4,{'userId':_0x2a21c7}),this['_touched']['set'](_0x1a4f7a,{'userId':_0x2a21c7}),_0x58d468['_execute']();}['_handleSplitOperation'](_0x36e8d4){const _0x2d0023=null===(_0x36e8d4=this['_cloneOperation'](_0x36e8d4,this['_idsRoots']))['_authorId']?null:_0x36e8d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b22f4=_0x36e8d4['graveyardPosition'],_0x988dea=_0x36e8d4['splitPosition']['parent'];_0x36e8d4['_execute']();const _0x442e7b=_0x988dea['getAttribute']('vid_end'),_0x139a72=_0x36e8d4['insertionPosition']['nodeAfter'];if(_0x4b22f4){const _0x161ea4=_0x139a72['getAttribute']('vid_end'),_0x135943=_0x988dea['getAttribute']('vid_end');_0x988dea['_setAttribute']('vid_end',_0x161ea4),_0x139a72['_setAttribute']('vid_end',_0x135943),this['_touched']['set'](_0x988dea['getAttribute']('vid_end'),{'userId':_0x2d0023}),this['_touched']['set'](_0x139a72['getAttribute']('vid_start'),{'userId':_0x2d0023});}else{const _0x124746=this['_revisionId']++,_0x345e29=this['_revisionId']++;_0x988dea['_setAttribute']('vid_end',_0x124746),_0x139a72['_setAttribute']('vid_start',_0x345e29),_0x139a72['_setAttribute']('vid_end',_0x442e7b),this['_touched']['set'](_0x124746,{'userId':_0x2d0023}),this['_touched']['set'](_0x345e29,{'userId':_0x2d0023});}}['_handleMarkerOperation'](_0x4303ae){if(!_0x4303ae['affectsData'])return;const _0x4035f0=(_0x4303ae=this['_cloneOperation'](_0x4303ae,this['_diffRoots']))['oldRange']?_0x4303ae['oldRange']['root']:null,_0x1d9af8=_0x4303ae['newRange']?_0x4303ae['newRange']['root']:null;_0x4035f0&&this['_markers']['delete'](_0x4303ae['name']),_0x1d9af8&&this['_markers']['set'](_0x4303ae['name'],_0x4303ae['newRange']['clone']());const _0x56dde3=null===_0x4303ae['_authorId']?null:_0x4303ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38ac6d=_0x4303ae['name'];if(!this['_touchedMarkers']['has'](_0x38ac6d))return void this['_touchedMarkers']['set'](_0x38ac6d,{'range':_0x4303ae['oldRange'],'userId':_0x56dde3});const _0x5b2fd9=this['_touchedMarkers']['get'](_0x38ac6d),_0x40ee8d=_0x5b2fd9['range'],_0x424218=_0x4303ae['newRange'];null==_0x40ee8d&&null==_0x424218||_0x40ee8d&&_0x424218&&_0x40ee8d['isEqual'](_0x424218)?this['_touchedMarkers']['delete'](_0x4303ae['name']):_0x5b2fd9['userId']=_0x56dde3;}['_handleRootOperation'](_0x4f546b,_0x376e32){this['_diffRoots']['has'](_0x4f546b['rootName'])?this['_diffRoots']['get'](_0x4f546b['rootName'])['_isAttached']=_0x4f546b['isAdd']:(this['_diffRoots']['set'](_0x4f546b['rootName'],N(_0x4f546b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4f546b['rootName'],{}),_0x376e32&&this['_idsRoots']['set'](_0x4f546b['rootName'],N(_0x4f546b['rootName'],!0x0)));const _0x513af7=null===_0x4f546b['_authorId']?null:_0x4f546b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b536a=this['_touchedRoots']['get'](_0x4f546b['rootName']);_0x1b536a&&_0x1b536a['userId']===_0x513af7?this['_touchedRoots']['delete'](_0x4f546b['rootName']):this['_touchedRoots']['set'](_0x4f546b['rootName'],{'userId':_0x513af7,'isAttached':_0x4f546b['isAdd']});}['_handleRootAttributeOperation'](_0x13ffbf){const _0x22c1ac=this['_diffRootsAttributes']['get'](_0x13ffbf['root']['rootName']);null===_0x13ffbf['newValue']?delete _0x22c1ac[_0x13ffbf['key']]:_0x22c1ac[_0x13ffbf['key']]=_0x13ffbf['newValue'];}}function x(_0x6842fd){const _0x44ba56=N(_0x6842fd['rootName'],_0x6842fd['isAttached']());for(const _0x2abbc0 of _0x6842fd['getChildren']()){const _0x4cc169=_0x2abbc0['_clone'](!0x0);_0x44ba56['_appendChild'](_0x4cc169);}return _0x44ba56;}function N(_0x33a8b1,_0x3f61af=!0x0){const _0x15a146=new _0x3247af();return _0x15a146['rootName']=_0x33a8b1,_0x15a146['_isAttached']=_0x3f61af,_0x15a146['isAttached']=()=>_0x15a146['_isAttached'],_0x15a146;}function P(_0x37ef99,_0xef7c3a,_0x34ef26){const _0x3612b7='elementEnd'==_0x37ef99['type']?_0x34ef26['createPositionAt'](_0x37ef99['item'],'end'):_0x34ef26['createPositionBefore'](_0x37ef99['item']);return _0x34ef26['createPositionFromPath'](_0xef7c3a,_0x3612b7['path'],_0x3612b7['stickiness']);}function V(_0x41ad96,_0x4a8e4f,_0x175886){const _0x2af03d='elementStart'==_0x41ad96['type']?_0x175886['createPositionAt'](_0x41ad96['item'],0x0):_0x175886['createPositionAfter'](_0x41ad96['item']);return _0x175886['createPositionFromPath'](_0x4a8e4f,_0x2af03d['path'],_0x2af03d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x5dfdee(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x20bacc){super(),this['id']=_0x20bacc['id']||_0x5c7d64(),this['author']=_0x20bacc['author'],this['type']=_0x20bacc['type'],this['data']=_0x20bacc['data']||{},this['rootName']=_0x20bacc['rootName'],this['set']('createdAt',_0x20bacc['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5c7855,_0x3c0555){this['newRevisionId']=_0x5c7855,this['oldRevisionId']=_0x3c0555,this['changes']=new _0x56bfbf();}['_setChanges'](_0x4fd028){for(const _0x545350 of _0x4fd028)this['changes']['add'](_0x545350);}}class l extends _0x225e65{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x19dc8a,_0x2b89fa,S,$];}constructor(_0x2f31b8){super(_0x2f31b8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x51b3fa,_0x5eddd8,_0x22a418)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xf00734=>{for(const _0x2ba70b of this['editor']['editing']['view']['document']['roots'])_0x22a418?_0xf00734['removeClass']('ck-editor__editable__overlay',_0x2ba70b):_0xf00734['addClass']('ck-editor__editable__overlay',_0x2ba70b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1fc8fe=>null!==_0x1fc8fe),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4c6f40,_0x56f0c6,_0x37c7a5)=>_0x4c6f40&&_0x37c7a5?_0x56f0c6['changes']['getIndex'](_0x37c7a5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x444678,_0x20c3ce)=>_0x444678?_0x20c3ce['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2b89fa);}['init'](){const _0x438ed0=this['editor'],_0x4e336f=new rt(_0x438ed0,{'direction':'backward'}),_0x165765=new rt(_0x438ed0,{'direction':'forward'});(_0x438ed0['commands']['add']('showPreviousChange',_0x4e336f),_0x438ed0['commands']['add']('showNextChange',_0x165765),_0x438ed0['commands']['add']('restoreRevision',new nt(_0x438ed0)),this['on']('change:numberOfChanges',()=>{_0x4e336f['refresh'](),_0x165765['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x438ed0['enableReadOnlyMode']('revision-viewer'),_0x438ed0['plugins']['has']('WidgetToolbarRepository'))&&_0x438ed0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x306f0a){return await this['_utils']['loadRevisionData'](_0x306f0a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x306f0a);}async['getRevisionRootsAttributes'](_0x2cfa14){return await this['_utils']['loadRevisionData'](_0x2cfa14,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2cfa14);}async['compare'](_0x55e756,_0x4dcba7,_0x21e030=!0x1){if(!this['isEnabled'])return;const _0x3c6b5b=this['diff'],_0x426bec=this['repository'],_0x3efbaf='string'==typeof _0x55e756?_0x426bec['getRevision'](_0x55e756):_0x55e756,_0xa8403c='string'==typeof _0x4dcba7?_0x426bec['getRevision'](_0x4dcba7):_0x4dcba7,_0x2eb4b4=_0x3efbaf['id'],_0x311ff0=_0xa8403c?_0xa8403c['id']:null;if(!_0x21e030&&this['diff']&&this['diff']['newRevisionId']===_0x2eb4b4&&this['diff']['oldRevisionId']===_0x311ff0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2eb4b4,_0x311ff0);const _0x1a7780=this['_getRevisionsRange'](_0x3efbaf,_0xa8403c,!0x0)['map'](_0x49e419=>this['_utils']['loadRevisionData'](_0x49e419,this['adapter']));return _0x1a7780['push'](new Promise(_0x3b2643=>{setTimeout(_0x3b2643,0x14);})),Promise['all'](_0x1a7780)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1ed0d6=this['_getDiff'](_0x2eb4b4,_0x311ff0);for(const _0xf6536f of _0x1ed0d6['changes'])this['_changeIdToChange']['set'](_0xf6536f['id'],_0xf6536f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21ff24=>{for(const _0x20babc of this['editor']['model']['document']['getRootNames']())_0x21ff24['detachRoot'](_0x20babc);for(const _0x5537b2 of Object['keys'](_0x1ed0d6['model'])){const _0x2d4cf4=_0x21ff24['addRoot'](_0x5537b2);for(const _0x263024 of Object['keys'](_0x1ed0d6['attributes'][_0x5537b2]))_0x21ff24['setAttribute'](_0x263024,_0x1ed0d6['attributes'][_0x5537b2][_0x263024],_0x2d4cf4);_0x21ff24['insert'](_0x1ed0d6['model'][_0x5537b2],_0x2d4cf4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1ed0d6['changes'])),this['isReady']=!0x0;})['catch'](_0x514545=>{console['error'](_0x514545),this['_cleanUp'](),_0x3c6b5b&&(this['diff']=_0x3c6b5b),this['isReady']=!0x0;});}['addRevisionData'](_0x3bd56a,_0x1cb3a8){const _0x4e0f73=this['repository']['createRevision'](_0x3bd56a);return _0x4e0f73['on']('_update',(_0x1aa3cc,_0x4a6931,_0x2a4003)=>_0x1cb3a8(_0x4a6931,_0x2a4003,_0x4e0f73)),this['repository']['addRevision'](_0x4e0f73),_0x4e0f73;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15a449=>{for(const _0x468c21 of this['editor']['model']['document']['getRootNames']())_0x15a449['detachRoot'](_0x468c21);});}['_sortAndFilterDiffChanges'](_0x335901){const _0x3a8095=[],_0x51f137=new Map();for(const _0x16c1e8 of this['editor']['model']['document']['getRootNames']()){const _0x3fa8c0=this['editor']['editing']['view']['getDomRoot'](_0x16c1e8);if(!_0x3fa8c0)continue;const _0x2000e9=_0x3fa8c0['getClientRects']()['item'](0x0);_0x2000e9&&(_0x3a8095['push'](_0x16c1e8),_0x51f137['set'](_0x16c1e8,_0x2000e9));}return _0x3a8095['sort']((_0x1e48c1,_0x5432e7)=>{const _0x595921=_0x51f137['get'](_0x1e48c1),_0x339348=_0x51f137['get'](_0x5432e7);return _0x595921['y']-_0x339348['y']||_0x595921['x']-_0x339348['x'];}),(_0x335901=_0x335901['filter'](_0xa1adef=>_0x3a8095['includes'](_0xa1adef['rootName'])))['sort']((_0x397f77,_0x27c4a0)=>_0x3a8095['indexOf'](_0x397f77['rootName'])-_0x3a8095['indexOf'](_0x27c4a0['rootName'])),_0x335901;}['_makeTape'](_0x30ceb3){const _0x177613=Array['from'](_0x30ceb3['markers'])['filter'](([_0x3aa8ce,_0x672eea])=>_0x3aa8ce['startsWith']('revision:')&&!_0x672eea['isCollapsed']),_0x3677c0=Array['from'](this['editor']['model']['createRangeIn'](_0x30ceb3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x177613['length'])for(const _0x4a91b3 of _0x3677c0){const [_0x30380e,_0x171f2b]=_0x177613[0x0],[,_0x450f84,_0x5b5070]=_0x30380e['split'](':');if(_0x171f2b['end']['isEqual'](_0x4a91b3['nextPosition'])&&_0x177613['shift'](),(_0x4a91b3['previousPosition']['isEqual'](_0x171f2b['start'])||_0x4a91b3['previousPosition']['isAfter'](_0x171f2b['start']))&&('insertion'==_0x450f84?_0x4a91b3['isAdded']={'userId':_0x5b5070}:'deletion'==_0x450f84&&(_0x4a91b3['isRemoved']={'userId':_0x5b5070})),0x0==_0x177613['length'])break;}return _0x3677c0;}['_refreshStartEndIndex'](_0x4a260e){const _0x51c4fc=new Map();for(let _0x34e91a=0x0;_0x34e91a<_0x4a260e['length'];_0x34e91a++)'text'===_0x4a260e[_0x34e91a]['type']?(_0x4a260e[_0x34e91a]['item']['startIndex']=_0x34e91a,_0x4a260e[_0x34e91a]['item']['endIndex']=_0x34e91a):('elementStart'===_0x4a260e[_0x34e91a]['type']?_0x4a260e[_0x34e91a]['item']['startIndex']=_0x34e91a:'elementEnd'===_0x4a260e[_0x34e91a]['type']&&(_0x4a260e[_0x34e91a]['item']['endIndex']=_0x34e91a),_0x51c4fc['set'](_0x4a260e[_0x34e91a]['id'],_0x34e91a));for(const _0x123396 of _0x51c4fc['values']())'elementStart'===_0x4a260e[_0x123396]['type']?_0x4a260e[_0x123396]['item']['endIndex']=_0x51c4fc['get'](_0x4a260e[_0x123396]['pairId']):'elementEnd'===_0x4a260e[_0x123396]['type']&&(_0x4a260e[_0x123396]['item']['startIndex']=_0x51c4fc['get'](_0x4a260e[_0x123396]['pairId']));}['_processTape'](_0x288500){for(let _0x14eb20=0x0;_0x14eb20<_0x288500['length'];_0x14eb20++){if('elementStart'===_0x288500[_0x14eb20]['type'])_0x288500[_0x14eb20]['item']['startIndex']=_0x14eb20;else{if('elementEnd'===_0x288500[_0x14eb20]['type']){_0x288500[_0x14eb20]['item']['endIndex']=_0x14eb20;const _0x4ce50d=_0x288500[_0x14eb20]['item']['startIndex'];_0x288500[_0x4ce50d]['pairId']=_0x288500[_0x14eb20]['id'],_0x288500[_0x14eb20]['pairId']=_0x288500[_0x4ce50d]['id'];}else _0x288500[_0x14eb20]['item']['startIndex']=_0x14eb20,_0x288500[_0x14eb20]['item']['endIndex']=_0x14eb20,_0x288500[_0x14eb20]['pairId']=null;}_0x288500[_0x14eb20]['markersStart']||(_0x288500[_0x14eb20]['markersStart']=[],_0x288500[_0x14eb20]['markersEnd']=[]);}}['_markInsertions'](_0x22cdab,_0x5d7c35){const _0x4638c2=_0x22cdab['filter'](_0x2f0a6a=>!_0x2f0a6a['isAdded']);for(let _0x5e9b8d=0x0;_0x5e9b8d<_0x5d7c35['length'];_0x5e9b8d++)_0x5d7c35[_0x5e9b8d]['isAdded']&&(_0x4638c2[_0x5e9b8d]['isAdded']=_0x5d7c35[_0x5e9b8d]['isAdded']);}['_getDiff'](_0x1ef16b,_0x1fc415=null){const _0x2e5ab7=this['repository']['getRevision'](_0x1ef16b),_0x198982=_0x1fc415?this['repository']['getRevision'](_0x1fc415):null,_0x4ee09f=this['_getRevisionsRange'](_0x2e5ab7,_0x198982),_0x3b2584=_0x4ee09f[_0x4ee09f['length']-0x1],_0x4faa3=new Map(),_0x873c01={'model':{},'attributes':{},'changes':[]},_0x11123c=new Set(),_0x360000=new Map();for(let _0x1c57bb=_0x4ee09f['length']-0x1;_0x1c57bb>=0x0;_0x1c57bb--){const _0x549500=_0x4ee09f[_0x1c57bb];for(const _0x521710 of Object['keys'](_0x549500['diffData']))if(_0x549500['diffData'][_0x521710]['attachChange']){const _0x5ef99f=_0x549500['diffData'][_0x521710]['attachChange'];_0x5ef99f['isAttached']?(_0x11123c['add'](_0x521710),_0x360000['has'](_0x521710)&&_0x360000['get'](_0x521710)['userId']==_0x5ef99f['userId']?_0x360000['delete'](_0x521710):_0x360000['set'](_0x521710,_0x5ef99f)):_0x360000['has'](_0x521710)?(_0x11123c['delete'](_0x521710),_0x360000['delete'](_0x521710)):(_0x11123c['add'](_0x521710),_0x360000['set'](_0x521710,_0x5ef99f));}else _0x11123c['add'](_0x521710);}for(const _0x7a01ee of _0x11123c){const _0x1b115e=_0x360000['has'](_0x7a01ee)&&!_0x360000['get'](_0x7a01ee)['isAttached'];let _0x11c507=_0x1b115e?_0x4ee09f['length']-0x1:0x0;const _0x4f5e84=_0x1b115e?-0x1:0x1;for(;_0x4ee09f[_0x11c507];){const _0x1728a6=_0x4ee09f[_0x11c507];if(_0x1728a6['diffData'][_0x7a01ee]){const _0x1a8e0a=_0x1b115e?_0x1728a6['diffData'][_0x7a01ee]['attributesBefore']:_0x1728a6['diffData'][_0x7a01ee]['attributesAfter'];_0x873c01['attributes'][_0x7a01ee]=_0x1a8e0a?_0x558200(_0x1a8e0a):{};break;}_0x11c507+=_0x4f5e84;}}for(const _0x10b6ce of _0x4ee09f){_0x10b6ce['model']={};for(const _0x4748c4 of _0x10b6ce['authors'])_0x4faa3['set'](_0x4748c4['id'],_0x4748c4);for(const _0x45b258 of _0x11123c){const _0x3c1d8d=_0x10b6ce['diffData'][_0x45b258]?_0x10b6ce['diffData'][_0x45b258]['insertions']:'[]',_0x1224f2=_0x10b6ce['diffData'][_0x45b258]?_0x10b6ce['diffData'][_0x45b258]['deletions']:'[]';_0x10b6ce['model'][_0x45b258]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3c1d8d),'deletions':this['_utils']['_makeModelFromViewString'](_0x1224f2)};}}for(const _0x2e700b of _0x11123c){let _0x22348a=null,_0x360407=0x0;const _0xd8ee65=new Map(Array['from'](_0x2e5ab7['model'][_0x2e700b]['insertions']['markers'])['filter'](([_0xc1d787])=>!_0xc1d787['startsWith']('revision:')));let _0x37a635=0x0;for(const _0x6d26df of _0x4ee09f){const _0x16600d=this['_makeTape'](_0x6d26df['model'][_0x2e700b]['insertions']);_0x6d26df==_0x2e5ab7?(_0x22348a=_0x16600d,_0x360407=_0x22348a['length'],_0x22348a['forEach'](_0x5eb788=>{_0x5eb788['id']=_0x37a635++;}),this['_processTape'](_0x22348a)):this['_markInsertions'](_0x22348a,_0x16600d);const _0x4843fb=_0x22348a['filter'](_0x468a01=>!_0x468a01['isAdded'])['map'](_0x5215fc=>_0x5215fc['id']);let _0x322cdb=0x0;const _0x9bf50e=this['_makeTape'](_0x6d26df['model'][_0x2e700b]['deletions']);_0x9bf50e['forEach'](_0x7c4254=>{_0x7c4254['isRemoved']?_0x7c4254['id']=_0x360407++:_0x7c4254['id']=_0x4843fb[_0x322cdb++];}),this['_processTape'](_0x9bf50e),this['_setDistance'](_0x22348a,'isAdded'),this['_setDistance'](_0x9bf50e,'isRemoved'),_0x6d26df==_0x2e5ab7&&this['_markMarkers'](_0x22348a,_0xd8ee65),_0x22348a=this['_joinTapes'](_0x22348a,_0x9bf50e),this['_refreshStartEndIndex'](_0x22348a),this['_setDistance'](_0x22348a,'isRemoved');}_0x22348a=_0x22348a['filter'](_0x493586=>!(_0x493586['isAdded']&&_0x493586['isRemoved']));const _0x85f9c8=new Map(_0x3b2584['model'][_0x2e700b]['deletions']['markers']),_0x4f9339=new Set(_0xd8ee65['keys']());for(const _0x1e4f7f of _0x85f9c8['keys']())_0x4f9339['delete'](_0x1e4f7f);this['_markSuggestions'](_0x22348a,_0x4f9339),this['_fixObsoleteTags'](_0x22348a),_0x22348a=this['_removeMissingPairs'](_0x22348a),_0x22348a=this['_markMismatchedRemovedTags'](_0x22348a),_0x22348a=this['_removeUnsupportedChanges'](_0x22348a);const {root:_0x41d2a8,changes:_0x2727ac}=this['_makeModelFromTape'](_0x22348a,_0x4faa3,_0x2e700b);_0x873c01['model'][_0x2e700b]=_0x41d2a8;const _0x3f924d=_0x360000['get'](_0x2e700b);if(_0x3f924d){const _0x5e3974=_0x4faa3['get'](_0x3f924d['userId']),_0x118f01=new G({'author':_0x5e3974,'type':_0x3f924d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e700b});_0x2727ac['unshift'](_0x118f01),_0x873c01['attributes'][_0x2e700b]['revisionHistoryAttachChange']=_0x118f01['id'];}_0x873c01['changes']=_0x873c01['changes']['concat'](_0x2727ac);}return _0x873c01;}['_markMarkers'](_0x31e5c9,_0x184cf8){for(let _0x236559=0x0;_0x236559<_0x31e5c9['length'];_0x236559++)for(const [_0xe9b4b6,_0x569a1a]of _0x184cf8)!_0x569a1a['isCollapsed']&&_0x569a1a['start']['isEqual'](_0x31e5c9[_0x236559]['previousPosition'])&&_0x31e5c9[_0x236559]['markersStart']['push'](_0xe9b4b6),_0x569a1a['end']['isEqual'](_0x31e5c9[_0x236559]['nextPosition'])&&_0x31e5c9[_0x236559]['markersEnd']['push'](_0xe9b4b6);}['_joinTapes'](_0x54782f,_0x351c30){let _0x2db97c=[],_0x42c0ce=0x0,_0x425e75=0x0;for(;_0x42c0ce<_0x54782f['length']||_0x425e75<_0x351c30['length'];){const _0xa028b9=_0x54782f[_0x42c0ce]||{},_0x502de1=_0x351c30[_0x425e75]||{};if(_0xa028b9['id']==_0x502de1['id'])_0x42c0ce++,_0x425e75++,_0x2db97c['push'](_0xa028b9);else{if(_0x502de1['isRemoved']&&_0xa028b9['isAdded']){const {commonTape:_0x355a09,iEnd:_0x4791c5,jEnd:_0x2def0b}=this['_threeWayMerge'](_0x54782f,_0x42c0ce,_0x351c30,_0x425e75);_0x2db97c=_0x2db97c['concat'](_0x355a09),_0x42c0ce=_0x4791c5,_0x425e75=_0x2def0b;}else _0x502de1['isRemoved']?(_0x425e75++,_0x2db97c['push'](_0x502de1)):(_0x42c0ce++,_0x2db97c['push'](_0xa028b9));}}return _0x2db97c;}['_markSuggestions'](_0xd4d1ac,_0x4de917){const _0x19add2=[];for(let _0x59722b=0x0;_0x59722b<_0xd4d1ac['length'];_0x59722b++){for(let _0x52af3f=0x0;_0x52af3f<_0xd4d1ac[_0x59722b]['markersStart']['length'];_0x52af3f++){const _0x4959b5=_0xd4d1ac[_0x59722b]['markersStart'][_0x52af3f];if(!_0x4de917['has'](_0x4959b5))continue;const {group:_0x59480f,type:_0x275df1,authorId:_0x33cde0}=_0x1578e0(_0x4959b5);'revision-suggestion'!=_0x59480f||'insertion'!=_0x275df1&&'deletion'!=_0x275df1||(_0x19add2['unshift']({'type':_0x275df1,'name':_0x4959b5,'userId':_0x33cde0}),_0xd4d1ac[_0x59722b]['markersStart']['splice'](_0x52af3f,0x1),_0x52af3f--);}_0x8ac479(_0xd4d1ac[_0x59722b]);for(let _0x5db418=0x0;_0x5db418<_0xd4d1ac[_0x59722b]['markersEnd']['length'];_0x5db418++){const _0x107314=_0xd4d1ac[_0x59722b]['markersEnd'][_0x5db418];if(!_0x4de917['has'](_0x107314))continue;const {group:_0x5eee95,type:_0x4aedd5}=_0x1578e0(_0x107314);if('revision-suggestion'!=_0x5eee95||'insertion'!=_0x4aedd5&&'deletion'!=_0x4aedd5)continue;_0xd4d1ac[_0x59722b]['markersEnd']['splice'](_0x5db418,0x1),_0x5db418--;const _0x19acd8=_0x19add2['findIndex'](_0x11fe3e=>_0x11fe3e['name']==_0x107314);_0x19acd8>-0x1&&_0x19add2['splice'](_0x19acd8,0x1);}}function _0x1578e0(_0x5d90bd){const _0x97210e=_0x5d90bd['split'](':');return{'group':_0x97210e[0x0],'type':_0x97210e[0x1],'subType':_0x97210e['length']>=0x5?_0x97210e[0x2]:null,'id':_0x97210e['length']<0x5?_0x97210e[0x2]:_0x97210e[0x3],'authorId':_0x97210e['length']<0x5?_0x97210e[0x3]:_0x97210e[0x4],'markerCount':0x6==_0x97210e['length']?_0x97210e[0x5]:null};}function _0x8ac479(_0x3cb248){for(let _0x170e9d=0x0;_0x170e9d<_0x19add2['length'];_0x170e9d++){if(_0x3cb248['isAdded']&&'insertion'==_0x19add2[_0x170e9d]['type']&&_0x3cb248['isAdded']['userId']==_0x19add2[_0x170e9d]['userId'])return _0x3cb248['isAddSuggestion']=_0x19add2[_0x170e9d],void delete _0x3cb248['isAdded'];if(!_0x3cb248['isAdded']&&!_0x3cb248['isRemoved']&&'deletion'==_0x19add2[_0x170e9d]['type'])return void(_0x3cb248['isRemoveSuggestion']=_0x19add2[_0x170e9d]);}}}['_setDistance'](_0x1063f6,_0x13127d){let _0x2f0e0a=0x0,_0x323d16=!0x1;const _0x399ebb=new Map();for(const _0xced44b of _0x1063f6)_0xced44b[_0x13127d]?_0x323d16&&(_0x2f0e0a++,_0x323d16=!0x1):(_0x2f0e0a++,_0x323d16=!0x0),_0x399ebb['set'](_0xced44b['id'],_0x2f0e0a);for(let _0x216767=0x0;_0x216767<_0x1063f6['length'];_0x216767++){if('isRemoved'==_0x13127d&&_0x1063f6[_0x216767]['isAdded']||'isAdded'==_0x13127d&&_0x1063f6[_0x216767]['isRemoved'])continue;if('text'==_0x1063f6[_0x216767]['type']){_0x1063f6[_0x216767]['distance']=0x0;continue;}const _0x11cc94=_0x399ebb['get'](_0x1063f6[_0x216767]['pairId']),_0x296566=_0x399ebb['get'](_0x1063f6[_0x216767]['id']);_0x1063f6[_0x216767]['distance']=_0x11cc94-_0x296566;}}['_getRevisionsRange'](_0x5b9c1c,_0x1dfda3,_0x663567=!0x1){const _0x17cc43=[];let _0x2cc331=this['repository']['getIndex'](_0x5b9c1c),_0x3e295a=this['repository']['getIndex'](_0x1dfda3);for(-0x1==_0x3e295a&&(_0x3e295a=this['repository']['_revisions']['length'],_0x663567=!0x1);_0x2cc331<_0x3e295a;)_0x17cc43['push'](this['repository']['getRevision'](_0x2cc331)),_0x2cc331++;return _0x663567&&_0x17cc43['push'](this['repository']['getRevision'](_0x2cc331)),_0x17cc43;}['_threeWayMerge'](_0x4fe9f2,_0x202bdf,_0x4a8979,_0x574ee7){const _0x5de259=this['editor']['model']['schema'];let _0x5d9896=_0x202bdf;for(;_0x4fe9f2[_0x5d9896]&&_0x4fe9f2[_0x5d9896]['isAdded'];)_0x5d9896++;let _0x158ff6=_0x574ee7;for(;_0x4a8979[_0x158ff6]&&_0x4a8979[_0x158ff6]['isRemoved'];)_0x158ff6++;_0x466e00(_0x4fe9f2,_0x202bdf,_0x5d9896),_0x466e00(_0x4a8979,_0x574ee7,_0x158ff6);const _0x30fb5b=_0x4a8979['slice'](_0x574ee7,_0x158ff6)['concat'](_0x4fe9f2['slice'](_0x202bdf,_0x5d9896));return _0x30fb5b['sort']((_0x5da10e,_0x4967c4)=>_0x5da10e['side']!=_0x4967c4['side']?_0x5da10e['side']-_0x4967c4['side']:_0x5da10e['level']!=_0x4967c4['level']?_0x5da10e['level']-_0x4967c4['level']:_0x5da10e['distance']!=_0x4967c4['distance']?_0x4967c4['distance']-_0x5da10e['distance']:!!_0x5da10e['isAdded']!=!!_0x4967c4['isAdded']?-0x1==_0x5da10e['side']||0x0==_0x5da10e['side']?_0x5da10e['isAdded']?-0x1:0x1:_0x5da10e['isAdded']?0x1:-0x1:_0x5da10e['index']-_0x4967c4['index']),{'commonTape':_0x30fb5b,'iEnd':_0x5d9896,'jEnd':_0x158ff6};function _0x466e00(_0x418d80,_0x27f6d1,_0x464f2f){let _0x832fb4=-0x1,_0x13fb4c=Number['POSITIVE_INFINITY'],_0xcf6654=!0x0;for(let _0x98f062=_0x27f6d1;_0x98f062<_0x464f2f;_0x98f062++)if(_0x5de259['isInline'](_0x418d80[_0x98f062]['item'])||(_0xcf6654=!0x1),_0x418d80[_0x98f062]['item']['startIndex']<_0x27f6d1&&(_0x832fb4=_0x98f062),_0x418d80[_0x98f062]['item']['endIndex']>=_0x464f2f){_0x13fb4c=_0x98f062;break;}_0xcf6654&&(_0x832fb4=_0x464f2f-0x1);for(let _0x2030cd=_0x27f6d1;_0x2030cd<_0x464f2f;_0x2030cd++)_0x418d80[_0x2030cd]['side']=_0x2030cd<=_0x832fb4?-0x1:_0x2030cd<_0x13fb4c?0x0:0x1,_0x418d80[_0x2030cd]['index']=_0x2030cd;let _0x1d21b8=0x0;for(let _0x13aca7=_0x27f6d1;_0x13aca7<=_0x832fb4;_0x13aca7++)0x0==_0x418d80[_0x13aca7]['distance']?_0x418d80[_0x13aca7]['level']=_0x1d21b8:(_0x1d21b8++,_0x418d80[_0x13aca7]['level']=_0x1d21b8,_0x1d21b8++);for(let _0x40d682=_0x27f6d1;_0x40d682<_0x464f2f;_0x40d682++)0x0==_0x418d80[_0x40d682]['side']&&(_0x418d80[_0x40d682]['level']=_0x1d21b8);_0x1d21b8=0x0;for(let _0x5329f2=_0x464f2f-0x1;_0x5329f2>=_0x13fb4c;_0x5329f2--)0x0==_0x418d80[_0x5329f2]['distance']?_0x418d80[_0x5329f2]['level']=_0x1d21b8:(_0x1d21b8--,_0x418d80[_0x5329f2]['level']=_0x1d21b8,_0x1d21b8--);}}['_fixObsoleteTags'](_0x1d1bd2){const _0x43b73d=new Map(),_0x4fb3eb=this['editor']['model']['schema'];for(let _0x14916c=0x1;_0x14916c<_0x1d1bd2['length'];_0x14916c++){let _0x5ac229,_0x15c5c1,_0x48ea62;const _0xe8ee84=_0x1d1bd2[_0x14916c],_0x489634=_0x1d1bd2[_0x14916c-0x1];if('text'==_0xe8ee84['type'])continue;if(_0xe8ee84['type']!=_0x489634['type'])continue;if(!_0x4fb3eb['isBlock'](_0x489634['item'])||_0x4fb3eb['isLimit'](_0x489634['item']))continue;if(!_0x4fb3eb['isBlock'](_0xe8ee84['item'])||_0x4fb3eb['isLimit'](_0xe8ee84['item']))continue;if((_0x1d1bd2[_0x14916c]['isAdded']||_0x1d1bd2[_0x14916c]['isAddSuggestion'])&&_0x1d1bd2[_0x14916c-0x1]['isRemoved'])_0x5ac229=_0x1d1bd2[_0x14916c],_0x15c5c1=_0x1d1bd2[_0x14916c-0x1],_0x48ea62=_0x14916c-0x1;else{if(!_0x1d1bd2[_0x14916c]['isRemoved']||!_0x1d1bd2[_0x14916c-0x1]['isAdded']&&!_0x1d1bd2[_0x14916c-0x1]['isAddSuggestion'])continue;_0x5ac229=_0x1d1bd2[_0x14916c-0x1],_0x15c5c1=_0x1d1bd2[_0x14916c],_0x48ea62=_0x14916c;}const _0xc2a40e=_0x5ac229['level']==_0x15c5c1['level'],_0x3c854a=Math['abs'](_0x5ac229['level'])<Math['abs'](_0x15c5c1['level'])&&0x0==_0x15c5c1['distance'];(_0xc2a40e||_0x3c854a)&&(_0x43b73d['set'](_0x15c5c1['id'],_0x5ac229['id']),_0x1d1bd2['splice'](_0x48ea62,0x1),_0x14916c--,_0x5ac229['isAdded']=!0x1);}for(let _0x21e7e7=0x0;_0x21e7e7<_0x1d1bd2['length'];_0x21e7e7++)_0x43b73d['has'](_0x1d1bd2[_0x21e7e7]['pairId'])&&(_0x1d1bd2[_0x21e7e7]['pairId']=_0x43b73d['get'](_0x1d1bd2[_0x21e7e7]['pairId']));}['_removeMissingPairs'](_0x24c9ff){const _0x3db45c=new Set(_0x24c9ff['map'](_0x20dbce=>_0x20dbce['id']));for(let _0x45337b=0x0;_0x45337b<_0x24c9ff['length'];_0x45337b++)_0x3db45c['has'](_0x24c9ff[_0x45337b]['pairId'])||0x0==_0x24c9ff[_0x45337b]['distance']||(_0x24c9ff[_0x45337b]['isIncorrect']=!0x0);return _0x24c9ff['filter'](_0x1e915c=>!_0x1e915c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5429c3){const _0x44db41=new Set();for(let _0x1d5d3a=0x0;_0x1d5d3a<_0x5429c3['length'];_0x1d5d3a++){if(_0x44db41['has'](_0x5429c3[_0x1d5d3a]['id'])&&_0x5429c3[_0x1d5d3a]['isRemoved']&&(_0x5429c3[_0x1d5d3a]['isIncorrect']=!0x0),_0x5429c3[_0x1d5d3a]['isIncorrect'])continue;if(0x0==_0x5429c3[_0x1d5d3a]['distance'])continue;if('elementStart'!=_0x5429c3[_0x1d5d3a]['type'])continue;if(null==_0x5429c3[_0x1d5d3a]['pairId'])continue;let _0xe01149=_0x1d5d3a+0x1,_0x2bad0b=0x0;for(;_0x5429c3[_0xe01149]['id']!=_0x5429c3[_0x1d5d3a]['pairId'];)'elementStart'==_0x5429c3[_0xe01149]['type']?_0x2bad0b++:'elementEnd'==_0x5429c3[_0xe01149]['type']&&_0x2bad0b--,_0xe01149++;if(0x0!=_0x2bad0b){if(_0x5429c3[_0x1d5d3a]['isRemoved'])_0x5429c3[_0x1d5d3a]['isIncorrect']=!0x0;else{for(;_0xe01149!=_0x1d5d3a;)_0x5429c3[_0xe01149]['isRemoved']&&0x0!=_0x5429c3[_0xe01149]['distance']&&(_0x5429c3[_0xe01149]['isIncorrect']=!0x0,_0x44db41['add'](_0x5429c3[_0xe01149]['pairId'])),_0xe01149--;}}}return _0x5429c3['filter'](_0xc73483=>!_0xc73483['isIncorrect']);}['_removeUnsupportedChanges'](_0x61e95){const _0x5307ae=this['editor']['model']['schema'];for(let _0x4f4844=0x0;_0x4f4844<_0x61e95['length'];_0x4f4844++){if(!(_0x61e95[_0x4f4844]['isAdded']||_0x61e95[_0x4f4844]['isAddSuggestion']||_0x61e95[_0x4f4844]['isRemoved']||_0x61e95[_0x4f4844]['isRemoveSuggestion']))continue;if(0x0==_0x61e95[_0x4f4844]['distance'])continue;const _0x3746ef=_0x61e95[_0x4f4844]['item'];_0x5307ae['isBlock'](_0x3746ef)||_0x5307ae['isLimit'](_0x3746ef)||(_0x61e95[_0x4f4844]['isAdded']&&delete _0x61e95[_0x4f4844]['isAdded'],_0x61e95[_0x4f4844]['isAddSuggestion']&&delete _0x61e95[_0x4f4844]['isAddSuggestion'],_0x61e95[_0x4f4844]['isRemoveSuggestion']&&delete _0x61e95[_0x4f4844]['isRemoveSuggestion'],_0x61e95[_0x4f4844]['isRemoved']&&(_0x61e95[_0x4f4844]['isIncorrect']=!0x0));}return _0x61e95['filter'](_0x300a01=>!_0x300a01['isIncorrect']);}['_makeModelFromTape'](_0x470a94,_0x2e60c6,_0x27786a){const _0x336762=new _0x3247af(),_0x19b24e=[],_0x51b7b8=new Map(),_0x594381=this['editor']['model'],_0x1e7ff4=_0x594381['schema'],_0x41bdbc=[_0x336762],_0x1d33b6={},_0xd18341={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x46dd7a=null;const _0x2f4a3c=[0x0];for(let _0x5087d7=0x0;_0x5087d7<_0x470a94['length'];_0x5087d7++)if('elementStart'===_0x470a94[_0x5087d7]['type']){_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c);const _0x59929e=new _0x36dcff(_0x470a94[_0x5087d7]['item']['name'],_0x470a94[_0x5087d7]['item']['getAttributes']());_0x41bdbc[0x0]['_appendChild'](_0x59929e),_0x2f4a3c['push'](0x0),_0x41bdbc['unshift'](_0x59929e),_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c);}else'elementEnd'===_0x470a94[_0x5087d7]['type']?(_0x41bdbc['shift'](),_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c),_0x2f4a3c['pop'](),_0x2f4a3c[_0x2f4a3c['length']-0x1]++,_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c)):(_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c),_0x46dd7a?_0x46dd7a['_data']+=_0x470a94[_0x5087d7]['item']['data']:_0x46dd7a=new _0x5e058b(_0x470a94[_0x5087d7]['item']['data'],_0x470a94[_0x5087d7]['item']['getAttributes']()),_0x470a94[_0x5087d7+0x1]&&'text'===_0x470a94[_0x5087d7+0x1]['type']&&_0x4fdb21(_0x46dd7a,_0x470a94[_0x5087d7+0x1]['item'])||(_0x41bdbc[0x0]['_appendChild'](_0x46dd7a),_0x46dd7a=null),_0x2f4a3c[_0x2f4a3c['length']-0x1]+=_0x470a94[_0x5087d7]['item']['offsetSize'],_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c));for(let _0x257c44=0x0;_0x257c44<_0x470a94['length'];_0x257c44++){const _0xffadec=_0x470a94[_0x257c44]['previousPosition'],_0x2c7cd1=_0x470a94[_0x257c44]['nextPosition'];for(const _0x1c2d15 of _0x470a94[_0x257c44]['markersStart'])_0x51b7b8['set'](_0x1c2d15,{'start':_0xffadec,'end':null});_0x7fab0c('isRemoveSuggestion',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isAddSuggestion',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isRemoved',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isAdded',_0x257c44,_0xffadec,_0x2c7cd1);for(const _0x20c1f7 of _0x470a94[_0x257c44]['markersEnd']){const _0x447c33=_0x51b7b8['get'](_0x20c1f7);_0x447c33?_0x447c33['end']=_0x2c7cd1:_0x51b7b8['set'](_0x20c1f7,{'start':_0x2c7cd1,'end':_0x2c7cd1});}}for(const [_0x439c79,_0x3e7fe6]of _0x51b7b8){const _0x3c4f41=this['editor']['model']['createRange'](_0x3e7fe6['start'],_0x3e7fe6['end']);_0x336762['markers']['set'](_0x439c79,_0x3c4f41);}return _0x19b24e['sort']((_0x46b2f6,_0x32056e)=>{const _0x286863=_0x336762['markers']['get']('revision:'+_0x46b2f6['id']),_0x29ef7c=_0x336762['markers']['get']('revision:'+_0x32056e['id']);return _0x286863['start']['isBefore'](_0x29ef7c['start'])?-0x1:_0x286863['start']['isAfter'](_0x29ef7c['start'])?0x1:_0x286863['end']['isBefore'](_0x29ef7c['end'])?-0x1:_0x286863['end']['isAfter'](_0x29ef7c['end'])?0x1:'add'===_0x46b2f6['type']?-0x1:0x1;}),{'root':_0x336762,'changes':_0x19b24e};function _0x7fab0c(_0x1d0bed,_0x1fbbf0,_0x48a36c,_0x27b038){const _0x4609ec=!!_0x470a94[_0x1fbbf0][_0x1d0bed],_0x190631=_0x4609ec?_0x470a94[_0x1fbbf0][_0x1d0bed]['userId']:null,_0x206b93=_0x1fbbf0===_0x470a94['length']-0x1,_0x27ec58=_0xd18341[_0x1d0bed][0x0],_0x2dab28=_0x1e7ff4['isObject'](_0x470a94[_0x1fbbf0]['item']);!_0x1d33b6[_0x1d0bed]&&_0x4609ec?_0x1d33b6[_0x1d0bed]={'start':_0x48a36c,'tapeItem':_0x470a94[_0x1fbbf0],'userId':_0x190631,'type':_0x1d0bed}:_0x1d33b6[_0x1d0bed]&&!_0x4609ec?(_0x1d33b6[_0x1d0bed]['end']=_0x48a36c,_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]=null):_0x1d33b6[_0x1d0bed]&&_0x4609ec&&_0x1d33b6[_0x1d0bed]['userId']!==_0x190631&&(_0x1d33b6[_0x1d0bed]['end']=_0x48a36c,_0x27ec58&&_0x27ec58['userId']===_0x1d33b6[_0x1d0bed]['userId']||_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]={'start':_0x48a36c,'tapeItem':_0x470a94[_0x1fbbf0],'userId':_0x190631,'type':_0x1d0bed}),_0x1d33b6[_0x1d0bed]&&_0x2dab28&&('elementStart'!==_0x470a94[_0x1fbbf0]['type']||_0x27ec58&&_0x27ec58['userId']===_0x190631||_0xd18341[_0x1d0bed]['unshift']({'userId':_0x190631,'object':_0x470a94[_0x1fbbf0]['item'],'change':_0x1d33b6[_0x1d0bed]}),'elementEnd'===_0x470a94[_0x1fbbf0]['type']&&_0x27ec58&&_0x27ec58['object']===_0x470a94[_0x1fbbf0]['item']&&(_0xd18341[_0x1d0bed]['shift'](),_0x1d33b6[_0x1d0bed]=_0x27ec58['change'])),_0x1d33b6[_0x1d0bed]&&_0x206b93&&(_0x1d33b6[_0x1d0bed]['end']=_0x27b038,_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]=null);}function _0x4f9c1f({start:_0x22479b,end:_0x23f01d,tapeItem:_0x258bed,userId:_0x380d5a,type:_0x12991d}){const _0x4fc80d=_0x258bed['item'],_0x3d66f7=_0x594381['schema']['isBlock'](_0x4fc80d)&&!_0x594381['schema']['isLimit'](_0x4fc80d),_0x339246=_0x22479b['nodeAfter']==_0x23f01d['parent']&&_0x23f01d['isAtStart'];if(_0x3d66f7&&_0x339246)return;const _0x23b729=_0x594381['createRange'](_0x22479b,_0x23f01d),_0x21d1a4=_0x2e60c6['get'](_0x380d5a),_0x1feaa4=new G({'author':_0x21d1a4,'type':'isAdded'==_0x12991d||'isAddSuggestion'==_0x12991d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12991d||'isRemoveSuggestion'==_0x12991d},'createdAt':new Date(),'rootName':_0x27786a});_0x19b24e['push'](_0x1feaa4),_0x336762['markers']['set']('revision:'+_0x1feaa4['id'],_0x23b729);}function _0x4fdb21(_0x5e6f49,_0x254ba8){const _0x22bd3c=_0x5e6f49['getAttributes'](),_0x315aff=_0x254ba8['getAttributes']();for(const _0x4efad9 of _0x22bd3c){if(_0x4efad9[0x1]!==_0x254ba8['getAttribute'](_0x4efad9[0x0]))return!0x1;_0x315aff['next']();}return _0x315aff['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb3da6d=>{const _0x955631=_0xb3da6d['markerName']['split'](':')[0x1],_0xb0960e=this['_getChangeFromId'](_0x955631);if(!_0xb0960e)return null;const _0x44a566='add'==_0xb0960e['type']?'insertion':'deletion',_0x21c4f1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x44a566];return _0xb0960e['data']['isSuggestion']&&_0x21c4f1['push']('ck-suggestion-marker-'+_0x44a566+'-new'),this['activeChange']==_0xb0960e&&_0x21c4f1['push']('ck-suggestion-marker--active'),{'classes':_0x21c4f1,'attributes':{'data-change-id':_0x955631}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x35f524=>{_0x35f524['on']('element:pre',(_0x1ba7d5,_0x19c839,_0x22b847)=>{const _0x293c8d=_0x19c839['viewItem']['getChild'](0x0);if(!_0x293c8d||!_0x293c8d['is']('element','code'))return;if(!_0x22b847['consumable']['consume'](_0x293c8d,{'attributes':['vid_start','vid_end']}))return;const _0x2791f0=_0x19c839['modelRange']['start']['nodeAfter'];_0x22b847['writer']['setAttribute']('vid_start',_0x293c8d['getAttribute']('vid_start'),_0x2791f0),_0x22b847['writer']['setAttribute']('vid_end',_0x293c8d['getAttribute']('vid_end'),_0x2791f0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xc530c0=>{_0xc530c0['on']('element',(_0x4057ca,_0x1656ae,_0x2f57bf)=>{if(!_0x2f57bf['consumable']['consume'](_0x1656ae['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1656ae['modelRange']['isCollapsed'])return;const _0x1c66e4=_0x1656ae['modelRange']['start']['nodeAfter'];_0x1c66e4['hasAttribute']('vid_start')||_0x1c66e4['hasAttribute']('vid')||(_0x2f57bf['writer']['setAttribute']('vid_start',_0x1656ae['viewItem']['getAttribute']('vid_start'),_0x1c66e4),_0x2f57bf['writer']['setAttribute']('vid_end',_0x1656ae['viewItem']['getAttribute']('vid_end'),_0x1c66e4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x819051=>_0x819051['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2996d9,[,_0x3a3762])=>{['vid_start','vid_end','vid']['includes'](_0x3a3762)&&(_0x2996d9['return']=!0x0,_0x2996d9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x907ed2=>{_0x907ed2['on']('attribute:vid',(_0xc96f5d,_0xf5823d,_0x5007c9)=>{if('\x20'!=_0xf5823d['item']['data']||_0xf5823d['item']['parent']['maxOffset']>0x1)return;if(!_0x5007c9['consumable']['consume'](_0xf5823d['item'],_0xc96f5d['name']))return;const _0x4cbca6=_0x5007c9['writer'],_0xb00a02=_0x5007c9['mapper']['toViewRange'](_0xf5823d['range']);_0x4cbca6['wrap'](_0xb00a02,_0x4cbca6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5eb19d){const _0x23a296=_0x5eb19d['plugins']['get']('RevisionViewer');return(_0xdbc1e9,_0x2560b5,_0x89dc04)=>{const _0x577195=_0x2560b5['markerName']['split'](':')[0x1],_0x50cda7=_0x23a296['_getChangeFromId'](_0x577195);if(!_0x50cda7)return null;const _0x43a08f='add'==_0x50cda7['type']?'split':'merge';if(!_0x89dc04['consumable']['test'](_0x2560b5['markerRange'],_0xdbc1e9['name']))return;const _0x33dccb=_0x2560b5['markerRange']['getWalker'](),_0xde64fd=_0x2560b5['markerRange']['start'],_0x125bb7=_0x5eb19d['model']['schema'];let _0x432d7c=null,_0x38fd6e=null,_0x575c48=!0x1,_0x39b3b8=!0x1;for(const _0x46158e of _0x33dccb){const _0x308d8a=_0x46158e['item'];_0x575c48=_0x575c48||_0x125bb7['isContent'](_0x308d8a);const _0x278a2f=_0x89dc04['mapper']['toViewElement'](_0x308d8a);if(_0x278a2f&&_0x278a2f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46158e['type']&&(_0x125bb7['isBlock'](_0x308d8a)&&!_0x125bb7['isLimit'](_0x308d8a)&&(_0x308d8a['nextSibling']||_0xde64fd['isAtEnd']?_0x432d7c&&_0x432d7c['parent']==_0x308d8a||(_0x432d7c=_0x308d8a,_0x3631a6(_0x46158e['previousPosition']),_0x39b3b8=!0x0):_0x38fd6e=_0x38fd6e||_0x46158e['previousPosition']));}function _0x3631a6(_0x193fac){const _0x16395b=_0x89dc04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x43a08f}),_0x2735be=_0x89dc04['mapper']['toViewPosition'](_0x193fac);_0x50cda7['data']['isSuggestion']&&_0x89dc04['writer']['addClass']('ck-suggestion-marker-'+_0x43a08f+'-new',_0x16395b),_0x23a296['activeChange']==_0x50cda7&&_0x89dc04['writer']['addClass']('ck-suggestion-marker--active',_0x16395b),_0x89dc04['writer']['insert'](_0x2735be,_0x16395b),_0x89dc04['mapper']['bindElementToMarker'](_0x16395b,_0x2560b5['markerName']);}_0x575c48||_0x39b3b8||!_0x38fd6e||_0x3631a6(_0x38fd6e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2d76f4,_0x3f2114,_0x3ecb4f)=>{const _0x438576=_0x3ecb4f['mapper']['markerNameToElements'](_0x3f2114['markerName']);if(_0x438576){for(const _0x2842b3 of _0x438576)(_0x2842b3['hasClass']('ck-suggestion-marker-split')||_0x2842b3['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ecb4f['mapper']['unbindElementFromMarkerName'](_0x2842b3,_0x3f2114['markerName']),_0x3ecb4f['writer']['remove'](_0x2842b3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x11bf9e,_0x4c2f70,_0x50f586)=>{const _0x2864ad=_0x4c2f70['markerName']['split'](':')[0x1],_0x469bf9=this['_getChangeFromId'](_0x2864ad);if(!_0x469bf9)return null;const _0x50f0d7='add'==_0x469bf9['type']?'split':'merge';if(_0x50f586['consumable']['test'](_0x4c2f70['markerRange'],_0x11bf9e['name']))for(const _0x12e9f7 of _0x4c2f70['markerRange']['getItems']()){if(!_0x12e9f7['is']('element','softBreak'))continue;const _0x33e294=_0x50f586['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50f0d7}),_0x3994da=_0x50f586['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x12e9f7));_0x469bf9['data']['isSuggestion']&&_0x50f586['writer']['addClass']('ck-suggestion-marker-'+_0x50f0d7+'-new',_0x33e294),this['activeChange']==_0x469bf9&&_0x50f586['writer']['addClass']('ck-suggestion-marker--active',_0x33e294),_0x50f586['writer']['insert'](_0x3994da,_0x33e294),_0x50f586['mapper']['bindElementToMarker'](_0x33e294,_0x4c2f70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xd90fe6=>{for(const _0x3d95d2 of this['editor']['model']['document']['getRootNames']()){const _0x4630be=this['editor']['model']['document']['getRoot'](_0x3d95d2),_0x4b23d8=this['editor']['editing']['view']['document']['getRoot'](_0x3d95d2);if(_0x4b23d8){const _0xa6907e=_0x4630be['getAttribute']('revisionHistoryAttachChange');if(_0xd90fe6['removeAttribute']('data-change-id',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root-add',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root-remove',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root--active',_0x4b23d8),_0xa6907e){const _0x4b23a5=this['_getChangeFromId'](_0xa6907e);if(!_0x4b23a5)return null;_0xd90fe6['setAttribute']('data-change-id',_0xa6907e,_0x4b23d8),_0xd90fe6['addClass']('ck-revision-history-root-'+_0x4b23a5['type'],_0x4b23d8),this['activeChange']==_0x4b23a5&&_0xd90fe6['addClass']('ck-revision-history-root--active',_0x4b23d8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x935b41=>'revision-comment:'+_0x935b41,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x42f42c=>'revision-suggestion:'+_0x42f42c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x596382=>({'name':'suggestion:'+_0x596382,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x30976d=>{const _0x1e9d52=_0x30976d['markerName']['split'](':')[0x1];return'insertion'!=_0x1e9d52&&'deletion'!=_0x1e9d52?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1e9d52]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1321ac,_0x5c5103,_0x55eb8d)=>{const _0x3b37e1=_0x55eb8d['mapper']['markerNameToElements'](_0x5c5103['markerName']);if(_0x3b37e1){for(const _0x5c068a of _0x3b37e1)_0x5c068a['is']('uiElement')&&(_0x55eb8d['mapper']['unbindElementFromMarkerName'](_0x5c068a,_0x5c5103['markerName']),_0x55eb8d['writer']['remove'](_0x5c068a));}},{'priority':'high'});}['_getChangeFromId'](_0x45dc0a){return this['_changeIdToChange']['get'](_0x45dc0a);}['_getViewForChange'](_0x46e8e8){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x46e8e8),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x46e591,_0x448f4a,_0x125c36,_0x458862)=>{_0x458862&&this['_balloon']['remove'](_0x458862),_0x125c36&&(this['_balloon']['add']({'view':_0x125c36,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3a1862=this['editor']['editing'],_0x1844bb=this['_getChangeFromId'](_0x125c36['changeId']);let _0x18b6d2;if(_0x1844bb['data']['isOnRoot']){const _0x23e008=_0x3a1862['view']['getDomRoot'](_0x1844bb['rootName']);_0x18b6d2=Array['from'](_0x23e008['getClientRects']());}else{const _0x1e3e8c=this['editor']['model']['markers']['get']('revision:'+_0x125c36['changeId']);_0x18b6d2=Array['from'](_0x3a1862['mapper']['markerNameToElements'](_0x1e3e8c['name']))['map'](_0x49eada=>_0x3a1862['view']['domConverter']['mapViewToDom'](_0x49eada))['map'](_0x2d1e0d=>Array['from'](_0x2d1e0d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18b6d2[0x0];return _0x18b6d2['find'](_0x519468=>_0x519468['top']-0x3<=this['_activeViewTarget']['y']&&_0x519468['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x519468['left']-0x3<=this['_activeViewTarget']['x']&&_0x519468['right']+0x3>=this['_activeViewTarget']['x'])||_0x18b6d2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x16755d,_0x50087b,_0x35309a,_0x462007)=>{this['activeView']=_0x35309a?this['_getViewForChange'](_0x35309a):null,this['editor']['model']['change'](()=>{const _0x11ab86=this['editor']['editing'];_0x462007&&(_0x462007['data']['isOnRoot']?_0x11ab86['view']['change'](_0x1e48bc=>{_0x1e48bc['removeClass']('ck-revision-history-root--active',_0x11ab86['view']['document']['getRoot'](_0x462007['rootName']));}):_0x11ab86['reconvertMarker']('revision:'+_0x462007['id'])),_0x35309a&&(_0x35309a['data']['isOnRoot']?_0x11ab86['view']['change'](_0x45bc5b=>{_0x45bc5b['addClass']('ck-revision-history-root--active',_0x11ab86['view']['document']['getRoot'](_0x35309a['rootName']));}):_0x11ab86['reconvertMarker']('revision:'+_0x35309a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x48ec83,_0xefc922)=>{if(this['activeChange'])return;const _0x32bcb2=this['_findChangeIdFromDomTarget'](_0xefc922['target']),_0x241e4b=this['_changeIdToChange']['get'](_0x32bcb2);_0x241e4b?(this['_activeViewTarget']={'x':_0xefc922['domEvent']['x'],'y':_0xefc922['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x241e4b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26a731,_0x1a6b09)=>{const _0x34a04=this['_findChangeIdFromDomTarget'](_0x1a6b09['target']),_0x309ae9=this['_changeIdToChange']['get'](_0x34a04);_0x309ae9?(this['_activeViewTarget']={'x':_0x1a6b09['domEvent']['x'],'y':_0x1a6b09['domEvent']['y']},_0x309ae9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x309ae9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x306a6b){do{const _0x2bf725=_0x306a6b['getAttribute']('data-change-id');if(_0x2bf725)return _0x2bf725;_0x306a6b=_0x306a6b['parent'];}while(_0x306a6b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b747a=>{for(const _0xc011ab of this['editor']['model']['markers'])_0x4b747a['removeMarker'](_0xc011ab);});}}function Q(_0x1e2950,_0x8b58d5){return(_0x4674d2,_0x5e381c,_0x3cb7f0)=>{if(!_0x3cb7f0['consumable']['test'](_0x5e381c['markerRange'],_0x4674d2['name']))return;const _0x513b84=_0x5e381c['markerRange']['getWalker'](),_0x3eae65=_0x5e381c['markerRange']['start'],_0x1313d0=_0x1e2950['model']['schema'];let _0x958a2a=null,_0x1b2111=null,_0x49e2f4=!0x1,_0x358da3=!0x1;for(const _0x5826e8 of _0x513b84){const _0x304072=_0x5826e8['item'];_0x49e2f4=_0x49e2f4||_0x1313d0['isContent'](_0x304072);const _0x3c1589=_0x3cb7f0['mapper']['toViewElement'](_0x304072);if(_0x3c1589&&_0x3c1589['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5826e8['type']&&(_0x1313d0['isBlock'](_0x304072)&&!_0x1313d0['isLimit'](_0x304072)&&(_0x304072['nextSibling']||_0x3eae65['isAtEnd']?_0x958a2a&&_0x958a2a['parent']==_0x304072||(_0x958a2a=_0x304072,_0x366a15(_0x5826e8['previousPosition']),_0x358da3=!0x0):_0x1b2111=_0x1b2111||_0x5826e8['previousPosition']));}function _0x366a15(_0x5a29a6){const _0x21004a=_0x3cb7f0['mapper']['toViewPosition'](_0x5a29a6),_0x5cc7c6=_0x3cb7f0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x8b58d5});_0x3cb7f0['writer']['insert'](_0x21004a,_0x5cc7c6),_0x3cb7f0['mapper']['bindElementToMarker'](_0x5cc7c6,_0x5e381c['markerName']);}_0x49e2f4||_0x358da3||!_0x1b2111||_0x366a15(_0x1b2111);};}class nt extends _0x2d4843{constructor(_0x101b55){super(_0x101b55);const _0x20f90a=_0x101b55['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x20f90a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20f90a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x574c15=this['editor'],_0x58f595=_0x574c15['plugins']['get'](l),_0x3ce870=_0x58f595['isReady']?_0x58f595['diff']['newRevisionId']:null;_0x574c15['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ce870);}['refresh'](){const {isReady:_0x8f37ce,isEnabled:_0x21c1e8,repository:_0x5394db,diff:_0x4a7d7c}=this['editor']['plugins']['get'](l),_0x21ef86=_0x4a7d7c&&_0x5394db['getLaterVisibleRevision'](_0x4a7d7c['newRevisionId']);this['isEnabled']=_0x8f37ce&&_0x21c1e8&&Boolean(_0x21ef86);}}class rt extends _0x2d4843{['_step'];constructor(_0x54cdab,{direction:_0x519f7a}){super(_0x54cdab);const _0x4348d6=_0x54cdab['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x519f7a?0x1:-0x1,this['listenTo'](_0x4348d6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4348d6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4348d6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21090e=this['editor'],_0x43db5e=_0x21090e['plugins']['get'](l),{isNavigationMode:_0x54594c,currentChangeNumber:_0x187f43}=_0x43db5e;let _0x4194f0;if(_0x43db5e['activeChange']=_0x54594c?_0x43db5e['diff']['changes']['get'](_0x187f43+this['_step']):_0x43db5e['diff']['changes']['first'],_0x43db5e['activeChange']['data']['isOnRoot'])_0x4194f0=_0x21090e['editing']['view']['getDomRoot'](_0x43db5e['activeChange']['rootName']);else{const _0x3e6075=_0x21090e['model']['markers']['get']('revision:'+_0x43db5e['activeChange']['id']);_0x4194f0=_0x38d135(_0x21090e['editing'],_0x3e6075);}_0x15df81({'target':_0x4194f0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ddc12,currentChangeNumber:_0x207cdc,numberOfChanges:_0x145efd,isReady:_0x25bb73,isEnabled:_0x3408a1}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3408a1&&_0x25bb73&&_0x145efd)&&(!_0x4ddc12||(0x1===this['_step']?_0x207cdc<_0x145efd-0x1:_0x207cdc>0x0));}}class vi extends _0x34055f{constructor(_0x8845b1){super(_0x8845b1);const _0x3f1ef3=this['bindTemplate'],_0x1e204f=new _0x9e686(_0x8845b1),_0x341aef=new _0x9e686(_0x8845b1);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',(_0x1f4969,_0x541583)=>_0x1f4969&&_0x541583>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2cf9bf,_0x3f9b19,_0x419289,_0x12f8e1)=>{if(!_0x2cf9bf)return R(_0x8845b1,'Loading...');if(!_0x419289)return R(_0x8845b1,'No\x20changes');const _0x19f0cc=R(_0x8845b1,'NUMBER_OF_CHANGES',_0x419289);return _0x12f8e1?R(_0x8845b1,'X_OF_Y_CHANGES',[_0x3f9b19+0x1,_0x419289]):_0x19f0cc;}),_0x1e204f['set']({'label':R(_0x8845b1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x554da9}),_0x341aef['set']({'label':R(_0x8845b1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3c5a6f}),_0x1e204f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x341aef['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1e204f['on']('execute',()=>this['fire']('execute','backward')),_0x341aef['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',_0x3f1ef3['if']('_isStatusLabelVisible','ck-hidden',_0x1b3da1=>!_0x1b3da1)]},'children':[{'text':_0x3f1ef3['to']('isNavigationMode',_0x3154e2=>_0x3154e2?R(_0x8845b1,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x8845b1,'Total')+':\x20')}]},{'text':_0x3f1ef3['to']('_statusText')}]},new _0x11ff8f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1e204f,_0x341aef]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x225e65{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3b65f0=this['editor']['editing']['view'];_0x3b65f0['change'](_0x39dc80=>{for(const _0x18afed of _0x3b65f0['document']['roots'])_0x39dc80['addClass'](oe,_0x18afed);});}['hide'](){const _0x8d9a18=this['editor']['editing']['view'];_0x8d9a18['change'](_0x80f908=>{for(const _0x30e772 of _0x8d9a18['document']['roots'])_0x80f908['removeClass'](oe,_0x30e772);});}}class u extends _0x225e65{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,wi];}['init'](){const _0x4eddf3=this['editor'],_0x22480b=_0x4eddf3['plugins']['get'](l),_0x3203c8=_0x4eddf3['plugins']['get'](wi);_0x4eddf3['ui']['componentFactory']['add']('exitToEditing',_0x27db9e=>{const _0xf1c6a6=new _0x9e686(_0x27db9e);return _0xf1c6a6['set']({'label':R(_0x27db9e,'Back\x20to\x20editing'),'icon':_0x1c0ecc,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf1c6a6,'execute',()=>{_0x4eddf3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf1c6a6;}),_0x4eddf3['ui']['componentFactory']['add']('restoreRevision',_0x2b8e18=>{const _0x29de59=new _0x9e686(_0x2b8e18);return _0x29de59['set']({'label':R(_0x2b8e18,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29de59['bind']('isEnabled')['to'](_0x4eddf3['commands']['get']('restoreRevision')),this['listenTo'](_0x29de59,'execute',()=>_0x4eddf3['execute']('restoreRevision')),_0x29de59;}),_0x4eddf3['ui']['componentFactory']['add']('changesNavigation',_0x13f2ff=>{const _0xcddacc=new vi(_0x13f2ff),_0x283924=_0x4eddf3['commands']['get']('showPreviousChange'),_0x54b6ac=_0x4eddf3['commands']['get']('showNextChange');return _0xcddacc['bind']('isBackwardNavigationEnabled')['to'](_0x283924,'isEnabled'),_0xcddacc['bind']('isForwardNavigationEnabled')['to'](_0x54b6ac,'isEnabled'),_0xcddacc['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22480b),this['listenTo'](_0xcddacc,'execute',(_0x19575d,_0x4569a9)=>{_0x4eddf3['execute']('forward'===_0x4569a9?'showNextChange':'showPreviousChange');}),_0xcddacc;}),_0x3203c8['show'](),_0x22480b['on']('change:isReady',(_0x524274,_0x428a01,_0x1d9304)=>{_0x1d9304?_0x3203c8['hide']():_0x3203c8['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4c950d,_0x24ae95){super(_0x4c950d,_0x24ae95);const _0x5c3e2d=this['bindTemplate'];this['set']({'label':R(_0x4c950d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4c950d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5c3e2d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xa5c0a2=this['fieldView']['element'];this['_tooltipString']=_0xa5c0a2['scrollWidth']>_0xa5c0a2['clientWidth']&&_0xa5c0a2['value']||'';}}class ni extends _0x34055f{constructor(_0x314c1c,_0x28bc0e,_0x35607c){super(_0x314c1c);const _0x285e8e=new _0x1614e9();_0x285e8e['set']({'content':_0x40b050,'viewBox':'0\x200\x2011\x2010'});const _0x527197=['ck','ck-revision-history-sidebar__revision-author'];_0x35607c&&_0x527197['push']('ck-revision-history-sidebar__revision-author_creator');const _0x267ad3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x314c1c,_0x35607c?'Revision\x20creator':'Revision\x20author')},'children':[_0x285e8e,_0x28bc0e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x527197},'children':_0x267ad3});}}function ai(_0x1c5436,_0x4505fc){const _0x3c7eac=_0x1c5436['bindTemplate'],_0x32c3af=_0x1c5436['locale'],_0x3b9211=_0x474189(_0x32c3af);_0x3b9211['panelPosition']='sw';const _0x2faa31=function(_0x2c7e14,_0x51c63a){const _0x4b4b6f=function(_0x973667,_0x30745f){const _0x29deed=_0x973667['locale'],_0x30c765={'Compare\x20against\x20selected':R(_0x29deed,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x29deed,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x29deed,'Restore\x20this\x20revision')};return _0x30745f['map'](_0x17e261=>{const _0x280017=_0x30c765[_0x17e261['name']];return _0x280017&&_0x280017!==_0x17e261['name']&&(_0x17e261['name']=_0x280017),_0x17e261;});}(_0x2c7e14,_0x51c63a),_0x4d18b9=new _0x56bfbf();for(const _0x36e0c0 of _0x4b4b6f){const _0x4e1dcf={'type':'button','model':new to({'label':_0x36e0c0['name'],'class':_0x36e0c0['class'],'withText':!0x0,'role':'menuitem','_action':_0x36e0c0['action']})};_0x4e1dcf['model']['bind']('isEnabled')['to'](_0x2c7e14,'isActionsDropdownOpen',_0x2930da=>'function'!=typeof _0x36e0c0['isEnabled']||(!_0x2930da||_0x36e0c0['isEnabled'](_0x2c7e14))),_0x4d18b9['add'](_0x4e1dcf);}return _0x4d18b9;}(_0x1c5436,_0x4505fc);return _0x1c5436['bind']('isActionsDropdownOpen')['to'](_0x3b9211,'isOpen'),_0x3b9211['buttonView']['set']({'label':R(_0x32c3af,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x416f2e}),_0x3b9211['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c7eac['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c7eac['to'](_0x22dcaa=>_0x22dcaa['stopPropagation']())}}),_0x3b9211['on']('execute',_0x32e898=>{_0x1c5436['isReady']&&'function'==typeof _0x32e898['source']['_action']&&_0x32e898['source']['_action'](_0x1c5436);}),_0x2b7003(_0x3b9211,_0x2faa31,{'role':'menu'}),_0x3b9211['listenTo'](_0x1c5436,'change:isActionsDropdownOpen',(_0x5b1650,_0x319fa2,_0x2c925a)=>{if(_0x2c925a)for(const _0x3ebfe9 of _0x3b9211['listView']['items']){const _0x96e12=_0x3ebfe9['children']['first'],_0x468848=_0x4505fc['find'](_0x4f71a5=>_0x4f71a5['action']===_0x96e12['_action'])['isVisible'];_0x3ebfe9['isVisible']=void 0x0===_0x468848||_0x468848(_0x1c5436);}}),_0x3b9211;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x486a9d,uid as _0x409a1e,Collection as _0x51d99d,logWarning as _0x303c88,FocusTracker as _0x8474b5,KeystrokeHandler as _0x4f55c2,scrollViewportToShowTarget as _0x1ec797,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x42f494}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f0b62,set as _0x528eaf,unset as _0x57b4d0,isEqual as _0x3b9204}from'es-toolkit/compat';import{Plugin as _0x357b2f,PendingActions as _0x47eaaa,Command as _0x28fcb7,ElementApiMixin as _0x2d4fb0,Editor as _0x381882}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x208745,getMarkerDomElement as _0x2169a6,ConfirmMixin as _0x3b7474,sanitizeEditorConfig as _0x5286ee}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x31488f,ViewAttributeElement as _0x138dc1,ViewEmptyElement as _0x2f3d58,ViewRawElement as _0x451017,ViewUIElement as _0x5513d9,ViewDocumentFragment as _0x5023ae,ViewText as _0x802376,ViewElement as _0xdd7b8a,ModelElement as _0x40ce00,ModelRange as _0x15d5fd,ModelPosition as _0x2695b7,ModelDocumentFragment as _0x33815f,ModelText as _0x8d94f3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3c4220,IconChevronUp as _0x1608f4,IconChevronDown as _0x30196a,IconUndo as _0x346532,IconUser as _0x32de47,IconThreeVerticalDots as _0x9f3e35}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3cb99e,View as _0x2daa41,submitHandler as _0x4b8409,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x183d12,ListView as _0x37cbb6,ListItemView as _0x520804,ButtonView as _0x3bd1e4,MenuBarMenuView as _0x3d23d3,MenuBarMenuListView as _0x1b4ebd,MenuBarMenuListItemView as _0x54bf1b,MenuBarMenuListItemButtonView as _0x1ad0cc,ContextualBalloon as _0x3c7bbb,ToolbarSeparatorView as _0x4e6ca2,IconView as _0x236d30,addListToDropdown as _0x16dec2,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x33aeb7,StickyPanelView as _0x28ec49,ToolbarView as _0x21e259,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xad23d4}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x486a9d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x580686){super(),this['id']=_0x580686['id']||_0x409a1e(),this['creator']=_0x580686['creator']||null,this['authors']=_0x580686['authors']||[],this['diffData']=_0x580686['diffData']||null,this['toVersion']=_0x580686['toVersion']||0x0,this['fromVersion']=_0x580686['fromVersion']||0x0,this['set']('name',_0x580686['name']||''),this['set']('createdAt',_0x580686['createdAt']||new Date()),this['set']('attributes',_0x580686['attributes']||{});}['setName'](_0x39ae39){this['_update']({'name':_0x39ae39});}['setAttribute'](_0x4489a9,_0x66a21a){const _0xbf54fc=_0x3f0b62(this['attributes']);_0x528eaf(_0xbf54fc,_0x4489a9,_0x66a21a),this['_update']({'attributes':_0xbf54fc});}['removeAttribute'](_0x5819e3){const _0x2640de=_0x3f0b62(this['attributes']);_0x57b4d0(_0x2640de,_0x5819e3),this['_update']({'attributes':_0x2640de});}['_update'](_0x3622fe,_0x622985=!0x1){let _0x307c5c=!0x1;const _0x2b6aa9={'id':this['id']},_0x4bdc7b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5f0829 of _0x4bdc7b){const _0x11ff0e=_0x3622fe[_0x5f0829];void 0x0!==_0x11ff0e&&_0x11ff0e!==this[_0x5f0829]&&(this[_0x5f0829]=_0x11ff0e,_0x2b6aa9[_0x5f0829]=_0x11ff0e,_0x307c5c=!0x0);}_0x307c5c&&(_0x2b6aa9['authors']&&(_0x2b6aa9['authorsIds']=_0x2b6aa9['authors']['map'](_0x128407=>_0x128407['id']),delete _0x2b6aa9['authors']),this['fire']('_update',_0x2b6aa9,_0x622985));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x37b75f=>_0x37b75f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x357b2f{['_revisions'];static get['requires'](){return[_0x208745];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3b4b1e){super(_0x3b4b1e),this['_revisions']=new _0x51d99d();}['afterInit'](){!async function(_0x3a4e98){const _0x4dad4d=_0x17dd72([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x5055a8=0xeb829,_0x4c9984=0x7374585f,_0x2715f0=0x73732c87^_0x4c9984,_0x5af39c=window[_0x17dd72([0x44,0x61,0x74,0x65])][_0x17dd72([0x6e,0x6f,0x77])](),_0x1b51b2=_0x3a4e98[_0x17dd72([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cde3e=new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e3af=>{_0x1b51b2[_0x17dd72([0x6f,0x6e,0x63,0x65])](_0x17dd72([0x72,0x65,0x61,0x64,0x79]),_0x35e3af);}),_0x184cf6={[_0x17dd72([0x6b,0x74,0x79])]:_0x17dd72([0x45,0x43]),[_0x17dd72([0x75,0x73,0x65])]:_0x17dd72([0x73,0x69,0x67]),[_0x17dd72([0x63,0x72,0x76])]:_0x17dd72([0x50,0x2d,0x32,0x35,0x36]),[_0x17dd72([0x78])]:_0x17dd72([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]),[_0x17dd72([0x79])]:_0x17dd72([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]),[_0x17dd72([0x61,0x6c,0x67])]:_0x17dd72([0x45,0x53,0x32,0x35,0x36])},_0x36e4b6=_0x1b51b2[_0x17dd72([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17dd72([0x67,0x65,0x74])](_0x17dd72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x494366(){let _0x3969f3,_0x283874=null,_0x22c6fe=null;try{if(_0x36e4b6==_0x17dd72([0x47,0x50,0x4c]))return _0x17dd72([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3969f3=_0x3afbf1(),!_0x3969f3)return _0x17dd72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3969f3[_0x17dd72([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22c6fe=_0x3c40ab(_0x3969f3[_0x17dd72([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3969f3[_0x17dd72([0x6a,0x74,0x69])])),await _0x10f537()?_0x4f27ab()?_0x50d53b()?_0x17dd72([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ac8a2()?(_0x3969f3[_0x17dd72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17dd72([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x283874=_0x16adec(_0x17dd72([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3969f3[_0x17dd72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17dd72([0x74,0x72,0x69,0x61,0x6c])&&(_0x283874=_0x16adec(_0x17dd72([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x416b47()):_0x17dd72([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17dd72([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17dd72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17dd72([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50d53b(){const _0x42269b=[_0x17dd72([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17dd72([0x74,0x72,0x69,0x61,0x6c])][_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3969f3[_0x17dd72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af39c/0x3e8:0xe10*_0x2715f0;return _0x3969f3[_0x17dd72([0x65,0x78,0x70])]<_0x42269b;}function _0x4f27ab(){const _0x393c27=_0x3969f3[_0x17dd72([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x393c27)return!0x1;if(_0x393c27[_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dd72([0x2a])))return!0x0;if(_0x393c27[_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dd72([0x52,0x48])))return!0x0;if(_0x393c27[_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dd72([0x52,0x52,0x48]))){if(_0x494106())return!0x0;if(_0x391a4e()||_0x56ae02())return!0x0;}return!0x1;}function _0x1ac8a2(){const _0x3036a9=_0x3969f3[_0x17dd72([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3036a9||0x0==_0x3036a9[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4de291}=new URL(window[_0x17dd72([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3036a9[_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4de291))return!0x0;const _0x4d92b7=_0x4de291[_0x17dd72([0x73,0x70,0x6c,0x69,0x74])](_0x17dd72([0x2e]));return _0x3036a9[_0x17dd72([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13377b=>_0x13377b[_0x17dd72([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dd72([0x2a])))[_0x17dd72([0x6d,0x61,0x70])](_0x5c4db4=>_0x5c4db4[_0x17dd72([0x73,0x70,0x6c,0x69,0x74])](_0x17dd72([0x2e])))[_0x17dd72([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ab68=>_0x11ab68[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d92b7[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17dd72([0x6d,0x61,0x70])](_0x200b04=>Array(_0x4d92b7[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x200b04[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17dd72([0x66,0x69,0x6c,0x6c])](_0x200b04[0x0]===_0x17dd72([0x2a])?_0x17dd72([0x2a]):'')[_0x17dd72([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x200b04))[_0x17dd72([0x73,0x6f,0x6d,0x65])](_0x3672d3=>_0x4d92b7[_0x17dd72([0x65,0x76,0x65,0x72,0x79])]((_0x4b147e,_0x244c3d)=>_0x3672d3[_0x244c3d]===_0x4b147e||_0x3672d3[_0x244c3d]===_0x17dd72([0x2a])));}function _0x416b47(){return _0x283874&&_0x22c6fe?new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6e00,_0x41e144)=>{_0x283874[_0x17dd72([0x74,0x68,0x65,0x6e])](_0x2a6e00,_0x41e144),_0x22c6fe[_0x17dd72([0x74,0x68,0x65,0x6e])](_0x3138b8=>{_0x3138b8!=_0x17dd72([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6e00(_0x3138b8);},_0x41e144);}):_0x283874||_0x22c6fe||_0x17dd72([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c40ab(_0x916a2,_0x2aae49){return new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1268=>{if(_0x1a317b())return _0x4e1268(_0x17dd72([0x56,0x61,0x6c,0x69,0x64]));_0x1cc895(),_0x1b51b2[_0x17dd72([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17dd72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x378672=!0x1;const _0x108305=_0x409a1e();function _0x473a96(_0x3c801f){return!!_0x3c801f&&(typeof _0x3c801f===_0x17dd72([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c801f===_0x17dd72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c801f[_0x17dd72([0x74,0x68,0x65,0x6e])]===_0x17dd72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c801f[_0x17dd72([0x63,0x61,0x74,0x63,0x68])]===_0x17dd72([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53c56f(_0x2ced03){_0x4f516e(_0x2ced03)[_0x17dd72([0x74,0x68,0x65,0x6e])](_0xc29fc1=>{if(!_0xc29fc1||_0xc29fc1[_0x17dd72([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17dd72([0x6f,0x6b]))return _0x17dd72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34c042(_0x9bb3e5(_0x108305+_0x2aae49))!=_0xc29fc1[_0x17dd72([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17dd72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17dd72([0x56,0x61,0x6c,0x69,0x64]);})[_0x17dd72([0x74,0x68,0x65,0x6e])](_0x1d08be=>(_0x38aa53(),_0x1d08be),()=>{const _0x422a68=_0x4c408d();return null==_0x422a68?(_0x38aa53(),_0x17dd72([0x56,0x61,0x6c,0x69,0x64])):_0x17dd72(_0x5af39c-_0x422a68>(0x5778dc5f^_0x4c9984)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17dd72([0x74,0x68,0x65,0x6e])](_0x4e1268)[_0x17dd72([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1268(_0x17dd72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59a1a6=0x7342b6df^_0x4c9984;function _0x38aa53(){const _0x3c31d7=_0x17dd72([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c042(_0x9bb3e5(_0x916a2)),_0x48fed2=_0x175a23(_0x34c042(window[_0x17dd72([0x4d,0x61,0x74,0x68])][_0x17dd72([0x63,0x65,0x69,0x6c])](_0x5af39c/_0x59a1a6)));window[_0x17dd72([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17dd72([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c31d7,_0x48fed2);}function _0x4c408d(){const _0x131836=_0x17dd72([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c042(_0x9bb3e5(_0x916a2)),_0x2af232=window[_0x17dd72([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17dd72([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131836);return _0x2af232?window[_0x17dd72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x175a23(_0x2af232),0x10)*_0x59a1a6:null;}function _0x4f516e(_0x501075){return new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4044aa,_0x5aa920)=>{_0x501075[_0x17dd72([0x74,0x68,0x65,0x6e])](_0x4044aa,_0x5aa920),window[_0x17dd72([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5aa920,0x73758c9f^_0x4c9984);});}}_0x1b51b2[_0x17dd72([0x6f,0x6e])](_0x17dd72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51187b,_0x534d0a)=>{if(_0x534d0a[0x0]!=_0x916a2)return _0x4e1268(_0x17dd72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x534d0a[0x1]={..._0x534d0a[0x1],[_0x17dd72([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x108305};},{[_0x17dd72([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17dd72([0x68,0x69,0x67,0x68])}),_0x1b51b2[_0x17dd72([0x6f,0x6e])](_0x17dd72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x474c57=>{_0x473a96(_0x474c57[_0x17dd72([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x378672=!0x0,_0x53c56f(_0x474c57[_0x17dd72([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17dd72([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17dd72([0x6c,0x6f,0x77])}),_0x4cde3e[_0x17dd72([0x74,0x68,0x65,0x6e])](()=>{_0x378672||_0x4e1268(_0x17dd72([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a317b(){return _0x1b51b2[_0x17dd72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17dd72([0x76,0x69,0x65,0x77])][_0x17dd72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17dd72([0x61,0x75,0x74,0x6f]);}function _0x1cc895(){_0x1b51b2[_0x17dd72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17dd72([0x76,0x69,0x65,0x77])][_0x17dd72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17dd72([0x61,0x75,0x74,0x6f]);}}function _0x16adec(_0x25526b){const _0x20fbb7=[new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328171=>setTimeout(_0x328171,0x737d6693^_0x4c9984)),_0x4cde3e[_0x17dd72([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2473e7=>{const _0x3cd1b0=0x73745858^_0x4c9984,_0x4be0aa=_0x3a4e98[_0x17dd72([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2cd87c(){_0x4be0aa[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3cd1b0&&_0x2473e7();}_0x2cd87c(),_0x4be0aa[_0x17dd72([0x6f,0x6e])](_0x17dd72([0x61,0x64,0x64]),_0x2cd87c);})),new window[(_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4569d6=>{function _0x5d8f08(){for(const _0x5b960b in window)if(window[_0x17dd72([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x17dd72([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5b960b))&&window[_0x5b960b]==_0x5055a8)return _0x4569d6();_0x1b51b2[_0x17dd72([0x73,0x74,0x61,0x74,0x65])]!=_0x17dd72([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x17dd72([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d8f08,0x73744bd7^_0x4c9984);}_0x3cffc7(_0x17dd72([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5d8f08();})];return window[_0x17dd72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17dd72([0x72,0x61,0x63,0x65])](_0x20fbb7)[_0x17dd72([0x74,0x68,0x65,0x6e])](()=>_0x25526b);}async function _0x7b1519(){if(await _0x4cde3e,_0x3cffc7(_0x17dd72([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x46ed0b=_0x3a4e98[_0x17dd72([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x388a37=_0x3a4e98[_0x17dd72([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])](_0x46ed0b[_0x17dd72([0x69,0x64])]),_0x52607f=_0x915a8c(_0x17dd72([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x52607f[_0x17dd72([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x46ed0b['id'],_0x388a37?_0x388a37['id']:null,!0x0),_0x52607f[_0x17dd72([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x17dd72([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x52607f[_0x17dd72([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x52607f[_0x17dd72([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x44ec4d,void(_0x52607f[_0x17dd72([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x44ec4d);}if(_0x3cffc7(_0x17dd72([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x51620c=_0x915a8c(_0x17dd72([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x51620c[_0x17dd72([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x17dd72([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x51620c[_0x17dd72([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x51620c[_0x17dd72([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x44ec4d,_0x51620c[_0x17dd72([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x44ec4d;}_0x1b51b2[_0x17dd72([0x6d,0x6f,0x64,0x65,0x6c])][_0x17dd72([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44ec4d,_0x1b51b2[_0x17dd72([0x6d,0x6f,0x64,0x65,0x6c])][_0x17dd72([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44ec4d,_0x1b51b2[_0x17dd72([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17dd72([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x494106(){return _0x3cffc7(_0x17dd72([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x915a8c(_0x17dd72([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17dd72([0x73,0x74,0x61,0x74,0x65])]==_0x17dd72([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x391a4e(){return _0x3cffc7(_0x17dd72([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 _0x56ae02(){return _0x3cffc7(_0x17dd72([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x32883d(_0x3062ad){const _0xca67b2=_0x586c84();_0x1b51b2[_0xca67b2]=_0x17dd72([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])+_0x3062ad,_0x3062ad[_0x17dd72([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x17dd72([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x586c84()]=_0x5055a8),_0x3062ad!=_0x17dd72([0x56,0x61,0x6c,0x69,0x64])&&_0x7b1519();}function _0x586c84(){const _0x152cb7=window[_0x17dd72([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17dd72([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17dd72([0x6e,0x6f,0x77])]())[_0x17dd72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17dd72([0x2e]),'');let _0x2284da=_0x17dd72([0x73]);for(let _0x376e95=0x0;_0x376e95<_0x152cb7[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x376e95+=0x2){let _0x1e4a8c=window[_0x17dd72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152cb7[_0x17dd72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x376e95,_0x376e95+0x2));_0x1e4a8c>=_0x4dad4d[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e4a8c-=_0x4dad4d[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2284da+=_0x4dad4d[_0x1e4a8c];}return _0x2284da;}function _0x3afbf1(){const _0x419119=_0x36e4b6[_0x17dd72([0x73,0x70,0x6c,0x69,0x74])](_0x17dd72([0x2e]));if(0x3!=_0x419119[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x96a8b9(_0x419119[0x1]);function _0x96a8b9(_0x45da4d){const _0x1aee65=_0x39524d(_0x45da4d);return _0x1aee65&&_0x259cf4()?_0x1aee65:null;function _0x259cf4(){const _0x4202ff=_0x1aee65[_0x17dd72([0x6a,0x74,0x69])],_0x4d05e9=window[_0x17dd72([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4202ff[_0x17dd72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4202ff[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc5bb98={..._0x1aee65,[_0x17dd72([0x6a,0x74,0x69])]:_0x4202ff[_0x17dd72([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4202ff[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc5bb98[_0x17dd72([0x76,0x63])],_0x9bb3e5(_0xc5bb98)==_0x4d05e9;}}}async function _0x10f537(){let _0x80ffae=!0x0;try{const _0x17a7b9=_0x36e4b6[_0x17dd72([0x73,0x70,0x6c,0x69,0x74])](_0x17dd72([0x2e])),[_0x3d87b1,_0x5a3ef9,_0xb99a53]=_0x17a7b9;return _0x467a16(_0x3d87b1),await _0x42ca81(_0x3d87b1,_0x5a3ef9,_0xb99a53),_0x80ffae;}catch{return!0x1;}function _0x467a16(_0x308b8f){const _0x8b1b45=_0x39524d(_0x308b8f);_0x8b1b45&&_0x8b1b45[_0x17dd72([0x61,0x6c,0x67])]==_0x17dd72([0x45,0x53,0x32,0x35,0x36])||(_0x80ffae=!0x1);}async function _0x42ca81(_0x2caa48,_0x234cbc,_0xec6670){const _0x683e1f=window[_0x17dd72([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17dd72([0x66,0x72,0x6f,0x6d])](_0x21e2a2(_0xec6670),_0x44b1be=>_0x44b1be[_0x17dd72([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39b6d8=new window[(_0x17dd72([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17dd72([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2caa48+_0x17dd72([0x2e])+_0x234cbc),_0x3069dc=window[_0x17dd72([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17dd72([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3069dc)return;const _0x5e8ad1=await _0x3069dc[_0x17dd72([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17dd72([0x6a,0x77,0x6b]),_0x184cf6,{[_0x17dd72([0x6e,0x61,0x6d,0x65])]:_0x17dd72([0x45,0x43,0x44,0x53,0x41]),[_0x17dd72([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17dd72([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17dd72([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3069dc[_0x17dd72([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17dd72([0x6e,0x61,0x6d,0x65])]:_0x17dd72([0x45,0x43,0x44,0x53,0x41]),[_0x17dd72([0x68,0x61,0x73,0x68])]:{[_0x17dd72([0x6e,0x61,0x6d,0x65])]:_0x17dd72([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e8ad1,_0x683e1f,_0x39b6d8)||(_0x80ffae=!0x1);}}function _0x39524d(_0x3fad6e){return _0x3fad6e[_0x17dd72([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17dd72([0x65,0x79]))?JSON[_0x17dd72([0x70,0x61,0x72,0x73,0x65])](_0x21e2a2(_0x3fad6e)):null;}function _0x21e2a2(_0x39ccfb){return window[_0x17dd72([0x61,0x74,0x6f,0x62])](_0x39ccfb[_0x17dd72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17dd72([0x2b]))[_0x17dd72([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17dd72([0x2f])));}function _0x9bb3e5(_0x1abc8a){let _0xe10e6c=0x1505;function _0x366d1a(_0x3a3e2d){for(let _0x122911=0x0;_0x122911<_0x3a3e2d[_0x17dd72([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122911++){const _0x663739=_0x3a3e2d[_0x17dd72([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x122911);_0xe10e6c=(_0xe10e6c<<0x5)+_0xe10e6c+_0x663739,_0xe10e6c&=_0xe10e6c;}}function _0x49a422(_0x4f40c5){Array[_0x17dd72([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f40c5)?_0x4f40c5[_0x17dd72([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49a422):_0x4f40c5&&typeof _0x4f40c5==_0x17dd72([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17dd72([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f40c5)[_0x17dd72([0x73,0x6f,0x72,0x74])]()[_0x17dd72([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x180797,_0x30893d])=>{_0x366d1a(_0x180797),_0x49a422(_0x30893d);}):_0x366d1a(window[_0x17dd72([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f40c5));}return _0x49a422(_0x1abc8a),_0xe10e6c>>>0x0;}function _0x34c042(_0x35543c){return _0x35543c[_0x17dd72([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17dd72([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17dd72([0x30]));}function _0x175a23(_0x3c72a2){return _0x3c72a2[_0x17dd72([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17dd72([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17dd72([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cffc7(_0x29b706){return _0x1b51b2[_0x17dd72([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17dd72([0x68,0x61,0x73])](_0x29b706);}function _0x915a8c(_0x1ff9ef){return _0x1b51b2[_0x17dd72([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17dd72([0x67,0x65,0x74])](_0x1ff9ef);}function _0x44ec4d(){}function _0x17dd72(_0x37eec1){return _0x37eec1['map'](_0x105183=>String['fromCharCode'](_0x105183))['join']('');}_0x32883d(await _0x494366());}(this);}['createRevision'](_0x2020e9){const _0x5a5b7f=this['editor']['plugins']['get']('Users');return new I({'id':_0x2020e9['id'],'name':_0x2020e9['name'],'creator':_0x2020e9['creatorId']?_0x5a5b7f['getUser'](_0x2020e9['creatorId']):null,'diffData':_0x2020e9['diffData']||_0x2020e9['data'],'authors':_0x2020e9['authorsIds']['map'](_0xc6cb83=>_0x5a5b7f['getUser'](_0xc6cb83)),'createdAt':new Date(_0x2020e9['createdAt']),'attributes':_0x2020e9['attributes'],'fromVersion':_0x2020e9['fromVersion'],'toVersion':_0x2020e9['toVersion']});}['addRevision'](_0x42e8ce,_0x5a96d0=0x0){this['_revisions']['add'](_0x42e8ce,_0x5a96d0);}['getRevision'](_0x17b376){return this['_revisions']['get'](_0x17b376);}['getRevisions'](_0x1849ed={'toJSON':!0x1}){const _0x24073b=Array['from'](this['_revisions']);return _0x24073b['reverse'](),_0x1849ed['toJSON']?_0x24073b['map'](_0xcda6a6=>_0xcda6a6['toJSON']()):_0x24073b;}['getIndex'](_0x236f40){return this['_revisions']['getIndex'](_0x236f40);}['getEarlierVisibleRevision'](_0x27386c){const [,_0x57806e]=this['getRevisionsIterator'](_0x27386c,{'direction':'earlier'});return _0x57806e;}['getLaterVisibleRevision'](_0x5b13c9){const [,_0x2421d9]=this['getRevisionsIterator'](_0x5b13c9,{'direction':'later'});return _0x2421d9;}['getRevisionsInDiff'](_0x407081){const _0x2a34f0=[];for(const _0x14278d of this['getRevisionsIterator'](_0x407081['newRevisionId']))if(_0x2a34f0['push'](_0x14278d),_0x14278d['id']===_0x407081['oldRevisionId'])break;return _0x2a34f0;}*['getRevisionsIterator'](_0x584fde,{direction:_0x3e8799='earlier',filter:_0x513480=()=>!0x0}={}){const _0x3bebfc='earlier'===_0x3e8799?0x1:-0x1;let _0x374586=this['_revisions']['get'](_0x584fde),_0x39dcfa=this['getIndex'](_0x374586);for(yield _0x374586;_0x374586;){if(_0x39dcfa+=_0x3bebfc,_0x374586=this['getRevision'](_0x39dcfa),!_0x374586)return;_0x513480(_0x374586)&&(yield _0x374586);}}}class $ extends _0x357b2f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x31488f,'c'],[_0x138dc1,'a'],[_0x2f3d58,'e'],[_0x451017,'r'],[_0x5513d9,'u']]);['_typeCharToViewClass']=new Map([['c',_0x31488f],['a',_0x138dc1],['e',_0x2f3d58],['r',_0x451017],['u',_0x5513d9]]);async['loadRevisionData'](_0x1fa6e9,_0x332455){if(_0x1fa6e9['diffData']||!_0x332455)return;const _0x462455=this['editor']['config']['get']('collaboration.channelId'),_0x515882=await _0x332455['getRevision']({'channelId':_0x462455,'revisionId':_0x1fa6e9['id']});_0x1fa6e9['diffData']=_0x515882['diffData'];}['getRevisionDocumentData'](_0x55e31f){const _0x28662e={};for(const _0x53da0c in _0x55e31f['diffData']){if(_0x55e31f['diffData'][_0x53da0c]['attachChange']&&!_0x55e31f['diffData'][_0x53da0c]['attachChange']['isAttached'])continue;const _0xee953f=this['_removeRevisionMarkers'](JSON['parse'](_0x55e31f['diffData'][_0x53da0c]['insertions'])),_0x1277ca=this['editor']['editing']['view']['document'],_0x15fab7=new _0x5023ae(_0x1277ca,_0xee953f['map'](_0x315774=>this['_getViewFromDiffObj'](_0x315774,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x28662e[_0x53da0c]=this['editor']['data']['processor']['toData'](_0x15fab7),this['editor']['data']['processor']['useFillerType']('default');}return _0x28662e;}['getRevisionRootsAttributes'](_0x252a5c){const _0x11219d={};for(const _0x454a39 in _0x252a5c['diffData'])_0x252a5c['diffData'][_0x454a39]['attachChange']&&!_0x252a5c['diffData'][_0x454a39]['attachChange']['isAttached']||(_0x11219d[_0x454a39]=_0x252a5c['diffData'][_0x454a39]['attributesAfter']||{});return _0x11219d;}['_getTypeCharForViewElement'](_0x4efd6d){return this['_viewClassToTypeChar']['get'](_0x4efd6d['constructor']);}['_getViewFromDiffObj'](_0x909570,_0x42292c){const _0x217f27=this['editor']['editing']['view']['document'];if('string'==typeof _0x909570)return new _0x802376(_0x217f27,_0x909570);{let _0x2fe40a,_0x4baf26;_0x4baf26='u'==_0x909570['type']||'r'==_0x909570['type']?[]:_0x909570['children']['map'](_0x5cc587=>this['_getViewFromDiffObj'](_0x5cc587,_0x42292c));const _0x2dfd91=this['_typeCharToViewClass']['get'](_0x909570['type'])||_0xdd7b8a,_0x224e0e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2fe40a=new _0x2dfd91(_0x217f27,_0x909570['name'],_0x909570['attributes'],_0x4baf26),'u'==_0x909570['type']&&_0x909570['children'][0x0]){const _0x58c39d=_0x909570['children'][0x0];if(_0x2fe40a['render']=function(_0x4d5d58){const _0x1eaf7c=_0x4d5d58['createElement']('div');return _0x1eaf7c['innerHTML']=_0x58c39d,_0x1eaf7c['childNodes'][0x0];},_0x42292c){const _0x591a47=new _0x5023ae(_0x217f27);_0x591a47['_appendChild'](_0x2fe40a);const _0xcdac16=Array['from'](_0x224e0e['viewChildrenToDom'](_0x591a47,{'bind':!0x1})),_0x1b64b6=_0x224e0e['domDocument']['createElement']('div');_0x1b64b6['append'](..._0xcdac16),_0x2fe40a=Array['from'](_0x224e0e['domChildrenToView'](_0x1b64b6))[0x0];}}else{if('r'==_0x909570['type']&&_0x909570['children'][0x0]){const _0xe28e10=_0x909570['children'][0x0];if(_0x2fe40a['render']=function(_0x3e71b8){_0x3e71b8['innerHTML']=_0xe28e10;},_0x42292c){const _0x262dce=new _0x5023ae(_0x217f27);_0x262dce['_appendChild'](_0x2fe40a);const _0x301572=Array['from'](_0x224e0e['viewChildrenToDom'](_0x262dce,{'bind':!0x1})),_0x246999=_0x224e0e['domDocument']['createElement']('div');_0x246999['append'](..._0x301572);const _0x51890e=Array['from'](_0x224e0e['domChildrenToView'](_0x246999));_0x51890e['length']>0x1?_0x2fe40a['_appendChild'](_0x51890e):_0x2fe40a=_0x51890e[0x0];}}}if(_0x909570['customProperties']){for(const [_0x51ba2d,_0x555c0d]of _0x909570['customProperties'])_0x2fe40a['_setCustomProperty'](_0x51ba2d,_0x555c0d);}const _0x20edfc=void 0x0===_0x909570['fillerOffset']?null:_0x909570['fillerOffset'];return null!==_0x20edfc&&(_0x2fe40a['getFillerOffset']=()=>_0x20edfc),_0x2fe40a;}}['_makeModelFromViewString'](_0x3f493d){const _0xefafc9=JSON['parse'](_0x3f493d),_0xc76b04=this['editor']['editing']['view']['document'],_0x47265a=new _0x5023ae(_0xc76b04,_0xefafc9['map'](_0x4c35b3=>this['_getViewFromDiffObj'](_0x4c35b3,!0x0)));return this['editor']['data']['toModel'](_0x47265a);}['_removeRevisionMarkers'](_0x5d962d){return(_0x5d962d=_0x5d962d['filter'](_0x1439c5=>!_0x1439c5['name']||'revision-start'!==_0x1439c5['name']&&'revision-end'!==_0x1439c5['name']))['forEach'](_0x1bc661=>{'string'!=typeof _0x1bc661&&(_0x1bc661['children']=this['_removeRevisionMarkers'](_0x1bc661['children']),_0x1bc661['attributes']=_0x1bc661['attributes']['filter'](_0x541b5b=>!_0x541b5b[0x0]['startsWith']('data-revision-')));}),_0x5d962d;}}function m(_0x2efaa8,_0x44fe20,_0x214876){const t=_0x2efaa8['t'];switch(_0x44fe20){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'},_0x214876);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x214876);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x357b2f{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x208745,S,$,_0x47eaaa];}constructor(_0x15b177){super(_0x15b177),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x532649=_0x409a1e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x532649},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1f1d12=this['repository']['getRevision'](0x0),_0x4cbdad=_0x1f1d12&&null===_0x1f1d12['creator']?_0x1f1d12:null;if(this['_continueCurrentRevision']=!!_0x4cbdad&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1e884d=this['_source']['getCurrentRevisionId'](),_0x401b7b=this['repository']['getRevision'](_0x1e884d);if(_0x401b7b)this['_startingVersion']=_0x401b7b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x26f3b6=this['_source']['history']['_operations']['find'](_0x47bc47=>!_0x47bc47['_isInit']),_0x3372c3=_0x26f3b6?_0x26f3b6['baseVersion']:this['_source']['history']['version'];_0x1f1d12?(_0x1f1d12['toVersion']<_0x3372c3&&_0x1f1d12['_update']({'toVersion':_0x3372c3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cbdad['id'],this['_startingVersion']=_0x4cbdad['fromVersion']):(this['_startingVersion']=_0x1f1d12['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3372c3,this['_continueCurrentRevision']=!0x1);}}else _0x4cbdad&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cbdad['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cbdad['fromVersion']===_0x4cbdad['toVersion']?(0x0!==_0x4cbdad['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbdad['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbdad['id'],this['_startingVersion']=_0x4cbdad['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',_0x41fe39=>!_0x41fe39),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2602d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13c791;for(const _0x58a6f5 in _0x2602d9){const _0x53077e=_0x58a6f5,_0x56591b=_0x2602d9[_0x53077e];if('revisionHistoryLicenseKeyValid'==_0x56591b||'revisionHistoryLicenseKeyInvalid'==_0x56591b||'revisionHistoryLicenseKeyExpired'==_0x56591b||'revisionHistoryLicenseKeyDomainLimit'==_0x56591b||'revisionHistoryLicenseKeyNotAllowed'==_0x56591b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x56591b||'revisionHistoryLicenseKeyTrialLimit'==_0x56591b||'revisionHistoryLicenseKeyUsageLimit'==_0x56591b){delete _0x2602d9[_0x53077e],_0x13c791=_0x56591b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x13c791&&_0x2602d9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x13c791&&_0x2602d9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x13c791&&_0x2602d9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x13c791&&_0x2602d9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x13c791&&_0x2602d9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x13c791&&_0x2602d9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x13c791&&_0x2602d9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5c0f55=this['repository']['getRevision'](0x0),_0x209b5e=await this['getRevisionDocumentData'](_0x5c0f55),_0x2335ec=await this['getRevisionRootsAttributes'](_0x5c0f55);this['_replaceEditorDataWithRevisionData'](_0x209b5e,_0x2335ec);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4a0f52){this['_source']=_0x4a0f52;}async['update'](){const _0x249e4a=await this['_source']['getLatestVersion']();if(_0x249e4a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2fdfbc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x249e4a});_0x2fdfbc['authors']=_0x2fdfbc['authorsIds']['map'](_0x3bb512=>this['editor']['plugins']['get']('Users')['getUser'](_0x3bb512)),this['currentRevision']['_update'](_0x2fdfbc);}}async['saveRevision'](_0x5c71ab={},_0x5c2963=null){const _0x3a67d2=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5c2963>this['currentRevision']['toVersion']&&(_0x5c2963=null),null===_0x5c2963&&(_0x5c2963=await this['_source']['getLatestVersion']());const _0x5e3289=this['_getFromVersion'](_0x5c2963),_0x1b28f3=this['buildRevisionData']({'from':_0x5e3289,'to':_0x5c2963});if(this['currentRevision']['toVersion']<_0x5c2963){const _0x3c96bc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5c2963,'to':_0x5c2963});_0x3c96bc['authors']=[],_0x3c96bc['authorsIds']=[],_0x3c96bc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3c96bc,!0x0),delete _0x3c96bc['authors'],_0x3a67d2['push'](_0x3c96bc);}_0x5c71ab['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c71ab['name']=_0x5c71ab['name']||null,_0x5c71ab['id']=_0x5c71ab['id']||_0x409a1e(),_0x5c71ab={..._0x5c71ab,..._0x1b28f3};const _0x28fc8f=this['addRevisionData'](_0x5c71ab);_0x3a67d2['push'](_0x5c71ab);const _0x1eb1fa=this['repository']['getIndex'](_0x28fc8f);if(0x0!==_0x1eb1fa){const _0x2f98bc=this['repository']['getRevision'](_0x1eb1fa-0x1);if(_0x2f98bc['fromVersion']!==_0x5c2963){const _0x556fc4=this['_revisionDataBuilder']['getData'](_0x5c2963,_0x2f98bc['toVersion']),_0x36be37={'id':_0x2f98bc['id'],'diffData':_0x556fc4['diffData'],'authorsIds':_0x556fc4['authorsIds'],'authors':_0x556fc4['authorsIds']['map'](_0x2b443e=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b443e)),'fromVersion':_0x5c2963};_0x2f98bc===this['currentRevision']&&(_0x36be37['createdAt']=new Date(_0x5c71ab['createdAt']['getTime']()+0xa)),_0x2f98bc['_update'](_0x36be37,!0x0),delete _0x36be37['authors'],_0x3a67d2['push'](_0x36be37);}}if(this['adapter']){for(const _0x49300c of _0x3a67d2)this['_bufferUpdate'](_0x49300c['id'],_0x49300c,!0x0);this['sendBufferedUpdates']();}return _0x28fc8f;}['addRevisionData'](_0x37103e){const _0x47cebb=this['repository']['createRevision'](_0x37103e);return this['adapter']&&_0x47cebb['on']('_update',(_0x22b56d,_0x231ec2,_0x1fe2db)=>{_0x1fe2db||(this['_bufferUpdate'](_0x231ec2['id'],_0x231ec2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x47cebb,this['_findInsertionIndex'](_0x47cebb)),_0x47cebb;}async['getRevisionDocumentData'](_0x5a0138){return await this['_utils']['loadRevisionData'](_0x5a0138,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5a0138);}async['getRevisionRootsAttributes'](_0x183b8a){return await this['_utils']['loadRevisionData'](_0x183b8a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x183b8a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x476a85=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x696ec6=0x0;_0x696ec6<_0x476a85['length'];_0x696ec6++){const _0x504997=_0x476a85[_0x696ec6];let _0x399920=!0x1;for(const _0x785294 of Object['keys'](_0x504997))void 0x0===_0x504997[_0x785294]?delete _0x504997[_0x785294]:'id'!==_0x785294&&(_0x399920=!0x0);_0x399920||(_0x476a85[_0x696ec6]=null);}if(_0x476a85=_0x476a85['filter'](_0x419a86=>null!==_0x419a86),!_0x476a85['length'])return;for(let _0xe36fc1=0x0;_0xe36fc1<_0x476a85['length'];_0xe36fc1++){const _0x40190c=_0x476a85[_0xe36fc1];void 0x0!==_0x40190c['fromVersion']&&void 0x0===_0x40190c['toVersion']&&(_0x40190c['toVersion']=this['repository']['getRevision'](_0x40190c['id'])['toVersion']),void 0x0!==_0x40190c['toVersion']&&void 0x0===_0x40190c['fromVersion']&&(_0x40190c['fromVersion']=this['repository']['getRevision'](_0x40190c['id'])['fromVersion']);}const _0x469411=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x476a85,_0x469411)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4f40a5=>{if(_0x4f40a5){for(const _0x689b54 of _0x4f40a5)this['setRevisionData']({'id':_0x689b54['id'],'createdAt':_0x689b54['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x24d96f=null,from:_0x4cbf87=null,to:_0x2d97a3=null}){_0x4cbf87=null!==_0x4cbf87?_0x4cbf87:_0x24d96f['fromVersion'],_0x2d97a3=null!==_0x2d97a3?_0x2d97a3:_0x24d96f['toVersion'];const _0x225a01=this['_revisionDataBuilder']['getData'](_0x4cbf87,_0x2d97a3),_0x19cdcd={'diffData':_0x225a01['diffData'],'authorsIds':_0x225a01['authorsIds'],'fromVersion':_0x4cbf87,'toVersion':_0x2d97a3};if(!_0x24d96f||_0x2d97a3!==_0x24d96f['toVersion']){const _0x21cc8a=_0x2d97a3-0x1,_0x2c7122=this['_source']['history']['getOperation'](_0x21cc8a);_0x19cdcd['createdAt']=_0x2c7122&&_0x2c7122['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4cbf87===this['_loadedStateData']['fromVersion']){for(const _0x1e845 of this['_loadedStateData']['authors'])_0x19cdcd['authorsIds']['includes'](_0x1e845['id'])||_0x19cdcd['authorsIds']['push'](_0x1e845['id']);}return _0x19cdcd;}['_bufferUpdate'](_0x330f3c,_0x14761b,_0x12a849){if(this['_bufferedUpdates']['has'](_0x330f3c)){const _0x4dfdc3=this['_bufferedUpdates']['get'](_0x330f3c);_0x14761b=_0x12a849?{..._0x4dfdc3,..._0x14761b}:{..._0x14761b,..._0x4dfdc3};}this['_bufferedUpdates']['set'](_0x330f3c,_0x14761b);}['setRevisionData'](_0x32e997){const _0x4bdd83=this['repository']['getRevision'](_0x32e997['id']);if(_0x32e997['createdAt']&&(_0x32e997['createdAt']=new Date(_0x32e997['createdAt'])),_0x32e997['authorsIds']){const _0x252b6b=this['editor']['plugins']['get']('Users');_0x32e997['authors']=_0x32e997['authorsIds']['map'](_0x38731b=>_0x252b6b['getUser'](_0x38731b));}_0x4bdd83['_update'](_0x32e997,!0x0);}['_createInitialRevision'](_0x2a53be){const _0x50d37f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x50d37f)this['_initialRevisionId']=_0x50d37f['id'];else{const _0x1ad9be=!this['editor']['model']['document']['roots']['find'](_0x22999d=>this['editor']['model']['hasContent'](_0x22999d)),_0x26d23e=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f1f0c=m(this['editor']['locale'],_0x1ad9be?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2a53be,'to':_0x2a53be,'id':this['_initialRevisionId'],'name':_0x4f1f0c,'creatorId':_0x26d23e});}}['_createCurrentRevision'](_0x184d0d){const _0x5531b2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5531b2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x184d0d,'to':_0x184d0d,'id':_0x5531b2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x38c531,_0x1c3df7){let _0x25349c=this['editor']['config']['get']('initialData'),_0x2927ea=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x25349c){_0x25349c={};for(const _0x59e3ae of this['editor']['model']['document']['getRootNames']())_0x25349c[_0x59e3ae]='';}if('string'==typeof _0x25349c&&(_0x25349c={'main':_0x25349c}),void 0x0===_0x2927ea){_0x2927ea={};for(const _0x1d18df of this['editor']['model']['document']['getRootNames']())_0x2927ea[_0x1d18df]={};}let _0x3b40dc=!0x1;const _0x2279be=Object['keys'](_0x25349c),_0x579444=Object['keys'](_0x38c531);for(const _0x31369a of _0x2279be){if(_0x25349c[_0x31369a]!==_0x38c531[_0x31369a]&&''!==_0x25349c[_0x31369a]['trim']()){_0x3b40dc=!0x0;break;}if(!_0x3b9204(_0x2927ea[_0x31369a],_0x1c3df7[_0x31369a])&&Object['keys'](_0x2927ea[_0x31369a])['length']>0x0){_0x3b40dc=!0x0;break;}}_0x3b40dc||(_0x3b40dc=_0x579444['some'](_0x58672c=>!this['editor']['model']['document']['getRoot'](_0x58672c))),_0x3b40dc&&_0x303c88('editor-initial-data-replaced-with-revision-data',{'editorData':_0x25349c,'editorRootsAttributes':_0x2927ea,'revisionData':_0x38c531,'revisionRootsAttributes':_0x1c3df7}),this['editor']['config']['set']('initialData',_0x38c531),this['editor']['config']['set']('rootsAttributes',_0x1c3df7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1a54f6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1a54f6['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1470af){const _0xc9a26=this['repository']['getRevisions']();_0xc9a26['reverse']();let _0x5de0bc=0x0;for(;_0x5de0bc<_0xc9a26['length'];){const _0x414210=_0xc9a26[_0x5de0bc];if(_0x414210===this['currentRevision']){_0x5de0bc++;continue;}if(_0x414210['id']===this['_initialRevisionId'])break;const _0x11ade8=_0x1470af['toVersion']-_0x414210['toVersion']||_0x1470af['fromVersion']-_0x414210['fromVersion'];if(_0x11ade8>0x0)break;if(_0x11ade8<0x0)_0x5de0bc++;else{if(!_0x1470af['creator']&&_0x414210['creator'])break;if(_0x414210['creator']||!_0x1470af['creator']){if(_0x1470af['createdAt']>_0x414210['createdAt'])break;_0x5de0bc++;}else _0x5de0bc++;}}return _0x5de0bc;}['_getFromVersion'](_0x59303b){const _0x31cb1e=this['repository']['getRevisions']();_0x31cb1e['reverse'](),_0x31cb1e['shift']();const _0x152f74=_0x31cb1e['find'](_0x4558b6=>_0x4558b6['toVersion']<=_0x59303b)['toVersion'];return _0x152f74<this['_startingVersion']?this['_startingVersion']:_0x152f74;}['_makeRevision']({name:_0x50fe2e,from:_0x4b13bd,to:_0xa059b8,creatorId:_0x175ff4,id:_0x483906}){const _0x3ffc72=this['buildRevisionData']({'from':_0x4b13bd,'to':_0xa059b8});_0x3ffc72['name']=_0x50fe2e,_0x3ffc72['creatorId']=_0x175ff4,_0x3ffc72['id']=_0x483906;const _0x5ba1fd=this['addRevisionData'](_0x3ffc72);return this['adapter']&&this['_bufferUpdate'](_0x3ffc72['id'],_0x3ffc72,!0x0),_0x5ba1fd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x547b7c){this['editor']=_0x547b7c,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'](_0xe19b06){this['source']=_0xe19b06;const _0x5e1ed7=new Map(),_0x3eae13=new Map(),_0x5045d4=this['editor']['model']['document']['roots']['map'](_0xa8f587=>_0xa8f587['rootName']);for(const _0x4d8d28 of _0x5045d4){const _0xdd504c=this['editor']['model']['document']['getRoot'](_0x4d8d28),_0x5e305f=x(_0xdd504c);_0x5e1ed7['set'](_0x4d8d28,_0x5e305f),_0x3eae13['set'](_0x4d8d28,Object['fromEntries'](_0xdd504c['getAttributes']()));}const _0x2e9513=Array['from'](this['editor']['model']['markers'])['map'](_0xabdf6=>[_0xabdf6['name'],_0xabdf6['getRange']()]),_0x1542c7=this['source']['version'];this['_saveMetaData'](_0x1542c7,_0x5e1ed7,_0x2e9513,_0x3eae13),this['_startingRevisionId']=this['_revisionId'];const _0x5eea93=new Map(),_0x1f1637=new Map();for(const _0x5e0424 of _0x5045d4){const _0x38b38b=N(_0x5e0424);_0x5eea93['set'](_0x5e0424,_0x38b38b),_0x1f1637['set'](_0x5e0424,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5eea93,[],_0x1f1637);}['getData'](_0x51fe0e,_0x5b63fd){if(this['_lastFrom']===_0x51fe0e&&this['_lastTo']<=_0x5b63fd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5b63fd,!0x0);else{if(!this['_savedMetaData']['has'](_0x51fe0e)){const _0x58085e=this['_getPreviousFrom'](_0x51fe0e);this['_calculateMetaData'](_0x58085e,_0x51fe0e,!0x1);}this['_calculateMetaData'](_0x51fe0e,_0x5b63fd,!0x0);}return this['_lastFrom']=_0x51fe0e,this['_lastTo']=_0x5b63fd,this['_getState']();}['loadState'](_0x2b36f1){if(!this['_savedMetaData']['has'](_0x2b36f1['fromVersion'])){const _0x2692ff=this['_getPreviousFrom'](_0x2b36f1['fromVersion']);this['_calculateMetaData'](_0x2692ff,_0x2b36f1['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2b36f1['fromVersion'],_0x2b36f1['toVersion'],!0x1);const _0x303c95=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2b36f1['fromVersion'],this['_lastTo']=_0x2b36f1['toVersion'];for(const _0x4c905d in _0x2b36f1['diffData']){const _0x251a40=_0x2b36f1['diffData'][_0x4c905d]['attachChange'],_0x3494a8=_0x3f0b62(_0x2b36f1['diffData'][_0x4c905d]['attributesBefore'])||{},_0x3c23e2=_0x303c95['_makeModelFromViewString'](_0x2b36f1['diffData'][_0x4c905d]['deletions']);_0x3c23e2['rootName']=_0x4c905d,_0x3c23e2['_isAttached']=!_0x251a40||!_0x251a40['isAttached'],_0x3c23e2['isAttached']=()=>_0x3c23e2['_isAttached'],this['_baseRoots']['set'](_0x4c905d,_0x3c23e2),this['_baseRootsAttributes']['set'](_0x4c905d,_0x3494a8),_0x251a40&&this['_touchedRoots']['set'](_0x4c905d,_0x251a40);const _0x4fa6fe=this['_makeIdsRoot'](_0x3c23e2);this['_baseIdsRoots']['set'](_0x4c905d,_0x4fa6fe);for(const [_0x24522d,_0x1af9e0]of _0x3c23e2['markers']){if(!_0x24522d['startsWith']('revision:'))continue;const _0x37ccb4=_0x24522d['split'](':')[0x2];for(const _0x23f4a9 of _0x1af9e0['getWalker']({'singleCharacters':!0x0})){const _0xc75a01=this['_getVidAttributeName'](_0x23f4a9),_0x344719='elementEnd'==_0x23f4a9['type']?_0x23f4a9['previousPosition']['path']['slice'](0x0,-0x1):_0x23f4a9['previousPosition']['path'],_0x872b82=_0x4fa6fe['getNodeByPath'](_0x344719)['getAttribute'](_0xc75a01);this['_touched']['set'](_0x872b82,{'userId':_0x37ccb4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x307fcd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x6616d6=>!this['_touched']['has'](_0x6616d6));let _0x58a885=0x0;const _0x2e40b4=new Map();for(const _0x468ac3 in _0x2b36f1['diffData']){const _0x4d1604=_0x2b36f1['diffData'][_0x468ac3]['attachChange'],_0x20cdb7=_0x3f0b62(_0x2b36f1['diffData'][_0x468ac3]['attributesAfter'])||{},_0x52664f=_0x303c95['_makeModelFromViewString'](_0x2b36f1['diffData'][_0x468ac3]['insertions']);_0x52664f['rootName']=_0x468ac3,_0x52664f['_isAttached']=!_0x4d1604||_0x4d1604['isAttached'],_0x52664f['isAttached']=()=>_0x52664f['_isAttached'],this['_diffRoots']['set'](_0x468ac3,_0x52664f),this['_diffRootsAttributes']['set'](_0x468ac3,_0x20cdb7);const _0x369b8a=this['_makeIdsRoot'](_0x52664f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x468ac3,_0x369b8a),_0x2e40b4['set'](_0x468ac3,_0x52664f['isAttached']()?_0x20cdb7:{});for(const [_0x5a99ff,_0xcdf37b]of _0x52664f['markers']){if(!_0x5a99ff['startsWith']('revision:'))continue;const _0x233025=_0x5a99ff['split'](':')[0x2];for(const _0x14eda4 of _0xcdf37b['getWalker']({'singleCharacters':!0x0})){const _0x3b5fc4=this['_getVidAttributeName'](_0x14eda4),_0x38e6c6=this['_revisionId']++,_0x9c488b='elementEnd'==_0x14eda4['type']?_0x14eda4['previousPosition']['path']['slice'](0x0,-0x1):_0x14eda4['previousPosition']['path'];_0x369b8a['getNodeByPath'](_0x9c488b)['_setAttribute'](_0x3b5fc4,_0x38e6c6),this['_touched']['set'](_0x38e6c6,{'userId':_0x233025});}}for(const _0x2e61e4 of this['editor']['model']['createRangeIn'](_0x52664f)['getWalker']({'singleCharacters':!0x0})){const _0x4a513e=this['_getVidAttributeName'](_0x2e61e4),_0x41880c='elementEnd'==_0x2e61e4['type']?_0x2e61e4['previousPosition']['path']['slice'](0x0,-0x1):_0x2e61e4['previousPosition']['path'],_0x3c20c0=_0x369b8a['getNodeByPath'](_0x41880c);_0x3c20c0['getAttribute'](_0x4a513e)>0x0||_0x3c20c0['_setAttribute'](_0x4a513e,_0x307fcd[_0x58a885++]);}for(const [_0x6962d9,_0x325fa3]of _0x52664f['markers'])_0x6962d9['startsWith']('revision:')||this['_markers']['set'](_0x6962d9,_0x325fa3);}const {roots:_0x38d8a1}=this['_savedMetaData']['get'](_0x2b36f1['fromVersion']),{roots:_0x161dfa}=this['_savedMetaData']['get'](_0x2b36f1['toVersion']),_0x43051d=x(_0x38d8a1['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x43051d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43051d,Number['NEGATIVE_INFINITY']));const _0x494ef6=x(_0x161dfa['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x494ef6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x494ef6));const _0x5e9f94=Array['from'](this['_diffRoots'])['map'](([_0x2ee91a,_0x10abaa])=>[_0x2ee91a,x(_0x10abaa)]);this['_saveMetaData'](this['_lastTo'],_0x5e9f94,this['_markers'],_0x2e40b4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2f18c5,_0x33db0b,_0x1423e1,_0x3c2459){const _0x4dfdce=new Map(_0x33db0b),_0xe14f2=new Map(_0x3f0b62(_0x3c2459)),_0x15866b=new Map();for(const [_0x2af4c4,_0x573b5b]of _0x1423e1)_0x15866b['set'](_0x2af4c4,{'start':_0x573b5b['start']['clone'](),'end':_0x573b5b['end']['clone'](),'rootName':_0x573b5b['root']['rootName']});this['_savedMetaData']['set'](_0x2f18c5,{'roots':_0x4dfdce,'markers':_0x15866b,'rootsAttributes':_0xe14f2});}['_removeMetaData'](_0x32c4fb){this['_savedMetaData']['delete'](_0x32c4fb);}['_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'](_0x39b96c,_0x35f6d1=null){let _0x3dc8ef=null;_0x39b96c['is']('documentFragment')||(_0x3dc8ef=new _0x40ce00(_0x39b96c['name'],{'vid_start':null===_0x35f6d1?this['_revisionId']++:_0x35f6d1++}));const _0x1e9454=[];for(const _0x23eb4d of _0x39b96c['getChildren']())if(_0x23eb4d['is']('element')){_0x1e9454['push'](this['_makeIdsRoot'](_0x23eb4d,_0x35f6d1));const _0x3b791b=_0x1e9454[_0x1e9454['length']-0x1];null!==_0x35f6d1&&(_0x35f6d1=_0x3b791b['is']('element','$text')?_0x3b791b['getAttribute']('vid')+0x1:_0x3b791b['getAttribute']('vid_end')+0x1);}else{for(let _0x3976c6=0x0;_0x3976c6<_0x23eb4d['offsetSize'];_0x3976c6++)_0x1e9454['push'](new _0x40ce00('$text',{'vid':null===_0x35f6d1?this['_revisionId']++:_0x35f6d1++}));}if(_0x39b96c['is']('documentFragment')){const _0x1c46eb=N(_0x39b96c['rootName']);return _0x1c46eb['_insertChild'](0x0,_0x1e9454),_0x1c46eb;}return _0x3dc8ef['_setAttribute']('vid_end',null===_0x35f6d1?this['_revisionId']++:_0x35f6d1++),_0x3dc8ef['_insertChild'](0x0,_0x1e9454),_0x3dc8ef;}['_calculateMetaData'](_0x2233c2,_0x25ee3f,_0x4ab512){this['_reset']();const {roots:_0x12e60a,markers:_0x208535,rootsAttributes:_0x563584}=this['_savedMetaData']['get'](_0x2233c2);this['_baseRoots']=new Map(_0x12e60a),this['_baseRootsAttributes']=new Map(_0x3f0b62(_0x563584));for(const [_0x3fc70b,_0x14643f]of this['_baseRoots'])if('$graveyard'!==_0x3fc70b&&(this['_diffRoots']['set'](_0x3fc70b,x(_0x14643f)),this['_diffRootsAttributes']=new Map(_0x3f0b62(_0x563584)),_0x4ab512)){const _0x1efada=this['_revisionId'];this['_idsRoots']['set'](_0x3fc70b,this['_makeIdsRoot'](_0x14643f)),this['_baseIdsRoots']['set'](_0x3fc70b,this['_makeIdsRoot'](_0x14643f,_0x1efada));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4ab512&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f9d2d,_0x4701d2]of _0x208535){const _0x4b3a7a=this['_baseRoots']['get'](_0x4701d2['rootName']),_0x469afc=this['_diffRoots']['get'](_0x4701d2['rootName']),_0x1a2915=new _0x15d5fd(this['_fixPosition'](_0x4701d2['start'],_0x4b3a7a),this['_fixPosition'](_0x4701d2['end'],_0x4b3a7a)),_0x37c765=this['_fixRange'](_0x1a2915,_0x469afc);_0x4b3a7a['markers']['set'](_0x3f9d2d,_0x1a2915),this['_markers']['set'](_0x3f9d2d,_0x37c765);}this['_applyOperations'](_0x2233c2,_0x25ee3f,_0x4ab512);}['_applyOperations'](_0x55af7c,_0x2f8c77,_0x3a2f9f){for(const _0x28ad3f of this['source']['getOperations'](_0x55af7c,_0x2f8c77))this['_handleOperation'](_0x28ad3f,_0x3a2f9f);for(const _0x4fa3ca of this['_diffRoots']['values']())_0x4fa3ca['markers']['clear']();for(const [_0x20be4e,_0x10c5b8]of this['_markers']){this['_diffRoots']['get'](_0x10c5b8['root']['rootName'])['markers']['set'](_0x20be4e,_0x10c5b8['clone']());}const _0x459979=new Map(),_0x5cadf1=new Map();for(const [_0x3621d1,_0x54ac79]of this['_diffRoots'])_0x459979['set'](_0x3621d1,x(_0x54ac79)),_0x5cadf1['set'](_0x3621d1,this['_diffRootsAttributes']['get'](_0x3621d1));this['_saveMetaData'](_0x2f8c77,_0x459979,this['_markers'],_0x5cadf1);}['_getPreviousFrom'](_0x2209ad){const _0x5df96c=Array['from'](this['_savedMetaData']['keys']());_0x5df96c['sort']((_0x454e04,_0x3ed8b2)=>_0x454e04-_0x3ed8b2),_0x5df96c['reverse']();for(const _0x5ce845 of _0x5df96c)if(_0x5ce845<_0x2209ad)return _0x5ce845;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2197c3,_0x21c172){const _0x31159f=Array['from'](_0x21c172['markers'])['map'](([_0x56c708,_0x4d4a4d])=>[_0x56c708,this['_fixRange'](_0x4d4a4d,_0x2197c3)]);_0x2197c3['markers']=new Map(_0x31159f);}['_transformMarkers'](_0x55f19c){for(const _0x16cc9a of this['_markers']['values']()){const _0x5f4000=_0x16cc9a['getTransformedByOperation'](_0x55f19c),_0x625ec7=_0x15d5fd['_createFromRanges'](_0x5f4000);_0x16cc9a['start']=_0x625ec7['start'],_0x16cc9a['end']=_0x625ec7['end'];}}['_handleOperation'](_0x37e4cf,_0x69a66c){if('addRoot'!=_0x37e4cf['type']&&'detachRoot'!=_0x37e4cf['type']){if('insert'==_0x37e4cf['type']){const _0x458329=_0x37e4cf['position']['root']['rootName'];this['_diffRoots']['has'](_0x458329)||(this['_diffRoots']['set'](_0x458329,N(_0x458329,!0x0)),this['_diffRootsAttributes']['set'](_0x458329,{}),_0x69a66c&&this['_idsRoots']['set'](_0x458329,N(_0x458329,!0x0)));}else{if('addRootAttribute'==_0x37e4cf['type']||'removeRootAttribute'==_0x37e4cf['type']||'changeRootAttribute'==_0x37e4cf['type'])return void this['_handleRootAttributeOperation'](_0x37e4cf);'marker'==_0x37e4cf['type']&&this['_handleMarkerOperation'](_0x37e4cf);}if('marker'!==_0x37e4cf['type']){const _0x3b4fae=this['_cloneOperation'](_0x37e4cf,this['_diffRoots']);_0x3b4fae['_execute'](),this['_transformMarkers'](_0x3b4fae);}if(_0x69a66c)switch(_0x37e4cf['type']){case'insert':this['_handleInsertOperation'](_0x37e4cf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37e4cf);break;case'merge':this['_handleMergeOperation'](_0x37e4cf);break;case'split':this['_handleSplitOperation'](_0x37e4cf);}}else this['_handleRootOperation'](_0x37e4cf,_0x69a66c);}['_cloneOperation'](_0x351c93,_0x40b2f4){const _0x1952c5=_0x351c93['clone']();return _0x1952c5['_authorId']=_0x351c93['_authorId'],this['_fixOperation'](_0x1952c5,_0x40b2f4),_0x1952c5;}['_getBaseVids'](_0x1edff2){return _0x1edff2['map'](_0x347f25=>{const _0x2ad867=this['_getVidAttributeName'](_0x347f25);return Number(_0x347f25['item']['getAttribute'](_0x2ad867));});}['_generateTape'](_0x4ce5ec,_0xaccd74){if(_0x4ce5ec['is']('element','$text'))_0xaccd74['push']({'item':_0x4ce5ec,'type':'text'});else{_0x4ce5ec['is']('element')&&_0xaccd74['push']({'item':_0x4ce5ec,'type':'elementStart'});for(const _0x59adca of _0x4ce5ec['getChildren']())this['_generateTape'](_0x59adca,_0xaccd74);_0x4ce5ec['is']('element')&&_0xaccd74['push']({'item':_0x4ce5ec,'type':'elementEnd'});}return _0xaccd74;}['_getState'](){const _0x459bb9=new Map(this['_touched']),_0x3f555a=new Map(_0x459bb9),_0x3a6470=new Map(),_0x469cd0={'insertions':{},'deletions':{}},_0x2525f4={'insertions':{},'deletions':{}},_0x74ede4=new Map(),_0x2ed5c9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2ed5c9['delete']('$graveyard');for(const _0x4fa923 of _0x2ed5c9){const _0x58b7b2=this['_diffRoots']['get'](_0x4fa923)||N(_0x4fa923,!0x1),_0x1971e1=this['_baseRoots']['get'](_0x4fa923)||N(_0x4fa923,!0x1);_0x58b7b2['isAttached']()||_0x1971e1['isAttached']()?(_0x469cd0['insertions'][_0x4fa923]=x(_0x58b7b2),_0x469cd0['deletions'][_0x4fa923]=x(_0x1971e1),this['_copyMarkers'](_0x469cd0['deletions'][_0x4fa923],_0x1971e1),this['_copyMarkers'](_0x469cd0['insertions'][_0x4fa923],_0x58b7b2),_0x2525f4['insertions'][_0x4fa923]=this['_generateTape'](this['_idsRoots']['get'](_0x4fa923),[]),_0x2525f4['deletions'][_0x4fa923]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4fa923)||N(_0x4fa923,!0x1),[])):_0x2ed5c9['delete'](_0x4fa923);}for(const _0x13fe9b of _0x2ed5c9){const _0x2834e2=_0x2525f4['insertions'][_0x13fe9b];for(const _0x10e0c8 of _0x2834e2){const _0x4fecbb=this['_getVidAttributeName'](_0x10e0c8),_0x3b5b45=_0x10e0c8['item']['getAttribute'](_0x4fecbb);_0x3f555a['delete'](_0x3b5b45),_0x3b5b45>=this['_startingRevisionId']&&_0x3a6470['set'](_0x3b5b45,_0x459bb9['get'](_0x3b5b45));}}for(const _0x5d9cde of _0x2ed5c9){const _0x5719d3=_0x2525f4['insertions'][_0x5d9cde],_0xafae3b=this['_getBaseVids'](_0x2525f4['deletions'][_0x5d9cde]);let _0x1cc81b=0x0;for(const _0x4089f3 of _0x5719d3){const _0x1ba1a1=this['_getVidAttributeName'](_0x4089f3),_0x424187=_0x4089f3['item']['getAttribute'](_0x1ba1a1);if(!_0x3a6470['has'](_0x424187)&&!_0x74ede4['has'](_0x424187)){if(_0x3f555a['has'](_0x424187))_0x1cc81b++;else{if(_0x424187!=_0xafae3b[_0x1cc81b]){const _0xd0b7b3=_0x459bb9['get'](_0x424187)||_0x459bb9['get'](_0xafae3b[_0x1cc81b]);for(;_0x424187!=_0xafae3b[_0x1cc81b];)_0x3f555a['has'](_0xafae3b[_0x1cc81b])||(_0x74ede4['set'](_0xafae3b[_0x1cc81b],_0xd0b7b3),_0x459bb9['set'](_0xafae3b[_0x1cc81b],_0xd0b7b3)),_0x1cc81b++;}_0x1cc81b++;}}}}for(const _0x554b63 of _0x2ed5c9){const _0x216f20=_0x2525f4['insertions'][_0x554b63];for(const _0x4b5fef of _0x216f20){const _0x279ad9=this['_getVidAttributeName'](_0x4b5fef),_0x25bb52=_0x4b5fef['item']['getAttribute'](_0x279ad9);if(_0x74ede4['has'](_0x25bb52)){const _0x223829=_0x74ede4['get'](_0x25bb52);_0x3f555a['has'](_0x25bb52)||_0x3f555a['set'](_0x25bb52,{..._0x223829}),_0x3a6470['set'](_0x25bb52,{..._0x223829});}}}for(const _0x70d33b of _0x3f555a['keys']())_0x70d33b>=this['_startingRevisionId']&&_0x3f555a['delete'](_0x70d33b);const _0x100609=new Map();for(const _0x2c4ada of _0x2ed5c9){let _0x4f2e43=_0x2525f4['insertions'][_0x2c4ada];for(const _0x234bef of _0x4f2e43)if(_0x234bef['item']['is']('element','tableCell')){const _0x17a012=this['_getVidAttributeName'](_0x234bef),_0x3d7f77=_0x234bef['item']['getAttribute'](_0x17a012);if(_0x3a6470['has'](_0x3d7f77)){const _0x15492=_0x234bef['item']['parent']['parent']['getAttribute']('vid_start'),_0x16bb80=_0x100609['get'](_0x15492)||new Set();_0x16bb80['add'](_0x3a6470['get'](_0x3d7f77)['userId']),_0x100609['set'](_0x15492,_0x16bb80);}}_0x4f2e43=_0x2525f4['deletions'][_0x2c4ada];for(const _0x33d054 of _0x4f2e43)if(_0x33d054['item']['is']('element','tableCell')){const _0x6a6b2f=this['_getVidAttributeName'](_0x33d054),_0xe8462a=_0x33d054['item']['getAttribute'](_0x6a6b2f);if(_0x3f555a['has'](_0xe8462a)){const _0x4e9d03=_0x33d054['item']['parent']['parent']['getAttribute']('vid_start'),_0x11035b=_0x100609['get'](_0x4e9d03)||new Set();_0x11035b['add'](_0x3f555a['get'](_0xe8462a)['userId']),_0x100609['set'](_0x4e9d03,_0x11035b);}}for(const _0x5a66a6 of _0x100609['keys']())(_0x3a6470['has'](_0x5a66a6)||_0x3f555a['has'](_0x5a66a6))&&_0x100609['delete'](_0x5a66a6);}for(const _0x28302f of _0x2ed5c9){const _0x516b63=_0x2525f4['insertions'][_0x28302f];let _0x4e228b=null,_0x2cc20f=null;for(const _0xdc439a of _0x516b63){const _0x1243f2=this['_getVidAttributeName'](_0xdc439a),_0x31ee53=_0xdc439a['item']['getAttribute'](_0x1243f2),_0x5bf448=_0x100609['get'](_0x31ee53);_0x5bf448&&'elementStart'==_0xdc439a['type']&&(_0x4e228b=Array['from'](_0x5bf448)[0x0],_0x2cc20f=_0xdc439a['item']['getAttribute']('vid_end')),_0x4e228b&&(_0x3f555a['set'](_0x31ee53,{'userId':_0x4e228b}),_0x3a6470['set'](_0x31ee53,{'userId':_0x4e228b})),_0x31ee53==_0x2cc20f&&(_0x4e228b=null,_0x2cc20f=null);}}const _0xec81ac={},_0x2955e8=new Set();for(const _0x1d5364 of _0x2ed5c9){const _0x184429=_0x469cd0['deletions'][_0x1d5364],_0x29a6a1=_0x469cd0['insertions'][_0x1d5364];for(const {userId:_0x4678be}of this['_touchedMarkers']['values']())null!==_0x4678be&&_0x2955e8['add'](_0x4678be);for(const {userId:_0x335368}of this['_touchedRoots']['values']())null!==_0x335368&&_0x2955e8['add'](_0x335368);this['_markChanges'](_0x29a6a1,_0x2525f4['insertions'][_0x1d5364],_0x3a6470,'insertion',_0x2955e8),this['_markChanges'](_0x184429,_0x2525f4['deletions'][_0x1d5364],_0x3f555a,'deletion',_0x2955e8),_0xec81ac[_0x1d5364]={'insertions':this['_prepareViewToSave'](_0x29a6a1),'deletions':this['_prepareViewToSave'](_0x184429),'attachChange':this['_touchedRoots']['get'](_0x1d5364)||null,'attributesBefore':_0x3f0b62(this['_baseRootsAttributes']['get'](_0x1d5364))||{},'attributesAfter':_0x3f0b62(this['_diffRootsAttributes']['get'](_0x1d5364))};}return{'diffData':_0xec81ac,'authorsIds':Array['from'](_0x2955e8)};}['_processRootBeforeSave'](_0x25096a){for(const [,_0x413dc9]of _0x25096a['markers']){const _0x18c641=_0x413dc9['start']['getAncestors']()['filter'](_0x5d2e64=>'tableCell'==_0x5d2e64['name']);for(const _0x3f0520 of _0x18c641)0x1==_0x3f0520['childCount']&&_0x3f0520['getChild'](0x0)['is']('element','paragraph')&&_0x3f0520['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42c094){this['_processRootBeforeSave'](_0x42c094);const _0x5c857d=this['editor']['data']['toView'](_0x42c094,{}),_0x4727ae=Array['from'](_0x5c857d['getChildren']())['map'](_0x266530=>this['_getViewJson'](_0x266530));return JSON['stringify'](_0x4727ae);}['_getViewJson'](_0x16b5cb){if(_0x16b5cb['is']('$text'))return _0x16b5cb['data'];{const _0x22bdeb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x27ae58=_0x16b5cb,_0x30d2de=this['editor']['data']['htmlProcessor']['domConverter'],_0xb42c01={'type':_0x22bdeb['_getTypeCharForViewElement'](_0x27ae58),'name':_0x27ae58['name'],'attributes':Array['from'](_0x27ae58['getAttributes']()),'children':Array['from'](_0x27ae58['getChildren']())['map'](_0x11d09d=>this['_getViewJson'](_0x11d09d))};if(_0x16b5cb['is']('uiElement')&&'$comment'!=_0x16b5cb['name']){const _0xbeb228=_0x16b5cb['render'](_0x30d2de['domDocument'],_0x30d2de);_0xb42c01['children']['push'](_0xbeb228['outerHTML']);}else{if(_0x16b5cb['is']('rawElement')){const _0x20d6d3=_0x30d2de['domDocument']['createElement'](_0x27ae58['name']);_0x16b5cb['render'](_0x20d6d3,_0x30d2de),_0xb42c01['children']['push'](_0x20d6d3['innerHTML']);}}const _0x262bd4=Array['from'](_0x27ae58['getCustomProperties']());_0x262bd4['length']>0x0&&(_0xb42c01['customProperties']=_0x262bd4);const _0x128e6d=_0x27ae58['getFillerOffset']();return null!==_0x128e6d&&(_0xb42c01['fillerOffset']=_0x128e6d),_0xb42c01;}}['_markChanges'](_0x358ccc,_0x3de22d,_0x80df58,_0x4c7b1b,_0x368cda){let _0x4d473f=null,_0x22a779=null,_0x3e98bd=0x0;const _0x400ba2=this['editor']['model'];for(let _0x4fc283=0x0;_0x4fc283<_0x3de22d['length'];_0x4fc283++){const _0x508599=this['_getVidAttributeName'](_0x3de22d[_0x4fc283]),_0x30eb11=_0x3de22d[_0x4fc283]['item']['getAttribute'](_0x508599),_0x952943=_0x80df58['get'](_0x30eb11),_0x460649=_0x4fc283==_0x3de22d['length']-0x1;(!_0x4d473f&&_0x952943&&(_0x4d473f=_0x952943,_0x22a779=_0x3de22d[_0x4fc283]),_0x4d473f&&(!_0x952943||_0x952943['userId']!=_0x4d473f['userId']))&&(_0x31d782(_0x952943,P(_0x22a779,_0x358ccc,_0x400ba2),P(_0x3de22d[_0x4fc283],_0x358ccc,_0x400ba2)),_0x4d473f=_0x952943||null,_0x22a779=_0x952943?_0x3de22d[_0x4fc283]:null),_0x4d473f&&_0x460649&&_0x31d782(_0x952943,P(_0x22a779,_0x358ccc,_0x400ba2),V(_0x3de22d[_0x4fc283],_0x358ccc,_0x400ba2));}function _0x31d782(_0x567168,_0x43c550,_0x254494){const _0x1c5b8a=_0x4d473f['userId'],_0xc5b584='revision:'+_0x4c7b1b+':'+_0x1c5b8a+':'+_0x3e98bd++,_0x52c9b8=_0x400ba2['createRange'](_0x43c550,_0x254494);_0x358ccc['markers']['set'](_0xc5b584,_0x52c9b8),null!==_0x1c5b8a&&_0x368cda['add'](_0x1c5b8a);}}['_getVidAttributeName'](_0x1494cd){switch(_0x1494cd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1cc80e,_0x360368){_0x1cc80e['baseVersion']=null;for(const _0x57f128 in _0x1cc80e){const _0x33deae=_0x1cc80e[_0x57f128];if(_0x33deae instanceof _0x2695b7){const _0x32920c=_0x360368['get'](_0x33deae['root']['rootName']);_0x1cc80e[_0x57f128]=this['_fixPosition'](_0x33deae,_0x32920c);}if(_0x33deae instanceof _0x15d5fd){const _0x3ffc76=_0x360368['get'](_0x33deae['root']['rootName']);_0x1cc80e[_0x57f128]=this['_fixRange'](_0x33deae,_0x3ffc76);}'root'===_0x57f128&&(_0x1cc80e['root']=_0x360368['get'](_0x1cc80e['root']['rootName']));}}['_fixRange'](_0x1f7a27,_0x1e21d8){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f7a27['start'],_0x1e21d8),this['_fixPosition'](_0x1f7a27['end'],_0x1e21d8));}['_fixPosition'](_0x11e5e6,_0x2cefb3){return this['editor']['model']['createPositionFromPath'](_0x2cefb3,_0x11e5e6['path'],_0x11e5e6['stickiness']);}['_handleInsertOperation'](_0x28df29){const _0x1ce28f=this['_idsRoots']['get'](_0x28df29['position']['root']['rootName']),_0x4e1cb2=this['_fixPosition'](_0x28df29['position'],_0x1ce28f),_0x4453a6=null===_0x28df29['_authorId']?null:_0x28df29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd83aee=_0x4e1cb2['parent'],_0x3bf6b9=this['_revisionId'],_0x2fc476=[];for(const _0x1e151e of _0x28df29['nodes'])if(_0x1e151e['is']('element'))_0x2fc476['push'](this['_makeIdsRoot'](_0x1e151e));else{for(let _0x2f797d=0x0;_0x2f797d<_0x1e151e['offsetSize'];_0x2f797d++)_0x2fc476['push'](new _0x40ce00('$text',{'vid':this['_revisionId']++}));}const _0x2c6f89=this['_revisionId'];for(let _0x4ebc4b=_0x3bf6b9;_0x4ebc4b<_0x2c6f89;_0x4ebc4b++)this['_touched']['set'](_0x4ebc4b,{'userId':_0x4453a6});_0xd83aee['_insertChild'](_0x4e1cb2['offset'],_0x2fc476);}['_handleMoveOperation'](_0x442e50){(_0x442e50=this['_cloneOperation'](_0x442e50,this['_idsRoots']))['_execute']();const _0x234657=null===_0x442e50['_authorId']?null:_0x442e50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40db3b=_0x442e50['getMovedRangeStart'](),_0x5507a4=_0x40db3b['parent'],_0x6c7cd2=_0x40db3b['offset'];!function _0x59eccc(_0x10783c,_0x1b0be2,_0x1f9472,_0x2d7c16){for(let _0x1569af=_0x1f9472;_0x1569af<_0x2d7c16;_0x1569af++){const _0x4f150d=_0x1b0be2['getChild'](_0x1569af);_0x4f150d['is']('element','$text')?_0x10783c['set'](_0x4f150d['getAttribute']('vid'),{'userId':_0x234657}):(_0x10783c['set'](_0x4f150d['getAttribute']('vid_start'),{'userId':_0x234657}),_0x59eccc(_0x10783c,_0x4f150d,0x0,_0x4f150d['childCount']),_0x10783c['set'](_0x4f150d['getAttribute']('vid_end'),{'userId':_0x234657}));}}(this['_touched'],_0x5507a4,_0x6c7cd2,_0x6c7cd2+_0x442e50['howMany']);}['_handleMergeOperation'](_0x54a4f5){const _0x189705=null===(_0x54a4f5=this['_cloneOperation'](_0x54a4f5,this['_idsRoots']))['_authorId']?null:_0x54a4f5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x372295=_0x54a4f5['targetPosition']['parent'],_0x6cef5e=_0x54a4f5['sourcePosition']['parent'],_0x3879e9=_0x372295['getAttribute']('vid_end'),_0x569c79=_0x6cef5e['getAttribute']('vid_start');_0x372295['_setAttribute']('vid_end',_0x6cef5e['getAttribute']('vid_end')),_0x6cef5e['_setAttribute']('vid_end',_0x3879e9),this['_touched']['set'](_0x569c79,{'userId':_0x189705}),this['_touched']['set'](_0x3879e9,{'userId':_0x189705}),_0x54a4f5['_execute']();}['_handleSplitOperation'](_0x38386f){const _0x3176ec=null===(_0x38386f=this['_cloneOperation'](_0x38386f,this['_idsRoots']))['_authorId']?null:_0x38386f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e9cac=_0x38386f['graveyardPosition'],_0x44e21d=_0x38386f['splitPosition']['parent'];_0x38386f['_execute']();const _0x708ff4=_0x44e21d['getAttribute']('vid_end'),_0x2632bd=_0x38386f['insertionPosition']['nodeAfter'];if(_0x1e9cac){const _0x558229=_0x2632bd['getAttribute']('vid_end'),_0x22aa9c=_0x44e21d['getAttribute']('vid_end');_0x44e21d['_setAttribute']('vid_end',_0x558229),_0x2632bd['_setAttribute']('vid_end',_0x22aa9c),this['_touched']['set'](_0x44e21d['getAttribute']('vid_end'),{'userId':_0x3176ec}),this['_touched']['set'](_0x2632bd['getAttribute']('vid_start'),{'userId':_0x3176ec});}else{const _0x4ec163=this['_revisionId']++,_0x3f97f3=this['_revisionId']++;_0x44e21d['_setAttribute']('vid_end',_0x4ec163),_0x2632bd['_setAttribute']('vid_start',_0x3f97f3),_0x2632bd['_setAttribute']('vid_end',_0x708ff4),this['_touched']['set'](_0x4ec163,{'userId':_0x3176ec}),this['_touched']['set'](_0x3f97f3,{'userId':_0x3176ec});}}['_handleMarkerOperation'](_0x2c6813){if(!_0x2c6813['affectsData'])return;const _0x275e5e=(_0x2c6813=this['_cloneOperation'](_0x2c6813,this['_diffRoots']))['oldRange']?_0x2c6813['oldRange']['root']:null,_0x185a55=_0x2c6813['newRange']?_0x2c6813['newRange']['root']:null;_0x275e5e&&this['_markers']['delete'](_0x2c6813['name']),_0x185a55&&this['_markers']['set'](_0x2c6813['name'],_0x2c6813['newRange']['clone']());const _0x12fe87=null===_0x2c6813['_authorId']?null:_0x2c6813['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x164c34=_0x2c6813['name'];if(!this['_touchedMarkers']['has'](_0x164c34))return void this['_touchedMarkers']['set'](_0x164c34,{'range':_0x2c6813['oldRange'],'userId':_0x12fe87});const _0x4b6c41=this['_touchedMarkers']['get'](_0x164c34),_0x3e9807=_0x4b6c41['range'],_0x54a3cb=_0x2c6813['newRange'];null==_0x3e9807&&null==_0x54a3cb||_0x3e9807&&_0x54a3cb&&_0x3e9807['isEqual'](_0x54a3cb)?this['_touchedMarkers']['delete'](_0x2c6813['name']):_0x4b6c41['userId']=_0x12fe87;}['_handleRootOperation'](_0x42abf3,_0x2854e0){this['_diffRoots']['has'](_0x42abf3['rootName'])?this['_diffRoots']['get'](_0x42abf3['rootName'])['_isAttached']=_0x42abf3['isAdd']:(this['_diffRoots']['set'](_0x42abf3['rootName'],N(_0x42abf3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x42abf3['rootName'],{}),_0x2854e0&&this['_idsRoots']['set'](_0x42abf3['rootName'],N(_0x42abf3['rootName'],!0x0)));const _0xfbede9=null===_0x42abf3['_authorId']?null:_0x42abf3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5665d8=this['_touchedRoots']['get'](_0x42abf3['rootName']);_0x5665d8&&_0x5665d8['userId']===_0xfbede9?this['_touchedRoots']['delete'](_0x42abf3['rootName']):this['_touchedRoots']['set'](_0x42abf3['rootName'],{'userId':_0xfbede9,'isAttached':_0x42abf3['isAdd']});}['_handleRootAttributeOperation'](_0x3a39db){const _0x180b9b=this['_diffRootsAttributes']['get'](_0x3a39db['root']['rootName']);null===_0x3a39db['newValue']?delete _0x180b9b[_0x3a39db['key']]:_0x180b9b[_0x3a39db['key']]=_0x3a39db['newValue'];}}function x(_0x32d1e9){const _0x4fb7fe=N(_0x32d1e9['rootName'],_0x32d1e9['isAttached']());for(const _0x20d2c5 of _0x32d1e9['getChildren']()){const _0x17c945=_0x20d2c5['_clone'](!0x0);_0x4fb7fe['_appendChild'](_0x17c945);}return _0x4fb7fe;}function N(_0x32f82d,_0x993fa6=!0x0){const _0x3be7f5=new _0x33815f();return _0x3be7f5['rootName']=_0x32f82d,_0x3be7f5['_isAttached']=_0x993fa6,_0x3be7f5['isAttached']=()=>_0x3be7f5['_isAttached'],_0x3be7f5;}function P(_0xccb2dd,_0x12d4c6,_0x365e70){const _0x423136='elementEnd'==_0xccb2dd['type']?_0x365e70['createPositionAt'](_0xccb2dd['item'],'end'):_0x365e70['createPositionBefore'](_0xccb2dd['item']);return _0x365e70['createPositionFromPath'](_0x12d4c6,_0x423136['path'],_0x423136['stickiness']);}function V(_0xdd9572,_0x344501,_0x176739){const _0x4f2d3c='elementStart'==_0xdd9572['type']?_0x176739['createPositionAt'](_0xdd9572['item'],0x0):_0x176739['createPositionAfter'](_0xdd9572['item']);return _0x176739['createPositionFromPath'](_0x344501,_0x4f2d3c['path'],_0x4f2d3c['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3cb99e(_0x2daa41){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9f217,_0x2391f8){super(_0x9f217),this['focusTracker']=new _0x8474b5(),this['keystrokes']=new _0x4f55c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2391f8),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x4b8409({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x43a66c=_0x370a41=>_0x370a41['stopPropagation']();this['keystrokes']['set']('arrowright',_0x43a66c),this['keystrokes']['set']('arrowleft',_0x43a66c),this['keystrokes']['set']('arrowup',_0x43a66c),this['keystrokes']['set']('arrowdown',_0x43a66c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x125757){this['revisionNameInputView']['fieldView']['element']['value']=_0x125757['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3aa114){const _0x5971db=new et(this['locale'],ti),_0x15f74c=_0x5971db['fieldView'];_0x15f74c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x378df5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3aa114&&(_0x378df5+='\x20('+m(this['locale'],'optional')+')'),(_0x5971db['label']=_0x378df5,_0x15f74c['on']('input',()=>{this['revisionNameInputValue']=_0x15f74c['element']['value']['trim']();}),_0x5971db);}}class l extends _0x357b2f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x40ebbf=this['editor'],_0x5f3d3d=_0x40ebbf['plugins']['get']('RevisionTracker');_0x40ebbf['ui']['componentFactory']['add']('revisionHistory',_0x6148f7=>{const _0xda420d=_0x183d12(_0x6148f7),_0x5514ae=_0xda420d['panelView']['children'],_0x2cbdd6=new _0x37cbb6(_0x6148f7),_0x4b4da6=new _0x520804(_0x6148f7),_0x59e1f0=new _0x3bd1e4(_0x6148f7),_0xdc4548=new _0x520804(_0x6148f7),_0x35f34d=new _0x3bd1e4(_0x6148f7);return _0xda420d['bind']('isEnabled')['to'](_0x5f3d3d,'isReady',_0x5f3d3d,'isEnabled',_0x40ebbf,'isReadOnly',(_0x50f0c8,_0x4adae8,_0x39f241)=>_0x50f0c8&&_0x4adae8&&!_0x39f241),_0xda420d['buttonView']['set']({'icon':_0x3c4220,'label':m(_0x6148f7,'Revision\x20history'),'tooltip':!0x0}),_0x59e1f0['set']({'label':m(_0x6148f7,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x59e1f0['bind']('isEnabled')['to'](_0x5f3d3d,'isReady',_0x5f3d3d,'isEnabled',_0x40ebbf,'isReadOnly',(_0x4a3da4,_0x4b94e1,_0x19dac7)=>_0x4a3da4&&_0x4b94e1&&!_0x19dac7),_0x59e1f0['on']('execute',()=>this['_showDialog']()),_0x35f34d['set']({'label':m(_0x6148f7,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x35f34d['bind']('isEnabled')['to'](_0x5f3d3d,'isReady',_0x40ebbf,'isReadOnly',(_0x5e4753,_0x47ea95)=>_0x5e4753&&!_0x47ea95),_0x35f34d['on']('execute',()=>{_0x40ebbf['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xda420d['isOpen']=!0x1,_0x40ebbf['editing']['view']['focus']();}),_0x4b4da6['children']['add'](_0x59e1f0),_0xdc4548['children']['add'](_0x35f34d),_0x2cbdd6['role']='menu',_0x2cbdd6['items']['addMany']([_0x4b4da6,_0xdc4548]),_0x5514ae['add'](_0x2cbdd6),_0xda420d;}),_0x40ebbf['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1a2a04=this['editor'],_0x3ccdac=_0x1a2a04['locale'],_0x20d7d2=new _0x3d23d3(_0x3ccdac),_0x3277c6=new _0x1b4ebd(_0x3ccdac);_0x20d7d2['buttonView']['set']({'icon':_0x3c4220,'label':m(_0x3ccdac,'Revision\x20history')});const _0xe546ed=new _0x54bf1b(_0x3ccdac,_0x20d7d2),_0x2bdece=new _0x1ad0cc(_0x3ccdac);_0x2bdece['set']({'label':m(_0x3ccdac,'Save\x20current\x20revision')}),_0x2bdece['delegate']('execute')['to'](_0x20d7d2),_0x2bdece['on']('execute',()=>{this['_showDialog']();}),_0xe546ed['children']['add'](_0x2bdece),_0x3277c6['items']['add'](_0xe546ed);const _0x5681fb=new _0x54bf1b(_0x3ccdac,_0x20d7d2),_0x203179=new _0x1ad0cc(_0x3ccdac);return _0x203179['set']({'label':m(_0x3ccdac,'Open\x20revision\x20history')}),_0x203179['delegate']('execute')['to'](_0x20d7d2),_0x203179['on']('execute',()=>{_0x1a2a04['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5681fb['children']['add'](_0x203179),_0x3277c6['items']['add'](_0x5681fb),_0x20d7d2['panelView']['children']['add'](_0x3277c6),_0x20d7d2;}['_showDialog'](){const _0x5a8811=this['editor'],_0x461529=_0x5a8811['locale'],_0x57a368=_0x5a8811['plugins']['get']('Dialog'),_0x3cc058=_0x5a8811['plugins']['get']('RevisionTracker');function _0x3b524d(_0x51c0ad){_0x5a8811['config']['get']('revisionHistory.requireRevisionName')&&''===_0x51c0ad['revisionName']?_0x51c0ad['revisionNameInputView']['errorText']=m(_0x461529,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5a8811['plugins']['get'](h)['saveRevision']({'name':_0x51c0ad['revisionName']}),_0x57a368['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b524d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57a368['show']({'id':'revisionSave','title':m(_0x461529,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5a8811['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57a368['hide']()},{'label':m(_0x5a8811['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3fc615){_0x3fc615['bind']('isEnabled')['to'](_0x3cc058,'isReady',_0x3cc058,'isEnabled',_0x5a8811,'isReadOnly',(_0x24b946,_0x3724d3,_0x16dde7)=>_0x24b946&&_0x3724d3&&!_0x16dde7);},'onExecute':()=>_0x3b524d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x277fe1=this['editor'],_0x22aac7=_0x277fe1['locale'];this['_saveRevisionFormView']=new me(_0x22aac7,_0x277fe1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2daa41{['changeId'];['_model'];constructor(_0xd246c9,_0x3b1ed0){super(_0xd246c9),this['_model']=_0x3b1ed0,this['changeId']=_0x3b1ed0['id'];const _0x13938f=this['bindTemplate'],_0x210e02=m(_0xd246c9,_0x3b1ed0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3b1ed0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3b1ed0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x13938f['to']('type',_0x35508a=>'ck-revision-change__'+_0x35508a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x210e02}]},{'text':'\x20'+_0x3b1ed0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x486a9d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x441a5c){super(),this['id']=_0x441a5c['id']||_0x409a1e(),this['author']=_0x441a5c['author'],this['type']=_0x441a5c['type'],this['data']=_0x441a5c['data']||{},this['rootName']=_0x441a5c['rootName'],this['set']('createdAt',_0x441a5c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4f0aec,_0x3b327f){this['newRevisionId']=_0x4f0aec,this['oldRevisionId']=_0x3b327f,this['changes']=new _0x51d99d();}['_setChanges'](_0x52432e){for(const _0x582827 of _0x52432e)this['changes']['add'](_0x582827);}}class u extends _0x357b2f{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x208745,_0x3c7bbb,S,$];}constructor(_0xae1c0c){super(_0xae1c0c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x230757,_0x528a97,_0x5c8e32)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3cb2ed=>{for(const _0x4b019a of this['editor']['editing']['view']['document']['roots'])_0x5c8e32?_0x3cb2ed['removeClass']('ck-editor__editable__overlay',_0x4b019a):_0x3cb2ed['addClass']('ck-editor__editable__overlay',_0x4b019a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x431a5f=>null!==_0x431a5f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x267917,_0x5addcc,_0x32fb82)=>_0x267917&&_0x32fb82?_0x5addcc['changes']['getIndex'](_0x32fb82):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x229732,_0x45f860)=>_0x229732?_0x45f860['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3c7bbb);}['init'](){const _0x27cf53=this['editor'],_0x2f5062=new rt(_0x27cf53,{'direction':'backward'}),_0x3c064a=new rt(_0x27cf53,{'direction':'forward'});(_0x27cf53['commands']['add']('showPreviousChange',_0x2f5062),_0x27cf53['commands']['add']('showNextChange',_0x3c064a),_0x27cf53['commands']['add']('restoreRevision',new nt(_0x27cf53)),this['on']('change:numberOfChanges',()=>{_0x2f5062['refresh'](),_0x3c064a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x27cf53['enableReadOnlyMode']('revision-viewer'),_0x27cf53['plugins']['has']('WidgetToolbarRepository'))&&_0x27cf53['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x32c528){return await this['_utils']['loadRevisionData'](_0x32c528,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x32c528);}async['getRevisionRootsAttributes'](_0x4556a0){return await this['_utils']['loadRevisionData'](_0x4556a0,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4556a0);}async['compare'](_0x47cb19,_0x5047d7,_0x2e7f43=!0x1){if(!this['isEnabled'])return;const _0x1b35e0=this['diff'],_0x23cd46=this['repository'],_0x7c4d5b='string'==typeof _0x47cb19?_0x23cd46['getRevision'](_0x47cb19):_0x47cb19,_0x51dbb4='string'==typeof _0x5047d7?_0x23cd46['getRevision'](_0x5047d7):_0x5047d7,_0x316d02=_0x7c4d5b['id'],_0x1ff6f4=_0x51dbb4?_0x51dbb4['id']:null;if(!_0x2e7f43&&this['diff']&&this['diff']['newRevisionId']===_0x316d02&&this['diff']['oldRevisionId']===_0x1ff6f4)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x316d02,_0x1ff6f4);const _0x2dbf55=this['_getRevisionsRange'](_0x7c4d5b,_0x51dbb4,!0x0)['map'](_0x26c83e=>this['_utils']['loadRevisionData'](_0x26c83e,this['adapter']));return _0x2dbf55['push'](new Promise(_0x59a84b=>{setTimeout(_0x59a84b,0x14);})),Promise['all'](_0x2dbf55)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29b81d=this['_getDiff'](_0x316d02,_0x1ff6f4);for(const _0x2fa8ad of _0x29b81d['changes'])this['_changeIdToChange']['set'](_0x2fa8ad['id'],_0x2fa8ad);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1560cc=>{for(const _0x2624f9 of this['editor']['model']['document']['getRootNames']())_0x1560cc['detachRoot'](_0x2624f9);for(const _0x4d9e4f of Object['keys'](_0x29b81d['model'])){const _0x5641ad=_0x1560cc['addRoot'](_0x4d9e4f);for(const _0x5b145b of Object['keys'](_0x29b81d['attributes'][_0x4d9e4f]))_0x1560cc['setAttribute'](_0x5b145b,_0x29b81d['attributes'][_0x4d9e4f][_0x5b145b],_0x5641ad);_0x1560cc['insert'](_0x29b81d['model'][_0x4d9e4f],_0x5641ad,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29b81d['changes'])),this['isReady']=!0x0;})['catch'](_0x5b93c3=>{console['error'](_0x5b93c3),this['_cleanUp'](),_0x1b35e0&&(this['diff']=_0x1b35e0),this['isReady']=!0x0;});}['addRevisionData'](_0x21d372,_0x214d63){const _0x5e956b=this['repository']['createRevision'](_0x21d372);return _0x5e956b['on']('_update',(_0x1d6cb1,_0x32d9c8,_0x3c3b2e)=>_0x214d63(_0x32d9c8,_0x3c3b2e,_0x5e956b)),this['repository']['addRevision'](_0x5e956b),_0x5e956b;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4d4154=>{for(const _0xf79da5 of this['editor']['model']['document']['getRootNames']())_0x4d4154['detachRoot'](_0xf79da5);});}['_sortAndFilterDiffChanges'](_0x550f15){const _0x116dd8=[],_0x192a2a=new Map();for(const _0x50543d of this['editor']['model']['document']['getRootNames']()){const _0x13495f=this['editor']['editing']['view']['getDomRoot'](_0x50543d);if(!_0x13495f)continue;const _0x494ec8=_0x13495f['getClientRects']()['item'](0x0);_0x494ec8&&(_0x116dd8['push'](_0x50543d),_0x192a2a['set'](_0x50543d,_0x494ec8));}return _0x116dd8['sort']((_0x35497a,_0x5d3ed7)=>{const _0x4c23f8=_0x192a2a['get'](_0x35497a),_0x20972e=_0x192a2a['get'](_0x5d3ed7);return _0x4c23f8['y']-_0x20972e['y']||_0x4c23f8['x']-_0x20972e['x'];}),(_0x550f15=_0x550f15['filter'](_0x64a25=>_0x116dd8['includes'](_0x64a25['rootName'])))['sort']((_0x3660e2,_0x255b0c)=>_0x116dd8['indexOf'](_0x3660e2['rootName'])-_0x116dd8['indexOf'](_0x255b0c['rootName'])),_0x550f15;}['_makeTape'](_0x4aa62e){const _0x5bfd6e=Array['from'](_0x4aa62e['markers'])['filter'](([_0x546caf,_0x403a9a])=>_0x546caf['startsWith']('revision:')&&!_0x403a9a['isCollapsed']),_0x21e67f=Array['from'](this['editor']['model']['createRangeIn'](_0x4aa62e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5bfd6e['length'])for(const _0x29b14a of _0x21e67f){const [_0x4bf6ba,_0x2401f7]=_0x5bfd6e[0x0],[,_0x2dd3a0,_0x4c9a29]=_0x4bf6ba['split'](':');if(_0x2401f7['end']['isEqual'](_0x29b14a['nextPosition'])&&_0x5bfd6e['shift'](),(_0x29b14a['previousPosition']['isEqual'](_0x2401f7['start'])||_0x29b14a['previousPosition']['isAfter'](_0x2401f7['start']))&&('insertion'==_0x2dd3a0?_0x29b14a['isAdded']={'userId':_0x4c9a29}:'deletion'==_0x2dd3a0&&(_0x29b14a['isRemoved']={'userId':_0x4c9a29})),0x0==_0x5bfd6e['length'])break;}return _0x21e67f;}['_refreshStartEndIndex'](_0x7f7b3f){const _0x21585a=new Map();for(let _0x44c77e=0x0;_0x44c77e<_0x7f7b3f['length'];_0x44c77e++)'text'===_0x7f7b3f[_0x44c77e]['type']?(_0x7f7b3f[_0x44c77e]['item']['startIndex']=_0x44c77e,_0x7f7b3f[_0x44c77e]['item']['endIndex']=_0x44c77e):('elementStart'===_0x7f7b3f[_0x44c77e]['type']?_0x7f7b3f[_0x44c77e]['item']['startIndex']=_0x44c77e:'elementEnd'===_0x7f7b3f[_0x44c77e]['type']&&(_0x7f7b3f[_0x44c77e]['item']['endIndex']=_0x44c77e),_0x21585a['set'](_0x7f7b3f[_0x44c77e]['id'],_0x44c77e));for(const _0x19e1cf of _0x21585a['values']())'elementStart'===_0x7f7b3f[_0x19e1cf]['type']?_0x7f7b3f[_0x19e1cf]['item']['endIndex']=_0x21585a['get'](_0x7f7b3f[_0x19e1cf]['pairId']):'elementEnd'===_0x7f7b3f[_0x19e1cf]['type']&&(_0x7f7b3f[_0x19e1cf]['item']['startIndex']=_0x21585a['get'](_0x7f7b3f[_0x19e1cf]['pairId']));}['_processTape'](_0x1a7f83){for(let _0x3632be=0x0;_0x3632be<_0x1a7f83['length'];_0x3632be++){if('elementStart'===_0x1a7f83[_0x3632be]['type'])_0x1a7f83[_0x3632be]['item']['startIndex']=_0x3632be;else{if('elementEnd'===_0x1a7f83[_0x3632be]['type']){_0x1a7f83[_0x3632be]['item']['endIndex']=_0x3632be;const _0x23c950=_0x1a7f83[_0x3632be]['item']['startIndex'];_0x1a7f83[_0x23c950]['pairId']=_0x1a7f83[_0x3632be]['id'],_0x1a7f83[_0x3632be]['pairId']=_0x1a7f83[_0x23c950]['id'];}else _0x1a7f83[_0x3632be]['item']['startIndex']=_0x3632be,_0x1a7f83[_0x3632be]['item']['endIndex']=_0x3632be,_0x1a7f83[_0x3632be]['pairId']=null;}_0x1a7f83[_0x3632be]['markersStart']||(_0x1a7f83[_0x3632be]['markersStart']=[],_0x1a7f83[_0x3632be]['markersEnd']=[]);}}['_markInsertions'](_0x21cf95,_0x247c1f){const _0x1eb15e=_0x21cf95['filter'](_0x69341a=>!_0x69341a['isAdded']);for(let _0x4be349=0x0;_0x4be349<_0x247c1f['length'];_0x4be349++)_0x247c1f[_0x4be349]['isAdded']&&(_0x1eb15e[_0x4be349]['isAdded']=_0x247c1f[_0x4be349]['isAdded']);}['_getDiff'](_0x5a971a,_0xc6b96d=null){const _0x455873=this['repository']['getRevision'](_0x5a971a),_0x1df3ac=_0xc6b96d?this['repository']['getRevision'](_0xc6b96d):null,_0x243409=this['_getRevisionsRange'](_0x455873,_0x1df3ac),_0x4e834b=_0x243409[_0x243409['length']-0x1],_0x2812a9=new Map(),_0x40b2ae={'model':{},'attributes':{},'changes':[]},_0x4c8d3d=new Set(),_0x3fee38=new Map();for(let _0x4c3f99=_0x243409['length']-0x1;_0x4c3f99>=0x0;_0x4c3f99--){const _0x339622=_0x243409[_0x4c3f99];for(const _0x2584a6 of Object['keys'](_0x339622['diffData']))if(_0x339622['diffData'][_0x2584a6]['attachChange']){const _0x142406=_0x339622['diffData'][_0x2584a6]['attachChange'];_0x142406['isAttached']?(_0x4c8d3d['add'](_0x2584a6),_0x3fee38['has'](_0x2584a6)&&_0x3fee38['get'](_0x2584a6)['userId']==_0x142406['userId']?_0x3fee38['delete'](_0x2584a6):_0x3fee38['set'](_0x2584a6,_0x142406)):_0x3fee38['has'](_0x2584a6)?(_0x4c8d3d['delete'](_0x2584a6),_0x3fee38['delete'](_0x2584a6)):(_0x4c8d3d['add'](_0x2584a6),_0x3fee38['set'](_0x2584a6,_0x142406));}else _0x4c8d3d['add'](_0x2584a6);}for(const _0x260e62 of _0x4c8d3d){const _0x502549=_0x3fee38['has'](_0x260e62)&&!_0x3fee38['get'](_0x260e62)['isAttached'];let _0x200654=_0x502549?_0x243409['length']-0x1:0x0;const _0x56f818=_0x502549?-0x1:0x1;for(;_0x243409[_0x200654];){const _0x18d521=_0x243409[_0x200654];if(_0x18d521['diffData'][_0x260e62]){const _0x2e61e0=_0x502549?_0x18d521['diffData'][_0x260e62]['attributesBefore']:_0x18d521['diffData'][_0x260e62]['attributesAfter'];_0x40b2ae['attributes'][_0x260e62]=_0x2e61e0?_0x3f0b62(_0x2e61e0):{};break;}_0x200654+=_0x56f818;}}for(const _0x5cc209 of _0x243409){_0x5cc209['model']={};for(const _0x4cd5ce of _0x5cc209['authors'])_0x2812a9['set'](_0x4cd5ce['id'],_0x4cd5ce);for(const _0x510232 of _0x4c8d3d){const _0x16634d=_0x5cc209['diffData'][_0x510232]?_0x5cc209['diffData'][_0x510232]['insertions']:'[]',_0x825f7=_0x5cc209['diffData'][_0x510232]?_0x5cc209['diffData'][_0x510232]['deletions']:'[]';_0x5cc209['model'][_0x510232]={'insertions':this['_utils']['_makeModelFromViewString'](_0x16634d),'deletions':this['_utils']['_makeModelFromViewString'](_0x825f7)};}}for(const _0x257bc6 of _0x4c8d3d){let _0x3289be=null,_0x24fbaf=0x0;const _0x5efd1e=new Map(Array['from'](_0x455873['model'][_0x257bc6]['insertions']['markers'])['filter'](([_0x48a459])=>!_0x48a459['startsWith']('revision:')));let _0x42a79c=0x0;for(const _0x1f867c of _0x243409){const _0x3647fc=this['_makeTape'](_0x1f867c['model'][_0x257bc6]['insertions']);_0x1f867c==_0x455873?(_0x3289be=_0x3647fc,_0x24fbaf=_0x3289be['length'],_0x3289be['forEach'](_0x267880=>{_0x267880['id']=_0x42a79c++;}),this['_processTape'](_0x3289be)):this['_markInsertions'](_0x3289be,_0x3647fc);const _0x24a22d=_0x3289be['filter'](_0x8c36fe=>!_0x8c36fe['isAdded'])['map'](_0x462d27=>_0x462d27['id']);let _0x16414d=0x0;const _0x581ad3=this['_makeTape'](_0x1f867c['model'][_0x257bc6]['deletions']);_0x581ad3['forEach'](_0xcea0d3=>{_0xcea0d3['isRemoved']?_0xcea0d3['id']=_0x24fbaf++:_0xcea0d3['id']=_0x24a22d[_0x16414d++];}),this['_processTape'](_0x581ad3),this['_setDistance'](_0x3289be,'isAdded'),this['_setDistance'](_0x581ad3,'isRemoved'),_0x1f867c==_0x455873&&this['_markMarkers'](_0x3289be,_0x5efd1e),_0x3289be=this['_joinTapes'](_0x3289be,_0x581ad3),this['_refreshStartEndIndex'](_0x3289be),this['_setDistance'](_0x3289be,'isRemoved');}_0x3289be=_0x3289be['filter'](_0xfd175a=>!(_0xfd175a['isAdded']&&_0xfd175a['isRemoved']));const _0x42e632=new Map(_0x4e834b['model'][_0x257bc6]['deletions']['markers']),_0x2e352f=new Set(_0x5efd1e['keys']());for(const _0x10241d of _0x42e632['keys']())_0x2e352f['delete'](_0x10241d);this['_markSuggestions'](_0x3289be,_0x2e352f),this['_fixObsoleteTags'](_0x3289be),_0x3289be=this['_removeMissingPairs'](_0x3289be),_0x3289be=this['_markMismatchedRemovedTags'](_0x3289be),_0x3289be=this['_removeUnsupportedChanges'](_0x3289be);const {root:_0x232677,changes:_0x5a5c11}=this['_makeModelFromTape'](_0x3289be,_0x2812a9,_0x257bc6);_0x40b2ae['model'][_0x257bc6]=_0x232677;const _0x2c2749=_0x3fee38['get'](_0x257bc6);if(_0x2c2749){const _0xf36f66=_0x2812a9['get'](_0x2c2749['userId']),_0x1f88b4=new G({'author':_0xf36f66,'type':_0x2c2749['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x257bc6});_0x5a5c11['unshift'](_0x1f88b4),_0x40b2ae['attributes'][_0x257bc6]['revisionHistoryAttachChange']=_0x1f88b4['id'];}_0x40b2ae['changes']=_0x40b2ae['changes']['concat'](_0x5a5c11);}return _0x40b2ae;}['_markMarkers'](_0x31aef8,_0x71b2d7){for(let _0x3ae36c=0x0;_0x3ae36c<_0x31aef8['length'];_0x3ae36c++)for(const [_0x27e98e,_0x189908]of _0x71b2d7)!_0x189908['isCollapsed']&&_0x189908['start']['isEqual'](_0x31aef8[_0x3ae36c]['previousPosition'])&&_0x31aef8[_0x3ae36c]['markersStart']['push'](_0x27e98e),_0x189908['end']['isEqual'](_0x31aef8[_0x3ae36c]['nextPosition'])&&_0x31aef8[_0x3ae36c]['markersEnd']['push'](_0x27e98e);}['_joinTapes'](_0x20b48d,_0x5e2b8f){let _0x1ad807=[],_0x2c9b11=0x0,_0x259caf=0x0;for(;_0x2c9b11<_0x20b48d['length']||_0x259caf<_0x5e2b8f['length'];){const _0x4e1ba2=_0x20b48d[_0x2c9b11]||{},_0x3883a2=_0x5e2b8f[_0x259caf]||{};if(_0x4e1ba2['id']==_0x3883a2['id'])_0x2c9b11++,_0x259caf++,_0x1ad807['push'](_0x4e1ba2);else{if(_0x3883a2['isRemoved']&&_0x4e1ba2['isAdded']){const {commonTape:_0x577f65,iEnd:_0x1c20f1,jEnd:_0x347b49}=this['_threeWayMerge'](_0x20b48d,_0x2c9b11,_0x5e2b8f,_0x259caf);_0x1ad807=_0x1ad807['concat'](_0x577f65),_0x2c9b11=_0x1c20f1,_0x259caf=_0x347b49;}else _0x3883a2['isRemoved']?(_0x259caf++,_0x1ad807['push'](_0x3883a2)):(_0x2c9b11++,_0x1ad807['push'](_0x4e1ba2));}}return _0x1ad807;}['_markSuggestions'](_0x140f8a,_0x200011){const _0xd41011=[];for(let _0x574a1a=0x0;_0x574a1a<_0x140f8a['length'];_0x574a1a++){for(let _0x38a06c=0x0;_0x38a06c<_0x140f8a[_0x574a1a]['markersStart']['length'];_0x38a06c++){const _0xf69c79=_0x140f8a[_0x574a1a]['markersStart'][_0x38a06c];if(!_0x200011['has'](_0xf69c79))continue;const {group:_0x338cd4,type:_0xc6bf94,authorId:_0x3eab2d}=_0x3b1f78(_0xf69c79);'revision-suggestion'!=_0x338cd4||'insertion'!=_0xc6bf94&&'deletion'!=_0xc6bf94||(_0xd41011['unshift']({'type':_0xc6bf94,'name':_0xf69c79,'userId':_0x3eab2d}),_0x140f8a[_0x574a1a]['markersStart']['splice'](_0x38a06c,0x1),_0x38a06c--);}_0x5a5177(_0x140f8a[_0x574a1a]);for(let _0x6293d4=0x0;_0x6293d4<_0x140f8a[_0x574a1a]['markersEnd']['length'];_0x6293d4++){const _0x12c028=_0x140f8a[_0x574a1a]['markersEnd'][_0x6293d4];if(!_0x200011['has'](_0x12c028))continue;const {group:_0xbf408b,type:_0x4e8867}=_0x3b1f78(_0x12c028);if('revision-suggestion'!=_0xbf408b||'insertion'!=_0x4e8867&&'deletion'!=_0x4e8867)continue;_0x140f8a[_0x574a1a]['markersEnd']['splice'](_0x6293d4,0x1),_0x6293d4--;const _0x2bd2f2=_0xd41011['findIndex'](_0x5f4c8e=>_0x5f4c8e['name']==_0x12c028);_0x2bd2f2>-0x1&&_0xd41011['splice'](_0x2bd2f2,0x1);}}function _0x3b1f78(_0x559da2){const _0x15e031=_0x559da2['split'](':');return{'group':_0x15e031[0x0],'type':_0x15e031[0x1],'subType':_0x15e031['length']>=0x5?_0x15e031[0x2]:null,'id':_0x15e031['length']<0x5?_0x15e031[0x2]:_0x15e031[0x3],'authorId':_0x15e031['length']<0x5?_0x15e031[0x3]:_0x15e031[0x4],'markerCount':0x6==_0x15e031['length']?_0x15e031[0x5]:null};}function _0x5a5177(_0x3bc5a8){for(let _0x19c009=0x0;_0x19c009<_0xd41011['length'];_0x19c009++){if(_0x3bc5a8['isAdded']&&'insertion'==_0xd41011[_0x19c009]['type']&&_0x3bc5a8['isAdded']['userId']==_0xd41011[_0x19c009]['userId'])return _0x3bc5a8['isAddSuggestion']=_0xd41011[_0x19c009],void delete _0x3bc5a8['isAdded'];if(!_0x3bc5a8['isAdded']&&!_0x3bc5a8['isRemoved']&&'deletion'==_0xd41011[_0x19c009]['type'])return void(_0x3bc5a8['isRemoveSuggestion']=_0xd41011[_0x19c009]);}}}['_setDistance'](_0x370283,_0x1e7a08){let _0x15d470=0x0,_0x4a2116=!0x1;const _0x2b6d87=new Map();for(const _0xeff4a2 of _0x370283)_0xeff4a2[_0x1e7a08]?_0x4a2116&&(_0x15d470++,_0x4a2116=!0x1):(_0x15d470++,_0x4a2116=!0x0),_0x2b6d87['set'](_0xeff4a2['id'],_0x15d470);for(let _0x4c1015=0x0;_0x4c1015<_0x370283['length'];_0x4c1015++){if('isRemoved'==_0x1e7a08&&_0x370283[_0x4c1015]['isAdded']||'isAdded'==_0x1e7a08&&_0x370283[_0x4c1015]['isRemoved'])continue;if('text'==_0x370283[_0x4c1015]['type']){_0x370283[_0x4c1015]['distance']=0x0;continue;}const _0x93fd08=_0x2b6d87['get'](_0x370283[_0x4c1015]['pairId']),_0x5e5242=_0x2b6d87['get'](_0x370283[_0x4c1015]['id']);_0x370283[_0x4c1015]['distance']=_0x93fd08-_0x5e5242;}}['_getRevisionsRange'](_0x1f21c3,_0x915511,_0x4e30ac=!0x1){const _0x16a1f9=[];let _0xd785db=this['repository']['getIndex'](_0x1f21c3),_0x2e3f61=this['repository']['getIndex'](_0x915511);for(-0x1==_0x2e3f61&&(_0x2e3f61=this['repository']['_revisions']['length'],_0x4e30ac=!0x1);_0xd785db<_0x2e3f61;)_0x16a1f9['push'](this['repository']['getRevision'](_0xd785db)),_0xd785db++;return _0x4e30ac&&_0x16a1f9['push'](this['repository']['getRevision'](_0xd785db)),_0x16a1f9;}['_threeWayMerge'](_0x2702af,_0x4fcc6d,_0x5e6b1b,_0xe1161d){const _0x3f7f2a=this['editor']['model']['schema'];let _0x31047e=_0x4fcc6d;for(;_0x2702af[_0x31047e]&&_0x2702af[_0x31047e]['isAdded'];)_0x31047e++;let _0x34e63e=_0xe1161d;for(;_0x5e6b1b[_0x34e63e]&&_0x5e6b1b[_0x34e63e]['isRemoved'];)_0x34e63e++;_0x13b8bd(_0x2702af,_0x4fcc6d,_0x31047e),_0x13b8bd(_0x5e6b1b,_0xe1161d,_0x34e63e);const _0xdfb7b0=_0x5e6b1b['slice'](_0xe1161d,_0x34e63e)['concat'](_0x2702af['slice'](_0x4fcc6d,_0x31047e));return _0xdfb7b0['sort']((_0x2c55c8,_0x50bee5)=>_0x2c55c8['side']!=_0x50bee5['side']?_0x2c55c8['side']-_0x50bee5['side']:_0x2c55c8['level']!=_0x50bee5['level']?_0x2c55c8['level']-_0x50bee5['level']:_0x2c55c8['distance']!=_0x50bee5['distance']?_0x50bee5['distance']-_0x2c55c8['distance']:!!_0x2c55c8['isAdded']!=!!_0x50bee5['isAdded']?-0x1==_0x2c55c8['side']||0x0==_0x2c55c8['side']?_0x2c55c8['isAdded']?-0x1:0x1:_0x2c55c8['isAdded']?0x1:-0x1:_0x2c55c8['index']-_0x50bee5['index']),{'commonTape':_0xdfb7b0,'iEnd':_0x31047e,'jEnd':_0x34e63e};function _0x13b8bd(_0x50190d,_0x36b0d6,_0xccd18a){let _0x3cb282=-0x1,_0x1756f7=Number['POSITIVE_INFINITY'],_0xca2d6e=!0x0;for(let _0x50898a=_0x36b0d6;_0x50898a<_0xccd18a;_0x50898a++)if(_0x3f7f2a['isInline'](_0x50190d[_0x50898a]['item'])||(_0xca2d6e=!0x1),_0x50190d[_0x50898a]['item']['startIndex']<_0x36b0d6&&(_0x3cb282=_0x50898a),_0x50190d[_0x50898a]['item']['endIndex']>=_0xccd18a){_0x1756f7=_0x50898a;break;}_0xca2d6e&&(_0x3cb282=_0xccd18a-0x1);for(let _0x2736bc=_0x36b0d6;_0x2736bc<_0xccd18a;_0x2736bc++)_0x50190d[_0x2736bc]['side']=_0x2736bc<=_0x3cb282?-0x1:_0x2736bc<_0x1756f7?0x0:0x1,_0x50190d[_0x2736bc]['index']=_0x2736bc;let _0x2bb307=0x0;for(let _0x24a87e=_0x36b0d6;_0x24a87e<=_0x3cb282;_0x24a87e++)0x0==_0x50190d[_0x24a87e]['distance']?_0x50190d[_0x24a87e]['level']=_0x2bb307:(_0x2bb307++,_0x50190d[_0x24a87e]['level']=_0x2bb307,_0x2bb307++);for(let _0x2f5d17=_0x36b0d6;_0x2f5d17<_0xccd18a;_0x2f5d17++)0x0==_0x50190d[_0x2f5d17]['side']&&(_0x50190d[_0x2f5d17]['level']=_0x2bb307);_0x2bb307=0x0;for(let _0x24e14a=_0xccd18a-0x1;_0x24e14a>=_0x1756f7;_0x24e14a--)0x0==_0x50190d[_0x24e14a]['distance']?_0x50190d[_0x24e14a]['level']=_0x2bb307:(_0x2bb307--,_0x50190d[_0x24e14a]['level']=_0x2bb307,_0x2bb307--);}}['_fixObsoleteTags'](_0x453f5c){const _0x1227cf=new Map(),_0x4bf7c2=this['editor']['model']['schema'];for(let _0x429d73=0x1;_0x429d73<_0x453f5c['length'];_0x429d73++){let _0x57eb37,_0x3bf19c,_0x33e6fb;const _0x386afa=_0x453f5c[_0x429d73],_0xce5ac4=_0x453f5c[_0x429d73-0x1];if('text'==_0x386afa['type'])continue;if(_0x386afa['type']!=_0xce5ac4['type'])continue;if(!_0x4bf7c2['isBlock'](_0xce5ac4['item'])||_0x4bf7c2['isLimit'](_0xce5ac4['item']))continue;if(!_0x4bf7c2['isBlock'](_0x386afa['item'])||_0x4bf7c2['isLimit'](_0x386afa['item']))continue;if((_0x453f5c[_0x429d73]['isAdded']||_0x453f5c[_0x429d73]['isAddSuggestion'])&&_0x453f5c[_0x429d73-0x1]['isRemoved'])_0x57eb37=_0x453f5c[_0x429d73],_0x3bf19c=_0x453f5c[_0x429d73-0x1],_0x33e6fb=_0x429d73-0x1;else{if(!_0x453f5c[_0x429d73]['isRemoved']||!_0x453f5c[_0x429d73-0x1]['isAdded']&&!_0x453f5c[_0x429d73-0x1]['isAddSuggestion'])continue;_0x57eb37=_0x453f5c[_0x429d73-0x1],_0x3bf19c=_0x453f5c[_0x429d73],_0x33e6fb=_0x429d73;}const _0x58d640=_0x57eb37['level']==_0x3bf19c['level'],_0x392cce=Math['abs'](_0x57eb37['level'])<Math['abs'](_0x3bf19c['level'])&&0x0==_0x3bf19c['distance'];(_0x58d640||_0x392cce)&&(_0x1227cf['set'](_0x3bf19c['id'],_0x57eb37['id']),_0x453f5c['splice'](_0x33e6fb,0x1),_0x429d73--,_0x57eb37['isAdded']=!0x1);}for(let _0x3dae90=0x0;_0x3dae90<_0x453f5c['length'];_0x3dae90++)_0x1227cf['has'](_0x453f5c[_0x3dae90]['pairId'])&&(_0x453f5c[_0x3dae90]['pairId']=_0x1227cf['get'](_0x453f5c[_0x3dae90]['pairId']));}['_removeMissingPairs'](_0xe591a){const _0x53404b=new Set(_0xe591a['map'](_0xedd63=>_0xedd63['id']));for(let _0xa1ac1c=0x0;_0xa1ac1c<_0xe591a['length'];_0xa1ac1c++)_0x53404b['has'](_0xe591a[_0xa1ac1c]['pairId'])||0x0==_0xe591a[_0xa1ac1c]['distance']||(_0xe591a[_0xa1ac1c]['isIncorrect']=!0x0);return _0xe591a['filter'](_0x4a88da=>!_0x4a88da['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41164a){const _0x4fba96=new Set();for(let _0x751d3c=0x0;_0x751d3c<_0x41164a['length'];_0x751d3c++){if(_0x4fba96['has'](_0x41164a[_0x751d3c]['id'])&&_0x41164a[_0x751d3c]['isRemoved']&&(_0x41164a[_0x751d3c]['isIncorrect']=!0x0),_0x41164a[_0x751d3c]['isIncorrect'])continue;if(0x0==_0x41164a[_0x751d3c]['distance'])continue;if('elementStart'!=_0x41164a[_0x751d3c]['type'])continue;if(null==_0x41164a[_0x751d3c]['pairId'])continue;let _0x5d38a3=_0x751d3c+0x1,_0x4ada31=0x0;for(;_0x41164a[_0x5d38a3]['id']!=_0x41164a[_0x751d3c]['pairId'];)'elementStart'==_0x41164a[_0x5d38a3]['type']?_0x4ada31++:'elementEnd'==_0x41164a[_0x5d38a3]['type']&&_0x4ada31--,_0x5d38a3++;if(0x0!=_0x4ada31){if(_0x41164a[_0x751d3c]['isRemoved'])_0x41164a[_0x751d3c]['isIncorrect']=!0x0;else{for(;_0x5d38a3!=_0x751d3c;)_0x41164a[_0x5d38a3]['isRemoved']&&0x0!=_0x41164a[_0x5d38a3]['distance']&&(_0x41164a[_0x5d38a3]['isIncorrect']=!0x0,_0x4fba96['add'](_0x41164a[_0x5d38a3]['pairId'])),_0x5d38a3--;}}}return _0x41164a['filter'](_0x578db5=>!_0x578db5['isIncorrect']);}['_removeUnsupportedChanges'](_0x24d01d){const _0x5729aa=this['editor']['model']['schema'];for(let _0x3b3082=0x0;_0x3b3082<_0x24d01d['length'];_0x3b3082++){if(!(_0x24d01d[_0x3b3082]['isAdded']||_0x24d01d[_0x3b3082]['isAddSuggestion']||_0x24d01d[_0x3b3082]['isRemoved']||_0x24d01d[_0x3b3082]['isRemoveSuggestion']))continue;if(0x0==_0x24d01d[_0x3b3082]['distance'])continue;const _0x462af0=_0x24d01d[_0x3b3082]['item'];_0x5729aa['isBlock'](_0x462af0)||_0x5729aa['isLimit'](_0x462af0)||(_0x24d01d[_0x3b3082]['isAdded']&&delete _0x24d01d[_0x3b3082]['isAdded'],_0x24d01d[_0x3b3082]['isAddSuggestion']&&delete _0x24d01d[_0x3b3082]['isAddSuggestion'],_0x24d01d[_0x3b3082]['isRemoveSuggestion']&&delete _0x24d01d[_0x3b3082]['isRemoveSuggestion'],_0x24d01d[_0x3b3082]['isRemoved']&&(_0x24d01d[_0x3b3082]['isIncorrect']=!0x0));}return _0x24d01d['filter'](_0x2c4fd7=>!_0x2c4fd7['isIncorrect']);}['_makeModelFromTape'](_0x3d0d1f,_0x2de0df,_0xee54e4){const _0x9f337e=new _0x33815f(),_0x22108c=[],_0x371112=new Map(),_0x2ccb84=this['editor']['model'],_0x34afd5=_0x2ccb84['schema'],_0x4dc996=[_0x9f337e],_0x42e049={},_0x9598cc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x415e8b=null;const _0x11e2df=[0x0];for(let _0x1ef807=0x0;_0x1ef807<_0x3d0d1f['length'];_0x1ef807++)if('elementStart'===_0x3d0d1f[_0x1ef807]['type']){_0x3d0d1f[_0x1ef807]['previousPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df);const _0xc33d39=new _0x40ce00(_0x3d0d1f[_0x1ef807]['item']['name'],_0x3d0d1f[_0x1ef807]['item']['getAttributes']());_0x4dc996[0x0]['_appendChild'](_0xc33d39),_0x11e2df['push'](0x0),_0x4dc996['unshift'](_0xc33d39),_0x3d0d1f[_0x1ef807]['nextPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df);}else'elementEnd'===_0x3d0d1f[_0x1ef807]['type']?(_0x4dc996['shift'](),_0x3d0d1f[_0x1ef807]['previousPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df),_0x11e2df['pop'](),_0x11e2df[_0x11e2df['length']-0x1]++,_0x3d0d1f[_0x1ef807]['nextPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df)):(_0x3d0d1f[_0x1ef807]['previousPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df),_0x415e8b?_0x415e8b['_data']+=_0x3d0d1f[_0x1ef807]['item']['data']:_0x415e8b=new _0x8d94f3(_0x3d0d1f[_0x1ef807]['item']['data'],_0x3d0d1f[_0x1ef807]['item']['getAttributes']()),_0x3d0d1f[_0x1ef807+0x1]&&'text'===_0x3d0d1f[_0x1ef807+0x1]['type']&&_0x53d720(_0x415e8b,_0x3d0d1f[_0x1ef807+0x1]['item'])||(_0x4dc996[0x0]['_appendChild'](_0x415e8b),_0x415e8b=null),_0x11e2df[_0x11e2df['length']-0x1]+=_0x3d0d1f[_0x1ef807]['item']['offsetSize'],_0x3d0d1f[_0x1ef807]['nextPosition']=_0x2ccb84['createPositionFromPath'](_0x9f337e,_0x11e2df));for(let _0x14f470=0x0;_0x14f470<_0x3d0d1f['length'];_0x14f470++){const _0x50318e=_0x3d0d1f[_0x14f470]['previousPosition'],_0x42899a=_0x3d0d1f[_0x14f470]['nextPosition'];for(const _0x41c89d of _0x3d0d1f[_0x14f470]['markersStart'])_0x371112['set'](_0x41c89d,{'start':_0x50318e,'end':null});_0x1bbc2a('isRemoveSuggestion',_0x14f470,_0x50318e,_0x42899a),_0x1bbc2a('isAddSuggestion',_0x14f470,_0x50318e,_0x42899a),_0x1bbc2a('isRemoved',_0x14f470,_0x50318e,_0x42899a),_0x1bbc2a('isAdded',_0x14f470,_0x50318e,_0x42899a);for(const _0x5b402c of _0x3d0d1f[_0x14f470]['markersEnd']){const _0x361a38=_0x371112['get'](_0x5b402c);_0x361a38?_0x361a38['end']=_0x42899a:_0x371112['set'](_0x5b402c,{'start':_0x42899a,'end':_0x42899a});}}for(const [_0x114451,_0x5b9a32]of _0x371112){const _0x5a913d=this['editor']['model']['createRange'](_0x5b9a32['start'],_0x5b9a32['end']);_0x9f337e['markers']['set'](_0x114451,_0x5a913d);}return _0x22108c['sort']((_0xfc3ea5,_0x112672)=>{const _0x5ab12b=_0x9f337e['markers']['get']('revision:'+_0xfc3ea5['id']),_0x181ca9=_0x9f337e['markers']['get']('revision:'+_0x112672['id']);return _0x5ab12b['start']['isBefore'](_0x181ca9['start'])?-0x1:_0x5ab12b['start']['isAfter'](_0x181ca9['start'])?0x1:_0x5ab12b['end']['isBefore'](_0x181ca9['end'])?-0x1:_0x5ab12b['end']['isAfter'](_0x181ca9['end'])?0x1:'add'===_0xfc3ea5['type']?-0x1:0x1;}),{'root':_0x9f337e,'changes':_0x22108c};function _0x1bbc2a(_0x206b62,_0x55f15f,_0x690232,_0x5b75e6){const _0xcf510d=!!_0x3d0d1f[_0x55f15f][_0x206b62],_0x3086d1=_0xcf510d?_0x3d0d1f[_0x55f15f][_0x206b62]['userId']:null,_0x10240c=_0x55f15f===_0x3d0d1f['length']-0x1,_0x1af8cc=_0x9598cc[_0x206b62][0x0],_0x38a9e4=_0x34afd5['isObject'](_0x3d0d1f[_0x55f15f]['item']);!_0x42e049[_0x206b62]&&_0xcf510d?_0x42e049[_0x206b62]={'start':_0x690232,'tapeItem':_0x3d0d1f[_0x55f15f],'userId':_0x3086d1,'type':_0x206b62}:_0x42e049[_0x206b62]&&!_0xcf510d?(_0x42e049[_0x206b62]['end']=_0x690232,_0x1dcdbb(_0x42e049[_0x206b62]),_0x42e049[_0x206b62]=null):_0x42e049[_0x206b62]&&_0xcf510d&&_0x42e049[_0x206b62]['userId']!==_0x3086d1&&(_0x42e049[_0x206b62]['end']=_0x690232,_0x1af8cc&&_0x1af8cc['userId']===_0x42e049[_0x206b62]['userId']||_0x1dcdbb(_0x42e049[_0x206b62]),_0x42e049[_0x206b62]={'start':_0x690232,'tapeItem':_0x3d0d1f[_0x55f15f],'userId':_0x3086d1,'type':_0x206b62}),_0x42e049[_0x206b62]&&_0x38a9e4&&('elementStart'!==_0x3d0d1f[_0x55f15f]['type']||_0x1af8cc&&_0x1af8cc['userId']===_0x3086d1||_0x9598cc[_0x206b62]['unshift']({'userId':_0x3086d1,'object':_0x3d0d1f[_0x55f15f]['item'],'change':_0x42e049[_0x206b62]}),'elementEnd'===_0x3d0d1f[_0x55f15f]['type']&&_0x1af8cc&&_0x1af8cc['object']===_0x3d0d1f[_0x55f15f]['item']&&(_0x9598cc[_0x206b62]['shift'](),_0x42e049[_0x206b62]=_0x1af8cc['change'])),_0x42e049[_0x206b62]&&_0x10240c&&(_0x42e049[_0x206b62]['end']=_0x5b75e6,_0x1dcdbb(_0x42e049[_0x206b62]),_0x42e049[_0x206b62]=null);}function _0x1dcdbb({start:_0x12c6e8,end:_0x4333c2,tapeItem:_0x1ad99c,userId:_0x34c262,type:_0x3a3f9d}){const _0x2034e0=_0x1ad99c['item'],_0x48f42f=_0x2ccb84['schema']['isBlock'](_0x2034e0)&&!_0x2ccb84['schema']['isLimit'](_0x2034e0),_0x205b41=_0x12c6e8['nodeAfter']==_0x4333c2['parent']&&_0x4333c2['isAtStart'];if(_0x48f42f&&_0x205b41)return;const _0x33eb57=_0x2ccb84['createRange'](_0x12c6e8,_0x4333c2),_0x2345b6=_0x2de0df['get'](_0x34c262),_0x319637=new G({'author':_0x2345b6,'type':'isAdded'==_0x3a3f9d||'isAddSuggestion'==_0x3a3f9d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3a3f9d||'isRemoveSuggestion'==_0x3a3f9d},'createdAt':new Date(),'rootName':_0xee54e4});_0x22108c['push'](_0x319637),_0x9f337e['markers']['set']('revision:'+_0x319637['id'],_0x33eb57);}function _0x53d720(_0x4946fc,_0x3b2af7){const _0x9e7d0=_0x4946fc['getAttributes'](),_0x3405ec=_0x3b2af7['getAttributes']();for(const _0x75689b of _0x9e7d0){if(_0x75689b[0x1]!==_0x3b2af7['getAttribute'](_0x75689b[0x0]))return!0x1;_0x3405ec['next']();}return _0x3405ec['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3005cf=>{const _0x258299=_0x3005cf['markerName']['split'](':')[0x1],_0xbcbe84=this['_getChangeFromId'](_0x258299);if(!_0xbcbe84)return null;const _0x5475c5='add'==_0xbcbe84['type']?'insertion':'deletion',_0x18af9c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5475c5];return _0xbcbe84['data']['isSuggestion']&&_0x18af9c['push']('ck-suggestion-marker-'+_0x5475c5+'-new'),this['activeChange']==_0xbcbe84&&_0x18af9c['push']('ck-suggestion-marker--active'),{'classes':_0x18af9c,'attributes':{'data-change-id':_0x258299}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x706396=>{_0x706396['on']('element:pre',(_0x13268d,_0x2ac45a,_0x3f43b2)=>{const _0xb1027=_0x2ac45a['viewItem']['getChild'](0x0);if(!_0xb1027||!_0xb1027['is']('element','code'))return;if(!_0x3f43b2['consumable']['consume'](_0xb1027,{'attributes':['vid_start','vid_end']}))return;const _0x213fb3=_0x2ac45a['modelRange']['start']['nodeAfter'];_0x3f43b2['writer']['setAttribute']('vid_start',_0xb1027['getAttribute']('vid_start'),_0x213fb3),_0x3f43b2['writer']['setAttribute']('vid_end',_0xb1027['getAttribute']('vid_end'),_0x213fb3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5d6e2c=>{_0x5d6e2c['on']('element',(_0x290e85,_0x31a383,_0x2f47dd)=>{if(!_0x2f47dd['consumable']['consume'](_0x31a383['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x31a383['modelRange']['isCollapsed'])return;const _0x166eeb=_0x31a383['modelRange']['start']['nodeAfter'];_0x166eeb['hasAttribute']('vid_start')||_0x166eeb['hasAttribute']('vid')||(_0x2f47dd['writer']['setAttribute']('vid_start',_0x31a383['viewItem']['getAttribute']('vid_start'),_0x166eeb),_0x2f47dd['writer']['setAttribute']('vid_end',_0x31a383['viewItem']['getAttribute']('vid_end'),_0x166eeb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4f49aa=>_0x4f49aa['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5898ff,[,_0x16934a])=>{['vid_start','vid_end','vid']['includes'](_0x16934a)&&(_0x5898ff['return']=!0x0,_0x5898ff['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ac74c=>{_0x2ac74c['on']('attribute:vid',(_0x129a25,_0x5377d0,_0x547fa4)=>{if('\x20'!=_0x5377d0['item']['data']||_0x5377d0['item']['parent']['maxOffset']>0x1)return;if(!_0x547fa4['consumable']['consume'](_0x5377d0['item'],_0x129a25['name']))return;const _0x29db72=_0x547fa4['writer'],_0x1b8f3e=_0x547fa4['mapper']['toViewRange'](_0x5377d0['range']);_0x29db72['wrap'](_0x1b8f3e,_0x29db72['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x491ddb){const _0x1bd82b=_0x491ddb['plugins']['get']('RevisionViewer');return(_0xa042bf,_0x492070,_0x409f21)=>{const _0x187861=_0x492070['markerName']['split'](':')[0x1],_0x182180=_0x1bd82b['_getChangeFromId'](_0x187861);if(!_0x182180)return null;const _0x117ff7='add'==_0x182180['type']?'split':'merge';if(!_0x409f21['consumable']['test'](_0x492070['markerRange'],_0xa042bf['name']))return;const _0x1f1a80=_0x492070['markerRange']['getWalker'](),_0x2969d0=_0x492070['markerRange']['start'],_0xd0ce50=_0x491ddb['model']['schema'];let _0x12d24d=null,_0x20cbcb=null,_0x1a28ac=!0x1,_0x33b9eb=!0x1;for(const _0x36e29d of _0x1f1a80){const _0x33f2a8=_0x36e29d['item'];_0x1a28ac=_0x1a28ac||_0xd0ce50['isContent'](_0x33f2a8);const _0x43a42b=_0x409f21['mapper']['toViewElement'](_0x33f2a8);if(_0x43a42b&&_0x43a42b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x36e29d['type']&&(_0xd0ce50['isBlock'](_0x33f2a8)&&!_0xd0ce50['isLimit'](_0x33f2a8)&&(_0x33f2a8['nextSibling']||_0x2969d0['isAtEnd']?_0x12d24d&&_0x12d24d['parent']==_0x33f2a8||(_0x12d24d=_0x33f2a8,_0x183ddc(_0x36e29d['previousPosition']),_0x33b9eb=!0x0):_0x20cbcb=_0x20cbcb||_0x36e29d['previousPosition']));}function _0x183ddc(_0x5f02df){const _0x4a97aa=_0x409f21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x117ff7}),_0x58deae=_0x409f21['mapper']['toViewPosition'](_0x5f02df);_0x182180['data']['isSuggestion']&&_0x409f21['writer']['addClass']('ck-suggestion-marker-'+_0x117ff7+'-new',_0x4a97aa),_0x1bd82b['activeChange']==_0x182180&&_0x409f21['writer']['addClass']('ck-suggestion-marker--active',_0x4a97aa),_0x409f21['writer']['insert'](_0x58deae,_0x4a97aa),_0x409f21['mapper']['bindElementToMarker'](_0x4a97aa,_0x492070['markerName']);}_0x1a28ac||_0x33b9eb||!_0x20cbcb||_0x183ddc(_0x20cbcb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x237934,_0x292739,_0x420d91)=>{const _0xf40ab3=_0x420d91['mapper']['markerNameToElements'](_0x292739['markerName']);if(_0xf40ab3){for(const _0x3652eb of _0xf40ab3)(_0x3652eb['hasClass']('ck-suggestion-marker-split')||_0x3652eb['hasClass']('ck-suggestion-marker-merge'))&&(_0x420d91['mapper']['unbindElementFromMarkerName'](_0x3652eb,_0x292739['markerName']),_0x420d91['writer']['remove'](_0x3652eb));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x489afe,_0x1453af,_0x4f9599)=>{const _0xb7e784=_0x1453af['markerName']['split'](':')[0x1],_0x409ca7=this['_getChangeFromId'](_0xb7e784);if(!_0x409ca7)return null;const _0x50a45c='add'==_0x409ca7['type']?'split':'merge';if(_0x4f9599['consumable']['test'](_0x1453af['markerRange'],_0x489afe['name']))for(const _0x1db566 of _0x1453af['markerRange']['getItems']()){if(!_0x1db566['is']('element','softBreak'))continue;const _0x20e7f4=_0x4f9599['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50a45c}),_0xa31322=_0x4f9599['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1db566));_0x409ca7['data']['isSuggestion']&&_0x4f9599['writer']['addClass']('ck-suggestion-marker-'+_0x50a45c+'-new',_0x20e7f4),this['activeChange']==_0x409ca7&&_0x4f9599['writer']['addClass']('ck-suggestion-marker--active',_0x20e7f4),_0x4f9599['writer']['insert'](_0xa31322,_0x20e7f4),_0x4f9599['mapper']['bindElementToMarker'](_0x20e7f4,_0x1453af['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x262565=>{for(const _0x5032ed of this['editor']['model']['document']['getRootNames']()){const _0x502f0b=this['editor']['model']['document']['getRoot'](_0x5032ed),_0x18cedb=this['editor']['editing']['view']['document']['getRoot'](_0x5032ed);if(_0x18cedb){const _0x465e32=_0x502f0b['getAttribute']('revisionHistoryAttachChange');if(_0x262565['removeAttribute']('data-change-id',_0x18cedb),_0x262565['removeClass']('ck-revision-history-root-add',_0x18cedb),_0x262565['removeClass']('ck-revision-history-root-remove',_0x18cedb),_0x262565['removeClass']('ck-revision-history-root--active',_0x18cedb),_0x465e32){const _0x292f27=this['_getChangeFromId'](_0x465e32);if(!_0x292f27)return null;_0x262565['setAttribute']('data-change-id',_0x465e32,_0x18cedb),_0x262565['addClass']('ck-revision-history-root-'+_0x292f27['type'],_0x18cedb),this['activeChange']==_0x292f27&&_0x262565['addClass']('ck-revision-history-root--active',_0x18cedb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x249057=>'revision-comment:'+_0x249057,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x559b49=>'revision-suggestion:'+_0x559b49,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x209278=>({'name':'suggestion:'+_0x209278,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x582ce8=>{const _0x3545f8=_0x582ce8['markerName']['split'](':')[0x1];return'insertion'!=_0x3545f8&&'deletion'!=_0x3545f8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3545f8]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xfae946,_0x3b0c23,_0xa65966)=>{const _0x4d0a7b=_0xa65966['mapper']['markerNameToElements'](_0x3b0c23['markerName']);if(_0x4d0a7b){for(const _0x39cb5f of _0x4d0a7b)_0x39cb5f['is']('uiElement')&&(_0xa65966['mapper']['unbindElementFromMarkerName'](_0x39cb5f,_0x3b0c23['markerName']),_0xa65966['writer']['remove'](_0x39cb5f));}},{'priority':'high'});}['_getChangeFromId'](_0x133e86){return this['_changeIdToChange']['get'](_0x133e86);}['_getViewForChange'](_0x4a9002){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x4a9002),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4266c8,_0xd0b788,_0x1c3596,_0x391236)=>{_0x391236&&this['_balloon']['remove'](_0x391236),_0x1c3596&&(this['_balloon']['add']({'view':_0x1c3596,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x56c88f=this['editor']['editing'],_0x24b0ce=this['_getChangeFromId'](_0x1c3596['changeId']);let _0x9838b9;if(_0x24b0ce['data']['isOnRoot']){const _0x565761=_0x56c88f['view']['getDomRoot'](_0x24b0ce['rootName']);_0x9838b9=Array['from'](_0x565761['getClientRects']());}else{const _0x24bfd0=this['editor']['model']['markers']['get']('revision:'+_0x1c3596['changeId']);_0x9838b9=Array['from'](_0x56c88f['mapper']['markerNameToElements'](_0x24bfd0['name']))['map'](_0x7957c1=>_0x56c88f['view']['domConverter']['mapViewToDom'](_0x7957c1))['map'](_0x16b9d7=>Array['from'](_0x16b9d7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x9838b9[0x0];return _0x9838b9['find'](_0x4aeaf3=>_0x4aeaf3['top']-0x3<=this['_activeViewTarget']['y']&&_0x4aeaf3['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4aeaf3['left']-0x3<=this['_activeViewTarget']['x']&&_0x4aeaf3['right']+0x3>=this['_activeViewTarget']['x'])||_0x9838b9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5a3cec,_0x4234a6,_0x52fbc3,_0xe63ede)=>{this['activeView']=_0x52fbc3?this['_getViewForChange'](_0x52fbc3):null,this['editor']['model']['change'](()=>{const _0x1988f4=this['editor']['editing'];_0xe63ede&&(_0xe63ede['data']['isOnRoot']?_0x1988f4['view']['change'](_0x1f3af2=>{_0x1f3af2['removeClass']('ck-revision-history-root--active',_0x1988f4['view']['document']['getRoot'](_0xe63ede['rootName']));}):_0x1988f4['reconvertMarker']('revision:'+_0xe63ede['id'])),_0x52fbc3&&(_0x52fbc3['data']['isOnRoot']?_0x1988f4['view']['change'](_0x53a816=>{_0x53a816['addClass']('ck-revision-history-root--active',_0x1988f4['view']['document']['getRoot'](_0x52fbc3['rootName']));}):_0x1988f4['reconvertMarker']('revision:'+_0x52fbc3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1a225e,_0x2e6053)=>{if(this['activeChange'])return;const _0x51b337=this['_findChangeIdFromDomTarget'](_0x2e6053['target']),_0x26f5d2=this['_changeIdToChange']['get'](_0x51b337);_0x26f5d2?(this['_activeViewTarget']={'x':_0x2e6053['domEvent']['x'],'y':_0x2e6053['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x26f5d2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c36a6,_0x4f71ca)=>{const _0x56f6cf=this['_findChangeIdFromDomTarget'](_0x4f71ca['target']),_0x501909=this['_changeIdToChange']['get'](_0x56f6cf);_0x501909?(this['_activeViewTarget']={'x':_0x4f71ca['domEvent']['x'],'y':_0x4f71ca['domEvent']['y']},_0x501909===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x501909):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5e3cbc){do{const _0x35b098=_0x5e3cbc['getAttribute']('data-change-id');if(_0x35b098)return _0x35b098;_0x5e3cbc=_0x5e3cbc['parent'];}while(_0x5e3cbc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21df26=>{for(const _0x37dfe9 of this['editor']['model']['markers'])_0x21df26['removeMarker'](_0x37dfe9);});}}function Q(_0x52e195,_0x3eda40){return(_0x290bfe,_0x35dd13,_0x3fdd99)=>{if(!_0x3fdd99['consumable']['test'](_0x35dd13['markerRange'],_0x290bfe['name']))return;const _0x935930=_0x35dd13['markerRange']['getWalker'](),_0x440fdd=_0x35dd13['markerRange']['start'],_0x3d5f64=_0x52e195['model']['schema'];let _0x48149d=null,_0x21c73d=null,_0x3938ad=!0x1,_0x3c2f4b=!0x1;for(const _0x192def of _0x935930){const _0x397a1d=_0x192def['item'];_0x3938ad=_0x3938ad||_0x3d5f64['isContent'](_0x397a1d);const _0x2a5627=_0x3fdd99['mapper']['toViewElement'](_0x397a1d);if(_0x2a5627&&_0x2a5627['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x192def['type']&&(_0x3d5f64['isBlock'](_0x397a1d)&&!_0x3d5f64['isLimit'](_0x397a1d)&&(_0x397a1d['nextSibling']||_0x440fdd['isAtEnd']?_0x48149d&&_0x48149d['parent']==_0x397a1d||(_0x48149d=_0x397a1d,_0x1e04e1(_0x192def['previousPosition']),_0x3c2f4b=!0x0):_0x21c73d=_0x21c73d||_0x192def['previousPosition']));}function _0x1e04e1(_0x9f321c){const _0x70df9e=_0x3fdd99['mapper']['toViewPosition'](_0x9f321c),_0x5b13a5=_0x3fdd99['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3eda40});_0x3fdd99['writer']['insert'](_0x70df9e,_0x5b13a5),_0x3fdd99['mapper']['bindElementToMarker'](_0x5b13a5,_0x35dd13['markerName']);}_0x3938ad||_0x3c2f4b||!_0x21c73d||_0x1e04e1(_0x21c73d);};}class nt extends _0x28fcb7{constructor(_0x5d383b){super(_0x5d383b);const _0x370a91=_0x5d383b['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x370a91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x370a91,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x15f12b=this['editor'],_0x28d85c=_0x15f12b['plugins']['get'](u),_0x37ce35=_0x28d85c['isReady']?_0x28d85c['diff']['newRevisionId']:null;_0x15f12b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x37ce35);}['refresh'](){const {isReady:_0x5b5238,isEnabled:_0x58f80e,repository:_0xc0d504,diff:_0xc2dee8}=this['editor']['plugins']['get'](u),_0x5b8ead=_0xc2dee8&&_0xc0d504['getLaterVisibleRevision'](_0xc2dee8['newRevisionId']);this['isEnabled']=_0x5b5238&&_0x58f80e&&Boolean(_0x5b8ead);}}class rt extends _0x28fcb7{['_step'];constructor(_0x2c57a5,{direction:_0x335ed6}){super(_0x2c57a5);const _0x549ace=_0x2c57a5['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x335ed6?0x1:-0x1,this['listenTo'](_0x549ace,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x549ace,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x549ace,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x35bbe8=this['editor'],_0x33275e=_0x35bbe8['plugins']['get'](u),{isNavigationMode:_0x3d52e2,currentChangeNumber:_0x18951b}=_0x33275e;let _0x88dd65;if(_0x33275e['activeChange']=_0x3d52e2?_0x33275e['diff']['changes']['get'](_0x18951b+this['_step']):_0x33275e['diff']['changes']['first'],_0x33275e['activeChange']['data']['isOnRoot'])_0x88dd65=_0x35bbe8['editing']['view']['getDomRoot'](_0x33275e['activeChange']['rootName']);else{const _0x3a551f=_0x35bbe8['model']['markers']['get']('revision:'+_0x33275e['activeChange']['id']);_0x88dd65=_0x2169a6(_0x35bbe8['editing'],_0x3a551f);}_0x1ec797({'target':_0x88dd65,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b2fe4,currentChangeNumber:_0x43a0bc,numberOfChanges:_0x298681,isReady:_0x2222c4,isEnabled:_0x2241e0}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2241e0&&_0x2222c4&&_0x298681)&&(!_0x2b2fe4||(0x1===this['_step']?_0x43a0bc<_0x298681-0x1:_0x43a0bc>0x0));}}class Ri extends _0x2daa41{constructor(_0x3f7145){super(_0x3f7145);const _0x16d401=this['bindTemplate'],_0x3544f1=new _0x3bd1e4(_0x3f7145),_0x44d3e5=new _0x3bd1e4(_0x3f7145);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',(_0x414429,_0x25801b)=>_0x414429&&_0x25801b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x57e038,_0x13938e,_0x2cf660,_0x3eadf6)=>{if(!_0x57e038)return m(_0x3f7145,'Loading...');if(!_0x2cf660)return m(_0x3f7145,'No\x20changes');const _0x524897=m(_0x3f7145,'NUMBER_OF_CHANGES',_0x2cf660);return _0x3eadf6?m(_0x3f7145,'X_OF_Y_CHANGES',[_0x13938e+0x1,_0x2cf660]):_0x524897;}),_0x3544f1['set']({'label':m(_0x3f7145,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1608f4}),_0x44d3e5['set']({'label':m(_0x3f7145,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x30196a}),_0x3544f1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x44d3e5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3544f1['on']('execute',()=>this['fire']('execute','backward')),_0x44d3e5['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',_0x16d401['if']('_isStatusLabelVisible','ck-hidden',_0x45db39=>!_0x45db39)]},'children':[{'text':_0x16d401['to']('isNavigationMode',_0x51f25e=>_0x51f25e?m(_0x3f7145,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3f7145,'Total')+':\x20')}]},{'text':_0x16d401['to']('_statusText')}]},new _0x4e6ca2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3544f1,_0x44d3e5]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x357b2f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4943c4=this['editor']['editing']['view'];_0x4943c4['change'](_0xbadb64=>{for(const _0x520e17 of _0x4943c4['document']['roots'])_0xbadb64['addClass'](ge,_0x520e17);});}['hide'](){const _0x5136cb=this['editor']['editing']['view'];_0x5136cb['change'](_0x301223=>{for(const _0x3c3ec8 of _0x5136cb['document']['roots'])_0x301223['removeClass'](ge,_0x3c3ec8);});}}class v extends _0x357b2f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x40bbb2=this['editor'],_0x5e3e76=_0x40bbb2['plugins']['get'](u),_0x2c559d=_0x40bbb2['plugins']['get'](ji);_0x40bbb2['ui']['componentFactory']['add']('exitToEditing',_0x494c1e=>{const _0x1a8e74=new _0x3bd1e4(_0x494c1e);return _0x1a8e74['set']({'label':m(_0x494c1e,'Back\x20to\x20editing'),'icon':_0x346532,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a8e74,'execute',()=>{_0x40bbb2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a8e74;}),_0x40bbb2['ui']['componentFactory']['add']('restoreRevision',_0x1f18b0=>{const _0xc178b8=new _0x3bd1e4(_0x1f18b0);return _0xc178b8['set']({'label':m(_0x1f18b0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xc178b8['bind']('isEnabled')['to'](_0x40bbb2['commands']['get']('restoreRevision')),this['listenTo'](_0xc178b8,'execute',()=>_0x40bbb2['execute']('restoreRevision')),_0xc178b8;}),_0x40bbb2['ui']['componentFactory']['add']('changesNavigation',_0x5c97d0=>{const _0x226310=new Ri(_0x5c97d0),_0x1f3d77=_0x40bbb2['commands']['get']('showPreviousChange'),_0x40fa1b=_0x40bbb2['commands']['get']('showNextChange');return _0x226310['bind']('isBackwardNavigationEnabled')['to'](_0x1f3d77,'isEnabled'),_0x226310['bind']('isForwardNavigationEnabled')['to'](_0x40fa1b,'isEnabled'),_0x226310['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5e3e76),this['listenTo'](_0x226310,'execute',(_0xbecbb1,_0x2acef8)=>{_0x40bbb2['execute']('forward'===_0x2acef8?'showNextChange':'showPreviousChange');}),_0x226310;}),_0x2c559d['show'](),_0x5e3e76['on']('change:isReady',(_0x4c213f,_0x27427f,_0x15ae38)=>{_0x15ae38?_0x2c559d['hide']():_0x2c559d['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x598de0,_0x26f009){super(_0x598de0,_0x26f009);const _0x37262e=this['bindTemplate'];this['set']({'label':m(_0x598de0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x598de0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x37262e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x34c278=this['fieldView']['element'];this['_tooltipString']=_0x34c278['scrollWidth']>_0x34c278['clientWidth']&&_0x34c278['value']||'';}}class ni extends _0x2daa41{constructor(_0x22f534,_0x51e621,_0x45e8b2){super(_0x22f534);const _0x4ed31d=new _0x236d30();_0x4ed31d['set']({'content':_0x32de47,'viewBox':'0\x200\x2011\x2010'});const _0xe3b13d=['ck','ck-revision-history-sidebar__revision-author'];_0x45e8b2&&_0xe3b13d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1284f8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x22f534,_0x45e8b2?'Revision\x20creator':'Revision\x20author')},'children':[_0x4ed31d,_0x51e621['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xe3b13d},'children':_0x1284f8});}}function ai(_0x5912a9,_0x3d5b5d){const _0x50d65f=_0x5912a9['bindTemplate'],_0xfd3ec0=_0x5912a9['locale'],_0x482e12=_0x183d12(_0xfd3ec0);_0x482e12['panelPosition']='sw';const _0x47cb33=function(_0x151050,_0x2bea74){const _0xed58b3=function(_0x5abc2b,_0xeae32b){const _0x3864fb=_0x5abc2b['locale'],_0x2e6fb0={'Compare\x20against\x20selected':m(_0x3864fb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3864fb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3864fb,'Restore\x20this\x20revision')};return _0xeae32b['map'](_0x7211ca=>{const _0x21e064=_0x2e6fb0[_0x7211ca['name']];return _0x21e064&&_0x21e064!==_0x7211ca['name']&&(_0x7211ca['name']=_0x21e064),_0x7211ca;});}(_0x151050,_0x2bea74),_0x46206a=new _0x51d99d();for(const _0xa9479c of _0xed58b3){const _0x50b50b={'type':'button','model':new to({'label':_0xa9479c['name'],'class':_0xa9479c['class'],'withText':!0x0,'role':'menuitem','_action':_0xa9479c['action']})};_0x50b50b['model']['bind']('isEnabled')['to'](_0x151050,'isActionsDropdownOpen',_0x439830=>'function'!=typeof _0xa9479c['isEnabled']||(!_0x439830||_0xa9479c['isEnabled'](_0x151050))),_0x46206a['add'](_0x50b50b);}return _0x46206a;}(_0x5912a9,_0x3d5b5d);return _0x5912a9['bind']('isActionsDropdownOpen')['to'](_0x482e12,'isOpen'),_0x482e12['buttonView']['set']({'label':m(_0xfd3ec0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9f3e35}),_0x482e12['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x50d65f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x50d65f['to'](_0x507fdb=>_0x507fdb['stopPropagation']())}}),_0x482e12['on']('execute',_0x5021f2=>{_0x5912a9['isReady']&&'function'==typeof _0x5021f2['source']['_action']&&_0x5021f2['source']['_action'](_0x5912a9);}),_0x16dec2(_0x482e12,_0x47cb33,{'role':'menu'}),_0x482e12['listenTo'](_0x5912a9,'change:isActionsDropdownOpen',(_0x2c1a9e,_0x1c4520,_0x540f27)=>{if(_0x540f27)for(const _0xa986bc of _0x482e12['listView']['items']){const _0x40611b=_0xa986bc['children']['first'],_0x2c8190=_0x3d5b5d['find'](_0x15b83a=>_0x15b83a['action']===_0x40611b['_action'])['isVisible'];_0xa986bc['isVisible']=void 0x0===_0x2c8190||_0x2c8190(_0x5912a9);}}),_0x482e12;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x3b7474(_0x2daa41){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5b36c4,_0x162de5,_0x847c38,_0x111c14){super(_0x5b36c4);const _0x51bd3a=this['bindTemplate'],_0xad4955=function(_0x5751b5,_0x39dcef){const _0x3c989f=Array['from'](_0x39dcef['authors'])['filter'](_0x5bddaa=>_0x5bddaa!=_0x39dcef['creator']);return _0x39dcef['creator']&&_0x3c989f['unshift'](_0x39dcef['creator']),_0x3c989f['map'](_0x3369bf=>new ni(_0x5751b5,_0x3369bf,_0x3369bf==_0x39dcef['creator']));}(_0x5b36c4,_0x162de5);this['id']=_0x162de5['id'],this['_revision']=_0x162de5,this['_requireRevisionName']=_0x111c14,this['bind']('name','createdAt')['to'](_0x162de5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x19e9dd=>{return _0x12f8c4=_0x5b36c4['uiLanguage'],(_0x4c1548=_0x19e9dd)['toLocaleDateString'](_0x12f8c4,{'month':'long','day':'numeric'})+',\x20'+_0x4c1548['toLocaleTimeString'](_0x12f8c4,{'hour':'numeric','minute':'numeric'});var _0x12f8c4,_0x4c1548;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x5b36c4,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4d87b8=>_0x4d87b8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2679b8,_0x39caa3)=>_0x2679b8&&_0x39caa3),this['revisionActionsView']=_0x847c38&&_0x847c38['length']?ai(this,_0x847c38):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x51bd3a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x51bd3a['if']('isEnabled','ck-disabled',_0x3c9473=>!_0x3c9473),_0x51bd3a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x51bd3a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x51bd3a['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':_0x51bd3a['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':_0xad4955}]},this['revisionActionsView']],'on':{'click':_0x51bd3a['to'](_0x2c83d0=>{_0x2c83d0['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x25d37b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x25d37b,'change',()=>{this['_requireRevisionName']&&!_0x25d37b['value']||this['fire']('setName',{'id':this['id'],'name':_0x25d37b['value']}),_0x25d37b['value']||(_0x25d37b['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x50b5ab,_0x39abf9){const _0x3acf22=_0xad23d4['fromJSDate'](_0x50b5ab)['setLocale'](_0x39abf9),_0xea0898=_0xad23d4['local'](),_0x1a30a0=_0xea0898['minus']({'days':0x1})['startOf']('day');let _0xda406b,_0x1c08d2;return _0x3acf22['hasSame'](_0xea0898,'day')?(_0xda406b=_0x3acf22['startOf']('day')['toJSDate'](),_0x1c08d2=_0x3acf22['toRelativeCalendar']()):_0x3acf22['hasSame'](_0x1a30a0,'day')?(_0xda406b=_0x1a30a0['toJSDate'](),_0x1c08d2=_0x3acf22['toRelativeCalendar']()):_0x3acf22['hasSame'](_0xea0898,'week')?(_0xda406b=_0x3acf22['startOf']('week')['toJSDate'](),_0x1c08d2=_0x3acf22['weekdayLong']||''):_0x3acf22['hasSame'](_0xea0898,'year')?(_0xda406b=_0x3acf22['startOf']('month')['toJSDate'](),_0x1c08d2=_0x3acf22['monthLong']||''):(_0xda406b=_0x3acf22['startOf']('year')['toJSDate'](),_0x1c08d2=String(_0x3acf22['year'])),{'startDate':_0xda406b,'localizedPeriodName':_0x1c08d2};}class bi extends _0x2daa41{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x37e522,_0x4bf8cd,_0x5afc50,_0x1bdf4f){super(_0x37e522);const _0xcaceff=li(_0x4bf8cd,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4bf8cd,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5afc50,this['_requireRevisionName']=_0x1bdf4f,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':_0xcaceff}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x140d4e){const _0x133779=new _i(this['locale'],_0x140d4e,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x133779);}['removeRevision'](_0x42a02a){const _0x1eaf24=this['revisionViews']['find'](_0x2a55a8=>_0x2a55a8['id']===_0x42a02a['id']);this['revisionViews']['remove'](_0x1eaf24);}}class fi extends _0x2daa41{constructor(_0x487952){super(_0x487952);const _0x491ada=new _0x236d30();_0x491ada['content']=_0x3c4220,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x491ada,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x487952,'Revision\x20history')]}]});}}class di extends _0x2daa41{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x100b65,_0x4decad,_0xdc32d7,_0x3bf2c9){super(_0x100b65);const _0x40582b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4decad,this['_revisionActions']=_0xdc32d7,this['_requireRevisionName']=_0x3bf2c9,this['on']('select',(_0x20dfac,_0x34b7b9)=>{this['fire']('revisionSelected',_0x34b7b9);}),this['on']('setName',(_0x2bcaa6,_0x173f5c)=>{this['fire']('revisionSetName',_0x173f5c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x100b65),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x40582b['if']('isEnabled','ck-disabled',_0x19d476=>!_0x19d476)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3240d5 of this['_revisions'])this['_addRevision'](_0x3240d5);this['_revisions']['on']('add',(_0x5b0be4,_0x5cae65)=>{this['_addRevision'](_0x5cae65);}),this['_revisions']['on']('remove',(_0x1f4b86,_0x3c5962)=>{this['_removeRevision'](_0x3c5962);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x245cbf=>_0x245cbf['revisionViews']['map'](_0x19aee7=>_0x19aee7))['flat']();}['selectRevision'](_0x10ca36){for(const _0x30995d of this['revisionViews'])_0x10ca36&&_0x10ca36['id']===_0x30995d['id']?_0x30995d['select']():_0x30995d['deselect']();}['highlightRevisions'](_0x4176da){for(const _0x4a7d10 of this['revisionViews'])_0x4176da['some'](({id:_0xc0dfe6})=>_0xc0dfe6===_0x4a7d10['id'])?_0x4a7d10['highlight']():_0x4a7d10['unhighlight']();}['_addRevision'](_0x11ce87){const _0x2945ab=li(_0x11ce87['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16f112=this['timePeriodViews']['get'](0x0);_0x16f112&&_0x16f112['startDate']['getTime']()===_0x2945ab['getTime']()||(_0x16f112=new bi(this['locale'],_0x2945ab,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16f112)),_0x16f112['addRevision'](_0x11ce87);}['_removeRevision'](_0x51d136){const _0x24cbf6=li(_0x51d136['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x24cbf6)['removeRevision'](_0x51d136);}['_getTimePeriodViewByStartDate'](_0x112d5a){return this['timePeriodViews']['find'](_0x120a46=>_0x120a46['startDate']['getTime']()===_0x112d5a['getTime']());}}class d extends _0x357b2f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[
|
|
30
|
-
_0x262591(_0x15f11c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d945e,_0x1147e2){super(_0x1147e2),this['sourceElement']=_0x2d945e,this['model']['document']['createRoot']();const _0x1e82c8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1e82c8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xae7903,_0x2e4796){const _0x2b0001=new this(_0xae7903,_0x2e4796);return await _0x2b0001['initPlugins'](),await _0x2b0001['ui']['init'](_0xae7903),await _0x2b0001['data']['init'](_0x2b0001['config']['get']('initialData')||''),_0x2b0001['fire']('ready'),_0x2b0001;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x225e65{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bb7b9){function _0x431867(_0x5acdca){return _0x5acdca['map'](_0x2f1cc7=>String['fromCharCode'](_0x2f1cc7))['join']('');}super(_0x5bb7b9),this['result']='end',_0x5bb7b9[_0x431867([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431867([0x76,0x69,0x65,0x77])][_0x431867([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431867([0x61,0x75,0x74,0x6f]),_0x5bb7b9[_0x431867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x431867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431867([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x431867([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x431867([0x6f,0x6b])});}}class ct extends _0x225e65{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3470f3){if(super(_0x3470f3),!this['editor']['config']['get']('revisionHistory'))throw new _0x3880d2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x341bd0=>this['_showRevisionViewer']({..._0x341bd0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34db90=>this['_closeRevisionViewer'](_0x34db90)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b45c5=>this['_restoreRevision'](_0x3b45c5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4ff53e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4ff53e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2354e1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2354e1);}['getRevision'](_0x14b235){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14b235);}['getRevisions'](_0x20074e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x20074e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x269f34=this['editor'],_0x3bdd33=_0x15d8ee(_0x269f34,d),_0x20c2ab=_0x269f34['plugins']['get']('RevisionTracker'),_0x356eb2=_0x269f34['plugins']['get']('Users')['users'];return _0x3bdd33['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3bdd33['lazyRoots'],(_0x3bdd33['plugins']['push'](ht,l,u,class extends _0x225e65{static get['requires'](){return[l,'Users'];}['init'](){const _0x4c8f8c=this['editor']['plugins']['get']('Users');for(const _0x4be87d of _0x356eb2)_0x4be87d['isAnonymous']||_0x4c8f8c['getUser'](_0x4be87d['id'])||_0x4c8f8c['addUser'](_0x4be87d);const _0x25a3e7=_0x20c2ab['repository']['getRevisions']();let _0x579f0f=null;const _0x58f118=this['editor']['plugins']['get']('RevisionViewer');_0x58f118['adapter']=_0x20c2ab['adapter'],_0x58f118['bind']('isEnabled')['to'](_0x20c2ab),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x269f34,'isReadOnly',_0x11200e=>!_0x11200e);for(const _0x4aee4b of _0x25a3e7){const _0x50ea08=null===_0x4aee4b['creator'];if(_0x50ea08&&_0x4aee4b['toVersion']===_0x4aee4b['fromVersion'])continue;const _0x2c6120=_0x4aee4b['toJSON']();_0x58f118['addRevisionData'](_0x2c6120,(_0x45c146,_0x3c0429,_0x626e92)=>{if(_0x50ea08){if(_0x579f0f)_0x579f0f['_update'](_0x45c146,_0x3c0429);else{if(!_0x3c0429){const _0x497bb2=_0x626e92['toJSON']();_0x497bb2['id']=_0x5c7d64(),_0x20c2ab['saveRevision'](_0x497bb2,_0x626e92['toVersion'])['then'](_0x5d94ac=>{_0x579f0f=_0x5d94ac;});}}}else _0x4aee4b['_update'](_0x45c146,_0x3c0429);});}}},f),_0x3bdd33);}['_enhanceShowRevisionViewerCallback'](){const _0x12482c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x23a545=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3094a0=this['editor']['plugins']['get']('Autosave');await _0x3094a0['save']();}else await _0x23a545['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x38d95e=this['editor']['plugins']['get']('Dialog');_0x38d95e['isOpen']&&_0x38d95e['hide']();}const _0x1be270=this['_getRevisionViewerEditorConfig']();return _0x12482c(_0x1be270)['then'](_0x4559f9=>{return(this['_viewerEditor']=_0x4559f9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4559f9);})['catch'](_0x3f6630=>(console['error'](_0x3f6630),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x440fa3=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x440fa3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4bf4b3=this['editor']['plugins']['get']('Annotations');_0x4bf4b3['refreshVisibility'](),_0x4bf4b3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x56df05){const _0x570352=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xf27688=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x39a9f7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x39a9f7,_0x56df05)['then'](_0x3791a8=>(_0xf27688['style']['display']='block',_0x570352['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3791a8));}['_closeRevisionViewer'](_0x2acac9){const _0x3551a4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3551a4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2acac9['destroy']();}async['_restoreRevision'](_0x4ac3ce){const _0x1d9a29=this['editor'],_0x1b9dfe=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x10b32b=_0x1d9a29['plugins']['get']('RevisionTracker'),_0x520766=_0x1d9a29['plugins']['get']('RevisionHistoryUtils'),_0x2779d7=_0x1b9dfe['repository']['getRevision'](_0x4ac3ce);let _0x20dfe3,_0x2c88b0,_0x485177;try{await _0x520766['loadRevisionData'](_0x2779d7,this['adapter']),_0x20dfe3=_0x520766['getRevisionDocumentData'](_0x2779d7),_0x2c88b0=_0x520766['getRevisionRootsAttributes'](_0x2779d7);}catch(_0x535d74){return void console['error'](_0x535d74);}_0x1d9a29['model']['change'](_0xea6666=>{for(const _0x54d3a8 of Array['from'](_0x1d9a29['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xea6666['removeMarker'](_0x54d3a8);}),_0x1b9dfe['isReady']=!0x1,_0x1d9a29['model']['enqueueChange'](_0x2a664f=>{_0x2a664f['setSelection'](null),_0x2a664f['removeSelectionAttribute'](_0x1d9a29['model']['document']['selection']['getAttributeKeys']());const _0xe23fca=Object['keys'](_0x20dfe3);for(const _0x592617 of _0x1d9a29['model']['document']['roots'])'$graveyard'!=_0x592617['rootName']&&_0x592617['isAttached']()&&!_0xe23fca['includes'](_0x592617['rootName'])&&_0x2a664f['detachRoot'](_0x592617);for(const _0xfabfe4 of _0xe23fca){let _0x24fc61=_0x1d9a29['model']['document']['getRoot'](_0xfabfe4);_0x24fc61&&_0x24fc61['isAttached']()||(_0x24fc61=_0x2a664f['addRoot'](_0xfabfe4));const _0x1b86b7=_0x2c88b0[_0xfabfe4],_0x3e01e4=Object['keys'](_0x1b86b7),_0x895694=_0x20dfe3[_0xfabfe4];for(const _0x3d613b of _0x24fc61['getAttributeKeys']())_0x3e01e4['includes'](_0x3d613b)||_0x2a664f['removeAttribute'](_0x3d613b,_0x24fc61);for(const _0xeecc9c of _0x3e01e4)_0x2a664f['setAttribute'](_0xeecc9c,_0x2c88b0[_0xfabfe4][_0xeecc9c],_0x24fc61);_0x2a664f['remove'](_0x2a664f['createRangeIn'](_0x24fc61)),_0x2a664f['insert'](_0x1d9a29['data']['parse'](_0x895694,_0x24fc61),_0x24fc61,0x0);}});const _0x4616c7=R(_0x1d9a29['locale'],'Restored');if(_0x2779d7['name'])_0x485177=-0x1==_0x2779d7['name']['indexOf'](_0x4616c7)?_0x4616c7+':\x20'+_0x2779d7['name']:_0x2779d7['name'];else _0x485177=_0x4616c7+':\x20'+(_0x2779d7['createdAt']['toLocaleDateString'](_0x1d9a29['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2779d7['createdAt']['toLocaleTimeString'](_0x1d9a29['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x10b32b['saveRevision']({'name':_0x485177}),_0x1b9dfe['isReady']=!0x0,_0x1d9a29['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,wi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x5e803b){super(_0x5e803b),this['_revisionViewer']=_0x5e803b['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xbed636=this['_revisionsRepository']['_revisions'],_0x53d538=this['_createRevisionActions'](),_0x2a6185=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xbed636,_0x53d538,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',(_0x994ffe,_0x231dd4)=>{_0x231dd4['revisionViews']['on']('add',(_0x51f8d7,_0x3d29f4)=>{_0x3d29f4['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)),_0x2a6185['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5c456c=this['_revisionsRepository']['getRevision'](0x0);if(_0x5c456c){const _0x3fc467=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5c456c['id']);this['_revisionViewer']['compare'](_0x5c456c,_0x3fc467);}}['_handleRevisionSelected'](_0x49d7e2,_0x17e6a4){const _0x23fd74=this['_revisionsRepository']['getRevision'](_0x17e6a4['id']),_0x3d2c8e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x23fd74['id']);this['_revisionViewer']['compare'](_0x23fd74,_0x3d2c8e);}['_handleRevisionSetName'](_0x8ad9c8,_0x105b3a){this['_revisionsRepository']['getRevision'](_0x105b3a['id'])['setName'](_0x105b3a['name']);}['_handleDiffChange'](_0x5c04f0,_0x2d8a2b,_0x5e2f92){const _0x673ce7=this['_revisionsRepository']['getRevisionsInDiff'](_0x5e2f92);_0x673ce7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x673ce7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x673ce7[0x0]));}['_createRevisionActions'](){const _0x5a1c54=this['editor'],_0x172a51=d['availableRevisionActions'],_0xc975ff=_0x5a1c54['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xc975ff['length'])return _0xc975ff['map'](_0x506cad=>{const _0x4a7f18='string'==typeof _0x506cad?Object['assign']({},_0x172a51[_0x506cad]):_0x506cad;return _0x4a7f18['action']=_0x4a7f18['action']['bind'](this,_0x5a1c54),_0x4a7f18['isVisible']&&(_0x4a7f18['isVisible']=_0x4a7f18['isVisible']['bind'](this,_0x5a1c54)),_0x4a7f18;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2ee5ed},_0x4f53f5)=>{const _0x1b3be0=_0x2ee5ed['get'](u),_0x26d797=_0x1b3be0['repository'];let _0x11da09=_0x1b3be0['diff']['newRevisionId'],_0x247975=_0x4f53f5['id'];_0x26d797['getIndex'](_0x11da09)>_0x26d797['getIndex'](_0x247975)&&([_0x11da09,_0x247975]=[_0x247975,_0x11da09]),_0x1b3be0['compare'](_0x11da09,_0x247975);},'isVisible':({plugins:_0x1a526b},_0x104c43)=>{const _0xbd72f6=_0x1a526b['get'](u);return!(_0xbd72f6['repository']['getRevisionsInDiff'](_0xbd72f6['diff'])['length']>0x2)&&!_0x104c43['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x332e27,{id:_0x38b524})=>{_0x332e27['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38b524);},'isVisible':({plugins:_0x3250ee},_0x169e13)=>!!_0x3250ee['get'](u)['repository']['getLaterVisibleRevision'](_0x169e13['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4dcc3b},{id:_0x4680af,revisionNameView:_0x54d153})=>{const _0x3e1fa0=_0x4dcc3b['get'](u),_0x32e9ed=_0x3e1fa0['repository']['getEarlierVisibleRevision'](_0x4680af);_0x3e1fa0['compare'](_0x4680af,_0x32e9ed),_0x54d153['focus'](),_0x54d153['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x419d9b,_0x1d5817){super(_0x419d9b),this['_view']=_0x1d5817,this['_toolbarConfig']=st(_0x419d9b['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x2164dc){const _0xfb2f58=this['editor'],_0x53cc2c=this['view'],_0x1867ff=_0xfb2f58['editing']['view'],_0x1f2c56=_0x53cc2c['editable'],_0x348999=_0x1867ff['document']['getRoot']();_0x1f2c56['name']=_0x348999['rootName'],_0x53cc2c['render']();const _0x5b120c=_0x1f2c56['element'];this['setEditableElement'](_0x1f2c56['name'],_0x5b120c),_0x53cc2c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1867ff['attachDomRoot'](_0x5b120c),this['_elementReplacer']['replace'](_0x2164dc,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5016dd=this['view'],_0x9f4fcc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x9f4fcc['detachDomRoot'](_0x5016dd['editable']['name']),_0x5016dd['destroy']();}['_initToolbar'](){const _0x46cd2e=this['view'];_0x46cd2e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x46cd2e['stickyPanel']['limiterElement']=_0x46cd2e['element'],_0x46cd2e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3c833a})=>_0x3c833a),_0x46cd2e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x46cd2e['toolbar']);}}class ii extends _0x33aeb7{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5cf774,_0x5f07a1,_0x3e4c2a={}){super(_0x5cf774),this['stickyPanel']=new _0x28ec49(_0x5cf774),this['toolbar']=new _0x21e259(_0x5cf774,{'shouldGroupWhenFull':_0x3e4c2a['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5cf774,_0x5f07a1);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x2d4fb0(_0x381882){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb905e7,_0x1dcb62){super(_0x1dcb62),this['sourceElement']=_0xb905e7,this['model']['document']['createRoot']();const _0xc25644=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xc25644);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x34cab7,_0x19a84d){const _0x12a2b0=new this(_0x34cab7,_0x19a84d);return await _0x12a2b0['initPlugins'](),await _0x12a2b0['ui']['init'](_0x34cab7),await _0x12a2b0['data']['init'](_0x12a2b0['config']['get']('initialData')||''),_0x12a2b0['fire']('ready'),_0x12a2b0;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x357b2f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f0b86){function _0x380554(_0xef03b4){return _0xef03b4['map'](_0x53d8ae=>String['fromCharCode'](_0x53d8ae))['join']('');}super(_0x2f0b86),this['result']='end',_0x2f0b86[_0x380554([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x380554([0x76,0x69,0x65,0x77])][_0x380554([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x380554([0x61,0x75,0x74,0x6f]),_0x2f0b86[_0x380554([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x380554([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x380554([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x380554([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x380554([0x6f,0x6b])});}}class ct extends _0x357b2f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2f1cd3){if(super(_0x2f1cd3),!this['editor']['config']['get']('revisionHistory'))throw new _0x42f494('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x58274c=>this['_showRevisionViewer']({..._0x58274c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x406673=>this['_closeRevisionViewer'](_0x406673)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x23ea61=>this['_restoreRevision'](_0x23ea61)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1daad0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1daad0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x16910c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x16910c);}['getRevision'](_0x415bd9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x415bd9);}['getRevisions'](_0x31d44d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x31d44d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xdc4b8c=this['editor'],_0x4b8a65=_0x5286ee(_0xdc4b8c,p),_0x2eaeb0=_0xdc4b8c['plugins']['get']('RevisionTracker'),_0xc7e9c8=_0xdc4b8c['plugins']['get']('Users')['users'];return _0x4b8a65['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4b8a65['lazyRoots'],(_0x4b8a65['plugins']['push'](ht,u,v,class extends _0x357b2f{static get['requires'](){return[u,'Users'];}['init'](){const _0xf5020e=this['editor']['plugins']['get']('Users');for(const _0x2561df of _0xc7e9c8)_0x2561df['isAnonymous']||_0xf5020e['getUser'](_0x2561df['id'])||_0xf5020e['addUser'](_0x2561df);const _0x5d9f19=_0x2eaeb0['repository']['getRevisions']();let _0x27d8a5=null;const _0x2828d4=this['editor']['plugins']['get']('RevisionViewer');_0x2828d4['adapter']=_0x2eaeb0['adapter'],_0x2828d4['bind']('isEnabled')['to'](_0x2eaeb0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xdc4b8c,'isReadOnly',_0x1ef67a=>!_0x1ef67a);for(const _0x5732ed of _0x5d9f19){const _0x1b2a44=null===_0x5732ed['creator'];if(_0x1b2a44&&_0x5732ed['toVersion']===_0x5732ed['fromVersion'])continue;const _0x166742=_0x5732ed['toJSON']();_0x2828d4['addRevisionData'](_0x166742,(_0xed7cf7,_0x1eab52,_0x501119)=>{if(_0x1b2a44){if(_0x27d8a5)_0x27d8a5['_update'](_0xed7cf7,_0x1eab52);else{if(!_0x1eab52){const _0x17618c=_0x501119['toJSON']();_0x17618c['id']=_0x409a1e(),_0x2eaeb0['saveRevision'](_0x17618c,_0x501119['toVersion'])['then'](_0x208c31=>{_0x27d8a5=_0x208c31;});}}}else _0x5732ed['_update'](_0xed7cf7,_0x1eab52);});}}},d),_0x4b8a65);}['_enhanceShowRevisionViewerCallback'](){const _0x34068f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x440a02=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x39ba39=this['editor']['plugins']['get']('Autosave');await _0x39ba39['save']();}else await _0x440a02['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1eebaf=this['editor']['plugins']['get']('Dialog');_0x1eebaf['isOpen']&&_0x1eebaf['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x82eb26=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x202bc7 of _0x82eb26)_0x202bc7['class']=_0x202bc7['class']?_0x202bc7['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x3a329c=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3a329c&&_0x3a329c['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x383ef1=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x383ef1&&_0x383ef1['setAttribute']('tabindex','-1');}}const _0x48d37c=this['_getRevisionViewerEditorConfig']();return _0x34068f(_0x48d37c)['then'](_0x351ce1=>{return(this['_viewerEditor']=_0x351ce1,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x351ce1);})['catch'](_0x446820=>(console['error'](_0x446820),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1365d1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x518987=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2f21c8 of _0x518987)_0x2f21c8['class']='ck-tab-panel_disabled'===_0x2f21c8['class']?'':_0x2f21c8['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x2995e5=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2995e5&&_0x2995e5['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x50c675=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x50c675&&_0x50c675['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1365d1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x495ed9=this['editor']['plugins']['get']('Annotations');_0x495ed9['refreshVisibility'](),_0x495ed9['refreshPositioning']();}});});}['_showRevisionViewer'](_0x526a89){const _0x18d25b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2724ee=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e6b7f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x2e6b7f,_0x526a89)['then'](_0x31f0f5=>(_0x2724ee['style']['display']='block',_0x18d25b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x31f0f5));}['_closeRevisionViewer'](_0x230d35){const _0x5907b3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5907b3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x230d35['destroy']();}async['_restoreRevision'](_0x1e14a6){const _0x43a82b=this['editor'],_0x3e998c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4ab2db=_0x43a82b['plugins']['get']('RevisionTracker'),_0x4406ca=_0x43a82b['plugins']['get']('RevisionHistoryUtils'),_0x363b01=_0x3e998c['repository']['getRevision'](_0x1e14a6);let _0x42845c,_0x20f5f6,_0x525636;try{await _0x4406ca['loadRevisionData'](_0x363b01,this['adapter']),_0x42845c=_0x4406ca['getRevisionDocumentData'](_0x363b01),_0x20f5f6=_0x4406ca['getRevisionRootsAttributes'](_0x363b01);}catch(_0x5caf39){return void console['error'](_0x5caf39);}_0x43a82b['model']['change'](_0x5c6a54=>{for(const _0x1c0bfe of Array['from'](_0x43a82b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5c6a54['removeMarker'](_0x1c0bfe);}),_0x3e998c['isReady']=!0x1,_0x43a82b['model']['enqueueChange'](_0x44fe94=>{_0x44fe94['setSelection'](null),_0x44fe94['removeSelectionAttribute'](_0x43a82b['model']['document']['selection']['getAttributeKeys']());const _0x2df0c9=Object['keys'](_0x42845c);for(const _0x31fe62 of _0x43a82b['model']['document']['roots'])'$graveyard'!=_0x31fe62['rootName']&&_0x31fe62['isAttached']()&&!_0x2df0c9['includes'](_0x31fe62['rootName'])&&_0x44fe94['detachRoot'](_0x31fe62);for(const _0x5d9cbe of _0x2df0c9){let _0x39a580=_0x43a82b['model']['document']['getRoot'](_0x5d9cbe);_0x39a580&&_0x39a580['isAttached']()||(_0x39a580=_0x44fe94['addRoot'](_0x5d9cbe));const _0x30a953=_0x20f5f6[_0x5d9cbe],_0x168c65=Object['keys'](_0x30a953),_0x44a1d0=_0x42845c[_0x5d9cbe];for(const _0x52d492 of _0x39a580['getAttributeKeys']())_0x168c65['includes'](_0x52d492)||_0x44fe94['removeAttribute'](_0x52d492,_0x39a580);for(const _0x560b22 of _0x168c65)_0x44fe94['setAttribute'](_0x560b22,_0x20f5f6[_0x5d9cbe][_0x560b22],_0x39a580);_0x44fe94['remove'](_0x44fe94['createRangeIn'](_0x39a580)),_0x44fe94['insert'](_0x43a82b['data']['parse'](_0x44a1d0,_0x39a580),_0x39a580,0x0);}});const _0x171494=m(_0x43a82b['locale'],'Restored');if(_0x363b01['name'])_0x525636=-0x1==_0x363b01['name']['indexOf'](_0x171494)?_0x171494+':\x20'+_0x363b01['name']:_0x363b01['name'];else _0x525636=_0x171494+':\x20'+(_0x363b01['createdAt']['toLocaleDateString'](_0x43a82b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x363b01['createdAt']['toLocaleTimeString'](_0x43a82b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4ab2db['saveRevision']({'name':_0x525636}),_0x3e998c['isReady']=!0x0,_0x43a82b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|