@ckeditor/ckeditor5-revision-history 45.0.0-alpha.4 → 45.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/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 +11 -11
- 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 +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x590d6c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c308a){super(),this['id']=_0x5c308a['id']||_0x22d855(),this['creator']=_0x5c308a['creator']||null,this['authors']=_0x5c308a['authors']||[],this['diffData']=_0x5c308a['diffData']||null,this['toVersion']=_0x5c308a['toVersion']||0x0,this['fromVersion']=_0x5c308a['fromVersion']||0x0,this['set']('name',_0x5c308a['name']||''),this['set']('createdAt',_0x5c308a['createdAt']||new Date()),this['set']('attributes',_0x5c308a['attributes']||{});}['setName'](_0x4141df){this['_update']({'name':_0x4141df});}['setAttribute'](_0x32768d,_0x2f37a9){const _0xc1a94f=_0xa7d56a(this['attributes']);_0x1e0a95(_0xc1a94f,_0x32768d,_0x2f37a9),this['_update']({'attributes':_0xc1a94f});}['removeAttribute'](_0x2eb4ac){const _0x47a795=_0xa7d56a(this['attributes']);_0x78cd88(_0x47a795,_0x2eb4ac),this['_update']({'attributes':_0x47a795});}['_update'](_0x4edc9d,_0x4ea961=!0x1){let _0x2d5056=!0x1;const _0x2a6902={'id':this['id']},_0x1ccba7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4596e4 of _0x1ccba7){const _0xeb9f29=_0x4edc9d[_0x4596e4];void 0x0!==_0xeb9f29&&_0xeb9f29!==this[_0x4596e4]&&(this[_0x4596e4]=_0xeb9f29,_0x2a6902[_0x4596e4]=_0xeb9f29,_0x2d5056=!0x0);}_0x2d5056&&(_0x2a6902['authors']&&(_0x2a6902['authorsIds']=_0x2a6902['authors']['map'](_0x568953=>_0x568953['id']),delete _0x2a6902['authors']),this['fire']('_update',_0x2a6902,_0x4ea961));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x469897=>_0x469897['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x32d4e7{['_revisions'];static get['requires'](){return[_0x437ecf];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x19e059){super(_0x19e059),this['_revisions']=new _0x5427d4();}['afterInit'](){!async function(_0x1a9a9c){const _0x4c4f4d=_0x4f6df8([0x6b,0x6e,0x46,0x69,0x7a,0x66,0x6a,0x79,0x48,0x71,0x62,0x47,0x30,0x72,0x42,0x41,0x38,0x34,0x6d,0x77,0x31,0x4c,0x61,0x58,0x54,0x70,0x52,0x63,0x75,0x57,0x6f,0x4f,0x51,0x74,0x4e,0x55,0x43,0x33,0x44,0x59,0x45,0x4a,0x5a,0x64,0x56,0x37,0x76,0x39,0x35,0x78,0x68,0x49,0x73,0x36,0x53,0x65,0x4d,0x32,0x50,0x67,0x4b,0x6c]),_0x20df3e=0xeb829,_0x56131f=0x29bc3a08,_0x56921f=0x29bb5990^_0x56131f,_0x3eb23e=window[_0x4f6df8([0x44,0x61,0x74,0x65])][_0x4f6df8([0x6e,0x6f,0x77])](),_0x3a9343=_0x1a9a9c[_0x4f6df8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1da91e=new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349414=>{_0x3a9343[_0x4f6df8([0x6f,0x6e,0x63,0x65])](_0x4f6df8([0x72,0x65,0x61,0x64,0x79]),_0x349414);}),_0xfa32e9={[_0x4f6df8([0x6b,0x74,0x79])]:_0x4f6df8([0x45,0x43]),[_0x4f6df8([0x75,0x73,0x65])]:_0x4f6df8([0x73,0x69,0x67]),[_0x4f6df8([0x63,0x72,0x76])]:_0x4f6df8([0x50,0x2d,0x32,0x35,0x36]),[_0x4f6df8([0x78])]:_0x4f6df8([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]),[_0x4f6df8([0x79])]:_0x4f6df8([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]),[_0x4f6df8([0x61,0x6c,0x67])]:_0x4f6df8([0x45,0x53,0x32,0x35,0x36])},_0x5a1f4e=_0x3a9343[_0x4f6df8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f6df8([0x67,0x65,0x74])](_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2113fc(){let _0x4c1be6,_0x446f6c=null,_0x296650=null;try{if(_0x5a1f4e==_0x4f6df8([0x47,0x50,0x4c]))return _0x4f6df8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c1be6=_0x5e69f3(),!_0x4c1be6)return _0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c1be6[_0x4f6df8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x296650=_0x5de0ec(_0x4c1be6[_0x4f6df8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c1be6[_0x4f6df8([0x6a,0x74,0x69])])),await _0x46ab4d()?_0xfcbdfb()?_0x3734f9()?_0x4f6df8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x147900()?(_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6df8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x446f6c=_0x40a670(_0x4f6df8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6df8([0x74,0x72,0x69,0x61,0x6c])&&(_0x446f6c=_0x40a670(_0x4f6df8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39f67d()):_0x4f6df8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6df8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e6ef6){return _0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3734f9(){const _0x51a8a0=[_0x4f6df8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f6df8([0x74,0x72,0x69,0x61,0x6c])][_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3eb23e/0x3e8:0xe10*_0x56921f;return _0x4c1be6[_0x4f6df8([0x65,0x78,0x70])]<_0x51a8a0;}function _0xfcbdfb(){const _0x41a2eb=_0x4c1be6[_0x4f6df8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41a2eb)return!0x1;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x2a])))return!0x0;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x52,0x48])))return!0x0;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x52,0x52,0x48]))){if(_0x248087())return!0x0;if(_0x1c74d7()||_0x14d81c())return!0x0;}return!0x1;}function _0x147900(){const _0x377ab8=_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x377ab8||0x0==_0x377ab8[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf16a0}=new URL(window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x377ab8[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf16a0))return!0x0;const _0x1b3173=_0xf16a0[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e]));return _0x377ab8[_0x4f6df8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5005d9=>_0x5005d9[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x2a])))[_0x4f6df8([0x6d,0x61,0x70])](_0xc35a24=>_0xc35a24[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e])))[_0x4f6df8([0x73,0x6f,0x6d,0x65])](_0x5df515=>_0x1b3173[_0x4f6df8([0x65,0x76,0x65,0x72,0x79])]((_0x118562,_0x5f23a)=>_0x5df515[_0x5f23a]===_0x118562||_0x5df515[_0x5f23a]===_0x4f6df8([0x2a])));}function _0x39f67d(){return _0x446f6c&&_0x296650?new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10611a,_0xc7fa05)=>{_0x446f6c[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x10611a,_0xc7fa05),_0x296650[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x3feb70=>{_0x3feb70!=_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])&&_0x10611a(_0x3feb70);},_0xc7fa05);}):_0x446f6c||_0x296650||_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5de0ec(_0x115b4a,_0x4023ef){return new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d051c=>{if(_0x39e8ab())return _0x5d051c(_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]));_0x32949e(),_0x3a9343[_0x4f6df8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x128ee8=!0x1;const _0x5950b5=_0x22d855();function _0x316128(_0x31e5ff){return!!_0x31e5ff&&(typeof _0x31e5ff===_0x4f6df8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e5ff===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e5ff[_0x4f6df8([0x74,0x68,0x65,0x6e])]===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e5ff[_0x4f6df8([0x63,0x61,0x74,0x63,0x68])]===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7d24f1(_0x3d5880){_0x210fbb(_0x3d5880)[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x449b8c=>{if(!_0x449b8c||_0x449b8c[_0x4f6df8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f6df8([0x6f,0x6b]))return _0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f8e6f(_0x1f9eb3(_0x5950b5+_0x4023ef))!=_0x449b8c[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x99c5d6=>(_0xc656da(),_0x99c5d6),()=>{const _0x5d7efe=_0x44284d();return null==_0x5d7efe?(_0xc656da(),_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])):_0x4f6df8(_0x3eb23e-_0x5d7efe>(0xdb0be08^_0x56131f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x5d051c)[_0x4f6df8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ac5fc=0x298ad488^_0x56131f;function _0xc656da(){const _0x925f06=_0x4f6df8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f8e6f(_0x1f9eb3(_0x115b4a)),_0x25b147=_0x34f99b(_0x3f8e6f(window[_0x4f6df8([0x4d,0x61,0x74,0x68])][_0x4f6df8([0x63,0x65,0x69,0x6c])](_0x3eb23e/_0x4ac5fc)));window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6df8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x925f06,_0x25b147);}function _0x44284d(){const _0x277ae4=_0x4f6df8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f8e6f(_0x1f9eb3(_0x115b4a)),_0x41bbb8=window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6df8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x277ae4);return _0x41bbb8?window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34f99b(_0x41bbb8),0x10)*_0x4ac5fc:null;}function _0x210fbb(_0x1d0158){return new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e97ce,_0x1961be)=>{_0x1d0158[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x1e97ce,_0x1961be),window[_0x4f6df8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1961be,0x29bdeec8^_0x56131f);});}}_0x3a9343[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54930b,_0xa439aa)=>{if(_0xa439aa[0x0]!=_0x115b4a)return _0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa439aa[0x1]={..._0xa439aa[0x1],[_0x4f6df8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5950b5};},{[_0x4f6df8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6df8([0x68,0x69,0x67,0x68])}),_0x3a9343[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x416be3=>{_0x316128(_0x416be3[_0x4f6df8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x128ee8=!0x0,_0x7d24f1(_0x416be3[_0x4f6df8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f6df8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6df8([0x6c,0x6f,0x77])}),_0x1da91e[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>{_0x128ee8||_0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39e8ab(){return _0x3a9343[_0x4f6df8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6df8([0x76,0x69,0x65,0x77])][_0x4f6df8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f6df8([0x61,0x75,0x74,0x6f]);}function _0x32949e(){_0x3a9343[_0x4f6df8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6df8([0x76,0x69,0x65,0x77])][_0x4f6df8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f6df8([0x61,0x75,0x74,0x6f]);}}function _0x40a670(_0x3befe7){const _0x2b32e8=[new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8071=>setTimeout(_0x3b8071,0x29b504c4^_0x56131f)),_0x1da91e[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c44d8=>{const _0x7f0df7=0x29bc3a0f^_0x56131f,_0x4367e=_0x1a9a9c[_0x4f6df8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34cc40(){_0x4367e[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x7f0df7&&_0x3c44d8();}_0x34cc40(),_0x4367e[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x61,0x64,0x64]),_0x34cc40);})),new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505433=>{function _0x59e312(){for(const _0x52ac3d in window)if(window[_0x4f6df8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f6df8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x52ac3d))&&window[_0x52ac3d]==_0x20df3e)return _0x505433();_0x3a9343[_0x4f6df8([0x73,0x74,0x61,0x74,0x65])]!=_0x4f6df8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f6df8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59e312,0x29bc2980^_0x56131f);}_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x59e312();})];return window[_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f6df8([0x72,0x61,0x63,0x65])](_0x2b32e8)[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>_0x3befe7);}async function _0x5ed08d(){if(await _0x1da91e,_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3421f5=_0x1a9a9c[_0x4f6df8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x12ee49=_0x1a9a9c[_0x4f6df8([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])](_0x3421f5[_0x4f6df8([0x69,0x64])]),_0x58db33=_0x8dca6e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x58db33[_0x4f6df8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3421f5['id'],_0x12ee49?_0x12ee49['id']:null,!0x0),_0x58db33[_0x4f6df8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58db33[_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58db33[_0x4f6df8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x106116,void(_0x58db33[_0x4f6df8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x106116);}if(_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x117094=_0x8dca6e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x117094[_0x4f6df8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x117094[_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x117094[_0x4f6df8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x106116,_0x117094[_0x4f6df8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x106116;}_0x3a9343[_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6df8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x106116,_0x3a9343[_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6df8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x106116,_0x3a9343[_0x4f6df8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x248087(){return _0x512b4e(_0x4f6df8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8dca6e(_0x4f6df8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f6df8([0x73,0x74,0x61,0x74,0x65])]==_0x4f6df8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c74d7(){return _0x512b4e(_0x4f6df8([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 _0x14d81c(){return _0x512b4e(_0x4f6df8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x35bb70(_0x41ae3f){const _0x4bc407=_0x20df27();_0x3a9343[_0x4bc407]=_0x4f6df8([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])+_0x41ae3f,_0x41ae3f[_0x4f6df8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f6df8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20df27()]=_0x20df3e),_0x41ae3f!=_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed08d();}function _0x20df27(){const _0x136a33=window[_0x4f6df8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f6df8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f6df8([0x6e,0x6f,0x77])]())[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f6df8([0x2e]),'');let _0x70e4a3=_0x4f6df8([0x6b]);for(let _0x16fbc0=0x0;_0x16fbc0<_0x136a33[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16fbc0+=0x2){let _0x1345fe=window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136a33[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16fbc0,_0x16fbc0+0x2));_0x1345fe>=_0x4c4f4d[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1345fe-=_0x4c4f4d[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x70e4a3+=_0x4c4f4d[_0x1345fe];}return _0x70e4a3;}function _0x5e69f3(){const _0x45e502=_0x5a1f4e[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e]));if(0x3!=_0x45e502[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43d052(_0x45e502[0x1]);function _0x43d052(_0x51f205){const _0x1ce1e7=_0x116fc4(_0x51f205);return _0x1ce1e7&&_0x1b4066()?_0x1ce1e7:null;function _0x1b4066(){const _0x9e75ac=_0x1ce1e7[_0x4f6df8([0x6a,0x74,0x69])],_0x45b452=window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9e75ac[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9e75ac[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x477f03={..._0x1ce1e7,[_0x4f6df8([0x6a,0x74,0x69])]:_0x9e75ac[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9e75ac[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x477f03[_0x4f6df8([0x76,0x63])],_0x1f9eb3(_0x477f03)==_0x45b452;}}}async function _0x46ab4d(){let _0xeee0b7=!0x0;try{const _0x4b347e=_0x5a1f4e[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e])),[_0x3b7c8a,_0x1cda36,_0x59dc15]=_0x4b347e;return _0x77c586(_0x3b7c8a),await _0x1f079b(_0x3b7c8a,_0x1cda36,_0x59dc15),_0xeee0b7;}catch(_0x3fe56c){return!0x1;}function _0x77c586(_0x434c0f){const _0x5d7d02=_0x116fc4(_0x434c0f);_0x5d7d02&&_0x5d7d02[_0x4f6df8([0x61,0x6c,0x67])]==_0x4f6df8([0x45,0x53,0x32,0x35,0x36])||(_0xeee0b7=!0x1);}async function _0x1f079b(_0x4af325,_0x531f14,_0x43eaa9){const _0x3a2850=window[_0x4f6df8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f6df8([0x66,0x72,0x6f,0x6d])](_0x79a746(_0x43eaa9),_0x1e066d=>_0x1e066d[_0x4f6df8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b30a1=new window[(_0x4f6df8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f6df8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4af325+_0x4f6df8([0x2e])+_0x531f14),_0x249d48=window[_0x4f6df8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f6df8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x249d48)return;const _0x3a03ab=await _0x249d48[_0x4f6df8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f6df8([0x6a,0x77,0x6b]),_0xfa32e9,{[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x45,0x43,0x44,0x53,0x41]),[_0x4f6df8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f6df8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x249d48[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x45,0x43,0x44,0x53,0x41]),[_0x4f6df8([0x68,0x61,0x73,0x68])]:{[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a03ab,_0x3a2850,_0x3b30a1)||(_0xeee0b7=!0x1);}}function _0x116fc4(_0x334121){return _0x334121[_0x4f6df8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f6df8([0x65,0x79]))?JSON[_0x4f6df8([0x70,0x61,0x72,0x73,0x65])](_0x79a746(_0x334121)):null;}function _0x79a746(_0x10fb92){return window[_0x4f6df8([0x61,0x74,0x6f,0x62])](_0x10fb92[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f6df8([0x2b]))[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f6df8([0x2f])));}function _0x1f9eb3(_0xb3d0ef){let _0x4c6d29=0x1505;function _0x509bce(_0x5576b6){for(let _0x57e801=0x0;_0x57e801<_0x5576b6[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57e801++){const _0x3a0863=_0x5576b6[_0x4f6df8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57e801);_0x4c6d29=(_0x4c6d29<<0x5)+_0x4c6d29+_0x3a0863,_0x4c6d29&=_0x4c6d29;}}function _0x326144(_0xeeb12c){Array[_0x4f6df8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xeeb12c)?_0xeeb12c[_0x4f6df8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x326144):_0xeeb12c&&typeof _0xeeb12c==_0x4f6df8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f6df8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xeeb12c)[_0x4f6df8([0x73,0x6f,0x72,0x74])]()[_0x4f6df8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25c50b,_0x52b3f4])=>{_0x509bce(_0x25c50b),_0x326144(_0x52b3f4);}):_0x509bce(window[_0x4f6df8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xeeb12c));}return _0x326144(_0xb3d0ef),_0x4c6d29>>>0x0;}function _0x3f8e6f(_0x2f2efe){return _0x2f2efe[_0x4f6df8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f6df8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f6df8([0x30]));}function _0x34f99b(_0x29b3ca){return _0x29b3ca[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f6df8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f6df8([0x6a,0x6f,0x69,0x6e])]('');}function _0x512b4e(_0x304bd9){return _0x3a9343[_0x4f6df8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6df8([0x68,0x61,0x73])](_0x304bd9);}function _0x8dca6e(_0x1721dd){return _0x3a9343[_0x4f6df8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6df8([0x67,0x65,0x74])](_0x1721dd);}function _0x106116(){}function _0x4f6df8(_0x3fd59f){return _0x3fd59f['map'](_0x11c488=>String['fromCharCode'](_0x11c488))['join']('');}_0x35bb70(await _0x2113fc());}(this);}['createRevision'](_0x2fc0e){const _0xea89f9=this['editor']['plugins']['get']('Users');return new h({'id':_0x2fc0e['id'],'name':_0x2fc0e['name'],'creator':_0x2fc0e['creatorId']?_0xea89f9['getUser'](_0x2fc0e['creatorId']):null,'diffData':_0x2fc0e['diffData']||_0x2fc0e['data'],'authors':_0x2fc0e['authorsIds']['map'](_0x164ed8=>_0xea89f9['getUser'](_0x164ed8)),'createdAt':new Date(_0x2fc0e['createdAt']),'attributes':_0x2fc0e['attributes'],'fromVersion':_0x2fc0e['fromVersion'],'toVersion':_0x2fc0e['toVersion']});}['addRevision'](_0x55484a,_0x30521f=0x0){this['_revisions']['add'](_0x55484a,_0x30521f);}['getRevision'](_0x2ef414){return this['_revisions']['get'](_0x2ef414);}['getRevisions'](_0x26954c={'toJSON':!0x1}){const _0x10d57a=Array['from'](this['_revisions']);return _0x10d57a['reverse'](),_0x26954c['toJSON']?_0x10d57a['map'](_0x4d6c28=>_0x4d6c28['toJSON']()):_0x10d57a;}['getIndex'](_0x4917fa){return this['_revisions']['getIndex'](_0x4917fa);}['getEarlierVisibleRevision'](_0x3fc70b){const [,_0x2b0448]=this['getRevisionsIterator'](_0x3fc70b,{'direction':'earlier'});return _0x2b0448;}['getLaterVisibleRevision'](_0x563907){const [,_0x44c601]=this['getRevisionsIterator'](_0x563907,{'direction':'later'});return _0x44c601;}['getRevisionsInDiff'](_0x19012a){const _0x5bb336=[];for(const _0x297608 of this['getRevisionsIterator'](_0x19012a['newRevisionId']))if(_0x5bb336['push'](_0x297608),_0x297608['id']===_0x19012a['oldRevisionId'])break;return _0x5bb336;}*['getRevisionsIterator'](_0x72fe2c,{direction:_0x46ecf9='earlier',filter:_0x412325=()=>!0x0}={}){const _0x15642d='earlier'===_0x46ecf9?0x1:-0x1;let _0x5ed259=this['_revisions']['get'](_0x72fe2c),_0x44b318=this['getIndex'](_0x5ed259);for(yield _0x5ed259;_0x5ed259;){if(_0x44b318+=_0x15642d,_0x5ed259=this['getRevision'](_0x44b318),!_0x5ed259)return;_0x412325(_0x5ed259)&&(yield _0x5ed259);}}}class V extends _0x32d4e7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x19c319,'c'],[_0x168c64,'a'],[_0x16db82,'e'],[_0x1de83e,'r'],[_0x5d4a4a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x19c319],['a',_0x168c64],['e',_0x16db82],['r',_0x1de83e],['u',_0x5d4a4a]]);async['loadRevisionData'](_0x389906,_0x458f29){if(_0x389906['diffData']||!_0x458f29)return;const _0x54ee7a=this['editor']['config']['get']('collaboration.channelId'),_0x433fa2=await _0x458f29['getRevision']({'channelId':_0x54ee7a,'revisionId':_0x389906['id']});_0x389906['diffData']=_0x433fa2['diffData'];}['getRevisionDocumentData'](_0x203f35){const _0x27500d={};for(const _0x4940e5 in _0x203f35['diffData']){if(_0x203f35['diffData'][_0x4940e5]['attachChange']&&!_0x203f35['diffData'][_0x4940e5]['attachChange']['isAttached'])continue;const _0x446678=this['_removeRevisionMarkers'](JSON['parse'](_0x203f35['diffData'][_0x4940e5]['insertions'])),_0xb60393=this['editor']['editing']['view']['document'],_0xc32836=new _0xeaabde(_0xb60393,_0x446678['map'](_0x60c767=>this['_getViewFromDiffObj'](_0x60c767,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27500d[_0x4940e5]=this['editor']['data']['processor']['toData'](_0xc32836),this['editor']['data']['processor']['useFillerType']('default');}return _0x27500d;}['getRevisionRootsAttributes'](_0x5d829a){const _0x3f8565={};for(const _0x41b222 in _0x5d829a['diffData'])_0x5d829a['diffData'][_0x41b222]['attachChange']&&!_0x5d829a['diffData'][_0x41b222]['attachChange']['isAttached']||(_0x3f8565[_0x41b222]=_0x5d829a['diffData'][_0x41b222]['attributesAfter']||{});return _0x3f8565;}['_getTypeCharForViewElement'](_0x54be90){return this['_viewClassToTypeChar']['get'](_0x54be90['constructor']);}['_getViewFromDiffObj'](_0x4be422,_0x295b91){const _0x39ddbc=this['editor']['editing']['view']['document'];if('string'==typeof _0x4be422)return new _0x48eb00(_0x39ddbc,_0x4be422);{let _0x380c27,_0x41838c;_0x41838c='u'==_0x4be422['type']||'r'==_0x4be422['type']?[]:_0x4be422['children']['map'](_0x17d800=>this['_getViewFromDiffObj'](_0x17d800,_0x295b91));const _0x1480dd=this['_typeCharToViewClass']['get'](_0x4be422['type'])||_0x21c394,_0x5666fb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x380c27=new _0x1480dd(_0x39ddbc,_0x4be422['name'],_0x4be422['attributes'],_0x41838c),'u'==_0x4be422['type']){const _0x44f0d7=_0x4be422['children'][0x0];if(_0x380c27['render']=function(_0x25cdf2){const _0x43bfd0=_0x25cdf2['createElement']('div');return _0x43bfd0['innerHTML']=_0x44f0d7,_0x43bfd0['childNodes'][0x0];},_0x295b91){const _0x590dd6=new _0xeaabde(_0x39ddbc);_0x590dd6['_appendChild'](_0x380c27);const _0x416d4f=Array['from'](_0x5666fb['viewChildrenToDom'](_0x590dd6,{'bind':!0x1})),_0x9539d1=_0x5666fb['domDocument']['createElement']('div');_0x9539d1['append'](..._0x416d4f),_0x380c27=Array['from'](_0x5666fb['domChildrenToView'](_0x9539d1))[0x0];}}else{if('r'==_0x4be422['type']){const _0x138598=_0x4be422['children'][0x0];if(_0x380c27['render']=function(_0x1795c5){_0x1795c5['innerHTML']=_0x138598;},_0x295b91){const _0x372d44=new _0xeaabde(_0x39ddbc);_0x372d44['_appendChild'](_0x380c27);const _0x4cd074=Array['from'](_0x5666fb['viewChildrenToDom'](_0x372d44,{'bind':!0x1})),_0x2e1a82=_0x5666fb['domDocument']['createElement']('div');_0x2e1a82['append'](..._0x4cd074);const _0x53dcbf=Array['from'](_0x5666fb['domChildrenToView'](_0x2e1a82));_0x53dcbf['length']>0x1?_0x380c27['_appendChild'](_0x53dcbf):_0x380c27=_0x53dcbf[0x0];}}}if(_0x4be422['customProperties']){for(const [_0x44a4cb,_0x9f713f]of _0x4be422['customProperties'])_0x380c27['_setCustomProperty'](_0x44a4cb,_0x9f713f);}const _0x4fc5f6=_0x4be422['fillerOffset']||null;return _0x380c27['getFillerOffset']=()=>_0x4fc5f6,_0x380c27;}}['_makeModelFromViewString'](_0x3c59f2){const _0x56fc26=JSON['parse'](_0x3c59f2),_0x224195=this['editor']['editing']['view']['document'],_0x279af7=new _0xeaabde(_0x224195,_0x56fc26['map'](_0x597710=>this['_getViewFromDiffObj'](_0x597710,!0x0)));return this['editor']['data']['toModel'](_0x279af7);}['_removeRevisionMarkers'](_0x2f1a76){return(_0x2f1a76=_0x2f1a76['filter'](_0x3e09ad=>!_0x3e09ad['name']||'revision-start'!==_0x3e09ad['name']&&'revision-end'!==_0x3e09ad['name']))['forEach'](_0x8d0f15=>{'string'!=typeof _0x8d0f15&&(_0x8d0f15['children']=this['_removeRevisionMarkers'](_0x8d0f15['children']),_0x8d0f15['attributes']=_0x8d0f15['attributes']['filter'](_0x5c6525=>!_0x5c6525[0x0]['startsWith']('data-revision-')));}),_0x2f1a76;}}function g(_0x4d96ad,_0x473158,_0x2f4276){const t=_0x4d96ad['t'];switch(_0x473158){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'},_0x2f4276);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f4276);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x32d4e7{['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[_0x437ecf,I,V,_0x1ef31a];}constructor(_0x9111b4){super(_0x9111b4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x50ec70=_0x22d855();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50ec70},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 _0x2e7724=this['repository']['getRevision'](0x0),_0x5d8fed=_0x2e7724&&null===_0x2e7724['creator']?_0x2e7724:null;if(this['_continueCurrentRevision']=!!_0x5d8fed&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3cb015=this['_source']['getCurrentRevisionId'](),_0x567d61=this['repository']['getRevision'](_0x3cb015);if(_0x567d61)this['_startingVersion']=_0x567d61['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1a3429=this['_source']['history']['_operations']['find'](_0x21f5e1=>!_0x21f5e1['_isInit']),_0x35d271=_0x1a3429?_0x1a3429['baseVersion']:this['_source']['history']['version'];_0x2e7724?(_0x2e7724['toVersion']<_0x35d271&&_0x2e7724['_update']({'toVersion':_0x35d271}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id'],this['_startingVersion']=_0x5d8fed['fromVersion']):(this['_startingVersion']=_0x2e7724['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x35d271,this['_continueCurrentRevision']=!0x1);}}else _0x5d8fed&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5d8fed['toVersion'],this['editor']['model']['document']['history']['version']),_0x5d8fed['fromVersion']===_0x5d8fed['toVersion']?(0x0!==_0x5d8fed['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id'],this['_startingVersion']=_0x5d8fed['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',_0x2ad24f=>!_0x2ad24f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x480e6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f63b7;for(const _0x4fda05 in _0x480e6e){const _0x62511c=_0x4fda05,_0x46b983=_0x480e6e[_0x62511c];if('revisionHistoryLicenseKeyValid'==_0x46b983||'revisionHistoryLicenseKeyInvalid'==_0x46b983||'revisionHistoryLicenseKeyExpired'==_0x46b983||'revisionHistoryLicenseKeyDomainLimit'==_0x46b983||'revisionHistoryLicenseKeyNotAllowed'==_0x46b983||'revisionHistoryLicenseKeyEvaluationLimit'==_0x46b983||'revisionHistoryLicenseKeyTrialLimit'==_0x46b983||'revisionHistoryLicenseKeyUsageLimit'==_0x46b983){delete _0x480e6e[_0x62511c],_0x2f63b7=_0x46b983,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2f63b7&&_0x480e6e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2f63b7&&_0x480e6e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2f63b7&&_0x480e6e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe4db90=this['repository']['getRevision'](0x0),_0x42ad16=await this['getRevisionDocumentData'](_0xe4db90),_0x40a80e=await this['getRevisionRootsAttributes'](_0xe4db90);this['_replaceEditorDataWithRevisionData'](_0x42ad16,_0x40a80e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5aa4e9){this['_source']=_0x5aa4e9;}async['update'](){const _0x5a2269=await this['_source']['getLatestVersion']();if(_0x5a2269>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2263b9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a2269});_0x2263b9['authors']=_0x2263b9['authorsIds']['map'](_0x39612e=>this['editor']['plugins']['get']('Users')['getUser'](_0x39612e)),this['currentRevision']['_update'](_0x2263b9);}}async['saveRevision'](_0x3d9a21={},_0x125539=null){const _0x2eabd7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x125539>this['currentRevision']['toVersion']&&(_0x125539=null),null===_0x125539&&(_0x125539=await this['_source']['getLatestVersion']());const _0x5dc268=this['_getFromVersion'](_0x125539),_0x402f82=this['buildRevisionData']({'from':_0x5dc268,'to':_0x125539});if(this['currentRevision']['toVersion']<_0x125539){const _0x4ee372=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x125539,'to':_0x125539});_0x4ee372['authors']=[],_0x4ee372['authorsIds']=[],_0x4ee372['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ee372,!0x0),delete _0x4ee372['authors'],_0x2eabd7['push'](_0x4ee372);}_0x3d9a21['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d9a21['name']=_0x3d9a21['name']||null,_0x3d9a21['id']=_0x3d9a21['id']||_0x22d855(),_0x3d9a21={..._0x3d9a21,..._0x402f82};const _0x50d8ab=this['addRevisionData'](_0x3d9a21);_0x2eabd7['push'](_0x3d9a21);const _0x23d46e=this['repository']['getIndex'](_0x50d8ab);if(0x0!==_0x23d46e){const _0x3389cb=this['repository']['getRevision'](_0x23d46e-0x1);if(_0x3389cb['fromVersion']!==_0x125539){const _0x3fb3ec=this['_revisionDataBuilder']['getData'](_0x125539,_0x3389cb['toVersion']),_0x5c37c3={'id':_0x3389cb['id'],'diffData':_0x3fb3ec['diffData'],'authorsIds':_0x3fb3ec['authorsIds'],'authors':_0x3fb3ec['authorsIds']['map'](_0x469429=>this['editor']['plugins']['get']('Users')['getUser'](_0x469429)),'fromVersion':_0x125539};_0x3389cb===this['currentRevision']&&(_0x5c37c3['createdAt']=new Date(_0x3d9a21['createdAt']['getTime']()+0xa)),_0x3389cb['_update'](_0x5c37c3,!0x0),delete _0x5c37c3['authors'],_0x2eabd7['push'](_0x5c37c3);}}if(this['adapter']){for(const _0x216c6c of _0x2eabd7)this['_bufferUpdate'](_0x216c6c['id'],_0x216c6c,!0x0);this['sendBufferedUpdates']();}return _0x50d8ab;}['addRevisionData'](_0x2cbf6f){const _0x43ff4e=this['repository']['createRevision'](_0x2cbf6f);return this['adapter']&&_0x43ff4e['on']('_update',(_0x37e472,_0x29fb0e,_0x56a01b)=>{_0x56a01b||(this['_bufferUpdate'](_0x29fb0e['id'],_0x29fb0e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x43ff4e,this['_findInsertionIndex'](_0x43ff4e)),_0x43ff4e;}async['getRevisionDocumentData'](_0x3b76a3){return await this['_utils']['loadRevisionData'](_0x3b76a3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b76a3);}async['getRevisionRootsAttributes'](_0x41fbb7){return await this['_utils']['loadRevisionData'](_0x41fbb7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x41fbb7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xc8ec2c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e7757=0x0;_0x2e7757<_0xc8ec2c['length'];_0x2e7757++){const _0x3416fb=_0xc8ec2c[_0x2e7757];let _0x1940ab=!0x1;for(const _0x2ec3e6 of Object['keys'](_0x3416fb))void 0x0===_0x3416fb[_0x2ec3e6]?delete _0x3416fb[_0x2ec3e6]:'id'!==_0x2ec3e6&&(_0x1940ab=!0x0);_0x1940ab||(_0xc8ec2c[_0x2e7757]=null);}if(_0xc8ec2c=_0xc8ec2c['filter'](_0x4fcb13=>null!==_0x4fcb13),!_0xc8ec2c['length'])return;for(let _0x36a061=0x0;_0x36a061<_0xc8ec2c['length'];_0x36a061++){const _0x52588f=_0xc8ec2c[_0x36a061];void 0x0!==_0x52588f['fromVersion']&&void 0x0===_0x52588f['toVersion']&&(_0x52588f['toVersion']=this['repository']['getRevision'](_0x52588f['id'])['toVersion']),void 0x0!==_0x52588f['toVersion']&&void 0x0===_0x52588f['fromVersion']&&(_0x52588f['fromVersion']=this['repository']['getRevision'](_0x52588f['id'])['fromVersion']);}const _0x2bca7c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xc8ec2c,_0x2bca7c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x566d08=>{if(_0x566d08){for(const _0x3ac09e of _0x566d08)this['setRevisionData']({'id':_0x3ac09e['id'],'createdAt':_0x3ac09e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1ab63f=null,from:_0x1db71c=null,to:_0x1fda39=null}){_0x1db71c=null!==_0x1db71c?_0x1db71c:_0x1ab63f['fromVersion'],_0x1fda39=null!==_0x1fda39?_0x1fda39:_0x1ab63f['toVersion'];const _0x59c759=this['_revisionDataBuilder']['getData'](_0x1db71c,_0x1fda39),_0x3883d8={'diffData':_0x59c759['diffData'],'authorsIds':_0x59c759['authorsIds'],'fromVersion':_0x1db71c,'toVersion':_0x1fda39};if(!_0x1ab63f||_0x1fda39!==_0x1ab63f['toVersion']){const _0x55ec65=_0x1fda39-0x1,_0x4b43ae=this['_source']['history']['getOperation'](_0x55ec65);_0x3883d8['createdAt']=_0x4b43ae&&_0x4b43ae['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1db71c===this['_loadedStateData']['fromVersion']){for(const _0x335c53 of this['_loadedStateData']['authors'])_0x3883d8['authorsIds']['includes'](_0x335c53['id'])||_0x3883d8['authorsIds']['push'](_0x335c53['id']);}return _0x3883d8;}['_bufferUpdate'](_0x3e1cfd,_0xd24a8a,_0x52c708){if(this['_bufferedUpdates']['has'](_0x3e1cfd)){const _0x48f240=this['_bufferedUpdates']['get'](_0x3e1cfd);_0xd24a8a=_0x52c708?{..._0x48f240,..._0xd24a8a}:{..._0xd24a8a,..._0x48f240};}this['_bufferedUpdates']['set'](_0x3e1cfd,_0xd24a8a);}['setRevisionData'](_0x3c6a2c){const _0x21fead=this['repository']['getRevision'](_0x3c6a2c['id']);if(_0x3c6a2c['createdAt']&&(_0x3c6a2c['createdAt']=new Date(_0x3c6a2c['createdAt'])),_0x3c6a2c['authorsIds']){const _0x4c3569=this['editor']['plugins']['get']('Users');_0x3c6a2c['authors']=_0x3c6a2c['authorsIds']['map'](_0x36cc33=>_0x4c3569['getUser'](_0x36cc33));}_0x21fead['_update'](_0x3c6a2c,!0x0);}['_createInitialRevision'](_0x1cf4d8){const _0x16ce64=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x16ce64)this['_initialRevisionId']=_0x16ce64['id'];else{const _0x59609b=!this['editor']['model']['document']['roots']['find'](_0x1c3c94=>this['editor']['model']['hasContent'](_0x1c3c94)),_0x257d3e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b16d1=g(this['editor']['locale'],_0x59609b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1cf4d8,'to':_0x1cf4d8,'id':this['_initialRevisionId'],'name':_0x2b16d1,'creatorId':_0x257d3e});}}['_createCurrentRevision'](_0x5bf958){const _0x291876=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x291876),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5bf958,'to':_0x5bf958,'id':_0x291876,'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'](_0x20598c,_0x474390){let _0x42bc97=this['editor']['config']['get']('initialData'),_0x284fe5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x42bc97){_0x42bc97={};for(const _0x210132 of this['editor']['model']['document']['getRootNames']())_0x42bc97[_0x210132]='';}if('string'==typeof _0x42bc97&&(_0x42bc97={'main':_0x42bc97}),void 0x0===_0x284fe5){_0x284fe5={};for(const _0x341108 of this['editor']['model']['document']['getRootNames']())_0x284fe5[_0x341108]={};}let _0x519bf4=!0x1;const _0x7ec46c=Object['keys'](_0x42bc97),_0x4405c7=Object['keys'](_0x20598c);for(const _0x3c0d4d of _0x7ec46c){if(_0x42bc97[_0x3c0d4d]!==_0x20598c[_0x3c0d4d]&&''!==_0x42bc97[_0x3c0d4d]['trim']()){_0x519bf4=!0x0;break;}if(!_0x4c7a8e(_0x284fe5[_0x3c0d4d],_0x474390[_0x3c0d4d])&&Object['keys'](_0x284fe5[_0x3c0d4d])['length']>0x0){_0x519bf4=!0x0;break;}}_0x519bf4||(_0x519bf4=_0x4405c7['some'](_0x54d5b8=>!this['editor']['model']['document']['getRoot'](_0x54d5b8))),_0x519bf4&&_0x25ae0a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42bc97,'editorRootsAttributes':_0x284fe5,'revisionData':_0x20598c,'revisionRootsAttributes':_0x474390}),this['editor']['config']['set']('initialData',_0x20598c),this['editor']['config']['set']('rootsAttributes',_0x474390);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x10dabe=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x10dabe['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1aac8a){const _0xcdd869=this['repository']['getRevisions']();_0xcdd869['reverse']();let _0x5e0057=0x0;for(;_0x5e0057<_0xcdd869['length'];){const _0x4374d5=_0xcdd869[_0x5e0057];if(_0x4374d5===this['currentRevision']){_0x5e0057++;continue;}if(_0x4374d5['id']===this['_initialRevisionId'])break;const _0x37ec55=_0x1aac8a['toVersion']-_0x4374d5['toVersion']||_0x1aac8a['fromVersion']-_0x4374d5['fromVersion'];if(_0x37ec55>0x0)break;if(_0x37ec55<0x0)_0x5e0057++;else{if(!_0x1aac8a['creator']&&_0x4374d5['creator'])break;if(_0x4374d5['creator']||!_0x1aac8a['creator']){if(_0x1aac8a['createdAt']>_0x4374d5['createdAt'])break;_0x5e0057++;}else _0x5e0057++;}}return _0x5e0057;}['_getFromVersion'](_0x55f196){const _0x49d0d0=this['repository']['getRevisions']();_0x49d0d0['reverse'](),_0x49d0d0['shift']();const _0x45005b=_0x49d0d0['find'](_0x75190c=>_0x75190c['toVersion']<=_0x55f196)['toVersion'];return _0x45005b<this['_startingVersion']?this['_startingVersion']:_0x45005b;}['_makeRevision']({name:_0x1a5ffd,from:_0x198784,to:_0xf7835,creatorId:_0x329895,id:_0x286e8e}){const _0x46e655=this['buildRevisionData']({'from':_0x198784,'to':_0xf7835});_0x46e655['name']=_0x1a5ffd,_0x46e655['creatorId']=_0x329895,_0x46e655['id']=_0x286e8e;const _0x2e90de=this['addRevisionData'](_0x46e655);return this['adapter']&&this['_bufferUpdate'](_0x46e655['id'],_0x46e655,!0x0),_0x2e90de;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x33d422){this['editor']=_0x33d422,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'](_0x2fc63c){this['source']=_0x2fc63c;const _0x184993=new Map(),_0x2b718c=new Map(),_0x2106e6=this['editor']['model']['document']['roots']['map'](_0x7b0100=>_0x7b0100['rootName']);for(const _0xadc2df of _0x2106e6){const _0x5c23b7=this['editor']['model']['document']['getRoot'](_0xadc2df),_0x4c0bdd=N(_0x5c23b7);_0x184993['set'](_0xadc2df,_0x4c0bdd),_0x2b718c['set'](_0xadc2df,Object['fromEntries'](_0x5c23b7['getAttributes']()));}const _0x375b79=Array['from'](this['editor']['model']['markers'])['map'](_0x2b6371=>[_0x2b6371['name'],_0x2b6371['getRange']()]),_0x81939f=this['source']['version'];this['_saveMetaData'](_0x81939f,_0x184993,_0x375b79,_0x2b718c),this['_startingRevisionId']=this['_revisionId'];const _0x476fd6=new Map(),_0x3c7618=new Map();for(const _0x58ca10 of _0x2106e6){const _0x470a0e=P(_0x58ca10);_0x476fd6['set'](_0x58ca10,_0x470a0e),_0x3c7618['set'](_0x58ca10,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x476fd6,[],_0x3c7618);}['getData'](_0x35d3a6,_0x12f1db){if(this['_lastFrom']===_0x35d3a6&&this['_lastTo']<=_0x12f1db)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x12f1db,!0x0);else{if(!this['_savedMetaData']['has'](_0x35d3a6)){const _0x4318c6=this['_getPreviousFrom'](_0x35d3a6);this['_calculateMetaData'](_0x4318c6,_0x35d3a6,!0x1);}this['_calculateMetaData'](_0x35d3a6,_0x12f1db,!0x0);}return this['_lastFrom']=_0x35d3a6,this['_lastTo']=_0x12f1db,this['_getState']();}['loadState'](_0x5e595e){const _0x52123b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5e595e['fromVersion'],this['_lastTo']=_0x5e595e['toVersion'];for(const _0x448d in _0x5e595e['diffData']){const _0x5d02e0=_0x5e595e['diffData'][_0x448d]['attachChange'],_0x2a722d=_0xa7d56a(_0x5e595e['diffData'][_0x448d]['attributesBefore'])||{},_0x131df8=_0x52123b['_makeModelFromViewString'](_0x5e595e['diffData'][_0x448d]['deletions']);_0x131df8['rootName']=_0x448d,_0x131df8['_isAttached']=!_0x5d02e0||!_0x5d02e0['isAttached'],_0x131df8['isAttached']=()=>_0x131df8['_isAttached'],this['_baseRoots']['set'](_0x448d,_0x131df8),this['_baseRootsAttributes']['set'](_0x448d,_0x2a722d),_0x5d02e0&&this['_touchedRoots']['set'](_0x448d,_0x5d02e0);const _0x5a48c0=this['_makeIdsRoot'](_0x131df8);this['_baseIdsRoots']['set'](_0x448d,_0x5a48c0);for(const [_0x41f979,_0x2e9ebe]of _0x131df8['markers']){if(!_0x41f979['startsWith']('revision:'))continue;const _0x551d10=_0x41f979['split'](':')[0x2];for(const _0x38c18d of _0x2e9ebe['getWalker']({'singleCharacters':!0x0})){const _0x319104=this['_getVidAttributeName'](_0x38c18d),_0x2bb368='elementEnd'==_0x38c18d['type']?_0x38c18d['previousPosition']['path']['slice'](0x0,-0x1):_0x38c18d['previousPosition']['path'],_0x2edc5e=_0x5a48c0['getNodeByPath'](_0x2bb368)['getAttribute'](_0x319104);this['_touched']['set'](_0x2edc5e,{'userId':_0x551d10});}}}this['_startingRevisionId']=this['_revisionId'];const _0x41b34a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1570e7=>!this['_touched']['has'](_0x1570e7));let _0x311c49=0x0;const _0x55159f=new Map();for(const _0x504f98 in _0x5e595e['diffData']){const _0x5f9aaa=_0x5e595e['diffData'][_0x504f98]['attachChange'],_0x262d71=_0xa7d56a(_0x5e595e['diffData'][_0x504f98]['attributesAfter'])||{},_0x3b47e5=_0x52123b['_makeModelFromViewString'](_0x5e595e['diffData'][_0x504f98]['insertions']);_0x3b47e5['rootName']=_0x504f98,_0x3b47e5['_isAttached']=!_0x5f9aaa||_0x5f9aaa['isAttached'],_0x3b47e5['isAttached']=()=>_0x3b47e5['_isAttached'],this['_diffRoots']['set'](_0x504f98,_0x3b47e5),this['_diffRootsAttributes']['set'](_0x504f98,_0x262d71);const _0xfba9c2=this['_makeIdsRoot'](_0x3b47e5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x504f98,_0xfba9c2),_0x55159f['set'](_0x504f98,_0x3b47e5['isAttached']()?_0x262d71:{});for(const [_0x31de34,_0x578035]of _0x3b47e5['markers']){if(!_0x31de34['startsWith']('revision:'))continue;const _0x524cc4=_0x31de34['split'](':')[0x2];for(const _0x2d9b21 of _0x578035['getWalker']({'singleCharacters':!0x0})){const _0x17f666=this['_getVidAttributeName'](_0x2d9b21),_0x5d0574=this['_revisionId']++,_0x5b9b95='elementEnd'==_0x2d9b21['type']?_0x2d9b21['previousPosition']['path']['slice'](0x0,-0x1):_0x2d9b21['previousPosition']['path'];_0xfba9c2['getNodeByPath'](_0x5b9b95)['_setAttribute'](_0x17f666,_0x5d0574),this['_touched']['set'](_0x5d0574,{'userId':_0x524cc4});}}for(const _0x4dedd4 of this['editor']['model']['createRangeIn'](_0x3b47e5)['getWalker']({'singleCharacters':!0x0})){const _0x633ffa=this['_getVidAttributeName'](_0x4dedd4),_0x585551='elementEnd'==_0x4dedd4['type']?_0x4dedd4['previousPosition']['path']['slice'](0x0,-0x1):_0x4dedd4['previousPosition']['path'],_0x31d54a=_0xfba9c2['getNodeByPath'](_0x585551);_0x31d54a['getAttribute'](_0x633ffa)>0x0||_0x31d54a['_setAttribute'](_0x633ffa,_0x41b34a[_0x311c49++]);}for(const [_0x298672,_0x285d9c]of _0x3b47e5['markers'])_0x298672['startsWith']('revision:')||this['_markers']['set'](_0x298672,_0x285d9c);}const _0x32dfa4=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x32dfa4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x32dfa4,0x1));const _0x50ade1=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x50ade1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x50ade1,0x1));const _0x4bfd28=Array['from'](this['_diffRoots'])['map'](([_0x10bc3f,_0x374a70])=>[_0x10bc3f,N(_0x374a70)]);this['_saveMetaData'](this['_lastTo'],_0x4bfd28,this['_markers'],_0x55159f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x398536,_0xd45654,_0xe37dd2,_0x253fc5){const _0xdb68ed=new Map(_0xd45654),_0x33ce31=new Map(_0xa7d56a(_0x253fc5)),_0x29dd26=new Map();for(const [_0x3f8caf,_0x5d581f]of _0xe37dd2)_0x29dd26['set'](_0x3f8caf,{'start':_0x5d581f['start']['clone'](),'end':_0x5d581f['end']['clone'](),'rootName':_0x5d581f['root']['rootName']});this['_savedMetaData']['set'](_0x398536,{'roots':_0xdb68ed,'markers':_0x29dd26,'rootsAttributes':_0x33ce31});}['_removeMetaData'](_0x11ad5e){this['_savedMetaData']['delete'](_0x11ad5e);}['_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'](_0x5d9036,_0x27a6a7=null){let _0x36c6b1=null;_0x5d9036['is']('documentFragment')||(_0x36c6b1=new ut(_0x5d9036['name'],{'vid_start':null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++}));const _0x25105d=[];for(const _0x2114ed of _0x5d9036['getChildren']())if(_0x2114ed['is']('element')){_0x25105d['push'](this['_makeIdsRoot'](_0x2114ed,_0x27a6a7));const _0x2f7835=_0x25105d[_0x25105d['length']-0x1];null!==_0x27a6a7&&(_0x27a6a7=_0x2f7835['is']('element','$text')?_0x2f7835['getAttribute']('vid')+0x1:_0x2f7835['getAttribute']('vid_end')+0x1);}else{for(let _0x4bd601=0x0;_0x4bd601<_0x2114ed['offsetSize'];_0x4bd601++)_0x25105d['push'](new ut('$text',{'vid':null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++}));}if(_0x5d9036['is']('documentFragment')){const _0x107faa=P(_0x5d9036['rootName']);return _0x107faa['_insertChild'](0x0,_0x25105d),_0x107faa;}return _0x36c6b1['_setAttribute']('vid_end',null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++),_0x36c6b1['_insertChild'](0x0,_0x25105d),_0x36c6b1;}['_calculateMetaData'](_0x4e7aba,_0x4081f1,_0x22d321){this['_reset']();const {roots:_0x9bb3ec,markers:_0x138316,rootsAttributes:_0x4f4f7a}=this['_savedMetaData']['get'](_0x4e7aba);this['_baseRoots']=new Map(_0x9bb3ec),this['_baseRootsAttributes']=new Map(_0xa7d56a(_0x4f4f7a));for(const [_0x4eade3,_0x253041]of this['_baseRoots'])if('$graveyard'!==_0x4eade3&&(this['_diffRoots']['set'](_0x4eade3,N(_0x253041)),this['_diffRootsAttributes']=new Map(_0xa7d56a(_0x4f4f7a)),_0x22d321)){const _0x353745=this['_revisionId'];this['_idsRoots']['set'](_0x4eade3,this['_makeIdsRoot'](_0x253041)),this['_baseIdsRoots']['set'](_0x4eade3,this['_makeIdsRoot'](_0x253041,_0x353745));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x22d321&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12321c,_0x3ca7e0]of _0x138316){const _0x2ee620=this['_baseRoots']['get'](_0x3ca7e0['rootName']),_0x221ac6=this['_diffRoots']['get'](_0x3ca7e0['rootName']),_0x31df17=new lt(this['_fixPosition'](_0x3ca7e0['start'],_0x2ee620),this['_fixPosition'](_0x3ca7e0['end'],_0x2ee620)),_0x4c0370=this['_fixRange'](_0x31df17,_0x221ac6);_0x2ee620['markers']['set'](_0x12321c,_0x31df17),this['_markers']['set'](_0x12321c,_0x4c0370);}this['_applyOperations'](_0x4e7aba,_0x4081f1,_0x22d321);}['_applyOperations'](_0x539ec2,_0x5b040c,_0x522ef8){for(const _0x15897e of this['source']['getOperations'](_0x539ec2,_0x5b040c))this['_handleOperation'](_0x15897e,_0x522ef8);for(const _0x412988 of this['_diffRoots']['values']())_0x412988['markers']['clear']();for(const [_0x3e4e50,_0x25c21e]of this['_markers']){this['_diffRoots']['get'](_0x25c21e['root']['rootName'])['markers']['set'](_0x3e4e50,_0x25c21e['clone']());}const _0x111913=new Map(),_0x172a04=new Map();for(const [_0x1fac13,_0x1658d8]of this['_diffRoots'])_0x111913['set'](_0x1fac13,N(_0x1658d8)),_0x172a04['set'](_0x1fac13,this['_diffRootsAttributes']['get'](_0x1fac13));this['_saveMetaData'](_0x5b040c,_0x111913,this['_markers'],_0x172a04);}['_getPreviousFrom'](_0x36a04a){const _0x39e205=Array['from'](this['_savedMetaData']['keys']());_0x39e205['sort']((_0x1fc196,_0x502bbd)=>_0x1fc196-_0x502bbd),_0x39e205['reverse']();for(const _0xc4b76e of _0x39e205)if(_0xc4b76e<_0x36a04a)return _0xc4b76e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x552f22,_0x2cecbc){const _0x56b0c6=Array['from'](_0x2cecbc['markers'])['map'](([_0x236ad6,_0x36970e])=>[_0x236ad6,this['_fixRange'](_0x36970e,_0x552f22)]);_0x552f22['markers']=new Map(_0x56b0c6);}['_transformMarkers'](_0x38a5e0){for(const _0x242f29 of this['_markers']['values']()){const _0x382d7c=_0x242f29['getTransformedByOperation'](_0x38a5e0),_0x584d75=lt['_createFromRanges'](_0x382d7c);_0x242f29['start']=_0x584d75['start'],_0x242f29['end']=_0x584d75['end'];}}['_handleOperation'](_0x2cee4f,_0x28e25c){if('addRoot'!=_0x2cee4f['type']&&'detachRoot'!=_0x2cee4f['type']){if('insert'==_0x2cee4f['type']){const _0x2bda12=_0x2cee4f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2bda12)||(this['_diffRoots']['set'](_0x2bda12,P(_0x2bda12,!0x0)),this['_diffRootsAttributes']['set'](_0x2bda12,{}),_0x28e25c&&this['_idsRoots']['set'](_0x2bda12,P(_0x2bda12,!0x0)));}else{if('addRootAttribute'==_0x2cee4f['type']||'removeRootAttribute'==_0x2cee4f['type']||'changeRootAttribute'==_0x2cee4f['type'])return void this['_handleRootAttributeOperation'](_0x2cee4f);'marker'==_0x2cee4f['type']&&this['_handleMarkerOperation'](_0x2cee4f);}if('marker'!==_0x2cee4f['type']){const _0x3372f1=this['_cloneOperation'](_0x2cee4f,this['_diffRoots']);_0x3372f1['_execute'](),this['_transformMarkers'](_0x3372f1);}if(_0x28e25c)switch(_0x2cee4f['type']){case'insert':this['_handleInsertOperation'](_0x2cee4f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2cee4f);break;case'merge':this['_handleMergeOperation'](_0x2cee4f);break;case'split':this['_handleSplitOperation'](_0x2cee4f);}}else this['_handleRootOperation'](_0x2cee4f,_0x28e25c);}['_cloneOperation'](_0x1fda29,_0x2bf65b){const _0x1d7972=_0x1fda29['clone']();return _0x1d7972['_authorId']=_0x1fda29['_authorId'],this['_fixOperation'](_0x1d7972,_0x2bf65b),_0x1d7972;}['_getBaseVids'](_0x50ea82){return _0x50ea82['map'](_0x16907d=>{const _0x36fc94=this['_getVidAttributeName'](_0x16907d);return Number(_0x16907d['item']['getAttribute'](_0x36fc94));});}['_generateTape'](_0x19fc88,_0x5f319d){if(_0x19fc88['is']('element','$text'))_0x5f319d['push']({'item':_0x19fc88,'type':'text'});else{_0x19fc88['is']('element')&&_0x5f319d['push']({'item':_0x19fc88,'type':'elementStart'});for(const _0x3d7de1 of _0x19fc88['getChildren']())this['_generateTape'](_0x3d7de1,_0x5f319d);_0x19fc88['is']('element')&&_0x5f319d['push']({'item':_0x19fc88,'type':'elementEnd'});}return _0x5f319d;}['_getState'](){const _0x352ed6=new Map(this['_touched']),_0x17da25=new Map(_0x352ed6),_0xfbe8d4=new Map(),_0x3da8c3={'insertions':{},'deletions':{}},_0x2aa5b6={'insertions':{},'deletions':{}},_0x4f3d43=new Map(),_0x1f90da=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1f90da['delete']('$graveyard');for(const _0x434d2b of _0x1f90da){const _0x39b870=this['_diffRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1),_0x30d9bc=this['_baseRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1);_0x39b870['isAttached']()||_0x30d9bc['isAttached']()?(_0x3da8c3['insertions'][_0x434d2b]=N(_0x39b870),_0x3da8c3['deletions'][_0x434d2b]=N(_0x30d9bc),this['_copyMarkers'](_0x3da8c3['deletions'][_0x434d2b],_0x30d9bc),this['_copyMarkers'](_0x3da8c3['insertions'][_0x434d2b],_0x39b870),_0x2aa5b6['insertions'][_0x434d2b]=this['_generateTape'](this['_idsRoots']['get'](_0x434d2b),[]),_0x2aa5b6['deletions'][_0x434d2b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1),[])):_0x1f90da['delete'](_0x434d2b);}for(const _0x3bfa2e of _0x1f90da){const _0xd3c543=_0x2aa5b6['insertions'][_0x3bfa2e];for(const _0x597c85 of _0xd3c543){const _0x513c21=this['_getVidAttributeName'](_0x597c85),_0x2ef5a4=_0x597c85['item']['getAttribute'](_0x513c21);_0x17da25['delete'](_0x2ef5a4),_0x2ef5a4>=this['_startingRevisionId']&&_0xfbe8d4['set'](_0x2ef5a4,_0x352ed6['get'](_0x2ef5a4));}}for(const _0x17a096 of _0x1f90da){const _0xd0220d=_0x2aa5b6['insertions'][_0x17a096],_0x51a2d3=this['_getBaseVids'](_0x2aa5b6['deletions'][_0x17a096]);let _0x5abb6d=0x0;for(const _0x1187a2 of _0xd0220d){const _0x131b4d=this['_getVidAttributeName'](_0x1187a2),_0x4abf40=_0x1187a2['item']['getAttribute'](_0x131b4d);if(!_0xfbe8d4['has'](_0x4abf40)&&!_0x4f3d43['has'](_0x4abf40)){if(_0x17da25['has'](_0x4abf40))_0x5abb6d++;else{if(_0x4abf40!=_0x51a2d3[_0x5abb6d]){const _0x3f792c=_0x352ed6['get'](_0x4abf40)||_0x352ed6['get'](_0x51a2d3[_0x5abb6d]);for(;_0x4abf40!=_0x51a2d3[_0x5abb6d];)_0x17da25['has'](_0x51a2d3[_0x5abb6d])||(_0x4f3d43['set'](_0x51a2d3[_0x5abb6d],_0x3f792c),_0x352ed6['set'](_0x51a2d3[_0x5abb6d],_0x3f792c)),_0x5abb6d++;}_0x5abb6d++;}}}}for(const _0x4ab84a of _0x1f90da){const _0x15ac7c=_0x2aa5b6['insertions'][_0x4ab84a];for(const _0x2f8417 of _0x15ac7c){const _0x3130ce=this['_getVidAttributeName'](_0x2f8417),_0x37b88f=_0x2f8417['item']['getAttribute'](_0x3130ce);if(_0x4f3d43['has'](_0x37b88f)){const _0x17bb34=_0x4f3d43['get'](_0x37b88f);_0x17da25['has'](_0x37b88f)||_0x17da25['set'](_0x37b88f,{..._0x17bb34}),_0xfbe8d4['set'](_0x37b88f,{..._0x17bb34});}}}for(const _0x3ad025 of _0x17da25['keys']())_0x3ad025>=this['_startingRevisionId']&&_0x17da25['delete'](_0x3ad025);const _0x47ed7f=new Map();for(const _0x4c0df3 of _0x1f90da){let _0x3dc8f8=_0x2aa5b6['insertions'][_0x4c0df3];for(const _0x99089e of _0x3dc8f8)if(_0x99089e['item']['is']('element','tableCell')){const _0x1148ce=this['_getVidAttributeName'](_0x99089e),_0x5c22ed=_0x99089e['item']['getAttribute'](_0x1148ce);if(_0xfbe8d4['has'](_0x5c22ed)){const _0x27a5e5=_0x99089e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d710a=_0x47ed7f['get'](_0x27a5e5)||new Set();_0x2d710a['add'](_0xfbe8d4['get'](_0x5c22ed)['userId']),_0x47ed7f['set'](_0x27a5e5,_0x2d710a);}}_0x3dc8f8=_0x2aa5b6['deletions'][_0x4c0df3];for(const _0x409d40 of _0x3dc8f8)if(_0x409d40['item']['is']('element','tableCell')){const _0x3c6199=this['_getVidAttributeName'](_0x409d40),_0x5c44aa=_0x409d40['item']['getAttribute'](_0x3c6199);if(_0x17da25['has'](_0x5c44aa)){const _0x38d344=_0x409d40['item']['parent']['parent']['getAttribute']('vid_start'),_0x97dfc3=_0x47ed7f['get'](_0x38d344)||new Set();_0x97dfc3['add'](_0x17da25['get'](_0x5c44aa)['userId']),_0x47ed7f['set'](_0x38d344,_0x97dfc3);}}for(const _0x30333e of _0x47ed7f['keys']())(_0xfbe8d4['has'](_0x30333e)||_0x17da25['has'](_0x30333e))&&_0x47ed7f['delete'](_0x30333e);}for(const _0x4ab62c of _0x1f90da){const _0x5e8f39=_0x2aa5b6['insertions'][_0x4ab62c];let _0x1b1331=null,_0x5e78e1=null;for(const _0x4a70bb of _0x5e8f39){const _0x455356=this['_getVidAttributeName'](_0x4a70bb),_0xebc0f5=_0x4a70bb['item']['getAttribute'](_0x455356),_0x57eba=_0x47ed7f['get'](_0xebc0f5);_0x57eba&&'elementStart'==_0x4a70bb['type']&&(_0x1b1331=Array['from'](_0x57eba)[0x0],_0x5e78e1=_0x4a70bb['item']['getAttribute']('vid_end')),_0x1b1331&&(_0x17da25['set'](_0xebc0f5,{'userId':_0x1b1331}),_0xfbe8d4['set'](_0xebc0f5,{'userId':_0x1b1331})),_0xebc0f5==_0x5e78e1&&(_0x1b1331=null,_0x5e78e1=null);}}const _0x31d533={},_0x22816d=new Set();for(const _0x41c177 of _0x1f90da){const _0x40f7d0=_0x3da8c3['deletions'][_0x41c177],_0x3a0933=_0x3da8c3['insertions'][_0x41c177];for(const {userId:_0x294034}of this['_touchedMarkers']['values']())null!==_0x294034&&_0x22816d['add'](_0x294034);for(const {userId:_0x1b6b5e}of this['_touchedRoots']['values']())null!==_0x1b6b5e&&_0x22816d['add'](_0x1b6b5e);this['_markChanges'](_0x3a0933,_0x2aa5b6['insertions'][_0x41c177],_0xfbe8d4,'insertion',_0x22816d),this['_markChanges'](_0x40f7d0,_0x2aa5b6['deletions'][_0x41c177],_0x17da25,'deletion',_0x22816d),_0x31d533[_0x41c177]={'insertions':this['_prepareViewToSave'](_0x3a0933),'deletions':this['_prepareViewToSave'](_0x40f7d0),'attachChange':this['_touchedRoots']['get'](_0x41c177)||null,'attributesBefore':_0xa7d56a(this['_baseRootsAttributes']['get'](_0x41c177))||{},'attributesAfter':_0xa7d56a(this['_diffRootsAttributes']['get'](_0x41c177))};}return{'diffData':_0x31d533,'authorsIds':Array['from'](_0x22816d)};}['_processRootBeforeSave'](_0x21e5f7){for(const [,_0x1be061]of _0x21e5f7['markers']){const _0x3a14c2=_0x1be061['start']['getAncestors']()['filter'](_0x497608=>'tableCell'==_0x497608['name']);for(const _0x2bdd07 of _0x3a14c2)0x1==_0x2bdd07['childCount']&&_0x2bdd07['getChild'](0x0)['is']('element','paragraph')&&_0x2bdd07['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42df8c){this['_processRootBeforeSave'](_0x42df8c);const _0x219e5a=this['editor']['data']['toView'](_0x42df8c,{}),_0x58e596=Array['from'](_0x219e5a['getChildren']())['map'](_0x157802=>this['_getViewJson'](_0x157802));return JSON['stringify'](_0x58e596);}['_getViewJson'](_0x1ab39f){if(_0x1ab39f['is']('$text'))return _0x1ab39f['data'];{const _0x2e5d29=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x15663b=_0x1ab39f,_0x75fa36=this['editor']['data']['htmlProcessor']['domConverter'],_0x40ec4e={'type':_0x2e5d29['_getTypeCharForViewElement'](_0x15663b),'name':_0x15663b['name'],'attributes':Array['from'](_0x15663b['getAttributes']()),'children':Array['from'](_0x15663b['getChildren']())['map'](_0x4ea9f1=>this['_getViewJson'](_0x4ea9f1))};if(_0x1ab39f['is']('uiElement')&&'$comment'!=_0x1ab39f['name']){const _0x1edce8=_0x1ab39f['render'](_0x75fa36['domDocument'],_0x75fa36);_0x40ec4e['children']['push'](_0x1edce8['outerHTML']);}else{if(_0x1ab39f['is']('rawElement')){const _0x159098=_0x75fa36['domDocument']['createElement'](_0x15663b['name']);_0x1ab39f['render'](_0x159098,_0x75fa36),_0x40ec4e['children']['push'](_0x159098['innerHTML']);}}const _0x4724a5=Array['from'](_0x15663b['getCustomProperties']());_0x4724a5['length']>0x0&&(_0x40ec4e['customProperties']=_0x4724a5);const _0x459681=_0x15663b['getFillerOffset']();return null!==_0x459681&&(_0x40ec4e['fillerOffset']=_0x459681),_0x40ec4e;}}['_markChanges'](_0xfffcc,_0x47d578,_0x4c85a8,_0x29737c,_0x459c8b){let _0x223904=null,_0x459e98=null,_0x52cc5c=0x0;const _0x5283b8=this['editor']['model'];for(let _0x298033=0x0;_0x298033<_0x47d578['length'];_0x298033++){const _0x3a2e8c=this['_getVidAttributeName'](_0x47d578[_0x298033]),_0x487e57=_0x47d578[_0x298033]['item']['getAttribute'](_0x3a2e8c),_0x34bfa9=_0x4c85a8['get'](_0x487e57),_0x48e196=_0x298033==_0x47d578['length']-0x1;(!_0x223904&&_0x34bfa9&&(_0x223904=_0x34bfa9,_0x459e98=_0x47d578[_0x298033]),_0x223904&&(!_0x34bfa9||_0x34bfa9['userId']!=_0x223904['userId']))&&(_0x515873(_0x34bfa9,F(_0x459e98,_0xfffcc,_0x5283b8),F(_0x47d578[_0x298033],_0xfffcc,_0x5283b8)),_0x223904=_0x34bfa9||null,_0x459e98=_0x34bfa9?_0x47d578[_0x298033]:null),_0x223904&&_0x48e196&&_0x515873(_0x34bfa9,F(_0x459e98,_0xfffcc,_0x5283b8),B(_0x47d578[_0x298033],_0xfffcc,_0x5283b8));}function _0x515873(_0x55b5f0,_0x1821f9,_0x23b9ea){const _0x46d659=_0x223904['userId'],_0x22a513='revision:'+_0x29737c+':'+_0x46d659+':'+_0x52cc5c++,_0x1a5d84=_0x5283b8['createRange'](_0x1821f9,_0x23b9ea);_0xfffcc['markers']['set'](_0x22a513,_0x1a5d84),null!==_0x46d659&&_0x459c8b['add'](_0x46d659);}}['_getVidAttributeName'](_0x3ff9ae){switch(_0x3ff9ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4c5cb4,_0x42c215){_0x4c5cb4['baseVersion']=null;for(const _0x3f2ee in _0x4c5cb4){const _0x113236=_0x4c5cb4[_0x3f2ee];if(_0x113236 instanceof ft){const _0x5ba0fe=_0x42c215['get'](_0x113236['root']['rootName']);_0x4c5cb4[_0x3f2ee]=this['_fixPosition'](_0x113236,_0x5ba0fe);}if(_0x113236 instanceof lt){const _0x502a0e=_0x42c215['get'](_0x113236['root']['rootName']);_0x4c5cb4[_0x3f2ee]=this['_fixRange'](_0x113236,_0x502a0e);}'root'===_0x3f2ee&&(_0x4c5cb4['root']=_0x42c215['get'](_0x4c5cb4['root']['rootName']));}}['_fixRange'](_0x1f4d65,_0x7047a0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f4d65['start'],_0x7047a0),this['_fixPosition'](_0x1f4d65['end'],_0x7047a0));}['_fixPosition'](_0x2ba8be,_0x4a9d78){return this['editor']['model']['createPositionFromPath'](_0x4a9d78,_0x2ba8be['path'],_0x2ba8be['stickiness']);}['_handleInsertOperation'](_0x5c0a56){const _0x11e6b3=this['_idsRoots']['get'](_0x5c0a56['position']['root']['rootName']),_0x17e6a8=this['_fixPosition'](_0x5c0a56['position'],_0x11e6b3),_0x4fe02b=null===_0x5c0a56['_authorId']?null:_0x5c0a56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa4ec66=_0x17e6a8['parent'],_0x5ca84f=this['_revisionId'],_0x36a5cb=[];for(const _0x26e9a2 of _0x5c0a56['nodes'])if(_0x26e9a2['is']('element'))_0x36a5cb['push'](this['_makeIdsRoot'](_0x26e9a2));else{for(let _0x79ff53=0x0;_0x79ff53<_0x26e9a2['offsetSize'];_0x79ff53++)_0x36a5cb['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5f05f2=this['_revisionId'];for(let _0x261ff0=_0x5ca84f;_0x261ff0<_0x5f05f2;_0x261ff0++)this['_touched']['set'](_0x261ff0,{'userId':_0x4fe02b});_0xa4ec66['_insertChild'](_0x17e6a8['offset'],_0x36a5cb);}['_handleMoveOperation'](_0x504c65){(_0x504c65=this['_cloneOperation'](_0x504c65,this['_idsRoots']))['_execute']();const _0x4fa8c6=null===_0x504c65['_authorId']?null:_0x504c65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x225f33=_0x504c65['getMovedRangeStart'](),_0x4b0f1f=_0x225f33['parent'],_0x4ab0d5=_0x225f33['offset'];!function _0x49b597(_0x5b658e,_0x106550,_0x531530,_0x4dab39){for(let _0x1b6b58=_0x531530;_0x1b6b58<_0x4dab39;_0x1b6b58++){const _0x431c1e=_0x106550['getChild'](_0x1b6b58);_0x431c1e['is']('element','$text')?_0x5b658e['set'](_0x431c1e['getAttribute']('vid'),{'userId':_0x4fa8c6}):(_0x5b658e['set'](_0x431c1e['getAttribute']('vid_start'),{'userId':_0x4fa8c6}),_0x49b597(_0x5b658e,_0x431c1e,0x0,_0x431c1e['childCount']),_0x5b658e['set'](_0x431c1e['getAttribute']('vid_end'),{'userId':_0x4fa8c6}));}}(this['_touched'],_0x4b0f1f,_0x4ab0d5,_0x4ab0d5+_0x504c65['howMany']);}['_handleMergeOperation'](_0x53432c){const _0x2e4e0c=null===(_0x53432c=this['_cloneOperation'](_0x53432c,this['_idsRoots']))['_authorId']?null:_0x53432c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9b32=_0x53432c['targetPosition']['parent'],_0x4d77fd=_0x53432c['sourcePosition']['parent'],_0x694f72=_0x3e9b32['getAttribute']('vid_end'),_0x2adce8=_0x4d77fd['getAttribute']('vid_start');_0x3e9b32['_setAttribute']('vid_end',_0x4d77fd['getAttribute']('vid_end')),_0x4d77fd['_setAttribute']('vid_end',_0x694f72),this['_touched']['set'](_0x2adce8,{'userId':_0x2e4e0c}),this['_touched']['set'](_0x694f72,{'userId':_0x2e4e0c}),_0x53432c['_execute']();}['_handleSplitOperation'](_0x53b0bb){const _0x3f9554=null===(_0x53b0bb=this['_cloneOperation'](_0x53b0bb,this['_idsRoots']))['_authorId']?null:_0x53b0bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d6fab=_0x53b0bb['graveyardPosition'],_0x16d92a=_0x53b0bb['splitPosition']['parent'];_0x53b0bb['_execute']();const _0x152619=_0x16d92a['getAttribute']('vid_end'),_0x5ceb20=_0x53b0bb['insertionPosition']['nodeAfter'];if(_0x3d6fab){const _0x2abc77=_0x5ceb20['getAttribute']('vid_end'),_0x4f3675=_0x16d92a['getAttribute']('vid_end');_0x16d92a['_setAttribute']('vid_end',_0x2abc77),_0x5ceb20['_setAttribute']('vid_end',_0x4f3675),this['_touched']['set'](_0x16d92a['getAttribute']('vid_end'),{'userId':_0x3f9554}),this['_touched']['set'](_0x5ceb20['getAttribute']('vid_start'),{'userId':_0x3f9554});}else{const _0x3baabc=this['_revisionId']++,_0x11d433=this['_revisionId']++;_0x16d92a['_setAttribute']('vid_end',_0x3baabc),_0x5ceb20['_setAttribute']('vid_start',_0x11d433),_0x5ceb20['_setAttribute']('vid_end',_0x152619),this['_touched']['set'](_0x3baabc,{'userId':_0x3f9554}),this['_touched']['set'](_0x11d433,{'userId':_0x3f9554});}}['_handleMarkerOperation'](_0x580beb){if(!_0x580beb['affectsData'])return;const _0x212994=(_0x580beb=this['_cloneOperation'](_0x580beb,this['_diffRoots']))['oldRange']?_0x580beb['oldRange']['root']:null,_0x46b4cd=_0x580beb['newRange']?_0x580beb['newRange']['root']:null;_0x212994&&this['_markers']['delete'](_0x580beb['name']),_0x46b4cd&&this['_markers']['set'](_0x580beb['name'],_0x580beb['newRange']['clone']());const _0x46ce24=null===_0x580beb['_authorId']?null:_0x580beb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34380d=_0x580beb['name'];if(!this['_touchedMarkers']['has'](_0x34380d))return void this['_touchedMarkers']['set'](_0x34380d,{'range':_0x580beb['oldRange'],'userId':_0x46ce24});const _0x1c7b44=this['_touchedMarkers']['get'](_0x34380d),_0x362f9d=_0x1c7b44['range'],_0x46f702=_0x580beb['newRange'];null==_0x362f9d&&null==_0x46f702||_0x362f9d&&_0x46f702&&_0x362f9d['isEqual'](_0x46f702)?this['_touchedMarkers']['delete'](_0x580beb['name']):_0x1c7b44['userId']=_0x46ce24;}['_handleRootOperation'](_0x50d8af,_0x215528){this['_diffRoots']['has'](_0x50d8af['rootName'])?this['_diffRoots']['get'](_0x50d8af['rootName'])['_isAttached']=_0x50d8af['isAdd']:(this['_diffRoots']['set'](_0x50d8af['rootName'],P(_0x50d8af['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x50d8af['rootName'],{}),_0x215528&&this['_idsRoots']['set'](_0x50d8af['rootName'],P(_0x50d8af['rootName'],!0x0)));const _0x3f2cbd=null===_0x50d8af['_authorId']?null:_0x50d8af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206409=this['_touchedRoots']['get'](_0x50d8af['rootName']);_0x206409&&_0x206409['userId']===_0x3f2cbd?this['_touchedRoots']['delete'](_0x50d8af['rootName']):this['_touchedRoots']['set'](_0x50d8af['rootName'],{'userId':_0x3f2cbd,'isAttached':_0x50d8af['isAdd']});}['_handleRootAttributeOperation'](_0x197242){const _0x32c6bc=this['_diffRootsAttributes']['get'](_0x197242['root']['rootName']);null===_0x197242['newValue']?delete _0x32c6bc[_0x197242['key']]:_0x32c6bc[_0x197242['key']]=_0x197242['newValue'];}}function N(_0x51e530){const _0x4f60be=P(_0x51e530['rootName'],_0x51e530['isAttached']());for(const _0x45ef35 of _0x51e530['getChildren']()){const _0x3f70d9=_0x45ef35['_clone'](!0x0);_0x4f60be['_appendChild'](_0x3f70d9);}return _0x4f60be;}function P(_0x5c6c54,_0x477d83=!0x0){const _0x440a9d=new vt();return _0x440a9d['rootName']=_0x5c6c54,_0x440a9d['_isAttached']=_0x477d83,_0x440a9d['isAttached']=()=>_0x440a9d['_isAttached'],_0x440a9d;}function F(_0x10803c,_0x5d955,_0x2d2903){const _0x3cee25='elementEnd'==_0x10803c['type']?_0x2d2903['createPositionAt'](_0x10803c['item'],'end'):_0x2d2903['createPositionBefore'](_0x10803c['item']);return _0x2d2903['createPositionFromPath'](_0x5d955,_0x3cee25['path'],_0x3cee25['stickiness']);}function B(_0x2d3e3c,_0x49808b,_0x5bb2c4){const _0x3a410a='elementStart'==_0x2d3e3c['type']?_0x5bb2c4['createPositionAt'](_0x2d3e3c['item'],0x0):_0x5bb2c4['createPositionAfter'](_0x2d3e3c['item']);return _0x5bb2c4['createPositionFromPath'](_0x49808b,_0x3a410a['path'],_0x3a410a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x322c8c,_0x45e3d2){super(_0x322c8c),this['focusTracker']=new _0x19b89a(),this['keystrokes']=new _0x25d77a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x45e3d2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1f2c38(this);}['render'](){super['render'](),_0x49f257({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xb33f4e=_0x128268=>_0x128268['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb33f4e),this['keystrokes']['set']('arrowleft',_0xb33f4e),this['keystrokes']['set']('arrowup',_0xb33f4e),this['keystrokes']['set']('arrowdown',_0xb33f4e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2a3339){this['revisionNameInputView']['fieldView']['element']['value']=_0x2a3339['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3dcb1b){const _0x438421=new _0x53ede4(this['locale'],_0x5abb26),_0x37e0a1=_0x438421['fieldView'];_0x37e0a1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x29bd6f=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3dcb1b&&(_0x29bd6f+='\x20('+g(this['locale'],'optional')+')'),(_0x438421['label']=_0x29bd6f,_0x37e0a1['on']('input',()=>{this['revisionNameInputValue']=_0x37e0a1['element']['value']['trim']();}),_0x438421);}}class f extends _0x32d4e7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3b2b73=this['editor'],_0x1fd101=_0x3b2b73['plugins']['get']('RevisionTracker');_0x3b2b73['ui']['componentFactory']['add']('revisionHistory',_0x2665eb=>{const _0x327485=_0x3c7a5d(_0x2665eb),_0xf00f6=_0x327485['panelView']['children'],_0x2452df=new _0x12ae53(_0x2665eb),_0x28a8da=new _0x460b48(_0x2665eb),_0x131572=new te(_0x2665eb),_0x4b37c0=new _0x460b48(_0x2665eb),_0x59519c=new te(_0x2665eb);return _0x327485['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x1fd101,'isEnabled',_0x3b2b73,'isReadOnly',(_0x51092f,_0x263780,_0x1bafc0)=>_0x51092f&&_0x263780&&!_0x1bafc0),_0x327485['buttonView']['set']({'icon':_0x16a281,'label':g(_0x2665eb,'Revision\x20history'),'tooltip':!0x0}),_0x131572['set']({'label':g(_0x2665eb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x131572['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x1fd101,'isEnabled',_0x3b2b73,'isReadOnly',(_0x5a6090,_0x1d4db9,_0x56772f)=>_0x5a6090&&_0x1d4db9&&!_0x56772f),_0x131572['on']('execute',()=>this['_showDialog']()),_0x59519c['set']({'label':g(_0x2665eb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x59519c['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x3b2b73,'isReadOnly',(_0x15c4e7,_0x5a2a3e)=>_0x15c4e7&&!_0x5a2a3e),_0x59519c['on']('execute',()=>{_0x3b2b73['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x327485['isOpen']=!0x1,_0x3b2b73['editing']['view']['focus']();}),_0x28a8da['children']['add'](_0x131572),_0x4b37c0['children']['add'](_0x59519c),_0x2452df['role']='menu',_0x2452df['items']['addMany']([_0x28a8da,_0x4b37c0]),_0xf00f6['add'](_0x2452df),_0x327485;}),_0x3b2b73['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x51bbfe=this['editor'],_0x23fc9f=_0x51bbfe['locale'],_0x5b43d6=new _0x1d067e(_0x23fc9f),_0x570833=new _0x5e338e(_0x23fc9f);_0x5b43d6['buttonView']['set']({'icon':_0x16a281,'label':g(_0x23fc9f,'Revision\x20history')});const _0x1a67f0=new _0x2d2284(_0x23fc9f,_0x5b43d6),_0x11a988=new _0x2b30fe(_0x23fc9f);_0x11a988['set']({'label':g(_0x23fc9f,'Save\x20current\x20revision')}),_0x11a988['delegate']('execute')['to'](_0x5b43d6),_0x11a988['on']('execute',()=>{this['_showDialog']();}),_0x1a67f0['children']['add'](_0x11a988),_0x570833['items']['add'](_0x1a67f0);const _0x29b0ac=new _0x2d2284(_0x23fc9f,_0x5b43d6),_0x1dcea7=new _0x2b30fe(_0x23fc9f);return _0x1dcea7['set']({'label':g(_0x23fc9f,'Open\x20revision\x20history')}),_0x1dcea7['delegate']('execute')['to'](_0x5b43d6),_0x1dcea7['on']('execute',()=>{_0x51bbfe['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29b0ac['children']['add'](_0x1dcea7),_0x570833['items']['add'](_0x29b0ac),_0x5b43d6['panelView']['children']['add'](_0x570833),_0x5b43d6;}['_showDialog'](){const _0x1a73fd=this['editor'],_0x1812dd=_0x1a73fd['locale'],_0x22cde3=_0x1a73fd['plugins']['get']('Dialog'),_0x5a1fd9=_0x1a73fd['plugins']['get']('RevisionTracker');function _0x419734(_0x1f854f){_0x1a73fd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1f854f['revisionName']?_0x1f854f['revisionNameInputView']['errorText']=g(_0x1812dd,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a73fd['plugins']['get'](u)['saveRevision']({'name':_0x1f854f['revisionName']}),_0x22cde3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x419734(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x22cde3['show']({'id':'revisionSave','title':g(_0x1812dd,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1a73fd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x22cde3['hide']()},{'label':g(_0x1a73fd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5cbc41){_0x5cbc41['bind']('isEnabled')['to'](_0x5a1fd9,'isReady',_0x5a1fd9,'isEnabled',_0x1a73fd,'isReadOnly',(_0x4cd337,_0x167ee3,_0x4fd0a7)=>_0x4cd337&&_0x167ee3&&!_0x4fd0a7);},'onExecute':()=>_0x419734(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40dd24=this['editor'],_0x2b5656=_0x40dd24['locale'];this['_saveRevisionFormView']=new hs(_0x2b5656,_0x40dd24['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1f8c39,_0x3e42ea){super(_0x1f8c39),this['_model']=_0x3e42ea,this['changeId']=_0x3e42ea['id'];const _0x1a9328=this['bindTemplate'],_0x218cf8=g(_0x1f8c39,_0x3e42ea['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e42ea['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e42ea['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1a9328['to']('type',_0x138d7b=>'ck-revision-change__'+_0x138d7b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x218cf8}]},{'text':'\x20'+_0x3e42ea['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x590d6c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x15fa4e){super(),this['id']=_0x15fa4e['id']||_0x22d855(),this['author']=_0x15fa4e['author'],this['type']=_0x15fa4e['type'],this['data']=_0x15fa4e['data']||{},this['rootName']=_0x15fa4e['rootName'],this['set']('createdAt',_0x15fa4e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x506802,_0x4e51cd){this['newRevisionId']=_0x506802,this['oldRevisionId']=_0x4e51cd,this['changes']=new _0x5427d4();}['_setChanges'](_0x41ef37){for(const _0x3aa57d of _0x41ef37)this['changes']['add'](_0x3aa57d);}}class m extends _0x32d4e7{['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[_0x437ecf,_0xf0f501,I,V];}constructor(_0x242de2){super(_0x242de2),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',(_0x260c4a,_0x522deb,_0x1f71d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5d30bb=>{for(const _0x4bea0e of this['editor']['editing']['view']['document']['roots'])_0x1f71d9?_0x5d30bb['removeClass']('ck-editor__editable__overlay',_0x4bea0e):_0x5d30bb['addClass']('ck-editor__editable__overlay',_0x4bea0e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b9633=>null!==_0x5b9633),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x503f08,_0x15dc2d,_0x300a8c)=>_0x503f08&&_0x300a8c?_0x15dc2d['changes']['getIndex'](_0x300a8c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x38251f,_0x3c8779)=>_0x38251f?_0x3c8779['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xf0f501);}['init'](){const _0x27d6d1=this['editor'],_0x381a6a=new wt(_0x27d6d1,{'direction':'backward'}),_0x5eb396=new wt(_0x27d6d1,{'direction':'forward'});(_0x27d6d1['commands']['add']('showPreviousChange',_0x381a6a),_0x27d6d1['commands']['add']('showNextChange',_0x5eb396),_0x27d6d1['commands']['add']('restoreRevision',new mt(_0x27d6d1)),this['on']('change:numberOfChanges',()=>{_0x381a6a['refresh'](),_0x5eb396['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x27d6d1['enableReadOnlyMode']('revision-viewer'),_0x27d6d1['plugins']['has']('WidgetToolbarRepository'))&&_0x27d6d1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c9d43){return await this['_utils']['loadRevisionData'](_0x1c9d43,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c9d43);}async['getRevisionRootsAttributes'](_0x29ee74){return await this['_utils']['loadRevisionData'](_0x29ee74,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29ee74);}async['compare'](_0xbd121c,_0x4fe4fe,_0x16df2b=!0x1){if(!this['isEnabled'])return;const _0xca4089=this['diff'],_0x1cff62=this['repository'],_0x57826e='string'==typeof _0xbd121c?_0x1cff62['getRevision'](_0xbd121c):_0xbd121c,_0x37b6f2='string'==typeof _0x4fe4fe?_0x1cff62['getRevision'](_0x4fe4fe):_0x4fe4fe,_0x1195a1=_0x57826e['id'],_0x33003a=_0x37b6f2?_0x37b6f2['id']:null;if(!_0x16df2b&&this['diff']&&this['diff']['newRevisionId']===_0x1195a1&&this['diff']['oldRevisionId']===_0x33003a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1195a1,_0x33003a);const _0x2e1235=this['_getRevisionsRange'](_0x57826e,_0x37b6f2,!0x0)['map'](_0x239521=>this['_utils']['loadRevisionData'](_0x239521,this['adapter']));return _0x2e1235['push'](new Promise(_0x250f58=>{setTimeout(_0x250f58,0x14);})),Promise['all'](_0x2e1235)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x360f59=this['_getDiff'](_0x1195a1,_0x33003a);for(const _0x82d520 of _0x360f59['changes'])this['_changeIdToChange']['set'](_0x82d520['id'],_0x82d520);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdfd9b2=>{for(const _0x4a709b of this['editor']['model']['document']['getRootNames']())_0xdfd9b2['detachRoot'](_0x4a709b);for(const _0x4bf53f of Object['keys'](_0x360f59['model'])){const _0x1dead0=_0xdfd9b2['addRoot'](_0x4bf53f);for(const _0x16108c of Object['keys'](_0x360f59['attributes'][_0x4bf53f]))_0xdfd9b2['setAttribute'](_0x16108c,_0x360f59['attributes'][_0x4bf53f][_0x16108c],_0x1dead0);_0xdfd9b2['insert'](_0x360f59['model'][_0x4bf53f],_0x1dead0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x360f59['changes'])),this['isReady']=!0x0;})['catch'](_0x34b096=>{console['error'](_0x34b096),this['_cleanUp'](),_0xca4089&&(this['diff']=_0xca4089),this['isReady']=!0x0;});}['addRevisionData'](_0xbec3c2,_0x4597f8){const _0x2ad657=this['repository']['createRevision'](_0xbec3c2);return _0x2ad657['on']('_update',(_0x77abd7,_0xbc7c0d,_0x1b8803)=>_0x4597f8(_0xbc7c0d,_0x1b8803,_0x2ad657)),this['repository']['addRevision'](_0x2ad657),_0x2ad657;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23e94b=>{for(const _0x496c9b of this['editor']['model']['document']['getRootNames']())_0x23e94b['detachRoot'](_0x496c9b);});}['_sortAndFilterDiffChanges'](_0x1526be){const _0x1f785f=[],_0x42ecde=new Map();for(const _0x325a44 of this['editor']['model']['document']['getRootNames']()){const _0xd88cf4=this['editor']['editing']['view']['getDomRoot'](_0x325a44);if(!_0xd88cf4)continue;const _0x4bfef0=_0xd88cf4['getClientRects']()['item'](0x0);_0x4bfef0&&(_0x1f785f['push'](_0x325a44),_0x42ecde['set'](_0x325a44,_0x4bfef0));}return _0x1f785f['sort']((_0x5304ba,_0x515286)=>{const _0x36b284=_0x42ecde['get'](_0x5304ba),_0x43c668=_0x42ecde['get'](_0x515286);return _0x36b284['y']-_0x43c668['y']||_0x36b284['x']-_0x43c668['x'];}),(_0x1526be=_0x1526be['filter'](_0x4b7027=>_0x1f785f['includes'](_0x4b7027['rootName'])))['sort']((_0x32e685,_0x396413)=>_0x1f785f['indexOf'](_0x32e685['rootName'])-_0x1f785f['indexOf'](_0x396413['rootName'])),_0x1526be;}['_makeTape'](_0x4aaf17){const _0x1069b6=Array['from'](_0x4aaf17['markers'])['filter'](([_0x95de2f,_0x33c206])=>_0x95de2f['startsWith']('revision:')&&!_0x33c206['isCollapsed']),_0x13252d=Array['from'](this['editor']['model']['createRangeIn'](_0x4aaf17)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1069b6['length'])for(const _0x4ff594 of _0x13252d){const [_0x5e3d65,_0x5159f4]=_0x1069b6[0x0],[,_0x8dc894,_0x5dfc57]=_0x5e3d65['split'](':');if(_0x5159f4['end']['isEqual'](_0x4ff594['nextPosition'])&&_0x1069b6['shift'](),(_0x4ff594['previousPosition']['isEqual'](_0x5159f4['start'])||_0x4ff594['previousPosition']['isAfter'](_0x5159f4['start']))&&('insertion'==_0x8dc894?_0x4ff594['isAdded']={'userId':_0x5dfc57}:'deletion'==_0x8dc894&&(_0x4ff594['isRemoved']={'userId':_0x5dfc57})),0x0==_0x1069b6['length'])break;}return _0x13252d;}['_refreshStartEndIndex'](_0x9d7cc0){const _0x4de343=new Map();for(let _0x266873=0x0;_0x266873<_0x9d7cc0['length'];_0x266873++)'text'===_0x9d7cc0[_0x266873]['type']?(_0x9d7cc0[_0x266873]['item']['startIndex']=_0x266873,_0x9d7cc0[_0x266873]['item']['endIndex']=_0x266873):('elementStart'===_0x9d7cc0[_0x266873]['type']?_0x9d7cc0[_0x266873]['item']['startIndex']=_0x266873:'elementEnd'===_0x9d7cc0[_0x266873]['type']&&(_0x9d7cc0[_0x266873]['item']['endIndex']=_0x266873),_0x4de343['set'](_0x9d7cc0[_0x266873]['id'],_0x266873));for(const _0x4401ca of _0x4de343['values']())'elementStart'===_0x9d7cc0[_0x4401ca]['type']?_0x9d7cc0[_0x4401ca]['item']['endIndex']=_0x4de343['get'](_0x9d7cc0[_0x4401ca]['pairId']):'elementEnd'===_0x9d7cc0[_0x4401ca]['type']&&(_0x9d7cc0[_0x4401ca]['item']['startIndex']=_0x4de343['get'](_0x9d7cc0[_0x4401ca]['pairId']));}['_processTape'](_0x1f1088){for(let _0x145bad=0x0;_0x145bad<_0x1f1088['length'];_0x145bad++){if('elementStart'===_0x1f1088[_0x145bad]['type'])_0x1f1088[_0x145bad]['item']['startIndex']=_0x145bad;else{if('elementEnd'===_0x1f1088[_0x145bad]['type']){_0x1f1088[_0x145bad]['item']['endIndex']=_0x145bad;const _0x4214b6=_0x1f1088[_0x145bad]['item']['startIndex'];_0x1f1088[_0x4214b6]['pairId']=_0x1f1088[_0x145bad]['id'],_0x1f1088[_0x145bad]['pairId']=_0x1f1088[_0x4214b6]['id'];}else _0x1f1088[_0x145bad]['item']['startIndex']=_0x145bad,_0x1f1088[_0x145bad]['item']['endIndex']=_0x145bad,_0x1f1088[_0x145bad]['pairId']=null;}_0x1f1088[_0x145bad]['markersStart']||(_0x1f1088[_0x145bad]['markersStart']=[],_0x1f1088[_0x145bad]['markersEnd']=[]);}}['_markInsertions'](_0x537b24,_0x285b39){const _0x560b5a=_0x537b24['filter'](_0x48b55e=>!_0x48b55e['isAdded']);for(let _0x28a6c8=0x0;_0x28a6c8<_0x285b39['length'];_0x28a6c8++)_0x285b39[_0x28a6c8]['isAdded']&&(_0x560b5a[_0x28a6c8]['isAdded']=_0x285b39[_0x28a6c8]['isAdded']);}['_getDiff'](_0x55b854,_0x2fe311=null){const _0x49ff7f=this['repository']['getRevision'](_0x55b854),_0x3aae0b=_0x2fe311?this['repository']['getRevision'](_0x2fe311):null,_0xec1ea9=this['_getRevisionsRange'](_0x49ff7f,_0x3aae0b),_0x2d6758=_0xec1ea9[_0xec1ea9['length']-0x1],_0x257940=new Map(),_0x2ee276={'model':{},'attributes':{},'changes':[]},_0x23e007=new Set(),_0x3aefff=new Map();for(let _0x3e4fbc=_0xec1ea9['length']-0x1;_0x3e4fbc>=0x0;_0x3e4fbc--){const _0x141652=_0xec1ea9[_0x3e4fbc];for(const _0x31ed32 of Object['keys'](_0x141652['diffData']))if(_0x141652['diffData'][_0x31ed32]['attachChange']){const _0x1a1b6e=_0x141652['diffData'][_0x31ed32]['attachChange'];_0x1a1b6e['isAttached']?(_0x23e007['add'](_0x31ed32),_0x3aefff['has'](_0x31ed32)&&_0x3aefff['get'](_0x31ed32)['userId']==_0x1a1b6e['userId']?_0x3aefff['delete'](_0x31ed32):_0x3aefff['set'](_0x31ed32,_0x1a1b6e)):_0x3aefff['has'](_0x31ed32)?(_0x23e007['delete'](_0x31ed32),_0x3aefff['delete'](_0x31ed32)):(_0x23e007['add'](_0x31ed32),_0x3aefff['set'](_0x31ed32,_0x1a1b6e));}else _0x23e007['add'](_0x31ed32);}for(const _0x3e858a of _0x23e007){const _0x5f3af7=_0x3aefff['has'](_0x3e858a)&&!_0x3aefff['get'](_0x3e858a)['isAttached'];let _0x3811de=_0x5f3af7?_0xec1ea9['length']-0x1:0x0;const _0x32cb78=_0x5f3af7?-0x1:0x1;for(;_0xec1ea9[_0x3811de];){const _0x4eb872=_0xec1ea9[_0x3811de];if(_0x4eb872['diffData'][_0x3e858a]){const _0x2f6917=_0x5f3af7?_0x4eb872['diffData'][_0x3e858a]['attributesBefore']:_0x4eb872['diffData'][_0x3e858a]['attributesAfter'];_0x2ee276['attributes'][_0x3e858a]=_0x2f6917?_0xa7d56a(_0x2f6917):{};break;}_0x3811de+=_0x32cb78;}}for(const _0x17268b of _0xec1ea9){_0x17268b['model']={};for(const _0x298d8f of _0x17268b['authors'])_0x257940['set'](_0x298d8f['id'],_0x298d8f);for(const _0x1aae41 of _0x23e007){const _0x5bacdf=_0x17268b['diffData'][_0x1aae41]?_0x17268b['diffData'][_0x1aae41]['insertions']:'[]',_0x48a282=_0x17268b['diffData'][_0x1aae41]?_0x17268b['diffData'][_0x1aae41]['deletions']:'[]';_0x17268b['model'][_0x1aae41]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5bacdf),'deletions':this['_utils']['_makeModelFromViewString'](_0x48a282)};}}for(const _0x104815 of _0x23e007){let _0x518dd4=null,_0x2f6a78=0x0;const _0x1bc914=new Map(Array['from'](_0x49ff7f['model'][_0x104815]['insertions']['markers'])['filter'](([_0x3690e1])=>!_0x3690e1['startsWith']('revision:')));let _0x9d46e5=0x0;for(const _0x31f68c of _0xec1ea9){const _0x401ebb=this['_makeTape'](_0x31f68c['model'][_0x104815]['insertions']);_0x31f68c==_0x49ff7f?(_0x518dd4=_0x401ebb,_0x2f6a78=_0x518dd4['length'],_0x518dd4['forEach'](_0x40a190=>{_0x40a190['id']=_0x9d46e5++;}),this['_processTape'](_0x518dd4)):this['_markInsertions'](_0x518dd4,_0x401ebb);const _0x59544a=_0x518dd4['filter'](_0x3ed1fa=>!_0x3ed1fa['isAdded'])['map'](_0x3622d5=>_0x3622d5['id']);let _0x417934=0x0;const _0x3cf607=this['_makeTape'](_0x31f68c['model'][_0x104815]['deletions']);_0x3cf607['forEach'](_0x51a7db=>{_0x51a7db['isRemoved']?_0x51a7db['id']=_0x2f6a78++:_0x51a7db['id']=_0x59544a[_0x417934++];}),this['_processTape'](_0x3cf607),this['_setDistance'](_0x518dd4,'isAdded'),this['_setDistance'](_0x3cf607,'isRemoved'),_0x31f68c==_0x49ff7f&&this['_markMarkers'](_0x518dd4,_0x1bc914),_0x518dd4=this['_joinTapes'](_0x518dd4,_0x3cf607),this['_refreshStartEndIndex'](_0x518dd4),this['_setDistance'](_0x518dd4,'isRemoved');}_0x518dd4=_0x518dd4['filter'](_0x5b0141=>!(_0x5b0141['isAdded']&&_0x5b0141['isRemoved']));const _0x2d5431=new Map(_0x2d6758['model'][_0x104815]['deletions']['markers']),_0x5c6aa5=new Set(_0x1bc914['keys']());for(const _0x45b37a of _0x2d5431['keys']())_0x5c6aa5['delete'](_0x45b37a);this['_markSuggestions'](_0x518dd4,_0x5c6aa5),this['_fixObsoleteTags'](_0x518dd4),_0x518dd4=this['_removeMissingPairs'](_0x518dd4),_0x518dd4=this['_markMismatchedRemovedTags'](_0x518dd4),_0x518dd4=this['_removeUnsupportedChanges'](_0x518dd4);const {root:_0x128eae,changes:_0x5674df}=this['_makeModelFromTape'](_0x518dd4,_0x257940,_0x104815);_0x2ee276['model'][_0x104815]=_0x128eae;const _0x4bce0f=_0x3aefff['get'](_0x104815);if(_0x4bce0f){const _0x2c3a88=_0x257940['get'](_0x4bce0f['userId']),_0xc11e3f=new r({'author':_0x2c3a88,'type':_0x4bce0f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x104815});_0x5674df['unshift'](_0xc11e3f),_0x2ee276['attributes'][_0x104815]['revisionHistoryAttachChange']=_0xc11e3f['id'];}_0x2ee276['changes']=_0x2ee276['changes']['concat'](_0x5674df);}return _0x2ee276;}['_markMarkers'](_0x1b0894,_0x2ea834){for(let _0x1246fe=0x0;_0x1246fe<_0x1b0894['length'];_0x1246fe++)for(const [_0x2b6c37,_0x51b269]of _0x2ea834)!_0x51b269['isCollapsed']&&_0x51b269['start']['isEqual'](_0x1b0894[_0x1246fe]['previousPosition'])&&_0x1b0894[_0x1246fe]['markersStart']['push'](_0x2b6c37),_0x51b269['end']['isEqual'](_0x1b0894[_0x1246fe]['nextPosition'])&&_0x1b0894[_0x1246fe]['markersEnd']['push'](_0x2b6c37);}['_joinTapes'](_0x5a0cb0,_0x5eb55b){let _0x2c8423=[],_0x22b137=0x0,_0x341582=0x0;for(;_0x22b137<_0x5a0cb0['length']||_0x341582<_0x5eb55b['length'];){const _0x590798=_0x5a0cb0[_0x22b137]||{},_0x23c212=_0x5eb55b[_0x341582]||{};if(_0x590798['id']==_0x23c212['id'])_0x22b137++,_0x341582++,_0x2c8423['push'](_0x590798);else{if(_0x23c212['isRemoved']&&_0x590798['isAdded']){const {commonTape:_0x485a06,iEnd:_0x5e9951,jEnd:_0x11a621}=this['_threeWayMerge'](_0x5a0cb0,_0x22b137,_0x5eb55b,_0x341582);_0x2c8423=_0x2c8423['concat'](_0x485a06),_0x22b137=_0x5e9951,_0x341582=_0x11a621;}else _0x23c212['isRemoved']?(_0x341582++,_0x2c8423['push'](_0x23c212)):(_0x22b137++,_0x2c8423['push'](_0x590798));}}return _0x2c8423;}['_markSuggestions'](_0x2c2d09,_0x515c19){const _0x2d01b4=[];for(let _0x3c20ba=0x0;_0x3c20ba<_0x2c2d09['length'];_0x3c20ba++){for(let _0x4ff9d8=0x0;_0x4ff9d8<_0x2c2d09[_0x3c20ba]['markersStart']['length'];_0x4ff9d8++){const _0x4aeff6=_0x2c2d09[_0x3c20ba]['markersStart'][_0x4ff9d8];if(!_0x515c19['has'](_0x4aeff6))continue;const {group:_0x318e6c,type:_0x3d5338,authorId:_0x574bc0}=_0x2952f7(_0x4aeff6);'revision-suggestion'!=_0x318e6c||'insertion'!=_0x3d5338&&'deletion'!=_0x3d5338||(_0x2d01b4['unshift']({'type':_0x3d5338,'name':_0x4aeff6,'userId':_0x574bc0}),_0x2c2d09[_0x3c20ba]['markersStart']['splice'](_0x4ff9d8,0x1),_0x4ff9d8--);}_0x23bf37(_0x2c2d09[_0x3c20ba]);for(let _0x2c174b=0x0;_0x2c174b<_0x2c2d09[_0x3c20ba]['markersEnd']['length'];_0x2c174b++){const _0x5c6ac9=_0x2c2d09[_0x3c20ba]['markersEnd'][_0x2c174b];if(!_0x515c19['has'](_0x5c6ac9))continue;const {group:_0x483ca9,type:_0x4e7c2e}=_0x2952f7(_0x5c6ac9);if('revision-suggestion'!=_0x483ca9||'insertion'!=_0x4e7c2e&&'deletion'!=_0x4e7c2e)continue;_0x2c2d09[_0x3c20ba]['markersEnd']['splice'](_0x2c174b,0x1),_0x2c174b--;const _0x122760=_0x2d01b4['findIndex'](_0x3f7b87=>_0x3f7b87['name']==_0x5c6ac9);_0x122760>-0x1&&_0x2d01b4['splice'](_0x122760,0x1);}}function _0x2952f7(_0x55ed90){const _0x273a14=_0x55ed90['split'](':');return{'group':_0x273a14[0x0],'type':_0x273a14[0x1],'subType':_0x273a14['length']>=0x5?_0x273a14[0x2]:null,'id':_0x273a14['length']<0x5?_0x273a14[0x2]:_0x273a14[0x3],'authorId':_0x273a14['length']<0x5?_0x273a14[0x3]:_0x273a14[0x4],'markerCount':0x6==_0x273a14['length']?_0x273a14[0x5]:null};}function _0x23bf37(_0x2e58f2){for(let _0x32b69f=0x0;_0x32b69f<_0x2d01b4['length'];_0x32b69f++){if(_0x2e58f2['isAdded']&&'insertion'==_0x2d01b4[_0x32b69f]['type'])return _0x2e58f2['isAddSuggestion']=_0x2d01b4[_0x32b69f],void delete _0x2e58f2['isAdded'];if(!_0x2e58f2['isAdded']&&!_0x2e58f2['isRemoved']&&'deletion'==_0x2d01b4[_0x32b69f]['type'])return void(_0x2e58f2['isRemoveSuggestion']=_0x2d01b4[_0x32b69f]);}}}['_setDistance'](_0x11a52c,_0x3f1cda){let _0x79b13b=0x0,_0x184258=!0x1;const _0x227993=new Map();for(const _0x49bd6b of _0x11a52c)_0x49bd6b[_0x3f1cda]?_0x184258&&(_0x79b13b++,_0x184258=!0x1):(_0x79b13b++,_0x184258=!0x0),_0x227993['set'](_0x49bd6b['id'],_0x79b13b);for(let _0x4983c2=0x0;_0x4983c2<_0x11a52c['length'];_0x4983c2++){if('isRemoved'==_0x3f1cda&&_0x11a52c[_0x4983c2]['isAdded']||'isAdded'==_0x3f1cda&&_0x11a52c[_0x4983c2]['isRemoved'])continue;if('text'==_0x11a52c[_0x4983c2]['type']){_0x11a52c[_0x4983c2]['distance']=0x0;continue;}const _0x4acdad=_0x227993['get'](_0x11a52c[_0x4983c2]['pairId']),_0x4b90c9=_0x227993['get'](_0x11a52c[_0x4983c2]['id']);_0x11a52c[_0x4983c2]['distance']=_0x4acdad-_0x4b90c9;}}['_getRevisionsRange'](_0x61083a,_0x1cc50c,_0x196f10=!0x1){const _0x15d676=[];let _0x122fdd=this['repository']['getIndex'](_0x61083a),_0x3a6411=this['repository']['getIndex'](_0x1cc50c);for(-0x1==_0x3a6411&&(_0x3a6411=this['repository']['_revisions']['length'],_0x196f10=!0x1);_0x122fdd<_0x3a6411;)_0x15d676['push'](this['repository']['getRevision'](_0x122fdd)),_0x122fdd++;return _0x196f10&&_0x15d676['push'](this['repository']['getRevision'](_0x122fdd)),_0x15d676;}['_threeWayMerge'](_0x294d4b,_0x3a5de6,_0x33d79e,_0x509552){const _0x565f06=this['editor']['model']['schema'];let _0x47bfe3=_0x3a5de6;for(;_0x294d4b[_0x47bfe3]&&_0x294d4b[_0x47bfe3]['isAdded'];)_0x47bfe3++;let _0x37dc90=_0x509552;for(;_0x33d79e[_0x37dc90]&&_0x33d79e[_0x37dc90]['isRemoved'];)_0x37dc90++;_0x49d707(_0x294d4b,_0x3a5de6,_0x47bfe3),_0x49d707(_0x33d79e,_0x509552,_0x37dc90);const _0x4fc5a7=_0x33d79e['slice'](_0x509552,_0x37dc90)['concat'](_0x294d4b['slice'](_0x3a5de6,_0x47bfe3));return _0x4fc5a7['sort']((_0x55e4a9,_0xb3bf58)=>_0x55e4a9['side']!=_0xb3bf58['side']?_0x55e4a9['side']-_0xb3bf58['side']:_0x55e4a9['level']!=_0xb3bf58['level']?_0x55e4a9['level']-_0xb3bf58['level']:_0x55e4a9['distance']!=_0xb3bf58['distance']?_0xb3bf58['distance']-_0x55e4a9['distance']:!!_0x55e4a9['isAdded']!=!!_0xb3bf58['isAdded']?-0x1==_0x55e4a9['side']||0x0==_0x55e4a9['side']?_0x55e4a9['isAdded']?-0x1:0x1:_0x55e4a9['isAdded']?0x1:-0x1:_0x55e4a9['index']-_0xb3bf58['index']),{'commonTape':_0x4fc5a7,'iEnd':_0x47bfe3,'jEnd':_0x37dc90};function _0x49d707(_0x127b0c,_0x45bf05,_0x555ebd){let _0x24ba0f=-0x1,_0x33b870=Number['POSITIVE_INFINITY'],_0x4c71cb=!0x0;for(let _0x215c02=_0x45bf05;_0x215c02<_0x555ebd;_0x215c02++)if(_0x565f06['isInline'](_0x127b0c[_0x215c02]['item'])||(_0x4c71cb=!0x1),_0x127b0c[_0x215c02]['item']['startIndex']<_0x45bf05&&(_0x24ba0f=_0x215c02),_0x127b0c[_0x215c02]['item']['endIndex']>=_0x555ebd){_0x33b870=_0x215c02;break;}_0x4c71cb&&(_0x24ba0f=_0x555ebd-0x1);for(let _0x361688=_0x45bf05;_0x361688<_0x555ebd;_0x361688++)_0x127b0c[_0x361688]['side']=_0x361688<=_0x24ba0f?-0x1:_0x361688<_0x33b870?0x0:0x1,_0x127b0c[_0x361688]['index']=_0x361688;let _0xf3662a=0x0;for(let _0x48c3bc=_0x45bf05;_0x48c3bc<=_0x24ba0f;_0x48c3bc++)0x0==_0x127b0c[_0x48c3bc]['distance']?_0x127b0c[_0x48c3bc]['level']=_0xf3662a:(_0xf3662a++,_0x127b0c[_0x48c3bc]['level']=_0xf3662a,_0xf3662a++);for(let _0x123fb4=_0x45bf05;_0x123fb4<_0x555ebd;_0x123fb4++)0x0==_0x127b0c[_0x123fb4]['side']&&(_0x127b0c[_0x123fb4]['level']=_0xf3662a);_0xf3662a=0x0;for(let _0x4038f3=_0x555ebd-0x1;_0x4038f3>=_0x33b870;_0x4038f3--)0x0==_0x127b0c[_0x4038f3]['distance']?_0x127b0c[_0x4038f3]['level']=_0xf3662a:(_0xf3662a--,_0x127b0c[_0x4038f3]['level']=_0xf3662a,_0xf3662a--);}}['_fixObsoleteTags'](_0x1dd16d){const _0x5728f0=new Map(),_0x244cab=this['editor']['model']['schema'];for(let _0x29e7aa=0x1;_0x29e7aa<_0x1dd16d['length'];_0x29e7aa++){let _0x2b2bb6,_0x77d6c4,_0x5859cc;const _0x27fd9c=_0x1dd16d[_0x29e7aa],_0x1f1559=_0x1dd16d[_0x29e7aa-0x1];if('text'==_0x27fd9c['type'])continue;if(_0x27fd9c['type']!=_0x1f1559['type'])continue;if(!_0x244cab['isBlock'](_0x1f1559['item'])||_0x244cab['isLimit'](_0x1f1559['item']))continue;if(!_0x244cab['isBlock'](_0x27fd9c['item'])||_0x244cab['isLimit'](_0x27fd9c['item']))continue;if((_0x1dd16d[_0x29e7aa]['isAdded']||_0x1dd16d[_0x29e7aa]['isAddSuggestion'])&&_0x1dd16d[_0x29e7aa-0x1]['isRemoved'])_0x2b2bb6=_0x1dd16d[_0x29e7aa],_0x77d6c4=_0x1dd16d[_0x29e7aa-0x1],_0x5859cc=_0x29e7aa-0x1;else{if(!_0x1dd16d[_0x29e7aa]['isRemoved']||!_0x1dd16d[_0x29e7aa-0x1]['isAdded']&&!_0x1dd16d[_0x29e7aa-0x1]['isAddSuggestion'])continue;_0x2b2bb6=_0x1dd16d[_0x29e7aa-0x1],_0x77d6c4=_0x1dd16d[_0x29e7aa],_0x5859cc=_0x29e7aa;}const _0x827309=_0x2b2bb6['level']==_0x77d6c4['level'],_0x35ff5c=Math['abs'](_0x2b2bb6['level'])<Math['abs'](_0x77d6c4['level'])&&0x0==_0x77d6c4['distance'];(_0x827309||_0x35ff5c)&&(_0x5728f0['set'](_0x77d6c4['id'],_0x2b2bb6['id']),_0x1dd16d['splice'](_0x5859cc,0x1),_0x29e7aa--,_0x2b2bb6['isAdded']=!0x1);}for(let _0x29bb23=0x0;_0x29bb23<_0x1dd16d['length'];_0x29bb23++)_0x5728f0['has'](_0x1dd16d[_0x29bb23]['pairId'])&&(_0x1dd16d[_0x29bb23]['pairId']=_0x5728f0['get'](_0x1dd16d[_0x29bb23]['pairId']));}['_removeMissingPairs'](_0x12598b){const _0x14288f=new Set(_0x12598b['map'](_0x57453e=>_0x57453e['id']));for(let _0x55d4ae=0x0;_0x55d4ae<_0x12598b['length'];_0x55d4ae++)_0x14288f['has'](_0x12598b[_0x55d4ae]['pairId'])||0x0==_0x12598b[_0x55d4ae]['distance']||(_0x12598b[_0x55d4ae]['isIncorrect']=!0x0);return _0x12598b['filter'](_0x533e3b=>!_0x533e3b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x18e265){const _0x25988c=new Set();for(let _0x524ae1=0x0;_0x524ae1<_0x18e265['length'];_0x524ae1++){if(_0x25988c['has'](_0x18e265[_0x524ae1]['id'])&&_0x18e265[_0x524ae1]['isRemoved']&&(_0x18e265[_0x524ae1]['isIncorrect']=!0x0),_0x18e265[_0x524ae1]['isIncorrect'])continue;if(0x0==_0x18e265[_0x524ae1]['distance'])continue;if('elementStart'!=_0x18e265[_0x524ae1]['type'])continue;if(null==_0x18e265[_0x524ae1]['pairId'])continue;let _0x4b6d49=_0x524ae1+0x1,_0x223d9a=0x0;for(;_0x18e265[_0x4b6d49]['id']!=_0x18e265[_0x524ae1]['pairId'];)'elementStart'==_0x18e265[_0x4b6d49]['type']?_0x223d9a++:'elementEnd'==_0x18e265[_0x4b6d49]['type']&&_0x223d9a--,_0x4b6d49++;if(0x0!=_0x223d9a){if(_0x18e265[_0x524ae1]['isRemoved'])_0x18e265[_0x524ae1]['isIncorrect']=!0x0;else{for(;_0x4b6d49!=_0x524ae1;)_0x18e265[_0x4b6d49]['isRemoved']&&0x0!=_0x18e265[_0x4b6d49]['distance']&&(_0x18e265[_0x4b6d49]['isIncorrect']=!0x0,_0x25988c['add'](_0x18e265[_0x4b6d49]['pairId'])),_0x4b6d49--;}}}return _0x18e265['filter'](_0x2d98d1=>!_0x2d98d1['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c08e3){const _0x510ee9=this['editor']['model']['schema'];for(let _0x5c485e=0x0;_0x5c485e<_0x5c08e3['length'];_0x5c485e++){if(!(_0x5c08e3[_0x5c485e]['isAdded']||_0x5c08e3[_0x5c485e]['isAddSuggestion']||_0x5c08e3[_0x5c485e]['isRemoved']||_0x5c08e3[_0x5c485e]['isRemoveSuggestion']))continue;if(0x0==_0x5c08e3[_0x5c485e]['distance'])continue;const _0x53c1a4=_0x5c08e3[_0x5c485e]['item'];_0x510ee9['isBlock'](_0x53c1a4)||_0x510ee9['isLimit'](_0x53c1a4)||(_0x5c08e3[_0x5c485e]['isAdded']&&delete _0x5c08e3[_0x5c485e]['isAdded'],_0x5c08e3[_0x5c485e]['isAddSuggestion']&&delete _0x5c08e3[_0x5c485e]['isAddSuggestion'],_0x5c08e3[_0x5c485e]['isRemoveSuggestion']&&delete _0x5c08e3[_0x5c485e]['isRemoveSuggestion'],_0x5c08e3[_0x5c485e]['isRemoved']&&(_0x5c08e3[_0x5c485e]['isIncorrect']=!0x0));}return _0x5c08e3['filter'](_0x51e625=>!_0x51e625['isIncorrect']);}['_makeModelFromTape'](_0x5b9e72,_0x150809,_0x5f2736){const _0x4508e6=new vt(),_0x538328=[],_0x34b8cd=new Map(),_0x825d1a=this['editor']['model'],_0x2a3343=_0x825d1a['schema'],_0x5130a6=[_0x4508e6],_0x90ceea={},_0x1f49ab={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa1d405=null;const _0x541c4d=[0x0];for(let _0x185e1a=0x0;_0x185e1a<_0x5b9e72['length'];_0x185e1a++)if('elementStart'===_0x5b9e72[_0x185e1a]['type']){_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d);const _0x53a148=new ut(_0x5b9e72[_0x185e1a]['item']['name'],_0x5b9e72[_0x185e1a]['item']['getAttributes']());_0x5130a6[0x0]['_appendChild'](_0x53a148),_0x541c4d['push'](0x0),_0x5130a6['unshift'](_0x53a148),_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d);}else'elementEnd'===_0x5b9e72[_0x185e1a]['type']?(_0x5130a6['shift'](),_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d),_0x541c4d['pop'](),_0x541c4d[_0x541c4d['length']-0x1]++,_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d)):(_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d),_0xa1d405?_0xa1d405['_data']+=_0x5b9e72[_0x185e1a]['item']['data']:_0xa1d405=new gt(_0x5b9e72[_0x185e1a]['item']['data'],_0x5b9e72[_0x185e1a]['item']['getAttributes']()),_0x5b9e72[_0x185e1a+0x1]&&'text'===_0x5b9e72[_0x185e1a+0x1]['type']&&_0x4e3c84(_0xa1d405,_0x5b9e72[_0x185e1a+0x1]['item'])||(_0x5130a6[0x0]['_appendChild'](_0xa1d405),_0xa1d405=null),_0x541c4d[_0x541c4d['length']-0x1]+=_0x5b9e72[_0x185e1a]['item']['offsetSize'],_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d));for(let _0x173de2=0x0;_0x173de2<_0x5b9e72['length'];_0x173de2++){const _0x1bcb3e=_0x5b9e72[_0x173de2]['previousPosition'],_0x265615=_0x5b9e72[_0x173de2]['nextPosition'];for(const _0x510abd of _0x5b9e72[_0x173de2]['markersStart'])_0x34b8cd['set'](_0x510abd,{'start':_0x1bcb3e,'end':null});_0x1ac3b4('isRemoveSuggestion',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isAddSuggestion',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isRemoved',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isAdded',_0x173de2,_0x1bcb3e,_0x265615);for(const _0x224856 of _0x5b9e72[_0x173de2]['markersEnd']){const _0x45b28e=_0x34b8cd['get'](_0x224856);_0x45b28e?_0x45b28e['end']=_0x265615:_0x34b8cd['set'](_0x224856,{'start':_0x265615,'end':_0x265615});}}for(const [_0x411cca,_0x1ecc0e]of _0x34b8cd){const _0x2c5036=this['editor']['model']['createRange'](_0x1ecc0e['start'],_0x1ecc0e['end']);_0x4508e6['markers']['set'](_0x411cca,_0x2c5036);}return _0x538328['sort']((_0x41380b,_0x39dbcc)=>{const _0x43e5b3=_0x4508e6['markers']['get']('revision:'+_0x41380b['id']),_0x569383=_0x4508e6['markers']['get']('revision:'+_0x39dbcc['id']);return _0x43e5b3['start']['isBefore'](_0x569383['start'])?-0x1:_0x43e5b3['start']['isAfter'](_0x569383['start'])?0x1:_0x43e5b3['end']['isBefore'](_0x569383['end'])?-0x1:_0x43e5b3['end']['isAfter'](_0x569383['end'])?0x1:'add'===_0x41380b['type']?-0x1:0x1;}),{'root':_0x4508e6,'changes':_0x538328};function _0x1ac3b4(_0x574d20,_0x52e87d,_0x26634a,_0x4bcfee){const _0x2a72c1=!!_0x5b9e72[_0x52e87d][_0x574d20],_0x193742=_0x2a72c1?_0x5b9e72[_0x52e87d][_0x574d20]['userId']:null,_0x222f6c=_0x52e87d===_0x5b9e72['length']-0x1,_0x3fda73=_0x1f49ab[_0x574d20][0x0],_0x57510f=_0x2a3343['isObject'](_0x5b9e72[_0x52e87d]['item']);!_0x90ceea[_0x574d20]&&_0x2a72c1?_0x90ceea[_0x574d20]={'start':_0x26634a,'tapeItem':_0x5b9e72[_0x52e87d],'userId':_0x193742,'type':_0x574d20}:_0x90ceea[_0x574d20]&&!_0x2a72c1?(_0x90ceea[_0x574d20]['end']=_0x26634a,_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]=null):_0x90ceea[_0x574d20]&&_0x2a72c1&&_0x90ceea[_0x574d20]['userId']!==_0x193742&&(_0x90ceea[_0x574d20]['end']=_0x26634a,_0x3fda73&&_0x3fda73['userId']===_0x90ceea[_0x574d20]['userId']||_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]={'start':_0x26634a,'tapeItem':_0x5b9e72[_0x52e87d],'userId':_0x193742,'type':_0x574d20}),_0x90ceea[_0x574d20]&&_0x57510f&&('elementStart'!==_0x5b9e72[_0x52e87d]['type']||_0x3fda73&&_0x3fda73['userId']===_0x193742||_0x1f49ab[_0x574d20]['unshift']({'userId':_0x193742,'object':_0x5b9e72[_0x52e87d]['item'],'change':_0x90ceea[_0x574d20]}),'elementEnd'===_0x5b9e72[_0x52e87d]['type']&&_0x3fda73&&_0x3fda73['object']===_0x5b9e72[_0x52e87d]['item']&&(_0x1f49ab[_0x574d20]['shift'](),_0x90ceea[_0x574d20]=_0x3fda73['change'])),_0x90ceea[_0x574d20]&&_0x222f6c&&(_0x90ceea[_0x574d20]['end']=_0x4bcfee,_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]=null);}function _0x2a0bb4({start:_0x2ba8f7,end:_0x344e2c,tapeItem:_0x4b3749,userId:_0x2eead6,type:_0x31f0e1}){const _0x15cf43=_0x4b3749['item'],_0x4fa1f3=_0x825d1a['schema']['isBlock'](_0x15cf43)&&!_0x825d1a['schema']['isLimit'](_0x15cf43),_0x15c785=_0x2ba8f7['nodeAfter']==_0x344e2c['parent']&&_0x344e2c['isAtStart'];if(_0x4fa1f3&&_0x15c785)return;const _0x43b18b=_0x825d1a['createRange'](_0x2ba8f7,_0x344e2c),_0x44f2cc=_0x150809['get'](_0x2eead6),_0x2b5377=new r({'author':_0x44f2cc,'type':'isAdded'==_0x31f0e1||'isAddSuggestion'==_0x31f0e1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x31f0e1||'isRemoveSuggestion'==_0x31f0e1},'createdAt':new Date(),'rootName':_0x5f2736});_0x538328['push'](_0x2b5377),_0x4508e6['markers']['set']('revision:'+_0x2b5377['id'],_0x43b18b);}function _0x4e3c84(_0x28f06e,_0x392869){const _0x1e9979=_0x28f06e['getAttributes'](),_0x26b80f=_0x392869['getAttributes']();for(const _0x4676e1 of _0x1e9979){if(_0x4676e1[0x1]!==_0x392869['getAttribute'](_0x4676e1[0x0]))return!0x1;_0x26b80f['next']();}return _0x26b80f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf53dd0=>{const _0x4d23e5=_0xf53dd0['markerName']['split'](':')[0x1],_0x4bf507=this['_getChangeFromId'](_0x4d23e5);if(!_0x4bf507)return null;const _0x418c34='add'==_0x4bf507['type']?'insertion':'deletion',_0x2ac5ac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x418c34];return _0x4bf507['data']['isSuggestion']&&_0x2ac5ac['push']('ck-suggestion-marker-'+_0x418c34+'-new'),this['activeChange']==_0x4bf507&&_0x2ac5ac['push']('ck-suggestion-marker--active'),{'classes':_0x2ac5ac,'attributes':{'data-change-id':_0x4d23e5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x508a71=>{_0x508a71['on']('element:pre',(_0x2ad2e5,_0x36ba1e,_0xdf793a)=>{const _0x2e1273=_0x36ba1e['viewItem']['getChild'](0x0);if(!_0x2e1273||!_0x2e1273['is']('element','code'))return;if(!_0xdf793a['consumable']['consume'](_0x2e1273,{'attributes':['vid_start','vid_end']}))return;const _0x1f2c66=_0x36ba1e['modelRange']['start']['nodeAfter'];_0xdf793a['writer']['setAttribute']('vid_start',_0x2e1273['getAttribute']('vid_start'),_0x1f2c66),_0xdf793a['writer']['setAttribute']('vid_end',_0x2e1273['getAttribute']('vid_end'),_0x1f2c66);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5e2bf5=>{_0x5e2bf5['on']('element',(_0x22994e,_0x339db0,_0x582680)=>{if(!_0x582680['consumable']['consume'](_0x339db0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x339db0['modelRange']['isCollapsed'])return;const _0x5ae09d=_0x339db0['modelRange']['start']['nodeAfter'];_0x5ae09d['hasAttribute']('vid_start')||_0x5ae09d['hasAttribute']('vid')||(_0x582680['writer']['setAttribute']('vid_start',_0x339db0['viewItem']['getAttribute']('vid_start'),_0x5ae09d),_0x582680['writer']['setAttribute']('vid_end',_0x339db0['viewItem']['getAttribute']('vid_end'),_0x5ae09d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x8413e=>_0x8413e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c6df5,[,_0x500314])=>{['vid_start','vid_end','vid']['includes'](_0x500314)&&(_0x3c6df5['return']=!0x0,_0x3c6df5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1cfd97=>{_0x1cfd97['on']('attribute:vid',(_0x5a73fb,_0x526c4f,_0x19cf6c)=>{if('\x20'!=_0x526c4f['item']['data']||_0x526c4f['item']['parent']['maxOffset']>0x1)return;if(!_0x19cf6c['consumable']['consume'](_0x526c4f['item'],_0x5a73fb['name']))return;const _0x3d4d38=_0x19cf6c['writer'],_0x4b246b=_0x19cf6c['mapper']['toViewRange'](_0x526c4f['range']);_0x3d4d38['wrap'](_0x4b246b,_0x3d4d38['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x113b69){const _0x967ba=_0x113b69['plugins']['get']('RevisionViewer');return(_0x2b96ec,_0x17ef1e,_0x461ea9)=>{const _0x17f550=_0x17ef1e['markerName']['split'](':')[0x1],_0x4239a1=_0x967ba['_getChangeFromId'](_0x17f550);if(!_0x4239a1)return null;const _0x1dd53e='add'==_0x4239a1['type']?'split':'merge';if(!_0x461ea9['consumable']['test'](_0x17ef1e['markerRange'],_0x2b96ec['name']))return;const _0x4528e9=_0x17ef1e['markerRange']['getWalker'](),_0x51d201=_0x17ef1e['markerRange']['start'],_0x3036b9=_0x113b69['model']['schema'];let _0x4a15a0=null,_0x560af2=null,_0x12a214=!0x1,_0x487f64=!0x1;for(const _0x3b0a60 of _0x4528e9){const _0x6971d6=_0x3b0a60['item'];_0x12a214=_0x12a214||_0x3036b9['isContent'](_0x6971d6);const _0x4fa25e=_0x461ea9['mapper']['toViewElement'](_0x6971d6);if(_0x4fa25e&&_0x4fa25e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b0a60['type']&&(_0x3036b9['isBlock'](_0x6971d6)&&!_0x3036b9['isLimit'](_0x6971d6)&&(_0x6971d6['nextSibling']||_0x51d201['isAtEnd']?_0x4a15a0&&_0x4a15a0['parent']==_0x6971d6||(_0x4a15a0=_0x6971d6,_0x2caf4d(_0x3b0a60['previousPosition']),_0x487f64=!0x0):_0x560af2=_0x560af2||_0x3b0a60['previousPosition']));}function _0x2caf4d(_0x540987){const _0x3c2dbb=_0x461ea9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1dd53e}),_0x113e67=_0x461ea9['mapper']['toViewPosition'](_0x540987);_0x4239a1['data']['isSuggestion']&&_0x461ea9['writer']['addClass']('ck-suggestion-marker-'+_0x1dd53e+'-new',_0x3c2dbb),_0x967ba['activeChange']==_0x4239a1&&_0x461ea9['writer']['addClass']('ck-suggestion-marker--active',_0x3c2dbb),_0x461ea9['writer']['insert'](_0x113e67,_0x3c2dbb),_0x461ea9['mapper']['bindElementToMarker'](_0x3c2dbb,_0x17ef1e['markerName']);}_0x12a214||_0x487f64||!_0x560af2||_0x2caf4d(_0x560af2);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1bce4e,_0x4cfc3a,_0x403167)=>{const _0x3af620=_0x403167['mapper']['markerNameToElements'](_0x4cfc3a['markerName']);if(_0x3af620){for(const _0x2f2a1f of _0x3af620)(_0x2f2a1f['hasClass']('ck-suggestion-marker-split')||_0x2f2a1f['hasClass']('ck-suggestion-marker-merge'))&&(_0x403167['mapper']['unbindElementFromMarkerName'](_0x2f2a1f,_0x4cfc3a['markerName']),_0x403167['writer']['remove'](_0x2f2a1f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e8046,_0x2160d6,_0x3daec6)=>{const _0x35cb3f=_0x2160d6['markerName']['split'](':')[0x1],_0x1c01dc=this['_getChangeFromId'](_0x35cb3f);if(!_0x1c01dc)return null;const _0x4fbd3c='add'==_0x1c01dc['type']?'split':'merge';if(_0x3daec6['consumable']['test'](_0x2160d6['markerRange'],_0x3e8046['name']))for(const _0x5c60bd of _0x2160d6['markerRange']['getItems']()){if(!_0x5c60bd['is']('element','softBreak'))continue;const _0x197ebb=_0x3daec6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fbd3c}),_0x3df287=_0x3daec6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c60bd));_0x1c01dc['data']['isSuggestion']&&_0x3daec6['writer']['addClass']('ck-suggestion-marker-'+_0x4fbd3c+'-new',_0x197ebb),this['activeChange']==_0x1c01dc&&_0x3daec6['writer']['addClass']('ck-suggestion-marker--active',_0x197ebb),_0x3daec6['writer']['insert'](_0x3df287,_0x197ebb),_0x3daec6['mapper']['bindElementToMarker'](_0x197ebb,_0x2160d6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35ed41=>{for(const _0x9bbd73 of this['editor']['model']['document']['getRootNames']()){const _0x3771b8=this['editor']['model']['document']['getRoot'](_0x9bbd73),_0x557262=this['editor']['editing']['view']['document']['getRoot'](_0x9bbd73);if(_0x557262){const _0x31cc1a=_0x3771b8['getAttribute']('revisionHistoryAttachChange');if(_0x35ed41['removeAttribute']('data-change-id',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root-add',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root-remove',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root--active',_0x557262),_0x31cc1a){const _0x5b8a29=this['_getChangeFromId'](_0x31cc1a);if(!_0x5b8a29)return null;_0x35ed41['setAttribute']('data-change-id',_0x31cc1a,_0x557262),_0x35ed41['addClass']('ck-revision-history-root-'+_0x5b8a29['type'],_0x557262),this['activeChange']==_0x5b8a29&&_0x35ed41['addClass']('ck-revision-history-root--active',_0x557262);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5095a8=>'revision-comment:'+_0x5095a8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x16f6c1=>'revision-suggestion:'+_0x16f6c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3a8fb5=>({'name':'suggestion:'+_0x3a8fb5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2e767a=>{const _0x230feb=_0x2e767a['markerName']['split'](':')[0x1];return'insertion'!=_0x230feb&&'deletion'!=_0x230feb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x230feb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1e01a0,_0x10239e,_0x3a0ea2)=>{const _0x289711=_0x3a0ea2['mapper']['markerNameToElements'](_0x10239e['markerName']);if(_0x289711){for(const _0x51f0da of _0x289711)_0x51f0da['is']('uiElement')&&(_0x3a0ea2['mapper']['unbindElementFromMarkerName'](_0x51f0da,_0x10239e['markerName']),_0x3a0ea2['writer']['remove'](_0x51f0da));}},{'priority':'high'});}['_getChangeFromId'](_0x310816){return this['_changeIdToChange']['get'](_0x310816);}['_getViewForChange'](_0x5a4e42){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5a4e42),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1f2146,_0x549f51,_0x501254,_0x5a4fb9)=>{_0x5a4fb9&&this['_balloon']['remove'](_0x5a4fb9),_0x501254&&(this['_balloon']['add']({'view':_0x501254,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x54240c=this['editor']['editing'],_0x499b72=this['_getChangeFromId'](_0x501254['changeId']);let _0x51fa13;if(_0x499b72['data']['isOnRoot']){const _0x39630b=_0x54240c['view']['getDomRoot'](_0x499b72['rootName']);_0x51fa13=Array['from'](_0x39630b['getClientRects']());}else{const _0x4e5dc0=this['editor']['model']['markers']['get']('revision:'+_0x501254['changeId']);_0x51fa13=Array['from'](_0x54240c['mapper']['markerNameToElements'](_0x4e5dc0['name']))['map'](_0xafff0c=>_0x54240c['view']['domConverter']['mapViewToDom'](_0xafff0c))['map'](_0xbd44cb=>Array['from'](_0xbd44cb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51fa13[0x0];return _0x51fa13['find'](_0x449e9f=>_0x449e9f['top']-0x3<=this['_activeViewTarget']['y']&&_0x449e9f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x449e9f['left']-0x3<=this['_activeViewTarget']['x']&&_0x449e9f['right']+0x3>=this['_activeViewTarget']['x'])||_0x51fa13[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x221580,_0x4d8c54,_0x169f94,_0x18fd91)=>{this['activeView']=_0x169f94?this['_getViewForChange'](_0x169f94):null,this['editor']['model']['change'](()=>{const _0x2478e4=this['editor']['editing'];_0x18fd91&&(_0x18fd91['data']['isOnRoot']?_0x2478e4['view']['change'](_0x3f8742=>{_0x3f8742['removeClass']('ck-revision-history-root--active',_0x2478e4['view']['document']['getRoot'](_0x18fd91['rootName']));}):_0x2478e4['reconvertMarker']('revision:'+_0x18fd91['id'])),_0x169f94&&(_0x169f94['data']['isOnRoot']?_0x2478e4['view']['change'](_0x58b544=>{_0x58b544['addClass']('ck-revision-history-root--active',_0x2478e4['view']['document']['getRoot'](_0x169f94['rootName']));}):_0x2478e4['reconvertMarker']('revision:'+_0x169f94['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3490ff,_0x9e8233)=>{if(this['activeChange'])return;const _0x25090f=this['_findChangeIdFromDomTarget'](_0x9e8233['target']),_0x2f7923=this['_changeIdToChange']['get'](_0x25090f);_0x2f7923?(this['_activeViewTarget']={'x':_0x9e8233['domEvent']['x'],'y':_0x9e8233['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2f7923)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c7985,_0x355e6e)=>{const _0xe12620=this['_findChangeIdFromDomTarget'](_0x355e6e['target']),_0x2f1318=this['_changeIdToChange']['get'](_0xe12620);_0x2f1318?(this['_activeViewTarget']={'x':_0x355e6e['domEvent']['x'],'y':_0x355e6e['domEvent']['y']},_0x2f1318===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2f1318):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f7ddc){do{const _0x5f2e33=_0x2f7ddc['getAttribute']('data-change-id');if(_0x5f2e33)return _0x5f2e33;_0x2f7ddc=_0x2f7ddc['parent'];}while(_0x2f7ddc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3f8e3f=>{for(const _0x185096 of this['editor']['model']['markers'])_0x3f8e3f['removeMarker'](_0x185096);});}}function X(_0x10b8aa,_0x2bd49f){return(_0x21f235,_0x4524ff,_0x1e1644)=>{if(!_0x1e1644['consumable']['test'](_0x4524ff['markerRange'],_0x21f235['name']))return;const _0x120226=_0x4524ff['markerRange']['getWalker'](),_0x291a52=_0x4524ff['markerRange']['start'],_0x144179=_0x10b8aa['model']['schema'];let _0x572b00=null,_0x24539c=null,_0x1c9cfb=!0x1,_0x12ade5=!0x1;for(const _0x4277a1 of _0x120226){const _0x84df8d=_0x4277a1['item'];_0x1c9cfb=_0x1c9cfb||_0x144179['isContent'](_0x84df8d);const _0x14071e=_0x1e1644['mapper']['toViewElement'](_0x84df8d);if(_0x14071e&&_0x14071e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4277a1['type']&&(_0x144179['isBlock'](_0x84df8d)&&!_0x144179['isLimit'](_0x84df8d)&&(_0x84df8d['nextSibling']||_0x291a52['isAtEnd']?_0x572b00&&_0x572b00['parent']==_0x84df8d||(_0x572b00=_0x84df8d,_0xf3fbc(_0x4277a1['previousPosition']),_0x12ade5=!0x0):_0x24539c=_0x24539c||_0x4277a1['previousPosition']));}function _0xf3fbc(_0x1abccf){const _0x456642=_0x1e1644['mapper']['toViewPosition'](_0x1abccf),_0x18d520=_0x1e1644['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2bd49f});_0x1e1644['writer']['insert'](_0x456642,_0x18d520),_0x1e1644['mapper']['bindElementToMarker'](_0x18d520,_0x4524ff['markerName']);}_0x1c9cfb||_0x12ade5||!_0x24539c||_0xf3fbc(_0x24539c);};}class mt extends _0x233537{constructor(_0x1eacd3){super(_0x1eacd3);const _0x265314=_0x1eacd3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x265314,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x265314,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x482974=this['editor'],_0x505a03=_0x482974['plugins']['get'](m),_0x4256a3=_0x505a03['isReady']?_0x505a03['diff']['newRevisionId']:null;_0x482974['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4256a3);}['refresh'](){const {isReady:_0x3a52ab,isEnabled:_0x32f193,repository:_0x419462,diff:_0x58fafd}=this['editor']['plugins']['get'](m),_0x8a6170=_0x58fafd&&_0x419462['getLaterVisibleRevision'](_0x58fafd['newRevisionId']);this['isEnabled']=_0x3a52ab&&_0x32f193&&Boolean(_0x8a6170);}}class wt extends _0x233537{['_step'];constructor(_0x381157,{direction:_0x4c8bfc}){super(_0x381157);const _0x5e5252=_0x381157['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4c8bfc?0x1:-0x1,this['listenTo'](_0x5e5252,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5e5252,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5e5252,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x289533=this['editor'],_0x350453=_0x289533['plugins']['get'](m),{isNavigationMode:_0x37c403,currentChangeNumber:_0x15d651}=_0x350453;let _0xedb18d;if(_0x350453['activeChange']=_0x37c403?_0x350453['diff']['changes']['get'](_0x15d651+this['_step']):_0x350453['diff']['changes']['first'],_0x350453['activeChange']['data']['isOnRoot'])_0xedb18d=_0x289533['editing']['view']['getDomRoot'](_0x350453['activeChange']['rootName']);else{const _0x14abc3=_0x289533['model']['markers']['get']('revision:'+_0x350453['activeChange']['id']);_0xedb18d=_0x391391(_0x289533['editing'],_0x14abc3);}_0x5ed825({'target':_0xedb18d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2eb7bb,currentChangeNumber:_0x347874,numberOfChanges:_0x34b3fe,isReady:_0x39d410,isEnabled:_0x43c516}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x43c516&&_0x39d410&&_0x34b3fe)&&(!_0x2eb7bb||(0x1===this['_step']?_0x347874<_0x34b3fe-0x1:_0x347874>0x0));}}class _i extends ts{constructor(_0xcfcbb6){super(_0xcfcbb6);const _0x1e89c9=this['bindTemplate'],_0x14a0ef=new te(_0xcfcbb6),_0x500922=new te(_0xcfcbb6);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',(_0x1f56bf,_0x29cfac)=>_0x1f56bf&&_0x29cfac>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4234d4,_0x1013dd,_0x11ec34,_0x597eaa)=>{if(!_0x4234d4)return g(_0xcfcbb6,'Loading...');if(!_0x11ec34)return g(_0xcfcbb6,'No\x20changes');const _0x24bcc9=g(_0xcfcbb6,'NUMBER_OF_CHANGES',_0x11ec34);return _0x597eaa?g(_0xcfcbb6,'X_OF_Y_CHANGES',[_0x1013dd+0x1,_0x11ec34]):_0x24bcc9;}),_0x14a0ef['set']({'label':g(_0xcfcbb6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5cb84a}),_0x500922['set']({'label':g(_0xcfcbb6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x473186}),_0x14a0ef['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x500922['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x14a0ef['on']('execute',()=>this['fire']('execute','backward')),_0x500922['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',_0x1e89c9['if']('_isStatusLabelVisible','ck-hidden',_0x560d27=>!_0x560d27)]},'children':[{'text':_0x1e89c9['to']('isNavigationMode',_0x4f939e=>_0x4f939e?g(_0xcfcbb6,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0xcfcbb6,'Total')+':\x20')}]},{'text':_0x1e89c9['to']('_statusText')}]},new _0x1ebccf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x14a0ef,_0x500922]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x32d4e7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xf7997f=this['editor']['editing']['view'];_0xf7997f['change'](_0x370ace=>{for(const _0x545e5c of _0xf7997f['document']['roots'])_0x370ace['addClass'](le,_0x545e5c);});}['hide'](){const _0x1271df=this['editor']['editing']['view'];_0x1271df['change'](_0x2a4442=>{for(const _0x51653a of _0x1271df['document']['roots'])_0x2a4442['removeClass'](le,_0x51653a);});}}class R extends _0x32d4e7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x266e59=this['editor'],_0x9280f6=_0x266e59['plugins']['get'](m),_0x1ac8b2=_0x266e59['plugins']['get'](ge);_0x266e59['ui']['componentFactory']['add']('exitToEditing',_0x285ed0=>{const _0x29cc7a=new te(_0x285ed0);return _0x29cc7a['set']({'label':g(_0x285ed0,'Back\x20to\x20editing'),'icon':_0x1383b9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x29cc7a,'execute',()=>{_0x266e59['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x29cc7a;}),_0x266e59['ui']['componentFactory']['add']('restoreRevision',_0x5b44d2=>{const _0x29f3c8=new te(_0x5b44d2);return _0x29f3c8['set']({'label':g(_0x5b44d2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29f3c8['bind']('isEnabled')['to'](_0x266e59['commands']['get']('restoreRevision')),this['listenTo'](_0x29f3c8,'execute',()=>_0x266e59['execute']('restoreRevision')),_0x29f3c8;}),_0x266e59['ui']['componentFactory']['add']('changesNavigation',_0x3c7a0d=>{const _0x4b9722=new _i(_0x3c7a0d),_0x50e25f=_0x266e59['commands']['get']('showPreviousChange'),_0x2745a2=_0x266e59['commands']['get']('showNextChange');return _0x4b9722['bind']('isBackwardNavigationEnabled')['to'](_0x50e25f,'isEnabled'),_0x4b9722['bind']('isForwardNavigationEnabled')['to'](_0x2745a2,'isEnabled'),_0x4b9722['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x9280f6),this['listenTo'](_0x4b9722,'execute',(_0x46147d,_0x2bf88a)=>{_0x266e59['execute']('forward'===_0x2bf88a?'showNextChange':'showPreviousChange');}),_0x4b9722;}),_0x1ac8b2['show'](),_0x9280f6['on']('change:isReady',(_0x121a50,_0x42d6df,_0x684603)=>{_0x684603?_0x1ac8b2['hide']():_0x1ac8b2['show']();});}}class at extends _0x53ede4{['_resizeObserver']=null;constructor(_0x5c99c7,_0x136375){super(_0x5c99c7,_0x136375);const _0x5c082b=this['bindTemplate'];this['set']({'label':g(_0x5c99c7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5c99c7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5c082b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x42d93d=this['fieldView']['element'];this['_tooltipString']=_0x42d93d['scrollWidth']>_0x42d93d['clientWidth']&&_0x42d93d['value']||'';}}class si extends ts{constructor(_0x16848f,_0x505303,_0x29f404){super(_0x16848f);const _0x91e17c=new _0x3dbdca();_0x91e17c['set']({'content':_0x5c8a6f,'viewBox':'0\x200\x2011\x2010'});const _0x48a965=['ck','ck-revision-history-sidebar__revision-author'];_0x29f404&&_0x48a965['push']('ck-revision-history-sidebar__revision-author_creator');const _0x753f2e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x16848f,_0x29f404?'Revision\x20creator':'Revision\x20author')},'children':[_0x91e17c,_0x505303['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x48a965},'children':_0x753f2e});}}function oi(_0x299c1d,_0x13af2b){const _0x1be750=_0x299c1d['bindTemplate'],_0x3a97e8=_0x299c1d['locale'],_0x3e1772=_0x3c7a5d(_0x3a97e8);_0x3e1772['panelPosition']='sw';const _0x56e26d=function(_0x83b76d,_0x4917e1){const _0x117f89=function(_0x3e39ea,_0x40775a){const _0x47f1b1=_0x3e39ea['locale'],_0x5878d7={'Compare\x20against\x20selected':g(_0x47f1b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x47f1b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x47f1b1,'Restore\x20this\x20revision')};return _0x40775a['map'](_0x417d50=>{const _0x10087e=_0x5878d7[_0x417d50['name']];return _0x10087e&&_0x10087e!==_0x417d50['name']&&(_0x417d50['name']=_0x10087e),_0x417d50;});}(_0x83b76d,_0x4917e1),_0x1eacc4=new _0x5427d4();for(const _0x3666a3 of _0x117f89){const _0x4f20c6={'type':'button','model':new to({'label':_0x3666a3['name'],'class':_0x3666a3['class'],'withText':!0x0,'role':'menuitem','_action':_0x3666a3['action']})};_0x4f20c6['model']['bind']('isEnabled')['to'](_0x83b76d,'isActionsDropdownOpen',_0x22df34=>'function'!=typeof _0x3666a3['isEnabled']||(!_0x22df34||_0x3666a3['isEnabled'](_0x83b76d))),_0x1eacc4['add'](_0x4f20c6);}return _0x1eacc4;}(_0x299c1d,_0x13af2b);return _0x299c1d['bind']('isActionsDropdownOpen')['to'](_0x3e1772,'isOpen'),_0x3e1772['buttonView']['set']({'label':g(_0x3a97e8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x13419a}),_0x3e1772['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1be750['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1be750['to'](_0x35fc4e=>_0x35fc4e['stopPropagation']())}}),_0x3e1772['on']('execute',_0x2c05e2=>{_0x299c1d['isReady']&&'function'==typeof _0x2c05e2['source']['_action']&&_0x2c05e2['source']['_action'](_0x299c1d);}),_0x589ad9(_0x3e1772,_0x56e26d,{'role':'menu'}),_0x3e1772['listenTo'](_0x299c1d,'change:isActionsDropdownOpen',(_0x1203b2,_0x46e034,_0x351b34)=>{if(_0x351b34)for(const _0x32e3a1 of _0x3e1772['listView']['items']){const _0x246ba6=_0x32e3a1['children']['first'],_0x281a53=_0x13af2b['find'](_0x48a359=>_0x48a359['action']===_0x246ba6['_action'])['isVisible'];_0x32e3a1['isVisible']=void 0x0===_0x281a53||_0x281a53(_0x299c1d);}}),_0x3e1772;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x2a5be9,uid as _0xbd2e10,Collection as _0x84a14f,logWarning as _0x2a099f,FocusTracker as _0x5d78c4,KeystrokeHandler as _0x498ff9,scrollViewportToShowTarget as _0x2945f9,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4c1689}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5bb63f,set as _0x34096c,unset as _0x599304,isEqual as _0xf29574}from'es-toolkit/compat';import{Plugin as _0x3d5130,PendingActions as _0xa4c28f,Command as _0x4a8198,ElementApiMixin as _0x5b30b3,Editor as _0x3f8402}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x21cb4b,getMarkerDomElement as _0x176b60,ConfirmMixin as ti,sanitizeEditorConfig as _0x4493e4}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x480465,ViewAttributeElement as _0x4eff57,ViewEmptyElement as _0x36b7a8,ViewRawElement as _0x1108d1,ViewUIElement as _0xf6ff,ViewDocumentFragment as _0x4a3ef3,ViewText as _0x1536f9,ViewElement as _0x4e8c77,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x791eb9,IconChevronUp as _0x456c84,IconChevronDown as _0x1d5559,IconUndo as _0x6acf7e,IconUser as _0x383042,IconThreeVerticalDots as _0x16da7f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x3bbbfc,submitHandler as _0x32d34b,LabeledFieldView as _0xdbd9e1,createLabeledInputText as _0x530dc7,createDropdown as _0x2c73ee,ListView as _0x48ec40,ListItemView as _0xf49bba,ButtonView as te,MenuBarMenuView as _0x311452,MenuBarMenuListView as _0x30fe8f,MenuBarMenuListItemView as _0x131447,MenuBarMenuListItemButtonView as _0x1780ab,ContextualBalloon as _0x4618b4,ToolbarSeparatorView as _0x333091,IconView as _0x2933eb,addListToDropdown as _0x3b20d3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4f3e00}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a5be9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x53cf36){super(),this['id']=_0x53cf36['id']||_0xbd2e10(),this['creator']=_0x53cf36['creator']||null,this['authors']=_0x53cf36['authors']||[],this['diffData']=_0x53cf36['diffData']||null,this['toVersion']=_0x53cf36['toVersion']||0x0,this['fromVersion']=_0x53cf36['fromVersion']||0x0,this['set']('name',_0x53cf36['name']||''),this['set']('createdAt',_0x53cf36['createdAt']||new Date()),this['set']('attributes',_0x53cf36['attributes']||{});}['setName'](_0x5dd0c9){this['_update']({'name':_0x5dd0c9});}['setAttribute'](_0x56c5f2,_0x20c359){const _0x292486=_0x5bb63f(this['attributes']);_0x34096c(_0x292486,_0x56c5f2,_0x20c359),this['_update']({'attributes':_0x292486});}['removeAttribute'](_0x1693a3){const _0xa94aa3=_0x5bb63f(this['attributes']);_0x599304(_0xa94aa3,_0x1693a3),this['_update']({'attributes':_0xa94aa3});}['_update'](_0x324f6b,_0x3b2bb9=!0x1){let _0x460c72=!0x1;const _0xab6c25={'id':this['id']},_0x2968aa=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x580b58 of _0x2968aa){const _0xb76660=_0x324f6b[_0x580b58];void 0x0!==_0xb76660&&_0xb76660!==this[_0x580b58]&&(this[_0x580b58]=_0xb76660,_0xab6c25[_0x580b58]=_0xb76660,_0x460c72=!0x0);}_0x460c72&&(_0xab6c25['authors']&&(_0xab6c25['authorsIds']=_0xab6c25['authors']['map'](_0x3c6547=>_0x3c6547['id']),delete _0xab6c25['authors']),this['fire']('_update',_0xab6c25,_0x3b2bb9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3fc8e6=>_0x3fc8e6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3d5130{['_revisions'];static get['requires'](){return[_0x21cb4b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x54d1b2){super(_0x54d1b2),this['_revisions']=new _0x84a14f();}['afterInit'](){!async function(_0x5ae47c){const _0x477184=_0x37378a([0x4e,0x49,0x31,0x56,0x78,0x63,0x34,0x41,0x30,0x74,0x6f,0x6c,0x59,0x68,0x46,0x4d,0x77,0x38,0x65,0x6b,0x44,0x45,0x37,0x48,0x64,0x79,0x52,0x5a,0x69,0x43,0x51,0x4c,0x35,0x4f,0x67,0x53,0x55,0x62,0x33,0x42,0x4a,0x7a,0x75,0x36,0x32,0x50,0x39,0x6a,0x4b,0x54,0x57,0x6d,0x76,0x58,0x72,0x73,0x70,0x47,0x6e,0x71,0x61,0x66]),_0x26a0bb=0xeb829,_0xd55e96=0x458729cc,_0x33616e=0x45804a04^_0xd55e96,_0x51e6d8=window[_0x37378a([0x44,0x61,0x74,0x65])][_0x37378a([0x6e,0x6f,0x77])](),_0x42943e=_0x5ae47c[_0x37378a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29b32e=new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17f4bf=>{_0x42943e[_0x37378a([0x6f,0x6e,0x63,0x65])](_0x37378a([0x72,0x65,0x61,0x64,0x79]),_0x17f4bf);}),_0x111f43={[_0x37378a([0x6b,0x74,0x79])]:_0x37378a([0x45,0x43]),[_0x37378a([0x75,0x73,0x65])]:_0x37378a([0x73,0x69,0x67]),[_0x37378a([0x63,0x72,0x76])]:_0x37378a([0x50,0x2d,0x32,0x35,0x36]),[_0x37378a([0x78])]:_0x37378a([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]),[_0x37378a([0x79])]:_0x37378a([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]),[_0x37378a([0x61,0x6c,0x67])]:_0x37378a([0x45,0x53,0x32,0x35,0x36])},_0x4aeccf=_0x42943e[_0x37378a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37378a([0x67,0x65,0x74])](_0x37378a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41daa3(){let _0x243a5c,_0x148521=null,_0x5ca9b2=null;try{if(_0x4aeccf==_0x37378a([0x47,0x50,0x4c]))return _0x37378a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x243a5c=_0x226308(),!_0x243a5c)return _0x37378a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x243a5c[_0x37378a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ca9b2=_0x72d7d8(_0x243a5c[_0x37378a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x243a5c[_0x37378a([0x6a,0x74,0x69])])),await _0x5e0859()?_0x1d4c7f()?_0x2b8fa5()?_0x37378a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2aad39()?(_0x243a5c[_0x37378a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37378a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x148521=_0x17550f(_0x37378a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x243a5c[_0x37378a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37378a([0x74,0x72,0x69,0x61,0x6c])&&(_0x148521=_0x17550f(_0x37378a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11b713()):_0x37378a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37378a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37378a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x12db81){return _0x37378a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b8fa5(){const _0x3cb00c=[_0x37378a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37378a([0x74,0x72,0x69,0x61,0x6c])][_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x243a5c[_0x37378a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51e6d8/0x3e8:0xe10*_0x33616e;return _0x243a5c[_0x37378a([0x65,0x78,0x70])]<_0x3cb00c;}function _0x1d4c7f(){const _0x4028e2=_0x243a5c[_0x37378a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4028e2)return!0x1;if(_0x4028e2[_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37378a([0x2a])))return!0x0;if(_0x4028e2[_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37378a([0x52,0x48])))return!0x0;if(_0x4028e2[_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37378a([0x52,0x52,0x48]))){if(_0x492c12())return!0x0;if(_0x966cbb()||_0x599e72())return!0x0;}return!0x1;}function _0x2aad39(){const _0x4741fc=_0x243a5c[_0x37378a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4741fc||0x0==_0x4741fc[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x418799}=new URL(window[_0x37378a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4741fc[_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x418799))return!0x0;const _0x2ab340=_0x418799[_0x37378a([0x73,0x70,0x6c,0x69,0x74])](_0x37378a([0x2e]));return _0x4741fc[_0x37378a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29cace=>_0x29cace[_0x37378a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37378a([0x2a])))[_0x37378a([0x6d,0x61,0x70])](_0x46f12d=>_0x46f12d[_0x37378a([0x73,0x70,0x6c,0x69,0x74])](_0x37378a([0x2e])))[_0x37378a([0x73,0x6f,0x6d,0x65])](_0x39f476=>_0x2ab340[_0x37378a([0x65,0x76,0x65,0x72,0x79])]((_0x17c24e,_0x3c9fd9)=>_0x39f476[_0x3c9fd9]===_0x17c24e||_0x39f476[_0x3c9fd9]===_0x37378a([0x2a])));}function _0x11b713(){return _0x148521&&_0x5ca9b2?new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf97c,_0x1d312d)=>{_0x148521[_0x37378a([0x74,0x68,0x65,0x6e])](_0x1bf97c,_0x1d312d),_0x5ca9b2[_0x37378a([0x74,0x68,0x65,0x6e])](_0x23de74=>{_0x23de74!=_0x37378a([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf97c(_0x23de74);},_0x1d312d);}):_0x148521||_0x5ca9b2||_0x37378a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x72d7d8(_0x2d9a64,_0x448ba4){return new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff14b=>{if(_0x9af806())return _0x4ff14b(_0x37378a([0x56,0x61,0x6c,0x69,0x64]));_0x2b82e1(),_0x42943e[_0x37378a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37378a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bcd1b=!0x1;const _0xd23819=_0xbd2e10();function _0x666a0b(_0x51cd8a){return!!_0x51cd8a&&(typeof _0x51cd8a===_0x37378a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51cd8a===_0x37378a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51cd8a[_0x37378a([0x74,0x68,0x65,0x6e])]===_0x37378a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51cd8a[_0x37378a([0x63,0x61,0x74,0x63,0x68])]===_0x37378a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f5b4d(_0x194530){_0x2b522f(_0x194530)[_0x37378a([0x74,0x68,0x65,0x6e])](_0xcf0088=>{if(!_0xcf0088||_0xcf0088[_0x37378a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37378a([0x6f,0x6b]))return _0x37378a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x473dc2(_0x2a83ac(_0xd23819+_0x448ba4))!=_0xcf0088[_0x37378a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37378a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37378a([0x56,0x61,0x6c,0x69,0x64]);})[_0x37378a([0x74,0x68,0x65,0x6e])](_0x567fdc=>(_0x196365(),_0x567fdc),()=>{const _0x176904=_0xeca1c9();return null==_0x176904?(_0x196365(),_0x37378a([0x56,0x61,0x6c,0x69,0x64])):_0x37378a(_0x51e6d8-_0x176904>(0x618badcc^_0xd55e96)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37378a([0x74,0x68,0x65,0x6e])](_0x4ff14b)[_0x37378a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ff14b(_0x37378a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ad260=0x45b1c74c^_0xd55e96;function _0x196365(){const _0x3785ec=_0x37378a([0x6c,0x6c,0x63,0x74,0x2d])+_0x473dc2(_0x2a83ac(_0x2d9a64)),_0x4ac6a9=_0x2f7b8c(_0x473dc2(window[_0x37378a([0x4d,0x61,0x74,0x68])][_0x37378a([0x63,0x65,0x69,0x6c])](_0x51e6d8/_0x5ad260)));window[_0x37378a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37378a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3785ec,_0x4ac6a9);}function _0xeca1c9(){const _0x34b1d9=_0x37378a([0x6c,0x6c,0x63,0x74,0x2d])+_0x473dc2(_0x2a83ac(_0x2d9a64)),_0x205142=window[_0x37378a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37378a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34b1d9);return _0x205142?window[_0x37378a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f7b8c(_0x205142),0x10)*_0x5ad260:null;}function _0x2b522f(_0x59523b){return new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb4bb,_0x546936)=>{_0x59523b[_0x37378a([0x74,0x68,0x65,0x6e])](_0x2cb4bb,_0x546936),window[_0x37378a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x546936,0x4586fd0c^_0xd55e96);});}}_0x42943e[_0x37378a([0x6f,0x6e])](_0x37378a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c3bcc,_0x3eae0f)=>{if(_0x3eae0f[0x0]!=_0x2d9a64)return _0x4ff14b(_0x37378a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eae0f[0x1]={..._0x3eae0f[0x1],[_0x37378a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd23819};},{[_0x37378a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37378a([0x68,0x69,0x67,0x68])}),_0x42943e[_0x37378a([0x6f,0x6e])](_0x37378a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f841=>{_0x666a0b(_0x40f841[_0x37378a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bcd1b=!0x0,_0x5f5b4d(_0x40f841[_0x37378a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37378a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37378a([0x6c,0x6f,0x77])}),_0x29b32e[_0x37378a([0x74,0x68,0x65,0x6e])](()=>{_0x3bcd1b||_0x4ff14b(_0x37378a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9af806(){return _0x42943e[_0x37378a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37378a([0x76,0x69,0x65,0x77])][_0x37378a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37378a([0x61,0x75,0x74,0x6f]);}function _0x2b82e1(){_0x42943e[_0x37378a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37378a([0x76,0x69,0x65,0x77])][_0x37378a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37378a([0x61,0x75,0x74,0x6f]);}}function _0x17550f(_0x1f41ce){const _0x221990=[new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f161=>setTimeout(_0x42f161,0x458e1700^_0xd55e96)),_0x29b32e[_0x37378a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad905d=>{const _0x126fc1=0x458729cb^_0xd55e96,_0x5b3401=_0x5ae47c[_0x37378a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x597203(){_0x5b3401[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x126fc1&&_0xad905d();}_0x597203(),_0x5b3401[_0x37378a([0x6f,0x6e])](_0x37378a([0x61,0x64,0x64]),_0x597203);})),new window[(_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40249b=>{function _0x588d92(){for(const _0x881876 in window)if(window[_0x37378a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37378a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x881876))&&window[_0x881876]==_0x26a0bb)return _0x40249b();_0x42943e[_0x37378a([0x73,0x74,0x61,0x74,0x65])]!=_0x37378a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37378a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x588d92,0x45873a44^_0xd55e96);}_0x47be87(_0x37378a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x588d92();})];return window[_0x37378a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37378a([0x72,0x61,0x63,0x65])](_0x221990)[_0x37378a([0x74,0x68,0x65,0x6e])](()=>_0x1f41ce);}async function _0x48351a(){if(await _0x29b32e,_0x47be87(_0x37378a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x14acdf=_0x5ae47c[_0x37378a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x933170=_0x5ae47c[_0x37378a([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])](_0x14acdf[_0x37378a([0x69,0x64])]),_0x2b7c52=_0x2417f3(_0x37378a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2b7c52[_0x37378a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x14acdf['id'],_0x933170?_0x933170['id']:null,!0x0),_0x2b7c52[_0x37378a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37378a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b7c52[_0x37378a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b7c52[_0x37378a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23c3e6,void(_0x2b7c52[_0x37378a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23c3e6);}if(_0x47be87(_0x37378a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2e5e4a=_0x2417f3(_0x37378a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2e5e4a[_0x37378a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37378a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2e5e4a[_0x37378a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2e5e4a[_0x37378a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23c3e6,_0x2e5e4a[_0x37378a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23c3e6;}_0x42943e[_0x37378a([0x6d,0x6f,0x64,0x65,0x6c])][_0x37378a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23c3e6,_0x42943e[_0x37378a([0x6d,0x6f,0x64,0x65,0x6c])][_0x37378a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23c3e6,_0x42943e[_0x37378a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37378a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x492c12(){return _0x47be87(_0x37378a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2417f3(_0x37378a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37378a([0x73,0x74,0x61,0x74,0x65])]==_0x37378a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x966cbb(){return _0x47be87(_0x37378a([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 _0x599e72(){return _0x47be87(_0x37378a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xef48ef(_0x5c7fef){const _0xbee874=_0x23379e();_0x42943e[_0xbee874]=_0x37378a([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])+_0x5c7fef,_0x5c7fef[_0x37378a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37378a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x23379e()]=_0x26a0bb),_0x5c7fef!=_0x37378a([0x56,0x61,0x6c,0x69,0x64])&&_0x48351a();}function _0x23379e(){const _0x186a26=window[_0x37378a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37378a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37378a([0x6e,0x6f,0x77])]())[_0x37378a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37378a([0x2e]),'');let _0x356d8d=_0x37378a([0x4e]);for(let _0x578f13=0x0;_0x578f13<_0x186a26[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x578f13+=0x2){let _0x588e96=window[_0x37378a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x186a26[_0x37378a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x578f13,_0x578f13+0x2));_0x588e96>=_0x477184[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x588e96-=_0x477184[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x356d8d+=_0x477184[_0x588e96];}return _0x356d8d;}function _0x226308(){const _0x1e29dd=_0x4aeccf[_0x37378a([0x73,0x70,0x6c,0x69,0x74])](_0x37378a([0x2e]));if(0x3!=_0x1e29dd[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3473d3(_0x1e29dd[0x1]);function _0x3473d3(_0x2427d1){const _0x24f4ab=_0x58785a(_0x2427d1);return _0x24f4ab&&_0x4f5a48()?_0x24f4ab:null;function _0x4f5a48(){const _0x4030c1=_0x24f4ab[_0x37378a([0x6a,0x74,0x69])],_0x3c30ba=window[_0x37378a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4030c1[_0x37378a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4030c1[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27a8c8={..._0x24f4ab,[_0x37378a([0x6a,0x74,0x69])]:_0x4030c1[_0x37378a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4030c1[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27a8c8[_0x37378a([0x76,0x63])],_0x2a83ac(_0x27a8c8)==_0x3c30ba;}}}async function _0x5e0859(){let _0x2a3c30=!0x0;try{const _0x538d14=_0x4aeccf[_0x37378a([0x73,0x70,0x6c,0x69,0x74])](_0x37378a([0x2e])),[_0x2cae42,_0x169034,_0x49bae6]=_0x538d14;return _0x469334(_0x2cae42),await _0x2b6418(_0x2cae42,_0x169034,_0x49bae6),_0x2a3c30;}catch(_0x231416){return!0x1;}function _0x469334(_0xfe4220){const _0x57e820=_0x58785a(_0xfe4220);_0x57e820&&_0x57e820[_0x37378a([0x61,0x6c,0x67])]==_0x37378a([0x45,0x53,0x32,0x35,0x36])||(_0x2a3c30=!0x1);}async function _0x2b6418(_0x1c3922,_0x19c858,_0x3c3e6c){const _0x32cd82=window[_0x37378a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37378a([0x66,0x72,0x6f,0x6d])](_0x51f94a(_0x3c3e6c),_0x262550=>_0x262550[_0x37378a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38b1fd=new window[(_0x37378a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37378a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c3922+_0x37378a([0x2e])+_0x19c858),_0x9f3264=window[_0x37378a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37378a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9f3264)return;const _0x3396f0=await _0x9f3264[_0x37378a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37378a([0x6a,0x77,0x6b]),_0x111f43,{[_0x37378a([0x6e,0x61,0x6d,0x65])]:_0x37378a([0x45,0x43,0x44,0x53,0x41]),[_0x37378a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37378a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37378a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9f3264[_0x37378a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37378a([0x6e,0x61,0x6d,0x65])]:_0x37378a([0x45,0x43,0x44,0x53,0x41]),[_0x37378a([0x68,0x61,0x73,0x68])]:{[_0x37378a([0x6e,0x61,0x6d,0x65])]:_0x37378a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3396f0,_0x32cd82,_0x38b1fd)||(_0x2a3c30=!0x1);}}function _0x58785a(_0x18ec41){return _0x18ec41[_0x37378a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37378a([0x65,0x79]))?JSON[_0x37378a([0x70,0x61,0x72,0x73,0x65])](_0x51f94a(_0x18ec41)):null;}function _0x51f94a(_0xd9e314){return window[_0x37378a([0x61,0x74,0x6f,0x62])](_0xd9e314[_0x37378a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37378a([0x2b]))[_0x37378a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37378a([0x2f])));}function _0x2a83ac(_0x45f702){let _0x312474=0x1505;function _0x30c731(_0x39e47c){for(let _0x467d24=0x0;_0x467d24<_0x39e47c[_0x37378a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x467d24++){const _0x5363a7=_0x39e47c[_0x37378a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x467d24);_0x312474=(_0x312474<<0x5)+_0x312474+_0x5363a7,_0x312474&=_0x312474;}}function _0x3b320c(_0xac5405){Array[_0x37378a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xac5405)?_0xac5405[_0x37378a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b320c):_0xac5405&&typeof _0xac5405==_0x37378a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37378a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xac5405)[_0x37378a([0x73,0x6f,0x72,0x74])]()[_0x37378a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3900c9,_0x429f23])=>{_0x30c731(_0x3900c9),_0x3b320c(_0x429f23);}):_0x30c731(window[_0x37378a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xac5405));}return _0x3b320c(_0x45f702),_0x312474>>>0x0;}function _0x473dc2(_0x149751){return _0x149751[_0x37378a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37378a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37378a([0x30]));}function _0x2f7b8c(_0xcb09bc){return _0xcb09bc[_0x37378a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37378a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37378a([0x6a,0x6f,0x69,0x6e])]('');}function _0x47be87(_0x5aa5c6){return _0x42943e[_0x37378a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37378a([0x68,0x61,0x73])](_0x5aa5c6);}function _0x2417f3(_0x31ece7){return _0x42943e[_0x37378a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37378a([0x67,0x65,0x74])](_0x31ece7);}function _0x23c3e6(){}function _0x37378a(_0x19b99b){return _0x19b99b['map'](_0x20c392=>String['fromCharCode'](_0x20c392))['join']('');}_0xef48ef(await _0x41daa3());}(this);}['createRevision'](_0x25af66){const _0x5145d7=this['editor']['plugins']['get']('Users');return new h({'id':_0x25af66['id'],'name':_0x25af66['name'],'creator':_0x25af66['creatorId']?_0x5145d7['getUser'](_0x25af66['creatorId']):null,'diffData':_0x25af66['diffData']||_0x25af66['data'],'authors':_0x25af66['authorsIds']['map'](_0x4dbd85=>_0x5145d7['getUser'](_0x4dbd85)),'createdAt':new Date(_0x25af66['createdAt']),'attributes':_0x25af66['attributes'],'fromVersion':_0x25af66['fromVersion'],'toVersion':_0x25af66['toVersion']});}['addRevision'](_0x57f891,_0x348984=0x0){this['_revisions']['add'](_0x57f891,_0x348984);}['getRevision'](_0x2a1305){return this['_revisions']['get'](_0x2a1305);}['getRevisions'](_0x471c63={'toJSON':!0x1}){const _0x525dce=Array['from'](this['_revisions']);return _0x525dce['reverse'](),_0x471c63['toJSON']?_0x525dce['map'](_0x167d30=>_0x167d30['toJSON']()):_0x525dce;}['getIndex'](_0x4a320f){return this['_revisions']['getIndex'](_0x4a320f);}['getEarlierVisibleRevision'](_0x4c8ef1){const [,_0x374cca]=this['getRevisionsIterator'](_0x4c8ef1,{'direction':'earlier'});return _0x374cca;}['getLaterVisibleRevision'](_0x5f020d){const [,_0x40437a]=this['getRevisionsIterator'](_0x5f020d,{'direction':'later'});return _0x40437a;}['getRevisionsInDiff'](_0xe37bbf){const _0xe8b7b1=[];for(const _0x12d303 of this['getRevisionsIterator'](_0xe37bbf['newRevisionId']))if(_0xe8b7b1['push'](_0x12d303),_0x12d303['id']===_0xe37bbf['oldRevisionId'])break;return _0xe8b7b1;}*['getRevisionsIterator'](_0x301657,{direction:_0xf3f1d0='earlier',filter:_0x1d4b36=()=>!0x0}={}){const _0x303a9a='earlier'===_0xf3f1d0?0x1:-0x1;let _0x1c5cc6=this['_revisions']['get'](_0x301657),_0x2961f7=this['getIndex'](_0x1c5cc6);for(yield _0x1c5cc6;_0x1c5cc6;){if(_0x2961f7+=_0x303a9a,_0x1c5cc6=this['getRevision'](_0x2961f7),!_0x1c5cc6)return;_0x1d4b36(_0x1c5cc6)&&(yield _0x1c5cc6);}}}class V extends _0x3d5130{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x480465,'c'],[_0x4eff57,'a'],[_0x36b7a8,'e'],[_0x1108d1,'r'],[_0xf6ff,'u']]);['_typeCharToViewClass']=new Map([['c',_0x480465],['a',_0x4eff57],['e',_0x36b7a8],['r',_0x1108d1],['u',_0xf6ff]]);async['loadRevisionData'](_0x509325,_0x1e442a){if(_0x509325['diffData']||!_0x1e442a)return;const _0x1db49c=this['editor']['config']['get']('collaboration.channelId'),_0x3ffe79=await _0x1e442a['getRevision']({'channelId':_0x1db49c,'revisionId':_0x509325['id']});_0x509325['diffData']=_0x3ffe79['diffData'];}['getRevisionDocumentData'](_0x5a408f){const _0x5a55b0={};for(const _0x1f0a98 in _0x5a408f['diffData']){if(_0x5a408f['diffData'][_0x1f0a98]['attachChange']&&!_0x5a408f['diffData'][_0x1f0a98]['attachChange']['isAttached'])continue;const _0x259f58=this['_removeRevisionMarkers'](JSON['parse'](_0x5a408f['diffData'][_0x1f0a98]['insertions'])),_0x438589=this['editor']['editing']['view']['document'],_0x34e56e=new _0x4a3ef3(_0x438589,_0x259f58['map'](_0x4fcd43=>this['_getViewFromDiffObj'](_0x4fcd43,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a55b0[_0x1f0a98]=this['editor']['data']['processor']['toData'](_0x34e56e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a55b0;}['getRevisionRootsAttributes'](_0x529c3d){const _0x2b4663={};for(const _0x3a2f67 in _0x529c3d['diffData'])_0x529c3d['diffData'][_0x3a2f67]['attachChange']&&!_0x529c3d['diffData'][_0x3a2f67]['attachChange']['isAttached']||(_0x2b4663[_0x3a2f67]=_0x529c3d['diffData'][_0x3a2f67]['attributesAfter']||{});return _0x2b4663;}['_getTypeCharForViewElement'](_0x1f4d56){return this['_viewClassToTypeChar']['get'](_0x1f4d56['constructor']);}['_getViewFromDiffObj'](_0x5e16b1,_0x1fad73){const _0x3f47a4=this['editor']['editing']['view']['document'];if('string'==typeof _0x5e16b1)return new _0x1536f9(_0x3f47a4,_0x5e16b1);{let _0x150fda,_0xe2b516;_0xe2b516='u'==_0x5e16b1['type']||'r'==_0x5e16b1['type']?[]:_0x5e16b1['children']['map'](_0x3f7343=>this['_getViewFromDiffObj'](_0x3f7343,_0x1fad73));const _0x2d08d5=this['_typeCharToViewClass']['get'](_0x5e16b1['type'])||_0x4e8c77,_0x2f355d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x150fda=new _0x2d08d5(_0x3f47a4,_0x5e16b1['name'],_0x5e16b1['attributes'],_0xe2b516),'u'==_0x5e16b1['type']){const _0x1e8636=_0x5e16b1['children'][0x0];if(_0x150fda['render']=function(_0xdcf991){const _0x4d97f4=_0xdcf991['createElement']('div');return _0x4d97f4['innerHTML']=_0x1e8636,_0x4d97f4['childNodes'][0x0];},_0x1fad73){const _0x223234=new _0x4a3ef3(_0x3f47a4);_0x223234['_appendChild'](_0x150fda);const _0x4fd99d=Array['from'](_0x2f355d['viewChildrenToDom'](_0x223234,{'bind':!0x1})),_0x41d825=_0x2f355d['domDocument']['createElement']('div');_0x41d825['append'](..._0x4fd99d),_0x150fda=Array['from'](_0x2f355d['domChildrenToView'](_0x41d825))[0x0];}}else{if('r'==_0x5e16b1['type']){const _0x5dc0f8=_0x5e16b1['children'][0x0];if(_0x150fda['render']=function(_0x38b3fb){_0x38b3fb['innerHTML']=_0x5dc0f8;},_0x1fad73){const _0x2bed65=new _0x4a3ef3(_0x3f47a4);_0x2bed65['_appendChild'](_0x150fda);const _0x25671f=Array['from'](_0x2f355d['viewChildrenToDom'](_0x2bed65,{'bind':!0x1})),_0x3c7186=_0x2f355d['domDocument']['createElement']('div');_0x3c7186['append'](..._0x25671f);const _0xe80b33=Array['from'](_0x2f355d['domChildrenToView'](_0x3c7186));_0xe80b33['length']>0x1?_0x150fda['_appendChild'](_0xe80b33):_0x150fda=_0xe80b33[0x0];}}}if(_0x5e16b1['customProperties']){for(const [_0x5d18ba,_0x1b4e4c]of _0x5e16b1['customProperties'])_0x150fda['_setCustomProperty'](_0x5d18ba,_0x1b4e4c);}const _0x35e2a4=_0x5e16b1['fillerOffset']||null;return _0x150fda['getFillerOffset']=()=>_0x35e2a4,_0x150fda;}}['_makeModelFromViewString'](_0x1ddb78){const _0x332b61=JSON['parse'](_0x1ddb78),_0x1bd8ff=this['editor']['editing']['view']['document'],_0x1eab18=new _0x4a3ef3(_0x1bd8ff,_0x332b61['map'](_0x50c766=>this['_getViewFromDiffObj'](_0x50c766,!0x0)));return this['editor']['data']['toModel'](_0x1eab18);}['_removeRevisionMarkers'](_0x1681f5){return(_0x1681f5=_0x1681f5['filter'](_0x53ecd2=>!_0x53ecd2['name']||'revision-start'!==_0x53ecd2['name']&&'revision-end'!==_0x53ecd2['name']))['forEach'](_0x2335e3=>{'string'!=typeof _0x2335e3&&(_0x2335e3['children']=this['_removeRevisionMarkers'](_0x2335e3['children']),_0x2335e3['attributes']=_0x2335e3['attributes']['filter'](_0x488c11=>!_0x488c11[0x0]['startsWith']('data-revision-')));}),_0x1681f5;}}function g(_0x2e0766,_0x122b35,_0x36342a){const t=_0x2e0766['t'];switch(_0x122b35){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'},_0x36342a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x36342a);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x3d5130{['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[_0x21cb4b,I,V,_0xa4c28f];}constructor(_0x27264c){super(_0x27264c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1a0c5c=_0xbd2e10();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1a0c5c},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 _0x55203d=this['repository']['getRevision'](0x0),_0x46d66b=_0x55203d&&null===_0x55203d['creator']?_0x55203d:null;if(this['_continueCurrentRevision']=!!_0x46d66b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x32a2c8=this['_source']['getCurrentRevisionId'](),_0x14f275=this['repository']['getRevision'](_0x32a2c8);if(_0x14f275)this['_startingVersion']=_0x14f275['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x170f0a=this['_source']['history']['_operations']['find'](_0x74888c=>!_0x74888c['_isInit']),_0x318805=_0x170f0a?_0x170f0a['baseVersion']:this['_source']['history']['version'];_0x55203d?(_0x55203d['toVersion']<_0x318805&&_0x55203d['_update']({'toVersion':_0x318805}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46d66b['id'],this['_startingVersion']=_0x46d66b['fromVersion']):(this['_startingVersion']=_0x55203d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x318805,this['_continueCurrentRevision']=!0x1);}}else _0x46d66b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46d66b['toVersion'],this['editor']['model']['document']['history']['version']),_0x46d66b['fromVersion']===_0x46d66b['toVersion']?(0x0!==_0x46d66b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46d66b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46d66b['id'],this['_startingVersion']=_0x46d66b['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',_0x1a8568=>!_0x1a8568),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52ff3d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x551451;for(const _0x12fbcb in _0x52ff3d){const _0x3156ac=_0x12fbcb,_0x14f21a=_0x52ff3d[_0x3156ac];if('revisionHistoryLicenseKeyValid'==_0x14f21a||'revisionHistoryLicenseKeyInvalid'==_0x14f21a||'revisionHistoryLicenseKeyExpired'==_0x14f21a||'revisionHistoryLicenseKeyDomainLimit'==_0x14f21a||'revisionHistoryLicenseKeyNotAllowed'==_0x14f21a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x14f21a||'revisionHistoryLicenseKeyTrialLimit'==_0x14f21a||'revisionHistoryLicenseKeyUsageLimit'==_0x14f21a){delete _0x52ff3d[_0x3156ac],_0x551451=_0x14f21a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x551451&&_0x52ff3d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x551451&&_0x52ff3d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x551451&&_0x52ff3d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x551451&&_0x52ff3d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x551451&&_0x52ff3d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x551451&&_0x52ff3d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x551451&&_0x52ff3d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x59ce36=this['repository']['getRevision'](0x0),_0xe2e808=await this['getRevisionDocumentData'](_0x59ce36),_0x3df310=await this['getRevisionRootsAttributes'](_0x59ce36);this['_replaceEditorDataWithRevisionData'](_0xe2e808,_0x3df310);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b3c81){this['_source']=_0x2b3c81;}async['update'](){const _0x4e62a1=await this['_source']['getLatestVersion']();if(_0x4e62a1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x392a80=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4e62a1});_0x392a80['authors']=_0x392a80['authorsIds']['map'](_0x38e866=>this['editor']['plugins']['get']('Users')['getUser'](_0x38e866)),this['currentRevision']['_update'](_0x392a80);}}async['saveRevision'](_0x179199={},_0x4bc4f6=null){const _0x33a0fb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4bc4f6>this['currentRevision']['toVersion']&&(_0x4bc4f6=null),null===_0x4bc4f6&&(_0x4bc4f6=await this['_source']['getLatestVersion']());const _0x38562e=this['_getFromVersion'](_0x4bc4f6),_0x3b52bf=this['buildRevisionData']({'from':_0x38562e,'to':_0x4bc4f6});if(this['currentRevision']['toVersion']<_0x4bc4f6){const _0x44de63=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4bc4f6,'to':_0x4bc4f6});_0x44de63['authors']=[],_0x44de63['authorsIds']=[],_0x44de63['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x44de63,!0x0),delete _0x44de63['authors'],_0x33a0fb['push'](_0x44de63);}_0x179199['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x179199['name']=_0x179199['name']||null,_0x179199['id']=_0x179199['id']||_0xbd2e10(),_0x179199={..._0x179199,..._0x3b52bf};const _0x40d6ca=this['addRevisionData'](_0x179199);_0x33a0fb['push'](_0x179199);const _0x41dcbc=this['repository']['getIndex'](_0x40d6ca);if(0x0!==_0x41dcbc){const _0x30b9db=this['repository']['getRevision'](_0x41dcbc-0x1);if(_0x30b9db['fromVersion']!==_0x4bc4f6){const _0x44fce0=this['_revisionDataBuilder']['getData'](_0x4bc4f6,_0x30b9db['toVersion']),_0x268c79={'id':_0x30b9db['id'],'diffData':_0x44fce0['diffData'],'authorsIds':_0x44fce0['authorsIds'],'authors':_0x44fce0['authorsIds']['map'](_0x190386=>this['editor']['plugins']['get']('Users')['getUser'](_0x190386)),'fromVersion':_0x4bc4f6};_0x30b9db===this['currentRevision']&&(_0x268c79['createdAt']=new Date(_0x179199['createdAt']['getTime']()+0xa)),_0x30b9db['_update'](_0x268c79,!0x0),delete _0x268c79['authors'],_0x33a0fb['push'](_0x268c79);}}if(this['adapter']){for(const _0x23822a of _0x33a0fb)this['_bufferUpdate'](_0x23822a['id'],_0x23822a,!0x0);this['sendBufferedUpdates']();}return _0x40d6ca;}['addRevisionData'](_0x1a323a){const _0x31217c=this['repository']['createRevision'](_0x1a323a);return this['adapter']&&_0x31217c['on']('_update',(_0x5aed13,_0x43de0d,_0x10dd49)=>{_0x10dd49||(this['_bufferUpdate'](_0x43de0d['id'],_0x43de0d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x31217c,this['_findInsertionIndex'](_0x31217c)),_0x31217c;}async['getRevisionDocumentData'](_0x5d151f){return await this['_utils']['loadRevisionData'](_0x5d151f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5d151f);}async['getRevisionRootsAttributes'](_0x3ea34f){return await this['_utils']['loadRevisionData'](_0x3ea34f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3ea34f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d6836=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d16d2=0x0;_0x2d16d2<_0x5d6836['length'];_0x2d16d2++){const _0x56f677=_0x5d6836[_0x2d16d2];let _0x17951a=!0x1;for(const _0x39e7a5 of Object['keys'](_0x56f677))void 0x0===_0x56f677[_0x39e7a5]?delete _0x56f677[_0x39e7a5]:'id'!==_0x39e7a5&&(_0x17951a=!0x0);_0x17951a||(_0x5d6836[_0x2d16d2]=null);}if(_0x5d6836=_0x5d6836['filter'](_0xe8fdbd=>null!==_0xe8fdbd),!_0x5d6836['length'])return;for(let _0x53af88=0x0;_0x53af88<_0x5d6836['length'];_0x53af88++){const _0x924734=_0x5d6836[_0x53af88];void 0x0!==_0x924734['fromVersion']&&void 0x0===_0x924734['toVersion']&&(_0x924734['toVersion']=this['repository']['getRevision'](_0x924734['id'])['toVersion']),void 0x0!==_0x924734['toVersion']&&void 0x0===_0x924734['fromVersion']&&(_0x924734['fromVersion']=this['repository']['getRevision'](_0x924734['id'])['fromVersion']);}const _0x323095=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d6836,_0x323095)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x8917b1=>{if(_0x8917b1){for(const _0x3859df of _0x8917b1)this['setRevisionData']({'id':_0x3859df['id'],'createdAt':_0x3859df['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x212330=null,from:_0x9f506a=null,to:_0x553a80=null}){_0x9f506a=null!==_0x9f506a?_0x9f506a:_0x212330['fromVersion'],_0x553a80=null!==_0x553a80?_0x553a80:_0x212330['toVersion'];const _0x5e07a3=this['_revisionDataBuilder']['getData'](_0x9f506a,_0x553a80),_0x564a57={'diffData':_0x5e07a3['diffData'],'authorsIds':_0x5e07a3['authorsIds'],'fromVersion':_0x9f506a,'toVersion':_0x553a80};if(!_0x212330||_0x553a80!==_0x212330['toVersion']){const _0x10912d=_0x553a80-0x1,_0x52800b=this['_source']['history']['getOperation'](_0x10912d);_0x564a57['createdAt']=_0x52800b&&_0x52800b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x9f506a===this['_loadedStateData']['fromVersion']){for(const _0x1f2718 of this['_loadedStateData']['authors'])_0x564a57['authorsIds']['includes'](_0x1f2718['id'])||_0x564a57['authorsIds']['push'](_0x1f2718['id']);}return _0x564a57;}['_bufferUpdate'](_0x48cbb1,_0x12d044,_0x84fb7e){if(this['_bufferedUpdates']['has'](_0x48cbb1)){const _0x18ba2d=this['_bufferedUpdates']['get'](_0x48cbb1);_0x12d044=_0x84fb7e?{..._0x18ba2d,..._0x12d044}:{..._0x12d044,..._0x18ba2d};}this['_bufferedUpdates']['set'](_0x48cbb1,_0x12d044);}['setRevisionData'](_0x1b442a){const _0x9111d1=this['repository']['getRevision'](_0x1b442a['id']);if(_0x1b442a['createdAt']&&(_0x1b442a['createdAt']=new Date(_0x1b442a['createdAt'])),_0x1b442a['authorsIds']){const _0x324654=this['editor']['plugins']['get']('Users');_0x1b442a['authors']=_0x1b442a['authorsIds']['map'](_0x57a644=>_0x324654['getUser'](_0x57a644));}_0x9111d1['_update'](_0x1b442a,!0x0);}['_createInitialRevision'](_0x452d5b){const _0x5df823=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5df823)this['_initialRevisionId']=_0x5df823['id'];else{const _0x15b5ce=!this['editor']['model']['document']['roots']['find'](_0xfb644d=>this['editor']['model']['hasContent'](_0xfb644d)),_0x2c6a11=this['editor']['plugins']['get']('Users')['me']['id'],_0x2902f0=g(this['editor']['locale'],_0x15b5ce?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x452d5b,'to':_0x452d5b,'id':this['_initialRevisionId'],'name':_0x2902f0,'creatorId':_0x2c6a11});}}['_createCurrentRevision'](_0x1bea53){const _0x2a13ac=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2a13ac),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1bea53,'to':_0x1bea53,'id':_0x2a13ac,'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'](_0x1b2569,_0x1fe813){let _0x47a39c=this['editor']['config']['get']('initialData'),_0x1bc24b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x47a39c){_0x47a39c={};for(const _0x2ca868 of this['editor']['model']['document']['getRootNames']())_0x47a39c[_0x2ca868]='';}if('string'==typeof _0x47a39c&&(_0x47a39c={'main':_0x47a39c}),void 0x0===_0x1bc24b){_0x1bc24b={};for(const _0x512b60 of this['editor']['model']['document']['getRootNames']())_0x1bc24b[_0x512b60]={};}let _0x1b7f75=!0x1;const _0x216acf=Object['keys'](_0x47a39c),_0x59920b=Object['keys'](_0x1b2569);for(const _0x50e64f of _0x216acf){if(_0x47a39c[_0x50e64f]!==_0x1b2569[_0x50e64f]&&''!==_0x47a39c[_0x50e64f]['trim']()){_0x1b7f75=!0x0;break;}if(!_0xf29574(_0x1bc24b[_0x50e64f],_0x1fe813[_0x50e64f])&&Object['keys'](_0x1bc24b[_0x50e64f])['length']>0x0){_0x1b7f75=!0x0;break;}}_0x1b7f75||(_0x1b7f75=_0x59920b['some'](_0x302903=>!this['editor']['model']['document']['getRoot'](_0x302903))),_0x1b7f75&&_0x2a099f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x47a39c,'editorRootsAttributes':_0x1bc24b,'revisionData':_0x1b2569,'revisionRootsAttributes':_0x1fe813}),this['editor']['config']['set']('initialData',_0x1b2569),this['editor']['config']['set']('rootsAttributes',_0x1fe813);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x49d438=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x49d438['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4ae7d1){const _0x1e03f1=this['repository']['getRevisions']();_0x1e03f1['reverse']();let _0x4f8b33=0x0;for(;_0x4f8b33<_0x1e03f1['length'];){const _0x381811=_0x1e03f1[_0x4f8b33];if(_0x381811===this['currentRevision']){_0x4f8b33++;continue;}if(_0x381811['id']===this['_initialRevisionId'])break;const _0x496f80=_0x4ae7d1['toVersion']-_0x381811['toVersion']||_0x4ae7d1['fromVersion']-_0x381811['fromVersion'];if(_0x496f80>0x0)break;if(_0x496f80<0x0)_0x4f8b33++;else{if(!_0x4ae7d1['creator']&&_0x381811['creator'])break;if(_0x381811['creator']||!_0x4ae7d1['creator']){if(_0x4ae7d1['createdAt']>_0x381811['createdAt'])break;_0x4f8b33++;}else _0x4f8b33++;}}return _0x4f8b33;}['_getFromVersion'](_0x2c446c){const _0x1e4d3b=this['repository']['getRevisions']();_0x1e4d3b['reverse'](),_0x1e4d3b['shift']();const _0xa99121=_0x1e4d3b['find'](_0xe402c3=>_0xe402c3['toVersion']<=_0x2c446c)['toVersion'];return _0xa99121<this['_startingVersion']?this['_startingVersion']:_0xa99121;}['_makeRevision']({name:_0x34f8f8,from:_0xe54c74,to:_0x2982d4,creatorId:_0x17b029,id:_0x502cab}){const _0x4ea2e1=this['buildRevisionData']({'from':_0xe54c74,'to':_0x2982d4});_0x4ea2e1['name']=_0x34f8f8,_0x4ea2e1['creatorId']=_0x17b029,_0x4ea2e1['id']=_0x502cab;const _0x17bcf8=this['addRevisionData'](_0x4ea2e1);return this['adapter']&&this['_bufferUpdate'](_0x4ea2e1['id'],_0x4ea2e1,!0x0),_0x17bcf8;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x28a97d){this['editor']=_0x28a97d,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'](_0x27cc4e){this['source']=_0x27cc4e;const _0x2d7921=new Map(),_0x328f1a=new Map(),_0x164489=this['editor']['model']['document']['roots']['map'](_0xb0f777=>_0xb0f777['rootName']);for(const _0x578c5d of _0x164489){const _0x15e2cc=this['editor']['model']['document']['getRoot'](_0x578c5d),_0x3f8018=N(_0x15e2cc);_0x2d7921['set'](_0x578c5d,_0x3f8018),_0x328f1a['set'](_0x578c5d,Object['fromEntries'](_0x15e2cc['getAttributes']()));}const _0x283cab=Array['from'](this['editor']['model']['markers'])['map'](_0x3bddd5=>[_0x3bddd5['name'],_0x3bddd5['getRange']()]),_0x411eb3=this['source']['version'];this['_saveMetaData'](_0x411eb3,_0x2d7921,_0x283cab,_0x328f1a),this['_startingRevisionId']=this['_revisionId'];const _0x5dba0b=new Map(),_0x3b01e3=new Map();for(const _0x14fcbd of _0x164489){const _0x4d4890=P(_0x14fcbd);_0x5dba0b['set'](_0x14fcbd,_0x4d4890),_0x3b01e3['set'](_0x14fcbd,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5dba0b,[],_0x3b01e3);}['getData'](_0x35e9dd,_0x598674){if(this['_lastFrom']===_0x35e9dd&&this['_lastTo']<=_0x598674)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x598674,!0x0);else{if(!this['_savedMetaData']['has'](_0x35e9dd)){const _0x38c02b=this['_getPreviousFrom'](_0x35e9dd);this['_calculateMetaData'](_0x38c02b,_0x35e9dd,!0x1);}this['_calculateMetaData'](_0x35e9dd,_0x598674,!0x0);}return this['_lastFrom']=_0x35e9dd,this['_lastTo']=_0x598674,this['_getState']();}['loadState'](_0xee1ef3){const _0x115622=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xee1ef3['fromVersion'],this['_lastTo']=_0xee1ef3['toVersion'];for(const _0x9b5fdb in _0xee1ef3['diffData']){const _0x296fd1=_0xee1ef3['diffData'][_0x9b5fdb]['attachChange'],_0x13d753=_0x5bb63f(_0xee1ef3['diffData'][_0x9b5fdb]['attributesBefore'])||{},_0x2ac425=_0x115622['_makeModelFromViewString'](_0xee1ef3['diffData'][_0x9b5fdb]['deletions']);_0x2ac425['rootName']=_0x9b5fdb,_0x2ac425['_isAttached']=!_0x296fd1||!_0x296fd1['isAttached'],_0x2ac425['isAttached']=()=>_0x2ac425['_isAttached'],this['_baseRoots']['set'](_0x9b5fdb,_0x2ac425),this['_baseRootsAttributes']['set'](_0x9b5fdb,_0x13d753),_0x296fd1&&this['_touchedRoots']['set'](_0x9b5fdb,_0x296fd1);const _0x3848de=this['_makeIdsRoot'](_0x2ac425);this['_baseIdsRoots']['set'](_0x9b5fdb,_0x3848de);for(const [_0x2b4c38,_0x2ebf55]of _0x2ac425['markers']){if(!_0x2b4c38['startsWith']('revision:'))continue;const _0x911743=_0x2b4c38['split'](':')[0x2];for(const _0x233683 of _0x2ebf55['getWalker']({'singleCharacters':!0x0})){const _0x38a440=this['_getVidAttributeName'](_0x233683),_0x195b73='elementEnd'==_0x233683['type']?_0x233683['previousPosition']['path']['slice'](0x0,-0x1):_0x233683['previousPosition']['path'],_0x4bc740=_0x3848de['getNodeByPath'](_0x195b73)['getAttribute'](_0x38a440);this['_touched']['set'](_0x4bc740,{'userId':_0x911743});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24c9eb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x540bdb=>!this['_touched']['has'](_0x540bdb));let _0x432a1c=0x0;const _0x323b4e=new Map();for(const _0xf388ca in _0xee1ef3['diffData']){const _0x4e78a3=_0xee1ef3['diffData'][_0xf388ca]['attachChange'],_0x99172=_0x5bb63f(_0xee1ef3['diffData'][_0xf388ca]['attributesAfter'])||{},_0x21f0a5=_0x115622['_makeModelFromViewString'](_0xee1ef3['diffData'][_0xf388ca]['insertions']);_0x21f0a5['rootName']=_0xf388ca,_0x21f0a5['_isAttached']=!_0x4e78a3||_0x4e78a3['isAttached'],_0x21f0a5['isAttached']=()=>_0x21f0a5['_isAttached'],this['_diffRoots']['set'](_0xf388ca,_0x21f0a5),this['_diffRootsAttributes']['set'](_0xf388ca,_0x99172);const _0x7c8479=this['_makeIdsRoot'](_0x21f0a5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf388ca,_0x7c8479),_0x323b4e['set'](_0xf388ca,_0x21f0a5['isAttached']()?_0x99172:{});for(const [_0x54e484,_0x5f142f]of _0x21f0a5['markers']){if(!_0x54e484['startsWith']('revision:'))continue;const _0x31d162=_0x54e484['split'](':')[0x2];for(const _0x391977 of _0x5f142f['getWalker']({'singleCharacters':!0x0})){const _0x5c3ec2=this['_getVidAttributeName'](_0x391977),_0x44d6f6=this['_revisionId']++,_0x58ffd9='elementEnd'==_0x391977['type']?_0x391977['previousPosition']['path']['slice'](0x0,-0x1):_0x391977['previousPosition']['path'];_0x7c8479['getNodeByPath'](_0x58ffd9)['_setAttribute'](_0x5c3ec2,_0x44d6f6),this['_touched']['set'](_0x44d6f6,{'userId':_0x31d162});}}for(const _0x34214f of this['editor']['model']['createRangeIn'](_0x21f0a5)['getWalker']({'singleCharacters':!0x0})){const _0x462c5=this['_getVidAttributeName'](_0x34214f),_0x4d5824='elementEnd'==_0x34214f['type']?_0x34214f['previousPosition']['path']['slice'](0x0,-0x1):_0x34214f['previousPosition']['path'],_0x2b9b7a=_0x7c8479['getNodeByPath'](_0x4d5824);_0x2b9b7a['getAttribute'](_0x462c5)>0x0||_0x2b9b7a['_setAttribute'](_0x462c5,_0x24c9eb[_0x432a1c++]);}for(const [_0x39bc83,_0x223802]of _0x21f0a5['markers'])_0x39bc83['startsWith']('revision:')||this['_markers']['set'](_0x39bc83,_0x223802);}const _0x5d25c2=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5d25c2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d25c2,0x1));const _0x283b3f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x283b3f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x283b3f,0x1));const _0x35d50b=Array['from'](this['_diffRoots'])['map'](([_0x1ae129,_0x41ada0])=>[_0x1ae129,N(_0x41ada0)]);this['_saveMetaData'](this['_lastTo'],_0x35d50b,this['_markers'],_0x323b4e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x59f6f2,_0x3a064d,_0x21bdbe,_0x3d1ada){const _0x21253c=new Map(_0x3a064d),_0x5848dd=new Map(_0x5bb63f(_0x3d1ada)),_0x39974c=new Map();for(const [_0x1baed4,_0x26a139]of _0x21bdbe)_0x39974c['set'](_0x1baed4,{'start':_0x26a139['start']['clone'](),'end':_0x26a139['end']['clone'](),'rootName':_0x26a139['root']['rootName']});this['_savedMetaData']['set'](_0x59f6f2,{'roots':_0x21253c,'markers':_0x39974c,'rootsAttributes':_0x5848dd});}['_removeMetaData'](_0x41e101){this['_savedMetaData']['delete'](_0x41e101);}['_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'](_0x5a686d,_0x4a3072=null){let _0x5e9fea=null;_0x5a686d['is']('documentFragment')||(_0x5e9fea=new ut(_0x5a686d['name'],{'vid_start':null===_0x4a3072?this['_revisionId']++:_0x4a3072++}));const _0x4731f2=[];for(const _0x31180c of _0x5a686d['getChildren']())if(_0x31180c['is']('element')){_0x4731f2['push'](this['_makeIdsRoot'](_0x31180c,_0x4a3072));const _0x11fd23=_0x4731f2[_0x4731f2['length']-0x1];null!==_0x4a3072&&(_0x4a3072=_0x11fd23['is']('element','$text')?_0x11fd23['getAttribute']('vid')+0x1:_0x11fd23['getAttribute']('vid_end')+0x1);}else{for(let _0x528866=0x0;_0x528866<_0x31180c['offsetSize'];_0x528866++)_0x4731f2['push'](new ut('$text',{'vid':null===_0x4a3072?this['_revisionId']++:_0x4a3072++}));}if(_0x5a686d['is']('documentFragment')){const _0xea1aed=P(_0x5a686d['rootName']);return _0xea1aed['_insertChild'](0x0,_0x4731f2),_0xea1aed;}return _0x5e9fea['_setAttribute']('vid_end',null===_0x4a3072?this['_revisionId']++:_0x4a3072++),_0x5e9fea['_insertChild'](0x0,_0x4731f2),_0x5e9fea;}['_calculateMetaData'](_0x5c04be,_0x476292,_0x151274){this['_reset']();const {roots:_0x20c5f0,markers:_0x228575,rootsAttributes:_0xddbb0f}=this['_savedMetaData']['get'](_0x5c04be);this['_baseRoots']=new Map(_0x20c5f0),this['_baseRootsAttributes']=new Map(_0x5bb63f(_0xddbb0f));for(const [_0x23e7fb,_0x489d67]of this['_baseRoots'])if('$graveyard'!==_0x23e7fb&&(this['_diffRoots']['set'](_0x23e7fb,N(_0x489d67)),this['_diffRootsAttributes']=new Map(_0x5bb63f(_0xddbb0f)),_0x151274)){const _0x1bde9f=this['_revisionId'];this['_idsRoots']['set'](_0x23e7fb,this['_makeIdsRoot'](_0x489d67)),this['_baseIdsRoots']['set'](_0x23e7fb,this['_makeIdsRoot'](_0x489d67,_0x1bde9f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x151274&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x575895,_0x1fc2cc]of _0x228575){const _0x3a22f9=this['_baseRoots']['get'](_0x1fc2cc['rootName']),_0x5c4f62=this['_diffRoots']['get'](_0x1fc2cc['rootName']),_0x504c65=new lt(this['_fixPosition'](_0x1fc2cc['start'],_0x3a22f9),this['_fixPosition'](_0x1fc2cc['end'],_0x3a22f9)),_0x2de5a5=this['_fixRange'](_0x504c65,_0x5c4f62);_0x3a22f9['markers']['set'](_0x575895,_0x504c65),this['_markers']['set'](_0x575895,_0x2de5a5);}this['_applyOperations'](_0x5c04be,_0x476292,_0x151274);}['_applyOperations'](_0xce8a57,_0x2bbc2a,_0x3a5bd9){for(const _0x122a90 of this['source']['getOperations'](_0xce8a57,_0x2bbc2a))this['_handleOperation'](_0x122a90,_0x3a5bd9);for(const _0x11a813 of this['_diffRoots']['values']())_0x11a813['markers']['clear']();for(const [_0x581243,_0x35dc54]of this['_markers']){this['_diffRoots']['get'](_0x35dc54['root']['rootName'])['markers']['set'](_0x581243,_0x35dc54['clone']());}const _0x39dd31=new Map(),_0x1f1fcf=new Map();for(const [_0x583541,_0x1cbdf5]of this['_diffRoots'])_0x39dd31['set'](_0x583541,N(_0x1cbdf5)),_0x1f1fcf['set'](_0x583541,this['_diffRootsAttributes']['get'](_0x583541));this['_saveMetaData'](_0x2bbc2a,_0x39dd31,this['_markers'],_0x1f1fcf);}['_getPreviousFrom'](_0x16c4fe){const _0x4b7f1b=Array['from'](this['_savedMetaData']['keys']());_0x4b7f1b['sort']((_0x46c3ca,_0x487a11)=>_0x46c3ca-_0x487a11),_0x4b7f1b['reverse']();for(const _0x33356b of _0x4b7f1b)if(_0x33356b<_0x16c4fe)return _0x33356b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x36ca62,_0x331002){const _0x4aec50=Array['from'](_0x331002['markers'])['map'](([_0x1b567a,_0x1e54e6])=>[_0x1b567a,this['_fixRange'](_0x1e54e6,_0x36ca62)]);_0x36ca62['markers']=new Map(_0x4aec50);}['_transformMarkers'](_0x23b91d){for(const _0x41e010 of this['_markers']['values']()){const _0x4cfbdc=_0x41e010['getTransformedByOperation'](_0x23b91d),_0x13f22b=lt['_createFromRanges'](_0x4cfbdc);_0x41e010['start']=_0x13f22b['start'],_0x41e010['end']=_0x13f22b['end'];}}['_handleOperation'](_0xf4ec0e,_0x42e32d){if('addRoot'!=_0xf4ec0e['type']&&'detachRoot'!=_0xf4ec0e['type']){if('insert'==_0xf4ec0e['type']){const _0x2a6c8a=_0xf4ec0e['position']['root']['rootName'];this['_diffRoots']['has'](_0x2a6c8a)||(this['_diffRoots']['set'](_0x2a6c8a,P(_0x2a6c8a,!0x0)),this['_diffRootsAttributes']['set'](_0x2a6c8a,{}),_0x42e32d&&this['_idsRoots']['set'](_0x2a6c8a,P(_0x2a6c8a,!0x0)));}else{if('addRootAttribute'==_0xf4ec0e['type']||'removeRootAttribute'==_0xf4ec0e['type']||'changeRootAttribute'==_0xf4ec0e['type'])return void this['_handleRootAttributeOperation'](_0xf4ec0e);'marker'==_0xf4ec0e['type']&&this['_handleMarkerOperation'](_0xf4ec0e);}if('marker'!==_0xf4ec0e['type']){const _0x3808ad=this['_cloneOperation'](_0xf4ec0e,this['_diffRoots']);_0x3808ad['_execute'](),this['_transformMarkers'](_0x3808ad);}if(_0x42e32d)switch(_0xf4ec0e['type']){case'insert':this['_handleInsertOperation'](_0xf4ec0e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xf4ec0e);break;case'merge':this['_handleMergeOperation'](_0xf4ec0e);break;case'split':this['_handleSplitOperation'](_0xf4ec0e);}}else this['_handleRootOperation'](_0xf4ec0e,_0x42e32d);}['_cloneOperation'](_0x3ae67d,_0x318ce7){const _0x3e0390=_0x3ae67d['clone']();return _0x3e0390['_authorId']=_0x3ae67d['_authorId'],this['_fixOperation'](_0x3e0390,_0x318ce7),_0x3e0390;}['_getBaseVids'](_0x1ff0a9){return _0x1ff0a9['map'](_0x12489c=>{const _0x1603e5=this['_getVidAttributeName'](_0x12489c);return Number(_0x12489c['item']['getAttribute'](_0x1603e5));});}['_generateTape'](_0x2bad8a,_0xab0509){if(_0x2bad8a['is']('element','$text'))_0xab0509['push']({'item':_0x2bad8a,'type':'text'});else{_0x2bad8a['is']('element')&&_0xab0509['push']({'item':_0x2bad8a,'type':'elementStart'});for(const _0x474f0e of _0x2bad8a['getChildren']())this['_generateTape'](_0x474f0e,_0xab0509);_0x2bad8a['is']('element')&&_0xab0509['push']({'item':_0x2bad8a,'type':'elementEnd'});}return _0xab0509;}['_getState'](){const _0x1c9397=new Map(this['_touched']),_0x55fb43=new Map(_0x1c9397),_0x385679=new Map(),_0x4e01cf={'insertions':{},'deletions':{}},_0x20900a={'insertions':{},'deletions':{}},_0x2df9cb=new Map(),_0x1b6816=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1b6816['delete']('$graveyard');for(const _0x195b25 of _0x1b6816){const _0x13dba3=this['_diffRoots']['get'](_0x195b25)||P(_0x195b25,!0x1),_0x3d6a39=this['_baseRoots']['get'](_0x195b25)||P(_0x195b25,!0x1);_0x13dba3['isAttached']()||_0x3d6a39['isAttached']()?(_0x4e01cf['insertions'][_0x195b25]=N(_0x13dba3),_0x4e01cf['deletions'][_0x195b25]=N(_0x3d6a39),this['_copyMarkers'](_0x4e01cf['deletions'][_0x195b25],_0x3d6a39),this['_copyMarkers'](_0x4e01cf['insertions'][_0x195b25],_0x13dba3),_0x20900a['insertions'][_0x195b25]=this['_generateTape'](this['_idsRoots']['get'](_0x195b25),[]),_0x20900a['deletions'][_0x195b25]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x195b25)||P(_0x195b25,!0x1),[])):_0x1b6816['delete'](_0x195b25);}for(const _0x3f3b69 of _0x1b6816){const _0x434f2a=_0x20900a['insertions'][_0x3f3b69];for(const _0x44e4e4 of _0x434f2a){const _0xf3c33a=this['_getVidAttributeName'](_0x44e4e4),_0x3b849f=_0x44e4e4['item']['getAttribute'](_0xf3c33a);_0x55fb43['delete'](_0x3b849f),_0x3b849f>=this['_startingRevisionId']&&_0x385679['set'](_0x3b849f,_0x1c9397['get'](_0x3b849f));}}for(const _0x34d812 of _0x1b6816){const _0x4989e2=_0x20900a['insertions'][_0x34d812],_0x5ede86=this['_getBaseVids'](_0x20900a['deletions'][_0x34d812]);let _0x53e554=0x0;for(const _0x23031a of _0x4989e2){const _0x441051=this['_getVidAttributeName'](_0x23031a),_0x51cfac=_0x23031a['item']['getAttribute'](_0x441051);if(!_0x385679['has'](_0x51cfac)&&!_0x2df9cb['has'](_0x51cfac)){if(_0x55fb43['has'](_0x51cfac))_0x53e554++;else{if(_0x51cfac!=_0x5ede86[_0x53e554]){const _0x53706d=_0x1c9397['get'](_0x51cfac)||_0x1c9397['get'](_0x5ede86[_0x53e554]);for(;_0x51cfac!=_0x5ede86[_0x53e554];)_0x55fb43['has'](_0x5ede86[_0x53e554])||(_0x2df9cb['set'](_0x5ede86[_0x53e554],_0x53706d),_0x1c9397['set'](_0x5ede86[_0x53e554],_0x53706d)),_0x53e554++;}_0x53e554++;}}}}for(const _0x300119 of _0x1b6816){const _0x4e0ecb=_0x20900a['insertions'][_0x300119];for(const _0x160584 of _0x4e0ecb){const _0x1b8dc0=this['_getVidAttributeName'](_0x160584),_0x2bc7f8=_0x160584['item']['getAttribute'](_0x1b8dc0);if(_0x2df9cb['has'](_0x2bc7f8)){const _0x49e3ef=_0x2df9cb['get'](_0x2bc7f8);_0x55fb43['has'](_0x2bc7f8)||_0x55fb43['set'](_0x2bc7f8,{..._0x49e3ef}),_0x385679['set'](_0x2bc7f8,{..._0x49e3ef});}}}for(const _0xc70ae3 of _0x55fb43['keys']())_0xc70ae3>=this['_startingRevisionId']&&_0x55fb43['delete'](_0xc70ae3);const _0xcb8b1f=new Map();for(const _0x1313ea of _0x1b6816){let _0x41cf6d=_0x20900a['insertions'][_0x1313ea];for(const _0x587dfc of _0x41cf6d)if(_0x587dfc['item']['is']('element','tableCell')){const _0x9d1b5a=this['_getVidAttributeName'](_0x587dfc),_0x12db9d=_0x587dfc['item']['getAttribute'](_0x9d1b5a);if(_0x385679['has'](_0x12db9d)){const _0x27a7ea=_0x587dfc['item']['parent']['parent']['getAttribute']('vid_start'),_0x439fc5=_0xcb8b1f['get'](_0x27a7ea)||new Set();_0x439fc5['add'](_0x385679['get'](_0x12db9d)['userId']),_0xcb8b1f['set'](_0x27a7ea,_0x439fc5);}}_0x41cf6d=_0x20900a['deletions'][_0x1313ea];for(const _0x276b5e of _0x41cf6d)if(_0x276b5e['item']['is']('element','tableCell')){const _0xa5a83=this['_getVidAttributeName'](_0x276b5e),_0x13e27a=_0x276b5e['item']['getAttribute'](_0xa5a83);if(_0x55fb43['has'](_0x13e27a)){const _0x1fedaa=_0x276b5e['item']['parent']['parent']['getAttribute']('vid_start'),_0xac10b6=_0xcb8b1f['get'](_0x1fedaa)||new Set();_0xac10b6['add'](_0x55fb43['get'](_0x13e27a)['userId']),_0xcb8b1f['set'](_0x1fedaa,_0xac10b6);}}for(const _0x246b48 of _0xcb8b1f['keys']())(_0x385679['has'](_0x246b48)||_0x55fb43['has'](_0x246b48))&&_0xcb8b1f['delete'](_0x246b48);}for(const _0x1a7ba1 of _0x1b6816){const _0xd2c98b=_0x20900a['insertions'][_0x1a7ba1];let _0x53a6b8=null,_0xff43ac=null;for(const _0x54b883 of _0xd2c98b){const _0x514585=this['_getVidAttributeName'](_0x54b883),_0x486472=_0x54b883['item']['getAttribute'](_0x514585),_0x2ca18a=_0xcb8b1f['get'](_0x486472);_0x2ca18a&&'elementStart'==_0x54b883['type']&&(_0x53a6b8=Array['from'](_0x2ca18a)[0x0],_0xff43ac=_0x54b883['item']['getAttribute']('vid_end')),_0x53a6b8&&(_0x55fb43['set'](_0x486472,{'userId':_0x53a6b8}),_0x385679['set'](_0x486472,{'userId':_0x53a6b8})),_0x486472==_0xff43ac&&(_0x53a6b8=null,_0xff43ac=null);}}const _0x481382={},_0x1af3b4=new Set();for(const _0xb3464f of _0x1b6816){const _0x357a20=_0x4e01cf['deletions'][_0xb3464f],_0x571042=_0x4e01cf['insertions'][_0xb3464f];for(const {userId:_0x4dd71c}of this['_touchedMarkers']['values']())null!==_0x4dd71c&&_0x1af3b4['add'](_0x4dd71c);for(const {userId:_0x50a6f3}of this['_touchedRoots']['values']())null!==_0x50a6f3&&_0x1af3b4['add'](_0x50a6f3);this['_markChanges'](_0x571042,_0x20900a['insertions'][_0xb3464f],_0x385679,'insertion',_0x1af3b4),this['_markChanges'](_0x357a20,_0x20900a['deletions'][_0xb3464f],_0x55fb43,'deletion',_0x1af3b4),_0x481382[_0xb3464f]={'insertions':this['_prepareViewToSave'](_0x571042),'deletions':this['_prepareViewToSave'](_0x357a20),'attachChange':this['_touchedRoots']['get'](_0xb3464f)||null,'attributesBefore':_0x5bb63f(this['_baseRootsAttributes']['get'](_0xb3464f))||{},'attributesAfter':_0x5bb63f(this['_diffRootsAttributes']['get'](_0xb3464f))};}return{'diffData':_0x481382,'authorsIds':Array['from'](_0x1af3b4)};}['_processRootBeforeSave'](_0x291aa8){for(const [,_0x6e76d0]of _0x291aa8['markers']){const _0x5cc4cb=_0x6e76d0['start']['getAncestors']()['filter'](_0x42f770=>'tableCell'==_0x42f770['name']);for(const _0x3af578 of _0x5cc4cb)0x1==_0x3af578['childCount']&&_0x3af578['getChild'](0x0)['is']('element','paragraph')&&_0x3af578['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24f834){this['_processRootBeforeSave'](_0x24f834);const _0x2d0dfb=this['editor']['data']['toView'](_0x24f834,{}),_0x215435=Array['from'](_0x2d0dfb['getChildren']())['map'](_0x4934b7=>this['_getViewJson'](_0x4934b7));return JSON['stringify'](_0x215435);}['_getViewJson'](_0x46fa78){if(_0x46fa78['is']('$text'))return _0x46fa78['data'];{const _0x45086e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x13582a=_0x46fa78,_0x1c1dc1=this['editor']['data']['htmlProcessor']['domConverter'],_0x3f512e={'type':_0x45086e['_getTypeCharForViewElement'](_0x13582a),'name':_0x13582a['name'],'attributes':Array['from'](_0x13582a['getAttributes']()),'children':Array['from'](_0x13582a['getChildren']())['map'](_0xb0c885=>this['_getViewJson'](_0xb0c885))};if(_0x46fa78['is']('uiElement')&&'$comment'!=_0x46fa78['name']){const _0x1ac8cb=_0x46fa78['render'](_0x1c1dc1['domDocument'],_0x1c1dc1);_0x3f512e['children']['push'](_0x1ac8cb['outerHTML']);}else{if(_0x46fa78['is']('rawElement')){const _0x2b645b=_0x1c1dc1['domDocument']['createElement'](_0x13582a['name']);_0x46fa78['render'](_0x2b645b,_0x1c1dc1),_0x3f512e['children']['push'](_0x2b645b['innerHTML']);}}const _0x13199a=Array['from'](_0x13582a['getCustomProperties']());_0x13199a['length']>0x0&&(_0x3f512e['customProperties']=_0x13199a);const _0x53ba3c=_0x13582a['getFillerOffset']();return null!==_0x53ba3c&&(_0x3f512e['fillerOffset']=_0x53ba3c),_0x3f512e;}}['_markChanges'](_0x4a1131,_0x3a5b7e,_0x1b396d,_0x3ffe7b,_0x11aadc){let _0x5cf014=null,_0x535941=null,_0x27f8a3=0x0;const _0x974041=this['editor']['model'];for(let _0x2d8581=0x0;_0x2d8581<_0x3a5b7e['length'];_0x2d8581++){const _0x11f103=this['_getVidAttributeName'](_0x3a5b7e[_0x2d8581]),_0x4138a5=_0x3a5b7e[_0x2d8581]['item']['getAttribute'](_0x11f103),_0x3af6f8=_0x1b396d['get'](_0x4138a5),_0x562455=_0x2d8581==_0x3a5b7e['length']-0x1;(!_0x5cf014&&_0x3af6f8&&(_0x5cf014=_0x3af6f8,_0x535941=_0x3a5b7e[_0x2d8581]),_0x5cf014&&(!_0x3af6f8||_0x3af6f8['userId']!=_0x5cf014['userId']))&&(_0x401602(_0x3af6f8,F(_0x535941,_0x4a1131,_0x974041),F(_0x3a5b7e[_0x2d8581],_0x4a1131,_0x974041)),_0x5cf014=_0x3af6f8||null,_0x535941=_0x3af6f8?_0x3a5b7e[_0x2d8581]:null),_0x5cf014&&_0x562455&&_0x401602(_0x3af6f8,F(_0x535941,_0x4a1131,_0x974041),B(_0x3a5b7e[_0x2d8581],_0x4a1131,_0x974041));}function _0x401602(_0xd9babe,_0x16bf34,_0x86dbd5){const _0x2150ed=_0x5cf014['userId'],_0x3230c5='revision:'+_0x3ffe7b+':'+_0x2150ed+':'+_0x27f8a3++,_0x4321c8=_0x974041['createRange'](_0x16bf34,_0x86dbd5);_0x4a1131['markers']['set'](_0x3230c5,_0x4321c8),null!==_0x2150ed&&_0x11aadc['add'](_0x2150ed);}}['_getVidAttributeName'](_0x52a327){switch(_0x52a327['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5178ec,_0x551137){_0x5178ec['baseVersion']=null;for(const _0x419b76 in _0x5178ec){const _0x5b3e0f=_0x5178ec[_0x419b76];if(_0x5b3e0f instanceof ft){const _0xf056c=_0x551137['get'](_0x5b3e0f['root']['rootName']);_0x5178ec[_0x419b76]=this['_fixPosition'](_0x5b3e0f,_0xf056c);}if(_0x5b3e0f instanceof lt){const _0x66126c=_0x551137['get'](_0x5b3e0f['root']['rootName']);_0x5178ec[_0x419b76]=this['_fixRange'](_0x5b3e0f,_0x66126c);}'root'===_0x419b76&&(_0x5178ec['root']=_0x551137['get'](_0x5178ec['root']['rootName']));}}['_fixRange'](_0xf40484,_0x223d7c){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf40484['start'],_0x223d7c),this['_fixPosition'](_0xf40484['end'],_0x223d7c));}['_fixPosition'](_0xb7974d,_0x38b210){return this['editor']['model']['createPositionFromPath'](_0x38b210,_0xb7974d['path'],_0xb7974d['stickiness']);}['_handleInsertOperation'](_0x5c070b){const _0x1de850=this['_idsRoots']['get'](_0x5c070b['position']['root']['rootName']),_0x2d1c5c=this['_fixPosition'](_0x5c070b['position'],_0x1de850),_0x1cb165=null===_0x5c070b['_authorId']?null:_0x5c070b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x776364=_0x2d1c5c['parent'],_0xd37019=this['_revisionId'],_0x1ebb80=[];for(const _0x4aec08 of _0x5c070b['nodes'])if(_0x4aec08['is']('element'))_0x1ebb80['push'](this['_makeIdsRoot'](_0x4aec08));else{for(let _0x5ae514=0x0;_0x5ae514<_0x4aec08['offsetSize'];_0x5ae514++)_0x1ebb80['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2b7101=this['_revisionId'];for(let _0x375298=_0xd37019;_0x375298<_0x2b7101;_0x375298++)this['_touched']['set'](_0x375298,{'userId':_0x1cb165});_0x776364['_insertChild'](_0x2d1c5c['offset'],_0x1ebb80);}['_handleMoveOperation'](_0x390609){(_0x390609=this['_cloneOperation'](_0x390609,this['_idsRoots']))['_execute']();const _0x3dbec2=null===_0x390609['_authorId']?null:_0x390609['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x312d66=_0x390609['getMovedRangeStart'](),_0x469ece=_0x312d66['parent'],_0x18da33=_0x312d66['offset'];!function _0x27b4ba(_0x2e6984,_0x2c3140,_0x45dfd0,_0x43ec24){for(let _0x3b8d33=_0x45dfd0;_0x3b8d33<_0x43ec24;_0x3b8d33++){const _0x1901d6=_0x2c3140['getChild'](_0x3b8d33);_0x1901d6['is']('element','$text')?_0x2e6984['set'](_0x1901d6['getAttribute']('vid'),{'userId':_0x3dbec2}):(_0x2e6984['set'](_0x1901d6['getAttribute']('vid_start'),{'userId':_0x3dbec2}),_0x27b4ba(_0x2e6984,_0x1901d6,0x0,_0x1901d6['childCount']),_0x2e6984['set'](_0x1901d6['getAttribute']('vid_end'),{'userId':_0x3dbec2}));}}(this['_touched'],_0x469ece,_0x18da33,_0x18da33+_0x390609['howMany']);}['_handleMergeOperation'](_0x766510){const _0x1b6224=null===(_0x766510=this['_cloneOperation'](_0x766510,this['_idsRoots']))['_authorId']?null:_0x766510['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2653dc=_0x766510['targetPosition']['parent'],_0x1cb3ad=_0x766510['sourcePosition']['parent'],_0x352b76=_0x2653dc['getAttribute']('vid_end'),_0x253ccf=_0x1cb3ad['getAttribute']('vid_start');_0x2653dc['_setAttribute']('vid_end',_0x1cb3ad['getAttribute']('vid_end')),_0x1cb3ad['_setAttribute']('vid_end',_0x352b76),this['_touched']['set'](_0x253ccf,{'userId':_0x1b6224}),this['_touched']['set'](_0x352b76,{'userId':_0x1b6224}),_0x766510['_execute']();}['_handleSplitOperation'](_0x37bcd7){const _0x31bcba=null===(_0x37bcd7=this['_cloneOperation'](_0x37bcd7,this['_idsRoots']))['_authorId']?null:_0x37bcd7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x339faa=_0x37bcd7['graveyardPosition'],_0x565c6d=_0x37bcd7['splitPosition']['parent'];_0x37bcd7['_execute']();const _0x33b79a=_0x565c6d['getAttribute']('vid_end'),_0x5669b1=_0x37bcd7['insertionPosition']['nodeAfter'];if(_0x339faa){const _0x54aeb9=_0x5669b1['getAttribute']('vid_end'),_0x21a010=_0x565c6d['getAttribute']('vid_end');_0x565c6d['_setAttribute']('vid_end',_0x54aeb9),_0x5669b1['_setAttribute']('vid_end',_0x21a010),this['_touched']['set'](_0x565c6d['getAttribute']('vid_end'),{'userId':_0x31bcba}),this['_touched']['set'](_0x5669b1['getAttribute']('vid_start'),{'userId':_0x31bcba});}else{const _0x374d2d=this['_revisionId']++,_0x317933=this['_revisionId']++;_0x565c6d['_setAttribute']('vid_end',_0x374d2d),_0x5669b1['_setAttribute']('vid_start',_0x317933),_0x5669b1['_setAttribute']('vid_end',_0x33b79a),this['_touched']['set'](_0x374d2d,{'userId':_0x31bcba}),this['_touched']['set'](_0x317933,{'userId':_0x31bcba});}}['_handleMarkerOperation'](_0x88bcad){if(!_0x88bcad['affectsData'])return;const _0x4e5f82=(_0x88bcad=this['_cloneOperation'](_0x88bcad,this['_diffRoots']))['oldRange']?_0x88bcad['oldRange']['root']:null,_0x7fb9d=_0x88bcad['newRange']?_0x88bcad['newRange']['root']:null;_0x4e5f82&&this['_markers']['delete'](_0x88bcad['name']),_0x7fb9d&&this['_markers']['set'](_0x88bcad['name'],_0x88bcad['newRange']['clone']());const _0x104654=null===_0x88bcad['_authorId']?null:_0x88bcad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23514=_0x88bcad['name'];if(!this['_touchedMarkers']['has'](_0x23514))return void this['_touchedMarkers']['set'](_0x23514,{'range':_0x88bcad['oldRange'],'userId':_0x104654});const _0x39e8e2=this['_touchedMarkers']['get'](_0x23514),_0x24b0fa=_0x39e8e2['range'],_0x55815c=_0x88bcad['newRange'];null==_0x24b0fa&&null==_0x55815c||_0x24b0fa&&_0x55815c&&_0x24b0fa['isEqual'](_0x55815c)?this['_touchedMarkers']['delete'](_0x88bcad['name']):_0x39e8e2['userId']=_0x104654;}['_handleRootOperation'](_0x4dc537,_0x5eb0b5){this['_diffRoots']['has'](_0x4dc537['rootName'])?this['_diffRoots']['get'](_0x4dc537['rootName'])['_isAttached']=_0x4dc537['isAdd']:(this['_diffRoots']['set'](_0x4dc537['rootName'],P(_0x4dc537['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4dc537['rootName'],{}),_0x5eb0b5&&this['_idsRoots']['set'](_0x4dc537['rootName'],P(_0x4dc537['rootName'],!0x0)));const _0x139f26=null===_0x4dc537['_authorId']?null:_0x4dc537['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d157f=this['_touchedRoots']['get'](_0x4dc537['rootName']);_0x4d157f&&_0x4d157f['userId']===_0x139f26?this['_touchedRoots']['delete'](_0x4dc537['rootName']):this['_touchedRoots']['set'](_0x4dc537['rootName'],{'userId':_0x139f26,'isAttached':_0x4dc537['isAdd']});}['_handleRootAttributeOperation'](_0x49a65e){const _0x13fdcd=this['_diffRootsAttributes']['get'](_0x49a65e['root']['rootName']);null===_0x49a65e['newValue']?delete _0x13fdcd[_0x49a65e['key']]:_0x13fdcd[_0x49a65e['key']]=_0x49a65e['newValue'];}}function N(_0x3c0b0f){const _0x3d9b38=P(_0x3c0b0f['rootName'],_0x3c0b0f['isAttached']());for(const _0x47922d of _0x3c0b0f['getChildren']()){const _0xaaba42=_0x47922d['_clone'](!0x0);_0x3d9b38['_appendChild'](_0xaaba42);}return _0x3d9b38;}function P(_0x50ee1a,_0x1e24bb=!0x0){const _0x4f59da=new vt();return _0x4f59da['rootName']=_0x50ee1a,_0x4f59da['_isAttached']=_0x1e24bb,_0x4f59da['isAttached']=()=>_0x4f59da['_isAttached'],_0x4f59da;}function F(_0x5e5158,_0x2beb99,_0x3b9482){const _0xaa5905='elementEnd'==_0x5e5158['type']?_0x3b9482['createPositionAt'](_0x5e5158['item'],'end'):_0x3b9482['createPositionBefore'](_0x5e5158['item']);return _0x3b9482['createPositionFromPath'](_0x2beb99,_0xaa5905['path'],_0xaa5905['stickiness']);}function B(_0x54ba83,_0x4d1d97,_0x514ad4){const _0x52dc79='elementStart'==_0x54ba83['type']?_0x514ad4['createPositionAt'](_0x54ba83['item'],0x0):_0x514ad4['createPositionAfter'](_0x54ba83['item']);return _0x514ad4['createPositionFromPath'](_0x4d1d97,_0x52dc79['path'],_0x52dc79['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2926e8,_0x15d046){super(_0x2926e8),this['focusTracker']=new _0x5d78c4(),this['keystrokes']=new _0x498ff9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15d046),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3bbbfc(this);}['render'](){super['render'](),_0x32d34b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x353bbf=_0x11ed05=>_0x11ed05['stopPropagation']();this['keystrokes']['set']('arrowright',_0x353bbf),this['keystrokes']['set']('arrowleft',_0x353bbf),this['keystrokes']['set']('arrowup',_0x353bbf),this['keystrokes']['set']('arrowdown',_0x353bbf);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x131969){this['revisionNameInputView']['fieldView']['element']['value']=_0x131969['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xc51bc7){const _0x2cc82a=new _0xdbd9e1(this['locale'],_0x530dc7),_0x35c771=_0x2cc82a['fieldView'];_0x35c771['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x12ab46=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xc51bc7&&(_0x12ab46+='\x20('+g(this['locale'],'optional')+')'),(_0x2cc82a['label']=_0x12ab46,_0x35c771['on']('input',()=>{this['revisionNameInputValue']=_0x35c771['element']['value']['trim']();}),_0x2cc82a);}}class f extends _0x3d5130{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xa7282a=this['editor'],_0xdd26ec=_0xa7282a['plugins']['get']('RevisionTracker');_0xa7282a['ui']['componentFactory']['add']('revisionHistory',_0x158276=>{const _0x134572=_0x2c73ee(_0x158276),_0x22c2d7=_0x134572['panelView']['children'],_0x14cb08=new _0x48ec40(_0x158276),_0x230e94=new _0xf49bba(_0x158276),_0x5649c2=new te(_0x158276),_0x46afc1=new _0xf49bba(_0x158276),_0x683cf3=new te(_0x158276);return _0x134572['bind']('isEnabled')['to'](_0xdd26ec,'isReady',_0xdd26ec,'isEnabled',_0xa7282a,'isReadOnly',(_0xe0690c,_0x4b1692,_0x3549c2)=>_0xe0690c&&_0x4b1692&&!_0x3549c2),_0x134572['buttonView']['set']({'icon':_0x791eb9,'label':g(_0x158276,'Revision\x20history'),'tooltip':!0x0}),_0x5649c2['set']({'label':g(_0x158276,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5649c2['bind']('isEnabled')['to'](_0xdd26ec,'isReady',_0xdd26ec,'isEnabled',_0xa7282a,'isReadOnly',(_0x78594d,_0x1e7e70,_0x2cb155)=>_0x78594d&&_0x1e7e70&&!_0x2cb155),_0x5649c2['on']('execute',()=>this['_showDialog']()),_0x683cf3['set']({'label':g(_0x158276,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x683cf3['bind']('isEnabled')['to'](_0xdd26ec,'isReady',_0xa7282a,'isReadOnly',(_0x33ddcb,_0x239978)=>_0x33ddcb&&!_0x239978),_0x683cf3['on']('execute',()=>{_0xa7282a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x134572['isOpen']=!0x1,_0xa7282a['editing']['view']['focus']();}),_0x230e94['children']['add'](_0x5649c2),_0x46afc1['children']['add'](_0x683cf3),_0x14cb08['role']='menu',_0x14cb08['items']['addMany']([_0x230e94,_0x46afc1]),_0x22c2d7['add'](_0x14cb08),_0x134572;}),_0xa7282a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x231841=this['editor'],_0x34d0a3=_0x231841['locale'],_0x4cf0fe=new _0x311452(_0x34d0a3),_0x2f5ec9=new _0x30fe8f(_0x34d0a3);_0x4cf0fe['buttonView']['set']({'icon':_0x791eb9,'label':g(_0x34d0a3,'Revision\x20history')});const _0x378891=new _0x131447(_0x34d0a3,_0x4cf0fe),_0x119ff2=new _0x1780ab(_0x34d0a3);_0x119ff2['set']({'label':g(_0x34d0a3,'Save\x20current\x20revision')}),_0x119ff2['delegate']('execute')['to'](_0x4cf0fe),_0x119ff2['on']('execute',()=>{this['_showDialog']();}),_0x378891['children']['add'](_0x119ff2),_0x2f5ec9['items']['add'](_0x378891);const _0x3d5f2e=new _0x131447(_0x34d0a3,_0x4cf0fe),_0x3da17c=new _0x1780ab(_0x34d0a3);return _0x3da17c['set']({'label':g(_0x34d0a3,'Open\x20revision\x20history')}),_0x3da17c['delegate']('execute')['to'](_0x4cf0fe),_0x3da17c['on']('execute',()=>{_0x231841['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3d5f2e['children']['add'](_0x3da17c),_0x2f5ec9['items']['add'](_0x3d5f2e),_0x4cf0fe['panelView']['children']['add'](_0x2f5ec9),_0x4cf0fe;}['_showDialog'](){const _0x21a213=this['editor'],_0x571e27=_0x21a213['locale'],_0xeeb553=_0x21a213['plugins']['get']('Dialog'),_0x2e43d5=_0x21a213['plugins']['get']('RevisionTracker');function _0xad754(_0x3733e0){_0x21a213['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3733e0['revisionName']?_0x3733e0['revisionNameInputView']['errorText']=g(_0x571e27,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x21a213['plugins']['get'](u)['saveRevision']({'name':_0x3733e0['revisionName']}),_0xeeb553['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xad754(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xeeb553['show']({'id':'revisionSave','title':g(_0x571e27,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x21a213['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xeeb553['hide']()},{'label':g(_0x21a213['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x592f81){_0x592f81['bind']('isEnabled')['to'](_0x2e43d5,'isReady',_0x2e43d5,'isEnabled',_0x21a213,'isReadOnly',(_0x329b76,_0x205e8b,_0xafd0f)=>_0x329b76&&_0x205e8b&&!_0xafd0f);},'onExecute':()=>_0xad754(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x357f56=this['editor'],_0xbd4988=_0x357f56['locale'];this['_saveRevisionFormView']=new hs(_0xbd4988,_0x357f56['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x4f420b,_0x28c14f){super(_0x4f420b),this['_model']=_0x28c14f,this['changeId']=_0x28c14f['id'];const _0x453bd3=this['bindTemplate'],_0x5f1002=g(_0x4f420b,_0x28c14f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x28c14f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x28c14f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x453bd3['to']('type',_0x1234ee=>'ck-revision-change__'+_0x1234ee)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f1002}]},{'text':'\x20'+_0x28c14f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a5be9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x57c6fd){super(),this['id']=_0x57c6fd['id']||_0xbd2e10(),this['author']=_0x57c6fd['author'],this['type']=_0x57c6fd['type'],this['data']=_0x57c6fd['data']||{},this['rootName']=_0x57c6fd['rootName'],this['set']('createdAt',_0x57c6fd['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x287ceb,_0x55ebbd){this['newRevisionId']=_0x287ceb,this['oldRevisionId']=_0x55ebbd,this['changes']=new _0x84a14f();}['_setChanges'](_0x5650dd){for(const _0x46df36 of _0x5650dd)this['changes']['add'](_0x46df36);}}class m extends _0x3d5130{['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[_0x21cb4b,_0x4618b4,I,V];}constructor(_0x596221){super(_0x596221),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',(_0x508cdc,_0x426db8,_0x292c5b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1c351d=>{for(const _0xc480ae of this['editor']['editing']['view']['document']['roots'])_0x292c5b?_0x1c351d['removeClass']('ck-editor__editable__overlay',_0xc480ae):_0x1c351d['addClass']('ck-editor__editable__overlay',_0xc480ae);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x433f35=>null!==_0x433f35),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x436bac,_0x5906e2,_0x1906b2)=>_0x436bac&&_0x1906b2?_0x5906e2['changes']['getIndex'](_0x1906b2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44c36e,_0x3f067b)=>_0x44c36e?_0x3f067b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4618b4);}['init'](){const _0x5199ff=this['editor'],_0x4ea191=new wt(_0x5199ff,{'direction':'backward'}),_0x25e2d0=new wt(_0x5199ff,{'direction':'forward'});(_0x5199ff['commands']['add']('showPreviousChange',_0x4ea191),_0x5199ff['commands']['add']('showNextChange',_0x25e2d0),_0x5199ff['commands']['add']('restoreRevision',new mt(_0x5199ff)),this['on']('change:numberOfChanges',()=>{_0x4ea191['refresh'](),_0x25e2d0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5199ff['enableReadOnlyMode']('revision-viewer'),_0x5199ff['plugins']['has']('WidgetToolbarRepository'))&&_0x5199ff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x39f40e){return await this['_utils']['loadRevisionData'](_0x39f40e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x39f40e);}async['getRevisionRootsAttributes'](_0xfcf46b){return await this['_utils']['loadRevisionData'](_0xfcf46b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xfcf46b);}async['compare'](_0x16b5df,_0x3109e7,_0x1c34ac=!0x1){if(!this['isEnabled'])return;const _0x535353=this['diff'],_0x53f18a=this['repository'],_0x5920f0='string'==typeof _0x16b5df?_0x53f18a['getRevision'](_0x16b5df):_0x16b5df,_0x4b1c7b='string'==typeof _0x3109e7?_0x53f18a['getRevision'](_0x3109e7):_0x3109e7,_0xd0dd9f=_0x5920f0['id'],_0x1c7f65=_0x4b1c7b?_0x4b1c7b['id']:null;if(!_0x1c34ac&&this['diff']&&this['diff']['newRevisionId']===_0xd0dd9f&&this['diff']['oldRevisionId']===_0x1c7f65)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xd0dd9f,_0x1c7f65);const _0x3db9ea=this['_getRevisionsRange'](_0x5920f0,_0x4b1c7b,!0x0)['map'](_0x247956=>this['_utils']['loadRevisionData'](_0x247956,this['adapter']));return _0x3db9ea['push'](new Promise(_0x3c44d2=>{setTimeout(_0x3c44d2,0x14);})),Promise['all'](_0x3db9ea)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x51b924=this['_getDiff'](_0xd0dd9f,_0x1c7f65);for(const _0x2b5a67 of _0x51b924['changes'])this['_changeIdToChange']['set'](_0x2b5a67['id'],_0x2b5a67);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x32ca96=>{for(const _0x402501 of this['editor']['model']['document']['getRootNames']())_0x32ca96['detachRoot'](_0x402501);for(const _0x497276 of Object['keys'](_0x51b924['model'])){const _0xb2e963=_0x32ca96['addRoot'](_0x497276);for(const _0x3958bd of Object['keys'](_0x51b924['attributes'][_0x497276]))_0x32ca96['setAttribute'](_0x3958bd,_0x51b924['attributes'][_0x497276][_0x3958bd],_0xb2e963);_0x32ca96['insert'](_0x51b924['model'][_0x497276],_0xb2e963,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x51b924['changes'])),this['isReady']=!0x0;})['catch'](_0x303f11=>{console['error'](_0x303f11),this['_cleanUp'](),_0x535353&&(this['diff']=_0x535353),this['isReady']=!0x0;});}['addRevisionData'](_0x86cc15,_0x18e11c){const _0x3b45d9=this['repository']['createRevision'](_0x86cc15);return _0x3b45d9['on']('_update',(_0x52d9bc,_0x329db3,_0x121638)=>_0x18e11c(_0x329db3,_0x121638,_0x3b45d9)),this['repository']['addRevision'](_0x3b45d9),_0x3b45d9;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x176a80=>{for(const _0x3a74df of this['editor']['model']['document']['getRootNames']())_0x176a80['detachRoot'](_0x3a74df);});}['_sortAndFilterDiffChanges'](_0xffa448){const _0x5be46a=[],_0x557aa3=new Map();for(const _0x565427 of this['editor']['model']['document']['getRootNames']()){const _0x431860=this['editor']['editing']['view']['getDomRoot'](_0x565427);if(!_0x431860)continue;const _0x579fc1=_0x431860['getClientRects']()['item'](0x0);_0x579fc1&&(_0x5be46a['push'](_0x565427),_0x557aa3['set'](_0x565427,_0x579fc1));}return _0x5be46a['sort']((_0x1ec65d,_0x3c7ef6)=>{const _0x5a2ea3=_0x557aa3['get'](_0x1ec65d),_0xa605b8=_0x557aa3['get'](_0x3c7ef6);return _0x5a2ea3['y']-_0xa605b8['y']||_0x5a2ea3['x']-_0xa605b8['x'];}),(_0xffa448=_0xffa448['filter'](_0x3c94c8=>_0x5be46a['includes'](_0x3c94c8['rootName'])))['sort']((_0x270311,_0x5d3177)=>_0x5be46a['indexOf'](_0x270311['rootName'])-_0x5be46a['indexOf'](_0x5d3177['rootName'])),_0xffa448;}['_makeTape'](_0x51c925){const _0x3283dd=Array['from'](_0x51c925['markers'])['filter'](([_0x7f39b,_0x3bc08b])=>_0x7f39b['startsWith']('revision:')&&!_0x3bc08b['isCollapsed']),_0x4339de=Array['from'](this['editor']['model']['createRangeIn'](_0x51c925)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3283dd['length'])for(const _0x19c327 of _0x4339de){const [_0xd4aa91,_0x2eea0b]=_0x3283dd[0x0],[,_0x26b440,_0x140cf4]=_0xd4aa91['split'](':');if(_0x2eea0b['end']['isEqual'](_0x19c327['nextPosition'])&&_0x3283dd['shift'](),(_0x19c327['previousPosition']['isEqual'](_0x2eea0b['start'])||_0x19c327['previousPosition']['isAfter'](_0x2eea0b['start']))&&('insertion'==_0x26b440?_0x19c327['isAdded']={'userId':_0x140cf4}:'deletion'==_0x26b440&&(_0x19c327['isRemoved']={'userId':_0x140cf4})),0x0==_0x3283dd['length'])break;}return _0x4339de;}['_refreshStartEndIndex'](_0x451bda){const _0x4c793b=new Map();for(let _0x9d323=0x0;_0x9d323<_0x451bda['length'];_0x9d323++)'text'===_0x451bda[_0x9d323]['type']?(_0x451bda[_0x9d323]['item']['startIndex']=_0x9d323,_0x451bda[_0x9d323]['item']['endIndex']=_0x9d323):('elementStart'===_0x451bda[_0x9d323]['type']?_0x451bda[_0x9d323]['item']['startIndex']=_0x9d323:'elementEnd'===_0x451bda[_0x9d323]['type']&&(_0x451bda[_0x9d323]['item']['endIndex']=_0x9d323),_0x4c793b['set'](_0x451bda[_0x9d323]['id'],_0x9d323));for(const _0x161934 of _0x4c793b['values']())'elementStart'===_0x451bda[_0x161934]['type']?_0x451bda[_0x161934]['item']['endIndex']=_0x4c793b['get'](_0x451bda[_0x161934]['pairId']):'elementEnd'===_0x451bda[_0x161934]['type']&&(_0x451bda[_0x161934]['item']['startIndex']=_0x4c793b['get'](_0x451bda[_0x161934]['pairId']));}['_processTape'](_0x24cd08){for(let _0x13dec0=0x0;_0x13dec0<_0x24cd08['length'];_0x13dec0++){if('elementStart'===_0x24cd08[_0x13dec0]['type'])_0x24cd08[_0x13dec0]['item']['startIndex']=_0x13dec0;else{if('elementEnd'===_0x24cd08[_0x13dec0]['type']){_0x24cd08[_0x13dec0]['item']['endIndex']=_0x13dec0;const _0x25dea0=_0x24cd08[_0x13dec0]['item']['startIndex'];_0x24cd08[_0x25dea0]['pairId']=_0x24cd08[_0x13dec0]['id'],_0x24cd08[_0x13dec0]['pairId']=_0x24cd08[_0x25dea0]['id'];}else _0x24cd08[_0x13dec0]['item']['startIndex']=_0x13dec0,_0x24cd08[_0x13dec0]['item']['endIndex']=_0x13dec0,_0x24cd08[_0x13dec0]['pairId']=null;}_0x24cd08[_0x13dec0]['markersStart']||(_0x24cd08[_0x13dec0]['markersStart']=[],_0x24cd08[_0x13dec0]['markersEnd']=[]);}}['_markInsertions'](_0x28e0b9,_0x4a2d08){const _0x6878eb=_0x28e0b9['filter'](_0x4aacf6=>!_0x4aacf6['isAdded']);for(let _0x214e4d=0x0;_0x214e4d<_0x4a2d08['length'];_0x214e4d++)_0x4a2d08[_0x214e4d]['isAdded']&&(_0x6878eb[_0x214e4d]['isAdded']=_0x4a2d08[_0x214e4d]['isAdded']);}['_getDiff'](_0x2ddb0f,_0x3c85b9=null){const _0x3eb0e3=this['repository']['getRevision'](_0x2ddb0f),_0x41243a=_0x3c85b9?this['repository']['getRevision'](_0x3c85b9):null,_0x3f6265=this['_getRevisionsRange'](_0x3eb0e3,_0x41243a),_0x45a964=_0x3f6265[_0x3f6265['length']-0x1],_0x4ff435=new Map(),_0x467759={'model':{},'attributes':{},'changes':[]},_0x4a278b=new Set(),_0x45af4d=new Map();for(let _0x54e30b=_0x3f6265['length']-0x1;_0x54e30b>=0x0;_0x54e30b--){const _0x421872=_0x3f6265[_0x54e30b];for(const _0x53065f of Object['keys'](_0x421872['diffData']))if(_0x421872['diffData'][_0x53065f]['attachChange']){const _0x196321=_0x421872['diffData'][_0x53065f]['attachChange'];_0x196321['isAttached']?(_0x4a278b['add'](_0x53065f),_0x45af4d['has'](_0x53065f)&&_0x45af4d['get'](_0x53065f)['userId']==_0x196321['userId']?_0x45af4d['delete'](_0x53065f):_0x45af4d['set'](_0x53065f,_0x196321)):_0x45af4d['has'](_0x53065f)?(_0x4a278b['delete'](_0x53065f),_0x45af4d['delete'](_0x53065f)):(_0x4a278b['add'](_0x53065f),_0x45af4d['set'](_0x53065f,_0x196321));}else _0x4a278b['add'](_0x53065f);}for(const _0x2b4771 of _0x4a278b){const _0x5caec7=_0x45af4d['has'](_0x2b4771)&&!_0x45af4d['get'](_0x2b4771)['isAttached'];let _0x5e820f=_0x5caec7?_0x3f6265['length']-0x1:0x0;const _0x1fcc1a=_0x5caec7?-0x1:0x1;for(;_0x3f6265[_0x5e820f];){const _0x1e831e=_0x3f6265[_0x5e820f];if(_0x1e831e['diffData'][_0x2b4771]){const _0x238302=_0x5caec7?_0x1e831e['diffData'][_0x2b4771]['attributesBefore']:_0x1e831e['diffData'][_0x2b4771]['attributesAfter'];_0x467759['attributes'][_0x2b4771]=_0x238302?_0x5bb63f(_0x238302):{};break;}_0x5e820f+=_0x1fcc1a;}}for(const _0x499cc6 of _0x3f6265){_0x499cc6['model']={};for(const _0xc5ec5e of _0x499cc6['authors'])_0x4ff435['set'](_0xc5ec5e['id'],_0xc5ec5e);for(const _0x18f0a3 of _0x4a278b){const _0x569d34=_0x499cc6['diffData'][_0x18f0a3]?_0x499cc6['diffData'][_0x18f0a3]['insertions']:'[]',_0x648a9b=_0x499cc6['diffData'][_0x18f0a3]?_0x499cc6['diffData'][_0x18f0a3]['deletions']:'[]';_0x499cc6['model'][_0x18f0a3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x569d34),'deletions':this['_utils']['_makeModelFromViewString'](_0x648a9b)};}}for(const _0x3f441d of _0x4a278b){let _0x49f324=null,_0x7c1d90=0x0;const _0x14eee0=new Map(Array['from'](_0x3eb0e3['model'][_0x3f441d]['insertions']['markers'])['filter'](([_0x111cef])=>!_0x111cef['startsWith']('revision:')));let _0x2f6e59=0x0;for(const _0x42eed2 of _0x3f6265){const _0xef4e3e=this['_makeTape'](_0x42eed2['model'][_0x3f441d]['insertions']);_0x42eed2==_0x3eb0e3?(_0x49f324=_0xef4e3e,_0x7c1d90=_0x49f324['length'],_0x49f324['forEach'](_0x364753=>{_0x364753['id']=_0x2f6e59++;}),this['_processTape'](_0x49f324)):this['_markInsertions'](_0x49f324,_0xef4e3e);const _0x5bbecc=_0x49f324['filter'](_0x162254=>!_0x162254['isAdded'])['map'](_0x57df9a=>_0x57df9a['id']);let _0x1a2e44=0x0;const _0x8e37e1=this['_makeTape'](_0x42eed2['model'][_0x3f441d]['deletions']);_0x8e37e1['forEach'](_0x32d2a8=>{_0x32d2a8['isRemoved']?_0x32d2a8['id']=_0x7c1d90++:_0x32d2a8['id']=_0x5bbecc[_0x1a2e44++];}),this['_processTape'](_0x8e37e1),this['_setDistance'](_0x49f324,'isAdded'),this['_setDistance'](_0x8e37e1,'isRemoved'),_0x42eed2==_0x3eb0e3&&this['_markMarkers'](_0x49f324,_0x14eee0),_0x49f324=this['_joinTapes'](_0x49f324,_0x8e37e1),this['_refreshStartEndIndex'](_0x49f324),this['_setDistance'](_0x49f324,'isRemoved');}_0x49f324=_0x49f324['filter'](_0x57d28a=>!(_0x57d28a['isAdded']&&_0x57d28a['isRemoved']));const _0x2de35c=new Map(_0x45a964['model'][_0x3f441d]['deletions']['markers']),_0x575ad7=new Set(_0x14eee0['keys']());for(const _0x266155 of _0x2de35c['keys']())_0x575ad7['delete'](_0x266155);this['_markSuggestions'](_0x49f324,_0x575ad7),this['_fixObsoleteTags'](_0x49f324),_0x49f324=this['_removeMissingPairs'](_0x49f324),_0x49f324=this['_markMismatchedRemovedTags'](_0x49f324),_0x49f324=this['_removeUnsupportedChanges'](_0x49f324);const {root:_0x5392b5,changes:_0x103156}=this['_makeModelFromTape'](_0x49f324,_0x4ff435,_0x3f441d);_0x467759['model'][_0x3f441d]=_0x5392b5;const _0x18cb3e=_0x45af4d['get'](_0x3f441d);if(_0x18cb3e){const _0x244bba=_0x4ff435['get'](_0x18cb3e['userId']),_0x3177ac=new r({'author':_0x244bba,'type':_0x18cb3e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3f441d});_0x103156['unshift'](_0x3177ac),_0x467759['attributes'][_0x3f441d]['revisionHistoryAttachChange']=_0x3177ac['id'];}_0x467759['changes']=_0x467759['changes']['concat'](_0x103156);}return _0x467759;}['_markMarkers'](_0x9d7e1e,_0x578bd2){for(let _0x1202da=0x0;_0x1202da<_0x9d7e1e['length'];_0x1202da++)for(const [_0x105e8f,_0x83bc91]of _0x578bd2)!_0x83bc91['isCollapsed']&&_0x83bc91['start']['isEqual'](_0x9d7e1e[_0x1202da]['previousPosition'])&&_0x9d7e1e[_0x1202da]['markersStart']['push'](_0x105e8f),_0x83bc91['end']['isEqual'](_0x9d7e1e[_0x1202da]['nextPosition'])&&_0x9d7e1e[_0x1202da]['markersEnd']['push'](_0x105e8f);}['_joinTapes'](_0x50434a,_0x1bc188){let _0x4b2d00=[],_0x1be84e=0x0,_0x112ec6=0x0;for(;_0x1be84e<_0x50434a['length']||_0x112ec6<_0x1bc188['length'];){const _0x36d2bd=_0x50434a[_0x1be84e]||{},_0x41a064=_0x1bc188[_0x112ec6]||{};if(_0x36d2bd['id']==_0x41a064['id'])_0x1be84e++,_0x112ec6++,_0x4b2d00['push'](_0x36d2bd);else{if(_0x41a064['isRemoved']&&_0x36d2bd['isAdded']){const {commonTape:_0x1c20d7,iEnd:_0x24db57,jEnd:_0x5006b0}=this['_threeWayMerge'](_0x50434a,_0x1be84e,_0x1bc188,_0x112ec6);_0x4b2d00=_0x4b2d00['concat'](_0x1c20d7),_0x1be84e=_0x24db57,_0x112ec6=_0x5006b0;}else _0x41a064['isRemoved']?(_0x112ec6++,_0x4b2d00['push'](_0x41a064)):(_0x1be84e++,_0x4b2d00['push'](_0x36d2bd));}}return _0x4b2d00;}['_markSuggestions'](_0x1dcd6e,_0x31236e){const _0x329342=[];for(let _0x4aa4d8=0x0;_0x4aa4d8<_0x1dcd6e['length'];_0x4aa4d8++){for(let _0x2eabbf=0x0;_0x2eabbf<_0x1dcd6e[_0x4aa4d8]['markersStart']['length'];_0x2eabbf++){const _0x108542=_0x1dcd6e[_0x4aa4d8]['markersStart'][_0x2eabbf];if(!_0x31236e['has'](_0x108542))continue;const {group:_0x1ff7c6,type:_0x4b0f91,authorId:_0x276ab8}=_0x5f27cb(_0x108542);'revision-suggestion'!=_0x1ff7c6||'insertion'!=_0x4b0f91&&'deletion'!=_0x4b0f91||(_0x329342['unshift']({'type':_0x4b0f91,'name':_0x108542,'userId':_0x276ab8}),_0x1dcd6e[_0x4aa4d8]['markersStart']['splice'](_0x2eabbf,0x1),_0x2eabbf--);}_0x2338d5(_0x1dcd6e[_0x4aa4d8]);for(let _0x596c80=0x0;_0x596c80<_0x1dcd6e[_0x4aa4d8]['markersEnd']['length'];_0x596c80++){const _0x124392=_0x1dcd6e[_0x4aa4d8]['markersEnd'][_0x596c80];if(!_0x31236e['has'](_0x124392))continue;const {group:_0x422b75,type:_0x5720d3}=_0x5f27cb(_0x124392);if('revision-suggestion'!=_0x422b75||'insertion'!=_0x5720d3&&'deletion'!=_0x5720d3)continue;_0x1dcd6e[_0x4aa4d8]['markersEnd']['splice'](_0x596c80,0x1),_0x596c80--;const _0x2b8b4b=_0x329342['findIndex'](_0x252b4e=>_0x252b4e['name']==_0x124392);_0x2b8b4b>-0x1&&_0x329342['splice'](_0x2b8b4b,0x1);}}function _0x5f27cb(_0x127ea6){const _0x2840ff=_0x127ea6['split'](':');return{'group':_0x2840ff[0x0],'type':_0x2840ff[0x1],'subType':_0x2840ff['length']>=0x5?_0x2840ff[0x2]:null,'id':_0x2840ff['length']<0x5?_0x2840ff[0x2]:_0x2840ff[0x3],'authorId':_0x2840ff['length']<0x5?_0x2840ff[0x3]:_0x2840ff[0x4],'markerCount':0x6==_0x2840ff['length']?_0x2840ff[0x5]:null};}function _0x2338d5(_0x47061b){for(let _0x5c6ed9=0x0;_0x5c6ed9<_0x329342['length'];_0x5c6ed9++){if(_0x47061b['isAdded']&&'insertion'==_0x329342[_0x5c6ed9]['type'])return _0x47061b['isAddSuggestion']=_0x329342[_0x5c6ed9],void delete _0x47061b['isAdded'];if(!_0x47061b['isAdded']&&!_0x47061b['isRemoved']&&'deletion'==_0x329342[_0x5c6ed9]['type'])return void(_0x47061b['isRemoveSuggestion']=_0x329342[_0x5c6ed9]);}}}['_setDistance'](_0x593f20,_0x3ca230){let _0x587783=0x0,_0x118479=!0x1;const _0xd39c55=new Map();for(const _0x158766 of _0x593f20)_0x158766[_0x3ca230]?_0x118479&&(_0x587783++,_0x118479=!0x1):(_0x587783++,_0x118479=!0x0),_0xd39c55['set'](_0x158766['id'],_0x587783);for(let _0x205401=0x0;_0x205401<_0x593f20['length'];_0x205401++){if('isRemoved'==_0x3ca230&&_0x593f20[_0x205401]['isAdded']||'isAdded'==_0x3ca230&&_0x593f20[_0x205401]['isRemoved'])continue;if('text'==_0x593f20[_0x205401]['type']){_0x593f20[_0x205401]['distance']=0x0;continue;}const _0x2c9f68=_0xd39c55['get'](_0x593f20[_0x205401]['pairId']),_0x298a89=_0xd39c55['get'](_0x593f20[_0x205401]['id']);_0x593f20[_0x205401]['distance']=_0x2c9f68-_0x298a89;}}['_getRevisionsRange'](_0x43d088,_0x4172ca,_0x1704a2=!0x1){const _0x2f192e=[];let _0x2aa09a=this['repository']['getIndex'](_0x43d088),_0x5b2717=this['repository']['getIndex'](_0x4172ca);for(-0x1==_0x5b2717&&(_0x5b2717=this['repository']['_revisions']['length'],_0x1704a2=!0x1);_0x2aa09a<_0x5b2717;)_0x2f192e['push'](this['repository']['getRevision'](_0x2aa09a)),_0x2aa09a++;return _0x1704a2&&_0x2f192e['push'](this['repository']['getRevision'](_0x2aa09a)),_0x2f192e;}['_threeWayMerge'](_0x598ff6,_0x31b535,_0x26d5b5,_0x590ef4){const _0x54904f=this['editor']['model']['schema'];let _0x469ffa=_0x31b535;for(;_0x598ff6[_0x469ffa]&&_0x598ff6[_0x469ffa]['isAdded'];)_0x469ffa++;let _0x57b2f7=_0x590ef4;for(;_0x26d5b5[_0x57b2f7]&&_0x26d5b5[_0x57b2f7]['isRemoved'];)_0x57b2f7++;_0x58609f(_0x598ff6,_0x31b535,_0x469ffa),_0x58609f(_0x26d5b5,_0x590ef4,_0x57b2f7);const _0x468149=_0x26d5b5['slice'](_0x590ef4,_0x57b2f7)['concat'](_0x598ff6['slice'](_0x31b535,_0x469ffa));return _0x468149['sort']((_0x409a9f,_0x3af142)=>_0x409a9f['side']!=_0x3af142['side']?_0x409a9f['side']-_0x3af142['side']:_0x409a9f['level']!=_0x3af142['level']?_0x409a9f['level']-_0x3af142['level']:_0x409a9f['distance']!=_0x3af142['distance']?_0x3af142['distance']-_0x409a9f['distance']:!!_0x409a9f['isAdded']!=!!_0x3af142['isAdded']?-0x1==_0x409a9f['side']||0x0==_0x409a9f['side']?_0x409a9f['isAdded']?-0x1:0x1:_0x409a9f['isAdded']?0x1:-0x1:_0x409a9f['index']-_0x3af142['index']),{'commonTape':_0x468149,'iEnd':_0x469ffa,'jEnd':_0x57b2f7};function _0x58609f(_0xc70f64,_0x49d63a,_0x458f84){let _0x3a7713=-0x1,_0x33b0f8=Number['POSITIVE_INFINITY'],_0x15198=!0x0;for(let _0x860930=_0x49d63a;_0x860930<_0x458f84;_0x860930++)if(_0x54904f['isInline'](_0xc70f64[_0x860930]['item'])||(_0x15198=!0x1),_0xc70f64[_0x860930]['item']['startIndex']<_0x49d63a&&(_0x3a7713=_0x860930),_0xc70f64[_0x860930]['item']['endIndex']>=_0x458f84){_0x33b0f8=_0x860930;break;}_0x15198&&(_0x3a7713=_0x458f84-0x1);for(let _0x11ad20=_0x49d63a;_0x11ad20<_0x458f84;_0x11ad20++)_0xc70f64[_0x11ad20]['side']=_0x11ad20<=_0x3a7713?-0x1:_0x11ad20<_0x33b0f8?0x0:0x1,_0xc70f64[_0x11ad20]['index']=_0x11ad20;let _0x5b4f96=0x0;for(let _0x56b611=_0x49d63a;_0x56b611<=_0x3a7713;_0x56b611++)0x0==_0xc70f64[_0x56b611]['distance']?_0xc70f64[_0x56b611]['level']=_0x5b4f96:(_0x5b4f96++,_0xc70f64[_0x56b611]['level']=_0x5b4f96,_0x5b4f96++);for(let _0x150d56=_0x49d63a;_0x150d56<_0x458f84;_0x150d56++)0x0==_0xc70f64[_0x150d56]['side']&&(_0xc70f64[_0x150d56]['level']=_0x5b4f96);_0x5b4f96=0x0;for(let _0x16dc12=_0x458f84-0x1;_0x16dc12>=_0x33b0f8;_0x16dc12--)0x0==_0xc70f64[_0x16dc12]['distance']?_0xc70f64[_0x16dc12]['level']=_0x5b4f96:(_0x5b4f96--,_0xc70f64[_0x16dc12]['level']=_0x5b4f96,_0x5b4f96--);}}['_fixObsoleteTags'](_0x23bc2d){const _0x196b6c=new Map(),_0x556385=this['editor']['model']['schema'];for(let _0x3a9033=0x1;_0x3a9033<_0x23bc2d['length'];_0x3a9033++){let _0x1ec904,_0x51c9bc,_0x2cf00a;const _0x932984=_0x23bc2d[_0x3a9033],_0x3050d2=_0x23bc2d[_0x3a9033-0x1];if('text'==_0x932984['type'])continue;if(_0x932984['type']!=_0x3050d2['type'])continue;if(!_0x556385['isBlock'](_0x3050d2['item'])||_0x556385['isLimit'](_0x3050d2['item']))continue;if(!_0x556385['isBlock'](_0x932984['item'])||_0x556385['isLimit'](_0x932984['item']))continue;if((_0x23bc2d[_0x3a9033]['isAdded']||_0x23bc2d[_0x3a9033]['isAddSuggestion'])&&_0x23bc2d[_0x3a9033-0x1]['isRemoved'])_0x1ec904=_0x23bc2d[_0x3a9033],_0x51c9bc=_0x23bc2d[_0x3a9033-0x1],_0x2cf00a=_0x3a9033-0x1;else{if(!_0x23bc2d[_0x3a9033]['isRemoved']||!_0x23bc2d[_0x3a9033-0x1]['isAdded']&&!_0x23bc2d[_0x3a9033-0x1]['isAddSuggestion'])continue;_0x1ec904=_0x23bc2d[_0x3a9033-0x1],_0x51c9bc=_0x23bc2d[_0x3a9033],_0x2cf00a=_0x3a9033;}const _0x150ab5=_0x1ec904['level']==_0x51c9bc['level'],_0x49f8b2=Math['abs'](_0x1ec904['level'])<Math['abs'](_0x51c9bc['level'])&&0x0==_0x51c9bc['distance'];(_0x150ab5||_0x49f8b2)&&(_0x196b6c['set'](_0x51c9bc['id'],_0x1ec904['id']),_0x23bc2d['splice'](_0x2cf00a,0x1),_0x3a9033--,_0x1ec904['isAdded']=!0x1);}for(let _0x1ceef0=0x0;_0x1ceef0<_0x23bc2d['length'];_0x1ceef0++)_0x196b6c['has'](_0x23bc2d[_0x1ceef0]['pairId'])&&(_0x23bc2d[_0x1ceef0]['pairId']=_0x196b6c['get'](_0x23bc2d[_0x1ceef0]['pairId']));}['_removeMissingPairs'](_0x4bdbf1){const _0x270c80=new Set(_0x4bdbf1['map'](_0x348681=>_0x348681['id']));for(let _0x474215=0x0;_0x474215<_0x4bdbf1['length'];_0x474215++)_0x270c80['has'](_0x4bdbf1[_0x474215]['pairId'])||0x0==_0x4bdbf1[_0x474215]['distance']||(_0x4bdbf1[_0x474215]['isIncorrect']=!0x0);return _0x4bdbf1['filter'](_0x51efe4=>!_0x51efe4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4aa185){const _0x25eee8=new Set();for(let _0x1ecc36=0x0;_0x1ecc36<_0x4aa185['length'];_0x1ecc36++){if(_0x25eee8['has'](_0x4aa185[_0x1ecc36]['id'])&&_0x4aa185[_0x1ecc36]['isRemoved']&&(_0x4aa185[_0x1ecc36]['isIncorrect']=!0x0),_0x4aa185[_0x1ecc36]['isIncorrect'])continue;if(0x0==_0x4aa185[_0x1ecc36]['distance'])continue;if('elementStart'!=_0x4aa185[_0x1ecc36]['type'])continue;if(null==_0x4aa185[_0x1ecc36]['pairId'])continue;let _0x3f56f3=_0x1ecc36+0x1,_0x42688b=0x0;for(;_0x4aa185[_0x3f56f3]['id']!=_0x4aa185[_0x1ecc36]['pairId'];)'elementStart'==_0x4aa185[_0x3f56f3]['type']?_0x42688b++:'elementEnd'==_0x4aa185[_0x3f56f3]['type']&&_0x42688b--,_0x3f56f3++;if(0x0!=_0x42688b){if(_0x4aa185[_0x1ecc36]['isRemoved'])_0x4aa185[_0x1ecc36]['isIncorrect']=!0x0;else{for(;_0x3f56f3!=_0x1ecc36;)_0x4aa185[_0x3f56f3]['isRemoved']&&0x0!=_0x4aa185[_0x3f56f3]['distance']&&(_0x4aa185[_0x3f56f3]['isIncorrect']=!0x0,_0x25eee8['add'](_0x4aa185[_0x3f56f3]['pairId'])),_0x3f56f3--;}}}return _0x4aa185['filter'](_0x28b4a0=>!_0x28b4a0['isIncorrect']);}['_removeUnsupportedChanges'](_0x532f9a){const _0x5aaf8a=this['editor']['model']['schema'];for(let _0x139bd3=0x0;_0x139bd3<_0x532f9a['length'];_0x139bd3++){if(!(_0x532f9a[_0x139bd3]['isAdded']||_0x532f9a[_0x139bd3]['isAddSuggestion']||_0x532f9a[_0x139bd3]['isRemoved']||_0x532f9a[_0x139bd3]['isRemoveSuggestion']))continue;if(0x0==_0x532f9a[_0x139bd3]['distance'])continue;const _0x1a136f=_0x532f9a[_0x139bd3]['item'];_0x5aaf8a['isBlock'](_0x1a136f)||_0x5aaf8a['isLimit'](_0x1a136f)||(_0x532f9a[_0x139bd3]['isAdded']&&delete _0x532f9a[_0x139bd3]['isAdded'],_0x532f9a[_0x139bd3]['isAddSuggestion']&&delete _0x532f9a[_0x139bd3]['isAddSuggestion'],_0x532f9a[_0x139bd3]['isRemoveSuggestion']&&delete _0x532f9a[_0x139bd3]['isRemoveSuggestion'],_0x532f9a[_0x139bd3]['isRemoved']&&(_0x532f9a[_0x139bd3]['isIncorrect']=!0x0));}return _0x532f9a['filter'](_0x9b8a94=>!_0x9b8a94['isIncorrect']);}['_makeModelFromTape'](_0xc9fb6f,_0x4ccf8e,_0x55d758){const _0x371e84=new vt(),_0x2e3f0f=[],_0x4adb58=new Map(),_0x24ffe0=this['editor']['model'],_0x37f26b=_0x24ffe0['schema'],_0x542d56=[_0x371e84],_0x36b03a={},_0x4dab05={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33025d=null;const _0x32495f=[0x0];for(let _0x5c797f=0x0;_0x5c797f<_0xc9fb6f['length'];_0x5c797f++)if('elementStart'===_0xc9fb6f[_0x5c797f]['type']){_0xc9fb6f[_0x5c797f]['previousPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f);const _0x42fec1=new ut(_0xc9fb6f[_0x5c797f]['item']['name'],_0xc9fb6f[_0x5c797f]['item']['getAttributes']());_0x542d56[0x0]['_appendChild'](_0x42fec1),_0x32495f['push'](0x0),_0x542d56['unshift'](_0x42fec1),_0xc9fb6f[_0x5c797f]['nextPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f);}else'elementEnd'===_0xc9fb6f[_0x5c797f]['type']?(_0x542d56['shift'](),_0xc9fb6f[_0x5c797f]['previousPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f),_0x32495f['pop'](),_0x32495f[_0x32495f['length']-0x1]++,_0xc9fb6f[_0x5c797f]['nextPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f)):(_0xc9fb6f[_0x5c797f]['previousPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f),_0x33025d?_0x33025d['_data']+=_0xc9fb6f[_0x5c797f]['item']['data']:_0x33025d=new gt(_0xc9fb6f[_0x5c797f]['item']['data'],_0xc9fb6f[_0x5c797f]['item']['getAttributes']()),_0xc9fb6f[_0x5c797f+0x1]&&'text'===_0xc9fb6f[_0x5c797f+0x1]['type']&&_0x281d2a(_0x33025d,_0xc9fb6f[_0x5c797f+0x1]['item'])||(_0x542d56[0x0]['_appendChild'](_0x33025d),_0x33025d=null),_0x32495f[_0x32495f['length']-0x1]+=_0xc9fb6f[_0x5c797f]['item']['offsetSize'],_0xc9fb6f[_0x5c797f]['nextPosition']=_0x24ffe0['createPositionFromPath'](_0x371e84,_0x32495f));for(let _0x1fec1e=0x0;_0x1fec1e<_0xc9fb6f['length'];_0x1fec1e++){const _0x39c61d=_0xc9fb6f[_0x1fec1e]['previousPosition'],_0x4f72e8=_0xc9fb6f[_0x1fec1e]['nextPosition'];for(const _0x5e0e61 of _0xc9fb6f[_0x1fec1e]['markersStart'])_0x4adb58['set'](_0x5e0e61,{'start':_0x39c61d,'end':null});_0x5cdfc3('isRemoveSuggestion',_0x1fec1e,_0x39c61d,_0x4f72e8),_0x5cdfc3('isAddSuggestion',_0x1fec1e,_0x39c61d,_0x4f72e8),_0x5cdfc3('isRemoved',_0x1fec1e,_0x39c61d,_0x4f72e8),_0x5cdfc3('isAdded',_0x1fec1e,_0x39c61d,_0x4f72e8);for(const _0x4a9498 of _0xc9fb6f[_0x1fec1e]['markersEnd']){const _0x30a6c7=_0x4adb58['get'](_0x4a9498);_0x30a6c7?_0x30a6c7['end']=_0x4f72e8:_0x4adb58['set'](_0x4a9498,{'start':_0x4f72e8,'end':_0x4f72e8});}}for(const [_0xfd8dc0,_0x49a38c]of _0x4adb58){const _0x11c764=this['editor']['model']['createRange'](_0x49a38c['start'],_0x49a38c['end']);_0x371e84['markers']['set'](_0xfd8dc0,_0x11c764);}return _0x2e3f0f['sort']((_0x58a5ed,_0x12c164)=>{const _0x3b8e2f=_0x371e84['markers']['get']('revision:'+_0x58a5ed['id']),_0x5b4920=_0x371e84['markers']['get']('revision:'+_0x12c164['id']);return _0x3b8e2f['start']['isBefore'](_0x5b4920['start'])?-0x1:_0x3b8e2f['start']['isAfter'](_0x5b4920['start'])?0x1:_0x3b8e2f['end']['isBefore'](_0x5b4920['end'])?-0x1:_0x3b8e2f['end']['isAfter'](_0x5b4920['end'])?0x1:'add'===_0x58a5ed['type']?-0x1:0x1;}),{'root':_0x371e84,'changes':_0x2e3f0f};function _0x5cdfc3(_0x68449a,_0x43f054,_0x34f8af,_0x1befc4){const _0x58f310=!!_0xc9fb6f[_0x43f054][_0x68449a],_0x39c770=_0x58f310?_0xc9fb6f[_0x43f054][_0x68449a]['userId']:null,_0x374676=_0x43f054===_0xc9fb6f['length']-0x1,_0xb010b7=_0x4dab05[_0x68449a][0x0],_0x1de6f8=_0x37f26b['isObject'](_0xc9fb6f[_0x43f054]['item']);!_0x36b03a[_0x68449a]&&_0x58f310?_0x36b03a[_0x68449a]={'start':_0x34f8af,'tapeItem':_0xc9fb6f[_0x43f054],'userId':_0x39c770,'type':_0x68449a}:_0x36b03a[_0x68449a]&&!_0x58f310?(_0x36b03a[_0x68449a]['end']=_0x34f8af,_0x215475(_0x36b03a[_0x68449a]),_0x36b03a[_0x68449a]=null):_0x36b03a[_0x68449a]&&_0x58f310&&_0x36b03a[_0x68449a]['userId']!==_0x39c770&&(_0x36b03a[_0x68449a]['end']=_0x34f8af,_0xb010b7&&_0xb010b7['userId']===_0x36b03a[_0x68449a]['userId']||_0x215475(_0x36b03a[_0x68449a]),_0x36b03a[_0x68449a]={'start':_0x34f8af,'tapeItem':_0xc9fb6f[_0x43f054],'userId':_0x39c770,'type':_0x68449a}),_0x36b03a[_0x68449a]&&_0x1de6f8&&('elementStart'!==_0xc9fb6f[_0x43f054]['type']||_0xb010b7&&_0xb010b7['userId']===_0x39c770||_0x4dab05[_0x68449a]['unshift']({'userId':_0x39c770,'object':_0xc9fb6f[_0x43f054]['item'],'change':_0x36b03a[_0x68449a]}),'elementEnd'===_0xc9fb6f[_0x43f054]['type']&&_0xb010b7&&_0xb010b7['object']===_0xc9fb6f[_0x43f054]['item']&&(_0x4dab05[_0x68449a]['shift'](),_0x36b03a[_0x68449a]=_0xb010b7['change'])),_0x36b03a[_0x68449a]&&_0x374676&&(_0x36b03a[_0x68449a]['end']=_0x1befc4,_0x215475(_0x36b03a[_0x68449a]),_0x36b03a[_0x68449a]=null);}function _0x215475({start:_0x2fa31a,end:_0x1609bc,tapeItem:_0x330ee0,userId:_0x453bf8,type:_0x233bde}){const _0x51acbe=_0x330ee0['item'],_0x50ec57=_0x24ffe0['schema']['isBlock'](_0x51acbe)&&!_0x24ffe0['schema']['isLimit'](_0x51acbe),_0xd43faf=_0x2fa31a['nodeAfter']==_0x1609bc['parent']&&_0x1609bc['isAtStart'];if(_0x50ec57&&_0xd43faf)return;const _0x1ca64b=_0x24ffe0['createRange'](_0x2fa31a,_0x1609bc),_0x205de8=_0x4ccf8e['get'](_0x453bf8),_0x4999fc=new r({'author':_0x205de8,'type':'isAdded'==_0x233bde||'isAddSuggestion'==_0x233bde?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x233bde||'isRemoveSuggestion'==_0x233bde},'createdAt':new Date(),'rootName':_0x55d758});_0x2e3f0f['push'](_0x4999fc),_0x371e84['markers']['set']('revision:'+_0x4999fc['id'],_0x1ca64b);}function _0x281d2a(_0x475ded,_0x41a81b){const _0x52e00f=_0x475ded['getAttributes'](),_0x2a4803=_0x41a81b['getAttributes']();for(const _0x15ee3b of _0x52e00f){if(_0x15ee3b[0x1]!==_0x41a81b['getAttribute'](_0x15ee3b[0x0]))return!0x1;_0x2a4803['next']();}return _0x2a4803['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x151e97=>{const _0x1e202e=_0x151e97['markerName']['split'](':')[0x1],_0x15af81=this['_getChangeFromId'](_0x1e202e);if(!_0x15af81)return null;const _0xdf2276='add'==_0x15af81['type']?'insertion':'deletion',_0x9528c3=['ck-suggestion-marker','ck-suggestion-marker-'+_0xdf2276];return _0x15af81['data']['isSuggestion']&&_0x9528c3['push']('ck-suggestion-marker-'+_0xdf2276+'-new'),this['activeChange']==_0x15af81&&_0x9528c3['push']('ck-suggestion-marker--active'),{'classes':_0x9528c3,'attributes':{'data-change-id':_0x1e202e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2539a9=>{_0x2539a9['on']('element:pre',(_0x320f1f,_0x370a28,_0xb8a37f)=>{const _0x28bd0a=_0x370a28['viewItem']['getChild'](0x0);if(!_0x28bd0a||!_0x28bd0a['is']('element','code'))return;if(!_0xb8a37f['consumable']['consume'](_0x28bd0a,{'attributes':['vid_start','vid_end']}))return;const _0x2fc7d6=_0x370a28['modelRange']['start']['nodeAfter'];_0xb8a37f['writer']['setAttribute']('vid_start',_0x28bd0a['getAttribute']('vid_start'),_0x2fc7d6),_0xb8a37f['writer']['setAttribute']('vid_end',_0x28bd0a['getAttribute']('vid_end'),_0x2fc7d6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4a6502=>{_0x4a6502['on']('element',(_0x15d9e5,_0x532d4c,_0xe1e85b)=>{if(!_0xe1e85b['consumable']['consume'](_0x532d4c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x532d4c['modelRange']['isCollapsed'])return;const _0x1c8f9f=_0x532d4c['modelRange']['start']['nodeAfter'];_0x1c8f9f['hasAttribute']('vid_start')||_0x1c8f9f['hasAttribute']('vid')||(_0xe1e85b['writer']['setAttribute']('vid_start',_0x532d4c['viewItem']['getAttribute']('vid_start'),_0x1c8f9f),_0xe1e85b['writer']['setAttribute']('vid_end',_0x532d4c['viewItem']['getAttribute']('vid_end'),_0x1c8f9f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe9587d=>_0xe9587d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x175dba,[,_0x7946c4])=>{['vid_start','vid_end','vid']['includes'](_0x7946c4)&&(_0x175dba['return']=!0x0,_0x175dba['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f9937=>{_0x4f9937['on']('attribute:vid',(_0xaebc5d,_0x241e15,_0x3b4aee)=>{if('\x20'!=_0x241e15['item']['data']||_0x241e15['item']['parent']['maxOffset']>0x1)return;if(!_0x3b4aee['consumable']['consume'](_0x241e15['item'],_0xaebc5d['name']))return;const _0x1426b5=_0x3b4aee['writer'],_0x5f5694=_0x3b4aee['mapper']['toViewRange'](_0x241e15['range']);_0x1426b5['wrap'](_0x5f5694,_0x1426b5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4cc6d4){const _0x1438ab=_0x4cc6d4['plugins']['get']('RevisionViewer');return(_0x449a36,_0x3ca391,_0x529e90)=>{const _0x1baf7b=_0x3ca391['markerName']['split'](':')[0x1],_0x167482=_0x1438ab['_getChangeFromId'](_0x1baf7b);if(!_0x167482)return null;const _0x1fd2c1='add'==_0x167482['type']?'split':'merge';if(!_0x529e90['consumable']['test'](_0x3ca391['markerRange'],_0x449a36['name']))return;const _0x24ab0c=_0x3ca391['markerRange']['getWalker'](),_0x2a53f4=_0x3ca391['markerRange']['start'],_0x4efb99=_0x4cc6d4['model']['schema'];let _0x14f0c8=null,_0x590059=null,_0x5c4469=!0x1,_0x4ea718=!0x1;for(const _0x30d866 of _0x24ab0c){const _0x477f9e=_0x30d866['item'];_0x5c4469=_0x5c4469||_0x4efb99['isContent'](_0x477f9e);const _0x26fb7e=_0x529e90['mapper']['toViewElement'](_0x477f9e);if(_0x26fb7e&&_0x26fb7e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30d866['type']&&(_0x4efb99['isBlock'](_0x477f9e)&&!_0x4efb99['isLimit'](_0x477f9e)&&(_0x477f9e['nextSibling']||_0x2a53f4['isAtEnd']?_0x14f0c8&&_0x14f0c8['parent']==_0x477f9e||(_0x14f0c8=_0x477f9e,_0x232469(_0x30d866['previousPosition']),_0x4ea718=!0x0):_0x590059=_0x590059||_0x30d866['previousPosition']));}function _0x232469(_0x30b8e6){const _0x5a215c=_0x529e90['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fd2c1}),_0x3ea415=_0x529e90['mapper']['toViewPosition'](_0x30b8e6);_0x167482['data']['isSuggestion']&&_0x529e90['writer']['addClass']('ck-suggestion-marker-'+_0x1fd2c1+'-new',_0x5a215c),_0x1438ab['activeChange']==_0x167482&&_0x529e90['writer']['addClass']('ck-suggestion-marker--active',_0x5a215c),_0x529e90['writer']['insert'](_0x3ea415,_0x5a215c),_0x529e90['mapper']['bindElementToMarker'](_0x5a215c,_0x3ca391['markerName']);}_0x5c4469||_0x4ea718||!_0x590059||_0x232469(_0x590059);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1349e4,_0x461eb5,_0xfe0d20)=>{const _0x399a5=_0xfe0d20['mapper']['markerNameToElements'](_0x461eb5['markerName']);if(_0x399a5){for(const _0x35558c of _0x399a5)(_0x35558c['hasClass']('ck-suggestion-marker-split')||_0x35558c['hasClass']('ck-suggestion-marker-merge'))&&(_0xfe0d20['mapper']['unbindElementFromMarkerName'](_0x35558c,_0x461eb5['markerName']),_0xfe0d20['writer']['remove'](_0x35558c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x40ed63,_0x1d3801,_0x39f57c)=>{const _0x23d5d3=_0x1d3801['markerName']['split'](':')[0x1],_0x5230c2=this['_getChangeFromId'](_0x23d5d3);if(!_0x5230c2)return null;const _0x2a5961='add'==_0x5230c2['type']?'split':'merge';if(_0x39f57c['consumable']['test'](_0x1d3801['markerRange'],_0x40ed63['name']))for(const _0x4b5523 of _0x1d3801['markerRange']['getItems']()){if(!_0x4b5523['is']('element','softBreak'))continue;const _0xb528bf=_0x39f57c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a5961}),_0x483464=_0x39f57c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4b5523));_0x5230c2['data']['isSuggestion']&&_0x39f57c['writer']['addClass']('ck-suggestion-marker-'+_0x2a5961+'-new',_0xb528bf),this['activeChange']==_0x5230c2&&_0x39f57c['writer']['addClass']('ck-suggestion-marker--active',_0xb528bf),_0x39f57c['writer']['insert'](_0x483464,_0xb528bf),_0x39f57c['mapper']['bindElementToMarker'](_0xb528bf,_0x1d3801['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xdcb30c=>{for(const _0x4bfd38 of this['editor']['model']['document']['getRootNames']()){const _0x20e7f4=this['editor']['model']['document']['getRoot'](_0x4bfd38),_0x5341f0=this['editor']['editing']['view']['document']['getRoot'](_0x4bfd38);if(_0x5341f0){const _0xcd5692=_0x20e7f4['getAttribute']('revisionHistoryAttachChange');if(_0xdcb30c['removeAttribute']('data-change-id',_0x5341f0),_0xdcb30c['removeClass']('ck-revision-history-root-add',_0x5341f0),_0xdcb30c['removeClass']('ck-revision-history-root-remove',_0x5341f0),_0xdcb30c['removeClass']('ck-revision-history-root--active',_0x5341f0),_0xcd5692){const _0x55b62f=this['_getChangeFromId'](_0xcd5692);if(!_0x55b62f)return null;_0xdcb30c['setAttribute']('data-change-id',_0xcd5692,_0x5341f0),_0xdcb30c['addClass']('ck-revision-history-root-'+_0x55b62f['type'],_0x5341f0),this['activeChange']==_0x55b62f&&_0xdcb30c['addClass']('ck-revision-history-root--active',_0x5341f0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xde2d87=>'revision-comment:'+_0xde2d87,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b47b4=>'revision-suggestion:'+_0x4b47b4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2d0472=>({'name':'suggestion:'+_0x2d0472,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xa674cb=>{const _0x1a688c=_0xa674cb['markerName']['split'](':')[0x1];return'insertion'!=_0x1a688c&&'deletion'!=_0x1a688c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a688c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1d0163,_0x1cc1dd,_0x2192b7)=>{const _0x24378b=_0x2192b7['mapper']['markerNameToElements'](_0x1cc1dd['markerName']);if(_0x24378b){for(const _0x42b947 of _0x24378b)_0x42b947['is']('uiElement')&&(_0x2192b7['mapper']['unbindElementFromMarkerName'](_0x42b947,_0x1cc1dd['markerName']),_0x2192b7['writer']['remove'](_0x42b947));}},{'priority':'high'});}['_getChangeFromId'](_0x3dcd13){return this['_changeIdToChange']['get'](_0x3dcd13);}['_getViewForChange'](_0x3bc5c0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3bc5c0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x54c4b6,_0x248288,_0x4c9c1f,_0x982ac8)=>{_0x982ac8&&this['_balloon']['remove'](_0x982ac8),_0x4c9c1f&&(this['_balloon']['add']({'view':_0x4c9c1f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5de3bd=this['editor']['editing'],_0x307a55=this['_getChangeFromId'](_0x4c9c1f['changeId']);let _0x11c69b;if(_0x307a55['data']['isOnRoot']){const _0x186a58=_0x5de3bd['view']['getDomRoot'](_0x307a55['rootName']);_0x11c69b=Array['from'](_0x186a58['getClientRects']());}else{const _0x1f1a87=this['editor']['model']['markers']['get']('revision:'+_0x4c9c1f['changeId']);_0x11c69b=Array['from'](_0x5de3bd['mapper']['markerNameToElements'](_0x1f1a87['name']))['map'](_0xbb361a=>_0x5de3bd['view']['domConverter']['mapViewToDom'](_0xbb361a))['map'](_0x633466=>Array['from'](_0x633466['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x11c69b[0x0];return _0x11c69b['find'](_0x29bb1a=>_0x29bb1a['top']-0x3<=this['_activeViewTarget']['y']&&_0x29bb1a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x29bb1a['left']-0x3<=this['_activeViewTarget']['x']&&_0x29bb1a['right']+0x3>=this['_activeViewTarget']['x'])||_0x11c69b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x172db7,_0x2d6968,_0x3a626e,_0x59d34d)=>{this['activeView']=_0x3a626e?this['_getViewForChange'](_0x3a626e):null,this['editor']['model']['change'](()=>{const _0x2524d1=this['editor']['editing'];_0x59d34d&&(_0x59d34d['data']['isOnRoot']?_0x2524d1['view']['change'](_0x14f36c=>{_0x14f36c['removeClass']('ck-revision-history-root--active',_0x2524d1['view']['document']['getRoot'](_0x59d34d['rootName']));}):_0x2524d1['reconvertMarker']('revision:'+_0x59d34d['id'])),_0x3a626e&&(_0x3a626e['data']['isOnRoot']?_0x2524d1['view']['change'](_0x2e9e76=>{_0x2e9e76['addClass']('ck-revision-history-root--active',_0x2524d1['view']['document']['getRoot'](_0x3a626e['rootName']));}):_0x2524d1['reconvertMarker']('revision:'+_0x3a626e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5f2cac,_0x1f3a28)=>{if(this['activeChange'])return;const _0x24fb03=this['_findChangeIdFromDomTarget'](_0x1f3a28['target']),_0x4ce373=this['_changeIdToChange']['get'](_0x24fb03);_0x4ce373?(this['_activeViewTarget']={'x':_0x1f3a28['domEvent']['x'],'y':_0x1f3a28['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4ce373)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x553616,_0x3a897e)=>{const _0x15762e=this['_findChangeIdFromDomTarget'](_0x3a897e['target']),_0x218769=this['_changeIdToChange']['get'](_0x15762e);_0x218769?(this['_activeViewTarget']={'x':_0x3a897e['domEvent']['x'],'y':_0x3a897e['domEvent']['y']},_0x218769===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x218769):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f1eb0){do{const _0x5360d1=_0x2f1eb0['getAttribute']('data-change-id');if(_0x5360d1)return _0x5360d1;_0x2f1eb0=_0x2f1eb0['parent'];}while(_0x2f1eb0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x29f39a=>{for(const _0x4cc549 of this['editor']['model']['markers'])_0x29f39a['removeMarker'](_0x4cc549);});}}function X(_0x11335c,_0x166fd8){return(_0x5736ca,_0x30fcb6,_0x530b3)=>{if(!_0x530b3['consumable']['test'](_0x30fcb6['markerRange'],_0x5736ca['name']))return;const _0x1fbbe6=_0x30fcb6['markerRange']['getWalker'](),_0xd971ee=_0x30fcb6['markerRange']['start'],_0x4d0e20=_0x11335c['model']['schema'];let _0x1df748=null,_0x2f949c=null,_0xd077e=!0x1,_0x306243=!0x1;for(const _0x3c9393 of _0x1fbbe6){const _0x50e5b4=_0x3c9393['item'];_0xd077e=_0xd077e||_0x4d0e20['isContent'](_0x50e5b4);const _0x17b685=_0x530b3['mapper']['toViewElement'](_0x50e5b4);if(_0x17b685&&_0x17b685['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c9393['type']&&(_0x4d0e20['isBlock'](_0x50e5b4)&&!_0x4d0e20['isLimit'](_0x50e5b4)&&(_0x50e5b4['nextSibling']||_0xd971ee['isAtEnd']?_0x1df748&&_0x1df748['parent']==_0x50e5b4||(_0x1df748=_0x50e5b4,_0x3d1f30(_0x3c9393['previousPosition']),_0x306243=!0x0):_0x2f949c=_0x2f949c||_0x3c9393['previousPosition']));}function _0x3d1f30(_0x396345){const _0x2143c3=_0x530b3['mapper']['toViewPosition'](_0x396345),_0x55a576=_0x530b3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x166fd8});_0x530b3['writer']['insert'](_0x2143c3,_0x55a576),_0x530b3['mapper']['bindElementToMarker'](_0x55a576,_0x30fcb6['markerName']);}_0xd077e||_0x306243||!_0x2f949c||_0x3d1f30(_0x2f949c);};}class mt extends _0x4a8198{constructor(_0x47cec1){super(_0x47cec1);const _0x5d9233=_0x47cec1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5d9233,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d9233,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2dfc09=this['editor'],_0x50f5a6=_0x2dfc09['plugins']['get'](m),_0x3988c5=_0x50f5a6['isReady']?_0x50f5a6['diff']['newRevisionId']:null;_0x2dfc09['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3988c5);}['refresh'](){const {isReady:_0x379fd5,isEnabled:_0x2003ea,repository:_0x287ae1,diff:_0x2c6fa7}=this['editor']['plugins']['get'](m),_0x1872b3=_0x2c6fa7&&_0x287ae1['getLaterVisibleRevision'](_0x2c6fa7['newRevisionId']);this['isEnabled']=_0x379fd5&&_0x2003ea&&Boolean(_0x1872b3);}}class wt extends _0x4a8198{['_step'];constructor(_0x5c77ee,{direction:_0x18d2bd}){super(_0x5c77ee);const _0x51e72c=_0x5c77ee['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x18d2bd?0x1:-0x1,this['listenTo'](_0x51e72c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x51e72c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x51e72c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x43eb67=this['editor'],_0x4e9ab9=_0x43eb67['plugins']['get'](m),{isNavigationMode:_0x3ac139,currentChangeNumber:_0x407d12}=_0x4e9ab9;let _0x3daad6;if(_0x4e9ab9['activeChange']=_0x3ac139?_0x4e9ab9['diff']['changes']['get'](_0x407d12+this['_step']):_0x4e9ab9['diff']['changes']['first'],_0x4e9ab9['activeChange']['data']['isOnRoot'])_0x3daad6=_0x43eb67['editing']['view']['getDomRoot'](_0x4e9ab9['activeChange']['rootName']);else{const _0x21b2ba=_0x43eb67['model']['markers']['get']('revision:'+_0x4e9ab9['activeChange']['id']);_0x3daad6=_0x176b60(_0x43eb67['editing'],_0x21b2ba);}_0x2945f9({'target':_0x3daad6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35f832,currentChangeNumber:_0x4cc6f2,numberOfChanges:_0x42cf88,isReady:_0x54847e,isEnabled:_0xe72cf8}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xe72cf8&&_0x54847e&&_0x42cf88)&&(!_0x35f832||(0x1===this['_step']?_0x4cc6f2<_0x42cf88-0x1:_0x4cc6f2>0x0));}}class di extends ts{constructor(_0x4b2739){super(_0x4b2739);const _0x1c8f38=this['bindTemplate'],_0x4ed98a=new te(_0x4b2739),_0x2f8a68=new te(_0x4b2739);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',(_0x473bc4,_0x3c9fa7)=>_0x473bc4&&_0x3c9fa7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1afbac,_0x3983b6,_0x1355b5,_0x2ee0ac)=>{if(!_0x1afbac)return g(_0x4b2739,'Loading...');if(!_0x1355b5)return g(_0x4b2739,'No\x20changes');const _0x4d4c8f=g(_0x4b2739,'NUMBER_OF_CHANGES',_0x1355b5);return _0x2ee0ac?g(_0x4b2739,'X_OF_Y_CHANGES',[_0x3983b6+0x1,_0x1355b5]):_0x4d4c8f;}),_0x4ed98a['set']({'label':g(_0x4b2739,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x456c84}),_0x2f8a68['set']({'label':g(_0x4b2739,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1d5559}),_0x4ed98a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2f8a68['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4ed98a['on']('execute',()=>this['fire']('execute','backward')),_0x2f8a68['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',_0x1c8f38['if']('_isStatusLabelVisible','ck-hidden',_0x220fc9=>!_0x220fc9)]},'children':[{'text':_0x1c8f38['to']('isNavigationMode',_0x420f32=>_0x420f32?g(_0x4b2739,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4b2739,'Total')+':\x20')}]},{'text':_0x1c8f38['to']('_statusText')}]},new _0x333091(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4ed98a,_0x2f8a68]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x3d5130{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3d8ef3=this['editor']['editing']['view'];_0x3d8ef3['change'](_0x3fcef1=>{for(const _0x133a51 of _0x3d8ef3['document']['roots'])_0x3fcef1['addClass'](le,_0x133a51);});}['hide'](){const _0x55e3db=this['editor']['editing']['view'];_0x55e3db['change'](_0x5166e9=>{for(const _0x244bcc of _0x55e3db['document']['roots'])_0x5166e9['removeClass'](le,_0x244bcc);});}}class R extends _0x3d5130{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x102ed1=this['editor'],_0x303e47=_0x102ed1['plugins']['get'](m),_0x2cb657=_0x102ed1['plugins']['get'](de);_0x102ed1['ui']['componentFactory']['add']('exitToEditing',_0x6ea769=>{const _0x262dcc=new te(_0x6ea769);return _0x262dcc['set']({'label':g(_0x6ea769,'Back\x20to\x20editing'),'icon':_0x6acf7e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x262dcc,'execute',()=>{_0x102ed1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x262dcc;}),_0x102ed1['ui']['componentFactory']['add']('restoreRevision',_0x5b3f0e=>{const _0x532864=new te(_0x5b3f0e);return _0x532864['set']({'label':g(_0x5b3f0e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x532864['bind']('isEnabled')['to'](_0x102ed1['commands']['get']('restoreRevision')),this['listenTo'](_0x532864,'execute',()=>_0x102ed1['execute']('restoreRevision')),_0x532864;}),_0x102ed1['ui']['componentFactory']['add']('changesNavigation',_0x3af082=>{const _0x186f6c=new di(_0x3af082),_0x4f5635=_0x102ed1['commands']['get']('showPreviousChange'),_0x40a97d=_0x102ed1['commands']['get']('showNextChange');return _0x186f6c['bind']('isBackwardNavigationEnabled')['to'](_0x4f5635,'isEnabled'),_0x186f6c['bind']('isForwardNavigationEnabled')['to'](_0x40a97d,'isEnabled'),_0x186f6c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x303e47),this['listenTo'](_0x186f6c,'execute',(_0x54fb0d,_0x4b3d54)=>{_0x102ed1['execute']('forward'===_0x4b3d54?'showNextChange':'showPreviousChange');}),_0x186f6c;}),_0x2cb657['show'](),_0x303e47['on']('change:isReady',(_0x30439e,_0x398bf5,_0x25b495)=>{_0x25b495?_0x2cb657['hide']():_0x2cb657['show']();});}}class at extends _0xdbd9e1{['_resizeObserver']=null;constructor(_0x1d566f,_0x2718cc){super(_0x1d566f,_0x2718cc);const _0x57d3c2=this['bindTemplate'];this['set']({'label':g(_0x1d566f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1d566f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x57d3c2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x342ffc=this['fieldView']['element'];this['_tooltipString']=_0x342ffc['scrollWidth']>_0x342ffc['clientWidth']&&_0x342ffc['value']||'';}}class si extends ts{constructor(_0x52fa9f,_0x370e20,_0x4ec187){super(_0x52fa9f);const _0x67329f=new _0x2933eb();_0x67329f['set']({'content':_0x383042,'viewBox':'0\x200\x2011\x2010'});const _0x4bce7f=['ck','ck-revision-history-sidebar__revision-author'];_0x4ec187&&_0x4bce7f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2553a7=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x52fa9f,_0x4ec187?'Revision\x20creator':'Revision\x20author')},'children':[_0x67329f,_0x370e20['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4bce7f},'children':_0x2553a7});}}function oi(_0x890794,_0x30f8ba){const _0x3c595f=_0x890794['bindTemplate'],_0x51b761=_0x890794['locale'],_0x2eaf0c=_0x2c73ee(_0x51b761);_0x2eaf0c['panelPosition']='sw';const _0x32e96c=function(_0x4deb98,_0x5beedc){const _0x33e790=function(_0x5e3f7b,_0x4579ee){const _0x2b3e90=_0x5e3f7b['locale'],_0x5503ff={'Compare\x20against\x20selected':g(_0x2b3e90,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2b3e90,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2b3e90,'Restore\x20this\x20revision')};return _0x4579ee['map'](_0x2367f3=>{const _0x30f22c=_0x5503ff[_0x2367f3['name']];return _0x30f22c&&_0x30f22c!==_0x2367f3['name']&&(_0x2367f3['name']=_0x30f22c),_0x2367f3;});}(_0x4deb98,_0x5beedc),_0x3dfbbc=new _0x84a14f();for(const _0x4af770 of _0x33e790){const _0x23035d={'type':'button','model':new to({'label':_0x4af770['name'],'class':_0x4af770['class'],'withText':!0x0,'role':'menuitem','_action':_0x4af770['action']})};_0x23035d['model']['bind']('isEnabled')['to'](_0x4deb98,'isActionsDropdownOpen',_0x116ad5=>'function'!=typeof _0x4af770['isEnabled']||(!_0x116ad5||_0x4af770['isEnabled'](_0x4deb98))),_0x3dfbbc['add'](_0x23035d);}return _0x3dfbbc;}(_0x890794,_0x30f8ba);return _0x890794['bind']('isActionsDropdownOpen')['to'](_0x2eaf0c,'isOpen'),_0x2eaf0c['buttonView']['set']({'label':g(_0x51b761,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x16da7f}),_0x2eaf0c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c595f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c595f['to'](_0x3629ba=>_0x3629ba['stopPropagation']())}}),_0x2eaf0c['on']('execute',_0x423f3f=>{_0x890794['isReady']&&'function'==typeof _0x423f3f['source']['_action']&&_0x423f3f['source']['_action'](_0x890794);}),_0x3b20d3(_0x2eaf0c,_0x32e96c,{'role':'menu'}),_0x2eaf0c['listenTo'](_0x890794,'change:isActionsDropdownOpen',(_0x42036e,_0x10beb1,_0x197f86)=>{if(_0x197f86)for(const _0x13c317 of _0x2eaf0c['listView']['items']){const _0x3bd604=_0x13c317['children']['first'],_0x27f6dc=_0x30f8ba['find'](_0xe4c7de=>_0xe4c7de['action']===_0x3bd604['_action'])['isVisible'];_0x13c317['isVisible']=void 0x0===_0x27f6dc||_0x27f6dc(_0x890794);}}),_0x2eaf0c;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xd45ca8,_0x1e3d90,_0x3a1946,_0xb5988e){super(_0xd45ca8);const _0x2436e6=this['bindTemplate'],_0x5d7b5d=function(_0x991272,_0x4944de){const _0x3658df=Array['from'](_0x4944de['authors'])['filter'](_0x2e7b35=>_0x2e7b35!=_0x4944de['creator']);return _0x4944de['creator']&&_0x3658df['unshift'](_0x4944de['creator']),_0x3658df['map'](_0x54ca24=>new si(_0x991272,_0x54ca24,_0x54ca24==_0x4944de['creator']));}(_0xd45ca8,_0x1e3d90);this['id']=_0x1e3d90['id'],this['_revision']=_0x1e3d90,this['_requireRevisionName']=_0xb5988e,this['bind']('name','createdAt')['to'](_0x1e3d90),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3f5672=>{return _0x3ca450=_0xd45ca8['uiLanguage'],(_0x4dad9d=_0x3f5672)['toLocaleDateString'](_0x3ca450,{'month':'long','day':'numeric'})+',\x20'+_0x4dad9d['toLocaleTimeString'](_0x3ca450,{'hour':'numeric','minute':'numeric'});var _0x3ca450,_0x4dad9d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0xd45ca8,_0x530dc7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x44eb9b=>_0x44eb9b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59e171,_0xfb531b)=>_0x59e171&&_0xfb531b),this['revisionActionsView']=_0x3a1946&&_0x3a1946['length']?oi(this,_0x3a1946):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2436e6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2436e6['if']('isEnabled','ck-disabled',_0x59a238=>!_0x59a238),_0x2436e6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2436e6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2436e6['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':_0x2436e6['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':_0x5d7b5d}]},this['revisionActionsView']],'on':{'click':_0x2436e6['to'](_0x20cd8e=>{_0x20cd8e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e1a53=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e1a53,'change',()=>{this['_requireRevisionName']&&!_0x4e1a53['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e1a53['value']}),_0x4e1a53['value']||(_0x4e1a53['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x56ab73,_0x1e222b){const _0x1bbe54=_0x4f3e00['fromJSDate'](_0x56ab73)['setLocale'](_0x1e222b),_0x5a1242=_0x4f3e00['local'](),_0x14c821=_0x5a1242['minus']({'days':0x1})['startOf']('day');let _0x5602c4,_0x4c1f15;return _0x1bbe54['hasSame'](_0x5a1242,'day')?(_0x5602c4=_0x1bbe54['startOf']('day')['toJSDate'](),_0x4c1f15=_0x1bbe54['toRelativeCalendar']()):_0x1bbe54['hasSame'](_0x14c821,'day')?(_0x5602c4=_0x14c821['toJSDate'](),_0x4c1f15=_0x1bbe54['toRelativeCalendar']()):_0x1bbe54['hasSame'](_0x5a1242,'week')?(_0x5602c4=_0x1bbe54['startOf']('week')['toJSDate'](),_0x4c1f15=_0x1bbe54['weekdayLong']||''):_0x1bbe54['hasSame'](_0x5a1242,'year')?(_0x5602c4=_0x1bbe54['startOf']('month')['toJSDate'](),_0x4c1f15=_0x1bbe54['monthLong']||''):(_0x5602c4=_0x1bbe54['startOf']('year')['toJSDate'](),_0x4c1f15=String(_0x1bbe54['year'])),{'startDate':_0x5602c4,'localizedPeriodName':_0x4c1f15};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1cfbe8,_0x4f9b1e,_0x4e37c8,_0x120d39){super(_0x1cfbe8);const _0x22a4a3=vi(_0x4f9b1e,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4f9b1e,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4e37c8,this['_requireRevisionName']=_0x120d39,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':_0x22a4a3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x43e446){const _0x2b374c=new hi(this['locale'],_0x43e446,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b374c);}['removeRevision'](_0x133ede){const _0x1a78ed=this['revisionViews']['find'](_0x3eec3a=>_0x3eec3a['id']===_0x133ede['id']);this['revisionViews']['remove'](_0x1a78ed);}}class as extends ts{constructor(_0x3d77e4){super(_0x3d77e4);const _0xb0c05=new _0x2933eb();_0xb0c05['content']=_0x791eb9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xb0c05,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3d77e4,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x856075,_0x2380ba,_0x4cffc2,_0x41c88c){super(_0x856075);const _0x54a408=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2380ba,this['_revisionActions']=_0x4cffc2,this['_requireRevisionName']=_0x41c88c,this['on']('select',(_0x54cf64,_0x57b812)=>{this['fire']('revisionSelected',_0x57b812);}),this['on']('setName',(_0xec084d,_0x257b4d)=>{this['fire']('revisionSetName',_0x257b4d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x856075),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x54a408['if']('isEnabled','ck-disabled',_0x129194=>!_0x129194)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3333ce of this['_revisions'])this['_addRevision'](_0x3333ce);this['_revisions']['on']('add',(_0x1704bd,_0x5efb50)=>{this['_addRevision'](_0x5efb50);}),this['_revisions']['on']('remove',(_0x8dac3,_0x40a0a5)=>{this['_removeRevision'](_0x40a0a5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1faeb8=>_0x1faeb8['revisionViews']['map'](_0x1e350c=>_0x1e350c))['flat']();}['selectRevision'](_0x22934a){for(const _0x21970e of this['revisionViews'])_0x22934a&&_0x22934a['id']===_0x21970e['id']?_0x21970e['select']():_0x21970e['deselect']();}['highlightRevisions'](_0x57d781){for(const _0x5d93a6 of this['revisionViews'])_0x57d781['some'](({id:_0x161fbb})=>_0x161fbb===_0x5d93a6['id'])?_0x5d93a6['highlight']():_0x5d93a6['unhighlight']();}['_addRevision'](_0x376c1f){const _0x31bef6=vi(_0x376c1f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x976465=this['timePeriodViews']['get'](0x0);_0x976465&&_0x976465['startDate']['getTime']()===_0x31bef6['getTime']()||(_0x976465=new mi(this['locale'],_0x31bef6,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x976465)),_0x976465['addRevision'](_0x376c1f);}['_removeRevision'](_0x3a989a){const _0xc4f2f6=vi(_0x3a989a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xc4f2f6)['removeRevision'](_0x3a989a);}['_getTimePeriodViewByStartDate'](_0x489f82){return this['timePeriodViews']['find'](_0x4d33ad=>_0x4d33ad['startDate']['getTime']()===_0x489f82['getTime']());}}class d extends _0x3d5130{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x1c41d4(_0x575449){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18ad99,_0xf4bc9a){super(_0xf4bc9a),this['sourceElement']=_0x18ad99,this['model']['document']['createRoot']();const _0x3d2eef=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3d2eef);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x105fdd,_0x5da6b2){const _0x5dbf07=new this(_0x105fdd,_0x5da6b2);return await _0x5dbf07['initPlugins'](),await _0x5dbf07['ui']['init'](_0x105fdd),await _0x5dbf07['data']['init'](_0x5dbf07['config']['get']('initialData')||''),_0x5dbf07['fire']('ready'),_0x5dbf07;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x32d4e7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fb8df){function _0x3c0c9e(_0x5368c4){return _0x5368c4['map'](_0x20bd03=>String['fromCharCode'](_0x20bd03))['join']('');}super(_0x2fb8df),this['result']='end',_0x2fb8df[_0x3c0c9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0c9e([0x76,0x69,0x65,0x77])][_0x3c0c9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0c9e([0x61,0x75,0x74,0x6f]),_0x2fb8df[_0x3c0c9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c0c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0c9e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c0c9e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c0c9e([0x6f,0x6b])});}}class k extends _0x32d4e7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xbc4175){if(super(_0xbc4175),!this['editor']['config']['get']('revisionHistory'))throw new _0x561adb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x564510=>this['_showRevisionViewer']({..._0x564510,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x40ee14=>this['_closeRevisionViewer'](_0x40ee14)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x24f4dd=>this['_restoreRevision'](_0x24f4dd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x543323){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x543323;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5416d8){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5416d8);}['getRevision'](_0x1c14da){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1c14da);}['getRevisions'](_0x566aef){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x566aef||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x14d0c7=this['editor'],_0x323ec8=_0x5b7920(_0x14d0c7,p),_0x5db42f=_0x14d0c7['plugins']['get']('RevisionTracker'),_0x4b7233=_0x14d0c7['plugins']['get']('Users')['users'];return _0x323ec8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x323ec8['lazyRoots'],(_0x323ec8['plugins']['push'](_t,m,R,class extends _0x32d4e7{static get['requires'](){return[m,'Users'];}['init'](){const _0xde180a=this['editor']['plugins']['get']('Users');for(const _0x16f595 of _0x4b7233)_0x16f595['isAnonymous']||_0xde180a['getUser'](_0x16f595['id'])||_0xde180a['addUser'](_0x16f595);const _0x69d53b=_0x5db42f['repository']['getRevisions']();let _0x40f8cf=null;const _0xe18fad=this['editor']['plugins']['get']('RevisionViewer');_0xe18fad['adapter']=_0x5db42f['adapter'],_0xe18fad['bind']('isEnabled')['to'](_0x5db42f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x14d0c7,'isReadOnly',_0xcaddca=>!_0xcaddca);for(const _0x25ad51 of _0x69d53b){const _0x56ddc7=null===_0x25ad51['creator'];if(_0x56ddc7&&_0x25ad51['toVersion']===_0x25ad51['fromVersion'])continue;const _0x5f3cc7=_0x25ad51['toJSON']();_0xe18fad['addRevisionData'](_0x5f3cc7,(_0x2ad83c,_0x2aaf5a,_0x1e80bc)=>{if(_0x56ddc7){if(_0x40f8cf)_0x40f8cf['_update'](_0x2ad83c,_0x2aaf5a);else{if(!_0x2aaf5a){const _0x44ab47=_0x1e80bc['toJSON']();_0x44ab47['id']=_0x22d855(),_0x5db42f['saveRevision'](_0x44ab47,_0x1e80bc['toVersion'])['then'](_0x366199=>{_0x40f8cf=_0x366199;});}}}else _0x25ad51['_update'](_0x2ad83c,_0x2aaf5a);});}}},d),_0x323ec8);}['_enhanceShowRevisionViewerCallback'](){const _0xfe4340=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x10fbf4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e3f83=this['editor']['plugins']['get']('Autosave');await _0x3e3f83['save']();}else await _0x10fbf4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x128419=this['editor']['plugins']['get']('Dialog');_0x128419['isOpen']&&_0x128419['hide']();}const _0x50c91d=this['_getRevisionViewerEditorConfig']();return _0xfe4340(_0x50c91d)['then'](_0x1feede=>{return(this['_viewerEditor']=_0x1feede,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'),_0x1feede);})['catch'](_0x21524a=>(console['error'](_0x21524a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x572155=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'](),_0x572155(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x38b610=this['editor']['plugins']['get']('Annotations');_0x38b610['refreshVisibility'](),_0x38b610['refreshPositioning']();}})));}['_showRevisionViewer'](_0x44ed5d){const _0x32e048=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x96a9f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d3b51=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4d3b51,_0x44ed5d)['then'](_0x2f378c=>(_0x96a9f6['style']['display']='block',_0x32e048['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f378c));}['_closeRevisionViewer'](_0x34f3c2){const _0xb6ab05=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb6ab05['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x34f3c2['destroy']();}async['_restoreRevision'](_0xf2ccac){const _0x112713=this['editor'],_0x5f174f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2d155f=_0x112713['plugins']['get']('RevisionTracker'),_0xb5c21a=_0x112713['plugins']['get']('RevisionHistoryUtils'),_0x2ba954=_0x5f174f['repository']['getRevision'](_0xf2ccac);let _0x177110,_0x1e8515,_0x187a6c;try{await _0xb5c21a['loadRevisionData'](_0x2ba954,this['adapter']),_0x177110=_0xb5c21a['getRevisionDocumentData'](_0x2ba954),_0x1e8515=_0xb5c21a['getRevisionRootsAttributes'](_0x2ba954);}catch(_0x4f889a){return void console['error'](_0x4f889a);}_0x112713['model']['change'](_0x3d8db5=>{for(const _0x370710 of Array['from'](_0x112713['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3d8db5['removeMarker'](_0x370710);}),_0x5f174f['isReady']=!0x1,_0x112713['model']['enqueueChange'](_0x5ba06a=>{_0x5ba06a['setSelection'](null),_0x5ba06a['removeSelectionAttribute'](_0x112713['model']['document']['selection']['getAttributeKeys']());const _0x32d0c2=Object['keys'](_0x177110);for(const _0x481212 of _0x112713['model']['document']['roots'])'$graveyard'!=_0x481212['rootName']&&_0x481212['isAttached']()&&!_0x32d0c2['includes'](_0x481212['rootName'])&&_0x5ba06a['detachRoot'](_0x481212);for(const _0x5249d1 of _0x32d0c2){let _0x1a9995=_0x112713['model']['document']['getRoot'](_0x5249d1);_0x1a9995&&_0x1a9995['isAttached']()||(_0x1a9995=_0x5ba06a['addRoot'](_0x5249d1));const _0x514b83=_0x1e8515[_0x5249d1],_0x260d1e=Object['keys'](_0x514b83),_0x3e6510=_0x177110[_0x5249d1];for(const _0x21b799 of _0x1a9995['getAttributeKeys']())_0x260d1e['includes'](_0x21b799)||_0x5ba06a['removeAttribute'](_0x21b799,_0x1a9995);for(const _0xccfe29 of _0x260d1e)_0x5ba06a['setAttribute'](_0xccfe29,_0x1e8515[_0x5249d1][_0xccfe29],_0x1a9995);_0x5ba06a['remove'](_0x5ba06a['createRangeIn'](_0x1a9995)),_0x5ba06a['insert'](_0x112713['data']['parse'](_0x3e6510,_0x1a9995),_0x1a9995,0x0);}});const _0x427141=g(_0x112713['locale'],'Restored');if(_0x2ba954['name'])_0x187a6c=-0x1==_0x2ba954['name']['indexOf'](_0x427141)?_0x427141+':\x20'+_0x2ba954['name']:_0x2ba954['name'];else _0x187a6c=_0x427141+':\x20'+(_0x2ba954['createdAt']['toLocaleDateString'](_0x112713['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ba954['createdAt']['toLocaleTimeString'](_0x112713['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2d155f['saveRevision']({'name':_0x187a6c}),_0x5f174f['isReady']=!0x0,_0x112713['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2f6e77){super(_0x2f6e77),this['_revisionViewer']=_0x2f6e77['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x41d624=this['_revisionsRepository']['_revisions'],_0xc3a5bd=this['_createRevisionActions'](),_0x487ee8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x41d624,_0xc3a5bd,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',(_0x310228,_0x14d625)=>{_0x14d625['revisionViews']['on']('add',(_0x56fd06,_0x36b607)=>{_0x36b607['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)),_0x487ee8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1d957c=this['_revisionsRepository']['getRevision'](0x0);if(_0x1d957c){const _0xf82950=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1d957c['id']);this['_revisionViewer']['compare'](_0x1d957c,_0xf82950);}}['_handleRevisionSelected'](_0x41f191,_0x219862){const _0x583bfb=this['_revisionsRepository']['getRevision'](_0x219862['id']),_0x11eef0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x583bfb['id']);this['_revisionViewer']['compare'](_0x583bfb,_0x11eef0);}['_handleRevisionSetName'](_0x279c12,_0x1795f7){this['_revisionsRepository']['getRevision'](_0x1795f7['id'])['setName'](_0x1795f7['name']);}['_handleDiffChange'](_0xc09b12,_0x18f1c7,_0xbe3953){const _0x1e0184=this['_revisionsRepository']['getRevisionsInDiff'](_0xbe3953);_0x1e0184['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1e0184),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1e0184[0x0]));}['_createRevisionActions'](){const _0x346d5a=this['editor'],_0x11a3d9=d['availableRevisionActions'],_0x564c5c=_0x346d5a['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x564c5c['length'])return _0x564c5c['map'](_0x35acd6=>{const _0x373a69='string'==typeof _0x35acd6?Object['assign']({},_0x11a3d9[_0x35acd6]):_0x35acd6;return _0x373a69['action']=_0x373a69['action']['bind'](this,_0x346d5a),_0x373a69['isVisible']&&(_0x373a69['isVisible']=_0x373a69['isVisible']['bind'](this,_0x346d5a)),_0x373a69;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2b1da0},_0x5aa24b)=>{const _0x17c5ee=_0x2b1da0['get'](m),_0x28c07b=_0x17c5ee['repository'];let _0x145a1c=_0x17c5ee['diff']['newRevisionId'],_0x57943c=_0x5aa24b['id'];_0x28c07b['getIndex'](_0x145a1c)>_0x28c07b['getIndex'](_0x57943c)&&([_0x145a1c,_0x57943c]=[_0x57943c,_0x145a1c]),_0x17c5ee['compare'](_0x145a1c,_0x57943c);},'isVisible':({plugins:_0x104e7e},_0x517d87)=>{const _0x2bb1d=_0x104e7e['get'](m);return!(_0x2bb1d['repository']['getRevisionsInDiff'](_0x2bb1d['diff'])['length']>0x2)&&!_0x517d87['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4e4ff8,{id:_0x19f1d0})=>{_0x4e4ff8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19f1d0);},'isVisible':({plugins:_0xc6cf5b},_0x2eff73)=>!!_0xc6cf5b['get'](m)['repository']['getLaterVisibleRevision'](_0x2eff73['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x26c59f},{id:_0xf2c6a6,revisionNameView:_0x2bf334})=>{const _0x23f2ab=_0x26c59f['get'](m),_0x12edff=_0x23f2ab['repository']['getEarlierVisibleRevision'](_0xf2c6a6);_0x23f2ab['compare'](_0xf2c6a6,_0x12edff),_0x2bf334['focus'](),_0x2bf334['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1ae772,_0x15915e){super(_0x1ae772),this['_view']=_0x15915e,this['_toolbarConfig']=et(_0x1ae772['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1fb581){const _0x15c1cb=this['editor'],_0x4a0e8c=this['view'],_0x4489bd=_0x15c1cb['editing']['view'],_0x422ac3=_0x4a0e8c['editable'],_0x1ebc56=_0x4489bd['document']['getRoot']();_0x422ac3['name']=_0x1ebc56['rootName'],_0x4a0e8c['render']();const _0x416893=_0x422ac3['element'];this['setEditableElement'](_0x422ac3['name'],_0x416893),_0x4a0e8c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4489bd['attachDomRoot'](_0x416893),this['_elementReplacer']['replace'](_0x1fb581,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x174b03=this['view'],_0x29f51a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x29f51a['detachDomRoot'](_0x174b03['editable']['name']),_0x174b03['destroy']();}['_initToolbar'](){const _0xfbac9=this['view'];_0xfbac9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfbac9['stickyPanel']['limiterElement']=_0xfbac9['element'],_0xfbac9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x176692})=>_0x176692),_0xfbac9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfbac9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x589f15,_0x5a2339,_0x40a91a={}){super(_0x589f15),this['stickyPanel']=new ht(_0x589f15),this['toolbar']=new dt(_0x589f15,{'shouldGroupWhenFull':_0x40a91a['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x589f15,_0x5a2339);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x5b30b3(_0x3f8402){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x33367c,_0x1dd85e){super(_0x1dd85e),this['sourceElement']=_0x33367c,this['model']['document']['createRoot']();const _0x21f849=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x21f849);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x27fe2d,_0x1cbc63){const _0x50f6dc=new this(_0x27fe2d,_0x1cbc63);return await _0x50f6dc['initPlugins'](),await _0x50f6dc['ui']['init'](_0x27fe2d),await _0x50f6dc['data']['init'](_0x50f6dc['config']['get']('initialData')||''),_0x50f6dc['fire']('ready'),_0x50f6dc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x3d5130{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1935bd){function _0x47c44e(_0x234100){return _0x234100['map'](_0x563f06=>String['fromCharCode'](_0x563f06))['join']('');}super(_0x1935bd),this['result']='end',_0x1935bd[_0x47c44e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47c44e([0x76,0x69,0x65,0x77])][_0x47c44e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47c44e([0x61,0x75,0x74,0x6f]),_0x1935bd[_0x47c44e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x47c44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47c44e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x47c44e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x47c44e([0x6f,0x6b])});}}class k extends _0x3d5130{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x8a542e){if(super(_0x8a542e),!this['editor']['config']['get']('revisionHistory'))throw new _0x4c1689('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3d32d1=>this['_showRevisionViewer']({..._0x3d32d1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x46150b=>this['_closeRevisionViewer'](_0x46150b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56d329=>this['_restoreRevision'](_0x56d329)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1be81d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1be81d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4d18d2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4d18d2);}['getRevision'](_0x4ab745){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ab745);}['getRevisions'](_0x5f4e9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5f4e9b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xe18a6f=this['editor'],_0x52cf5f=_0x4493e4(_0xe18a6f,p),_0x454cd9=_0xe18a6f['plugins']['get']('RevisionTracker'),_0x568eef=_0xe18a6f['plugins']['get']('Users')['users'];return _0x52cf5f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x52cf5f['lazyRoots'],(_0x52cf5f['plugins']['push'](_t,m,R,class extends _0x3d5130{static get['requires'](){return[m,'Users'];}['init'](){const _0xc0bb30=this['editor']['plugins']['get']('Users');for(const _0x1bd3fb of _0x568eef)_0x1bd3fb['isAnonymous']||_0xc0bb30['getUser'](_0x1bd3fb['id'])||_0xc0bb30['addUser'](_0x1bd3fb);const _0x187135=_0x454cd9['repository']['getRevisions']();let _0x12d5a8=null;const _0x344fa6=this['editor']['plugins']['get']('RevisionViewer');_0x344fa6['adapter']=_0x454cd9['adapter'],_0x344fa6['bind']('isEnabled')['to'](_0x454cd9),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xe18a6f,'isReadOnly',_0x2bff01=>!_0x2bff01);for(const _0x396b2d of _0x187135){const _0x19c010=null===_0x396b2d['creator'];if(_0x19c010&&_0x396b2d['toVersion']===_0x396b2d['fromVersion'])continue;const _0x2ba5e9=_0x396b2d['toJSON']();_0x344fa6['addRevisionData'](_0x2ba5e9,(_0x20440c,_0x5068fc,_0x40d3e7)=>{if(_0x19c010){if(_0x12d5a8)_0x12d5a8['_update'](_0x20440c,_0x5068fc);else{if(!_0x5068fc){const _0x19efb6=_0x40d3e7['toJSON']();_0x19efb6['id']=_0xbd2e10(),_0x454cd9['saveRevision'](_0x19efb6,_0x40d3e7['toVersion'])['then'](_0x320043=>{_0x12d5a8=_0x320043;});}}}else _0x396b2d['_update'](_0x20440c,_0x5068fc);});}}},d),_0x52cf5f);}['_enhanceShowRevisionViewerCallback'](){const _0x1acbde=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xd510b2=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x451c1b=this['editor']['plugins']['get']('Autosave');await _0x451c1b['save']();}else await _0xd510b2['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1ac5eb=this['editor']['plugins']['get']('Dialog');_0x1ac5eb['isOpen']&&_0x1ac5eb['hide']();}const _0x1647f8=this['_getRevisionViewerEditorConfig']();return _0x1acbde(_0x1647f8)['then'](_0x2b8bd4=>{return(this['_viewerEditor']=_0x2b8bd4,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'),_0x2b8bd4);})['catch'](_0x1e29a1=>(console['error'](_0x1e29a1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x20787f=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'](),_0x20787f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x11808a=this['editor']['plugins']['get']('Annotations');_0x11808a['refreshVisibility'](),_0x11808a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1fffc6){const _0x1a3a74=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1cf5a2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x38d4f7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x38d4f7,_0x1fffc6)['then'](_0x2531f0=>(_0x1cf5a2['style']['display']='block',_0x1a3a74['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2531f0));}['_closeRevisionViewer'](_0x3c3e09){const _0x171ddd=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x171ddd['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3c3e09['destroy']();}async['_restoreRevision'](_0x526771){const _0x51ee43=this['editor'],_0xfddf92=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x275509=_0x51ee43['plugins']['get']('RevisionTracker'),_0x24d898=_0x51ee43['plugins']['get']('RevisionHistoryUtils'),_0x286a34=_0xfddf92['repository']['getRevision'](_0x526771);let _0x4ade7d,_0x26149f,_0x28499c;try{await _0x24d898['loadRevisionData'](_0x286a34,this['adapter']),_0x4ade7d=_0x24d898['getRevisionDocumentData'](_0x286a34),_0x26149f=_0x24d898['getRevisionRootsAttributes'](_0x286a34);}catch(_0x28b1c4){return void console['error'](_0x28b1c4);}_0x51ee43['model']['change'](_0x4914c4=>{for(const _0x1f45a0 of Array['from'](_0x51ee43['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4914c4['removeMarker'](_0x1f45a0);}),_0xfddf92['isReady']=!0x1,_0x51ee43['model']['enqueueChange'](_0x5117c0=>{_0x5117c0['setSelection'](null),_0x5117c0['removeSelectionAttribute'](_0x51ee43['model']['document']['selection']['getAttributeKeys']());const _0x4f17f4=Object['keys'](_0x4ade7d);for(const _0x36ce4a of _0x51ee43['model']['document']['roots'])'$graveyard'!=_0x36ce4a['rootName']&&_0x36ce4a['isAttached']()&&!_0x4f17f4['includes'](_0x36ce4a['rootName'])&&_0x5117c0['detachRoot'](_0x36ce4a);for(const _0x12169b of _0x4f17f4){let _0x5d0ae9=_0x51ee43['model']['document']['getRoot'](_0x12169b);_0x5d0ae9&&_0x5d0ae9['isAttached']()||(_0x5d0ae9=_0x5117c0['addRoot'](_0x12169b));const _0x479e82=_0x26149f[_0x12169b],_0x2703ea=Object['keys'](_0x479e82),_0x3b4478=_0x4ade7d[_0x12169b];for(const _0x1ef715 of _0x5d0ae9['getAttributeKeys']())_0x2703ea['includes'](_0x1ef715)||_0x5117c0['removeAttribute'](_0x1ef715,_0x5d0ae9);for(const _0x1c0d10 of _0x2703ea)_0x5117c0['setAttribute'](_0x1c0d10,_0x26149f[_0x12169b][_0x1c0d10],_0x5d0ae9);_0x5117c0['remove'](_0x5117c0['createRangeIn'](_0x5d0ae9)),_0x5117c0['insert'](_0x51ee43['data']['parse'](_0x3b4478,_0x5d0ae9),_0x5d0ae9,0x0);}});const _0x5e2714=g(_0x51ee43['locale'],'Restored');if(_0x286a34['name'])_0x28499c=-0x1==_0x286a34['name']['indexOf'](_0x5e2714)?_0x5e2714+':\x20'+_0x286a34['name']:_0x286a34['name'];else _0x28499c=_0x5e2714+':\x20'+(_0x286a34['createdAt']['toLocaleDateString'](_0x51ee43['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x286a34['createdAt']['toLocaleTimeString'](_0x51ee43['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x275509['saveRevision']({'name':_0x28499c}),_0xfddf92['isReady']=!0x0,_0x51ee43['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|