@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241230.0 → 0.0.0-nightly-20250101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +2 -2
- package/dist/index-content.css +1 -1
- package/dist/index-editor.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/package.json +8 -8
- package/src/augmentation.js +1 -1
- package/src/changeitem.js +3 -3
- package/src/editor/revisionviewereditor.js +3 -3
- package/src/editor/revisionviewereditorui.js +2 -2
- package/src/editor/revisionviewereditoruiview.js +2 -2
- package/src/index.js +2 -2
- package/src/revision.js +3 -3
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.js +2 -2
- package/src/revisionhistoryadapter.js +1 -1
- package/src/revisionhistoryconfig.js +1 -1
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.js +3 -3
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/src/utils/common-translations.js +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x40e57d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2be24e){super(),this['id']=_0x2be24e['id']||_0xd77ba2(),this['creator']=_0x2be24e['creator']||null,this['authors']=_0x2be24e['authors']||[],this['diffData']=_0x2be24e['diffData']||null,this['toVersion']=_0x2be24e['toVersion']||0x0,this['fromVersion']=_0x2be24e['fromVersion']||0x0,this['set']('name',_0x2be24e['name']||''),this['set']('createdAt',_0x2be24e['createdAt']||new Date()),this['set']('attributes',_0x2be24e['attributes']||{});}['setName'](_0x32afa0){this['_update']({'name':_0x32afa0});}['setAttribute'](_0x37829d,_0x113b46){const _0x8261d6=_0x7b7393(this['attributes']);_0x428a4b(_0x8261d6,_0x37829d,_0x113b46),this['_update']({'attributes':_0x8261d6});}['removeAttribute'](_0x489be8){const _0x3abf48=_0x7b7393(this['attributes']);_0x1b3b88(_0x3abf48,_0x489be8),this['_update']({'attributes':_0x3abf48});}['_update'](_0x5ea242,_0x362785=!0x1){let _0x26c086=!0x1;const _0x220071={'id':this['id']},_0x440952=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d52c8 of _0x440952){const _0x572c46=_0x5ea242[_0x5d52c8];void 0x0!==_0x572c46&&_0x572c46!==this[_0x5d52c8]&&(this[_0x5d52c8]=_0x572c46,_0x220071[_0x5d52c8]=_0x572c46,_0x26c086=!0x0);}_0x26c086&&(_0x220071['authors']&&(_0x220071['authorsIds']=_0x220071['authors']['map'](_0x2b3e54=>_0x2b3e54['id']),delete _0x220071['authors']),this['fire']('_update',_0x220071,_0x362785));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2641da=>_0x2641da['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x506060{['_revisions'];static get['requires'](){return[_0x45562e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x106104){super(_0x106104),this['_revisions']=new _0x3861d2();}['afterInit'](){!async function(_0x535776){const _0x6274f8=_0x1c6546([0x71,0x62,0x52,0x4f,0x45,0x6b,0x68,0x48,0x6c,0x32,0x30,0x59,0x37,0x6e,0x65,0x44,0x38,0x34,0x77,0x61,0x4b,0x58,0x49,0x78,0x43,0x53,0x50,0x76,0x6a,0x5a,0x72,0x4d,0x66,0x35,0x56,0x55,0x42,0x54,0x41,0x4a,0x31,0x4e,0x63,0x64,0x4c,0x79,0x70,0x74,0x47,0x33,0x73,0x7a,0x51,0x39,0x69,0x46,0x6f,0x75,0x36,0x6d,0x67,0x57]),_0xb00ba3=0xeb829,_0x51a553=0x66a283,_0x54ee27=0x61f9ab^_0x51a553,_0x1d44ba=window[_0x1c6546([0x44,0x61,0x74,0x65])][_0x1c6546([0x6e,0x6f,0x77])](),_0x483272=_0x535776[_0x1c6546([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57166d=new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8655d=>{_0x483272[_0x1c6546([0x6f,0x6e,0x63,0x65])](_0x1c6546([0x72,0x65,0x61,0x64,0x79]),_0xe8655d);}),_0x549619={[_0x1c6546([0x6b,0x74,0x79])]:_0x1c6546([0x45,0x43]),[_0x1c6546([0x75,0x73,0x65])]:_0x1c6546([0x73,0x69,0x67]),[_0x1c6546([0x63,0x72,0x76])]:_0x1c6546([0x50,0x2d,0x32,0x35,0x36]),[_0x1c6546([0x78])]:_0x1c6546([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]),[_0x1c6546([0x79])]:_0x1c6546([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]),[_0x1c6546([0x61,0x6c,0x67])]:_0x1c6546([0x45,0x53,0x32,0x35,0x36])},_0x18c28f=_0x483272[_0x1c6546([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c6546([0x67,0x65,0x74])](_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa84761(){let _0x3eae76,_0x73294c=null,_0x253dba=null;try{if(_0x18c28f==_0x1c6546([0x47,0x50,0x4c]))return _0x1c6546([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3eae76=_0x1772d1(),!_0x3eae76)return _0x1c6546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3eae76[_0x1c6546([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x253dba=_0x14c440(_0x3eae76[_0x1c6546([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3eae76[_0x1c6546([0x6a,0x74,0x69])])),await _0x1d4174()?_0xe0b5fd()?_0x1a95c1()?_0x1c6546([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d6d2f()?(_0x3eae76[_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c6546([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x73294c=_0x2169d9(_0x1c6546([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3eae76[_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c6546([0x74,0x72,0x69,0x61,0x6c])&&(_0x73294c=_0x2169d9(_0x1c6546([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3eae76[_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c6546([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x73294c=_0x2169d9(_0x1c6546([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c6d0b()):_0x1c6546([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c6546([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c6546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e308f){return _0x1c6546([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a95c1(){const _0x46bbfe=[_0x1c6546([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c6546([0x74,0x72,0x69,0x61,0x6c])][_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3eae76[_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d44ba/0x3e8:0xe10*_0x54ee27;return _0x3eae76[_0x1c6546([0x65,0x78,0x70])]<_0x46bbfe;}function _0xe0b5fd(){const _0xd92fc4=_0x3eae76[_0x1c6546([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd92fc4)return!0x1;if(_0xd92fc4[_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6546([0x2a])))return!0x0;if(_0xd92fc4[_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6546([0x52,0x48])))return!0x0;if(_0xd92fc4[_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6546([0x52,0x52,0x48]))){if(_0x2bad66())return!0x0;if(_0x11f9e4()||_0x8daa0c())return!0x0;}return!0x1;}function _0x2d6d2f(){const _0x556b52=_0x3eae76[_0x1c6546([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x556b52||0x0==_0x556b52[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0592}=new URL(window[_0x1c6546([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x556b52[_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0592))return!0x0;const _0x68ca6=_0x5a0592[_0x1c6546([0x73,0x70,0x6c,0x69,0x74])](_0x1c6546([0x2e]));return _0x556b52[_0x1c6546([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22035f=>_0x22035f[_0x1c6546([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6546([0x2a])))[_0x1c6546([0x6d,0x61,0x70])](_0x4f0ee3=>_0x4f0ee3[_0x1c6546([0x73,0x70,0x6c,0x69,0x74])](_0x1c6546([0x2e])))[_0x1c6546([0x73,0x6f,0x6d,0x65])](_0x428a00=>_0x68ca6[_0x1c6546([0x65,0x76,0x65,0x72,0x79])]((_0xf59556,_0x105ae4)=>_0x428a00[_0x105ae4]===_0xf59556||_0x428a00[_0x105ae4]===_0x1c6546([0x2a])));}function _0x3c6d0b(){return _0x73294c&&_0x253dba?new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33d7d1,_0x34c0fe)=>{_0x73294c[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x33d7d1,_0x34c0fe),_0x253dba[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x56fb9b=>{_0x56fb9b!=_0x1c6546([0x56,0x61,0x6c,0x69,0x64])&&_0x33d7d1(_0x56fb9b);},_0x34c0fe);}):_0x73294c||_0x253dba||_0x1c6546([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14c440(_0xbd5dcf,_0x4da91d){return new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567710=>{if(_0x33c7d4())return _0x567710(_0x1c6546([0x56,0x61,0x6c,0x69,0x64]));_0x4875ab(),_0x483272[_0x1c6546([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c6546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19a887=!0x1;const _0x5c7661=_0xd77ba2();function _0xfbd89f(_0x40142f){return!!_0x40142f&&(typeof _0x40142f===_0x1c6546([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40142f===_0x1c6546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40142f[_0x1c6546([0x74,0x68,0x65,0x6e])]===_0x1c6546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40142f[_0x1c6546([0x63,0x61,0x74,0x63,0x68])]===_0x1c6546([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x163929(_0x14cadf){_0x2b1423(_0x14cadf)[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x381863=>{if(!_0x381863||_0x381863[_0x1c6546([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c6546([0x6f,0x6b]))return _0x1c6546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x579aae(_0xf16b44(_0x5c7661+_0x4da91d))!=_0x381863[_0x1c6546([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c6546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c6546([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x56d005=>(_0x585951(),_0x56d005),()=>{const _0x575936=_0x4d5b57();return null==_0x575936?(_0x585951(),_0x1c6546([0x56,0x61,0x6c,0x69,0x64])):_0x1c6546(_0x1d44ba-_0x575936>(0x246a2683^_0x51a553)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x567710)[_0x1c6546([0x63,0x61,0x74,0x63,0x68])](()=>{_0x567710(_0x1c6546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44193f=0x504c03^_0x51a553;function _0x585951(){const _0x31ec99=_0x1c6546([0x6c,0x6c,0x63,0x74,0x2d])+_0x579aae(_0xf16b44(_0xbd5dcf)),_0xce2ba3=_0x2882b2(_0x579aae(window[_0x1c6546([0x4d,0x61,0x74,0x68])][_0x1c6546([0x63,0x65,0x69,0x6c])](_0x1d44ba/_0x44193f)));window[_0x1c6546([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c6546([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ec99,_0xce2ba3);}function _0x4d5b57(){const _0x44b750=_0x1c6546([0x6c,0x6c,0x63,0x74,0x2d])+_0x579aae(_0xf16b44(_0xbd5dcf)),_0xbdc9aa=window[_0x1c6546([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c6546([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b750);return _0xbdc9aa?window[_0x1c6546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2882b2(_0xbdc9aa),0x10)*_0x44193f:null;}function _0x2b1423(_0x3ccba7){return new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6b3d,_0x120b8f)=>{_0x3ccba7[_0x1c6546([0x74,0x68,0x65,0x6e])](_0x4b6b3d,_0x120b8f),window[_0x1c6546([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x120b8f,0x677643^_0x51a553);});}}_0x483272[_0x1c6546([0x6f,0x6e])](_0x1c6546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54f583,_0x591516)=>{if(_0x591516[0x0]!=_0xbd5dcf)return _0x567710(_0x1c6546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x591516[0x1]={..._0x591516[0x1],[_0x1c6546([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c7661};},{[_0x1c6546([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c6546([0x68,0x69,0x67,0x68])}),_0x483272[_0x1c6546([0x6f,0x6e])](_0x1c6546([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2343af=>{_0xfbd89f(_0x2343af[_0x1c6546([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19a887=!0x0,_0x163929(_0x2343af[_0x1c6546([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c6546([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c6546([0x6c,0x6f,0x77])}),_0x57166d[_0x1c6546([0x74,0x68,0x65,0x6e])](()=>{_0x19a887||_0x567710(_0x1c6546([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33c7d4(){return _0x483272[_0x1c6546([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c6546([0x76,0x69,0x65,0x77])][_0x1c6546([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c6546([0x61,0x75,0x74,0x6f]);}function _0x4875ab(){_0x483272[_0x1c6546([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c6546([0x76,0x69,0x65,0x77])][_0x1c6546([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c6546([0x61,0x75,0x74,0x6f]);}}function _0x2169d9(_0x5b2b9a){const _0x4e0b00=[new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127483=>setTimeout(_0x127483,0x6f9c4f^_0x51a553)),_0x57166d[_0x1c6546([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e3d9=>{const _0x295e34=0x66a284^_0x51a553,_0x3496d6=_0x535776[_0x1c6546([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x44247a(){_0x3496d6[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x295e34&&_0x43e3d9();}_0x44247a(),_0x3496d6[_0x1c6546([0x6f,0x6e])](_0x1c6546([0x61,0x64,0x64]),_0x44247a);})),new window[(_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cdda6=>{function _0x4e6720(){for(const _0x461d92 in window)if(window[_0x1c6546([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1c6546([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x461d92))&&window[_0x461d92]==_0xb00ba3)return _0x3cdda6();_0x483272[_0x1c6546([0x73,0x74,0x61,0x74,0x65])]!=_0x1c6546([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1c6546([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6720,0x66b10b^_0x51a553);}_0x45f331(_0x1c6546([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e6720();})];return window[_0x1c6546([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c6546([0x72,0x61,0x63,0x65])](_0x4e0b00)[_0x1c6546([0x74,0x68,0x65,0x6e])](()=>_0x5b2b9a);}async function _0x2a404f(){if(await _0x57166d,_0x45f331(_0x1c6546([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1f6b5b=_0x535776[_0x1c6546([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x443f38=_0x535776[_0x1c6546([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])](_0x1f6b5b[_0x1c6546([0x69,0x64])]),_0x3df9e6=_0x104844(_0x1c6546([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3df9e6[_0x1c6546([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1f6b5b['id'],_0x443f38?_0x443f38['id']:null,!0x0),_0x3df9e6[_0x1c6546([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1c6546([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3df9e6[_0x1c6546([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3df9e6[_0x1c6546([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x395d52,void(_0x3df9e6[_0x1c6546([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x395d52);}if(_0x45f331(_0x1c6546([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3bb1ae=_0x104844(_0x1c6546([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3bb1ae[_0x1c6546([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1c6546([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3bb1ae[_0x1c6546([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3bb1ae[_0x1c6546([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x395d52,_0x3bb1ae[_0x1c6546([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x395d52;}_0x483272[_0x1c6546([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c6546([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x395d52,_0x483272[_0x1c6546([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c6546([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x395d52,_0x483272[_0x1c6546([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c6546([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bad66(){return _0x45f331(_0x1c6546([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x104844(_0x1c6546([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1c6546([0x73,0x74,0x61,0x74,0x65])]==_0x1c6546([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11f9e4(){return _0x45f331(_0x1c6546([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 _0x8daa0c(){return _0x45f331(_0x1c6546([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x147a58(_0x32f51f){const _0x1044d3=_0x2ab89c();_0x483272[_0x1044d3]=_0x1c6546([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])+_0x32f51f,_0x32f51f[_0x1c6546([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1c6546([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2ab89c()]=_0xb00ba3),_0x32f51f!=_0x1c6546([0x56,0x61,0x6c,0x69,0x64])&&_0x2a404f();}function _0x2ab89c(){const _0x54702e=window[_0x1c6546([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c6546([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c6546([0x6e,0x6f,0x77])]())[_0x1c6546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c6546([0x2e]),'');let _0x2d7ade=_0x1c6546([0x71]);for(let _0x2f35ea=0x0;_0x2f35ea<_0x54702e[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f35ea+=0x2){let _0x75b67a=window[_0x1c6546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54702e[_0x1c6546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f35ea,_0x2f35ea+0x2));_0x75b67a>=_0x6274f8[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x75b67a-=_0x6274f8[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d7ade+=_0x6274f8[_0x75b67a];}return _0x2d7ade;}function _0x1772d1(){const _0x2d4749=_0x18c28f[_0x1c6546([0x73,0x70,0x6c,0x69,0x74])](_0x1c6546([0x2e]));if(0x3!=_0x2d4749[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5eb814(_0x2d4749[0x1]);function _0x5eb814(_0x2f3e3a){const _0x3d78f1=_0x59a43c(_0x2f3e3a);return _0x3d78f1&&_0x49ea3b()?_0x3d78f1:null;function _0x49ea3b(){const _0x46d0bd=_0x3d78f1[_0x1c6546([0x6a,0x74,0x69])],_0x46e09f=window[_0x1c6546([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46d0bd[_0x1c6546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46d0bd[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8aa0eb={..._0x3d78f1,[_0x1c6546([0x6a,0x74,0x69])]:_0x46d0bd[_0x1c6546([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46d0bd[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8aa0eb[_0x1c6546([0x76,0x63])],_0xf16b44(_0x8aa0eb)==_0x46e09f;}}}async function _0x1d4174(){let _0x1c264b=!0x0;try{const _0x425942=_0x18c28f[_0x1c6546([0x73,0x70,0x6c,0x69,0x74])](_0x1c6546([0x2e])),[_0x13e6a3,_0x365da3,_0x5e9126]=_0x425942;return _0x4504bf(_0x13e6a3),await _0x20c0da(_0x13e6a3,_0x365da3,_0x5e9126),_0x1c264b;}catch(_0x68149b){return!0x1;}function _0x4504bf(_0x17c080){const _0x5374cc=_0x59a43c(_0x17c080);_0x5374cc&&_0x5374cc[_0x1c6546([0x61,0x6c,0x67])]==_0x1c6546([0x45,0x53,0x32,0x35,0x36])||(_0x1c264b=!0x1);}async function _0x20c0da(_0x341ca0,_0x2cc99e,_0x55d788){const _0x1f4fad=window[_0x1c6546([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c6546([0x66,0x72,0x6f,0x6d])](_0x3bfb44(_0x55d788),_0x465b7d=>_0x465b7d[_0x1c6546([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b787e=new window[(_0x1c6546([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c6546([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x341ca0+_0x1c6546([0x2e])+_0x2cc99e),_0x299184=window[_0x1c6546([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c6546([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x299184)return;const _0x2414e2=await _0x299184[_0x1c6546([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c6546([0x6a,0x77,0x6b]),_0x549619,{[_0x1c6546([0x6e,0x61,0x6d,0x65])]:_0x1c6546([0x45,0x43,0x44,0x53,0x41]),[_0x1c6546([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c6546([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c6546([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x299184[_0x1c6546([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c6546([0x6e,0x61,0x6d,0x65])]:_0x1c6546([0x45,0x43,0x44,0x53,0x41]),[_0x1c6546([0x68,0x61,0x73,0x68])]:{[_0x1c6546([0x6e,0x61,0x6d,0x65])]:_0x1c6546([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2414e2,_0x1f4fad,_0x2b787e)||(_0x1c264b=!0x1);}}function _0x59a43c(_0x5d2b8e){return _0x5d2b8e[_0x1c6546([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c6546([0x65,0x79]))?JSON[_0x1c6546([0x70,0x61,0x72,0x73,0x65])](_0x3bfb44(_0x5d2b8e)):null;}function _0x3bfb44(_0x4fe312){return window[_0x1c6546([0x61,0x74,0x6f,0x62])](_0x4fe312[_0x1c6546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c6546([0x2b]))[_0x1c6546([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c6546([0x2f])));}function _0xf16b44(_0x350e30){let _0x216e65=0x1505;function _0x398828(_0x319ddc){for(let _0x340bec=0x0;_0x340bec<_0x319ddc[_0x1c6546([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x340bec++){const _0x3ea203=_0x319ddc[_0x1c6546([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x340bec);_0x216e65=(_0x216e65<<0x5)+_0x216e65+_0x3ea203,_0x216e65&=_0x216e65;}}function _0x19eb3c(_0x46e8e9){Array[_0x1c6546([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46e8e9)?_0x46e8e9[_0x1c6546([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19eb3c):_0x46e8e9&&typeof _0x46e8e9==_0x1c6546([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c6546([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46e8e9)[_0x1c6546([0x73,0x6f,0x72,0x74])]()[_0x1c6546([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145cce,_0x16dde4])=>{_0x398828(_0x145cce),_0x19eb3c(_0x16dde4);}):_0x398828(window[_0x1c6546([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46e8e9));}return _0x19eb3c(_0x350e30),_0x216e65>>>0x0;}function _0x579aae(_0x3cd14f){return _0x3cd14f[_0x1c6546([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c6546([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c6546([0x30]));}function _0x2882b2(_0x4a3fc8){return _0x4a3fc8[_0x1c6546([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c6546([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c6546([0x6a,0x6f,0x69,0x6e])]('');}function _0x45f331(_0x2ec00e){return _0x483272[_0x1c6546([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c6546([0x68,0x61,0x73])](_0x2ec00e);}function _0x104844(_0x1a023e){return _0x483272[_0x1c6546([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c6546([0x67,0x65,0x74])](_0x1a023e);}function _0x395d52(){}function _0x1c6546(_0x3b720d){return _0x3b720d['map'](_0x48325e=>String['fromCharCode'](_0x48325e))['join']('');}_0x147a58(await _0xa84761());}(this);}['createRevision'](_0x19290b){const _0x2806ad=this['editor']['plugins']['get']('Users');return new a({'id':_0x19290b['id'],'name':_0x19290b['name'],'creator':_0x19290b['creatorId']?_0x2806ad['getUser'](_0x19290b['creatorId']):null,'diffData':_0x19290b['diffData']||_0x19290b['data'],'authors':_0x19290b['authorsIds']['map'](_0x3204ad=>_0x2806ad['getUser'](_0x3204ad)),'createdAt':new Date(_0x19290b['createdAt']),'attributes':_0x19290b['attributes'],'fromVersion':_0x19290b['fromVersion'],'toVersion':_0x19290b['toVersion']});}['addRevision'](_0x399392,_0x4d2d0e=0x0){this['_revisions']['add'](_0x399392,_0x4d2d0e);}['getRevision'](_0x2371b8){return this['_revisions']['get'](_0x2371b8);}['getRevisions'](_0xbf39fb={'toJSON':!0x1}){const _0x377cba=Array['from'](this['_revisions']);return _0x377cba['reverse'](),_0xbf39fb['toJSON']?_0x377cba['map'](_0x1a81d3=>_0x1a81d3['toJSON']()):_0x377cba;}['getIndex'](_0x44d8c5){return this['_revisions']['getIndex'](_0x44d8c5);}['getEarlierVisibleRevision'](_0x4f50ea){const [,_0x2b2bfe]=this['getRevisionsIterator'](_0x4f50ea,{'direction':'earlier'});return _0x2b2bfe;}['getLaterVisibleRevision'](_0x3ee2be){const [,_0x5413e4]=this['getRevisionsIterator'](_0x3ee2be,{'direction':'later'});return _0x5413e4;}['getRevisionsInDiff'](_0x5c5f2f){const _0x152fb2=[];for(const _0x1cfb2b of this['getRevisionsIterator'](_0x5c5f2f['newRevisionId']))if(_0x152fb2['push'](_0x1cfb2b),_0x1cfb2b['id']===_0x5c5f2f['oldRevisionId'])break;return _0x152fb2;}*['getRevisionsIterator'](_0x62888a,{direction:_0x28c782='earlier',filter:_0x15e5be=()=>!0x0}={}){const _0x3ca5cc='earlier'===_0x28c782?0x1:-0x1;let _0x59ad1e=this['_revisions']['get'](_0x62888a),_0x5b0598=this['getIndex'](_0x59ad1e);for(yield _0x59ad1e;_0x59ad1e;){if(_0x5b0598+=_0x3ca5cc,_0x59ad1e=this['getRevision'](_0x5b0598),!_0x59ad1e)return;_0x15e5be(_0x59ad1e)&&(yield _0x59ad1e);}}}function R(_0x1d0b48,_0x48b112,_0x38513b){const t=_0x1d0b48['t'];switch(_0x48b112){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'},_0x38513b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x38513b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0xfe2fa6,'a':_0x256c79,'e':_0x4e561c,'r':_0x3b1bb5,'u':_0x78b40f};class l extends _0x506060{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x45562e,j,_0x452237];}constructor(_0x23da03){super(_0x23da03),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3e517a=_0xd77ba2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3e517a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x31f2bd=this['repository']['getRevision'](0x0),_0x10933b=_0x31f2bd&&null===_0x31f2bd['creator']?_0x31f2bd:null;if(this['_continueCurrentRevision']=!!_0x10933b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2ad61e=this['_source']['getCurrentRevisionId'](),_0x26b6e1=this['repository']['getRevision'](_0x2ad61e);if(_0x26b6e1)this['_startingVersion']=_0x26b6e1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x30540e=this['_source']['history']['_operations']['find'](_0x33a930=>!_0x33a930['_isInit']),_0xe8b541=_0x30540e?_0x30540e['baseVersion']:this['_source']['history']['version'];_0x31f2bd?(_0x31f2bd['toVersion']<_0xe8b541&&_0x31f2bd['_update']({'toVersion':_0xe8b541}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x10933b['id'],this['_startingVersion']=_0x10933b['fromVersion']):(this['_startingVersion']=_0x31f2bd['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe8b541,this['_continueCurrentRevision']=!0x1);}}else _0x10933b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x10933b['toVersion'],this['editor']['model']['document']['history']['version']),_0x10933b['fromVersion']===_0x10933b['toVersion']?(0x0!==_0x10933b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x10933b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x10933b['id'],this['_startingVersion']=_0x10933b['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',_0x3f2c21=>!_0x3f2c21),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53d3ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x399e9c;for(const _0x14d8c3 in _0x53d3ad){const _0x557741=_0x14d8c3,_0x1b5d06=_0x53d3ad[_0x557741];if('revisionHistoryLicenseKeyValid'==_0x1b5d06||'revisionHistoryLicenseKeyInvalid'==_0x1b5d06||'revisionHistoryLicenseKeyExpired'==_0x1b5d06||'revisionHistoryLicenseKeyDomainLimit'==_0x1b5d06||'revisionHistoryLicenseKeyNotAllowed'==_0x1b5d06||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b5d06||'revisionHistoryLicenseKeyTrialLimit'==_0x1b5d06||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1b5d06||'revisionHistoryLicenseKeyUsageLimit'==_0x1b5d06){delete _0x53d3ad[_0x557741],_0x399e9c=_0x1b5d06,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x399e9c&&_0x53d3ad['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x399e9c&&_0x53d3ad['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x399e9c&&_0x53d3ad['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x399e9c&&_0x53d3ad['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x399e9c&&_0x53d3ad['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x399e9c&&_0x53d3ad['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x399e9c&&_0x53d3ad['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x399e9c&&_0x53d3ad['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x321214=this['repository']['getRevision'](0x0),_0x43ad4e=await this['getRevisionDocumentData'](_0x321214),_0x5a6110=await this['getRevisionRootsAttributes'](_0x321214);this['_replaceEditorDataWithRevisionData'](_0x43ad4e,_0x5a6110);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1f5118){this['_source']=_0x1f5118;}async['update'](){const _0x35dc21=await this['_source']['getLatestVersion']();if(_0x35dc21>this['currentRevision']['toVersion']){await this['_loadState']();const _0x23af87=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x35dc21});_0x23af87['authors']=_0x23af87['authorsIds']['map'](_0xaf4340=>this['editor']['plugins']['get']('Users')['getUser'](_0xaf4340)),this['currentRevision']['_update'](_0x23af87);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x8bb01f={},_0x3556c5=null){const _0x42f634=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3556c5>this['currentRevision']['toVersion']&&(_0x3556c5=null),null===_0x3556c5&&(_0x3556c5=await this['_source']['getLatestVersion']());const _0x36e3b9=this['_getFromVersion'](_0x3556c5),_0x20a854=this['buildRevisionData']({'from':_0x36e3b9,'to':_0x3556c5});if(this['currentRevision']['toVersion']<_0x3556c5){const _0xb1de2b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3556c5,'to':_0x3556c5});_0xb1de2b['authors']=[],_0xb1de2b['authorsIds']=[],_0xb1de2b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xb1de2b,!0x0),delete _0xb1de2b['authors'],_0x42f634['push'](_0xb1de2b);}_0x8bb01f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x8bb01f['name']=_0x8bb01f['name']||null,_0x8bb01f['id']=_0x8bb01f['id']||_0xd77ba2(),_0x8bb01f={..._0x8bb01f,..._0x20a854};const _0x2114f6=this['addRevisionData'](_0x8bb01f);_0x42f634['push'](_0x8bb01f);const _0x993a3b=this['repository']['getIndex'](_0x2114f6);if(0x0!==_0x993a3b){const _0x56e87b=this['repository']['getRevision'](_0x993a3b-0x1);if(_0x56e87b['fromVersion']!==_0x3556c5){const _0x2f05f4=this['_revisionDataBuilder']['getData'](_0x3556c5,_0x56e87b['toVersion']),_0x3a18e6={'id':_0x56e87b['id'],'diffData':_0x2f05f4['diffData'],'authorsIds':_0x2f05f4['authorsIds'],'authors':_0x2f05f4['authorsIds']['map'](_0x38bd15=>this['editor']['plugins']['get']('Users')['getUser'](_0x38bd15)),'fromVersion':_0x3556c5};_0x56e87b===this['currentRevision']&&(_0x3a18e6['createdAt']=new Date(_0x8bb01f['createdAt']['getTime']()+0xa)),_0x56e87b['_update'](_0x3a18e6,!0x0),delete _0x3a18e6['authors'],_0x42f634['push'](_0x3a18e6);}}if(this['adapter']){for(const _0x5497de of _0x42f634)this['_bufferUpdate'](_0x5497de['id'],_0x5497de,!0x0);this['sendBufferedUpdates']();}return _0x2114f6;}['addRevisionData'](_0x4f04a9){const _0x5eab8b=this['repository']['createRevision'](_0x4f04a9);return this['adapter']&&_0x5eab8b['on']('_update',(_0x2dd166,_0x666809,_0x3a8974)=>{_0x3a8974||(this['_bufferUpdate'](_0x666809['id'],_0x666809,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5eab8b,this['_findInsertionIndex'](_0x5eab8b)),_0x5eab8b;}async['getRevisionDocumentData'](_0x534c9d){await this['_loadRevisionData'](_0x534c9d);const _0x15f67d={};for(const _0x593a7f in _0x534c9d['diffData']){if(_0x534c9d['diffData'][_0x593a7f]['attachChange']&&!_0x534c9d['diffData'][_0x593a7f]['attachChange']['isAttached'])continue;const _0xf898bf=this['_removeRevisionMarkers'](JSON['parse'](_0x534c9d['diffData'][_0x593a7f]['insertions'])),_0x367cdc=this['editor']['editing']['view']['document'],_0x584397=new _0x7dcfee(_0x367cdc,_0xf898bf['map'](_0x10046c=>V(_0x10046c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x15f67d[_0x593a7f]=this['editor']['data']['processor']['toData'](_0x584397),this['editor']['data']['processor']['useFillerType']('default');}return _0x15f67d;}async['getRevisionRootsAttributes'](_0x585313){await this['_loadRevisionData'](_0x585313);const _0x1f0622={};for(const _0x540d41 in _0x585313['diffData'])_0x585313['diffData'][_0x540d41]['attachChange']&&!_0x585313['diffData'][_0x540d41]['attachChange']['isAttached']||(_0x1f0622[_0x540d41]=_0x585313['diffData'][_0x540d41]['attributesAfter']||{});return _0x1f0622;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1faa43=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54a9fa=0x0;_0x54a9fa<_0x1faa43['length'];_0x54a9fa++){const _0x42df0b=_0x1faa43[_0x54a9fa];let _0x5b4197=!0x1;for(const _0x130954 of Object['keys'](_0x42df0b))void 0x0===_0x42df0b[_0x130954]?delete _0x42df0b[_0x130954]:'id'!==_0x130954&&(_0x5b4197=!0x0);_0x5b4197||(_0x1faa43[_0x54a9fa]=null);}if(_0x1faa43=_0x1faa43['filter'](_0x45c463=>null!==_0x45c463),!_0x1faa43['length'])return;for(let _0x2fd892=0x0;_0x2fd892<_0x1faa43['length'];_0x2fd892++){const _0x2414ad=_0x1faa43[_0x2fd892];void 0x0!==_0x2414ad['fromVersion']&&void 0x0===_0x2414ad['toVersion']&&(_0x2414ad['toVersion']=this['repository']['getRevision'](_0x2414ad['id'])['toVersion']),void 0x0!==_0x2414ad['toVersion']&&void 0x0===_0x2414ad['fromVersion']&&(_0x2414ad['fromVersion']=this['repository']['getRevision'](_0x2414ad['id'])['fromVersion']);}const _0x1720cb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1faa43,_0x1720cb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x201a54=>{if(_0x201a54){for(const _0x3228c6 of _0x201a54)this['setRevisionData']({'id':_0x3228c6['id'],'createdAt':_0x3228c6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5df8ea,_0x516789){let _0x5b1ef4=this['editor']['config']['get']('initialData'),_0x26797a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5b1ef4){_0x5b1ef4={};for(const _0x3b9704 of this['editor']['model']['document']['getRootNames']())_0x5b1ef4[_0x3b9704]='';}if('string'==typeof _0x5b1ef4&&(_0x5b1ef4={'main':_0x5b1ef4}),void 0x0===_0x26797a){_0x26797a={};for(const _0x200eb7 of this['editor']['model']['document']['getRootNames']())_0x26797a[_0x200eb7]={};}let _0x3ef122=!0x1;const _0x36d284=Object['keys'](_0x5b1ef4),_0x34a752=Object['keys'](_0x5df8ea);for(const _0x1d3a5e of _0x36d284){if(_0x5b1ef4[_0x1d3a5e]!==_0x5df8ea[_0x1d3a5e]&&''!==_0x5b1ef4[_0x1d3a5e]['trim']()){_0x3ef122=!0x0;break;}if(!_0xa1c9(_0x26797a[_0x1d3a5e],_0x516789[_0x1d3a5e])&&Object['keys'](_0x26797a[_0x1d3a5e])['length']>0x0){_0x3ef122=!0x0;break;}}_0x3ef122||(_0x3ef122=_0x34a752['some'](_0x1a00ae=>!this['editor']['model']['document']['getRoot'](_0x1a00ae))),_0x3ef122&&_0x32c901('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5b1ef4,'editorRootsAttributes':_0x26797a,'revisionData':_0x5df8ea,'revisionRootsAttributes':_0x516789}),this['editor']['config']['set']('initialData',_0x5df8ea),this['editor']['config']['set']('rootsAttributes',_0x516789);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x420ef6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x420ef6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4043e7){const _0x841771=this['repository']['getRevisions']();_0x841771['reverse']();let _0x3a8b06=0x0;for(;_0x3a8b06<_0x841771['length'];){const _0x49adf5=_0x841771[_0x3a8b06];if(_0x49adf5===this['currentRevision']){_0x3a8b06++;continue;}if(_0x49adf5['id']===this['_initialRevisionId'])break;const _0x1982df=_0x4043e7['toVersion']-_0x49adf5['toVersion']||_0x4043e7['fromVersion']-_0x49adf5['fromVersion'];if(_0x1982df>0x0)break;if(_0x1982df<0x0)_0x3a8b06++;else{if(!_0x4043e7['creator']&&_0x49adf5['creator'])break;if(_0x49adf5['creator']||!_0x4043e7['creator']){if(_0x4043e7['createdAt']>_0x49adf5['createdAt'])break;_0x3a8b06++;}else _0x3a8b06++;}}return _0x3a8b06;}['setRevisionData'](_0x52adf7){const _0x1c0a92=this['repository']['getRevision'](_0x52adf7['id']);if(_0x52adf7['createdAt']&&(_0x52adf7['createdAt']=new Date(_0x52adf7['createdAt'])),_0x52adf7['authorsIds']){const _0x18dc79=this['editor']['plugins']['get']('Users');_0x52adf7['authors']=_0x52adf7['authorsIds']['map'](_0x18107b=>_0x18dc79['getUser'](_0x18107b));}_0x1c0a92['_update'](_0x52adf7,!0x0);}['buildRevisionData']({revision:_0x3e01ce=null,from:_0x2693f9=null,to:_0x2ab99a=null}){_0x2693f9=null!==_0x2693f9?_0x2693f9:_0x3e01ce['fromVersion'],_0x2ab99a=null!==_0x2ab99a?_0x2ab99a:_0x3e01ce['toVersion'];const _0x1b98a1=this['_revisionDataBuilder']['getData'](_0x2693f9,_0x2ab99a),_0x1eba70={'diffData':_0x1b98a1['diffData'],'authorsIds':_0x1b98a1['authorsIds'],'fromVersion':_0x2693f9,'toVersion':_0x2ab99a};if(!_0x3e01ce||_0x2ab99a!==_0x3e01ce['toVersion']){const _0xb3afca=_0x2ab99a-0x1,_0x2c5488=this['_source']['history']['getOperation'](_0xb3afca);_0x1eba70['createdAt']=_0x2c5488&&_0x2c5488['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2693f9===this['_loadedStateData']['fromVersion']){for(const _0x2e5290 of this['_loadedStateData']['authors'])_0x1eba70['authorsIds']['includes'](_0x2e5290['id'])||_0x1eba70['authorsIds']['push'](_0x2e5290['id']);}return _0x1eba70;}['_loadRevisionData'](_0x39dd4f){if(!_0x39dd4f||_0x39dd4f['diffData'])return Promise['resolve']();{const _0x21fc1d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x21fc1d,'revisionId':_0x39dd4f['id']})['then'](_0x2ef7cc=>{_0x39dd4f['diffData']=_0x2ef7cc['diffData'];});}}['_bufferUpdate'](_0x39aca6,_0x38b391,_0x280875){if(this['_bufferedUpdates']['has'](_0x39aca6)){const _0x549fa6=this['_bufferedUpdates']['get'](_0x39aca6);_0x38b391=_0x280875?{..._0x549fa6,..._0x38b391}:{..._0x38b391,..._0x549fa6};}this['_bufferedUpdates']['set'](_0x39aca6,_0x38b391);}['_getFromVersion'](_0x10cebb){const _0x2f077c=this['repository']['getRevisions']();_0x2f077c['reverse'](),_0x2f077c['shift']();const _0x277b5d=_0x2f077c['find'](_0x322aa2=>_0x322aa2['toVersion']<=_0x10cebb)['toVersion'];return _0x277b5d<this['_startingVersion']?this['_startingVersion']:_0x277b5d;}['_createInitialRevision'](_0x4954b7){const _0x3e62ad=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3e62ad)this['_initialRevisionId']=_0x3e62ad['id'];else{const _0x220e7b=!this['editor']['model']['document']['roots']['find'](_0x2e9ba7=>this['editor']['model']['hasContent'](_0x2e9ba7)),_0x563893=this['editor']['plugins']['get']('Users')['me']['id'],_0x427f56=R(this['editor']['locale'],_0x220e7b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4954b7,'to':_0x4954b7,'id':this['_initialRevisionId'],'name':_0x427f56,'creatorId':_0x563893});}}['_createCurrentRevision'](_0xa3a40b){const _0x5b92af=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5b92af),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xa3a40b,'to':_0xa3a40b,'id':_0x5b92af,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1d1ace,from:_0x141a0c,to:_0x517f2e,creatorId:_0x176ccb,id:_0x3ec754}){const _0x3a79fd=this['buildRevisionData']({'from':_0x141a0c,'to':_0x517f2e});_0x3a79fd['name']=_0x1d1ace,_0x3a79fd['creatorId']=_0x176ccb,_0x3a79fd['id']=_0x3ec754;const _0x5fd9ae=this['addRevisionData'](_0x3a79fd);return this['adapter']&&this['_bufferUpdate'](_0x3a79fd['id'],_0x3a79fd,!0x0),_0x5fd9ae;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5d56af){return(_0x5d56af=_0x5d56af['filter'](_0x152e8f=>!_0x152e8f['name']||'revision-start'!==_0x152e8f['name']&&'revision-end'!==_0x152e8f['name']))['forEach'](_0x448531=>{'string'!=typeof _0x448531&&(_0x448531['children']=this['_removeRevisionMarkers'](_0x448531['children']),_0x448531['attributes']=_0x448531['attributes']['filter'](_0x1b9cc7=>!_0x1b9cc7[0x0]['startsWith']('data-revision-')));}),_0x5d56af;}}function V(_0x423d1a,_0x2fe247){const _0x1cd651=_0x2fe247['editing']['view']['document'];if('string'==typeof _0x423d1a)return new _0x28b5de(_0x1cd651,_0x423d1a);{const _0x3da8a2=_0x423d1a['children']['map'](_0x497703=>V(_0x497703,_0x2fe247));return new(C[_0x423d1a['type']]||_0x3e257f)(_0x1cd651,_0x423d1a['name'],_0x423d1a['attributes'],_0x3da8a2);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5bc41f){this['editor']=_0x5bc41f,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'](_0x1b79d7){this['source']=_0x1b79d7;const _0x154380=new Map(),_0x141297=new Map(),_0x4b90e5=this['editor']['model']['document']['roots']['map'](_0x5e9181=>_0x5e9181['rootName']);for(const _0x39f215 of _0x4b90e5){const _0x164822=this['editor']['model']['document']['getRoot'](_0x39f215),_0x4df6da=F(_0x164822);_0x154380['set'](_0x39f215,_0x4df6da),_0x141297['set'](_0x39f215,Object['fromEntries'](_0x164822['getAttributes']()));}const _0x3d4207=Array['from'](this['editor']['model']['markers'])['map'](_0x5b0a94=>[_0x5b0a94['name'],_0x5b0a94['getRange']()]),_0x461bb2=this['source']['version'];this['_saveMetaData'](_0x461bb2,_0x154380,_0x3d4207,_0x141297),this['_startingRevisionId']=this['_revisionId'];const _0x1e4894=new Map(),_0x1ac3b5=new Map();for(const _0x2b9b81 of _0x4b90e5){const _0x5d834a=B(_0x2b9b81);_0x1e4894['set'](_0x2b9b81,_0x5d834a),_0x1ac3b5['set'](_0x2b9b81,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e4894,[],_0x1ac3b5);}['getData'](_0x4f0223,_0x205687){if(this['_lastFrom']===_0x4f0223&&this['_lastTo']<=_0x205687)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x205687,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f0223)){const _0x3cf525=this['_getPreviousFrom'](_0x4f0223);this['_calculateMetaData'](_0x3cf525,_0x4f0223,!0x1);}this['_calculateMetaData'](_0x4f0223,_0x205687,!0x0);}return this['_lastFrom']=_0x4f0223,this['_lastTo']=_0x205687,this['_getState']();}['loadState'](_0x333f63){this['_reset'](),this['_lastFrom']=_0x333f63['fromVersion'],this['_lastTo']=_0x333f63['toVersion'];for(const _0x15dfa7 in _0x333f63['diffData']){const _0x2d36c8=_0x333f63['diffData'][_0x15dfa7]['attachChange'],_0x12e85a=_0x7b7393(_0x333f63['diffData'][_0x15dfa7]['attributesBefore'])||{},_0x6b8812=this['_makeModelFromViewString'](_0x333f63['diffData'][_0x15dfa7]['deletions']);_0x6b8812['rootName']=_0x15dfa7,_0x6b8812['_isAttached']=!_0x2d36c8||!_0x2d36c8['isAttached'],_0x6b8812['isAttached']=()=>_0x6b8812['_isAttached'],this['_baseRoots']['set'](_0x15dfa7,_0x6b8812),this['_baseRootsAttributes']['set'](_0x15dfa7,_0x12e85a),_0x2d36c8&&this['_touchedRoots']['set'](_0x15dfa7,_0x2d36c8);const _0x5ce9f2=this['_makeIdsRoot'](_0x6b8812);this['_baseIdsRoots']['set'](_0x15dfa7,_0x5ce9f2);for(const [_0x2bfaec,_0x15a1ec]of _0x6b8812['markers']){if(!_0x2bfaec['startsWith']('revision:'))continue;const _0x3083e2=_0x2bfaec['split'](':')[0x2];for(const _0x2e6d56 of _0x15a1ec['getWalker']({'singleCharacters':!0x0})){const _0x26fcba=this['_getVidAttributeName'](_0x2e6d56),_0x4385ac='elementEnd'==_0x2e6d56['type']?_0x2e6d56['previousPosition']['path']['slice'](0x0,-0x1):_0x2e6d56['previousPosition']['path'],_0x551b02=_0x5ce9f2['getNodeByPath'](_0x4385ac)['getAttribute'](_0x26fcba);this['_touched']['set'](_0x551b02,{'userId':_0x3083e2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x43986c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4c2980=>!this['_touched']['has'](_0x4c2980));let _0x490f=0x0;const _0x321e74=new Map();for(const _0x5663ea in _0x333f63['diffData']){const _0x4d70ad=_0x333f63['diffData'][_0x5663ea]['attachChange'],_0x6b7df7=_0x7b7393(_0x333f63['diffData'][_0x5663ea]['attributesAfter'])||{},_0x21e000=this['_makeModelFromViewString'](_0x333f63['diffData'][_0x5663ea]['insertions']);_0x21e000['rootName']=_0x5663ea,_0x21e000['_isAttached']=!_0x4d70ad||_0x4d70ad['isAttached'],_0x21e000['isAttached']=()=>_0x21e000['_isAttached'],this['_diffRoots']['set'](_0x5663ea,_0x21e000),this['_diffRootsAttributes']['set'](_0x5663ea,_0x6b7df7);const _0x21d1dd=this['_makeIdsRoot'](_0x21e000,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5663ea,_0x21d1dd),_0x321e74['set'](_0x5663ea,_0x21e000['isAttached']()?_0x6b7df7:{});for(const [_0x376762,_0x1f4aa1]of _0x21e000['markers']){if(!_0x376762['startsWith']('revision:'))continue;const _0x1deeca=_0x376762['split'](':')[0x2];for(const _0x5e7fa8 of _0x1f4aa1['getWalker']({'singleCharacters':!0x0})){const _0x50b894=this['_getVidAttributeName'](_0x5e7fa8),_0x98fb18=this['_revisionId']++,_0xdcd7ea='elementEnd'==_0x5e7fa8['type']?_0x5e7fa8['previousPosition']['path']['slice'](0x0,-0x1):_0x5e7fa8['previousPosition']['path'];_0x21d1dd['getNodeByPath'](_0xdcd7ea)['_setAttribute'](_0x50b894,_0x98fb18),this['_touched']['set'](_0x98fb18,{'userId':_0x1deeca});}}for(const _0x43608a of this['editor']['model']['createRangeIn'](_0x21e000)['getWalker']({'singleCharacters':!0x0})){const _0x2b8757=this['_getVidAttributeName'](_0x43608a),_0x4d189d='elementEnd'==_0x43608a['type']?_0x43608a['previousPosition']['path']['slice'](0x0,-0x1):_0x43608a['previousPosition']['path'],_0x564005=_0x21d1dd['getNodeByPath'](_0x4d189d);_0x564005['getAttribute'](_0x2b8757)>0x0||_0x564005['_setAttribute'](_0x2b8757,_0x43986c[_0x490f++]);}for(const [_0x2f4b4d,_0x492345]of _0x21e000['markers'])_0x2f4b4d['startsWith']('revision:')||this['_markers']['set'](_0x2f4b4d,_0x492345);}const _0x348a4b=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x348a4b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x348a4b,0x1));const _0xb85bb8=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xb85bb8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xb85bb8,0x1));const _0x56a399=Array['from'](this['_diffRoots'])['map'](([_0x22586e,_0x358014])=>[_0x22586e,F(_0x358014)]);this['_saveMetaData'](this['_lastTo'],_0x56a399,this['_markers'],_0x321e74);}['_makeModelFromViewString'](_0x425eea){const _0x143785=JSON['parse'](_0x425eea),_0x15f05b=this['editor']['editing']['view']['document'],_0x26e17a=new _0x7dcfee(_0x15f05b,_0x143785['map'](_0x3f35c4=>V(_0x3f35c4,this['editor'])));return this['editor']['data']['toModel'](_0x26e17a);}['_saveMetaData'](_0x7f71ff,_0x447e10,_0xaa3f13,_0x1c0e85){const _0x5ca67d=new Map(_0x447e10),_0x177f11=new Map(_0x7b7393(_0x1c0e85)),_0xf7b2a7=new Map();for(const [_0x554ab5,_0x198ea9]of _0xaa3f13)_0xf7b2a7['set'](_0x554ab5,{'start':_0x198ea9['start']['clone'](),'end':_0x198ea9['end']['clone'](),'rootName':_0x198ea9['root']['rootName']});this['_savedMetaData']['set'](_0x7f71ff,{'roots':_0x5ca67d,'markers':_0xf7b2a7,'rootsAttributes':_0x177f11});}['_removeMetaData'](_0x134d84){this['_savedMetaData']['delete'](_0x134d84);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0xaecdc6,_0x400cf6=null){let _0x29b8a8=null;_0xaecdc6['is']('documentFragment')||(_0x29b8a8=new ft(_0xaecdc6['name'],{'vid_start':null===_0x400cf6?this['_revisionId']++:_0x400cf6++}));const _0x1cb206=[];for(const _0x1f305e of _0xaecdc6['getChildren']())if(_0x1f305e['is']('element')){_0x1cb206['push'](this['_makeIdsRoot'](_0x1f305e,_0x400cf6));const _0x1efee0=_0x1cb206[_0x1cb206['length']-0x1];null!==_0x400cf6&&(_0x400cf6=_0x1efee0['is']('element','$text')?_0x1efee0['getAttribute']('vid')+0x1:_0x1efee0['getAttribute']('vid_end')+0x1);}else{for(let _0x3c114d=0x0;_0x3c114d<_0x1f305e['offsetSize'];_0x3c114d++)_0x1cb206['push'](new ft('$text',{'vid':null===_0x400cf6?this['_revisionId']++:_0x400cf6++}));}if(_0xaecdc6['is']('documentFragment')){const _0x2f3d6f=B(_0xaecdc6['rootName']);return _0x2f3d6f['_insertChild'](0x0,_0x1cb206),_0x2f3d6f;}return _0x29b8a8['_setAttribute']('vid_end',null===_0x400cf6?this['_revisionId']++:_0x400cf6++),_0x29b8a8['_insertChild'](0x0,_0x1cb206),_0x29b8a8;}['_calculateMetaData'](_0xad0e47,_0x3b7087,_0x263d84){this['_reset']();const {roots:_0x2260a7,markers:_0x576a2d,rootsAttributes:_0x342f41}=this['_savedMetaData']['get'](_0xad0e47);this['_baseRoots']=new Map(_0x2260a7),this['_baseRootsAttributes']=new Map(_0x7b7393(_0x342f41));for(const [_0x49dc4b,_0x36bbfc]of this['_baseRoots'])if('$graveyard'!==_0x49dc4b&&(this['_diffRoots']['set'](_0x49dc4b,F(_0x36bbfc)),this['_diffRootsAttributes']=new Map(_0x7b7393(_0x342f41)),_0x263d84)){const _0x1feea2=this['_revisionId'];this['_idsRoots']['set'](_0x49dc4b,this['_makeIdsRoot'](_0x36bbfc)),this['_baseIdsRoots']['set'](_0x49dc4b,this['_makeIdsRoot'](_0x36bbfc,_0x1feea2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x263d84&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x184928,_0x2babaf]of _0x576a2d){const _0x2c8ee8=this['_baseRoots']['get'](_0x2babaf['rootName']),_0x4e683e=this['_diffRoots']['get'](_0x2babaf['rootName']),_0x4ff81d=new vt(this['_fixPosition'](_0x2babaf['start'],_0x2c8ee8),this['_fixPosition'](_0x2babaf['end'],_0x2c8ee8)),_0x688eca=this['_fixRange'](_0x4ff81d,_0x4e683e);_0x2c8ee8['markers']['set'](_0x184928,_0x4ff81d),this['_markers']['set'](_0x184928,_0x688eca);}this['_applyOperations'](_0xad0e47,_0x3b7087,_0x263d84);}['_applyOperations'](_0x2a2e03,_0x349fae,_0x5447c0){for(const _0x213b75 of this['source']['getOperations'](_0x2a2e03,_0x349fae))this['_handleOperation'](_0x213b75,_0x5447c0);for(const _0xb448a9 of this['_diffRoots']['values']())_0xb448a9['markers']['clear']();for(const [_0x404bf7,_0x2491d5]of this['_markers']){this['_diffRoots']['get'](_0x2491d5['root']['rootName'])['markers']['set'](_0x404bf7,_0x2491d5['clone']());}const _0x298de4=new Map(),_0x3fac66=new Map();for(const [_0x389ae4,_0x37ca8d]of this['_diffRoots'])_0x298de4['set'](_0x389ae4,F(_0x37ca8d)),_0x3fac66['set'](_0x389ae4,this['_diffRootsAttributes']['get'](_0x389ae4));this['_saveMetaData'](_0x349fae,_0x298de4,this['_markers'],_0x3fac66);}['_getPreviousFrom'](_0x2b4f49){const _0x26fc15=Array['from'](this['_savedMetaData']['keys']());_0x26fc15['sort']((_0x579565,_0x3da23c)=>_0x579565-_0x3da23c),_0x26fc15['reverse']();for(const _0x3d8b24 of _0x26fc15)if(_0x3d8b24<_0x2b4f49)return _0x3d8b24;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a5fdd,_0x2d96bf){const _0x2ee23f=Array['from'](_0x2d96bf['markers'])['map'](([_0x3a957c,_0x3a74c4])=>[_0x3a957c,this['_fixRange'](_0x3a74c4,_0x5a5fdd)]);_0x5a5fdd['markers']=new Map(_0x2ee23f);}['_transformMarkers'](_0xbd2372){for(const _0x10fd2f of this['_markers']['values']()){const _0x3958da=_0x10fd2f['getTransformedByOperation'](_0xbd2372),_0x1dec86=vt['_createFromRanges'](_0x3958da);_0x10fd2f['start']=_0x1dec86['start'],_0x10fd2f['end']=_0x1dec86['end'];}}['_handleOperation'](_0x849850,_0x195bfb){if('addRoot'!=_0x849850['type']&&'detachRoot'!=_0x849850['type']){if('insert'==_0x849850['type']){const _0x464f07=_0x849850['position']['root']['rootName'];this['_diffRoots']['has'](_0x464f07)||(this['_diffRoots']['set'](_0x464f07,B(_0x464f07,!0x0)),this['_diffRootsAttributes']['set'](_0x464f07,{}),_0x195bfb&&this['_idsRoots']['set'](_0x464f07,B(_0x464f07,!0x0)));}else{if('addRootAttribute'==_0x849850['type']||'removeRootAttribute'==_0x849850['type']||'changeRootAttribute'==_0x849850['type'])return void this['_handleRootAttributeOperation'](_0x849850);'marker'==_0x849850['type']&&this['_handleMarkerOperation'](_0x849850);}if('marker'!==_0x849850['type']){const _0x594da2=this['_cloneOperation'](_0x849850,this['_diffRoots']);_0x594da2['_execute'](),this['_transformMarkers'](_0x594da2);}if(_0x195bfb)switch(_0x849850['type']){case'insert':this['_handleInsertOperation'](_0x849850);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x849850);break;case'merge':this['_handleMergeOperation'](_0x849850);break;case'split':this['_handleSplitOperation'](_0x849850);}}else this['_handleRootOperation'](_0x849850,_0x195bfb);}['_cloneOperation'](_0x12148c,_0x566d28){const _0x1b4e15=_0x12148c['clone']();return _0x1b4e15['_authorId']=_0x12148c['_authorId'],this['_fixOperation'](_0x1b4e15,_0x566d28),_0x1b4e15;}['_getBaseVids'](_0x1836d6){return _0x1836d6['map'](_0x97db52=>{const _0xf0d62d=this['_getVidAttributeName'](_0x97db52);return Number(_0x97db52['item']['getAttribute'](_0xf0d62d));});}['_generateTape'](_0x3f4867,_0xa19443){if(_0x3f4867['is']('element','$text'))_0xa19443['push']({'item':_0x3f4867,'type':'text'});else{_0x3f4867['is']('element')&&_0xa19443['push']({'item':_0x3f4867,'type':'elementStart'});for(const _0x4ce887 of _0x3f4867['getChildren']())this['_generateTape'](_0x4ce887,_0xa19443);_0x3f4867['is']('element')&&_0xa19443['push']({'item':_0x3f4867,'type':'elementEnd'});}return _0xa19443;}['_getState'](){const _0x2e0a12=new Map(this['_touched']),_0x2d0cab=new Map(_0x2e0a12),_0x1dabd5=new Map(),_0x51557b={'insertions':{},'deletions':{}},_0x128be6={'insertions':{},'deletions':{}},_0x1b768f=new Map(),_0x33f25a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x33f25a['delete']('$graveyard');for(const _0x4c3784 of _0x33f25a){const _0x24d782=this['_diffRoots']['get'](_0x4c3784)||B(_0x4c3784,!0x1),_0xea8ab5=this['_baseRoots']['get'](_0x4c3784)||B(_0x4c3784,!0x1);_0x24d782['isAttached']()||_0xea8ab5['isAttached']()?(_0x51557b['insertions'][_0x4c3784]=F(_0x24d782),_0x51557b['deletions'][_0x4c3784]=F(_0xea8ab5),this['_copyMarkers'](_0x51557b['deletions'][_0x4c3784],_0xea8ab5),this['_copyMarkers'](_0x51557b['insertions'][_0x4c3784],_0x24d782),_0x128be6['insertions'][_0x4c3784]=this['_generateTape'](this['_idsRoots']['get'](_0x4c3784),[]),_0x128be6['deletions'][_0x4c3784]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c3784)||B(_0x4c3784,!0x1),[])):_0x33f25a['delete'](_0x4c3784);}for(const _0xdf59fd of _0x33f25a){const _0x3bc391=_0x128be6['insertions'][_0xdf59fd];for(const _0x3378da of _0x3bc391){const _0x9fef26=this['_getVidAttributeName'](_0x3378da),_0xecf187=_0x3378da['item']['getAttribute'](_0x9fef26);_0x2d0cab['delete'](_0xecf187),_0xecf187>=this['_startingRevisionId']&&_0x1dabd5['set'](_0xecf187,_0x2e0a12['get'](_0xecf187));}}for(const _0x1e0240 of _0x33f25a){const _0x86aef3=_0x128be6['insertions'][_0x1e0240],_0x41ebe3=this['_getBaseVids'](_0x128be6['deletions'][_0x1e0240]);let _0x437b77=0x0;for(const _0x2014bc of _0x86aef3){const _0x38851c=this['_getVidAttributeName'](_0x2014bc),_0x49f733=_0x2014bc['item']['getAttribute'](_0x38851c);if(!_0x1dabd5['has'](_0x49f733)&&!_0x1b768f['has'](_0x49f733)){if(_0x2d0cab['has'](_0x49f733))_0x437b77++;else{if(_0x49f733!=_0x41ebe3[_0x437b77]){const _0x4ff0f4=_0x2e0a12['get'](_0x49f733)||_0x2e0a12['get'](_0x41ebe3[_0x437b77]);for(;_0x49f733!=_0x41ebe3[_0x437b77];)_0x2d0cab['has'](_0x41ebe3[_0x437b77])||(_0x1b768f['set'](_0x41ebe3[_0x437b77],_0x4ff0f4),_0x2e0a12['set'](_0x41ebe3[_0x437b77],_0x4ff0f4)),_0x437b77++;}_0x437b77++;}}}}for(const _0x2fb0a7 of _0x33f25a){const _0x5a5303=_0x128be6['insertions'][_0x2fb0a7];for(const _0x1c97d2 of _0x5a5303){const _0x3aaa15=this['_getVidAttributeName'](_0x1c97d2),_0x1878dd=_0x1c97d2['item']['getAttribute'](_0x3aaa15);if(_0x1b768f['has'](_0x1878dd)){const _0x68a53a=_0x1b768f['get'](_0x1878dd);_0x2d0cab['has'](_0x1878dd)||_0x2d0cab['set'](_0x1878dd,{..._0x68a53a}),_0x1dabd5['set'](_0x1878dd,{..._0x68a53a});}}}for(const _0x326123 of _0x2d0cab['keys']())_0x326123>=this['_startingRevisionId']&&_0x2d0cab['delete'](_0x326123);const _0x41660d=new Map();for(const _0x21c2f3 of _0x33f25a){let _0x4c1cc2=_0x128be6['insertions'][_0x21c2f3];for(const _0x18ae8d of _0x4c1cc2)if(_0x18ae8d['item']['is']('element','tableCell')){const _0xe14539=this['_getVidAttributeName'](_0x18ae8d),_0x247cf4=_0x18ae8d['item']['getAttribute'](_0xe14539);if(_0x1dabd5['has'](_0x247cf4)){const _0x4284e9=_0x18ae8d['item']['parent']['parent']['getAttribute']('vid_start'),_0x56c4bd=_0x41660d['get'](_0x4284e9)||new Set();_0x56c4bd['add'](_0x1dabd5['get'](_0x247cf4)['userId']),_0x41660d['set'](_0x4284e9,_0x56c4bd);}}_0x4c1cc2=_0x128be6['deletions'][_0x21c2f3];for(const _0x1c72ef of _0x4c1cc2)if(_0x1c72ef['item']['is']('element','tableCell')){const _0x2b6e37=this['_getVidAttributeName'](_0x1c72ef),_0x3517a0=_0x1c72ef['item']['getAttribute'](_0x2b6e37);if(_0x2d0cab['has'](_0x3517a0)){const _0x1902dd=_0x1c72ef['item']['parent']['parent']['getAttribute']('vid_start'),_0x359af9=_0x41660d['get'](_0x1902dd)||new Set();_0x359af9['add'](_0x2d0cab['get'](_0x3517a0)['userId']),_0x41660d['set'](_0x1902dd,_0x359af9);}}for(const _0x3a172d of _0x41660d['keys']())(_0x1dabd5['has'](_0x3a172d)||_0x2d0cab['has'](_0x3a172d))&&_0x41660d['delete'](_0x3a172d);}for(const _0x16de58 of _0x33f25a){const _0x307d5c=_0x128be6['insertions'][_0x16de58];let _0x5b54de=null,_0x3eb09f=null;for(const _0x2fc172 of _0x307d5c){const _0x24a354=this['_getVidAttributeName'](_0x2fc172),_0x2f47f8=_0x2fc172['item']['getAttribute'](_0x24a354),_0x27a2f2=_0x41660d['get'](_0x2f47f8);_0x27a2f2&&'elementStart'==_0x2fc172['type']&&(_0x5b54de=Array['from'](_0x27a2f2)[0x0],_0x3eb09f=_0x2fc172['item']['getAttribute']('vid_end')),_0x5b54de&&(_0x2d0cab['set'](_0x2f47f8,{'userId':_0x5b54de}),_0x1dabd5['set'](_0x2f47f8,{'userId':_0x5b54de})),_0x2f47f8==_0x3eb09f&&(_0x5b54de=null,_0x3eb09f=null);}}const _0x597dd5={},_0x59f256=new Set();for(const _0x184b2f of _0x33f25a){const _0x4712e4=_0x51557b['deletions'][_0x184b2f],_0x10ee76=_0x51557b['insertions'][_0x184b2f];for(const {userId:_0x3081ef}of this['_touchedMarkers']['values']())null!==_0x3081ef&&_0x59f256['add'](_0x3081ef);for(const {userId:_0x6023a1}of this['_touchedRoots']['values']())null!==_0x6023a1&&_0x59f256['add'](_0x6023a1);this['_markChanges'](_0x10ee76,_0x128be6['insertions'][_0x184b2f],_0x1dabd5,'insertion',_0x59f256),this['_markChanges'](_0x4712e4,_0x128be6['deletions'][_0x184b2f],_0x2d0cab,'deletion',_0x59f256),_0x597dd5[_0x184b2f]={'insertions':this['_prepareViewToSave'](_0x10ee76),'deletions':this['_prepareViewToSave'](_0x4712e4),'attachChange':this['_touchedRoots']['get'](_0x184b2f)||null,'attributesBefore':_0x7b7393(this['_baseRootsAttributes']['get'](_0x184b2f))||{},'attributesAfter':_0x7b7393(this['_diffRootsAttributes']['get'](_0x184b2f))};}return{'diffData':_0x597dd5,'authorsIds':Array['from'](_0x59f256)};}['_processRootBeforeSave'](_0x41186f){for(const [,_0x26a15]of _0x41186f['markers']){const _0x50ff20=_0x26a15['start']['getAncestors']()['filter'](_0x1289ee=>'tableCell'==_0x1289ee['name']);for(const _0x54cd91 of _0x50ff20)0x1==_0x54cd91['childCount']&&_0x54cd91['getChild'](0x0)['is']('element','paragraph')&&_0x54cd91['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x319e34){this['_processRootBeforeSave'](_0x319e34);const _0x49e7d2=this['editor']['data']['toView'](_0x319e34,{}),_0x2bd5cc=Array['from'](_0x49e7d2['getChildren']())['map'](_0x59d390=>this['_getViewJson'](_0x59d390));return JSON['stringify'](_0x2bd5cc);}['_getViewJson'](_0x5b5393){if(_0x5b5393['is']('$text'))return _0x5b5393['data'];{const _0x87cb52=_0x5b5393;return{'type':Object['keys'](C)['find'](_0x2fc91d=>_0x5b5393 instanceof C[_0x2fc91d]),'name':_0x87cb52['name'],'attributes':Array['from'](_0x87cb52['getAttributes']()),'children':Array['from'](_0x87cb52['getChildren']())['map'](_0x1e66a9=>this['_getViewJson'](_0x1e66a9))};}}['_markChanges'](_0x43866a,_0x4351d5,_0x2eed31,_0x4a525d,_0x52581f){let _0x4d1a56=null,_0x36b099=null,_0x4b1f73=0x0;const _0x10c59d=this['editor']['model'];for(let _0x289125=0x0;_0x289125<_0x4351d5['length'];_0x289125++){const _0x222428=this['_getVidAttributeName'](_0x4351d5[_0x289125]),_0x46b560=_0x4351d5[_0x289125]['item']['getAttribute'](_0x222428),_0x17d20b=_0x2eed31['get'](_0x46b560),_0x5ccb10=_0x289125==_0x4351d5['length']-0x1;(!_0x4d1a56&&_0x17d20b&&(_0x4d1a56=_0x17d20b,_0x36b099=_0x4351d5[_0x289125]),_0x4d1a56&&(!_0x17d20b||_0x17d20b['userId']!=_0x4d1a56['userId']))&&(_0x260619(_0x17d20b,J(_0x36b099,_0x43866a,_0x10c59d),J(_0x4351d5[_0x289125],_0x43866a,_0x10c59d)),_0x4d1a56=_0x17d20b||null,_0x36b099=_0x17d20b?_0x4351d5[_0x289125]:null),_0x4d1a56&&_0x5ccb10&&_0x260619(_0x17d20b,J(_0x36b099,_0x43866a,_0x10c59d),q(_0x4351d5[_0x289125],_0x43866a,_0x10c59d));}function _0x260619(_0x356434,_0x5c4c35,_0x4364c6){const _0x556c3e=_0x4d1a56['userId'],_0x31fdea='revision:'+_0x4a525d+':'+_0x556c3e+':'+_0x4b1f73++,_0x186232=_0x10c59d['createRange'](_0x5c4c35,_0x4364c6);_0x43866a['markers']['set'](_0x31fdea,_0x186232),null!==_0x556c3e&&_0x52581f['add'](_0x556c3e);}}['_getVidAttributeName'](_0x40b74f){switch(_0x40b74f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5533a8,_0x2c9a69){_0x5533a8['baseVersion']=null;for(const _0x4faf1b in _0x5533a8){const _0x304813=_0x5533a8[_0x4faf1b];if(_0x304813 instanceof gt){const _0x221ffc=_0x2c9a69['get'](_0x304813['root']['rootName']);_0x5533a8[_0x4faf1b]=this['_fixPosition'](_0x304813,_0x221ffc);}if(_0x304813 instanceof vt){const _0x47ae35=_0x2c9a69['get'](_0x304813['root']['rootName']);_0x5533a8[_0x4faf1b]=this['_fixRange'](_0x304813,_0x47ae35);}'root'===_0x4faf1b&&(_0x5533a8['root']=_0x2c9a69['get'](_0x5533a8['root']['rootName']));}}['_fixRange'](_0x50de9f,_0x26aaff){return this['editor']['model']['createRange'](this['_fixPosition'](_0x50de9f['start'],_0x26aaff),this['_fixPosition'](_0x50de9f['end'],_0x26aaff));}['_fixPosition'](_0x4f128c,_0x39dc85){return this['editor']['model']['createPositionFromPath'](_0x39dc85,_0x4f128c['path'],_0x4f128c['stickiness']);}['_handleInsertOperation'](_0xa53e){const _0x12b423=this['_idsRoots']['get'](_0xa53e['position']['root']['rootName']),_0xd85ab3=this['_fixPosition'](_0xa53e['position'],_0x12b423),_0x47744c=null===_0xa53e['_authorId']?null:_0xa53e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bfac2=_0xd85ab3['parent'],_0x1218ef=this['_revisionId'],_0x576d90=[];for(const _0x2981fe of _0xa53e['nodes'])if(_0x2981fe['is']('element'))_0x576d90['push'](this['_makeIdsRoot'](_0x2981fe));else{for(let _0x5f12e3=0x0;_0x5f12e3<_0x2981fe['offsetSize'];_0x5f12e3++)_0x576d90['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x580d44=this['_revisionId'];for(let _0x4db589=_0x1218ef;_0x4db589<_0x580d44;_0x4db589++)this['_touched']['set'](_0x4db589,{'userId':_0x47744c});_0x2bfac2['_insertChild'](_0xd85ab3['offset'],_0x576d90);}['_handleMoveOperation'](_0xdba6a7){(_0xdba6a7=this['_cloneOperation'](_0xdba6a7,this['_idsRoots']))['_execute']();const _0x5978d3=null===_0xdba6a7['_authorId']?null:_0xdba6a7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f4350=_0xdba6a7['getMovedRangeStart'](),_0x1e6b2a=_0x4f4350['parent'],_0x1c8791=_0x4f4350['offset'];!function _0x1051fe(_0x1b990e,_0x13d2bd,_0x3b04fc,_0x57f04c){for(let _0x509384=_0x3b04fc;_0x509384<_0x57f04c;_0x509384++){const _0x1fd20e=_0x13d2bd['getChild'](_0x509384);_0x1fd20e['is']('element','$text')?_0x1b990e['set'](_0x1fd20e['getAttribute']('vid'),{'userId':_0x5978d3}):(_0x1b990e['set'](_0x1fd20e['getAttribute']('vid_start'),{'userId':_0x5978d3}),_0x1051fe(_0x1b990e,_0x1fd20e,0x0,_0x1fd20e['childCount']),_0x1b990e['set'](_0x1fd20e['getAttribute']('vid_end'),{'userId':_0x5978d3}));}}(this['_touched'],_0x1e6b2a,_0x1c8791,_0x1c8791+_0xdba6a7['howMany']);}['_handleMergeOperation'](_0x4e1feb){const _0x460758=null===(_0x4e1feb=this['_cloneOperation'](_0x4e1feb,this['_idsRoots']))['_authorId']?null:_0x4e1feb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53e253=_0x4e1feb['targetPosition']['parent'],_0x362755=_0x4e1feb['sourcePosition']['parent'],_0x1b8a5c=_0x53e253['getAttribute']('vid_end'),_0x472de2=_0x362755['getAttribute']('vid_start');_0x53e253['_setAttribute']('vid_end',_0x362755['getAttribute']('vid_end')),_0x362755['_setAttribute']('vid_end',_0x1b8a5c),this['_touched']['set'](_0x472de2,{'userId':_0x460758}),this['_touched']['set'](_0x1b8a5c,{'userId':_0x460758}),_0x4e1feb['_execute']();}['_handleSplitOperation'](_0x1393a2){const _0x3c0761=null===(_0x1393a2=this['_cloneOperation'](_0x1393a2,this['_idsRoots']))['_authorId']?null:_0x1393a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52a081=_0x1393a2['graveyardPosition'],_0x3ccff7=_0x1393a2['splitPosition']['parent'];_0x1393a2['_execute']();const _0x338b46=_0x3ccff7['getAttribute']('vid_end'),_0xcb091d=_0x1393a2['insertionPosition']['nodeAfter'];if(_0x52a081){const _0x5b9b54=_0xcb091d['getAttribute']('vid_end'),_0x150dd9=_0x3ccff7['getAttribute']('vid_end');_0x3ccff7['_setAttribute']('vid_end',_0x5b9b54),_0xcb091d['_setAttribute']('vid_end',_0x150dd9),this['_touched']['set'](_0x3ccff7['getAttribute']('vid_end'),{'userId':_0x3c0761}),this['_touched']['set'](_0xcb091d['getAttribute']('vid_start'),{'userId':_0x3c0761});}else{const _0x38e23a=this['_revisionId']++,_0x6f4e5e=this['_revisionId']++;_0x3ccff7['_setAttribute']('vid_end',_0x38e23a),_0xcb091d['_setAttribute']('vid_start',_0x6f4e5e),_0xcb091d['_setAttribute']('vid_end',_0x338b46),this['_touched']['set'](_0x38e23a,{'userId':_0x3c0761}),this['_touched']['set'](_0x6f4e5e,{'userId':_0x3c0761});}}['_handleMarkerOperation'](_0x1bcf68){if(!_0x1bcf68['affectsData'])return;const _0xcbed57=(_0x1bcf68=this['_cloneOperation'](_0x1bcf68,this['_diffRoots']))['oldRange']?_0x1bcf68['oldRange']['root']:null,_0xbdc9de=_0x1bcf68['newRange']?_0x1bcf68['newRange']['root']:null;_0xcbed57&&this['_markers']['delete'](_0x1bcf68['name']),_0xbdc9de&&this['_markers']['set'](_0x1bcf68['name'],_0x1bcf68['newRange']['clone']());const _0x5a21c2=null===_0x1bcf68['_authorId']?null:_0x1bcf68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c669a=_0x1bcf68['name'];if(!this['_touchedMarkers']['has'](_0x3c669a))return void this['_touchedMarkers']['set'](_0x3c669a,{'range':_0x1bcf68['oldRange'],'userId':_0x5a21c2});const _0x4c079a=this['_touchedMarkers']['get'](_0x3c669a),_0x57ff84=_0x4c079a['range'],_0x578484=_0x1bcf68['newRange'];null==_0x57ff84&&null==_0x578484||_0x57ff84&&_0x578484&&_0x57ff84['isEqual'](_0x578484)?this['_touchedMarkers']['delete'](_0x1bcf68['name']):_0x4c079a['userId']=_0x5a21c2;}['_handleRootOperation'](_0x35a7be,_0x17a98b){this['_diffRoots']['has'](_0x35a7be['rootName'])?this['_diffRoots']['get'](_0x35a7be['rootName'])['_isAttached']=_0x35a7be['isAdd']:(this['_diffRoots']['set'](_0x35a7be['rootName'],B(_0x35a7be['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x35a7be['rootName'],{}),_0x17a98b&&this['_idsRoots']['set'](_0x35a7be['rootName'],B(_0x35a7be['rootName'],!0x0)));const _0x3c3930=null===_0x35a7be['_authorId']?null:_0x35a7be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b5d12=this['_touchedRoots']['get'](_0x35a7be['rootName']);_0x1b5d12&&_0x1b5d12['userId']===_0x3c3930?this['_touchedRoots']['delete'](_0x35a7be['rootName']):this['_touchedRoots']['set'](_0x35a7be['rootName'],{'userId':_0x3c3930,'isAttached':_0x35a7be['isAdd']});}['_handleRootAttributeOperation'](_0x4e3c4d){const _0x216d74=this['_diffRootsAttributes']['get'](_0x4e3c4d['root']['rootName']);null===_0x4e3c4d['newValue']?delete _0x216d74[_0x4e3c4d['key']]:_0x216d74[_0x4e3c4d['key']]=_0x4e3c4d['newValue'];}}function F(_0x4e5b00){const _0x5b9ccd=B(_0x4e5b00['rootName'],_0x4e5b00['isAttached']());for(const _0x3c95e9 of _0x4e5b00['getChildren']()){const _0x53c0e3=_0x3c95e9['_clone'](!0x0);_0x5b9ccd['_appendChild'](_0x53c0e3);}return _0x5b9ccd;}function B(_0x546a42,_0x56ad65=!0x0){const _0x7b7762=new mt();return _0x7b7762['rootName']=_0x546a42,_0x7b7762['_isAttached']=_0x56ad65,_0x7b7762['isAttached']=()=>_0x7b7762['_isAttached'],_0x7b7762;}function J(_0x44362d,_0x52cea2,_0xa651e9){const _0x5c9bc9='elementEnd'==_0x44362d['type']?_0xa651e9['createPositionAt'](_0x44362d['item'],'end'):_0xa651e9['createPositionBefore'](_0x44362d['item']);return _0xa651e9['createPositionFromPath'](_0x52cea2,_0x5c9bc9['path'],_0x5c9bc9['stickiness']);}function q(_0x1a64fd,_0x46abe4,_0xcb696){const _0x19c38d='elementStart'==_0x1a64fd['type']?_0xcb696['createPositionAt'](_0x1a64fd['item'],0x0):_0xcb696['createPositionAfter'](_0x1a64fd['item']);return _0xcb696['createPositionFromPath'](_0x46abe4,_0x19c38d['path'],_0x19c38d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x43238d,_0x50ab56){super(_0x43238d),this['focusTracker']=new _0x2b66cf(),this['keystrokes']=new _0x46ea2c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x50ab56),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4f03f3(this);}['render'](){super['render'](),_0x42944a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x11c744=_0x57ac8b=>_0x57ac8b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11c744),this['keystrokes']['set']('arrowleft',_0x11c744),this['keystrokes']['set']('arrowup',_0x11c744),this['keystrokes']['set']('arrowdown',_0x11c744);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xef8db4){this['revisionNameInputView']['fieldView']['element']['value']=_0xef8db4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x126630){const _0x3642e7=new _0x484b6d(this['locale'],_0x49da71),_0x4ab832=_0x3642e7['fieldView'];_0x4ab832['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x440d1e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x126630&&(_0x440d1e+='\x20('+R(this['locale'],'optional')+')'),(_0x3642e7['label']=_0x440d1e,_0x4ab832['on']('input',()=>{this['revisionNameInputValue']=_0x4ab832['element']['value']['trim']();}),_0x3642e7);}}class u extends _0x506060{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3d71a1=this['editor'],_0x2a1422=_0x3d71a1['plugins']['get']('RevisionTracker');_0x3d71a1['ui']['componentFactory']['add']('revisionHistory',_0x16761f=>{const _0x1ea1fd=_0x1f59c4(_0x16761f),_0x3ba972=_0x1ea1fd['panelView']['children'],_0x3a534e=new _0x139e5(_0x16761f),_0x554de=new _0x5c603c(_0x16761f),_0x295860=new te(_0x16761f),_0x429207=new _0x5c603c(_0x16761f),_0x74f757=new te(_0x16761f);return _0x1ea1fd['bind']('isEnabled')['to'](_0x2a1422,'isReady',_0x2a1422,'isEnabled',_0x3d71a1,'isReadOnly',(_0x91a4ee,_0x22efd5,_0x3a2b39)=>_0x91a4ee&&_0x22efd5&&!_0x3a2b39),_0x1ea1fd['buttonView']['set']({'icon':_0x593280['history'],'label':R(_0x16761f,'Revision\x20history'),'tooltip':!0x0}),_0x295860['set']({'label':R(_0x16761f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x295860['bind']('isEnabled')['to'](_0x2a1422,'isReady',_0x2a1422,'isEnabled',_0x3d71a1,'isReadOnly',(_0x43b679,_0x38832a,_0x20ae73)=>_0x43b679&&_0x38832a&&!_0x20ae73),_0x295860['on']('execute',()=>this['_showDialog']()),_0x74f757['set']({'label':R(_0x16761f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x74f757['bind']('isEnabled')['to'](_0x2a1422,'isReady',_0x3d71a1,'isReadOnly',(_0x4fe860,_0x25a2b0)=>_0x4fe860&&!_0x25a2b0),_0x74f757['on']('execute',()=>{_0x3d71a1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ea1fd['isOpen']=!0x1,_0x3d71a1['editing']['view']['focus']();}),_0x554de['children']['add'](_0x295860),_0x429207['children']['add'](_0x74f757),_0x3a534e['role']='menu',_0x3a534e['items']['addMany']([_0x554de,_0x429207]),_0x3ba972['add'](_0x3a534e),_0x1ea1fd;}),_0x3d71a1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x51adec=this['editor'],_0x17bf53=_0x51adec['locale'],_0x21b250=new _0x5f2de9(_0x17bf53),_0x2ae09f=new _0x547c45(_0x17bf53);_0x21b250['buttonView']['set']({'icon':_0x593280['history'],'label':R(_0x17bf53,'Revision\x20history')});const _0x3c0035=new _0x3cac34(_0x17bf53,_0x21b250),_0x1d0d9b=new _0x3b9d8d(_0x17bf53);_0x1d0d9b['set']({'label':R(_0x17bf53,'Save\x20current\x20revision')}),_0x1d0d9b['delegate']('execute')['to'](_0x21b250),_0x1d0d9b['on']('execute',()=>{this['_showDialog']();}),_0x3c0035['children']['add'](_0x1d0d9b),_0x2ae09f['items']['add'](_0x3c0035);const _0x275f03=new _0x3cac34(_0x17bf53,_0x21b250),_0x41a63b=new _0x3b9d8d(_0x17bf53);return _0x41a63b['set']({'label':R(_0x17bf53,'Open\x20revision\x20history')}),_0x41a63b['delegate']('execute')['to'](_0x21b250),_0x41a63b['on']('execute',()=>{_0x51adec['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x275f03['children']['add'](_0x41a63b),_0x2ae09f['items']['add'](_0x275f03),_0x21b250['panelView']['children']['add'](_0x2ae09f),_0x21b250;}['_showDialog'](){const _0x46b763=this['editor'],_0x567c05=_0x46b763['locale'],_0x100275=_0x46b763['plugins']['get']('Dialog'),_0x31083=_0x46b763['plugins']['get']('RevisionTracker');function _0x3b4159(_0x3c13fe){_0x46b763['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c13fe['revisionName']?_0x3c13fe['revisionNameInputView']['errorText']=R(_0x567c05,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x46b763['plugins']['get'](l)['saveRevision']({'name':_0x3c13fe['revisionName']}),_0x100275['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b4159(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x100275['show']({'id':'revisionSave','title':R(_0x567c05,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x46b763['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x100275['hide']()},{'label':R(_0x46b763['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x594669){_0x594669['bind']('isEnabled')['to'](_0x31083,'isReady',_0x31083,'isEnabled',_0x46b763,'isReadOnly',(_0x4b1841,_0xf0ede3,_0x4e6065)=>_0x4b1841&&_0xf0ede3&&!_0x4e6065);},'onExecute':()=>_0x3b4159(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2867b0=this['editor'],_0x33c9d0=_0x2867b0['locale'];this['_saveRevisionFormView']=new hs(_0x33c9d0,_0x2867b0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4d3df0,_0x3420a4){super(_0x4d3df0),this['_model']=_0x3420a4,this['changeId']=_0x3420a4['id'];const _0x2e849d=this['bindTemplate'],_0x385bbc=R(_0x4d3df0,_0x3420a4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3420a4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3420a4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2e849d['to']('type',_0x1301b3=>'ck-revision-change__'+_0x1301b3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x385bbc}]},{'text':'\x20'+_0x3420a4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40e57d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x29f45b){super(),this['id']=_0x29f45b['id']||_0xd77ba2(),this['author']=_0x29f45b['author'],this['type']=_0x29f45b['type'],this['data']=_0x29f45b['data']||{},this['rootName']=_0x29f45b['rootName'],this['set']('createdAt',_0x29f45b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x16696a,_0x1d2667){this['newRevisionId']=_0x16696a,this['oldRevisionId']=_0x1d2667,this['changes']=new _0x3861d2();}['_setChanges'](_0x2ceb35){for(const _0x451777 of _0x2ceb35)this['changes']['add'](_0x451777);}}const Z={'c':_0xfe2fa6,'a':_0x256c79,'e':_0x4e561c,'r':_0x3b1bb5,'u':_0x78b40f};class d extends _0x506060{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x45562e,_0xa57390,j];}constructor(_0x157190){super(_0x157190),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x123ee6,_0x55b750,_0x26ca9c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3e3250=>{for(const _0x550e9a of this['editor']['editing']['view']['document']['roots'])_0x26ca9c?_0x3e3250['removeClass']('ck-editor__editable__overlay',_0x550e9a):_0x3e3250['addClass']('ck-editor__editable__overlay',_0x550e9a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1d5974=>null!==_0x1d5974),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x13723d,_0x4d9be9,_0x204819)=>_0x13723d&&_0x204819?_0x4d9be9['changes']['getIndex'](_0x204819):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x201287,_0x4a3f10)=>_0x201287?_0x4a3f10['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xa57390);}['init'](){const _0x11dbbf=this['editor'],_0x47ec16=new yt(_0x11dbbf,{'direction':'backward'}),_0x4db783=new yt(_0x11dbbf,{'direction':'forward'});(_0x11dbbf['commands']['add']('showPreviousChange',_0x47ec16),_0x11dbbf['commands']['add']('showNextChange',_0x4db783),_0x11dbbf['commands']['add']('restoreRevision',new _t(_0x11dbbf)),this['on']('change:numberOfChanges',()=>{_0x47ec16['refresh'](),_0x4db783['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11dbbf['enableReadOnlyMode']('revision-viewer'),_0x11dbbf['plugins']['has']('WidgetToolbarRepository'))&&_0x11dbbf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x6d2c1a){await this['loadRevisionData'](_0x6d2c1a);const _0x3130ad={};for(const _0x3b0d18 in _0x6d2c1a['diffData']){if(_0x6d2c1a['diffData'][_0x3b0d18]['attachChange']&&!_0x6d2c1a['diffData'][_0x3b0d18]['attachChange']['isAttached'])continue;const _0x383574=this['_removeRevisionMarkers'](JSON['parse'](_0x6d2c1a['diffData'][_0x3b0d18]['insertions'])),_0x30c0ed=this['editor']['editing']['view']['document'],_0x3cfe9f=new _0x7dcfee(_0x30c0ed,_0x383574['map'](_0x1fa04c=>this['_getViewObj'](_0x1fa04c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3130ad[_0x3b0d18]=this['editor']['data']['processor']['toData'](_0x3cfe9f),this['editor']['data']['processor']['useFillerType']('default');}return _0x3130ad;}async['getRevisionRootsAttributes'](_0x3d0f34){await this['loadRevisionData'](_0x3d0f34);const _0x5cea68={};for(const _0x246065 in _0x3d0f34['diffData'])_0x3d0f34['diffData'][_0x246065]['attachChange']&&!_0x3d0f34['diffData'][_0x246065]['attachChange']['isAttached']||(_0x5cea68[_0x246065]=_0x3d0f34['diffData'][_0x246065]['attributesAfter']||{});return _0x5cea68;}['_removeRevisionMarkers'](_0x1066f4){return(_0x1066f4=_0x1066f4['filter'](_0x3bbab1=>!_0x3bbab1['name']||'revision-start'!==_0x3bbab1['name']&&'revision-end'!==_0x3bbab1['name']))['forEach'](_0x380cc4=>{'string'!=typeof _0x380cc4&&(_0x380cc4['children']=this['_removeRevisionMarkers'](_0x380cc4['children']),_0x380cc4['attributes']=_0x380cc4['attributes']['filter'](_0x51ae14=>!_0x51ae14[0x0]['startsWith']('data-revision-')));}),_0x1066f4;}async['compare'](_0x39ea1c,_0x174128,_0x1da6f8=!0x1){if(!this['isEnabled'])return;const _0x37c139=this['diff'],_0x100f69=this['repository'],_0x1f26b3='string'==typeof _0x39ea1c?_0x100f69['getRevision'](_0x39ea1c):_0x39ea1c,_0x1f4068='string'==typeof _0x174128?_0x100f69['getRevision'](_0x174128):_0x174128,_0x274d3d=_0x1f26b3['id'],_0x3ab53f=_0x1f4068?_0x1f4068['id']:null;if(!_0x1da6f8&&this['diff']&&this['diff']['newRevisionId']===_0x274d3d&&this['diff']['oldRevisionId']===_0x3ab53f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x274d3d,_0x3ab53f);const _0x135d1d=this['_getRevisionsRange'](_0x1f26b3,_0x1f4068,!0x0)['map'](_0x29d375=>this['loadRevisionData'](_0x29d375));return _0x135d1d['push'](new Promise(_0x21a27b=>{setTimeout(_0x21a27b,0x14);})),Promise['all'](_0x135d1d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x49a842=this['_getDiff'](_0x274d3d,_0x3ab53f);for(const _0x4ff918 of _0x49a842['changes'])this['_changeIdToChange']['set'](_0x4ff918['id'],_0x4ff918);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a70c1=>{for(const _0x35b7dc of this['editor']['model']['document']['getRootNames']())_0x2a70c1['detachRoot'](_0x35b7dc);for(const _0x1da397 of Object['keys'](_0x49a842['model'])){const _0x1e4347=_0x2a70c1['addRoot'](_0x1da397);for(const _0x128f0c of Object['keys'](_0x49a842['attributes'][_0x1da397]))_0x2a70c1['setAttribute'](_0x128f0c,_0x49a842['attributes'][_0x1da397][_0x128f0c],_0x1e4347);_0x2a70c1['insert'](_0x49a842['model'][_0x1da397],_0x1e4347,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x49a842['changes'])),this['isReady']=!0x0;})['catch'](_0x4cea75=>{console['error'](_0x4cea75),this['_cleanUp'](),_0x37c139&&(this['diff']=_0x37c139),this['isReady']=!0x0;});}['addRevisionData'](_0x1b6354,_0x130bd3){const _0x106c5e=this['repository']['createRevision'](_0x1b6354);return _0x106c5e['on']('_update',(_0x507692,_0x16104b,_0x59d4d6)=>_0x130bd3(_0x16104b,_0x59d4d6,_0x106c5e)),this['repository']['addRevision'](_0x106c5e),_0x106c5e;}['loadRevisionData'](_0x4c3a0d){if(!_0x4c3a0d||_0x4c3a0d['diffData'])return Promise['resolve']();{const _0x4de8fd=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4de8fd,'revisionId':_0x4c3a0d['id']})['then'](_0x102955=>{_0x4c3a0d['_update']({'diffData':_0x102955['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e0173=>{for(const _0x9f4530 of this['editor']['model']['document']['getRootNames']())_0x3e0173['detachRoot'](_0x9f4530);});}['_sortAndFilterDiffChanges'](_0x5eab82){const _0x1e21b=[],_0x8bad9e=new Map();for(const _0x84e878 of this['editor']['model']['document']['getRootNames']()){const _0x47b9ee=this['editor']['editing']['view']['getDomRoot'](_0x84e878);if(!_0x47b9ee)continue;const _0x5f0b66=_0x47b9ee['getClientRects']()['item'](0x0);_0x5f0b66&&(_0x1e21b['push'](_0x84e878),_0x8bad9e['set'](_0x84e878,_0x5f0b66));}return _0x1e21b['sort']((_0x3c260f,_0x2fb688)=>{const _0x5a4047=_0x8bad9e['get'](_0x3c260f),_0x39741e=_0x8bad9e['get'](_0x2fb688);return _0x5a4047['y']-_0x39741e['y']||_0x5a4047['x']-_0x39741e['x'];}),(_0x5eab82=_0x5eab82['filter'](_0x4f06f6=>_0x1e21b['includes'](_0x4f06f6['rootName'])))['sort']((_0x1471d1,_0x7a48a6)=>_0x1e21b['indexOf'](_0x1471d1['rootName'])-_0x1e21b['indexOf'](_0x7a48a6['rootName'])),_0x5eab82;}['_makeTape'](_0xf5a2c5){const _0x1c5996=Array['from'](_0xf5a2c5['markers'])['filter'](([_0x504526,_0x1f8017])=>_0x504526['startsWith']('revision:')&&!_0x1f8017['isCollapsed']),_0x2d4dc0=Array['from'](this['editor']['model']['createRangeIn'](_0xf5a2c5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1c5996['length'])for(const _0x152e6d of _0x2d4dc0){const [_0x1be4b8,_0x50ebfb]=_0x1c5996[0x0],[,_0x25bf06,_0x46b820]=_0x1be4b8['split'](':');if(_0x50ebfb['end']['isEqual'](_0x152e6d['nextPosition'])&&_0x1c5996['shift'](),(_0x152e6d['previousPosition']['isEqual'](_0x50ebfb['start'])||_0x152e6d['previousPosition']['isAfter'](_0x50ebfb['start']))&&('insertion'==_0x25bf06?_0x152e6d['isAdded']={'userId':_0x46b820}:'deletion'==_0x25bf06&&(_0x152e6d['isRemoved']={'userId':_0x46b820})),0x0==_0x1c5996['length'])break;}return _0x2d4dc0;}['_refreshStartEndIndex'](_0x44c5ec){const _0x3b5923=new Map();for(let _0x1f505a=0x0;_0x1f505a<_0x44c5ec['length'];_0x1f505a++)'text'===_0x44c5ec[_0x1f505a]['type']?(_0x44c5ec[_0x1f505a]['item']['startIndex']=_0x1f505a,_0x44c5ec[_0x1f505a]['item']['endIndex']=_0x1f505a):('elementStart'===_0x44c5ec[_0x1f505a]['type']?_0x44c5ec[_0x1f505a]['item']['startIndex']=_0x1f505a:'elementEnd'===_0x44c5ec[_0x1f505a]['type']&&(_0x44c5ec[_0x1f505a]['item']['endIndex']=_0x1f505a),_0x3b5923['set'](_0x44c5ec[_0x1f505a]['id'],_0x1f505a));for(const _0x18f410 of _0x3b5923['values']())'elementStart'===_0x44c5ec[_0x18f410]['type']?_0x44c5ec[_0x18f410]['item']['endIndex']=_0x3b5923['get'](_0x44c5ec[_0x18f410]['pairId']):'elementEnd'===_0x44c5ec[_0x18f410]['type']&&(_0x44c5ec[_0x18f410]['item']['startIndex']=_0x3b5923['get'](_0x44c5ec[_0x18f410]['pairId']));}['_processTape'](_0x36087a){for(let _0x2376b8=0x0;_0x2376b8<_0x36087a['length'];_0x2376b8++){if('elementStart'===_0x36087a[_0x2376b8]['type'])_0x36087a[_0x2376b8]['item']['startIndex']=_0x2376b8;else{if('elementEnd'===_0x36087a[_0x2376b8]['type']){_0x36087a[_0x2376b8]['item']['endIndex']=_0x2376b8;const _0x4f48a9=_0x36087a[_0x2376b8]['item']['startIndex'];_0x36087a[_0x4f48a9]['pairId']=_0x36087a[_0x2376b8]['id'],_0x36087a[_0x2376b8]['pairId']=_0x36087a[_0x4f48a9]['id'];}else _0x36087a[_0x2376b8]['item']['startIndex']=_0x2376b8,_0x36087a[_0x2376b8]['item']['endIndex']=_0x2376b8,_0x36087a[_0x2376b8]['pairId']=null;}_0x36087a[_0x2376b8]['markersStart']||(_0x36087a[_0x2376b8]['markersStart']=[],_0x36087a[_0x2376b8]['markersEnd']=[]);}}['_markInsertions'](_0x3670e7,_0x490d6d){const _0x4f53f6=_0x3670e7['filter'](_0x3704d0=>!_0x3704d0['isAdded']);for(let _0x1aa591=0x0;_0x1aa591<_0x490d6d['length'];_0x1aa591++)_0x490d6d[_0x1aa591]['isAdded']&&(_0x4f53f6[_0x1aa591]['isAdded']=_0x490d6d[_0x1aa591]['isAdded']);}['_makeModelFromViewString'](_0x231277){const _0x8f6b43=JSON['parse'](_0x231277),_0x539dd8=this['editor']['editing']['view']['document'],_0x5a9881=new _0x7dcfee(_0x539dd8,_0x8f6b43['map'](_0xf0ed09=>this['_getViewObj'](_0xf0ed09)));return this['editor']['data']['toModel'](_0x5a9881);}['_getViewObj'](_0x953ad7){const _0x42106e=this['editor']['editing']['view']['document'];if('string'==typeof _0x953ad7)return new _0x28b5de(_0x42106e,_0x953ad7);{const _0x2ff9b3=_0x953ad7['children']['map'](_0x640375=>this['_getViewObj'](_0x640375));return new(Z[_0x953ad7['type']]||_0x3e257f)(_0x42106e,_0x953ad7['name'],_0x953ad7['attributes'],_0x2ff9b3);}}['_getDiff'](_0x2d91a3,_0x36afe1=null){const _0x5b1058=this['repository']['getRevision'](_0x2d91a3),_0x159a11=_0x36afe1?this['repository']['getRevision'](_0x36afe1):null,_0x7df089=this['_getRevisionsRange'](_0x5b1058,_0x159a11),_0x59b5bf=_0x7df089[_0x7df089['length']-0x1],_0x37e806=new Map(),_0x3f38f1={'model':{},'attributes':{},'changes':[]},_0x16cc07=new Set(),_0x524041=new Map();for(let _0x2883a5=_0x7df089['length']-0x1;_0x2883a5>=0x0;_0x2883a5--){const _0x426d56=_0x7df089[_0x2883a5];for(const _0xc0ed22 of Object['keys'](_0x426d56['diffData']))if(_0x426d56['diffData'][_0xc0ed22]['attachChange']){const _0x4c858b=_0x426d56['diffData'][_0xc0ed22]['attachChange'];_0x4c858b['isAttached']?(_0x16cc07['add'](_0xc0ed22),_0x524041['has'](_0xc0ed22)&&_0x524041['get'](_0xc0ed22)['userId']==_0x4c858b['userId']?_0x524041['delete'](_0xc0ed22):_0x524041['set'](_0xc0ed22,_0x4c858b)):_0x524041['has'](_0xc0ed22)?(_0x16cc07['delete'](_0xc0ed22),_0x524041['delete'](_0xc0ed22)):(_0x16cc07['add'](_0xc0ed22),_0x524041['set'](_0xc0ed22,_0x4c858b));}else _0x16cc07['add'](_0xc0ed22);}for(const _0x45db02 of _0x16cc07){const _0x40c080=_0x524041['has'](_0x45db02)&&!_0x524041['get'](_0x45db02)['isAttached'];let _0x2be7b1=_0x40c080?_0x7df089['length']-0x1:0x0;const _0x8a1673=_0x40c080?-0x1:0x1;for(;_0x7df089[_0x2be7b1];){const _0x20b5d0=_0x7df089[_0x2be7b1];if(_0x20b5d0['diffData'][_0x45db02]){const _0x5e1c8a=_0x40c080?_0x20b5d0['diffData'][_0x45db02]['attributesBefore']:_0x20b5d0['diffData'][_0x45db02]['attributesAfter'];_0x3f38f1['attributes'][_0x45db02]=_0x5e1c8a?_0x7b7393(_0x5e1c8a):{};break;}_0x2be7b1+=_0x8a1673;}}for(const _0x3147ec of _0x7df089){_0x3147ec['model']={};for(const _0x55a09 of _0x3147ec['authors'])_0x37e806['set'](_0x55a09['id'],_0x55a09);for(const _0x507c8e of _0x16cc07){const _0x27b73c=_0x3147ec['diffData'][_0x507c8e]?_0x3147ec['diffData'][_0x507c8e]['insertions']:'[]',_0x21fd89=_0x3147ec['diffData'][_0x507c8e]?_0x3147ec['diffData'][_0x507c8e]['deletions']:'[]';_0x3147ec['model'][_0x507c8e]={'insertions':this['_makeModelFromViewString'](_0x27b73c),'deletions':this['_makeModelFromViewString'](_0x21fd89)};}}for(const _0x4b62dd of _0x16cc07){let _0x5bc168=null,_0x56c78c=0x0;const _0x2ef52a=new Map(Array['from'](_0x5b1058['model'][_0x4b62dd]['insertions']['markers'])['filter'](([_0x426a6c])=>!_0x426a6c['startsWith']('revision:')));let _0x4eb2f7=0x0;for(const _0x1fdd98 of _0x7df089){const _0x34aeb0=this['_makeTape'](_0x1fdd98['model'][_0x4b62dd]['insertions']);_0x1fdd98==_0x5b1058?(_0x5bc168=_0x34aeb0,_0x56c78c=_0x5bc168['length'],_0x5bc168['forEach'](_0x2fefad=>{_0x2fefad['id']=_0x4eb2f7++;}),this['_processTape'](_0x5bc168)):this['_markInsertions'](_0x5bc168,_0x34aeb0);const _0x1656dd=_0x5bc168['filter'](_0x33773f=>!_0x33773f['isAdded'])['map'](_0x52d9ed=>_0x52d9ed['id']);let _0x26f9df=0x0;const _0x1bea14=this['_makeTape'](_0x1fdd98['model'][_0x4b62dd]['deletions']);_0x1bea14['forEach'](_0x23ee46=>{_0x23ee46['isRemoved']?_0x23ee46['id']=_0x56c78c++:_0x23ee46['id']=_0x1656dd[_0x26f9df++];}),this['_processTape'](_0x1bea14),this['_setDistance'](_0x5bc168,'isAdded'),this['_setDistance'](_0x1bea14,'isRemoved'),_0x1fdd98==_0x5b1058&&this['_markMarkers'](_0x5bc168,_0x2ef52a),_0x5bc168=this['_joinTapes'](_0x5bc168,_0x1bea14),this['_refreshStartEndIndex'](_0x5bc168),this['_setDistance'](_0x5bc168,'isRemoved');}_0x5bc168=_0x5bc168['filter'](_0x311d22=>!(_0x311d22['isAdded']&&_0x311d22['isRemoved']));const _0x31e1c3=new Map(_0x59b5bf['model'][_0x4b62dd]['deletions']['markers']),_0x1db508=new Set(_0x2ef52a['keys']());for(const _0x5be859 of _0x31e1c3['keys']())_0x1db508['delete'](_0x5be859);this['_markSuggestions'](_0x5bc168,_0x1db508),this['_fixObsoleteTags'](_0x5bc168),_0x5bc168=this['_removeMissingPairs'](_0x5bc168),_0x5bc168=this['_markMismatchedRemovedTags'](_0x5bc168),_0x5bc168=this['_removeUnsupportedChanges'](_0x5bc168);const {root:_0x3f655f,changes:_0x37010a}=this['_makeModelFromTape'](_0x5bc168,_0x37e806,_0x4b62dd);_0x3f38f1['model'][_0x4b62dd]=_0x3f655f;const _0x4a6dc8=_0x524041['get'](_0x4b62dd);if(_0x4a6dc8){const _0x4e9f10=_0x37e806['get'](_0x4a6dc8['userId']),_0x465b95=new r({'author':_0x4e9f10,'type':_0x4a6dc8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b62dd});_0x37010a['unshift'](_0x465b95),_0x3f38f1['attributes'][_0x4b62dd]['revisionHistoryAttachChange']=_0x465b95['id'];}_0x3f38f1['changes']=_0x3f38f1['changes']['concat'](_0x37010a);}return _0x3f38f1;}['_markMarkers'](_0x250e69,_0x56e3fe){for(let _0x5d022e=0x0;_0x5d022e<_0x250e69['length'];_0x5d022e++)for(const [_0x524f5,_0x1ff7f4]of _0x56e3fe)_0x1ff7f4['start']['isEqual'](_0x250e69[_0x5d022e]['previousPosition'])&&_0x250e69[_0x5d022e]['markersStart']['push'](_0x524f5),_0x1ff7f4['end']['isEqual'](_0x250e69[_0x5d022e]['nextPosition'])&&_0x250e69[_0x5d022e]['markersEnd']['push'](_0x524f5);}['_joinTapes'](_0x52d242,_0x163108){let _0x3929ed=[],_0x37ab40=0x0,_0x455596=0x0;for(;_0x37ab40<_0x52d242['length']||_0x455596<_0x163108['length'];){const _0x44f1e8=_0x52d242[_0x37ab40]||{},_0x59f3b4=_0x163108[_0x455596]||{};if(_0x44f1e8['id']==_0x59f3b4['id'])_0x37ab40++,_0x455596++,_0x3929ed['push'](_0x44f1e8);else{if(_0x59f3b4['isRemoved']&&_0x44f1e8['isAdded']){const {commonTape:_0x3cb2d5,iEnd:_0x4ee043,jEnd:_0x4e893d}=this['_threeWayMerge'](_0x52d242,_0x37ab40,_0x163108,_0x455596);_0x3929ed=_0x3929ed['concat'](_0x3cb2d5),_0x37ab40=_0x4ee043,_0x455596=_0x4e893d;}else _0x59f3b4['isRemoved']?(_0x455596++,_0x3929ed['push'](_0x59f3b4)):(_0x37ab40++,_0x3929ed['push'](_0x44f1e8));}}return _0x3929ed;}['_markSuggestions'](_0x15a912,_0x48b0d9){const _0x36a60d=[];for(let _0x5e431c=0x0;_0x5e431c<_0x15a912['length'];_0x5e431c++){for(let _0x3c1590=0x0;_0x3c1590<_0x15a912[_0x5e431c]['markersStart']['length'];_0x3c1590++){const _0x44d631=_0x15a912[_0x5e431c]['markersStart'][_0x3c1590];if(!_0x48b0d9['has'](_0x44d631))continue;const {group:_0x27ea18,type:_0x16785f,authorId:_0x2ecf3d}=_0x397b16(_0x44d631);'revision-suggestion'!=_0x27ea18||'insertion'!=_0x16785f&&'deletion'!=_0x16785f||(_0x36a60d['unshift']({'type':_0x16785f,'name':_0x44d631,'userId':_0x2ecf3d}),_0x15a912[_0x5e431c]['markersStart']['splice'](_0x3c1590,0x1),_0x3c1590--);}_0x44cb0c(_0x15a912[_0x5e431c]);for(let _0x216190=0x0;_0x216190<_0x15a912[_0x5e431c]['markersEnd']['length'];_0x216190++){const _0x492f52=_0x15a912[_0x5e431c]['markersEnd'][_0x216190];if(!_0x48b0d9['has'](_0x492f52))continue;const {group:_0x2457be,type:_0xb78b67}=_0x397b16(_0x492f52);if('revision-suggestion'!=_0x2457be||'insertion'!=_0xb78b67&&'deletion'!=_0xb78b67)continue;_0x15a912[_0x5e431c]['markersEnd']['splice'](_0x216190,0x1),_0x216190--;const _0x5e72da=_0x36a60d['findIndex'](_0x142d0a=>_0x142d0a['name']==_0x492f52);_0x5e72da>-0x1&&_0x36a60d['splice'](_0x5e72da,0x1);}}function _0x397b16(_0x1e4fc8){const _0x770dc2=_0x1e4fc8['split'](':');return{'group':_0x770dc2[0x0],'type':_0x770dc2[0x1],'subType':_0x770dc2['length']>=0x5?_0x770dc2[0x2]:null,'id':_0x770dc2['length']<0x5?_0x770dc2[0x2]:_0x770dc2[0x3],'authorId':_0x770dc2['length']<0x5?_0x770dc2[0x3]:_0x770dc2[0x4],'markerCount':0x6==_0x770dc2['length']?_0x770dc2[0x5]:null};}function _0x44cb0c(_0x5ec0b2){for(let _0x42cb0a=0x0;_0x42cb0a<_0x36a60d['length'];_0x42cb0a++){if(_0x5ec0b2['isAdded']&&'insertion'==_0x36a60d[_0x42cb0a]['type'])return _0x5ec0b2['isAddSuggestion']=_0x36a60d[_0x42cb0a],void delete _0x5ec0b2['isAdded'];if(!_0x5ec0b2['isAdded']&&!_0x5ec0b2['isRemoved']&&'deletion'==_0x36a60d[_0x42cb0a]['type'])return void(_0x5ec0b2['isRemoveSuggestion']=_0x36a60d[_0x42cb0a]);}}}['_setDistance'](_0x159c2e,_0x4ea83a){let _0xe905d7=0x0,_0x320073=!0x1;const _0x5672eb=new Map();for(const _0x37ef2a of _0x159c2e)_0x37ef2a[_0x4ea83a]?_0x320073&&(_0xe905d7++,_0x320073=!0x1):(_0xe905d7++,_0x320073=!0x0),_0x5672eb['set'](_0x37ef2a['id'],_0xe905d7);for(let _0x2305d9=0x0;_0x2305d9<_0x159c2e['length'];_0x2305d9++){if('isRemoved'==_0x4ea83a&&_0x159c2e[_0x2305d9]['isAdded']||'isAdded'==_0x4ea83a&&_0x159c2e[_0x2305d9]['isRemoved'])continue;if('text'==_0x159c2e[_0x2305d9]['type']){_0x159c2e[_0x2305d9]['distance']=0x0;continue;}const _0x1ea28a=_0x5672eb['get'](_0x159c2e[_0x2305d9]['pairId']),_0x59b9a0=_0x5672eb['get'](_0x159c2e[_0x2305d9]['id']);_0x159c2e[_0x2305d9]['distance']=_0x1ea28a-_0x59b9a0;}}['_getRevisionsRange'](_0x25f248,_0x2214d1,_0x7cf016=!0x1){const _0x19f6d7=[];let _0x4144ae=this['repository']['getIndex'](_0x25f248),_0x16c1cb=this['repository']['getIndex'](_0x2214d1);for(-0x1==_0x16c1cb&&(_0x16c1cb=this['repository']['_revisions']['length'],_0x7cf016=!0x1);_0x4144ae<_0x16c1cb;)_0x19f6d7['push'](this['repository']['getRevision'](_0x4144ae)),_0x4144ae++;return _0x7cf016&&_0x19f6d7['push'](this['repository']['getRevision'](_0x4144ae)),_0x19f6d7;}['_threeWayMerge'](_0x26dfa1,_0x3455b0,_0xb483ad,_0x34ab96){const _0x255150=this['editor']['model']['schema'];let _0x2ab735=_0x3455b0;for(;_0x26dfa1[_0x2ab735]&&_0x26dfa1[_0x2ab735]['isAdded'];)_0x2ab735++;let _0x2d70b0=_0x34ab96;for(;_0xb483ad[_0x2d70b0]&&_0xb483ad[_0x2d70b0]['isRemoved'];)_0x2d70b0++;_0x20f8e0(_0x26dfa1,_0x3455b0,_0x2ab735),_0x20f8e0(_0xb483ad,_0x34ab96,_0x2d70b0);const _0x3de1c9=_0xb483ad['slice'](_0x34ab96,_0x2d70b0)['concat'](_0x26dfa1['slice'](_0x3455b0,_0x2ab735));return _0x3de1c9['sort']((_0xc336df,_0x35609c)=>_0xc336df['side']!=_0x35609c['side']?_0xc336df['side']-_0x35609c['side']:_0xc336df['level']!=_0x35609c['level']?_0xc336df['level']-_0x35609c['level']:_0xc336df['distance']!=_0x35609c['distance']?_0x35609c['distance']-_0xc336df['distance']:!!_0xc336df['isAdded']!=!!_0x35609c['isAdded']?-0x1==_0xc336df['side']||0x0==_0xc336df['side']?_0xc336df['isAdded']?-0x1:0x1:_0xc336df['isAdded']?0x1:-0x1:_0xc336df['index']-_0x35609c['index']),{'commonTape':_0x3de1c9,'iEnd':_0x2ab735,'jEnd':_0x2d70b0};function _0x20f8e0(_0x1b8224,_0x43f9ca,_0x3925e4){let _0x104ef1=-0x1,_0x4bffdd=Number['POSITIVE_INFINITY'],_0x5348d0=!0x0;for(let _0x2bc78c=_0x43f9ca;_0x2bc78c<_0x3925e4;_0x2bc78c++)if(_0x255150['isInline'](_0x1b8224[_0x2bc78c]['item'])||(_0x5348d0=!0x1),_0x1b8224[_0x2bc78c]['item']['startIndex']<_0x43f9ca&&(_0x104ef1=_0x2bc78c),_0x1b8224[_0x2bc78c]['item']['endIndex']>=_0x3925e4){_0x4bffdd=_0x2bc78c;break;}_0x5348d0&&(_0x104ef1=_0x3925e4-0x1);for(let _0x1be551=_0x43f9ca;_0x1be551<_0x3925e4;_0x1be551++)_0x1b8224[_0x1be551]['side']=_0x1be551<=_0x104ef1?-0x1:_0x1be551<_0x4bffdd?0x0:0x1,_0x1b8224[_0x1be551]['index']=_0x1be551;let _0x5a1c94=0x0;for(let _0x11004d=_0x43f9ca;_0x11004d<=_0x104ef1;_0x11004d++)0x0==_0x1b8224[_0x11004d]['distance']?_0x1b8224[_0x11004d]['level']=_0x5a1c94:(_0x5a1c94++,_0x1b8224[_0x11004d]['level']=_0x5a1c94,_0x5a1c94++);for(let _0x3244f9=_0x43f9ca;_0x3244f9<_0x3925e4;_0x3244f9++)0x0==_0x1b8224[_0x3244f9]['side']&&(_0x1b8224[_0x3244f9]['level']=_0x5a1c94);_0x5a1c94=0x0;for(let _0x2367a4=_0x3925e4-0x1;_0x2367a4>=_0x4bffdd;_0x2367a4--)0x0==_0x1b8224[_0x2367a4]['distance']?_0x1b8224[_0x2367a4]['level']=_0x5a1c94:(_0x5a1c94--,_0x1b8224[_0x2367a4]['level']=_0x5a1c94,_0x5a1c94--);}}['_fixObsoleteTags'](_0x5293fa){const _0x5526aa=new Map(),_0x29b3c6=this['editor']['model']['schema'];for(let _0x194b69=0x1;_0x194b69<_0x5293fa['length'];_0x194b69++){let _0x31dab1,_0x1cbbc3,_0x987e66;const _0x54c9e7=_0x5293fa[_0x194b69],_0x505075=_0x5293fa[_0x194b69-0x1];if('text'==_0x54c9e7['type'])continue;if(_0x54c9e7['type']!=_0x505075['type'])continue;if(!_0x29b3c6['isBlock'](_0x505075['item'])||_0x29b3c6['isLimit'](_0x505075['item']))continue;if(!_0x29b3c6['isBlock'](_0x54c9e7['item'])||_0x29b3c6['isLimit'](_0x54c9e7['item']))continue;if((_0x5293fa[_0x194b69]['isAdded']||_0x5293fa[_0x194b69]['isAddSuggestion'])&&_0x5293fa[_0x194b69-0x1]['isRemoved'])_0x31dab1=_0x5293fa[_0x194b69],_0x1cbbc3=_0x5293fa[_0x194b69-0x1],_0x987e66=_0x194b69-0x1;else{if(!_0x5293fa[_0x194b69]['isRemoved']||!_0x5293fa[_0x194b69-0x1]['isAdded']&&!_0x5293fa[_0x194b69-0x1]['isAddSuggestion'])continue;_0x31dab1=_0x5293fa[_0x194b69-0x1],_0x1cbbc3=_0x5293fa[_0x194b69],_0x987e66=_0x194b69;}const _0x31ac00=_0x31dab1['level']==_0x1cbbc3['level'],_0x8a42e4=Math['abs'](_0x31dab1['level'])<Math['abs'](_0x1cbbc3['level'])&&0x0==_0x1cbbc3['distance'];(_0x31ac00||_0x8a42e4)&&(_0x5526aa['set'](_0x1cbbc3['id'],_0x31dab1['id']),_0x5293fa['splice'](_0x987e66,0x1),_0x194b69--,_0x31dab1['isAdded']=!0x1);}for(let _0x29b538=0x0;_0x29b538<_0x5293fa['length'];_0x29b538++)_0x5526aa['has'](_0x5293fa[_0x29b538]['pairId'])&&(_0x5293fa[_0x29b538]['pairId']=_0x5526aa['get'](_0x5293fa[_0x29b538]['pairId']));}['_removeMissingPairs'](_0x2c5e6b){const _0x2d6cc6=new Set(_0x2c5e6b['map'](_0x46a9fb=>_0x46a9fb['id']));for(let _0xe76525=0x0;_0xe76525<_0x2c5e6b['length'];_0xe76525++)_0x2d6cc6['has'](_0x2c5e6b[_0xe76525]['pairId'])||0x0==_0x2c5e6b[_0xe76525]['distance']||(_0x2c5e6b[_0xe76525]['isIncorrect']=!0x0);return _0x2c5e6b['filter'](_0x476420=>!_0x476420['isIncorrect']);}['_markMismatchedRemovedTags'](_0x18af46){const _0x423820=new Set();for(let _0x3abf4d=0x0;_0x3abf4d<_0x18af46['length'];_0x3abf4d++){if(_0x423820['has'](_0x18af46[_0x3abf4d]['id'])&&_0x18af46[_0x3abf4d]['isRemoved']&&(_0x18af46[_0x3abf4d]['isIncorrect']=!0x0),_0x18af46[_0x3abf4d]['isIncorrect'])continue;if(0x0==_0x18af46[_0x3abf4d]['distance'])continue;if('elementStart'!=_0x18af46[_0x3abf4d]['type'])continue;if(null==_0x18af46[_0x3abf4d]['pairId'])continue;let _0x38c7ea=_0x3abf4d+0x1,_0x189eb8=0x0;for(;_0x18af46[_0x38c7ea]['id']!=_0x18af46[_0x3abf4d]['pairId'];)'elementStart'==_0x18af46[_0x38c7ea]['type']?_0x189eb8++:'elementEnd'==_0x18af46[_0x38c7ea]['type']&&_0x189eb8--,_0x38c7ea++;if(0x0!=_0x189eb8){if(_0x18af46[_0x3abf4d]['isRemoved'])_0x18af46[_0x3abf4d]['isIncorrect']=!0x0;else{for(;_0x38c7ea!=_0x3abf4d;)_0x18af46[_0x38c7ea]['isRemoved']&&0x0!=_0x18af46[_0x38c7ea]['distance']&&(_0x18af46[_0x38c7ea]['isIncorrect']=!0x0,_0x423820['add'](_0x18af46[_0x38c7ea]['pairId'])),_0x38c7ea--;}}}return _0x18af46['filter'](_0x358db7=>!_0x358db7['isIncorrect']);}['_removeUnsupportedChanges'](_0x385073){const _0x23ca59=this['editor']['model']['schema'];for(let _0x57c860=0x0;_0x57c860<_0x385073['length'];_0x57c860++){if(!(_0x385073[_0x57c860]['isAdded']||_0x385073[_0x57c860]['isAddSuggestion']||_0x385073[_0x57c860]['isRemoved']||_0x385073[_0x57c860]['isRemoveSuggestion']))continue;if(0x0==_0x385073[_0x57c860]['distance'])continue;const _0x293bb0=_0x385073[_0x57c860]['item'];_0x23ca59['isBlock'](_0x293bb0)||_0x23ca59['isLimit'](_0x293bb0)||(_0x385073[_0x57c860]['isAdded']&&delete _0x385073[_0x57c860]['isAdded'],_0x385073[_0x57c860]['isAddSuggestion']&&delete _0x385073[_0x57c860]['isAddSuggestion'],_0x385073[_0x57c860]['isRemoveSuggestion']&&delete _0x385073[_0x57c860]['isRemoveSuggestion'],_0x385073[_0x57c860]['isRemoved']&&(_0x385073[_0x57c860]['isIncorrect']=!0x0));}return _0x385073['filter'](_0x100457=>!_0x100457['isIncorrect']);}['_makeModelFromTape'](_0x228663,_0x54a3d8,_0x4d71d6){const _0x59aaf0=new mt(),_0x5e6eb9=[],_0x23b696=new Map(),_0x4e9cb9=this['editor']['model'],_0x4b6d67=_0x4e9cb9['schema'],_0x301130=[_0x59aaf0],_0x351840={},_0x578ca9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x95ba38=null;const _0x9d7182=[0x0];for(let _0x251cff=0x0;_0x251cff<_0x228663['length'];_0x251cff++)if('elementStart'===_0x228663[_0x251cff]['type']){_0x228663[_0x251cff]['previousPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182);const _0x3d0548=new ft(_0x228663[_0x251cff]['item']['name'],_0x228663[_0x251cff]['item']['getAttributes']());_0x301130[0x0]['_appendChild'](_0x3d0548),_0x9d7182['push'](0x0),_0x301130['unshift'](_0x3d0548),_0x228663[_0x251cff]['nextPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182);}else'elementEnd'===_0x228663[_0x251cff]['type']?(_0x301130['shift'](),_0x228663[_0x251cff]['previousPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182),_0x9d7182['pop'](),_0x9d7182[_0x9d7182['length']-0x1]++,_0x228663[_0x251cff]['nextPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182)):(_0x228663[_0x251cff]['previousPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182),_0x95ba38?_0x95ba38['_data']+=_0x228663[_0x251cff]['item']['data']:_0x95ba38=new wt(_0x228663[_0x251cff]['item']['data'],_0x228663[_0x251cff]['item']['getAttributes']()),_0x228663[_0x251cff+0x1]&&'text'===_0x228663[_0x251cff+0x1]['type']&&_0x28fb2f(_0x95ba38,_0x228663[_0x251cff+0x1]['item'])||(_0x301130[0x0]['_appendChild'](_0x95ba38),_0x95ba38=null),_0x9d7182[_0x9d7182['length']-0x1]+=_0x228663[_0x251cff]['item']['offsetSize'],_0x228663[_0x251cff]['nextPosition']=_0x4e9cb9['createPositionFromPath'](_0x59aaf0,_0x9d7182));for(let _0x2854bb=0x0;_0x2854bb<_0x228663['length'];_0x2854bb++){const _0x43d500=_0x228663[_0x2854bb]['previousPosition'],_0xd952e0=_0x228663[_0x2854bb]['nextPosition'];for(const _0x207946 of _0x228663[_0x2854bb]['markersStart'])_0x23b696['set'](_0x207946,{'start':_0x43d500,'end':null});_0x2cf490('isRemoveSuggestion',_0x2854bb,_0x43d500,_0xd952e0),_0x2cf490('isAddSuggestion',_0x2854bb,_0x43d500,_0xd952e0),_0x2cf490('isRemoved',_0x2854bb,_0x43d500,_0xd952e0),_0x2cf490('isAdded',_0x2854bb,_0x43d500,_0xd952e0);for(const _0x517b8e of _0x228663[_0x2854bb]['markersEnd']){_0x23b696['get'](_0x517b8e)['end']=_0xd952e0;}}for(const [_0x3aa62b,_0x1a09a5]of _0x23b696){const _0x1a08c5=this['editor']['model']['createRange'](_0x1a09a5['start'],_0x1a09a5['end']);_0x59aaf0['markers']['set'](_0x3aa62b,_0x1a08c5);}return _0x5e6eb9['sort']((_0x496c54,_0x8e450f)=>{const _0x953f1c=_0x59aaf0['markers']['get']('revision:'+_0x496c54['id']),_0x172a02=_0x59aaf0['markers']['get']('revision:'+_0x8e450f['id']);return _0x953f1c['start']['isBefore'](_0x172a02['start'])?-0x1:_0x953f1c['start']['isAfter'](_0x172a02['start'])?0x1:_0x953f1c['end']['isBefore'](_0x172a02['end'])?-0x1:_0x953f1c['end']['isAfter'](_0x172a02['end'])?0x1:'add'===_0x496c54['type']?-0x1:0x1;}),{'root':_0x59aaf0,'changes':_0x5e6eb9};function _0x2cf490(_0x2355bc,_0x5a7f04,_0x566326,_0x4c8556){const _0x21061e=!!_0x228663[_0x5a7f04][_0x2355bc],_0x2211cc=_0x21061e?_0x228663[_0x5a7f04][_0x2355bc]['userId']:null,_0x2db50f=_0x5a7f04===_0x228663['length']-0x1,_0x184733=_0x578ca9[_0x2355bc][0x0],_0x6199c=_0x4b6d67['isObject'](_0x228663[_0x5a7f04]['item']);!_0x351840[_0x2355bc]&&_0x21061e?_0x351840[_0x2355bc]={'start':_0x566326,'tapeItem':_0x228663[_0x5a7f04],'userId':_0x2211cc,'type':_0x2355bc}:_0x351840[_0x2355bc]&&!_0x21061e?(_0x351840[_0x2355bc]['end']=_0x566326,_0x492b79(_0x351840[_0x2355bc]),_0x351840[_0x2355bc]=null):_0x351840[_0x2355bc]&&_0x21061e&&_0x351840[_0x2355bc]['userId']!==_0x2211cc&&(_0x351840[_0x2355bc]['end']=_0x566326,_0x184733&&_0x184733['userId']===_0x351840[_0x2355bc]['userId']||_0x492b79(_0x351840[_0x2355bc]),_0x351840[_0x2355bc]={'start':_0x566326,'tapeItem':_0x228663[_0x5a7f04],'userId':_0x2211cc,'type':_0x2355bc}),_0x351840[_0x2355bc]&&_0x6199c&&('elementStart'!==_0x228663[_0x5a7f04]['type']||_0x184733&&_0x184733['userId']===_0x2211cc||_0x578ca9[_0x2355bc]['unshift']({'userId':_0x2211cc,'object':_0x228663[_0x5a7f04]['item'],'change':_0x351840[_0x2355bc]}),'elementEnd'===_0x228663[_0x5a7f04]['type']&&_0x184733&&_0x184733['object']===_0x228663[_0x5a7f04]['item']&&(_0x578ca9[_0x2355bc]['shift'](),_0x351840[_0x2355bc]=_0x184733['change'])),_0x351840[_0x2355bc]&&_0x2db50f&&(_0x351840[_0x2355bc]['end']=_0x4c8556,_0x492b79(_0x351840[_0x2355bc]),_0x351840[_0x2355bc]=null);}function _0x492b79({start:_0x51c957,end:_0x1b56ce,tapeItem:_0x44d4a9,userId:_0x3b51f0,type:_0x115cd7}){const _0x534285=_0x44d4a9['item'],_0x2672bc=_0x4e9cb9['schema']['isBlock'](_0x534285)&&!_0x4e9cb9['schema']['isLimit'](_0x534285),_0x23cc92=_0x51c957['nodeAfter']==_0x1b56ce['parent']&&_0x1b56ce['isAtStart'];if(_0x2672bc&&_0x23cc92)return;const _0x10f1bd=_0x4e9cb9['createRange'](_0x51c957,_0x1b56ce),_0x3e8acd=_0x54a3d8['get'](_0x3b51f0),_0x5676ad=new r({'author':_0x3e8acd,'type':'isAdded'==_0x115cd7||'isAddSuggestion'==_0x115cd7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x115cd7||'isRemoveSuggestion'==_0x115cd7},'createdAt':new Date(),'rootName':_0x4d71d6});_0x5e6eb9['push'](_0x5676ad),_0x59aaf0['markers']['set']('revision:'+_0x5676ad['id'],_0x10f1bd);}function _0x28fb2f(_0x4afc15,_0x4dab27){const _0x1e3754=_0x4afc15['getAttributes'](),_0x4e4fec=_0x4dab27['getAttributes']();for(const _0x1a1081 of _0x1e3754){if(_0x1a1081[0x1]!==_0x4dab27['getAttribute'](_0x1a1081[0x0]))return!0x1;_0x4e4fec['next']();}return _0x4e4fec['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4ddc57=>{const _0x1dcc27=_0x4ddc57['markerName']['split'](':')[0x1],_0x3cd7c9=this['_getChangeFromId'](_0x1dcc27);if(!_0x3cd7c9)return null;const _0x139514='add'==_0x3cd7c9['type']?'insertion':'deletion',_0x361941=['ck-suggestion-marker','ck-suggestion-marker-'+_0x139514];return _0x3cd7c9['data']['isSuggestion']&&_0x361941['push']('ck-suggestion-marker-'+_0x139514+'-new'),this['activeChange']==_0x3cd7c9&&_0x361941['push']('ck-suggestion-marker--active'),{'classes':_0x361941,'attributes':{'data-change-id':_0x1dcc27}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xfe98a1=>{_0xfe98a1['on']('element:pre',(_0x99b5f8,_0x4f9dfa,_0x3707f7)=>{const _0x1ee3d2=_0x4f9dfa['viewItem']['getChild'](0x0);if(!_0x1ee3d2||!_0x1ee3d2['is']('element','code'))return;if(!_0x3707f7['consumable']['consume'](_0x1ee3d2,{'attributes':['vid_start','vid_end']}))return;const _0x4551ce=_0x4f9dfa['modelRange']['start']['nodeAfter'];_0x3707f7['writer']['setAttribute']('vid_start',_0x1ee3d2['getAttribute']('vid_start'),_0x4551ce),_0x3707f7['writer']['setAttribute']('vid_end',_0x1ee3d2['getAttribute']('vid_end'),_0x4551ce);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2e4ba0=>{_0x2e4ba0['on']('element',(_0x1c4cf0,_0x53ec8f,_0x4d10b8)=>{if(!_0x4d10b8['consumable']['consume'](_0x53ec8f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x53ec8f['modelRange']['isCollapsed'])return;const _0x4dc037=_0x53ec8f['modelRange']['start']['nodeAfter'];_0x4dc037['hasAttribute']('vid_start')||_0x4dc037['hasAttribute']('vid')||(_0x4d10b8['writer']['setAttribute']('vid_start',_0x53ec8f['viewItem']['getAttribute']('vid_start'),_0x4dc037),_0x4d10b8['writer']['setAttribute']('vid_end',_0x53ec8f['viewItem']['getAttribute']('vid_end'),_0x4dc037));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb38665=>_0xb38665['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x34f58e,[,_0x99e8ac])=>{['vid_start','vid_end','vid']['includes'](_0x99e8ac)&&(_0x34f58e['return']=!0x0,_0x34f58e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x14206c=>{_0x14206c['on']('attribute:vid',(_0x125d57,_0x12b9c9,_0x2444ec)=>{if('\x20'!=_0x12b9c9['item']['data']||_0x12b9c9['item']['parent']['maxOffset']>0x1)return;if(!_0x2444ec['consumable']['consume'](_0x12b9c9['item'],_0x125d57['name']))return;const _0x4b11e3=_0x2444ec['writer'],_0x325400=_0x2444ec['mapper']['toViewRange'](_0x12b9c9['range']);_0x4b11e3['wrap'](_0x325400,_0x4b11e3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x226dc1){const _0x3564d1=_0x226dc1['plugins']['get']('RevisionViewer');return(_0x26b4d6,_0x1f0fa1,_0x504069)=>{const _0x6328c2=_0x1f0fa1['markerName']['split'](':')[0x1],_0x9d074a=_0x3564d1['_getChangeFromId'](_0x6328c2);if(!_0x9d074a)return null;const _0xe67477='add'==_0x9d074a['type']?'split':'merge';if(!_0x504069['consumable']['test'](_0x1f0fa1['markerRange'],_0x26b4d6['name']))return;const _0x2627a1=_0x1f0fa1['markerRange']['getWalker'](),_0x283549=_0x1f0fa1['markerRange']['start'],_0x1dd0c9=_0x226dc1['model']['schema'];let _0x16ee28=null,_0x1a9e59=null,_0x41cff2=!0x1,_0xe13d1f=!0x1;for(const _0x432249 of _0x2627a1){const _0x1a6ed3=_0x432249['item'];_0x41cff2=_0x41cff2||_0x1dd0c9['isContent'](_0x1a6ed3);const _0x584fbc=_0x504069['mapper']['toViewElement'](_0x1a6ed3);if(_0x584fbc&&_0x584fbc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x432249['type']&&(_0x1dd0c9['isBlock'](_0x1a6ed3)&&!_0x1dd0c9['isLimit'](_0x1a6ed3)&&(_0x1a6ed3['nextSibling']||_0x283549['isAtEnd']?_0x16ee28&&_0x16ee28['parent']==_0x1a6ed3||(_0x16ee28=_0x1a6ed3,_0x176769(_0x432249['previousPosition']),_0xe13d1f=!0x0):_0x1a9e59=_0x1a9e59||_0x432249['previousPosition']));}function _0x176769(_0x5b2a7){const _0x20d701=_0x504069['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe67477}),_0x5f1b38=_0x504069['mapper']['toViewPosition'](_0x5b2a7);_0x9d074a['data']['isSuggestion']&&_0x504069['writer']['addClass']('ck-suggestion-marker-'+_0xe67477+'-new',_0x20d701),_0x3564d1['activeChange']==_0x9d074a&&_0x504069['writer']['addClass']('ck-suggestion-marker--active',_0x20d701),_0x504069['writer']['insert'](_0x5f1b38,_0x20d701),_0x504069['mapper']['bindElementToMarker'](_0x20d701,_0x1f0fa1['markerName']);}_0x41cff2||_0xe13d1f||!_0x1a9e59||_0x176769(_0x1a9e59);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2cb7c9,_0x5a1735,_0x2c35f4)=>{const _0x3427d6=_0x2c35f4['mapper']['markerNameToElements'](_0x5a1735['markerName']);if(_0x3427d6){for(const _0x41e819 of _0x3427d6)(_0x41e819['hasClass']('ck-suggestion-marker-split')||_0x41e819['hasClass']('ck-suggestion-marker-merge'))&&(_0x2c35f4['mapper']['unbindElementFromMarkerName'](_0x41e819,_0x5a1735['markerName']),_0x2c35f4['writer']['remove'](_0x41e819));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x246d78,_0x495acc,_0x137742)=>{const _0x573695=_0x495acc['markerName']['split'](':')[0x1],_0x3264f6=this['_getChangeFromId'](_0x573695);if(!_0x3264f6)return null;const _0x42929c='add'==_0x3264f6['type']?'split':'merge';if(_0x137742['consumable']['test'](_0x495acc['markerRange'],_0x246d78['name']))for(const _0x4eff76 of _0x495acc['markerRange']['getItems']()){if(!_0x4eff76['is']('element','softBreak'))continue;const _0x4e9997=_0x137742['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42929c}),_0x581b3e=_0x137742['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4eff76));_0x3264f6['data']['isSuggestion']&&_0x137742['writer']['addClass']('ck-suggestion-marker-'+_0x42929c+'-new',_0x4e9997),this['activeChange']==_0x3264f6&&_0x137742['writer']['addClass']('ck-suggestion-marker--active',_0x4e9997),_0x137742['writer']['insert'](_0x581b3e,_0x4e9997),_0x137742['mapper']['bindElementToMarker'](_0x4e9997,_0x495acc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ca3f2=>{for(const _0x1cb040 of this['editor']['model']['document']['getRootNames']()){const _0x5c50a8=this['editor']['model']['document']['getRoot'](_0x1cb040),_0x166321=this['editor']['editing']['view']['document']['getRoot'](_0x1cb040);if(_0x166321){const _0x3e2d56=_0x5c50a8['getAttribute']('revisionHistoryAttachChange');if(_0x1ca3f2['removeAttribute']('data-change-id',_0x166321),_0x1ca3f2['removeClass']('ck-revision-history-root-add',_0x166321),_0x1ca3f2['removeClass']('ck-revision-history-root-remove',_0x166321),_0x1ca3f2['removeClass']('ck-revision-history-root--active',_0x166321),_0x3e2d56){const _0x542562=this['_getChangeFromId'](_0x3e2d56);if(!_0x542562)return null;_0x1ca3f2['setAttribute']('data-change-id',_0x3e2d56,_0x166321),_0x1ca3f2['addClass']('ck-revision-history-root-'+_0x542562['type'],_0x166321),this['activeChange']==_0x542562&&_0x1ca3f2['addClass']('ck-revision-history-root--active',_0x166321);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x17927d=>'revision-comment:'+_0x17927d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x387bda=>'revision-suggestion:'+_0x387bda,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5b3fbf=>({'name':'suggestion:'+_0x5b3fbf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x272123=>{const _0x694222=_0x272123['markerName']['split'](':')[0x1];return'insertion'!=_0x694222&&'deletion'!=_0x694222?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x694222]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x488bc9,_0x4a90ac,_0x58df94)=>{const _0x11d2fc=_0x58df94['mapper']['markerNameToElements'](_0x4a90ac['markerName']);if(_0x11d2fc){for(const _0x3b3e20 of _0x11d2fc)_0x3b3e20['is']('uiElement')&&(_0x58df94['mapper']['unbindElementFromMarkerName'](_0x3b3e20,_0x4a90ac['markerName']),_0x58df94['writer']['remove'](_0x3b3e20));}},{'priority':'high'});}['_getChangeFromId'](_0x29618){return this['_changeIdToChange']['get'](_0x29618);}['_getViewForChange'](_0x3a82be){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3a82be),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2185bb,_0xd1692c,_0x2d9439,_0x2eead6)=>{_0x2eead6&&this['_balloon']['remove'](_0x2eead6),_0x2d9439&&(this['_balloon']['add']({'view':_0x2d9439,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c142b=this['editor']['editing'],_0x1ea422=this['_getChangeFromId'](_0x2d9439['changeId']);let _0x45d540;if(_0x1ea422['data']['isOnRoot']){const _0x57936b=_0x3c142b['view']['getDomRoot'](_0x1ea422['rootName']);_0x45d540=Array['from'](_0x57936b['getClientRects']());}else{const _0x52b65e=this['editor']['model']['markers']['get']('revision:'+_0x2d9439['changeId']);_0x45d540=Array['from'](_0x3c142b['mapper']['markerNameToElements'](_0x52b65e['name']))['map'](_0x4962bb=>_0x3c142b['view']['domConverter']['mapViewToDom'](_0x4962bb))['map'](_0x1465b6=>Array['from'](_0x1465b6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x45d540[0x0];return _0x45d540['find'](_0x15e4f3=>_0x15e4f3['top']-0x3<=this['_activeViewTarget']['y']&&_0x15e4f3['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15e4f3['left']-0x3<=this['_activeViewTarget']['x']&&_0x15e4f3['right']+0x3>=this['_activeViewTarget']['x'])||_0x45d540[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x74a77a,_0x393493,_0x51f098,_0x243358)=>{this['activeView']=_0x51f098?this['_getViewForChange'](_0x51f098):null,this['editor']['model']['change'](()=>{const _0x1aa0be=this['editor']['editing'];_0x243358&&(_0x243358['data']['isOnRoot']?_0x1aa0be['view']['change'](_0x264baf=>{_0x264baf['removeClass']('ck-revision-history-root--active',_0x1aa0be['view']['document']['getRoot'](_0x243358['rootName']));}):_0x1aa0be['reconvertMarker']('revision:'+_0x243358['id'])),_0x51f098&&(_0x51f098['data']['isOnRoot']?_0x1aa0be['view']['change'](_0x5ee259=>{_0x5ee259['addClass']('ck-revision-history-root--active',_0x1aa0be['view']['document']['getRoot'](_0x51f098['rootName']));}):_0x1aa0be['reconvertMarker']('revision:'+_0x51f098['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x236c05,_0x559a54)=>{if(this['activeChange'])return;const _0x31251c=this['_findChangeIdFromDomTarget'](_0x559a54['target']),_0x3c89bc=this['_changeIdToChange']['get'](_0x31251c);_0x3c89bc?(this['_activeViewTarget']={'x':_0x559a54['domEvent']['x'],'y':_0x559a54['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3c89bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x32a044,_0x225175)=>{const _0x13ddf8=this['_findChangeIdFromDomTarget'](_0x225175['target']),_0x25571a=this['_changeIdToChange']['get'](_0x13ddf8);_0x25571a?(this['_activeViewTarget']={'x':_0x225175['domEvent']['x'],'y':_0x225175['domEvent']['y']},_0x25571a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25571a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fd123){do{const _0x474ece=_0x1fd123['getAttribute']('data-change-id');if(_0x474ece)return _0x474ece;_0x1fd123=_0x1fd123['parent'];}while(_0x1fd123);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5ad050=>{for(const _0x5e7886 of this['editor']['model']['markers'])_0x5ad050['removeMarker'](_0x5e7886);});}}function tt(_0x2350ec,_0x277b1d){return(_0x3871fa,_0x4eae72,_0x5e76b6)=>{if(!_0x5e76b6['consumable']['test'](_0x4eae72['markerRange'],_0x3871fa['name']))return;const _0x428dfc=_0x4eae72['markerRange']['getWalker'](),_0x3b746c=_0x4eae72['markerRange']['start'],_0x584e5d=_0x2350ec['model']['schema'];let _0x126b89=null,_0x3c4123=null,_0x3d97ba=!0x1,_0x5f3529=!0x1;for(const _0x48c168 of _0x428dfc){const _0x141a1d=_0x48c168['item'];_0x3d97ba=_0x3d97ba||_0x584e5d['isContent'](_0x141a1d);const _0x491230=_0x5e76b6['mapper']['toViewElement'](_0x141a1d);if(_0x491230&&_0x491230['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48c168['type']&&(_0x584e5d['isBlock'](_0x141a1d)&&!_0x584e5d['isLimit'](_0x141a1d)&&(_0x141a1d['nextSibling']||_0x3b746c['isAtEnd']?_0x126b89&&_0x126b89['parent']==_0x141a1d||(_0x126b89=_0x141a1d,_0x13a728(_0x48c168['previousPosition']),_0x5f3529=!0x0):_0x3c4123=_0x3c4123||_0x48c168['previousPosition']));}function _0x13a728(_0x33ba3b){const _0x3d72ca=_0x5e76b6['mapper']['toViewPosition'](_0x33ba3b),_0x249244=_0x5e76b6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x277b1d});_0x5e76b6['writer']['insert'](_0x3d72ca,_0x249244),_0x5e76b6['mapper']['bindElementToMarker'](_0x249244,_0x4eae72['markerName']);}_0x3d97ba||_0x5f3529||!_0x3c4123||_0x13a728(_0x3c4123);};}class _t extends _0x32b66d{constructor(_0x3e565f){super(_0x3e565f);const _0x426bc1=_0x3e565f['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x426bc1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x426bc1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x161067=this['editor'],_0xc7f233=_0x161067['plugins']['get'](d),_0x3e07e5=_0xc7f233['isReady']?_0xc7f233['diff']['newRevisionId']:null;_0x161067['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3e07e5);}['refresh'](){const {isReady:_0x1592f2,isEnabled:_0x30dace,repository:_0x103784,diff:_0x46533e}=this['editor']['plugins']['get'](d),_0x3375c1=_0x46533e&&_0x103784['getLaterVisibleRevision'](_0x46533e['newRevisionId']);this['isEnabled']=_0x1592f2&&_0x30dace&&Boolean(_0x3375c1);}}class yt extends _0x32b66d{['_step'];constructor(_0xfed32d,{direction:_0x5e1c4f}){super(_0xfed32d);const _0x32e8a7=_0xfed32d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5e1c4f?0x1:-0x1,this['listenTo'](_0x32e8a7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x32e8a7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x32e8a7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3f927b=this['editor'],_0x3bb18f=_0x3f927b['plugins']['get'](d),{isNavigationMode:_0x58f404,currentChangeNumber:_0x2ad621}=_0x3bb18f;let _0x2ddea4;if(_0x3bb18f['activeChange']=_0x58f404?_0x3bb18f['diff']['changes']['get'](_0x2ad621+this['_step']):_0x3bb18f['diff']['changes']['first'],_0x3bb18f['activeChange']['data']['isOnRoot'])_0x2ddea4=_0x3f927b['editing']['view']['getDomRoot'](_0x3bb18f['activeChange']['rootName']);else{const _0x5618bb=_0x3f927b['model']['markers']['get']('revision:'+_0x3bb18f['activeChange']['id']);_0x2ddea4=_0x4d8bba(_0x3f927b['editing'],_0x5618bb);}_0x167748({'target':_0x2ddea4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4b1671,currentChangeNumber:_0x2a9192,numberOfChanges:_0x5c461,isReady:_0x4dadd7,isEnabled:_0x20c490}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x20c490&&_0x4dadd7&&_0x5c461)&&(!_0x4b1671||(0x1===this['_step']?_0x2a9192<_0x5c461-0x1:_0x2a9192>0x0));}}class li extends ts{constructor(_0x570bf0){super(_0x570bf0);const _0x387f04=this['bindTemplate'],_0x42d7e8=new te(_0x570bf0),_0x51f955=new te(_0x570bf0);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',(_0x5ed882,_0x1f031d)=>_0x5ed882&&_0x1f031d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x582fdc,_0x5ed3d4,_0x229e5b,_0xe889a0)=>{if(!_0x582fdc)return R(_0x570bf0,'Loading...');if(!_0x229e5b)return R(_0x570bf0,'No\x20changes');const _0x1b1528=R(_0x570bf0,'NUMBER_OF_CHANGES',_0x229e5b);return _0xe889a0?R(_0x570bf0,'X_OF_Y_CHANGES',[_0x5ed3d4+0x1,_0x229e5b]):_0x1b1528;}),_0x42d7e8['set']({'label':R(_0x570bf0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x51f955['set']({'label':R(_0x570bf0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x42d7e8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x51f955['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x42d7e8['on']('execute',()=>this['fire']('execute','backward')),_0x51f955['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',_0x387f04['if']('_isStatusLabelVisible','ck-hidden',_0xcc9be8=>!_0xcc9be8)]},'children':[{'text':_0x387f04['to']('isNavigationMode',_0x1b6c22=>_0x1b6c22?R(_0x570bf0,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x570bf0,'Total')+':\x20')}]},{'text':_0x387f04['to']('_statusText')}]},new _0x121d7b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x42d7e8,_0x51f955]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x506060{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x414e45=this['editor']['editing']['view'];_0x414e45['change'](_0x1900e4=>{for(const _0x2bf3da of _0x414e45['document']['roots'])_0x1900e4['addClass'](le,_0x2bf3da);});}['hide'](){const _0x3fc46f=this['editor']['editing']['view'];_0x3fc46f['change'](_0xb6bf91=>{for(const _0xef76b4 of _0x3fc46f['document']['roots'])_0xb6bf91['removeClass'](le,_0xef76b4);});}}class m extends _0x506060{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x15fbd6=this['editor'],_0xbf1233=_0x15fbd6['plugins']['get'](d),_0x52735b=_0x15fbd6['plugins']['get'](ge);_0x15fbd6['ui']['componentFactory']['add']('exitToEditing',_0xa4216b=>{const _0x8f5ed7=new te(_0xa4216b);return _0x8f5ed7['set']({'label':R(_0xa4216b,'Back\x20to\x20editing'),'icon':_0x593280['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x8f5ed7,'execute',()=>{_0x15fbd6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x8f5ed7;}),_0x15fbd6['ui']['componentFactory']['add']('restoreRevision',_0x29b17f=>{const _0x3ba81a=new te(_0x29b17f);return _0x3ba81a['set']({'label':R(_0x29b17f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3ba81a['bind']('isEnabled')['to'](_0x15fbd6['commands']['get']('restoreRevision')),this['listenTo'](_0x3ba81a,'execute',()=>_0x15fbd6['execute']('restoreRevision')),_0x3ba81a;}),_0x15fbd6['ui']['componentFactory']['add']('changesNavigation',_0x3e4a3b=>{const _0x31cd63=new li(_0x3e4a3b),_0x364e77=_0x15fbd6['commands']['get']('showPreviousChange'),_0x3a9d99=_0x15fbd6['commands']['get']('showNextChange');return _0x31cd63['bind']('isBackwardNavigationEnabled')['to'](_0x364e77,'isEnabled'),_0x31cd63['bind']('isForwardNavigationEnabled')['to'](_0x3a9d99,'isEnabled'),_0x31cd63['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xbf1233),this['listenTo'](_0x31cd63,'execute',(_0x15b89a,_0xeb89fd)=>{_0x15fbd6['execute']('forward'===_0xeb89fd?'showNextChange':'showPreviousChange');}),_0x31cd63;}),_0x52735b['show'](),_0xbf1233['on']('change:isReady',(_0x4e9577,_0x37e616,_0x2f908b)=>{_0x2f908b?_0x52735b['hide']():_0x52735b['show']();});}}class pt extends _0x484b6d{['_resizeObserver']=null;constructor(_0xf59420,_0x210859){super(_0xf59420,_0x210859);const _0x1ed747=this['bindTemplate'];this['set']({'label':R(_0xf59420,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xf59420,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1ed747['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3ef99e=this['fieldView']['element'];this['_tooltipString']=_0x3ef99e['scrollWidth']>_0x3ef99e['clientWidth']&&_0x3ef99e['value']||'';}}class ri extends ts{constructor(_0x448dc4,_0x4d26f8,_0x2706d7){super(_0x448dc4);const _0x5b58da=new _0x2529e8();_0x5b58da['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1ccc4e=['ck','ck-revision-history-sidebar__revision-author'];_0x2706d7&&_0x1ccc4e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x58e82e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x448dc4,_0x2706d7?'Revision\x20creator':'Revision\x20author')},'children':[_0x5b58da,_0x4d26f8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ccc4e},'children':_0x58e82e});}}function oi(_0x129254,_0x54ae4c){const _0x2a83c3=_0x129254['bindTemplate'],_0x574919=_0x129254['locale'],_0x5d5fd2=_0x1f59c4(_0x574919);_0x5d5fd2['panelPosition']='sw';const _0x5c299b=function(_0x79cb2f,_0x5dd26f){const _0x54d890=function(_0x10887b,_0x4ea0b5){const _0x159d69=_0x10887b['locale'],_0x1e1d6d={'Compare\x20against\x20selected':R(_0x159d69,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x159d69,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x159d69,'Restore\x20this\x20revision')};return _0x4ea0b5['map'](_0x1fb69c=>{const _0x5584a2=_0x1e1d6d[_0x1fb69c['name']];return _0x5584a2&&_0x5584a2!==_0x1fb69c['name']&&(_0x1fb69c['name']=_0x5584a2),_0x1fb69c;});}(_0x79cb2f,_0x5dd26f),_0x3c9b28=new _0x3861d2();for(const _0x52f6e0 of _0x54d890){const _0x280110={'type':'button','model':new _0x572c9c({'label':_0x52f6e0['name'],'class':_0x52f6e0['class'],'withText':!0x0,'role':'menuitem','_action':_0x52f6e0['action']})};_0x280110['model']['bind']('isEnabled')['to'](_0x79cb2f,'isActionsDropdownOpen',_0x5f05d3=>'function'!=typeof _0x52f6e0['isEnabled']||(!_0x5f05d3||_0x52f6e0['isEnabled'](_0x79cb2f))),_0x3c9b28['add'](_0x280110);}return _0x3c9b28;}(_0x129254,_0x54ae4c);return _0x129254['bind']('isActionsDropdownOpen')['to'](_0x5d5fd2,'isOpen'),_0x5d5fd2['buttonView']['set']({'label':R(_0x574919,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x593280['threeVerticalDots']}),_0x5d5fd2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2a83c3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2a83c3['to'](_0x37a2a0=>_0x37a2a0['stopPropagation']())}}),_0x5d5fd2['on']('execute',_0x3d99fb=>{_0x129254['isReady']&&'function'==typeof _0x3d99fb['source']['_action']&&_0x3d99fb['source']['_action'](_0x129254);}),to(_0x5d5fd2,_0x5c299b,{'role':'menu'}),_0x5d5fd2['listenTo'](_0x129254,'change:isActionsDropdownOpen',(_0x390709,_0x4a8702,_0x2f3c59)=>{if(_0x2f3c59)for(const _0x2b1dc1 of _0x5d5fd2['listView']['items']){const _0x45b8c2=_0x2b1dc1['children']['first'],_0x113ac9=_0x54ae4c['find'](_0x4059b6=>_0x4059b6['action']===_0x45b8c2['_action'])['isVisible'];_0x2b1dc1['isVisible']=void 0x0===_0x113ac9||_0x113ac9(_0x129254);}}),_0x5d5fd2;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x4f37d9,uid as _0x443970,Collection as _0x7320e5,logWarning as _0x302b1e,FocusTracker as _0x234b54,KeystrokeHandler as _0x816803,scrollViewportToShowTarget as _0x4ff583,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0xd71846}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x13b21d,set as _0xb45956,unset as _0x4906fd,isEqual as _0x51c453}from'lodash-es';import{Plugin as _0x173480,PendingActions as _0x169908,icons as _0x29afe1,Command as _0x3334d3,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x421b50,getMarkerDomElement as _0xdad008,ConfirmMixin as _0x28ebd0,sanitizeEditorConfig as _0x4edf6a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x297069,ViewText as _0x4f05b2,ViewElement as _0x348f18,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x269e24,ViewAttributeElement as _0x832fa4,ViewEmptyElement as _0x2821ca,ViewRawElement as _0x46e5fa,ViewUIElement as _0x1ad2b4,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x30dbe4,injectCssTransitionDisabler as ts,submitHandler as _0x2b4b69,LabeledFieldView as at,createLabeledInputText as _0x3fc3d3,createDropdown as _0x4bbaf9,ListView as te,ListItemView as _0x40cc38,ButtonView as _0x380986,MenuBarMenuView as _0x4d58f8,MenuBarMenuListView as _0x4d1ea3,MenuBarMenuListItemView as _0x33d201,MenuBarMenuListItemButtonView as _0x2e40e7,ContextualBalloon as _0x264182,ToolbarSeparatorView as _0xe63aea,IconView as _0xb4e60f,addListToDropdown as _0x229028,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x22825e}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f37d9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xe1b97){super(),this['id']=_0xe1b97['id']||_0x443970(),this['creator']=_0xe1b97['creator']||null,this['authors']=_0xe1b97['authors']||[],this['diffData']=_0xe1b97['diffData']||null,this['toVersion']=_0xe1b97['toVersion']||0x0,this['fromVersion']=_0xe1b97['fromVersion']||0x0,this['set']('name',_0xe1b97['name']||''),this['set']('createdAt',_0xe1b97['createdAt']||new Date()),this['set']('attributes',_0xe1b97['attributes']||{});}['setName'](_0x2ded57){this['_update']({'name':_0x2ded57});}['setAttribute'](_0x14a769,_0x219405){const _0x9af031=_0x13b21d(this['attributes']);_0xb45956(_0x9af031,_0x14a769,_0x219405),this['_update']({'attributes':_0x9af031});}['removeAttribute'](_0x138e4a){const _0x39722f=_0x13b21d(this['attributes']);_0x4906fd(_0x39722f,_0x138e4a),this['_update']({'attributes':_0x39722f});}['_update'](_0xd4c12c,_0x52fd0c=!0x1){let _0x37ec20=!0x1;const _0x1c6140={'id':this['id']},_0x43dd7f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xa23133 of _0x43dd7f){const _0x17da00=_0xd4c12c[_0xa23133];void 0x0!==_0x17da00&&_0x17da00!==this[_0xa23133]&&(this[_0xa23133]=_0x17da00,_0x1c6140[_0xa23133]=_0x17da00,_0x37ec20=!0x0);}_0x37ec20&&(_0x1c6140['authors']&&(_0x1c6140['authorsIds']=_0x1c6140['authors']['map'](_0x200e2c=>_0x200e2c['id']),delete _0x1c6140['authors']),this['fire']('_update',_0x1c6140,_0x52fd0c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11659a=>_0x11659a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x173480{['_revisions'];static get['requires'](){return[_0x421b50];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b78a9){super(_0x2b78a9),this['_revisions']=new _0x7320e5();}['afterInit'](){!async function(_0x2d9426){const _0x5bfae9=_0x36e77b([0x52,0x6b,0x73,0x57,0x71,0x74,0x64,0x62,0x4c,0x46,0x79,0x50,0x7a,0x4e,0x4d,0x43,0x6a,0x54,0x33,0x6f,0x78,0x4a,0x47,0x45,0x53,0x75,0x30,0x49,0x59,0x31,0x70,0x65,0x6c,0x35,0x39,0x66,0x36,0x58,0x44,0x38,0x4f,0x37,0x6d,0x6e,0x72,0x56,0x77,0x76,0x67,0x51,0x34,0x4b,0x41,0x61,0x32,0x69,0x42,0x55,0x48,0x5a,0x68,0x63]),_0x1d79aa=0xeb829,_0xb511ad=0x1b1bd56f,_0x22ab8f=0x1b1c8e37^_0xb511ad,_0xfa13c9=window[_0x36e77b([0x44,0x61,0x74,0x65])][_0x36e77b([0x6e,0x6f,0x77])](),_0x2dcb3a=_0x2d9426[_0x36e77b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51911=new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3843aa=>{_0x2dcb3a[_0x36e77b([0x6f,0x6e,0x63,0x65])](_0x36e77b([0x72,0x65,0x61,0x64,0x79]),_0x3843aa);}),_0x1980e8={[_0x36e77b([0x6b,0x74,0x79])]:_0x36e77b([0x45,0x43]),[_0x36e77b([0x75,0x73,0x65])]:_0x36e77b([0x73,0x69,0x67]),[_0x36e77b([0x63,0x72,0x76])]:_0x36e77b([0x50,0x2d,0x32,0x35,0x36]),[_0x36e77b([0x78])]:_0x36e77b([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]),[_0x36e77b([0x79])]:_0x36e77b([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]),[_0x36e77b([0x61,0x6c,0x67])]:_0x36e77b([0x45,0x53,0x32,0x35,0x36])},_0x37894d=_0x2dcb3a[_0x36e77b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36e77b([0x67,0x65,0x74])](_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x556c23(){let _0x123f8f,_0x14dee2=null,_0x515440=null;try{if(_0x37894d==_0x36e77b([0x47,0x50,0x4c]))return _0x36e77b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x123f8f=_0x12c142(),!_0x123f8f)return _0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x123f8f[_0x36e77b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x515440=_0x15e6b2(_0x123f8f[_0x36e77b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x123f8f[_0x36e77b([0x6a,0x74,0x69])])),await _0x3891f8()?_0x118fbb()?_0x1fb8df()?_0x36e77b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x118789()?(_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14dee2=_0x43153f(_0x36e77b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x74,0x72,0x69,0x61,0x6c])&&(_0x14dee2=_0x43153f(_0x36e77b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36e77b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x14dee2=_0x43153f(_0x36e77b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c8ecc()):_0x36e77b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36e77b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45f668){return _0x36e77b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fb8df(){const _0x25b838=[_0x36e77b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36e77b([0x74,0x72,0x69,0x61,0x6c])][_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfa13c9/0x3e8:0xe10*_0x22ab8f;return _0x123f8f[_0x36e77b([0x65,0x78,0x70])]<_0x25b838;}function _0x118fbb(){const _0x2c82f4=_0x123f8f[_0x36e77b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c82f4)return!0x1;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x2a])))return!0x0;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x52,0x48])))return!0x0;if(_0x2c82f4[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x52,0x52,0x48]))){if(_0x499b05())return!0x0;if(_0x16318f()||_0x3eb990())return!0x0;}return!0x1;}function _0x118789(){const _0x482be6=_0x123f8f[_0x36e77b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x482be6||0x0==_0x482be6[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a10c7}=new URL(window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x482be6[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a10c7))return!0x0;const _0x1d84ea=_0x4a10c7[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e]));return _0x482be6[_0x36e77b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e2f26=>_0x4e2f26[_0x36e77b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e77b([0x2a])))[_0x36e77b([0x6d,0x61,0x70])](_0x12f51e=>_0x12f51e[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e])))[_0x36e77b([0x73,0x6f,0x6d,0x65])](_0x55bc11=>_0x1d84ea[_0x36e77b([0x65,0x76,0x65,0x72,0x79])]((_0x2b93a4,_0x4d7b41)=>_0x55bc11[_0x4d7b41]===_0x2b93a4||_0x55bc11[_0x4d7b41]===_0x36e77b([0x2a])));}function _0x4c8ecc(){return _0x14dee2&&_0x515440?new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32b9cb,_0x41d4fc)=>{_0x14dee2[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x32b9cb,_0x41d4fc),_0x515440[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x3b2e1b=>{_0x3b2e1b!=_0x36e77b([0x56,0x61,0x6c,0x69,0x64])&&_0x32b9cb(_0x3b2e1b);},_0x41d4fc);}):_0x14dee2||_0x515440||_0x36e77b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15e6b2(_0x2cee48,_0x3487d1){return new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd750=>{if(_0x4280a1())return _0x2bd750(_0x36e77b([0x56,0x61,0x6c,0x69,0x64]));_0x1c7cf9(),_0x2dcb3a[_0x36e77b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37ac6c=!0x1;const _0x44aed5=_0x443970();function _0x335d4f(_0x239089){return!!_0x239089&&(typeof _0x239089===_0x36e77b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x239089===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x239089[_0x36e77b([0x74,0x68,0x65,0x6e])]===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x239089[_0x36e77b([0x63,0x61,0x74,0x63,0x68])]===_0x36e77b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e4b26(_0x1a2d69){_0x3f0fe7(_0x1a2d69)[_0x36e77b([0x74,0x68,0x65,0x6e])](_0xa84c18=>{if(!_0xa84c18||_0xa84c18[_0x36e77b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36e77b([0x6f,0x6b]))return _0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x907dc4(_0x2f1e1c(_0x44aed5+_0x3487d1))!=_0xa84c18[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36e77b([0x56,0x61,0x6c,0x69,0x64]);})[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x1c4639=>(_0x4bc115(),_0x1c4639),()=>{const _0x12ca8c=_0x3ecf21();return null==_0x12ca8c?(_0x4bc115(),_0x36e77b([0x56,0x61,0x6c,0x69,0x64])):_0x36e77b(_0xfa13c9-_0x12ca8c>(0x3f17516f^_0xb511ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x2bd750)[_0x36e77b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31122f=0x1b2d3bef^_0xb511ad;function _0x4bc115(){const _0x7509f7=_0x36e77b([0x6c,0x6c,0x63,0x74,0x2d])+_0x907dc4(_0x2f1e1c(_0x2cee48)),_0xdc1802=_0x372a53(_0x907dc4(window[_0x36e77b([0x4d,0x61,0x74,0x68])][_0x36e77b([0x63,0x65,0x69,0x6c])](_0xfa13c9/_0x31122f)));window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36e77b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7509f7,_0xdc1802);}function _0x3ecf21(){const _0x5ef0cc=_0x36e77b([0x6c,0x6c,0x63,0x74,0x2d])+_0x907dc4(_0x2f1e1c(_0x2cee48)),_0x4c92b0=window[_0x36e77b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36e77b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ef0cc);return _0x4c92b0?window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372a53(_0x4c92b0),0x10)*_0x31122f:null;}function _0x3f0fe7(_0x54d5f5){return new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17c3e6,_0x5ab710)=>{_0x54d5f5[_0x36e77b([0x74,0x68,0x65,0x6e])](_0x17c3e6,_0x5ab710),window[_0x36e77b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ab710,0x1b1a01af^_0xb511ad);});}}_0x2dcb3a[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9078f5,_0x3fe484)=>{if(_0x3fe484[0x0]!=_0x2cee48)return _0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fe484[0x1]={..._0x3fe484[0x1],[_0x36e77b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44aed5};},{[_0x36e77b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36e77b([0x68,0x69,0x67,0x68])}),_0x2dcb3a[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8ee5=>{_0x335d4f(_0x3a8ee5[_0x36e77b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37ac6c=!0x0,_0x5e4b26(_0x3a8ee5[_0x36e77b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36e77b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36e77b([0x6c,0x6f,0x77])}),_0x51911[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>{_0x37ac6c||_0x2bd750(_0x36e77b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4280a1(){return _0x2dcb3a[_0x36e77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36e77b([0x76,0x69,0x65,0x77])][_0x36e77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36e77b([0x61,0x75,0x74,0x6f]);}function _0x1c7cf9(){_0x2dcb3a[_0x36e77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36e77b([0x76,0x69,0x65,0x77])][_0x36e77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36e77b([0x61,0x75,0x74,0x6f]);}}function _0x43153f(_0x2eeb52){const _0x23bdbf=[new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a1a4=>setTimeout(_0x30a1a4,0x1b12eba3^_0xb511ad)),_0x51911[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452741=>{const _0x10a151=0x1b1bd568^_0xb511ad,_0x40eb1b=_0x2d9426[_0x36e77b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x229a78(){_0x40eb1b[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10a151&&_0x452741();}_0x229a78(),_0x40eb1b[_0x36e77b([0x6f,0x6e])](_0x36e77b([0x61,0x64,0x64]),_0x229a78);})),new window[(_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cb504=>{function _0x2dc5a1(){for(const _0x163bcd in window)if(window[_0x36e77b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x36e77b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x163bcd))&&window[_0x163bcd]==_0x1d79aa)return _0x1cb504();_0x2dcb3a[_0x36e77b([0x73,0x74,0x61,0x74,0x65])]!=_0x36e77b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x36e77b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dc5a1,0x1b1bc6e7^_0xb511ad);}_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2dc5a1();})];return window[_0x36e77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36e77b([0x72,0x61,0x63,0x65])](_0x23bdbf)[_0x36e77b([0x74,0x68,0x65,0x6e])](()=>_0x2eeb52);}async function _0x57f2d5(){if(await _0x51911,_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x22add1=_0x2d9426[_0x36e77b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5e84e0=_0x2d9426[_0x36e77b([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])](_0x22add1[_0x36e77b([0x69,0x64])]),_0x376c34=_0x2c4ae0(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x376c34[_0x36e77b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x22add1['id'],_0x5e84e0?_0x5e84e0['id']:null,!0x0),_0x376c34[_0x36e77b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x376c34[_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x376c34[_0x36e77b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c18e4,void(_0x376c34[_0x36e77b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c18e4);}if(_0x21189f(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x55f770=_0x2c4ae0(_0x36e77b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x55f770[_0x36e77b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x55f770[_0x36e77b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x55f770[_0x36e77b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c18e4,_0x55f770[_0x36e77b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c18e4;}_0x2dcb3a[_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c])][_0x36e77b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c18e4,_0x2dcb3a[_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c])][_0x36e77b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c18e4,_0x2dcb3a[_0x36e77b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36e77b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x499b05(){return _0x21189f(_0x36e77b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c4ae0(_0x36e77b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x36e77b([0x73,0x74,0x61,0x74,0x65])]==_0x36e77b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16318f(){return _0x21189f(_0x36e77b([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 _0x3eb990(){return _0x21189f(_0x36e77b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x45242d(_0x22fb97){const _0x35338d=_0x4682c4();_0x2dcb3a[_0x35338d]=_0x36e77b([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])+_0x22fb97,_0x22fb97[_0x36e77b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x36e77b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4682c4()]=_0x1d79aa),_0x22fb97!=_0x36e77b([0x56,0x61,0x6c,0x69,0x64])&&_0x57f2d5();}function _0x4682c4(){const _0x50a8cf=window[_0x36e77b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36e77b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36e77b([0x6e,0x6f,0x77])]())[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36e77b([0x2e]),'');let _0x5383ed=_0x36e77b([0x52]);for(let _0x68e4dc=0x0;_0x68e4dc<_0x50a8cf[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x68e4dc+=0x2){let _0x322ee6=window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a8cf[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x68e4dc,_0x68e4dc+0x2));_0x322ee6>=_0x5bfae9[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x322ee6-=_0x5bfae9[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5383ed+=_0x5bfae9[_0x322ee6];}return _0x5383ed;}function _0x12c142(){const _0x123147=_0x37894d[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e]));if(0x3!=_0x123147[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18e88f(_0x123147[0x1]);function _0x18e88f(_0x8b1b19){const _0x5dc6f9=_0x48d80f(_0x8b1b19);return _0x5dc6f9&&_0x900745()?_0x5dc6f9:null;function _0x900745(){const _0x4d3050=_0x5dc6f9[_0x36e77b([0x6a,0x74,0x69])],_0x28d636=window[_0x36e77b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d3050[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d3050[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x83b0ae={..._0x5dc6f9,[_0x36e77b([0x6a,0x74,0x69])]:_0x4d3050[_0x36e77b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d3050[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x83b0ae[_0x36e77b([0x76,0x63])],_0x2f1e1c(_0x83b0ae)==_0x28d636;}}}async function _0x3891f8(){let _0x5a3a60=!0x0;try{const _0x3280e4=_0x37894d[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])](_0x36e77b([0x2e])),[_0x57971e,_0x192da0,_0x53937b]=_0x3280e4;return _0x55d13d(_0x57971e),await _0x27b4a8(_0x57971e,_0x192da0,_0x53937b),_0x5a3a60;}catch(_0x244e36){return!0x1;}function _0x55d13d(_0x3f9a28){const _0x47293e=_0x48d80f(_0x3f9a28);_0x47293e&&_0x47293e[_0x36e77b([0x61,0x6c,0x67])]==_0x36e77b([0x45,0x53,0x32,0x35,0x36])||(_0x5a3a60=!0x1);}async function _0x27b4a8(_0x1690eb,_0x55f221,_0x1b395b){const _0x3a4442=window[_0x36e77b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36e77b([0x66,0x72,0x6f,0x6d])](_0x2ce086(_0x1b395b),_0x46e948=>_0x46e948[_0x36e77b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2511a5=new window[(_0x36e77b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36e77b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1690eb+_0x36e77b([0x2e])+_0x55f221),_0x572f74=window[_0x36e77b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36e77b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x572f74)return;const _0x74d8e0=await _0x572f74[_0x36e77b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36e77b([0x6a,0x77,0x6b]),_0x1980e8,{[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x45,0x43,0x44,0x53,0x41]),[_0x36e77b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36e77b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x572f74[_0x36e77b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x45,0x43,0x44,0x53,0x41]),[_0x36e77b([0x68,0x61,0x73,0x68])]:{[_0x36e77b([0x6e,0x61,0x6d,0x65])]:_0x36e77b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x74d8e0,_0x3a4442,_0x2511a5)||(_0x5a3a60=!0x1);}}function _0x48d80f(_0x517a87){return _0x517a87[_0x36e77b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36e77b([0x65,0x79]))?JSON[_0x36e77b([0x70,0x61,0x72,0x73,0x65])](_0x2ce086(_0x517a87)):null;}function _0x2ce086(_0x576c55){return window[_0x36e77b([0x61,0x74,0x6f,0x62])](_0x576c55[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36e77b([0x2b]))[_0x36e77b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36e77b([0x2f])));}function _0x2f1e1c(_0x55dc93){let _0x5b162d=0x1505;function _0x57a739(_0x2d1edb){for(let _0x2b4e18=0x0;_0x2b4e18<_0x2d1edb[_0x36e77b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b4e18++){const _0x308537=_0x2d1edb[_0x36e77b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b4e18);_0x5b162d=(_0x5b162d<<0x5)+_0x5b162d+_0x308537,_0x5b162d&=_0x5b162d;}}function _0x5ae8d8(_0x488422){Array[_0x36e77b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x488422)?_0x488422[_0x36e77b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ae8d8):_0x488422&&typeof _0x488422==_0x36e77b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36e77b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x488422)[_0x36e77b([0x73,0x6f,0x72,0x74])]()[_0x36e77b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54a369,_0x40d216])=>{_0x57a739(_0x54a369),_0x5ae8d8(_0x40d216);}):_0x57a739(window[_0x36e77b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x488422));}return _0x5ae8d8(_0x55dc93),_0x5b162d>>>0x0;}function _0x907dc4(_0x3ac2fd){return _0x3ac2fd[_0x36e77b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36e77b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36e77b([0x30]));}function _0x372a53(_0x10bf2b){return _0x10bf2b[_0x36e77b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36e77b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36e77b([0x6a,0x6f,0x69,0x6e])]('');}function _0x21189f(_0x1734fc){return _0x2dcb3a[_0x36e77b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36e77b([0x68,0x61,0x73])](_0x1734fc);}function _0x2c4ae0(_0x12c560){return _0x2dcb3a[_0x36e77b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36e77b([0x67,0x65,0x74])](_0x12c560);}function _0x5c18e4(){}function _0x36e77b(_0x323674){return _0x323674['map'](_0xd4dff8=>String['fromCharCode'](_0xd4dff8))['join']('');}_0x45242d(await _0x556c23());}(this);}['createRevision'](_0x1cca64){const _0x5c224f=this['editor']['plugins']['get']('Users');return new a({'id':_0x1cca64['id'],'name':_0x1cca64['name'],'creator':_0x1cca64['creatorId']?_0x5c224f['getUser'](_0x1cca64['creatorId']):null,'diffData':_0x1cca64['diffData']||_0x1cca64['data'],'authors':_0x1cca64['authorsIds']['map'](_0x289709=>_0x5c224f['getUser'](_0x289709)),'createdAt':new Date(_0x1cca64['createdAt']),'attributes':_0x1cca64['attributes'],'fromVersion':_0x1cca64['fromVersion'],'toVersion':_0x1cca64['toVersion']});}['addRevision'](_0x1b9f90,_0x10c2aa=0x0){this['_revisions']['add'](_0x1b9f90,_0x10c2aa);}['getRevision'](_0x594279){return this['_revisions']['get'](_0x594279);}['getRevisions'](_0x15ca2e={'toJSON':!0x1}){const _0x3a7c33=Array['from'](this['_revisions']);return _0x3a7c33['reverse'](),_0x15ca2e['toJSON']?_0x3a7c33['map'](_0x489f53=>_0x489f53['toJSON']()):_0x3a7c33;}['getIndex'](_0x34adfd){return this['_revisions']['getIndex'](_0x34adfd);}['getEarlierVisibleRevision'](_0x3be834){const [,_0x441e7d]=this['getRevisionsIterator'](_0x3be834,{'direction':'earlier'});return _0x441e7d;}['getLaterVisibleRevision'](_0x2aca8e){const [,_0x381310]=this['getRevisionsIterator'](_0x2aca8e,{'direction':'later'});return _0x381310;}['getRevisionsInDiff'](_0x373e16){const _0x5280bc=[];for(const _0x31f213 of this['getRevisionsIterator'](_0x373e16['newRevisionId']))if(_0x5280bc['push'](_0x31f213),_0x31f213['id']===_0x373e16['oldRevisionId'])break;return _0x5280bc;}*['getRevisionsIterator'](_0x5b446a,{direction:_0x691ffa='earlier',filter:_0x1ede75=()=>!0x0}={}){const _0x2948b7='earlier'===_0x691ffa?0x1:-0x1;let _0x5a3189=this['_revisions']['get'](_0x5b446a),_0x3401dd=this['getIndex'](_0x5a3189);for(yield _0x5a3189;_0x5a3189;){if(_0x3401dd+=_0x2948b7,_0x5a3189=this['getRevision'](_0x3401dd),!_0x5a3189)return;_0x1ede75(_0x5a3189)&&(yield _0x5a3189);}}}function R(_0x31d36e,_0x147f80,_0x352beb){const t=_0x31d36e['t'];switch(_0x147f80){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'},_0x352beb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x352beb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x269e24,'a':_0x832fa4,'e':_0x2821ca,'r':_0x46e5fa,'u':_0x1ad2b4};class l extends _0x173480{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x421b50,j,_0x169908];}constructor(_0x1afece){super(_0x1afece),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3ea2c3=_0x443970();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3ea2c3},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xd72f54=this['repository']['getRevision'](0x0),_0x1d3972=_0xd72f54&&null===_0xd72f54['creator']?_0xd72f54:null;if(this['_continueCurrentRevision']=!!_0x1d3972&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd7e62d=this['_source']['getCurrentRevisionId'](),_0x5287f5=this['repository']['getRevision'](_0xd7e62d);if(_0x5287f5)this['_startingVersion']=_0x5287f5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3c67ba=this['_source']['history']['_operations']['find'](_0x4441b5=>!_0x4441b5['_isInit']),_0x36c926=_0x3c67ba?_0x3c67ba['baseVersion']:this['_source']['history']['version'];_0xd72f54?(_0xd72f54['toVersion']<_0x36c926&&_0xd72f54['_update']({'toVersion':_0x36c926}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id'],this['_startingVersion']=_0x1d3972['fromVersion']):(this['_startingVersion']=_0xd72f54['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x36c926,this['_continueCurrentRevision']=!0x1);}}else _0x1d3972&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1d3972['toVersion'],this['editor']['model']['document']['history']['version']),_0x1d3972['fromVersion']===_0x1d3972['toVersion']?(0x0!==_0x1d3972['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d3972['id'],this['_startingVersion']=_0x1d3972['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',_0x5a80cc=>!_0x5a80cc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x86efb3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b2092;for(const _0x3ef957 in _0x86efb3){const _0x90cf1c=_0x3ef957,_0x4ad99=_0x86efb3[_0x90cf1c];if('revisionHistoryLicenseKeyValid'==_0x4ad99||'revisionHistoryLicenseKeyInvalid'==_0x4ad99||'revisionHistoryLicenseKeyExpired'==_0x4ad99||'revisionHistoryLicenseKeyDomainLimit'==_0x4ad99||'revisionHistoryLicenseKeyNotAllowed'==_0x4ad99||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4ad99||'revisionHistoryLicenseKeyTrialLimit'==_0x4ad99||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4ad99||'revisionHistoryLicenseKeyUsageLimit'==_0x4ad99){delete _0x86efb3[_0x90cf1c],_0x5b2092=_0x4ad99,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5b2092&&_0x86efb3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5b2092&&_0x86efb3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5b2092&&_0x86efb3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5b2092&&_0x86efb3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x28c253=this['repository']['getRevision'](0x0),_0x1e3f03=await this['getRevisionDocumentData'](_0x28c253),_0xf04f29=await this['getRevisionRootsAttributes'](_0x28c253);this['_replaceEditorDataWithRevisionData'](_0x1e3f03,_0xf04f29);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x408709){this['_source']=_0x408709;}async['update'](){const _0x141999=await this['_source']['getLatestVersion']();if(_0x141999>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c9c15=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x141999});_0x2c9c15['authors']=_0x2c9c15['authorsIds']['map'](_0x28330b=>this['editor']['plugins']['get']('Users')['getUser'](_0x28330b)),this['currentRevision']['_update'](_0x2c9c15);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5b378e={},_0x41dd6f=null){const _0x3be30e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x41dd6f>this['currentRevision']['toVersion']&&(_0x41dd6f=null),null===_0x41dd6f&&(_0x41dd6f=await this['_source']['getLatestVersion']());const _0x14805e=this['_getFromVersion'](_0x41dd6f),_0xb461f4=this['buildRevisionData']({'from':_0x14805e,'to':_0x41dd6f});if(this['currentRevision']['toVersion']<_0x41dd6f){const _0x2414f4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x41dd6f,'to':_0x41dd6f});_0x2414f4['authors']=[],_0x2414f4['authorsIds']=[],_0x2414f4['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2414f4,!0x0),delete _0x2414f4['authors'],_0x3be30e['push'](_0x2414f4);}_0x5b378e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b378e['name']=_0x5b378e['name']||null,_0x5b378e['id']=_0x5b378e['id']||_0x443970(),_0x5b378e={..._0x5b378e,..._0xb461f4};const _0x5412b1=this['addRevisionData'](_0x5b378e);_0x3be30e['push'](_0x5b378e);const _0x3126a7=this['repository']['getIndex'](_0x5412b1);if(0x0!==_0x3126a7){const _0x17724b=this['repository']['getRevision'](_0x3126a7-0x1);if(_0x17724b['fromVersion']!==_0x41dd6f){const _0x4b479f=this['_revisionDataBuilder']['getData'](_0x41dd6f,_0x17724b['toVersion']),_0x3e5812={'id':_0x17724b['id'],'diffData':_0x4b479f['diffData'],'authorsIds':_0x4b479f['authorsIds'],'authors':_0x4b479f['authorsIds']['map'](_0x24ddf4=>this['editor']['plugins']['get']('Users')['getUser'](_0x24ddf4)),'fromVersion':_0x41dd6f};_0x17724b===this['currentRevision']&&(_0x3e5812['createdAt']=new Date(_0x5b378e['createdAt']['getTime']()+0xa)),_0x17724b['_update'](_0x3e5812,!0x0),delete _0x3e5812['authors'],_0x3be30e['push'](_0x3e5812);}}if(this['adapter']){for(const _0x44a57e of _0x3be30e)this['_bufferUpdate'](_0x44a57e['id'],_0x44a57e,!0x0);this['sendBufferedUpdates']();}return _0x5412b1;}['addRevisionData'](_0x2fff9d){const _0x485dad=this['repository']['createRevision'](_0x2fff9d);return this['adapter']&&_0x485dad['on']('_update',(_0x42193f,_0x1ae892,_0x2d5d93)=>{_0x2d5d93||(this['_bufferUpdate'](_0x1ae892['id'],_0x1ae892,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x485dad,this['_findInsertionIndex'](_0x485dad)),_0x485dad;}async['getRevisionDocumentData'](_0x4fc829){await this['_loadRevisionData'](_0x4fc829);const _0x799674={};for(const _0x19f832 in _0x4fc829['diffData']){if(_0x4fc829['diffData'][_0x19f832]['attachChange']&&!_0x4fc829['diffData'][_0x19f832]['attachChange']['isAttached'])continue;const _0x5a104f=this['_removeRevisionMarkers'](JSON['parse'](_0x4fc829['diffData'][_0x19f832]['insertions'])),_0x9ef8c0=this['editor']['editing']['view']['document'],_0x497b00=new _0x297069(_0x9ef8c0,_0x5a104f['map'](_0x49fd96=>V(_0x49fd96,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x799674[_0x19f832]=this['editor']['data']['processor']['toData'](_0x497b00),this['editor']['data']['processor']['useFillerType']('default');}return _0x799674;}async['getRevisionRootsAttributes'](_0x1f303a){await this['_loadRevisionData'](_0x1f303a);const _0x119735={};for(const _0x312ac8 in _0x1f303a['diffData'])_0x1f303a['diffData'][_0x312ac8]['attachChange']&&!_0x1f303a['diffData'][_0x312ac8]['attachChange']['isAttached']||(_0x119735[_0x312ac8]=_0x1f303a['diffData'][_0x312ac8]['attributesAfter']||{});return _0x119735;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x559314=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4294c9=0x0;_0x4294c9<_0x559314['length'];_0x4294c9++){const _0x4537c0=_0x559314[_0x4294c9];let _0x1b5913=!0x1;for(const _0x483adb of Object['keys'](_0x4537c0))void 0x0===_0x4537c0[_0x483adb]?delete _0x4537c0[_0x483adb]:'id'!==_0x483adb&&(_0x1b5913=!0x0);_0x1b5913||(_0x559314[_0x4294c9]=null);}if(_0x559314=_0x559314['filter'](_0x90e69d=>null!==_0x90e69d),!_0x559314['length'])return;for(let _0x36dcdc=0x0;_0x36dcdc<_0x559314['length'];_0x36dcdc++){const _0xf89f6b=_0x559314[_0x36dcdc];void 0x0!==_0xf89f6b['fromVersion']&&void 0x0===_0xf89f6b['toVersion']&&(_0xf89f6b['toVersion']=this['repository']['getRevision'](_0xf89f6b['id'])['toVersion']),void 0x0!==_0xf89f6b['toVersion']&&void 0x0===_0xf89f6b['fromVersion']&&(_0xf89f6b['fromVersion']=this['repository']['getRevision'](_0xf89f6b['id'])['fromVersion']);}const _0x2842b0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x559314,_0x2842b0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e6480=>{if(_0x4e6480){for(const _0x2bdd0e of _0x4e6480)this['setRevisionData']({'id':_0x2bdd0e['id'],'createdAt':_0x2bdd0e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1dd009,_0x91fc2c){let _0x365909=this['editor']['config']['get']('initialData'),_0x6d7540=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x365909){_0x365909={};for(const _0x25e86c of this['editor']['model']['document']['getRootNames']())_0x365909[_0x25e86c]='';}if('string'==typeof _0x365909&&(_0x365909={'main':_0x365909}),void 0x0===_0x6d7540){_0x6d7540={};for(const _0x511b8c of this['editor']['model']['document']['getRootNames']())_0x6d7540[_0x511b8c]={};}let _0x20f30c=!0x1;const _0x373693=Object['keys'](_0x365909),_0x2b899b=Object['keys'](_0x1dd009);for(const _0x20ca48 of _0x373693){if(_0x365909[_0x20ca48]!==_0x1dd009[_0x20ca48]&&''!==_0x365909[_0x20ca48]['trim']()){_0x20f30c=!0x0;break;}if(!_0x51c453(_0x6d7540[_0x20ca48],_0x91fc2c[_0x20ca48])&&Object['keys'](_0x6d7540[_0x20ca48])['length']>0x0){_0x20f30c=!0x0;break;}}_0x20f30c||(_0x20f30c=_0x2b899b['some'](_0xc84dda=>!this['editor']['model']['document']['getRoot'](_0xc84dda))),_0x20f30c&&_0x302b1e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x365909,'editorRootsAttributes':_0x6d7540,'revisionData':_0x1dd009,'revisionRootsAttributes':_0x91fc2c}),this['editor']['config']['set']('initialData',_0x1dd009),this['editor']['config']['set']('rootsAttributes',_0x91fc2c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x84d1f3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x84d1f3['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x380f51){const _0x4dd0d4=this['repository']['getRevisions']();_0x4dd0d4['reverse']();let _0x85973f=0x0;for(;_0x85973f<_0x4dd0d4['length'];){const _0x58ceed=_0x4dd0d4[_0x85973f];if(_0x58ceed===this['currentRevision']){_0x85973f++;continue;}if(_0x58ceed['id']===this['_initialRevisionId'])break;const _0xd6a82b=_0x380f51['toVersion']-_0x58ceed['toVersion']||_0x380f51['fromVersion']-_0x58ceed['fromVersion'];if(_0xd6a82b>0x0)break;if(_0xd6a82b<0x0)_0x85973f++;else{if(!_0x380f51['creator']&&_0x58ceed['creator'])break;if(_0x58ceed['creator']||!_0x380f51['creator']){if(_0x380f51['createdAt']>_0x58ceed['createdAt'])break;_0x85973f++;}else _0x85973f++;}}return _0x85973f;}['setRevisionData'](_0x2e2358){const _0x14b261=this['repository']['getRevision'](_0x2e2358['id']);if(_0x2e2358['createdAt']&&(_0x2e2358['createdAt']=new Date(_0x2e2358['createdAt'])),_0x2e2358['authorsIds']){const _0x196e59=this['editor']['plugins']['get']('Users');_0x2e2358['authors']=_0x2e2358['authorsIds']['map'](_0x39471b=>_0x196e59['getUser'](_0x39471b));}_0x14b261['_update'](_0x2e2358,!0x0);}['buildRevisionData']({revision:_0x46f0d3=null,from:_0x295a1b=null,to:_0x277ccf=null}){_0x295a1b=null!==_0x295a1b?_0x295a1b:_0x46f0d3['fromVersion'],_0x277ccf=null!==_0x277ccf?_0x277ccf:_0x46f0d3['toVersion'];const _0x2b5bdb=this['_revisionDataBuilder']['getData'](_0x295a1b,_0x277ccf),_0x3c322c={'diffData':_0x2b5bdb['diffData'],'authorsIds':_0x2b5bdb['authorsIds'],'fromVersion':_0x295a1b,'toVersion':_0x277ccf};if(!_0x46f0d3||_0x277ccf!==_0x46f0d3['toVersion']){const _0x40db0e=_0x277ccf-0x1,_0x5471a7=this['_source']['history']['getOperation'](_0x40db0e);_0x3c322c['createdAt']=_0x5471a7&&_0x5471a7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x295a1b===this['_loadedStateData']['fromVersion']){for(const _0x116770 of this['_loadedStateData']['authors'])_0x3c322c['authorsIds']['includes'](_0x116770['id'])||_0x3c322c['authorsIds']['push'](_0x116770['id']);}return _0x3c322c;}['_loadRevisionData'](_0x264753){if(!_0x264753||_0x264753['diffData'])return Promise['resolve']();{const _0x2fec50=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2fec50,'revisionId':_0x264753['id']})['then'](_0x4e2559=>{_0x264753['diffData']=_0x4e2559['diffData'];});}}['_bufferUpdate'](_0x3dd0cd,_0x204a44,_0x3b5702){if(this['_bufferedUpdates']['has'](_0x3dd0cd)){const _0x58a6ef=this['_bufferedUpdates']['get'](_0x3dd0cd);_0x204a44=_0x3b5702?{..._0x58a6ef,..._0x204a44}:{..._0x204a44,..._0x58a6ef};}this['_bufferedUpdates']['set'](_0x3dd0cd,_0x204a44);}['_getFromVersion'](_0x2aa858){const _0x1533ac=this['repository']['getRevisions']();_0x1533ac['reverse'](),_0x1533ac['shift']();const _0x342b22=_0x1533ac['find'](_0x3c744d=>_0x3c744d['toVersion']<=_0x2aa858)['toVersion'];return _0x342b22<this['_startingVersion']?this['_startingVersion']:_0x342b22;}['_createInitialRevision'](_0x1a4566){const _0x530d27=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x530d27)this['_initialRevisionId']=_0x530d27['id'];else{const _0x546805=!this['editor']['model']['document']['roots']['find'](_0x20d4ac=>this['editor']['model']['hasContent'](_0x20d4ac)),_0x4aaf63=this['editor']['plugins']['get']('Users')['me']['id'],_0x38a58a=R(this['editor']['locale'],_0x546805?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1a4566,'to':_0x1a4566,'id':this['_initialRevisionId'],'name':_0x38a58a,'creatorId':_0x4aaf63});}}['_createCurrentRevision'](_0x5f3d54){const _0x5233fd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5233fd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5f3d54,'to':_0x5f3d54,'id':_0x5233fd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x26c22b,from:_0x42f84a,to:_0x1e381c,creatorId:_0x2c2db8,id:_0x33f161}){const _0x2404ff=this['buildRevisionData']({'from':_0x42f84a,'to':_0x1e381c});_0x2404ff['name']=_0x26c22b,_0x2404ff['creatorId']=_0x2c2db8,_0x2404ff['id']=_0x33f161;const _0x54f4bd=this['addRevisionData'](_0x2404ff);return this['adapter']&&this['_bufferUpdate'](_0x2404ff['id'],_0x2404ff,!0x0),_0x54f4bd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5a3c03){return(_0x5a3c03=_0x5a3c03['filter'](_0x1118ea=>!_0x1118ea['name']||'revision-start'!==_0x1118ea['name']&&'revision-end'!==_0x1118ea['name']))['forEach'](_0x2da3e4=>{'string'!=typeof _0x2da3e4&&(_0x2da3e4['children']=this['_removeRevisionMarkers'](_0x2da3e4['children']),_0x2da3e4['attributes']=_0x2da3e4['attributes']['filter'](_0x7324bd=>!_0x7324bd[0x0]['startsWith']('data-revision-')));}),_0x5a3c03;}}function V(_0x1cc084,_0x400fb0){const _0x3b47f0=_0x400fb0['editing']['view']['document'];if('string'==typeof _0x1cc084)return new _0x4f05b2(_0x3b47f0,_0x1cc084);{const _0x384df4=_0x1cc084['children']['map'](_0x4484c9=>V(_0x4484c9,_0x400fb0));return new(C[_0x1cc084['type']]||_0x348f18)(_0x3b47f0,_0x1cc084['name'],_0x1cc084['attributes'],_0x384df4);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2dd5bb){this['editor']=_0x2dd5bb,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'](_0x18beb0){this['source']=_0x18beb0;const _0x1b009c=new Map(),_0x46aa10=new Map(),_0x5bac9b=this['editor']['model']['document']['roots']['map'](_0x2499bd=>_0x2499bd['rootName']);for(const _0x43163f of _0x5bac9b){const _0x78119b=this['editor']['model']['document']['getRoot'](_0x43163f),_0x14dd09=F(_0x78119b);_0x1b009c['set'](_0x43163f,_0x14dd09),_0x46aa10['set'](_0x43163f,Object['fromEntries'](_0x78119b['getAttributes']()));}const _0x617797=Array['from'](this['editor']['model']['markers'])['map'](_0x2840df=>[_0x2840df['name'],_0x2840df['getRange']()]),_0x1c2eaa=this['source']['version'];this['_saveMetaData'](_0x1c2eaa,_0x1b009c,_0x617797,_0x46aa10),this['_startingRevisionId']=this['_revisionId'];const _0x1e6703=new Map(),_0x3331cf=new Map();for(const _0x4847e8 of _0x5bac9b){const _0x16b7e3=B(_0x4847e8);_0x1e6703['set'](_0x4847e8,_0x16b7e3),_0x3331cf['set'](_0x4847e8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e6703,[],_0x3331cf);}['getData'](_0xf2fd8e,_0x3841f9){if(this['_lastFrom']===_0xf2fd8e&&this['_lastTo']<=_0x3841f9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3841f9,!0x0);else{if(!this['_savedMetaData']['has'](_0xf2fd8e)){const _0x7d8b97=this['_getPreviousFrom'](_0xf2fd8e);this['_calculateMetaData'](_0x7d8b97,_0xf2fd8e,!0x1);}this['_calculateMetaData'](_0xf2fd8e,_0x3841f9,!0x0);}return this['_lastFrom']=_0xf2fd8e,this['_lastTo']=_0x3841f9,this['_getState']();}['loadState'](_0x372eac){this['_reset'](),this['_lastFrom']=_0x372eac['fromVersion'],this['_lastTo']=_0x372eac['toVersion'];for(const _0x204be3 in _0x372eac['diffData']){const _0x264425=_0x372eac['diffData'][_0x204be3]['attachChange'],_0x2d07f1=_0x13b21d(_0x372eac['diffData'][_0x204be3]['attributesBefore'])||{},_0x10a1cf=this['_makeModelFromViewString'](_0x372eac['diffData'][_0x204be3]['deletions']);_0x10a1cf['rootName']=_0x204be3,_0x10a1cf['_isAttached']=!_0x264425||!_0x264425['isAttached'],_0x10a1cf['isAttached']=()=>_0x10a1cf['_isAttached'],this['_baseRoots']['set'](_0x204be3,_0x10a1cf),this['_baseRootsAttributes']['set'](_0x204be3,_0x2d07f1),_0x264425&&this['_touchedRoots']['set'](_0x204be3,_0x264425);const _0x1f068f=this['_makeIdsRoot'](_0x10a1cf);this['_baseIdsRoots']['set'](_0x204be3,_0x1f068f);for(const [_0x37284f,_0x46d396]of _0x10a1cf['markers']){if(!_0x37284f['startsWith']('revision:'))continue;const _0x35ccfb=_0x37284f['split'](':')[0x2];for(const _0x53cabe of _0x46d396['getWalker']({'singleCharacters':!0x0})){const _0x1a3179=this['_getVidAttributeName'](_0x53cabe),_0x5bdb44='elementEnd'==_0x53cabe['type']?_0x53cabe['previousPosition']['path']['slice'](0x0,-0x1):_0x53cabe['previousPosition']['path'],_0x781774=_0x1f068f['getNodeByPath'](_0x5bdb44)['getAttribute'](_0x1a3179);this['_touched']['set'](_0x781774,{'userId':_0x35ccfb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x201598=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2739b1=>!this['_touched']['has'](_0x2739b1));let _0xf5120=0x0;const _0x14c9b0=new Map();for(const _0x4a4df1 in _0x372eac['diffData']){const _0x3feda5=_0x372eac['diffData'][_0x4a4df1]['attachChange'],_0xef6b8d=_0x13b21d(_0x372eac['diffData'][_0x4a4df1]['attributesAfter'])||{},_0x1dc125=this['_makeModelFromViewString'](_0x372eac['diffData'][_0x4a4df1]['insertions']);_0x1dc125['rootName']=_0x4a4df1,_0x1dc125['_isAttached']=!_0x3feda5||_0x3feda5['isAttached'],_0x1dc125['isAttached']=()=>_0x1dc125['_isAttached'],this['_diffRoots']['set'](_0x4a4df1,_0x1dc125),this['_diffRootsAttributes']['set'](_0x4a4df1,_0xef6b8d);const _0xc9818e=this['_makeIdsRoot'](_0x1dc125,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a4df1,_0xc9818e),_0x14c9b0['set'](_0x4a4df1,_0x1dc125['isAttached']()?_0xef6b8d:{});for(const [_0x321083,_0x98be0b]of _0x1dc125['markers']){if(!_0x321083['startsWith']('revision:'))continue;const _0x4f7c3d=_0x321083['split'](':')[0x2];for(const _0x4065a2 of _0x98be0b['getWalker']({'singleCharacters':!0x0})){const _0x1a61fa=this['_getVidAttributeName'](_0x4065a2),_0x37fa0e=this['_revisionId']++,_0x8c66ce='elementEnd'==_0x4065a2['type']?_0x4065a2['previousPosition']['path']['slice'](0x0,-0x1):_0x4065a2['previousPosition']['path'];_0xc9818e['getNodeByPath'](_0x8c66ce)['_setAttribute'](_0x1a61fa,_0x37fa0e),this['_touched']['set'](_0x37fa0e,{'userId':_0x4f7c3d});}}for(const _0x5bf6bd of this['editor']['model']['createRangeIn'](_0x1dc125)['getWalker']({'singleCharacters':!0x0})){const _0x2666f6=this['_getVidAttributeName'](_0x5bf6bd),_0x58637b='elementEnd'==_0x5bf6bd['type']?_0x5bf6bd['previousPosition']['path']['slice'](0x0,-0x1):_0x5bf6bd['previousPosition']['path'],_0x733c95=_0xc9818e['getNodeByPath'](_0x58637b);_0x733c95['getAttribute'](_0x2666f6)>0x0||_0x733c95['_setAttribute'](_0x2666f6,_0x201598[_0xf5120++]);}for(const [_0x5aabe9,_0x27576e]of _0x1dc125['markers'])_0x5aabe9['startsWith']('revision:')||this['_markers']['set'](_0x5aabe9,_0x27576e);}const _0x5b872c=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5b872c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b872c,0x1));const _0x55e9e4=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x55e9e4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x55e9e4,0x1));const _0x1fc3ef=Array['from'](this['_diffRoots'])['map'](([_0x175b30,_0x3e8acd])=>[_0x175b30,F(_0x3e8acd)]);this['_saveMetaData'](this['_lastTo'],_0x1fc3ef,this['_markers'],_0x14c9b0);}['_makeModelFromViewString'](_0x15d4b8){const _0x1118b8=JSON['parse'](_0x15d4b8),_0x53543d=this['editor']['editing']['view']['document'],_0x1a93ea=new _0x297069(_0x53543d,_0x1118b8['map'](_0x5b74cd=>V(_0x5b74cd,this['editor'])));return this['editor']['data']['toModel'](_0x1a93ea);}['_saveMetaData'](_0x4256a2,_0x4d0c4f,_0x55b398,_0x521ac7){const _0x28dbb0=new Map(_0x4d0c4f),_0x2053dd=new Map(_0x13b21d(_0x521ac7)),_0x270b23=new Map();for(const [_0x2b0c9b,_0x536869]of _0x55b398)_0x270b23['set'](_0x2b0c9b,{'start':_0x536869['start']['clone'](),'end':_0x536869['end']['clone'](),'rootName':_0x536869['root']['rootName']});this['_savedMetaData']['set'](_0x4256a2,{'roots':_0x28dbb0,'markers':_0x270b23,'rootsAttributes':_0x2053dd});}['_removeMetaData'](_0x24148b){this['_savedMetaData']['delete'](_0x24148b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4cdf9c,_0x3167e6=null){let _0x38e34c=null;_0x4cdf9c['is']('documentFragment')||(_0x38e34c=new ft(_0x4cdf9c['name'],{'vid_start':null===_0x3167e6?this['_revisionId']++:_0x3167e6++}));const _0x31abed=[];for(const _0x56e597 of _0x4cdf9c['getChildren']())if(_0x56e597['is']('element')){_0x31abed['push'](this['_makeIdsRoot'](_0x56e597,_0x3167e6));const _0x560967=_0x31abed[_0x31abed['length']-0x1];null!==_0x3167e6&&(_0x3167e6=_0x560967['is']('element','$text')?_0x560967['getAttribute']('vid')+0x1:_0x560967['getAttribute']('vid_end')+0x1);}else{for(let _0x29ec43=0x0;_0x29ec43<_0x56e597['offsetSize'];_0x29ec43++)_0x31abed['push'](new ft('$text',{'vid':null===_0x3167e6?this['_revisionId']++:_0x3167e6++}));}if(_0x4cdf9c['is']('documentFragment')){const _0xe5b4e9=B(_0x4cdf9c['rootName']);return _0xe5b4e9['_insertChild'](0x0,_0x31abed),_0xe5b4e9;}return _0x38e34c['_setAttribute']('vid_end',null===_0x3167e6?this['_revisionId']++:_0x3167e6++),_0x38e34c['_insertChild'](0x0,_0x31abed),_0x38e34c;}['_calculateMetaData'](_0x3413eb,_0xebe8c0,_0x483fc0){this['_reset']();const {roots:_0x326e71,markers:_0x1d0f30,rootsAttributes:_0x3d1ca0}=this['_savedMetaData']['get'](_0x3413eb);this['_baseRoots']=new Map(_0x326e71),this['_baseRootsAttributes']=new Map(_0x13b21d(_0x3d1ca0));for(const [_0x3a89ba,_0x53bc13]of this['_baseRoots'])if('$graveyard'!==_0x3a89ba&&(this['_diffRoots']['set'](_0x3a89ba,F(_0x53bc13)),this['_diffRootsAttributes']=new Map(_0x13b21d(_0x3d1ca0)),_0x483fc0)){const _0x11e932=this['_revisionId'];this['_idsRoots']['set'](_0x3a89ba,this['_makeIdsRoot'](_0x53bc13)),this['_baseIdsRoots']['set'](_0x3a89ba,this['_makeIdsRoot'](_0x53bc13,_0x11e932));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x483fc0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4f43f9,_0x65eb10]of _0x1d0f30){const _0x2fade2=this['_baseRoots']['get'](_0x65eb10['rootName']),_0x43757e=this['_diffRoots']['get'](_0x65eb10['rootName']),_0x24fe28=new vt(this['_fixPosition'](_0x65eb10['start'],_0x2fade2),this['_fixPosition'](_0x65eb10['end'],_0x2fade2)),_0xd8e72a=this['_fixRange'](_0x24fe28,_0x43757e);_0x2fade2['markers']['set'](_0x4f43f9,_0x24fe28),this['_markers']['set'](_0x4f43f9,_0xd8e72a);}this['_applyOperations'](_0x3413eb,_0xebe8c0,_0x483fc0);}['_applyOperations'](_0x1481f8,_0xbf7b99,_0x5f3e9f){for(const _0x25849d of this['source']['getOperations'](_0x1481f8,_0xbf7b99))this['_handleOperation'](_0x25849d,_0x5f3e9f);for(const _0x26221d of this['_diffRoots']['values']())_0x26221d['markers']['clear']();for(const [_0x39e78b,_0x199565]of this['_markers']){this['_diffRoots']['get'](_0x199565['root']['rootName'])['markers']['set'](_0x39e78b,_0x199565['clone']());}const _0x48e24c=new Map(),_0x441aa7=new Map();for(const [_0x47acf5,_0x22209d]of this['_diffRoots'])_0x48e24c['set'](_0x47acf5,F(_0x22209d)),_0x441aa7['set'](_0x47acf5,this['_diffRootsAttributes']['get'](_0x47acf5));this['_saveMetaData'](_0xbf7b99,_0x48e24c,this['_markers'],_0x441aa7);}['_getPreviousFrom'](_0x221d9d){const _0x28c9a4=Array['from'](this['_savedMetaData']['keys']());_0x28c9a4['sort']((_0xa95adf,_0x105d11)=>_0xa95adf-_0x105d11),_0x28c9a4['reverse']();for(const _0x21d5ff of _0x28c9a4)if(_0x21d5ff<_0x221d9d)return _0x21d5ff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bce1e,_0x5ee943){const _0xd62423=Array['from'](_0x5ee943['markers'])['map'](([_0x444082,_0x2be6dc])=>[_0x444082,this['_fixRange'](_0x2be6dc,_0x3bce1e)]);_0x3bce1e['markers']=new Map(_0xd62423);}['_transformMarkers'](_0x16e65a){for(const _0x100791 of this['_markers']['values']()){const _0x77fcc2=_0x100791['getTransformedByOperation'](_0x16e65a),_0x26915d=vt['_createFromRanges'](_0x77fcc2);_0x100791['start']=_0x26915d['start'],_0x100791['end']=_0x26915d['end'];}}['_handleOperation'](_0x1c576f,_0x2fac77){if('addRoot'!=_0x1c576f['type']&&'detachRoot'!=_0x1c576f['type']){if('insert'==_0x1c576f['type']){const _0x419b71=_0x1c576f['position']['root']['rootName'];this['_diffRoots']['has'](_0x419b71)||(this['_diffRoots']['set'](_0x419b71,B(_0x419b71,!0x0)),this['_diffRootsAttributes']['set'](_0x419b71,{}),_0x2fac77&&this['_idsRoots']['set'](_0x419b71,B(_0x419b71,!0x0)));}else{if('addRootAttribute'==_0x1c576f['type']||'removeRootAttribute'==_0x1c576f['type']||'changeRootAttribute'==_0x1c576f['type'])return void this['_handleRootAttributeOperation'](_0x1c576f);'marker'==_0x1c576f['type']&&this['_handleMarkerOperation'](_0x1c576f);}if('marker'!==_0x1c576f['type']){const _0x513cd3=this['_cloneOperation'](_0x1c576f,this['_diffRoots']);_0x513cd3['_execute'](),this['_transformMarkers'](_0x513cd3);}if(_0x2fac77)switch(_0x1c576f['type']){case'insert':this['_handleInsertOperation'](_0x1c576f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1c576f);break;case'merge':this['_handleMergeOperation'](_0x1c576f);break;case'split':this['_handleSplitOperation'](_0x1c576f);}}else this['_handleRootOperation'](_0x1c576f,_0x2fac77);}['_cloneOperation'](_0xec4c06,_0x372a28){const _0x28d464=_0xec4c06['clone']();return _0x28d464['_authorId']=_0xec4c06['_authorId'],this['_fixOperation'](_0x28d464,_0x372a28),_0x28d464;}['_getBaseVids'](_0x3fe617){return _0x3fe617['map'](_0x3d9605=>{const _0x497ee9=this['_getVidAttributeName'](_0x3d9605);return Number(_0x3d9605['item']['getAttribute'](_0x497ee9));});}['_generateTape'](_0x5649fb,_0x41abb8){if(_0x5649fb['is']('element','$text'))_0x41abb8['push']({'item':_0x5649fb,'type':'text'});else{_0x5649fb['is']('element')&&_0x41abb8['push']({'item':_0x5649fb,'type':'elementStart'});for(const _0x36de29 of _0x5649fb['getChildren']())this['_generateTape'](_0x36de29,_0x41abb8);_0x5649fb['is']('element')&&_0x41abb8['push']({'item':_0x5649fb,'type':'elementEnd'});}return _0x41abb8;}['_getState'](){const _0x9a760a=new Map(this['_touched']),_0x1e310c=new Map(_0x9a760a),_0x49af37=new Map(),_0x41edea={'insertions':{},'deletions':{}},_0x487827={'insertions':{},'deletions':{}},_0x451560=new Map(),_0x616ac2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x616ac2['delete']('$graveyard');for(const _0x2768f4 of _0x616ac2){const _0x6ca964=this['_diffRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1),_0x59db42=this['_baseRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1);_0x6ca964['isAttached']()||_0x59db42['isAttached']()?(_0x41edea['insertions'][_0x2768f4]=F(_0x6ca964),_0x41edea['deletions'][_0x2768f4]=F(_0x59db42),this['_copyMarkers'](_0x41edea['deletions'][_0x2768f4],_0x59db42),this['_copyMarkers'](_0x41edea['insertions'][_0x2768f4],_0x6ca964),_0x487827['insertions'][_0x2768f4]=this['_generateTape'](this['_idsRoots']['get'](_0x2768f4),[]),_0x487827['deletions'][_0x2768f4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2768f4)||B(_0x2768f4,!0x1),[])):_0x616ac2['delete'](_0x2768f4);}for(const _0x26d110 of _0x616ac2){const _0x4994b7=_0x487827['insertions'][_0x26d110];for(const _0x201302 of _0x4994b7){const _0x459a01=this['_getVidAttributeName'](_0x201302),_0x42baaf=_0x201302['item']['getAttribute'](_0x459a01);_0x1e310c['delete'](_0x42baaf),_0x42baaf>=this['_startingRevisionId']&&_0x49af37['set'](_0x42baaf,_0x9a760a['get'](_0x42baaf));}}for(const _0x3f98c9 of _0x616ac2){const _0x4c9ebc=_0x487827['insertions'][_0x3f98c9],_0x2949b6=this['_getBaseVids'](_0x487827['deletions'][_0x3f98c9]);let _0x1e9f1c=0x0;for(const _0x45c6fb of _0x4c9ebc){const _0x6e1526=this['_getVidAttributeName'](_0x45c6fb),_0x311acb=_0x45c6fb['item']['getAttribute'](_0x6e1526);if(!_0x49af37['has'](_0x311acb)&&!_0x451560['has'](_0x311acb)){if(_0x1e310c['has'](_0x311acb))_0x1e9f1c++;else{if(_0x311acb!=_0x2949b6[_0x1e9f1c]){const _0x2f3475=_0x9a760a['get'](_0x311acb)||_0x9a760a['get'](_0x2949b6[_0x1e9f1c]);for(;_0x311acb!=_0x2949b6[_0x1e9f1c];)_0x1e310c['has'](_0x2949b6[_0x1e9f1c])||(_0x451560['set'](_0x2949b6[_0x1e9f1c],_0x2f3475),_0x9a760a['set'](_0x2949b6[_0x1e9f1c],_0x2f3475)),_0x1e9f1c++;}_0x1e9f1c++;}}}}for(const _0x558e5a of _0x616ac2){const _0x54546b=_0x487827['insertions'][_0x558e5a];for(const _0x47f217 of _0x54546b){const _0x41a71c=this['_getVidAttributeName'](_0x47f217),_0x5c7995=_0x47f217['item']['getAttribute'](_0x41a71c);if(_0x451560['has'](_0x5c7995)){const _0x2d4de2=_0x451560['get'](_0x5c7995);_0x1e310c['has'](_0x5c7995)||_0x1e310c['set'](_0x5c7995,{..._0x2d4de2}),_0x49af37['set'](_0x5c7995,{..._0x2d4de2});}}}for(const _0xe924f6 of _0x1e310c['keys']())_0xe924f6>=this['_startingRevisionId']&&_0x1e310c['delete'](_0xe924f6);const _0x25a586=new Map();for(const _0x24c69c of _0x616ac2){let _0x403899=_0x487827['insertions'][_0x24c69c];for(const _0x1e4151 of _0x403899)if(_0x1e4151['item']['is']('element','tableCell')){const _0x2f3886=this['_getVidAttributeName'](_0x1e4151),_0x436a09=_0x1e4151['item']['getAttribute'](_0x2f3886);if(_0x49af37['has'](_0x436a09)){const _0x124268=_0x1e4151['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ce460=_0x25a586['get'](_0x124268)||new Set();_0x4ce460['add'](_0x49af37['get'](_0x436a09)['userId']),_0x25a586['set'](_0x124268,_0x4ce460);}}_0x403899=_0x487827['deletions'][_0x24c69c];for(const _0x54f108 of _0x403899)if(_0x54f108['item']['is']('element','tableCell')){const _0x495045=this['_getVidAttributeName'](_0x54f108),_0x8f4937=_0x54f108['item']['getAttribute'](_0x495045);if(_0x1e310c['has'](_0x8f4937)){const _0xb28e1a=_0x54f108['item']['parent']['parent']['getAttribute']('vid_start'),_0x1d9733=_0x25a586['get'](_0xb28e1a)||new Set();_0x1d9733['add'](_0x1e310c['get'](_0x8f4937)['userId']),_0x25a586['set'](_0xb28e1a,_0x1d9733);}}for(const _0x1d92ea of _0x25a586['keys']())(_0x49af37['has'](_0x1d92ea)||_0x1e310c['has'](_0x1d92ea))&&_0x25a586['delete'](_0x1d92ea);}for(const _0x2953c3 of _0x616ac2){const _0x41305b=_0x487827['insertions'][_0x2953c3];let _0x493dd3=null,_0x169f3c=null;for(const _0x1e4e04 of _0x41305b){const _0x7e7139=this['_getVidAttributeName'](_0x1e4e04),_0x36b6d4=_0x1e4e04['item']['getAttribute'](_0x7e7139),_0x5211b0=_0x25a586['get'](_0x36b6d4);_0x5211b0&&'elementStart'==_0x1e4e04['type']&&(_0x493dd3=Array['from'](_0x5211b0)[0x0],_0x169f3c=_0x1e4e04['item']['getAttribute']('vid_end')),_0x493dd3&&(_0x1e310c['set'](_0x36b6d4,{'userId':_0x493dd3}),_0x49af37['set'](_0x36b6d4,{'userId':_0x493dd3})),_0x36b6d4==_0x169f3c&&(_0x493dd3=null,_0x169f3c=null);}}const _0x6644cf={},_0x4b6c98=new Set();for(const _0x55b0cd of _0x616ac2){const _0x31680c=_0x41edea['deletions'][_0x55b0cd],_0x5514be=_0x41edea['insertions'][_0x55b0cd];for(const {userId:_0x3050e2}of this['_touchedMarkers']['values']())null!==_0x3050e2&&_0x4b6c98['add'](_0x3050e2);for(const {userId:_0x6fe7ca}of this['_touchedRoots']['values']())null!==_0x6fe7ca&&_0x4b6c98['add'](_0x6fe7ca);this['_markChanges'](_0x5514be,_0x487827['insertions'][_0x55b0cd],_0x49af37,'insertion',_0x4b6c98),this['_markChanges'](_0x31680c,_0x487827['deletions'][_0x55b0cd],_0x1e310c,'deletion',_0x4b6c98),_0x6644cf[_0x55b0cd]={'insertions':this['_prepareViewToSave'](_0x5514be),'deletions':this['_prepareViewToSave'](_0x31680c),'attachChange':this['_touchedRoots']['get'](_0x55b0cd)||null,'attributesBefore':_0x13b21d(this['_baseRootsAttributes']['get'](_0x55b0cd))||{},'attributesAfter':_0x13b21d(this['_diffRootsAttributes']['get'](_0x55b0cd))};}return{'diffData':_0x6644cf,'authorsIds':Array['from'](_0x4b6c98)};}['_processRootBeforeSave'](_0x2901fd){for(const [,_0x4cb0eb]of _0x2901fd['markers']){const _0x4497e1=_0x4cb0eb['start']['getAncestors']()['filter'](_0x59325d=>'tableCell'==_0x59325d['name']);for(const _0x3714e1 of _0x4497e1)0x1==_0x3714e1['childCount']&&_0x3714e1['getChild'](0x0)['is']('element','paragraph')&&_0x3714e1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3d34a1){this['_processRootBeforeSave'](_0x3d34a1);const _0x5206a1=this['editor']['data']['toView'](_0x3d34a1,{}),_0x777249=Array['from'](_0x5206a1['getChildren']())['map'](_0xa44b16=>this['_getViewJson'](_0xa44b16));return JSON['stringify'](_0x777249);}['_getViewJson'](_0x3e3137){if(_0x3e3137['is']('$text'))return _0x3e3137['data'];{const _0x5f1633=_0x3e3137;return{'type':Object['keys'](C)['find'](_0x538b9c=>_0x3e3137 instanceof C[_0x538b9c]),'name':_0x5f1633['name'],'attributes':Array['from'](_0x5f1633['getAttributes']()),'children':Array['from'](_0x5f1633['getChildren']())['map'](_0x32efb8=>this['_getViewJson'](_0x32efb8))};}}['_markChanges'](_0x1ffe3f,_0x4994e7,_0x6ade61,_0x50a436,_0x519292){let _0x359784=null,_0x1faa6f=null,_0x48136d=0x0;const _0x36aa06=this['editor']['model'];for(let _0x1d5ef4=0x0;_0x1d5ef4<_0x4994e7['length'];_0x1d5ef4++){const _0x4b4134=this['_getVidAttributeName'](_0x4994e7[_0x1d5ef4]),_0x5b2110=_0x4994e7[_0x1d5ef4]['item']['getAttribute'](_0x4b4134),_0x2d4f16=_0x6ade61['get'](_0x5b2110),_0x31ea52=_0x1d5ef4==_0x4994e7['length']-0x1;(!_0x359784&&_0x2d4f16&&(_0x359784=_0x2d4f16,_0x1faa6f=_0x4994e7[_0x1d5ef4]),_0x359784&&(!_0x2d4f16||_0x2d4f16['userId']!=_0x359784['userId']))&&(_0x4330cb(_0x2d4f16,J(_0x1faa6f,_0x1ffe3f,_0x36aa06),J(_0x4994e7[_0x1d5ef4],_0x1ffe3f,_0x36aa06)),_0x359784=_0x2d4f16||null,_0x1faa6f=_0x2d4f16?_0x4994e7[_0x1d5ef4]:null),_0x359784&&_0x31ea52&&_0x4330cb(_0x2d4f16,J(_0x1faa6f,_0x1ffe3f,_0x36aa06),q(_0x4994e7[_0x1d5ef4],_0x1ffe3f,_0x36aa06));}function _0x4330cb(_0x7ec0eb,_0x3a06ec,_0x2b5287){const _0x55f6e7=_0x359784['userId'],_0x542089='revision:'+_0x50a436+':'+_0x55f6e7+':'+_0x48136d++,_0x3e0e1e=_0x36aa06['createRange'](_0x3a06ec,_0x2b5287);_0x1ffe3f['markers']['set'](_0x542089,_0x3e0e1e),null!==_0x55f6e7&&_0x519292['add'](_0x55f6e7);}}['_getVidAttributeName'](_0x33d56f){switch(_0x33d56f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2fdbc4,_0x19f0fb){_0x2fdbc4['baseVersion']=null;for(const _0x60fac1 in _0x2fdbc4){const _0x5a9483=_0x2fdbc4[_0x60fac1];if(_0x5a9483 instanceof gt){const _0x241a17=_0x19f0fb['get'](_0x5a9483['root']['rootName']);_0x2fdbc4[_0x60fac1]=this['_fixPosition'](_0x5a9483,_0x241a17);}if(_0x5a9483 instanceof vt){const _0x655dab=_0x19f0fb['get'](_0x5a9483['root']['rootName']);_0x2fdbc4[_0x60fac1]=this['_fixRange'](_0x5a9483,_0x655dab);}'root'===_0x60fac1&&(_0x2fdbc4['root']=_0x19f0fb['get'](_0x2fdbc4['root']['rootName']));}}['_fixRange'](_0x23bbd6,_0x5e606f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23bbd6['start'],_0x5e606f),this['_fixPosition'](_0x23bbd6['end'],_0x5e606f));}['_fixPosition'](_0x528f35,_0x21af8b){return this['editor']['model']['createPositionFromPath'](_0x21af8b,_0x528f35['path'],_0x528f35['stickiness']);}['_handleInsertOperation'](_0x51afda){const _0x544358=this['_idsRoots']['get'](_0x51afda['position']['root']['rootName']),_0x2b6095=this['_fixPosition'](_0x51afda['position'],_0x544358),_0x4f55e6=null===_0x51afda['_authorId']?null:_0x51afda['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f508c=_0x2b6095['parent'],_0x54b77a=this['_revisionId'],_0x11a167=[];for(const _0x32fbdd of _0x51afda['nodes'])if(_0x32fbdd['is']('element'))_0x11a167['push'](this['_makeIdsRoot'](_0x32fbdd));else{for(let _0x586e3f=0x0;_0x586e3f<_0x32fbdd['offsetSize'];_0x586e3f++)_0x11a167['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x39cc48=this['_revisionId'];for(let _0x10fb9b=_0x54b77a;_0x10fb9b<_0x39cc48;_0x10fb9b++)this['_touched']['set'](_0x10fb9b,{'userId':_0x4f55e6});_0x2f508c['_insertChild'](_0x2b6095['offset'],_0x11a167);}['_handleMoveOperation'](_0x5e7c53){(_0x5e7c53=this['_cloneOperation'](_0x5e7c53,this['_idsRoots']))['_execute']();const _0x3e1482=null===_0x5e7c53['_authorId']?null:_0x5e7c53['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43ba0b=_0x5e7c53['getMovedRangeStart'](),_0x4abb1d=_0x43ba0b['parent'],_0x3eb801=_0x43ba0b['offset'];!function _0x3e76bb(_0x200966,_0x552203,_0x4652ec,_0x9b50df){for(let _0x50ab88=_0x4652ec;_0x50ab88<_0x9b50df;_0x50ab88++){const _0x1053fc=_0x552203['getChild'](_0x50ab88);_0x1053fc['is']('element','$text')?_0x200966['set'](_0x1053fc['getAttribute']('vid'),{'userId':_0x3e1482}):(_0x200966['set'](_0x1053fc['getAttribute']('vid_start'),{'userId':_0x3e1482}),_0x3e76bb(_0x200966,_0x1053fc,0x0,_0x1053fc['childCount']),_0x200966['set'](_0x1053fc['getAttribute']('vid_end'),{'userId':_0x3e1482}));}}(this['_touched'],_0x4abb1d,_0x3eb801,_0x3eb801+_0x5e7c53['howMany']);}['_handleMergeOperation'](_0xd1ff21){const _0x5eda68=null===(_0xd1ff21=this['_cloneOperation'](_0xd1ff21,this['_idsRoots']))['_authorId']?null:_0xd1ff21['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366ef6=_0xd1ff21['targetPosition']['parent'],_0x561429=_0xd1ff21['sourcePosition']['parent'],_0x1b04ec=_0x366ef6['getAttribute']('vid_end'),_0x2a55c9=_0x561429['getAttribute']('vid_start');_0x366ef6['_setAttribute']('vid_end',_0x561429['getAttribute']('vid_end')),_0x561429['_setAttribute']('vid_end',_0x1b04ec),this['_touched']['set'](_0x2a55c9,{'userId':_0x5eda68}),this['_touched']['set'](_0x1b04ec,{'userId':_0x5eda68}),_0xd1ff21['_execute']();}['_handleSplitOperation'](_0x27d05e){const _0x1bed5a=null===(_0x27d05e=this['_cloneOperation'](_0x27d05e,this['_idsRoots']))['_authorId']?null:_0x27d05e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57447b=_0x27d05e['graveyardPosition'],_0x58a783=_0x27d05e['splitPosition']['parent'];_0x27d05e['_execute']();const _0x457941=_0x58a783['getAttribute']('vid_end'),_0x23fcab=_0x27d05e['insertionPosition']['nodeAfter'];if(_0x57447b){const _0x438932=_0x23fcab['getAttribute']('vid_end'),_0x55c093=_0x58a783['getAttribute']('vid_end');_0x58a783['_setAttribute']('vid_end',_0x438932),_0x23fcab['_setAttribute']('vid_end',_0x55c093),this['_touched']['set'](_0x58a783['getAttribute']('vid_end'),{'userId':_0x1bed5a}),this['_touched']['set'](_0x23fcab['getAttribute']('vid_start'),{'userId':_0x1bed5a});}else{const _0x2790e1=this['_revisionId']++,_0x385823=this['_revisionId']++;_0x58a783['_setAttribute']('vid_end',_0x2790e1),_0x23fcab['_setAttribute']('vid_start',_0x385823),_0x23fcab['_setAttribute']('vid_end',_0x457941),this['_touched']['set'](_0x2790e1,{'userId':_0x1bed5a}),this['_touched']['set'](_0x385823,{'userId':_0x1bed5a});}}['_handleMarkerOperation'](_0x523fc5){if(!_0x523fc5['affectsData'])return;const _0x520a3=(_0x523fc5=this['_cloneOperation'](_0x523fc5,this['_diffRoots']))['oldRange']?_0x523fc5['oldRange']['root']:null,_0x886eb5=_0x523fc5['newRange']?_0x523fc5['newRange']['root']:null;_0x520a3&&this['_markers']['delete'](_0x523fc5['name']),_0x886eb5&&this['_markers']['set'](_0x523fc5['name'],_0x523fc5['newRange']['clone']());const _0x2d842f=null===_0x523fc5['_authorId']?null:_0x523fc5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2352f2=_0x523fc5['name'];if(!this['_touchedMarkers']['has'](_0x2352f2))return void this['_touchedMarkers']['set'](_0x2352f2,{'range':_0x523fc5['oldRange'],'userId':_0x2d842f});const _0x24b186=this['_touchedMarkers']['get'](_0x2352f2),_0x4dc7c8=_0x24b186['range'],_0x50a1a7=_0x523fc5['newRange'];null==_0x4dc7c8&&null==_0x50a1a7||_0x4dc7c8&&_0x50a1a7&&_0x4dc7c8['isEqual'](_0x50a1a7)?this['_touchedMarkers']['delete'](_0x523fc5['name']):_0x24b186['userId']=_0x2d842f;}['_handleRootOperation'](_0x281978,_0x54bb10){this['_diffRoots']['has'](_0x281978['rootName'])?this['_diffRoots']['get'](_0x281978['rootName'])['_isAttached']=_0x281978['isAdd']:(this['_diffRoots']['set'](_0x281978['rootName'],B(_0x281978['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x281978['rootName'],{}),_0x54bb10&&this['_idsRoots']['set'](_0x281978['rootName'],B(_0x281978['rootName'],!0x0)));const _0x3848d3=null===_0x281978['_authorId']?null:_0x281978['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a48=this['_touchedRoots']['get'](_0x281978['rootName']);_0x4a48&&_0x4a48['userId']===_0x3848d3?this['_touchedRoots']['delete'](_0x281978['rootName']):this['_touchedRoots']['set'](_0x281978['rootName'],{'userId':_0x3848d3,'isAttached':_0x281978['isAdd']});}['_handleRootAttributeOperation'](_0x309d35){const _0x4f86ea=this['_diffRootsAttributes']['get'](_0x309d35['root']['rootName']);null===_0x309d35['newValue']?delete _0x4f86ea[_0x309d35['key']]:_0x4f86ea[_0x309d35['key']]=_0x309d35['newValue'];}}function F(_0x30a872){const _0x33c33f=B(_0x30a872['rootName'],_0x30a872['isAttached']());for(const _0x38219a of _0x30a872['getChildren']()){const _0x504788=_0x38219a['_clone'](!0x0);_0x33c33f['_appendChild'](_0x504788);}return _0x33c33f;}function B(_0x291a7d,_0x482842=!0x0){const _0x14a925=new wt();return _0x14a925['rootName']=_0x291a7d,_0x14a925['_isAttached']=_0x482842,_0x14a925['isAttached']=()=>_0x14a925['_isAttached'],_0x14a925;}function J(_0x4ece21,_0xc5dfcc,_0x2d622c){const _0x59d9a7='elementEnd'==_0x4ece21['type']?_0x2d622c['createPositionAt'](_0x4ece21['item'],'end'):_0x2d622c['createPositionBefore'](_0x4ece21['item']);return _0x2d622c['createPositionFromPath'](_0xc5dfcc,_0x59d9a7['path'],_0x59d9a7['stickiness']);}function q(_0x34b402,_0xcdff08,_0x17300b){const _0x10baa4='elementStart'==_0x34b402['type']?_0x17300b['createPositionAt'](_0x34b402['item'],0x0):_0x17300b['createPositionAfter'](_0x34b402['item']);return _0x17300b['createPositionFromPath'](_0xcdff08,_0x10baa4['path'],_0x10baa4['stickiness']);}class ns extends _0x30dbe4{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4c6b00,_0x49e050){super(_0x4c6b00),this['focusTracker']=new _0x234b54(),this['keystrokes']=new _0x816803(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x49e050),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2b4b69({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x53e980=_0x49d74b=>_0x49d74b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x53e980),this['keystrokes']['set']('arrowleft',_0x53e980),this['keystrokes']['set']('arrowup',_0x53e980),this['keystrokes']['set']('arrowdown',_0x53e980);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x57e59b){this['revisionNameInputView']['fieldView']['element']['value']=_0x57e59b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x56f9f4){const _0x2a909a=new at(this['locale'],_0x3fc3d3),_0xe8a0e0=_0x2a909a['fieldView'];_0xe8a0e0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfc59da=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x56f9f4&&(_0xfc59da+='\x20('+R(this['locale'],'optional')+')'),(_0x2a909a['label']=_0xfc59da,_0xe8a0e0['on']('input',()=>{this['revisionNameInputValue']=_0xe8a0e0['element']['value']['trim']();}),_0x2a909a);}}class u extends _0x173480{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1fed06=this['editor'],_0x1af67e=_0x1fed06['plugins']['get']('RevisionTracker');_0x1fed06['ui']['componentFactory']['add']('revisionHistory',_0x29e893=>{const _0x318a08=_0x4bbaf9(_0x29e893),_0x4693d4=_0x318a08['panelView']['children'],_0x8ec9b6=new te(_0x29e893),_0x54deeb=new _0x40cc38(_0x29e893),_0x362428=new _0x380986(_0x29e893),_0x56e3fd=new _0x40cc38(_0x29e893),_0x531ac6=new _0x380986(_0x29e893);return _0x318a08['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1af67e,'isEnabled',_0x1fed06,'isReadOnly',(_0x1af36b,_0x556957,_0xfa2a5e)=>_0x1af36b&&_0x556957&&!_0xfa2a5e),_0x318a08['buttonView']['set']({'icon':_0x29afe1['history'],'label':R(_0x29e893,'Revision\x20history'),'tooltip':!0x0}),_0x362428['set']({'label':R(_0x29e893,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x362428['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1af67e,'isEnabled',_0x1fed06,'isReadOnly',(_0x3fe5e9,_0x20e9bc,_0x47fd9c)=>_0x3fe5e9&&_0x20e9bc&&!_0x47fd9c),_0x362428['on']('execute',()=>this['_showDialog']()),_0x531ac6['set']({'label':R(_0x29e893,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x531ac6['bind']('isEnabled')['to'](_0x1af67e,'isReady',_0x1fed06,'isReadOnly',(_0x477c45,_0x54c609)=>_0x477c45&&!_0x54c609),_0x531ac6['on']('execute',()=>{_0x1fed06['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x318a08['isOpen']=!0x1,_0x1fed06['editing']['view']['focus']();}),_0x54deeb['children']['add'](_0x362428),_0x56e3fd['children']['add'](_0x531ac6),_0x8ec9b6['role']='menu',_0x8ec9b6['items']['addMany']([_0x54deeb,_0x56e3fd]),_0x4693d4['add'](_0x8ec9b6),_0x318a08;}),_0x1fed06['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x37edf5=this['editor'],_0xf82137=_0x37edf5['locale'],_0x371c15=new _0x4d58f8(_0xf82137),_0x2fd1f7=new _0x4d1ea3(_0xf82137);_0x371c15['buttonView']['set']({'icon':_0x29afe1['history'],'label':R(_0xf82137,'Revision\x20history')});const _0x28dcdf=new _0x33d201(_0xf82137,_0x371c15),_0x2666f7=new _0x2e40e7(_0xf82137);_0x2666f7['set']({'label':R(_0xf82137,'Save\x20current\x20revision')}),_0x2666f7['delegate']('execute')['to'](_0x371c15),_0x2666f7['on']('execute',()=>{this['_showDialog']();}),_0x28dcdf['children']['add'](_0x2666f7),_0x2fd1f7['items']['add'](_0x28dcdf);const _0x4ba9ca=new _0x33d201(_0xf82137,_0x371c15),_0x48e891=new _0x2e40e7(_0xf82137);return _0x48e891['set']({'label':R(_0xf82137,'Open\x20revision\x20history')}),_0x48e891['delegate']('execute')['to'](_0x371c15),_0x48e891['on']('execute',()=>{_0x37edf5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4ba9ca['children']['add'](_0x48e891),_0x2fd1f7['items']['add'](_0x4ba9ca),_0x371c15['panelView']['children']['add'](_0x2fd1f7),_0x371c15;}['_showDialog'](){const _0x4a9f69=this['editor'],_0x57dd9a=_0x4a9f69['locale'],_0x5a7f6e=_0x4a9f69['plugins']['get']('Dialog'),_0x83b11d=_0x4a9f69['plugins']['get']('RevisionTracker');function _0xf51de2(_0x1b0bb6){_0x4a9f69['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1b0bb6['revisionName']?_0x1b0bb6['revisionNameInputView']['errorText']=R(_0x57dd9a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4a9f69['plugins']['get'](l)['saveRevision']({'name':_0x1b0bb6['revisionName']}),_0x5a7f6e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf51de2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5a7f6e['show']({'id':'revisionSave','title':R(_0x57dd9a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4a9f69['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5a7f6e['hide']()},{'label':R(_0x4a9f69['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1396c4){_0x1396c4['bind']('isEnabled')['to'](_0x83b11d,'isReady',_0x83b11d,'isEnabled',_0x4a9f69,'isReadOnly',(_0x439ac5,_0x370512,_0x2baf24)=>_0x439ac5&&_0x370512&&!_0x2baf24);},'onExecute':()=>_0xf51de2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x24783b=this['editor'],_0x42f1a0=_0x24783b['locale'];this['_saveRevisionFormView']=new ns(_0x42f1a0,_0x24783b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x30dbe4{['changeId'];['_model'];constructor(_0x121170,_0x315b32){super(_0x121170),this['_model']=_0x315b32,this['changeId']=_0x315b32['id'];const _0x523d12=this['bindTemplate'],_0x3ff1e=R(_0x121170,_0x315b32['data']['isSuggestion']?'Suggested\x20by':'add'==_0x315b32['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x315b32['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x523d12['to']('type',_0x49f639=>'ck-revision-change__'+_0x49f639)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ff1e}]},{'text':'\x20'+_0x315b32['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4f37d9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b0d2d){super(),this['id']=_0x5b0d2d['id']||_0x443970(),this['author']=_0x5b0d2d['author'],this['type']=_0x5b0d2d['type'],this['data']=_0x5b0d2d['data']||{},this['rootName']=_0x5b0d2d['rootName'],this['set']('createdAt',_0x5b0d2d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x45f874,_0x2dc2ff){this['newRevisionId']=_0x45f874,this['oldRevisionId']=_0x2dc2ff,this['changes']=new _0x7320e5();}['_setChanges'](_0xc9b9ff){for(const _0x349154 of _0xc9b9ff)this['changes']['add'](_0x349154);}}const Z={'c':_0x269e24,'a':_0x832fa4,'e':_0x2821ca,'r':_0x46e5fa,'u':_0x1ad2b4};class d extends _0x173480{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x421b50,_0x264182,j];}constructor(_0x55e7fa){super(_0x55e7fa),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x50a008,_0x52ceb5,_0x137a94)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1c011b=>{for(const _0x426906 of this['editor']['editing']['view']['document']['roots'])_0x137a94?_0x1c011b['removeClass']('ck-editor__editable__overlay',_0x426906):_0x1c011b['addClass']('ck-editor__editable__overlay',_0x426906);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x22e95c=>null!==_0x22e95c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x52fde8,_0x5d7461,_0x23fd08)=>_0x52fde8&&_0x23fd08?_0x5d7461['changes']['getIndex'](_0x23fd08):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4a9209,_0x4b530b)=>_0x4a9209?_0x4b530b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x264182);}['init'](){const _0x43b171=this['editor'],_0x5e8559=new bt(_0x43b171,{'direction':'backward'}),_0x178bef=new bt(_0x43b171,{'direction':'forward'});(_0x43b171['commands']['add']('showPreviousChange',_0x5e8559),_0x43b171['commands']['add']('showNextChange',_0x178bef),_0x43b171['commands']['add']('restoreRevision',new yt(_0x43b171)),this['on']('change:numberOfChanges',()=>{_0x5e8559['refresh'](),_0x178bef['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x43b171['enableReadOnlyMode']('revision-viewer'),_0x43b171['plugins']['has']('WidgetToolbarRepository'))&&_0x43b171['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5972b0){await this['loadRevisionData'](_0x5972b0);const _0x3ca0e9={};for(const _0x94f544 in _0x5972b0['diffData']){if(_0x5972b0['diffData'][_0x94f544]['attachChange']&&!_0x5972b0['diffData'][_0x94f544]['attachChange']['isAttached'])continue;const _0x190ccf=this['_removeRevisionMarkers'](JSON['parse'](_0x5972b0['diffData'][_0x94f544]['insertions'])),_0x2fdecc=this['editor']['editing']['view']['document'],_0x20225d=new _0x297069(_0x2fdecc,_0x190ccf['map'](_0x875b28=>this['_getViewObj'](_0x875b28)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ca0e9[_0x94f544]=this['editor']['data']['processor']['toData'](_0x20225d),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ca0e9;}async['getRevisionRootsAttributes'](_0x3594e4){await this['loadRevisionData'](_0x3594e4);const _0x47c908={};for(const _0x53da6c in _0x3594e4['diffData'])_0x3594e4['diffData'][_0x53da6c]['attachChange']&&!_0x3594e4['diffData'][_0x53da6c]['attachChange']['isAttached']||(_0x47c908[_0x53da6c]=_0x3594e4['diffData'][_0x53da6c]['attributesAfter']||{});return _0x47c908;}['_removeRevisionMarkers'](_0x44270d){return(_0x44270d=_0x44270d['filter'](_0x1ddbdd=>!_0x1ddbdd['name']||'revision-start'!==_0x1ddbdd['name']&&'revision-end'!==_0x1ddbdd['name']))['forEach'](_0x1d0b16=>{'string'!=typeof _0x1d0b16&&(_0x1d0b16['children']=this['_removeRevisionMarkers'](_0x1d0b16['children']),_0x1d0b16['attributes']=_0x1d0b16['attributes']['filter'](_0x3b67e5=>!_0x3b67e5[0x0]['startsWith']('data-revision-')));}),_0x44270d;}async['compare'](_0x39aa2d,_0x5330f5,_0x1c6e7b=!0x1){if(!this['isEnabled'])return;const _0x2e4ff7=this['diff'],_0x459a0a=this['repository'],_0x36fefb='string'==typeof _0x39aa2d?_0x459a0a['getRevision'](_0x39aa2d):_0x39aa2d,_0x3dcc44='string'==typeof _0x5330f5?_0x459a0a['getRevision'](_0x5330f5):_0x5330f5,_0x35e837=_0x36fefb['id'],_0x401f9b=_0x3dcc44?_0x3dcc44['id']:null;if(!_0x1c6e7b&&this['diff']&&this['diff']['newRevisionId']===_0x35e837&&this['diff']['oldRevisionId']===_0x401f9b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x35e837,_0x401f9b);const _0x3bf4c1=this['_getRevisionsRange'](_0x36fefb,_0x3dcc44,!0x0)['map'](_0x32cfd5=>this['loadRevisionData'](_0x32cfd5));return _0x3bf4c1['push'](new Promise(_0x46c892=>{setTimeout(_0x46c892,0x14);})),Promise['all'](_0x3bf4c1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2bdf50=this['_getDiff'](_0x35e837,_0x401f9b);for(const _0x1064c6 of _0x2bdf50['changes'])this['_changeIdToChange']['set'](_0x1064c6['id'],_0x1064c6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15356a=>{for(const _0x182d6e of this['editor']['model']['document']['getRootNames']())_0x15356a['detachRoot'](_0x182d6e);for(const _0x397a45 of Object['keys'](_0x2bdf50['model'])){const _0x4e9474=_0x15356a['addRoot'](_0x397a45);for(const _0x1343b6 of Object['keys'](_0x2bdf50['attributes'][_0x397a45]))_0x15356a['setAttribute'](_0x1343b6,_0x2bdf50['attributes'][_0x397a45][_0x1343b6],_0x4e9474);_0x15356a['insert'](_0x2bdf50['model'][_0x397a45],_0x4e9474,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2bdf50['changes'])),this['isReady']=!0x0;})['catch'](_0x13306c=>{console['error'](_0x13306c),this['_cleanUp'](),_0x2e4ff7&&(this['diff']=_0x2e4ff7),this['isReady']=!0x0;});}['addRevisionData'](_0x320eaf,_0x4d87c8){const _0x30a9c4=this['repository']['createRevision'](_0x320eaf);return _0x30a9c4['on']('_update',(_0x554817,_0x34045f,_0x1b52d1)=>_0x4d87c8(_0x34045f,_0x1b52d1,_0x30a9c4)),this['repository']['addRevision'](_0x30a9c4),_0x30a9c4;}['loadRevisionData'](_0x21fa44){if(!_0x21fa44||_0x21fa44['diffData'])return Promise['resolve']();{const _0x2b1391=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b1391,'revisionId':_0x21fa44['id']})['then'](_0x56cfcd=>{_0x21fa44['_update']({'diffData':_0x56cfcd['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46e589=>{for(const _0x4fbf06 of this['editor']['model']['document']['getRootNames']())_0x46e589['detachRoot'](_0x4fbf06);});}['_sortAndFilterDiffChanges'](_0x5538e7){const _0xf002e3=[],_0x1518f6=new Map();for(const _0x27fc09 of this['editor']['model']['document']['getRootNames']()){const _0xd30491=this['editor']['editing']['view']['getDomRoot'](_0x27fc09);if(!_0xd30491)continue;const _0x560f35=_0xd30491['getClientRects']()['item'](0x0);_0x560f35&&(_0xf002e3['push'](_0x27fc09),_0x1518f6['set'](_0x27fc09,_0x560f35));}return _0xf002e3['sort']((_0x5d0b39,_0x4dd067)=>{const _0x26b8d6=_0x1518f6['get'](_0x5d0b39),_0x18b7fe=_0x1518f6['get'](_0x4dd067);return _0x26b8d6['y']-_0x18b7fe['y']||_0x26b8d6['x']-_0x18b7fe['x'];}),(_0x5538e7=_0x5538e7['filter'](_0x560b65=>_0xf002e3['includes'](_0x560b65['rootName'])))['sort']((_0x1b5365,_0x554000)=>_0xf002e3['indexOf'](_0x1b5365['rootName'])-_0xf002e3['indexOf'](_0x554000['rootName'])),_0x5538e7;}['_makeTape'](_0x56d80b){const _0x455406=Array['from'](_0x56d80b['markers'])['filter'](([_0x1b2ccf,_0x2651f1])=>_0x1b2ccf['startsWith']('revision:')&&!_0x2651f1['isCollapsed']),_0xaa86e4=Array['from'](this['editor']['model']['createRangeIn'](_0x56d80b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x455406['length'])for(const _0x29184f of _0xaa86e4){const [_0x331d60,_0xcb73ab]=_0x455406[0x0],[,_0x30f36e,_0x5df87e]=_0x331d60['split'](':');if(_0xcb73ab['end']['isEqual'](_0x29184f['nextPosition'])&&_0x455406['shift'](),(_0x29184f['previousPosition']['isEqual'](_0xcb73ab['start'])||_0x29184f['previousPosition']['isAfter'](_0xcb73ab['start']))&&('insertion'==_0x30f36e?_0x29184f['isAdded']={'userId':_0x5df87e}:'deletion'==_0x30f36e&&(_0x29184f['isRemoved']={'userId':_0x5df87e})),0x0==_0x455406['length'])break;}return _0xaa86e4;}['_refreshStartEndIndex'](_0x21eaba){const _0x47645e=new Map();for(let _0x5cd9de=0x0;_0x5cd9de<_0x21eaba['length'];_0x5cd9de++)'text'===_0x21eaba[_0x5cd9de]['type']?(_0x21eaba[_0x5cd9de]['item']['startIndex']=_0x5cd9de,_0x21eaba[_0x5cd9de]['item']['endIndex']=_0x5cd9de):('elementStart'===_0x21eaba[_0x5cd9de]['type']?_0x21eaba[_0x5cd9de]['item']['startIndex']=_0x5cd9de:'elementEnd'===_0x21eaba[_0x5cd9de]['type']&&(_0x21eaba[_0x5cd9de]['item']['endIndex']=_0x5cd9de),_0x47645e['set'](_0x21eaba[_0x5cd9de]['id'],_0x5cd9de));for(const _0x1df212 of _0x47645e['values']())'elementStart'===_0x21eaba[_0x1df212]['type']?_0x21eaba[_0x1df212]['item']['endIndex']=_0x47645e['get'](_0x21eaba[_0x1df212]['pairId']):'elementEnd'===_0x21eaba[_0x1df212]['type']&&(_0x21eaba[_0x1df212]['item']['startIndex']=_0x47645e['get'](_0x21eaba[_0x1df212]['pairId']));}['_processTape'](_0x59ed7c){for(let _0x11ff02=0x0;_0x11ff02<_0x59ed7c['length'];_0x11ff02++){if('elementStart'===_0x59ed7c[_0x11ff02]['type'])_0x59ed7c[_0x11ff02]['item']['startIndex']=_0x11ff02;else{if('elementEnd'===_0x59ed7c[_0x11ff02]['type']){_0x59ed7c[_0x11ff02]['item']['endIndex']=_0x11ff02;const _0x544145=_0x59ed7c[_0x11ff02]['item']['startIndex'];_0x59ed7c[_0x544145]['pairId']=_0x59ed7c[_0x11ff02]['id'],_0x59ed7c[_0x11ff02]['pairId']=_0x59ed7c[_0x544145]['id'];}else _0x59ed7c[_0x11ff02]['item']['startIndex']=_0x11ff02,_0x59ed7c[_0x11ff02]['item']['endIndex']=_0x11ff02,_0x59ed7c[_0x11ff02]['pairId']=null;}_0x59ed7c[_0x11ff02]['markersStart']||(_0x59ed7c[_0x11ff02]['markersStart']=[],_0x59ed7c[_0x11ff02]['markersEnd']=[]);}}['_markInsertions'](_0x4bf358,_0x1f9528){const _0x5d633c=_0x4bf358['filter'](_0x2f44ac=>!_0x2f44ac['isAdded']);for(let _0x24a271=0x0;_0x24a271<_0x1f9528['length'];_0x24a271++)_0x1f9528[_0x24a271]['isAdded']&&(_0x5d633c[_0x24a271]['isAdded']=_0x1f9528[_0x24a271]['isAdded']);}['_makeModelFromViewString'](_0xcae00f){const _0xb3239=JSON['parse'](_0xcae00f),_0x155263=this['editor']['editing']['view']['document'],_0x26f072=new _0x297069(_0x155263,_0xb3239['map'](_0xa371cb=>this['_getViewObj'](_0xa371cb)));return this['editor']['data']['toModel'](_0x26f072);}['_getViewObj'](_0x41c6e7){const _0x54d09b=this['editor']['editing']['view']['document'];if('string'==typeof _0x41c6e7)return new _0x4f05b2(_0x54d09b,_0x41c6e7);{const _0x10d91e=_0x41c6e7['children']['map'](_0x1320d6=>this['_getViewObj'](_0x1320d6));return new(Z[_0x41c6e7['type']]||_0x348f18)(_0x54d09b,_0x41c6e7['name'],_0x41c6e7['attributes'],_0x10d91e);}}['_getDiff'](_0x4522e4,_0x4d837f=null){const _0x3446c4=this['repository']['getRevision'](_0x4522e4),_0x556921=_0x4d837f?this['repository']['getRevision'](_0x4d837f):null,_0xf90d34=this['_getRevisionsRange'](_0x3446c4,_0x556921),_0x4583b5=_0xf90d34[_0xf90d34['length']-0x1],_0x3ff003=new Map(),_0x4f6236={'model':{},'attributes':{},'changes':[]},_0x432d43=new Set(),_0x200a6d=new Map();for(let _0x1f2aea=_0xf90d34['length']-0x1;_0x1f2aea>=0x0;_0x1f2aea--){const _0x1d3323=_0xf90d34[_0x1f2aea];for(const _0x28518e of Object['keys'](_0x1d3323['diffData']))if(_0x1d3323['diffData'][_0x28518e]['attachChange']){const _0x2b5398=_0x1d3323['diffData'][_0x28518e]['attachChange'];_0x2b5398['isAttached']?(_0x432d43['add'](_0x28518e),_0x200a6d['has'](_0x28518e)&&_0x200a6d['get'](_0x28518e)['userId']==_0x2b5398['userId']?_0x200a6d['delete'](_0x28518e):_0x200a6d['set'](_0x28518e,_0x2b5398)):_0x200a6d['has'](_0x28518e)?(_0x432d43['delete'](_0x28518e),_0x200a6d['delete'](_0x28518e)):(_0x432d43['add'](_0x28518e),_0x200a6d['set'](_0x28518e,_0x2b5398));}else _0x432d43['add'](_0x28518e);}for(const _0x2cc6ba of _0x432d43){const _0x434411=_0x200a6d['has'](_0x2cc6ba)&&!_0x200a6d['get'](_0x2cc6ba)['isAttached'];let _0xc3695=_0x434411?_0xf90d34['length']-0x1:0x0;const _0x195d3d=_0x434411?-0x1:0x1;for(;_0xf90d34[_0xc3695];){const _0x2633c5=_0xf90d34[_0xc3695];if(_0x2633c5['diffData'][_0x2cc6ba]){const _0x1a8bc7=_0x434411?_0x2633c5['diffData'][_0x2cc6ba]['attributesBefore']:_0x2633c5['diffData'][_0x2cc6ba]['attributesAfter'];_0x4f6236['attributes'][_0x2cc6ba]=_0x1a8bc7?_0x13b21d(_0x1a8bc7):{};break;}_0xc3695+=_0x195d3d;}}for(const _0x4806e4 of _0xf90d34){_0x4806e4['model']={};for(const _0x48f412 of _0x4806e4['authors'])_0x3ff003['set'](_0x48f412['id'],_0x48f412);for(const _0x1019ca of _0x432d43){const _0x40d72c=_0x4806e4['diffData'][_0x1019ca]?_0x4806e4['diffData'][_0x1019ca]['insertions']:'[]',_0x3c442b=_0x4806e4['diffData'][_0x1019ca]?_0x4806e4['diffData'][_0x1019ca]['deletions']:'[]';_0x4806e4['model'][_0x1019ca]={'insertions':this['_makeModelFromViewString'](_0x40d72c),'deletions':this['_makeModelFromViewString'](_0x3c442b)};}}for(const _0x2466fd of _0x432d43){let _0x3d1cd0=null,_0x17919a=0x0;const _0x21735e=new Map(Array['from'](_0x3446c4['model'][_0x2466fd]['insertions']['markers'])['filter'](([_0x25ec8d])=>!_0x25ec8d['startsWith']('revision:')));let _0x22c098=0x0;for(const _0x21bcdc of _0xf90d34){const _0x3f3151=this['_makeTape'](_0x21bcdc['model'][_0x2466fd]['insertions']);_0x21bcdc==_0x3446c4?(_0x3d1cd0=_0x3f3151,_0x17919a=_0x3d1cd0['length'],_0x3d1cd0['forEach'](_0x220824=>{_0x220824['id']=_0x22c098++;}),this['_processTape'](_0x3d1cd0)):this['_markInsertions'](_0x3d1cd0,_0x3f3151);const _0x468aa3=_0x3d1cd0['filter'](_0x583995=>!_0x583995['isAdded'])['map'](_0x525d98=>_0x525d98['id']);let _0x4b70dd=0x0;const _0x2d5633=this['_makeTape'](_0x21bcdc['model'][_0x2466fd]['deletions']);_0x2d5633['forEach'](_0x55a91f=>{_0x55a91f['isRemoved']?_0x55a91f['id']=_0x17919a++:_0x55a91f['id']=_0x468aa3[_0x4b70dd++];}),this['_processTape'](_0x2d5633),this['_setDistance'](_0x3d1cd0,'isAdded'),this['_setDistance'](_0x2d5633,'isRemoved'),_0x21bcdc==_0x3446c4&&this['_markMarkers'](_0x3d1cd0,_0x21735e),_0x3d1cd0=this['_joinTapes'](_0x3d1cd0,_0x2d5633),this['_refreshStartEndIndex'](_0x3d1cd0),this['_setDistance'](_0x3d1cd0,'isRemoved');}_0x3d1cd0=_0x3d1cd0['filter'](_0x4e58d9=>!(_0x4e58d9['isAdded']&&_0x4e58d9['isRemoved']));const _0x4bbff0=new Map(_0x4583b5['model'][_0x2466fd]['deletions']['markers']),_0x30f758=new Set(_0x21735e['keys']());for(const _0x56dc41 of _0x4bbff0['keys']())_0x30f758['delete'](_0x56dc41);this['_markSuggestions'](_0x3d1cd0,_0x30f758),this['_fixObsoleteTags'](_0x3d1cd0),_0x3d1cd0=this['_removeMissingPairs'](_0x3d1cd0),_0x3d1cd0=this['_markMismatchedRemovedTags'](_0x3d1cd0),_0x3d1cd0=this['_removeUnsupportedChanges'](_0x3d1cd0);const {root:_0xe10e1e,changes:_0x2749a0}=this['_makeModelFromTape'](_0x3d1cd0,_0x3ff003,_0x2466fd);_0x4f6236['model'][_0x2466fd]=_0xe10e1e;const _0x3ebabd=_0x200a6d['get'](_0x2466fd);if(_0x3ebabd){const _0x3dd99a=_0x3ff003['get'](_0x3ebabd['userId']),_0x59baf9=new r({'author':_0x3dd99a,'type':_0x3ebabd['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2466fd});_0x2749a0['unshift'](_0x59baf9),_0x4f6236['attributes'][_0x2466fd]['revisionHistoryAttachChange']=_0x59baf9['id'];}_0x4f6236['changes']=_0x4f6236['changes']['concat'](_0x2749a0);}return _0x4f6236;}['_markMarkers'](_0x46a649,_0x3b7504){for(let _0x39fa8f=0x0;_0x39fa8f<_0x46a649['length'];_0x39fa8f++)for(const [_0x5efac0,_0x2fd324]of _0x3b7504)_0x2fd324['start']['isEqual'](_0x46a649[_0x39fa8f]['previousPosition'])&&_0x46a649[_0x39fa8f]['markersStart']['push'](_0x5efac0),_0x2fd324['end']['isEqual'](_0x46a649[_0x39fa8f]['nextPosition'])&&_0x46a649[_0x39fa8f]['markersEnd']['push'](_0x5efac0);}['_joinTapes'](_0x3f6295,_0x5e1720){let _0x4fd962=[],_0x4905ee=0x0,_0x541c83=0x0;for(;_0x4905ee<_0x3f6295['length']||_0x541c83<_0x5e1720['length'];){const _0x4dda31=_0x3f6295[_0x4905ee]||{},_0x2d9d56=_0x5e1720[_0x541c83]||{};if(_0x4dda31['id']==_0x2d9d56['id'])_0x4905ee++,_0x541c83++,_0x4fd962['push'](_0x4dda31);else{if(_0x2d9d56['isRemoved']&&_0x4dda31['isAdded']){const {commonTape:_0x4bfd46,iEnd:_0x472b29,jEnd:_0x4c363a}=this['_threeWayMerge'](_0x3f6295,_0x4905ee,_0x5e1720,_0x541c83);_0x4fd962=_0x4fd962['concat'](_0x4bfd46),_0x4905ee=_0x472b29,_0x541c83=_0x4c363a;}else _0x2d9d56['isRemoved']?(_0x541c83++,_0x4fd962['push'](_0x2d9d56)):(_0x4905ee++,_0x4fd962['push'](_0x4dda31));}}return _0x4fd962;}['_markSuggestions'](_0x57c3a1,_0x25799e){const _0x1f1958=[];for(let _0x4d9d5d=0x0;_0x4d9d5d<_0x57c3a1['length'];_0x4d9d5d++){for(let _0x2e3c50=0x0;_0x2e3c50<_0x57c3a1[_0x4d9d5d]['markersStart']['length'];_0x2e3c50++){const _0x331aa4=_0x57c3a1[_0x4d9d5d]['markersStart'][_0x2e3c50];if(!_0x25799e['has'](_0x331aa4))continue;const {group:_0x160b07,type:_0x27aab2,authorId:_0x5b77ae}=_0x3dab11(_0x331aa4);'revision-suggestion'!=_0x160b07||'insertion'!=_0x27aab2&&'deletion'!=_0x27aab2||(_0x1f1958['unshift']({'type':_0x27aab2,'name':_0x331aa4,'userId':_0x5b77ae}),_0x57c3a1[_0x4d9d5d]['markersStart']['splice'](_0x2e3c50,0x1),_0x2e3c50--);}_0x470f98(_0x57c3a1[_0x4d9d5d]);for(let _0xc4da63=0x0;_0xc4da63<_0x57c3a1[_0x4d9d5d]['markersEnd']['length'];_0xc4da63++){const _0x2f698a=_0x57c3a1[_0x4d9d5d]['markersEnd'][_0xc4da63];if(!_0x25799e['has'](_0x2f698a))continue;const {group:_0x10ea2d,type:_0x3a6428}=_0x3dab11(_0x2f698a);if('revision-suggestion'!=_0x10ea2d||'insertion'!=_0x3a6428&&'deletion'!=_0x3a6428)continue;_0x57c3a1[_0x4d9d5d]['markersEnd']['splice'](_0xc4da63,0x1),_0xc4da63--;const _0xacfa38=_0x1f1958['findIndex'](_0x388b35=>_0x388b35['name']==_0x2f698a);_0xacfa38>-0x1&&_0x1f1958['splice'](_0xacfa38,0x1);}}function _0x3dab11(_0x2d9a96){const _0x4d2a0d=_0x2d9a96['split'](':');return{'group':_0x4d2a0d[0x0],'type':_0x4d2a0d[0x1],'subType':_0x4d2a0d['length']>=0x5?_0x4d2a0d[0x2]:null,'id':_0x4d2a0d['length']<0x5?_0x4d2a0d[0x2]:_0x4d2a0d[0x3],'authorId':_0x4d2a0d['length']<0x5?_0x4d2a0d[0x3]:_0x4d2a0d[0x4],'markerCount':0x6==_0x4d2a0d['length']?_0x4d2a0d[0x5]:null};}function _0x470f98(_0x6921ff){for(let _0x25dcf6=0x0;_0x25dcf6<_0x1f1958['length'];_0x25dcf6++){if(_0x6921ff['isAdded']&&'insertion'==_0x1f1958[_0x25dcf6]['type'])return _0x6921ff['isAddSuggestion']=_0x1f1958[_0x25dcf6],void delete _0x6921ff['isAdded'];if(!_0x6921ff['isAdded']&&!_0x6921ff['isRemoved']&&'deletion'==_0x1f1958[_0x25dcf6]['type'])return void(_0x6921ff['isRemoveSuggestion']=_0x1f1958[_0x25dcf6]);}}}['_setDistance'](_0x111564,_0x21cd03){let _0x52bc48=0x0,_0x4b555a=!0x1;const _0x5b2b81=new Map();for(const _0x23953b of _0x111564)_0x23953b[_0x21cd03]?_0x4b555a&&(_0x52bc48++,_0x4b555a=!0x1):(_0x52bc48++,_0x4b555a=!0x0),_0x5b2b81['set'](_0x23953b['id'],_0x52bc48);for(let _0x471f08=0x0;_0x471f08<_0x111564['length'];_0x471f08++){if('isRemoved'==_0x21cd03&&_0x111564[_0x471f08]['isAdded']||'isAdded'==_0x21cd03&&_0x111564[_0x471f08]['isRemoved'])continue;if('text'==_0x111564[_0x471f08]['type']){_0x111564[_0x471f08]['distance']=0x0;continue;}const _0x114bd6=_0x5b2b81['get'](_0x111564[_0x471f08]['pairId']),_0x21e77b=_0x5b2b81['get'](_0x111564[_0x471f08]['id']);_0x111564[_0x471f08]['distance']=_0x114bd6-_0x21e77b;}}['_getRevisionsRange'](_0xcd008d,_0x275324,_0x2dadfa=!0x1){const _0x441852=[];let _0x500ca1=this['repository']['getIndex'](_0xcd008d),_0x27773b=this['repository']['getIndex'](_0x275324);for(-0x1==_0x27773b&&(_0x27773b=this['repository']['_revisions']['length'],_0x2dadfa=!0x1);_0x500ca1<_0x27773b;)_0x441852['push'](this['repository']['getRevision'](_0x500ca1)),_0x500ca1++;return _0x2dadfa&&_0x441852['push'](this['repository']['getRevision'](_0x500ca1)),_0x441852;}['_threeWayMerge'](_0x9744df,_0x56bcd4,_0x3a3ced,_0x53962b){const _0x1bb584=this['editor']['model']['schema'];let _0x2d4b69=_0x56bcd4;for(;_0x9744df[_0x2d4b69]&&_0x9744df[_0x2d4b69]['isAdded'];)_0x2d4b69++;let _0x3a8f31=_0x53962b;for(;_0x3a3ced[_0x3a8f31]&&_0x3a3ced[_0x3a8f31]['isRemoved'];)_0x3a8f31++;_0xb76c57(_0x9744df,_0x56bcd4,_0x2d4b69),_0xb76c57(_0x3a3ced,_0x53962b,_0x3a8f31);const _0x2bb460=_0x3a3ced['slice'](_0x53962b,_0x3a8f31)['concat'](_0x9744df['slice'](_0x56bcd4,_0x2d4b69));return _0x2bb460['sort']((_0x402c99,_0x1d18e1)=>_0x402c99['side']!=_0x1d18e1['side']?_0x402c99['side']-_0x1d18e1['side']:_0x402c99['level']!=_0x1d18e1['level']?_0x402c99['level']-_0x1d18e1['level']:_0x402c99['distance']!=_0x1d18e1['distance']?_0x1d18e1['distance']-_0x402c99['distance']:!!_0x402c99['isAdded']!=!!_0x1d18e1['isAdded']?-0x1==_0x402c99['side']||0x0==_0x402c99['side']?_0x402c99['isAdded']?-0x1:0x1:_0x402c99['isAdded']?0x1:-0x1:_0x402c99['index']-_0x1d18e1['index']),{'commonTape':_0x2bb460,'iEnd':_0x2d4b69,'jEnd':_0x3a8f31};function _0xb76c57(_0x4f9d61,_0x4d7d69,_0x10966c){let _0x2ee314=-0x1,_0x2606d5=Number['POSITIVE_INFINITY'],_0x5679ce=!0x0;for(let _0x35ceda=_0x4d7d69;_0x35ceda<_0x10966c;_0x35ceda++)if(_0x1bb584['isInline'](_0x4f9d61[_0x35ceda]['item'])||(_0x5679ce=!0x1),_0x4f9d61[_0x35ceda]['item']['startIndex']<_0x4d7d69&&(_0x2ee314=_0x35ceda),_0x4f9d61[_0x35ceda]['item']['endIndex']>=_0x10966c){_0x2606d5=_0x35ceda;break;}_0x5679ce&&(_0x2ee314=_0x10966c-0x1);for(let _0x18be54=_0x4d7d69;_0x18be54<_0x10966c;_0x18be54++)_0x4f9d61[_0x18be54]['side']=_0x18be54<=_0x2ee314?-0x1:_0x18be54<_0x2606d5?0x0:0x1,_0x4f9d61[_0x18be54]['index']=_0x18be54;let _0x3b106e=0x0;for(let _0x872408=_0x4d7d69;_0x872408<=_0x2ee314;_0x872408++)0x0==_0x4f9d61[_0x872408]['distance']?_0x4f9d61[_0x872408]['level']=_0x3b106e:(_0x3b106e++,_0x4f9d61[_0x872408]['level']=_0x3b106e,_0x3b106e++);for(let _0x1dd63d=_0x4d7d69;_0x1dd63d<_0x10966c;_0x1dd63d++)0x0==_0x4f9d61[_0x1dd63d]['side']&&(_0x4f9d61[_0x1dd63d]['level']=_0x3b106e);_0x3b106e=0x0;for(let _0x211897=_0x10966c-0x1;_0x211897>=_0x2606d5;_0x211897--)0x0==_0x4f9d61[_0x211897]['distance']?_0x4f9d61[_0x211897]['level']=_0x3b106e:(_0x3b106e--,_0x4f9d61[_0x211897]['level']=_0x3b106e,_0x3b106e--);}}['_fixObsoleteTags'](_0x51b11e){const _0x2167a1=new Map(),_0x47907f=this['editor']['model']['schema'];for(let _0x2dd22e=0x1;_0x2dd22e<_0x51b11e['length'];_0x2dd22e++){let _0x136d19,_0x22896f,_0x16221e;const _0x5f4ade=_0x51b11e[_0x2dd22e],_0x4b8c5f=_0x51b11e[_0x2dd22e-0x1];if('text'==_0x5f4ade['type'])continue;if(_0x5f4ade['type']!=_0x4b8c5f['type'])continue;if(!_0x47907f['isBlock'](_0x4b8c5f['item'])||_0x47907f['isLimit'](_0x4b8c5f['item']))continue;if(!_0x47907f['isBlock'](_0x5f4ade['item'])||_0x47907f['isLimit'](_0x5f4ade['item']))continue;if((_0x51b11e[_0x2dd22e]['isAdded']||_0x51b11e[_0x2dd22e]['isAddSuggestion'])&&_0x51b11e[_0x2dd22e-0x1]['isRemoved'])_0x136d19=_0x51b11e[_0x2dd22e],_0x22896f=_0x51b11e[_0x2dd22e-0x1],_0x16221e=_0x2dd22e-0x1;else{if(!_0x51b11e[_0x2dd22e]['isRemoved']||!_0x51b11e[_0x2dd22e-0x1]['isAdded']&&!_0x51b11e[_0x2dd22e-0x1]['isAddSuggestion'])continue;_0x136d19=_0x51b11e[_0x2dd22e-0x1],_0x22896f=_0x51b11e[_0x2dd22e],_0x16221e=_0x2dd22e;}const _0x56e59c=_0x136d19['level']==_0x22896f['level'],_0x4a2bf1=Math['abs'](_0x136d19['level'])<Math['abs'](_0x22896f['level'])&&0x0==_0x22896f['distance'];(_0x56e59c||_0x4a2bf1)&&(_0x2167a1['set'](_0x22896f['id'],_0x136d19['id']),_0x51b11e['splice'](_0x16221e,0x1),_0x2dd22e--,_0x136d19['isAdded']=!0x1);}for(let _0xe9fb99=0x0;_0xe9fb99<_0x51b11e['length'];_0xe9fb99++)_0x2167a1['has'](_0x51b11e[_0xe9fb99]['pairId'])&&(_0x51b11e[_0xe9fb99]['pairId']=_0x2167a1['get'](_0x51b11e[_0xe9fb99]['pairId']));}['_removeMissingPairs'](_0x2890f8){const _0x22fc2c=new Set(_0x2890f8['map'](_0x424104=>_0x424104['id']));for(let _0x422398=0x0;_0x422398<_0x2890f8['length'];_0x422398++)_0x22fc2c['has'](_0x2890f8[_0x422398]['pairId'])||0x0==_0x2890f8[_0x422398]['distance']||(_0x2890f8[_0x422398]['isIncorrect']=!0x0);return _0x2890f8['filter'](_0x5cac0c=>!_0x5cac0c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4e8f8a){const _0xe8947b=new Set();for(let _0x38481c=0x0;_0x38481c<_0x4e8f8a['length'];_0x38481c++){if(_0xe8947b['has'](_0x4e8f8a[_0x38481c]['id'])&&_0x4e8f8a[_0x38481c]['isRemoved']&&(_0x4e8f8a[_0x38481c]['isIncorrect']=!0x0),_0x4e8f8a[_0x38481c]['isIncorrect'])continue;if(0x0==_0x4e8f8a[_0x38481c]['distance'])continue;if('elementStart'!=_0x4e8f8a[_0x38481c]['type'])continue;if(null==_0x4e8f8a[_0x38481c]['pairId'])continue;let _0xcad9e0=_0x38481c+0x1,_0x30cf8b=0x0;for(;_0x4e8f8a[_0xcad9e0]['id']!=_0x4e8f8a[_0x38481c]['pairId'];)'elementStart'==_0x4e8f8a[_0xcad9e0]['type']?_0x30cf8b++:'elementEnd'==_0x4e8f8a[_0xcad9e0]['type']&&_0x30cf8b--,_0xcad9e0++;if(0x0!=_0x30cf8b){if(_0x4e8f8a[_0x38481c]['isRemoved'])_0x4e8f8a[_0x38481c]['isIncorrect']=!0x0;else{for(;_0xcad9e0!=_0x38481c;)_0x4e8f8a[_0xcad9e0]['isRemoved']&&0x0!=_0x4e8f8a[_0xcad9e0]['distance']&&(_0x4e8f8a[_0xcad9e0]['isIncorrect']=!0x0,_0xe8947b['add'](_0x4e8f8a[_0xcad9e0]['pairId'])),_0xcad9e0--;}}}return _0x4e8f8a['filter'](_0x3deca7=>!_0x3deca7['isIncorrect']);}['_removeUnsupportedChanges'](_0x1549dc){const _0x3c0953=this['editor']['model']['schema'];for(let _0x1d9f74=0x0;_0x1d9f74<_0x1549dc['length'];_0x1d9f74++){if(!(_0x1549dc[_0x1d9f74]['isAdded']||_0x1549dc[_0x1d9f74]['isAddSuggestion']||_0x1549dc[_0x1d9f74]['isRemoved']||_0x1549dc[_0x1d9f74]['isRemoveSuggestion']))continue;if(0x0==_0x1549dc[_0x1d9f74]['distance'])continue;const _0x545671=_0x1549dc[_0x1d9f74]['item'];_0x3c0953['isBlock'](_0x545671)||_0x3c0953['isLimit'](_0x545671)||(_0x1549dc[_0x1d9f74]['isAdded']&&delete _0x1549dc[_0x1d9f74]['isAdded'],_0x1549dc[_0x1d9f74]['isAddSuggestion']&&delete _0x1549dc[_0x1d9f74]['isAddSuggestion'],_0x1549dc[_0x1d9f74]['isRemoveSuggestion']&&delete _0x1549dc[_0x1d9f74]['isRemoveSuggestion'],_0x1549dc[_0x1d9f74]['isRemoved']&&(_0x1549dc[_0x1d9f74]['isIncorrect']=!0x0));}return _0x1549dc['filter'](_0x3b8e9f=>!_0x3b8e9f['isIncorrect']);}['_makeModelFromTape'](_0x51ea5c,_0x2e0951,_0xc023b8){const _0x444b0d=new wt(),_0x38f187=[],_0x312b43=new Map(),_0x545cbd=this['editor']['model'],_0x1b79d1=_0x545cbd['schema'],_0x56a9de=[_0x444b0d],_0x1b8eca={},_0x214e70={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x125eb9=null;const _0x228ed9=[0x0];for(let _0x3f5117=0x0;_0x3f5117<_0x51ea5c['length'];_0x3f5117++)if('elementStart'===_0x51ea5c[_0x3f5117]['type']){_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9);const _0x3ea714=new ft(_0x51ea5c[_0x3f5117]['item']['name'],_0x51ea5c[_0x3f5117]['item']['getAttributes']());_0x56a9de[0x0]['_appendChild'](_0x3ea714),_0x228ed9['push'](0x0),_0x56a9de['unshift'](_0x3ea714),_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9);}else'elementEnd'===_0x51ea5c[_0x3f5117]['type']?(_0x56a9de['shift'](),_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9),_0x228ed9['pop'](),_0x228ed9[_0x228ed9['length']-0x1]++,_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9)):(_0x51ea5c[_0x3f5117]['previousPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9),_0x125eb9?_0x125eb9['_data']+=_0x51ea5c[_0x3f5117]['item']['data']:_0x125eb9=new _t(_0x51ea5c[_0x3f5117]['item']['data'],_0x51ea5c[_0x3f5117]['item']['getAttributes']()),_0x51ea5c[_0x3f5117+0x1]&&'text'===_0x51ea5c[_0x3f5117+0x1]['type']&&_0x5dcf51(_0x125eb9,_0x51ea5c[_0x3f5117+0x1]['item'])||(_0x56a9de[0x0]['_appendChild'](_0x125eb9),_0x125eb9=null),_0x228ed9[_0x228ed9['length']-0x1]+=_0x51ea5c[_0x3f5117]['item']['offsetSize'],_0x51ea5c[_0x3f5117]['nextPosition']=_0x545cbd['createPositionFromPath'](_0x444b0d,_0x228ed9));for(let _0x9dfe68=0x0;_0x9dfe68<_0x51ea5c['length'];_0x9dfe68++){const _0x50345d=_0x51ea5c[_0x9dfe68]['previousPosition'],_0x32a613=_0x51ea5c[_0x9dfe68]['nextPosition'];for(const _0x51e211 of _0x51ea5c[_0x9dfe68]['markersStart'])_0x312b43['set'](_0x51e211,{'start':_0x50345d,'end':null});_0x3da46f('isRemoveSuggestion',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isAddSuggestion',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isRemoved',_0x9dfe68,_0x50345d,_0x32a613),_0x3da46f('isAdded',_0x9dfe68,_0x50345d,_0x32a613);for(const _0x3622eb of _0x51ea5c[_0x9dfe68]['markersEnd']){_0x312b43['get'](_0x3622eb)['end']=_0x32a613;}}for(const [_0x9c70b4,_0x12f948]of _0x312b43){const _0x12e9c2=this['editor']['model']['createRange'](_0x12f948['start'],_0x12f948['end']);_0x444b0d['markers']['set'](_0x9c70b4,_0x12e9c2);}return _0x38f187['sort']((_0x2b8365,_0x521563)=>{const _0x4bbeb7=_0x444b0d['markers']['get']('revision:'+_0x2b8365['id']),_0x5a9392=_0x444b0d['markers']['get']('revision:'+_0x521563['id']);return _0x4bbeb7['start']['isBefore'](_0x5a9392['start'])?-0x1:_0x4bbeb7['start']['isAfter'](_0x5a9392['start'])?0x1:_0x4bbeb7['end']['isBefore'](_0x5a9392['end'])?-0x1:_0x4bbeb7['end']['isAfter'](_0x5a9392['end'])?0x1:'add'===_0x2b8365['type']?-0x1:0x1;}),{'root':_0x444b0d,'changes':_0x38f187};function _0x3da46f(_0x11ad97,_0x3ece4b,_0x2dd58c,_0x5f31d0){const _0x71c8f8=!!_0x51ea5c[_0x3ece4b][_0x11ad97],_0x15b37a=_0x71c8f8?_0x51ea5c[_0x3ece4b][_0x11ad97]['userId']:null,_0x1b18e3=_0x3ece4b===_0x51ea5c['length']-0x1,_0x275391=_0x214e70[_0x11ad97][0x0],_0x467772=_0x1b79d1['isObject'](_0x51ea5c[_0x3ece4b]['item']);!_0x1b8eca[_0x11ad97]&&_0x71c8f8?_0x1b8eca[_0x11ad97]={'start':_0x2dd58c,'tapeItem':_0x51ea5c[_0x3ece4b],'userId':_0x15b37a,'type':_0x11ad97}:_0x1b8eca[_0x11ad97]&&!_0x71c8f8?(_0x1b8eca[_0x11ad97]['end']=_0x2dd58c,_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]=null):_0x1b8eca[_0x11ad97]&&_0x71c8f8&&_0x1b8eca[_0x11ad97]['userId']!==_0x15b37a&&(_0x1b8eca[_0x11ad97]['end']=_0x2dd58c,_0x275391&&_0x275391['userId']===_0x1b8eca[_0x11ad97]['userId']||_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]={'start':_0x2dd58c,'tapeItem':_0x51ea5c[_0x3ece4b],'userId':_0x15b37a,'type':_0x11ad97}),_0x1b8eca[_0x11ad97]&&_0x467772&&('elementStart'!==_0x51ea5c[_0x3ece4b]['type']||_0x275391&&_0x275391['userId']===_0x15b37a||_0x214e70[_0x11ad97]['unshift']({'userId':_0x15b37a,'object':_0x51ea5c[_0x3ece4b]['item'],'change':_0x1b8eca[_0x11ad97]}),'elementEnd'===_0x51ea5c[_0x3ece4b]['type']&&_0x275391&&_0x275391['object']===_0x51ea5c[_0x3ece4b]['item']&&(_0x214e70[_0x11ad97]['shift'](),_0x1b8eca[_0x11ad97]=_0x275391['change'])),_0x1b8eca[_0x11ad97]&&_0x1b18e3&&(_0x1b8eca[_0x11ad97]['end']=_0x5f31d0,_0x17fb1a(_0x1b8eca[_0x11ad97]),_0x1b8eca[_0x11ad97]=null);}function _0x17fb1a({start:_0x59d79b,end:_0x258604,tapeItem:_0x433108,userId:_0x1c8c4a,type:_0x35806c}){const _0xa55fa1=_0x433108['item'],_0x35bb93=_0x545cbd['schema']['isBlock'](_0xa55fa1)&&!_0x545cbd['schema']['isLimit'](_0xa55fa1),_0xc93e67=_0x59d79b['nodeAfter']==_0x258604['parent']&&_0x258604['isAtStart'];if(_0x35bb93&&_0xc93e67)return;const _0xe01ac=_0x545cbd['createRange'](_0x59d79b,_0x258604),_0x45e1d3=_0x2e0951['get'](_0x1c8c4a),_0x34a529=new r({'author':_0x45e1d3,'type':'isAdded'==_0x35806c||'isAddSuggestion'==_0x35806c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35806c||'isRemoveSuggestion'==_0x35806c},'createdAt':new Date(),'rootName':_0xc023b8});_0x38f187['push'](_0x34a529),_0x444b0d['markers']['set']('revision:'+_0x34a529['id'],_0xe01ac);}function _0x5dcf51(_0xa547b3,_0x11aeed){const _0x103465=_0xa547b3['getAttributes'](),_0x47809e=_0x11aeed['getAttributes']();for(const _0xefef97 of _0x103465){if(_0xefef97[0x1]!==_0x11aeed['getAttribute'](_0xefef97[0x0]))return!0x1;_0x47809e['next']();}return _0x47809e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5654c3=>{const _0x42ae39=_0x5654c3['markerName']['split'](':')[0x1],_0x373745=this['_getChangeFromId'](_0x42ae39);if(!_0x373745)return null;const _0x36532e='add'==_0x373745['type']?'insertion':'deletion',_0x1feb9b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36532e];return _0x373745['data']['isSuggestion']&&_0x1feb9b['push']('ck-suggestion-marker-'+_0x36532e+'-new'),this['activeChange']==_0x373745&&_0x1feb9b['push']('ck-suggestion-marker--active'),{'classes':_0x1feb9b,'attributes':{'data-change-id':_0x42ae39}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3a2155=>{_0x3a2155['on']('element:pre',(_0x28ab75,_0x2b6842,_0x20cf33)=>{const _0x2084ab=_0x2b6842['viewItem']['getChild'](0x0);if(!_0x2084ab||!_0x2084ab['is']('element','code'))return;if(!_0x20cf33['consumable']['consume'](_0x2084ab,{'attributes':['vid_start','vid_end']}))return;const _0x180f04=_0x2b6842['modelRange']['start']['nodeAfter'];_0x20cf33['writer']['setAttribute']('vid_start',_0x2084ab['getAttribute']('vid_start'),_0x180f04),_0x20cf33['writer']['setAttribute']('vid_end',_0x2084ab['getAttribute']('vid_end'),_0x180f04);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27adfd=>{_0x27adfd['on']('element',(_0x1a8a43,_0x39023b,_0x39a84c)=>{if(!_0x39a84c['consumable']['consume'](_0x39023b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x39023b['modelRange']['isCollapsed'])return;const _0x3e232e=_0x39023b['modelRange']['start']['nodeAfter'];_0x3e232e['hasAttribute']('vid_start')||_0x3e232e['hasAttribute']('vid')||(_0x39a84c['writer']['setAttribute']('vid_start',_0x39023b['viewItem']['getAttribute']('vid_start'),_0x3e232e),_0x39a84c['writer']['setAttribute']('vid_end',_0x39023b['viewItem']['getAttribute']('vid_end'),_0x3e232e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x19d5d6=>_0x19d5d6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5d5b84,[,_0x49da72])=>{['vid_start','vid_end','vid']['includes'](_0x49da72)&&(_0x5d5b84['return']=!0x0,_0x5d5b84['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x530459=>{_0x530459['on']('attribute:vid',(_0x1864c6,_0x3a43ee,_0x5638b8)=>{if('\x20'!=_0x3a43ee['item']['data']||_0x3a43ee['item']['parent']['maxOffset']>0x1)return;if(!_0x5638b8['consumable']['consume'](_0x3a43ee['item'],_0x1864c6['name']))return;const _0x2c67dd=_0x5638b8['writer'],_0x426860=_0x5638b8['mapper']['toViewRange'](_0x3a43ee['range']);_0x2c67dd['wrap'](_0x426860,_0x2c67dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x360257){const _0x2e4916=_0x360257['plugins']['get']('RevisionViewer');return(_0x5b3743,_0x13f570,_0x3fc3fe)=>{const _0x57c345=_0x13f570['markerName']['split'](':')[0x1],_0x21df80=_0x2e4916['_getChangeFromId'](_0x57c345);if(!_0x21df80)return null;const _0x3d80db='add'==_0x21df80['type']?'split':'merge';if(!_0x3fc3fe['consumable']['test'](_0x13f570['markerRange'],_0x5b3743['name']))return;const _0x1a364e=_0x13f570['markerRange']['getWalker'](),_0x48fd16=_0x13f570['markerRange']['start'],_0x1b57cd=_0x360257['model']['schema'];let _0x4131d9=null,_0x3f391d=null,_0x30d97d=!0x1,_0x90c836=!0x1;for(const _0x4f0957 of _0x1a364e){const _0x3d32ff=_0x4f0957['item'];_0x30d97d=_0x30d97d||_0x1b57cd['isContent'](_0x3d32ff);const _0x37c43b=_0x3fc3fe['mapper']['toViewElement'](_0x3d32ff);if(_0x37c43b&&_0x37c43b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f0957['type']&&(_0x1b57cd['isBlock'](_0x3d32ff)&&!_0x1b57cd['isLimit'](_0x3d32ff)&&(_0x3d32ff['nextSibling']||_0x48fd16['isAtEnd']?_0x4131d9&&_0x4131d9['parent']==_0x3d32ff||(_0x4131d9=_0x3d32ff,_0x4605f3(_0x4f0957['previousPosition']),_0x90c836=!0x0):_0x3f391d=_0x3f391d||_0x4f0957['previousPosition']));}function _0x4605f3(_0x3401ec){const _0x503fe6=_0x3fc3fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d80db}),_0xc684de=_0x3fc3fe['mapper']['toViewPosition'](_0x3401ec);_0x21df80['data']['isSuggestion']&&_0x3fc3fe['writer']['addClass']('ck-suggestion-marker-'+_0x3d80db+'-new',_0x503fe6),_0x2e4916['activeChange']==_0x21df80&&_0x3fc3fe['writer']['addClass']('ck-suggestion-marker--active',_0x503fe6),_0x3fc3fe['writer']['insert'](_0xc684de,_0x503fe6),_0x3fc3fe['mapper']['bindElementToMarker'](_0x503fe6,_0x13f570['markerName']);}_0x30d97d||_0x90c836||!_0x3f391d||_0x4605f3(_0x3f391d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e29c9,_0x3b769b,_0x2640b2)=>{const _0x3e5b4d=_0x2640b2['mapper']['markerNameToElements'](_0x3b769b['markerName']);if(_0x3e5b4d){for(const _0x45baab of _0x3e5b4d)(_0x45baab['hasClass']('ck-suggestion-marker-split')||_0x45baab['hasClass']('ck-suggestion-marker-merge'))&&(_0x2640b2['mapper']['unbindElementFromMarkerName'](_0x45baab,_0x3b769b['markerName']),_0x2640b2['writer']['remove'](_0x45baab));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5595cd,_0x6b27b6,_0x5e7654)=>{const _0x1eb3a1=_0x6b27b6['markerName']['split'](':')[0x1],_0x581682=this['_getChangeFromId'](_0x1eb3a1);if(!_0x581682)return null;const _0x127037='add'==_0x581682['type']?'split':'merge';if(_0x5e7654['consumable']['test'](_0x6b27b6['markerRange'],_0x5595cd['name']))for(const _0x4ead83 of _0x6b27b6['markerRange']['getItems']()){if(!_0x4ead83['is']('element','softBreak'))continue;const _0x26bb7c=_0x5e7654['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x127037}),_0x2a23ff=_0x5e7654['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4ead83));_0x581682['data']['isSuggestion']&&_0x5e7654['writer']['addClass']('ck-suggestion-marker-'+_0x127037+'-new',_0x26bb7c),this['activeChange']==_0x581682&&_0x5e7654['writer']['addClass']('ck-suggestion-marker--active',_0x26bb7c),_0x5e7654['writer']['insert'](_0x2a23ff,_0x26bb7c),_0x5e7654['mapper']['bindElementToMarker'](_0x26bb7c,_0x6b27b6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x213256=>{for(const _0x4a8643 of this['editor']['model']['document']['getRootNames']()){const _0x2f60b2=this['editor']['model']['document']['getRoot'](_0x4a8643),_0xc3b8da=this['editor']['editing']['view']['document']['getRoot'](_0x4a8643);if(_0xc3b8da){const _0x4f525e=_0x2f60b2['getAttribute']('revisionHistoryAttachChange');if(_0x213256['removeAttribute']('data-change-id',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root-add',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root-remove',_0xc3b8da),_0x213256['removeClass']('ck-revision-history-root--active',_0xc3b8da),_0x4f525e){const _0x296591=this['_getChangeFromId'](_0x4f525e);if(!_0x296591)return null;_0x213256['setAttribute']('data-change-id',_0x4f525e,_0xc3b8da),_0x213256['addClass']('ck-revision-history-root-'+_0x296591['type'],_0xc3b8da),this['activeChange']==_0x296591&&_0x213256['addClass']('ck-revision-history-root--active',_0xc3b8da);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39a490=>'revision-comment:'+_0x39a490,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1c4808=>'revision-suggestion:'+_0x1c4808,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xc2afab=>({'name':'suggestion:'+_0xc2afab,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47c244=>{const _0x372c78=_0x47c244['markerName']['split'](':')[0x1];return'insertion'!=_0x372c78&&'deletion'!=_0x372c78?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x372c78]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x130502,_0x303856,_0x53d978)=>{const _0x2eea57=_0x53d978['mapper']['markerNameToElements'](_0x303856['markerName']);if(_0x2eea57){for(const _0x2ee897 of _0x2eea57)_0x2ee897['is']('uiElement')&&(_0x53d978['mapper']['unbindElementFromMarkerName'](_0x2ee897,_0x303856['markerName']),_0x53d978['writer']['remove'](_0x2ee897));}},{'priority':'high'});}['_getChangeFromId'](_0x3ba6ca){return this['_changeIdToChange']['get'](_0x3ba6ca);}['_getViewForChange'](_0x3b00e9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3b00e9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x14a22d,_0x32e5d2,_0x14fa1c,_0x8d8f08)=>{_0x8d8f08&&this['_balloon']['remove'](_0x8d8f08),_0x14fa1c&&(this['_balloon']['add']({'view':_0x14fa1c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2188cd=this['editor']['editing'],_0xd6c9c8=this['_getChangeFromId'](_0x14fa1c['changeId']);let _0x2a7c96;if(_0xd6c9c8['data']['isOnRoot']){const _0x2d1722=_0x2188cd['view']['getDomRoot'](_0xd6c9c8['rootName']);_0x2a7c96=Array['from'](_0x2d1722['getClientRects']());}else{const _0x508913=this['editor']['model']['markers']['get']('revision:'+_0x14fa1c['changeId']);_0x2a7c96=Array['from'](_0x2188cd['mapper']['markerNameToElements'](_0x508913['name']))['map'](_0xe0665d=>_0x2188cd['view']['domConverter']['mapViewToDom'](_0xe0665d))['map'](_0xdc920e=>Array['from'](_0xdc920e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a7c96[0x0];return _0x2a7c96['find'](_0x30e629=>_0x30e629['top']-0x3<=this['_activeViewTarget']['y']&&_0x30e629['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30e629['left']-0x3<=this['_activeViewTarget']['x']&&_0x30e629['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a7c96[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xfd0eb5,_0xb21c08,_0x251d58,_0x3c2561)=>{this['activeView']=_0x251d58?this['_getViewForChange'](_0x251d58):null,this['editor']['model']['change'](()=>{const _0x3e5174=this['editor']['editing'];_0x3c2561&&(_0x3c2561['data']['isOnRoot']?_0x3e5174['view']['change'](_0xb6e4c2=>{_0xb6e4c2['removeClass']('ck-revision-history-root--active',_0x3e5174['view']['document']['getRoot'](_0x3c2561['rootName']));}):_0x3e5174['reconvertMarker']('revision:'+_0x3c2561['id'])),_0x251d58&&(_0x251d58['data']['isOnRoot']?_0x3e5174['view']['change'](_0x4051ec=>{_0x4051ec['addClass']('ck-revision-history-root--active',_0x3e5174['view']['document']['getRoot'](_0x251d58['rootName']));}):_0x3e5174['reconvertMarker']('revision:'+_0x251d58['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd01a67,_0x28d62f)=>{if(this['activeChange'])return;const _0x2be637=this['_findChangeIdFromDomTarget'](_0x28d62f['target']),_0x4f0308=this['_changeIdToChange']['get'](_0x2be637);_0x4f0308?(this['_activeViewTarget']={'x':_0x28d62f['domEvent']['x'],'y':_0x28d62f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4f0308)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x548306,_0x27d573)=>{const _0x559e56=this['_findChangeIdFromDomTarget'](_0x27d573['target']),_0x6106e1=this['_changeIdToChange']['get'](_0x559e56);_0x6106e1?(this['_activeViewTarget']={'x':_0x27d573['domEvent']['x'],'y':_0x27d573['domEvent']['y']},_0x6106e1===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x6106e1):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d582f){do{const _0x4a7516=_0x1d582f['getAttribute']('data-change-id');if(_0x4a7516)return _0x4a7516;_0x1d582f=_0x1d582f['parent'];}while(_0x1d582f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5079d0=>{for(const _0x3bb3fb of this['editor']['model']['markers'])_0x5079d0['removeMarker'](_0x3bb3fb);});}}function tt(_0x14c189,_0x209fbb){return(_0x459fd2,_0x266ca1,_0x2e648c)=>{if(!_0x2e648c['consumable']['test'](_0x266ca1['markerRange'],_0x459fd2['name']))return;const _0x23d7fb=_0x266ca1['markerRange']['getWalker'](),_0x562fde=_0x266ca1['markerRange']['start'],_0xf76809=_0x14c189['model']['schema'];let _0x3038e2=null,_0x1eba1c=null,_0x4dfe4f=!0x1,_0x2f0911=!0x1;for(const _0x3f39fb of _0x23d7fb){const _0x7b9656=_0x3f39fb['item'];_0x4dfe4f=_0x4dfe4f||_0xf76809['isContent'](_0x7b9656);const _0x5da25d=_0x2e648c['mapper']['toViewElement'](_0x7b9656);if(_0x5da25d&&_0x5da25d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f39fb['type']&&(_0xf76809['isBlock'](_0x7b9656)&&!_0xf76809['isLimit'](_0x7b9656)&&(_0x7b9656['nextSibling']||_0x562fde['isAtEnd']?_0x3038e2&&_0x3038e2['parent']==_0x7b9656||(_0x3038e2=_0x7b9656,_0x35666d(_0x3f39fb['previousPosition']),_0x2f0911=!0x0):_0x1eba1c=_0x1eba1c||_0x3f39fb['previousPosition']));}function _0x35666d(_0x2e6bbe){const _0x53f555=_0x2e648c['mapper']['toViewPosition'](_0x2e6bbe),_0x287c20=_0x2e648c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x209fbb});_0x2e648c['writer']['insert'](_0x53f555,_0x287c20),_0x2e648c['mapper']['bindElementToMarker'](_0x287c20,_0x266ca1['markerName']);}_0x4dfe4f||_0x2f0911||!_0x1eba1c||_0x35666d(_0x1eba1c);};}class yt extends _0x3334d3{constructor(_0x2e55ca){super(_0x2e55ca);const _0x3139b1=_0x2e55ca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3139b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3139b1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x476e47=this['editor'],_0x283ed8=_0x476e47['plugins']['get'](d),_0x3849bb=_0x283ed8['isReady']?_0x283ed8['diff']['newRevisionId']:null;_0x476e47['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3849bb);}['refresh'](){const {isReady:_0x10c287,isEnabled:_0x43a078,repository:_0x4ab77,diff:_0x1528d7}=this['editor']['plugins']['get'](d),_0x8ce74c=_0x1528d7&&_0x4ab77['getLaterVisibleRevision'](_0x1528d7['newRevisionId']);this['isEnabled']=_0x10c287&&_0x43a078&&Boolean(_0x8ce74c);}}class bt extends _0x3334d3{['_step'];constructor(_0x219252,{direction:_0xf38459}){super(_0x219252);const _0x5dc0c9=_0x219252['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xf38459?0x1:-0x1,this['listenTo'](_0x5dc0c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5dc0c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5dc0c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3a9ced=this['editor'],_0x5a56e7=_0x3a9ced['plugins']['get'](d),{isNavigationMode:_0x2ffa63,currentChangeNumber:_0x53f95a}=_0x5a56e7;let _0x391f7b;if(_0x5a56e7['activeChange']=_0x2ffa63?_0x5a56e7['diff']['changes']['get'](_0x53f95a+this['_step']):_0x5a56e7['diff']['changes']['first'],_0x5a56e7['activeChange']['data']['isOnRoot'])_0x391f7b=_0x3a9ced['editing']['view']['getDomRoot'](_0x5a56e7['activeChange']['rootName']);else{const _0x266340=_0x3a9ced['model']['markers']['get']('revision:'+_0x5a56e7['activeChange']['id']);_0x391f7b=_0xdad008(_0x3a9ced['editing'],_0x266340);}_0x4ff583({'target':_0x391f7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1cdecb,currentChangeNumber:_0x1d744a,numberOfChanges:_0x2f22e3,isReady:_0x1e332c,isEnabled:_0x18103c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x18103c&&_0x1e332c&&_0x2f22e3)&&(!_0x1cdecb||(0x1===this['_step']?_0x1d744a<_0x2f22e3-0x1:_0x1d744a>0x0));}}class _i extends _0x30dbe4{constructor(_0xf1a9fe){super(_0xf1a9fe);const _0x485b1b=this['bindTemplate'],_0x1ccf9b=new _0x380986(_0xf1a9fe),_0x4c4dcf=new _0x380986(_0xf1a9fe);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',(_0x46db2e,_0x23e0cb)=>_0x46db2e&&_0x23e0cb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46d490,_0x4c4202,_0x19f1de,_0x786032)=>{if(!_0x46d490)return R(_0xf1a9fe,'Loading...');if(!_0x19f1de)return R(_0xf1a9fe,'No\x20changes');const _0x8b3d9d=R(_0xf1a9fe,'NUMBER_OF_CHANGES',_0x19f1de);return _0x786032?R(_0xf1a9fe,'X_OF_Y_CHANGES',[_0x4c4202+0x1,_0x19f1de]):_0x8b3d9d;}),_0x1ccf9b['set']({'label':R(_0xf1a9fe,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x4c4dcf['set']({'label':R(_0xf1a9fe,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x1ccf9b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c4dcf['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ccf9b['on']('execute',()=>this['fire']('execute','backward')),_0x4c4dcf['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',_0x485b1b['if']('_isStatusLabelVisible','ck-hidden',_0x309dad=>!_0x309dad)]},'children':[{'text':_0x485b1b['to']('isNavigationMode',_0x118297=>_0x118297?R(_0xf1a9fe,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xf1a9fe,'Total')+':\x20')}]},{'text':_0x485b1b['to']('_statusText')}]},new _0xe63aea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ccf9b,_0x4c4dcf]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x173480{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1c92f2=this['editor']['editing']['view'];_0x1c92f2['change'](_0x1bbd5e=>{for(const _0x46517f of _0x1c92f2['document']['roots'])_0x1bbd5e['addClass'](ce,_0x46517f);});}['hide'](){const _0x3a114a=this['editor']['editing']['view'];_0x3a114a['change'](_0x1fbcf5=>{for(const _0x3245c4 of _0x3a114a['document']['roots'])_0x1fbcf5['removeClass'](ce,_0x3245c4);});}}class m extends _0x173480{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x103727=this['editor'],_0x30f3f6=_0x103727['plugins']['get'](d),_0x4af009=_0x103727['plugins']['get'](le);_0x103727['ui']['componentFactory']['add']('exitToEditing',_0x1f994c=>{const _0x2a2d1c=new _0x380986(_0x1f994c);return _0x2a2d1c['set']({'label':R(_0x1f994c,'Back\x20to\x20editing'),'icon':_0x29afe1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2a2d1c,'execute',()=>{_0x103727['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2a2d1c;}),_0x103727['ui']['componentFactory']['add']('restoreRevision',_0x37e026=>{const _0x1499f0=new _0x380986(_0x37e026);return _0x1499f0['set']({'label':R(_0x37e026,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1499f0['bind']('isEnabled')['to'](_0x103727['commands']['get']('restoreRevision')),this['listenTo'](_0x1499f0,'execute',()=>_0x103727['execute']('restoreRevision')),_0x1499f0;}),_0x103727['ui']['componentFactory']['add']('changesNavigation',_0x2d35a4=>{const _0xc964bf=new _i(_0x2d35a4),_0x5e7a52=_0x103727['commands']['get']('showPreviousChange'),_0x513ca7=_0x103727['commands']['get']('showNextChange');return _0xc964bf['bind']('isBackwardNavigationEnabled')['to'](_0x5e7a52,'isEnabled'),_0xc964bf['bind']('isForwardNavigationEnabled')['to'](_0x513ca7,'isEnabled'),_0xc964bf['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x30f3f6),this['listenTo'](_0xc964bf,'execute',(_0x5f180d,_0xe3a473)=>{_0x103727['execute']('forward'===_0xe3a473?'showNextChange':'showPreviousChange');}),_0xc964bf;}),_0x4af009['show'](),_0x30f3f6['on']('change:isReady',(_0x105add,_0x496f62,_0x37e9f8)=>{_0x37e9f8?_0x4af009['hide']():_0x4af009['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1c897f,_0x3ad7c0){super(_0x1c897f,_0x3ad7c0);const _0x5e3642=this['bindTemplate'];this['set']({'label':R(_0x1c897f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1c897f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5e3642['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1e84ea=this['fieldView']['element'];this['_tooltipString']=_0x1e84ea['scrollWidth']>_0x1e84ea['clientWidth']&&_0x1e84ea['value']||'';}}class ti extends _0x30dbe4{constructor(_0x27236b,_0x40fc8c,_0x3c7a15){super(_0x27236b);const _0x43a618=new _0xb4e60f();_0x43a618['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4311b6=['ck','ck-revision-history-sidebar__revision-author'];_0x3c7a15&&_0x4311b6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x51c28d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x27236b,_0x3c7a15?'Revision\x20creator':'Revision\x20author')},'children':[_0x43a618,_0x40fc8c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4311b6},'children':_0x51c28d});}}function ni(_0x4fe33b,_0x8f2a04){const _0x3829d3=_0x4fe33b['bindTemplate'],_0x559c71=_0x4fe33b['locale'],_0x608b45=_0x4bbaf9(_0x559c71);_0x608b45['panelPosition']='sw';const _0x367dc1=function(_0x4fa0d3,_0x2bce03){const _0x546cda=function(_0x220fc3,_0x5bd507){const _0x43c6c6=_0x220fc3['locale'],_0x41e914={'Compare\x20against\x20selected':R(_0x43c6c6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x43c6c6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x43c6c6,'Restore\x20this\x20revision')};return _0x5bd507['map'](_0x40c457=>{const _0x4ab0ca=_0x41e914[_0x40c457['name']];return _0x4ab0ca&&_0x4ab0ca!==_0x40c457['name']&&(_0x40c457['name']=_0x4ab0ca),_0x40c457;});}(_0x4fa0d3,_0x2bce03),_0x4b85c4=new _0x7320e5();for(const _0x54e297 of _0x546cda){const _0x380827={'type':'button','model':new to({'label':_0x54e297['name'],'class':_0x54e297['class'],'withText':!0x0,'role':'menuitem','_action':_0x54e297['action']})};_0x380827['model']['bind']('isEnabled')['to'](_0x4fa0d3,'isActionsDropdownOpen',_0x936f7=>'function'!=typeof _0x54e297['isEnabled']||(!_0x936f7||_0x54e297['isEnabled'](_0x4fa0d3))),_0x4b85c4['add'](_0x380827);}return _0x4b85c4;}(_0x4fe33b,_0x8f2a04);return _0x4fe33b['bind']('isActionsDropdownOpen')['to'](_0x608b45,'isOpen'),_0x608b45['buttonView']['set']({'label':R(_0x559c71,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x29afe1['threeVerticalDots']}),_0x608b45['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3829d3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3829d3['to'](_0x3d3e50=>_0x3d3e50['stopPropagation']())}}),_0x608b45['on']('execute',_0x383c4c=>{_0x4fe33b['isReady']&&'function'==typeof _0x383c4c['source']['_action']&&_0x383c4c['source']['_action'](_0x4fe33b);}),_0x229028(_0x608b45,_0x367dc1,{'role':'menu'}),_0x608b45['listenTo'](_0x4fe33b,'change:isActionsDropdownOpen',(_0x594261,_0xa474a,_0x26ade8)=>{if(_0x26ade8)for(const _0xa99681 of _0x608b45['listView']['items']){const _0x168734=_0xa99681['children']['first'],_0x266f62=_0x8f2a04['find'](_0x4a5dca=>_0x4a5dca['action']===_0x168734['_action'])['isVisible'];_0xa99681['isVisible']=void 0x0===_0x266f62||_0x266f62(_0x4fe33b);}}),_0x608b45;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x28ebd0(_0x30dbe4){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x55710d,_0x245ef5,_0x5302d6,_0x5a9cb0){super(_0x55710d);const _0x36b020=this['bindTemplate'],_0x57b90e=function(_0xa27eb2,_0x5b6320){const _0x582c57=Array['from'](_0x5b6320['authors'])['filter'](_0x117c1a=>_0x117c1a!=_0x5b6320['creator']);return _0x5b6320['creator']&&_0x582c57['unshift'](_0x5b6320['creator']),_0x582c57['map'](_0x270c04=>new ti(_0xa27eb2,_0x270c04,_0x270c04==_0x5b6320['creator']));}(_0x55710d,_0x245ef5);this['id']=_0x245ef5['id'],this['_revision']=_0x245ef5,this['_requireRevisionName']=_0x5a9cb0,this['bind']('name','createdAt')['to'](_0x245ef5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x244321=>{return _0x389caf=_0x55710d['uiLanguage'],(_0x28d72b=_0x244321)['toLocaleDateString'](_0x389caf,{'month':'long','day':'numeric'})+',\x20'+_0x28d72b['toLocaleTimeString'](_0x389caf,{'hour':'numeric','minute':'numeric'});var _0x389caf,_0x28d72b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x55710d,_0x3fc3d3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5be0b7=>_0x5be0b7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5dbb9a,_0x2949b4)=>_0x5dbb9a&&_0x2949b4),this['revisionActionsView']=_0x5302d6&&_0x5302d6['length']?ni(this,_0x5302d6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x36b020['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x36b020['if']('isEnabled','ck-disabled',_0x1f999d=>!_0x1f999d),_0x36b020['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x36b020['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x36b020['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':_0x36b020['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':_0x57b90e}]},this['revisionActionsView']],'on':{'click':_0x36b020['to'](_0x2f5803=>{_0x2f5803['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x367ca8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x367ca8,'change',()=>{this['_requireRevisionName']&&!_0x367ca8['value']||this['fire']('setName',{'id':this['id'],'name':_0x367ca8['value']}),_0x367ca8['value']||(_0x367ca8['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x3aeed7,_0x6d2584){const _0x467d94=_0x22825e['fromJSDate'](_0x3aeed7)['setLocale'](_0x6d2584),_0x3f81db=_0x22825e['local'](),_0x4df59a=_0x3f81db['minus']({'days':0x1})['startOf']('day');let _0xd9eda0,_0x53d029;return _0x467d94['hasSame'](_0x3f81db,'day')?(_0xd9eda0=_0x467d94['startOf']('day')['toJSDate'](),_0x53d029=_0x467d94['toRelativeCalendar']()):_0x467d94['hasSame'](_0x4df59a,'day')?(_0xd9eda0=_0x4df59a['toJSDate'](),_0x53d029=_0x467d94['toRelativeCalendar']()):_0x467d94['hasSame'](_0x3f81db,'week')?(_0xd9eda0=_0x467d94['startOf']('week')['toJSDate'](),_0x53d029=_0x467d94['weekdayLong']||''):_0x467d94['hasSame'](_0x3f81db,'year')?(_0xd9eda0=_0x467d94['startOf']('month')['toJSDate'](),_0x53d029=_0x467d94['monthLong']||''):(_0xd9eda0=_0x467d94['startOf']('year')['toJSDate'](),_0x53d029=String(_0x467d94['year'])),{'startDate':_0xd9eda0,'localizedPeriodName':_0x53d029};}class mi extends _0x30dbe4{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4e8c97,_0x127182,_0x14d2c6,_0x13c09a){super(_0x4e8c97);const _0x1a2b02=di(_0x127182,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x127182,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x14d2c6,this['_requireRevisionName']=_0x13c09a,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':_0x1a2b02}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x392bf5){const _0x5ca9c6=new ai(this['locale'],_0x392bf5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5ca9c6);}['removeRevision'](_0x7e389d){const _0x1313b6=this['revisionViews']['find'](_0xd88970=>_0xd88970['id']===_0x7e389d['id']);this['revisionViews']['remove'](_0x1313b6);}}class as extends _0x30dbe4{constructor(_0x967e7e){super(_0x967e7e);const _0x97324e=new _0xb4e60f();_0x97324e['content']=_0x29afe1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x97324e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x967e7e,'Revision\x20history')]}]});}}class ci extends _0x30dbe4{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c897a,_0x260d02,_0x312505,_0x595137){super(_0x4c897a);const _0x5e43c1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x260d02,this['_revisionActions']=_0x312505,this['_requireRevisionName']=_0x595137,this['on']('select',(_0x5e0430,_0x8ba797)=>{this['fire']('revisionSelected',_0x8ba797);}),this['on']('setName',(_0x254e91,_0x427255)=>{this['fire']('revisionSetName',_0x427255);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4c897a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5e43c1['if']('isEnabled','ck-disabled',_0x24c341=>!_0x24c341)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2dcaed of this['_revisions'])this['_addRevision'](_0x2dcaed);this['_revisions']['on']('add',(_0x432809,_0x6c637e)=>{this['_addRevision'](_0x6c637e);}),this['_revisions']['on']('remove',(_0x3af6bf,_0x1e0ddf)=>{this['_removeRevision'](_0x1e0ddf);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3593d9=>_0x3593d9['revisionViews']['map'](_0x27643d=>_0x27643d))['flat']();}['selectRevision'](_0x3c2c6d){for(const _0x1caadc of this['revisionViews'])_0x3c2c6d&&_0x3c2c6d['id']===_0x1caadc['id']?_0x1caadc['select']():_0x1caadc['deselect']();}['highlightRevisions'](_0x2666e2){for(const _0x13e611 of this['revisionViews'])_0x2666e2['some'](({id:_0x2597e9})=>_0x2597e9===_0x13e611['id'])?_0x13e611['highlight']():_0x13e611['unhighlight']();}['_addRevision'](_0x5ba7b4){const _0x2e3ab1=di(_0x5ba7b4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5a02e8=this['timePeriodViews']['get'](0x0);_0x5a02e8&&_0x5a02e8['startDate']['getTime']()===_0x2e3ab1['getTime']()||(_0x5a02e8=new mi(this['locale'],_0x2e3ab1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5a02e8)),_0x5a02e8['addRevision'](_0x5ba7b4);}['_removeRevision'](_0xb26461){const _0x3999e6=di(_0xb26461['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3999e6)['removeRevision'](_0xb26461);}['_getTimePeriodViewByStartDate'](_0x56cf9f){return this['timePeriodViews']['find'](_0x1e5a7c=>_0x1e5a7c['startDate']['getTime']()===_0x56cf9f['getTime']());}}class g extends _0x173480{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2da91e,_0x1ded93){super(_0x1ded93),this['sourceElement']=_0x2da91e,this['model']['document']['createRoot']();const _0x21fdf7=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x21fdf7);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x21fd73,_0x4af47b){const _0x3b9529=new this(_0x21fd73,_0x4af47b);return await _0x3b9529['initPlugins'](),await _0x3b9529['ui']['init'](_0x21fd73),await _0x3b9529['data']['init'](_0x3b9529['config']['get']('initialData')||''),_0x3b9529['fire']('ready'),_0x3b9529;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x506060{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf32ff7){function _0x5ea6b9(_0xe8b5dd){return _0xe8b5dd['map'](_0x560b05=>String['fromCharCode'](_0x560b05))['join']('');}super(_0xf32ff7),this['result']='end',_0xf32ff7[_0x5ea6b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ea6b9([0x76,0x69,0x65,0x77])][_0x5ea6b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ea6b9([0x61,0x75,0x74,0x6f]),_0xf32ff7[_0x5ea6b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5ea6b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ea6b9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5ea6b9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5ea6b9([0x6f,0x6b])});}}class H extends _0x506060{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x344bdd){if(super(_0x344bdd),!this['editor']['config']['get']('revisionHistory'))throw new _0x20b947('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11a5ab=>this['_showRevisionViewer']({..._0x11a5ab,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4181fe=>this['_closeRevisionViewer'](_0x4181fe)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x318cdb=>this['_restoreRevision'](_0x318cdb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc127f4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc127f4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5b8c7c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5b8c7c);}['getRevision'](_0xd7007f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd7007f);}['getRevisions'](_0x22d07e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x22d07e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x33cd41=this['editor'],_0x56985f=_0x142309(_0x33cd41,p),_0x5704f7=_0x33cd41['plugins']['get']('RevisionTracker'),_0x36d8bb=_0x33cd41['plugins']['get']('Users')['users'];return _0x56985f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x56985f['lazyRoots'],(_0x56985f['plugins']['push'](k,d,m,class extends _0x506060{static get['requires'](){return[d,'Users'];}['init'](){const _0x4177c1=this['editor']['plugins']['get']('Users');for(const _0x59bf4a of _0x36d8bb)_0x59bf4a['isAnonymous']||_0x4177c1['getUser'](_0x59bf4a['id'])||_0x4177c1['addUser'](_0x59bf4a);const _0x1a033f=_0x5704f7['repository']['getRevisions']();let _0x5c6b45=null;const _0x82d4e9=this['editor']['plugins']['get']('RevisionViewer');_0x82d4e9['adapter']=_0x5704f7['adapter'],_0x82d4e9['bind']('isEnabled')['to'](_0x5704f7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x33cd41,'isReadOnly',_0x2a856b=>!_0x2a856b);for(const _0x51c01e of _0x1a033f){const _0x26fd0f=null===_0x51c01e['creator'];if(_0x26fd0f&&_0x51c01e['toVersion']===_0x51c01e['fromVersion'])continue;const _0x3c8413=_0x51c01e['toJSON']();_0x82d4e9['addRevisionData'](_0x3c8413,(_0x393c7f,_0x2a2223,_0x493bb5)=>{if(_0x26fd0f){if(_0x5c6b45)_0x5c6b45['_update'](_0x393c7f,_0x2a2223);else{if(!_0x2a2223){const _0x2d5f6a=_0x493bb5['toJSON']();_0x2d5f6a['id']=_0xd77ba2(),_0x5704f7['saveRevision'](_0x2d5f6a,_0x493bb5['toVersion'])['then'](_0x11e526=>{_0x5c6b45=_0x11e526;});}}}else _0x51c01e['_update'](_0x393c7f,_0x2a2223);});}}},g),_0x56985f);}['_enhanceShowRevisionViewerCallback'](){const _0x3de63d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xedf68a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3fdda1=this['editor']['plugins']['get']('Autosave');await _0x3fdda1['save']();}else await _0xedf68a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1e2f2e=this['editor']['plugins']['get']('Dialog');_0x1e2f2e['isOpen']&&_0x1e2f2e['hide']();}const _0x5ccb6a=this['_getRevisionViewerEditorConfig']();return _0x3de63d(_0x5ccb6a)['then'](_0x29c54d=>{return(this['_viewerEditor']=_0x29c54d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x29c54d;})['catch'](_0x34a8a6=>(console['error'](_0x34a8a6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2f2a93=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2f2a93(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4cb9d4=this['editor']['plugins']['get']('Annotations');_0x4cb9d4['refreshVisibility'](),_0x4cb9d4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3345ce){const _0x213d8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xb7cc6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xae26d6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xae26d6,_0x3345ce)['then'](_0x154f90=>(_0xb7cc6['style']['display']='block',_0x213d8e['style']['display']='none',_0x154f90));}['_closeRevisionViewer'](_0x4c6d86){const _0x32ec75=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x32ec75['style']['display']='',_0x4c6d86['destroy']();}async['_restoreRevision'](_0x20f656){const _0x564f40=this['editor'],_0x2a3daf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3b8540=_0x564f40['plugins']['get']('RevisionTracker'),_0x1226fe=_0x2a3daf['repository']['getRevision'](_0x20f656);let _0x1508e6,_0x52445f,_0x296f4e;try{_0x1508e6=await _0x2a3daf['getRevisionData'](_0x1226fe),_0x52445f=await _0x2a3daf['getRevisionRootsAttributes'](_0x1226fe);}catch(_0x32995d){return void console['error'](_0x32995d);}_0x564f40['model']['change'](_0x18c037=>{for(const _0x58b22f of Array['from'](_0x564f40['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x18c037['removeMarker'](_0x58b22f);}),_0x2a3daf['isReady']=!0x1,_0x564f40['model']['enqueueChange'](_0x470726=>{_0x470726['setSelection'](null),_0x470726['removeSelectionAttribute'](_0x564f40['model']['document']['selection']['getAttributeKeys']());const _0x32a5de=Object['keys'](_0x1508e6);for(const _0x36fe28 of _0x564f40['model']['document']['roots'])'$graveyard'!=_0x36fe28['rootName']&&_0x36fe28['isAttached']()&&!_0x32a5de['includes'](_0x36fe28['rootName'])&&_0x470726['detachRoot'](_0x36fe28);for(const _0x7039fc of _0x32a5de){let _0x20928e=_0x564f40['model']['document']['getRoot'](_0x7039fc);_0x20928e&&_0x20928e['isAttached']()||(_0x20928e=_0x470726['addRoot'](_0x7039fc));const _0x13875a=_0x52445f[_0x7039fc],_0x16fdec=Object['keys'](_0x13875a),_0x4506d4=_0x1508e6[_0x7039fc];for(const _0x4a2168 of _0x20928e['getAttributeKeys']())_0x16fdec['includes'](_0x4a2168)||_0x470726['removeAttribute'](_0x4a2168,_0x20928e);for(const _0x28e664 of _0x16fdec)_0x470726['setAttribute'](_0x28e664,_0x52445f[_0x7039fc][_0x28e664],_0x20928e);_0x470726['remove'](_0x470726['createRangeIn'](_0x20928e)),_0x470726['insert'](_0x564f40['data']['parse'](_0x4506d4,_0x20928e),_0x20928e,0x0);}});const _0x13ee65=R(_0x564f40['locale'],'Restored');if(_0x1226fe['name'])_0x296f4e=-0x1==_0x1226fe['name']['indexOf'](_0x13ee65)?_0x13ee65+':\x20'+_0x1226fe['name']:_0x1226fe['name'];else _0x296f4e=_0x13ee65+':\x20'+(_0x1226fe['createdAt']['toLocaleDateString'](_0x564f40['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1226fe['createdAt']['toLocaleTimeString'](_0x564f40['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3b8540['saveRevision']({'name':_0x296f4e}),_0x2a3daf['isReady']=!0x0,_0x564f40['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x59124c){super(_0x59124c),this['_revisionViewer']=_0x59124c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x187042=this['_revisionsRepository']['_revisions'],_0x3db587=this['_createRevisionActions'](),_0x2f8148=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x187042,_0x3db587,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',(_0x357632,_0x365233)=>{_0x365233['revisionViews']['on']('add',(_0x10a3b9,_0x397c57)=>{_0x397c57['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)),_0x2f8148['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x32e6ea=this['_revisionsRepository']['getRevision'](0x0);if(_0x32e6ea){const _0xb50082=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x32e6ea['id']);this['_revisionViewer']['compare'](_0x32e6ea,_0xb50082);}}['_handleRevisionSelected'](_0x569869,_0x8cd12c){const _0x115aec=this['_revisionsRepository']['getRevision'](_0x8cd12c['id']),_0x1f236c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x115aec['id']);this['_revisionViewer']['compare'](_0x115aec,_0x1f236c);}['_handleRevisionSetName'](_0x3a5477,_0x1360fc){this['_revisionsRepository']['getRevision'](_0x1360fc['id'])['setName'](_0x1360fc['name']);}['_handleDiffChange'](_0x4bc4c4,_0x580db9,_0x2d8c9a){const _0x381fa4=this['_revisionsRepository']['getRevisionsInDiff'](_0x2d8c9a);_0x381fa4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x381fa4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x381fa4[0x0]));}['_createRevisionActions'](){const _0x3efaa5=this['editor'],_0x314028=g['availableRevisionActions'],_0x16e14b=_0x3efaa5['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x16e14b['length'])return _0x16e14b['map'](_0x290b7f=>{const _0x1e49fd='string'==typeof _0x290b7f?Object['assign']({},_0x314028[_0x290b7f]):_0x290b7f;return _0x1e49fd['action']=_0x1e49fd['action']['bind'](this,_0x3efaa5),_0x1e49fd['isVisible']&&(_0x1e49fd['isVisible']=_0x1e49fd['isVisible']['bind'](this,_0x3efaa5)),_0x1e49fd;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x6c666},_0x4d5215)=>{const _0x3c20d4=_0x6c666['get'](d),_0x480362=_0x3c20d4['repository'];let _0x1fc026=_0x3c20d4['diff']['newRevisionId'],_0x3b4e42=_0x4d5215['id'];_0x480362['getIndex'](_0x1fc026)>_0x480362['getIndex'](_0x3b4e42)&&([_0x1fc026,_0x3b4e42]=[_0x3b4e42,_0x1fc026]),_0x3c20d4['compare'](_0x1fc026,_0x3b4e42);},'isVisible':({plugins:_0x876e07},_0x3a93bd)=>{const _0x474e82=_0x876e07['get'](d);return!(_0x474e82['repository']['getRevisionsInDiff'](_0x474e82['diff'])['length']>0x2)&&!_0x3a93bd['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4939ca,{id:_0xe1ff2d})=>{_0x4939ca['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xe1ff2d);},'isVisible':({plugins:_0x489c82},_0x2a1a44)=>!!_0x489c82['get'](d)['repository']['getLaterVisibleRevision'](_0x2a1a44['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x491935},{id:_0x4229e4,revisionNameView:_0x25081e})=>{const _0x1f6c62=_0x491935['get'](d),_0x340b70=_0x1f6c62['repository']['getEarlierVisibleRevision'](_0x4229e4);_0x1f6c62['compare'](_0x4229e4,_0x340b70),_0x25081e['focus'](),_0x25081e['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x20a9fa,_0xb2e7c){super(_0x20a9fa),this['_view']=_0xb2e7c,this['_toolbarConfig']=ht(_0x20a9fa['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x4ab226){const _0x226d15=this['editor'],_0xd18a0a=this['view'],_0x225a11=_0x226d15['editing']['view'],_0x3b8aeb=_0xd18a0a['editable'],_0x26b820=_0x225a11['document']['getRoot']();_0x3b8aeb['name']=_0x26b820['rootName'],_0xd18a0a['render']();const _0x46aaf9=_0x3b8aeb['element'];this['setEditableElement'](_0x3b8aeb['name'],_0x46aaf9),_0xd18a0a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x225a11['attachDomRoot'](_0x46aaf9),this['_elementReplacer']['replace'](_0x4ab226,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x185d22=this['view'],_0x495673=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x495673['detachDomRoot'](_0x185d22['editable']['name']),_0x185d22['destroy']();}['_initToolbar'](){const _0x5b979f=this['view'];_0x5b979f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5b979f['stickyPanel']['limiterElement']=_0x5b979f['element'],_0x5b979f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2351a1})=>_0x2351a1),_0x5b979f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5b979f['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4ca388,_0x4f4e2b,_0x5c60d5={}){super(_0x4ca388),this['stickyPanel']=new lt(_0x4ca388),this['toolbar']=new nt(_0x4ca388,{'shouldGroupWhenFull':_0x5c60d5['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4ca388,_0x4f4e2b);}['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
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x406b1c,_0x1225f3){super(_0x1225f3),this['sourceElement']=_0x406b1c,this['model']['document']['createRoot']();const _0x5b1cc7=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x5b1cc7);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x20087c,_0x2d6443){const _0x1276cf=new this(_0x20087c,_0x2d6443);return await _0x1276cf['initPlugins'](),await _0x1276cf['ui']['init'](_0x20087c),await _0x1276cf['data']['init'](_0x1276cf['config']['get']('initialData')||''),_0x1276cf['fire']('ready'),_0x1276cf;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x173480{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x430086){function _0x163c89(_0x21ac0b){return _0x21ac0b['map'](_0x16225a=>String['fromCharCode'](_0x16225a))['join']('');}super(_0x430086),this['result']='end',_0x430086[_0x163c89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163c89([0x76,0x69,0x65,0x77])][_0x163c89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x163c89([0x61,0x75,0x74,0x6f]),_0x430086[_0x163c89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x163c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x163c89([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x163c89([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x163c89([0x6f,0x6b])});}}class H extends _0x173480{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e5159){if(super(_0x4e5159),!this['editor']['config']['get']('revisionHistory'))throw new _0xd71846('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa421f0=>this['_showRevisionViewer']({..._0xa421f0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34ab00=>this['_closeRevisionViewer'](_0x34ab00)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x511499=>this['_restoreRevision'](_0x511499)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xb2df56){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xb2df56;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x745407){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x745407);}['getRevision'](_0x3ad1c3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ad1c3);}['getRevisions'](_0x4352ef){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4352ef||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x601821=this['editor'],_0x24b14d=_0x4edf6a(_0x601821,p),_0x390fd3=_0x601821['plugins']['get']('RevisionTracker'),_0x374d4b=_0x601821['plugins']['get']('Users')['users'];return _0x24b14d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x24b14d['lazyRoots'],(_0x24b14d['plugins']['push'](k,d,m,class extends _0x173480{static get['requires'](){return[d,'Users'];}['init'](){const _0x4ea901=this['editor']['plugins']['get']('Users');for(const _0x20416c of _0x374d4b)_0x20416c['isAnonymous']||_0x4ea901['getUser'](_0x20416c['id'])||_0x4ea901['addUser'](_0x20416c);const _0x28df7=_0x390fd3['repository']['getRevisions']();let _0x464f88=null;const _0x584178=this['editor']['plugins']['get']('RevisionViewer');_0x584178['adapter']=_0x390fd3['adapter'],_0x584178['bind']('isEnabled')['to'](_0x390fd3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x601821,'isReadOnly',_0x469f7d=>!_0x469f7d);for(const _0x5c3284 of _0x28df7){const _0x2a9cfc=null===_0x5c3284['creator'];if(_0x2a9cfc&&_0x5c3284['toVersion']===_0x5c3284['fromVersion'])continue;const _0x36788d=_0x5c3284['toJSON']();_0x584178['addRevisionData'](_0x36788d,(_0x24812f,_0x4d3370,_0x45c341)=>{if(_0x2a9cfc){if(_0x464f88)_0x464f88['_update'](_0x24812f,_0x4d3370);else{if(!_0x4d3370){const _0x7d61d1=_0x45c341['toJSON']();_0x7d61d1['id']=_0x443970(),_0x390fd3['saveRevision'](_0x7d61d1,_0x45c341['toVersion'])['then'](_0x23b696=>{_0x464f88=_0x23b696;});}}}else _0x5c3284['_update'](_0x24812f,_0x4d3370);});}}},g),_0x24b14d);}['_enhanceShowRevisionViewerCallback'](){const _0x13e7e1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x45ac35=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5615b8=this['editor']['plugins']['get']('Autosave');await _0x5615b8['save']();}else await _0x45ac35['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2e5cd9=this['editor']['plugins']['get']('Dialog');_0x2e5cd9['isOpen']&&_0x2e5cd9['hide']();}const _0x3bd428=this['_getRevisionViewerEditorConfig']();return _0x13e7e1(_0x3bd428)['then'](_0x4862f0=>{return(this['_viewerEditor']=_0x4862f0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4862f0;})['catch'](_0x22e7c=>(console['error'](_0x22e7c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x10931d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x10931d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4e52af=this['editor']['plugins']['get']('Annotations');_0x4e52af['refreshVisibility'](),_0x4e52af['refreshPositioning']();}})));}['_showRevisionViewer'](_0x122da6){const _0x8d3886=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x396cb1=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c9b68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1c9b68,_0x122da6)['then'](_0x5f2476=>(_0x396cb1['style']['display']='block',_0x8d3886['style']['display']='none',_0x5f2476));}['_closeRevisionViewer'](_0x828f66){const _0x219dfc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x219dfc['style']['display']='',_0x828f66['destroy']();}async['_restoreRevision'](_0xe2b072){const _0xd6eb6=this['editor'],_0xc1436d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43ecfd=_0xd6eb6['plugins']['get']('RevisionTracker'),_0x387194=_0xc1436d['repository']['getRevision'](_0xe2b072);let _0x1f78cd,_0x40fc7d,_0x4a648e;try{_0x1f78cd=await _0xc1436d['getRevisionData'](_0x387194),_0x40fc7d=await _0xc1436d['getRevisionRootsAttributes'](_0x387194);}catch(_0x2d3169){return void console['error'](_0x2d3169);}_0xd6eb6['model']['change'](_0x3c4ead=>{for(const _0x5bbd65 of Array['from'](_0xd6eb6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c4ead['removeMarker'](_0x5bbd65);}),_0xc1436d['isReady']=!0x1,_0xd6eb6['model']['enqueueChange'](_0x30519d=>{_0x30519d['setSelection'](null),_0x30519d['removeSelectionAttribute'](_0xd6eb6['model']['document']['selection']['getAttributeKeys']());const _0x4dfdcf=Object['keys'](_0x1f78cd);for(const _0x742a20 of _0xd6eb6['model']['document']['roots'])'$graveyard'!=_0x742a20['rootName']&&_0x742a20['isAttached']()&&!_0x4dfdcf['includes'](_0x742a20['rootName'])&&_0x30519d['detachRoot'](_0x742a20);for(const _0x32d799 of _0x4dfdcf){let _0x2db728=_0xd6eb6['model']['document']['getRoot'](_0x32d799);_0x2db728&&_0x2db728['isAttached']()||(_0x2db728=_0x30519d['addRoot'](_0x32d799));const _0x333220=_0x40fc7d[_0x32d799],_0x2f2edc=Object['keys'](_0x333220),_0x11d59e=_0x1f78cd[_0x32d799];for(const _0x91b79e of _0x2db728['getAttributeKeys']())_0x2f2edc['includes'](_0x91b79e)||_0x30519d['removeAttribute'](_0x91b79e,_0x2db728);for(const _0x57cca0 of _0x2f2edc)_0x30519d['setAttribute'](_0x57cca0,_0x40fc7d[_0x32d799][_0x57cca0],_0x2db728);_0x30519d['remove'](_0x30519d['createRangeIn'](_0x2db728)),_0x30519d['insert'](_0xd6eb6['data']['parse'](_0x11d59e,_0x2db728),_0x2db728,0x0);}});const _0x45565f=R(_0xd6eb6['locale'],'Restored');if(_0x387194['name'])_0x4a648e=-0x1==_0x387194['name']['indexOf'](_0x45565f)?_0x45565f+':\x20'+_0x387194['name']:_0x387194['name'];else _0x4a648e=_0x45565f+':\x20'+(_0x387194['createdAt']['toLocaleDateString'](_0xd6eb6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x387194['createdAt']['toLocaleTimeString'](_0xd6eb6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43ecfd['saveRevision']({'name':_0x4a648e}),_0xc1436d['isReady']=!0x0,_0xd6eb6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|