@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241210.0 → 0.0.0-nightly-20241211.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x429bfb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x488089){super(),this['id']=_0x488089['id']||_0x4fb206(),this['creator']=_0x488089['creator']||null,this['authors']=_0x488089['authors']||[],this['diffData']=_0x488089['diffData']||null,this['toVersion']=_0x488089['toVersion']||0x0,this['fromVersion']=_0x488089['fromVersion']||0x0,this['set']('name',_0x488089['name']||''),this['set']('createdAt',_0x488089['createdAt']||new Date()),this['set']('attributes',_0x488089['attributes']||{});}['setName'](_0x2d6b84){this['_update']({'name':_0x2d6b84});}['setAttribute'](_0x3fbe8a,_0x388fa6){const _0x3ef9dc=_0x2fd224(this['attributes']);_0x5a199f(_0x3ef9dc,_0x3fbe8a,_0x388fa6),this['_update']({'attributes':_0x3ef9dc});}['removeAttribute'](_0x134170){const _0x145d43=_0x2fd224(this['attributes']);_0x15498d(_0x145d43,_0x134170),this['_update']({'attributes':_0x145d43});}['_update'](_0x134bc5,_0x2f774e=!0x1){let _0x402d37=!0x1;const _0x5fbe79={'id':this['id']},_0x4e9557=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4e4f40 of _0x4e9557){const _0x160daf=_0x134bc5[_0x4e4f40];void 0x0!==_0x160daf&&_0x160daf!==this[_0x4e4f40]&&(this[_0x4e4f40]=_0x160daf,_0x5fbe79[_0x4e4f40]=_0x160daf,_0x402d37=!0x0);}_0x402d37&&(_0x5fbe79['authors']&&(_0x5fbe79['authorsIds']=_0x5fbe79['authors']['map'](_0x5e1761=>_0x5e1761['id']),delete _0x5fbe79['authors']),this['fire']('_update',_0x5fbe79,_0x2f774e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x34fc2f=>_0x34fc2f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5025c2{['_revisions'];static get['requires'](){return[_0x537e60];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x636036){super(_0x636036),this['_revisions']=new _0x35ddfb();}['afterInit'](){!async function(_0xda90df){const _0x50c4e0=_0x39f8a2([0x70,0x51,0x55,0x6e,0x44,0x66,0x34,0x4c,0x30,0x65,0x7a,0x53,0x5a,0x74,0x76,0x47,0x36,0x79,0x35,0x32,0x69,0x78,0x52,0x62,0x56,0x58,0x68,0x33,0x6d,0x6a,0x31,0x45,0x4d,0x50,0x4b,0x49,0x77,0x73,0x48,0x61,0x72,0x4a,0x41,0x64,0x46,0x57,0x6c,0x75,0x39,0x59,0x71,0x67,0x6f,0x54,0x37,0x63,0x6b,0x4e,0x42,0x38,0x4f,0x43]),_0x4c2ccf=0xeb829,_0x5c1f03=0x57872304,_0x5897ec=0x57807a4c^_0x5c1f03,_0x5c3df7=window[_0x39f8a2([0x44,0x61,0x74,0x65])][_0x39f8a2([0x6e,0x6f,0x77])](),_0x578d37=_0xda90df[_0x39f8a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d432b=new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebff0=>{_0x578d37[_0x39f8a2([0x6f,0x6e,0x63,0x65])](_0x39f8a2([0x72,0x65,0x61,0x64,0x79]),_0x4ebff0);}),_0x4f77ae={[_0x39f8a2([0x6b,0x74,0x79])]:_0x39f8a2([0x45,0x43]),[_0x39f8a2([0x75,0x73,0x65])]:_0x39f8a2([0x73,0x69,0x67]),[_0x39f8a2([0x63,0x72,0x76])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36]),[_0x39f8a2([0x78])]:_0x39f8a2([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]),[_0x39f8a2([0x79])]:_0x39f8a2([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]),[_0x39f8a2([0x61,0x6c,0x67])]:_0x39f8a2([0x45,0x53,0x32,0x35,0x36])},_0x517a13=_0x578d37[_0x39f8a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39f8a2([0x67,0x65,0x74])](_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b9a5(){let _0xa29264,_0x59ba93=null,_0x8a328f=null;try{if(_0x517a13==_0x39f8a2([0x47,0x50,0x4c]))return _0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa29264=_0x20bfb7(),!_0xa29264)return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8a328f=_0x55692e(_0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa29264[_0x39f8a2([0x6a,0x74,0x69])])),await _0x50c630()?_0x57c6c2()?_0x209239()?_0x39f8a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41f96f()?(_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59ef58()):_0x39f8a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x789968){return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209239(){const _0x5688fe=[_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])][_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c3df7/0x3e8:0xe10*_0x5897ec;return _0xa29264[_0x39f8a2([0x65,0x78,0x70])]<_0x5688fe;}function _0x57c6c2(){const _0x55f65b=_0xa29264[_0x39f8a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55f65b)return!0x1;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x48])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x52,0x48]))){if(_0x4380d4())return!0x0;if(_0x10eef0()||_0x48132f())return!0x0;}return!0x1;}function _0x41f96f(){const _0xee186b=_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xee186b||0x0==_0xee186b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31af79}=new URL(window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xee186b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31af79))return!0x0;const _0x2d656f=_0x31af79[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));return _0xee186b[_0x39f8a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x442b29=>_0x442b29[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))[_0x39f8a2([0x6d,0x61,0x70])](_0x1997cf=>_0x1997cf[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])))[_0x39f8a2([0x73,0x6f,0x6d,0x65])](_0x2a4f0f=>_0x2d656f[_0x39f8a2([0x65,0x76,0x65,0x72,0x79])]((_0x1fe04b,_0x4ce824)=>_0x2a4f0f[_0x4ce824]===_0x1fe04b||_0x2a4f0f[_0x4ce824]===_0x39f8a2([0x2a])));}function _0x59ef58(){return _0x59ba93&&_0x8a328f?new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47d147,_0x44f91a)=>{_0x59ba93[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x47d147,_0x44f91a),_0x8a328f[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x349a05=>{_0x349a05!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x47d147(_0x349a05);},_0x44f91a);}):_0x59ba93||_0x8a328f||_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55692e(_0x42ef2a,_0x4d9843){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad95e=>{if(_0x45c7ea())return _0x3ad95e(_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]));_0x189f0f(),_0x578d37[_0x39f8a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x101275=!0x1;const _0x496465=_0x4fb206();function _0x3ddf33(_0x1aa6f4){return!!_0x1aa6f4&&(typeof _0x1aa6f4===_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aa6f4===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aa6f4[_0x39f8a2([0x74,0x68,0x65,0x6e])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aa6f4[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f8c1e(_0x28471c){_0x30133b(_0x28471c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x31e207=>{if(!_0x31e207||_0x31e207[_0x39f8a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39f8a2([0x6f,0x6b]))return _0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2504c3(_0x480eb6(_0x496465+_0x4d9843))!=_0x31e207[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x48cd53=>(_0x99e8e(),_0x48cd53),()=>{const _0x4e5275=_0x3c011c();return null==_0x4e5275?(_0x99e8e(),_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])):_0x39f8a2(_0x5c3df7-_0x4e5275>(0x738ba704^_0x5c1f03)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x3ad95e)[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529ec9=0x57b1cd84^_0x5c1f03;function _0x99e8e(){const _0x26a089=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x3e212d=_0xd182c6(_0x2504c3(window[_0x39f8a2([0x4d,0x61,0x74,0x68])][_0x39f8a2([0x63,0x65,0x69,0x6c])](_0x5c3df7/_0x529ec9)));window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a089,_0x3e212d);}function _0x3c011c(){const _0x2fe168=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x5874b5=window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe168);return _0x5874b5?window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd182c6(_0x5874b5),0x10)*_0x529ec9:null;}function _0x30133b(_0x2451ba){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd955f6,_0x1f10ab)=>{_0x2451ba[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0xd955f6,_0x1f10ab),window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f10ab,0x5786f7c4^_0x5c1f03);});}}_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c873,_0x3dc5ee)=>{if(_0x3dc5ee[0x0]!=_0x42ef2a)return _0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dc5ee[0x1]={..._0x3dc5ee[0x1],[_0x39f8a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496465};},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x68,0x69,0x67,0x68])}),_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45028b=>{_0x3ddf33(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x101275=!0x0,_0x2f8c1e(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x6c,0x6f,0x77])}),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>{_0x101275||_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45c7ea(){return _0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39f8a2([0x61,0x75,0x74,0x6f]);}function _0x189f0f(){_0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f8a2([0x61,0x75,0x74,0x6f]);}}function _0x32c309(_0x3aa745){const _0x2c9e2c=[new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e32f5=>setTimeout(_0x3e32f5,0x578e1dc8^_0x5c1f03)),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495f3f=>{const _0x269e04=0x57872303^_0x5c1f03,_0x2d14fc=_0xda90df[_0x39f8a2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x22108e(){_0x2d14fc[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x269e04&&_0x495f3f();}_0x22108e(),_0x2d14fc[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x61,0x64,0x64]),_0x22108e);})),new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cde61=>{function _0x38c282(){for(const _0x2a1c4f in window)if(window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a1c4f))&&window[_0x2a1c4f]==_0x4c2ccf)return _0x3cde61();_0x578d37[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]!=_0x39f8a2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38c282,0x5787308c^_0x5c1f03);}_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38c282();})];return window[_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f8a2([0x72,0x61,0x63,0x65])](_0x2c9e2c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>_0x3aa745);}async function _0x493b63(){if(await _0x2d432b,_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x336976=_0xda90df[_0x39f8a2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5536d8=_0xda90df[_0x39f8a2([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])](_0x336976[_0x39f8a2([0x69,0x64])]),_0x113c6a=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x336976['id'],_0x5536d8?_0x5536d8['id']:null,!0x0),_0x113c6a[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x113c6a[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x44374a,void(_0x113c6a[_0x39f8a2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x44374a);}if(_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x184b75=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x184b75[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x184b75[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x184b75[_0x39f8a2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x44374a,_0x184b75[_0x39f8a2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x44374a;}_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4380d4(){return _0x49ba63(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x420786(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]==_0x39f8a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10eef0(){return _0x49ba63(_0x39f8a2([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 _0x48132f(){return _0x49ba63(_0x39f8a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4067d2(_0xa23c8d){const _0x40fc45=_0x36f052();_0x578d37[_0x40fc45]=_0x39f8a2([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])+_0xa23c8d,_0xa23c8d[_0x39f8a2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36f052()]=_0x4c2ccf),_0xa23c8d!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x493b63();}function _0x36f052(){const _0x371315=window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39f8a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39f8a2([0x6e,0x6f,0x77])]())[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39f8a2([0x2e]),'');let _0x507e89=_0x39f8a2([0x70]);for(let _0xc0d753=0x0;_0xc0d753<_0x371315[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc0d753+=0x2){let _0x563c40=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371315[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0d753,_0xc0d753+0x2));_0x563c40>=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x563c40-=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x507e89+=_0x50c4e0[_0x563c40];}return _0x507e89;}function _0x20bfb7(){const _0x41707b=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));if(0x3!=_0x41707b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x124210(_0x41707b[0x1]);function _0x124210(_0x551778){const _0x5de607=_0x595447(_0x551778);return _0x5de607&&_0x1d4615()?_0x5de607:null;function _0x1d4615(){const _0x33aaba=_0x5de607[_0x39f8a2([0x6a,0x74,0x69])],_0xd1620b=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1195e6={..._0x5de607,[_0x39f8a2([0x6a,0x74,0x69])]:_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1195e6[_0x39f8a2([0x76,0x63])],_0x480eb6(_0x1195e6)==_0xd1620b;}}}async function _0x50c630(){let _0x180c7d=!0x0;try{const _0x247650=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])),[_0x38200c,_0x3ff823,_0x47c89c]=_0x247650;return _0x59066c(_0x38200c),await _0x1f1b42(_0x38200c,_0x3ff823,_0x47c89c),_0x180c7d;}catch(_0x32476c){return!0x1;}function _0x59066c(_0x25e13e){const _0x513bdf=_0x595447(_0x25e13e);_0x513bdf&&_0x513bdf[_0x39f8a2([0x61,0x6c,0x67])]==_0x39f8a2([0x45,0x53,0x32,0x35,0x36])||(_0x180c7d=!0x1);}async function _0x1f1b42(_0x3a7a73,_0x530389,_0xf304d3){const _0x15b2d9=window[_0x39f8a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39f8a2([0x66,0x72,0x6f,0x6d])](_0xe98b8c(_0xf304d3),_0x2b75eb=>_0x2b75eb[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c90af=new window[(_0x39f8a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39f8a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a7a73+_0x39f8a2([0x2e])+_0x530389),_0x3fdd61=window[_0x39f8a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39f8a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fdd61)return;const _0x3534cb=await _0x3fdd61[_0x39f8a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39f8a2([0x6a,0x77,0x6b]),_0x4f77ae,{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fdd61[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x68,0x61,0x73,0x68])]:{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3534cb,_0x15b2d9,_0x5c90af)||(_0x180c7d=!0x1);}}function _0x595447(_0x2143e3){return _0x2143e3[_0x39f8a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x65,0x79]))?JSON[_0x39f8a2([0x70,0x61,0x72,0x73,0x65])](_0xe98b8c(_0x2143e3)):null;}function _0xe98b8c(_0x7f4fe0){return window[_0x39f8a2([0x61,0x74,0x6f,0x62])](_0x7f4fe0[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39f8a2([0x2b]))[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39f8a2([0x2f])));}function _0x480eb6(_0x592c97){let _0x4863c1=0x1505;function _0x526208(_0x3cb97c){for(let _0x39eb5e=0x0;_0x39eb5e<_0x3cb97c[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39eb5e++){const _0xd5c802=_0x3cb97c[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39eb5e);_0x4863c1=(_0x4863c1<<0x5)+_0x4863c1+_0xd5c802,_0x4863c1&=_0x4863c1;}}function _0x338882(_0x1f8934){Array[_0x39f8a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f8934)?_0x1f8934[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x338882):_0x1f8934&&typeof _0x1f8934==_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39f8a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f8934)[_0x39f8a2([0x73,0x6f,0x72,0x74])]()[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20fadd,_0x50bec4])=>{_0x526208(_0x20fadd),_0x338882(_0x50bec4);}):_0x526208(window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f8934));}return _0x338882(_0x592c97),_0x4863c1>>>0x0;}function _0x2504c3(_0x1aaffa){return _0x1aaffa[_0x39f8a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39f8a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39f8a2([0x30]));}function _0xd182c6(_0x584642){return _0x584642[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39f8a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39f8a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x49ba63(_0x2c4479){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x68,0x61,0x73])](_0x2c4479);}function _0x420786(_0x5322c5){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x67,0x65,0x74])](_0x5322c5);}function _0x44374a(){}function _0x39f8a2(_0x4cbef9){return _0x4cbef9['map'](_0x3bd4dd=>String['fromCharCode'](_0x3bd4dd))['join']('');}_0x4067d2(await _0x23b9a5());}(this);}['createRevision'](_0x536efe){const _0x48bdae=this['editor']['plugins']['get']('Users');return new a({'id':_0x536efe['id'],'name':_0x536efe['name'],'creator':_0x536efe['creatorId']?_0x48bdae['getUser'](_0x536efe['creatorId']):null,'diffData':_0x536efe['diffData']||_0x536efe['data'],'authors':_0x536efe['authorsIds']['map'](_0x4f5626=>_0x48bdae['getUser'](_0x4f5626)),'createdAt':new Date(_0x536efe['createdAt']),'attributes':_0x536efe['attributes'],'fromVersion':_0x536efe['fromVersion'],'toVersion':_0x536efe['toVersion']});}['addRevision'](_0x3d6dc0,_0xdf726=0x0){this['_revisions']['add'](_0x3d6dc0,_0xdf726);}['getRevision'](_0x56d47f){return this['_revisions']['get'](_0x56d47f);}['getRevisions'](_0x4de626={'toJSON':!0x1}){const _0x6e71e0=Array['from'](this['_revisions']);return _0x6e71e0['reverse'](),_0x4de626['toJSON']?_0x6e71e0['map'](_0x780b17=>_0x780b17['toJSON']()):_0x6e71e0;}['getIndex'](_0x4cc439){return this['_revisions']['getIndex'](_0x4cc439);}['getEarlierVisibleRevision'](_0x4607b0){const [,_0x177898]=this['getRevisionsIterator'](_0x4607b0,{'direction':'earlier'});return _0x177898;}['getLaterVisibleRevision'](_0x1c396d){const [,_0x38aae7]=this['getRevisionsIterator'](_0x1c396d,{'direction':'later'});return _0x38aae7;}['getRevisionsInDiff'](_0x5dcae5){const _0x323fba=[];for(const _0x414978 of this['getRevisionsIterator'](_0x5dcae5['newRevisionId']))if(_0x323fba['push'](_0x414978),_0x414978['id']===_0x5dcae5['oldRevisionId'])break;return _0x323fba;}*['getRevisionsIterator'](_0xbf386f,{direction:_0x43e283='earlier',filter:_0x446a7c=()=>!0x0}={}){const _0x432a90='earlier'===_0x43e283?0x1:-0x1;let _0x4460ab=this['_revisions']['get'](_0xbf386f),_0x7225b1=this['getIndex'](_0x4460ab);for(yield _0x4460ab;_0x4460ab;){if(_0x7225b1+=_0x432a90,_0x4460ab=this['getRevision'](_0x7225b1),!_0x4460ab)return;_0x446a7c(_0x4460ab)&&(yield _0x4460ab);}}}function R(_0x10c11a,_0x4be4c3,_0x228d3f){const t=_0x10c11a['t'];switch(_0x4be4c3){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'},_0x228d3f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x228d3f);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':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class l extends _0x5025c2{['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[_0x537e60,j,_0x5a095e];}constructor(_0x33a784){super(_0x33a784),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 _0x5ebdce=_0x4fb206();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ebdce},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 _0x426c4d=this['repository']['getRevision'](0x0),_0x251db4=_0x426c4d&&null===_0x426c4d['creator']?_0x426c4d:null;if(this['_continueCurrentRevision']=!!_0x251db4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5685a2=this['_source']['getCurrentRevisionId'](),_0x1feafb=this['repository']['getRevision'](_0x5685a2);if(_0x1feafb)this['_startingVersion']=_0x1feafb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54f76c=this['_source']['history']['_operations']['find'](_0x5544ac=>!_0x5544ac['_isInit']),_0x1351ec=_0x54f76c?_0x54f76c['baseVersion']:this['_source']['history']['version'];_0x426c4d?(_0x426c4d['toVersion']<_0x1351ec&&_0x426c4d['_update']({'toVersion':_0x1351ec}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['fromVersion']):(this['_startingVersion']=_0x426c4d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1351ec,this['_continueCurrentRevision']=!0x1);}}else _0x251db4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x251db4['toVersion'],this['editor']['model']['document']['history']['version']),_0x251db4['fromVersion']===_0x251db4['toVersion']?(0x0!==_0x251db4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['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',_0x520a5f=>!_0x520a5f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe0735a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x436c4b;for(const _0x47d270 in _0xe0735a){const _0x33889e=_0x47d270,_0x186f7c=_0xe0735a[_0x33889e];if('revisionHistoryLicenseKeyValid'==_0x186f7c||'revisionHistoryLicenseKeyInvalid'==_0x186f7c||'revisionHistoryLicenseKeyExpired'==_0x186f7c||'revisionHistoryLicenseKeyDomainLimit'==_0x186f7c||'revisionHistoryLicenseKeyNotAllowed'==_0x186f7c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x186f7c||'revisionHistoryLicenseKeyTrialLimit'==_0x186f7c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x186f7c||'revisionHistoryLicenseKeyUsageLimit'==_0x186f7c){delete _0xe0735a[_0x33889e],_0x436c4b=_0x186f7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x436c4b&&_0xe0735a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x436c4b&&_0xe0735a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x436c4b&&_0xe0735a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x294305=this['repository']['getRevision'](0x0),_0x265329=await this['getRevisionDocumentData'](_0x294305),_0x252e97=await this['getRevisionRootsAttributes'](_0x294305);this['_replaceEditorDataWithRevisionData'](_0x265329,_0x252e97);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x43175a){this['_source']=_0x43175a;}async['update'](){const _0x50a291=await this['_source']['getLatestVersion']();if(_0x50a291>this['currentRevision']['toVersion']){await this['_loadState']();const _0x598ef4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x50a291});_0x598ef4['authors']=_0x598ef4['authorsIds']['map'](_0x30a12c=>this['editor']['plugins']['get']('Users')['getUser'](_0x30a12c)),this['currentRevision']['_update'](_0x598ef4);}}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'](_0x1e7f59={},_0x430a7c=null){const _0x8df32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x430a7c>this['currentRevision']['toVersion']&&(_0x430a7c=null),null===_0x430a7c&&(_0x430a7c=await this['_source']['getLatestVersion']());const _0xb05e48=this['_getFromVersion'](_0x430a7c),_0x5a0aaa=this['buildRevisionData']({'from':_0xb05e48,'to':_0x430a7c});if(this['currentRevision']['toVersion']<_0x430a7c){const _0x2e20f5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x430a7c,'to':_0x430a7c});_0x2e20f5['authors']=[],_0x2e20f5['authorsIds']=[],_0x2e20f5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2e20f5,!0x0),delete _0x2e20f5['authors'],_0x8df32['push'](_0x2e20f5);}_0x1e7f59['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e7f59['name']=_0x1e7f59['name']||null,_0x1e7f59['id']=_0x1e7f59['id']||_0x4fb206(),_0x1e7f59={..._0x1e7f59,..._0x5a0aaa};const _0xd74779=this['addRevisionData'](_0x1e7f59);_0x8df32['push'](_0x1e7f59);const _0x16d903=this['repository']['getIndex'](_0xd74779);if(0x0!==_0x16d903){const _0x453d3e=this['repository']['getRevision'](_0x16d903-0x1);if(_0x453d3e['fromVersion']!==_0x430a7c){const _0x3cfb1f=this['_revisionDataBuilder']['getData'](_0x430a7c,_0x453d3e['toVersion']),_0x4de958={'id':_0x453d3e['id'],'diffData':_0x3cfb1f['diffData'],'authorsIds':_0x3cfb1f['authorsIds'],'authors':_0x3cfb1f['authorsIds']['map'](_0x1bd9a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bd9a0)),'fromVersion':_0x430a7c};_0x453d3e===this['currentRevision']&&(_0x4de958['createdAt']=new Date(_0x1e7f59['createdAt']['getTime']()+0xa)),_0x453d3e['_update'](_0x4de958,!0x0),delete _0x4de958['authors'],_0x8df32['push'](_0x4de958);}}if(this['adapter']){for(const _0x379a85 of _0x8df32)this['_bufferUpdate'](_0x379a85['id'],_0x379a85,!0x0);this['sendBufferedUpdates']();}return _0xd74779;}['addRevisionData'](_0x233fd){const _0x1fce7a=this['repository']['createRevision'](_0x233fd);return this['adapter']&&_0x1fce7a['on']('_update',(_0x48ac66,_0x1dfe3d,_0x139f0b)=>{_0x139f0b||(this['_bufferUpdate'](_0x1dfe3d['id'],_0x1dfe3d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1fce7a,this['_findInsertionIndex'](_0x1fce7a)),_0x1fce7a;}async['getRevisionDocumentData'](_0x3166b6){await this['_loadRevisionData'](_0x3166b6);const _0x2797e1={};for(const _0x5a9288 in _0x3166b6['diffData']){if(_0x3166b6['diffData'][_0x5a9288]['attachChange']&&!_0x3166b6['diffData'][_0x5a9288]['attachChange']['isAttached'])continue;const _0x809b45=this['_removeRevisionMarkers'](JSON['parse'](_0x3166b6['diffData'][_0x5a9288]['insertions'])),_0x4aa7b3=this['editor']['editing']['view']['document'],_0x5d3352=new _0x14c48c(_0x4aa7b3,_0x809b45['map'](_0x303aa9=>V(_0x303aa9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2797e1[_0x5a9288]=this['editor']['data']['processor']['toData'](_0x5d3352),this['editor']['data']['processor']['useFillerType']('default');}return _0x2797e1;}async['getRevisionRootsAttributes'](_0x161d09){await this['_loadRevisionData'](_0x161d09);const _0x259489={};for(const _0xdde1d1 in _0x161d09['diffData'])_0x161d09['diffData'][_0xdde1d1]['attachChange']&&!_0x161d09['diffData'][_0xdde1d1]['attachChange']['isAttached']||(_0x259489[_0xdde1d1]=_0x161d09['diffData'][_0xdde1d1]['attributesAfter']||{});return _0x259489;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x58f78c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b2694=0x0;_0x1b2694<_0x58f78c['length'];_0x1b2694++){const _0x39c37a=_0x58f78c[_0x1b2694];let _0x92e5c9=!0x1;for(const _0x23ed56 of Object['keys'](_0x39c37a))void 0x0===_0x39c37a[_0x23ed56]?delete _0x39c37a[_0x23ed56]:'id'!==_0x23ed56&&(_0x92e5c9=!0x0);_0x92e5c9||(_0x58f78c[_0x1b2694]=null);}if(_0x58f78c=_0x58f78c['filter'](_0x77331d=>null!==_0x77331d),!_0x58f78c['length'])return;for(let _0x75d99e=0x0;_0x75d99e<_0x58f78c['length'];_0x75d99e++){const _0x4b5d12=_0x58f78c[_0x75d99e];void 0x0!==_0x4b5d12['fromVersion']&&void 0x0===_0x4b5d12['toVersion']&&(_0x4b5d12['toVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['toVersion']),void 0x0!==_0x4b5d12['toVersion']&&void 0x0===_0x4b5d12['fromVersion']&&(_0x4b5d12['fromVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['fromVersion']);}const _0xcc2121=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x58f78c,_0xcc2121)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1d675=>{if(_0x1d675){for(const _0x5af47d of _0x1d675)this['setRevisionData']({'id':_0x5af47d['id'],'createdAt':_0x5af47d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2768f5,_0x1f22dc){let _0x5aac19=this['editor']['config']['get']('initialData'),_0x378db5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5aac19){_0x5aac19={};for(const _0x1ef662 of this['editor']['model']['document']['getRootNames']())_0x5aac19[_0x1ef662]='';}if('string'==typeof _0x5aac19&&(_0x5aac19={'main':_0x5aac19}),void 0x0===_0x378db5){_0x378db5={};for(const _0x574d84 of this['editor']['model']['document']['getRootNames']())_0x378db5[_0x574d84]={};}let _0x4fc0a1=!0x1;const _0x468339=Object['keys'](_0x5aac19),_0x32ba0f=Object['keys'](_0x2768f5);for(const _0x8957fb of _0x468339){if(_0x5aac19[_0x8957fb]!==_0x2768f5[_0x8957fb]&&''!==_0x5aac19[_0x8957fb]['trim']()){_0x4fc0a1=!0x0;break;}if(!_0x53d9b6(_0x378db5[_0x8957fb],_0x1f22dc[_0x8957fb])&&Object['keys'](_0x378db5[_0x8957fb])['length']>0x0){_0x4fc0a1=!0x0;break;}}_0x4fc0a1||(_0x4fc0a1=_0x32ba0f['some'](_0x463fbf=>!this['editor']['model']['document']['getRoot'](_0x463fbf))),_0x4fc0a1&&_0x3c206e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5aac19,'editorRootsAttributes':_0x378db5,'revisionData':_0x2768f5,'revisionRootsAttributes':_0x1f22dc}),this['editor']['config']['set']('initialData',_0x2768f5),this['editor']['config']['set']('rootsAttributes',_0x1f22dc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x227fa6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x227fa6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3432fc){const _0x95f548=this['repository']['getRevisions']();_0x95f548['reverse']();let _0x3b034d=0x0;for(;_0x3b034d<_0x95f548['length'];){const _0x1d318a=_0x95f548[_0x3b034d];if(_0x1d318a===this['currentRevision']){_0x3b034d++;continue;}if(_0x1d318a['id']===this['_initialRevisionId'])break;const _0x53db7b=_0x3432fc['toVersion']-_0x1d318a['toVersion']||_0x3432fc['fromVersion']-_0x1d318a['fromVersion'];if(_0x53db7b>0x0)break;if(_0x53db7b<0x0)_0x3b034d++;else{if(!_0x3432fc['creator']&&_0x1d318a['creator'])break;if(_0x1d318a['creator']||!_0x3432fc['creator']){if(_0x3432fc['createdAt']>_0x1d318a['createdAt'])break;_0x3b034d++;}else _0x3b034d++;}}return _0x3b034d;}['setRevisionData'](_0x25897e){const _0x4b112a=this['repository']['getRevision'](_0x25897e['id']);if(_0x25897e['createdAt']&&(_0x25897e['createdAt']=new Date(_0x25897e['createdAt'])),_0x25897e['authorsIds']){const _0xb1256b=this['editor']['plugins']['get']('Users');_0x25897e['authors']=_0x25897e['authorsIds']['map'](_0xe40341=>_0xb1256b['getUser'](_0xe40341));}_0x4b112a['_update'](_0x25897e,!0x0);}['buildRevisionData']({revision:_0xc7067b=null,from:_0x4a963d=null,to:_0x434de0=null}){_0x4a963d=null!==_0x4a963d?_0x4a963d:_0xc7067b['fromVersion'],_0x434de0=null!==_0x434de0?_0x434de0:_0xc7067b['toVersion'];const _0x4e25c1=this['_revisionDataBuilder']['getData'](_0x4a963d,_0x434de0),_0x420247={'diffData':_0x4e25c1['diffData'],'authorsIds':_0x4e25c1['authorsIds'],'fromVersion':_0x4a963d,'toVersion':_0x434de0};if(!_0xc7067b||_0x434de0!==_0xc7067b['toVersion']){const _0x3c212f=_0x434de0-0x1,_0x1c5d02=this['_source']['history']['getOperation'](_0x3c212f);_0x420247['createdAt']=_0x1c5d02&&_0x1c5d02['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4a963d===this['_loadedStateData']['fromVersion']){for(const _0x1ab140 of this['_loadedStateData']['authors'])_0x420247['authorsIds']['includes'](_0x1ab140['id'])||_0x420247['authorsIds']['push'](_0x1ab140['id']);}return _0x420247;}['_loadRevisionData'](_0x3e3246){if(!_0x3e3246||_0x3e3246['diffData'])return Promise['resolve']();{const _0x268b7e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x268b7e,'revisionId':_0x3e3246['id']})['then'](_0x4dcc32=>{_0x3e3246['diffData']=_0x4dcc32['diffData'];});}}['_bufferUpdate'](_0x3bb7,_0x29540f,_0x2c07dc){if(this['_bufferedUpdates']['has'](_0x3bb7)){const _0x135ef2=this['_bufferedUpdates']['get'](_0x3bb7);_0x29540f=_0x2c07dc?{..._0x135ef2,..._0x29540f}:{..._0x29540f,..._0x135ef2};}this['_bufferedUpdates']['set'](_0x3bb7,_0x29540f);}['_getFromVersion'](_0x54f437){const _0x27ab44=this['repository']['getRevisions']();_0x27ab44['reverse'](),_0x27ab44['shift']();const _0x2aa03f=_0x27ab44['find'](_0x22dadf=>_0x22dadf['toVersion']<=_0x54f437)['toVersion'];return _0x2aa03f<this['_startingVersion']?this['_startingVersion']:_0x2aa03f;}['_createInitialRevision'](_0x561a09){const _0x8aaeb6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x8aaeb6)this['_initialRevisionId']=_0x8aaeb6['id'];else{const _0x1258e9=!this['editor']['model']['document']['roots']['find'](_0x56d7e4=>this['editor']['model']['hasContent'](_0x56d7e4)),_0xf26f56=this['editor']['plugins']['get']('Users')['me']['id'],_0x2597fa=R(this['editor']['locale'],_0x1258e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x561a09,'to':_0x561a09,'id':this['_initialRevisionId'],'name':_0x2597fa,'creatorId':_0xf26f56});}}['_createCurrentRevision'](_0x4a397b){const _0x4c7251=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4c7251),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a397b,'to':_0x4a397b,'id':_0x4c7251,'name':'','creatorId':null}));}['_makeRevision']({name:_0x138cd3,from:_0x5e084a,to:_0x467f11,creatorId:_0x584412,id:_0x4fe6e4}){const _0x199838=this['buildRevisionData']({'from':_0x5e084a,'to':_0x467f11});_0x199838['name']=_0x138cd3,_0x199838['creatorId']=_0x584412,_0x199838['id']=_0x4fe6e4;const _0xdc1ad0=this['addRevisionData'](_0x199838);return this['adapter']&&this['_bufferUpdate'](_0x199838['id'],_0x199838,!0x0),_0xdc1ad0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3ae049){return(_0x3ae049=_0x3ae049['filter'](_0x4113ef=>!_0x4113ef['name']||'revision-start'!==_0x4113ef['name']&&'revision-end'!==_0x4113ef['name']))['forEach'](_0x47f207=>{'string'!=typeof _0x47f207&&(_0x47f207['children']=this['_removeRevisionMarkers'](_0x47f207['children']),_0x47f207['attributes']=_0x47f207['attributes']['filter'](_0x32a3d5=>!_0x32a3d5[0x0]['startsWith']('data-revision-')));}),_0x3ae049;}}function V(_0x2625fc,_0x2f437f){const _0x36a9a6=_0x2f437f['editing']['view']['document'];if('string'==typeof _0x2625fc)return new _0x4dec75(_0x36a9a6,_0x2625fc);{const _0x46f892=_0x2625fc['children']['map'](_0x5f44dc=>V(_0x5f44dc,_0x2f437f));return new(C[_0x2625fc['type']]||_0x195c96)(_0x36a9a6,_0x2625fc['name'],_0x2625fc['attributes'],_0x46f892);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2aed38){this['editor']=_0x2aed38,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'](_0x239fb4){this['source']=_0x239fb4;const _0x33e426=new Map(),_0x1797c3=new Map(),_0x58815c=this['editor']['model']['document']['roots']['map'](_0x44d41e=>_0x44d41e['rootName']);for(const _0x2d1e94 of _0x58815c){const _0x22a655=this['editor']['model']['document']['getRoot'](_0x2d1e94),_0x56e219=F(_0x22a655);_0x33e426['set'](_0x2d1e94,_0x56e219),_0x1797c3['set'](_0x2d1e94,Object['fromEntries'](_0x22a655['getAttributes']()));}const _0x398096=Array['from'](this['editor']['model']['markers'])['map'](_0x3d651d=>[_0x3d651d['name'],_0x3d651d['getRange']()]),_0x1153c2=this['source']['version'];this['_saveMetaData'](_0x1153c2,_0x33e426,_0x398096,_0x1797c3),this['_startingRevisionId']=this['_revisionId'];const _0x27452d=new Map(),_0x46aedd=new Map();for(const _0x4d6e23 of _0x58815c){const _0x3c580a=B(_0x4d6e23);_0x27452d['set'](_0x4d6e23,_0x3c580a),_0x46aedd['set'](_0x4d6e23,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x27452d,[],_0x46aedd);}['getData'](_0x5c59c6,_0x1c225d){if(this['_lastFrom']===_0x5c59c6&&this['_lastTo']<=_0x1c225d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c225d,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c59c6)){const _0x4af44b=this['_getPreviousFrom'](_0x5c59c6);this['_calculateMetaData'](_0x4af44b,_0x5c59c6,!0x1);}this['_calculateMetaData'](_0x5c59c6,_0x1c225d,!0x0);}return this['_lastFrom']=_0x5c59c6,this['_lastTo']=_0x1c225d,this['_getState']();}['loadState'](_0x3c4d34){this['_reset'](),this['_lastFrom']=_0x3c4d34['fromVersion'],this['_lastTo']=_0x3c4d34['toVersion'];for(const _0x244bcc in _0x3c4d34['diffData']){const _0x29c503=_0x3c4d34['diffData'][_0x244bcc]['attachChange'],_0x3debe0=_0x2fd224(_0x3c4d34['diffData'][_0x244bcc]['attributesBefore'])||{},_0x55d88e=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x244bcc]['deletions']);_0x55d88e['rootName']=_0x244bcc,_0x55d88e['_isAttached']=!_0x29c503||!_0x29c503['isAttached'],_0x55d88e['isAttached']=()=>_0x55d88e['_isAttached'],this['_baseRoots']['set'](_0x244bcc,_0x55d88e),this['_baseRootsAttributes']['set'](_0x244bcc,_0x3debe0),_0x29c503&&this['_touchedRoots']['set'](_0x244bcc,_0x29c503);const _0x57128c=this['_makeIdsRoot'](_0x55d88e);this['_baseIdsRoots']['set'](_0x244bcc,_0x57128c);for(const [_0x3b40c6,_0x1d3032]of _0x55d88e['markers']){if(!_0x3b40c6['startsWith']('revision:'))continue;const _0x2f978f=_0x3b40c6['split'](':')[0x2];for(const _0x294e0e of _0x1d3032['getWalker']({'singleCharacters':!0x0})){const _0x2cd44b=this['_getVidAttributeName'](_0x294e0e),_0x487e60='elementEnd'==_0x294e0e['type']?_0x294e0e['previousPosition']['path']['slice'](0x0,-0x1):_0x294e0e['previousPosition']['path'],_0x1d280e=_0x57128c['getNodeByPath'](_0x487e60)['getAttribute'](_0x2cd44b);this['_touched']['set'](_0x1d280e,{'userId':_0x2f978f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x509b13=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x231d92=>!this['_touched']['has'](_0x231d92));let _0x3d3c51=0x0;const _0xd47304=new Map();for(const _0x4f2835 in _0x3c4d34['diffData']){const _0x5c68aa=_0x3c4d34['diffData'][_0x4f2835]['attachChange'],_0x59bb34=_0x2fd224(_0x3c4d34['diffData'][_0x4f2835]['attributesAfter'])||{},_0x5265f1=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x4f2835]['insertions']);_0x5265f1['rootName']=_0x4f2835,_0x5265f1['_isAttached']=!_0x5c68aa||_0x5c68aa['isAttached'],_0x5265f1['isAttached']=()=>_0x5265f1['_isAttached'],this['_diffRoots']['set'](_0x4f2835,_0x5265f1),this['_diffRootsAttributes']['set'](_0x4f2835,_0x59bb34);const _0xcde1d3=this['_makeIdsRoot'](_0x5265f1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f2835,_0xcde1d3),_0xd47304['set'](_0x4f2835,_0x5265f1['isAttached']()?_0x59bb34:{});for(const [_0x48053d,_0xcac702]of _0x5265f1['markers']){if(!_0x48053d['startsWith']('revision:'))continue;const _0x36a002=_0x48053d['split'](':')[0x2];for(const _0x1316fa of _0xcac702['getWalker']({'singleCharacters':!0x0})){const _0x458b2a=this['_getVidAttributeName'](_0x1316fa),_0x516d55=this['_revisionId']++,_0x1f4703='elementEnd'==_0x1316fa['type']?_0x1316fa['previousPosition']['path']['slice'](0x0,-0x1):_0x1316fa['previousPosition']['path'];_0xcde1d3['getNodeByPath'](_0x1f4703)['_setAttribute'](_0x458b2a,_0x516d55),this['_touched']['set'](_0x516d55,{'userId':_0x36a002});}}for(const _0x1762ec of this['editor']['model']['createRangeIn'](_0x5265f1)['getWalker']({'singleCharacters':!0x0})){const _0xf69a0f=this['_getVidAttributeName'](_0x1762ec),_0x53ec8a='elementEnd'==_0x1762ec['type']?_0x1762ec['previousPosition']['path']['slice'](0x0,-0x1):_0x1762ec['previousPosition']['path'],_0x518cc2=_0xcde1d3['getNodeByPath'](_0x53ec8a);_0x518cc2['getAttribute'](_0xf69a0f)>0x0||_0x518cc2['_setAttribute'](_0xf69a0f,_0x509b13[_0x3d3c51++]);}for(const [_0x588f2f,_0x13152d]of _0x5265f1['markers'])_0x588f2f['startsWith']('revision:')||this['_markers']['set'](_0x588f2f,_0x13152d);}const _0x59493f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x59493f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59493f,0x1));const _0x51f7a6=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x51f7a6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x51f7a6,0x1));const _0x541084=Array['from'](this['_diffRoots'])['map'](([_0x4f0f20,_0x3caf75])=>[_0x4f0f20,F(_0x3caf75)]);this['_saveMetaData'](this['_lastTo'],_0x541084,this['_markers'],_0xd47304);}['_makeModelFromViewString'](_0xf28ab){const _0x4274c5=JSON['parse'](_0xf28ab),_0x47e9df=this['editor']['editing']['view']['document'],_0x13d715=new _0x14c48c(_0x47e9df,_0x4274c5['map'](_0x29f2cf=>V(_0x29f2cf,this['editor'])));return this['editor']['data']['toModel'](_0x13d715);}['_saveMetaData'](_0x5e99d3,_0x60353b,_0x16c610,_0x346530){const _0x395d56=new Map(_0x60353b),_0x13acb9=new Map(_0x2fd224(_0x346530)),_0x1c9736=new Map();for(const [_0x3941fd,_0x13ed9c]of _0x16c610)_0x1c9736['set'](_0x3941fd,{'start':_0x13ed9c['start']['clone'](),'end':_0x13ed9c['end']['clone'](),'rootName':_0x13ed9c['root']['rootName']});this['_savedMetaData']['set'](_0x5e99d3,{'roots':_0x395d56,'markers':_0x1c9736,'rootsAttributes':_0x13acb9});}['_removeMetaData'](_0x59c2eb){this['_savedMetaData']['delete'](_0x59c2eb);}['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'](_0x5e2e35,_0x52b74c=null){let _0x5d3dbb=null;_0x5e2e35['is']('documentFragment')||(_0x5d3dbb=new ft(_0x5e2e35['name'],{'vid_start':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));const _0xd47d5d=[];for(const _0x44d30e of _0x5e2e35['getChildren']())if(_0x44d30e['is']('element')){_0xd47d5d['push'](this['_makeIdsRoot'](_0x44d30e,_0x52b74c));const _0xebb09=_0xd47d5d[_0xd47d5d['length']-0x1];null!==_0x52b74c&&(_0x52b74c=_0xebb09['is']('element','$text')?_0xebb09['getAttribute']('vid')+0x1:_0xebb09['getAttribute']('vid_end')+0x1);}else{for(let _0x3ec223=0x0;_0x3ec223<_0x44d30e['offsetSize'];_0x3ec223++)_0xd47d5d['push'](new ft('$text',{'vid':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));}if(_0x5e2e35['is']('documentFragment')){const _0x4cfa7f=B(_0x5e2e35['rootName']);return _0x4cfa7f['_insertChild'](0x0,_0xd47d5d),_0x4cfa7f;}return _0x5d3dbb['_setAttribute']('vid_end',null===_0x52b74c?this['_revisionId']++:_0x52b74c++),_0x5d3dbb['_insertChild'](0x0,_0xd47d5d),_0x5d3dbb;}['_calculateMetaData'](_0x1146af,_0x2ed3ae,_0x5e2dbf){this['_reset']();const {roots:_0x1c7578,markers:_0x304863,rootsAttributes:_0x2cf30a}=this['_savedMetaData']['get'](_0x1146af);this['_baseRoots']=new Map(_0x1c7578),this['_baseRootsAttributes']=new Map(_0x2fd224(_0x2cf30a));for(const [_0x565aef,_0x1bfb2c]of this['_baseRoots'])if('$graveyard'!==_0x565aef&&(this['_diffRoots']['set'](_0x565aef,F(_0x1bfb2c)),this['_diffRootsAttributes']=new Map(_0x2fd224(_0x2cf30a)),_0x5e2dbf)){const _0x5791b7=this['_revisionId'];this['_idsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c)),this['_baseIdsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c,_0x5791b7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5e2dbf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x208a87,_0x5bc6b7]of _0x304863){const _0x11d3b7=this['_baseRoots']['get'](_0x5bc6b7['rootName']),_0xe5e753=this['_diffRoots']['get'](_0x5bc6b7['rootName']),_0x465564=new vt(this['_fixPosition'](_0x5bc6b7['start'],_0x11d3b7),this['_fixPosition'](_0x5bc6b7['end'],_0x11d3b7)),_0x438031=this['_fixRange'](_0x465564,_0xe5e753);_0x11d3b7['markers']['set'](_0x208a87,_0x465564),this['_markers']['set'](_0x208a87,_0x438031);}this['_applyOperations'](_0x1146af,_0x2ed3ae,_0x5e2dbf);}['_applyOperations'](_0x5343ed,_0x48024a,_0x516931){for(const _0x1bae29 of this['source']['getOperations'](_0x5343ed,_0x48024a))this['_handleOperation'](_0x1bae29,_0x516931);for(const _0x44940e of this['_diffRoots']['values']())_0x44940e['markers']['clear']();for(const [_0x37b249,_0x103402]of this['_markers']){this['_diffRoots']['get'](_0x103402['root']['rootName'])['markers']['set'](_0x37b249,_0x103402['clone']());}const _0x4aaeb0=new Map(),_0x345fea=new Map();for(const [_0x316c91,_0x2e11e3]of this['_diffRoots'])_0x4aaeb0['set'](_0x316c91,F(_0x2e11e3)),_0x345fea['set'](_0x316c91,this['_diffRootsAttributes']['get'](_0x316c91));this['_saveMetaData'](_0x48024a,_0x4aaeb0,this['_markers'],_0x345fea);}['_getPreviousFrom'](_0x39d371){const _0x374f33=Array['from'](this['_savedMetaData']['keys']());_0x374f33['sort']((_0x13862e,_0xb1ea86)=>_0x13862e-_0xb1ea86),_0x374f33['reverse']();for(const _0x21e8a0 of _0x374f33)if(_0x21e8a0<_0x39d371)return _0x21e8a0;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18f541,_0x4f2a03){const _0x36339a=Array['from'](_0x4f2a03['markers'])['map'](([_0x4226ba,_0x4f9128])=>[_0x4226ba,this['_fixRange'](_0x4f9128,_0x18f541)]);_0x18f541['markers']=new Map(_0x36339a);}['_transformMarkers'](_0x3590b5){for(const _0x5c52bb of this['_markers']['values']()){const _0xd51cd7=_0x5c52bb['getTransformedByOperation'](_0x3590b5),_0x5b8c81=vt['_createFromRanges'](_0xd51cd7);_0x5c52bb['start']=_0x5b8c81['start'],_0x5c52bb['end']=_0x5b8c81['end'];}}['_handleOperation'](_0x2d9550,_0x315faf){if('addRoot'!=_0x2d9550['type']&&'detachRoot'!=_0x2d9550['type']){if('insert'==_0x2d9550['type']){const _0x40e066=_0x2d9550['position']['root']['rootName'];this['_diffRoots']['has'](_0x40e066)||(this['_diffRoots']['set'](_0x40e066,B(_0x40e066,!0x0)),this['_diffRootsAttributes']['set'](_0x40e066,{}),_0x315faf&&this['_idsRoots']['set'](_0x40e066,B(_0x40e066,!0x0)));}else{if('addRootAttribute'==_0x2d9550['type']||'removeRootAttribute'==_0x2d9550['type']||'changeRootAttribute'==_0x2d9550['type'])return void this['_handleRootAttributeOperation'](_0x2d9550);'marker'==_0x2d9550['type']&&this['_handleMarkerOperation'](_0x2d9550);}if('marker'!==_0x2d9550['type']){const _0x22a6e3=this['_cloneOperation'](_0x2d9550,this['_diffRoots']);_0x22a6e3['_execute'](),this['_transformMarkers'](_0x22a6e3);}if(_0x315faf)switch(_0x2d9550['type']){case'insert':this['_handleInsertOperation'](_0x2d9550);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d9550);break;case'merge':this['_handleMergeOperation'](_0x2d9550);break;case'split':this['_handleSplitOperation'](_0x2d9550);}}else this['_handleRootOperation'](_0x2d9550,_0x315faf);}['_cloneOperation'](_0x4418e5,_0x1a965e){const _0x74013f=_0x4418e5['clone']();return _0x74013f['_authorId']=_0x4418e5['_authorId'],this['_fixOperation'](_0x74013f,_0x1a965e),_0x74013f;}['_getBaseVids'](_0x1414c8){return _0x1414c8['map'](_0x475b04=>{const _0x1cfb67=this['_getVidAttributeName'](_0x475b04);return Number(_0x475b04['item']['getAttribute'](_0x1cfb67));});}['_generateTape'](_0x30c2c7,_0x4d9f2c){if(_0x30c2c7['is']('element','$text'))_0x4d9f2c['push']({'item':_0x30c2c7,'type':'text'});else{_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementStart'});for(const _0x30a28e of _0x30c2c7['getChildren']())this['_generateTape'](_0x30a28e,_0x4d9f2c);_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementEnd'});}return _0x4d9f2c;}['_getState'](){const _0x2a78ef=new Map(this['_touched']),_0x5229ba=new Map(_0x2a78ef),_0x5c1501=new Map(),_0x249acc={'insertions':{},'deletions':{}},_0x579460={'insertions':{},'deletions':{}},_0x296068=new Map(),_0x3c0617=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c0617['delete']('$graveyard');for(const _0x66c3a2 of _0x3c0617){const _0x3ed8b0=this['_diffRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),_0x4dff91=this['_baseRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1);_0x3ed8b0['isAttached']()||_0x4dff91['isAttached']()?(_0x249acc['insertions'][_0x66c3a2]=F(_0x3ed8b0),_0x249acc['deletions'][_0x66c3a2]=F(_0x4dff91),this['_copyMarkers'](_0x249acc['deletions'][_0x66c3a2],_0x4dff91),this['_copyMarkers'](_0x249acc['insertions'][_0x66c3a2],_0x3ed8b0),_0x579460['insertions'][_0x66c3a2]=this['_generateTape'](this['_idsRoots']['get'](_0x66c3a2),[]),_0x579460['deletions'][_0x66c3a2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),[])):_0x3c0617['delete'](_0x66c3a2);}for(const _0x56d13b of _0x3c0617){const _0x382fde=_0x579460['insertions'][_0x56d13b];for(const _0xe8758 of _0x382fde){const _0x4391f1=this['_getVidAttributeName'](_0xe8758),_0x4651b5=_0xe8758['item']['getAttribute'](_0x4391f1);_0x5229ba['delete'](_0x4651b5),_0x4651b5>=this['_startingRevisionId']&&_0x5c1501['set'](_0x4651b5,_0x2a78ef['get'](_0x4651b5));}}for(const _0x503379 of _0x3c0617){const _0xcc9d1f=_0x579460['insertions'][_0x503379],_0x385bcf=this['_getBaseVids'](_0x579460['deletions'][_0x503379]);let _0x467a1d=0x0;for(const _0x372264 of _0xcc9d1f){const _0x1d48b3=this['_getVidAttributeName'](_0x372264),_0x485064=_0x372264['item']['getAttribute'](_0x1d48b3);if(!_0x5c1501['has'](_0x485064)&&!_0x296068['has'](_0x485064)){if(_0x5229ba['has'](_0x485064))_0x467a1d++;else{if(_0x485064!=_0x385bcf[_0x467a1d]){const _0x494419=_0x2a78ef['get'](_0x485064)||_0x2a78ef['get'](_0x385bcf[_0x467a1d]);for(;_0x485064!=_0x385bcf[_0x467a1d];)_0x5229ba['has'](_0x385bcf[_0x467a1d])||(_0x296068['set'](_0x385bcf[_0x467a1d],_0x494419),_0x2a78ef['set'](_0x385bcf[_0x467a1d],_0x494419)),_0x467a1d++;}_0x467a1d++;}}}}for(const _0x338271 of _0x3c0617){const _0x268a8f=_0x579460['insertions'][_0x338271];for(const _0x125640 of _0x268a8f){const _0x5b14ca=this['_getVidAttributeName'](_0x125640),_0x4667c1=_0x125640['item']['getAttribute'](_0x5b14ca);if(_0x296068['has'](_0x4667c1)){const _0x4dd25c=_0x296068['get'](_0x4667c1);_0x5229ba['has'](_0x4667c1)||_0x5229ba['set'](_0x4667c1,{..._0x4dd25c}),_0x5c1501['set'](_0x4667c1,{..._0x4dd25c});}}}for(const _0x185fd4 of _0x5229ba['keys']())_0x185fd4>=this['_startingRevisionId']&&_0x5229ba['delete'](_0x185fd4);const _0x51a2c1=new Map();for(const _0x29141e of _0x3c0617){let _0x335485=_0x579460['insertions'][_0x29141e];for(const _0xc1f87d of _0x335485)if(_0xc1f87d['item']['is']('element','tableCell')){const _0x58539f=this['_getVidAttributeName'](_0xc1f87d),_0x121f9e=_0xc1f87d['item']['getAttribute'](_0x58539f);if(_0x5c1501['has'](_0x121f9e)){const _0x169384=_0xc1f87d['item']['parent']['parent']['getAttribute']('vid_start'),_0x537f76=_0x51a2c1['get'](_0x169384)||new Set();_0x537f76['add'](_0x5c1501['get'](_0x121f9e)['userId']),_0x51a2c1['set'](_0x169384,_0x537f76);}}_0x335485=_0x579460['deletions'][_0x29141e];for(const _0x69bfb4 of _0x335485)if(_0x69bfb4['item']['is']('element','tableCell')){const _0x4801b2=this['_getVidAttributeName'](_0x69bfb4),_0x495a81=_0x69bfb4['item']['getAttribute'](_0x4801b2);if(_0x5229ba['has'](_0x495a81)){const _0x254324=_0x69bfb4['item']['parent']['parent']['getAttribute']('vid_start'),_0x568e5c=_0x51a2c1['get'](_0x254324)||new Set();_0x568e5c['add'](_0x5229ba['get'](_0x495a81)['userId']),_0x51a2c1['set'](_0x254324,_0x568e5c);}}for(const _0x5df562 of _0x51a2c1['keys']())(_0x5c1501['has'](_0x5df562)||_0x5229ba['has'](_0x5df562))&&_0x51a2c1['delete'](_0x5df562);}for(const _0x56d74f of _0x3c0617){const _0x3ea6a8=_0x579460['insertions'][_0x56d74f];let _0x57195b=null,_0x95dd6=null;for(const _0x1f5ac3 of _0x3ea6a8){const _0x405d57=this['_getVidAttributeName'](_0x1f5ac3),_0x28fd42=_0x1f5ac3['item']['getAttribute'](_0x405d57),_0x1ac7cb=_0x51a2c1['get'](_0x28fd42);_0x1ac7cb&&'elementStart'==_0x1f5ac3['type']&&(_0x57195b=Array['from'](_0x1ac7cb)[0x0],_0x95dd6=_0x1f5ac3['item']['getAttribute']('vid_end')),_0x57195b&&(_0x5229ba['set'](_0x28fd42,{'userId':_0x57195b}),_0x5c1501['set'](_0x28fd42,{'userId':_0x57195b})),_0x28fd42==_0x95dd6&&(_0x57195b=null,_0x95dd6=null);}}const _0x2f9593={},_0x2c8f27=new Set();for(const _0x3fdcea of _0x3c0617){const _0x5dce4b=_0x249acc['deletions'][_0x3fdcea],_0x19432c=_0x249acc['insertions'][_0x3fdcea];for(const {userId:_0x5b4bb4}of this['_touchedMarkers']['values']())null!==_0x5b4bb4&&_0x2c8f27['add'](_0x5b4bb4);for(const {userId:_0x5974ca}of this['_touchedRoots']['values']())null!==_0x5974ca&&_0x2c8f27['add'](_0x5974ca);this['_markChanges'](_0x19432c,_0x579460['insertions'][_0x3fdcea],_0x5c1501,'insertion',_0x2c8f27),this['_markChanges'](_0x5dce4b,_0x579460['deletions'][_0x3fdcea],_0x5229ba,'deletion',_0x2c8f27),_0x2f9593[_0x3fdcea]={'insertions':this['_prepareViewToSave'](_0x19432c),'deletions':this['_prepareViewToSave'](_0x5dce4b),'attachChange':this['_touchedRoots']['get'](_0x3fdcea)||null,'attributesBefore':_0x2fd224(this['_baseRootsAttributes']['get'](_0x3fdcea))||{},'attributesAfter':_0x2fd224(this['_diffRootsAttributes']['get'](_0x3fdcea))};}return{'diffData':_0x2f9593,'authorsIds':Array['from'](_0x2c8f27)};}['_processRootBeforeSave'](_0x32384d){for(const [,_0x48c11d]of _0x32384d['markers']){const _0x51ac09=_0x48c11d['start']['getAncestors']()['filter'](_0x2c9b4f=>'tableCell'==_0x2c9b4f['name']);for(const _0x7f45eb of _0x51ac09)0x1==_0x7f45eb['childCount']&&_0x7f45eb['getChild'](0x0)['is']('element','paragraph')&&_0x7f45eb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5401fd){this['_processRootBeforeSave'](_0x5401fd);const _0x32ba1d=this['editor']['data']['toView'](_0x5401fd,{}),_0x3a2f97=Array['from'](_0x32ba1d['getChildren']())['map'](_0x3ad512=>this['_getViewJson'](_0x3ad512));return JSON['stringify'](_0x3a2f97);}['_getViewJson'](_0x37692d){if(_0x37692d['is']('$text'))return _0x37692d['data'];{const _0x2039f2=_0x37692d;return{'type':Object['keys'](C)['find'](_0x5486a4=>_0x37692d instanceof C[_0x5486a4]),'name':_0x2039f2['name'],'attributes':Array['from'](_0x2039f2['getAttributes']()),'children':Array['from'](_0x2039f2['getChildren']())['map'](_0x48dcc1=>this['_getViewJson'](_0x48dcc1))};}}['_markChanges'](_0x42c40d,_0x1ab684,_0x4b0483,_0x140de0,_0x1f567f){let _0x304dde=null,_0x5abda9=null,_0x45c18e=0x0;const _0x1cdd83=this['editor']['model'];for(let _0x2002b5=0x0;_0x2002b5<_0x1ab684['length'];_0x2002b5++){const _0x338125=this['_getVidAttributeName'](_0x1ab684[_0x2002b5]),_0x325fc9=_0x1ab684[_0x2002b5]['item']['getAttribute'](_0x338125),_0x5e5d34=_0x4b0483['get'](_0x325fc9),_0x591450=_0x2002b5==_0x1ab684['length']-0x1;(!_0x304dde&&_0x5e5d34&&(_0x304dde=_0x5e5d34,_0x5abda9=_0x1ab684[_0x2002b5]),_0x304dde&&(!_0x5e5d34||_0x5e5d34['userId']!=_0x304dde['userId']))&&(_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),J(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83)),_0x304dde=_0x5e5d34||null,_0x5abda9=_0x5e5d34?_0x1ab684[_0x2002b5]:null),_0x304dde&&_0x591450&&_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),q(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83));}function _0xf9632d(_0x568a3c,_0x1c54c3,_0x3f21bf){const _0x1b0449=_0x304dde['userId'],_0x172a14='revision:'+_0x140de0+':'+_0x1b0449+':'+_0x45c18e++,_0x3e6101=_0x1cdd83['createRange'](_0x1c54c3,_0x3f21bf);_0x42c40d['markers']['set'](_0x172a14,_0x3e6101),null!==_0x1b0449&&_0x1f567f['add'](_0x1b0449);}}['_getVidAttributeName'](_0x484732){switch(_0x484732['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1834fb,_0x3dcef8){_0x1834fb['baseVersion']=null;for(const _0x2de2e7 in _0x1834fb){const _0x289945=_0x1834fb[_0x2de2e7];if(_0x289945 instanceof gt){const _0x33cad6=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixPosition'](_0x289945,_0x33cad6);}if(_0x289945 instanceof vt){const _0x4f42cc=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixRange'](_0x289945,_0x4f42cc);}'root'===_0x2de2e7&&(_0x1834fb['root']=_0x3dcef8['get'](_0x1834fb['root']['rootName']));}}['_fixRange'](_0x2e33f2,_0x47b0c4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2e33f2['start'],_0x47b0c4),this['_fixPosition'](_0x2e33f2['end'],_0x47b0c4));}['_fixPosition'](_0x12e5d8,_0x221d6f){return this['editor']['model']['createPositionFromPath'](_0x221d6f,_0x12e5d8['path'],_0x12e5d8['stickiness']);}['_handleInsertOperation'](_0x2c9941){const _0x2e9f08=this['_idsRoots']['get'](_0x2c9941['position']['root']['rootName']),_0xcca516=this['_fixPosition'](_0x2c9941['position'],_0x2e9f08),_0x6ce5de=null===_0x2c9941['_authorId']?null:_0x2c9941['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22120d=_0xcca516['parent'],_0x45dd2c=this['_revisionId'],_0x5f2333=[];for(const _0x525eea of _0x2c9941['nodes'])if(_0x525eea['is']('element'))_0x5f2333['push'](this['_makeIdsRoot'](_0x525eea));else{for(let _0x5ba724=0x0;_0x5ba724<_0x525eea['offsetSize'];_0x5ba724++)_0x5f2333['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3ddb9e=this['_revisionId'];for(let _0x69c146=_0x45dd2c;_0x69c146<_0x3ddb9e;_0x69c146++)this['_touched']['set'](_0x69c146,{'userId':_0x6ce5de});_0x22120d['_insertChild'](_0xcca516['offset'],_0x5f2333);}['_handleMoveOperation'](_0x2901e7){(_0x2901e7=this['_cloneOperation'](_0x2901e7,this['_idsRoots']))['_execute']();const _0x510e15=null===_0x2901e7['_authorId']?null:_0x2901e7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b73c3=_0x2901e7['getMovedRangeStart'](),_0x922a11=_0x2b73c3['parent'],_0x1fac0d=_0x2b73c3['offset'];!function _0x573f04(_0x1d0f5c,_0x8f29f0,_0x48e85f,_0x3012c5){for(let _0xb34b45=_0x48e85f;_0xb34b45<_0x3012c5;_0xb34b45++){const _0x163e3c=_0x8f29f0['getChild'](_0xb34b45);_0x163e3c['is']('element','$text')?_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid'),{'userId':_0x510e15}):(_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_start'),{'userId':_0x510e15}),_0x573f04(_0x1d0f5c,_0x163e3c,0x0,_0x163e3c['childCount']),_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_end'),{'userId':_0x510e15}));}}(this['_touched'],_0x922a11,_0x1fac0d,_0x1fac0d+_0x2901e7['howMany']);}['_handleMergeOperation'](_0x27cf8f){const _0x4b548c=null===(_0x27cf8f=this['_cloneOperation'](_0x27cf8f,this['_idsRoots']))['_authorId']?null:_0x27cf8f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44da2f=_0x27cf8f['targetPosition']['parent'],_0x2f0a04=_0x27cf8f['sourcePosition']['parent'],_0x1576a9=_0x44da2f['getAttribute']('vid_end'),_0x28d97b=_0x2f0a04['getAttribute']('vid_start');_0x44da2f['_setAttribute']('vid_end',_0x2f0a04['getAttribute']('vid_end')),_0x2f0a04['_setAttribute']('vid_end',_0x1576a9),this['_touched']['set'](_0x28d97b,{'userId':_0x4b548c}),this['_touched']['set'](_0x1576a9,{'userId':_0x4b548c}),_0x27cf8f['_execute']();}['_handleSplitOperation'](_0x3c4b31){const _0x43740f=null===(_0x3c4b31=this['_cloneOperation'](_0x3c4b31,this['_idsRoots']))['_authorId']?null:_0x3c4b31['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10a7dd=_0x3c4b31['graveyardPosition'],_0x563996=_0x3c4b31['splitPosition']['parent'];_0x3c4b31['_execute']();const _0x316b59=_0x563996['getAttribute']('vid_end'),_0x34e57e=_0x3c4b31['insertionPosition']['nodeAfter'];if(_0x10a7dd){const _0x4718b4=_0x34e57e['getAttribute']('vid_end'),_0x382f7e=_0x563996['getAttribute']('vid_end');_0x563996['_setAttribute']('vid_end',_0x4718b4),_0x34e57e['_setAttribute']('vid_end',_0x382f7e),this['_touched']['set'](_0x563996['getAttribute']('vid_end'),{'userId':_0x43740f}),this['_touched']['set'](_0x34e57e['getAttribute']('vid_start'),{'userId':_0x43740f});}else{const _0x11b9e5=this['_revisionId']++,_0x23c7cf=this['_revisionId']++;_0x563996['_setAttribute']('vid_end',_0x11b9e5),_0x34e57e['_setAttribute']('vid_start',_0x23c7cf),_0x34e57e['_setAttribute']('vid_end',_0x316b59),this['_touched']['set'](_0x11b9e5,{'userId':_0x43740f}),this['_touched']['set'](_0x23c7cf,{'userId':_0x43740f});}}['_handleMarkerOperation'](_0x1a70b7){if(!_0x1a70b7['affectsData'])return;const _0x1ad79c=(_0x1a70b7=this['_cloneOperation'](_0x1a70b7,this['_diffRoots']))['oldRange']?_0x1a70b7['oldRange']['root']:null,_0x97a73d=_0x1a70b7['newRange']?_0x1a70b7['newRange']['root']:null;_0x1ad79c&&this['_markers']['delete'](_0x1a70b7['name']),_0x97a73d&&this['_markers']['set'](_0x1a70b7['name'],_0x1a70b7['newRange']['clone']());const _0x3b4b2b=null===_0x1a70b7['_authorId']?null:_0x1a70b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x543498=_0x1a70b7['name'];if(!this['_touchedMarkers']['has'](_0x543498))return void this['_touchedMarkers']['set'](_0x543498,{'range':_0x1a70b7['oldRange'],'userId':_0x3b4b2b});const _0x4e8f29=this['_touchedMarkers']['get'](_0x543498),_0x24413c=_0x4e8f29['range'],_0x4682b9=_0x1a70b7['newRange'];null==_0x24413c&&null==_0x4682b9||_0x24413c&&_0x4682b9&&_0x24413c['isEqual'](_0x4682b9)?this['_touchedMarkers']['delete'](_0x1a70b7['name']):_0x4e8f29['userId']=_0x3b4b2b;}['_handleRootOperation'](_0x46a26f,_0x55ccb0){this['_diffRoots']['has'](_0x46a26f['rootName'])?this['_diffRoots']['get'](_0x46a26f['rootName'])['_isAttached']=_0x46a26f['isAdd']:(this['_diffRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x46a26f['rootName'],{}),_0x55ccb0&&this['_idsRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)));const _0x210d57=null===_0x46a26f['_authorId']?null:_0x46a26f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3123a7=this['_touchedRoots']['get'](_0x46a26f['rootName']);_0x3123a7&&_0x3123a7['userId']===_0x210d57?this['_touchedRoots']['delete'](_0x46a26f['rootName']):this['_touchedRoots']['set'](_0x46a26f['rootName'],{'userId':_0x210d57,'isAttached':_0x46a26f['isAdd']});}['_handleRootAttributeOperation'](_0x1384c7){const _0x31863b=this['_diffRootsAttributes']['get'](_0x1384c7['root']['rootName']);null===_0x1384c7['newValue']?delete _0x31863b[_0x1384c7['key']]:_0x31863b[_0x1384c7['key']]=_0x1384c7['newValue'];}}function F(_0x62b126){const _0x457ae7=B(_0x62b126['rootName'],_0x62b126['isAttached']());for(const _0x1ed98a of _0x62b126['getChildren']()){const _0x59d49c=_0x1ed98a['_clone'](!0x0);_0x457ae7['_appendChild'](_0x59d49c);}return _0x457ae7;}function B(_0x3f01dc,_0x40bede=!0x0){const _0x1fefd8=new mt();return _0x1fefd8['rootName']=_0x3f01dc,_0x1fefd8['_isAttached']=_0x40bede,_0x1fefd8['isAttached']=()=>_0x1fefd8['_isAttached'],_0x1fefd8;}function J(_0x276417,_0x11321f,_0x27d1c6){const _0x192059='elementEnd'==_0x276417['type']?_0x27d1c6['createPositionAt'](_0x276417['item'],'end'):_0x27d1c6['createPositionBefore'](_0x276417['item']);return _0x27d1c6['createPositionFromPath'](_0x11321f,_0x192059['path'],_0x192059['stickiness']);}function q(_0x394d01,_0x37b164,_0x57d14d){const _0x3e7eea='elementStart'==_0x394d01['type']?_0x57d14d['createPositionAt'](_0x394d01['item'],0x0):_0x57d14d['createPositionAfter'](_0x394d01['item']);return _0x57d14d['createPositionFromPath'](_0x37b164,_0x3e7eea['path'],_0x3e7eea['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1150cc,_0x1bc255){super(_0x1150cc),this['focusTracker']=new _0x4d1095(),this['keystrokes']=new _0xd9c6cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1bc255),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25f3d0(this);}['render'](){super['render'](),_0x1faf24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32a994=_0x2c430a=>_0x2c430a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32a994),this['keystrokes']['set']('arrowleft',_0x32a994),this['keystrokes']['set']('arrowup',_0x32a994),this['keystrokes']['set']('arrowdown',_0x32a994);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3dff1c){this['revisionNameInputView']['fieldView']['element']['value']=_0x3dff1c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1e85fb){const _0x21297e=new _0x30bc25(this['locale'],_0x41e485),_0x219bb8=_0x21297e['fieldView'];_0x219bb8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x364868=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1e85fb&&(_0x364868+='\x20('+R(this['locale'],'optional')+')'),(_0x21297e['label']=_0x364868,_0x219bb8['on']('input',()=>{this['revisionNameInputValue']=_0x219bb8['element']['value']['trim']();}),_0x21297e);}}class u extends _0x5025c2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3f8d6c=this['editor'],_0x58235e=_0x3f8d6c['plugins']['get']('RevisionTracker');_0x3f8d6c['ui']['componentFactory']['add']('revisionHistory',_0x98b13d=>{const _0x1236e1=_0x2abbe3(_0x98b13d),_0x240848=_0x1236e1['panelView']['children'],_0x381ad8=new _0x1744fc(_0x98b13d),_0x558e00=new _0x1bf823(_0x98b13d),_0x2fa097=new te(_0x98b13d),_0x38afd6=new _0x1bf823(_0x98b13d),_0x204646=new te(_0x98b13d);return _0x1236e1['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x5d8f6c,_0x29e4a3,_0x13b5a7)=>_0x5d8f6c&&_0x29e4a3&&!_0x13b5a7),_0x1236e1['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x98b13d,'Revision\x20history'),'tooltip':!0x0}),_0x2fa097['set']({'label':R(_0x98b13d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2fa097['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x2615d4,_0x246fb4,_0x515fcf)=>_0x2615d4&&_0x246fb4&&!_0x515fcf),_0x2fa097['on']('execute',()=>this['_showDialog']()),_0x204646['set']({'label':R(_0x98b13d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x204646['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x3f8d6c,'isReadOnly',(_0x4ec913,_0x4fca65)=>_0x4ec913&&!_0x4fca65),_0x204646['on']('execute',()=>{_0x3f8d6c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1236e1['isOpen']=!0x1,_0x3f8d6c['editing']['view']['focus']();}),_0x558e00['children']['add'](_0x2fa097),_0x38afd6['children']['add'](_0x204646),_0x381ad8['role']='menu',_0x381ad8['items']['addMany']([_0x558e00,_0x38afd6]),_0x240848['add'](_0x381ad8),_0x1236e1;}),_0x3f8d6c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b7d29=this['editor'],_0x72eaa0=_0x5b7d29['locale'],_0x51e621=new _0x50599e(_0x72eaa0),_0x303b53=new _0x3c8172(_0x72eaa0);_0x51e621['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x72eaa0,'Revision\x20history')});const _0x1a6dc3=new _0x172e45(_0x72eaa0,_0x51e621),_0x157dfe=new _0x5900b2(_0x72eaa0);_0x157dfe['set']({'label':R(_0x72eaa0,'Save\x20current\x20revision')}),_0x157dfe['delegate']('execute')['to'](_0x51e621),_0x157dfe['on']('execute',()=>{this['_showDialog']();}),_0x1a6dc3['children']['add'](_0x157dfe),_0x303b53['items']['add'](_0x1a6dc3);const _0x175072=new _0x172e45(_0x72eaa0,_0x51e621),_0x1e8af3=new _0x5900b2(_0x72eaa0);return _0x1e8af3['set']({'label':R(_0x72eaa0,'Open\x20revision\x20history')}),_0x1e8af3['delegate']('execute')['to'](_0x51e621),_0x1e8af3['on']('execute',()=>{_0x5b7d29['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x175072['children']['add'](_0x1e8af3),_0x303b53['items']['add'](_0x175072),_0x51e621['panelView']['children']['add'](_0x303b53),_0x51e621;}['_showDialog'](){const _0x43bb30=this['editor'],_0x3906c1=_0x43bb30['locale'],_0x34cc93=_0x43bb30['plugins']['get']('Dialog'),_0x344530=_0x43bb30['plugins']['get']('RevisionTracker');function _0x31ff29(_0x2be39d){_0x43bb30['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2be39d['revisionName']?_0x2be39d['revisionNameInputView']['errorText']=R(_0x3906c1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x43bb30['plugins']['get'](l)['saveRevision']({'name':_0x2be39d['revisionName']}),_0x34cc93['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x31ff29(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x34cc93['show']({'id':'revisionSave','title':R(_0x3906c1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x43bb30['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x34cc93['hide']()},{'label':R(_0x43bb30['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5ce02c){_0x5ce02c['bind']('isEnabled')['to'](_0x344530,'isReady',_0x344530,'isEnabled',_0x43bb30,'isReadOnly',(_0x36fce9,_0x330b98,_0x487e5c)=>_0x36fce9&&_0x330b98&&!_0x487e5c);},'onExecute':()=>_0x31ff29(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2bd513=this['editor'],_0x16670b=_0x2bd513['locale'];this['_saveRevisionFormView']=new hs(_0x16670b,_0x2bd513['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x22af58,_0x40efc){super(_0x22af58),this['_model']=_0x40efc,this['changeId']=_0x40efc['id'];const _0x3f502c=this['bindTemplate'],_0x3efe3e=R(_0x22af58,_0x40efc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x40efc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x40efc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3f502c['to']('type',_0x43fae4=>'ck-revision-change__'+_0x43fae4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3efe3e}]},{'text':'\x20'+_0x40efc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x429bfb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x382cf9){super(),this['id']=_0x382cf9['id']||_0x4fb206(),this['author']=_0x382cf9['author'],this['type']=_0x382cf9['type'],this['data']=_0x382cf9['data']||{},this['rootName']=_0x382cf9['rootName'],this['set']('createdAt',_0x382cf9['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(_0x2b629a,_0x5d1d8e){this['newRevisionId']=_0x2b629a,this['oldRevisionId']=_0x5d1d8e,this['changes']=new _0x35ddfb();}['_setChanges'](_0x5e2ea2){for(const _0x1e84ea of _0x5e2ea2)this['changes']['add'](_0x1e84ea);}}const Z={'c':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class d extends _0x5025c2{['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[_0x537e60,_0x4ab179,j];}constructor(_0x29c1cb){super(_0x29c1cb),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',(_0x1f4932,_0x3d2bdf,_0x2ed482)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fe825=>{for(const _0xf808f3 of this['editor']['editing']['view']['document']['roots'])_0x2ed482?_0x3fe825['removeClass']('ck-editor__editable__overlay',_0xf808f3):_0x3fe825['addClass']('ck-editor__editable__overlay',_0xf808f3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x481fc7=>null!==_0x481fc7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x405f91,_0x25bfb6,_0x2cfd52)=>_0x405f91&&_0x2cfd52?_0x25bfb6['changes']['getIndex'](_0x2cfd52):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x266a3d,_0x4e3767)=>_0x266a3d?_0x4e3767['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ab179);}['init'](){const _0x59c562=this['editor'],_0x467c3f=new yt(_0x59c562,{'direction':'backward'}),_0x520e29=new yt(_0x59c562,{'direction':'forward'});(_0x59c562['commands']['add']('showPreviousChange',_0x467c3f),_0x59c562['commands']['add']('showNextChange',_0x520e29),_0x59c562['commands']['add']('restoreRevision',new _t(_0x59c562)),this['on']('change:numberOfChanges',()=>{_0x467c3f['refresh'](),_0x520e29['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x59c562['enableReadOnlyMode']('revision-viewer'),_0x59c562['plugins']['has']('WidgetToolbarRepository'))&&_0x59c562['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3c6263){await this['loadRevisionData'](_0x3c6263);const _0x1e46ce={};for(const _0x2b4256 in _0x3c6263['diffData']){if(_0x3c6263['diffData'][_0x2b4256]['attachChange']&&!_0x3c6263['diffData'][_0x2b4256]['attachChange']['isAttached'])continue;const _0x243bc7=this['_removeRevisionMarkers'](JSON['parse'](_0x3c6263['diffData'][_0x2b4256]['insertions'])),_0x3a7177=this['editor']['editing']['view']['document'],_0x428a54=new _0x14c48c(_0x3a7177,_0x243bc7['map'](_0x599337=>this['_getViewObj'](_0x599337)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1e46ce[_0x2b4256]=this['editor']['data']['processor']['toData'](_0x428a54),this['editor']['data']['processor']['useFillerType']('default');}return _0x1e46ce;}async['getRevisionRootsAttributes'](_0x12fdcb){await this['loadRevisionData'](_0x12fdcb);const _0x10f865={};for(const _0x175c9c in _0x12fdcb['diffData'])_0x12fdcb['diffData'][_0x175c9c]['attachChange']&&!_0x12fdcb['diffData'][_0x175c9c]['attachChange']['isAttached']||(_0x10f865[_0x175c9c]=_0x12fdcb['diffData'][_0x175c9c]['attributesAfter']||{});return _0x10f865;}['_removeRevisionMarkers'](_0x287eef){return(_0x287eef=_0x287eef['filter'](_0x9ddcea=>!_0x9ddcea['name']||'revision-start'!==_0x9ddcea['name']&&'revision-end'!==_0x9ddcea['name']))['forEach'](_0x216105=>{'string'!=typeof _0x216105&&(_0x216105['children']=this['_removeRevisionMarkers'](_0x216105['children']),_0x216105['attributes']=_0x216105['attributes']['filter'](_0x294182=>!_0x294182[0x0]['startsWith']('data-revision-')));}),_0x287eef;}async['compare'](_0x1d4595,_0x27725d,_0x544741=!0x1){if(!this['isEnabled'])return;const _0x5bcd02=this['diff'],_0x49aaaf=this['repository'],_0x11b46e='string'==typeof _0x1d4595?_0x49aaaf['getRevision'](_0x1d4595):_0x1d4595,_0x47c6e6='string'==typeof _0x27725d?_0x49aaaf['getRevision'](_0x27725d):_0x27725d,_0x5e979c=_0x11b46e['id'],_0x5d25da=_0x47c6e6?_0x47c6e6['id']:null;if(!_0x544741&&this['diff']&&this['diff']['newRevisionId']===_0x5e979c&&this['diff']['oldRevisionId']===_0x5d25da)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5e979c,_0x5d25da);const _0x340266=this['_getRevisionsRange'](_0x11b46e,_0x47c6e6,!0x0)['map'](_0x3a3806=>this['loadRevisionData'](_0x3a3806));return _0x340266['push'](new Promise(_0x95a7c1=>{setTimeout(_0x95a7c1,0x14);})),Promise['all'](_0x340266)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x230002=this['_getDiff'](_0x5e979c,_0x5d25da);for(const _0x50bfb1 of _0x230002['changes'])this['_changeIdToChange']['set'](_0x50bfb1['id'],_0x50bfb1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfd7ee3=>{for(const _0x580ddc of this['editor']['model']['document']['getRootNames']())_0xfd7ee3['detachRoot'](_0x580ddc);for(const _0x548ea3 of Object['keys'](_0x230002['model'])){const _0xab51d0=_0xfd7ee3['addRoot'](_0x548ea3);for(const _0x1e1441 of Object['keys'](_0x230002['attributes'][_0x548ea3]))_0xfd7ee3['setAttribute'](_0x1e1441,_0x230002['attributes'][_0x548ea3][_0x1e1441],_0xab51d0);_0xfd7ee3['insert'](_0x230002['model'][_0x548ea3],_0xab51d0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x230002['changes'])),this['isReady']=!0x0;})['catch'](_0x1d8280=>{console['error'](_0x1d8280),this['_cleanUp'](),_0x5bcd02&&(this['diff']=_0x5bcd02),this['isReady']=!0x0;});}['addRevisionData'](_0x30b3f2,_0x522ed1){const _0x382572=this['repository']['createRevision'](_0x30b3f2);return _0x382572['on']('_update',(_0x2c743c,_0x385660,_0x5d8392)=>_0x522ed1(_0x385660,_0x5d8392,_0x382572)),this['repository']['addRevision'](_0x382572),_0x382572;}['loadRevisionData'](_0xfe0cfe){if(!_0xfe0cfe||_0xfe0cfe['diffData'])return Promise['resolve']();{const _0x2d2841=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2d2841,'revisionId':_0xfe0cfe['id']})['then'](_0x31942e=>{_0xfe0cfe['_update']({'diffData':_0x31942e['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},_0x4de7b1=>{for(const _0x4a1035 of this['editor']['model']['document']['getRootNames']())_0x4de7b1['detachRoot'](_0x4a1035);});}['_sortAndFilterDiffChanges'](_0x133895){const _0x211091=[],_0x478402=new Map();for(const _0x51e188 of this['editor']['model']['document']['getRootNames']()){const _0x12ce34=this['editor']['editing']['view']['getDomRoot'](_0x51e188);if(!_0x12ce34)continue;const _0x935e0a=_0x12ce34['getClientRects']()['item'](0x0);_0x935e0a&&(_0x211091['push'](_0x51e188),_0x478402['set'](_0x51e188,_0x935e0a));}return _0x211091['sort']((_0x249b62,_0x5246f4)=>{const _0x52f5c2=_0x478402['get'](_0x249b62),_0x5b20ea=_0x478402['get'](_0x5246f4);return _0x52f5c2['y']-_0x5b20ea['y']||_0x52f5c2['x']-_0x5b20ea['x'];}),(_0x133895=_0x133895['filter'](_0x1c3d3c=>_0x211091['includes'](_0x1c3d3c['rootName'])))['sort']((_0x4c4214,_0x39bd1c)=>_0x211091['indexOf'](_0x4c4214['rootName'])-_0x211091['indexOf'](_0x39bd1c['rootName'])),_0x133895;}['_makeTape'](_0x26d6fa){const _0x2cb1dd=Array['from'](_0x26d6fa['markers'])['filter'](([_0x4f9c8b,_0x1fc2b7])=>_0x4f9c8b['startsWith']('revision:')&&!_0x1fc2b7['isCollapsed']),_0x1c4291=Array['from'](this['editor']['model']['createRangeIn'](_0x26d6fa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cb1dd['length'])for(const _0x333f13 of _0x1c4291){const [_0x5185b9,_0x37720c]=_0x2cb1dd[0x0],[,_0xc62f9d,_0x3c6c77]=_0x5185b9['split'](':');if(_0x37720c['end']['isEqual'](_0x333f13['nextPosition'])&&_0x2cb1dd['shift'](),(_0x333f13['previousPosition']['isEqual'](_0x37720c['start'])||_0x333f13['previousPosition']['isAfter'](_0x37720c['start']))&&('insertion'==_0xc62f9d?_0x333f13['isAdded']={'userId':_0x3c6c77}:'deletion'==_0xc62f9d&&(_0x333f13['isRemoved']={'userId':_0x3c6c77})),0x0==_0x2cb1dd['length'])break;}return _0x1c4291;}['_refreshStartEndIndex'](_0x4317bb){const _0x56a5a1=new Map();for(let _0x2a2b11=0x0;_0x2a2b11<_0x4317bb['length'];_0x2a2b11++)'text'===_0x4317bb[_0x2a2b11]['type']?(_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11,_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11):('elementStart'===_0x4317bb[_0x2a2b11]['type']?_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11:'elementEnd'===_0x4317bb[_0x2a2b11]['type']&&(_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11),_0x56a5a1['set'](_0x4317bb[_0x2a2b11]['id'],_0x2a2b11));for(const _0x33cd7e of _0x56a5a1['values']())'elementStart'===_0x4317bb[_0x33cd7e]['type']?_0x4317bb[_0x33cd7e]['item']['endIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']):'elementEnd'===_0x4317bb[_0x33cd7e]['type']&&(_0x4317bb[_0x33cd7e]['item']['startIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']));}['_processTape'](_0x859eb6){for(let _0x3c1350=0x0;_0x3c1350<_0x859eb6['length'];_0x3c1350++){if('elementStart'===_0x859eb6[_0x3c1350]['type'])_0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350;else{if('elementEnd'===_0x859eb6[_0x3c1350]['type']){_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350;const _0x1ebfc7=_0x859eb6[_0x3c1350]['item']['startIndex'];_0x859eb6[_0x1ebfc7]['pairId']=_0x859eb6[_0x3c1350]['id'],_0x859eb6[_0x3c1350]['pairId']=_0x859eb6[_0x1ebfc7]['id'];}else _0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['pairId']=null;}_0x859eb6[_0x3c1350]['markersStart']||(_0x859eb6[_0x3c1350]['markersStart']=[],_0x859eb6[_0x3c1350]['markersEnd']=[]);}}['_markInsertions'](_0x23341a,_0x537be7){const _0x3b8d30=_0x23341a['filter'](_0x289e45=>!_0x289e45['isAdded']);for(let _0x24d0f9=0x0;_0x24d0f9<_0x537be7['length'];_0x24d0f9++)_0x537be7[_0x24d0f9]['isAdded']&&(_0x3b8d30[_0x24d0f9]['isAdded']=_0x537be7[_0x24d0f9]['isAdded']);}['_makeModelFromViewString'](_0x2ddeb0){const _0x5c11ad=JSON['parse'](_0x2ddeb0),_0x255057=this['editor']['editing']['view']['document'],_0x4c59c8=new _0x14c48c(_0x255057,_0x5c11ad['map'](_0x3a0abc=>this['_getViewObj'](_0x3a0abc)));return this['editor']['data']['toModel'](_0x4c59c8);}['_getViewObj'](_0xa55afd){const _0x3e97bd=this['editor']['editing']['view']['document'];if('string'==typeof _0xa55afd)return new _0x4dec75(_0x3e97bd,_0xa55afd);{const _0x15ce7c=_0xa55afd['children']['map'](_0x52c567=>this['_getViewObj'](_0x52c567));return new(Z[_0xa55afd['type']]||_0x195c96)(_0x3e97bd,_0xa55afd['name'],_0xa55afd['attributes'],_0x15ce7c);}}['_getDiff'](_0xa1683d,_0xb07923=null){const _0x43f857=this['repository']['getRevision'](_0xa1683d),_0x3a89ee=_0xb07923?this['repository']['getRevision'](_0xb07923):null,_0x16f921=this['_getRevisionsRange'](_0x43f857,_0x3a89ee),_0x5963c5=_0x16f921[_0x16f921['length']-0x1],_0x4f1252=new Map(),_0xd5778b={'model':{},'attributes':{},'changes':[]},_0x225be8=new Set(),_0x4043c7=new Map();for(let _0x290a7a=_0x16f921['length']-0x1;_0x290a7a>=0x0;_0x290a7a--){const _0x11a816=_0x16f921[_0x290a7a];for(const _0x5795c2 of Object['keys'](_0x11a816['diffData']))if(_0x11a816['diffData'][_0x5795c2]['attachChange']){const _0x90a160=_0x11a816['diffData'][_0x5795c2]['attachChange'];_0x90a160['isAttached']?(_0x225be8['add'](_0x5795c2),_0x4043c7['has'](_0x5795c2)&&_0x4043c7['get'](_0x5795c2)['userId']==_0x90a160['userId']?_0x4043c7['delete'](_0x5795c2):_0x4043c7['set'](_0x5795c2,_0x90a160)):_0x4043c7['has'](_0x5795c2)?(_0x225be8['delete'](_0x5795c2),_0x4043c7['delete'](_0x5795c2)):(_0x225be8['add'](_0x5795c2),_0x4043c7['set'](_0x5795c2,_0x90a160));}else _0x225be8['add'](_0x5795c2);}for(const _0x169cd7 of _0x225be8){const _0x5f148b=_0x4043c7['has'](_0x169cd7)&&!_0x4043c7['get'](_0x169cd7)['isAttached'];let _0x28a2d0=_0x5f148b?_0x16f921['length']-0x1:0x0;const _0x2d73e9=_0x5f148b?-0x1:0x1;for(;_0x16f921[_0x28a2d0];){const _0x1157ca=_0x16f921[_0x28a2d0];if(_0x1157ca['diffData'][_0x169cd7]){const _0xff9982=_0x5f148b?_0x1157ca['diffData'][_0x169cd7]['attributesBefore']:_0x1157ca['diffData'][_0x169cd7]['attributesAfter'];_0xd5778b['attributes'][_0x169cd7]=_0xff9982?_0x2fd224(_0xff9982):{};break;}_0x28a2d0+=_0x2d73e9;}}for(const _0x399261 of _0x16f921){_0x399261['model']={};for(const _0x109d99 of _0x399261['authors'])_0x4f1252['set'](_0x109d99['id'],_0x109d99);for(const _0x1bb1ed of _0x225be8){const _0x4f2a25=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['insertions']:'[]',_0x484354=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['deletions']:'[]';_0x399261['model'][_0x1bb1ed]={'insertions':this['_makeModelFromViewString'](_0x4f2a25),'deletions':this['_makeModelFromViewString'](_0x484354)};}}for(const _0x33f34e of _0x225be8){let _0x1adcb3=null,_0x2d3d31=0x0;const _0x392e75=new Map(Array['from'](_0x43f857['model'][_0x33f34e]['insertions']['markers'])['filter'](([_0x1c9b7e])=>!_0x1c9b7e['startsWith']('revision:')));let _0x102795=0x0;for(const _0x5e65ce of _0x16f921){const _0x59a18f=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['insertions']);_0x5e65ce==_0x43f857?(_0x1adcb3=_0x59a18f,_0x2d3d31=_0x1adcb3['length'],_0x1adcb3['forEach'](_0x521b2b=>{_0x521b2b['id']=_0x102795++;}),this['_processTape'](_0x1adcb3)):this['_markInsertions'](_0x1adcb3,_0x59a18f);const _0x51a7f8=_0x1adcb3['filter'](_0x2c87e0=>!_0x2c87e0['isAdded'])['map'](_0x2a5965=>_0x2a5965['id']);let _0x34a71b=0x0;const _0x537579=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['deletions']);_0x537579['forEach'](_0x30b90c=>{_0x30b90c['isRemoved']?_0x30b90c['id']=_0x2d3d31++:_0x30b90c['id']=_0x51a7f8[_0x34a71b++];}),this['_processTape'](_0x537579),this['_setDistance'](_0x1adcb3,'isAdded'),this['_setDistance'](_0x537579,'isRemoved'),_0x5e65ce==_0x43f857&&this['_markMarkers'](_0x1adcb3,_0x392e75),_0x1adcb3=this['_joinTapes'](_0x1adcb3,_0x537579),this['_refreshStartEndIndex'](_0x1adcb3),this['_setDistance'](_0x1adcb3,'isRemoved');}_0x1adcb3=_0x1adcb3['filter'](_0x29aed8=>!(_0x29aed8['isAdded']&&_0x29aed8['isRemoved']));const _0x449e4d=new Map(_0x5963c5['model'][_0x33f34e]['deletions']['markers']),_0x147be5=new Set(_0x392e75['keys']());for(const _0x3529d7 of _0x449e4d['keys']())_0x147be5['delete'](_0x3529d7);this['_markSuggestions'](_0x1adcb3,_0x147be5),this['_fixObsoleteTags'](_0x1adcb3),_0x1adcb3=this['_removeMissingPairs'](_0x1adcb3),_0x1adcb3=this['_markMismatchedRemovedTags'](_0x1adcb3),_0x1adcb3=this['_removeUnsupportedChanges'](_0x1adcb3);const {root:_0x4843ca,changes:_0x4d84ac}=this['_makeModelFromTape'](_0x1adcb3,_0x4f1252,_0x33f34e);_0xd5778b['model'][_0x33f34e]=_0x4843ca;const _0x5d0bde=_0x4043c7['get'](_0x33f34e);if(_0x5d0bde){const _0x3a2755=_0x4f1252['get'](_0x5d0bde['userId']),_0x45f2a3=new r({'author':_0x3a2755,'type':_0x5d0bde['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33f34e});_0x4d84ac['unshift'](_0x45f2a3),_0xd5778b['attributes'][_0x33f34e]['revisionHistoryAttachChange']=_0x45f2a3['id'];}_0xd5778b['changes']=_0xd5778b['changes']['concat'](_0x4d84ac);}return _0xd5778b;}['_markMarkers'](_0x437bce,_0x30dcda){for(let _0x4d13da=0x0;_0x4d13da<_0x437bce['length'];_0x4d13da++)for(const [_0x3d25e7,_0x37e777]of _0x30dcda)_0x37e777['start']['isEqual'](_0x437bce[_0x4d13da]['previousPosition'])&&_0x437bce[_0x4d13da]['markersStart']['push'](_0x3d25e7),_0x37e777['end']['isEqual'](_0x437bce[_0x4d13da]['nextPosition'])&&_0x437bce[_0x4d13da]['markersEnd']['push'](_0x3d25e7);}['_joinTapes'](_0x59cb6f,_0x5e30f8){let _0x2b84bc=[],_0x5c5aa9=0x0,_0x2b391f=0x0;for(;_0x5c5aa9<_0x59cb6f['length']||_0x2b391f<_0x5e30f8['length'];){const _0x3ae7b8=_0x59cb6f[_0x5c5aa9]||{},_0x25f760=_0x5e30f8[_0x2b391f]||{};if(_0x3ae7b8['id']==_0x25f760['id'])_0x5c5aa9++,_0x2b391f++,_0x2b84bc['push'](_0x3ae7b8);else{if(_0x25f760['isRemoved']&&_0x3ae7b8['isAdded']){const {commonTape:_0x3fddae,iEnd:_0x233978,jEnd:_0x59f0a5}=this['_threeWayMerge'](_0x59cb6f,_0x5c5aa9,_0x5e30f8,_0x2b391f);_0x2b84bc=_0x2b84bc['concat'](_0x3fddae),_0x5c5aa9=_0x233978,_0x2b391f=_0x59f0a5;}else _0x25f760['isRemoved']?(_0x2b391f++,_0x2b84bc['push'](_0x25f760)):(_0x5c5aa9++,_0x2b84bc['push'](_0x3ae7b8));}}return _0x2b84bc;}['_markSuggestions'](_0x3089fc,_0x1724c3){const _0x2e67b1=[];for(let _0x563f8d=0x0;_0x563f8d<_0x3089fc['length'];_0x563f8d++){for(let _0x166775=0x0;_0x166775<_0x3089fc[_0x563f8d]['markersStart']['length'];_0x166775++){const _0xce7e9f=_0x3089fc[_0x563f8d]['markersStart'][_0x166775];if(!_0x1724c3['has'](_0xce7e9f))continue;const {group:_0x51e689,type:_0x572e10,authorId:_0x34f41a}=_0x6e54e(_0xce7e9f);'revision-suggestion'!=_0x51e689||'insertion'!=_0x572e10&&'deletion'!=_0x572e10||(_0x2e67b1['unshift']({'type':_0x572e10,'name':_0xce7e9f,'userId':_0x34f41a}),_0x3089fc[_0x563f8d]['markersStart']['splice'](_0x166775,0x1),_0x166775--);}_0x3d9801(_0x3089fc[_0x563f8d]);for(let _0x3bcada=0x0;_0x3bcada<_0x3089fc[_0x563f8d]['markersEnd']['length'];_0x3bcada++){const _0x4c67f5=_0x3089fc[_0x563f8d]['markersEnd'][_0x3bcada];if(!_0x1724c3['has'](_0x4c67f5))continue;const {group:_0x521727,type:_0x3bc45e}=_0x6e54e(_0x4c67f5);if('revision-suggestion'!=_0x521727||'insertion'!=_0x3bc45e&&'deletion'!=_0x3bc45e)continue;_0x3089fc[_0x563f8d]['markersEnd']['splice'](_0x3bcada,0x1),_0x3bcada--;const _0x3e544d=_0x2e67b1['findIndex'](_0xc7be98=>_0xc7be98['name']==_0x4c67f5);_0x3e544d>-0x1&&_0x2e67b1['splice'](_0x3e544d,0x1);}}function _0x6e54e(_0x178e99){const _0x342bd1=_0x178e99['split'](':');return{'group':_0x342bd1[0x0],'type':_0x342bd1[0x1],'subType':_0x342bd1['length']>=0x5?_0x342bd1[0x2]:null,'id':_0x342bd1['length']<0x5?_0x342bd1[0x2]:_0x342bd1[0x3],'authorId':_0x342bd1['length']<0x5?_0x342bd1[0x3]:_0x342bd1[0x4],'markerCount':0x6==_0x342bd1['length']?_0x342bd1[0x5]:null};}function _0x3d9801(_0x279fc3){for(let _0x5c14ba=0x0;_0x5c14ba<_0x2e67b1['length'];_0x5c14ba++){if(_0x279fc3['isAdded']&&'insertion'==_0x2e67b1[_0x5c14ba]['type'])return _0x279fc3['isAddSuggestion']=_0x2e67b1[_0x5c14ba],void delete _0x279fc3['isAdded'];if(!_0x279fc3['isAdded']&&!_0x279fc3['isRemoved']&&'deletion'==_0x2e67b1[_0x5c14ba]['type'])return void(_0x279fc3['isRemoveSuggestion']=_0x2e67b1[_0x5c14ba]);}}}['_setDistance'](_0x4d45f7,_0x50a9e9){let _0x2d0504=0x0,_0x41f49e=!0x1;const _0x2777f7=new Map();for(const _0x57bfb0 of _0x4d45f7)_0x57bfb0[_0x50a9e9]?_0x41f49e&&(_0x2d0504++,_0x41f49e=!0x1):(_0x2d0504++,_0x41f49e=!0x0),_0x2777f7['set'](_0x57bfb0['id'],_0x2d0504);for(let _0x7c7af7=0x0;_0x7c7af7<_0x4d45f7['length'];_0x7c7af7++){if('isRemoved'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isAdded']||'isAdded'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isRemoved'])continue;if('text'==_0x4d45f7[_0x7c7af7]['type']){_0x4d45f7[_0x7c7af7]['distance']=0x0;continue;}const _0x161940=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['pairId']),_0x25febe=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['id']);_0x4d45f7[_0x7c7af7]['distance']=_0x161940-_0x25febe;}}['_getRevisionsRange'](_0x3d6c4e,_0x23f303,_0x35ee2a=!0x1){const _0x24249c=[];let _0x53d2b6=this['repository']['getIndex'](_0x3d6c4e),_0x2f80b2=this['repository']['getIndex'](_0x23f303);for(-0x1==_0x2f80b2&&(_0x2f80b2=this['repository']['_revisions']['length'],_0x35ee2a=!0x1);_0x53d2b6<_0x2f80b2;)_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x53d2b6++;return _0x35ee2a&&_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x24249c;}['_threeWayMerge'](_0xbd6af8,_0x5177d2,_0x40eff9,_0x387859){const _0x15d94c=this['editor']['model']['schema'];let _0x36d61f=_0x5177d2;for(;_0xbd6af8[_0x36d61f]&&_0xbd6af8[_0x36d61f]['isAdded'];)_0x36d61f++;let _0x3545a4=_0x387859;for(;_0x40eff9[_0x3545a4]&&_0x40eff9[_0x3545a4]['isRemoved'];)_0x3545a4++;_0x46880a(_0xbd6af8,_0x5177d2,_0x36d61f),_0x46880a(_0x40eff9,_0x387859,_0x3545a4);const _0x1e6200=_0x40eff9['slice'](_0x387859,_0x3545a4)['concat'](_0xbd6af8['slice'](_0x5177d2,_0x36d61f));return _0x1e6200['sort']((_0x2b3af0,_0xf63608)=>_0x2b3af0['side']!=_0xf63608['side']?_0x2b3af0['side']-_0xf63608['side']:_0x2b3af0['level']!=_0xf63608['level']?_0x2b3af0['level']-_0xf63608['level']:_0x2b3af0['distance']!=_0xf63608['distance']?_0xf63608['distance']-_0x2b3af0['distance']:!!_0x2b3af0['isAdded']!=!!_0xf63608['isAdded']?-0x1==_0x2b3af0['side']||0x0==_0x2b3af0['side']?_0x2b3af0['isAdded']?-0x1:0x1:_0x2b3af0['isAdded']?0x1:-0x1:_0x2b3af0['index']-_0xf63608['index']),{'commonTape':_0x1e6200,'iEnd':_0x36d61f,'jEnd':_0x3545a4};function _0x46880a(_0x3e9b24,_0x596788,_0x21cbd0){let _0x4210ab=-0x1,_0x24281b=Number['POSITIVE_INFINITY'],_0x35a6d9=!0x0;for(let _0x584fbe=_0x596788;_0x584fbe<_0x21cbd0;_0x584fbe++)if(_0x15d94c['isInline'](_0x3e9b24[_0x584fbe]['item'])||(_0x35a6d9=!0x1),_0x3e9b24[_0x584fbe]['item']['startIndex']<_0x596788&&(_0x4210ab=_0x584fbe),_0x3e9b24[_0x584fbe]['item']['endIndex']>=_0x21cbd0){_0x24281b=_0x584fbe;break;}_0x35a6d9&&(_0x4210ab=_0x21cbd0-0x1);for(let _0x122cd5=_0x596788;_0x122cd5<_0x21cbd0;_0x122cd5++)_0x3e9b24[_0x122cd5]['side']=_0x122cd5<=_0x4210ab?-0x1:_0x122cd5<_0x24281b?0x0:0x1,_0x3e9b24[_0x122cd5]['index']=_0x122cd5;let _0x30155c=0x0;for(let _0x54c370=_0x596788;_0x54c370<=_0x4210ab;_0x54c370++)0x0==_0x3e9b24[_0x54c370]['distance']?_0x3e9b24[_0x54c370]['level']=_0x30155c:(_0x30155c++,_0x3e9b24[_0x54c370]['level']=_0x30155c,_0x30155c++);for(let _0x2b34f4=_0x596788;_0x2b34f4<_0x21cbd0;_0x2b34f4++)0x0==_0x3e9b24[_0x2b34f4]['side']&&(_0x3e9b24[_0x2b34f4]['level']=_0x30155c);_0x30155c=0x0;for(let _0x11757f=_0x21cbd0-0x1;_0x11757f>=_0x24281b;_0x11757f--)0x0==_0x3e9b24[_0x11757f]['distance']?_0x3e9b24[_0x11757f]['level']=_0x30155c:(_0x30155c--,_0x3e9b24[_0x11757f]['level']=_0x30155c,_0x30155c--);}}['_fixObsoleteTags'](_0x287060){const _0x530893=new Map(),_0xfd5e5f=this['editor']['model']['schema'];for(let _0x3e8164=0x1;_0x3e8164<_0x287060['length'];_0x3e8164++){let _0x3f312a,_0x25253b,_0x28b3ae;const _0x4c8e89=_0x287060[_0x3e8164],_0x553411=_0x287060[_0x3e8164-0x1];if('text'==_0x4c8e89['type'])continue;if(_0x4c8e89['type']!=_0x553411['type'])continue;if(!_0xfd5e5f['isBlock'](_0x553411['item'])||_0xfd5e5f['isLimit'](_0x553411['item']))continue;if(!_0xfd5e5f['isBlock'](_0x4c8e89['item'])||_0xfd5e5f['isLimit'](_0x4c8e89['item']))continue;if((_0x287060[_0x3e8164]['isAdded']||_0x287060[_0x3e8164]['isAddSuggestion'])&&_0x287060[_0x3e8164-0x1]['isRemoved'])_0x3f312a=_0x287060[_0x3e8164],_0x25253b=_0x287060[_0x3e8164-0x1],_0x28b3ae=_0x3e8164-0x1;else{if(!_0x287060[_0x3e8164]['isRemoved']||!_0x287060[_0x3e8164-0x1]['isAdded']&&!_0x287060[_0x3e8164-0x1]['isAddSuggestion'])continue;_0x3f312a=_0x287060[_0x3e8164-0x1],_0x25253b=_0x287060[_0x3e8164],_0x28b3ae=_0x3e8164;}const _0x267809=_0x3f312a['level']==_0x25253b['level'],_0x5314f2=Math['abs'](_0x3f312a['level'])<Math['abs'](_0x25253b['level'])&&0x0==_0x25253b['distance'];(_0x267809||_0x5314f2)&&(_0x530893['set'](_0x25253b['id'],_0x3f312a['id']),_0x287060['splice'](_0x28b3ae,0x1),_0x3e8164--,_0x3f312a['isAdded']=!0x1);}for(let _0x5efc24=0x0;_0x5efc24<_0x287060['length'];_0x5efc24++)_0x530893['has'](_0x287060[_0x5efc24]['pairId'])&&(_0x287060[_0x5efc24]['pairId']=_0x530893['get'](_0x287060[_0x5efc24]['pairId']));}['_removeMissingPairs'](_0x149a96){const _0x4ca7a7=new Set(_0x149a96['map'](_0x147111=>_0x147111['id']));for(let _0x5a1ac8=0x0;_0x5a1ac8<_0x149a96['length'];_0x5a1ac8++)_0x4ca7a7['has'](_0x149a96[_0x5a1ac8]['pairId'])||0x0==_0x149a96[_0x5a1ac8]['distance']||(_0x149a96[_0x5a1ac8]['isIncorrect']=!0x0);return _0x149a96['filter'](_0x413b22=>!_0x413b22['isIncorrect']);}['_markMismatchedRemovedTags'](_0x233b71){const _0x4e50ba=new Set();for(let _0xd8f3de=0x0;_0xd8f3de<_0x233b71['length'];_0xd8f3de++){if(_0x4e50ba['has'](_0x233b71[_0xd8f3de]['id'])&&_0x233b71[_0xd8f3de]['isRemoved']&&(_0x233b71[_0xd8f3de]['isIncorrect']=!0x0),_0x233b71[_0xd8f3de]['isIncorrect'])continue;if(0x0==_0x233b71[_0xd8f3de]['distance'])continue;if('elementStart'!=_0x233b71[_0xd8f3de]['type'])continue;if(null==_0x233b71[_0xd8f3de]['pairId'])continue;let _0x4d090d=_0xd8f3de+0x1,_0x59ca8c=0x0;for(;_0x233b71[_0x4d090d]['id']!=_0x233b71[_0xd8f3de]['pairId'];)'elementStart'==_0x233b71[_0x4d090d]['type']?_0x59ca8c++:'elementEnd'==_0x233b71[_0x4d090d]['type']&&_0x59ca8c--,_0x4d090d++;if(0x0!=_0x59ca8c){if(_0x233b71[_0xd8f3de]['isRemoved'])_0x233b71[_0xd8f3de]['isIncorrect']=!0x0;else{for(;_0x4d090d!=_0xd8f3de;)_0x233b71[_0x4d090d]['isRemoved']&&0x0!=_0x233b71[_0x4d090d]['distance']&&(_0x233b71[_0x4d090d]['isIncorrect']=!0x0,_0x4e50ba['add'](_0x233b71[_0x4d090d]['pairId'])),_0x4d090d--;}}}return _0x233b71['filter'](_0x50744b=>!_0x50744b['isIncorrect']);}['_removeUnsupportedChanges'](_0x34ac0f){const _0x5d6441=this['editor']['model']['schema'];for(let _0x1e7d9c=0x0;_0x1e7d9c<_0x34ac0f['length'];_0x1e7d9c++){if(!(_0x34ac0f[_0x1e7d9c]['isAdded']||_0x34ac0f[_0x1e7d9c]['isAddSuggestion']||_0x34ac0f[_0x1e7d9c]['isRemoved']||_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']))continue;if(0x0==_0x34ac0f[_0x1e7d9c]['distance'])continue;const _0x3851d1=_0x34ac0f[_0x1e7d9c]['item'];_0x5d6441['isBlock'](_0x3851d1)||_0x5d6441['isLimit'](_0x3851d1)||(_0x34ac0f[_0x1e7d9c]['isAdded']&&delete _0x34ac0f[_0x1e7d9c]['isAdded'],_0x34ac0f[_0x1e7d9c]['isAddSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isAddSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isRemoveSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoved']&&(_0x34ac0f[_0x1e7d9c]['isIncorrect']=!0x0));}return _0x34ac0f['filter'](_0x3c423f=>!_0x3c423f['isIncorrect']);}['_makeModelFromTape'](_0x229fb5,_0x2c7a77,_0x4e83aa){const _0x4e1236=new mt(),_0x15e67a=[],_0x2ceee4=new Map(),_0x2f6a56=this['editor']['model'],_0x8b1935=_0x2f6a56['schema'],_0x22f84b=[_0x4e1236],_0x382c4d={},_0x5cf479={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2a785f=null;const _0x4c098=[0x0];for(let _0x57f0c4=0x0;_0x57f0c4<_0x229fb5['length'];_0x57f0c4++)if('elementStart'===_0x229fb5[_0x57f0c4]['type']){_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);const _0x1e960e=new ft(_0x229fb5[_0x57f0c4]['item']['name'],_0x229fb5[_0x57f0c4]['item']['getAttributes']());_0x22f84b[0x0]['_appendChild'](_0x1e960e),_0x4c098['push'](0x0),_0x22f84b['unshift'](_0x1e960e),_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);}else'elementEnd'===_0x229fb5[_0x57f0c4]['type']?(_0x22f84b['shift'](),_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x4c098['pop'](),_0x4c098[_0x4c098['length']-0x1]++,_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098)):(_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x2a785f?_0x2a785f['_data']+=_0x229fb5[_0x57f0c4]['item']['data']:_0x2a785f=new wt(_0x229fb5[_0x57f0c4]['item']['data'],_0x229fb5[_0x57f0c4]['item']['getAttributes']()),_0x229fb5[_0x57f0c4+0x1]&&'text'===_0x229fb5[_0x57f0c4+0x1]['type']&&_0x246712(_0x2a785f,_0x229fb5[_0x57f0c4+0x1]['item'])||(_0x22f84b[0x0]['_appendChild'](_0x2a785f),_0x2a785f=null),_0x4c098[_0x4c098['length']-0x1]+=_0x229fb5[_0x57f0c4]['item']['offsetSize'],_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098));for(let _0x4c33e0=0x0;_0x4c33e0<_0x229fb5['length'];_0x4c33e0++){const _0x4ad880=_0x229fb5[_0x4c33e0]['previousPosition'],_0x186d2b=_0x229fb5[_0x4c33e0]['nextPosition'];for(const _0x8d6218 of _0x229fb5[_0x4c33e0]['markersStart'])_0x2ceee4['set'](_0x8d6218,{'start':_0x4ad880,'end':null});_0x24de9d('isRemoveSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAddSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isRemoved',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAdded',_0x4c33e0,_0x4ad880,_0x186d2b);for(const _0x2fc763 of _0x229fb5[_0x4c33e0]['markersEnd']){_0x2ceee4['get'](_0x2fc763)['end']=_0x186d2b;}}for(const [_0x4325da,_0x3e9c38]of _0x2ceee4){const _0x53bf1d=this['editor']['model']['createRange'](_0x3e9c38['start'],_0x3e9c38['end']);_0x4e1236['markers']['set'](_0x4325da,_0x53bf1d);}return _0x15e67a['sort']((_0x248a05,_0x55248b)=>{const _0x244e5f=_0x4e1236['markers']['get']('revision:'+_0x248a05['id']),_0x2d129c=_0x4e1236['markers']['get']('revision:'+_0x55248b['id']);return _0x244e5f['start']['isBefore'](_0x2d129c['start'])?-0x1:_0x244e5f['start']['isAfter'](_0x2d129c['start'])?0x1:_0x244e5f['end']['isBefore'](_0x2d129c['end'])?-0x1:_0x244e5f['end']['isAfter'](_0x2d129c['end'])?0x1:'add'===_0x248a05['type']?-0x1:0x1;}),{'root':_0x4e1236,'changes':_0x15e67a};function _0x24de9d(_0x1decd1,_0x37cf37,_0x5433b4,_0x165698){const _0x307413=!!_0x229fb5[_0x37cf37][_0x1decd1],_0x57f5d5=_0x307413?_0x229fb5[_0x37cf37][_0x1decd1]['userId']:null,_0xf7a3fe=_0x37cf37===_0x229fb5['length']-0x1,_0x574cdc=_0x5cf479[_0x1decd1][0x0],_0xc99dd0=_0x8b1935['isObject'](_0x229fb5[_0x37cf37]['item']);!_0x382c4d[_0x1decd1]&&_0x307413?_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}:_0x382c4d[_0x1decd1]&&!_0x307413?(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null):_0x382c4d[_0x1decd1]&&_0x307413&&_0x382c4d[_0x1decd1]['userId']!==_0x57f5d5&&(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x574cdc&&_0x574cdc['userId']===_0x382c4d[_0x1decd1]['userId']||_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}),_0x382c4d[_0x1decd1]&&_0xc99dd0&&('elementStart'!==_0x229fb5[_0x37cf37]['type']||_0x574cdc&&_0x574cdc['userId']===_0x57f5d5||_0x5cf479[_0x1decd1]['unshift']({'userId':_0x57f5d5,'object':_0x229fb5[_0x37cf37]['item'],'change':_0x382c4d[_0x1decd1]}),'elementEnd'===_0x229fb5[_0x37cf37]['type']&&_0x574cdc&&_0x574cdc['object']===_0x229fb5[_0x37cf37]['item']&&(_0x5cf479[_0x1decd1]['shift'](),_0x382c4d[_0x1decd1]=_0x574cdc['change'])),_0x382c4d[_0x1decd1]&&_0xf7a3fe&&(_0x382c4d[_0x1decd1]['end']=_0x165698,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null);}function _0x3ef7fa({start:_0x1ddcac,end:_0x54bb8a,tapeItem:_0x14482e,userId:_0x10f9e0,type:_0x33f834}){const _0x332d30=_0x14482e['item'],_0x48eb84=_0x2f6a56['schema']['isBlock'](_0x332d30)&&!_0x2f6a56['schema']['isLimit'](_0x332d30),_0x45fd46=_0x1ddcac['nodeAfter']==_0x54bb8a['parent']&&_0x54bb8a['isAtStart'];if(_0x48eb84&&_0x45fd46)return;const _0x15b285=_0x2f6a56['createRange'](_0x1ddcac,_0x54bb8a),_0x1e1b5c=_0x2c7a77['get'](_0x10f9e0),_0xb46e88=new r({'author':_0x1e1b5c,'type':'isAdded'==_0x33f834||'isAddSuggestion'==_0x33f834?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33f834||'isRemoveSuggestion'==_0x33f834},'createdAt':new Date(),'rootName':_0x4e83aa});_0x15e67a['push'](_0xb46e88),_0x4e1236['markers']['set']('revision:'+_0xb46e88['id'],_0x15b285);}function _0x246712(_0x5e2f07,_0xca86b2){const _0x8f4004=_0x5e2f07['getAttributes'](),_0x2a38df=_0xca86b2['getAttributes']();for(const _0x4c2f75 of _0x8f4004){if(_0x4c2f75[0x1]!==_0xca86b2['getAttribute'](_0x4c2f75[0x0]))return!0x1;_0x2a38df['next']();}return _0x2a38df['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55e812=>{const _0x4f9d15=_0x55e812['markerName']['split'](':')[0x1],_0x3f78a3=this['_getChangeFromId'](_0x4f9d15);if(!_0x3f78a3)return null;const _0x86f386='add'==_0x3f78a3['type']?'insertion':'deletion',_0x39f66f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x86f386];return _0x3f78a3['data']['isSuggestion']&&_0x39f66f['push']('ck-suggestion-marker-'+_0x86f386+'-new'),this['activeChange']==_0x3f78a3&&_0x39f66f['push']('ck-suggestion-marker--active'),{'classes':_0x39f66f,'attributes':{'data-change-id':_0x4f9d15}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x21679d=>{_0x21679d['on']('element:pre',(_0x2b12d4,_0xc44153,_0x317b47)=>{const _0x44e663=_0xc44153['viewItem']['getChild'](0x0);if(!_0x44e663||!_0x44e663['is']('element','code'))return;if(!_0x317b47['consumable']['consume'](_0x44e663,{'attributes':['vid_start','vid_end']}))return;const _0x593d25=_0xc44153['modelRange']['start']['nodeAfter'];_0x317b47['writer']['setAttribute']('vid_start',_0x44e663['getAttribute']('vid_start'),_0x593d25),_0x317b47['writer']['setAttribute']('vid_end',_0x44e663['getAttribute']('vid_end'),_0x593d25);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2af02f=>{_0x2af02f['on']('element',(_0x29e2d5,_0x19e308,_0x39dda4)=>{if(!_0x39dda4['consumable']['consume'](_0x19e308['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x19e308['modelRange']['isCollapsed'])return;const _0x106514=_0x19e308['modelRange']['start']['nodeAfter'];_0x106514['hasAttribute']('vid_start')||_0x106514['hasAttribute']('vid')||(_0x39dda4['writer']['setAttribute']('vid_start',_0x19e308['viewItem']['getAttribute']('vid_start'),_0x106514),_0x39dda4['writer']['setAttribute']('vid_end',_0x19e308['viewItem']['getAttribute']('vid_end'),_0x106514));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3ed17b=>_0x3ed17b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4badb8,[,_0x35d65b])=>{['vid_start','vid_end','vid']['includes'](_0x35d65b)&&(_0x4badb8['return']=!0x0,_0x4badb8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5d0238=>{_0x5d0238['on']('attribute:vid',(_0x24779d,_0x1a356f,_0x5d13f8)=>{if('\x20'!=_0x1a356f['item']['data']||_0x1a356f['item']['parent']['maxOffset']>0x1)return;if(!_0x5d13f8['consumable']['consume'](_0x1a356f['item'],_0x24779d['name']))return;const _0x14da96=_0x5d13f8['writer'],_0x168170=_0x5d13f8['mapper']['toViewRange'](_0x1a356f['range']);_0x14da96['wrap'](_0x168170,_0x14da96['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x318770){const _0x43e686=_0x318770['plugins']['get']('RevisionViewer');return(_0x271636,_0x53fc2a,_0x78df7e)=>{const _0x3d86c4=_0x53fc2a['markerName']['split'](':')[0x1],_0x5b30ad=_0x43e686['_getChangeFromId'](_0x3d86c4);if(!_0x5b30ad)return null;const _0x2b8463='add'==_0x5b30ad['type']?'split':'merge';if(!_0x78df7e['consumable']['test'](_0x53fc2a['markerRange'],_0x271636['name']))return;const _0x5676d3=_0x53fc2a['markerRange']['getWalker'](),_0x5c15a4=_0x53fc2a['markerRange']['start'],_0x3214b5=_0x318770['model']['schema'];let _0x297cc4=null,_0x4380f1=null,_0x2a39a6=!0x1,_0x44b231=!0x1;for(const _0x4e01d4 of _0x5676d3){const _0x74f1ed=_0x4e01d4['item'];_0x2a39a6=_0x2a39a6||_0x3214b5['isContent'](_0x74f1ed);const _0x514647=_0x78df7e['mapper']['toViewElement'](_0x74f1ed);if(_0x514647&&_0x514647['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e01d4['type']&&(_0x3214b5['isBlock'](_0x74f1ed)&&!_0x3214b5['isLimit'](_0x74f1ed)&&(_0x74f1ed['nextSibling']||_0x5c15a4['isAtEnd']?_0x297cc4&&_0x297cc4['parent']==_0x74f1ed||(_0x297cc4=_0x74f1ed,_0x578a3d(_0x4e01d4['previousPosition']),_0x44b231=!0x0):_0x4380f1=_0x4380f1||_0x4e01d4['previousPosition']));}function _0x578a3d(_0x1d6868){const _0x44324f=_0x78df7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b8463}),_0x2e5950=_0x78df7e['mapper']['toViewPosition'](_0x1d6868);_0x5b30ad['data']['isSuggestion']&&_0x78df7e['writer']['addClass']('ck-suggestion-marker-'+_0x2b8463+'-new',_0x44324f),_0x43e686['activeChange']==_0x5b30ad&&_0x78df7e['writer']['addClass']('ck-suggestion-marker--active',_0x44324f),_0x78df7e['writer']['insert'](_0x2e5950,_0x44324f),_0x78df7e['mapper']['bindElementToMarker'](_0x44324f,_0x53fc2a['markerName']);}_0x2a39a6||_0x44b231||!_0x4380f1||_0x578a3d(_0x4380f1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1616e8,_0x5ec54e,_0x4754a2)=>{const _0x50f712=_0x4754a2['mapper']['markerNameToElements'](_0x5ec54e['markerName']);if(_0x50f712){for(const _0x254e0e of _0x50f712)(_0x254e0e['hasClass']('ck-suggestion-marker-split')||_0x254e0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x4754a2['mapper']['unbindElementFromMarkerName'](_0x254e0e,_0x5ec54e['markerName']),_0x4754a2['writer']['remove'](_0x254e0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x13d5e2,_0x24993e,_0x5c8cc3)=>{const _0x2ac450=_0x24993e['markerName']['split'](':')[0x1],_0x2ef1f1=this['_getChangeFromId'](_0x2ac450);if(!_0x2ef1f1)return null;const _0x5b1217='add'==_0x2ef1f1['type']?'split':'merge';if(_0x5c8cc3['consumable']['test'](_0x24993e['markerRange'],_0x13d5e2['name']))for(const _0x491652 of _0x24993e['markerRange']['getItems']()){if(!_0x491652['is']('element','softBreak'))continue;const _0x33fef4=_0x5c8cc3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b1217}),_0x426db8=_0x5c8cc3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x491652));_0x2ef1f1['data']['isSuggestion']&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker-'+_0x5b1217+'-new',_0x33fef4),this['activeChange']==_0x2ef1f1&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker--active',_0x33fef4),_0x5c8cc3['writer']['insert'](_0x426db8,_0x33fef4),_0x5c8cc3['mapper']['bindElementToMarker'](_0x33fef4,_0x24993e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2dfe24=>{for(const _0x2025ab of this['editor']['model']['document']['getRootNames']()){const _0x3bde3c=this['editor']['model']['document']['getRoot'](_0x2025ab),_0x1cc469=this['editor']['editing']['view']['document']['getRoot'](_0x2025ab);if(_0x1cc469){const _0x7b78e6=_0x3bde3c['getAttribute']('revisionHistoryAttachChange');if(_0x2dfe24['removeAttribute']('data-change-id',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-add',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-remove',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root--active',_0x1cc469),_0x7b78e6){const _0x56459f=this['_getChangeFromId'](_0x7b78e6);if(!_0x56459f)return null;_0x2dfe24['setAttribute']('data-change-id',_0x7b78e6,_0x1cc469),_0x2dfe24['addClass']('ck-revision-history-root-'+_0x56459f['type'],_0x1cc469),this['activeChange']==_0x56459f&&_0x2dfe24['addClass']('ck-revision-history-root--active',_0x1cc469);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x311332=>'revision-comment:'+_0x311332,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9120=>'revision-suggestion:'+_0x2e9120,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x14f5d9=>({'name':'suggestion:'+_0x14f5d9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x451194=>{const _0xbc0ed0=_0x451194['markerName']['split'](':')[0x1];return'insertion'!=_0xbc0ed0&&'deletion'!=_0xbc0ed0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbc0ed0]};}}),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',(_0x21abab,_0x5d2ce9,_0x53fc5e)=>{const _0x30dcd3=_0x53fc5e['mapper']['markerNameToElements'](_0x5d2ce9['markerName']);if(_0x30dcd3){for(const _0x2af0e1 of _0x30dcd3)_0x2af0e1['is']('uiElement')&&(_0x53fc5e['mapper']['unbindElementFromMarkerName'](_0x2af0e1,_0x5d2ce9['markerName']),_0x53fc5e['writer']['remove'](_0x2af0e1));}},{'priority':'high'});}['_getChangeFromId'](_0x1bef98){return this['_changeIdToChange']['get'](_0x1bef98);}['_getViewForChange'](_0x3afa15){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3afa15),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x306940,_0x4b86c1,_0x3bdb56,_0x3ebfb6)=>{_0x3ebfb6&&this['_balloon']['remove'](_0x3ebfb6),_0x3bdb56&&(this['_balloon']['add']({'view':_0x3bdb56,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3db8a5=this['editor']['editing'],_0x4b72a1=this['_getChangeFromId'](_0x3bdb56['changeId']);let _0x4ca2ab;if(_0x4b72a1['data']['isOnRoot']){const _0x127dd4=_0x3db8a5['view']['getDomRoot'](_0x4b72a1['rootName']);_0x4ca2ab=Array['from'](_0x127dd4['getClientRects']());}else{const _0x185fa1=this['editor']['model']['markers']['get']('revision:'+_0x3bdb56['changeId']);_0x4ca2ab=Array['from'](_0x3db8a5['mapper']['markerNameToElements'](_0x185fa1['name']))['map'](_0x50bbbd=>_0x3db8a5['view']['domConverter']['mapViewToDom'](_0x50bbbd))['map'](_0x1194f2=>Array['from'](_0x1194f2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ca2ab[0x0];return _0x4ca2ab['find'](_0x46b0ec=>_0x46b0ec['top']-0x3<=this['_activeViewTarget']['y']&&_0x46b0ec['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x46b0ec['left']-0x3<=this['_activeViewTarget']['x']&&_0x46b0ec['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ca2ab[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5163cc,_0x1649fa,_0x5857ae,_0x4a357e)=>{this['activeView']=_0x5857ae?this['_getViewForChange'](_0x5857ae):null,this['editor']['model']['change'](()=>{const _0x4047f6=this['editor']['editing'];_0x4a357e&&(_0x4a357e['data']['isOnRoot']?_0x4047f6['view']['change'](_0x3e2b4e=>{_0x3e2b4e['removeClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x4a357e['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x4a357e['id'])),_0x5857ae&&(_0x5857ae['data']['isOnRoot']?_0x4047f6['view']['change'](_0x56e40c=>{_0x56e40c['addClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x5857ae['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x5857ae['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x406aad,_0x455a3a)=>{if(this['activeChange'])return;const _0x2699ed=this['_findChangeIdFromDomTarget'](_0x455a3a['target']),_0xd248d2=this['_changeIdToChange']['get'](_0x2699ed);_0xd248d2?(this['_activeViewTarget']={'x':_0x455a3a['domEvent']['x'],'y':_0x455a3a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xd248d2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x7bf701,_0x1f0697)=>{const _0x52bd6a=this['_findChangeIdFromDomTarget'](_0x1f0697['target']),_0x28095c=this['_changeIdToChange']['get'](_0x52bd6a);_0x28095c?(this['_activeViewTarget']={'x':_0x1f0697['domEvent']['x'],'y':_0x1f0697['domEvent']['y']},_0x28095c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x28095c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bb146){do{const _0x3a0f5d=_0x3bb146['getAttribute']('data-change-id');if(_0x3a0f5d)return _0x3a0f5d;_0x3bb146=_0x3bb146['parent'];}while(_0x3bb146);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5dcbf5=>{for(const _0xd445c9 of this['editor']['model']['markers'])_0x5dcbf5['removeMarker'](_0xd445c9);});}}function tt(_0x57bb23,_0x4da3b9){return(_0x87c094,_0x1c0042,_0x58e72b)=>{if(!_0x58e72b['consumable']['test'](_0x1c0042['markerRange'],_0x87c094['name']))return;const _0x11a6f7=_0x1c0042['markerRange']['getWalker'](),_0x1b339f=_0x1c0042['markerRange']['start'],_0x100697=_0x57bb23['model']['schema'];let _0x482dd3=null,_0x5b8cb1=null,_0x176460=!0x1,_0x2a1f11=!0x1;for(const _0x1920e9 of _0x11a6f7){const _0x3dbf3f=_0x1920e9['item'];_0x176460=_0x176460||_0x100697['isContent'](_0x3dbf3f);const _0x501cf0=_0x58e72b['mapper']['toViewElement'](_0x3dbf3f);if(_0x501cf0&&_0x501cf0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1920e9['type']&&(_0x100697['isBlock'](_0x3dbf3f)&&!_0x100697['isLimit'](_0x3dbf3f)&&(_0x3dbf3f['nextSibling']||_0x1b339f['isAtEnd']?_0x482dd3&&_0x482dd3['parent']==_0x3dbf3f||(_0x482dd3=_0x3dbf3f,_0x2deb59(_0x1920e9['previousPosition']),_0x2a1f11=!0x0):_0x5b8cb1=_0x5b8cb1||_0x1920e9['previousPosition']));}function _0x2deb59(_0x2148d6){const _0x7107b5=_0x58e72b['mapper']['toViewPosition'](_0x2148d6),_0xf88441=_0x58e72b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4da3b9});_0x58e72b['writer']['insert'](_0x7107b5,_0xf88441),_0x58e72b['mapper']['bindElementToMarker'](_0xf88441,_0x1c0042['markerName']);}_0x176460||_0x2a1f11||!_0x5b8cb1||_0x2deb59(_0x5b8cb1);};}class _t extends _0x3d421b{constructor(_0x2e2363){super(_0x2e2363);const _0x5625e8=_0x2e2363['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5625e8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5625e8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x10699c=this['editor'],_0x4835d4=_0x10699c['plugins']['get'](d),_0x61ee59=_0x4835d4['isReady']?_0x4835d4['diff']['newRevisionId']:null;_0x10699c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x61ee59);}['refresh'](){const {isReady:_0xebc0e8,isEnabled:_0x227b3b}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xebc0e8&&_0x227b3b;}}class yt extends _0x3d421b{['_step'];constructor(_0x29523d,{direction:_0x12b090}){super(_0x29523d);const _0x80efb0=_0x29523d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x12b090?0x1:-0x1,this['listenTo'](_0x80efb0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3284e6=this['editor'],_0x487333=_0x3284e6['plugins']['get'](d),{isNavigationMode:_0x1bd5e9,currentChangeNumber:_0x3bc258}=_0x487333;let _0x740424;if(_0x487333['activeChange']=_0x1bd5e9?_0x487333['diff']['changes']['get'](_0x3bc258+this['_step']):_0x487333['diff']['changes']['first'],_0x487333['activeChange']['data']['isOnRoot'])_0x740424=_0x3284e6['editing']['view']['getDomRoot'](_0x487333['activeChange']['rootName']);else{const _0x333c37=_0x3284e6['model']['markers']['get']('revision:'+_0x487333['activeChange']['id']);_0x740424=_0x240b25(_0x3284e6['editing'],_0x333c37);}_0x19448f({'target':_0x740424,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1343ee,currentChangeNumber:_0x37c5f8,numberOfChanges:_0x240ecb,isReady:_0x103a1c,isEnabled:_0x2dda0e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2dda0e&&_0x103a1c&&_0x240ecb)&&(!_0x1343ee||(0x1===this['_step']?_0x37c5f8<_0x240ecb-0x1:_0x37c5f8>0x0));}}class ui extends ts{constructor(_0x385cdf){super(_0x385cdf);const _0x5c2504=this['bindTemplate'],_0x5a14aa=new te(_0x385cdf),_0x5c12d5=new te(_0x385cdf);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',(_0x595276,_0x27764b)=>_0x595276&&_0x27764b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35f6c6,_0x5358b2,_0x3b2a59,_0xed917e)=>{if(!_0x35f6c6)return R(_0x385cdf,'Loading...');if(!_0x3b2a59)return R(_0x385cdf,'No\x20changes');const _0x501dcf=R(_0x385cdf,'NUMBER_OF_CHANGES',_0x3b2a59);return _0xed917e?R(_0x385cdf,'X_OF_Y_CHANGES',[_0x5358b2+0x1,_0x3b2a59]):_0x501dcf;}),_0x5a14aa['set']({'label':R(_0x385cdf,'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'}),_0x5c12d5['set']({'label':R(_0x385cdf,'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'}),_0x5a14aa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5c12d5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a14aa['on']('execute',()=>this['fire']('execute','backward')),_0x5c12d5['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',_0x5c2504['if']('_isStatusLabelVisible','ck-hidden',_0x479bff=>!_0x479bff)]},'children':[{'text':_0x5c2504['to']('isNavigationMode',_0x374274=>_0x374274?R(_0x385cdf,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x385cdf,'Total')+':\x20')}]},{'text':_0x5c2504['to']('_statusText')}]},new _0x280233(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a14aa,_0x5c12d5]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5025c2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11689e=this['editor']['editing']['view'];_0x11689e['change'](_0x31e64f=>{for(const _0x46aeac of _0x11689e['document']['roots'])_0x31e64f['addClass'](le,_0x46aeac);});}['hide'](){const _0x536292=this['editor']['editing']['view'];_0x536292['change'](_0x3096bf=>{for(const _0x40b4a6 of _0x536292['document']['roots'])_0x3096bf['removeClass'](le,_0x40b4a6);});}}class m extends _0x5025c2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x15315f=this['editor'],_0x4b9e41=_0x15315f['plugins']['get'](d),_0x878c12=_0x15315f['plugins']['get'](de);_0x15315f['ui']['componentFactory']['add']('exitToEditing',_0x11a7e8=>{const _0x262203=new te(_0x11a7e8);return _0x262203['set']({'label':R(_0x11a7e8,'Back\x20to\x20editing'),'icon':_0x75562c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x262203,'execute',()=>{_0x15315f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x262203;}),_0x15315f['ui']['componentFactory']['add']('restoreRevision',_0x465377=>{const _0x4a2cb4=new te(_0x465377);return _0x4a2cb4['set']({'label':R(_0x465377,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a2cb4['bind']('isEnabled')['to'](_0x15315f['commands']['get']('restoreRevision')),this['listenTo'](_0x4a2cb4,'execute',()=>_0x15315f['execute']('restoreRevision')),_0x4a2cb4;}),_0x15315f['ui']['componentFactory']['add']('changesNavigation',_0x6bd45=>{const _0x5547b2=new ui(_0x6bd45),_0x34dce4=_0x15315f['commands']['get']('showPreviousChange'),_0x3923f3=_0x15315f['commands']['get']('showNextChange');return _0x5547b2['bind']('isBackwardNavigationEnabled')['to'](_0x34dce4,'isEnabled'),_0x5547b2['bind']('isForwardNavigationEnabled')['to'](_0x3923f3,'isEnabled'),_0x5547b2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b9e41),this['listenTo'](_0x5547b2,'execute',(_0x4bf105,_0x5918d2)=>{_0x15315f['execute']('forward'===_0x5918d2?'showNextChange':'showPreviousChange');}),_0x5547b2;}),_0x878c12['show'](),_0x4b9e41['on']('change:isReady',(_0x18189c,_0x1282be,_0xfccd3f)=>{_0xfccd3f?_0x878c12['hide']():_0x878c12['show']();});}}class pt extends _0x30bc25{['_resizeObserver']=null;constructor(_0xfb19d2,_0x1e2aa7){super(_0xfb19d2,_0x1e2aa7);const _0x4ef2d3=this['bindTemplate'];this['set']({'label':R(_0xfb19d2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xfb19d2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ef2d3['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 _0x4efb82=this['fieldView']['element'];this['_tooltipString']=_0x4efb82['scrollWidth']>_0x4efb82['clientWidth']&&_0x4efb82['value']||'';}}class ri extends ts{constructor(_0x35b9c7,_0x262db2,_0x2d8e28){super(_0x35b9c7);const _0x3dd8ce=new _0x5bb643();_0x3dd8ce['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 _0x40b8e4=['ck','ck-revision-history-sidebar__revision-author'];_0x2d8e28&&_0x40b8e4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5054f3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x35b9c7,_0x2d8e28?'Revision\x20creator':'Revision\x20author')},'children':[_0x3dd8ce,_0x262db2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x40b8e4},'children':_0x5054f3});}}function oi(_0xe4a294,_0x48e215){const _0x37a2b8=_0xe4a294['bindTemplate'],_0x442842=_0xe4a294['locale'],_0x10854c=_0x2abbe3(_0x442842);_0x10854c['panelPosition']='sw';const _0x3c998c=function(_0x4c2ac6,_0x5af6db){const _0x117e47=function(_0xae103e,_0x4457a6){const _0x1d842e=_0xae103e['locale'],_0x1c5f5a={'Compare\x20against\x20selected':R(_0x1d842e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1d842e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1d842e,'Restore\x20this\x20revision')};return _0x4457a6['map'](_0x1650b8=>{const _0x47029a=_0x1c5f5a[_0x1650b8['name']];return _0x47029a&&_0x47029a!==_0x1650b8['name']&&(_0x1650b8['name']=_0x47029a),_0x1650b8;});}(_0x4c2ac6,_0x5af6db),_0x4916ab=new _0x35ddfb();for(const _0x42cfa8 of _0x117e47){const _0x41025a={'type':'button','model':new _0x4c16ca({'label':_0x42cfa8['name'],'class':_0x42cfa8['class'],'withText':!0x0,'role':'menuitem','_action':_0x42cfa8['action']})};_0x41025a['model']['bind']('isEnabled')['to'](_0x4c2ac6,'isActionsDropdownOpen',_0x545e61=>'function'!=typeof _0x42cfa8['isEnabled']||(!_0x545e61||_0x42cfa8['isEnabled'](_0x4c2ac6))),_0x4916ab['add'](_0x41025a);}return _0x4916ab;}(_0xe4a294,_0x48e215);return _0xe4a294['bind']('isActionsDropdownOpen')['to'](_0x10854c,'isOpen'),_0x10854c['buttonView']['set']({'label':R(_0x442842,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x75562c['threeVerticalDots']}),_0x10854c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x37a2b8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x37a2b8['to'](_0x5dc68b=>_0x5dc68b['stopPropagation']())}}),_0x10854c['on']('execute',_0x52ed6f=>{_0xe4a294['isReady']&&'function'==typeof _0x52ed6f['source']['_action']&&_0x52ed6f['source']['_action'](_0xe4a294);}),to(_0x10854c,_0x3c998c,{'role':'menu'}),_0x10854c['listenTo'](_0xe4a294,'change:isActionsDropdownOpen',(_0x40673b,_0x4544cd,_0x363190)=>{if(_0x363190)for(const _0x1c09b2 of _0x10854c['listView']['items']){const _0x58b2b0=_0x1c09b2['children']['first'],_0x181253=_0x48e215['find'](_0x2b9952=>_0x2b9952['action']===_0x58b2b0['_action'])['isVisible'];_0x1c09b2['isVisible']=void 0x0===_0x181253||_0x181253(_0xe4a294);}}),_0x10854c;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x544007,uid as _0x202f37,Collection as _0x2ea578,logWarning as _0x2e5377,FocusTracker as _0x1f06cb,KeystrokeHandler as _0x369806,scrollViewportToShowTarget as _0x2dbe66,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x5c2956}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1f0012,set as _0x5ba116,unset as _0x3f83a3,isEqual as _0x500e6b}from'lodash-es';import{Plugin as _0x3aa790,PendingActions as _0x50e21d,icons as _0x162832,Command as _0x1efead,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x360c10,getMarkerDomElement as _0x3a4830,ConfirmMixin as _0x3a113f,sanitizeEditorConfig as _0x23c0b8}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4d810b,ViewText as _0x20f6dc,ViewElement as _0x1ed3de,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x5db352,ViewAttributeElement as _0x155cb1,ViewEmptyElement as _0x132f51,ViewRawElement as _0x3a6d20,ViewUIElement as _0x29a5ef,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x456365,injectCssTransitionDisabler as ts,submitHandler as _0x1610bc,LabeledFieldView as at,createLabeledInputText as _0x31c3a1,createDropdown as _0x1aa18a,ListView as te,ListItemView as _0xaa5e4f,ButtonView as _0x644400,MenuBarMenuView as _0x1a59f5,MenuBarMenuListView as _0x21a508,MenuBarMenuListItemView as _0x34e5ad,MenuBarMenuListItemButtonView as _0x5e5102,ContextualBalloon as _0x26bf31,ToolbarSeparatorView as _0x426c6c,IconView as _0x56a012,addListToDropdown as _0x529971,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 _0x449d02}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x544007(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18c830){super(),this['id']=_0x18c830['id']||_0x202f37(),this['creator']=_0x18c830['creator']||null,this['authors']=_0x18c830['authors']||[],this['diffData']=_0x18c830['diffData']||null,this['toVersion']=_0x18c830['toVersion']||0x0,this['fromVersion']=_0x18c830['fromVersion']||0x0,this['set']('name',_0x18c830['name']||''),this['set']('createdAt',_0x18c830['createdAt']||new Date()),this['set']('attributes',_0x18c830['attributes']||{});}['setName'](_0xf79b38){this['_update']({'name':_0xf79b38});}['setAttribute'](_0x2e6c6b,_0x4602c3){const _0x3503e9=_0x1f0012(this['attributes']);_0x5ba116(_0x3503e9,_0x2e6c6b,_0x4602c3),this['_update']({'attributes':_0x3503e9});}['removeAttribute'](_0x10dc3d){const _0x265632=_0x1f0012(this['attributes']);_0x3f83a3(_0x265632,_0x10dc3d),this['_update']({'attributes':_0x265632});}['_update'](_0x114ad5,_0x241b7e=!0x1){let _0xaf728d=!0x1;const _0x2a6cdc={'id':this['id']},_0x19706f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42aad7 of _0x19706f){const _0x3b69e1=_0x114ad5[_0x42aad7];void 0x0!==_0x3b69e1&&_0x3b69e1!==this[_0x42aad7]&&(this[_0x42aad7]=_0x3b69e1,_0x2a6cdc[_0x42aad7]=_0x3b69e1,_0xaf728d=!0x0);}_0xaf728d&&(_0x2a6cdc['authors']&&(_0x2a6cdc['authorsIds']=_0x2a6cdc['authors']['map'](_0x1ff64f=>_0x1ff64f['id']),delete _0x2a6cdc['authors']),this['fire']('_update',_0x2a6cdc,_0x241b7e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1341b7=>_0x1341b7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3aa790{['_revisions'];static get['requires'](){return[_0x360c10];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4c150b){super(_0x4c150b),this['_revisions']=new _0x2ea578();}['afterInit'](){!async function(_0x551836){const _0x450ce4=_0x10f45c([0x51,0x4f,0x4a,0x6b,0x4d,0x71,0x50,0x32,0x65,0x72,0x79,0x42,0x46,0x57,0x37,0x49,0x4e,0x56,0x48,0x33,0x4c,0x53,0x78,0x6e,0x76,0x55,0x34,0x43,0x58,0x66,0x61,0x74,0x52,0x39,0x45,0x75,0x4b,0x31,0x63,0x62,0x70,0x64,0x36,0x41,0x54,0x6f,0x69,0x5a,0x44,0x35,0x77,0x59,0x30,0x38,0x47,0x6a,0x6d,0x68,0x6c,0x67,0x7a,0x73]),_0x2101d5=0xeb829,_0x521682=0x7fec29cc,_0x1ccade=0x7feb70ac^_0x521682,_0x23b88a=window[_0x10f45c([0x44,0x61,0x74,0x65])][_0x10f45c([0x6e,0x6f,0x77])](),_0x3b123a=_0x551836[_0x10f45c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f7fc8=new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400f26=>{_0x3b123a[_0x10f45c([0x6f,0x6e,0x63,0x65])](_0x10f45c([0x72,0x65,0x61,0x64,0x79]),_0x400f26);}),_0x5bb0d2={[_0x10f45c([0x6b,0x74,0x79])]:_0x10f45c([0x45,0x43]),[_0x10f45c([0x75,0x73,0x65])]:_0x10f45c([0x73,0x69,0x67]),[_0x10f45c([0x63,0x72,0x76])]:_0x10f45c([0x50,0x2d,0x32,0x35,0x36]),[_0x10f45c([0x78])]:_0x10f45c([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]),[_0x10f45c([0x79])]:_0x10f45c([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]),[_0x10f45c([0x61,0x6c,0x67])]:_0x10f45c([0x45,0x53,0x32,0x35,0x36])},_0x431e90=_0x3b123a[_0x10f45c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10f45c([0x67,0x65,0x74])](_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1db466(){let _0x58dada,_0x4f2666=null,_0x314711=null;try{if(_0x431e90==_0x10f45c([0x47,0x50,0x4c]))return _0x10f45c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58dada=_0x24e6e2(),!_0x58dada)return _0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58dada[_0x10f45c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x314711=_0xbf5588(_0x58dada[_0x10f45c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58dada[_0x10f45c([0x6a,0x74,0x69])])),await _0x27aae0()?_0x493d5a()?_0x4d74f2()?_0x10f45c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x370aa9()?(_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f2666=_0x464087(_0x10f45c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f2666=_0x464087(_0x10f45c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4f2666=_0x464087(_0x10f45c([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x217413()):_0x10f45c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10f45c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4bb3d6){return _0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d74f2(){const _0x1b6a1c=[_0x10f45c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10f45c([0x74,0x72,0x69,0x61,0x6c])][_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23b88a/0x3e8:0xe10*_0x1ccade;return _0x58dada[_0x10f45c([0x65,0x78,0x70])]<_0x1b6a1c;}function _0x493d5a(){const _0x32ca3d=_0x58dada[_0x10f45c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32ca3d)return!0x1;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x2a])))return!0x0;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x52,0x48])))return!0x0;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x52,0x52,0x48]))){if(_0x16644a())return!0x0;if(_0x3f00b0()||_0x2521b3())return!0x0;}return!0x1;}function _0x370aa9(){const _0x5c5c1c=_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c5c1c||0x0==_0x5c5c1c[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc46370}=new URL(window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c5c1c[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc46370))return!0x0;const _0x5078eb=_0xc46370[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e]));return _0x5c5c1c[_0x10f45c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b999d=>_0x2b999d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x2a])))[_0x10f45c([0x6d,0x61,0x70])](_0x3750ae=>_0x3750ae[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e])))[_0x10f45c([0x73,0x6f,0x6d,0x65])](_0x2a007b=>_0x5078eb[_0x10f45c([0x65,0x76,0x65,0x72,0x79])]((_0xbd8abc,_0xfb1563)=>_0x2a007b[_0xfb1563]===_0xbd8abc||_0x2a007b[_0xfb1563]===_0x10f45c([0x2a])));}function _0x217413(){return _0x4f2666&&_0x314711?new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55741b,_0x303ce7)=>{_0x4f2666[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x55741b,_0x303ce7),_0x314711[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x4c67de=>{_0x4c67de!=_0x10f45c([0x56,0x61,0x6c,0x69,0x64])&&_0x55741b(_0x4c67de);},_0x303ce7);}):_0x4f2666||_0x314711||_0x10f45c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbf5588(_0x26248c,_0x5d5fb0){return new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e65be=>{if(_0x169f16())return _0x5e65be(_0x10f45c([0x56,0x61,0x6c,0x69,0x64]));_0x3d33b1(),_0x3b123a[_0x10f45c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x333b4c=!0x1;const _0x15e543=_0x202f37();function _0x5ee952(_0x5f389f){return!!_0x5f389f&&(typeof _0x5f389f===_0x10f45c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f389f===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f389f[_0x10f45c([0x74,0x68,0x65,0x6e])]===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f389f[_0x10f45c([0x63,0x61,0x74,0x63,0x68])]===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cdd9a(_0x24dc8a){_0x11cb79(_0x24dc8a)[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x51e7a2=>{if(!_0x51e7a2||_0x51e7a2[_0x10f45c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10f45c([0x6f,0x6b]))return _0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x713aa1(_0x16fe08(_0x15e543+_0x5d5fb0))!=_0x51e7a2[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10f45c([0x56,0x61,0x6c,0x69,0x64]);})[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x4792dd=>(_0x347b77(),_0x4792dd),()=>{const _0x571ec3=_0x31541a();return null==_0x571ec3?(_0x347b77(),_0x10f45c([0x56,0x61,0x6c,0x69,0x64])):_0x10f45c(_0x23b88a-_0x571ec3>(0x5be0adcc^_0x521682)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x5e65be)[_0x10f45c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbac046=0x7fdac74c^_0x521682;function _0x347b77(){const _0x17a9fc=_0x10f45c([0x6c,0x6c,0x63,0x74,0x2d])+_0x713aa1(_0x16fe08(_0x26248c)),_0x1d8596=_0x5c82d8(_0x713aa1(window[_0x10f45c([0x4d,0x61,0x74,0x68])][_0x10f45c([0x63,0x65,0x69,0x6c])](_0x23b88a/_0xbac046)));window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10f45c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17a9fc,_0x1d8596);}function _0x31541a(){const _0x531437=_0x10f45c([0x6c,0x6c,0x63,0x74,0x2d])+_0x713aa1(_0x16fe08(_0x26248c)),_0x9d85a2=window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10f45c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x531437);return _0x9d85a2?window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c82d8(_0x9d85a2),0x10)*_0xbac046:null;}function _0x11cb79(_0x591b24){return new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x134624,_0x249047)=>{_0x591b24[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x134624,_0x249047),window[_0x10f45c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x249047,0x7fedfd0c^_0x521682);});}}_0x3b123a[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bc90f,_0x2c9ae5)=>{if(_0x2c9ae5[0x0]!=_0x26248c)return _0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c9ae5[0x1]={..._0x2c9ae5[0x1],[_0x10f45c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15e543};},{[_0x10f45c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10f45c([0x68,0x69,0x67,0x68])}),_0x3b123a[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x384283=>{_0x5ee952(_0x384283[_0x10f45c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x333b4c=!0x0,_0x1cdd9a(_0x384283[_0x10f45c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10f45c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10f45c([0x6c,0x6f,0x77])}),_0x1f7fc8[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>{_0x333b4c||_0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x169f16(){return _0x3b123a[_0x10f45c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10f45c([0x76,0x69,0x65,0x77])][_0x10f45c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10f45c([0x61,0x75,0x74,0x6f]);}function _0x3d33b1(){_0x3b123a[_0x10f45c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10f45c([0x76,0x69,0x65,0x77])][_0x10f45c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10f45c([0x61,0x75,0x74,0x6f]);}}function _0x464087(_0x275cf7){const _0x349157=[new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296df2=>setTimeout(_0x296df2,0x7fe51700^_0x521682)),_0x1f7fc8[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab272=>{const _0x507b15=0x7fec29cb^_0x521682,_0x1603e6=_0x551836[_0x10f45c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x297e59(){_0x1603e6[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x507b15&&_0x1ab272();}_0x297e59(),_0x1603e6[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x61,0x64,0x64]),_0x297e59);})),new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x500a92=>{function _0x59353a(){for(const _0x2d1f4e in window)if(window[_0x10f45c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x10f45c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d1f4e))&&window[_0x2d1f4e]==_0x2101d5)return _0x500a92();_0x3b123a[_0x10f45c([0x73,0x74,0x61,0x74,0x65])]!=_0x10f45c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x10f45c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59353a,0x7fec3a44^_0x521682);}_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x59353a();})];return window[_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10f45c([0x72,0x61,0x63,0x65])](_0x349157)[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>_0x275cf7);}async function _0x5f2a4e(){if(await _0x1f7fc8,_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4f8136=_0x551836[_0x10f45c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c71d6=_0x551836[_0x10f45c([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])](_0x4f8136[_0x10f45c([0x69,0x64])]),_0x5db9c4=_0x47cabe(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5db9c4[_0x10f45c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4f8136['id'],_0x2c71d6?_0x2c71d6['id']:null,!0x0),_0x5db9c4[_0x10f45c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5db9c4[_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5db9c4[_0x10f45c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x222a13,void(_0x5db9c4[_0x10f45c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x222a13);}if(_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x42a7cb=_0x47cabe(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x42a7cb[_0x10f45c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x42a7cb[_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x42a7cb[_0x10f45c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x222a13,_0x42a7cb[_0x10f45c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x222a13;}_0x3b123a[_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10f45c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x222a13,_0x3b123a[_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10f45c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x222a13,_0x3b123a[_0x10f45c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16644a(){return _0x2855a5(_0x10f45c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47cabe(_0x10f45c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10f45c([0x73,0x74,0x61,0x74,0x65])]==_0x10f45c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f00b0(){return _0x2855a5(_0x10f45c([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 _0x2521b3(){return _0x2855a5(_0x10f45c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48d86d(_0x345738){const _0x19dea9=_0x10e053();_0x3b123a[_0x19dea9]=_0x10f45c([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])+_0x345738,_0x345738[_0x10f45c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x10f45c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x10e053()]=_0x2101d5),_0x345738!=_0x10f45c([0x56,0x61,0x6c,0x69,0x64])&&_0x5f2a4e();}function _0x10e053(){const _0x3a0fff=window[_0x10f45c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10f45c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10f45c([0x6e,0x6f,0x77])]())[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10f45c([0x2e]),'');let _0x29f62a=_0x10f45c([0x51]);for(let _0xd1fc46=0x0;_0xd1fc46<_0x3a0fff[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd1fc46+=0x2){let _0x99ba9=window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a0fff[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd1fc46,_0xd1fc46+0x2));_0x99ba9>=_0x450ce4[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x99ba9-=_0x450ce4[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29f62a+=_0x450ce4[_0x99ba9];}return _0x29f62a;}function _0x24e6e2(){const _0xf03cbf=_0x431e90[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e]));if(0x3!=_0xf03cbf[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x173c16(_0xf03cbf[0x1]);function _0x173c16(_0x1e1c5a){const _0x10b758=_0x4ba05e(_0x1e1c5a);return _0x10b758&&_0x197a06()?_0x10b758:null;function _0x197a06(){const _0xe5b4d2=_0x10b758[_0x10f45c([0x6a,0x74,0x69])],_0x1ca1b9=window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe5b4d2[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe5b4d2[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ba80b={..._0x10b758,[_0x10f45c([0x6a,0x74,0x69])]:_0xe5b4d2[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe5b4d2[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ba80b[_0x10f45c([0x76,0x63])],_0x16fe08(_0x4ba80b)==_0x1ca1b9;}}}async function _0x27aae0(){let _0x316fe0=!0x0;try{const _0x2c25b9=_0x431e90[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e])),[_0x56e6ee,_0x4c00e7,_0xe6de4d]=_0x2c25b9;return _0x214d6e(_0x56e6ee),await _0x2ce614(_0x56e6ee,_0x4c00e7,_0xe6de4d),_0x316fe0;}catch(_0x533e93){return!0x1;}function _0x214d6e(_0x49a45d){const _0x1e2dbd=_0x4ba05e(_0x49a45d);_0x1e2dbd&&_0x1e2dbd[_0x10f45c([0x61,0x6c,0x67])]==_0x10f45c([0x45,0x53,0x32,0x35,0x36])||(_0x316fe0=!0x1);}async function _0x2ce614(_0x526a2b,_0x46cb54,_0x26a087){const _0x30b678=window[_0x10f45c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10f45c([0x66,0x72,0x6f,0x6d])](_0x42c945(_0x26a087),_0xbab911=>_0xbab911[_0x10f45c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7e9184=new window[(_0x10f45c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10f45c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x526a2b+_0x10f45c([0x2e])+_0x46cb54),_0x26001a=window[_0x10f45c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10f45c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26001a)return;const _0x22b545=await _0x26001a[_0x10f45c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10f45c([0x6a,0x77,0x6b]),_0x5bb0d2,{[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x45,0x43,0x44,0x53,0x41]),[_0x10f45c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10f45c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26001a[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x45,0x43,0x44,0x53,0x41]),[_0x10f45c([0x68,0x61,0x73,0x68])]:{[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22b545,_0x30b678,_0x7e9184)||(_0x316fe0=!0x1);}}function _0x4ba05e(_0x155c9c){return _0x155c9c[_0x10f45c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10f45c([0x65,0x79]))?JSON[_0x10f45c([0x70,0x61,0x72,0x73,0x65])](_0x42c945(_0x155c9c)):null;}function _0x42c945(_0x7a2f43){return window[_0x10f45c([0x61,0x74,0x6f,0x62])](_0x7a2f43[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10f45c([0x2b]))[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10f45c([0x2f])));}function _0x16fe08(_0x39ab53){let _0xd8abc0=0x1505;function _0x5ae964(_0x165715){for(let _0x3927df=0x0;_0x3927df<_0x165715[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3927df++){const _0x53448f=_0x165715[_0x10f45c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3927df);_0xd8abc0=(_0xd8abc0<<0x5)+_0xd8abc0+_0x53448f,_0xd8abc0&=_0xd8abc0;}}function _0x450573(_0x43f5bf){Array[_0x10f45c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43f5bf)?_0x43f5bf[_0x10f45c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x450573):_0x43f5bf&&typeof _0x43f5bf==_0x10f45c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10f45c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43f5bf)[_0x10f45c([0x73,0x6f,0x72,0x74])]()[_0x10f45c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10fde5,_0x4dbf5c])=>{_0x5ae964(_0x10fde5),_0x450573(_0x4dbf5c);}):_0x5ae964(window[_0x10f45c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43f5bf));}return _0x450573(_0x39ab53),_0xd8abc0>>>0x0;}function _0x713aa1(_0x193470){return _0x193470[_0x10f45c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10f45c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10f45c([0x30]));}function _0x5c82d8(_0x41aa48){return _0x41aa48[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10f45c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10f45c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2855a5(_0x5ace4f){return _0x3b123a[_0x10f45c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10f45c([0x68,0x61,0x73])](_0x5ace4f);}function _0x47cabe(_0x4b276d){return _0x3b123a[_0x10f45c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10f45c([0x67,0x65,0x74])](_0x4b276d);}function _0x222a13(){}function _0x10f45c(_0x2c3b30){return _0x2c3b30['map'](_0x3ea0ae=>String['fromCharCode'](_0x3ea0ae))['join']('');}_0x48d86d(await _0x1db466());}(this);}['createRevision'](_0x315d83){const _0x2953c5=this['editor']['plugins']['get']('Users');return new a({'id':_0x315d83['id'],'name':_0x315d83['name'],'creator':_0x315d83['creatorId']?_0x2953c5['getUser'](_0x315d83['creatorId']):null,'diffData':_0x315d83['diffData']||_0x315d83['data'],'authors':_0x315d83['authorsIds']['map'](_0x242266=>_0x2953c5['getUser'](_0x242266)),'createdAt':new Date(_0x315d83['createdAt']),'attributes':_0x315d83['attributes'],'fromVersion':_0x315d83['fromVersion'],'toVersion':_0x315d83['toVersion']});}['addRevision'](_0x4f7d36,_0x3b1625=0x0){this['_revisions']['add'](_0x4f7d36,_0x3b1625);}['getRevision'](_0x1ac887){return this['_revisions']['get'](_0x1ac887);}['getRevisions'](_0x37cf63={'toJSON':!0x1}){const _0x2f996a=Array['from'](this['_revisions']);return _0x2f996a['reverse'](),_0x37cf63['toJSON']?_0x2f996a['map'](_0x24f0ed=>_0x24f0ed['toJSON']()):_0x2f996a;}['getIndex'](_0x2bb42d){return this['_revisions']['getIndex'](_0x2bb42d);}['getEarlierVisibleRevision'](_0x5b7739){const [,_0x50af33]=this['getRevisionsIterator'](_0x5b7739,{'direction':'earlier'});return _0x50af33;}['getLaterVisibleRevision'](_0x29619b){const [,_0x4f1813]=this['getRevisionsIterator'](_0x29619b,{'direction':'later'});return _0x4f1813;}['getRevisionsInDiff'](_0x190bdd){const _0x2fa009=[];for(const _0x5dc9d2 of this['getRevisionsIterator'](_0x190bdd['newRevisionId']))if(_0x2fa009['push'](_0x5dc9d2),_0x5dc9d2['id']===_0x190bdd['oldRevisionId'])break;return _0x2fa009;}*['getRevisionsIterator'](_0x25effd,{direction:_0x1faf02='earlier',filter:_0x342c45=()=>!0x0}={}){const _0x579dff='earlier'===_0x1faf02?0x1:-0x1;let _0x50756d=this['_revisions']['get'](_0x25effd),_0x31c8ae=this['getIndex'](_0x50756d);for(yield _0x50756d;_0x50756d;){if(_0x31c8ae+=_0x579dff,_0x50756d=this['getRevision'](_0x31c8ae),!_0x50756d)return;_0x342c45(_0x50756d)&&(yield _0x50756d);}}}function R(_0x33c01e,_0x398767,_0x17af00){const t=_0x33c01e['t'];switch(_0x398767){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'},_0x17af00);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x17af00);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':_0x5db352,'a':_0x155cb1,'e':_0x132f51,'r':_0x3a6d20,'u':_0x29a5ef};class l extends _0x3aa790{['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[_0x360c10,j,_0x50e21d];}constructor(_0x31bfbd){super(_0x31bfbd),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 _0x2bbf95=_0x202f37();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2bbf95},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 _0x1a84b6=this['repository']['getRevision'](0x0),_0x222ee2=_0x1a84b6&&null===_0x1a84b6['creator']?_0x1a84b6:null;if(this['_continueCurrentRevision']=!!_0x222ee2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54a7d1=this['_source']['getCurrentRevisionId'](),_0x18a8a2=this['repository']['getRevision'](_0x54a7d1);if(_0x18a8a2)this['_startingVersion']=_0x18a8a2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1e3c80=this['_source']['history']['_operations']['find'](_0xd278d5=>!_0xd278d5['_isInit']),_0x5eb685=_0x1e3c80?_0x1e3c80['baseVersion']:this['_source']['history']['version'];_0x1a84b6?(_0x1a84b6['toVersion']<_0x5eb685&&_0x1a84b6['_update']({'toVersion':_0x5eb685}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id'],this['_startingVersion']=_0x222ee2['fromVersion']):(this['_startingVersion']=_0x1a84b6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5eb685,this['_continueCurrentRevision']=!0x1);}}else _0x222ee2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x222ee2['toVersion'],this['editor']['model']['document']['history']['version']),_0x222ee2['fromVersion']===_0x222ee2['toVersion']?(0x0!==_0x222ee2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id'],this['_startingVersion']=_0x222ee2['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',_0x2413a1=>!_0x2413a1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c749c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ea250;for(const _0xe8e30a in _0x5c749c){const _0x48b74d=_0xe8e30a,_0x2ab3ae=_0x5c749c[_0x48b74d];if('revisionHistoryLicenseKeyValid'==_0x2ab3ae||'revisionHistoryLicenseKeyInvalid'==_0x2ab3ae||'revisionHistoryLicenseKeyExpired'==_0x2ab3ae||'revisionHistoryLicenseKeyDomainLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyNotAllowed'==_0x2ab3ae||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyTrialLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyUsageLimit'==_0x2ab3ae){delete _0x5c749c[_0x48b74d],_0x5ea250=_0x2ab3ae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5ea250&&_0x5c749c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5ea250&&_0x5c749c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5ea250&&_0x5c749c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x16319e=this['repository']['getRevision'](0x0),_0x4122fe=await this['getRevisionDocumentData'](_0x16319e),_0x34c8da=await this['getRevisionRootsAttributes'](_0x16319e);this['_replaceEditorDataWithRevisionData'](_0x4122fe,_0x34c8da);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23ccd2){this['_source']=_0x23ccd2;}async['update'](){const _0x585923=await this['_source']['getLatestVersion']();if(_0x585923>this['currentRevision']['toVersion']){await this['_loadState']();const _0x524113=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x585923});_0x524113['authors']=_0x524113['authorsIds']['map'](_0x289756=>this['editor']['plugins']['get']('Users')['getUser'](_0x289756)),this['currentRevision']['_update'](_0x524113);}}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'](_0x5ce110={},_0x7153c2=null){const _0x1422cd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x7153c2>this['currentRevision']['toVersion']&&(_0x7153c2=null),null===_0x7153c2&&(_0x7153c2=await this['_source']['getLatestVersion']());const _0x112a62=this['_getFromVersion'](_0x7153c2),_0x22bde2=this['buildRevisionData']({'from':_0x112a62,'to':_0x7153c2});if(this['currentRevision']['toVersion']<_0x7153c2){const _0x4ec767=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x7153c2,'to':_0x7153c2});_0x4ec767['authors']=[],_0x4ec767['authorsIds']=[],_0x4ec767['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ec767,!0x0),delete _0x4ec767['authors'],_0x1422cd['push'](_0x4ec767);}_0x5ce110['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ce110['name']=_0x5ce110['name']||null,_0x5ce110['id']=_0x5ce110['id']||_0x202f37(),_0x5ce110={..._0x5ce110,..._0x22bde2};const _0x56363c=this['addRevisionData'](_0x5ce110);_0x1422cd['push'](_0x5ce110);const _0x3e86a9=this['repository']['getIndex'](_0x56363c);if(0x0!==_0x3e86a9){const _0x511865=this['repository']['getRevision'](_0x3e86a9-0x1);if(_0x511865['fromVersion']!==_0x7153c2){const _0x5c75cf=this['_revisionDataBuilder']['getData'](_0x7153c2,_0x511865['toVersion']),_0x33ec01={'id':_0x511865['id'],'diffData':_0x5c75cf['diffData'],'authorsIds':_0x5c75cf['authorsIds'],'authors':_0x5c75cf['authorsIds']['map'](_0x456719=>this['editor']['plugins']['get']('Users')['getUser'](_0x456719)),'fromVersion':_0x7153c2};_0x511865===this['currentRevision']&&(_0x33ec01['createdAt']=new Date(_0x5ce110['createdAt']['getTime']()+0xa)),_0x511865['_update'](_0x33ec01,!0x0),delete _0x33ec01['authors'],_0x1422cd['push'](_0x33ec01);}}if(this['adapter']){for(const _0x5393d9 of _0x1422cd)this['_bufferUpdate'](_0x5393d9['id'],_0x5393d9,!0x0);this['sendBufferedUpdates']();}return _0x56363c;}['addRevisionData'](_0x1f0714){const _0x206d8f=this['repository']['createRevision'](_0x1f0714);return this['adapter']&&_0x206d8f['on']('_update',(_0x5302e7,_0x513b7a,_0x241845)=>{_0x241845||(this['_bufferUpdate'](_0x513b7a['id'],_0x513b7a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x206d8f,this['_findInsertionIndex'](_0x206d8f)),_0x206d8f;}async['getRevisionDocumentData'](_0x4390a0){await this['_loadRevisionData'](_0x4390a0);const _0xf99785={};for(const _0x1fe005 in _0x4390a0['diffData']){if(_0x4390a0['diffData'][_0x1fe005]['attachChange']&&!_0x4390a0['diffData'][_0x1fe005]['attachChange']['isAttached'])continue;const _0x4a1831=this['_removeRevisionMarkers'](JSON['parse'](_0x4390a0['diffData'][_0x1fe005]['insertions'])),_0x5a26a7=this['editor']['editing']['view']['document'],_0x4de027=new _0x4d810b(_0x5a26a7,_0x4a1831['map'](_0x2a9529=>V(_0x2a9529,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xf99785[_0x1fe005]=this['editor']['data']['processor']['toData'](_0x4de027),this['editor']['data']['processor']['useFillerType']('default');}return _0xf99785;}async['getRevisionRootsAttributes'](_0x29759d){await this['_loadRevisionData'](_0x29759d);const _0x3a86a2={};for(const _0x1105b8 in _0x29759d['diffData'])_0x29759d['diffData'][_0x1105b8]['attachChange']&&!_0x29759d['diffData'][_0x1105b8]['attachChange']['isAttached']||(_0x3a86a2[_0x1105b8]=_0x29759d['diffData'][_0x1105b8]['attributesAfter']||{});return _0x3a86a2;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1282a3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2a7896=0x0;_0x2a7896<_0x1282a3['length'];_0x2a7896++){const _0x588173=_0x1282a3[_0x2a7896];let _0x56a995=!0x1;for(const _0x5948c8 of Object['keys'](_0x588173))void 0x0===_0x588173[_0x5948c8]?delete _0x588173[_0x5948c8]:'id'!==_0x5948c8&&(_0x56a995=!0x0);_0x56a995||(_0x1282a3[_0x2a7896]=null);}if(_0x1282a3=_0x1282a3['filter'](_0x5a45df=>null!==_0x5a45df),!_0x1282a3['length'])return;for(let _0x1dcf95=0x0;_0x1dcf95<_0x1282a3['length'];_0x1dcf95++){const _0x33dd54=_0x1282a3[_0x1dcf95];void 0x0!==_0x33dd54['fromVersion']&&void 0x0===_0x33dd54['toVersion']&&(_0x33dd54['toVersion']=this['repository']['getRevision'](_0x33dd54['id'])['toVersion']),void 0x0!==_0x33dd54['toVersion']&&void 0x0===_0x33dd54['fromVersion']&&(_0x33dd54['fromVersion']=this['repository']['getRevision'](_0x33dd54['id'])['fromVersion']);}const _0x1b50cc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1282a3,_0x1b50cc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ca70e=>{if(_0x2ca70e){for(const _0x5cc9f0 of _0x2ca70e)this['setRevisionData']({'id':_0x5cc9f0['id'],'createdAt':_0x5cc9f0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x545d12,_0x2020ab){let _0x5d842a=this['editor']['config']['get']('initialData'),_0x4b60ad=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5d842a){_0x5d842a={};for(const _0x3aa50a of this['editor']['model']['document']['getRootNames']())_0x5d842a[_0x3aa50a]='';}if('string'==typeof _0x5d842a&&(_0x5d842a={'main':_0x5d842a}),void 0x0===_0x4b60ad){_0x4b60ad={};for(const _0x58f7d0 of this['editor']['model']['document']['getRootNames']())_0x4b60ad[_0x58f7d0]={};}let _0x52418d=!0x1;const _0xbe2a97=Object['keys'](_0x5d842a),_0x91ff6c=Object['keys'](_0x545d12);for(const _0x169951 of _0xbe2a97){if(_0x5d842a[_0x169951]!==_0x545d12[_0x169951]&&''!==_0x5d842a[_0x169951]['trim']()){_0x52418d=!0x0;break;}if(!_0x500e6b(_0x4b60ad[_0x169951],_0x2020ab[_0x169951])&&Object['keys'](_0x4b60ad[_0x169951])['length']>0x0){_0x52418d=!0x0;break;}}_0x52418d||(_0x52418d=_0x91ff6c['some'](_0x101f85=>!this['editor']['model']['document']['getRoot'](_0x101f85))),_0x52418d&&_0x2e5377('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5d842a,'editorRootsAttributes':_0x4b60ad,'revisionData':_0x545d12,'revisionRootsAttributes':_0x2020ab}),this['editor']['config']['set']('initialData',_0x545d12),this['editor']['config']['set']('rootsAttributes',_0x2020ab);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x45ef2c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x45ef2c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x80fabd){const _0x2bc4a2=this['repository']['getRevisions']();_0x2bc4a2['reverse']();let _0x25f31b=0x0;for(;_0x25f31b<_0x2bc4a2['length'];){const _0x1115f1=_0x2bc4a2[_0x25f31b];if(_0x1115f1===this['currentRevision']){_0x25f31b++;continue;}if(_0x1115f1['id']===this['_initialRevisionId'])break;const _0x460c1d=_0x80fabd['toVersion']-_0x1115f1['toVersion']||_0x80fabd['fromVersion']-_0x1115f1['fromVersion'];if(_0x460c1d>0x0)break;if(_0x460c1d<0x0)_0x25f31b++;else{if(!_0x80fabd['creator']&&_0x1115f1['creator'])break;if(_0x1115f1['creator']||!_0x80fabd['creator']){if(_0x80fabd['createdAt']>_0x1115f1['createdAt'])break;_0x25f31b++;}else _0x25f31b++;}}return _0x25f31b;}['setRevisionData'](_0x3c63f7){const _0x5c3e5f=this['repository']['getRevision'](_0x3c63f7['id']);if(_0x3c63f7['createdAt']&&(_0x3c63f7['createdAt']=new Date(_0x3c63f7['createdAt'])),_0x3c63f7['authorsIds']){const _0x1d2dcb=this['editor']['plugins']['get']('Users');_0x3c63f7['authors']=_0x3c63f7['authorsIds']['map'](_0x30f349=>_0x1d2dcb['getUser'](_0x30f349));}_0x5c3e5f['_update'](_0x3c63f7,!0x0);}['buildRevisionData']({revision:_0x516579=null,from:_0x15eb4a=null,to:_0x507c09=null}){_0x15eb4a=null!==_0x15eb4a?_0x15eb4a:_0x516579['fromVersion'],_0x507c09=null!==_0x507c09?_0x507c09:_0x516579['toVersion'];const _0x58d2f4=this['_revisionDataBuilder']['getData'](_0x15eb4a,_0x507c09),_0x37d1f4={'diffData':_0x58d2f4['diffData'],'authorsIds':_0x58d2f4['authorsIds'],'fromVersion':_0x15eb4a,'toVersion':_0x507c09};if(!_0x516579||_0x507c09!==_0x516579['toVersion']){const _0x5e3829=_0x507c09-0x1,_0x3ee8be=this['_source']['history']['getOperation'](_0x5e3829);_0x37d1f4['createdAt']=_0x3ee8be&&_0x3ee8be['createdAt']||new Date();}if(this['_loadedStateData']&&_0x15eb4a===this['_loadedStateData']['fromVersion']){for(const _0x50ac23 of this['_loadedStateData']['authors'])_0x37d1f4['authorsIds']['includes'](_0x50ac23['id'])||_0x37d1f4['authorsIds']['push'](_0x50ac23['id']);}return _0x37d1f4;}['_loadRevisionData'](_0x219d99){if(!_0x219d99||_0x219d99['diffData'])return Promise['resolve']();{const _0x28c7bb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28c7bb,'revisionId':_0x219d99['id']})['then'](_0x210660=>{_0x219d99['diffData']=_0x210660['diffData'];});}}['_bufferUpdate'](_0x19bc2e,_0x267288,_0x39e4d6){if(this['_bufferedUpdates']['has'](_0x19bc2e)){const _0xdc742d=this['_bufferedUpdates']['get'](_0x19bc2e);_0x267288=_0x39e4d6?{..._0xdc742d,..._0x267288}:{..._0x267288,..._0xdc742d};}this['_bufferedUpdates']['set'](_0x19bc2e,_0x267288);}['_getFromVersion'](_0x1df59e){const _0x12122c=this['repository']['getRevisions']();_0x12122c['reverse'](),_0x12122c['shift']();const _0x233b8e=_0x12122c['find'](_0x3ba47c=>_0x3ba47c['toVersion']<=_0x1df59e)['toVersion'];return _0x233b8e<this['_startingVersion']?this['_startingVersion']:_0x233b8e;}['_createInitialRevision'](_0x2c9e4d){const _0x5df6c3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5df6c3)this['_initialRevisionId']=_0x5df6c3['id'];else{const _0x43a0e7=!this['editor']['model']['document']['roots']['find'](_0x513bd1=>this['editor']['model']['hasContent'](_0x513bd1)),_0x1157ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x9cfa2e=R(this['editor']['locale'],_0x43a0e7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2c9e4d,'to':_0x2c9e4d,'id':this['_initialRevisionId'],'name':_0x9cfa2e,'creatorId':_0x1157ac});}}['_createCurrentRevision'](_0x52f90f){const _0x5cf320=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5cf320),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x52f90f,'to':_0x52f90f,'id':_0x5cf320,'name':'','creatorId':null}));}['_makeRevision']({name:_0x37d9b8,from:_0x1688ad,to:_0x2da4bd,creatorId:_0x15c7ac,id:_0x3db135}){const _0x206656=this['buildRevisionData']({'from':_0x1688ad,'to':_0x2da4bd});_0x206656['name']=_0x37d9b8,_0x206656['creatorId']=_0x15c7ac,_0x206656['id']=_0x3db135;const _0x9169b1=this['addRevisionData'](_0x206656);return this['adapter']&&this['_bufferUpdate'](_0x206656['id'],_0x206656,!0x0),_0x9169b1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3deca7){return(_0x3deca7=_0x3deca7['filter'](_0x497411=>!_0x497411['name']||'revision-start'!==_0x497411['name']&&'revision-end'!==_0x497411['name']))['forEach'](_0x455b4a=>{'string'!=typeof _0x455b4a&&(_0x455b4a['children']=this['_removeRevisionMarkers'](_0x455b4a['children']),_0x455b4a['attributes']=_0x455b4a['attributes']['filter'](_0x31698e=>!_0x31698e[0x0]['startsWith']('data-revision-')));}),_0x3deca7;}}function V(_0xbc3e2c,_0x53b186){const _0x166140=_0x53b186['editing']['view']['document'];if('string'==typeof _0xbc3e2c)return new _0x20f6dc(_0x166140,_0xbc3e2c);{const _0x4b46d9=_0xbc3e2c['children']['map'](_0x38d974=>V(_0x38d974,_0x53b186));return new(C[_0xbc3e2c['type']]||_0x1ed3de)(_0x166140,_0xbc3e2c['name'],_0xbc3e2c['attributes'],_0x4b46d9);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1f1d68){this['editor']=_0x1f1d68,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'](_0x2bcd95){this['source']=_0x2bcd95;const _0x2e1d7a=new Map(),_0x2f2fcb=new Map(),_0x1235b1=this['editor']['model']['document']['roots']['map'](_0x870b93=>_0x870b93['rootName']);for(const _0x266eaa of _0x1235b1){const _0x48b834=this['editor']['model']['document']['getRoot'](_0x266eaa),_0x29d550=F(_0x48b834);_0x2e1d7a['set'](_0x266eaa,_0x29d550),_0x2f2fcb['set'](_0x266eaa,Object['fromEntries'](_0x48b834['getAttributes']()));}const _0x538ea2=Array['from'](this['editor']['model']['markers'])['map'](_0x15d668=>[_0x15d668['name'],_0x15d668['getRange']()]),_0xb3b340=this['source']['version'];this['_saveMetaData'](_0xb3b340,_0x2e1d7a,_0x538ea2,_0x2f2fcb),this['_startingRevisionId']=this['_revisionId'];const _0xa8dd86=new Map(),_0x3a30cc=new Map();for(const _0x40c4db of _0x1235b1){const _0x1b564b=B(_0x40c4db);_0xa8dd86['set'](_0x40c4db,_0x1b564b),_0x3a30cc['set'](_0x40c4db,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa8dd86,[],_0x3a30cc);}['getData'](_0x234f82,_0x24ce4b){if(this['_lastFrom']===_0x234f82&&this['_lastTo']<=_0x24ce4b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x24ce4b,!0x0);else{if(!this['_savedMetaData']['has'](_0x234f82)){const _0x3ddbe2=this['_getPreviousFrom'](_0x234f82);this['_calculateMetaData'](_0x3ddbe2,_0x234f82,!0x1);}this['_calculateMetaData'](_0x234f82,_0x24ce4b,!0x0);}return this['_lastFrom']=_0x234f82,this['_lastTo']=_0x24ce4b,this['_getState']();}['loadState'](_0x58d294){this['_reset'](),this['_lastFrom']=_0x58d294['fromVersion'],this['_lastTo']=_0x58d294['toVersion'];for(const _0x792b91 in _0x58d294['diffData']){const _0x15f984=_0x58d294['diffData'][_0x792b91]['attachChange'],_0x1fb85c=_0x1f0012(_0x58d294['diffData'][_0x792b91]['attributesBefore'])||{},_0x9e834b=this['_makeModelFromViewString'](_0x58d294['diffData'][_0x792b91]['deletions']);_0x9e834b['rootName']=_0x792b91,_0x9e834b['_isAttached']=!_0x15f984||!_0x15f984['isAttached'],_0x9e834b['isAttached']=()=>_0x9e834b['_isAttached'],this['_baseRoots']['set'](_0x792b91,_0x9e834b),this['_baseRootsAttributes']['set'](_0x792b91,_0x1fb85c),_0x15f984&&this['_touchedRoots']['set'](_0x792b91,_0x15f984);const _0x4913f2=this['_makeIdsRoot'](_0x9e834b);this['_baseIdsRoots']['set'](_0x792b91,_0x4913f2);for(const [_0x4b193d,_0x24f5bd]of _0x9e834b['markers']){if(!_0x4b193d['startsWith']('revision:'))continue;const _0x4e97b6=_0x4b193d['split'](':')[0x2];for(const _0x55d168 of _0x24f5bd['getWalker']({'singleCharacters':!0x0})){const _0x366f1d=this['_getVidAttributeName'](_0x55d168),_0x1b729e='elementEnd'==_0x55d168['type']?_0x55d168['previousPosition']['path']['slice'](0x0,-0x1):_0x55d168['previousPosition']['path'],_0xf8a2ac=_0x4913f2['getNodeByPath'](_0x1b729e)['getAttribute'](_0x366f1d);this['_touched']['set'](_0xf8a2ac,{'userId':_0x4e97b6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x339554=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1e7a7d=>!this['_touched']['has'](_0x1e7a7d));let _0x3cf5a6=0x0;const _0x112405=new Map();for(const _0x45895b in _0x58d294['diffData']){const _0x35150a=_0x58d294['diffData'][_0x45895b]['attachChange'],_0x1bd0aa=_0x1f0012(_0x58d294['diffData'][_0x45895b]['attributesAfter'])||{},_0x447f36=this['_makeModelFromViewString'](_0x58d294['diffData'][_0x45895b]['insertions']);_0x447f36['rootName']=_0x45895b,_0x447f36['_isAttached']=!_0x35150a||_0x35150a['isAttached'],_0x447f36['isAttached']=()=>_0x447f36['_isAttached'],this['_diffRoots']['set'](_0x45895b,_0x447f36),this['_diffRootsAttributes']['set'](_0x45895b,_0x1bd0aa);const _0x18f07c=this['_makeIdsRoot'](_0x447f36,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x45895b,_0x18f07c),_0x112405['set'](_0x45895b,_0x447f36['isAttached']()?_0x1bd0aa:{});for(const [_0x213842,_0x297d18]of _0x447f36['markers']){if(!_0x213842['startsWith']('revision:'))continue;const _0x2905b6=_0x213842['split'](':')[0x2];for(const _0x43e39c of _0x297d18['getWalker']({'singleCharacters':!0x0})){const _0x4c682e=this['_getVidAttributeName'](_0x43e39c),_0xdbe2c9=this['_revisionId']++,_0x367413='elementEnd'==_0x43e39c['type']?_0x43e39c['previousPosition']['path']['slice'](0x0,-0x1):_0x43e39c['previousPosition']['path'];_0x18f07c['getNodeByPath'](_0x367413)['_setAttribute'](_0x4c682e,_0xdbe2c9),this['_touched']['set'](_0xdbe2c9,{'userId':_0x2905b6});}}for(const _0x43900f of this['editor']['model']['createRangeIn'](_0x447f36)['getWalker']({'singleCharacters':!0x0})){const _0x2b30b9=this['_getVidAttributeName'](_0x43900f),_0x52036a='elementEnd'==_0x43900f['type']?_0x43900f['previousPosition']['path']['slice'](0x0,-0x1):_0x43900f['previousPosition']['path'],_0x56cd08=_0x18f07c['getNodeByPath'](_0x52036a);_0x56cd08['getAttribute'](_0x2b30b9)>0x0||_0x56cd08['_setAttribute'](_0x2b30b9,_0x339554[_0x3cf5a6++]);}for(const [_0x2d7a23,_0x508693]of _0x447f36['markers'])_0x2d7a23['startsWith']('revision:')||this['_markers']['set'](_0x2d7a23,_0x508693);}const _0x38b59f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x38b59f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x38b59f,0x1));const _0x12c6d0=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x12c6d0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12c6d0,0x1));const _0x3f1da8=Array['from'](this['_diffRoots'])['map'](([_0x566b74,_0x16ffe7])=>[_0x566b74,F(_0x16ffe7)]);this['_saveMetaData'](this['_lastTo'],_0x3f1da8,this['_markers'],_0x112405);}['_makeModelFromViewString'](_0x50ad40){const _0x8b934e=JSON['parse'](_0x50ad40),_0x4f4b05=this['editor']['editing']['view']['document'],_0x23e0a9=new _0x4d810b(_0x4f4b05,_0x8b934e['map'](_0xaef557=>V(_0xaef557,this['editor'])));return this['editor']['data']['toModel'](_0x23e0a9);}['_saveMetaData'](_0x338590,_0x388beb,_0x88bb25,_0x195a81){const _0x54dbb0=new Map(_0x388beb),_0x21b8c6=new Map(_0x1f0012(_0x195a81)),_0x36de54=new Map();for(const [_0x3950ac,_0x268f2e]of _0x88bb25)_0x36de54['set'](_0x3950ac,{'start':_0x268f2e['start']['clone'](),'end':_0x268f2e['end']['clone'](),'rootName':_0x268f2e['root']['rootName']});this['_savedMetaData']['set'](_0x338590,{'roots':_0x54dbb0,'markers':_0x36de54,'rootsAttributes':_0x21b8c6});}['_removeMetaData'](_0x35fa83){this['_savedMetaData']['delete'](_0x35fa83);}['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'](_0xc3bc48,_0x36744c=null){let _0x56ac78=null;_0xc3bc48['is']('documentFragment')||(_0x56ac78=new ft(_0xc3bc48['name'],{'vid_start':null===_0x36744c?this['_revisionId']++:_0x36744c++}));const _0x1d7d0d=[];for(const _0x5c589a of _0xc3bc48['getChildren']())if(_0x5c589a['is']('element')){_0x1d7d0d['push'](this['_makeIdsRoot'](_0x5c589a,_0x36744c));const _0x2a10d9=_0x1d7d0d[_0x1d7d0d['length']-0x1];null!==_0x36744c&&(_0x36744c=_0x2a10d9['is']('element','$text')?_0x2a10d9['getAttribute']('vid')+0x1:_0x2a10d9['getAttribute']('vid_end')+0x1);}else{for(let _0x485707=0x0;_0x485707<_0x5c589a['offsetSize'];_0x485707++)_0x1d7d0d['push'](new ft('$text',{'vid':null===_0x36744c?this['_revisionId']++:_0x36744c++}));}if(_0xc3bc48['is']('documentFragment')){const _0x367bfc=B(_0xc3bc48['rootName']);return _0x367bfc['_insertChild'](0x0,_0x1d7d0d),_0x367bfc;}return _0x56ac78['_setAttribute']('vid_end',null===_0x36744c?this['_revisionId']++:_0x36744c++),_0x56ac78['_insertChild'](0x0,_0x1d7d0d),_0x56ac78;}['_calculateMetaData'](_0x4389e8,_0x1154e0,_0x47e0b0){this['_reset']();const {roots:_0x1b6c18,markers:_0x40a5c1,rootsAttributes:_0x12798a}=this['_savedMetaData']['get'](_0x4389e8);this['_baseRoots']=new Map(_0x1b6c18),this['_baseRootsAttributes']=new Map(_0x1f0012(_0x12798a));for(const [_0x73e444,_0x29c2f0]of this['_baseRoots'])if('$graveyard'!==_0x73e444&&(this['_diffRoots']['set'](_0x73e444,F(_0x29c2f0)),this['_diffRootsAttributes']=new Map(_0x1f0012(_0x12798a)),_0x47e0b0)){const _0x4daa4e=this['_revisionId'];this['_idsRoots']['set'](_0x73e444,this['_makeIdsRoot'](_0x29c2f0)),this['_baseIdsRoots']['set'](_0x73e444,this['_makeIdsRoot'](_0x29c2f0,_0x4daa4e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x47e0b0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3499f4,_0x500b2a]of _0x40a5c1){const _0x4f1528=this['_baseRoots']['get'](_0x500b2a['rootName']),_0x715068=this['_diffRoots']['get'](_0x500b2a['rootName']),_0x5533ca=new vt(this['_fixPosition'](_0x500b2a['start'],_0x4f1528),this['_fixPosition'](_0x500b2a['end'],_0x4f1528)),_0x114b2a=this['_fixRange'](_0x5533ca,_0x715068);_0x4f1528['markers']['set'](_0x3499f4,_0x5533ca),this['_markers']['set'](_0x3499f4,_0x114b2a);}this['_applyOperations'](_0x4389e8,_0x1154e0,_0x47e0b0);}['_applyOperations'](_0x2aa41b,_0x469307,_0x5be784){for(const _0x1a2cab of this['source']['getOperations'](_0x2aa41b,_0x469307))this['_handleOperation'](_0x1a2cab,_0x5be784);for(const _0x50404a of this['_diffRoots']['values']())_0x50404a['markers']['clear']();for(const [_0x3ef5b8,_0x292013]of this['_markers']){this['_diffRoots']['get'](_0x292013['root']['rootName'])['markers']['set'](_0x3ef5b8,_0x292013['clone']());}const _0x3deab3=new Map(),_0x507379=new Map();for(const [_0x555bf9,_0x172213]of this['_diffRoots'])_0x3deab3['set'](_0x555bf9,F(_0x172213)),_0x507379['set'](_0x555bf9,this['_diffRootsAttributes']['get'](_0x555bf9));this['_saveMetaData'](_0x469307,_0x3deab3,this['_markers'],_0x507379);}['_getPreviousFrom'](_0x12293c){const _0x4d4486=Array['from'](this['_savedMetaData']['keys']());_0x4d4486['sort']((_0x429d2d,_0x3bc8bd)=>_0x429d2d-_0x3bc8bd),_0x4d4486['reverse']();for(const _0x326b3d of _0x4d4486)if(_0x326b3d<_0x12293c)return _0x326b3d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x9d3355,_0x69232b){const _0x17c090=Array['from'](_0x69232b['markers'])['map'](([_0x1dd1e1,_0x33f81c])=>[_0x1dd1e1,this['_fixRange'](_0x33f81c,_0x9d3355)]);_0x9d3355['markers']=new Map(_0x17c090);}['_transformMarkers'](_0x496f52){for(const _0x561a29 of this['_markers']['values']()){const _0x316cca=_0x561a29['getTransformedByOperation'](_0x496f52),_0x186a39=vt['_createFromRanges'](_0x316cca);_0x561a29['start']=_0x186a39['start'],_0x561a29['end']=_0x186a39['end'];}}['_handleOperation'](_0xef81c9,_0x111596){if('addRoot'!=_0xef81c9['type']&&'detachRoot'!=_0xef81c9['type']){if('insert'==_0xef81c9['type']){const _0x4a5343=_0xef81c9['position']['root']['rootName'];this['_diffRoots']['has'](_0x4a5343)||(this['_diffRoots']['set'](_0x4a5343,B(_0x4a5343,!0x0)),this['_diffRootsAttributes']['set'](_0x4a5343,{}),_0x111596&&this['_idsRoots']['set'](_0x4a5343,B(_0x4a5343,!0x0)));}else{if('addRootAttribute'==_0xef81c9['type']||'removeRootAttribute'==_0xef81c9['type']||'changeRootAttribute'==_0xef81c9['type'])return void this['_handleRootAttributeOperation'](_0xef81c9);'marker'==_0xef81c9['type']&&this['_handleMarkerOperation'](_0xef81c9);}if('marker'!==_0xef81c9['type']){const _0x458846=this['_cloneOperation'](_0xef81c9,this['_diffRoots']);_0x458846['_execute'](),this['_transformMarkers'](_0x458846);}if(_0x111596)switch(_0xef81c9['type']){case'insert':this['_handleInsertOperation'](_0xef81c9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xef81c9);break;case'merge':this['_handleMergeOperation'](_0xef81c9);break;case'split':this['_handleSplitOperation'](_0xef81c9);}}else this['_handleRootOperation'](_0xef81c9,_0x111596);}['_cloneOperation'](_0x6812be,_0x5a2853){const _0x290b00=_0x6812be['clone']();return _0x290b00['_authorId']=_0x6812be['_authorId'],this['_fixOperation'](_0x290b00,_0x5a2853),_0x290b00;}['_getBaseVids'](_0x303cc8){return _0x303cc8['map'](_0x238cd5=>{const _0x145fc6=this['_getVidAttributeName'](_0x238cd5);return Number(_0x238cd5['item']['getAttribute'](_0x145fc6));});}['_generateTape'](_0x321c38,_0x22ad16){if(_0x321c38['is']('element','$text'))_0x22ad16['push']({'item':_0x321c38,'type':'text'});else{_0x321c38['is']('element')&&_0x22ad16['push']({'item':_0x321c38,'type':'elementStart'});for(const _0x1b5bc4 of _0x321c38['getChildren']())this['_generateTape'](_0x1b5bc4,_0x22ad16);_0x321c38['is']('element')&&_0x22ad16['push']({'item':_0x321c38,'type':'elementEnd'});}return _0x22ad16;}['_getState'](){const _0x17df0a=new Map(this['_touched']),_0x49dcdb=new Map(_0x17df0a),_0x1df5b4=new Map(),_0x17e2b7={'insertions':{},'deletions':{}},_0x508c76={'insertions':{},'deletions':{}},_0x29896f=new Map(),_0x4eab2f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4eab2f['delete']('$graveyard');for(const _0x2004d0 of _0x4eab2f){const _0x1d6421=this['_diffRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1),_0x406b1e=this['_baseRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1);_0x1d6421['isAttached']()||_0x406b1e['isAttached']()?(_0x17e2b7['insertions'][_0x2004d0]=F(_0x1d6421),_0x17e2b7['deletions'][_0x2004d0]=F(_0x406b1e),this['_copyMarkers'](_0x17e2b7['deletions'][_0x2004d0],_0x406b1e),this['_copyMarkers'](_0x17e2b7['insertions'][_0x2004d0],_0x1d6421),_0x508c76['insertions'][_0x2004d0]=this['_generateTape'](this['_idsRoots']['get'](_0x2004d0),[]),_0x508c76['deletions'][_0x2004d0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1),[])):_0x4eab2f['delete'](_0x2004d0);}for(const _0x4ef1b6 of _0x4eab2f){const _0x3aca3a=_0x508c76['insertions'][_0x4ef1b6];for(const _0x58e9e9 of _0x3aca3a){const _0x4d1be2=this['_getVidAttributeName'](_0x58e9e9),_0x306ead=_0x58e9e9['item']['getAttribute'](_0x4d1be2);_0x49dcdb['delete'](_0x306ead),_0x306ead>=this['_startingRevisionId']&&_0x1df5b4['set'](_0x306ead,_0x17df0a['get'](_0x306ead));}}for(const _0x8a86e3 of _0x4eab2f){const _0x25af12=_0x508c76['insertions'][_0x8a86e3],_0x4ed710=this['_getBaseVids'](_0x508c76['deletions'][_0x8a86e3]);let _0x247169=0x0;for(const _0x3d14d9 of _0x25af12){const _0x29235e=this['_getVidAttributeName'](_0x3d14d9),_0x10b1ef=_0x3d14d9['item']['getAttribute'](_0x29235e);if(!_0x1df5b4['has'](_0x10b1ef)&&!_0x29896f['has'](_0x10b1ef)){if(_0x49dcdb['has'](_0x10b1ef))_0x247169++;else{if(_0x10b1ef!=_0x4ed710[_0x247169]){const _0x19a6a3=_0x17df0a['get'](_0x10b1ef)||_0x17df0a['get'](_0x4ed710[_0x247169]);for(;_0x10b1ef!=_0x4ed710[_0x247169];)_0x49dcdb['has'](_0x4ed710[_0x247169])||(_0x29896f['set'](_0x4ed710[_0x247169],_0x19a6a3),_0x17df0a['set'](_0x4ed710[_0x247169],_0x19a6a3)),_0x247169++;}_0x247169++;}}}}for(const _0x4735bf of _0x4eab2f){const _0x20a9c2=_0x508c76['insertions'][_0x4735bf];for(const _0x458ddb of _0x20a9c2){const _0x5f24fb=this['_getVidAttributeName'](_0x458ddb),_0x36fc6a=_0x458ddb['item']['getAttribute'](_0x5f24fb);if(_0x29896f['has'](_0x36fc6a)){const _0x2c8032=_0x29896f['get'](_0x36fc6a);_0x49dcdb['has'](_0x36fc6a)||_0x49dcdb['set'](_0x36fc6a,{..._0x2c8032}),_0x1df5b4['set'](_0x36fc6a,{..._0x2c8032});}}}for(const _0x102345 of _0x49dcdb['keys']())_0x102345>=this['_startingRevisionId']&&_0x49dcdb['delete'](_0x102345);const _0x4effa7=new Map();for(const _0x33dc21 of _0x4eab2f){let _0x217a86=_0x508c76['insertions'][_0x33dc21];for(const _0x2e4c03 of _0x217a86)if(_0x2e4c03['item']['is']('element','tableCell')){const _0x4dd517=this['_getVidAttributeName'](_0x2e4c03),_0x569ce4=_0x2e4c03['item']['getAttribute'](_0x4dd517);if(_0x1df5b4['has'](_0x569ce4)){const _0x2e5825=_0x2e4c03['item']['parent']['parent']['getAttribute']('vid_start'),_0x3b011b=_0x4effa7['get'](_0x2e5825)||new Set();_0x3b011b['add'](_0x1df5b4['get'](_0x569ce4)['userId']),_0x4effa7['set'](_0x2e5825,_0x3b011b);}}_0x217a86=_0x508c76['deletions'][_0x33dc21];for(const _0x36e59d of _0x217a86)if(_0x36e59d['item']['is']('element','tableCell')){const _0x1e698f=this['_getVidAttributeName'](_0x36e59d),_0x2e9bf1=_0x36e59d['item']['getAttribute'](_0x1e698f);if(_0x49dcdb['has'](_0x2e9bf1)){const _0xe008d4=_0x36e59d['item']['parent']['parent']['getAttribute']('vid_start'),_0x436cc2=_0x4effa7['get'](_0xe008d4)||new Set();_0x436cc2['add'](_0x49dcdb['get'](_0x2e9bf1)['userId']),_0x4effa7['set'](_0xe008d4,_0x436cc2);}}for(const _0x6fdca of _0x4effa7['keys']())(_0x1df5b4['has'](_0x6fdca)||_0x49dcdb['has'](_0x6fdca))&&_0x4effa7['delete'](_0x6fdca);}for(const _0x4fcad3 of _0x4eab2f){const _0x204303=_0x508c76['insertions'][_0x4fcad3];let _0x945c66=null,_0x498143=null;for(const _0x3da5bb of _0x204303){const _0x1d6562=this['_getVidAttributeName'](_0x3da5bb),_0xe7ef39=_0x3da5bb['item']['getAttribute'](_0x1d6562),_0x5c4ac9=_0x4effa7['get'](_0xe7ef39);_0x5c4ac9&&'elementStart'==_0x3da5bb['type']&&(_0x945c66=Array['from'](_0x5c4ac9)[0x0],_0x498143=_0x3da5bb['item']['getAttribute']('vid_end')),_0x945c66&&(_0x49dcdb['set'](_0xe7ef39,{'userId':_0x945c66}),_0x1df5b4['set'](_0xe7ef39,{'userId':_0x945c66})),_0xe7ef39==_0x498143&&(_0x945c66=null,_0x498143=null);}}const _0x573d26={},_0x582696=new Set();for(const _0x3ab08c of _0x4eab2f){const _0x33ffec=_0x17e2b7['deletions'][_0x3ab08c],_0x2396d0=_0x17e2b7['insertions'][_0x3ab08c];for(const {userId:_0x286c56}of this['_touchedMarkers']['values']())null!==_0x286c56&&_0x582696['add'](_0x286c56);for(const {userId:_0x42233d}of this['_touchedRoots']['values']())null!==_0x42233d&&_0x582696['add'](_0x42233d);this['_markChanges'](_0x2396d0,_0x508c76['insertions'][_0x3ab08c],_0x1df5b4,'insertion',_0x582696),this['_markChanges'](_0x33ffec,_0x508c76['deletions'][_0x3ab08c],_0x49dcdb,'deletion',_0x582696),_0x573d26[_0x3ab08c]={'insertions':this['_prepareViewToSave'](_0x2396d0),'deletions':this['_prepareViewToSave'](_0x33ffec),'attachChange':this['_touchedRoots']['get'](_0x3ab08c)||null,'attributesBefore':_0x1f0012(this['_baseRootsAttributes']['get'](_0x3ab08c))||{},'attributesAfter':_0x1f0012(this['_diffRootsAttributes']['get'](_0x3ab08c))};}return{'diffData':_0x573d26,'authorsIds':Array['from'](_0x582696)};}['_processRootBeforeSave'](_0x5fda6f){for(const [,_0x556b44]of _0x5fda6f['markers']){const _0x4eab2e=_0x556b44['start']['getAncestors']()['filter'](_0x554e87=>'tableCell'==_0x554e87['name']);for(const _0xcee586 of _0x4eab2e)0x1==_0xcee586['childCount']&&_0xcee586['getChild'](0x0)['is']('element','paragraph')&&_0xcee586['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c86c9){this['_processRootBeforeSave'](_0x1c86c9);const _0x481f58=this['editor']['data']['toView'](_0x1c86c9,{}),_0x3a3dc0=Array['from'](_0x481f58['getChildren']())['map'](_0x286da8=>this['_getViewJson'](_0x286da8));return JSON['stringify'](_0x3a3dc0);}['_getViewJson'](_0x277175){if(_0x277175['is']('$text'))return _0x277175['data'];{const _0x383666=_0x277175;return{'type':Object['keys'](C)['find'](_0x1b1848=>_0x277175 instanceof C[_0x1b1848]),'name':_0x383666['name'],'attributes':Array['from'](_0x383666['getAttributes']()),'children':Array['from'](_0x383666['getChildren']())['map'](_0x14ddfd=>this['_getViewJson'](_0x14ddfd))};}}['_markChanges'](_0x93d15c,_0x37a303,_0x3f89d7,_0x1b29b1,_0xfbe048){let _0x2a340a=null,_0x1f64ce=null,_0x540175=0x0;const _0x28675c=this['editor']['model'];for(let _0x2baa8c=0x0;_0x2baa8c<_0x37a303['length'];_0x2baa8c++){const _0x52a127=this['_getVidAttributeName'](_0x37a303[_0x2baa8c]),_0x348da9=_0x37a303[_0x2baa8c]['item']['getAttribute'](_0x52a127),_0x2962d7=_0x3f89d7['get'](_0x348da9),_0x3159cc=_0x2baa8c==_0x37a303['length']-0x1;(!_0x2a340a&&_0x2962d7&&(_0x2a340a=_0x2962d7,_0x1f64ce=_0x37a303[_0x2baa8c]),_0x2a340a&&(!_0x2962d7||_0x2962d7['userId']!=_0x2a340a['userId']))&&(_0x1abd1a(_0x2962d7,J(_0x1f64ce,_0x93d15c,_0x28675c),J(_0x37a303[_0x2baa8c],_0x93d15c,_0x28675c)),_0x2a340a=_0x2962d7||null,_0x1f64ce=_0x2962d7?_0x37a303[_0x2baa8c]:null),_0x2a340a&&_0x3159cc&&_0x1abd1a(_0x2962d7,J(_0x1f64ce,_0x93d15c,_0x28675c),q(_0x37a303[_0x2baa8c],_0x93d15c,_0x28675c));}function _0x1abd1a(_0x36377a,_0x5293c6,_0x1aa64e){const _0x3a2985=_0x2a340a['userId'],_0x35b08c='revision:'+_0x1b29b1+':'+_0x3a2985+':'+_0x540175++,_0x2e1514=_0x28675c['createRange'](_0x5293c6,_0x1aa64e);_0x93d15c['markers']['set'](_0x35b08c,_0x2e1514),null!==_0x3a2985&&_0xfbe048['add'](_0x3a2985);}}['_getVidAttributeName'](_0x278700){switch(_0x278700['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2ba85c,_0x14d1df){_0x2ba85c['baseVersion']=null;for(const _0x3403bd in _0x2ba85c){const _0x21d50a=_0x2ba85c[_0x3403bd];if(_0x21d50a instanceof gt){const _0x16ff02=_0x14d1df['get'](_0x21d50a['root']['rootName']);_0x2ba85c[_0x3403bd]=this['_fixPosition'](_0x21d50a,_0x16ff02);}if(_0x21d50a instanceof vt){const _0x2869fe=_0x14d1df['get'](_0x21d50a['root']['rootName']);_0x2ba85c[_0x3403bd]=this['_fixRange'](_0x21d50a,_0x2869fe);}'root'===_0x3403bd&&(_0x2ba85c['root']=_0x14d1df['get'](_0x2ba85c['root']['rootName']));}}['_fixRange'](_0x26b95f,_0x4142d9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26b95f['start'],_0x4142d9),this['_fixPosition'](_0x26b95f['end'],_0x4142d9));}['_fixPosition'](_0x5a1035,_0xfc3a7a){return this['editor']['model']['createPositionFromPath'](_0xfc3a7a,_0x5a1035['path'],_0x5a1035['stickiness']);}['_handleInsertOperation'](_0x206367){const _0x1bfb1c=this['_idsRoots']['get'](_0x206367['position']['root']['rootName']),_0x36752c=this['_fixPosition'](_0x206367['position'],_0x1bfb1c),_0x5e916f=null===_0x206367['_authorId']?null:_0x206367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30ceea=_0x36752c['parent'],_0x421849=this['_revisionId'],_0x14a05f=[];for(const _0x229acb of _0x206367['nodes'])if(_0x229acb['is']('element'))_0x14a05f['push'](this['_makeIdsRoot'](_0x229acb));else{for(let _0x2fa21a=0x0;_0x2fa21a<_0x229acb['offsetSize'];_0x2fa21a++)_0x14a05f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x38da61=this['_revisionId'];for(let _0x6ad4c=_0x421849;_0x6ad4c<_0x38da61;_0x6ad4c++)this['_touched']['set'](_0x6ad4c,{'userId':_0x5e916f});_0x30ceea['_insertChild'](_0x36752c['offset'],_0x14a05f);}['_handleMoveOperation'](_0x4fa2b2){(_0x4fa2b2=this['_cloneOperation'](_0x4fa2b2,this['_idsRoots']))['_execute']();const _0x31d863=null===_0x4fa2b2['_authorId']?null:_0x4fa2b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d1706=_0x4fa2b2['getMovedRangeStart'](),_0x2e1caf=_0x1d1706['parent'],_0x81788=_0x1d1706['offset'];!function _0x122af4(_0x5b7ec5,_0x468a93,_0x25dddf,_0x4539fd){for(let _0x4c21cc=_0x25dddf;_0x4c21cc<_0x4539fd;_0x4c21cc++){const _0x21699d=_0x468a93['getChild'](_0x4c21cc);_0x21699d['is']('element','$text')?_0x5b7ec5['set'](_0x21699d['getAttribute']('vid'),{'userId':_0x31d863}):(_0x5b7ec5['set'](_0x21699d['getAttribute']('vid_start'),{'userId':_0x31d863}),_0x122af4(_0x5b7ec5,_0x21699d,0x0,_0x21699d['childCount']),_0x5b7ec5['set'](_0x21699d['getAttribute']('vid_end'),{'userId':_0x31d863}));}}(this['_touched'],_0x2e1caf,_0x81788,_0x81788+_0x4fa2b2['howMany']);}['_handleMergeOperation'](_0x1b734e){const _0x505c22=null===(_0x1b734e=this['_cloneOperation'](_0x1b734e,this['_idsRoots']))['_authorId']?null:_0x1b734e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c0d90=_0x1b734e['targetPosition']['parent'],_0x3abeea=_0x1b734e['sourcePosition']['parent'],_0xb02088=_0x1c0d90['getAttribute']('vid_end'),_0x14a403=_0x3abeea['getAttribute']('vid_start');_0x1c0d90['_setAttribute']('vid_end',_0x3abeea['getAttribute']('vid_end')),_0x3abeea['_setAttribute']('vid_end',_0xb02088),this['_touched']['set'](_0x14a403,{'userId':_0x505c22}),this['_touched']['set'](_0xb02088,{'userId':_0x505c22}),_0x1b734e['_execute']();}['_handleSplitOperation'](_0x29bbd6){const _0x4bb449=null===(_0x29bbd6=this['_cloneOperation'](_0x29bbd6,this['_idsRoots']))['_authorId']?null:_0x29bbd6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a1314=_0x29bbd6['graveyardPosition'],_0x5271ad=_0x29bbd6['splitPosition']['parent'];_0x29bbd6['_execute']();const _0x39c0c2=_0x5271ad['getAttribute']('vid_end'),_0x4f7d59=_0x29bbd6['insertionPosition']['nodeAfter'];if(_0x3a1314){const _0x37e236=_0x4f7d59['getAttribute']('vid_end'),_0x483999=_0x5271ad['getAttribute']('vid_end');_0x5271ad['_setAttribute']('vid_end',_0x37e236),_0x4f7d59['_setAttribute']('vid_end',_0x483999),this['_touched']['set'](_0x5271ad['getAttribute']('vid_end'),{'userId':_0x4bb449}),this['_touched']['set'](_0x4f7d59['getAttribute']('vid_start'),{'userId':_0x4bb449});}else{const _0x1f6724=this['_revisionId']++,_0x4e7b35=this['_revisionId']++;_0x5271ad['_setAttribute']('vid_end',_0x1f6724),_0x4f7d59['_setAttribute']('vid_start',_0x4e7b35),_0x4f7d59['_setAttribute']('vid_end',_0x39c0c2),this['_touched']['set'](_0x1f6724,{'userId':_0x4bb449}),this['_touched']['set'](_0x4e7b35,{'userId':_0x4bb449});}}['_handleMarkerOperation'](_0x10091e){if(!_0x10091e['affectsData'])return;const _0x188b0b=(_0x10091e=this['_cloneOperation'](_0x10091e,this['_diffRoots']))['oldRange']?_0x10091e['oldRange']['root']:null,_0x502983=_0x10091e['newRange']?_0x10091e['newRange']['root']:null;_0x188b0b&&this['_markers']['delete'](_0x10091e['name']),_0x502983&&this['_markers']['set'](_0x10091e['name'],_0x10091e['newRange']['clone']());const _0x28404c=null===_0x10091e['_authorId']?null:_0x10091e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d5897=_0x10091e['name'];if(!this['_touchedMarkers']['has'](_0x1d5897))return void this['_touchedMarkers']['set'](_0x1d5897,{'range':_0x10091e['oldRange'],'userId':_0x28404c});const _0x38d7d6=this['_touchedMarkers']['get'](_0x1d5897),_0x4a9ab9=_0x38d7d6['range'],_0x586d9c=_0x10091e['newRange'];null==_0x4a9ab9&&null==_0x586d9c||_0x4a9ab9&&_0x586d9c&&_0x4a9ab9['isEqual'](_0x586d9c)?this['_touchedMarkers']['delete'](_0x10091e['name']):_0x38d7d6['userId']=_0x28404c;}['_handleRootOperation'](_0xdb4b20,_0x4dc17b){this['_diffRoots']['has'](_0xdb4b20['rootName'])?this['_diffRoots']['get'](_0xdb4b20['rootName'])['_isAttached']=_0xdb4b20['isAdd']:(this['_diffRoots']['set'](_0xdb4b20['rootName'],B(_0xdb4b20['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xdb4b20['rootName'],{}),_0x4dc17b&&this['_idsRoots']['set'](_0xdb4b20['rootName'],B(_0xdb4b20['rootName'],!0x0)));const _0x5232f9=null===_0xdb4b20['_authorId']?null:_0xdb4b20['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e391=this['_touchedRoots']['get'](_0xdb4b20['rootName']);_0x2e391&&_0x2e391['userId']===_0x5232f9?this['_touchedRoots']['delete'](_0xdb4b20['rootName']):this['_touchedRoots']['set'](_0xdb4b20['rootName'],{'userId':_0x5232f9,'isAttached':_0xdb4b20['isAdd']});}['_handleRootAttributeOperation'](_0x2c1153){const _0x12f5b6=this['_diffRootsAttributes']['get'](_0x2c1153['root']['rootName']);null===_0x2c1153['newValue']?delete _0x12f5b6[_0x2c1153['key']]:_0x12f5b6[_0x2c1153['key']]=_0x2c1153['newValue'];}}function F(_0xab41b3){const _0x4ee080=B(_0xab41b3['rootName'],_0xab41b3['isAttached']());for(const _0x1a74d9 of _0xab41b3['getChildren']()){const _0x1531e7=_0x1a74d9['_clone'](!0x0);_0x4ee080['_appendChild'](_0x1531e7);}return _0x4ee080;}function B(_0x4faf48,_0x4ca2ac=!0x0){const _0x4e5890=new wt();return _0x4e5890['rootName']=_0x4faf48,_0x4e5890['_isAttached']=_0x4ca2ac,_0x4e5890['isAttached']=()=>_0x4e5890['_isAttached'],_0x4e5890;}function J(_0x65f063,_0x26525f,_0x3193ad){const _0x4061f0='elementEnd'==_0x65f063['type']?_0x3193ad['createPositionAt'](_0x65f063['item'],'end'):_0x3193ad['createPositionBefore'](_0x65f063['item']);return _0x3193ad['createPositionFromPath'](_0x26525f,_0x4061f0['path'],_0x4061f0['stickiness']);}function q(_0x4dabab,_0x449eb5,_0x28ef4f){const _0xe41102='elementStart'==_0x4dabab['type']?_0x28ef4f['createPositionAt'](_0x4dabab['item'],0x0):_0x28ef4f['createPositionAfter'](_0x4dabab['item']);return _0x28ef4f['createPositionFromPath'](_0x449eb5,_0xe41102['path'],_0xe41102['stickiness']);}class ns extends _0x456365{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3d3fed,_0x412b5f){super(_0x3d3fed),this['focusTracker']=new _0x1f06cb(),this['keystrokes']=new _0x369806(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x412b5f),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'](),_0x1610bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x415e10=_0x4809a7=>_0x4809a7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x415e10),this['keystrokes']['set']('arrowleft',_0x415e10),this['keystrokes']['set']('arrowup',_0x415e10),this['keystrokes']['set']('arrowdown',_0x415e10);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2644b8){this['revisionNameInputView']['fieldView']['element']['value']=_0x2644b8['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2c989a){const _0x22df38=new at(this['locale'],_0x31c3a1),_0x33305d=_0x22df38['fieldView'];_0x33305d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2f1c20=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2c989a&&(_0x2f1c20+='\x20('+R(this['locale'],'optional')+')'),(_0x22df38['label']=_0x2f1c20,_0x33305d['on']('input',()=>{this['revisionNameInputValue']=_0x33305d['element']['value']['trim']();}),_0x22df38);}}class u extends _0x3aa790{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5c9c1d=this['editor'],_0xfef142=_0x5c9c1d['plugins']['get']('RevisionTracker');_0x5c9c1d['ui']['componentFactory']['add']('revisionHistory',_0x4ed16b=>{const _0x514b4a=_0x1aa18a(_0x4ed16b),_0x594287=_0x514b4a['panelView']['children'],_0x2fc8db=new te(_0x4ed16b),_0x55114b=new _0xaa5e4f(_0x4ed16b),_0x28409f=new _0x644400(_0x4ed16b),_0x318d99=new _0xaa5e4f(_0x4ed16b),_0x515be4=new _0x644400(_0x4ed16b);return _0x514b4a['bind']('isEnabled')['to'](_0xfef142,'isReady',_0xfef142,'isEnabled',_0x5c9c1d,'isReadOnly',(_0x4f0923,_0x4acaa3,_0x55df83)=>_0x4f0923&&_0x4acaa3&&!_0x55df83),_0x514b4a['buttonView']['set']({'icon':_0x162832['history'],'label':R(_0x4ed16b,'Revision\x20history'),'tooltip':!0x0}),_0x28409f['set']({'label':R(_0x4ed16b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x28409f['bind']('isEnabled')['to'](_0xfef142,'isReady',_0xfef142,'isEnabled',_0x5c9c1d,'isReadOnly',(_0x2fd883,_0x313da1,_0x57fa9f)=>_0x2fd883&&_0x313da1&&!_0x57fa9f),_0x28409f['on']('execute',()=>this['_showDialog']()),_0x515be4['set']({'label':R(_0x4ed16b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x515be4['bind']('isEnabled')['to'](_0xfef142,'isReady',_0x5c9c1d,'isReadOnly',(_0x4f948b,_0x508090)=>_0x4f948b&&!_0x508090),_0x515be4['on']('execute',()=>{_0x5c9c1d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x514b4a['isOpen']=!0x1,_0x5c9c1d['editing']['view']['focus']();}),_0x55114b['children']['add'](_0x28409f),_0x318d99['children']['add'](_0x515be4),_0x2fc8db['role']='menu',_0x2fc8db['items']['addMany']([_0x55114b,_0x318d99]),_0x594287['add'](_0x2fc8db),_0x514b4a;}),_0x5c9c1d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4b02b3=this['editor'],_0x45dd2c=_0x4b02b3['locale'],_0x4440bc=new _0x1a59f5(_0x45dd2c),_0x1acc70=new _0x21a508(_0x45dd2c);_0x4440bc['buttonView']['set']({'icon':_0x162832['history'],'label':R(_0x45dd2c,'Revision\x20history')});const _0x41d7a5=new _0x34e5ad(_0x45dd2c,_0x4440bc),_0x194499=new _0x5e5102(_0x45dd2c);_0x194499['set']({'label':R(_0x45dd2c,'Save\x20current\x20revision')}),_0x194499['delegate']('execute')['to'](_0x4440bc),_0x194499['on']('execute',()=>{this['_showDialog']();}),_0x41d7a5['children']['add'](_0x194499),_0x1acc70['items']['add'](_0x41d7a5);const _0x1871cb=new _0x34e5ad(_0x45dd2c,_0x4440bc),_0x11e255=new _0x5e5102(_0x45dd2c);return _0x11e255['set']({'label':R(_0x45dd2c,'Open\x20revision\x20history')}),_0x11e255['delegate']('execute')['to'](_0x4440bc),_0x11e255['on']('execute',()=>{_0x4b02b3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1871cb['children']['add'](_0x11e255),_0x1acc70['items']['add'](_0x1871cb),_0x4440bc['panelView']['children']['add'](_0x1acc70),_0x4440bc;}['_showDialog'](){const _0x35f46b=this['editor'],_0x17b806=_0x35f46b['locale'],_0x4e6218=_0x35f46b['plugins']['get']('Dialog'),_0x45dfb2=_0x35f46b['plugins']['get']('RevisionTracker');function _0x3eff83(_0x37fb2d){_0x35f46b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x37fb2d['revisionName']?_0x37fb2d['revisionNameInputView']['errorText']=R(_0x17b806,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x35f46b['plugins']['get'](l)['saveRevision']({'name':_0x37fb2d['revisionName']}),_0x4e6218['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3eff83(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e6218['show']({'id':'revisionSave','title':R(_0x17b806,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x35f46b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e6218['hide']()},{'label':R(_0x35f46b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x445139){_0x445139['bind']('isEnabled')['to'](_0x45dfb2,'isReady',_0x45dfb2,'isEnabled',_0x35f46b,'isReadOnly',(_0x55da30,_0x32103a,_0x21794f)=>_0x55da30&&_0x32103a&&!_0x21794f);},'onExecute':()=>_0x3eff83(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xfda76b=this['editor'],_0x5c6e96=_0xfda76b['locale'];this['_saveRevisionFormView']=new ns(_0x5c6e96,_0xfda76b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x456365{['changeId'];['_model'];constructor(_0x73af94,_0x451ef2){super(_0x73af94),this['_model']=_0x451ef2,this['changeId']=_0x451ef2['id'];const _0x4e68e2=this['bindTemplate'],_0x3f41ac=R(_0x73af94,_0x451ef2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x451ef2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x451ef2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4e68e2['to']('type',_0x4f289c=>'ck-revision-change__'+_0x4f289c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f41ac}]},{'text':'\x20'+_0x451ef2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x544007(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x21ff93){super(),this['id']=_0x21ff93['id']||_0x202f37(),this['author']=_0x21ff93['author'],this['type']=_0x21ff93['type'],this['data']=_0x21ff93['data']||{},this['rootName']=_0x21ff93['rootName'],this['set']('createdAt',_0x21ff93['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(_0x437a04,_0x29ffe6){this['newRevisionId']=_0x437a04,this['oldRevisionId']=_0x29ffe6,this['changes']=new _0x2ea578();}['_setChanges'](_0x4c2fde){for(const _0x12a08a of _0x4c2fde)this['changes']['add'](_0x12a08a);}}const Z={'c':_0x5db352,'a':_0x155cb1,'e':_0x132f51,'r':_0x3a6d20,'u':_0x29a5ef};class d extends _0x3aa790{['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[_0x360c10,_0x26bf31,j];}constructor(_0x28b60d){super(_0x28b60d),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',(_0x32041d,_0xe74fe5,_0x59ff09)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x439de8=>{for(const _0x21e860 of this['editor']['editing']['view']['document']['roots'])_0x59ff09?_0x439de8['removeClass']('ck-editor__editable__overlay',_0x21e860):_0x439de8['addClass']('ck-editor__editable__overlay',_0x21e860);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x343212=>null!==_0x343212),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x143b3f,_0x2cc52c,_0x10b4f2)=>_0x143b3f&&_0x10b4f2?_0x2cc52c['changes']['getIndex'](_0x10b4f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2a2a74,_0x2b1c7a)=>_0x2a2a74?_0x2b1c7a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x26bf31);}['init'](){const _0x26972c=this['editor'],_0x4985f4=new bt(_0x26972c,{'direction':'backward'}),_0xea5cd2=new bt(_0x26972c,{'direction':'forward'});(_0x26972c['commands']['add']('showPreviousChange',_0x4985f4),_0x26972c['commands']['add']('showNextChange',_0xea5cd2),_0x26972c['commands']['add']('restoreRevision',new yt(_0x26972c)),this['on']('change:numberOfChanges',()=>{_0x4985f4['refresh'](),_0xea5cd2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x26972c['enableReadOnlyMode']('revision-viewer'),_0x26972c['plugins']['has']('WidgetToolbarRepository'))&&_0x26972c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x291da6){await this['loadRevisionData'](_0x291da6);const _0x17eb6a={};for(const _0x482e74 in _0x291da6['diffData']){if(_0x291da6['diffData'][_0x482e74]['attachChange']&&!_0x291da6['diffData'][_0x482e74]['attachChange']['isAttached'])continue;const _0x19e3e0=this['_removeRevisionMarkers'](JSON['parse'](_0x291da6['diffData'][_0x482e74]['insertions'])),_0x3ed4ef=this['editor']['editing']['view']['document'],_0x234233=new _0x4d810b(_0x3ed4ef,_0x19e3e0['map'](_0x396272=>this['_getViewObj'](_0x396272)));this['editor']['data']['processor']['useFillerType']('marked'),_0x17eb6a[_0x482e74]=this['editor']['data']['processor']['toData'](_0x234233),this['editor']['data']['processor']['useFillerType']('default');}return _0x17eb6a;}async['getRevisionRootsAttributes'](_0xa32a47){await this['loadRevisionData'](_0xa32a47);const _0x2f3e83={};for(const _0x3c2699 in _0xa32a47['diffData'])_0xa32a47['diffData'][_0x3c2699]['attachChange']&&!_0xa32a47['diffData'][_0x3c2699]['attachChange']['isAttached']||(_0x2f3e83[_0x3c2699]=_0xa32a47['diffData'][_0x3c2699]['attributesAfter']||{});return _0x2f3e83;}['_removeRevisionMarkers'](_0x5dc638){return(_0x5dc638=_0x5dc638['filter'](_0x58ce5c=>!_0x58ce5c['name']||'revision-start'!==_0x58ce5c['name']&&'revision-end'!==_0x58ce5c['name']))['forEach'](_0x4d1a62=>{'string'!=typeof _0x4d1a62&&(_0x4d1a62['children']=this['_removeRevisionMarkers'](_0x4d1a62['children']),_0x4d1a62['attributes']=_0x4d1a62['attributes']['filter'](_0x3e366f=>!_0x3e366f[0x0]['startsWith']('data-revision-')));}),_0x5dc638;}async['compare'](_0x4c8bfd,_0x54c9cd,_0x15c395=!0x1){if(!this['isEnabled'])return;const _0xafaf00=this['diff'],_0x5c5720=this['repository'],_0x52ded3='string'==typeof _0x4c8bfd?_0x5c5720['getRevision'](_0x4c8bfd):_0x4c8bfd,_0x560ab5='string'==typeof _0x54c9cd?_0x5c5720['getRevision'](_0x54c9cd):_0x54c9cd,_0x21a57d=_0x52ded3['id'],_0x51dffc=_0x560ab5?_0x560ab5['id']:null;if(!_0x15c395&&this['diff']&&this['diff']['newRevisionId']===_0x21a57d&&this['diff']['oldRevisionId']===_0x51dffc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x21a57d,_0x51dffc);const _0xe5353c=this['_getRevisionsRange'](_0x52ded3,_0x560ab5,!0x0)['map'](_0x3f0276=>this['loadRevisionData'](_0x3f0276));return _0xe5353c['push'](new Promise(_0x183e7a=>{setTimeout(_0x183e7a,0x14);})),Promise['all'](_0xe5353c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3269b1=this['_getDiff'](_0x21a57d,_0x51dffc);for(const _0x22607c of _0x3269b1['changes'])this['_changeIdToChange']['set'](_0x22607c['id'],_0x22607c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x41f5d5=>{for(const _0x3b0576 of this['editor']['model']['document']['getRootNames']())_0x41f5d5['detachRoot'](_0x3b0576);for(const _0x5685ba of Object['keys'](_0x3269b1['model'])){const _0x358b69=_0x41f5d5['addRoot'](_0x5685ba);for(const _0x427e8b of Object['keys'](_0x3269b1['attributes'][_0x5685ba]))_0x41f5d5['setAttribute'](_0x427e8b,_0x3269b1['attributes'][_0x5685ba][_0x427e8b],_0x358b69);_0x41f5d5['insert'](_0x3269b1['model'][_0x5685ba],_0x358b69,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3269b1['changes'])),this['isReady']=!0x0;})['catch'](_0x485232=>{console['error'](_0x485232),this['_cleanUp'](),_0xafaf00&&(this['diff']=_0xafaf00),this['isReady']=!0x0;});}['addRevisionData'](_0xa050d8,_0x37b173){const _0x43a607=this['repository']['createRevision'](_0xa050d8);return _0x43a607['on']('_update',(_0x3d54c3,_0x3aeafa,_0x231758)=>_0x37b173(_0x3aeafa,_0x231758,_0x43a607)),this['repository']['addRevision'](_0x43a607),_0x43a607;}['loadRevisionData'](_0x3b997f){if(!_0x3b997f||_0x3b997f['diffData'])return Promise['resolve']();{const _0x382eb8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x382eb8,'revisionId':_0x3b997f['id']})['then'](_0x5794d2=>{_0x3b997f['_update']({'diffData':_0x5794d2['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},_0x2bd7bc=>{for(const _0x6726fb of this['editor']['model']['document']['getRootNames']())_0x2bd7bc['detachRoot'](_0x6726fb);});}['_sortAndFilterDiffChanges'](_0x1c376f){const _0xe4ebe8=[],_0x2494c7=new Map();for(const _0x5896e9 of this['editor']['model']['document']['getRootNames']()){const _0x445089=this['editor']['editing']['view']['getDomRoot'](_0x5896e9);if(!_0x445089)continue;const _0x201e8b=_0x445089['getClientRects']()['item'](0x0);_0x201e8b&&(_0xe4ebe8['push'](_0x5896e9),_0x2494c7['set'](_0x5896e9,_0x201e8b));}return _0xe4ebe8['sort']((_0x35afff,_0x5ab0f1)=>{const _0x12cd5c=_0x2494c7['get'](_0x35afff),_0x5b7304=_0x2494c7['get'](_0x5ab0f1);return _0x12cd5c['y']-_0x5b7304['y']||_0x12cd5c['x']-_0x5b7304['x'];}),(_0x1c376f=_0x1c376f['filter'](_0x31667b=>_0xe4ebe8['includes'](_0x31667b['rootName'])))['sort']((_0x22a1b0,_0x1bd697)=>_0xe4ebe8['indexOf'](_0x22a1b0['rootName'])-_0xe4ebe8['indexOf'](_0x1bd697['rootName'])),_0x1c376f;}['_makeTape'](_0x313a36){const _0x16a470=Array['from'](_0x313a36['markers'])['filter'](([_0x2f2c9c,_0x40cebd])=>_0x2f2c9c['startsWith']('revision:')&&!_0x40cebd['isCollapsed']),_0x4638ff=Array['from'](this['editor']['model']['createRangeIn'](_0x313a36)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x16a470['length'])for(const _0x2d88da of _0x4638ff){const [_0xcf68bf,_0x1282d6]=_0x16a470[0x0],[,_0x27c501,_0xc04f2]=_0xcf68bf['split'](':');if(_0x1282d6['end']['isEqual'](_0x2d88da['nextPosition'])&&_0x16a470['shift'](),(_0x2d88da['previousPosition']['isEqual'](_0x1282d6['start'])||_0x2d88da['previousPosition']['isAfter'](_0x1282d6['start']))&&('insertion'==_0x27c501?_0x2d88da['isAdded']={'userId':_0xc04f2}:'deletion'==_0x27c501&&(_0x2d88da['isRemoved']={'userId':_0xc04f2})),0x0==_0x16a470['length'])break;}return _0x4638ff;}['_refreshStartEndIndex'](_0x11f563){const _0x13b329=new Map();for(let _0x4647c1=0x0;_0x4647c1<_0x11f563['length'];_0x4647c1++)'text'===_0x11f563[_0x4647c1]['type']?(_0x11f563[_0x4647c1]['item']['startIndex']=_0x4647c1,_0x11f563[_0x4647c1]['item']['endIndex']=_0x4647c1):('elementStart'===_0x11f563[_0x4647c1]['type']?_0x11f563[_0x4647c1]['item']['startIndex']=_0x4647c1:'elementEnd'===_0x11f563[_0x4647c1]['type']&&(_0x11f563[_0x4647c1]['item']['endIndex']=_0x4647c1),_0x13b329['set'](_0x11f563[_0x4647c1]['id'],_0x4647c1));for(const _0x5d9a44 of _0x13b329['values']())'elementStart'===_0x11f563[_0x5d9a44]['type']?_0x11f563[_0x5d9a44]['item']['endIndex']=_0x13b329['get'](_0x11f563[_0x5d9a44]['pairId']):'elementEnd'===_0x11f563[_0x5d9a44]['type']&&(_0x11f563[_0x5d9a44]['item']['startIndex']=_0x13b329['get'](_0x11f563[_0x5d9a44]['pairId']));}['_processTape'](_0x39b88c){for(let _0x1cdd95=0x0;_0x1cdd95<_0x39b88c['length'];_0x1cdd95++){if('elementStart'===_0x39b88c[_0x1cdd95]['type'])_0x39b88c[_0x1cdd95]['item']['startIndex']=_0x1cdd95;else{if('elementEnd'===_0x39b88c[_0x1cdd95]['type']){_0x39b88c[_0x1cdd95]['item']['endIndex']=_0x1cdd95;const _0x74aa5c=_0x39b88c[_0x1cdd95]['item']['startIndex'];_0x39b88c[_0x74aa5c]['pairId']=_0x39b88c[_0x1cdd95]['id'],_0x39b88c[_0x1cdd95]['pairId']=_0x39b88c[_0x74aa5c]['id'];}else _0x39b88c[_0x1cdd95]['item']['startIndex']=_0x1cdd95,_0x39b88c[_0x1cdd95]['item']['endIndex']=_0x1cdd95,_0x39b88c[_0x1cdd95]['pairId']=null;}_0x39b88c[_0x1cdd95]['markersStart']||(_0x39b88c[_0x1cdd95]['markersStart']=[],_0x39b88c[_0x1cdd95]['markersEnd']=[]);}}['_markInsertions'](_0x8f5e18,_0x1fd395){const _0x288168=_0x8f5e18['filter'](_0x237ff5=>!_0x237ff5['isAdded']);for(let _0x38e2a7=0x0;_0x38e2a7<_0x1fd395['length'];_0x38e2a7++)_0x1fd395[_0x38e2a7]['isAdded']&&(_0x288168[_0x38e2a7]['isAdded']=_0x1fd395[_0x38e2a7]['isAdded']);}['_makeModelFromViewString'](_0x2cfc42){const _0x24fb0e=JSON['parse'](_0x2cfc42),_0xf8de20=this['editor']['editing']['view']['document'],_0x8a1dee=new _0x4d810b(_0xf8de20,_0x24fb0e['map'](_0x25c8df=>this['_getViewObj'](_0x25c8df)));return this['editor']['data']['toModel'](_0x8a1dee);}['_getViewObj'](_0xabd4c3){const _0x35df2b=this['editor']['editing']['view']['document'];if('string'==typeof _0xabd4c3)return new _0x20f6dc(_0x35df2b,_0xabd4c3);{const _0xfd2fee=_0xabd4c3['children']['map'](_0x286db8=>this['_getViewObj'](_0x286db8));return new(Z[_0xabd4c3['type']]||_0x1ed3de)(_0x35df2b,_0xabd4c3['name'],_0xabd4c3['attributes'],_0xfd2fee);}}['_getDiff'](_0x41fd16,_0x5c8267=null){const _0x5f2cdb=this['repository']['getRevision'](_0x41fd16),_0x11a2e3=_0x5c8267?this['repository']['getRevision'](_0x5c8267):null,_0xdcc549=this['_getRevisionsRange'](_0x5f2cdb,_0x11a2e3),_0x66f993=_0xdcc549[_0xdcc549['length']-0x1],_0x4fd49c=new Map(),_0x52476c={'model':{},'attributes':{},'changes':[]},_0x110f79=new Set(),_0x2b014b=new Map();for(let _0x376a99=_0xdcc549['length']-0x1;_0x376a99>=0x0;_0x376a99--){const _0x706588=_0xdcc549[_0x376a99];for(const _0xec4245 of Object['keys'](_0x706588['diffData']))if(_0x706588['diffData'][_0xec4245]['attachChange']){const _0x591ae3=_0x706588['diffData'][_0xec4245]['attachChange'];_0x591ae3['isAttached']?(_0x110f79['add'](_0xec4245),_0x2b014b['has'](_0xec4245)&&_0x2b014b['get'](_0xec4245)['userId']==_0x591ae3['userId']?_0x2b014b['delete'](_0xec4245):_0x2b014b['set'](_0xec4245,_0x591ae3)):_0x2b014b['has'](_0xec4245)?(_0x110f79['delete'](_0xec4245),_0x2b014b['delete'](_0xec4245)):(_0x110f79['add'](_0xec4245),_0x2b014b['set'](_0xec4245,_0x591ae3));}else _0x110f79['add'](_0xec4245);}for(const _0x2bfc5a of _0x110f79){const _0x1aca01=_0x2b014b['has'](_0x2bfc5a)&&!_0x2b014b['get'](_0x2bfc5a)['isAttached'];let _0x2aac56=_0x1aca01?_0xdcc549['length']-0x1:0x0;const _0x49d184=_0x1aca01?-0x1:0x1;for(;_0xdcc549[_0x2aac56];){const _0x24c9a7=_0xdcc549[_0x2aac56];if(_0x24c9a7['diffData'][_0x2bfc5a]){const _0x5358b2=_0x1aca01?_0x24c9a7['diffData'][_0x2bfc5a]['attributesBefore']:_0x24c9a7['diffData'][_0x2bfc5a]['attributesAfter'];_0x52476c['attributes'][_0x2bfc5a]=_0x5358b2?_0x1f0012(_0x5358b2):{};break;}_0x2aac56+=_0x49d184;}}for(const _0x542f6e of _0xdcc549){_0x542f6e['model']={};for(const _0x556771 of _0x542f6e['authors'])_0x4fd49c['set'](_0x556771['id'],_0x556771);for(const _0x4d430a of _0x110f79){const _0x1ea870=_0x542f6e['diffData'][_0x4d430a]?_0x542f6e['diffData'][_0x4d430a]['insertions']:'[]',_0x450171=_0x542f6e['diffData'][_0x4d430a]?_0x542f6e['diffData'][_0x4d430a]['deletions']:'[]';_0x542f6e['model'][_0x4d430a]={'insertions':this['_makeModelFromViewString'](_0x1ea870),'deletions':this['_makeModelFromViewString'](_0x450171)};}}for(const _0xa19ccf of _0x110f79){let _0xeae1c1=null,_0x4ba481=0x0;const _0x2d874c=new Map(Array['from'](_0x5f2cdb['model'][_0xa19ccf]['insertions']['markers'])['filter'](([_0x446537])=>!_0x446537['startsWith']('revision:')));let _0x43147b=0x0;for(const _0x2a5278 of _0xdcc549){const _0x32d495=this['_makeTape'](_0x2a5278['model'][_0xa19ccf]['insertions']);_0x2a5278==_0x5f2cdb?(_0xeae1c1=_0x32d495,_0x4ba481=_0xeae1c1['length'],_0xeae1c1['forEach'](_0xa098=>{_0xa098['id']=_0x43147b++;}),this['_processTape'](_0xeae1c1)):this['_markInsertions'](_0xeae1c1,_0x32d495);const _0x444c99=_0xeae1c1['filter'](_0x37d00b=>!_0x37d00b['isAdded'])['map'](_0x1e7fc8=>_0x1e7fc8['id']);let _0x45548b=0x0;const _0x420938=this['_makeTape'](_0x2a5278['model'][_0xa19ccf]['deletions']);_0x420938['forEach'](_0x46ebcb=>{_0x46ebcb['isRemoved']?_0x46ebcb['id']=_0x4ba481++:_0x46ebcb['id']=_0x444c99[_0x45548b++];}),this['_processTape'](_0x420938),this['_setDistance'](_0xeae1c1,'isAdded'),this['_setDistance'](_0x420938,'isRemoved'),_0x2a5278==_0x5f2cdb&&this['_markMarkers'](_0xeae1c1,_0x2d874c),_0xeae1c1=this['_joinTapes'](_0xeae1c1,_0x420938),this['_refreshStartEndIndex'](_0xeae1c1),this['_setDistance'](_0xeae1c1,'isRemoved');}_0xeae1c1=_0xeae1c1['filter'](_0x5f53eb=>!(_0x5f53eb['isAdded']&&_0x5f53eb['isRemoved']));const _0x3df9b6=new Map(_0x66f993['model'][_0xa19ccf]['deletions']['markers']),_0x5833d9=new Set(_0x2d874c['keys']());for(const _0x451719 of _0x3df9b6['keys']())_0x5833d9['delete'](_0x451719);this['_markSuggestions'](_0xeae1c1,_0x5833d9),this['_fixObsoleteTags'](_0xeae1c1),_0xeae1c1=this['_removeMissingPairs'](_0xeae1c1),_0xeae1c1=this['_markMismatchedRemovedTags'](_0xeae1c1),_0xeae1c1=this['_removeUnsupportedChanges'](_0xeae1c1);const {root:_0x1b4f3d,changes:_0x5b6efd}=this['_makeModelFromTape'](_0xeae1c1,_0x4fd49c,_0xa19ccf);_0x52476c['model'][_0xa19ccf]=_0x1b4f3d;const _0x8ccc54=_0x2b014b['get'](_0xa19ccf);if(_0x8ccc54){const _0x7aedf9=_0x4fd49c['get'](_0x8ccc54['userId']),_0x1e15bf=new r({'author':_0x7aedf9,'type':_0x8ccc54['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa19ccf});_0x5b6efd['unshift'](_0x1e15bf),_0x52476c['attributes'][_0xa19ccf]['revisionHistoryAttachChange']=_0x1e15bf['id'];}_0x52476c['changes']=_0x52476c['changes']['concat'](_0x5b6efd);}return _0x52476c;}['_markMarkers'](_0x3d1661,_0x3b9658){for(let _0x356a53=0x0;_0x356a53<_0x3d1661['length'];_0x356a53++)for(const [_0x25ed7c,_0x1eec83]of _0x3b9658)_0x1eec83['start']['isEqual'](_0x3d1661[_0x356a53]['previousPosition'])&&_0x3d1661[_0x356a53]['markersStart']['push'](_0x25ed7c),_0x1eec83['end']['isEqual'](_0x3d1661[_0x356a53]['nextPosition'])&&_0x3d1661[_0x356a53]['markersEnd']['push'](_0x25ed7c);}['_joinTapes'](_0x3a8d8b,_0x1aa91f){let _0xe30921=[],_0x59ac01=0x0,_0x352e41=0x0;for(;_0x59ac01<_0x3a8d8b['length']||_0x352e41<_0x1aa91f['length'];){const _0x304d25=_0x3a8d8b[_0x59ac01]||{},_0x5e9a0e=_0x1aa91f[_0x352e41]||{};if(_0x304d25['id']==_0x5e9a0e['id'])_0x59ac01++,_0x352e41++,_0xe30921['push'](_0x304d25);else{if(_0x5e9a0e['isRemoved']&&_0x304d25['isAdded']){const {commonTape:_0x5d0e72,iEnd:_0x322b0a,jEnd:_0x32242d}=this['_threeWayMerge'](_0x3a8d8b,_0x59ac01,_0x1aa91f,_0x352e41);_0xe30921=_0xe30921['concat'](_0x5d0e72),_0x59ac01=_0x322b0a,_0x352e41=_0x32242d;}else _0x5e9a0e['isRemoved']?(_0x352e41++,_0xe30921['push'](_0x5e9a0e)):(_0x59ac01++,_0xe30921['push'](_0x304d25));}}return _0xe30921;}['_markSuggestions'](_0x79e608,_0x3394e0){const _0x51e068=[];for(let _0x1b1e26=0x0;_0x1b1e26<_0x79e608['length'];_0x1b1e26++){for(let _0x46a5e0=0x0;_0x46a5e0<_0x79e608[_0x1b1e26]['markersStart']['length'];_0x46a5e0++){const _0x40aa53=_0x79e608[_0x1b1e26]['markersStart'][_0x46a5e0];if(!_0x3394e0['has'](_0x40aa53))continue;const {group:_0xdf6890,type:_0x241a9a,authorId:_0x173297}=_0x3f6d79(_0x40aa53);'revision-suggestion'!=_0xdf6890||'insertion'!=_0x241a9a&&'deletion'!=_0x241a9a||(_0x51e068['unshift']({'type':_0x241a9a,'name':_0x40aa53,'userId':_0x173297}),_0x79e608[_0x1b1e26]['markersStart']['splice'](_0x46a5e0,0x1),_0x46a5e0--);}_0x2227a7(_0x79e608[_0x1b1e26]);for(let _0x5542a6=0x0;_0x5542a6<_0x79e608[_0x1b1e26]['markersEnd']['length'];_0x5542a6++){const _0x341bce=_0x79e608[_0x1b1e26]['markersEnd'][_0x5542a6];if(!_0x3394e0['has'](_0x341bce))continue;const {group:_0x3cab05,type:_0x5affe4}=_0x3f6d79(_0x341bce);if('revision-suggestion'!=_0x3cab05||'insertion'!=_0x5affe4&&'deletion'!=_0x5affe4)continue;_0x79e608[_0x1b1e26]['markersEnd']['splice'](_0x5542a6,0x1),_0x5542a6--;const _0x316b4a=_0x51e068['findIndex'](_0xb2c1c8=>_0xb2c1c8['name']==_0x341bce);_0x316b4a>-0x1&&_0x51e068['splice'](_0x316b4a,0x1);}}function _0x3f6d79(_0x5cdad7){const _0x37dc9a=_0x5cdad7['split'](':');return{'group':_0x37dc9a[0x0],'type':_0x37dc9a[0x1],'subType':_0x37dc9a['length']>=0x5?_0x37dc9a[0x2]:null,'id':_0x37dc9a['length']<0x5?_0x37dc9a[0x2]:_0x37dc9a[0x3],'authorId':_0x37dc9a['length']<0x5?_0x37dc9a[0x3]:_0x37dc9a[0x4],'markerCount':0x6==_0x37dc9a['length']?_0x37dc9a[0x5]:null};}function _0x2227a7(_0xc69e9d){for(let _0x14534d=0x0;_0x14534d<_0x51e068['length'];_0x14534d++){if(_0xc69e9d['isAdded']&&'insertion'==_0x51e068[_0x14534d]['type'])return _0xc69e9d['isAddSuggestion']=_0x51e068[_0x14534d],void delete _0xc69e9d['isAdded'];if(!_0xc69e9d['isAdded']&&!_0xc69e9d['isRemoved']&&'deletion'==_0x51e068[_0x14534d]['type'])return void(_0xc69e9d['isRemoveSuggestion']=_0x51e068[_0x14534d]);}}}['_setDistance'](_0x3e8df4,_0x367c71){let _0x4cb55f=0x0,_0x5296bd=!0x1;const _0x2d21a2=new Map();for(const _0x146818 of _0x3e8df4)_0x146818[_0x367c71]?_0x5296bd&&(_0x4cb55f++,_0x5296bd=!0x1):(_0x4cb55f++,_0x5296bd=!0x0),_0x2d21a2['set'](_0x146818['id'],_0x4cb55f);for(let _0x2cca57=0x0;_0x2cca57<_0x3e8df4['length'];_0x2cca57++){if('isRemoved'==_0x367c71&&_0x3e8df4[_0x2cca57]['isAdded']||'isAdded'==_0x367c71&&_0x3e8df4[_0x2cca57]['isRemoved'])continue;if('text'==_0x3e8df4[_0x2cca57]['type']){_0x3e8df4[_0x2cca57]['distance']=0x0;continue;}const _0x1f0bdc=_0x2d21a2['get'](_0x3e8df4[_0x2cca57]['pairId']),_0x36ed86=_0x2d21a2['get'](_0x3e8df4[_0x2cca57]['id']);_0x3e8df4[_0x2cca57]['distance']=_0x1f0bdc-_0x36ed86;}}['_getRevisionsRange'](_0x348847,_0x227faf,_0x21c9fa=!0x1){const _0x471999=[];let _0x4f2ad8=this['repository']['getIndex'](_0x348847),_0x1f1941=this['repository']['getIndex'](_0x227faf);for(-0x1==_0x1f1941&&(_0x1f1941=this['repository']['_revisions']['length'],_0x21c9fa=!0x1);_0x4f2ad8<_0x1f1941;)_0x471999['push'](this['repository']['getRevision'](_0x4f2ad8)),_0x4f2ad8++;return _0x21c9fa&&_0x471999['push'](this['repository']['getRevision'](_0x4f2ad8)),_0x471999;}['_threeWayMerge'](_0x8d9919,_0x350044,_0x414eb4,_0x358b07){const _0x48908b=this['editor']['model']['schema'];let _0x481275=_0x350044;for(;_0x8d9919[_0x481275]&&_0x8d9919[_0x481275]['isAdded'];)_0x481275++;let _0x34d7f9=_0x358b07;for(;_0x414eb4[_0x34d7f9]&&_0x414eb4[_0x34d7f9]['isRemoved'];)_0x34d7f9++;_0x5bc217(_0x8d9919,_0x350044,_0x481275),_0x5bc217(_0x414eb4,_0x358b07,_0x34d7f9);const _0x4dfd43=_0x414eb4['slice'](_0x358b07,_0x34d7f9)['concat'](_0x8d9919['slice'](_0x350044,_0x481275));return _0x4dfd43['sort']((_0x1863a6,_0x1676e3)=>_0x1863a6['side']!=_0x1676e3['side']?_0x1863a6['side']-_0x1676e3['side']:_0x1863a6['level']!=_0x1676e3['level']?_0x1863a6['level']-_0x1676e3['level']:_0x1863a6['distance']!=_0x1676e3['distance']?_0x1676e3['distance']-_0x1863a6['distance']:!!_0x1863a6['isAdded']!=!!_0x1676e3['isAdded']?-0x1==_0x1863a6['side']||0x0==_0x1863a6['side']?_0x1863a6['isAdded']?-0x1:0x1:_0x1863a6['isAdded']?0x1:-0x1:_0x1863a6['index']-_0x1676e3['index']),{'commonTape':_0x4dfd43,'iEnd':_0x481275,'jEnd':_0x34d7f9};function _0x5bc217(_0x304787,_0x1832f5,_0x4942f5){let _0x166ad0=-0x1,_0x1268b2=Number['POSITIVE_INFINITY'],_0x12e7e4=!0x0;for(let _0x57cb92=_0x1832f5;_0x57cb92<_0x4942f5;_0x57cb92++)if(_0x48908b['isInline'](_0x304787[_0x57cb92]['item'])||(_0x12e7e4=!0x1),_0x304787[_0x57cb92]['item']['startIndex']<_0x1832f5&&(_0x166ad0=_0x57cb92),_0x304787[_0x57cb92]['item']['endIndex']>=_0x4942f5){_0x1268b2=_0x57cb92;break;}_0x12e7e4&&(_0x166ad0=_0x4942f5-0x1);for(let _0x39b13c=_0x1832f5;_0x39b13c<_0x4942f5;_0x39b13c++)_0x304787[_0x39b13c]['side']=_0x39b13c<=_0x166ad0?-0x1:_0x39b13c<_0x1268b2?0x0:0x1,_0x304787[_0x39b13c]['index']=_0x39b13c;let _0x163127=0x0;for(let _0x3ee8a9=_0x1832f5;_0x3ee8a9<=_0x166ad0;_0x3ee8a9++)0x0==_0x304787[_0x3ee8a9]['distance']?_0x304787[_0x3ee8a9]['level']=_0x163127:(_0x163127++,_0x304787[_0x3ee8a9]['level']=_0x163127,_0x163127++);for(let _0x5b2b87=_0x1832f5;_0x5b2b87<_0x4942f5;_0x5b2b87++)0x0==_0x304787[_0x5b2b87]['side']&&(_0x304787[_0x5b2b87]['level']=_0x163127);_0x163127=0x0;for(let _0x40a2cf=_0x4942f5-0x1;_0x40a2cf>=_0x1268b2;_0x40a2cf--)0x0==_0x304787[_0x40a2cf]['distance']?_0x304787[_0x40a2cf]['level']=_0x163127:(_0x163127--,_0x304787[_0x40a2cf]['level']=_0x163127,_0x163127--);}}['_fixObsoleteTags'](_0x337d94){const _0x56d99a=new Map(),_0x1a69c3=this['editor']['model']['schema'];for(let _0x194c7d=0x1;_0x194c7d<_0x337d94['length'];_0x194c7d++){let _0x203407,_0x340f4b,_0x5b550e;const _0x3accbc=_0x337d94[_0x194c7d],_0x1cbcb9=_0x337d94[_0x194c7d-0x1];if('text'==_0x3accbc['type'])continue;if(_0x3accbc['type']!=_0x1cbcb9['type'])continue;if(!_0x1a69c3['isBlock'](_0x1cbcb9['item'])||_0x1a69c3['isLimit'](_0x1cbcb9['item']))continue;if(!_0x1a69c3['isBlock'](_0x3accbc['item'])||_0x1a69c3['isLimit'](_0x3accbc['item']))continue;if((_0x337d94[_0x194c7d]['isAdded']||_0x337d94[_0x194c7d]['isAddSuggestion'])&&_0x337d94[_0x194c7d-0x1]['isRemoved'])_0x203407=_0x337d94[_0x194c7d],_0x340f4b=_0x337d94[_0x194c7d-0x1],_0x5b550e=_0x194c7d-0x1;else{if(!_0x337d94[_0x194c7d]['isRemoved']||!_0x337d94[_0x194c7d-0x1]['isAdded']&&!_0x337d94[_0x194c7d-0x1]['isAddSuggestion'])continue;_0x203407=_0x337d94[_0x194c7d-0x1],_0x340f4b=_0x337d94[_0x194c7d],_0x5b550e=_0x194c7d;}const _0x2bc200=_0x203407['level']==_0x340f4b['level'],_0x3f5335=Math['abs'](_0x203407['level'])<Math['abs'](_0x340f4b['level'])&&0x0==_0x340f4b['distance'];(_0x2bc200||_0x3f5335)&&(_0x56d99a['set'](_0x340f4b['id'],_0x203407['id']),_0x337d94['splice'](_0x5b550e,0x1),_0x194c7d--,_0x203407['isAdded']=!0x1);}for(let _0x264db4=0x0;_0x264db4<_0x337d94['length'];_0x264db4++)_0x56d99a['has'](_0x337d94[_0x264db4]['pairId'])&&(_0x337d94[_0x264db4]['pairId']=_0x56d99a['get'](_0x337d94[_0x264db4]['pairId']));}['_removeMissingPairs'](_0x3c4d8b){const _0x564eba=new Set(_0x3c4d8b['map'](_0x36bcb5=>_0x36bcb5['id']));for(let _0xfc9f4d=0x0;_0xfc9f4d<_0x3c4d8b['length'];_0xfc9f4d++)_0x564eba['has'](_0x3c4d8b[_0xfc9f4d]['pairId'])||0x0==_0x3c4d8b[_0xfc9f4d]['distance']||(_0x3c4d8b[_0xfc9f4d]['isIncorrect']=!0x0);return _0x3c4d8b['filter'](_0x5fe54d=>!_0x5fe54d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3601b6){const _0x243cc5=new Set();for(let _0x4d1cfb=0x0;_0x4d1cfb<_0x3601b6['length'];_0x4d1cfb++){if(_0x243cc5['has'](_0x3601b6[_0x4d1cfb]['id'])&&_0x3601b6[_0x4d1cfb]['isRemoved']&&(_0x3601b6[_0x4d1cfb]['isIncorrect']=!0x0),_0x3601b6[_0x4d1cfb]['isIncorrect'])continue;if(0x0==_0x3601b6[_0x4d1cfb]['distance'])continue;if('elementStart'!=_0x3601b6[_0x4d1cfb]['type'])continue;if(null==_0x3601b6[_0x4d1cfb]['pairId'])continue;let _0x1fb912=_0x4d1cfb+0x1,_0x554984=0x0;for(;_0x3601b6[_0x1fb912]['id']!=_0x3601b6[_0x4d1cfb]['pairId'];)'elementStart'==_0x3601b6[_0x1fb912]['type']?_0x554984++:'elementEnd'==_0x3601b6[_0x1fb912]['type']&&_0x554984--,_0x1fb912++;if(0x0!=_0x554984){if(_0x3601b6[_0x4d1cfb]['isRemoved'])_0x3601b6[_0x4d1cfb]['isIncorrect']=!0x0;else{for(;_0x1fb912!=_0x4d1cfb;)_0x3601b6[_0x1fb912]['isRemoved']&&0x0!=_0x3601b6[_0x1fb912]['distance']&&(_0x3601b6[_0x1fb912]['isIncorrect']=!0x0,_0x243cc5['add'](_0x3601b6[_0x1fb912]['pairId'])),_0x1fb912--;}}}return _0x3601b6['filter'](_0x2086a6=>!_0x2086a6['isIncorrect']);}['_removeUnsupportedChanges'](_0x14f146){const _0xeeeca8=this['editor']['model']['schema'];for(let _0x22dccc=0x0;_0x22dccc<_0x14f146['length'];_0x22dccc++){if(!(_0x14f146[_0x22dccc]['isAdded']||_0x14f146[_0x22dccc]['isAddSuggestion']||_0x14f146[_0x22dccc]['isRemoved']||_0x14f146[_0x22dccc]['isRemoveSuggestion']))continue;if(0x0==_0x14f146[_0x22dccc]['distance'])continue;const _0x3c75ea=_0x14f146[_0x22dccc]['item'];_0xeeeca8['isBlock'](_0x3c75ea)||_0xeeeca8['isLimit'](_0x3c75ea)||(_0x14f146[_0x22dccc]['isAdded']&&delete _0x14f146[_0x22dccc]['isAdded'],_0x14f146[_0x22dccc]['isAddSuggestion']&&delete _0x14f146[_0x22dccc]['isAddSuggestion'],_0x14f146[_0x22dccc]['isRemoveSuggestion']&&delete _0x14f146[_0x22dccc]['isRemoveSuggestion'],_0x14f146[_0x22dccc]['isRemoved']&&(_0x14f146[_0x22dccc]['isIncorrect']=!0x0));}return _0x14f146['filter'](_0x38d334=>!_0x38d334['isIncorrect']);}['_makeModelFromTape'](_0x1b0b97,_0x1a1488,_0x1508c9){const _0x137c68=new wt(),_0x4ece20=[],_0x5917f4=new Map(),_0x2fd364=this['editor']['model'],_0x1d780a=_0x2fd364['schema'],_0x3d0b36=[_0x137c68],_0x5d364a={},_0x49c9e9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43bb4c=null;const _0x13dbaa=[0x0];for(let _0x2973f3=0x0;_0x2973f3<_0x1b0b97['length'];_0x2973f3++)if('elementStart'===_0x1b0b97[_0x2973f3]['type']){_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa);const _0x10ccf1=new ft(_0x1b0b97[_0x2973f3]['item']['name'],_0x1b0b97[_0x2973f3]['item']['getAttributes']());_0x3d0b36[0x0]['_appendChild'](_0x10ccf1),_0x13dbaa['push'](0x0),_0x3d0b36['unshift'](_0x10ccf1),_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa);}else'elementEnd'===_0x1b0b97[_0x2973f3]['type']?(_0x3d0b36['shift'](),_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa),_0x13dbaa['pop'](),_0x13dbaa[_0x13dbaa['length']-0x1]++,_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa)):(_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa),_0x43bb4c?_0x43bb4c['_data']+=_0x1b0b97[_0x2973f3]['item']['data']:_0x43bb4c=new _t(_0x1b0b97[_0x2973f3]['item']['data'],_0x1b0b97[_0x2973f3]['item']['getAttributes']()),_0x1b0b97[_0x2973f3+0x1]&&'text'===_0x1b0b97[_0x2973f3+0x1]['type']&&_0x1d45c8(_0x43bb4c,_0x1b0b97[_0x2973f3+0x1]['item'])||(_0x3d0b36[0x0]['_appendChild'](_0x43bb4c),_0x43bb4c=null),_0x13dbaa[_0x13dbaa['length']-0x1]+=_0x1b0b97[_0x2973f3]['item']['offsetSize'],_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa));for(let _0x19f3e4=0x0;_0x19f3e4<_0x1b0b97['length'];_0x19f3e4++){const _0x4aae38=_0x1b0b97[_0x19f3e4]['previousPosition'],_0x1b1cf6=_0x1b0b97[_0x19f3e4]['nextPosition'];for(const _0x98e2c7 of _0x1b0b97[_0x19f3e4]['markersStart'])_0x5917f4['set'](_0x98e2c7,{'start':_0x4aae38,'end':null});_0x3277a3('isRemoveSuggestion',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isAddSuggestion',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isRemoved',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isAdded',_0x19f3e4,_0x4aae38,_0x1b1cf6);for(const _0x5668b9 of _0x1b0b97[_0x19f3e4]['markersEnd']){_0x5917f4['get'](_0x5668b9)['end']=_0x1b1cf6;}}for(const [_0x459015,_0x389438]of _0x5917f4){const _0x172454=this['editor']['model']['createRange'](_0x389438['start'],_0x389438['end']);_0x137c68['markers']['set'](_0x459015,_0x172454);}return _0x4ece20['sort']((_0x48bbf7,_0x3241e0)=>{const _0x37dc56=_0x137c68['markers']['get']('revision:'+_0x48bbf7['id']),_0x3aa7a9=_0x137c68['markers']['get']('revision:'+_0x3241e0['id']);return _0x37dc56['start']['isBefore'](_0x3aa7a9['start'])?-0x1:_0x37dc56['start']['isAfter'](_0x3aa7a9['start'])?0x1:_0x37dc56['end']['isBefore'](_0x3aa7a9['end'])?-0x1:_0x37dc56['end']['isAfter'](_0x3aa7a9['end'])?0x1:'add'===_0x48bbf7['type']?-0x1:0x1;}),{'root':_0x137c68,'changes':_0x4ece20};function _0x3277a3(_0x52fc69,_0x472a10,_0x4d02ee,_0x5bca1b){const _0xe95f29=!!_0x1b0b97[_0x472a10][_0x52fc69],_0x605f76=_0xe95f29?_0x1b0b97[_0x472a10][_0x52fc69]['userId']:null,_0x3d8f7c=_0x472a10===_0x1b0b97['length']-0x1,_0x21d851=_0x49c9e9[_0x52fc69][0x0],_0x50c56e=_0x1d780a['isObject'](_0x1b0b97[_0x472a10]['item']);!_0x5d364a[_0x52fc69]&&_0xe95f29?_0x5d364a[_0x52fc69]={'start':_0x4d02ee,'tapeItem':_0x1b0b97[_0x472a10],'userId':_0x605f76,'type':_0x52fc69}:_0x5d364a[_0x52fc69]&&!_0xe95f29?(_0x5d364a[_0x52fc69]['end']=_0x4d02ee,_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]=null):_0x5d364a[_0x52fc69]&&_0xe95f29&&_0x5d364a[_0x52fc69]['userId']!==_0x605f76&&(_0x5d364a[_0x52fc69]['end']=_0x4d02ee,_0x21d851&&_0x21d851['userId']===_0x5d364a[_0x52fc69]['userId']||_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]={'start':_0x4d02ee,'tapeItem':_0x1b0b97[_0x472a10],'userId':_0x605f76,'type':_0x52fc69}),_0x5d364a[_0x52fc69]&&_0x50c56e&&('elementStart'!==_0x1b0b97[_0x472a10]['type']||_0x21d851&&_0x21d851['userId']===_0x605f76||_0x49c9e9[_0x52fc69]['unshift']({'userId':_0x605f76,'object':_0x1b0b97[_0x472a10]['item'],'change':_0x5d364a[_0x52fc69]}),'elementEnd'===_0x1b0b97[_0x472a10]['type']&&_0x21d851&&_0x21d851['object']===_0x1b0b97[_0x472a10]['item']&&(_0x49c9e9[_0x52fc69]['shift'](),_0x5d364a[_0x52fc69]=_0x21d851['change'])),_0x5d364a[_0x52fc69]&&_0x3d8f7c&&(_0x5d364a[_0x52fc69]['end']=_0x5bca1b,_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]=null);}function _0x53fd36({start:_0x4c1512,end:_0x307708,tapeItem:_0x53e384,userId:_0x310d84,type:_0x355fe1}){const _0x59e2bd=_0x53e384['item'],_0x2b965f=_0x2fd364['schema']['isBlock'](_0x59e2bd)&&!_0x2fd364['schema']['isLimit'](_0x59e2bd),_0x313507=_0x4c1512['nodeAfter']==_0x307708['parent']&&_0x307708['isAtStart'];if(_0x2b965f&&_0x313507)return;const _0x50d115=_0x2fd364['createRange'](_0x4c1512,_0x307708),_0x49368d=_0x1a1488['get'](_0x310d84),_0x30aa7d=new r({'author':_0x49368d,'type':'isAdded'==_0x355fe1||'isAddSuggestion'==_0x355fe1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x355fe1||'isRemoveSuggestion'==_0x355fe1},'createdAt':new Date(),'rootName':_0x1508c9});_0x4ece20['push'](_0x30aa7d),_0x137c68['markers']['set']('revision:'+_0x30aa7d['id'],_0x50d115);}function _0x1d45c8(_0x10eb82,_0x540404){const _0x50456d=_0x10eb82['getAttributes'](),_0x333547=_0x540404['getAttributes']();for(const _0x367fc3 of _0x50456d){if(_0x367fc3[0x1]!==_0x540404['getAttribute'](_0x367fc3[0x0]))return!0x1;_0x333547['next']();}return _0x333547['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bc2a7=>{const _0x1315d3=_0x5bc2a7['markerName']['split'](':')[0x1],_0x46f223=this['_getChangeFromId'](_0x1315d3);if(!_0x46f223)return null;const _0x3063ed='add'==_0x46f223['type']?'insertion':'deletion',_0x2eb013=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3063ed];return _0x46f223['data']['isSuggestion']&&_0x2eb013['push']('ck-suggestion-marker-'+_0x3063ed+'-new'),this['activeChange']==_0x46f223&&_0x2eb013['push']('ck-suggestion-marker--active'),{'classes':_0x2eb013,'attributes':{'data-change-id':_0x1315d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5427ac=>{_0x5427ac['on']('element:pre',(_0x2390af,_0x22c6a4,_0x285a6f)=>{const _0x467460=_0x22c6a4['viewItem']['getChild'](0x0);if(!_0x467460||!_0x467460['is']('element','code'))return;if(!_0x285a6f['consumable']['consume'](_0x467460,{'attributes':['vid_start','vid_end']}))return;const _0x5b3c3d=_0x22c6a4['modelRange']['start']['nodeAfter'];_0x285a6f['writer']['setAttribute']('vid_start',_0x467460['getAttribute']('vid_start'),_0x5b3c3d),_0x285a6f['writer']['setAttribute']('vid_end',_0x467460['getAttribute']('vid_end'),_0x5b3c3d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x23026f=>{_0x23026f['on']('element',(_0x140714,_0x515e65,_0x2117b4)=>{if(!_0x2117b4['consumable']['consume'](_0x515e65['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x515e65['modelRange']['isCollapsed'])return;const _0x1a7a01=_0x515e65['modelRange']['start']['nodeAfter'];_0x1a7a01['hasAttribute']('vid_start')||_0x1a7a01['hasAttribute']('vid')||(_0x2117b4['writer']['setAttribute']('vid_start',_0x515e65['viewItem']['getAttribute']('vid_start'),_0x1a7a01),_0x2117b4['writer']['setAttribute']('vid_end',_0x515e65['viewItem']['getAttribute']('vid_end'),_0x1a7a01));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x18fd52=>_0x18fd52['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x488dc4,[,_0x4301db])=>{['vid_start','vid_end','vid']['includes'](_0x4301db)&&(_0x488dc4['return']=!0x0,_0x488dc4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a5cca=>{_0x1a5cca['on']('attribute:vid',(_0x15e5e3,_0x570f57,_0x99cd7f)=>{if('\x20'!=_0x570f57['item']['data']||_0x570f57['item']['parent']['maxOffset']>0x1)return;if(!_0x99cd7f['consumable']['consume'](_0x570f57['item'],_0x15e5e3['name']))return;const _0x1ae5c8=_0x99cd7f['writer'],_0xbd263=_0x99cd7f['mapper']['toViewRange'](_0x570f57['range']);_0x1ae5c8['wrap'](_0xbd263,_0x1ae5c8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28b072){const _0x6c21f3=_0x28b072['plugins']['get']('RevisionViewer');return(_0x23f625,_0x1d7312,_0x45599f)=>{const _0x529728=_0x1d7312['markerName']['split'](':')[0x1],_0x3cc6bd=_0x6c21f3['_getChangeFromId'](_0x529728);if(!_0x3cc6bd)return null;const _0x4b8a28='add'==_0x3cc6bd['type']?'split':'merge';if(!_0x45599f['consumable']['test'](_0x1d7312['markerRange'],_0x23f625['name']))return;const _0x12b8d9=_0x1d7312['markerRange']['getWalker'](),_0x5bc048=_0x1d7312['markerRange']['start'],_0x58614b=_0x28b072['model']['schema'];let _0x5474a7=null,_0x4e4753=null,_0x5ecc65=!0x1,_0x1083c7=!0x1;for(const _0x37010e of _0x12b8d9){const _0x54e8c1=_0x37010e['item'];_0x5ecc65=_0x5ecc65||_0x58614b['isContent'](_0x54e8c1);const _0x5cb4cc=_0x45599f['mapper']['toViewElement'](_0x54e8c1);if(_0x5cb4cc&&_0x5cb4cc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37010e['type']&&(_0x58614b['isBlock'](_0x54e8c1)&&!_0x58614b['isLimit'](_0x54e8c1)&&(_0x54e8c1['nextSibling']||_0x5bc048['isAtEnd']?_0x5474a7&&_0x5474a7['parent']==_0x54e8c1||(_0x5474a7=_0x54e8c1,_0x9395d3(_0x37010e['previousPosition']),_0x1083c7=!0x0):_0x4e4753=_0x4e4753||_0x37010e['previousPosition']));}function _0x9395d3(_0x34f103){const _0x2a7b36=_0x45599f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b8a28}),_0x1c3ede=_0x45599f['mapper']['toViewPosition'](_0x34f103);_0x3cc6bd['data']['isSuggestion']&&_0x45599f['writer']['addClass']('ck-suggestion-marker-'+_0x4b8a28+'-new',_0x2a7b36),_0x6c21f3['activeChange']==_0x3cc6bd&&_0x45599f['writer']['addClass']('ck-suggestion-marker--active',_0x2a7b36),_0x45599f['writer']['insert'](_0x1c3ede,_0x2a7b36),_0x45599f['mapper']['bindElementToMarker'](_0x2a7b36,_0x1d7312['markerName']);}_0x5ecc65||_0x1083c7||!_0x4e4753||_0x9395d3(_0x4e4753);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xa162f,_0x1b91f8,_0x2709b7)=>{const _0x51b5d3=_0x2709b7['mapper']['markerNameToElements'](_0x1b91f8['markerName']);if(_0x51b5d3){for(const _0x59ab36 of _0x51b5d3)(_0x59ab36['hasClass']('ck-suggestion-marker-split')||_0x59ab36['hasClass']('ck-suggestion-marker-merge'))&&(_0x2709b7['mapper']['unbindElementFromMarkerName'](_0x59ab36,_0x1b91f8['markerName']),_0x2709b7['writer']['remove'](_0x59ab36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ee244,_0x1b2147,_0x31a59a)=>{const _0x1c0d08=_0x1b2147['markerName']['split'](':')[0x1],_0x2c6300=this['_getChangeFromId'](_0x1c0d08);if(!_0x2c6300)return null;const _0x20efe2='add'==_0x2c6300['type']?'split':'merge';if(_0x31a59a['consumable']['test'](_0x1b2147['markerRange'],_0x3ee244['name']))for(const _0x327c57 of _0x1b2147['markerRange']['getItems']()){if(!_0x327c57['is']('element','softBreak'))continue;const _0xaee31a=_0x31a59a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20efe2}),_0x473dc4=_0x31a59a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x327c57));_0x2c6300['data']['isSuggestion']&&_0x31a59a['writer']['addClass']('ck-suggestion-marker-'+_0x20efe2+'-new',_0xaee31a),this['activeChange']==_0x2c6300&&_0x31a59a['writer']['addClass']('ck-suggestion-marker--active',_0xaee31a),_0x31a59a['writer']['insert'](_0x473dc4,_0xaee31a),_0x31a59a['mapper']['bindElementToMarker'](_0xaee31a,_0x1b2147['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2590be=>{for(const _0x2d059c of this['editor']['model']['document']['getRootNames']()){const _0x3a0baf=this['editor']['model']['document']['getRoot'](_0x2d059c),_0x1656c8=this['editor']['editing']['view']['document']['getRoot'](_0x2d059c);if(_0x1656c8){const _0x3c23fe=_0x3a0baf['getAttribute']('revisionHistoryAttachChange');if(_0x2590be['removeAttribute']('data-change-id',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root-add',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root-remove',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root--active',_0x1656c8),_0x3c23fe){const _0x2a285f=this['_getChangeFromId'](_0x3c23fe);if(!_0x2a285f)return null;_0x2590be['setAttribute']('data-change-id',_0x3c23fe,_0x1656c8),_0x2590be['addClass']('ck-revision-history-root-'+_0x2a285f['type'],_0x1656c8),this['activeChange']==_0x2a285f&&_0x2590be['addClass']('ck-revision-history-root--active',_0x1656c8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f2e4c=>'revision-comment:'+_0x2f2e4c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3216af=>'revision-suggestion:'+_0x3216af,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2959a3=>({'name':'suggestion:'+_0x2959a3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e4126=>{const _0x114246=_0x4e4126['markerName']['split'](':')[0x1];return'insertion'!=_0x114246&&'deletion'!=_0x114246?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x114246]};}}),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',(_0x8f3feb,_0x1195f6,_0x63b5b2)=>{const _0x5dbebc=_0x63b5b2['mapper']['markerNameToElements'](_0x1195f6['markerName']);if(_0x5dbebc){for(const _0x33ffc0 of _0x5dbebc)_0x33ffc0['is']('uiElement')&&(_0x63b5b2['mapper']['unbindElementFromMarkerName'](_0x33ffc0,_0x1195f6['markerName']),_0x63b5b2['writer']['remove'](_0x33ffc0));}},{'priority':'high'});}['_getChangeFromId'](_0x1d024f){return this['_changeIdToChange']['get'](_0x1d024f);}['_getViewForChange'](_0x557336){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x557336),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1aa993,_0x313934,_0x4bdd6e,_0x45c67c)=>{_0x45c67c&&this['_balloon']['remove'](_0x45c67c),_0x4bdd6e&&(this['_balloon']['add']({'view':_0x4bdd6e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4904a9=this['editor']['editing'],_0x3dea2f=this['_getChangeFromId'](_0x4bdd6e['changeId']);let _0x1ef1c6;if(_0x3dea2f['data']['isOnRoot']){const _0x37288d=_0x4904a9['view']['getDomRoot'](_0x3dea2f['rootName']);_0x1ef1c6=Array['from'](_0x37288d['getClientRects']());}else{const _0x400ef8=this['editor']['model']['markers']['get']('revision:'+_0x4bdd6e['changeId']);_0x1ef1c6=Array['from'](_0x4904a9['mapper']['markerNameToElements'](_0x400ef8['name']))['map'](_0x568967=>_0x4904a9['view']['domConverter']['mapViewToDom'](_0x568967))['map'](_0x476b51=>Array['from'](_0x476b51['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ef1c6[0x0];return _0x1ef1c6['find'](_0x31e550=>_0x31e550['top']-0x3<=this['_activeViewTarget']['y']&&_0x31e550['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x31e550['left']-0x3<=this['_activeViewTarget']['x']&&_0x31e550['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ef1c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x230d9c,_0x50a3c4,_0x96367a,_0x117c36)=>{this['activeView']=_0x96367a?this['_getViewForChange'](_0x96367a):null,this['editor']['model']['change'](()=>{const _0x5d1edc=this['editor']['editing'];_0x117c36&&(_0x117c36['data']['isOnRoot']?_0x5d1edc['view']['change'](_0x54d36c=>{_0x54d36c['removeClass']('ck-revision-history-root--active',_0x5d1edc['view']['document']['getRoot'](_0x117c36['rootName']));}):_0x5d1edc['reconvertMarker']('revision:'+_0x117c36['id'])),_0x96367a&&(_0x96367a['data']['isOnRoot']?_0x5d1edc['view']['change'](_0x24dc92=>{_0x24dc92['addClass']('ck-revision-history-root--active',_0x5d1edc['view']['document']['getRoot'](_0x96367a['rootName']));}):_0x5d1edc['reconvertMarker']('revision:'+_0x96367a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x268984,_0x30a788)=>{if(this['activeChange'])return;const _0x5cb22c=this['_findChangeIdFromDomTarget'](_0x30a788['target']),_0xbcfd5d=this['_changeIdToChange']['get'](_0x5cb22c);_0xbcfd5d?(this['_activeViewTarget']={'x':_0x30a788['domEvent']['x'],'y':_0x30a788['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbcfd5d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5da8ac,_0x853bfd)=>{const _0x5341c4=this['_findChangeIdFromDomTarget'](_0x853bfd['target']),_0x46f238=this['_changeIdToChange']['get'](_0x5341c4);_0x46f238?(this['_activeViewTarget']={'x':_0x853bfd['domEvent']['x'],'y':_0x853bfd['domEvent']['y']},_0x46f238===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46f238):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bb19e){do{const _0x287c5f=_0x3bb19e['getAttribute']('data-change-id');if(_0x287c5f)return _0x287c5f;_0x3bb19e=_0x3bb19e['parent'];}while(_0x3bb19e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x563e94=>{for(const _0x36cb20 of this['editor']['model']['markers'])_0x563e94['removeMarker'](_0x36cb20);});}}function tt(_0x602eca,_0x3b255d){return(_0x471cd6,_0x5e5311,_0x1b916b)=>{if(!_0x1b916b['consumable']['test'](_0x5e5311['markerRange'],_0x471cd6['name']))return;const _0x239c86=_0x5e5311['markerRange']['getWalker'](),_0x53fc29=_0x5e5311['markerRange']['start'],_0x23a88b=_0x602eca['model']['schema'];let _0x4b98ef=null,_0x4b2a27=null,_0x5af978=!0x1,_0x34671a=!0x1;for(const _0xae20c9 of _0x239c86){const _0x31989c=_0xae20c9['item'];_0x5af978=_0x5af978||_0x23a88b['isContent'](_0x31989c);const _0x23b7f1=_0x1b916b['mapper']['toViewElement'](_0x31989c);if(_0x23b7f1&&_0x23b7f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xae20c9['type']&&(_0x23a88b['isBlock'](_0x31989c)&&!_0x23a88b['isLimit'](_0x31989c)&&(_0x31989c['nextSibling']||_0x53fc29['isAtEnd']?_0x4b98ef&&_0x4b98ef['parent']==_0x31989c||(_0x4b98ef=_0x31989c,_0x1b47c9(_0xae20c9['previousPosition']),_0x34671a=!0x0):_0x4b2a27=_0x4b2a27||_0xae20c9['previousPosition']));}function _0x1b47c9(_0x1a17f8){const _0x59fdd7=_0x1b916b['mapper']['toViewPosition'](_0x1a17f8),_0x24dadb=_0x1b916b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3b255d});_0x1b916b['writer']['insert'](_0x59fdd7,_0x24dadb),_0x1b916b['mapper']['bindElementToMarker'](_0x24dadb,_0x5e5311['markerName']);}_0x5af978||_0x34671a||!_0x4b2a27||_0x1b47c9(_0x4b2a27);};}class yt extends _0x1efead{constructor(_0x6423e){super(_0x6423e);const _0x539612=_0x6423e['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x539612,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x539612,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x39feb0=this['editor'],_0x33ab3b=_0x39feb0['plugins']['get'](d),_0x1f2e9a=_0x33ab3b['isReady']?_0x33ab3b['diff']['newRevisionId']:null;_0x39feb0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f2e9a);}['refresh'](){const {isReady:_0x5de138,isEnabled:_0x414832,repository:_0x66688f,diff:_0x2f0cd4}=this['editor']['plugins']['get'](d),_0x24e852=_0x2f0cd4&&_0x66688f['getLaterVisibleRevision'](_0x2f0cd4['newRevisionId']);this['isEnabled']=_0x5de138&&_0x414832&&Boolean(_0x24e852);}}class bt extends _0x1efead{['_step'];constructor(_0x13afe5,{direction:_0x761151}){super(_0x13afe5);const _0x23d853=_0x13afe5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x761151?0x1:-0x1,this['listenTo'](_0x23d853,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23d853,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23d853,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x25d8b5=this['editor'],_0x5c6374=_0x25d8b5['plugins']['get'](d),{isNavigationMode:_0x287d88,currentChangeNumber:_0x33e321}=_0x5c6374;let _0x269f35;if(_0x5c6374['activeChange']=_0x287d88?_0x5c6374['diff']['changes']['get'](_0x33e321+this['_step']):_0x5c6374['diff']['changes']['first'],_0x5c6374['activeChange']['data']['isOnRoot'])_0x269f35=_0x25d8b5['editing']['view']['getDomRoot'](_0x5c6374['activeChange']['rootName']);else{const _0xf9d6bd=_0x25d8b5['model']['markers']['get']('revision:'+_0x5c6374['activeChange']['id']);_0x269f35=_0x3a4830(_0x25d8b5['editing'],_0xf9d6bd);}_0x2dbe66({'target':_0x269f35,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x164d58,currentChangeNumber:_0x475330,numberOfChanges:_0x53c439,isReady:_0x3ecb4d,isEnabled:_0x31c44c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x31c44c&&_0x3ecb4d&&_0x53c439)&&(!_0x164d58||(0x1===this['_step']?_0x475330<_0x53c439-0x1:_0x475330>0x0));}}class _i extends _0x456365{constructor(_0x26e914){super(_0x26e914);const _0x3aff43=this['bindTemplate'],_0x3be655=new _0x644400(_0x26e914),_0x5d4615=new _0x644400(_0x26e914);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',(_0x24d523,_0xd87a6e)=>_0x24d523&&_0xd87a6e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5765e4,_0x77ee32,_0x5c76ee,_0x183d60)=>{if(!_0x5765e4)return R(_0x26e914,'Loading...');if(!_0x5c76ee)return R(_0x26e914,'No\x20changes');const _0x546d55=R(_0x26e914,'NUMBER_OF_CHANGES',_0x5c76ee);return _0x183d60?R(_0x26e914,'X_OF_Y_CHANGES',[_0x77ee32+0x1,_0x5c76ee]):_0x546d55;}),_0x3be655['set']({'label':R(_0x26e914,'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'}),_0x5d4615['set']({'label':R(_0x26e914,'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'}),_0x3be655['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d4615['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3be655['on']('execute',()=>this['fire']('execute','backward')),_0x5d4615['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',_0x3aff43['if']('_isStatusLabelVisible','ck-hidden',_0x173f51=>!_0x173f51)]},'children':[{'text':_0x3aff43['to']('isNavigationMode',_0x20ad6f=>_0x20ad6f?R(_0x26e914,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x26e914,'Total')+':\x20')}]},{'text':_0x3aff43['to']('_statusText')}]},new _0x426c6c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3be655,_0x5d4615]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3aa790{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2178f7=this['editor']['editing']['view'];_0x2178f7['change'](_0x386781=>{for(const _0x371a94 of _0x2178f7['document']['roots'])_0x386781['addClass'](ce,_0x371a94);});}['hide'](){const _0x3a6397=this['editor']['editing']['view'];_0x3a6397['change'](_0xc67d8d=>{for(const _0x5fed28 of _0x3a6397['document']['roots'])_0xc67d8d['removeClass'](ce,_0x5fed28);});}}class m extends _0x3aa790{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x517069=this['editor'],_0x331ca6=_0x517069['plugins']['get'](d),_0xf1f575=_0x517069['plugins']['get'](le);_0x517069['ui']['componentFactory']['add']('exitToEditing',_0x36b5bf=>{const _0x23e129=new _0x644400(_0x36b5bf);return _0x23e129['set']({'label':R(_0x36b5bf,'Back\x20to\x20editing'),'icon':_0x162832['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x23e129,'execute',()=>{_0x517069['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x23e129;}),_0x517069['ui']['componentFactory']['add']('restoreRevision',_0x4cd4dc=>{const _0x12515e=new _0x644400(_0x4cd4dc);return _0x12515e['set']({'label':R(_0x4cd4dc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x12515e['bind']('isEnabled')['to'](_0x517069['commands']['get']('restoreRevision')),this['listenTo'](_0x12515e,'execute',()=>_0x517069['execute']('restoreRevision')),_0x12515e;}),_0x517069['ui']['componentFactory']['add']('changesNavigation',_0x879906=>{const _0x58f107=new _i(_0x879906),_0x1b8cca=_0x517069['commands']['get']('showPreviousChange'),_0xa87787=_0x517069['commands']['get']('showNextChange');return _0x58f107['bind']('isBackwardNavigationEnabled')['to'](_0x1b8cca,'isEnabled'),_0x58f107['bind']('isForwardNavigationEnabled')['to'](_0xa87787,'isEnabled'),_0x58f107['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x331ca6),this['listenTo'](_0x58f107,'execute',(_0x588b5d,_0x2c0702)=>{_0x517069['execute']('forward'===_0x2c0702?'showNextChange':'showPreviousChange');}),_0x58f107;}),_0xf1f575['show'](),_0x331ca6['on']('change:isReady',(_0x3f051a,_0x4972fd,_0x20f499)=>{_0x20f499?_0xf1f575['hide']():_0xf1f575['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0xe3e231,_0x26b23c){super(_0xe3e231,_0x26b23c);const _0x5b1a82=this['bindTemplate'];this['set']({'label':R(_0xe3e231,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xe3e231,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5b1a82['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 _0x4f5774=this['fieldView']['element'];this['_tooltipString']=_0x4f5774['scrollWidth']>_0x4f5774['clientWidth']&&_0x4f5774['value']||'';}}class ti extends _0x456365{constructor(_0x3d0169,_0x5cebac,_0x1f45e2){super(_0x3d0169);const _0xdfa1b1=new _0x56a012();_0xdfa1b1['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 _0x4372a8=['ck','ck-revision-history-sidebar__revision-author'];_0x1f45e2&&_0x4372a8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x422777=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3d0169,_0x1f45e2?'Revision\x20creator':'Revision\x20author')},'children':[_0xdfa1b1,_0x5cebac['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4372a8},'children':_0x422777});}}function ni(_0x4e47b6,_0x4142a5){const _0x51bb6f=_0x4e47b6['bindTemplate'],_0x263f6b=_0x4e47b6['locale'],_0x2f0c15=_0x1aa18a(_0x263f6b);_0x2f0c15['panelPosition']='sw';const _0x121def=function(_0x2730ea,_0x22e47b){const _0x485623=function(_0x94ed5f,_0x34ff81){const _0x44b7d8=_0x94ed5f['locale'],_0x1e2966={'Compare\x20against\x20selected':R(_0x44b7d8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x44b7d8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x44b7d8,'Restore\x20this\x20revision')};return _0x34ff81['map'](_0x18a6d6=>{const _0x2c2b2c=_0x1e2966[_0x18a6d6['name']];return _0x2c2b2c&&_0x2c2b2c!==_0x18a6d6['name']&&(_0x18a6d6['name']=_0x2c2b2c),_0x18a6d6;});}(_0x2730ea,_0x22e47b),_0x273994=new _0x2ea578();for(const _0x28d184 of _0x485623){const _0xf9ea53={'type':'button','model':new to({'label':_0x28d184['name'],'class':_0x28d184['class'],'withText':!0x0,'role':'menuitem','_action':_0x28d184['action']})};_0xf9ea53['model']['bind']('isEnabled')['to'](_0x2730ea,'isActionsDropdownOpen',_0x361ced=>'function'!=typeof _0x28d184['isEnabled']||(!_0x361ced||_0x28d184['isEnabled'](_0x2730ea))),_0x273994['add'](_0xf9ea53);}return _0x273994;}(_0x4e47b6,_0x4142a5);return _0x4e47b6['bind']('isActionsDropdownOpen')['to'](_0x2f0c15,'isOpen'),_0x2f0c15['buttonView']['set']({'label':R(_0x263f6b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x162832['threeVerticalDots']}),_0x2f0c15['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x51bb6f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x51bb6f['to'](_0x102312=>_0x102312['stopPropagation']())}}),_0x2f0c15['on']('execute',_0x10e20b=>{_0x4e47b6['isReady']&&'function'==typeof _0x10e20b['source']['_action']&&_0x10e20b['source']['_action'](_0x4e47b6);}),_0x529971(_0x2f0c15,_0x121def,{'role':'menu'}),_0x2f0c15['listenTo'](_0x4e47b6,'change:isActionsDropdownOpen',(_0x6cc890,_0x41578c,_0x4337d4)=>{if(_0x4337d4)for(const _0x51980f of _0x2f0c15['listView']['items']){const _0x372d4e=_0x51980f['children']['first'],_0x244686=_0x4142a5['find'](_0x434c54=>_0x434c54['action']===_0x372d4e['_action'])['isVisible'];_0x51980f['isVisible']=void 0x0===_0x244686||_0x244686(_0x4e47b6);}}),_0x2f0c15;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3a113f(_0x456365){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x6dfe29,_0x2206b3,_0x5108f5,_0x1ff2a6){super(_0x6dfe29);const _0x5670b9=this['bindTemplate'],_0x13ff79=function(_0x92790a,_0x22d307){const _0x5da742=Array['from'](_0x22d307['authors'])['filter'](_0x240ea4=>_0x240ea4!=_0x22d307['creator']);return _0x22d307['creator']&&_0x5da742['unshift'](_0x22d307['creator']),_0x5da742['map'](_0x24cce1=>new ti(_0x92790a,_0x24cce1,_0x24cce1==_0x22d307['creator']));}(_0x6dfe29,_0x2206b3);this['id']=_0x2206b3['id'],this['_revision']=_0x2206b3,this['_requireRevisionName']=_0x1ff2a6,this['bind']('name','createdAt')['to'](_0x2206b3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x325c4b=>{return _0x560500=_0x6dfe29['uiLanguage'],(_0x497d11=_0x325c4b)['toLocaleDateString'](_0x560500,{'month':'long','day':'numeric'})+',\x20'+_0x497d11['toLocaleTimeString'](_0x560500,{'hour':'numeric','minute':'numeric'});var _0x560500,_0x497d11;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x6dfe29,_0x31c3a1),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a705c=>_0x1a705c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4e35a5,_0x24b247)=>_0x4e35a5&&_0x24b247),this['revisionActionsView']=_0x5108f5&&_0x5108f5['length']?ni(this,_0x5108f5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5670b9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5670b9['if']('isEnabled','ck-disabled',_0x715d5=>!_0x715d5),_0x5670b9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5670b9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5670b9['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':_0x5670b9['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':_0x13ff79}]},this['revisionActionsView']],'on':{'click':_0x5670b9['to'](_0x455486=>{_0x455486['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3e81d6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3e81d6,'change',()=>{this['_requireRevisionName']&&!_0x3e81d6['value']||this['fire']('setName',{'id':this['id'],'name':_0x3e81d6['value']}),_0x3e81d6['value']||(_0x3e81d6['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(_0x5eac5d,_0xf27fc6){const _0x5821bf=_0x449d02['fromJSDate'](_0x5eac5d)['setLocale'](_0xf27fc6),_0x4664ff=_0x449d02['local'](),_0x117fa4=_0x4664ff['minus']({'days':0x1})['startOf']('day');let _0xe735cc,_0x29e1cf;return _0x5821bf['hasSame'](_0x4664ff,'day')?(_0xe735cc=_0x5821bf['startOf']('day')['toJSDate'](),_0x29e1cf=_0x5821bf['toRelativeCalendar']()):_0x5821bf['hasSame'](_0x117fa4,'day')?(_0xe735cc=_0x117fa4['toJSDate'](),_0x29e1cf=_0x5821bf['toRelativeCalendar']()):_0x5821bf['hasSame'](_0x4664ff,'week')?(_0xe735cc=_0x5821bf['startOf']('week')['toJSDate'](),_0x29e1cf=_0x5821bf['weekdayLong']||''):_0x5821bf['hasSame'](_0x4664ff,'year')?(_0xe735cc=_0x5821bf['startOf']('month')['toJSDate'](),_0x29e1cf=_0x5821bf['monthLong']||''):(_0xe735cc=_0x5821bf['startOf']('year')['toJSDate'](),_0x29e1cf=String(_0x5821bf['year'])),{'startDate':_0xe735cc,'localizedPeriodName':_0x29e1cf};}class mi extends _0x456365{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x42ec06,_0x537027,_0x46be16,_0x5e6252){super(_0x42ec06);const _0x1b4097=di(_0x537027,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x537027,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x46be16,this['_requireRevisionName']=_0x5e6252,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':_0x1b4097}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x47bdd0){const _0x1d796f=new ai(this['locale'],_0x47bdd0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1d796f);}['removeRevision'](_0x2ccdf7){const _0x546701=this['revisionViews']['find'](_0x287a25=>_0x287a25['id']===_0x2ccdf7['id']);this['revisionViews']['remove'](_0x546701);}}class as extends _0x456365{constructor(_0x1a1db4){super(_0x1a1db4);const _0x2e5df8=new _0x56a012();_0x2e5df8['content']=_0x162832['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2e5df8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1a1db4,'Revision\x20history')]}]});}}class ci extends _0x456365{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d25bd,_0x4d6e30,_0x35b12e,_0x5c7ab6){super(_0x3d25bd);const _0x354eb3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4d6e30,this['_revisionActions']=_0x35b12e,this['_requireRevisionName']=_0x5c7ab6,this['on']('select',(_0x4143fb,_0x6df7af)=>{this['fire']('revisionSelected',_0x6df7af);}),this['on']('setName',(_0x4ad76b,_0x3273b3)=>{this['fire']('revisionSetName',_0x3273b3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d25bd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x354eb3['if']('isEnabled','ck-disabled',_0x496ffb=>!_0x496ffb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x82ac21 of this['_revisions'])this['_addRevision'](_0x82ac21);this['_revisions']['on']('add',(_0x4dae72,_0x13472b)=>{this['_addRevision'](_0x13472b);}),this['_revisions']['on']('remove',(_0x5ac9b4,_0x369e41)=>{this['_removeRevision'](_0x369e41);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x20ca80=>_0x20ca80['revisionViews']['map'](_0xcf1ffb=>_0xcf1ffb))['flat']();}['selectRevision'](_0x737dfa){for(const _0x3930ca of this['revisionViews'])_0x737dfa&&_0x737dfa['id']===_0x3930ca['id']?_0x3930ca['select']():_0x3930ca['deselect']();}['highlightRevisions'](_0x579c62){for(const _0x571daf of this['revisionViews'])_0x579c62['some'](({id:_0x343d7f})=>_0x343d7f===_0x571daf['id'])?_0x571daf['highlight']():_0x571daf['unhighlight']();}['_addRevision'](_0x1c15a9){const _0x57bcbe=di(_0x1c15a9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3cbf35=this['timePeriodViews']['get'](0x0);_0x3cbf35&&_0x3cbf35['startDate']['getTime']()===_0x57bcbe['getTime']()||(_0x3cbf35=new mi(this['locale'],_0x57bcbe,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3cbf35)),_0x3cbf35['addRevision'](_0x1c15a9);}['_removeRevision'](_0x3f7a9e){const _0x2dcf9b=di(_0x3f7a9e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2dcf9b)['removeRevision'](_0x3f7a9e);}['_getTimePeriodViewByStartDate'](_0x50753b){return this['timePeriodViews']['find'](_0x1370d2=>_0x1370d2['startDate']['getTime']()===_0x50753b['getTime']());}}class g extends _0x3aa790{['_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(_0x3ab7ec,_0x11dea4){super(_0x11dea4),this['sourceElement']=_0x3ab7ec,this['model']['document']['createRoot']();const _0x4c8cdb=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x4c8cdb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3fc35f,_0x13f8d5){const _0x2ac880=new this(_0x3fc35f,_0x13f8d5);return await _0x2ac880['initPlugins'](),await _0x2ac880['ui']['init'](_0x3fc35f),await _0x2ac880['data']['init'](_0x2ac880['config']['get']('initialData')||''),_0x2ac880['fire']('ready'),_0x2ac880;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5025c2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aa389){function _0x41172e(_0x26ee0e){return _0x26ee0e['map'](_0x5001a6=>String['fromCharCode'](_0x5001a6))['join']('');}super(_0x3aa389),this['result']='end',_0x3aa389[_0x41172e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41172e([0x76,0x69,0x65,0x77])][_0x41172e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41172e([0x61,0x75,0x74,0x6f]),_0x3aa389[_0x41172e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41172e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41172e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41172e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41172e([0x6f,0x6b])});}}class H extends _0x5025c2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x494f0a){if(super(_0x494f0a),!this['editor']['config']['get']('revisionHistory'))throw new _0x29c262('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3383a5=>this['_showRevisionViewer']({..._0x3383a5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a05ae=>this['_closeRevisionViewer'](_0x2a05ae)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x33bc00=>this['_restoreRevision'](_0x33bc00)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4b8bd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4b8bd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4eb164){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4eb164);}['getRevision'](_0x13ab73){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x13ab73);}['getRevisions'](_0x2330db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2330db||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3375fd=this['editor'],_0x3f5e5b=_0x5e210e(_0x3375fd,p),_0x322d2d=_0x3375fd['plugins']['get']('RevisionTracker'),_0x1b99b2=_0x3375fd['plugins']['get']('Users')['users'];return _0x3f5e5b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3f5e5b['lazyRoots'],(_0x3f5e5b['plugins']['push'](k,d,m,class extends _0x5025c2{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b0e78=this['editor']['plugins']['get']('Users');for(const _0x4c21bf of _0x1b99b2)_0x4c21bf['isAnonymous']||_0x4b0e78['getUser'](_0x4c21bf['id'])||_0x4b0e78['addUser'](_0x4c21bf);const _0x3d4c05=_0x322d2d['repository']['getRevisions']();let _0x326444=null;const _0x1c9b68=this['editor']['plugins']['get']('RevisionViewer');_0x1c9b68['adapter']=_0x322d2d['adapter'],_0x1c9b68['bind']('isEnabled')['to'](_0x322d2d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3375fd,'isReadOnly',_0x233a3b=>!_0x233a3b);for(const _0x2e546e of _0x3d4c05){const _0x55fb15=null===_0x2e546e['creator'];if(_0x55fb15&&_0x2e546e['toVersion']===_0x2e546e['fromVersion'])continue;const _0x285982=_0x2e546e['toJSON']();_0x1c9b68['addRevisionData'](_0x285982,(_0x17202e,_0x4b2869,_0x93cf61)=>{if(_0x55fb15){if(_0x326444)_0x326444['_update'](_0x17202e,_0x4b2869);else{if(!_0x4b2869){const _0x310cd3=_0x93cf61['toJSON']();_0x310cd3['id']=_0x4fb206(),_0x322d2d['saveRevision'](_0x310cd3,_0x93cf61['toVersion'])['then'](_0x43708f=>{_0x326444=_0x43708f;});}}}else _0x2e546e['_update'](_0x17202e,_0x4b2869);});}}},g),_0x3f5e5b);}['_enhanceShowRevisionViewerCallback'](){const _0x340eda=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x30f6ca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1be970=this['editor']['plugins']['get']('Autosave');await _0x1be970['save']();}else await _0x30f6ca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x93ba8b=this['editor']['plugins']['get']('Dialog');_0x93ba8b['isOpen']&&_0x93ba8b['hide']();}const _0xd827c0=this['_getRevisionViewerEditorConfig']();return _0x340eda(_0xd827c0)['then'](_0x102f8d=>{return(this['_viewerEditor']=_0x102f8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x102f8d;})['catch'](_0x571572=>(console['error'](_0x571572),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x222d40=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'](),_0x222d40(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4488a1=this['editor']['plugins']['get']('Annotations');_0x4488a1['refreshVisibility'](),_0x4488a1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x373b60){const _0xcf358e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x190129=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5af98c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5af98c,_0x373b60)['then'](_0x186cc1=>(_0x190129['style']['display']='block',_0xcf358e['style']['display']='none',_0x186cc1));}['_closeRevisionViewer'](_0x406bf2){const _0x403367=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x403367['style']['display']='',_0x406bf2['destroy']();}async['_restoreRevision'](_0x2c97e2){const _0x56c2cc=this['editor'],_0x1e6d78=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51cd5a=_0x56c2cc['plugins']['get']('RevisionTracker'),_0x384173=_0x1e6d78['repository']['getRevision'](_0x2c97e2);let _0x50051e,_0x5c2c3e,_0x41b72f;try{_0x50051e=await _0x1e6d78['getRevisionData'](_0x384173),_0x5c2c3e=await _0x1e6d78['getRevisionRootsAttributes'](_0x384173);}catch(_0x1c0224){return void console['error'](_0x1c0224);}_0x56c2cc['model']['change'](_0x3e0243=>{for(const _0x2156b of Array['from'](_0x56c2cc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3e0243['removeMarker'](_0x2156b);}),_0x1e6d78['isReady']=!0x1,_0x56c2cc['model']['enqueueChange'](_0x44ec01=>{_0x44ec01['setSelection'](null),_0x44ec01['removeSelectionAttribute'](_0x56c2cc['model']['document']['selection']['getAttributeKeys']());const _0x57775e=Object['keys'](_0x50051e);for(const _0x44452f of _0x56c2cc['model']['document']['roots'])'$graveyard'!=_0x44452f['rootName']&&_0x44452f['isAttached']()&&!_0x57775e['includes'](_0x44452f['rootName'])&&_0x44ec01['detachRoot'](_0x44452f);for(const _0x45d7ed of _0x57775e){let _0x2fc508=_0x56c2cc['model']['document']['getRoot'](_0x45d7ed);_0x2fc508&&_0x2fc508['isAttached']()||(_0x2fc508=_0x44ec01['addRoot'](_0x45d7ed));const _0x36bd83=_0x5c2c3e[_0x45d7ed],_0xc3a810=Object['keys'](_0x36bd83),_0x5145c5=_0x50051e[_0x45d7ed];for(const _0x2ff3ca of _0x2fc508['getAttributeKeys']())_0xc3a810['includes'](_0x2ff3ca)||_0x44ec01['removeAttribute'](_0x2ff3ca,_0x2fc508);for(const _0x40bd37 of _0xc3a810)_0x44ec01['setAttribute'](_0x40bd37,_0x5c2c3e[_0x45d7ed][_0x40bd37],_0x2fc508);_0x44ec01['remove'](_0x44ec01['createRangeIn'](_0x2fc508)),_0x44ec01['insert'](_0x56c2cc['data']['parse'](_0x5145c5,_0x2fc508),_0x2fc508,0x0);}});const _0x3cb7c0=R(_0x56c2cc['locale'],'Restored');if(_0x384173['name'])_0x41b72f=-0x1==_0x384173['name']['indexOf'](_0x3cb7c0)?_0x3cb7c0+':\x20'+_0x384173['name']:_0x384173['name'];else _0x41b72f=_0x3cb7c0+':\x20'+(_0x384173['createdAt']['toLocaleDateString'](_0x56c2cc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x384173['createdAt']['toLocaleTimeString'](_0x56c2cc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51cd5a['saveRevision']({'name':_0x41b72f}),_0x1e6d78['isReady']=!0x0,_0x56c2cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de 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(_0x489e25){super(_0x489e25),this['_revisionViewer']=_0x489e25['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1c38d8=this['_revisionsRepository']['_revisions'],_0x2f2c53=this['_createRevisionActions'](),_0xef0791=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1c38d8,_0x2f2c53,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',(_0x2b8238,_0xc246db)=>{_0xc246db['revisionViews']['on']('add',(_0x2ec32d,_0x12cdd4)=>{_0x12cdd4['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)),_0xef0791['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x45e3ef=this['_revisionsRepository']['getRevision'](0x0);if(_0x45e3ef){const _0x3ec021=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45e3ef['id']);this['_revisionViewer']['compare'](_0x45e3ef,_0x3ec021);}}['_handleRevisionSelected'](_0x58441c,_0x433f1f){const _0x949d72=this['_revisionsRepository']['getRevision'](_0x433f1f['id']),_0x479d55=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x949d72['id']);this['_revisionViewer']['compare'](_0x949d72,_0x479d55);}['_handleRevisionSetName'](_0x54c17d,_0x2201a5){this['_revisionsRepository']['getRevision'](_0x2201a5['id'])['setName'](_0x2201a5['name']);}['_handleDiffChange'](_0x22f4b1,_0xed8738,_0x1fddf0){const _0x5ad025=this['_revisionsRepository']['getRevisionsInDiff'](_0x1fddf0);_0x5ad025['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5ad025),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5ad025[0x0]));}['_createRevisionActions'](){const _0x20a075=this['editor'],_0x4080eb=g['availableRevisionActions'],_0x142b12=_0x20a075['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x142b12['length'])return _0x142b12['map'](_0x1067d8=>{const _0x35a807='string'==typeof _0x1067d8?Object['assign']({},_0x4080eb[_0x1067d8]):_0x1067d8;return _0x35a807['action']=_0x35a807['action']['bind'](this,_0x20a075),_0x35a807['isVisible']&&(_0x35a807['isVisible']=_0x35a807['isVisible']['bind'](this,_0x20a075)),_0x35a807;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3c4a0c},_0x2a6030)=>{const _0x146423=_0x3c4a0c['get'](d),_0x2609b0=_0x146423['repository'];let _0x523819=_0x146423['diff']['newRevisionId'],_0x40893d=_0x2a6030['id'];_0x2609b0['getIndex'](_0x523819)>_0x2609b0['getIndex'](_0x40893d)&&([_0x523819,_0x40893d]=[_0x40893d,_0x523819]),_0x146423['compare'](_0x523819,_0x40893d);},'isVisible':({plugins:_0x115273},_0x3e1818)=>{const _0x3229c8=_0x115273['get'](d);return!(_0x3229c8['repository']['getRevisionsInDiff'](_0x3229c8['diff'])['length']>0x2)&&!_0x3e1818['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e8ea5,{id:_0x15a503})=>{_0x1e8ea5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15a503);},'isVisible':({plugins:_0x42de53},_0x6c9d79)=>!!_0x42de53['get'](d)['repository']['getLaterVisibleRevision'](_0x6c9d79['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x267233},{id:_0x5c5663,revisionNameView:_0x4a5a17})=>{const _0x148373=_0x267233['get'](d),_0x9e6a29=_0x148373['repository']['getEarlierVisibleRevision'](_0x5c5663);_0x148373['compare'](_0x5c5663,_0x9e6a29),_0x4a5a17['focus'](),_0x4a5a17['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x23d798,_0x490b83){super(_0x23d798),this['_view']=_0x490b83,this['_toolbarConfig']=ht(_0x23d798['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x302f8e){const _0x129298=this['editor'],_0x388077=this['view'],_0x86b51e=_0x129298['editing']['view'],_0x3fb566=_0x388077['editable'],_0x18acbd=_0x86b51e['document']['getRoot']();_0x3fb566['name']=_0x18acbd['rootName'],_0x388077['render']();const _0x426c25=_0x3fb566['element'];this['setEditableElement'](_0x3fb566['name'],_0x426c25),_0x388077['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x86b51e['attachDomRoot'](_0x426c25),this['_elementReplacer']['replace'](_0x302f8e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xa0696f=this['view'],_0x441823=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x441823['detachDomRoot'](_0xa0696f['editable']['name']),_0xa0696f['destroy']();}['_initToolbar'](){const _0x1841f4=this['view'];_0x1841f4['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1841f4['stickyPanel']['limiterElement']=_0x1841f4['element'],_0x1841f4['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3f1342})=>_0x3f1342),_0x1841f4['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1841f4['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x30b361,_0x743463,_0x4b0858={}){super(_0x30b361),this['stickyPanel']=new lt(_0x30b361),this['toolbar']=new nt(_0x30b361,{'shouldGroupWhenFull':_0x4b0858['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x30b361,_0x743463);}['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(_0x6f373a,_0x48820f){super(_0x48820f),this['sourceElement']=_0x6f373a,this['model']['document']['createRoot']();const _0x33c476=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33c476);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x42ecf5,_0xa704c0){const _0x20a62a=new this(_0x42ecf5,_0xa704c0);return await _0x20a62a['initPlugins'](),await _0x20a62a['ui']['init'](_0x42ecf5),await _0x20a62a['data']['init'](_0x20a62a['config']['get']('initialData')||''),_0x20a62a['fire']('ready'),_0x20a62a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x3aa790{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9269c6){function _0x5d01c4(_0x5af3a3){return _0x5af3a3['map'](_0x198a28=>String['fromCharCode'](_0x198a28))['join']('');}super(_0x9269c6),this['result']='end',_0x9269c6[_0x5d01c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d01c4([0x76,0x69,0x65,0x77])][_0x5d01c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d01c4([0x61,0x75,0x74,0x6f]),_0x9269c6[_0x5d01c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d01c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d01c4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d01c4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d01c4([0x6f,0x6b])});}}class H extends _0x3aa790{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x24c661){if(super(_0x24c661),!this['editor']['config']['get']('revisionHistory'))throw new _0x5c2956('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x530990=>this['_showRevisionViewer']({..._0x530990,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1edb04=>this['_closeRevisionViewer'](_0x1edb04)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x11bf36=>this['_restoreRevision'](_0x11bf36)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c242){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c242;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3cf072){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3cf072);}['getRevision'](_0x1d54ae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d54ae);}['getRevisions'](_0x28268f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x28268f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4e0b02=this['editor'],_0x4c9159=_0x23c0b8(_0x4e0b02,p),_0x40dc35=_0x4e0b02['plugins']['get']('RevisionTracker'),_0x33eed3=_0x4e0b02['plugins']['get']('Users')['users'];return _0x4c9159['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4c9159['lazyRoots'],(_0x4c9159['plugins']['push'](k,d,m,class extends _0x3aa790{static get['requires'](){return[d,'Users'];}['init'](){const _0x3d2f03=this['editor']['plugins']['get']('Users');for(const _0x2fe252 of _0x33eed3)_0x2fe252['isAnonymous']||_0x3d2f03['getUser'](_0x2fe252['id'])||_0x3d2f03['addUser'](_0x2fe252);const _0x48628b=_0x40dc35['repository']['getRevisions']();let _0x3804d9=null;const _0x7fb053=this['editor']['plugins']['get']('RevisionViewer');_0x7fb053['adapter']=_0x40dc35['adapter'],_0x7fb053['bind']('isEnabled')['to'](_0x40dc35),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4e0b02,'isReadOnly',_0x2a6340=>!_0x2a6340);for(const _0x3e15e4 of _0x48628b){const _0x5afb14=null===_0x3e15e4['creator'];if(_0x5afb14&&_0x3e15e4['toVersion']===_0x3e15e4['fromVersion'])continue;const _0x2d2d69=_0x3e15e4['toJSON']();_0x7fb053['addRevisionData'](_0x2d2d69,(_0x40fcfd,_0x3c4360,_0x2b096e)=>{if(_0x5afb14){if(_0x3804d9)_0x3804d9['_update'](_0x40fcfd,_0x3c4360);else{if(!_0x3c4360){const _0x45e28b=_0x2b096e['toJSON']();_0x45e28b['id']=_0x202f37(),_0x40dc35['saveRevision'](_0x45e28b,_0x2b096e['toVersion'])['then'](_0x3df30c=>{_0x3804d9=_0x3df30c;});}}}else _0x3e15e4['_update'](_0x40fcfd,_0x3c4360);});}}},g),_0x4c9159);}['_enhanceShowRevisionViewerCallback'](){const _0x131812=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x19a40f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x242103=this['editor']['plugins']['get']('Autosave');await _0x242103['save']();}else await _0x19a40f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30b048=this['editor']['plugins']['get']('Dialog');_0x30b048['isOpen']&&_0x30b048['hide']();}const _0x55716e=this['_getRevisionViewerEditorConfig']();return _0x131812(_0x55716e)['then'](_0x406fc6=>{return(this['_viewerEditor']=_0x406fc6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x406fc6;})['catch'](_0x3f7f4f=>(console['error'](_0x3f7f4f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x496e55=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'](),_0x496e55(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2cc1d9=this['editor']['plugins']['get']('Annotations');_0x2cc1d9['refreshVisibility'](),_0x2cc1d9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x19fcce){const _0x30f2be=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xb694da=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33c41e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33c41e,_0x19fcce)['then'](_0x576e2a=>(_0xb694da['style']['display']='block',_0x30f2be['style']['display']='none',_0x576e2a));}['_closeRevisionViewer'](_0x1de40e){const _0x6e5e0a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x6e5e0a['style']['display']='',_0x1de40e['destroy']();}async['_restoreRevision'](_0x444e92){const _0x30b2ba=this['editor'],_0x5ea98e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x55c31c=_0x30b2ba['plugins']['get']('RevisionTracker'),_0x3937a9=_0x5ea98e['repository']['getRevision'](_0x444e92);let _0x492000,_0x12c732,_0x3df4dd;try{_0x492000=await _0x5ea98e['getRevisionData'](_0x3937a9),_0x12c732=await _0x5ea98e['getRevisionRootsAttributes'](_0x3937a9);}catch(_0x26cc08){return void console['error'](_0x26cc08);}_0x30b2ba['model']['change'](_0x411684=>{for(const _0x1ebbdc of Array['from'](_0x30b2ba['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x411684['removeMarker'](_0x1ebbdc);}),_0x5ea98e['isReady']=!0x1,_0x30b2ba['model']['enqueueChange'](_0xa7eb94=>{_0xa7eb94['setSelection'](null),_0xa7eb94['removeSelectionAttribute'](_0x30b2ba['model']['document']['selection']['getAttributeKeys']());const _0x326fc0=Object['keys'](_0x492000);for(const _0x48c072 of _0x30b2ba['model']['document']['roots'])'$graveyard'!=_0x48c072['rootName']&&_0x48c072['isAttached']()&&!_0x326fc0['includes'](_0x48c072['rootName'])&&_0xa7eb94['detachRoot'](_0x48c072);for(const _0x4254c4 of _0x326fc0){let _0x5ac075=_0x30b2ba['model']['document']['getRoot'](_0x4254c4);_0x5ac075&&_0x5ac075['isAttached']()||(_0x5ac075=_0xa7eb94['addRoot'](_0x4254c4));const _0x4b4d61=_0x12c732[_0x4254c4],_0x5c155b=Object['keys'](_0x4b4d61),_0x446bf2=_0x492000[_0x4254c4];for(const _0x5bdfd0 of _0x5ac075['getAttributeKeys']())_0x5c155b['includes'](_0x5bdfd0)||_0xa7eb94['removeAttribute'](_0x5bdfd0,_0x5ac075);for(const _0x44762a of _0x5c155b)_0xa7eb94['setAttribute'](_0x44762a,_0x12c732[_0x4254c4][_0x44762a],_0x5ac075);_0xa7eb94['remove'](_0xa7eb94['createRangeIn'](_0x5ac075)),_0xa7eb94['insert'](_0x30b2ba['data']['parse'](_0x446bf2,_0x5ac075),_0x5ac075,0x0);}});const _0x4e9fc0=R(_0x30b2ba['locale'],'Restored');if(_0x3937a9['name'])_0x3df4dd=-0x1==_0x3937a9['name']['indexOf'](_0x4e9fc0)?_0x4e9fc0+':\x20'+_0x3937a9['name']:_0x3937a9['name'];else _0x3df4dd=_0x4e9fc0+':\x20'+(_0x3937a9['createdAt']['toLocaleDateString'](_0x30b2ba['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3937a9['createdAt']['toLocaleTimeString'](_0x30b2ba['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x55c31c['saveRevision']({'name':_0x3df4dd}),_0x5ea98e['isReady']=!0x0,_0x30b2ba['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};
|