@ckeditor/ckeditor5-revision-history 45.2.1-alpha.1 → 45.2.1-alpha.10
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
|
-
_0x1f7614(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3ebc71){super(),this['id']=_0x3ebc71['id']||_0x2a811c(),this['creator']=_0x3ebc71['creator']||null,this['authors']=_0x3ebc71['authors']||[],this['diffData']=_0x3ebc71['diffData']||null,this['toVersion']=_0x3ebc71['toVersion']||0x0,this['fromVersion']=_0x3ebc71['fromVersion']||0x0,this['set']('name',_0x3ebc71['name']||''),this['set']('createdAt',_0x3ebc71['createdAt']||new Date()),this['set']('attributes',_0x3ebc71['attributes']||{});}['setName'](_0x382964){this['_update']({'name':_0x382964});}['setAttribute'](_0x4f78d3,_0x126091){const _0x24275b=_0x2061e4(this['attributes']);_0x277a5a(_0x24275b,_0x4f78d3,_0x126091),this['_update']({'attributes':_0x24275b});}['removeAttribute'](_0x446341){const _0x46c6ce=_0x2061e4(this['attributes']);_0x438d41(_0x46c6ce,_0x446341),this['_update']({'attributes':_0x46c6ce});}['_update'](_0x343f82,_0x824da9=!0x1){let _0x37253b=!0x1;const _0x41a939={'id':this['id']},_0x5ef1c7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4b8f67 of _0x5ef1c7){const _0xa46f36=_0x343f82[_0x4b8f67];void 0x0!==_0xa46f36&&_0xa46f36!==this[_0x4b8f67]&&(this[_0x4b8f67]=_0xa46f36,_0x41a939[_0x4b8f67]=_0xa46f36,_0x37253b=!0x0);}_0x37253b&&(_0x41a939['authors']&&(_0x41a939['authorsIds']=_0x41a939['authors']['map'](_0x52658e=>_0x52658e['id']),delete _0x41a939['authors']),this['fire']('_update',_0x41a939,_0x824da9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x172d76=>_0x172d76['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x506da8{['_revisions'];static get['requires'](){return[_0x24f403];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d5df4){super(_0x4d5df4),this['_revisions']=new _0x2f6a5b();}['afterInit'](){!async function(_0x2b3c9f){const _0x454452=_0x1d34ab([0x58,0x4c,0x39,0x7a,0x55,0x44,0x42,0x4f,0x68,0x33,0x67,0x4b,0x37,0x73,0x4a,0x46,0x45,0x64,0x61,0x71,0x43,0x69,0x6d,0x6f,0x48,0x6e,0x4d,0x66,0x74,0x79,0x75,0x54,0x6a,0x49,0x70,0x56,0x36,0x63,0x30,0x41,0x52,0x6c,0x32,0x57,0x59,0x77,0x72,0x50,0x62,0x78,0x51,0x35,0x6b,0x4e,0x65,0x5a,0x31,0x34,0x47,0x76,0x53,0x38]),_0x5044a7=0xeb829,_0x4588d6=0xa32fd81,_0x300de6=0xa359739^_0x4588d6,_0x426b25=window[_0x1d34ab([0x44,0x61,0x74,0x65])][_0x1d34ab([0x6e,0x6f,0x77])](),_0x2aa050=_0x2b3c9f[_0x1d34ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57804e=new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c919=>{_0x2aa050[_0x1d34ab([0x6f,0x6e,0x63,0x65])](_0x1d34ab([0x72,0x65,0x61,0x64,0x79]),_0x40c919);}),_0x4719ee={[_0x1d34ab([0x6b,0x74,0x79])]:_0x1d34ab([0x45,0x43]),[_0x1d34ab([0x75,0x73,0x65])]:_0x1d34ab([0x73,0x69,0x67]),[_0x1d34ab([0x63,0x72,0x76])]:_0x1d34ab([0x50,0x2d,0x32,0x35,0x36]),[_0x1d34ab([0x78])]:_0x1d34ab([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]),[_0x1d34ab([0x79])]:_0x1d34ab([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]),[_0x1d34ab([0x61,0x6c,0x67])]:_0x1d34ab([0x45,0x53,0x32,0x35,0x36])},_0x52350a=_0x2aa050[_0x1d34ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d34ab([0x67,0x65,0x74])](_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22464a(){let _0x2fcd7a,_0x4b5aed=null,_0x1df2f1=null;try{if(_0x52350a==_0x1d34ab([0x47,0x50,0x4c]))return _0x1d34ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fcd7a=_0x58dbd3(),!_0x2fcd7a)return _0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fcd7a[_0x1d34ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1df2f1=_0x278b2a(_0x2fcd7a[_0x1d34ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fcd7a[_0x1d34ab([0x6a,0x74,0x69])])),await _0x53e8e6()?_0x468f69()?_0x3d4305()?_0x1d34ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1debc9()?(_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d34ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b5aed=_0x267d54(_0x1d34ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d34ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b5aed=_0x267d54(_0x1d34ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d95ed()):_0x1d34ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d34ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d4305(){const _0x313adb=[_0x1d34ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d34ab([0x74,0x72,0x69,0x61,0x6c])][_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x426b25/0x3e8:0xe10*_0x300de6;return _0x2fcd7a[_0x1d34ab([0x65,0x78,0x70])]<_0x313adb;}function _0x468f69(){const _0x2570f7=_0x2fcd7a[_0x1d34ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2570f7)return!0x1;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x2a])))return!0x0;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x52,0x48])))return!0x0;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x52,0x52,0x48]))){if(_0x421f1e())return!0x0;if(_0x1fc08f()||_0x4994af())return!0x0;}return!0x1;}function _0x1debc9(){const _0x4cced9=_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cced9||0x0==_0x4cced9[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c0e2}=new URL(window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cced9[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c0e2))return!0x0;const _0x16b6cf=_0x43c0e2[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e]));return _0x4cced9[_0x1d34ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3648ed=>_0x3648ed[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x2a])))[_0x1d34ab([0x6d,0x61,0x70])](_0x59452f=>_0x59452f[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e])))[_0x1d34ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a6479=>_0x5a6479[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16b6cf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d34ab([0x6d,0x61,0x70])](_0x4fafdf=>Array(_0x16b6cf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fafdf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d34ab([0x66,0x69,0x6c,0x6c])](_0x4fafdf[0x0]===_0x1d34ab([0x2a])?_0x1d34ab([0x2a]):'')[_0x1d34ab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fafdf))[_0x1d34ab([0x73,0x6f,0x6d,0x65])](_0x39d693=>_0x16b6cf[_0x1d34ab([0x65,0x76,0x65,0x72,0x79])]((_0x472e4b,_0x3bfabf)=>_0x39d693[_0x3bfabf]===_0x472e4b||_0x39d693[_0x3bfabf]===_0x1d34ab([0x2a])));}function _0x4d95ed(){return _0x4b5aed&&_0x1df2f1?new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377350,_0x4d77ee)=>{_0x4b5aed[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x377350,_0x4d77ee),_0x1df2f1[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x1265a5=>{_0x1265a5!=_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])&&_0x377350(_0x1265a5);},_0x4d77ee);}):_0x4b5aed||_0x1df2f1||_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x278b2a(_0x2a59ae,_0x18c526){return new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349323=>{if(_0x166c3b())return _0x349323(_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]));_0x426e35(),_0x2aa050[_0x1d34ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1561c0=!0x1;const _0x1a7685=_0x2a811c();function _0x1e2910(_0x272b73){return!!_0x272b73&&(typeof _0x272b73===_0x1d34ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272b73===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272b73[_0x1d34ab([0x74,0x68,0x65,0x6e])]===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272b73[_0x1d34ab([0x63,0x61,0x74,0x63,0x68])]===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455847(_0x553f54){_0x6bc94e(_0x553f54)[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x2a0012=>{if(!_0x2a0012||_0x2a0012[_0x1d34ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d34ab([0x6f,0x6b]))return _0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe9efd6(_0x47186d(_0x1a7685+_0x18c526))!=_0x2a0012[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x1991d1=>(_0x3f3233(),_0x1991d1),()=>{const _0x251787=_0x6b7b68();return null==_0x251787?(_0x3f3233(),_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])):_0x1d34ab(_0x426b25-_0x251787>(0x2e3e7981^_0x4588d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x349323)[_0x1d34ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x557e41=0xa041301^_0x4588d6;function _0x3f3233(){const _0x2279c8=_0x1d34ab([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9efd6(_0x47186d(_0x2a59ae)),_0x41e47e=_0x4ca860(_0xe9efd6(window[_0x1d34ab([0x4d,0x61,0x74,0x68])][_0x1d34ab([0x63,0x65,0x69,0x6c])](_0x426b25/_0x557e41)));window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d34ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2279c8,_0x41e47e);}function _0x6b7b68(){const _0x2ed6b5=_0x1d34ab([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9efd6(_0x47186d(_0x2a59ae)),_0x17a369=window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d34ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ed6b5);return _0x17a369?window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca860(_0x17a369),0x10)*_0x557e41:null;}function _0x6bc94e(_0x17b572){return new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3836a1,_0x32ebcd)=>{_0x17b572[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x3836a1,_0x32ebcd),window[_0x1d34ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32ebcd,0xa332941^_0x4588d6);});}}_0x2aa050[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x472c1e,_0x380588)=>{if(_0x380588[0x0]!=_0x2a59ae)return _0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x380588[0x1]={..._0x380588[0x1],[_0x1d34ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a7685};},{[_0x1d34ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d34ab([0x68,0x69,0x67,0x68])}),_0x2aa050[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37a519=>{_0x1e2910(_0x37a519[_0x1d34ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1561c0=!0x0,_0x455847(_0x37a519[_0x1d34ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d34ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d34ab([0x6c,0x6f,0x77])}),_0x57804e[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>{_0x1561c0||_0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x166c3b(){return _0x2aa050[_0x1d34ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d34ab([0x76,0x69,0x65,0x77])][_0x1d34ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d34ab([0x61,0x75,0x74,0x6f]);}function _0x426e35(){_0x2aa050[_0x1d34ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d34ab([0x76,0x69,0x65,0x77])][_0x1d34ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d34ab([0x61,0x75,0x74,0x6f]);}}function _0x267d54(_0x5a563c){const _0xba0a00=[new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf854=>setTimeout(_0x3cf854,0xa3bc34d^_0x4588d6)),_0x57804e[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x247887=>{const _0x50d324=0xa32fd86^_0x4588d6,_0x31073c=_0x2b3c9f[_0x1d34ab([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x43dfa8(){_0x31073c[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50d324&&_0x247887();}_0x43dfa8(),_0x31073c[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x61,0x64,0x64]),_0x43dfa8);})),new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4146b7=>{function _0x53cd7b(){for(const _0x3ab8f8 in window)if(window[_0x1d34ab([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1d34ab([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ab8f8))&&window[_0x3ab8f8]==_0x5044a7)return _0x4146b7();_0x2aa050[_0x1d34ab([0x73,0x74,0x61,0x74,0x65])]!=_0x1d34ab([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1d34ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53cd7b,0xa32ee09^_0x4588d6);}_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x53cd7b();})];return window[_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d34ab([0x72,0x61,0x63,0x65])](_0xba0a00)[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>_0x5a563c);}async function _0x12328f(){if(await _0x57804e,_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xbe9a1c=_0x2b3c9f[_0x1d34ab([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d4e4e=_0x2b3c9f[_0x1d34ab([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])](_0xbe9a1c[_0x1d34ab([0x69,0x64])]),_0x4cecbb=_0x2b6d03(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4cecbb[_0x1d34ab([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xbe9a1c['id'],_0x5d4e4e?_0x5d4e4e['id']:null,!0x0),_0x4cecbb[_0x1d34ab([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4cecbb[_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4cecbb[_0x1d34ab([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x249627,void(_0x4cecbb[_0x1d34ab([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x249627);}if(_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1b25a6=_0x2b6d03(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1b25a6[_0x1d34ab([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b25a6[_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b25a6[_0x1d34ab([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x249627,_0x1b25a6[_0x1d34ab([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x249627;}_0x2aa050[_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d34ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249627,_0x2aa050[_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d34ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249627,_0x2aa050[_0x1d34ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x421f1e(){return _0x199544(_0x1d34ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b6d03(_0x1d34ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d34ab([0x73,0x74,0x61,0x74,0x65])]==_0x1d34ab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1fc08f(){return _0x199544(_0x1d34ab([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 _0x4994af(){return _0x199544(_0x1d34ab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc7bd38(_0x4350c8){const _0x4c9e38=_0x6271c1();_0x2aa050[_0x4c9e38]=_0x1d34ab([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])+_0x4350c8,_0x4350c8[_0x1d34ab([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1d34ab([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x6271c1()]=_0x5044a7),_0x4350c8!=_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])&&_0x12328f();}function _0x6271c1(){const _0xaa78c3=window[_0x1d34ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d34ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d34ab([0x6e,0x6f,0x77])]())[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d34ab([0x2e]),'');let _0x226445=_0x1d34ab([0x58]);for(let _0x1f2b72=0x0;_0x1f2b72<_0xaa78c3[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f2b72+=0x2){let _0x360dae=window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaa78c3[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f2b72,_0x1f2b72+0x2));_0x360dae>=_0x454452[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x360dae-=_0x454452[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x226445+=_0x454452[_0x360dae];}return _0x226445;}function _0x58dbd3(){const _0x10c1db=_0x52350a[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e]));if(0x3!=_0x10c1db[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x314ada(_0x10c1db[0x1]);function _0x314ada(_0x561083){const _0xd891c5=_0x30a7bf(_0x561083);return _0xd891c5&&_0x464b29()?_0xd891c5:null;function _0x464b29(){const _0x4fd25a=_0xd891c5[_0x1d34ab([0x6a,0x74,0x69])],_0x3afc23=window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fd25a[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fd25a[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c81c2={..._0xd891c5,[_0x1d34ab([0x6a,0x74,0x69])]:_0x4fd25a[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fd25a[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c81c2[_0x1d34ab([0x76,0x63])],_0x47186d(_0x1c81c2)==_0x3afc23;}}}async function _0x53e8e6(){let _0x54854d=!0x0;try{const _0x2829db=_0x52350a[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e])),[_0x24df9e,_0x11d0fb,_0x3e936c]=_0x2829db;return _0x2a2dd4(_0x24df9e),await _0x3db443(_0x24df9e,_0x11d0fb,_0x3e936c),_0x54854d;}catch{return!0x1;}function _0x2a2dd4(_0x16ab15){const _0x15b6e1=_0x30a7bf(_0x16ab15);_0x15b6e1&&_0x15b6e1[_0x1d34ab([0x61,0x6c,0x67])]==_0x1d34ab([0x45,0x53,0x32,0x35,0x36])||(_0x54854d=!0x1);}async function _0x3db443(_0x1c47c0,_0x44c94a,_0x1a9ea6){const _0x56d51b=window[_0x1d34ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d34ab([0x66,0x72,0x6f,0x6d])](_0x4db6dd(_0x1a9ea6),_0x534923=>_0x534923[_0x1d34ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d585c=new window[(_0x1d34ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d34ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c47c0+_0x1d34ab([0x2e])+_0x44c94a),_0x1f343d=window[_0x1d34ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d34ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f343d)return;const _0x1d078b=await _0x1f343d[_0x1d34ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d34ab([0x6a,0x77,0x6b]),_0x4719ee,{[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x45,0x43,0x44,0x53,0x41]),[_0x1d34ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d34ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f343d[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x45,0x43,0x44,0x53,0x41]),[_0x1d34ab([0x68,0x61,0x73,0x68])]:{[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d078b,_0x56d51b,_0x3d585c)||(_0x54854d=!0x1);}}function _0x30a7bf(_0x42c42d){return _0x42c42d[_0x1d34ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d34ab([0x65,0x79]))?JSON[_0x1d34ab([0x70,0x61,0x72,0x73,0x65])](_0x4db6dd(_0x42c42d)):null;}function _0x4db6dd(_0x3fdbd5){return window[_0x1d34ab([0x61,0x74,0x6f,0x62])](_0x3fdbd5[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d34ab([0x2b]))[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d34ab([0x2f])));}function _0x47186d(_0x3a6c78){let _0x244db7=0x1505;function _0x1773b0(_0xdc204e){for(let _0x49fa56=0x0;_0x49fa56<_0xdc204e[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49fa56++){const _0x576459=_0xdc204e[_0x1d34ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49fa56);_0x244db7=(_0x244db7<<0x5)+_0x244db7+_0x576459,_0x244db7&=_0x244db7;}}function _0x16facc(_0x54cdeb){Array[_0x1d34ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54cdeb)?_0x54cdeb[_0x1d34ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16facc):_0x54cdeb&&typeof _0x54cdeb==_0x1d34ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d34ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54cdeb)[_0x1d34ab([0x73,0x6f,0x72,0x74])]()[_0x1d34ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c74fd,_0xd3e756])=>{_0x1773b0(_0x2c74fd),_0x16facc(_0xd3e756);}):_0x1773b0(window[_0x1d34ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54cdeb));}return _0x16facc(_0x3a6c78),_0x244db7>>>0x0;}function _0xe9efd6(_0x1711f0){return _0x1711f0[_0x1d34ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d34ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d34ab([0x30]));}function _0x4ca860(_0x4a16cf){return _0x4a16cf[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d34ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d34ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x199544(_0x50529c){return _0x2aa050[_0x1d34ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d34ab([0x68,0x61,0x73])](_0x50529c);}function _0x2b6d03(_0x46158e){return _0x2aa050[_0x1d34ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d34ab([0x67,0x65,0x74])](_0x46158e);}function _0x249627(){}function _0x1d34ab(_0x103d02){return _0x103d02['map'](_0x1d9d5a=>String['fromCharCode'](_0x1d9d5a))['join']('');}_0xc7bd38(await _0x22464a());}(this);}['createRevision'](_0x330a74){const _0xca563d=this['editor']['plugins']['get']('Users');return new h({'id':_0x330a74['id'],'name':_0x330a74['name'],'creator':_0x330a74['creatorId']?_0xca563d['getUser'](_0x330a74['creatorId']):null,'diffData':_0x330a74['diffData']||_0x330a74['data'],'authors':_0x330a74['authorsIds']['map'](_0xd169c2=>_0xca563d['getUser'](_0xd169c2)),'createdAt':new Date(_0x330a74['createdAt']),'attributes':_0x330a74['attributes'],'fromVersion':_0x330a74['fromVersion'],'toVersion':_0x330a74['toVersion']});}['addRevision'](_0x378bbe,_0x399959=0x0){this['_revisions']['add'](_0x378bbe,_0x399959);}['getRevision'](_0x229bb1){return this['_revisions']['get'](_0x229bb1);}['getRevisions'](_0xd0c056={'toJSON':!0x1}){const _0x3bd836=Array['from'](this['_revisions']);return _0x3bd836['reverse'](),_0xd0c056['toJSON']?_0x3bd836['map'](_0x17d3fe=>_0x17d3fe['toJSON']()):_0x3bd836;}['getIndex'](_0x2a640b){return this['_revisions']['getIndex'](_0x2a640b);}['getEarlierVisibleRevision'](_0x4855f6){const [,_0xc95e99]=this['getRevisionsIterator'](_0x4855f6,{'direction':'earlier'});return _0xc95e99;}['getLaterVisibleRevision'](_0x38ccb4){const [,_0x90eaf]=this['getRevisionsIterator'](_0x38ccb4,{'direction':'later'});return _0x90eaf;}['getRevisionsInDiff'](_0x37ef14){const _0x2d13dd=[];for(const _0x1fc3e7 of this['getRevisionsIterator'](_0x37ef14['newRevisionId']))if(_0x2d13dd['push'](_0x1fc3e7),_0x1fc3e7['id']===_0x37ef14['oldRevisionId'])break;return _0x2d13dd;}*['getRevisionsIterator'](_0x523547,{direction:_0x1c93c8='earlier',filter:_0x147cbe=()=>!0x0}={}){const _0x1e3cb1='earlier'===_0x1c93c8?0x1:-0x1;let _0x3a9e06=this['_revisions']['get'](_0x523547),_0x2fdc0b=this['getIndex'](_0x3a9e06);for(yield _0x3a9e06;_0x3a9e06;){if(_0x2fdc0b+=_0x1e3cb1,_0x3a9e06=this['getRevision'](_0x2fdc0b),!_0x3a9e06)return;_0x147cbe(_0x3a9e06)&&(yield _0x3a9e06);}}}class V extends _0x506da8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2d2b0d,'c'],[_0x2bf1ad,'a'],[_0x37aae7,'e'],[_0x36609f,'r'],[_0x644339,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2d2b0d],['a',_0x2bf1ad],['e',_0x37aae7],['r',_0x36609f],['u',_0x644339]]);async['loadRevisionData'](_0x305cec,_0xde995c){if(_0x305cec['diffData']||!_0xde995c)return;const _0x2021ed=this['editor']['config']['get']('collaboration.channelId'),_0x44d26c=await _0xde995c['getRevision']({'channelId':_0x2021ed,'revisionId':_0x305cec['id']});_0x305cec['diffData']=_0x44d26c['diffData'];}['getRevisionDocumentData'](_0x45ac54){const _0x2703d9={};for(const _0x543a2e in _0x45ac54['diffData']){if(_0x45ac54['diffData'][_0x543a2e]['attachChange']&&!_0x45ac54['diffData'][_0x543a2e]['attachChange']['isAttached'])continue;const _0x3419fb=this['_removeRevisionMarkers'](JSON['parse'](_0x45ac54['diffData'][_0x543a2e]['insertions'])),_0x2b9bae=this['editor']['editing']['view']['document'],_0x52a0e0=new _0x218b0c(_0x2b9bae,_0x3419fb['map'](_0x315cb4=>this['_getViewFromDiffObj'](_0x315cb4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2703d9[_0x543a2e]=this['editor']['data']['processor']['toData'](_0x52a0e0),this['editor']['data']['processor']['useFillerType']('default');}return _0x2703d9;}['getRevisionRootsAttributes'](_0x4aa22e){const _0x1be060={};for(const _0x5a8fb9 in _0x4aa22e['diffData'])_0x4aa22e['diffData'][_0x5a8fb9]['attachChange']&&!_0x4aa22e['diffData'][_0x5a8fb9]['attachChange']['isAttached']||(_0x1be060[_0x5a8fb9]=_0x4aa22e['diffData'][_0x5a8fb9]['attributesAfter']||{});return _0x1be060;}['_getTypeCharForViewElement'](_0x3cb201){return this['_viewClassToTypeChar']['get'](_0x3cb201['constructor']);}['_getViewFromDiffObj'](_0x247fff,_0x44da83){const _0x1fd85d=this['editor']['editing']['view']['document'];if('string'==typeof _0x247fff)return new _0x3f3247(_0x1fd85d,_0x247fff);{let _0x4dc844,_0x10fd39;_0x10fd39='u'==_0x247fff['type']||'r'==_0x247fff['type']?[]:_0x247fff['children']['map'](_0x31c74a=>this['_getViewFromDiffObj'](_0x31c74a,_0x44da83));const _0x2eaf85=this['_typeCharToViewClass']['get'](_0x247fff['type'])||_0x37f088,_0x48f1f7=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4dc844=new _0x2eaf85(_0x1fd85d,_0x247fff['name'],_0x247fff['attributes'],_0x10fd39),'u'==_0x247fff['type']&&_0x247fff['children'][0x0]){const _0x52bde7=_0x247fff['children'][0x0];if(_0x4dc844['render']=function(_0x5300df){const _0x5a2eac=_0x5300df['createElement']('div');return _0x5a2eac['innerHTML']=_0x52bde7,_0x5a2eac['childNodes'][0x0];},_0x44da83){const _0xfc258d=new _0x218b0c(_0x1fd85d);_0xfc258d['_appendChild'](_0x4dc844);const _0x327714=Array['from'](_0x48f1f7['viewChildrenToDom'](_0xfc258d,{'bind':!0x1})),_0x13d8aa=_0x48f1f7['domDocument']['createElement']('div');_0x13d8aa['append'](..._0x327714),_0x4dc844=Array['from'](_0x48f1f7['domChildrenToView'](_0x13d8aa))[0x0];}}else{if('r'==_0x247fff['type']&&_0x247fff['children'][0x0]){const _0x25950c=_0x247fff['children'][0x0];if(_0x4dc844['render']=function(_0x5cc279){_0x5cc279['innerHTML']=_0x25950c;},_0x44da83){const _0x31f4b6=new _0x218b0c(_0x1fd85d);_0x31f4b6['_appendChild'](_0x4dc844);const _0x125cda=Array['from'](_0x48f1f7['viewChildrenToDom'](_0x31f4b6,{'bind':!0x1})),_0x117718=_0x48f1f7['domDocument']['createElement']('div');_0x117718['append'](..._0x125cda);const _0x500dae=Array['from'](_0x48f1f7['domChildrenToView'](_0x117718));_0x500dae['length']>0x1?_0x4dc844['_appendChild'](_0x500dae):_0x4dc844=_0x500dae[0x0];}}}if(_0x247fff['customProperties']){for(const [_0x47345c,_0x57ef0a]of _0x247fff['customProperties'])_0x4dc844['_setCustomProperty'](_0x47345c,_0x57ef0a);}const _0x12e6bb=void 0x0===_0x247fff['fillerOffset']?null:_0x247fff['fillerOffset'];return null!==_0x12e6bb&&(_0x4dc844['getFillerOffset']=()=>_0x12e6bb),_0x4dc844;}}['_makeModelFromViewString'](_0x365fa5){const _0x229ccd=JSON['parse'](_0x365fa5),_0x390609=this['editor']['editing']['view']['document'],_0x3754ab=new _0x218b0c(_0x390609,_0x229ccd['map'](_0x3c191c=>this['_getViewFromDiffObj'](_0x3c191c,!0x0)));return this['editor']['data']['toModel'](_0x3754ab);}['_removeRevisionMarkers'](_0x344c11){return(_0x344c11=_0x344c11['filter'](_0x565c20=>!_0x565c20['name']||'revision-start'!==_0x565c20['name']&&'revision-end'!==_0x565c20['name']))['forEach'](_0x278279=>{'string'!=typeof _0x278279&&(_0x278279['children']=this['_removeRevisionMarkers'](_0x278279['children']),_0x278279['attributes']=_0x278279['attributes']['filter'](_0x69493=>!_0x69493[0x0]['startsWith']('data-revision-')));}),_0x344c11;}}function g(_0x56f884,_0x3b6a3b,_0x7b2867){const t=_0x56f884['t'];switch(_0x3b6a3b){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'},_0x7b2867);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x7b2867);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 _0x506da8{['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[_0x24f403,I,V,_0x31e0c7];}constructor(_0x38e928){super(_0x38e928),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 _0x1e1e3c=_0x2a811c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1e1e3c},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 _0xc3c01a=this['repository']['getRevision'](0x0),_0x31ebaa=_0xc3c01a&&null===_0xc3c01a['creator']?_0xc3c01a:null;if(this['_continueCurrentRevision']=!!_0x31ebaa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3dde16=this['_source']['getCurrentRevisionId'](),_0x8c30a5=this['repository']['getRevision'](_0x3dde16);if(_0x8c30a5)this['_startingVersion']=_0x8c30a5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6c7998=this['_source']['history']['_operations']['find'](_0x4f42c4=>!_0x4f42c4['_isInit']),_0xd689a3=_0x6c7998?_0x6c7998['baseVersion']:this['_source']['history']['version'];_0xc3c01a?(_0xc3c01a['toVersion']<_0xd689a3&&_0xc3c01a['_update']({'toVersion':_0xd689a3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id'],this['_startingVersion']=_0x31ebaa['fromVersion']):(this['_startingVersion']=_0xc3c01a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xd689a3,this['_continueCurrentRevision']=!0x1);}}else _0x31ebaa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31ebaa['toVersion'],this['editor']['model']['document']['history']['version']),_0x31ebaa['fromVersion']===_0x31ebaa['toVersion']?(0x0!==_0x31ebaa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id'],this['_startingVersion']=_0x31ebaa['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',_0x480521=>!_0x480521),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15db0f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ede0f;for(const _0x3c2bf6 in _0x15db0f){const _0x150a2d=_0x3c2bf6,_0x2f17ce=_0x15db0f[_0x150a2d];if('revisionHistoryLicenseKeyValid'==_0x2f17ce||'revisionHistoryLicenseKeyInvalid'==_0x2f17ce||'revisionHistoryLicenseKeyExpired'==_0x2f17ce||'revisionHistoryLicenseKeyDomainLimit'==_0x2f17ce||'revisionHistoryLicenseKeyNotAllowed'==_0x2f17ce||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f17ce||'revisionHistoryLicenseKeyTrialLimit'==_0x2f17ce||'revisionHistoryLicenseKeyUsageLimit'==_0x2f17ce){delete _0x15db0f[_0x150a2d],_0x5ede0f=_0x2f17ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5ede0f&&_0x15db0f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5ede0f&&_0x15db0f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5ede0f&&_0x15db0f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x36e01f=this['repository']['getRevision'](0x0),_0x562ea1=await this['getRevisionDocumentData'](_0x36e01f),_0x5135c9=await this['getRevisionRootsAttributes'](_0x36e01f);this['_replaceEditorDataWithRevisionData'](_0x562ea1,_0x5135c9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x161d2e){this['_source']=_0x161d2e;}async['update'](){const _0x43e1c4=await this['_source']['getLatestVersion']();if(_0x43e1c4>this['currentRevision']['toVersion']){await this['_loadState']();const _0xfdb558=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x43e1c4});_0xfdb558['authors']=_0xfdb558['authorsIds']['map'](_0x194eb0=>this['editor']['plugins']['get']('Users')['getUser'](_0x194eb0)),this['currentRevision']['_update'](_0xfdb558);}}async['saveRevision'](_0x18fecb={},_0x38627a=null){const _0xf26f34=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x38627a>this['currentRevision']['toVersion']&&(_0x38627a=null),null===_0x38627a&&(_0x38627a=await this['_source']['getLatestVersion']());const _0x17111c=this['_getFromVersion'](_0x38627a),_0x2305a4=this['buildRevisionData']({'from':_0x17111c,'to':_0x38627a});if(this['currentRevision']['toVersion']<_0x38627a){const _0x2534c7=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x38627a,'to':_0x38627a});_0x2534c7['authors']=[],_0x2534c7['authorsIds']=[],_0x2534c7['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2534c7,!0x0),delete _0x2534c7['authors'],_0xf26f34['push'](_0x2534c7);}_0x18fecb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x18fecb['name']=_0x18fecb['name']||null,_0x18fecb['id']=_0x18fecb['id']||_0x2a811c(),_0x18fecb={..._0x18fecb,..._0x2305a4};const _0x274321=this['addRevisionData'](_0x18fecb);_0xf26f34['push'](_0x18fecb);const _0x3df86b=this['repository']['getIndex'](_0x274321);if(0x0!==_0x3df86b){const _0xb2a85a=this['repository']['getRevision'](_0x3df86b-0x1);if(_0xb2a85a['fromVersion']!==_0x38627a){const _0x412d4e=this['_revisionDataBuilder']['getData'](_0x38627a,_0xb2a85a['toVersion']),_0x43e49d={'id':_0xb2a85a['id'],'diffData':_0x412d4e['diffData'],'authorsIds':_0x412d4e['authorsIds'],'authors':_0x412d4e['authorsIds']['map'](_0x22b0c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x22b0c4)),'fromVersion':_0x38627a};_0xb2a85a===this['currentRevision']&&(_0x43e49d['createdAt']=new Date(_0x18fecb['createdAt']['getTime']()+0xa)),_0xb2a85a['_update'](_0x43e49d,!0x0),delete _0x43e49d['authors'],_0xf26f34['push'](_0x43e49d);}}if(this['adapter']){for(const _0x3ea3eb of _0xf26f34)this['_bufferUpdate'](_0x3ea3eb['id'],_0x3ea3eb,!0x0);this['sendBufferedUpdates']();}return _0x274321;}['addRevisionData'](_0x2609e7){const _0x5dcd62=this['repository']['createRevision'](_0x2609e7);return this['adapter']&&_0x5dcd62['on']('_update',(_0x479787,_0x1350e2,_0x244d18)=>{_0x244d18||(this['_bufferUpdate'](_0x1350e2['id'],_0x1350e2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5dcd62,this['_findInsertionIndex'](_0x5dcd62)),_0x5dcd62;}async['getRevisionDocumentData'](_0x199b1a){return await this['_utils']['loadRevisionData'](_0x199b1a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x199b1a);}async['getRevisionRootsAttributes'](_0x2e0def){return await this['_utils']['loadRevisionData'](_0x2e0def,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2e0def);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xbe01ee=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c3ccd=0x0;_0x2c3ccd<_0xbe01ee['length'];_0x2c3ccd++){const _0x4b0291=_0xbe01ee[_0x2c3ccd];let _0x36e2f1=!0x1;for(const _0x3cb200 of Object['keys'](_0x4b0291))void 0x0===_0x4b0291[_0x3cb200]?delete _0x4b0291[_0x3cb200]:'id'!==_0x3cb200&&(_0x36e2f1=!0x0);_0x36e2f1||(_0xbe01ee[_0x2c3ccd]=null);}if(_0xbe01ee=_0xbe01ee['filter'](_0x52a8b2=>null!==_0x52a8b2),!_0xbe01ee['length'])return;for(let _0x268f66=0x0;_0x268f66<_0xbe01ee['length'];_0x268f66++){const _0x4be86e=_0xbe01ee[_0x268f66];void 0x0!==_0x4be86e['fromVersion']&&void 0x0===_0x4be86e['toVersion']&&(_0x4be86e['toVersion']=this['repository']['getRevision'](_0x4be86e['id'])['toVersion']),void 0x0!==_0x4be86e['toVersion']&&void 0x0===_0x4be86e['fromVersion']&&(_0x4be86e['fromVersion']=this['repository']['getRevision'](_0x4be86e['id'])['fromVersion']);}const _0x5d1033=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xbe01ee,_0x5d1033)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x476cfe=>{if(_0x476cfe){for(const _0x4592a6 of _0x476cfe)this['setRevisionData']({'id':_0x4592a6['id'],'createdAt':_0x4592a6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x47e23a=null,from:_0x1e6241=null,to:_0x2053c3=null}){_0x1e6241=null!==_0x1e6241?_0x1e6241:_0x47e23a['fromVersion'],_0x2053c3=null!==_0x2053c3?_0x2053c3:_0x47e23a['toVersion'];const _0x4f9f53=this['_revisionDataBuilder']['getData'](_0x1e6241,_0x2053c3),_0x47c9e6={'diffData':_0x4f9f53['diffData'],'authorsIds':_0x4f9f53['authorsIds'],'fromVersion':_0x1e6241,'toVersion':_0x2053c3};if(!_0x47e23a||_0x2053c3!==_0x47e23a['toVersion']){const _0x263349=_0x2053c3-0x1,_0x86b053=this['_source']['history']['getOperation'](_0x263349);_0x47c9e6['createdAt']=_0x86b053&&_0x86b053['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1e6241===this['_loadedStateData']['fromVersion']){for(const _0x52f75f of this['_loadedStateData']['authors'])_0x47c9e6['authorsIds']['includes'](_0x52f75f['id'])||_0x47c9e6['authorsIds']['push'](_0x52f75f['id']);}return _0x47c9e6;}['_bufferUpdate'](_0x5ea052,_0x374207,_0x32384f){if(this['_bufferedUpdates']['has'](_0x5ea052)){const _0x23249d=this['_bufferedUpdates']['get'](_0x5ea052);_0x374207=_0x32384f?{..._0x23249d,..._0x374207}:{..._0x374207,..._0x23249d};}this['_bufferedUpdates']['set'](_0x5ea052,_0x374207);}['setRevisionData'](_0xe9606a){const _0x191588=this['repository']['getRevision'](_0xe9606a['id']);if(_0xe9606a['createdAt']&&(_0xe9606a['createdAt']=new Date(_0xe9606a['createdAt'])),_0xe9606a['authorsIds']){const _0x3f4df1=this['editor']['plugins']['get']('Users');_0xe9606a['authors']=_0xe9606a['authorsIds']['map'](_0x36b64e=>_0x3f4df1['getUser'](_0x36b64e));}_0x191588['_update'](_0xe9606a,!0x0);}['_createInitialRevision'](_0x393290){const _0x533b96=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x533b96)this['_initialRevisionId']=_0x533b96['id'];else{const _0x2228e0=!this['editor']['model']['document']['roots']['find'](_0x23d16f=>this['editor']['model']['hasContent'](_0x23d16f)),_0x274234=this['editor']['plugins']['get']('Users')['me']['id'],_0x56c00d=g(this['editor']['locale'],_0x2228e0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x393290,'to':_0x393290,'id':this['_initialRevisionId'],'name':_0x56c00d,'creatorId':_0x274234});}}['_createCurrentRevision'](_0xac4bf4){const _0x4b7392=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4b7392),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xac4bf4,'to':_0xac4bf4,'id':_0x4b7392,'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'](_0x5c42a1,_0x502257){let _0x1ff299=this['editor']['config']['get']('initialData'),_0x4fc2ce=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1ff299){_0x1ff299={};for(const _0x20f961 of this['editor']['model']['document']['getRootNames']())_0x1ff299[_0x20f961]='';}if('string'==typeof _0x1ff299&&(_0x1ff299={'main':_0x1ff299}),void 0x0===_0x4fc2ce){_0x4fc2ce={};for(const _0x7ceaad of this['editor']['model']['document']['getRootNames']())_0x4fc2ce[_0x7ceaad]={};}let _0x48e988=!0x1;const _0x371a35=Object['keys'](_0x1ff299),_0x7667b3=Object['keys'](_0x5c42a1);for(const _0x419e24 of _0x371a35){if(_0x1ff299[_0x419e24]!==_0x5c42a1[_0x419e24]&&''!==_0x1ff299[_0x419e24]['trim']()){_0x48e988=!0x0;break;}if(!_0x1c5062(_0x4fc2ce[_0x419e24],_0x502257[_0x419e24])&&Object['keys'](_0x4fc2ce[_0x419e24])['length']>0x0){_0x48e988=!0x0;break;}}_0x48e988||(_0x48e988=_0x7667b3['some'](_0x5d8936=>!this['editor']['model']['document']['getRoot'](_0x5d8936))),_0x48e988&&_0x41ff87('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1ff299,'editorRootsAttributes':_0x4fc2ce,'revisionData':_0x5c42a1,'revisionRootsAttributes':_0x502257}),this['editor']['config']['set']('initialData',_0x5c42a1),this['editor']['config']['set']('rootsAttributes',_0x502257);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x383076=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x383076['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x52102e){const _0x5bbaca=this['repository']['getRevisions']();_0x5bbaca['reverse']();let _0x5eda91=0x0;for(;_0x5eda91<_0x5bbaca['length'];){const _0x3695c6=_0x5bbaca[_0x5eda91];if(_0x3695c6===this['currentRevision']){_0x5eda91++;continue;}if(_0x3695c6['id']===this['_initialRevisionId'])break;const _0x3273b5=_0x52102e['toVersion']-_0x3695c6['toVersion']||_0x52102e['fromVersion']-_0x3695c6['fromVersion'];if(_0x3273b5>0x0)break;if(_0x3273b5<0x0)_0x5eda91++;else{if(!_0x52102e['creator']&&_0x3695c6['creator'])break;if(_0x3695c6['creator']||!_0x52102e['creator']){if(_0x52102e['createdAt']>_0x3695c6['createdAt'])break;_0x5eda91++;}else _0x5eda91++;}}return _0x5eda91;}['_getFromVersion'](_0x51e15a){const _0x50b018=this['repository']['getRevisions']();_0x50b018['reverse'](),_0x50b018['shift']();const _0x458353=_0x50b018['find'](_0x5ca6fc=>_0x5ca6fc['toVersion']<=_0x51e15a)['toVersion'];return _0x458353<this['_startingVersion']?this['_startingVersion']:_0x458353;}['_makeRevision']({name:_0x34f80c,from:_0x2aa331,to:_0x58430b,creatorId:_0x5f0ee7,id:_0x5578d8}){const _0xd5d860=this['buildRevisionData']({'from':_0x2aa331,'to':_0x58430b});_0xd5d860['name']=_0x34f80c,_0xd5d860['creatorId']=_0x5f0ee7,_0xd5d860['id']=_0x5578d8;const _0xa6fac9=this['addRevisionData'](_0xd5d860);return this['adapter']&&this['_bufferUpdate'](_0xd5d860['id'],_0xd5d860,!0x0),_0xa6fac9;}['_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(_0x1ad506){this['editor']=_0x1ad506,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'](_0x22c83e){this['source']=_0x22c83e;const _0x4af98f=new Map(),_0x177c15=new Map(),_0xd5f44b=this['editor']['model']['document']['roots']['map'](_0x2c1dd5=>_0x2c1dd5['rootName']);for(const _0x1cd0fb of _0xd5f44b){const _0xb3beb9=this['editor']['model']['document']['getRoot'](_0x1cd0fb),_0xd9d146=N(_0xb3beb9);_0x4af98f['set'](_0x1cd0fb,_0xd9d146),_0x177c15['set'](_0x1cd0fb,Object['fromEntries'](_0xb3beb9['getAttributes']()));}const _0x5ac133=Array['from'](this['editor']['model']['markers'])['map'](_0x144e6e=>[_0x144e6e['name'],_0x144e6e['getRange']()]),_0x1c5ae4=this['source']['version'];this['_saveMetaData'](_0x1c5ae4,_0x4af98f,_0x5ac133,_0x177c15),this['_startingRevisionId']=this['_revisionId'];const _0x3debf0=new Map(),_0x2332e6=new Map();for(const _0x506ebc of _0xd5f44b){const _0x1dc1ef=P(_0x506ebc);_0x3debf0['set'](_0x506ebc,_0x1dc1ef),_0x2332e6['set'](_0x506ebc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3debf0,[],_0x2332e6);}['getData'](_0x4f5ed1,_0x3b338a){if(this['_lastFrom']===_0x4f5ed1&&this['_lastTo']<=_0x3b338a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b338a,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f5ed1)){const _0x5300fb=this['_getPreviousFrom'](_0x4f5ed1);this['_calculateMetaData'](_0x5300fb,_0x4f5ed1,!0x1);}this['_calculateMetaData'](_0x4f5ed1,_0x3b338a,!0x0);}return this['_lastFrom']=_0x4f5ed1,this['_lastTo']=_0x3b338a,this['_getState']();}['loadState'](_0x598ad0){const _0x396b52=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x598ad0['fromVersion'],this['_lastTo']=_0x598ad0['toVersion'];for(const _0x1180bf in _0x598ad0['diffData']){const _0x3898cb=_0x598ad0['diffData'][_0x1180bf]['attachChange'],_0x197f30=_0x2061e4(_0x598ad0['diffData'][_0x1180bf]['attributesBefore'])||{},_0xc539f5=_0x396b52['_makeModelFromViewString'](_0x598ad0['diffData'][_0x1180bf]['deletions']);_0xc539f5['rootName']=_0x1180bf,_0xc539f5['_isAttached']=!_0x3898cb||!_0x3898cb['isAttached'],_0xc539f5['isAttached']=()=>_0xc539f5['_isAttached'],this['_baseRoots']['set'](_0x1180bf,_0xc539f5),this['_baseRootsAttributes']['set'](_0x1180bf,_0x197f30),_0x3898cb&&this['_touchedRoots']['set'](_0x1180bf,_0x3898cb);const _0x286e14=this['_makeIdsRoot'](_0xc539f5);this['_baseIdsRoots']['set'](_0x1180bf,_0x286e14);for(const [_0x2583ee,_0x4efaff]of _0xc539f5['markers']){if(!_0x2583ee['startsWith']('revision:'))continue;const _0x1d10e5=_0x2583ee['split'](':')[0x2];for(const _0x4d7194 of _0x4efaff['getWalker']({'singleCharacters':!0x0})){const _0x131710=this['_getVidAttributeName'](_0x4d7194),_0x199bfa='elementEnd'==_0x4d7194['type']?_0x4d7194['previousPosition']['path']['slice'](0x0,-0x1):_0x4d7194['previousPosition']['path'],_0x1384eb=_0x286e14['getNodeByPath'](_0x199bfa)['getAttribute'](_0x131710);this['_touched']['set'](_0x1384eb,{'userId':_0x1d10e5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1a2b13=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1d3956=>!this['_touched']['has'](_0x1d3956));let _0x2a9de9=0x0;const _0x53aaff=new Map();for(const _0x163c59 in _0x598ad0['diffData']){const _0x430a19=_0x598ad0['diffData'][_0x163c59]['attachChange'],_0x54456a=_0x2061e4(_0x598ad0['diffData'][_0x163c59]['attributesAfter'])||{},_0x349ff4=_0x396b52['_makeModelFromViewString'](_0x598ad0['diffData'][_0x163c59]['insertions']);_0x349ff4['rootName']=_0x163c59,_0x349ff4['_isAttached']=!_0x430a19||_0x430a19['isAttached'],_0x349ff4['isAttached']=()=>_0x349ff4['_isAttached'],this['_diffRoots']['set'](_0x163c59,_0x349ff4),this['_diffRootsAttributes']['set'](_0x163c59,_0x54456a);const _0x527a88=this['_makeIdsRoot'](_0x349ff4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x163c59,_0x527a88),_0x53aaff['set'](_0x163c59,_0x349ff4['isAttached']()?_0x54456a:{});for(const [_0x24f78a,_0x4fdfc1]of _0x349ff4['markers']){if(!_0x24f78a['startsWith']('revision:'))continue;const _0x16fa08=_0x24f78a['split'](':')[0x2];for(const _0x25c77a of _0x4fdfc1['getWalker']({'singleCharacters':!0x0})){const _0x335916=this['_getVidAttributeName'](_0x25c77a),_0x6cbe31=this['_revisionId']++,_0x18c812='elementEnd'==_0x25c77a['type']?_0x25c77a['previousPosition']['path']['slice'](0x0,-0x1):_0x25c77a['previousPosition']['path'];_0x527a88['getNodeByPath'](_0x18c812)['_setAttribute'](_0x335916,_0x6cbe31),this['_touched']['set'](_0x6cbe31,{'userId':_0x16fa08});}}for(const _0x1ec2c8 of this['editor']['model']['createRangeIn'](_0x349ff4)['getWalker']({'singleCharacters':!0x0})){const _0x3374eb=this['_getVidAttributeName'](_0x1ec2c8),_0x16fbea='elementEnd'==_0x1ec2c8['type']?_0x1ec2c8['previousPosition']['path']['slice'](0x0,-0x1):_0x1ec2c8['previousPosition']['path'],_0x1d806c=_0x527a88['getNodeByPath'](_0x16fbea);_0x1d806c['getAttribute'](_0x3374eb)>0x0||_0x1d806c['_setAttribute'](_0x3374eb,_0x1a2b13[_0x2a9de9++]);}for(const [_0x42a3d6,_0x55f3fc]of _0x349ff4['markers'])_0x42a3d6['startsWith']('revision:')||this['_markers']['set'](_0x42a3d6,_0x55f3fc);}const _0x19710d=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x19710d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x19710d,0x1));const _0xc6fecb=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc6fecb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc6fecb,0x1));const _0x599981=Array['from'](this['_diffRoots'])['map'](([_0x47a341,_0x225e61])=>[_0x47a341,N(_0x225e61)]);this['_saveMetaData'](this['_lastTo'],_0x599981,this['_markers'],_0x53aaff);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x286140,_0x2f58d7,_0x2aece7,_0x4c6e32){const _0x312f69=new Map(_0x2f58d7),_0x18df41=new Map(_0x2061e4(_0x4c6e32)),_0x590ed4=new Map();for(const [_0x3c34a7,_0x3e8dbf]of _0x2aece7)_0x590ed4['set'](_0x3c34a7,{'start':_0x3e8dbf['start']['clone'](),'end':_0x3e8dbf['end']['clone'](),'rootName':_0x3e8dbf['root']['rootName']});this['_savedMetaData']['set'](_0x286140,{'roots':_0x312f69,'markers':_0x590ed4,'rootsAttributes':_0x18df41});}['_removeMetaData'](_0x356516){this['_savedMetaData']['delete'](_0x356516);}['_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'](_0x47da83,_0x430087=null){let _0x40898a=null;_0x47da83['is']('documentFragment')||(_0x40898a=new ut(_0x47da83['name'],{'vid_start':null===_0x430087?this['_revisionId']++:_0x430087++}));const _0x2b5c95=[];for(const _0x3d07b5 of _0x47da83['getChildren']())if(_0x3d07b5['is']('element')){_0x2b5c95['push'](this['_makeIdsRoot'](_0x3d07b5,_0x430087));const _0x485e38=_0x2b5c95[_0x2b5c95['length']-0x1];null!==_0x430087&&(_0x430087=_0x485e38['is']('element','$text')?_0x485e38['getAttribute']('vid')+0x1:_0x485e38['getAttribute']('vid_end')+0x1);}else{for(let _0xf5dba8=0x0;_0xf5dba8<_0x3d07b5['offsetSize'];_0xf5dba8++)_0x2b5c95['push'](new ut('$text',{'vid':null===_0x430087?this['_revisionId']++:_0x430087++}));}if(_0x47da83['is']('documentFragment')){const _0x47b24f=P(_0x47da83['rootName']);return _0x47b24f['_insertChild'](0x0,_0x2b5c95),_0x47b24f;}return _0x40898a['_setAttribute']('vid_end',null===_0x430087?this['_revisionId']++:_0x430087++),_0x40898a['_insertChild'](0x0,_0x2b5c95),_0x40898a;}['_calculateMetaData'](_0x1f876b,_0x174a8b,_0xf34b2a){this['_reset']();const {roots:_0x22dd0a,markers:_0x1a97b5,rootsAttributes:_0x51c175}=this['_savedMetaData']['get'](_0x1f876b);this['_baseRoots']=new Map(_0x22dd0a),this['_baseRootsAttributes']=new Map(_0x2061e4(_0x51c175));for(const [_0x486170,_0xb4b329]of this['_baseRoots'])if('$graveyard'!==_0x486170&&(this['_diffRoots']['set'](_0x486170,N(_0xb4b329)),this['_diffRootsAttributes']=new Map(_0x2061e4(_0x51c175)),_0xf34b2a)){const _0x24fa3a=this['_revisionId'];this['_idsRoots']['set'](_0x486170,this['_makeIdsRoot'](_0xb4b329)),this['_baseIdsRoots']['set'](_0x486170,this['_makeIdsRoot'](_0xb4b329,_0x24fa3a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xf34b2a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5c4ec2,_0x1d70ff]of _0x1a97b5){const _0x3a7f83=this['_baseRoots']['get'](_0x1d70ff['rootName']),_0x1c9fbd=this['_diffRoots']['get'](_0x1d70ff['rootName']),_0x4a30e5=new lt(this['_fixPosition'](_0x1d70ff['start'],_0x3a7f83),this['_fixPosition'](_0x1d70ff['end'],_0x3a7f83)),_0x1a1e8f=this['_fixRange'](_0x4a30e5,_0x1c9fbd);_0x3a7f83['markers']['set'](_0x5c4ec2,_0x4a30e5),this['_markers']['set'](_0x5c4ec2,_0x1a1e8f);}this['_applyOperations'](_0x1f876b,_0x174a8b,_0xf34b2a);}['_applyOperations'](_0xeca930,_0xcd6e83,_0xc5b80d){for(const _0x548d4f of this['source']['getOperations'](_0xeca930,_0xcd6e83))this['_handleOperation'](_0x548d4f,_0xc5b80d);for(const _0x1f88de of this['_diffRoots']['values']())_0x1f88de['markers']['clear']();for(const [_0x2d56e8,_0x4a6ae6]of this['_markers']){this['_diffRoots']['get'](_0x4a6ae6['root']['rootName'])['markers']['set'](_0x2d56e8,_0x4a6ae6['clone']());}const _0x1188f9=new Map(),_0x51c7b9=new Map();for(const [_0x4bb46a,_0x38f47e]of this['_diffRoots'])_0x1188f9['set'](_0x4bb46a,N(_0x38f47e)),_0x51c7b9['set'](_0x4bb46a,this['_diffRootsAttributes']['get'](_0x4bb46a));this['_saveMetaData'](_0xcd6e83,_0x1188f9,this['_markers'],_0x51c7b9);}['_getPreviousFrom'](_0x4129d8){const _0x352df2=Array['from'](this['_savedMetaData']['keys']());_0x352df2['sort']((_0x316876,_0x2ece0e)=>_0x316876-_0x2ece0e),_0x352df2['reverse']();for(const _0x4d4598 of _0x352df2)if(_0x4d4598<_0x4129d8)return _0x4d4598;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24ec4a,_0x2aa83b){const _0x2c1711=Array['from'](_0x2aa83b['markers'])['map'](([_0xa81b31,_0x5e33f5])=>[_0xa81b31,this['_fixRange'](_0x5e33f5,_0x24ec4a)]);_0x24ec4a['markers']=new Map(_0x2c1711);}['_transformMarkers'](_0x52fda9){for(const _0x49c9c9 of this['_markers']['values']()){const _0x29ccea=_0x49c9c9['getTransformedByOperation'](_0x52fda9),_0x174de8=lt['_createFromRanges'](_0x29ccea);_0x49c9c9['start']=_0x174de8['start'],_0x49c9c9['end']=_0x174de8['end'];}}['_handleOperation'](_0x27e3eb,_0x354fe3){if('addRoot'!=_0x27e3eb['type']&&'detachRoot'!=_0x27e3eb['type']){if('insert'==_0x27e3eb['type']){const _0x59be37=_0x27e3eb['position']['root']['rootName'];this['_diffRoots']['has'](_0x59be37)||(this['_diffRoots']['set'](_0x59be37,P(_0x59be37,!0x0)),this['_diffRootsAttributes']['set'](_0x59be37,{}),_0x354fe3&&this['_idsRoots']['set'](_0x59be37,P(_0x59be37,!0x0)));}else{if('addRootAttribute'==_0x27e3eb['type']||'removeRootAttribute'==_0x27e3eb['type']||'changeRootAttribute'==_0x27e3eb['type'])return void this['_handleRootAttributeOperation'](_0x27e3eb);'marker'==_0x27e3eb['type']&&this['_handleMarkerOperation'](_0x27e3eb);}if('marker'!==_0x27e3eb['type']){const _0x3bee80=this['_cloneOperation'](_0x27e3eb,this['_diffRoots']);_0x3bee80['_execute'](),this['_transformMarkers'](_0x3bee80);}if(_0x354fe3)switch(_0x27e3eb['type']){case'insert':this['_handleInsertOperation'](_0x27e3eb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x27e3eb);break;case'merge':this['_handleMergeOperation'](_0x27e3eb);break;case'split':this['_handleSplitOperation'](_0x27e3eb);}}else this['_handleRootOperation'](_0x27e3eb,_0x354fe3);}['_cloneOperation'](_0x5db7a4,_0x52ff1e){const _0x52c3ba=_0x5db7a4['clone']();return _0x52c3ba['_authorId']=_0x5db7a4['_authorId'],this['_fixOperation'](_0x52c3ba,_0x52ff1e),_0x52c3ba;}['_getBaseVids'](_0x3c801f){return _0x3c801f['map'](_0x459510=>{const _0x1ab34e=this['_getVidAttributeName'](_0x459510);return Number(_0x459510['item']['getAttribute'](_0x1ab34e));});}['_generateTape'](_0x4af9cc,_0x24dfcb){if(_0x4af9cc['is']('element','$text'))_0x24dfcb['push']({'item':_0x4af9cc,'type':'text'});else{_0x4af9cc['is']('element')&&_0x24dfcb['push']({'item':_0x4af9cc,'type':'elementStart'});for(const _0x2e6b81 of _0x4af9cc['getChildren']())this['_generateTape'](_0x2e6b81,_0x24dfcb);_0x4af9cc['is']('element')&&_0x24dfcb['push']({'item':_0x4af9cc,'type':'elementEnd'});}return _0x24dfcb;}['_getState'](){const _0x2c9cae=new Map(this['_touched']),_0x59e497=new Map(_0x2c9cae),_0x2e0ad5=new Map(),_0xbef768={'insertions':{},'deletions':{}},_0x4c9e34={'insertions':{},'deletions':{}},_0xad4455=new Map(),_0x1ef40b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1ef40b['delete']('$graveyard');for(const _0x35fe82 of _0x1ef40b){const _0x55b3e3=this['_diffRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1),_0x2a5b8a=this['_baseRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1);_0x55b3e3['isAttached']()||_0x2a5b8a['isAttached']()?(_0xbef768['insertions'][_0x35fe82]=N(_0x55b3e3),_0xbef768['deletions'][_0x35fe82]=N(_0x2a5b8a),this['_copyMarkers'](_0xbef768['deletions'][_0x35fe82],_0x2a5b8a),this['_copyMarkers'](_0xbef768['insertions'][_0x35fe82],_0x55b3e3),_0x4c9e34['insertions'][_0x35fe82]=this['_generateTape'](this['_idsRoots']['get'](_0x35fe82),[]),_0x4c9e34['deletions'][_0x35fe82]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1),[])):_0x1ef40b['delete'](_0x35fe82);}for(const _0x381b08 of _0x1ef40b){const _0x1df0af=_0x4c9e34['insertions'][_0x381b08];for(const _0x3ec3df of _0x1df0af){const _0x1f0cd1=this['_getVidAttributeName'](_0x3ec3df),_0x271b5f=_0x3ec3df['item']['getAttribute'](_0x1f0cd1);_0x59e497['delete'](_0x271b5f),_0x271b5f>=this['_startingRevisionId']&&_0x2e0ad5['set'](_0x271b5f,_0x2c9cae['get'](_0x271b5f));}}for(const _0x491db8 of _0x1ef40b){const _0x47105a=_0x4c9e34['insertions'][_0x491db8],_0xdc716d=this['_getBaseVids'](_0x4c9e34['deletions'][_0x491db8]);let _0x33b1e9=0x0;for(const _0x33a759 of _0x47105a){const _0xae41c3=this['_getVidAttributeName'](_0x33a759),_0x52068c=_0x33a759['item']['getAttribute'](_0xae41c3);if(!_0x2e0ad5['has'](_0x52068c)&&!_0xad4455['has'](_0x52068c)){if(_0x59e497['has'](_0x52068c))_0x33b1e9++;else{if(_0x52068c!=_0xdc716d[_0x33b1e9]){const _0x5b7ce4=_0x2c9cae['get'](_0x52068c)||_0x2c9cae['get'](_0xdc716d[_0x33b1e9]);for(;_0x52068c!=_0xdc716d[_0x33b1e9];)_0x59e497['has'](_0xdc716d[_0x33b1e9])||(_0xad4455['set'](_0xdc716d[_0x33b1e9],_0x5b7ce4),_0x2c9cae['set'](_0xdc716d[_0x33b1e9],_0x5b7ce4)),_0x33b1e9++;}_0x33b1e9++;}}}}for(const _0x96c787 of _0x1ef40b){const _0x25b0b3=_0x4c9e34['insertions'][_0x96c787];for(const _0x2549dd of _0x25b0b3){const _0x2a80a9=this['_getVidAttributeName'](_0x2549dd),_0x5434aa=_0x2549dd['item']['getAttribute'](_0x2a80a9);if(_0xad4455['has'](_0x5434aa)){const _0x5b5a10=_0xad4455['get'](_0x5434aa);_0x59e497['has'](_0x5434aa)||_0x59e497['set'](_0x5434aa,{..._0x5b5a10}),_0x2e0ad5['set'](_0x5434aa,{..._0x5b5a10});}}}for(const _0x285fa6 of _0x59e497['keys']())_0x285fa6>=this['_startingRevisionId']&&_0x59e497['delete'](_0x285fa6);const _0x588963=new Map();for(const _0x2ba4e9 of _0x1ef40b){let _0x5a3190=_0x4c9e34['insertions'][_0x2ba4e9];for(const _0x33dc74 of _0x5a3190)if(_0x33dc74['item']['is']('element','tableCell')){const _0x25320f=this['_getVidAttributeName'](_0x33dc74),_0x286465=_0x33dc74['item']['getAttribute'](_0x25320f);if(_0x2e0ad5['has'](_0x286465)){const _0x1a94b2=_0x33dc74['item']['parent']['parent']['getAttribute']('vid_start'),_0x5227c0=_0x588963['get'](_0x1a94b2)||new Set();_0x5227c0['add'](_0x2e0ad5['get'](_0x286465)['userId']),_0x588963['set'](_0x1a94b2,_0x5227c0);}}_0x5a3190=_0x4c9e34['deletions'][_0x2ba4e9];for(const _0x1ff5a4 of _0x5a3190)if(_0x1ff5a4['item']['is']('element','tableCell')){const _0x8cf499=this['_getVidAttributeName'](_0x1ff5a4),_0x2da54e=_0x1ff5a4['item']['getAttribute'](_0x8cf499);if(_0x59e497['has'](_0x2da54e)){const _0x3201c5=_0x1ff5a4['item']['parent']['parent']['getAttribute']('vid_start'),_0x4e29d2=_0x588963['get'](_0x3201c5)||new Set();_0x4e29d2['add'](_0x59e497['get'](_0x2da54e)['userId']),_0x588963['set'](_0x3201c5,_0x4e29d2);}}for(const _0x57057a of _0x588963['keys']())(_0x2e0ad5['has'](_0x57057a)||_0x59e497['has'](_0x57057a))&&_0x588963['delete'](_0x57057a);}for(const _0x5457b4 of _0x1ef40b){const _0x298d25=_0x4c9e34['insertions'][_0x5457b4];let _0x1385f9=null,_0x2c5675=null;for(const _0x18c783 of _0x298d25){const _0x27cc9d=this['_getVidAttributeName'](_0x18c783),_0x534c64=_0x18c783['item']['getAttribute'](_0x27cc9d),_0x1c39de=_0x588963['get'](_0x534c64);_0x1c39de&&'elementStart'==_0x18c783['type']&&(_0x1385f9=Array['from'](_0x1c39de)[0x0],_0x2c5675=_0x18c783['item']['getAttribute']('vid_end')),_0x1385f9&&(_0x59e497['set'](_0x534c64,{'userId':_0x1385f9}),_0x2e0ad5['set'](_0x534c64,{'userId':_0x1385f9})),_0x534c64==_0x2c5675&&(_0x1385f9=null,_0x2c5675=null);}}const _0x1945c8={},_0x15f20d=new Set();for(const _0x500aa7 of _0x1ef40b){const _0x3cf42f=_0xbef768['deletions'][_0x500aa7],_0x26056e=_0xbef768['insertions'][_0x500aa7];for(const {userId:_0x5cda59}of this['_touchedMarkers']['values']())null!==_0x5cda59&&_0x15f20d['add'](_0x5cda59);for(const {userId:_0x1da552}of this['_touchedRoots']['values']())null!==_0x1da552&&_0x15f20d['add'](_0x1da552);this['_markChanges'](_0x26056e,_0x4c9e34['insertions'][_0x500aa7],_0x2e0ad5,'insertion',_0x15f20d),this['_markChanges'](_0x3cf42f,_0x4c9e34['deletions'][_0x500aa7],_0x59e497,'deletion',_0x15f20d),_0x1945c8[_0x500aa7]={'insertions':this['_prepareViewToSave'](_0x26056e),'deletions':this['_prepareViewToSave'](_0x3cf42f),'attachChange':this['_touchedRoots']['get'](_0x500aa7)||null,'attributesBefore':_0x2061e4(this['_baseRootsAttributes']['get'](_0x500aa7))||{},'attributesAfter':_0x2061e4(this['_diffRootsAttributes']['get'](_0x500aa7))};}return{'diffData':_0x1945c8,'authorsIds':Array['from'](_0x15f20d)};}['_processRootBeforeSave'](_0x187608){for(const [,_0x52115f]of _0x187608['markers']){const _0x5135fb=_0x52115f['start']['getAncestors']()['filter'](_0x4af3ae=>'tableCell'==_0x4af3ae['name']);for(const _0x2a9bba of _0x5135fb)0x1==_0x2a9bba['childCount']&&_0x2a9bba['getChild'](0x0)['is']('element','paragraph')&&_0x2a9bba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xd64d0d){this['_processRootBeforeSave'](_0xd64d0d);const _0x260077=this['editor']['data']['toView'](_0xd64d0d,{}),_0x22b56c=Array['from'](_0x260077['getChildren']())['map'](_0x45d758=>this['_getViewJson'](_0x45d758));return JSON['stringify'](_0x22b56c);}['_getViewJson'](_0x546cbc){if(_0x546cbc['is']('$text'))return _0x546cbc['data'];{const _0x437ec0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x20d14f=_0x546cbc,_0x18491c=this['editor']['data']['htmlProcessor']['domConverter'],_0x1159b7={'type':_0x437ec0['_getTypeCharForViewElement'](_0x20d14f),'name':_0x20d14f['name'],'attributes':Array['from'](_0x20d14f['getAttributes']()),'children':Array['from'](_0x20d14f['getChildren']())['map'](_0x12a885=>this['_getViewJson'](_0x12a885))};if(_0x546cbc['is']('uiElement')&&'$comment'!=_0x546cbc['name']){const _0x2634f2=_0x546cbc['render'](_0x18491c['domDocument'],_0x18491c);_0x1159b7['children']['push'](_0x2634f2['outerHTML']);}else{if(_0x546cbc['is']('rawElement')){const _0x4c9aec=_0x18491c['domDocument']['createElement'](_0x20d14f['name']);_0x546cbc['render'](_0x4c9aec,_0x18491c),_0x1159b7['children']['push'](_0x4c9aec['innerHTML']);}}const _0x3c8bd3=Array['from'](_0x20d14f['getCustomProperties']());_0x3c8bd3['length']>0x0&&(_0x1159b7['customProperties']=_0x3c8bd3);const _0x1eafea=_0x20d14f['getFillerOffset']();return null!==_0x1eafea&&(_0x1159b7['fillerOffset']=_0x1eafea),_0x1159b7;}}['_markChanges'](_0x3656d6,_0x46b06b,_0x573bf8,_0x1f501a,_0x183cc2){let _0x411c88=null,_0x2e0263=null,_0x34cb3c=0x0;const _0x27b274=this['editor']['model'];for(let _0x302298=0x0;_0x302298<_0x46b06b['length'];_0x302298++){const _0x3f8d80=this['_getVidAttributeName'](_0x46b06b[_0x302298]),_0x558f44=_0x46b06b[_0x302298]['item']['getAttribute'](_0x3f8d80),_0x13790e=_0x573bf8['get'](_0x558f44),_0x3ecc5c=_0x302298==_0x46b06b['length']-0x1;(!_0x411c88&&_0x13790e&&(_0x411c88=_0x13790e,_0x2e0263=_0x46b06b[_0x302298]),_0x411c88&&(!_0x13790e||_0x13790e['userId']!=_0x411c88['userId']))&&(_0x34af8a(_0x13790e,F(_0x2e0263,_0x3656d6,_0x27b274),F(_0x46b06b[_0x302298],_0x3656d6,_0x27b274)),_0x411c88=_0x13790e||null,_0x2e0263=_0x13790e?_0x46b06b[_0x302298]:null),_0x411c88&&_0x3ecc5c&&_0x34af8a(_0x13790e,F(_0x2e0263,_0x3656d6,_0x27b274),B(_0x46b06b[_0x302298],_0x3656d6,_0x27b274));}function _0x34af8a(_0x503999,_0x504098,_0x20df49){const _0x207f7b=_0x411c88['userId'],_0x5d6601='revision:'+_0x1f501a+':'+_0x207f7b+':'+_0x34cb3c++,_0x1d314c=_0x27b274['createRange'](_0x504098,_0x20df49);_0x3656d6['markers']['set'](_0x5d6601,_0x1d314c),null!==_0x207f7b&&_0x183cc2['add'](_0x207f7b);}}['_getVidAttributeName'](_0x2ddc17){switch(_0x2ddc17['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x113bc6,_0x3dc404){_0x113bc6['baseVersion']=null;for(const _0x41383d in _0x113bc6){const _0x3878f4=_0x113bc6[_0x41383d];if(_0x3878f4 instanceof ft){const _0x331b74=_0x3dc404['get'](_0x3878f4['root']['rootName']);_0x113bc6[_0x41383d]=this['_fixPosition'](_0x3878f4,_0x331b74);}if(_0x3878f4 instanceof lt){const _0xeb247e=_0x3dc404['get'](_0x3878f4['root']['rootName']);_0x113bc6[_0x41383d]=this['_fixRange'](_0x3878f4,_0xeb247e);}'root'===_0x41383d&&(_0x113bc6['root']=_0x3dc404['get'](_0x113bc6['root']['rootName']));}}['_fixRange'](_0x5cb39e,_0x24525a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5cb39e['start'],_0x24525a),this['_fixPosition'](_0x5cb39e['end'],_0x24525a));}['_fixPosition'](_0x590fcf,_0x3ff0a1){return this['editor']['model']['createPositionFromPath'](_0x3ff0a1,_0x590fcf['path'],_0x590fcf['stickiness']);}['_handleInsertOperation'](_0x2869b6){const _0x17f197=this['_idsRoots']['get'](_0x2869b6['position']['root']['rootName']),_0x1a630c=this['_fixPosition'](_0x2869b6['position'],_0x17f197),_0x5767ac=null===_0x2869b6['_authorId']?null:_0x2869b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dd1ee=_0x1a630c['parent'],_0x16c42a=this['_revisionId'],_0x43fc83=[];for(const _0x118bb0 of _0x2869b6['nodes'])if(_0x118bb0['is']('element'))_0x43fc83['push'](this['_makeIdsRoot'](_0x118bb0));else{for(let _0xfa5e3e=0x0;_0xfa5e3e<_0x118bb0['offsetSize'];_0xfa5e3e++)_0x43fc83['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4b7e62=this['_revisionId'];for(let _0x422a1b=_0x16c42a;_0x422a1b<_0x4b7e62;_0x422a1b++)this['_touched']['set'](_0x422a1b,{'userId':_0x5767ac});_0x3dd1ee['_insertChild'](_0x1a630c['offset'],_0x43fc83);}['_handleMoveOperation'](_0x66843a){(_0x66843a=this['_cloneOperation'](_0x66843a,this['_idsRoots']))['_execute']();const _0x49e576=null===_0x66843a['_authorId']?null:_0x66843a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x370443=_0x66843a['getMovedRangeStart'](),_0x32830d=_0x370443['parent'],_0x5c4a30=_0x370443['offset'];!function _0x56008b(_0x296a85,_0x4eaca3,_0x22dc84,_0x53a794){for(let _0x20b8a5=_0x22dc84;_0x20b8a5<_0x53a794;_0x20b8a5++){const _0xdc72fa=_0x4eaca3['getChild'](_0x20b8a5);_0xdc72fa['is']('element','$text')?_0x296a85['set'](_0xdc72fa['getAttribute']('vid'),{'userId':_0x49e576}):(_0x296a85['set'](_0xdc72fa['getAttribute']('vid_start'),{'userId':_0x49e576}),_0x56008b(_0x296a85,_0xdc72fa,0x0,_0xdc72fa['childCount']),_0x296a85['set'](_0xdc72fa['getAttribute']('vid_end'),{'userId':_0x49e576}));}}(this['_touched'],_0x32830d,_0x5c4a30,_0x5c4a30+_0x66843a['howMany']);}['_handleMergeOperation'](_0x18eefa){const _0x5d1383=null===(_0x18eefa=this['_cloneOperation'](_0x18eefa,this['_idsRoots']))['_authorId']?null:_0x18eefa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37c306=_0x18eefa['targetPosition']['parent'],_0xd69d97=_0x18eefa['sourcePosition']['parent'],_0x1ba024=_0x37c306['getAttribute']('vid_end'),_0x372506=_0xd69d97['getAttribute']('vid_start');_0x37c306['_setAttribute']('vid_end',_0xd69d97['getAttribute']('vid_end')),_0xd69d97['_setAttribute']('vid_end',_0x1ba024),this['_touched']['set'](_0x372506,{'userId':_0x5d1383}),this['_touched']['set'](_0x1ba024,{'userId':_0x5d1383}),_0x18eefa['_execute']();}['_handleSplitOperation'](_0x12ad4c){const _0x12c46e=null===(_0x12ad4c=this['_cloneOperation'](_0x12ad4c,this['_idsRoots']))['_authorId']?null:_0x12ad4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x314192=_0x12ad4c['graveyardPosition'],_0x46e920=_0x12ad4c['splitPosition']['parent'];_0x12ad4c['_execute']();const _0x4d976a=_0x46e920['getAttribute']('vid_end'),_0x364f05=_0x12ad4c['insertionPosition']['nodeAfter'];if(_0x314192){const _0x205061=_0x364f05['getAttribute']('vid_end'),_0x4aba72=_0x46e920['getAttribute']('vid_end');_0x46e920['_setAttribute']('vid_end',_0x205061),_0x364f05['_setAttribute']('vid_end',_0x4aba72),this['_touched']['set'](_0x46e920['getAttribute']('vid_end'),{'userId':_0x12c46e}),this['_touched']['set'](_0x364f05['getAttribute']('vid_start'),{'userId':_0x12c46e});}else{const _0x3fd45d=this['_revisionId']++,_0x2a48cf=this['_revisionId']++;_0x46e920['_setAttribute']('vid_end',_0x3fd45d),_0x364f05['_setAttribute']('vid_start',_0x2a48cf),_0x364f05['_setAttribute']('vid_end',_0x4d976a),this['_touched']['set'](_0x3fd45d,{'userId':_0x12c46e}),this['_touched']['set'](_0x2a48cf,{'userId':_0x12c46e});}}['_handleMarkerOperation'](_0xb4e891){if(!_0xb4e891['affectsData'])return;const _0x3b574d=(_0xb4e891=this['_cloneOperation'](_0xb4e891,this['_diffRoots']))['oldRange']?_0xb4e891['oldRange']['root']:null,_0x4f4d4c=_0xb4e891['newRange']?_0xb4e891['newRange']['root']:null;_0x3b574d&&this['_markers']['delete'](_0xb4e891['name']),_0x4f4d4c&&this['_markers']['set'](_0xb4e891['name'],_0xb4e891['newRange']['clone']());const _0x7ec6dc=null===_0xb4e891['_authorId']?null:_0xb4e891['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20f5d9=_0xb4e891['name'];if(!this['_touchedMarkers']['has'](_0x20f5d9))return void this['_touchedMarkers']['set'](_0x20f5d9,{'range':_0xb4e891['oldRange'],'userId':_0x7ec6dc});const _0x25bc68=this['_touchedMarkers']['get'](_0x20f5d9),_0x1904fc=_0x25bc68['range'],_0x6f2ffa=_0xb4e891['newRange'];null==_0x1904fc&&null==_0x6f2ffa||_0x1904fc&&_0x6f2ffa&&_0x1904fc['isEqual'](_0x6f2ffa)?this['_touchedMarkers']['delete'](_0xb4e891['name']):_0x25bc68['userId']=_0x7ec6dc;}['_handleRootOperation'](_0x168895,_0xd4f1f4){this['_diffRoots']['has'](_0x168895['rootName'])?this['_diffRoots']['get'](_0x168895['rootName'])['_isAttached']=_0x168895['isAdd']:(this['_diffRoots']['set'](_0x168895['rootName'],P(_0x168895['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x168895['rootName'],{}),_0xd4f1f4&&this['_idsRoots']['set'](_0x168895['rootName'],P(_0x168895['rootName'],!0x0)));const _0x5ac4be=null===_0x168895['_authorId']?null:_0x168895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25799f=this['_touchedRoots']['get'](_0x168895['rootName']);_0x25799f&&_0x25799f['userId']===_0x5ac4be?this['_touchedRoots']['delete'](_0x168895['rootName']):this['_touchedRoots']['set'](_0x168895['rootName'],{'userId':_0x5ac4be,'isAttached':_0x168895['isAdd']});}['_handleRootAttributeOperation'](_0x292fb1){const _0x6a620b=this['_diffRootsAttributes']['get'](_0x292fb1['root']['rootName']);null===_0x292fb1['newValue']?delete _0x6a620b[_0x292fb1['key']]:_0x6a620b[_0x292fb1['key']]=_0x292fb1['newValue'];}}function N(_0xf9ae7d){const _0x240168=P(_0xf9ae7d['rootName'],_0xf9ae7d['isAttached']());for(const _0x5e52e2 of _0xf9ae7d['getChildren']()){const _0x2fc0e0=_0x5e52e2['_clone'](!0x0);_0x240168['_appendChild'](_0x2fc0e0);}return _0x240168;}function P(_0x37b746,_0x38ec4e=!0x0){const _0x39b369=new vt();return _0x39b369['rootName']=_0x37b746,_0x39b369['_isAttached']=_0x38ec4e,_0x39b369['isAttached']=()=>_0x39b369['_isAttached'],_0x39b369;}function F(_0x449227,_0x2541fd,_0x22c08a){const _0x3b4e48='elementEnd'==_0x449227['type']?_0x22c08a['createPositionAt'](_0x449227['item'],'end'):_0x22c08a['createPositionBefore'](_0x449227['item']);return _0x22c08a['createPositionFromPath'](_0x2541fd,_0x3b4e48['path'],_0x3b4e48['stickiness']);}function B(_0x1744a2,_0x52c0b8,_0x304ec6){const _0x190052='elementStart'==_0x1744a2['type']?_0x304ec6['createPositionAt'](_0x1744a2['item'],0x0):_0x304ec6['createPositionAfter'](_0x1744a2['item']);return _0x304ec6['createPositionFromPath'](_0x52c0b8,_0x190052['path'],_0x190052['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x106aab,_0x2d2ac1){super(_0x106aab),this['focusTracker']=new _0x1411f8(),this['keystrokes']=new _0x1c41ad(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d2ac1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x89b94(this);}['render'](){super['render'](),_0x29c8c4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32bf07=_0x469847=>_0x469847['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32bf07),this['keystrokes']['set']('arrowleft',_0x32bf07),this['keystrokes']['set']('arrowup',_0x32bf07),this['keystrokes']['set']('arrowdown',_0x32bf07);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x236479){this['revisionNameInputView']['fieldView']['element']['value']=_0x236479['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51e173){const _0x162d53=new _0xc22ea8(this['locale'],_0x34f747),_0x17a4b8=_0x162d53['fieldView'];_0x17a4b8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x17f01b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51e173&&(_0x17f01b+='\x20('+g(this['locale'],'optional')+')'),(_0x162d53['label']=_0x17f01b,_0x17a4b8['on']('input',()=>{this['revisionNameInputValue']=_0x17a4b8['element']['value']['trim']();}),_0x162d53);}}class f extends _0x506da8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x102bd5=this['editor'],_0x5765f6=_0x102bd5['plugins']['get']('RevisionTracker');_0x102bd5['ui']['componentFactory']['add']('revisionHistory',_0x4ce0b5=>{const _0x3675c0=_0x418de7(_0x4ce0b5),_0x37ba25=_0x3675c0['panelView']['children'],_0x5e1232=new _0x2743d1(_0x4ce0b5),_0x1e87cb=new _0x24db08(_0x4ce0b5),_0x5427db=new te(_0x4ce0b5),_0x5be616=new _0x24db08(_0x4ce0b5),_0x4560a1=new te(_0x4ce0b5);return _0x3675c0['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x5765f6,'isEnabled',_0x102bd5,'isReadOnly',(_0x3b64da,_0x33fd45,_0x3d0e64)=>_0x3b64da&&_0x33fd45&&!_0x3d0e64),_0x3675c0['buttonView']['set']({'icon':_0x5606df,'label':g(_0x4ce0b5,'Revision\x20history'),'tooltip':!0x0}),_0x5427db['set']({'label':g(_0x4ce0b5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5427db['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x5765f6,'isEnabled',_0x102bd5,'isReadOnly',(_0x4c0e6d,_0x227f01,_0x1c1939)=>_0x4c0e6d&&_0x227f01&&!_0x1c1939),_0x5427db['on']('execute',()=>this['_showDialog']()),_0x4560a1['set']({'label':g(_0x4ce0b5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4560a1['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x102bd5,'isReadOnly',(_0x35f715,_0x5405da)=>_0x35f715&&!_0x5405da),_0x4560a1['on']('execute',()=>{_0x102bd5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3675c0['isOpen']=!0x1,_0x102bd5['editing']['view']['focus']();}),_0x1e87cb['children']['add'](_0x5427db),_0x5be616['children']['add'](_0x4560a1),_0x5e1232['role']='menu',_0x5e1232['items']['addMany']([_0x1e87cb,_0x5be616]),_0x37ba25['add'](_0x5e1232),_0x3675c0;}),_0x102bd5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4814d4=this['editor'],_0x3b9f63=_0x4814d4['locale'],_0x1d7b90=new _0xafdc44(_0x3b9f63),_0x591137=new _0x2903e1(_0x3b9f63);_0x1d7b90['buttonView']['set']({'icon':_0x5606df,'label':g(_0x3b9f63,'Revision\x20history')});const _0x3a2b83=new _0x2f8c79(_0x3b9f63,_0x1d7b90),_0x3d99fc=new _0x55977e(_0x3b9f63);_0x3d99fc['set']({'label':g(_0x3b9f63,'Save\x20current\x20revision')}),_0x3d99fc['delegate']('execute')['to'](_0x1d7b90),_0x3d99fc['on']('execute',()=>{this['_showDialog']();}),_0x3a2b83['children']['add'](_0x3d99fc),_0x591137['items']['add'](_0x3a2b83);const _0x203681=new _0x2f8c79(_0x3b9f63,_0x1d7b90),_0x28e6f0=new _0x55977e(_0x3b9f63);return _0x28e6f0['set']({'label':g(_0x3b9f63,'Open\x20revision\x20history')}),_0x28e6f0['delegate']('execute')['to'](_0x1d7b90),_0x28e6f0['on']('execute',()=>{_0x4814d4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x203681['children']['add'](_0x28e6f0),_0x591137['items']['add'](_0x203681),_0x1d7b90['panelView']['children']['add'](_0x591137),_0x1d7b90;}['_showDialog'](){const _0x1d148e=this['editor'],_0x13679c=_0x1d148e['locale'],_0x262963=_0x1d148e['plugins']['get']('Dialog'),_0x22eeff=_0x1d148e['plugins']['get']('RevisionTracker');function _0x39945d(_0x8183fb){_0x1d148e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x8183fb['revisionName']?_0x8183fb['revisionNameInputView']['errorText']=g(_0x13679c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d148e['plugins']['get'](u)['saveRevision']({'name':_0x8183fb['revisionName']}),_0x262963['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39945d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x262963['show']({'id':'revisionSave','title':g(_0x13679c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1d148e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x262963['hide']()},{'label':g(_0x1d148e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x446260){_0x446260['bind']('isEnabled')['to'](_0x22eeff,'isReady',_0x22eeff,'isEnabled',_0x1d148e,'isReadOnly',(_0x2b1168,_0x1269ca,_0x67a89b)=>_0x2b1168&&_0x1269ca&&!_0x67a89b);},'onExecute':()=>_0x39945d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x330919=this['editor'],_0x49e673=_0x330919['locale'];this['_saveRevisionFormView']=new hs(_0x49e673,_0x330919['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x54f9df,_0x202186){super(_0x54f9df),this['_model']=_0x202186,this['changeId']=_0x202186['id'];const _0x230e5a=this['bindTemplate'],_0x3304cc=g(_0x54f9df,_0x202186['data']['isSuggestion']?'Suggested\x20by':'add'==_0x202186['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x202186['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x230e5a['to']('type',_0x3fde58=>'ck-revision-change__'+_0x3fde58)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3304cc}]},{'text':'\x20'+_0x202186['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1f7614(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xed8c0b){super(),this['id']=_0xed8c0b['id']||_0x2a811c(),this['author']=_0xed8c0b['author'],this['type']=_0xed8c0b['type'],this['data']=_0xed8c0b['data']||{},this['rootName']=_0xed8c0b['rootName'],this['set']('createdAt',_0xed8c0b['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(_0x3925a6,_0x18ec4a){this['newRevisionId']=_0x3925a6,this['oldRevisionId']=_0x18ec4a,this['changes']=new _0x2f6a5b();}['_setChanges'](_0x728c2f){for(const _0x1550bf of _0x728c2f)this['changes']['add'](_0x1550bf);}}class m extends _0x506da8{['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[_0x24f403,_0x1f5838,I,V];}constructor(_0x330c7e){super(_0x330c7e),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',(_0x37bc31,_0x264b69,_0xfb8088)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x274c9a=>{for(const _0x175b6d of this['editor']['editing']['view']['document']['roots'])_0xfb8088?_0x274c9a['removeClass']('ck-editor__editable__overlay',_0x175b6d):_0x274c9a['addClass']('ck-editor__editable__overlay',_0x175b6d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4b6c1c=>null!==_0x4b6c1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x368460,_0x33abd7,_0x4dd45e)=>_0x368460&&_0x4dd45e?_0x33abd7['changes']['getIndex'](_0x4dd45e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x869fa8,_0x3a74e7)=>_0x869fa8?_0x3a74e7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1f5838);}['init'](){const _0x3a1e33=this['editor'],_0x1a5eab=new wt(_0x3a1e33,{'direction':'backward'}),_0x1c857b=new wt(_0x3a1e33,{'direction':'forward'});(_0x3a1e33['commands']['add']('showPreviousChange',_0x1a5eab),_0x3a1e33['commands']['add']('showNextChange',_0x1c857b),_0x3a1e33['commands']['add']('restoreRevision',new mt(_0x3a1e33)),this['on']('change:numberOfChanges',()=>{_0x1a5eab['refresh'](),_0x1c857b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3a1e33['enableReadOnlyMode']('revision-viewer'),_0x3a1e33['plugins']['has']('WidgetToolbarRepository'))&&_0x3a1e33['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xf3be43){return await this['_utils']['loadRevisionData'](_0xf3be43,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xf3be43);}async['getRevisionRootsAttributes'](_0x5edcbf){return await this['_utils']['loadRevisionData'](_0x5edcbf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5edcbf);}async['compare'](_0x322e08,_0x4d12e5,_0x33f8dc=!0x1){if(!this['isEnabled'])return;const _0x2bfe51=this['diff'],_0x10310b=this['repository'],_0x530240='string'==typeof _0x322e08?_0x10310b['getRevision'](_0x322e08):_0x322e08,_0x38a252='string'==typeof _0x4d12e5?_0x10310b['getRevision'](_0x4d12e5):_0x4d12e5,_0x392bae=_0x530240['id'],_0x54b662=_0x38a252?_0x38a252['id']:null;if(!_0x33f8dc&&this['diff']&&this['diff']['newRevisionId']===_0x392bae&&this['diff']['oldRevisionId']===_0x54b662)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x392bae,_0x54b662);const _0x29d670=this['_getRevisionsRange'](_0x530240,_0x38a252,!0x0)['map'](_0xd1bf4d=>this['_utils']['loadRevisionData'](_0xd1bf4d,this['adapter']));return _0x29d670['push'](new Promise(_0x1f93be=>{setTimeout(_0x1f93be,0x14);})),Promise['all'](_0x29d670)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x21e5bb=this['_getDiff'](_0x392bae,_0x54b662);for(const _0x296d2a of _0x21e5bb['changes'])this['_changeIdToChange']['set'](_0x296d2a['id'],_0x296d2a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9df71=>{for(const _0x5445a5 of this['editor']['model']['document']['getRootNames']())_0x9df71['detachRoot'](_0x5445a5);for(const _0x687cd0 of Object['keys'](_0x21e5bb['model'])){const _0xc163b8=_0x9df71['addRoot'](_0x687cd0);for(const _0x240390 of Object['keys'](_0x21e5bb['attributes'][_0x687cd0]))_0x9df71['setAttribute'](_0x240390,_0x21e5bb['attributes'][_0x687cd0][_0x240390],_0xc163b8);_0x9df71['insert'](_0x21e5bb['model'][_0x687cd0],_0xc163b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x21e5bb['changes'])),this['isReady']=!0x0;})['catch'](_0x2dc10e=>{console['error'](_0x2dc10e),this['_cleanUp'](),_0x2bfe51&&(this['diff']=_0x2bfe51),this['isReady']=!0x0;});}['addRevisionData'](_0x536c95,_0x2c709e){const _0x1d6d90=this['repository']['createRevision'](_0x536c95);return _0x1d6d90['on']('_update',(_0x9d1c89,_0x21532a,_0x5da059)=>_0x2c709e(_0x21532a,_0x5da059,_0x1d6d90)),this['repository']['addRevision'](_0x1d6d90),_0x1d6d90;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x437219=>{for(const _0x2422a6 of this['editor']['model']['document']['getRootNames']())_0x437219['detachRoot'](_0x2422a6);});}['_sortAndFilterDiffChanges'](_0x452171){const _0x58134e=[],_0x3917fd=new Map();for(const _0x124989 of this['editor']['model']['document']['getRootNames']()){const _0x4362f=this['editor']['editing']['view']['getDomRoot'](_0x124989);if(!_0x4362f)continue;const _0x319b66=_0x4362f['getClientRects']()['item'](0x0);_0x319b66&&(_0x58134e['push'](_0x124989),_0x3917fd['set'](_0x124989,_0x319b66));}return _0x58134e['sort']((_0x541902,_0x375b11)=>{const _0x43897c=_0x3917fd['get'](_0x541902),_0x379f37=_0x3917fd['get'](_0x375b11);return _0x43897c['y']-_0x379f37['y']||_0x43897c['x']-_0x379f37['x'];}),(_0x452171=_0x452171['filter'](_0x2cc99a=>_0x58134e['includes'](_0x2cc99a['rootName'])))['sort']((_0x502054,_0x2a2af7)=>_0x58134e['indexOf'](_0x502054['rootName'])-_0x58134e['indexOf'](_0x2a2af7['rootName'])),_0x452171;}['_makeTape'](_0x231bd4){const _0x8067a2=Array['from'](_0x231bd4['markers'])['filter'](([_0x2b810f,_0x211ddc])=>_0x2b810f['startsWith']('revision:')&&!_0x211ddc['isCollapsed']),_0x37e407=Array['from'](this['editor']['model']['createRangeIn'](_0x231bd4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8067a2['length'])for(const _0x329197 of _0x37e407){const [_0x253564,_0x1ed1ea]=_0x8067a2[0x0],[,_0x302178,_0x596e97]=_0x253564['split'](':');if(_0x1ed1ea['end']['isEqual'](_0x329197['nextPosition'])&&_0x8067a2['shift'](),(_0x329197['previousPosition']['isEqual'](_0x1ed1ea['start'])||_0x329197['previousPosition']['isAfter'](_0x1ed1ea['start']))&&('insertion'==_0x302178?_0x329197['isAdded']={'userId':_0x596e97}:'deletion'==_0x302178&&(_0x329197['isRemoved']={'userId':_0x596e97})),0x0==_0x8067a2['length'])break;}return _0x37e407;}['_refreshStartEndIndex'](_0x95bdd8){const _0x1c49ca=new Map();for(let _0x3333a8=0x0;_0x3333a8<_0x95bdd8['length'];_0x3333a8++)'text'===_0x95bdd8[_0x3333a8]['type']?(_0x95bdd8[_0x3333a8]['item']['startIndex']=_0x3333a8,_0x95bdd8[_0x3333a8]['item']['endIndex']=_0x3333a8):('elementStart'===_0x95bdd8[_0x3333a8]['type']?_0x95bdd8[_0x3333a8]['item']['startIndex']=_0x3333a8:'elementEnd'===_0x95bdd8[_0x3333a8]['type']&&(_0x95bdd8[_0x3333a8]['item']['endIndex']=_0x3333a8),_0x1c49ca['set'](_0x95bdd8[_0x3333a8]['id'],_0x3333a8));for(const _0x3928a4 of _0x1c49ca['values']())'elementStart'===_0x95bdd8[_0x3928a4]['type']?_0x95bdd8[_0x3928a4]['item']['endIndex']=_0x1c49ca['get'](_0x95bdd8[_0x3928a4]['pairId']):'elementEnd'===_0x95bdd8[_0x3928a4]['type']&&(_0x95bdd8[_0x3928a4]['item']['startIndex']=_0x1c49ca['get'](_0x95bdd8[_0x3928a4]['pairId']));}['_processTape'](_0x33fe3c){for(let _0xb7078=0x0;_0xb7078<_0x33fe3c['length'];_0xb7078++){if('elementStart'===_0x33fe3c[_0xb7078]['type'])_0x33fe3c[_0xb7078]['item']['startIndex']=_0xb7078;else{if('elementEnd'===_0x33fe3c[_0xb7078]['type']){_0x33fe3c[_0xb7078]['item']['endIndex']=_0xb7078;const _0x221381=_0x33fe3c[_0xb7078]['item']['startIndex'];_0x33fe3c[_0x221381]['pairId']=_0x33fe3c[_0xb7078]['id'],_0x33fe3c[_0xb7078]['pairId']=_0x33fe3c[_0x221381]['id'];}else _0x33fe3c[_0xb7078]['item']['startIndex']=_0xb7078,_0x33fe3c[_0xb7078]['item']['endIndex']=_0xb7078,_0x33fe3c[_0xb7078]['pairId']=null;}_0x33fe3c[_0xb7078]['markersStart']||(_0x33fe3c[_0xb7078]['markersStart']=[],_0x33fe3c[_0xb7078]['markersEnd']=[]);}}['_markInsertions'](_0x5dc084,_0xf44fee){const _0x398012=_0x5dc084['filter'](_0xe09397=>!_0xe09397['isAdded']);for(let _0x40b9b9=0x0;_0x40b9b9<_0xf44fee['length'];_0x40b9b9++)_0xf44fee[_0x40b9b9]['isAdded']&&(_0x398012[_0x40b9b9]['isAdded']=_0xf44fee[_0x40b9b9]['isAdded']);}['_getDiff'](_0x597b7a,_0x52893b=null){const _0x410c6a=this['repository']['getRevision'](_0x597b7a),_0x4ac0cc=_0x52893b?this['repository']['getRevision'](_0x52893b):null,_0x11e81b=this['_getRevisionsRange'](_0x410c6a,_0x4ac0cc),_0x41f301=_0x11e81b[_0x11e81b['length']-0x1],_0x370f33=new Map(),_0x415a6d={'model':{},'attributes':{},'changes':[]},_0x1d258a=new Set(),_0x445eb9=new Map();for(let _0x51ff8c=_0x11e81b['length']-0x1;_0x51ff8c>=0x0;_0x51ff8c--){const _0x3fe88e=_0x11e81b[_0x51ff8c];for(const _0x4ca331 of Object['keys'](_0x3fe88e['diffData']))if(_0x3fe88e['diffData'][_0x4ca331]['attachChange']){const _0x44c5b7=_0x3fe88e['diffData'][_0x4ca331]['attachChange'];_0x44c5b7['isAttached']?(_0x1d258a['add'](_0x4ca331),_0x445eb9['has'](_0x4ca331)&&_0x445eb9['get'](_0x4ca331)['userId']==_0x44c5b7['userId']?_0x445eb9['delete'](_0x4ca331):_0x445eb9['set'](_0x4ca331,_0x44c5b7)):_0x445eb9['has'](_0x4ca331)?(_0x1d258a['delete'](_0x4ca331),_0x445eb9['delete'](_0x4ca331)):(_0x1d258a['add'](_0x4ca331),_0x445eb9['set'](_0x4ca331,_0x44c5b7));}else _0x1d258a['add'](_0x4ca331);}for(const _0x590dd2 of _0x1d258a){const _0x4ec622=_0x445eb9['has'](_0x590dd2)&&!_0x445eb9['get'](_0x590dd2)['isAttached'];let _0x3045ca=_0x4ec622?_0x11e81b['length']-0x1:0x0;const _0xbf7513=_0x4ec622?-0x1:0x1;for(;_0x11e81b[_0x3045ca];){const _0x2a8fc8=_0x11e81b[_0x3045ca];if(_0x2a8fc8['diffData'][_0x590dd2]){const _0x9e44c9=_0x4ec622?_0x2a8fc8['diffData'][_0x590dd2]['attributesBefore']:_0x2a8fc8['diffData'][_0x590dd2]['attributesAfter'];_0x415a6d['attributes'][_0x590dd2]=_0x9e44c9?_0x2061e4(_0x9e44c9):{};break;}_0x3045ca+=_0xbf7513;}}for(const _0x1e8b39 of _0x11e81b){_0x1e8b39['model']={};for(const _0x458b0b of _0x1e8b39['authors'])_0x370f33['set'](_0x458b0b['id'],_0x458b0b);for(const _0x240b18 of _0x1d258a){const _0x493288=_0x1e8b39['diffData'][_0x240b18]?_0x1e8b39['diffData'][_0x240b18]['insertions']:'[]',_0x3c90f7=_0x1e8b39['diffData'][_0x240b18]?_0x1e8b39['diffData'][_0x240b18]['deletions']:'[]';_0x1e8b39['model'][_0x240b18]={'insertions':this['_utils']['_makeModelFromViewString'](_0x493288),'deletions':this['_utils']['_makeModelFromViewString'](_0x3c90f7)};}}for(const _0x10cb04 of _0x1d258a){let _0x530e90=null,_0x4ed718=0x0;const _0xcaafdd=new Map(Array['from'](_0x410c6a['model'][_0x10cb04]['insertions']['markers'])['filter'](([_0x51fd99])=>!_0x51fd99['startsWith']('revision:')));let _0x4623a4=0x0;for(const _0x55396c of _0x11e81b){const _0x1dd8f4=this['_makeTape'](_0x55396c['model'][_0x10cb04]['insertions']);_0x55396c==_0x410c6a?(_0x530e90=_0x1dd8f4,_0x4ed718=_0x530e90['length'],_0x530e90['forEach'](_0xef5a74=>{_0xef5a74['id']=_0x4623a4++;}),this['_processTape'](_0x530e90)):this['_markInsertions'](_0x530e90,_0x1dd8f4);const _0x172e4b=_0x530e90['filter'](_0x54e6ce=>!_0x54e6ce['isAdded'])['map'](_0x5895=>_0x5895['id']);let _0x279800=0x0;const _0x16ce2f=this['_makeTape'](_0x55396c['model'][_0x10cb04]['deletions']);_0x16ce2f['forEach'](_0x544067=>{_0x544067['isRemoved']?_0x544067['id']=_0x4ed718++:_0x544067['id']=_0x172e4b[_0x279800++];}),this['_processTape'](_0x16ce2f),this['_setDistance'](_0x530e90,'isAdded'),this['_setDistance'](_0x16ce2f,'isRemoved'),_0x55396c==_0x410c6a&&this['_markMarkers'](_0x530e90,_0xcaafdd),_0x530e90=this['_joinTapes'](_0x530e90,_0x16ce2f),this['_refreshStartEndIndex'](_0x530e90),this['_setDistance'](_0x530e90,'isRemoved');}_0x530e90=_0x530e90['filter'](_0x580c70=>!(_0x580c70['isAdded']&&_0x580c70['isRemoved']));const _0x55ba66=new Map(_0x41f301['model'][_0x10cb04]['deletions']['markers']),_0x2f9357=new Set(_0xcaafdd['keys']());for(const _0x22ea59 of _0x55ba66['keys']())_0x2f9357['delete'](_0x22ea59);this['_markSuggestions'](_0x530e90,_0x2f9357),this['_fixObsoleteTags'](_0x530e90),_0x530e90=this['_removeMissingPairs'](_0x530e90),_0x530e90=this['_markMismatchedRemovedTags'](_0x530e90),_0x530e90=this['_removeUnsupportedChanges'](_0x530e90);const {root:_0x1eef3a,changes:_0x4450d6}=this['_makeModelFromTape'](_0x530e90,_0x370f33,_0x10cb04);_0x415a6d['model'][_0x10cb04]=_0x1eef3a;const _0x3a5c81=_0x445eb9['get'](_0x10cb04);if(_0x3a5c81){const _0x1fed10=_0x370f33['get'](_0x3a5c81['userId']),_0x4604e6=new r({'author':_0x1fed10,'type':_0x3a5c81['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x10cb04});_0x4450d6['unshift'](_0x4604e6),_0x415a6d['attributes'][_0x10cb04]['revisionHistoryAttachChange']=_0x4604e6['id'];}_0x415a6d['changes']=_0x415a6d['changes']['concat'](_0x4450d6);}return _0x415a6d;}['_markMarkers'](_0x50c4d7,_0x489202){for(let _0x7901ff=0x0;_0x7901ff<_0x50c4d7['length'];_0x7901ff++)for(const [_0x2718a9,_0x2fde3e]of _0x489202)!_0x2fde3e['isCollapsed']&&_0x2fde3e['start']['isEqual'](_0x50c4d7[_0x7901ff]['previousPosition'])&&_0x50c4d7[_0x7901ff]['markersStart']['push'](_0x2718a9),_0x2fde3e['end']['isEqual'](_0x50c4d7[_0x7901ff]['nextPosition'])&&_0x50c4d7[_0x7901ff]['markersEnd']['push'](_0x2718a9);}['_joinTapes'](_0x1c22ab,_0x28df20){let _0x2e4117=[],_0x26f3a2=0x0,_0x5493a5=0x0;for(;_0x26f3a2<_0x1c22ab['length']||_0x5493a5<_0x28df20['length'];){const _0x14708c=_0x1c22ab[_0x26f3a2]||{},_0x29f9f3=_0x28df20[_0x5493a5]||{};if(_0x14708c['id']==_0x29f9f3['id'])_0x26f3a2++,_0x5493a5++,_0x2e4117['push'](_0x14708c);else{if(_0x29f9f3['isRemoved']&&_0x14708c['isAdded']){const {commonTape:_0x1d8b8d,iEnd:_0x36b354,jEnd:_0x3aae69}=this['_threeWayMerge'](_0x1c22ab,_0x26f3a2,_0x28df20,_0x5493a5);_0x2e4117=_0x2e4117['concat'](_0x1d8b8d),_0x26f3a2=_0x36b354,_0x5493a5=_0x3aae69;}else _0x29f9f3['isRemoved']?(_0x5493a5++,_0x2e4117['push'](_0x29f9f3)):(_0x26f3a2++,_0x2e4117['push'](_0x14708c));}}return _0x2e4117;}['_markSuggestions'](_0x417a5f,_0xaa1c31){const _0x143c42=[];for(let _0x56e4da=0x0;_0x56e4da<_0x417a5f['length'];_0x56e4da++){for(let _0x45d9d0=0x0;_0x45d9d0<_0x417a5f[_0x56e4da]['markersStart']['length'];_0x45d9d0++){const _0x54227d=_0x417a5f[_0x56e4da]['markersStart'][_0x45d9d0];if(!_0xaa1c31['has'](_0x54227d))continue;const {group:_0x8bb1b9,type:_0x120ec4,authorId:_0x367a56}=_0x13a425(_0x54227d);'revision-suggestion'!=_0x8bb1b9||'insertion'!=_0x120ec4&&'deletion'!=_0x120ec4||(_0x143c42['unshift']({'type':_0x120ec4,'name':_0x54227d,'userId':_0x367a56}),_0x417a5f[_0x56e4da]['markersStart']['splice'](_0x45d9d0,0x1),_0x45d9d0--);}_0x427e63(_0x417a5f[_0x56e4da]);for(let _0x9ad92c=0x0;_0x9ad92c<_0x417a5f[_0x56e4da]['markersEnd']['length'];_0x9ad92c++){const _0x3b01a1=_0x417a5f[_0x56e4da]['markersEnd'][_0x9ad92c];if(!_0xaa1c31['has'](_0x3b01a1))continue;const {group:_0x52ccc9,type:_0x1f6aad}=_0x13a425(_0x3b01a1);if('revision-suggestion'!=_0x52ccc9||'insertion'!=_0x1f6aad&&'deletion'!=_0x1f6aad)continue;_0x417a5f[_0x56e4da]['markersEnd']['splice'](_0x9ad92c,0x1),_0x9ad92c--;const _0x3dd97d=_0x143c42['findIndex'](_0x153a28=>_0x153a28['name']==_0x3b01a1);_0x3dd97d>-0x1&&_0x143c42['splice'](_0x3dd97d,0x1);}}function _0x13a425(_0x18d38b){const _0x542477=_0x18d38b['split'](':');return{'group':_0x542477[0x0],'type':_0x542477[0x1],'subType':_0x542477['length']>=0x5?_0x542477[0x2]:null,'id':_0x542477['length']<0x5?_0x542477[0x2]:_0x542477[0x3],'authorId':_0x542477['length']<0x5?_0x542477[0x3]:_0x542477[0x4],'markerCount':0x6==_0x542477['length']?_0x542477[0x5]:null};}function _0x427e63(_0x16abb0){for(let _0x1d204b=0x0;_0x1d204b<_0x143c42['length'];_0x1d204b++){if(_0x16abb0['isAdded']&&'insertion'==_0x143c42[_0x1d204b]['type']&&_0x16abb0['isAdded']['userId']==_0x143c42[_0x1d204b]['userId'])return _0x16abb0['isAddSuggestion']=_0x143c42[_0x1d204b],void delete _0x16abb0['isAdded'];if(!_0x16abb0['isAdded']&&!_0x16abb0['isRemoved']&&'deletion'==_0x143c42[_0x1d204b]['type'])return void(_0x16abb0['isRemoveSuggestion']=_0x143c42[_0x1d204b]);}}}['_setDistance'](_0x4dcebc,_0x4e4322){let _0x3a7d69=0x0,_0x435726=!0x1;const _0x50fd4c=new Map();for(const _0x3cd4f0 of _0x4dcebc)_0x3cd4f0[_0x4e4322]?_0x435726&&(_0x3a7d69++,_0x435726=!0x1):(_0x3a7d69++,_0x435726=!0x0),_0x50fd4c['set'](_0x3cd4f0['id'],_0x3a7d69);for(let _0x46f44c=0x0;_0x46f44c<_0x4dcebc['length'];_0x46f44c++){if('isRemoved'==_0x4e4322&&_0x4dcebc[_0x46f44c]['isAdded']||'isAdded'==_0x4e4322&&_0x4dcebc[_0x46f44c]['isRemoved'])continue;if('text'==_0x4dcebc[_0x46f44c]['type']){_0x4dcebc[_0x46f44c]['distance']=0x0;continue;}const _0x41f900=_0x50fd4c['get'](_0x4dcebc[_0x46f44c]['pairId']),_0x50961d=_0x50fd4c['get'](_0x4dcebc[_0x46f44c]['id']);_0x4dcebc[_0x46f44c]['distance']=_0x41f900-_0x50961d;}}['_getRevisionsRange'](_0x17eeb3,_0x14922a,_0x576dd6=!0x1){const _0x2d4c0a=[];let _0x2df4c9=this['repository']['getIndex'](_0x17eeb3),_0x3ba8b5=this['repository']['getIndex'](_0x14922a);for(-0x1==_0x3ba8b5&&(_0x3ba8b5=this['repository']['_revisions']['length'],_0x576dd6=!0x1);_0x2df4c9<_0x3ba8b5;)_0x2d4c0a['push'](this['repository']['getRevision'](_0x2df4c9)),_0x2df4c9++;return _0x576dd6&&_0x2d4c0a['push'](this['repository']['getRevision'](_0x2df4c9)),_0x2d4c0a;}['_threeWayMerge'](_0x144e39,_0x4bad2a,_0x49eccb,_0x6ff026){const _0x49389a=this['editor']['model']['schema'];let _0x263c62=_0x4bad2a;for(;_0x144e39[_0x263c62]&&_0x144e39[_0x263c62]['isAdded'];)_0x263c62++;let _0x20b439=_0x6ff026;for(;_0x49eccb[_0x20b439]&&_0x49eccb[_0x20b439]['isRemoved'];)_0x20b439++;_0x3ea4ab(_0x144e39,_0x4bad2a,_0x263c62),_0x3ea4ab(_0x49eccb,_0x6ff026,_0x20b439);const _0xaaa939=_0x49eccb['slice'](_0x6ff026,_0x20b439)['concat'](_0x144e39['slice'](_0x4bad2a,_0x263c62));return _0xaaa939['sort']((_0x5bbf48,_0x5e1783)=>_0x5bbf48['side']!=_0x5e1783['side']?_0x5bbf48['side']-_0x5e1783['side']:_0x5bbf48['level']!=_0x5e1783['level']?_0x5bbf48['level']-_0x5e1783['level']:_0x5bbf48['distance']!=_0x5e1783['distance']?_0x5e1783['distance']-_0x5bbf48['distance']:!!_0x5bbf48['isAdded']!=!!_0x5e1783['isAdded']?-0x1==_0x5bbf48['side']||0x0==_0x5bbf48['side']?_0x5bbf48['isAdded']?-0x1:0x1:_0x5bbf48['isAdded']?0x1:-0x1:_0x5bbf48['index']-_0x5e1783['index']),{'commonTape':_0xaaa939,'iEnd':_0x263c62,'jEnd':_0x20b439};function _0x3ea4ab(_0x457c3f,_0x1dc1fa,_0x409071){let _0x113a4a=-0x1,_0x2af1d3=Number['POSITIVE_INFINITY'],_0x6fcae2=!0x0;for(let _0x314f88=_0x1dc1fa;_0x314f88<_0x409071;_0x314f88++)if(_0x49389a['isInline'](_0x457c3f[_0x314f88]['item'])||(_0x6fcae2=!0x1),_0x457c3f[_0x314f88]['item']['startIndex']<_0x1dc1fa&&(_0x113a4a=_0x314f88),_0x457c3f[_0x314f88]['item']['endIndex']>=_0x409071){_0x2af1d3=_0x314f88;break;}_0x6fcae2&&(_0x113a4a=_0x409071-0x1);for(let _0x1b2c3f=_0x1dc1fa;_0x1b2c3f<_0x409071;_0x1b2c3f++)_0x457c3f[_0x1b2c3f]['side']=_0x1b2c3f<=_0x113a4a?-0x1:_0x1b2c3f<_0x2af1d3?0x0:0x1,_0x457c3f[_0x1b2c3f]['index']=_0x1b2c3f;let _0x4984cf=0x0;for(let _0x5ac35a=_0x1dc1fa;_0x5ac35a<=_0x113a4a;_0x5ac35a++)0x0==_0x457c3f[_0x5ac35a]['distance']?_0x457c3f[_0x5ac35a]['level']=_0x4984cf:(_0x4984cf++,_0x457c3f[_0x5ac35a]['level']=_0x4984cf,_0x4984cf++);for(let _0x597dc6=_0x1dc1fa;_0x597dc6<_0x409071;_0x597dc6++)0x0==_0x457c3f[_0x597dc6]['side']&&(_0x457c3f[_0x597dc6]['level']=_0x4984cf);_0x4984cf=0x0;for(let _0x336a26=_0x409071-0x1;_0x336a26>=_0x2af1d3;_0x336a26--)0x0==_0x457c3f[_0x336a26]['distance']?_0x457c3f[_0x336a26]['level']=_0x4984cf:(_0x4984cf--,_0x457c3f[_0x336a26]['level']=_0x4984cf,_0x4984cf--);}}['_fixObsoleteTags'](_0x21b96f){const _0x69ca47=new Map(),_0x5e1cf0=this['editor']['model']['schema'];for(let _0x46d071=0x1;_0x46d071<_0x21b96f['length'];_0x46d071++){let _0xd34a8f,_0x39ad76,_0x1a2407;const _0x4c8793=_0x21b96f[_0x46d071],_0x2f9253=_0x21b96f[_0x46d071-0x1];if('text'==_0x4c8793['type'])continue;if(_0x4c8793['type']!=_0x2f9253['type'])continue;if(!_0x5e1cf0['isBlock'](_0x2f9253['item'])||_0x5e1cf0['isLimit'](_0x2f9253['item']))continue;if(!_0x5e1cf0['isBlock'](_0x4c8793['item'])||_0x5e1cf0['isLimit'](_0x4c8793['item']))continue;if((_0x21b96f[_0x46d071]['isAdded']||_0x21b96f[_0x46d071]['isAddSuggestion'])&&_0x21b96f[_0x46d071-0x1]['isRemoved'])_0xd34a8f=_0x21b96f[_0x46d071],_0x39ad76=_0x21b96f[_0x46d071-0x1],_0x1a2407=_0x46d071-0x1;else{if(!_0x21b96f[_0x46d071]['isRemoved']||!_0x21b96f[_0x46d071-0x1]['isAdded']&&!_0x21b96f[_0x46d071-0x1]['isAddSuggestion'])continue;_0xd34a8f=_0x21b96f[_0x46d071-0x1],_0x39ad76=_0x21b96f[_0x46d071],_0x1a2407=_0x46d071;}const _0x4e290e=_0xd34a8f['level']==_0x39ad76['level'],_0x33b2f5=Math['abs'](_0xd34a8f['level'])<Math['abs'](_0x39ad76['level'])&&0x0==_0x39ad76['distance'];(_0x4e290e||_0x33b2f5)&&(_0x69ca47['set'](_0x39ad76['id'],_0xd34a8f['id']),_0x21b96f['splice'](_0x1a2407,0x1),_0x46d071--,_0xd34a8f['isAdded']=!0x1);}for(let _0x1eb457=0x0;_0x1eb457<_0x21b96f['length'];_0x1eb457++)_0x69ca47['has'](_0x21b96f[_0x1eb457]['pairId'])&&(_0x21b96f[_0x1eb457]['pairId']=_0x69ca47['get'](_0x21b96f[_0x1eb457]['pairId']));}['_removeMissingPairs'](_0x42a88a){const _0x256401=new Set(_0x42a88a['map'](_0x36717f=>_0x36717f['id']));for(let _0x17235b=0x0;_0x17235b<_0x42a88a['length'];_0x17235b++)_0x256401['has'](_0x42a88a[_0x17235b]['pairId'])||0x0==_0x42a88a[_0x17235b]['distance']||(_0x42a88a[_0x17235b]['isIncorrect']=!0x0);return _0x42a88a['filter'](_0x316dca=>!_0x316dca['isIncorrect']);}['_markMismatchedRemovedTags'](_0x408a7b){const _0x5c5578=new Set();for(let _0xfdfffc=0x0;_0xfdfffc<_0x408a7b['length'];_0xfdfffc++){if(_0x5c5578['has'](_0x408a7b[_0xfdfffc]['id'])&&_0x408a7b[_0xfdfffc]['isRemoved']&&(_0x408a7b[_0xfdfffc]['isIncorrect']=!0x0),_0x408a7b[_0xfdfffc]['isIncorrect'])continue;if(0x0==_0x408a7b[_0xfdfffc]['distance'])continue;if('elementStart'!=_0x408a7b[_0xfdfffc]['type'])continue;if(null==_0x408a7b[_0xfdfffc]['pairId'])continue;let _0x155533=_0xfdfffc+0x1,_0x5b3701=0x0;for(;_0x408a7b[_0x155533]['id']!=_0x408a7b[_0xfdfffc]['pairId'];)'elementStart'==_0x408a7b[_0x155533]['type']?_0x5b3701++:'elementEnd'==_0x408a7b[_0x155533]['type']&&_0x5b3701--,_0x155533++;if(0x0!=_0x5b3701){if(_0x408a7b[_0xfdfffc]['isRemoved'])_0x408a7b[_0xfdfffc]['isIncorrect']=!0x0;else{for(;_0x155533!=_0xfdfffc;)_0x408a7b[_0x155533]['isRemoved']&&0x0!=_0x408a7b[_0x155533]['distance']&&(_0x408a7b[_0x155533]['isIncorrect']=!0x0,_0x5c5578['add'](_0x408a7b[_0x155533]['pairId'])),_0x155533--;}}}return _0x408a7b['filter'](_0x570f81=>!_0x570f81['isIncorrect']);}['_removeUnsupportedChanges'](_0x1113af){const _0x22b1f8=this['editor']['model']['schema'];for(let _0x36112b=0x0;_0x36112b<_0x1113af['length'];_0x36112b++){if(!(_0x1113af[_0x36112b]['isAdded']||_0x1113af[_0x36112b]['isAddSuggestion']||_0x1113af[_0x36112b]['isRemoved']||_0x1113af[_0x36112b]['isRemoveSuggestion']))continue;if(0x0==_0x1113af[_0x36112b]['distance'])continue;const _0x367add=_0x1113af[_0x36112b]['item'];_0x22b1f8['isBlock'](_0x367add)||_0x22b1f8['isLimit'](_0x367add)||(_0x1113af[_0x36112b]['isAdded']&&delete _0x1113af[_0x36112b]['isAdded'],_0x1113af[_0x36112b]['isAddSuggestion']&&delete _0x1113af[_0x36112b]['isAddSuggestion'],_0x1113af[_0x36112b]['isRemoveSuggestion']&&delete _0x1113af[_0x36112b]['isRemoveSuggestion'],_0x1113af[_0x36112b]['isRemoved']&&(_0x1113af[_0x36112b]['isIncorrect']=!0x0));}return _0x1113af['filter'](_0x1a30c1=>!_0x1a30c1['isIncorrect']);}['_makeModelFromTape'](_0x586ad4,_0x31283c,_0x3d71e9){const _0x2bc151=new vt(),_0x756955=[],_0x52327a=new Map(),_0x133e2d=this['editor']['model'],_0x390608=_0x133e2d['schema'],_0x29e529=[_0x2bc151],_0xb4e324={},_0x39f630={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51f577=null;const _0x3e87c3=[0x0];for(let _0xdf03ab=0x0;_0xdf03ab<_0x586ad4['length'];_0xdf03ab++)if('elementStart'===_0x586ad4[_0xdf03ab]['type']){_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3);const _0x31a6e3=new ut(_0x586ad4[_0xdf03ab]['item']['name'],_0x586ad4[_0xdf03ab]['item']['getAttributes']());_0x29e529[0x0]['_appendChild'](_0x31a6e3),_0x3e87c3['push'](0x0),_0x29e529['unshift'](_0x31a6e3),_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3);}else'elementEnd'===_0x586ad4[_0xdf03ab]['type']?(_0x29e529['shift'](),_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3),_0x3e87c3['pop'](),_0x3e87c3[_0x3e87c3['length']-0x1]++,_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3)):(_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3),_0x51f577?_0x51f577['_data']+=_0x586ad4[_0xdf03ab]['item']['data']:_0x51f577=new gt(_0x586ad4[_0xdf03ab]['item']['data'],_0x586ad4[_0xdf03ab]['item']['getAttributes']()),_0x586ad4[_0xdf03ab+0x1]&&'text'===_0x586ad4[_0xdf03ab+0x1]['type']&&_0x3b47dd(_0x51f577,_0x586ad4[_0xdf03ab+0x1]['item'])||(_0x29e529[0x0]['_appendChild'](_0x51f577),_0x51f577=null),_0x3e87c3[_0x3e87c3['length']-0x1]+=_0x586ad4[_0xdf03ab]['item']['offsetSize'],_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3));for(let _0x8d9fba=0x0;_0x8d9fba<_0x586ad4['length'];_0x8d9fba++){const _0x1d3a8e=_0x586ad4[_0x8d9fba]['previousPosition'],_0x5d9556=_0x586ad4[_0x8d9fba]['nextPosition'];for(const _0x422ca2 of _0x586ad4[_0x8d9fba]['markersStart'])_0x52327a['set'](_0x422ca2,{'start':_0x1d3a8e,'end':null});_0x5afdd3('isRemoveSuggestion',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isAddSuggestion',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isRemoved',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isAdded',_0x8d9fba,_0x1d3a8e,_0x5d9556);for(const _0x16a3cc of _0x586ad4[_0x8d9fba]['markersEnd']){const _0x45a08a=_0x52327a['get'](_0x16a3cc);_0x45a08a?_0x45a08a['end']=_0x5d9556:_0x52327a['set'](_0x16a3cc,{'start':_0x5d9556,'end':_0x5d9556});}}for(const [_0xea534c,_0x378a88]of _0x52327a){const _0x374e8f=this['editor']['model']['createRange'](_0x378a88['start'],_0x378a88['end']);_0x2bc151['markers']['set'](_0xea534c,_0x374e8f);}return _0x756955['sort']((_0x564592,_0x4f1ee9)=>{const _0x3a8367=_0x2bc151['markers']['get']('revision:'+_0x564592['id']),_0x151e40=_0x2bc151['markers']['get']('revision:'+_0x4f1ee9['id']);return _0x3a8367['start']['isBefore'](_0x151e40['start'])?-0x1:_0x3a8367['start']['isAfter'](_0x151e40['start'])?0x1:_0x3a8367['end']['isBefore'](_0x151e40['end'])?-0x1:_0x3a8367['end']['isAfter'](_0x151e40['end'])?0x1:'add'===_0x564592['type']?-0x1:0x1;}),{'root':_0x2bc151,'changes':_0x756955};function _0x5afdd3(_0x47e01e,_0x2b2b8b,_0x297599,_0x47a45){const _0x222aef=!!_0x586ad4[_0x2b2b8b][_0x47e01e],_0x38b149=_0x222aef?_0x586ad4[_0x2b2b8b][_0x47e01e]['userId']:null,_0x1b6843=_0x2b2b8b===_0x586ad4['length']-0x1,_0x2bd470=_0x39f630[_0x47e01e][0x0],_0x55d3ee=_0x390608['isObject'](_0x586ad4[_0x2b2b8b]['item']);!_0xb4e324[_0x47e01e]&&_0x222aef?_0xb4e324[_0x47e01e]={'start':_0x297599,'tapeItem':_0x586ad4[_0x2b2b8b],'userId':_0x38b149,'type':_0x47e01e}:_0xb4e324[_0x47e01e]&&!_0x222aef?(_0xb4e324[_0x47e01e]['end']=_0x297599,_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]=null):_0xb4e324[_0x47e01e]&&_0x222aef&&_0xb4e324[_0x47e01e]['userId']!==_0x38b149&&(_0xb4e324[_0x47e01e]['end']=_0x297599,_0x2bd470&&_0x2bd470['userId']===_0xb4e324[_0x47e01e]['userId']||_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]={'start':_0x297599,'tapeItem':_0x586ad4[_0x2b2b8b],'userId':_0x38b149,'type':_0x47e01e}),_0xb4e324[_0x47e01e]&&_0x55d3ee&&('elementStart'!==_0x586ad4[_0x2b2b8b]['type']||_0x2bd470&&_0x2bd470['userId']===_0x38b149||_0x39f630[_0x47e01e]['unshift']({'userId':_0x38b149,'object':_0x586ad4[_0x2b2b8b]['item'],'change':_0xb4e324[_0x47e01e]}),'elementEnd'===_0x586ad4[_0x2b2b8b]['type']&&_0x2bd470&&_0x2bd470['object']===_0x586ad4[_0x2b2b8b]['item']&&(_0x39f630[_0x47e01e]['shift'](),_0xb4e324[_0x47e01e]=_0x2bd470['change'])),_0xb4e324[_0x47e01e]&&_0x1b6843&&(_0xb4e324[_0x47e01e]['end']=_0x47a45,_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]=null);}function _0x479b77({start:_0xd646d5,end:_0x464540,tapeItem:_0x15300a,userId:_0x29721a,type:_0x33c5d5}){const _0x382dd1=_0x15300a['item'],_0x13c163=_0x133e2d['schema']['isBlock'](_0x382dd1)&&!_0x133e2d['schema']['isLimit'](_0x382dd1),_0x24405a=_0xd646d5['nodeAfter']==_0x464540['parent']&&_0x464540['isAtStart'];if(_0x13c163&&_0x24405a)return;const _0x38c2be=_0x133e2d['createRange'](_0xd646d5,_0x464540),_0x1ed700=_0x31283c['get'](_0x29721a),_0x811cf9=new r({'author':_0x1ed700,'type':'isAdded'==_0x33c5d5||'isAddSuggestion'==_0x33c5d5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33c5d5||'isRemoveSuggestion'==_0x33c5d5},'createdAt':new Date(),'rootName':_0x3d71e9});_0x756955['push'](_0x811cf9),_0x2bc151['markers']['set']('revision:'+_0x811cf9['id'],_0x38c2be);}function _0x3b47dd(_0x387b17,_0x5d327c){const _0x147bd8=_0x387b17['getAttributes'](),_0x57609d=_0x5d327c['getAttributes']();for(const _0x50cb72 of _0x147bd8){if(_0x50cb72[0x1]!==_0x5d327c['getAttribute'](_0x50cb72[0x0]))return!0x1;_0x57609d['next']();}return _0x57609d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1243d7=>{const _0x3f308e=_0x1243d7['markerName']['split'](':')[0x1],_0x49f9c6=this['_getChangeFromId'](_0x3f308e);if(!_0x49f9c6)return null;const _0x5980e2='add'==_0x49f9c6['type']?'insertion':'deletion',_0x43f701=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5980e2];return _0x49f9c6['data']['isSuggestion']&&_0x43f701['push']('ck-suggestion-marker-'+_0x5980e2+'-new'),this['activeChange']==_0x49f9c6&&_0x43f701['push']('ck-suggestion-marker--active'),{'classes':_0x43f701,'attributes':{'data-change-id':_0x3f308e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x442209=>{_0x442209['on']('element:pre',(_0x578bca,_0x52bbcd,_0xe5257a)=>{const _0x185e2b=_0x52bbcd['viewItem']['getChild'](0x0);if(!_0x185e2b||!_0x185e2b['is']('element','code'))return;if(!_0xe5257a['consumable']['consume'](_0x185e2b,{'attributes':['vid_start','vid_end']}))return;const _0x143f9a=_0x52bbcd['modelRange']['start']['nodeAfter'];_0xe5257a['writer']['setAttribute']('vid_start',_0x185e2b['getAttribute']('vid_start'),_0x143f9a),_0xe5257a['writer']['setAttribute']('vid_end',_0x185e2b['getAttribute']('vid_end'),_0x143f9a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2a996c=>{_0x2a996c['on']('element',(_0x861303,_0x3a1091,_0x2467af)=>{if(!_0x2467af['consumable']['consume'](_0x3a1091['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3a1091['modelRange']['isCollapsed'])return;const _0x200e8d=_0x3a1091['modelRange']['start']['nodeAfter'];_0x200e8d['hasAttribute']('vid_start')||_0x200e8d['hasAttribute']('vid')||(_0x2467af['writer']['setAttribute']('vid_start',_0x3a1091['viewItem']['getAttribute']('vid_start'),_0x200e8d),_0x2467af['writer']['setAttribute']('vid_end',_0x3a1091['viewItem']['getAttribute']('vid_end'),_0x200e8d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13b56d=>_0x13b56d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x527ee9,[,_0x39c8ff])=>{['vid_start','vid_end','vid']['includes'](_0x39c8ff)&&(_0x527ee9['return']=!0x0,_0x527ee9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5dabb0=>{_0x5dabb0['on']('attribute:vid',(_0xf810a4,_0x50ea76,_0x11b7b1)=>{if('\x20'!=_0x50ea76['item']['data']||_0x50ea76['item']['parent']['maxOffset']>0x1)return;if(!_0x11b7b1['consumable']['consume'](_0x50ea76['item'],_0xf810a4['name']))return;const _0x112e7e=_0x11b7b1['writer'],_0x2c81c5=_0x11b7b1['mapper']['toViewRange'](_0x50ea76['range']);_0x112e7e['wrap'](_0x2c81c5,_0x112e7e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x43453a){const _0x444ea4=_0x43453a['plugins']['get']('RevisionViewer');return(_0x4b3a6b,_0xa1b0b8,_0x4643e5)=>{const _0x746e5c=_0xa1b0b8['markerName']['split'](':')[0x1],_0x5b5689=_0x444ea4['_getChangeFromId'](_0x746e5c);if(!_0x5b5689)return null;const _0x5bd1ae='add'==_0x5b5689['type']?'split':'merge';if(!_0x4643e5['consumable']['test'](_0xa1b0b8['markerRange'],_0x4b3a6b['name']))return;const _0x1f9ed4=_0xa1b0b8['markerRange']['getWalker'](),_0x579d28=_0xa1b0b8['markerRange']['start'],_0x1cac4f=_0x43453a['model']['schema'];let _0x32213d=null,_0x331575=null,_0x2c98f3=!0x1,_0x359708=!0x1;for(const _0x3ed4a0 of _0x1f9ed4){const _0x301392=_0x3ed4a0['item'];_0x2c98f3=_0x2c98f3||_0x1cac4f['isContent'](_0x301392);const _0x4115ea=_0x4643e5['mapper']['toViewElement'](_0x301392);if(_0x4115ea&&_0x4115ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ed4a0['type']&&(_0x1cac4f['isBlock'](_0x301392)&&!_0x1cac4f['isLimit'](_0x301392)&&(_0x301392['nextSibling']||_0x579d28['isAtEnd']?_0x32213d&&_0x32213d['parent']==_0x301392||(_0x32213d=_0x301392,_0x444fa0(_0x3ed4a0['previousPosition']),_0x359708=!0x0):_0x331575=_0x331575||_0x3ed4a0['previousPosition']));}function _0x444fa0(_0x4b5758){const _0x56c8d8=_0x4643e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bd1ae}),_0x496117=_0x4643e5['mapper']['toViewPosition'](_0x4b5758);_0x5b5689['data']['isSuggestion']&&_0x4643e5['writer']['addClass']('ck-suggestion-marker-'+_0x5bd1ae+'-new',_0x56c8d8),_0x444ea4['activeChange']==_0x5b5689&&_0x4643e5['writer']['addClass']('ck-suggestion-marker--active',_0x56c8d8),_0x4643e5['writer']['insert'](_0x496117,_0x56c8d8),_0x4643e5['mapper']['bindElementToMarker'](_0x56c8d8,_0xa1b0b8['markerName']);}_0x2c98f3||_0x359708||!_0x331575||_0x444fa0(_0x331575);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x215915,_0x2c5a8f,_0x2e7785)=>{const _0x550de4=_0x2e7785['mapper']['markerNameToElements'](_0x2c5a8f['markerName']);if(_0x550de4){for(const _0x225274 of _0x550de4)(_0x225274['hasClass']('ck-suggestion-marker-split')||_0x225274['hasClass']('ck-suggestion-marker-merge'))&&(_0x2e7785['mapper']['unbindElementFromMarkerName'](_0x225274,_0x2c5a8f['markerName']),_0x2e7785['writer']['remove'](_0x225274));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xc40bfb,_0x57750b,_0x300ced)=>{const _0x363308=_0x57750b['markerName']['split'](':')[0x1],_0x36a254=this['_getChangeFromId'](_0x363308);if(!_0x36a254)return null;const _0xefba80='add'==_0x36a254['type']?'split':'merge';if(_0x300ced['consumable']['test'](_0x57750b['markerRange'],_0xc40bfb['name']))for(const _0x26711e of _0x57750b['markerRange']['getItems']()){if(!_0x26711e['is']('element','softBreak'))continue;const _0x653204=_0x300ced['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xefba80}),_0x380061=_0x300ced['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26711e));_0x36a254['data']['isSuggestion']&&_0x300ced['writer']['addClass']('ck-suggestion-marker-'+_0xefba80+'-new',_0x653204),this['activeChange']==_0x36a254&&_0x300ced['writer']['addClass']('ck-suggestion-marker--active',_0x653204),_0x300ced['writer']['insert'](_0x380061,_0x653204),_0x300ced['mapper']['bindElementToMarker'](_0x653204,_0x57750b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x16585c=>{for(const _0x202c39 of this['editor']['model']['document']['getRootNames']()){const _0x5cdb40=this['editor']['model']['document']['getRoot'](_0x202c39),_0x20e578=this['editor']['editing']['view']['document']['getRoot'](_0x202c39);if(_0x20e578){const _0x283fbf=_0x5cdb40['getAttribute']('revisionHistoryAttachChange');if(_0x16585c['removeAttribute']('data-change-id',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root-add',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root-remove',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root--active',_0x20e578),_0x283fbf){const _0x19f477=this['_getChangeFromId'](_0x283fbf);if(!_0x19f477)return null;_0x16585c['setAttribute']('data-change-id',_0x283fbf,_0x20e578),_0x16585c['addClass']('ck-revision-history-root-'+_0x19f477['type'],_0x20e578),this['activeChange']==_0x19f477&&_0x16585c['addClass']('ck-revision-history-root--active',_0x20e578);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x24545b=>'revision-comment:'+_0x24545b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2d8aa3=>'revision-suggestion:'+_0x2d8aa3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x491236=>({'name':'suggestion:'+_0x491236,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x458467=>{const _0x4517b4=_0x458467['markerName']['split'](':')[0x1];return'insertion'!=_0x4517b4&&'deletion'!=_0x4517b4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4517b4]};}}),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',(_0xfcb6a0,_0x27263c,_0x4bf9e1)=>{const _0x467dc4=_0x4bf9e1['mapper']['markerNameToElements'](_0x27263c['markerName']);if(_0x467dc4){for(const _0x2f0047 of _0x467dc4)_0x2f0047['is']('uiElement')&&(_0x4bf9e1['mapper']['unbindElementFromMarkerName'](_0x2f0047,_0x27263c['markerName']),_0x4bf9e1['writer']['remove'](_0x2f0047));}},{'priority':'high'});}['_getChangeFromId'](_0x2ee9d2){return this['_changeIdToChange']['get'](_0x2ee9d2);}['_getViewForChange'](_0x1e9373){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1e9373),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d6bae,_0x27d0f0,_0x209218,_0x5d50a0)=>{_0x5d50a0&&this['_balloon']['remove'](_0x5d50a0),_0x209218&&(this['_balloon']['add']({'view':_0x209218,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x50a1d1=this['editor']['editing'],_0x1c5455=this['_getChangeFromId'](_0x209218['changeId']);let _0x4b9343;if(_0x1c5455['data']['isOnRoot']){const _0x513ba3=_0x50a1d1['view']['getDomRoot'](_0x1c5455['rootName']);_0x4b9343=Array['from'](_0x513ba3['getClientRects']());}else{const _0x163e6d=this['editor']['model']['markers']['get']('revision:'+_0x209218['changeId']);_0x4b9343=Array['from'](_0x50a1d1['mapper']['markerNameToElements'](_0x163e6d['name']))['map'](_0xe612e6=>_0x50a1d1['view']['domConverter']['mapViewToDom'](_0xe612e6))['map'](_0x113c31=>Array['from'](_0x113c31['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4b9343[0x0];return _0x4b9343['find'](_0x1aeb7f=>_0x1aeb7f['top']-0x3<=this['_activeViewTarget']['y']&&_0x1aeb7f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1aeb7f['left']-0x3<=this['_activeViewTarget']['x']&&_0x1aeb7f['right']+0x3>=this['_activeViewTarget']['x'])||_0x4b9343[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x8b9185,_0x2d5e81,_0x29b983,_0x47c389)=>{this['activeView']=_0x29b983?this['_getViewForChange'](_0x29b983):null,this['editor']['model']['change'](()=>{const _0x346ded=this['editor']['editing'];_0x47c389&&(_0x47c389['data']['isOnRoot']?_0x346ded['view']['change'](_0xaa1b1b=>{_0xaa1b1b['removeClass']('ck-revision-history-root--active',_0x346ded['view']['document']['getRoot'](_0x47c389['rootName']));}):_0x346ded['reconvertMarker']('revision:'+_0x47c389['id'])),_0x29b983&&(_0x29b983['data']['isOnRoot']?_0x346ded['view']['change'](_0x46fd2b=>{_0x46fd2b['addClass']('ck-revision-history-root--active',_0x346ded['view']['document']['getRoot'](_0x29b983['rootName']));}):_0x346ded['reconvertMarker']('revision:'+_0x29b983['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b1cb0,_0x206189)=>{if(this['activeChange'])return;const _0x2b667a=this['_findChangeIdFromDomTarget'](_0x206189['target']),_0x2cdca8=this['_changeIdToChange']['get'](_0x2b667a);_0x2cdca8?(this['_activeViewTarget']={'x':_0x206189['domEvent']['x'],'y':_0x206189['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2cdca8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x58b16c,_0x533c05)=>{const _0x514dd8=this['_findChangeIdFromDomTarget'](_0x533c05['target']),_0x54c04f=this['_changeIdToChange']['get'](_0x514dd8);_0x54c04f?(this['_activeViewTarget']={'x':_0x533c05['domEvent']['x'],'y':_0x533c05['domEvent']['y']},_0x54c04f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54c04f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x483246){do{const _0x3a0d52=_0x483246['getAttribute']('data-change-id');if(_0x3a0d52)return _0x3a0d52;_0x483246=_0x483246['parent'];}while(_0x483246);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xe143c6=>{for(const _0x2e3ad6 of this['editor']['model']['markers'])_0xe143c6['removeMarker'](_0x2e3ad6);});}}function X(_0x7c3378,_0xf90b9b){return(_0x5eb228,_0x52d9b0,_0x22c1a0)=>{if(!_0x22c1a0['consumable']['test'](_0x52d9b0['markerRange'],_0x5eb228['name']))return;const _0x45a792=_0x52d9b0['markerRange']['getWalker'](),_0x3546a1=_0x52d9b0['markerRange']['start'],_0x442f6a=_0x7c3378['model']['schema'];let _0x262a1d=null,_0x371d3b=null,_0xdfd38e=!0x1,_0x4b9d88=!0x1;for(const _0x4e74fd of _0x45a792){const _0x4c06e7=_0x4e74fd['item'];_0xdfd38e=_0xdfd38e||_0x442f6a['isContent'](_0x4c06e7);const _0x147408=_0x22c1a0['mapper']['toViewElement'](_0x4c06e7);if(_0x147408&&_0x147408['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e74fd['type']&&(_0x442f6a['isBlock'](_0x4c06e7)&&!_0x442f6a['isLimit'](_0x4c06e7)&&(_0x4c06e7['nextSibling']||_0x3546a1['isAtEnd']?_0x262a1d&&_0x262a1d['parent']==_0x4c06e7||(_0x262a1d=_0x4c06e7,_0x37bd1e(_0x4e74fd['previousPosition']),_0x4b9d88=!0x0):_0x371d3b=_0x371d3b||_0x4e74fd['previousPosition']));}function _0x37bd1e(_0x3c4997){const _0x410f90=_0x22c1a0['mapper']['toViewPosition'](_0x3c4997),_0x27d5d2=_0x22c1a0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf90b9b});_0x22c1a0['writer']['insert'](_0x410f90,_0x27d5d2),_0x22c1a0['mapper']['bindElementToMarker'](_0x27d5d2,_0x52d9b0['markerName']);}_0xdfd38e||_0x4b9d88||!_0x371d3b||_0x37bd1e(_0x371d3b);};}class mt extends _0x5a96ec{constructor(_0x4296fa){super(_0x4296fa);const _0x574817=_0x4296fa['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x574817,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x574817,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x772c31=this['editor'],_0x2c532c=_0x772c31['plugins']['get'](m),_0x415ff9=_0x2c532c['isReady']?_0x2c532c['diff']['newRevisionId']:null;_0x772c31['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x415ff9);}['refresh'](){const {isReady:_0x3d39d3,isEnabled:_0x261fcb,repository:_0x9e79b3,diff:_0x1cc73b}=this['editor']['plugins']['get'](m),_0x497be3=_0x1cc73b&&_0x9e79b3['getLaterVisibleRevision'](_0x1cc73b['newRevisionId']);this['isEnabled']=_0x3d39d3&&_0x261fcb&&Boolean(_0x497be3);}}class wt extends _0x5a96ec{['_step'];constructor(_0x4659f7,{direction:_0x488bd1}){super(_0x4659f7);const _0x4b5b11=_0x4659f7['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x488bd1?0x1:-0x1,this['listenTo'](_0x4b5b11,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b5b11,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b5b11,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x23f5ca=this['editor'],_0x2df641=_0x23f5ca['plugins']['get'](m),{isNavigationMode:_0x240984,currentChangeNumber:_0x790bd5}=_0x2df641;let _0x1a2336;if(_0x2df641['activeChange']=_0x240984?_0x2df641['diff']['changes']['get'](_0x790bd5+this['_step']):_0x2df641['diff']['changes']['first'],_0x2df641['activeChange']['data']['isOnRoot'])_0x1a2336=_0x23f5ca['editing']['view']['getDomRoot'](_0x2df641['activeChange']['rootName']);else{const _0x5eddea=_0x23f5ca['model']['markers']['get']('revision:'+_0x2df641['activeChange']['id']);_0x1a2336=_0x9249c1(_0x23f5ca['editing'],_0x5eddea);}_0x2d24ed({'target':_0x1a2336,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2e7044,currentChangeNumber:_0x46c334,numberOfChanges:_0x45511f,isReady:_0x333e7b,isEnabled:_0x3d16c8}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x3d16c8&&_0x333e7b&&_0x45511f)&&(!_0x2e7044||(0x1===this['_step']?_0x46c334<_0x45511f-0x1:_0x46c334>0x0));}}class _i extends ts{constructor(_0x154890){super(_0x154890);const _0x383711=this['bindTemplate'],_0x4fe374=new te(_0x154890),_0x1c48ec=new te(_0x154890);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',(_0x2ff0ba,_0x5dd0d7)=>_0x2ff0ba&&_0x5dd0d7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4c401a,_0x2f2eb0,_0x28b5a6,_0x424308)=>{if(!_0x4c401a)return g(_0x154890,'Loading...');if(!_0x28b5a6)return g(_0x154890,'No\x20changes');const _0x56b7b2=g(_0x154890,'NUMBER_OF_CHANGES',_0x28b5a6);return _0x424308?g(_0x154890,'X_OF_Y_CHANGES',[_0x2f2eb0+0x1,_0x28b5a6]):_0x56b7b2;}),_0x4fe374['set']({'label':g(_0x154890,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x24917}),_0x1c48ec['set']({'label':g(_0x154890,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x536269}),_0x4fe374['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1c48ec['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4fe374['on']('execute',()=>this['fire']('execute','backward')),_0x1c48ec['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',_0x383711['if']('_isStatusLabelVisible','ck-hidden',_0x55ae62=>!_0x55ae62)]},'children':[{'text':_0x383711['to']('isNavigationMode',_0x1c6e80=>_0x1c6e80?g(_0x154890,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x154890,'Total')+':\x20')}]},{'text':_0x383711['to']('_statusText')}]},new _0x263769(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4fe374,_0x1c48ec]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x506da8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5e45b2=this['editor']['editing']['view'];_0x5e45b2['change'](_0x434a17=>{for(const _0x2bb782 of _0x5e45b2['document']['roots'])_0x434a17['addClass'](le,_0x2bb782);});}['hide'](){const _0x12818f=this['editor']['editing']['view'];_0x12818f['change'](_0x27ceff=>{for(const _0x4296e7 of _0x12818f['document']['roots'])_0x27ceff['removeClass'](le,_0x4296e7);});}}class R extends _0x506da8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x573b04=this['editor'],_0x42d16f=_0x573b04['plugins']['get'](m),_0xa5b586=_0x573b04['plugins']['get'](ge);_0x573b04['ui']['componentFactory']['add']('exitToEditing',_0x3f3f4d=>{const _0x4f3815=new te(_0x3f3f4d);return _0x4f3815['set']({'label':g(_0x3f3f4d,'Back\x20to\x20editing'),'icon':_0x5ec9a1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4f3815,'execute',()=>{_0x573b04['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4f3815;}),_0x573b04['ui']['componentFactory']['add']('restoreRevision',_0x5a125d=>{const _0x4c3060=new te(_0x5a125d);return _0x4c3060['set']({'label':g(_0x5a125d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4c3060['bind']('isEnabled')['to'](_0x573b04['commands']['get']('restoreRevision')),this['listenTo'](_0x4c3060,'execute',()=>_0x573b04['execute']('restoreRevision')),_0x4c3060;}),_0x573b04['ui']['componentFactory']['add']('changesNavigation',_0x4630e3=>{const _0xc3e755=new _i(_0x4630e3),_0x11010d=_0x573b04['commands']['get']('showPreviousChange'),_0x110757=_0x573b04['commands']['get']('showNextChange');return _0xc3e755['bind']('isBackwardNavigationEnabled')['to'](_0x11010d,'isEnabled'),_0xc3e755['bind']('isForwardNavigationEnabled')['to'](_0x110757,'isEnabled'),_0xc3e755['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x42d16f),this['listenTo'](_0xc3e755,'execute',(_0x21e146,_0x337f31)=>{_0x573b04['execute']('forward'===_0x337f31?'showNextChange':'showPreviousChange');}),_0xc3e755;}),_0xa5b586['show'](),_0x42d16f['on']('change:isReady',(_0x2284e2,_0x407eae,_0x651a1a)=>{_0x651a1a?_0xa5b586['hide']():_0xa5b586['show']();});}}class at extends _0xc22ea8{['_resizeObserver']=null;constructor(_0x2d31da,_0x5b5d77){super(_0x2d31da,_0x5b5d77);const _0x26ad97=this['bindTemplate'];this['set']({'label':g(_0x2d31da,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2d31da,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x26ad97['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 _0x50bfa1=this['fieldView']['element'];this['_tooltipString']=_0x50bfa1['scrollWidth']>_0x50bfa1['clientWidth']&&_0x50bfa1['value']||'';}}class si extends ts{constructor(_0x5e5fbc,_0x4ed461,_0x25479a){super(_0x5e5fbc);const _0x45991d=new _0x5353e5();_0x45991d['set']({'content':_0x2cb2bd,'viewBox':'0\x200\x2011\x2010'});const _0xfcc353=['ck','ck-revision-history-sidebar__revision-author'];_0x25479a&&_0xfcc353['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2f36bf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5e5fbc,_0x25479a?'Revision\x20creator':'Revision\x20author')},'children':[_0x45991d,_0x4ed461['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfcc353},'children':_0x2f36bf});}}function oi(_0x35aebd,_0x58f1e0){const _0x377ad3=_0x35aebd['bindTemplate'],_0x5aa742=_0x35aebd['locale'],_0xe6055a=_0x418de7(_0x5aa742);_0xe6055a['panelPosition']='sw';const _0x59c240=function(_0x1736fb,_0x463a19){const _0x493f5f=function(_0x1e148b,_0x2a0ed5){const _0x4dfc25=_0x1e148b['locale'],_0x5c9d7d={'Compare\x20against\x20selected':g(_0x4dfc25,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4dfc25,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4dfc25,'Restore\x20this\x20revision')};return _0x2a0ed5['map'](_0xd854bd=>{const _0x5b9103=_0x5c9d7d[_0xd854bd['name']];return _0x5b9103&&_0x5b9103!==_0xd854bd['name']&&(_0xd854bd['name']=_0x5b9103),_0xd854bd;});}(_0x1736fb,_0x463a19),_0x121b75=new _0x2f6a5b();for(const _0x57ca8a of _0x493f5f){const _0x36348f={'type':'button','model':new to({'label':_0x57ca8a['name'],'class':_0x57ca8a['class'],'withText':!0x0,'role':'menuitem','_action':_0x57ca8a['action']})};_0x36348f['model']['bind']('isEnabled')['to'](_0x1736fb,'isActionsDropdownOpen',_0x3597c5=>'function'!=typeof _0x57ca8a['isEnabled']||(!_0x3597c5||_0x57ca8a['isEnabled'](_0x1736fb))),_0x121b75['add'](_0x36348f);}return _0x121b75;}(_0x35aebd,_0x58f1e0);return _0x35aebd['bind']('isActionsDropdownOpen')['to'](_0xe6055a,'isOpen'),_0xe6055a['buttonView']['set']({'label':g(_0x5aa742,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x916b6a}),_0xe6055a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x377ad3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x377ad3['to'](_0xb76451=>_0xb76451['stopPropagation']())}}),_0xe6055a['on']('execute',_0x40c6b3=>{_0x35aebd['isReady']&&'function'==typeof _0x40c6b3['source']['_action']&&_0x40c6b3['source']['_action'](_0x35aebd);}),_0xd53a08(_0xe6055a,_0x59c240,{'role':'menu'}),_0xe6055a['listenTo'](_0x35aebd,'change:isActionsDropdownOpen',(_0x39aded,_0x47433e,_0x29a691)=>{if(_0x29a691)for(const _0x5a42d9 of _0xe6055a['listView']['items']){const _0x405636=_0x5a42d9['children']['first'],_0x116d97=_0x58f1e0['find'](_0x1e2a0e=>_0x1e2a0e['action']===_0x405636['_action'])['isVisible'];_0x5a42d9['isVisible']=void 0x0===_0x116d97||_0x116d97(_0x35aebd);}}),_0xe6055a;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x2ab981,uid as _0xf63d01,Collection as _0x25bf65,logWarning as _0xfa532e,FocusTracker as _0x538940,KeystrokeHandler as _0x2aadf3,scrollViewportToShowTarget as _0x3d8103,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5b7fd5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1a00a2,set as _0x44bf07,unset as _0x369bea,isEqual as _0x36e583}from'es-toolkit/compat';import{Plugin as _0x4ed480,PendingActions as _0x1c44b4,Command as _0x11b588,ElementApiMixin as _0x40278b,Editor as _0x5989c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xcee71c,getMarkerDomElement as _0x35b60c,ConfirmMixin as ti,sanitizeEditorConfig as _0x4f8c78}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3b1848,ViewAttributeElement as _0x103ae9,ViewEmptyElement as _0x486708,ViewRawElement as _0x3b99c1,ViewUIElement as _0x5c5cc3,ViewDocumentFragment as _0x2016f7,ViewText as _0x5c6a90,ViewElement as _0x3683ff,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 _0x2c57a2,IconChevronUp as _0x251dbe,IconChevronDown as _0x4f0fc5,IconUndo as _0x22d14f,IconUser as _0x2094dc,IconThreeVerticalDots as _0x21bfd9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5eb221,submitHandler as _0x129106,LabeledFieldView as _0x5aa202,createLabeledInputText as _0x1906be,createDropdown as _0x567abe,ListView as _0x127b6a,ListItemView as _0x11ea8a,ButtonView as te,MenuBarMenuView as _0x127263,MenuBarMenuListView as _0xe91b7a,MenuBarMenuListItemView as _0x34d57c,MenuBarMenuListItemButtonView as _0x5c7ca5,ContextualBalloon as _0x1796c8,ToolbarSeparatorView as _0x158e14,IconView as _0x270eb5,addListToDropdown as _0x4d26b3,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 _0x50a78f}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ab981(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e0edf){super(),this['id']=_0x2e0edf['id']||_0xf63d01(),this['creator']=_0x2e0edf['creator']||null,this['authors']=_0x2e0edf['authors']||[],this['diffData']=_0x2e0edf['diffData']||null,this['toVersion']=_0x2e0edf['toVersion']||0x0,this['fromVersion']=_0x2e0edf['fromVersion']||0x0,this['set']('name',_0x2e0edf['name']||''),this['set']('createdAt',_0x2e0edf['createdAt']||new Date()),this['set']('attributes',_0x2e0edf['attributes']||{});}['setName'](_0x4f64fe){this['_update']({'name':_0x4f64fe});}['setAttribute'](_0x41cc4e,_0x372f34){const _0x43358f=_0x1a00a2(this['attributes']);_0x44bf07(_0x43358f,_0x41cc4e,_0x372f34),this['_update']({'attributes':_0x43358f});}['removeAttribute'](_0x114344){const _0x5a042f=_0x1a00a2(this['attributes']);_0x369bea(_0x5a042f,_0x114344),this['_update']({'attributes':_0x5a042f});}['_update'](_0x17e334,_0x3514ed=!0x1){let _0x21fea7=!0x1;const _0x4ed611={'id':this['id']},_0x174d59=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1eca88 of _0x174d59){const _0x32a7ca=_0x17e334[_0x1eca88];void 0x0!==_0x32a7ca&&_0x32a7ca!==this[_0x1eca88]&&(this[_0x1eca88]=_0x32a7ca,_0x4ed611[_0x1eca88]=_0x32a7ca,_0x21fea7=!0x0);}_0x21fea7&&(_0x4ed611['authors']&&(_0x4ed611['authorsIds']=_0x4ed611['authors']['map'](_0x9fbab7=>_0x9fbab7['id']),delete _0x4ed611['authors']),this['fire']('_update',_0x4ed611,_0x3514ed));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc29a50=>_0xc29a50['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4ed480{['_revisions'];static get['requires'](){return[_0xcee71c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x14de96){super(_0x14de96),this['_revisions']=new _0x25bf65();}['afterInit'](){!async function(_0x2f43d9){const _0x499848=_0x3402c2([0x45,0x56,0x6d,0x46,0x43,0x6c,0x59,0x77,0x6f,0x4f,0x76,0x7a,0x4a,0x74,0x39,0x64,0x35,0x44,0x48,0x4d,0x6a,0x30,0x38,0x6e,0x63,0x32,0x36,0x61,0x58,0x53,0x42,0x55,0x41,0x69,0x79,0x4c,0x66,0x51,0x75,0x57,0x62,0x31,0x67,0x72,0x6b,0x54,0x49,0x50,0x52,0x68,0x33,0x5a,0x73,0x70,0x78,0x34,0x47,0x4e,0x71,0x4b,0x37,0x65]),_0x4550d7=0xeb829,_0x19b7a3=0x7b4a895d,_0x619d90=0x7b4de2f5^_0x19b7a3,_0x90ff51=window[_0x3402c2([0x44,0x61,0x74,0x65])][_0x3402c2([0x6e,0x6f,0x77])](),_0x433746=_0x2f43d9[_0x3402c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2947d4=new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f17c9=>{_0x433746[_0x3402c2([0x6f,0x6e,0x63,0x65])](_0x3402c2([0x72,0x65,0x61,0x64,0x79]),_0x7f17c9);}),_0x5c7803={[_0x3402c2([0x6b,0x74,0x79])]:_0x3402c2([0x45,0x43]),[_0x3402c2([0x75,0x73,0x65])]:_0x3402c2([0x73,0x69,0x67]),[_0x3402c2([0x63,0x72,0x76])]:_0x3402c2([0x50,0x2d,0x32,0x35,0x36]),[_0x3402c2([0x78])]:_0x3402c2([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]),[_0x3402c2([0x79])]:_0x3402c2([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]),[_0x3402c2([0x61,0x6c,0x67])]:_0x3402c2([0x45,0x53,0x32,0x35,0x36])},_0x547a25=_0x433746[_0x3402c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3402c2([0x67,0x65,0x74])](_0x3402c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cc125(){let _0x411323,_0x44e2de=null,_0x2c81c5=null;try{if(_0x547a25==_0x3402c2([0x47,0x50,0x4c]))return _0x3402c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x411323=_0x695d5b(),!_0x411323)return _0x3402c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x411323[_0x3402c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c81c5=_0x59f534(_0x411323[_0x3402c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x411323[_0x3402c2([0x6a,0x74,0x69])])),await _0x36258c()?_0x44d0bc()?_0x5c52ee()?_0x3402c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a1bfc()?(_0x411323[_0x3402c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3402c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44e2de=_0x365d80(_0x3402c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x411323[_0x3402c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3402c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x44e2de=_0x365d80(_0x3402c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x414039()):_0x3402c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3402c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3402c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3402c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c52ee(){const _0x25c885=[_0x3402c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3402c2([0x74,0x72,0x69,0x61,0x6c])][_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x411323[_0x3402c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x90ff51/0x3e8:0xe10*_0x619d90;return _0x411323[_0x3402c2([0x65,0x78,0x70])]<_0x25c885;}function _0x44d0bc(){const _0x40fa0c=_0x411323[_0x3402c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40fa0c)return!0x1;if(_0x40fa0c[_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3402c2([0x2a])))return!0x0;if(_0x40fa0c[_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3402c2([0x52,0x48])))return!0x0;if(_0x40fa0c[_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3402c2([0x52,0x52,0x48]))){if(_0x32b8ac())return!0x0;if(_0x3b98a9()||_0x8f06b3())return!0x0;}return!0x1;}function _0x5a1bfc(){const _0x24bbc4=_0x411323[_0x3402c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24bbc4||0x0==_0x24bbc4[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a4fc8}=new URL(window[_0x3402c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24bbc4[_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a4fc8))return!0x0;const _0x47d997=_0x5a4fc8[_0x3402c2([0x73,0x70,0x6c,0x69,0x74])](_0x3402c2([0x2e]));return _0x24bbc4[_0x3402c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53e784=>_0x53e784[_0x3402c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3402c2([0x2a])))[_0x3402c2([0x6d,0x61,0x70])](_0x510cc4=>_0x510cc4[_0x3402c2([0x73,0x70,0x6c,0x69,0x74])](_0x3402c2([0x2e])))[_0x3402c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c22c2=>_0x5c22c2[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47d997[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3402c2([0x6d,0x61,0x70])](_0x2f8c45=>Array(_0x47d997[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f8c45[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3402c2([0x66,0x69,0x6c,0x6c])](_0x2f8c45[0x0]===_0x3402c2([0x2a])?_0x3402c2([0x2a]):'')[_0x3402c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f8c45))[_0x3402c2([0x73,0x6f,0x6d,0x65])](_0x347959=>_0x47d997[_0x3402c2([0x65,0x76,0x65,0x72,0x79])]((_0x4580d5,_0x46f25c)=>_0x347959[_0x46f25c]===_0x4580d5||_0x347959[_0x46f25c]===_0x3402c2([0x2a])));}function _0x414039(){return _0x44e2de&&_0x2c81c5?new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18c3de,_0x452fcb)=>{_0x44e2de[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x18c3de,_0x452fcb),_0x2c81c5[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x36e4c4=>{_0x36e4c4!=_0x3402c2([0x56,0x61,0x6c,0x69,0x64])&&_0x18c3de(_0x36e4c4);},_0x452fcb);}):_0x44e2de||_0x2c81c5||_0x3402c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59f534(_0x520fb7,_0x52ccb7){return new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40cc9f=>{if(_0x3c9c46())return _0x40cc9f(_0x3402c2([0x56,0x61,0x6c,0x69,0x64]));_0x59b1ff(),_0x433746[_0x3402c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3402c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36c3c8=!0x1;const _0x5e631e=_0xf63d01();function _0x223a7b(_0x24ddf3){return!!_0x24ddf3&&(typeof _0x24ddf3===_0x3402c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24ddf3===_0x3402c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24ddf3[_0x3402c2([0x74,0x68,0x65,0x6e])]===_0x3402c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24ddf3[_0x3402c2([0x63,0x61,0x74,0x63,0x68])]===_0x3402c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bc9c5(_0x2dca79){_0x50ee18(_0x2dca79)[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x547d1e=>{if(!_0x547d1e||_0x547d1e[_0x3402c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3402c2([0x6f,0x6b]))return _0x3402c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49dea5(_0x47aaab(_0x5e631e+_0x52ccb7))!=_0x547d1e[_0x3402c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3402c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3402c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x4774a1=>(_0x2fb89c(),_0x4774a1),()=>{const _0x413a2b=_0x560d1c();return null==_0x413a2b?(_0x2fb89c(),_0x3402c2([0x56,0x61,0x6c,0x69,0x64])):_0x3402c2(_0x90ff51-_0x413a2b>(0x5f460d5d^_0x19b7a3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x40cc9f)[_0x3402c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40cc9f(_0x3402c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x351385=0x7b7c67dd^_0x19b7a3;function _0x2fb89c(){const _0xb42acf=_0x3402c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x49dea5(_0x47aaab(_0x520fb7)),_0x29cb31=_0x5636c5(_0x49dea5(window[_0x3402c2([0x4d,0x61,0x74,0x68])][_0x3402c2([0x63,0x65,0x69,0x6c])](_0x90ff51/_0x351385)));window[_0x3402c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3402c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb42acf,_0x29cb31);}function _0x560d1c(){const _0x461033=_0x3402c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x49dea5(_0x47aaab(_0x520fb7)),_0x478f98=window[_0x3402c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3402c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461033);return _0x478f98?window[_0x3402c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5636c5(_0x478f98),0x10)*_0x351385:null;}function _0x50ee18(_0x2851da){return new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2435be,_0x513188)=>{_0x2851da[_0x3402c2([0x74,0x68,0x65,0x6e])](_0x2435be,_0x513188),window[_0x3402c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x513188,0x7b4b5d9d^_0x19b7a3);});}}_0x433746[_0x3402c2([0x6f,0x6e])](_0x3402c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x227d4d,_0x4879ad)=>{if(_0x4879ad[0x0]!=_0x520fb7)return _0x40cc9f(_0x3402c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4879ad[0x1]={..._0x4879ad[0x1],[_0x3402c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e631e};},{[_0x3402c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3402c2([0x68,0x69,0x67,0x68])}),_0x433746[_0x3402c2([0x6f,0x6e])](_0x3402c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b8ca2=>{_0x223a7b(_0x5b8ca2[_0x3402c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36c3c8=!0x0,_0x2bc9c5(_0x5b8ca2[_0x3402c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3402c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3402c2([0x6c,0x6f,0x77])}),_0x2947d4[_0x3402c2([0x74,0x68,0x65,0x6e])](()=>{_0x36c3c8||_0x40cc9f(_0x3402c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c9c46(){return _0x433746[_0x3402c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3402c2([0x76,0x69,0x65,0x77])][_0x3402c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3402c2([0x61,0x75,0x74,0x6f]);}function _0x59b1ff(){_0x433746[_0x3402c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3402c2([0x76,0x69,0x65,0x77])][_0x3402c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3402c2([0x61,0x75,0x74,0x6f]);}}function _0x365d80(_0x4a006a){const _0xd49745=[new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5654d0=>setTimeout(_0x5654d0,0x7b43b791^_0x19b7a3)),_0x2947d4[_0x3402c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ae4b7=>{const _0x4dc594=0x7b4a895a^_0x19b7a3,_0x45ecc9=_0x2f43d9[_0x3402c2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x53a8cf(){_0x45ecc9[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4dc594&&_0x1ae4b7();}_0x53a8cf(),_0x45ecc9[_0x3402c2([0x6f,0x6e])](_0x3402c2([0x61,0x64,0x64]),_0x53a8cf);})),new window[(_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8dad=>{function _0x457407(){for(const _0x53f9f2 in window)if(window[_0x3402c2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3402c2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x53f9f2))&&window[_0x53f9f2]==_0x4550d7)return _0x5e8dad();_0x433746[_0x3402c2([0x73,0x74,0x61,0x74,0x65])]!=_0x3402c2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3402c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x457407,0x7b4a9ad5^_0x19b7a3);}_0x16df20(_0x3402c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x457407();})];return window[_0x3402c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3402c2([0x72,0x61,0x63,0x65])](_0xd49745)[_0x3402c2([0x74,0x68,0x65,0x6e])](()=>_0x4a006a);}async function _0xfabd59(){if(await _0x2947d4,_0x16df20(_0x3402c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3a34b2=_0x2f43d9[_0x3402c2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x26e8a4=_0x2f43d9[_0x3402c2([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])](_0x3a34b2[_0x3402c2([0x69,0x64])]),_0x503830=_0x4cd309(_0x3402c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x503830[_0x3402c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3a34b2['id'],_0x26e8a4?_0x26e8a4['id']:null,!0x0),_0x503830[_0x3402c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3402c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x503830[_0x3402c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x503830[_0x3402c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f467a,void(_0x503830[_0x3402c2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f467a);}if(_0x16df20(_0x3402c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1fa97f=_0x4cd309(_0x3402c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1fa97f[_0x3402c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3402c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1fa97f[_0x3402c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1fa97f[_0x3402c2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f467a,_0x1fa97f[_0x3402c2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f467a;}_0x433746[_0x3402c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3402c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f467a,_0x433746[_0x3402c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3402c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f467a,_0x433746[_0x3402c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3402c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32b8ac(){return _0x16df20(_0x3402c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4cd309(_0x3402c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3402c2([0x73,0x74,0x61,0x74,0x65])]==_0x3402c2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b98a9(){return _0x16df20(_0x3402c2([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 _0x8f06b3(){return _0x16df20(_0x3402c2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x7c96be(_0x48a0c7){const _0x329c6d=_0xedc530();_0x433746[_0x329c6d]=_0x3402c2([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])+_0x48a0c7,_0x48a0c7[_0x3402c2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3402c2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xedc530()]=_0x4550d7),_0x48a0c7!=_0x3402c2([0x56,0x61,0x6c,0x69,0x64])&&_0xfabd59();}function _0xedc530(){const _0x52af7f=window[_0x3402c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3402c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3402c2([0x6e,0x6f,0x77])]())[_0x3402c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3402c2([0x2e]),'');let _0x2c0e74=_0x3402c2([0x45]);for(let _0x1a7bd8=0x0;_0x1a7bd8<_0x52af7f[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a7bd8+=0x2){let _0x190f44=window[_0x3402c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52af7f[_0x3402c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a7bd8,_0x1a7bd8+0x2));_0x190f44>=_0x499848[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x190f44-=_0x499848[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c0e74+=_0x499848[_0x190f44];}return _0x2c0e74;}function _0x695d5b(){const _0x33784b=_0x547a25[_0x3402c2([0x73,0x70,0x6c,0x69,0x74])](_0x3402c2([0x2e]));if(0x3!=_0x33784b[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe2f3d3(_0x33784b[0x1]);function _0xe2f3d3(_0x7ff634){const _0x3e316d=_0x1b11dd(_0x7ff634);return _0x3e316d&&_0x2869a8()?_0x3e316d:null;function _0x2869a8(){const _0x3e3515=_0x3e316d[_0x3402c2([0x6a,0x74,0x69])],_0x22f9c7=window[_0x3402c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3515[_0x3402c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3515[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13a6a3={..._0x3e316d,[_0x3402c2([0x6a,0x74,0x69])]:_0x3e3515[_0x3402c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e3515[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13a6a3[_0x3402c2([0x76,0x63])],_0x47aaab(_0x13a6a3)==_0x22f9c7;}}}async function _0x36258c(){let _0x2f2ca3=!0x0;try{const _0x7ef697=_0x547a25[_0x3402c2([0x73,0x70,0x6c,0x69,0x74])](_0x3402c2([0x2e])),[_0x2b360c,_0x3c0ae8,_0xb39f61]=_0x7ef697;return _0x439ba5(_0x2b360c),await _0x417064(_0x2b360c,_0x3c0ae8,_0xb39f61),_0x2f2ca3;}catch{return!0x1;}function _0x439ba5(_0x422e26){const _0x55821f=_0x1b11dd(_0x422e26);_0x55821f&&_0x55821f[_0x3402c2([0x61,0x6c,0x67])]==_0x3402c2([0x45,0x53,0x32,0x35,0x36])||(_0x2f2ca3=!0x1);}async function _0x417064(_0x398c1e,_0x58eca7,_0x417e7e){const _0x501094=window[_0x3402c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3402c2([0x66,0x72,0x6f,0x6d])](_0x2d1cdb(_0x417e7e),_0x5edcbf=>_0x5edcbf[_0x3402c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1837b2=new window[(_0x3402c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3402c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x398c1e+_0x3402c2([0x2e])+_0x58eca7),_0x22d256=window[_0x3402c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3402c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22d256)return;const _0x4ad5b8=await _0x22d256[_0x3402c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3402c2([0x6a,0x77,0x6b]),_0x5c7803,{[_0x3402c2([0x6e,0x61,0x6d,0x65])]:_0x3402c2([0x45,0x43,0x44,0x53,0x41]),[_0x3402c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3402c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3402c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22d256[_0x3402c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3402c2([0x6e,0x61,0x6d,0x65])]:_0x3402c2([0x45,0x43,0x44,0x53,0x41]),[_0x3402c2([0x68,0x61,0x73,0x68])]:{[_0x3402c2([0x6e,0x61,0x6d,0x65])]:_0x3402c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ad5b8,_0x501094,_0x1837b2)||(_0x2f2ca3=!0x1);}}function _0x1b11dd(_0x5a104d){return _0x5a104d[_0x3402c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3402c2([0x65,0x79]))?JSON[_0x3402c2([0x70,0x61,0x72,0x73,0x65])](_0x2d1cdb(_0x5a104d)):null;}function _0x2d1cdb(_0xd5773b){return window[_0x3402c2([0x61,0x74,0x6f,0x62])](_0xd5773b[_0x3402c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3402c2([0x2b]))[_0x3402c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3402c2([0x2f])));}function _0x47aaab(_0x1b5c32){let _0x5e80a6=0x1505;function _0x488d03(_0x337733){for(let _0x3e0d69=0x0;_0x3e0d69<_0x337733[_0x3402c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e0d69++){const _0x1713ae=_0x337733[_0x3402c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e0d69);_0x5e80a6=(_0x5e80a6<<0x5)+_0x5e80a6+_0x1713ae,_0x5e80a6&=_0x5e80a6;}}function _0x309fd5(_0x47b17c){Array[_0x3402c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47b17c)?_0x47b17c[_0x3402c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x309fd5):_0x47b17c&&typeof _0x47b17c==_0x3402c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3402c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47b17c)[_0x3402c2([0x73,0x6f,0x72,0x74])]()[_0x3402c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f1d01,_0x460adb])=>{_0x488d03(_0x3f1d01),_0x309fd5(_0x460adb);}):_0x488d03(window[_0x3402c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47b17c));}return _0x309fd5(_0x1b5c32),_0x5e80a6>>>0x0;}function _0x49dea5(_0x3ffeb9){return _0x3ffeb9[_0x3402c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3402c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3402c2([0x30]));}function _0x5636c5(_0x4a039b){return _0x4a039b[_0x3402c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3402c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3402c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x16df20(_0x252bc6){return _0x433746[_0x3402c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3402c2([0x68,0x61,0x73])](_0x252bc6);}function _0x4cd309(_0x3b66bb){return _0x433746[_0x3402c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3402c2([0x67,0x65,0x74])](_0x3b66bb);}function _0x2f467a(){}function _0x3402c2(_0x3ae9c0){return _0x3ae9c0['map'](_0x223873=>String['fromCharCode'](_0x223873))['join']('');}_0x7c96be(await _0x4cc125());}(this);}['createRevision'](_0x3934ef){const _0x3fc537=this['editor']['plugins']['get']('Users');return new h({'id':_0x3934ef['id'],'name':_0x3934ef['name'],'creator':_0x3934ef['creatorId']?_0x3fc537['getUser'](_0x3934ef['creatorId']):null,'diffData':_0x3934ef['diffData']||_0x3934ef['data'],'authors':_0x3934ef['authorsIds']['map'](_0x1a9de2=>_0x3fc537['getUser'](_0x1a9de2)),'createdAt':new Date(_0x3934ef['createdAt']),'attributes':_0x3934ef['attributes'],'fromVersion':_0x3934ef['fromVersion'],'toVersion':_0x3934ef['toVersion']});}['addRevision'](_0x22aa5c,_0x44e492=0x0){this['_revisions']['add'](_0x22aa5c,_0x44e492);}['getRevision'](_0x10c0d2){return this['_revisions']['get'](_0x10c0d2);}['getRevisions'](_0x5c5850={'toJSON':!0x1}){const _0x294d1a=Array['from'](this['_revisions']);return _0x294d1a['reverse'](),_0x5c5850['toJSON']?_0x294d1a['map'](_0x1e8d18=>_0x1e8d18['toJSON']()):_0x294d1a;}['getIndex'](_0x2d5fe8){return this['_revisions']['getIndex'](_0x2d5fe8);}['getEarlierVisibleRevision'](_0x515ae8){const [,_0x648d8f]=this['getRevisionsIterator'](_0x515ae8,{'direction':'earlier'});return _0x648d8f;}['getLaterVisibleRevision'](_0x28819a){const [,_0x30f4e3]=this['getRevisionsIterator'](_0x28819a,{'direction':'later'});return _0x30f4e3;}['getRevisionsInDiff'](_0x5cc08e){const _0x4b97dc=[];for(const _0x54d232 of this['getRevisionsIterator'](_0x5cc08e['newRevisionId']))if(_0x4b97dc['push'](_0x54d232),_0x54d232['id']===_0x5cc08e['oldRevisionId'])break;return _0x4b97dc;}*['getRevisionsIterator'](_0x20d01e,{direction:_0x3b2f84='earlier',filter:_0x3b81df=()=>!0x0}={}){const _0x2deae6='earlier'===_0x3b2f84?0x1:-0x1;let _0x5e91a4=this['_revisions']['get'](_0x20d01e),_0x125718=this['getIndex'](_0x5e91a4);for(yield _0x5e91a4;_0x5e91a4;){if(_0x125718+=_0x2deae6,_0x5e91a4=this['getRevision'](_0x125718),!_0x5e91a4)return;_0x3b81df(_0x5e91a4)&&(yield _0x5e91a4);}}}class V extends _0x4ed480{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3b1848,'c'],[_0x103ae9,'a'],[_0x486708,'e'],[_0x3b99c1,'r'],[_0x5c5cc3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3b1848],['a',_0x103ae9],['e',_0x486708],['r',_0x3b99c1],['u',_0x5c5cc3]]);async['loadRevisionData'](_0x26872e,_0x2d0e81){if(_0x26872e['diffData']||!_0x2d0e81)return;const _0x563776=this['editor']['config']['get']('collaboration.channelId'),_0x348193=await _0x2d0e81['getRevision']({'channelId':_0x563776,'revisionId':_0x26872e['id']});_0x26872e['diffData']=_0x348193['diffData'];}['getRevisionDocumentData'](_0x1c18a4){const _0x29af02={};for(const _0x5ea1ab in _0x1c18a4['diffData']){if(_0x1c18a4['diffData'][_0x5ea1ab]['attachChange']&&!_0x1c18a4['diffData'][_0x5ea1ab]['attachChange']['isAttached'])continue;const _0x20ce06=this['_removeRevisionMarkers'](JSON['parse'](_0x1c18a4['diffData'][_0x5ea1ab]['insertions'])),_0x3bb68e=this['editor']['editing']['view']['document'],_0x1ac143=new _0x2016f7(_0x3bb68e,_0x20ce06['map'](_0x4c6ef7=>this['_getViewFromDiffObj'](_0x4c6ef7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x29af02[_0x5ea1ab]=this['editor']['data']['processor']['toData'](_0x1ac143),this['editor']['data']['processor']['useFillerType']('default');}return _0x29af02;}['getRevisionRootsAttributes'](_0x30d0f5){const _0x4d2388={};for(const _0x3e9358 in _0x30d0f5['diffData'])_0x30d0f5['diffData'][_0x3e9358]['attachChange']&&!_0x30d0f5['diffData'][_0x3e9358]['attachChange']['isAttached']||(_0x4d2388[_0x3e9358]=_0x30d0f5['diffData'][_0x3e9358]['attributesAfter']||{});return _0x4d2388;}['_getTypeCharForViewElement'](_0x5637b4){return this['_viewClassToTypeChar']['get'](_0x5637b4['constructor']);}['_getViewFromDiffObj'](_0x53ee4f,_0x3ffd12){const _0x34483f=this['editor']['editing']['view']['document'];if('string'==typeof _0x53ee4f)return new _0x5c6a90(_0x34483f,_0x53ee4f);{let _0x35c386,_0x2aeb37;_0x2aeb37='u'==_0x53ee4f['type']||'r'==_0x53ee4f['type']?[]:_0x53ee4f['children']['map'](_0x4f9976=>this['_getViewFromDiffObj'](_0x4f9976,_0x3ffd12));const _0x52a692=this['_typeCharToViewClass']['get'](_0x53ee4f['type'])||_0x3683ff,_0x4c64b9=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x35c386=new _0x52a692(_0x34483f,_0x53ee4f['name'],_0x53ee4f['attributes'],_0x2aeb37),'u'==_0x53ee4f['type']&&_0x53ee4f['children'][0x0]){const _0x494016=_0x53ee4f['children'][0x0];if(_0x35c386['render']=function(_0x4279c7){const _0x6ea670=_0x4279c7['createElement']('div');return _0x6ea670['innerHTML']=_0x494016,_0x6ea670['childNodes'][0x0];},_0x3ffd12){const _0x13b3f0=new _0x2016f7(_0x34483f);_0x13b3f0['_appendChild'](_0x35c386);const _0x49b8b5=Array['from'](_0x4c64b9['viewChildrenToDom'](_0x13b3f0,{'bind':!0x1})),_0x370eee=_0x4c64b9['domDocument']['createElement']('div');_0x370eee['append'](..._0x49b8b5),_0x35c386=Array['from'](_0x4c64b9['domChildrenToView'](_0x370eee))[0x0];}}else{if('r'==_0x53ee4f['type']&&_0x53ee4f['children'][0x0]){const _0x245969=_0x53ee4f['children'][0x0];if(_0x35c386['render']=function(_0x25e539){_0x25e539['innerHTML']=_0x245969;},_0x3ffd12){const _0x1305a5=new _0x2016f7(_0x34483f);_0x1305a5['_appendChild'](_0x35c386);const _0x592c2c=Array['from'](_0x4c64b9['viewChildrenToDom'](_0x1305a5,{'bind':!0x1})),_0x38b11e=_0x4c64b9['domDocument']['createElement']('div');_0x38b11e['append'](..._0x592c2c);const _0x5ed3c2=Array['from'](_0x4c64b9['domChildrenToView'](_0x38b11e));_0x5ed3c2['length']>0x1?_0x35c386['_appendChild'](_0x5ed3c2):_0x35c386=_0x5ed3c2[0x0];}}}if(_0x53ee4f['customProperties']){for(const [_0x1e49d9,_0x6657d5]of _0x53ee4f['customProperties'])_0x35c386['_setCustomProperty'](_0x1e49d9,_0x6657d5);}const _0xff1e90=void 0x0===_0x53ee4f['fillerOffset']?null:_0x53ee4f['fillerOffset'];return null!==_0xff1e90&&(_0x35c386['getFillerOffset']=()=>_0xff1e90),_0x35c386;}}['_makeModelFromViewString'](_0x50d6c4){const _0x44cb2a=JSON['parse'](_0x50d6c4),_0x3409e8=this['editor']['editing']['view']['document'],_0x47b5ff=new _0x2016f7(_0x3409e8,_0x44cb2a['map'](_0x55fe77=>this['_getViewFromDiffObj'](_0x55fe77,!0x0)));return this['editor']['data']['toModel'](_0x47b5ff);}['_removeRevisionMarkers'](_0x35376f){return(_0x35376f=_0x35376f['filter'](_0x4b2b23=>!_0x4b2b23['name']||'revision-start'!==_0x4b2b23['name']&&'revision-end'!==_0x4b2b23['name']))['forEach'](_0x44b88c=>{'string'!=typeof _0x44b88c&&(_0x44b88c['children']=this['_removeRevisionMarkers'](_0x44b88c['children']),_0x44b88c['attributes']=_0x44b88c['attributes']['filter'](_0x33a516=>!_0x33a516[0x0]['startsWith']('data-revision-')));}),_0x35376f;}}function g(_0x241b34,_0x254ea5,_0x3c2900){const t=_0x241b34['t'];switch(_0x254ea5){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'},_0x3c2900);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c2900);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 _0x4ed480{['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[_0xcee71c,I,V,_0x1c44b4];}constructor(_0xc7ab9f){super(_0xc7ab9f),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 _0x4f78a9=_0xf63d01();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f78a9},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 _0x22ded0=this['repository']['getRevision'](0x0),_0x4d5ee1=_0x22ded0&&null===_0x22ded0['creator']?_0x22ded0:null;if(this['_continueCurrentRevision']=!!_0x4d5ee1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x120163=this['_source']['getCurrentRevisionId'](),_0x1ac60b=this['repository']['getRevision'](_0x120163);if(_0x1ac60b)this['_startingVersion']=_0x1ac60b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x461648=this['_source']['history']['_operations']['find'](_0x108388=>!_0x108388['_isInit']),_0x50e1de=_0x461648?_0x461648['baseVersion']:this['_source']['history']['version'];_0x22ded0?(_0x22ded0['toVersion']<_0x50e1de&&_0x22ded0['_update']({'toVersion':_0x50e1de}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4d5ee1['id'],this['_startingVersion']=_0x4d5ee1['fromVersion']):(this['_startingVersion']=_0x22ded0['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x50e1de,this['_continueCurrentRevision']=!0x1);}}else _0x4d5ee1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4d5ee1['toVersion'],this['editor']['model']['document']['history']['version']),_0x4d5ee1['fromVersion']===_0x4d5ee1['toVersion']?(0x0!==_0x4d5ee1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d5ee1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d5ee1['id'],this['_startingVersion']=_0x4d5ee1['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',_0x33228d=>!_0x33228d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e51b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x153d48;for(const _0xf29542 in _0x5e51b8){const _0x318449=_0xf29542,_0x27340f=_0x5e51b8[_0x318449];if('revisionHistoryLicenseKeyValid'==_0x27340f||'revisionHistoryLicenseKeyInvalid'==_0x27340f||'revisionHistoryLicenseKeyExpired'==_0x27340f||'revisionHistoryLicenseKeyDomainLimit'==_0x27340f||'revisionHistoryLicenseKeyNotAllowed'==_0x27340f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x27340f||'revisionHistoryLicenseKeyTrialLimit'==_0x27340f||'revisionHistoryLicenseKeyUsageLimit'==_0x27340f){delete _0x5e51b8[_0x318449],_0x153d48=_0x27340f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x153d48&&_0x5e51b8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x153d48&&_0x5e51b8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x153d48&&_0x5e51b8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x153d48&&_0x5e51b8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x153d48&&_0x5e51b8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x153d48&&_0x5e51b8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x153d48&&_0x5e51b8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3f49fc=this['repository']['getRevision'](0x0),_0x3b93f7=await this['getRevisionDocumentData'](_0x3f49fc),_0x49fdda=await this['getRevisionRootsAttributes'](_0x3f49fc);this['_replaceEditorDataWithRevisionData'](_0x3b93f7,_0x49fdda);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2933bb){this['_source']=_0x2933bb;}async['update'](){const _0x1ce0ec=await this['_source']['getLatestVersion']();if(_0x1ce0ec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3843ba=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ce0ec});_0x3843ba['authors']=_0x3843ba['authorsIds']['map'](_0x53442d=>this['editor']['plugins']['get']('Users')['getUser'](_0x53442d)),this['currentRevision']['_update'](_0x3843ba);}}async['saveRevision'](_0x424c0f={},_0x380e59=null){const _0x11bca7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x380e59>this['currentRevision']['toVersion']&&(_0x380e59=null),null===_0x380e59&&(_0x380e59=await this['_source']['getLatestVersion']());const _0x4754dd=this['_getFromVersion'](_0x380e59),_0x264673=this['buildRevisionData']({'from':_0x4754dd,'to':_0x380e59});if(this['currentRevision']['toVersion']<_0x380e59){const _0x668adb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x380e59,'to':_0x380e59});_0x668adb['authors']=[],_0x668adb['authorsIds']=[],_0x668adb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x668adb,!0x0),delete _0x668adb['authors'],_0x11bca7['push'](_0x668adb);}_0x424c0f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x424c0f['name']=_0x424c0f['name']||null,_0x424c0f['id']=_0x424c0f['id']||_0xf63d01(),_0x424c0f={..._0x424c0f,..._0x264673};const _0x5caff2=this['addRevisionData'](_0x424c0f);_0x11bca7['push'](_0x424c0f);const _0x5ac36c=this['repository']['getIndex'](_0x5caff2);if(0x0!==_0x5ac36c){const _0x49bb80=this['repository']['getRevision'](_0x5ac36c-0x1);if(_0x49bb80['fromVersion']!==_0x380e59){const _0x16b794=this['_revisionDataBuilder']['getData'](_0x380e59,_0x49bb80['toVersion']),_0x5d4848={'id':_0x49bb80['id'],'diffData':_0x16b794['diffData'],'authorsIds':_0x16b794['authorsIds'],'authors':_0x16b794['authorsIds']['map'](_0x1db278=>this['editor']['plugins']['get']('Users')['getUser'](_0x1db278)),'fromVersion':_0x380e59};_0x49bb80===this['currentRevision']&&(_0x5d4848['createdAt']=new Date(_0x424c0f['createdAt']['getTime']()+0xa)),_0x49bb80['_update'](_0x5d4848,!0x0),delete _0x5d4848['authors'],_0x11bca7['push'](_0x5d4848);}}if(this['adapter']){for(const _0x55e3eb of _0x11bca7)this['_bufferUpdate'](_0x55e3eb['id'],_0x55e3eb,!0x0);this['sendBufferedUpdates']();}return _0x5caff2;}['addRevisionData'](_0x4fee4f){const _0xdef37=this['repository']['createRevision'](_0x4fee4f);return this['adapter']&&_0xdef37['on']('_update',(_0x81007d,_0x12a445,_0x1085d1)=>{_0x1085d1||(this['_bufferUpdate'](_0x12a445['id'],_0x12a445,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xdef37,this['_findInsertionIndex'](_0xdef37)),_0xdef37;}async['getRevisionDocumentData'](_0x4e8754){return await this['_utils']['loadRevisionData'](_0x4e8754,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e8754);}async['getRevisionRootsAttributes'](_0x400320){return await this['_utils']['loadRevisionData'](_0x400320,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x400320);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3e50a6=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5518ae=0x0;_0x5518ae<_0x3e50a6['length'];_0x5518ae++){const _0x1d6f77=_0x3e50a6[_0x5518ae];let _0x48c010=!0x1;for(const _0x22e4ba of Object['keys'](_0x1d6f77))void 0x0===_0x1d6f77[_0x22e4ba]?delete _0x1d6f77[_0x22e4ba]:'id'!==_0x22e4ba&&(_0x48c010=!0x0);_0x48c010||(_0x3e50a6[_0x5518ae]=null);}if(_0x3e50a6=_0x3e50a6['filter'](_0xe0a468=>null!==_0xe0a468),!_0x3e50a6['length'])return;for(let _0x3096d0=0x0;_0x3096d0<_0x3e50a6['length'];_0x3096d0++){const _0x2e4ac5=_0x3e50a6[_0x3096d0];void 0x0!==_0x2e4ac5['fromVersion']&&void 0x0===_0x2e4ac5['toVersion']&&(_0x2e4ac5['toVersion']=this['repository']['getRevision'](_0x2e4ac5['id'])['toVersion']),void 0x0!==_0x2e4ac5['toVersion']&&void 0x0===_0x2e4ac5['fromVersion']&&(_0x2e4ac5['fromVersion']=this['repository']['getRevision'](_0x2e4ac5['id'])['fromVersion']);}const _0x2af8ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3e50a6,_0x2af8ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x211f1a=>{if(_0x211f1a){for(const _0x2b7409 of _0x211f1a)this['setRevisionData']({'id':_0x2b7409['id'],'createdAt':_0x2b7409['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1d507b=null,from:_0x2248b3=null,to:_0x10ac85=null}){_0x2248b3=null!==_0x2248b3?_0x2248b3:_0x1d507b['fromVersion'],_0x10ac85=null!==_0x10ac85?_0x10ac85:_0x1d507b['toVersion'];const _0x248647=this['_revisionDataBuilder']['getData'](_0x2248b3,_0x10ac85),_0x44c11e={'diffData':_0x248647['diffData'],'authorsIds':_0x248647['authorsIds'],'fromVersion':_0x2248b3,'toVersion':_0x10ac85};if(!_0x1d507b||_0x10ac85!==_0x1d507b['toVersion']){const _0x30f92d=_0x10ac85-0x1,_0x38301f=this['_source']['history']['getOperation'](_0x30f92d);_0x44c11e['createdAt']=_0x38301f&&_0x38301f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2248b3===this['_loadedStateData']['fromVersion']){for(const _0xe90026 of this['_loadedStateData']['authors'])_0x44c11e['authorsIds']['includes'](_0xe90026['id'])||_0x44c11e['authorsIds']['push'](_0xe90026['id']);}return _0x44c11e;}['_bufferUpdate'](_0x3a5475,_0x35fcc1,_0x1fabbe){if(this['_bufferedUpdates']['has'](_0x3a5475)){const _0x149eac=this['_bufferedUpdates']['get'](_0x3a5475);_0x35fcc1=_0x1fabbe?{..._0x149eac,..._0x35fcc1}:{..._0x35fcc1,..._0x149eac};}this['_bufferedUpdates']['set'](_0x3a5475,_0x35fcc1);}['setRevisionData'](_0x20cdb0){const _0x5dd6cb=this['repository']['getRevision'](_0x20cdb0['id']);if(_0x20cdb0['createdAt']&&(_0x20cdb0['createdAt']=new Date(_0x20cdb0['createdAt'])),_0x20cdb0['authorsIds']){const _0x21e6bb=this['editor']['plugins']['get']('Users');_0x20cdb0['authors']=_0x20cdb0['authorsIds']['map'](_0x746e12=>_0x21e6bb['getUser'](_0x746e12));}_0x5dd6cb['_update'](_0x20cdb0,!0x0);}['_createInitialRevision'](_0x716214){const _0x530ff2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x530ff2)this['_initialRevisionId']=_0x530ff2['id'];else{const _0x139944=!this['editor']['model']['document']['roots']['find'](_0x5f243b=>this['editor']['model']['hasContent'](_0x5f243b)),_0x427e4d=this['editor']['plugins']['get']('Users')['me']['id'],_0x259142=g(this['editor']['locale'],_0x139944?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x716214,'to':_0x716214,'id':this['_initialRevisionId'],'name':_0x259142,'creatorId':_0x427e4d});}}['_createCurrentRevision'](_0x17bb79){const _0x567f64=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x567f64),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x17bb79,'to':_0x17bb79,'id':_0x567f64,'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'](_0x386963,_0x120149){let _0x5a777a=this['editor']['config']['get']('initialData'),_0x2feb34=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5a777a){_0x5a777a={};for(const _0x22d8ed of this['editor']['model']['document']['getRootNames']())_0x5a777a[_0x22d8ed]='';}if('string'==typeof _0x5a777a&&(_0x5a777a={'main':_0x5a777a}),void 0x0===_0x2feb34){_0x2feb34={};for(const _0x405c69 of this['editor']['model']['document']['getRootNames']())_0x2feb34[_0x405c69]={};}let _0xbd20a4=!0x1;const _0x28fcd5=Object['keys'](_0x5a777a),_0x4f9c04=Object['keys'](_0x386963);for(const _0x2b0cd1 of _0x28fcd5){if(_0x5a777a[_0x2b0cd1]!==_0x386963[_0x2b0cd1]&&''!==_0x5a777a[_0x2b0cd1]['trim']()){_0xbd20a4=!0x0;break;}if(!_0x36e583(_0x2feb34[_0x2b0cd1],_0x120149[_0x2b0cd1])&&Object['keys'](_0x2feb34[_0x2b0cd1])['length']>0x0){_0xbd20a4=!0x0;break;}}_0xbd20a4||(_0xbd20a4=_0x4f9c04['some'](_0x399e23=>!this['editor']['model']['document']['getRoot'](_0x399e23))),_0xbd20a4&&_0xfa532e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5a777a,'editorRootsAttributes':_0x2feb34,'revisionData':_0x386963,'revisionRootsAttributes':_0x120149}),this['editor']['config']['set']('initialData',_0x386963),this['editor']['config']['set']('rootsAttributes',_0x120149);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x48cd36=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x48cd36['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1b8ef){const _0x2be95f=this['repository']['getRevisions']();_0x2be95f['reverse']();let _0x43761d=0x0;for(;_0x43761d<_0x2be95f['length'];){const _0x41d33b=_0x2be95f[_0x43761d];if(_0x41d33b===this['currentRevision']){_0x43761d++;continue;}if(_0x41d33b['id']===this['_initialRevisionId'])break;const _0x10ef61=_0x1b8ef['toVersion']-_0x41d33b['toVersion']||_0x1b8ef['fromVersion']-_0x41d33b['fromVersion'];if(_0x10ef61>0x0)break;if(_0x10ef61<0x0)_0x43761d++;else{if(!_0x1b8ef['creator']&&_0x41d33b['creator'])break;if(_0x41d33b['creator']||!_0x1b8ef['creator']){if(_0x1b8ef['createdAt']>_0x41d33b['createdAt'])break;_0x43761d++;}else _0x43761d++;}}return _0x43761d;}['_getFromVersion'](_0x2997b4){const _0x1698b4=this['repository']['getRevisions']();_0x1698b4['reverse'](),_0x1698b4['shift']();const _0x5e4043=_0x1698b4['find'](_0x4a57a5=>_0x4a57a5['toVersion']<=_0x2997b4)['toVersion'];return _0x5e4043<this['_startingVersion']?this['_startingVersion']:_0x5e4043;}['_makeRevision']({name:_0x34c518,from:_0x446e51,to:_0x56dc44,creatorId:_0x15421e,id:_0x422e31}){const _0x343770=this['buildRevisionData']({'from':_0x446e51,'to':_0x56dc44});_0x343770['name']=_0x34c518,_0x343770['creatorId']=_0x15421e,_0x343770['id']=_0x422e31;const _0x5c64af=this['addRevisionData'](_0x343770);return this['adapter']&&this['_bufferUpdate'](_0x343770['id'],_0x343770,!0x0),_0x5c64af;}['_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(_0x4bc1d3){this['editor']=_0x4bc1d3,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'](_0x8b8b21){this['source']=_0x8b8b21;const _0x415b88=new Map(),_0xe5672=new Map(),_0x264684=this['editor']['model']['document']['roots']['map'](_0x5067cc=>_0x5067cc['rootName']);for(const _0x12e9dc of _0x264684){const _0xdd5943=this['editor']['model']['document']['getRoot'](_0x12e9dc),_0x336eb9=N(_0xdd5943);_0x415b88['set'](_0x12e9dc,_0x336eb9),_0xe5672['set'](_0x12e9dc,Object['fromEntries'](_0xdd5943['getAttributes']()));}const _0x25742e=Array['from'](this['editor']['model']['markers'])['map'](_0xcf1ed=>[_0xcf1ed['name'],_0xcf1ed['getRange']()]),_0xa8e93d=this['source']['version'];this['_saveMetaData'](_0xa8e93d,_0x415b88,_0x25742e,_0xe5672),this['_startingRevisionId']=this['_revisionId'];const _0x63ee67=new Map(),_0x52feb0=new Map();for(const _0x491ec7 of _0x264684){const _0x3699f0=P(_0x491ec7);_0x63ee67['set'](_0x491ec7,_0x3699f0),_0x52feb0['set'](_0x491ec7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x63ee67,[],_0x52feb0);}['getData'](_0x3cb022,_0x4271c0){if(this['_lastFrom']===_0x3cb022&&this['_lastTo']<=_0x4271c0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4271c0,!0x0);else{if(!this['_savedMetaData']['has'](_0x3cb022)){const _0x213f95=this['_getPreviousFrom'](_0x3cb022);this['_calculateMetaData'](_0x213f95,_0x3cb022,!0x1);}this['_calculateMetaData'](_0x3cb022,_0x4271c0,!0x0);}return this['_lastFrom']=_0x3cb022,this['_lastTo']=_0x4271c0,this['_getState']();}['loadState'](_0x4301d0){const _0x558d50=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4301d0['fromVersion'],this['_lastTo']=_0x4301d0['toVersion'];for(const _0xa24bcf in _0x4301d0['diffData']){const _0xad3dad=_0x4301d0['diffData'][_0xa24bcf]['attachChange'],_0x12d5d2=_0x1a00a2(_0x4301d0['diffData'][_0xa24bcf]['attributesBefore'])||{},_0x1b3fb7=_0x558d50['_makeModelFromViewString'](_0x4301d0['diffData'][_0xa24bcf]['deletions']);_0x1b3fb7['rootName']=_0xa24bcf,_0x1b3fb7['_isAttached']=!_0xad3dad||!_0xad3dad['isAttached'],_0x1b3fb7['isAttached']=()=>_0x1b3fb7['_isAttached'],this['_baseRoots']['set'](_0xa24bcf,_0x1b3fb7),this['_baseRootsAttributes']['set'](_0xa24bcf,_0x12d5d2),_0xad3dad&&this['_touchedRoots']['set'](_0xa24bcf,_0xad3dad);const _0x3b32df=this['_makeIdsRoot'](_0x1b3fb7);this['_baseIdsRoots']['set'](_0xa24bcf,_0x3b32df);for(const [_0x3c20dc,_0x31661d]of _0x1b3fb7['markers']){if(!_0x3c20dc['startsWith']('revision:'))continue;const _0x5e8d87=_0x3c20dc['split'](':')[0x2];for(const _0x31b45b of _0x31661d['getWalker']({'singleCharacters':!0x0})){const _0x44da15=this['_getVidAttributeName'](_0x31b45b),_0xec3d='elementEnd'==_0x31b45b['type']?_0x31b45b['previousPosition']['path']['slice'](0x0,-0x1):_0x31b45b['previousPosition']['path'],_0x8c0fc4=_0x3b32df['getNodeByPath'](_0xec3d)['getAttribute'](_0x44da15);this['_touched']['set'](_0x8c0fc4,{'userId':_0x5e8d87});}}}this['_startingRevisionId']=this['_revisionId'];const _0x36ff17=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x493c79=>!this['_touched']['has'](_0x493c79));let _0x47caa4=0x0;const _0x5e0c3a=new Map();for(const _0x40ad95 in _0x4301d0['diffData']){const _0x425f56=_0x4301d0['diffData'][_0x40ad95]['attachChange'],_0x2e8845=_0x1a00a2(_0x4301d0['diffData'][_0x40ad95]['attributesAfter'])||{},_0x4ac063=_0x558d50['_makeModelFromViewString'](_0x4301d0['diffData'][_0x40ad95]['insertions']);_0x4ac063['rootName']=_0x40ad95,_0x4ac063['_isAttached']=!_0x425f56||_0x425f56['isAttached'],_0x4ac063['isAttached']=()=>_0x4ac063['_isAttached'],this['_diffRoots']['set'](_0x40ad95,_0x4ac063),this['_diffRootsAttributes']['set'](_0x40ad95,_0x2e8845);const _0x109b22=this['_makeIdsRoot'](_0x4ac063,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x40ad95,_0x109b22),_0x5e0c3a['set'](_0x40ad95,_0x4ac063['isAttached']()?_0x2e8845:{});for(const [_0x4b7520,_0x46150b]of _0x4ac063['markers']){if(!_0x4b7520['startsWith']('revision:'))continue;const _0x3c3ece=_0x4b7520['split'](':')[0x2];for(const _0x39e563 of _0x46150b['getWalker']({'singleCharacters':!0x0})){const _0x4d6ae4=this['_getVidAttributeName'](_0x39e563),_0x144107=this['_revisionId']++,_0x3138c8='elementEnd'==_0x39e563['type']?_0x39e563['previousPosition']['path']['slice'](0x0,-0x1):_0x39e563['previousPosition']['path'];_0x109b22['getNodeByPath'](_0x3138c8)['_setAttribute'](_0x4d6ae4,_0x144107),this['_touched']['set'](_0x144107,{'userId':_0x3c3ece});}}for(const _0x171cda of this['editor']['model']['createRangeIn'](_0x4ac063)['getWalker']({'singleCharacters':!0x0})){const _0x32bb7a=this['_getVidAttributeName'](_0x171cda),_0x324589='elementEnd'==_0x171cda['type']?_0x171cda['previousPosition']['path']['slice'](0x0,-0x1):_0x171cda['previousPosition']['path'],_0x16fecb=_0x109b22['getNodeByPath'](_0x324589);_0x16fecb['getAttribute'](_0x32bb7a)>0x0||_0x16fecb['_setAttribute'](_0x32bb7a,_0x36ff17[_0x47caa4++]);}for(const [_0x5736f9,_0x303c3a]of _0x4ac063['markers'])_0x5736f9['startsWith']('revision:')||this['_markers']['set'](_0x5736f9,_0x303c3a);}const _0x1a5436=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1a5436),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1a5436,0x1));const _0x40a80b=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40a80b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40a80b,0x1));const _0x39d147=Array['from'](this['_diffRoots'])['map'](([_0x50b6ca,_0xfd21f2])=>[_0x50b6ca,N(_0xfd21f2)]);this['_saveMetaData'](this['_lastTo'],_0x39d147,this['_markers'],_0x5e0c3a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4f1ca3,_0x21afee,_0x52a8ed,_0x60065b){const _0x140762=new Map(_0x21afee),_0x283d0e=new Map(_0x1a00a2(_0x60065b)),_0x89a510=new Map();for(const [_0x48336d,_0x5b3a00]of _0x52a8ed)_0x89a510['set'](_0x48336d,{'start':_0x5b3a00['start']['clone'](),'end':_0x5b3a00['end']['clone'](),'rootName':_0x5b3a00['root']['rootName']});this['_savedMetaData']['set'](_0x4f1ca3,{'roots':_0x140762,'markers':_0x89a510,'rootsAttributes':_0x283d0e});}['_removeMetaData'](_0x23da8d){this['_savedMetaData']['delete'](_0x23da8d);}['_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'](_0x5a4f92,_0x16779d=null){let _0x448fc4=null;_0x5a4f92['is']('documentFragment')||(_0x448fc4=new ut(_0x5a4f92['name'],{'vid_start':null===_0x16779d?this['_revisionId']++:_0x16779d++}));const _0x336bc8=[];for(const _0x2b6377 of _0x5a4f92['getChildren']())if(_0x2b6377['is']('element')){_0x336bc8['push'](this['_makeIdsRoot'](_0x2b6377,_0x16779d));const _0x48e56a=_0x336bc8[_0x336bc8['length']-0x1];null!==_0x16779d&&(_0x16779d=_0x48e56a['is']('element','$text')?_0x48e56a['getAttribute']('vid')+0x1:_0x48e56a['getAttribute']('vid_end')+0x1);}else{for(let _0x46c97e=0x0;_0x46c97e<_0x2b6377['offsetSize'];_0x46c97e++)_0x336bc8['push'](new ut('$text',{'vid':null===_0x16779d?this['_revisionId']++:_0x16779d++}));}if(_0x5a4f92['is']('documentFragment')){const _0x58f00b=P(_0x5a4f92['rootName']);return _0x58f00b['_insertChild'](0x0,_0x336bc8),_0x58f00b;}return _0x448fc4['_setAttribute']('vid_end',null===_0x16779d?this['_revisionId']++:_0x16779d++),_0x448fc4['_insertChild'](0x0,_0x336bc8),_0x448fc4;}['_calculateMetaData'](_0x2b4e61,_0x1f2672,_0x3874c1){this['_reset']();const {roots:_0x511545,markers:_0x568f45,rootsAttributes:_0x4d001d}=this['_savedMetaData']['get'](_0x2b4e61);this['_baseRoots']=new Map(_0x511545),this['_baseRootsAttributes']=new Map(_0x1a00a2(_0x4d001d));for(const [_0x1efc23,_0x33e470]of this['_baseRoots'])if('$graveyard'!==_0x1efc23&&(this['_diffRoots']['set'](_0x1efc23,N(_0x33e470)),this['_diffRootsAttributes']=new Map(_0x1a00a2(_0x4d001d)),_0x3874c1)){const _0x45dee1=this['_revisionId'];this['_idsRoots']['set'](_0x1efc23,this['_makeIdsRoot'](_0x33e470)),this['_baseIdsRoots']['set'](_0x1efc23,this['_makeIdsRoot'](_0x33e470,_0x45dee1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3874c1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x279f29,_0x5bf0df]of _0x568f45){const _0x42d167=this['_baseRoots']['get'](_0x5bf0df['rootName']),_0x32900d=this['_diffRoots']['get'](_0x5bf0df['rootName']),_0x12b84a=new lt(this['_fixPosition'](_0x5bf0df['start'],_0x42d167),this['_fixPosition'](_0x5bf0df['end'],_0x42d167)),_0x56812a=this['_fixRange'](_0x12b84a,_0x32900d);_0x42d167['markers']['set'](_0x279f29,_0x12b84a),this['_markers']['set'](_0x279f29,_0x56812a);}this['_applyOperations'](_0x2b4e61,_0x1f2672,_0x3874c1);}['_applyOperations'](_0x537a64,_0x34c19a,_0x2c6272){for(const _0x2f0050 of this['source']['getOperations'](_0x537a64,_0x34c19a))this['_handleOperation'](_0x2f0050,_0x2c6272);for(const _0x5a2d40 of this['_diffRoots']['values']())_0x5a2d40['markers']['clear']();for(const [_0x100473,_0x10ad63]of this['_markers']){this['_diffRoots']['get'](_0x10ad63['root']['rootName'])['markers']['set'](_0x100473,_0x10ad63['clone']());}const _0x362744=new Map(),_0x4b6981=new Map();for(const [_0x15d5d6,_0x533053]of this['_diffRoots'])_0x362744['set'](_0x15d5d6,N(_0x533053)),_0x4b6981['set'](_0x15d5d6,this['_diffRootsAttributes']['get'](_0x15d5d6));this['_saveMetaData'](_0x34c19a,_0x362744,this['_markers'],_0x4b6981);}['_getPreviousFrom'](_0x58c98b){const _0x3f6cb1=Array['from'](this['_savedMetaData']['keys']());_0x3f6cb1['sort']((_0x16a7a3,_0x4e133f)=>_0x16a7a3-_0x4e133f),_0x3f6cb1['reverse']();for(const _0x65bff3 of _0x3f6cb1)if(_0x65bff3<_0x58c98b)return _0x65bff3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x354c42,_0x233a12){const _0x3c3ad1=Array['from'](_0x233a12['markers'])['map'](([_0xd1063f,_0x405c25])=>[_0xd1063f,this['_fixRange'](_0x405c25,_0x354c42)]);_0x354c42['markers']=new Map(_0x3c3ad1);}['_transformMarkers'](_0x488da5){for(const _0x17b36e of this['_markers']['values']()){const _0x204626=_0x17b36e['getTransformedByOperation'](_0x488da5),_0x4e6f0c=lt['_createFromRanges'](_0x204626);_0x17b36e['start']=_0x4e6f0c['start'],_0x17b36e['end']=_0x4e6f0c['end'];}}['_handleOperation'](_0x1b1527,_0x5a25a5){if('addRoot'!=_0x1b1527['type']&&'detachRoot'!=_0x1b1527['type']){if('insert'==_0x1b1527['type']){const _0x2bb54d=_0x1b1527['position']['root']['rootName'];this['_diffRoots']['has'](_0x2bb54d)||(this['_diffRoots']['set'](_0x2bb54d,P(_0x2bb54d,!0x0)),this['_diffRootsAttributes']['set'](_0x2bb54d,{}),_0x5a25a5&&this['_idsRoots']['set'](_0x2bb54d,P(_0x2bb54d,!0x0)));}else{if('addRootAttribute'==_0x1b1527['type']||'removeRootAttribute'==_0x1b1527['type']||'changeRootAttribute'==_0x1b1527['type'])return void this['_handleRootAttributeOperation'](_0x1b1527);'marker'==_0x1b1527['type']&&this['_handleMarkerOperation'](_0x1b1527);}if('marker'!==_0x1b1527['type']){const _0x405112=this['_cloneOperation'](_0x1b1527,this['_diffRoots']);_0x405112['_execute'](),this['_transformMarkers'](_0x405112);}if(_0x5a25a5)switch(_0x1b1527['type']){case'insert':this['_handleInsertOperation'](_0x1b1527);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1b1527);break;case'merge':this['_handleMergeOperation'](_0x1b1527);break;case'split':this['_handleSplitOperation'](_0x1b1527);}}else this['_handleRootOperation'](_0x1b1527,_0x5a25a5);}['_cloneOperation'](_0x49a79e,_0x28d419){const _0x1cbc92=_0x49a79e['clone']();return _0x1cbc92['_authorId']=_0x49a79e['_authorId'],this['_fixOperation'](_0x1cbc92,_0x28d419),_0x1cbc92;}['_getBaseVids'](_0x77962b){return _0x77962b['map'](_0x506f0e=>{const _0x2c00c1=this['_getVidAttributeName'](_0x506f0e);return Number(_0x506f0e['item']['getAttribute'](_0x2c00c1));});}['_generateTape'](_0x197acd,_0x5b6621){if(_0x197acd['is']('element','$text'))_0x5b6621['push']({'item':_0x197acd,'type':'text'});else{_0x197acd['is']('element')&&_0x5b6621['push']({'item':_0x197acd,'type':'elementStart'});for(const _0x2e57d5 of _0x197acd['getChildren']())this['_generateTape'](_0x2e57d5,_0x5b6621);_0x197acd['is']('element')&&_0x5b6621['push']({'item':_0x197acd,'type':'elementEnd'});}return _0x5b6621;}['_getState'](){const _0x3ed881=new Map(this['_touched']),_0x408609=new Map(_0x3ed881),_0x8f09bc=new Map(),_0x470d02={'insertions':{},'deletions':{}},_0xb33498={'insertions':{},'deletions':{}},_0x556cb2=new Map(),_0x5a9cc0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a9cc0['delete']('$graveyard');for(const _0x4a4797 of _0x5a9cc0){const _0x5ceaf4=this['_diffRoots']['get'](_0x4a4797)||P(_0x4a4797,!0x1),_0x2096e0=this['_baseRoots']['get'](_0x4a4797)||P(_0x4a4797,!0x1);_0x5ceaf4['isAttached']()||_0x2096e0['isAttached']()?(_0x470d02['insertions'][_0x4a4797]=N(_0x5ceaf4),_0x470d02['deletions'][_0x4a4797]=N(_0x2096e0),this['_copyMarkers'](_0x470d02['deletions'][_0x4a4797],_0x2096e0),this['_copyMarkers'](_0x470d02['insertions'][_0x4a4797],_0x5ceaf4),_0xb33498['insertions'][_0x4a4797]=this['_generateTape'](this['_idsRoots']['get'](_0x4a4797),[]),_0xb33498['deletions'][_0x4a4797]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4a4797)||P(_0x4a4797,!0x1),[])):_0x5a9cc0['delete'](_0x4a4797);}for(const _0x5b33a3 of _0x5a9cc0){const _0x51ee0d=_0xb33498['insertions'][_0x5b33a3];for(const _0x1edac7 of _0x51ee0d){const _0x59ec93=this['_getVidAttributeName'](_0x1edac7),_0xd0f027=_0x1edac7['item']['getAttribute'](_0x59ec93);_0x408609['delete'](_0xd0f027),_0xd0f027>=this['_startingRevisionId']&&_0x8f09bc['set'](_0xd0f027,_0x3ed881['get'](_0xd0f027));}}for(const _0x3aa242 of _0x5a9cc0){const _0x23f399=_0xb33498['insertions'][_0x3aa242],_0x55154a=this['_getBaseVids'](_0xb33498['deletions'][_0x3aa242]);let _0x5f5b6a=0x0;for(const _0x238de4 of _0x23f399){const _0x5f27b0=this['_getVidAttributeName'](_0x238de4),_0x46dc9c=_0x238de4['item']['getAttribute'](_0x5f27b0);if(!_0x8f09bc['has'](_0x46dc9c)&&!_0x556cb2['has'](_0x46dc9c)){if(_0x408609['has'](_0x46dc9c))_0x5f5b6a++;else{if(_0x46dc9c!=_0x55154a[_0x5f5b6a]){const _0x57fcb9=_0x3ed881['get'](_0x46dc9c)||_0x3ed881['get'](_0x55154a[_0x5f5b6a]);for(;_0x46dc9c!=_0x55154a[_0x5f5b6a];)_0x408609['has'](_0x55154a[_0x5f5b6a])||(_0x556cb2['set'](_0x55154a[_0x5f5b6a],_0x57fcb9),_0x3ed881['set'](_0x55154a[_0x5f5b6a],_0x57fcb9)),_0x5f5b6a++;}_0x5f5b6a++;}}}}for(const _0xe51d12 of _0x5a9cc0){const _0x29eb7c=_0xb33498['insertions'][_0xe51d12];for(const _0x1c4d9f of _0x29eb7c){const _0x5b6131=this['_getVidAttributeName'](_0x1c4d9f),_0x28279b=_0x1c4d9f['item']['getAttribute'](_0x5b6131);if(_0x556cb2['has'](_0x28279b)){const _0x1a3b2d=_0x556cb2['get'](_0x28279b);_0x408609['has'](_0x28279b)||_0x408609['set'](_0x28279b,{..._0x1a3b2d}),_0x8f09bc['set'](_0x28279b,{..._0x1a3b2d});}}}for(const _0x1184dd of _0x408609['keys']())_0x1184dd>=this['_startingRevisionId']&&_0x408609['delete'](_0x1184dd);const _0x3df5fe=new Map();for(const _0x55f132 of _0x5a9cc0){let _0x4f6a14=_0xb33498['insertions'][_0x55f132];for(const _0x426d86 of _0x4f6a14)if(_0x426d86['item']['is']('element','tableCell')){const _0x3d0d9f=this['_getVidAttributeName'](_0x426d86),_0x256016=_0x426d86['item']['getAttribute'](_0x3d0d9f);if(_0x8f09bc['has'](_0x256016)){const _0x9d6418=_0x426d86['item']['parent']['parent']['getAttribute']('vid_start'),_0x44e3f5=_0x3df5fe['get'](_0x9d6418)||new Set();_0x44e3f5['add'](_0x8f09bc['get'](_0x256016)['userId']),_0x3df5fe['set'](_0x9d6418,_0x44e3f5);}}_0x4f6a14=_0xb33498['deletions'][_0x55f132];for(const _0x108041 of _0x4f6a14)if(_0x108041['item']['is']('element','tableCell')){const _0x3b59f7=this['_getVidAttributeName'](_0x108041),_0x18caea=_0x108041['item']['getAttribute'](_0x3b59f7);if(_0x408609['has'](_0x18caea)){const _0x55f311=_0x108041['item']['parent']['parent']['getAttribute']('vid_start'),_0x58d97e=_0x3df5fe['get'](_0x55f311)||new Set();_0x58d97e['add'](_0x408609['get'](_0x18caea)['userId']),_0x3df5fe['set'](_0x55f311,_0x58d97e);}}for(const _0x152104 of _0x3df5fe['keys']())(_0x8f09bc['has'](_0x152104)||_0x408609['has'](_0x152104))&&_0x3df5fe['delete'](_0x152104);}for(const _0x51200e of _0x5a9cc0){const _0x45f53d=_0xb33498['insertions'][_0x51200e];let _0x341941=null,_0x264cd4=null;for(const _0x49825b of _0x45f53d){const _0x12dcea=this['_getVidAttributeName'](_0x49825b),_0x120cd5=_0x49825b['item']['getAttribute'](_0x12dcea),_0x1e38da=_0x3df5fe['get'](_0x120cd5);_0x1e38da&&'elementStart'==_0x49825b['type']&&(_0x341941=Array['from'](_0x1e38da)[0x0],_0x264cd4=_0x49825b['item']['getAttribute']('vid_end')),_0x341941&&(_0x408609['set'](_0x120cd5,{'userId':_0x341941}),_0x8f09bc['set'](_0x120cd5,{'userId':_0x341941})),_0x120cd5==_0x264cd4&&(_0x341941=null,_0x264cd4=null);}}const _0x22910a={},_0x234d28=new Set();for(const _0x20f3ed of _0x5a9cc0){const _0x5775db=_0x470d02['deletions'][_0x20f3ed],_0x4227b1=_0x470d02['insertions'][_0x20f3ed];for(const {userId:_0x59352f}of this['_touchedMarkers']['values']())null!==_0x59352f&&_0x234d28['add'](_0x59352f);for(const {userId:_0x76d389}of this['_touchedRoots']['values']())null!==_0x76d389&&_0x234d28['add'](_0x76d389);this['_markChanges'](_0x4227b1,_0xb33498['insertions'][_0x20f3ed],_0x8f09bc,'insertion',_0x234d28),this['_markChanges'](_0x5775db,_0xb33498['deletions'][_0x20f3ed],_0x408609,'deletion',_0x234d28),_0x22910a[_0x20f3ed]={'insertions':this['_prepareViewToSave'](_0x4227b1),'deletions':this['_prepareViewToSave'](_0x5775db),'attachChange':this['_touchedRoots']['get'](_0x20f3ed)||null,'attributesBefore':_0x1a00a2(this['_baseRootsAttributes']['get'](_0x20f3ed))||{},'attributesAfter':_0x1a00a2(this['_diffRootsAttributes']['get'](_0x20f3ed))};}return{'diffData':_0x22910a,'authorsIds':Array['from'](_0x234d28)};}['_processRootBeforeSave'](_0x4ae532){for(const [,_0x14c367]of _0x4ae532['markers']){const _0x55b42b=_0x14c367['start']['getAncestors']()['filter'](_0x3fb22b=>'tableCell'==_0x3fb22b['name']);for(const _0x2a0b0a of _0x55b42b)0x1==_0x2a0b0a['childCount']&&_0x2a0b0a['getChild'](0x0)['is']('element','paragraph')&&_0x2a0b0a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x124da7){this['_processRootBeforeSave'](_0x124da7);const _0x2e8633=this['editor']['data']['toView'](_0x124da7,{}),_0x1d66af=Array['from'](_0x2e8633['getChildren']())['map'](_0x2120f7=>this['_getViewJson'](_0x2120f7));return JSON['stringify'](_0x1d66af);}['_getViewJson'](_0x1502d1){if(_0x1502d1['is']('$text'))return _0x1502d1['data'];{const _0x5bd499=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1af32f=_0x1502d1,_0x11e3da=this['editor']['data']['htmlProcessor']['domConverter'],_0x1864b3={'type':_0x5bd499['_getTypeCharForViewElement'](_0x1af32f),'name':_0x1af32f['name'],'attributes':Array['from'](_0x1af32f['getAttributes']()),'children':Array['from'](_0x1af32f['getChildren']())['map'](_0x2e3122=>this['_getViewJson'](_0x2e3122))};if(_0x1502d1['is']('uiElement')&&'$comment'!=_0x1502d1['name']){const _0x6706ef=_0x1502d1['render'](_0x11e3da['domDocument'],_0x11e3da);_0x1864b3['children']['push'](_0x6706ef['outerHTML']);}else{if(_0x1502d1['is']('rawElement')){const _0xd904ab=_0x11e3da['domDocument']['createElement'](_0x1af32f['name']);_0x1502d1['render'](_0xd904ab,_0x11e3da),_0x1864b3['children']['push'](_0xd904ab['innerHTML']);}}const _0x8ccd03=Array['from'](_0x1af32f['getCustomProperties']());_0x8ccd03['length']>0x0&&(_0x1864b3['customProperties']=_0x8ccd03);const _0x2f4423=_0x1af32f['getFillerOffset']();return null!==_0x2f4423&&(_0x1864b3['fillerOffset']=_0x2f4423),_0x1864b3;}}['_markChanges'](_0x204a44,_0x4c8905,_0x1ae568,_0x3df3ca,_0x6f9db2){let _0x4a41c8=null,_0x46946e=null,_0x75b45=0x0;const _0x15743f=this['editor']['model'];for(let _0x722387=0x0;_0x722387<_0x4c8905['length'];_0x722387++){const _0x151963=this['_getVidAttributeName'](_0x4c8905[_0x722387]),_0x2e94cd=_0x4c8905[_0x722387]['item']['getAttribute'](_0x151963),_0x53dbb4=_0x1ae568['get'](_0x2e94cd),_0x3297e3=_0x722387==_0x4c8905['length']-0x1;(!_0x4a41c8&&_0x53dbb4&&(_0x4a41c8=_0x53dbb4,_0x46946e=_0x4c8905[_0x722387]),_0x4a41c8&&(!_0x53dbb4||_0x53dbb4['userId']!=_0x4a41c8['userId']))&&(_0x840088(_0x53dbb4,F(_0x46946e,_0x204a44,_0x15743f),F(_0x4c8905[_0x722387],_0x204a44,_0x15743f)),_0x4a41c8=_0x53dbb4||null,_0x46946e=_0x53dbb4?_0x4c8905[_0x722387]:null),_0x4a41c8&&_0x3297e3&&_0x840088(_0x53dbb4,F(_0x46946e,_0x204a44,_0x15743f),B(_0x4c8905[_0x722387],_0x204a44,_0x15743f));}function _0x840088(_0x6a1433,_0x471a5b,_0x23cccb){const _0x3356e4=_0x4a41c8['userId'],_0x137f7f='revision:'+_0x3df3ca+':'+_0x3356e4+':'+_0x75b45++,_0x136b35=_0x15743f['createRange'](_0x471a5b,_0x23cccb);_0x204a44['markers']['set'](_0x137f7f,_0x136b35),null!==_0x3356e4&&_0x6f9db2['add'](_0x3356e4);}}['_getVidAttributeName'](_0x10d649){switch(_0x10d649['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x34e86b,_0x468c12){_0x34e86b['baseVersion']=null;for(const _0x1051bb in _0x34e86b){const _0x2985b6=_0x34e86b[_0x1051bb];if(_0x2985b6 instanceof ft){const _0xa81242=_0x468c12['get'](_0x2985b6['root']['rootName']);_0x34e86b[_0x1051bb]=this['_fixPosition'](_0x2985b6,_0xa81242);}if(_0x2985b6 instanceof lt){const _0x127c3e=_0x468c12['get'](_0x2985b6['root']['rootName']);_0x34e86b[_0x1051bb]=this['_fixRange'](_0x2985b6,_0x127c3e);}'root'===_0x1051bb&&(_0x34e86b['root']=_0x468c12['get'](_0x34e86b['root']['rootName']));}}['_fixRange'](_0x1588d9,_0xaca73a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1588d9['start'],_0xaca73a),this['_fixPosition'](_0x1588d9['end'],_0xaca73a));}['_fixPosition'](_0x312d5d,_0x195588){return this['editor']['model']['createPositionFromPath'](_0x195588,_0x312d5d['path'],_0x312d5d['stickiness']);}['_handleInsertOperation'](_0x19eaa2){const _0x4fff20=this['_idsRoots']['get'](_0x19eaa2['position']['root']['rootName']),_0x5d8ca7=this['_fixPosition'](_0x19eaa2['position'],_0x4fff20),_0x31cace=null===_0x19eaa2['_authorId']?null:_0x19eaa2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15a383=_0x5d8ca7['parent'],_0x43b420=this['_revisionId'],_0x207893=[];for(const _0x19f87f of _0x19eaa2['nodes'])if(_0x19f87f['is']('element'))_0x207893['push'](this['_makeIdsRoot'](_0x19f87f));else{for(let _0x58b869=0x0;_0x58b869<_0x19f87f['offsetSize'];_0x58b869++)_0x207893['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x47c157=this['_revisionId'];for(let _0x4a4353=_0x43b420;_0x4a4353<_0x47c157;_0x4a4353++)this['_touched']['set'](_0x4a4353,{'userId':_0x31cace});_0x15a383['_insertChild'](_0x5d8ca7['offset'],_0x207893);}['_handleMoveOperation'](_0x2c8189){(_0x2c8189=this['_cloneOperation'](_0x2c8189,this['_idsRoots']))['_execute']();const _0x1495c2=null===_0x2c8189['_authorId']?null:_0x2c8189['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c0114=_0x2c8189['getMovedRangeStart'](),_0x164a06=_0x1c0114['parent'],_0x49beb3=_0x1c0114['offset'];!function _0x438dbe(_0x32b946,_0x304a4a,_0x323b4e,_0xd2e1ff){for(let _0x2d4bbb=_0x323b4e;_0x2d4bbb<_0xd2e1ff;_0x2d4bbb++){const _0x14c682=_0x304a4a['getChild'](_0x2d4bbb);_0x14c682['is']('element','$text')?_0x32b946['set'](_0x14c682['getAttribute']('vid'),{'userId':_0x1495c2}):(_0x32b946['set'](_0x14c682['getAttribute']('vid_start'),{'userId':_0x1495c2}),_0x438dbe(_0x32b946,_0x14c682,0x0,_0x14c682['childCount']),_0x32b946['set'](_0x14c682['getAttribute']('vid_end'),{'userId':_0x1495c2}));}}(this['_touched'],_0x164a06,_0x49beb3,_0x49beb3+_0x2c8189['howMany']);}['_handleMergeOperation'](_0x1f11e9){const _0x50cdf7=null===(_0x1f11e9=this['_cloneOperation'](_0x1f11e9,this['_idsRoots']))['_authorId']?null:_0x1f11e9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f9299=_0x1f11e9['targetPosition']['parent'],_0x96fc93=_0x1f11e9['sourcePosition']['parent'],_0x2b2f34=_0x2f9299['getAttribute']('vid_end'),_0x2edb99=_0x96fc93['getAttribute']('vid_start');_0x2f9299['_setAttribute']('vid_end',_0x96fc93['getAttribute']('vid_end')),_0x96fc93['_setAttribute']('vid_end',_0x2b2f34),this['_touched']['set'](_0x2edb99,{'userId':_0x50cdf7}),this['_touched']['set'](_0x2b2f34,{'userId':_0x50cdf7}),_0x1f11e9['_execute']();}['_handleSplitOperation'](_0x1010cf){const _0x496103=null===(_0x1010cf=this['_cloneOperation'](_0x1010cf,this['_idsRoots']))['_authorId']?null:_0x1010cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3854b0=_0x1010cf['graveyardPosition'],_0x5ac274=_0x1010cf['splitPosition']['parent'];_0x1010cf['_execute']();const _0x36bb95=_0x5ac274['getAttribute']('vid_end'),_0x547530=_0x1010cf['insertionPosition']['nodeAfter'];if(_0x3854b0){const _0x251397=_0x547530['getAttribute']('vid_end'),_0x1775a8=_0x5ac274['getAttribute']('vid_end');_0x5ac274['_setAttribute']('vid_end',_0x251397),_0x547530['_setAttribute']('vid_end',_0x1775a8),this['_touched']['set'](_0x5ac274['getAttribute']('vid_end'),{'userId':_0x496103}),this['_touched']['set'](_0x547530['getAttribute']('vid_start'),{'userId':_0x496103});}else{const _0x2a3fcb=this['_revisionId']++,_0x9267db=this['_revisionId']++;_0x5ac274['_setAttribute']('vid_end',_0x2a3fcb),_0x547530['_setAttribute']('vid_start',_0x9267db),_0x547530['_setAttribute']('vid_end',_0x36bb95),this['_touched']['set'](_0x2a3fcb,{'userId':_0x496103}),this['_touched']['set'](_0x9267db,{'userId':_0x496103});}}['_handleMarkerOperation'](_0x201032){if(!_0x201032['affectsData'])return;const _0x1cd6ce=(_0x201032=this['_cloneOperation'](_0x201032,this['_diffRoots']))['oldRange']?_0x201032['oldRange']['root']:null,_0x33bd1a=_0x201032['newRange']?_0x201032['newRange']['root']:null;_0x1cd6ce&&this['_markers']['delete'](_0x201032['name']),_0x33bd1a&&this['_markers']['set'](_0x201032['name'],_0x201032['newRange']['clone']());const _0x1a61fe=null===_0x201032['_authorId']?null:_0x201032['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4662a9=_0x201032['name'];if(!this['_touchedMarkers']['has'](_0x4662a9))return void this['_touchedMarkers']['set'](_0x4662a9,{'range':_0x201032['oldRange'],'userId':_0x1a61fe});const _0x5148ae=this['_touchedMarkers']['get'](_0x4662a9),_0x6fd75=_0x5148ae['range'],_0x143cd7=_0x201032['newRange'];null==_0x6fd75&&null==_0x143cd7||_0x6fd75&&_0x143cd7&&_0x6fd75['isEqual'](_0x143cd7)?this['_touchedMarkers']['delete'](_0x201032['name']):_0x5148ae['userId']=_0x1a61fe;}['_handleRootOperation'](_0x4bb9f4,_0x321499){this['_diffRoots']['has'](_0x4bb9f4['rootName'])?this['_diffRoots']['get'](_0x4bb9f4['rootName'])['_isAttached']=_0x4bb9f4['isAdd']:(this['_diffRoots']['set'](_0x4bb9f4['rootName'],P(_0x4bb9f4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4bb9f4['rootName'],{}),_0x321499&&this['_idsRoots']['set'](_0x4bb9f4['rootName'],P(_0x4bb9f4['rootName'],!0x0)));const _0x317b14=null===_0x4bb9f4['_authorId']?null:_0x4bb9f4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5eae07=this['_touchedRoots']['get'](_0x4bb9f4['rootName']);_0x5eae07&&_0x5eae07['userId']===_0x317b14?this['_touchedRoots']['delete'](_0x4bb9f4['rootName']):this['_touchedRoots']['set'](_0x4bb9f4['rootName'],{'userId':_0x317b14,'isAttached':_0x4bb9f4['isAdd']});}['_handleRootAttributeOperation'](_0x3932a9){const _0x100983=this['_diffRootsAttributes']['get'](_0x3932a9['root']['rootName']);null===_0x3932a9['newValue']?delete _0x100983[_0x3932a9['key']]:_0x100983[_0x3932a9['key']]=_0x3932a9['newValue'];}}function N(_0xf75065){const _0x552df3=P(_0xf75065['rootName'],_0xf75065['isAttached']());for(const _0x19ab54 of _0xf75065['getChildren']()){const _0x287aec=_0x19ab54['_clone'](!0x0);_0x552df3['_appendChild'](_0x287aec);}return _0x552df3;}function P(_0x5e7bc5,_0x2e346c=!0x0){const _0x14124b=new vt();return _0x14124b['rootName']=_0x5e7bc5,_0x14124b['_isAttached']=_0x2e346c,_0x14124b['isAttached']=()=>_0x14124b['_isAttached'],_0x14124b;}function F(_0x4c8b63,_0x279a60,_0x4770d1){const _0xc5945c='elementEnd'==_0x4c8b63['type']?_0x4770d1['createPositionAt'](_0x4c8b63['item'],'end'):_0x4770d1['createPositionBefore'](_0x4c8b63['item']);return _0x4770d1['createPositionFromPath'](_0x279a60,_0xc5945c['path'],_0xc5945c['stickiness']);}function B(_0x1fe13c,_0x5ccceb,_0x1449a7){const _0x30e7a9='elementStart'==_0x1fe13c['type']?_0x1449a7['createPositionAt'](_0x1fe13c['item'],0x0):_0x1449a7['createPositionAfter'](_0x1fe13c['item']);return _0x1449a7['createPositionFromPath'](_0x5ccceb,_0x30e7a9['path'],_0x30e7a9['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d84be,_0x519dec){super(_0x2d84be),this['focusTracker']=new _0x538940(),this['keystrokes']=new _0x2aadf3(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x519dec),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5eb221(this);}['render'](){super['render'](),_0x129106({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3b3f0b=_0x1b6742=>_0x1b6742['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3b3f0b),this['keystrokes']['set']('arrowleft',_0x3b3f0b),this['keystrokes']['set']('arrowup',_0x3b3f0b),this['keystrokes']['set']('arrowdown',_0x3b3f0b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2f7954){this['revisionNameInputView']['fieldView']['element']['value']=_0x2f7954['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4ca7a4){const _0x2cd252=new _0x5aa202(this['locale'],_0x1906be),_0x5c582e=_0x2cd252['fieldView'];_0x5c582e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x22eb25=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4ca7a4&&(_0x22eb25+='\x20('+g(this['locale'],'optional')+')'),(_0x2cd252['label']=_0x22eb25,_0x5c582e['on']('input',()=>{this['revisionNameInputValue']=_0x5c582e['element']['value']['trim']();}),_0x2cd252);}}class f extends _0x4ed480{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1c5689=this['editor'],_0x5de4a0=_0x1c5689['plugins']['get']('RevisionTracker');_0x1c5689['ui']['componentFactory']['add']('revisionHistory',_0x3eac4d=>{const _0x16842b=_0x567abe(_0x3eac4d),_0x4c994f=_0x16842b['panelView']['children'],_0x335949=new _0x127b6a(_0x3eac4d),_0xa72650=new _0x11ea8a(_0x3eac4d),_0x1e231c=new te(_0x3eac4d),_0x145d59=new _0x11ea8a(_0x3eac4d),_0x263991=new te(_0x3eac4d);return _0x16842b['bind']('isEnabled')['to'](_0x5de4a0,'isReady',_0x5de4a0,'isEnabled',_0x1c5689,'isReadOnly',(_0x5928a5,_0x4af3de,_0x2ecaad)=>_0x5928a5&&_0x4af3de&&!_0x2ecaad),_0x16842b['buttonView']['set']({'icon':_0x2c57a2,'label':g(_0x3eac4d,'Revision\x20history'),'tooltip':!0x0}),_0x1e231c['set']({'label':g(_0x3eac4d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1e231c['bind']('isEnabled')['to'](_0x5de4a0,'isReady',_0x5de4a0,'isEnabled',_0x1c5689,'isReadOnly',(_0x2b0ddd,_0x8063c8,_0xd1fb)=>_0x2b0ddd&&_0x8063c8&&!_0xd1fb),_0x1e231c['on']('execute',()=>this['_showDialog']()),_0x263991['set']({'label':g(_0x3eac4d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x263991['bind']('isEnabled')['to'](_0x5de4a0,'isReady',_0x1c5689,'isReadOnly',(_0x5857b8,_0x4829ab)=>_0x5857b8&&!_0x4829ab),_0x263991['on']('execute',()=>{_0x1c5689['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x16842b['isOpen']=!0x1,_0x1c5689['editing']['view']['focus']();}),_0xa72650['children']['add'](_0x1e231c),_0x145d59['children']['add'](_0x263991),_0x335949['role']='menu',_0x335949['items']['addMany']([_0xa72650,_0x145d59]),_0x4c994f['add'](_0x335949),_0x16842b;}),_0x1c5689['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4dd883=this['editor'],_0x33e9ac=_0x4dd883['locale'],_0x492001=new _0x127263(_0x33e9ac),_0x87aefe=new _0xe91b7a(_0x33e9ac);_0x492001['buttonView']['set']({'icon':_0x2c57a2,'label':g(_0x33e9ac,'Revision\x20history')});const _0x31b348=new _0x34d57c(_0x33e9ac,_0x492001),_0x5ce361=new _0x5c7ca5(_0x33e9ac);_0x5ce361['set']({'label':g(_0x33e9ac,'Save\x20current\x20revision')}),_0x5ce361['delegate']('execute')['to'](_0x492001),_0x5ce361['on']('execute',()=>{this['_showDialog']();}),_0x31b348['children']['add'](_0x5ce361),_0x87aefe['items']['add'](_0x31b348);const _0x410ef8=new _0x34d57c(_0x33e9ac,_0x492001),_0x319a8f=new _0x5c7ca5(_0x33e9ac);return _0x319a8f['set']({'label':g(_0x33e9ac,'Open\x20revision\x20history')}),_0x319a8f['delegate']('execute')['to'](_0x492001),_0x319a8f['on']('execute',()=>{_0x4dd883['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x410ef8['children']['add'](_0x319a8f),_0x87aefe['items']['add'](_0x410ef8),_0x492001['panelView']['children']['add'](_0x87aefe),_0x492001;}['_showDialog'](){const _0x13e710=this['editor'],_0x54da01=_0x13e710['locale'],_0x126f31=_0x13e710['plugins']['get']('Dialog'),_0x37a21f=_0x13e710['plugins']['get']('RevisionTracker');function _0x1066a6(_0x24bfd8){_0x13e710['config']['get']('revisionHistory.requireRevisionName')&&''===_0x24bfd8['revisionName']?_0x24bfd8['revisionNameInputView']['errorText']=g(_0x54da01,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x13e710['plugins']['get'](u)['saveRevision']({'name':_0x24bfd8['revisionName']}),_0x126f31['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1066a6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x126f31['show']({'id':'revisionSave','title':g(_0x54da01,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x13e710['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x126f31['hide']()},{'label':g(_0x13e710['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x53e649){_0x53e649['bind']('isEnabled')['to'](_0x37a21f,'isReady',_0x37a21f,'isEnabled',_0x13e710,'isReadOnly',(_0x5498b8,_0xdb7458,_0x4ce3b3)=>_0x5498b8&&_0xdb7458&&!_0x4ce3b3);},'onExecute':()=>_0x1066a6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x413c9b=this['editor'],_0x538733=_0x413c9b['locale'];this['_saveRevisionFormView']=new hs(_0x538733,_0x413c9b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x3449f5,_0x103e17){super(_0x3449f5),this['_model']=_0x103e17,this['changeId']=_0x103e17['id'];const _0x375976=this['bindTemplate'],_0x3a67e4=g(_0x3449f5,_0x103e17['data']['isSuggestion']?'Suggested\x20by':'add'==_0x103e17['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x103e17['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x375976['to']('type',_0x3c269c=>'ck-revision-change__'+_0x3c269c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3a67e4}]},{'text':'\x20'+_0x103e17['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ab981(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x29ed2d){super(),this['id']=_0x29ed2d['id']||_0xf63d01(),this['author']=_0x29ed2d['author'],this['type']=_0x29ed2d['type'],this['data']=_0x29ed2d['data']||{},this['rootName']=_0x29ed2d['rootName'],this['set']('createdAt',_0x29ed2d['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(_0x51ec58,_0xe21b3){this['newRevisionId']=_0x51ec58,this['oldRevisionId']=_0xe21b3,this['changes']=new _0x25bf65();}['_setChanges'](_0x3aa3d0){for(const _0x18a724 of _0x3aa3d0)this['changes']['add'](_0x18a724);}}class m extends _0x4ed480{['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[_0xcee71c,_0x1796c8,I,V];}constructor(_0x2896e1){super(_0x2896e1),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',(_0x2200d8,_0xf57826,_0x2c8ff7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5ec475=>{for(const _0x551d5e of this['editor']['editing']['view']['document']['roots'])_0x2c8ff7?_0x5ec475['removeClass']('ck-editor__editable__overlay',_0x551d5e):_0x5ec475['addClass']('ck-editor__editable__overlay',_0x551d5e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4bbdd7=>null!==_0x4bbdd7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x379a52,_0x36f79c,_0x2aab99)=>_0x379a52&&_0x2aab99?_0x36f79c['changes']['getIndex'](_0x2aab99):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x357e72,_0x533ee9)=>_0x357e72?_0x533ee9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1796c8);}['init'](){const _0x560130=this['editor'],_0x489931=new wt(_0x560130,{'direction':'backward'}),_0x49b284=new wt(_0x560130,{'direction':'forward'});(_0x560130['commands']['add']('showPreviousChange',_0x489931),_0x560130['commands']['add']('showNextChange',_0x49b284),_0x560130['commands']['add']('restoreRevision',new mt(_0x560130)),this['on']('change:numberOfChanges',()=>{_0x489931['refresh'](),_0x49b284['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x560130['enableReadOnlyMode']('revision-viewer'),_0x560130['plugins']['has']('WidgetToolbarRepository'))&&_0x560130['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3cb356){return await this['_utils']['loadRevisionData'](_0x3cb356,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3cb356);}async['getRevisionRootsAttributes'](_0x5e1fb1){return await this['_utils']['loadRevisionData'](_0x5e1fb1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5e1fb1);}async['compare'](_0x507118,_0x29d3cc,_0xd007d=!0x1){if(!this['isEnabled'])return;const _0x481cb3=this['diff'],_0xe7249b=this['repository'],_0x4ab9b9='string'==typeof _0x507118?_0xe7249b['getRevision'](_0x507118):_0x507118,_0x1d2865='string'==typeof _0x29d3cc?_0xe7249b['getRevision'](_0x29d3cc):_0x29d3cc,_0x3196dc=_0x4ab9b9['id'],_0x19d7d7=_0x1d2865?_0x1d2865['id']:null;if(!_0xd007d&&this['diff']&&this['diff']['newRevisionId']===_0x3196dc&&this['diff']['oldRevisionId']===_0x19d7d7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3196dc,_0x19d7d7);const _0x5f134b=this['_getRevisionsRange'](_0x4ab9b9,_0x1d2865,!0x0)['map'](_0x2bb81b=>this['_utils']['loadRevisionData'](_0x2bb81b,this['adapter']));return _0x5f134b['push'](new Promise(_0x32bc19=>{setTimeout(_0x32bc19,0x14);})),Promise['all'](_0x5f134b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xbe8d8d=this['_getDiff'](_0x3196dc,_0x19d7d7);for(const _0x302c83 of _0xbe8d8d['changes'])this['_changeIdToChange']['set'](_0x302c83['id'],_0x302c83);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5aed87=>{for(const _0x56248c of this['editor']['model']['document']['getRootNames']())_0x5aed87['detachRoot'](_0x56248c);for(const _0x5bfced of Object['keys'](_0xbe8d8d['model'])){const _0x5cce46=_0x5aed87['addRoot'](_0x5bfced);for(const _0x4483fe of Object['keys'](_0xbe8d8d['attributes'][_0x5bfced]))_0x5aed87['setAttribute'](_0x4483fe,_0xbe8d8d['attributes'][_0x5bfced][_0x4483fe],_0x5cce46);_0x5aed87['insert'](_0xbe8d8d['model'][_0x5bfced],_0x5cce46,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xbe8d8d['changes'])),this['isReady']=!0x0;})['catch'](_0x1d643b=>{console['error'](_0x1d643b),this['_cleanUp'](),_0x481cb3&&(this['diff']=_0x481cb3),this['isReady']=!0x0;});}['addRevisionData'](_0x49c302,_0x58f22b){const _0x4cc53b=this['repository']['createRevision'](_0x49c302);return _0x4cc53b['on']('_update',(_0x4e651f,_0x4b2199,_0x3e73b4)=>_0x58f22b(_0x4b2199,_0x3e73b4,_0x4cc53b)),this['repository']['addRevision'](_0x4cc53b),_0x4cc53b;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23b45a=>{for(const _0x191d87 of this['editor']['model']['document']['getRootNames']())_0x23b45a['detachRoot'](_0x191d87);});}['_sortAndFilterDiffChanges'](_0xb51523){const _0x34efe2=[],_0x32d566=new Map();for(const _0xf5b055 of this['editor']['model']['document']['getRootNames']()){const _0x55e00f=this['editor']['editing']['view']['getDomRoot'](_0xf5b055);if(!_0x55e00f)continue;const _0x4d8777=_0x55e00f['getClientRects']()['item'](0x0);_0x4d8777&&(_0x34efe2['push'](_0xf5b055),_0x32d566['set'](_0xf5b055,_0x4d8777));}return _0x34efe2['sort']((_0x11b25c,_0x3f8033)=>{const _0x1409e4=_0x32d566['get'](_0x11b25c),_0x3befab=_0x32d566['get'](_0x3f8033);return _0x1409e4['y']-_0x3befab['y']||_0x1409e4['x']-_0x3befab['x'];}),(_0xb51523=_0xb51523['filter'](_0x49a124=>_0x34efe2['includes'](_0x49a124['rootName'])))['sort']((_0x9af47a,_0x28528e)=>_0x34efe2['indexOf'](_0x9af47a['rootName'])-_0x34efe2['indexOf'](_0x28528e['rootName'])),_0xb51523;}['_makeTape'](_0x1debcf){const _0x5a38b1=Array['from'](_0x1debcf['markers'])['filter'](([_0x1cd335,_0x50539a])=>_0x1cd335['startsWith']('revision:')&&!_0x50539a['isCollapsed']),_0x4b447f=Array['from'](this['editor']['model']['createRangeIn'](_0x1debcf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5a38b1['length'])for(const _0x34c442 of _0x4b447f){const [_0x138618,_0x448c53]=_0x5a38b1[0x0],[,_0x4c6d60,_0x181fe3]=_0x138618['split'](':');if(_0x448c53['end']['isEqual'](_0x34c442['nextPosition'])&&_0x5a38b1['shift'](),(_0x34c442['previousPosition']['isEqual'](_0x448c53['start'])||_0x34c442['previousPosition']['isAfter'](_0x448c53['start']))&&('insertion'==_0x4c6d60?_0x34c442['isAdded']={'userId':_0x181fe3}:'deletion'==_0x4c6d60&&(_0x34c442['isRemoved']={'userId':_0x181fe3})),0x0==_0x5a38b1['length'])break;}return _0x4b447f;}['_refreshStartEndIndex'](_0x32d750){const _0x447571=new Map();for(let _0x1f94f0=0x0;_0x1f94f0<_0x32d750['length'];_0x1f94f0++)'text'===_0x32d750[_0x1f94f0]['type']?(_0x32d750[_0x1f94f0]['item']['startIndex']=_0x1f94f0,_0x32d750[_0x1f94f0]['item']['endIndex']=_0x1f94f0):('elementStart'===_0x32d750[_0x1f94f0]['type']?_0x32d750[_0x1f94f0]['item']['startIndex']=_0x1f94f0:'elementEnd'===_0x32d750[_0x1f94f0]['type']&&(_0x32d750[_0x1f94f0]['item']['endIndex']=_0x1f94f0),_0x447571['set'](_0x32d750[_0x1f94f0]['id'],_0x1f94f0));for(const _0xd9269e of _0x447571['values']())'elementStart'===_0x32d750[_0xd9269e]['type']?_0x32d750[_0xd9269e]['item']['endIndex']=_0x447571['get'](_0x32d750[_0xd9269e]['pairId']):'elementEnd'===_0x32d750[_0xd9269e]['type']&&(_0x32d750[_0xd9269e]['item']['startIndex']=_0x447571['get'](_0x32d750[_0xd9269e]['pairId']));}['_processTape'](_0x3f0677){for(let _0x35acbb=0x0;_0x35acbb<_0x3f0677['length'];_0x35acbb++){if('elementStart'===_0x3f0677[_0x35acbb]['type'])_0x3f0677[_0x35acbb]['item']['startIndex']=_0x35acbb;else{if('elementEnd'===_0x3f0677[_0x35acbb]['type']){_0x3f0677[_0x35acbb]['item']['endIndex']=_0x35acbb;const _0x529cc5=_0x3f0677[_0x35acbb]['item']['startIndex'];_0x3f0677[_0x529cc5]['pairId']=_0x3f0677[_0x35acbb]['id'],_0x3f0677[_0x35acbb]['pairId']=_0x3f0677[_0x529cc5]['id'];}else _0x3f0677[_0x35acbb]['item']['startIndex']=_0x35acbb,_0x3f0677[_0x35acbb]['item']['endIndex']=_0x35acbb,_0x3f0677[_0x35acbb]['pairId']=null;}_0x3f0677[_0x35acbb]['markersStart']||(_0x3f0677[_0x35acbb]['markersStart']=[],_0x3f0677[_0x35acbb]['markersEnd']=[]);}}['_markInsertions'](_0x124a02,_0x50e02b){const _0x479bf5=_0x124a02['filter'](_0x43a41c=>!_0x43a41c['isAdded']);for(let _0x4169e5=0x0;_0x4169e5<_0x50e02b['length'];_0x4169e5++)_0x50e02b[_0x4169e5]['isAdded']&&(_0x479bf5[_0x4169e5]['isAdded']=_0x50e02b[_0x4169e5]['isAdded']);}['_getDiff'](_0x4744cb,_0x526234=null){const _0x35f7dc=this['repository']['getRevision'](_0x4744cb),_0x2d0a47=_0x526234?this['repository']['getRevision'](_0x526234):null,_0x463df4=this['_getRevisionsRange'](_0x35f7dc,_0x2d0a47),_0x301d80=_0x463df4[_0x463df4['length']-0x1],_0x420ed0=new Map(),_0x47a63a={'model':{},'attributes':{},'changes':[]},_0xdb6e92=new Set(),_0x5251d6=new Map();for(let _0x8cd65c=_0x463df4['length']-0x1;_0x8cd65c>=0x0;_0x8cd65c--){const _0x28101d=_0x463df4[_0x8cd65c];for(const _0x38bae7 of Object['keys'](_0x28101d['diffData']))if(_0x28101d['diffData'][_0x38bae7]['attachChange']){const _0x29c9f7=_0x28101d['diffData'][_0x38bae7]['attachChange'];_0x29c9f7['isAttached']?(_0xdb6e92['add'](_0x38bae7),_0x5251d6['has'](_0x38bae7)&&_0x5251d6['get'](_0x38bae7)['userId']==_0x29c9f7['userId']?_0x5251d6['delete'](_0x38bae7):_0x5251d6['set'](_0x38bae7,_0x29c9f7)):_0x5251d6['has'](_0x38bae7)?(_0xdb6e92['delete'](_0x38bae7),_0x5251d6['delete'](_0x38bae7)):(_0xdb6e92['add'](_0x38bae7),_0x5251d6['set'](_0x38bae7,_0x29c9f7));}else _0xdb6e92['add'](_0x38bae7);}for(const _0x4cd3e1 of _0xdb6e92){const _0x3f9981=_0x5251d6['has'](_0x4cd3e1)&&!_0x5251d6['get'](_0x4cd3e1)['isAttached'];let _0x33a29c=_0x3f9981?_0x463df4['length']-0x1:0x0;const _0x14e255=_0x3f9981?-0x1:0x1;for(;_0x463df4[_0x33a29c];){const _0x46befe=_0x463df4[_0x33a29c];if(_0x46befe['diffData'][_0x4cd3e1]){const _0x308a4d=_0x3f9981?_0x46befe['diffData'][_0x4cd3e1]['attributesBefore']:_0x46befe['diffData'][_0x4cd3e1]['attributesAfter'];_0x47a63a['attributes'][_0x4cd3e1]=_0x308a4d?_0x1a00a2(_0x308a4d):{};break;}_0x33a29c+=_0x14e255;}}for(const _0x425744 of _0x463df4){_0x425744['model']={};for(const _0x21e59a of _0x425744['authors'])_0x420ed0['set'](_0x21e59a['id'],_0x21e59a);for(const _0x47cb6a of _0xdb6e92){const _0x3bb301=_0x425744['diffData'][_0x47cb6a]?_0x425744['diffData'][_0x47cb6a]['insertions']:'[]',_0x5991d1=_0x425744['diffData'][_0x47cb6a]?_0x425744['diffData'][_0x47cb6a]['deletions']:'[]';_0x425744['model'][_0x47cb6a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3bb301),'deletions':this['_utils']['_makeModelFromViewString'](_0x5991d1)};}}for(const _0x486f5d of _0xdb6e92){let _0x5424c9=null,_0x948f7b=0x0;const _0x54aa63=new Map(Array['from'](_0x35f7dc['model'][_0x486f5d]['insertions']['markers'])['filter'](([_0x536f85])=>!_0x536f85['startsWith']('revision:')));let _0x3cc282=0x0;for(const _0x5b2dd3 of _0x463df4){const _0x9c8045=this['_makeTape'](_0x5b2dd3['model'][_0x486f5d]['insertions']);_0x5b2dd3==_0x35f7dc?(_0x5424c9=_0x9c8045,_0x948f7b=_0x5424c9['length'],_0x5424c9['forEach'](_0x1b5e25=>{_0x1b5e25['id']=_0x3cc282++;}),this['_processTape'](_0x5424c9)):this['_markInsertions'](_0x5424c9,_0x9c8045);const _0x5d8416=_0x5424c9['filter'](_0x128659=>!_0x128659['isAdded'])['map'](_0x428453=>_0x428453['id']);let _0x2e1409=0x0;const _0x2ed81e=this['_makeTape'](_0x5b2dd3['model'][_0x486f5d]['deletions']);_0x2ed81e['forEach'](_0x4bec49=>{_0x4bec49['isRemoved']?_0x4bec49['id']=_0x948f7b++:_0x4bec49['id']=_0x5d8416[_0x2e1409++];}),this['_processTape'](_0x2ed81e),this['_setDistance'](_0x5424c9,'isAdded'),this['_setDistance'](_0x2ed81e,'isRemoved'),_0x5b2dd3==_0x35f7dc&&this['_markMarkers'](_0x5424c9,_0x54aa63),_0x5424c9=this['_joinTapes'](_0x5424c9,_0x2ed81e),this['_refreshStartEndIndex'](_0x5424c9),this['_setDistance'](_0x5424c9,'isRemoved');}_0x5424c9=_0x5424c9['filter'](_0x3d60e0=>!(_0x3d60e0['isAdded']&&_0x3d60e0['isRemoved']));const _0x507eba=new Map(_0x301d80['model'][_0x486f5d]['deletions']['markers']),_0x135137=new Set(_0x54aa63['keys']());for(const _0xa1c9df of _0x507eba['keys']())_0x135137['delete'](_0xa1c9df);this['_markSuggestions'](_0x5424c9,_0x135137),this['_fixObsoleteTags'](_0x5424c9),_0x5424c9=this['_removeMissingPairs'](_0x5424c9),_0x5424c9=this['_markMismatchedRemovedTags'](_0x5424c9),_0x5424c9=this['_removeUnsupportedChanges'](_0x5424c9);const {root:_0x388121,changes:_0xdab562}=this['_makeModelFromTape'](_0x5424c9,_0x420ed0,_0x486f5d);_0x47a63a['model'][_0x486f5d]=_0x388121;const _0x581561=_0x5251d6['get'](_0x486f5d);if(_0x581561){const _0x2d736e=_0x420ed0['get'](_0x581561['userId']),_0x1d962f=new r({'author':_0x2d736e,'type':_0x581561['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x486f5d});_0xdab562['unshift'](_0x1d962f),_0x47a63a['attributes'][_0x486f5d]['revisionHistoryAttachChange']=_0x1d962f['id'];}_0x47a63a['changes']=_0x47a63a['changes']['concat'](_0xdab562);}return _0x47a63a;}['_markMarkers'](_0x1b894b,_0x4c0682){for(let _0x52ad32=0x0;_0x52ad32<_0x1b894b['length'];_0x52ad32++)for(const [_0x47fe30,_0x3a8ed9]of _0x4c0682)!_0x3a8ed9['isCollapsed']&&_0x3a8ed9['start']['isEqual'](_0x1b894b[_0x52ad32]['previousPosition'])&&_0x1b894b[_0x52ad32]['markersStart']['push'](_0x47fe30),_0x3a8ed9['end']['isEqual'](_0x1b894b[_0x52ad32]['nextPosition'])&&_0x1b894b[_0x52ad32]['markersEnd']['push'](_0x47fe30);}['_joinTapes'](_0x116ce4,_0x12e1df){let _0x2f6255=[],_0x396713=0x0,_0x54bff5=0x0;for(;_0x396713<_0x116ce4['length']||_0x54bff5<_0x12e1df['length'];){const _0x3430f8=_0x116ce4[_0x396713]||{},_0x3f2297=_0x12e1df[_0x54bff5]||{};if(_0x3430f8['id']==_0x3f2297['id'])_0x396713++,_0x54bff5++,_0x2f6255['push'](_0x3430f8);else{if(_0x3f2297['isRemoved']&&_0x3430f8['isAdded']){const {commonTape:_0x916dad,iEnd:_0x3a9694,jEnd:_0x291751}=this['_threeWayMerge'](_0x116ce4,_0x396713,_0x12e1df,_0x54bff5);_0x2f6255=_0x2f6255['concat'](_0x916dad),_0x396713=_0x3a9694,_0x54bff5=_0x291751;}else _0x3f2297['isRemoved']?(_0x54bff5++,_0x2f6255['push'](_0x3f2297)):(_0x396713++,_0x2f6255['push'](_0x3430f8));}}return _0x2f6255;}['_markSuggestions'](_0x1450d5,_0x416e03){const _0x40679e=[];for(let _0x24c420=0x0;_0x24c420<_0x1450d5['length'];_0x24c420++){for(let _0x424cb7=0x0;_0x424cb7<_0x1450d5[_0x24c420]['markersStart']['length'];_0x424cb7++){const _0x151ef6=_0x1450d5[_0x24c420]['markersStart'][_0x424cb7];if(!_0x416e03['has'](_0x151ef6))continue;const {group:_0x409d40,type:_0x4cb92d,authorId:_0x2a54be}=_0x4b9239(_0x151ef6);'revision-suggestion'!=_0x409d40||'insertion'!=_0x4cb92d&&'deletion'!=_0x4cb92d||(_0x40679e['unshift']({'type':_0x4cb92d,'name':_0x151ef6,'userId':_0x2a54be}),_0x1450d5[_0x24c420]['markersStart']['splice'](_0x424cb7,0x1),_0x424cb7--);}_0x1a5168(_0x1450d5[_0x24c420]);for(let _0x2392ab=0x0;_0x2392ab<_0x1450d5[_0x24c420]['markersEnd']['length'];_0x2392ab++){const _0x33d5ee=_0x1450d5[_0x24c420]['markersEnd'][_0x2392ab];if(!_0x416e03['has'](_0x33d5ee))continue;const {group:_0x13f184,type:_0x1fef28}=_0x4b9239(_0x33d5ee);if('revision-suggestion'!=_0x13f184||'insertion'!=_0x1fef28&&'deletion'!=_0x1fef28)continue;_0x1450d5[_0x24c420]['markersEnd']['splice'](_0x2392ab,0x1),_0x2392ab--;const _0x56f39f=_0x40679e['findIndex'](_0x54f835=>_0x54f835['name']==_0x33d5ee);_0x56f39f>-0x1&&_0x40679e['splice'](_0x56f39f,0x1);}}function _0x4b9239(_0x332d15){const _0x366835=_0x332d15['split'](':');return{'group':_0x366835[0x0],'type':_0x366835[0x1],'subType':_0x366835['length']>=0x5?_0x366835[0x2]:null,'id':_0x366835['length']<0x5?_0x366835[0x2]:_0x366835[0x3],'authorId':_0x366835['length']<0x5?_0x366835[0x3]:_0x366835[0x4],'markerCount':0x6==_0x366835['length']?_0x366835[0x5]:null};}function _0x1a5168(_0x63a463){for(let _0x1cf27f=0x0;_0x1cf27f<_0x40679e['length'];_0x1cf27f++){if(_0x63a463['isAdded']&&'insertion'==_0x40679e[_0x1cf27f]['type']&&_0x63a463['isAdded']['userId']==_0x40679e[_0x1cf27f]['userId'])return _0x63a463['isAddSuggestion']=_0x40679e[_0x1cf27f],void delete _0x63a463['isAdded'];if(!_0x63a463['isAdded']&&!_0x63a463['isRemoved']&&'deletion'==_0x40679e[_0x1cf27f]['type'])return void(_0x63a463['isRemoveSuggestion']=_0x40679e[_0x1cf27f]);}}}['_setDistance'](_0x45808c,_0x3979a4){let _0x4f8826=0x0,_0x237552=!0x1;const _0x118dce=new Map();for(const _0x4a42bb of _0x45808c)_0x4a42bb[_0x3979a4]?_0x237552&&(_0x4f8826++,_0x237552=!0x1):(_0x4f8826++,_0x237552=!0x0),_0x118dce['set'](_0x4a42bb['id'],_0x4f8826);for(let _0x39d73e=0x0;_0x39d73e<_0x45808c['length'];_0x39d73e++){if('isRemoved'==_0x3979a4&&_0x45808c[_0x39d73e]['isAdded']||'isAdded'==_0x3979a4&&_0x45808c[_0x39d73e]['isRemoved'])continue;if('text'==_0x45808c[_0x39d73e]['type']){_0x45808c[_0x39d73e]['distance']=0x0;continue;}const _0x513b02=_0x118dce['get'](_0x45808c[_0x39d73e]['pairId']),_0x1e03e9=_0x118dce['get'](_0x45808c[_0x39d73e]['id']);_0x45808c[_0x39d73e]['distance']=_0x513b02-_0x1e03e9;}}['_getRevisionsRange'](_0x48943b,_0x3bd4c5,_0x253034=!0x1){const _0x4fc4be=[];let _0x5cec32=this['repository']['getIndex'](_0x48943b),_0x3b5063=this['repository']['getIndex'](_0x3bd4c5);for(-0x1==_0x3b5063&&(_0x3b5063=this['repository']['_revisions']['length'],_0x253034=!0x1);_0x5cec32<_0x3b5063;)_0x4fc4be['push'](this['repository']['getRevision'](_0x5cec32)),_0x5cec32++;return _0x253034&&_0x4fc4be['push'](this['repository']['getRevision'](_0x5cec32)),_0x4fc4be;}['_threeWayMerge'](_0x3e502d,_0x487eb1,_0xee64d1,_0x4f509a){const _0x2d6cde=this['editor']['model']['schema'];let _0x20067c=_0x487eb1;for(;_0x3e502d[_0x20067c]&&_0x3e502d[_0x20067c]['isAdded'];)_0x20067c++;let _0x45703d=_0x4f509a;for(;_0xee64d1[_0x45703d]&&_0xee64d1[_0x45703d]['isRemoved'];)_0x45703d++;_0x31e32d(_0x3e502d,_0x487eb1,_0x20067c),_0x31e32d(_0xee64d1,_0x4f509a,_0x45703d);const _0x10e6f8=_0xee64d1['slice'](_0x4f509a,_0x45703d)['concat'](_0x3e502d['slice'](_0x487eb1,_0x20067c));return _0x10e6f8['sort']((_0x42b378,_0xe2eb0e)=>_0x42b378['side']!=_0xe2eb0e['side']?_0x42b378['side']-_0xe2eb0e['side']:_0x42b378['level']!=_0xe2eb0e['level']?_0x42b378['level']-_0xe2eb0e['level']:_0x42b378['distance']!=_0xe2eb0e['distance']?_0xe2eb0e['distance']-_0x42b378['distance']:!!_0x42b378['isAdded']!=!!_0xe2eb0e['isAdded']?-0x1==_0x42b378['side']||0x0==_0x42b378['side']?_0x42b378['isAdded']?-0x1:0x1:_0x42b378['isAdded']?0x1:-0x1:_0x42b378['index']-_0xe2eb0e['index']),{'commonTape':_0x10e6f8,'iEnd':_0x20067c,'jEnd':_0x45703d};function _0x31e32d(_0x3c8982,_0xcf10c6,_0xfa953e){let _0x4d84c7=-0x1,_0x38179b=Number['POSITIVE_INFINITY'],_0x34d660=!0x0;for(let _0x131ca3=_0xcf10c6;_0x131ca3<_0xfa953e;_0x131ca3++)if(_0x2d6cde['isInline'](_0x3c8982[_0x131ca3]['item'])||(_0x34d660=!0x1),_0x3c8982[_0x131ca3]['item']['startIndex']<_0xcf10c6&&(_0x4d84c7=_0x131ca3),_0x3c8982[_0x131ca3]['item']['endIndex']>=_0xfa953e){_0x38179b=_0x131ca3;break;}_0x34d660&&(_0x4d84c7=_0xfa953e-0x1);for(let _0x43e967=_0xcf10c6;_0x43e967<_0xfa953e;_0x43e967++)_0x3c8982[_0x43e967]['side']=_0x43e967<=_0x4d84c7?-0x1:_0x43e967<_0x38179b?0x0:0x1,_0x3c8982[_0x43e967]['index']=_0x43e967;let _0x3ffcd9=0x0;for(let _0x1dd05a=_0xcf10c6;_0x1dd05a<=_0x4d84c7;_0x1dd05a++)0x0==_0x3c8982[_0x1dd05a]['distance']?_0x3c8982[_0x1dd05a]['level']=_0x3ffcd9:(_0x3ffcd9++,_0x3c8982[_0x1dd05a]['level']=_0x3ffcd9,_0x3ffcd9++);for(let _0x399463=_0xcf10c6;_0x399463<_0xfa953e;_0x399463++)0x0==_0x3c8982[_0x399463]['side']&&(_0x3c8982[_0x399463]['level']=_0x3ffcd9);_0x3ffcd9=0x0;for(let _0x65dec1=_0xfa953e-0x1;_0x65dec1>=_0x38179b;_0x65dec1--)0x0==_0x3c8982[_0x65dec1]['distance']?_0x3c8982[_0x65dec1]['level']=_0x3ffcd9:(_0x3ffcd9--,_0x3c8982[_0x65dec1]['level']=_0x3ffcd9,_0x3ffcd9--);}}['_fixObsoleteTags'](_0x24911a){const _0x3859f4=new Map(),_0x47a8c3=this['editor']['model']['schema'];for(let _0x1a21d6=0x1;_0x1a21d6<_0x24911a['length'];_0x1a21d6++){let _0x1ba455,_0xb19f1c,_0x20c585;const _0x242ee6=_0x24911a[_0x1a21d6],_0x59dd58=_0x24911a[_0x1a21d6-0x1];if('text'==_0x242ee6['type'])continue;if(_0x242ee6['type']!=_0x59dd58['type'])continue;if(!_0x47a8c3['isBlock'](_0x59dd58['item'])||_0x47a8c3['isLimit'](_0x59dd58['item']))continue;if(!_0x47a8c3['isBlock'](_0x242ee6['item'])||_0x47a8c3['isLimit'](_0x242ee6['item']))continue;if((_0x24911a[_0x1a21d6]['isAdded']||_0x24911a[_0x1a21d6]['isAddSuggestion'])&&_0x24911a[_0x1a21d6-0x1]['isRemoved'])_0x1ba455=_0x24911a[_0x1a21d6],_0xb19f1c=_0x24911a[_0x1a21d6-0x1],_0x20c585=_0x1a21d6-0x1;else{if(!_0x24911a[_0x1a21d6]['isRemoved']||!_0x24911a[_0x1a21d6-0x1]['isAdded']&&!_0x24911a[_0x1a21d6-0x1]['isAddSuggestion'])continue;_0x1ba455=_0x24911a[_0x1a21d6-0x1],_0xb19f1c=_0x24911a[_0x1a21d6],_0x20c585=_0x1a21d6;}const _0x3d30f0=_0x1ba455['level']==_0xb19f1c['level'],_0x44b2ff=Math['abs'](_0x1ba455['level'])<Math['abs'](_0xb19f1c['level'])&&0x0==_0xb19f1c['distance'];(_0x3d30f0||_0x44b2ff)&&(_0x3859f4['set'](_0xb19f1c['id'],_0x1ba455['id']),_0x24911a['splice'](_0x20c585,0x1),_0x1a21d6--,_0x1ba455['isAdded']=!0x1);}for(let _0x13a3dd=0x0;_0x13a3dd<_0x24911a['length'];_0x13a3dd++)_0x3859f4['has'](_0x24911a[_0x13a3dd]['pairId'])&&(_0x24911a[_0x13a3dd]['pairId']=_0x3859f4['get'](_0x24911a[_0x13a3dd]['pairId']));}['_removeMissingPairs'](_0xbf2192){const _0x3f18d4=new Set(_0xbf2192['map'](_0x35c505=>_0x35c505['id']));for(let _0x2b5f5e=0x0;_0x2b5f5e<_0xbf2192['length'];_0x2b5f5e++)_0x3f18d4['has'](_0xbf2192[_0x2b5f5e]['pairId'])||0x0==_0xbf2192[_0x2b5f5e]['distance']||(_0xbf2192[_0x2b5f5e]['isIncorrect']=!0x0);return _0xbf2192['filter'](_0x395dc7=>!_0x395dc7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1e2f5a){const _0x13decc=new Set();for(let _0x1e87cb=0x0;_0x1e87cb<_0x1e2f5a['length'];_0x1e87cb++){if(_0x13decc['has'](_0x1e2f5a[_0x1e87cb]['id'])&&_0x1e2f5a[_0x1e87cb]['isRemoved']&&(_0x1e2f5a[_0x1e87cb]['isIncorrect']=!0x0),_0x1e2f5a[_0x1e87cb]['isIncorrect'])continue;if(0x0==_0x1e2f5a[_0x1e87cb]['distance'])continue;if('elementStart'!=_0x1e2f5a[_0x1e87cb]['type'])continue;if(null==_0x1e2f5a[_0x1e87cb]['pairId'])continue;let _0x3c493a=_0x1e87cb+0x1,_0x538bbc=0x0;for(;_0x1e2f5a[_0x3c493a]['id']!=_0x1e2f5a[_0x1e87cb]['pairId'];)'elementStart'==_0x1e2f5a[_0x3c493a]['type']?_0x538bbc++:'elementEnd'==_0x1e2f5a[_0x3c493a]['type']&&_0x538bbc--,_0x3c493a++;if(0x0!=_0x538bbc){if(_0x1e2f5a[_0x1e87cb]['isRemoved'])_0x1e2f5a[_0x1e87cb]['isIncorrect']=!0x0;else{for(;_0x3c493a!=_0x1e87cb;)_0x1e2f5a[_0x3c493a]['isRemoved']&&0x0!=_0x1e2f5a[_0x3c493a]['distance']&&(_0x1e2f5a[_0x3c493a]['isIncorrect']=!0x0,_0x13decc['add'](_0x1e2f5a[_0x3c493a]['pairId'])),_0x3c493a--;}}}return _0x1e2f5a['filter'](_0x4a3958=>!_0x4a3958['isIncorrect']);}['_removeUnsupportedChanges'](_0x27d474){const _0x4c9a3e=this['editor']['model']['schema'];for(let _0x19d803=0x0;_0x19d803<_0x27d474['length'];_0x19d803++){if(!(_0x27d474[_0x19d803]['isAdded']||_0x27d474[_0x19d803]['isAddSuggestion']||_0x27d474[_0x19d803]['isRemoved']||_0x27d474[_0x19d803]['isRemoveSuggestion']))continue;if(0x0==_0x27d474[_0x19d803]['distance'])continue;const _0x1b7dba=_0x27d474[_0x19d803]['item'];_0x4c9a3e['isBlock'](_0x1b7dba)||_0x4c9a3e['isLimit'](_0x1b7dba)||(_0x27d474[_0x19d803]['isAdded']&&delete _0x27d474[_0x19d803]['isAdded'],_0x27d474[_0x19d803]['isAddSuggestion']&&delete _0x27d474[_0x19d803]['isAddSuggestion'],_0x27d474[_0x19d803]['isRemoveSuggestion']&&delete _0x27d474[_0x19d803]['isRemoveSuggestion'],_0x27d474[_0x19d803]['isRemoved']&&(_0x27d474[_0x19d803]['isIncorrect']=!0x0));}return _0x27d474['filter'](_0x2c524a=>!_0x2c524a['isIncorrect']);}['_makeModelFromTape'](_0x3ff3a6,_0x4037d2,_0xfb72dd){const _0x738ca1=new vt(),_0x2f035b=[],_0x12132f=new Map(),_0x5daa7f=this['editor']['model'],_0x2a4e1c=_0x5daa7f['schema'],_0x21df23=[_0x738ca1],_0x4dee51={},_0x4b1400={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x9d8f21=null;const _0x16675=[0x0];for(let _0x4554e7=0x0;_0x4554e7<_0x3ff3a6['length'];_0x4554e7++)if('elementStart'===_0x3ff3a6[_0x4554e7]['type']){_0x3ff3a6[_0x4554e7]['previousPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675);const _0xc526ec=new ut(_0x3ff3a6[_0x4554e7]['item']['name'],_0x3ff3a6[_0x4554e7]['item']['getAttributes']());_0x21df23[0x0]['_appendChild'](_0xc526ec),_0x16675['push'](0x0),_0x21df23['unshift'](_0xc526ec),_0x3ff3a6[_0x4554e7]['nextPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675);}else'elementEnd'===_0x3ff3a6[_0x4554e7]['type']?(_0x21df23['shift'](),_0x3ff3a6[_0x4554e7]['previousPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675),_0x16675['pop'](),_0x16675[_0x16675['length']-0x1]++,_0x3ff3a6[_0x4554e7]['nextPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675)):(_0x3ff3a6[_0x4554e7]['previousPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675),_0x9d8f21?_0x9d8f21['_data']+=_0x3ff3a6[_0x4554e7]['item']['data']:_0x9d8f21=new gt(_0x3ff3a6[_0x4554e7]['item']['data'],_0x3ff3a6[_0x4554e7]['item']['getAttributes']()),_0x3ff3a6[_0x4554e7+0x1]&&'text'===_0x3ff3a6[_0x4554e7+0x1]['type']&&_0x2e9736(_0x9d8f21,_0x3ff3a6[_0x4554e7+0x1]['item'])||(_0x21df23[0x0]['_appendChild'](_0x9d8f21),_0x9d8f21=null),_0x16675[_0x16675['length']-0x1]+=_0x3ff3a6[_0x4554e7]['item']['offsetSize'],_0x3ff3a6[_0x4554e7]['nextPosition']=_0x5daa7f['createPositionFromPath'](_0x738ca1,_0x16675));for(let _0x34b9cc=0x0;_0x34b9cc<_0x3ff3a6['length'];_0x34b9cc++){const _0x5028dc=_0x3ff3a6[_0x34b9cc]['previousPosition'],_0x277b8f=_0x3ff3a6[_0x34b9cc]['nextPosition'];for(const _0x40a832 of _0x3ff3a6[_0x34b9cc]['markersStart'])_0x12132f['set'](_0x40a832,{'start':_0x5028dc,'end':null});_0x583270('isRemoveSuggestion',_0x34b9cc,_0x5028dc,_0x277b8f),_0x583270('isAddSuggestion',_0x34b9cc,_0x5028dc,_0x277b8f),_0x583270('isRemoved',_0x34b9cc,_0x5028dc,_0x277b8f),_0x583270('isAdded',_0x34b9cc,_0x5028dc,_0x277b8f);for(const _0x5b31dd of _0x3ff3a6[_0x34b9cc]['markersEnd']){const _0x445b33=_0x12132f['get'](_0x5b31dd);_0x445b33?_0x445b33['end']=_0x277b8f:_0x12132f['set'](_0x5b31dd,{'start':_0x277b8f,'end':_0x277b8f});}}for(const [_0x30681f,_0x4d6a04]of _0x12132f){const _0x52f16e=this['editor']['model']['createRange'](_0x4d6a04['start'],_0x4d6a04['end']);_0x738ca1['markers']['set'](_0x30681f,_0x52f16e);}return _0x2f035b['sort']((_0x15ea38,_0x24f499)=>{const _0x4f7de3=_0x738ca1['markers']['get']('revision:'+_0x15ea38['id']),_0x4038c4=_0x738ca1['markers']['get']('revision:'+_0x24f499['id']);return _0x4f7de3['start']['isBefore'](_0x4038c4['start'])?-0x1:_0x4f7de3['start']['isAfter'](_0x4038c4['start'])?0x1:_0x4f7de3['end']['isBefore'](_0x4038c4['end'])?-0x1:_0x4f7de3['end']['isAfter'](_0x4038c4['end'])?0x1:'add'===_0x15ea38['type']?-0x1:0x1;}),{'root':_0x738ca1,'changes':_0x2f035b};function _0x583270(_0x567f55,_0x2f06ac,_0x37970e,_0x2e68ca){const _0x46890d=!!_0x3ff3a6[_0x2f06ac][_0x567f55],_0x3a5de3=_0x46890d?_0x3ff3a6[_0x2f06ac][_0x567f55]['userId']:null,_0xd7aca7=_0x2f06ac===_0x3ff3a6['length']-0x1,_0x19714c=_0x4b1400[_0x567f55][0x0],_0x223fae=_0x2a4e1c['isObject'](_0x3ff3a6[_0x2f06ac]['item']);!_0x4dee51[_0x567f55]&&_0x46890d?_0x4dee51[_0x567f55]={'start':_0x37970e,'tapeItem':_0x3ff3a6[_0x2f06ac],'userId':_0x3a5de3,'type':_0x567f55}:_0x4dee51[_0x567f55]&&!_0x46890d?(_0x4dee51[_0x567f55]['end']=_0x37970e,_0x11f240(_0x4dee51[_0x567f55]),_0x4dee51[_0x567f55]=null):_0x4dee51[_0x567f55]&&_0x46890d&&_0x4dee51[_0x567f55]['userId']!==_0x3a5de3&&(_0x4dee51[_0x567f55]['end']=_0x37970e,_0x19714c&&_0x19714c['userId']===_0x4dee51[_0x567f55]['userId']||_0x11f240(_0x4dee51[_0x567f55]),_0x4dee51[_0x567f55]={'start':_0x37970e,'tapeItem':_0x3ff3a6[_0x2f06ac],'userId':_0x3a5de3,'type':_0x567f55}),_0x4dee51[_0x567f55]&&_0x223fae&&('elementStart'!==_0x3ff3a6[_0x2f06ac]['type']||_0x19714c&&_0x19714c['userId']===_0x3a5de3||_0x4b1400[_0x567f55]['unshift']({'userId':_0x3a5de3,'object':_0x3ff3a6[_0x2f06ac]['item'],'change':_0x4dee51[_0x567f55]}),'elementEnd'===_0x3ff3a6[_0x2f06ac]['type']&&_0x19714c&&_0x19714c['object']===_0x3ff3a6[_0x2f06ac]['item']&&(_0x4b1400[_0x567f55]['shift'](),_0x4dee51[_0x567f55]=_0x19714c['change'])),_0x4dee51[_0x567f55]&&_0xd7aca7&&(_0x4dee51[_0x567f55]['end']=_0x2e68ca,_0x11f240(_0x4dee51[_0x567f55]),_0x4dee51[_0x567f55]=null);}function _0x11f240({start:_0x464c23,end:_0x5b5648,tapeItem:_0x41c8ad,userId:_0x2daf46,type:_0x3c3463}){const _0x11109e=_0x41c8ad['item'],_0xe88f58=_0x5daa7f['schema']['isBlock'](_0x11109e)&&!_0x5daa7f['schema']['isLimit'](_0x11109e),_0x45bc81=_0x464c23['nodeAfter']==_0x5b5648['parent']&&_0x5b5648['isAtStart'];if(_0xe88f58&&_0x45bc81)return;const _0x1ed2b9=_0x5daa7f['createRange'](_0x464c23,_0x5b5648),_0x56f10b=_0x4037d2['get'](_0x2daf46),_0x2f46e4=new r({'author':_0x56f10b,'type':'isAdded'==_0x3c3463||'isAddSuggestion'==_0x3c3463?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3c3463||'isRemoveSuggestion'==_0x3c3463},'createdAt':new Date(),'rootName':_0xfb72dd});_0x2f035b['push'](_0x2f46e4),_0x738ca1['markers']['set']('revision:'+_0x2f46e4['id'],_0x1ed2b9);}function _0x2e9736(_0x31b120,_0x145e5b){const _0x3d3d61=_0x31b120['getAttributes'](),_0x188c23=_0x145e5b['getAttributes']();for(const _0xaa67af of _0x3d3d61){if(_0xaa67af[0x1]!==_0x145e5b['getAttribute'](_0xaa67af[0x0]))return!0x1;_0x188c23['next']();}return _0x188c23['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2bfe85=>{const _0x4ff35f=_0x2bfe85['markerName']['split'](':')[0x1],_0x298249=this['_getChangeFromId'](_0x4ff35f);if(!_0x298249)return null;const _0x5a12b7='add'==_0x298249['type']?'insertion':'deletion',_0x289bb6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5a12b7];return _0x298249['data']['isSuggestion']&&_0x289bb6['push']('ck-suggestion-marker-'+_0x5a12b7+'-new'),this['activeChange']==_0x298249&&_0x289bb6['push']('ck-suggestion-marker--active'),{'classes':_0x289bb6,'attributes':{'data-change-id':_0x4ff35f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x41d408=>{_0x41d408['on']('element:pre',(_0x260b6a,_0x33e3ca,_0x10353c)=>{const _0x18bf08=_0x33e3ca['viewItem']['getChild'](0x0);if(!_0x18bf08||!_0x18bf08['is']('element','code'))return;if(!_0x10353c['consumable']['consume'](_0x18bf08,{'attributes':['vid_start','vid_end']}))return;const _0x2cce07=_0x33e3ca['modelRange']['start']['nodeAfter'];_0x10353c['writer']['setAttribute']('vid_start',_0x18bf08['getAttribute']('vid_start'),_0x2cce07),_0x10353c['writer']['setAttribute']('vid_end',_0x18bf08['getAttribute']('vid_end'),_0x2cce07);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x53011e=>{_0x53011e['on']('element',(_0x4689c1,_0x3e18fe,_0x4405e3)=>{if(!_0x4405e3['consumable']['consume'](_0x3e18fe['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e18fe['modelRange']['isCollapsed'])return;const _0x76479d=_0x3e18fe['modelRange']['start']['nodeAfter'];_0x76479d['hasAttribute']('vid_start')||_0x76479d['hasAttribute']('vid')||(_0x4405e3['writer']['setAttribute']('vid_start',_0x3e18fe['viewItem']['getAttribute']('vid_start'),_0x76479d),_0x4405e3['writer']['setAttribute']('vid_end',_0x3e18fe['viewItem']['getAttribute']('vid_end'),_0x76479d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5929a0=>_0x5929a0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ff0cc,[,_0x73874a])=>{['vid_start','vid_end','vid']['includes'](_0x73874a)&&(_0x1ff0cc['return']=!0x0,_0x1ff0cc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3d1c67=>{_0x3d1c67['on']('attribute:vid',(_0x1da356,_0x1dc8b9,_0x996a05)=>{if('\x20'!=_0x1dc8b9['item']['data']||_0x1dc8b9['item']['parent']['maxOffset']>0x1)return;if(!_0x996a05['consumable']['consume'](_0x1dc8b9['item'],_0x1da356['name']))return;const _0x3ca052=_0x996a05['writer'],_0x17aad1=_0x996a05['mapper']['toViewRange'](_0x1dc8b9['range']);_0x3ca052['wrap'](_0x17aad1,_0x3ca052['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5ad770){const _0x337b40=_0x5ad770['plugins']['get']('RevisionViewer');return(_0x145705,_0x471f49,_0x5a5c08)=>{const _0x4737ef=_0x471f49['markerName']['split'](':')[0x1],_0x20e5ec=_0x337b40['_getChangeFromId'](_0x4737ef);if(!_0x20e5ec)return null;const _0x4267e1='add'==_0x20e5ec['type']?'split':'merge';if(!_0x5a5c08['consumable']['test'](_0x471f49['markerRange'],_0x145705['name']))return;const _0x4a6c6e=_0x471f49['markerRange']['getWalker'](),_0x20de11=_0x471f49['markerRange']['start'],_0xd190aa=_0x5ad770['model']['schema'];let _0x4eabe9=null,_0xb3bfad=null,_0x8d15e5=!0x1,_0x255658=!0x1;for(const _0x4eb18d of _0x4a6c6e){const _0x38180a=_0x4eb18d['item'];_0x8d15e5=_0x8d15e5||_0xd190aa['isContent'](_0x38180a);const _0x3b5996=_0x5a5c08['mapper']['toViewElement'](_0x38180a);if(_0x3b5996&&_0x3b5996['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4eb18d['type']&&(_0xd190aa['isBlock'](_0x38180a)&&!_0xd190aa['isLimit'](_0x38180a)&&(_0x38180a['nextSibling']||_0x20de11['isAtEnd']?_0x4eabe9&&_0x4eabe9['parent']==_0x38180a||(_0x4eabe9=_0x38180a,_0x29dfdd(_0x4eb18d['previousPosition']),_0x255658=!0x0):_0xb3bfad=_0xb3bfad||_0x4eb18d['previousPosition']));}function _0x29dfdd(_0x79378b){const _0x422c84=_0x5a5c08['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4267e1}),_0x5a250d=_0x5a5c08['mapper']['toViewPosition'](_0x79378b);_0x20e5ec['data']['isSuggestion']&&_0x5a5c08['writer']['addClass']('ck-suggestion-marker-'+_0x4267e1+'-new',_0x422c84),_0x337b40['activeChange']==_0x20e5ec&&_0x5a5c08['writer']['addClass']('ck-suggestion-marker--active',_0x422c84),_0x5a5c08['writer']['insert'](_0x5a250d,_0x422c84),_0x5a5c08['mapper']['bindElementToMarker'](_0x422c84,_0x471f49['markerName']);}_0x8d15e5||_0x255658||!_0xb3bfad||_0x29dfdd(_0xb3bfad);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2ceb18,_0x31c0a3,_0x3fea37)=>{const _0x39c88b=_0x3fea37['mapper']['markerNameToElements'](_0x31c0a3['markerName']);if(_0x39c88b){for(const _0x312b83 of _0x39c88b)(_0x312b83['hasClass']('ck-suggestion-marker-split')||_0x312b83['hasClass']('ck-suggestion-marker-merge'))&&(_0x3fea37['mapper']['unbindElementFromMarkerName'](_0x312b83,_0x31c0a3['markerName']),_0x3fea37['writer']['remove'](_0x312b83));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f787a,_0x57ef44,_0x23e6aa)=>{const _0x110891=_0x57ef44['markerName']['split'](':')[0x1],_0xe4a26d=this['_getChangeFromId'](_0x110891);if(!_0xe4a26d)return null;const _0x2927b5='add'==_0xe4a26d['type']?'split':'merge';if(_0x23e6aa['consumable']['test'](_0x57ef44['markerRange'],_0x2f787a['name']))for(const _0x27f859 of _0x57ef44['markerRange']['getItems']()){if(!_0x27f859['is']('element','softBreak'))continue;const _0x1cb2ed=_0x23e6aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2927b5}),_0x515e87=_0x23e6aa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x27f859));_0xe4a26d['data']['isSuggestion']&&_0x23e6aa['writer']['addClass']('ck-suggestion-marker-'+_0x2927b5+'-new',_0x1cb2ed),this['activeChange']==_0xe4a26d&&_0x23e6aa['writer']['addClass']('ck-suggestion-marker--active',_0x1cb2ed),_0x23e6aa['writer']['insert'](_0x515e87,_0x1cb2ed),_0x23e6aa['mapper']['bindElementToMarker'](_0x1cb2ed,_0x57ef44['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2a0f90=>{for(const _0x941df6 of this['editor']['model']['document']['getRootNames']()){const _0x5ea531=this['editor']['model']['document']['getRoot'](_0x941df6),_0x3e25f1=this['editor']['editing']['view']['document']['getRoot'](_0x941df6);if(_0x3e25f1){const _0x1b76ce=_0x5ea531['getAttribute']('revisionHistoryAttachChange');if(_0x2a0f90['removeAttribute']('data-change-id',_0x3e25f1),_0x2a0f90['removeClass']('ck-revision-history-root-add',_0x3e25f1),_0x2a0f90['removeClass']('ck-revision-history-root-remove',_0x3e25f1),_0x2a0f90['removeClass']('ck-revision-history-root--active',_0x3e25f1),_0x1b76ce){const _0x56b70d=this['_getChangeFromId'](_0x1b76ce);if(!_0x56b70d)return null;_0x2a0f90['setAttribute']('data-change-id',_0x1b76ce,_0x3e25f1),_0x2a0f90['addClass']('ck-revision-history-root-'+_0x56b70d['type'],_0x3e25f1),this['activeChange']==_0x56b70d&&_0x2a0f90['addClass']('ck-revision-history-root--active',_0x3e25f1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xb17926=>'revision-comment:'+_0xb17926,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x18f63a=>'revision-suggestion:'+_0x18f63a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x537998=>({'name':'suggestion:'+_0x537998,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x264625=>{const _0x3c7fa1=_0x264625['markerName']['split'](':')[0x1];return'insertion'!=_0x3c7fa1&&'deletion'!=_0x3c7fa1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3c7fa1]};}}),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',(_0x1e7f4a,_0x378563,_0x5383d9)=>{const _0x1d4180=_0x5383d9['mapper']['markerNameToElements'](_0x378563['markerName']);if(_0x1d4180){for(const _0x5edbd5 of _0x1d4180)_0x5edbd5['is']('uiElement')&&(_0x5383d9['mapper']['unbindElementFromMarkerName'](_0x5edbd5,_0x378563['markerName']),_0x5383d9['writer']['remove'](_0x5edbd5));}},{'priority':'high'});}['_getChangeFromId'](_0x18fb65){return this['_changeIdToChange']['get'](_0x18fb65);}['_getViewForChange'](_0x2ceccc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2ceccc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5f3748,_0x1378de,_0x44136a,_0x4c45b8)=>{_0x4c45b8&&this['_balloon']['remove'](_0x4c45b8),_0x44136a&&(this['_balloon']['add']({'view':_0x44136a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x235150=this['editor']['editing'],_0x1fb012=this['_getChangeFromId'](_0x44136a['changeId']);let _0x55a2c5;if(_0x1fb012['data']['isOnRoot']){const _0xd1a279=_0x235150['view']['getDomRoot'](_0x1fb012['rootName']);_0x55a2c5=Array['from'](_0xd1a279['getClientRects']());}else{const _0x598fc7=this['editor']['model']['markers']['get']('revision:'+_0x44136a['changeId']);_0x55a2c5=Array['from'](_0x235150['mapper']['markerNameToElements'](_0x598fc7['name']))['map'](_0x60bbda=>_0x235150['view']['domConverter']['mapViewToDom'](_0x60bbda))['map'](_0x1faeef=>Array['from'](_0x1faeef['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x55a2c5[0x0];return _0x55a2c5['find'](_0x31f769=>_0x31f769['top']-0x3<=this['_activeViewTarget']['y']&&_0x31f769['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x31f769['left']-0x3<=this['_activeViewTarget']['x']&&_0x31f769['right']+0x3>=this['_activeViewTarget']['x'])||_0x55a2c5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4108d9,_0x81a1de,_0x184b7a,_0x1e485f)=>{this['activeView']=_0x184b7a?this['_getViewForChange'](_0x184b7a):null,this['editor']['model']['change'](()=>{const _0x2105e1=this['editor']['editing'];_0x1e485f&&(_0x1e485f['data']['isOnRoot']?_0x2105e1['view']['change'](_0x20bd33=>{_0x20bd33['removeClass']('ck-revision-history-root--active',_0x2105e1['view']['document']['getRoot'](_0x1e485f['rootName']));}):_0x2105e1['reconvertMarker']('revision:'+_0x1e485f['id'])),_0x184b7a&&(_0x184b7a['data']['isOnRoot']?_0x2105e1['view']['change'](_0x1210c2=>{_0x1210c2['addClass']('ck-revision-history-root--active',_0x2105e1['view']['document']['getRoot'](_0x184b7a['rootName']));}):_0x2105e1['reconvertMarker']('revision:'+_0x184b7a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4058dd,_0x4f121f)=>{if(this['activeChange'])return;const _0x107796=this['_findChangeIdFromDomTarget'](_0x4f121f['target']),_0x4c170d=this['_changeIdToChange']['get'](_0x107796);_0x4c170d?(this['_activeViewTarget']={'x':_0x4f121f['domEvent']['x'],'y':_0x4f121f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4c170d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4f33c5,_0x43c800)=>{const _0x307c27=this['_findChangeIdFromDomTarget'](_0x43c800['target']),_0x49378b=this['_changeIdToChange']['get'](_0x307c27);_0x49378b?(this['_activeViewTarget']={'x':_0x43c800['domEvent']['x'],'y':_0x43c800['domEvent']['y']},_0x49378b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x49378b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x104264){do{const _0x218541=_0x104264['getAttribute']('data-change-id');if(_0x218541)return _0x218541;_0x104264=_0x104264['parent'];}while(_0x104264);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5afe93=>{for(const _0x2feed4 of this['editor']['model']['markers'])_0x5afe93['removeMarker'](_0x2feed4);});}}function X(_0x537f3f,_0x2a1c0f){return(_0x379d85,_0x87c43e,_0x3fce10)=>{if(!_0x3fce10['consumable']['test'](_0x87c43e['markerRange'],_0x379d85['name']))return;const _0x3acdb1=_0x87c43e['markerRange']['getWalker'](),_0x499ef5=_0x87c43e['markerRange']['start'],_0x4c9b2f=_0x537f3f['model']['schema'];let _0x3805ee=null,_0x2001ab=null,_0x36f3a6=!0x1,_0x23a67a=!0x1;for(const _0x4c48a3 of _0x3acdb1){const _0xc89ee6=_0x4c48a3['item'];_0x36f3a6=_0x36f3a6||_0x4c9b2f['isContent'](_0xc89ee6);const _0x2d8753=_0x3fce10['mapper']['toViewElement'](_0xc89ee6);if(_0x2d8753&&_0x2d8753['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c48a3['type']&&(_0x4c9b2f['isBlock'](_0xc89ee6)&&!_0x4c9b2f['isLimit'](_0xc89ee6)&&(_0xc89ee6['nextSibling']||_0x499ef5['isAtEnd']?_0x3805ee&&_0x3805ee['parent']==_0xc89ee6||(_0x3805ee=_0xc89ee6,_0x240b89(_0x4c48a3['previousPosition']),_0x23a67a=!0x0):_0x2001ab=_0x2001ab||_0x4c48a3['previousPosition']));}function _0x240b89(_0x5043d3){const _0x5e6684=_0x3fce10['mapper']['toViewPosition'](_0x5043d3),_0x19e898=_0x3fce10['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2a1c0f});_0x3fce10['writer']['insert'](_0x5e6684,_0x19e898),_0x3fce10['mapper']['bindElementToMarker'](_0x19e898,_0x87c43e['markerName']);}_0x36f3a6||_0x23a67a||!_0x2001ab||_0x240b89(_0x2001ab);};}class mt extends _0x11b588{constructor(_0x5f494d){super(_0x5f494d);const _0x1336f6=_0x5f494d['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1336f6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1336f6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5a3192=this['editor'],_0x5c6fd9=_0x5a3192['plugins']['get'](m),_0x718c76=_0x5c6fd9['isReady']?_0x5c6fd9['diff']['newRevisionId']:null;_0x5a3192['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x718c76);}['refresh'](){const {isReady:_0x506660,isEnabled:_0x14e2cc,repository:_0x5cf5e0,diff:_0x3a0c39}=this['editor']['plugins']['get'](m),_0x22368c=_0x3a0c39&&_0x5cf5e0['getLaterVisibleRevision'](_0x3a0c39['newRevisionId']);this['isEnabled']=_0x506660&&_0x14e2cc&&Boolean(_0x22368c);}}class wt extends _0x11b588{['_step'];constructor(_0x1fdfff,{direction:_0x246838}){super(_0x1fdfff);const _0x57d3d0=_0x1fdfff['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x246838?0x1:-0x1,this['listenTo'](_0x57d3d0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x57d3d0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x57d3d0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xc690ba=this['editor'],_0x211265=_0xc690ba['plugins']['get'](m),{isNavigationMode:_0x1458ca,currentChangeNumber:_0x257e3f}=_0x211265;let _0x20f511;if(_0x211265['activeChange']=_0x1458ca?_0x211265['diff']['changes']['get'](_0x257e3f+this['_step']):_0x211265['diff']['changes']['first'],_0x211265['activeChange']['data']['isOnRoot'])_0x20f511=_0xc690ba['editing']['view']['getDomRoot'](_0x211265['activeChange']['rootName']);else{const _0x5caa46=_0xc690ba['model']['markers']['get']('revision:'+_0x211265['activeChange']['id']);_0x20f511=_0x35b60c(_0xc690ba['editing'],_0x5caa46);}_0x3d8103({'target':_0x20f511,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5ad3c5,currentChangeNumber:_0x6fcb71,numberOfChanges:_0x25db12,isReady:_0x5ec61a,isEnabled:_0x4e9593}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4e9593&&_0x5ec61a&&_0x25db12)&&(!_0x5ad3c5||(0x1===this['_step']?_0x6fcb71<_0x25db12-0x1:_0x6fcb71>0x0));}}class _i extends ts{constructor(_0x126252){super(_0x126252);const _0x4e8242=this['bindTemplate'],_0x1eaef3=new te(_0x126252),_0x5dd792=new te(_0x126252);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',(_0x4e1f15,_0x18fbc1)=>_0x4e1f15&&_0x18fbc1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3e63c0,_0xf2f27d,_0x34bfc6,_0x19ac8b)=>{if(!_0x3e63c0)return g(_0x126252,'Loading...');if(!_0x34bfc6)return g(_0x126252,'No\x20changes');const _0x4d442b=g(_0x126252,'NUMBER_OF_CHANGES',_0x34bfc6);return _0x19ac8b?g(_0x126252,'X_OF_Y_CHANGES',[_0xf2f27d+0x1,_0x34bfc6]):_0x4d442b;}),_0x1eaef3['set']({'label':g(_0x126252,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x251dbe}),_0x5dd792['set']({'label':g(_0x126252,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4f0fc5}),_0x1eaef3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5dd792['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1eaef3['on']('execute',()=>this['fire']('execute','backward')),_0x5dd792['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',_0x4e8242['if']('_isStatusLabelVisible','ck-hidden',_0x9557b1=>!_0x9557b1)]},'children':[{'text':_0x4e8242['to']('isNavigationMode',_0xe337ad=>_0xe337ad?g(_0x126252,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x126252,'Total')+':\x20')}]},{'text':_0x4e8242['to']('_statusText')}]},new _0x158e14(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1eaef3,_0x5dd792]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4ed480{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46a1ca=this['editor']['editing']['view'];_0x46a1ca['change'](_0x5ec339=>{for(const _0x1c8921 of _0x46a1ca['document']['roots'])_0x5ec339['addClass'](le,_0x1c8921);});}['hide'](){const _0x5e1d05=this['editor']['editing']['view'];_0x5e1d05['change'](_0x5106c8=>{for(const _0xc1ccf1 of _0x5e1d05['document']['roots'])_0x5106c8['removeClass'](le,_0xc1ccf1);});}}class R extends _0x4ed480{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x4eb45b=this['editor'],_0x25d10d=_0x4eb45b['plugins']['get'](m),_0x2a7248=_0x4eb45b['plugins']['get'](ge);_0x4eb45b['ui']['componentFactory']['add']('exitToEditing',_0x47bc64=>{const _0x57699d=new te(_0x47bc64);return _0x57699d['set']({'label':g(_0x47bc64,'Back\x20to\x20editing'),'icon':_0x22d14f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x57699d,'execute',()=>{_0x4eb45b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x57699d;}),_0x4eb45b['ui']['componentFactory']['add']('restoreRevision',_0x5ab365=>{const _0xeead89=new te(_0x5ab365);return _0xeead89['set']({'label':g(_0x5ab365,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xeead89['bind']('isEnabled')['to'](_0x4eb45b['commands']['get']('restoreRevision')),this['listenTo'](_0xeead89,'execute',()=>_0x4eb45b['execute']('restoreRevision')),_0xeead89;}),_0x4eb45b['ui']['componentFactory']['add']('changesNavigation',_0x2322c9=>{const _0x3ab2f7=new _i(_0x2322c9),_0x2ec1f6=_0x4eb45b['commands']['get']('showPreviousChange'),_0x2e668e=_0x4eb45b['commands']['get']('showNextChange');return _0x3ab2f7['bind']('isBackwardNavigationEnabled')['to'](_0x2ec1f6,'isEnabled'),_0x3ab2f7['bind']('isForwardNavigationEnabled')['to'](_0x2e668e,'isEnabled'),_0x3ab2f7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x25d10d),this['listenTo'](_0x3ab2f7,'execute',(_0x47a0ca,_0x1fe08d)=>{_0x4eb45b['execute']('forward'===_0x1fe08d?'showNextChange':'showPreviousChange');}),_0x3ab2f7;}),_0x2a7248['show'](),_0x25d10d['on']('change:isReady',(_0xd37279,_0x89751e,_0x1a393f)=>{_0x1a393f?_0x2a7248['hide']():_0x2a7248['show']();});}}class at extends _0x5aa202{['_resizeObserver']=null;constructor(_0x35d344,_0x338312){super(_0x35d344,_0x338312);const _0x82286e=this['bindTemplate'];this['set']({'label':g(_0x35d344,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x35d344,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x82286e['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 _0x7d1f72=this['fieldView']['element'];this['_tooltipString']=_0x7d1f72['scrollWidth']>_0x7d1f72['clientWidth']&&_0x7d1f72['value']||'';}}class si extends ts{constructor(_0x22e23d,_0x1e52fc,_0x80bd52){super(_0x22e23d);const _0x2b6f25=new _0x270eb5();_0x2b6f25['set']({'content':_0x2094dc,'viewBox':'0\x200\x2011\x2010'});const _0x202a92=['ck','ck-revision-history-sidebar__revision-author'];_0x80bd52&&_0x202a92['push']('ck-revision-history-sidebar__revision-author_creator');const _0x47323e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x22e23d,_0x80bd52?'Revision\x20creator':'Revision\x20author')},'children':[_0x2b6f25,_0x1e52fc['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x202a92},'children':_0x47323e});}}function oi(_0x3fbcbc,_0x3df0a6){const _0x44c55e=_0x3fbcbc['bindTemplate'],_0x3dfa61=_0x3fbcbc['locale'],_0x49f506=_0x567abe(_0x3dfa61);_0x49f506['panelPosition']='sw';const _0x5c53ee=function(_0x39c8fc,_0x5913d1){const _0x3bbf59=function(_0x36d2fc,_0x2f26f2){const _0x22643a=_0x36d2fc['locale'],_0x51c971={'Compare\x20against\x20selected':g(_0x22643a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x22643a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x22643a,'Restore\x20this\x20revision')};return _0x2f26f2['map'](_0x1452cb=>{const _0x1316d5=_0x51c971[_0x1452cb['name']];return _0x1316d5&&_0x1316d5!==_0x1452cb['name']&&(_0x1452cb['name']=_0x1316d5),_0x1452cb;});}(_0x39c8fc,_0x5913d1),_0x469098=new _0x25bf65();for(const _0xa91665 of _0x3bbf59){const _0x3af3d1={'type':'button','model':new to({'label':_0xa91665['name'],'class':_0xa91665['class'],'withText':!0x0,'role':'menuitem','_action':_0xa91665['action']})};_0x3af3d1['model']['bind']('isEnabled')['to'](_0x39c8fc,'isActionsDropdownOpen',_0x2e3eb7=>'function'!=typeof _0xa91665['isEnabled']||(!_0x2e3eb7||_0xa91665['isEnabled'](_0x39c8fc))),_0x469098['add'](_0x3af3d1);}return _0x469098;}(_0x3fbcbc,_0x3df0a6);return _0x3fbcbc['bind']('isActionsDropdownOpen')['to'](_0x49f506,'isOpen'),_0x49f506['buttonView']['set']({'label':g(_0x3dfa61,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21bfd9}),_0x49f506['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x44c55e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x44c55e['to'](_0x590c1b=>_0x590c1b['stopPropagation']())}}),_0x49f506['on']('execute',_0x31379a=>{_0x3fbcbc['isReady']&&'function'==typeof _0x31379a['source']['_action']&&_0x31379a['source']['_action'](_0x3fbcbc);}),_0x4d26b3(_0x49f506,_0x5c53ee,{'role':'menu'}),_0x49f506['listenTo'](_0x3fbcbc,'change:isActionsDropdownOpen',(_0x3deb79,_0x2cfd2e,_0x5347af)=>{if(_0x5347af)for(const _0x583ace of _0x49f506['listView']['items']){const _0x1b272b=_0x583ace['children']['first'],_0x42743d=_0x3df0a6['find'](_0x203642=>_0x203642['action']===_0x1b272b['_action'])['isVisible'];_0x583ace['isVisible']=void 0x0===_0x42743d||_0x42743d(_0x3fbcbc);}}),_0x49f506;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x571afc,_0x46b716,_0x2d1630,_0x1402ae){super(_0x571afc);const _0x405fa1=this['bindTemplate'],_0x38b4ff=function(_0x277242,_0xba2876){const _0x15f258=Array['from'](_0xba2876['authors'])['filter'](_0x3a29b0=>_0x3a29b0!=_0xba2876['creator']);return _0xba2876['creator']&&_0x15f258['unshift'](_0xba2876['creator']),_0x15f258['map'](_0x39d263=>new si(_0x277242,_0x39d263,_0x39d263==_0xba2876['creator']));}(_0x571afc,_0x46b716);this['id']=_0x46b716['id'],this['_revision']=_0x46b716,this['_requireRevisionName']=_0x1402ae,this['bind']('name','createdAt')['to'](_0x46b716),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2f4ea8=>{return _0x42d229=_0x571afc['uiLanguage'],(_0x14d733=_0x2f4ea8)['toLocaleDateString'](_0x42d229,{'month':'long','day':'numeric'})+',\x20'+_0x14d733['toLocaleTimeString'](_0x42d229,{'hour':'numeric','minute':'numeric'});var _0x42d229,_0x14d733;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x571afc,_0x1906be),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5e0355=>_0x5e0355||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x379545,_0x2af6c3)=>_0x379545&&_0x2af6c3),this['revisionActionsView']=_0x2d1630&&_0x2d1630['length']?oi(this,_0x2d1630):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x405fa1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x405fa1['if']('isEnabled','ck-disabled',_0x18a075=>!_0x18a075),_0x405fa1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x405fa1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x405fa1['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':_0x405fa1['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':_0x38b4ff}]},this['revisionActionsView']],'on':{'click':_0x405fa1['to'](_0x133687=>{_0x133687['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xb35284=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xb35284,'change',()=>{this['_requireRevisionName']&&!_0xb35284['value']||this['fire']('setName',{'id':this['id'],'name':_0xb35284['value']}),_0xb35284['value']||(_0xb35284['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x1289e9,_0x192553){const _0x665cb3=_0x50a78f['fromJSDate'](_0x1289e9)['setLocale'](_0x192553),_0x4d3f14=_0x50a78f['local'](),_0x2731a2=_0x4d3f14['minus']({'days':0x1})['startOf']('day');let _0x35db03,_0x40127b;return _0x665cb3['hasSame'](_0x4d3f14,'day')?(_0x35db03=_0x665cb3['startOf']('day')['toJSDate'](),_0x40127b=_0x665cb3['toRelativeCalendar']()):_0x665cb3['hasSame'](_0x2731a2,'day')?(_0x35db03=_0x2731a2['toJSDate'](),_0x40127b=_0x665cb3['toRelativeCalendar']()):_0x665cb3['hasSame'](_0x4d3f14,'week')?(_0x35db03=_0x665cb3['startOf']('week')['toJSDate'](),_0x40127b=_0x665cb3['weekdayLong']||''):_0x665cb3['hasSame'](_0x4d3f14,'year')?(_0x35db03=_0x665cb3['startOf']('month')['toJSDate'](),_0x40127b=_0x665cb3['monthLong']||''):(_0x35db03=_0x665cb3['startOf']('year')['toJSDate'](),_0x40127b=String(_0x665cb3['year'])),{'startDate':_0x35db03,'localizedPeriodName':_0x40127b};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58e82d,_0x453ba1,_0x26eb1b,_0x4889b1){super(_0x58e82d);const _0x36fb44=ai(_0x453ba1,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x453ba1,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x26eb1b,this['_requireRevisionName']=_0x4889b1,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':_0x36fb44}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x45d618){const _0xb1468b=new hi(this['locale'],_0x45d618,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xb1468b);}['removeRevision'](_0x2cc490){const _0x51d98e=this['revisionViews']['find'](_0x5d5376=>_0x5d5376['id']===_0x2cc490['id']);this['revisionViews']['remove'](_0x51d98e);}}class as extends ts{constructor(_0x406758){super(_0x406758);const _0x2a20f4=new _0x270eb5();_0x2a20f4['content']=_0x2c57a2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2a20f4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x406758,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1d38e1,_0x5cb222,_0x33fd75,_0x5156a3){super(_0x1d38e1);const _0x54ab95=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5cb222,this['_revisionActions']=_0x33fd75,this['_requireRevisionName']=_0x5156a3,this['on']('select',(_0x354fc4,_0x399188)=>{this['fire']('revisionSelected',_0x399188);}),this['on']('setName',(_0x4b3495,_0x5c5b13)=>{this['fire']('revisionSetName',_0x5c5b13);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1d38e1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x54ab95['if']('isEnabled','ck-disabled',_0x20e308=>!_0x20e308)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x55eb7d of this['_revisions'])this['_addRevision'](_0x55eb7d);this['_revisions']['on']('add',(_0x38d08b,_0x3e02f5)=>{this['_addRevision'](_0x3e02f5);}),this['_revisions']['on']('remove',(_0x5b61ee,_0x5eb05b)=>{this['_removeRevision'](_0x5eb05b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x59d089=>_0x59d089['revisionViews']['map'](_0x29c7ae=>_0x29c7ae))['flat']();}['selectRevision'](_0x4593fb){for(const _0x5e68b9 of this['revisionViews'])_0x4593fb&&_0x4593fb['id']===_0x5e68b9['id']?_0x5e68b9['select']():_0x5e68b9['deselect']();}['highlightRevisions'](_0x14ba7e){for(const _0x35bc72 of this['revisionViews'])_0x14ba7e['some'](({id:_0x5cfed3})=>_0x5cfed3===_0x35bc72['id'])?_0x35bc72['highlight']():_0x35bc72['unhighlight']();}['_addRevision'](_0x4818c7){const _0x456bbc=ai(_0x4818c7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5a1084=this['timePeriodViews']['get'](0x0);_0x5a1084&&_0x5a1084['startDate']['getTime']()===_0x456bbc['getTime']()||(_0x5a1084=new di(this['locale'],_0x456bbc,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5a1084)),_0x5a1084['addRevision'](_0x4818c7);}['_removeRevision'](_0x15ad46){const _0x194061=ai(_0x15ad46['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x194061)['removeRevision'](_0x15ad46);}['_getTimePeriodViewByStartDate'](_0x822d1d){return this['timePeriodViews']['find'](_0x150c48=>_0x150c48['startDate']['getTime']()===_0x822d1d['getTime']());}}class d extends _0x4ed480{['_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
|
-
_0xbeea5a(_0x3dfc7f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1474b7,_0x3c06ce){super(_0x3c06ce),this['sourceElement']=_0x1474b7,this['model']['document']['createRoot']();const _0x48a714=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x48a714);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x49eabf,_0x4f8b61){const _0x20a9c8=new this(_0x49eabf,_0x4f8b61);return await _0x20a9c8['initPlugins'](),await _0x20a9c8['ui']['init'](_0x49eabf),await _0x20a9c8['data']['init'](_0x20a9c8['config']['get']('initialData')||''),_0x20a9c8['fire']('ready'),_0x20a9c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x506da8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb45747){function _0xed1cbf(_0x258024){return _0x258024['map'](_0x595074=>String['fromCharCode'](_0x595074))['join']('');}super(_0xb45747),this['result']='end',_0xb45747[_0xed1cbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xed1cbf([0x76,0x69,0x65,0x77])][_0xed1cbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xed1cbf([0x61,0x75,0x74,0x6f]),_0xb45747[_0xed1cbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xed1cbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xed1cbf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xed1cbf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xed1cbf([0x6f,0x6b])});}}class k extends _0x506da8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x31c655){if(super(_0x31c655),!this['editor']['config']['get']('revisionHistory'))throw new _0xe12093('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd53261=>this['_showRevisionViewer']({..._0xd53261,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1ad3f6=>this['_closeRevisionViewer'](_0x1ad3f6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x381ec9=>this['_restoreRevision'](_0x381ec9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x14494b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x14494b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x481f67){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x481f67);}['getRevision'](_0x3caad6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3caad6);}['getRevisions'](_0x3253f1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3253f1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x74e1f3=this['editor'],_0x40307=_0x2e9595(_0x74e1f3,p),_0x56fc38=_0x74e1f3['plugins']['get']('RevisionTracker'),_0x49fa2f=_0x74e1f3['plugins']['get']('Users')['users'];return _0x40307['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40307['lazyRoots'],(_0x40307['plugins']['push'](_t,m,R,class extends _0x506da8{static get['requires'](){return[m,'Users'];}['init'](){const _0x5eab95=this['editor']['plugins']['get']('Users');for(const _0x368ad9 of _0x49fa2f)_0x368ad9['isAnonymous']||_0x5eab95['getUser'](_0x368ad9['id'])||_0x5eab95['addUser'](_0x368ad9);const _0x1cc9dc=_0x56fc38['repository']['getRevisions']();let _0xce30ea=null;const _0x2bda01=this['editor']['plugins']['get']('RevisionViewer');_0x2bda01['adapter']=_0x56fc38['adapter'],_0x2bda01['bind']('isEnabled')['to'](_0x56fc38),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x74e1f3,'isReadOnly',_0x58f7fa=>!_0x58f7fa);for(const _0x196137 of _0x1cc9dc){const _0x144eb2=null===_0x196137['creator'];if(_0x144eb2&&_0x196137['toVersion']===_0x196137['fromVersion'])continue;const _0x2d4271=_0x196137['toJSON']();_0x2bda01['addRevisionData'](_0x2d4271,(_0x26e884,_0x10a6f0,_0x2223ee)=>{if(_0x144eb2){if(_0xce30ea)_0xce30ea['_update'](_0x26e884,_0x10a6f0);else{if(!_0x10a6f0){const _0x5e1dc4=_0x2223ee['toJSON']();_0x5e1dc4['id']=_0x2a811c(),_0x56fc38['saveRevision'](_0x5e1dc4,_0x2223ee['toVersion'])['then'](_0x5b0331=>{_0xce30ea=_0x5b0331;});}}}else _0x196137['_update'](_0x26e884,_0x10a6f0);});}}},d),_0x40307);}['_enhanceShowRevisionViewerCallback'](){const _0x534b03=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x545dca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x46baa3=this['editor']['plugins']['get']('Autosave');await _0x46baa3['save']();}else await _0x545dca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x22aa81=this['editor']['plugins']['get']('Dialog');_0x22aa81['isOpen']&&_0x22aa81['hide']();}const _0x119594=this['_getRevisionViewerEditorConfig']();return _0x534b03(_0x119594)['then'](_0x3f01a0=>{return(this['_viewerEditor']=_0x3f01a0,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'),_0x3f01a0);})['catch'](_0x9d878f=>(console['error'](_0x9d878f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a3bcd=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'](),_0x2a3bcd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x548502=this['editor']['plugins']['get']('Annotations');_0x548502['refreshVisibility'](),_0x548502['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4f0e68){const _0x2b8855=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x212d6b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e67f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2e67f5,_0x4f0e68)['then'](_0x20e56b=>(_0x212d6b['style']['display']='block',_0x2b8855['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x20e56b));}['_closeRevisionViewer'](_0x5c9c15){const _0x33fa03=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x33fa03['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5c9c15['destroy']();}async['_restoreRevision'](_0x733a86){const _0x3d85a8=this['editor'],_0x2a7557=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4fe61e=_0x3d85a8['plugins']['get']('RevisionTracker'),_0x349a08=_0x3d85a8['plugins']['get']('RevisionHistoryUtils'),_0x4805b9=_0x2a7557['repository']['getRevision'](_0x733a86);let _0x3b5b5e,_0x54ec64,_0x4133bd;try{await _0x349a08['loadRevisionData'](_0x4805b9,this['adapter']),_0x3b5b5e=_0x349a08['getRevisionDocumentData'](_0x4805b9),_0x54ec64=_0x349a08['getRevisionRootsAttributes'](_0x4805b9);}catch(_0x191f2a){return void console['error'](_0x191f2a);}_0x3d85a8['model']['change'](_0x341d08=>{for(const _0x2d3211 of Array['from'](_0x3d85a8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x341d08['removeMarker'](_0x2d3211);}),_0x2a7557['isReady']=!0x1,_0x3d85a8['model']['enqueueChange'](_0x25e0b3=>{_0x25e0b3['setSelection'](null),_0x25e0b3['removeSelectionAttribute'](_0x3d85a8['model']['document']['selection']['getAttributeKeys']());const _0x5c9df3=Object['keys'](_0x3b5b5e);for(const _0x1d90a9 of _0x3d85a8['model']['document']['roots'])'$graveyard'!=_0x1d90a9['rootName']&&_0x1d90a9['isAttached']()&&!_0x5c9df3['includes'](_0x1d90a9['rootName'])&&_0x25e0b3['detachRoot'](_0x1d90a9);for(const _0x8c4cd7 of _0x5c9df3){let _0x5b2cbe=_0x3d85a8['model']['document']['getRoot'](_0x8c4cd7);_0x5b2cbe&&_0x5b2cbe['isAttached']()||(_0x5b2cbe=_0x25e0b3['addRoot'](_0x8c4cd7));const _0x4ec23f=_0x54ec64[_0x8c4cd7],_0x12a754=Object['keys'](_0x4ec23f),_0x17fb28=_0x3b5b5e[_0x8c4cd7];for(const _0x4ad8a0 of _0x5b2cbe['getAttributeKeys']())_0x12a754['includes'](_0x4ad8a0)||_0x25e0b3['removeAttribute'](_0x4ad8a0,_0x5b2cbe);for(const _0x27bab4 of _0x12a754)_0x25e0b3['setAttribute'](_0x27bab4,_0x54ec64[_0x8c4cd7][_0x27bab4],_0x5b2cbe);_0x25e0b3['remove'](_0x25e0b3['createRangeIn'](_0x5b2cbe)),_0x25e0b3['insert'](_0x3d85a8['data']['parse'](_0x17fb28,_0x5b2cbe),_0x5b2cbe,0x0);}});const _0x4341b9=g(_0x3d85a8['locale'],'Restored');if(_0x4805b9['name'])_0x4133bd=-0x1==_0x4805b9['name']['indexOf'](_0x4341b9)?_0x4341b9+':\x20'+_0x4805b9['name']:_0x4805b9['name'];else _0x4133bd=_0x4341b9+':\x20'+(_0x4805b9['createdAt']['toLocaleDateString'](_0x3d85a8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4805b9['createdAt']['toLocaleTimeString'](_0x3d85a8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4fe61e['saveRevision']({'name':_0x4133bd}),_0x2a7557['isReady']=!0x0,_0x3d85a8['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(_0x3fa276){super(_0x3fa276),this['_revisionViewer']=_0x3fa276['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x427641=this['_revisionsRepository']['_revisions'],_0x45af44=this['_createRevisionActions'](),_0x4ec960=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x427641,_0x45af44,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',(_0x441772,_0x5768e9)=>{_0x5768e9['revisionViews']['on']('add',(_0x1472ca,_0x319edc)=>{_0x319edc['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)),_0x4ec960['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x162af9=this['_revisionsRepository']['getRevision'](0x0);if(_0x162af9){const _0x4050f3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x162af9['id']);this['_revisionViewer']['compare'](_0x162af9,_0x4050f3);}}['_handleRevisionSelected'](_0x4d8e03,_0x2fb9d6){const _0x53992d=this['_revisionsRepository']['getRevision'](_0x2fb9d6['id']),_0x589103=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x53992d['id']);this['_revisionViewer']['compare'](_0x53992d,_0x589103);}['_handleRevisionSetName'](_0x4313ed,_0x1da5fb){this['_revisionsRepository']['getRevision'](_0x1da5fb['id'])['setName'](_0x1da5fb['name']);}['_handleDiffChange'](_0x3e1153,_0x41b986,_0xd5bb8b){const _0xb86a9f=this['_revisionsRepository']['getRevisionsInDiff'](_0xd5bb8b);_0xb86a9f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xb86a9f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xb86a9f[0x0]));}['_createRevisionActions'](){const _0x5eede6=this['editor'],_0x82369=d['availableRevisionActions'],_0x5e25d4=_0x5eede6['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5e25d4['length'])return _0x5e25d4['map'](_0x2f329a=>{const _0x232a69='string'==typeof _0x2f329a?Object['assign']({},_0x82369[_0x2f329a]):_0x2f329a;return _0x232a69['action']=_0x232a69['action']['bind'](this,_0x5eede6),_0x232a69['isVisible']&&(_0x232a69['isVisible']=_0x232a69['isVisible']['bind'](this,_0x5eede6)),_0x232a69;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x21c8ab},_0x4d942a)=>{const _0xb27eb=_0x21c8ab['get'](m),_0x2f09bd=_0xb27eb['repository'];let _0x50fa72=_0xb27eb['diff']['newRevisionId'],_0x12a171=_0x4d942a['id'];_0x2f09bd['getIndex'](_0x50fa72)>_0x2f09bd['getIndex'](_0x12a171)&&([_0x50fa72,_0x12a171]=[_0x12a171,_0x50fa72]),_0xb27eb['compare'](_0x50fa72,_0x12a171);},'isVisible':({plugins:_0xddc5e6},_0x16e633)=>{const _0x10b10c=_0xddc5e6['get'](m);return!(_0x10b10c['repository']['getRevisionsInDiff'](_0x10b10c['diff'])['length']>0x2)&&!_0x16e633['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x570471,{id:_0x3e4459})=>{_0x570471['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3e4459);},'isVisible':({plugins:_0x364bac},_0x3d89f8)=>!!_0x364bac['get'](m)['repository']['getLaterVisibleRevision'](_0x3d89f8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x22d0da},{id:_0xf2f72d,revisionNameView:_0x4db6b1})=>{const _0x17e578=_0x22d0da['get'](m),_0x1d53d1=_0x17e578['repository']['getEarlierVisibleRevision'](_0xf2f72d);_0x17e578['compare'](_0xf2f72d,_0x1d53d1),_0x4db6b1['focus'](),_0x4db6b1['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x488844,_0x26a809){super(_0x488844),this['_view']=_0x26a809,this['_toolbarConfig']=et(_0x488844['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2b43d8){const _0x5e8bbe=this['editor'],_0x5d8259=this['view'],_0x5b29ca=_0x5e8bbe['editing']['view'],_0x2c6eeb=_0x5d8259['editable'],_0x55b586=_0x5b29ca['document']['getRoot']();_0x2c6eeb['name']=_0x55b586['rootName'],_0x5d8259['render']();const _0xaf901c=_0x2c6eeb['element'];this['setEditableElement'](_0x2c6eeb['name'],_0xaf901c),_0x5d8259['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5b29ca['attachDomRoot'](_0xaf901c),this['_elementReplacer']['replace'](_0x2b43d8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x196e7b=this['view'],_0x40bc69=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x40bc69['detachDomRoot'](_0x196e7b['editable']['name']),_0x196e7b['destroy']();}['_initToolbar'](){const _0x38799d=this['view'];_0x38799d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x38799d['stickyPanel']['limiterElement']=_0x38799d['element'],_0x38799d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x329371})=>_0x329371),_0x38799d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x38799d['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1f5b96,_0x424370,_0x108965={}){super(_0x1f5b96),this['stickyPanel']=new ht(_0x1f5b96),this['toolbar']=new dt(_0x1f5b96,{'shouldGroupWhenFull':_0x108965['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1f5b96,_0x424370);}['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
|
+
_0x40278b(_0x5989c7){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x40c95e,_0x4bfb09){super(_0x4bfb09),this['sourceElement']=_0x40c95e,this['model']['document']['createRoot']();const _0x5d35e8=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5d35e8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x377ffa,_0x6064ac){const _0x18d219=new this(_0x377ffa,_0x6064ac);return await _0x18d219['initPlugins'](),await _0x18d219['ui']['init'](_0x377ffa),await _0x18d219['data']['init'](_0x18d219['config']['get']('initialData')||''),_0x18d219['fire']('ready'),_0x18d219;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4ed480{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x306563){function _0x129922(_0x212692){return _0x212692['map'](_0x1b5b72=>String['fromCharCode'](_0x1b5b72))['join']('');}super(_0x306563),this['result']='end',_0x306563[_0x129922([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x129922([0x76,0x69,0x65,0x77])][_0x129922([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x129922([0x61,0x75,0x74,0x6f]),_0x306563[_0x129922([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x129922([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x129922([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x129922([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x129922([0x6f,0x6b])});}}class k extends _0x4ed480{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xce621b){if(super(_0xce621b),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b7fd5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2bb3b3=>this['_showRevisionViewer']({..._0x2bb3b3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x564d0c=>this['_closeRevisionViewer'](_0x564d0c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3adb6a=>this['_restoreRevision'](_0x3adb6a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x481221){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x481221;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x24630c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x24630c);}['getRevision'](_0x263d4a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x263d4a);}['getRevisions'](_0x16a1b0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x16a1b0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1577e4=this['editor'],_0x4a806e=_0x4f8c78(_0x1577e4,p),_0x4d2a10=_0x1577e4['plugins']['get']('RevisionTracker'),_0x224fec=_0x1577e4['plugins']['get']('Users')['users'];return _0x4a806e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a806e['lazyRoots'],(_0x4a806e['plugins']['push'](_t,m,R,class extends _0x4ed480{static get['requires'](){return[m,'Users'];}['init'](){const _0x1d238f=this['editor']['plugins']['get']('Users');for(const _0x2e85d7 of _0x224fec)_0x2e85d7['isAnonymous']||_0x1d238f['getUser'](_0x2e85d7['id'])||_0x1d238f['addUser'](_0x2e85d7);const _0xba73f9=_0x4d2a10['repository']['getRevisions']();let _0x1d7448=null;const _0x4a3227=this['editor']['plugins']['get']('RevisionViewer');_0x4a3227['adapter']=_0x4d2a10['adapter'],_0x4a3227['bind']('isEnabled')['to'](_0x4d2a10),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1577e4,'isReadOnly',_0xf36790=>!_0xf36790);for(const _0x428b5b of _0xba73f9){const _0xdcdf68=null===_0x428b5b['creator'];if(_0xdcdf68&&_0x428b5b['toVersion']===_0x428b5b['fromVersion'])continue;const _0x2a618a=_0x428b5b['toJSON']();_0x4a3227['addRevisionData'](_0x2a618a,(_0x193e57,_0x3a3120,_0x3e6f26)=>{if(_0xdcdf68){if(_0x1d7448)_0x1d7448['_update'](_0x193e57,_0x3a3120);else{if(!_0x3a3120){const _0x56a891=_0x3e6f26['toJSON']();_0x56a891['id']=_0xf63d01(),_0x4d2a10['saveRevision'](_0x56a891,_0x3e6f26['toVersion'])['then'](_0x34bf97=>{_0x1d7448=_0x34bf97;});}}}else _0x428b5b['_update'](_0x193e57,_0x3a3120);});}}},d),_0x4a806e);}['_enhanceShowRevisionViewerCallback'](){const _0x1d3dd3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x8d9bc8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x471395=this['editor']['plugins']['get']('Autosave');await _0x471395['save']();}else await _0x8d9bc8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x518881=this['editor']['plugins']['get']('Dialog');_0x518881['isOpen']&&_0x518881['hide']();}const _0x45ddc1=this['_getRevisionViewerEditorConfig']();return _0x1d3dd3(_0x45ddc1)['then'](_0x62422c=>{return(this['_viewerEditor']=_0x62422c,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'),_0x62422c);})['catch'](_0x55bcbf=>(console['error'](_0x55bcbf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x42e85a=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'](),_0x42e85a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x499409=this['editor']['plugins']['get']('Annotations');_0x499409['refreshVisibility'](),_0x499409['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4ea15e){const _0x1b7551=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2a8ec2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x290c82=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x290c82,_0x4ea15e)['then'](_0x3fda2a=>(_0x2a8ec2['style']['display']='block',_0x1b7551['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3fda2a));}['_closeRevisionViewer'](_0x116cfc){const _0x1900fc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1900fc['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x116cfc['destroy']();}async['_restoreRevision'](_0x512ab5){const _0xacf8ac=this['editor'],_0x5461bb=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2acea2=_0xacf8ac['plugins']['get']('RevisionTracker'),_0xc0364d=_0xacf8ac['plugins']['get']('RevisionHistoryUtils'),_0x125b21=_0x5461bb['repository']['getRevision'](_0x512ab5);let _0x29b37,_0x2b7277,_0x32d664;try{await _0xc0364d['loadRevisionData'](_0x125b21,this['adapter']),_0x29b37=_0xc0364d['getRevisionDocumentData'](_0x125b21),_0x2b7277=_0xc0364d['getRevisionRootsAttributes'](_0x125b21);}catch(_0x668de3){return void console['error'](_0x668de3);}_0xacf8ac['model']['change'](_0x542a3b=>{for(const _0x227eaf of Array['from'](_0xacf8ac['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x542a3b['removeMarker'](_0x227eaf);}),_0x5461bb['isReady']=!0x1,_0xacf8ac['model']['enqueueChange'](_0x348307=>{_0x348307['setSelection'](null),_0x348307['removeSelectionAttribute'](_0xacf8ac['model']['document']['selection']['getAttributeKeys']());const _0x3f1cc9=Object['keys'](_0x29b37);for(const _0xf25e69 of _0xacf8ac['model']['document']['roots'])'$graveyard'!=_0xf25e69['rootName']&&_0xf25e69['isAttached']()&&!_0x3f1cc9['includes'](_0xf25e69['rootName'])&&_0x348307['detachRoot'](_0xf25e69);for(const _0x53391a of _0x3f1cc9){let _0x4c6cb8=_0xacf8ac['model']['document']['getRoot'](_0x53391a);_0x4c6cb8&&_0x4c6cb8['isAttached']()||(_0x4c6cb8=_0x348307['addRoot'](_0x53391a));const _0x50d12e=_0x2b7277[_0x53391a],_0x3467fa=Object['keys'](_0x50d12e),_0x4add48=_0x29b37[_0x53391a];for(const _0x3c62ba of _0x4c6cb8['getAttributeKeys']())_0x3467fa['includes'](_0x3c62ba)||_0x348307['removeAttribute'](_0x3c62ba,_0x4c6cb8);for(const _0x275f52 of _0x3467fa)_0x348307['setAttribute'](_0x275f52,_0x2b7277[_0x53391a][_0x275f52],_0x4c6cb8);_0x348307['remove'](_0x348307['createRangeIn'](_0x4c6cb8)),_0x348307['insert'](_0xacf8ac['data']['parse'](_0x4add48,_0x4c6cb8),_0x4c6cb8,0x0);}});const _0x495c47=g(_0xacf8ac['locale'],'Restored');if(_0x125b21['name'])_0x32d664=-0x1==_0x125b21['name']['indexOf'](_0x495c47)?_0x495c47+':\x20'+_0x125b21['name']:_0x125b21['name'];else _0x32d664=_0x495c47+':\x20'+(_0x125b21['createdAt']['toLocaleDateString'](_0xacf8ac['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x125b21['createdAt']['toLocaleTimeString'](_0xacf8ac['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2acea2['saveRevision']({'name':_0x32d664}),_0x5461bb['isReady']=!0x0,_0xacf8ac['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};
|