@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241210.0 → 0.0.0-nightly-20241212.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
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x96c3fd,uid as _0x4e6837,Collection as _0x3fda2b,logWarning as _0x1d5680,FocusTracker as _0x71f497,KeystrokeHandler as _0x5cd6bf,scrollViewportToShowTarget as _0x28cd2e,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x420f22}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f3c34,set as _0x1fadfa,unset as _0x5a11d4,isEqual as _0x3efd05}from'lodash-es';import{Plugin as _0x1c98c7,PendingActions as _0x1f7a70,icons as _0x14c866,Command as _0x4faceb,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ae6c4,getMarkerDomElement as _0x415cb4,ConfirmMixin as ti,sanitizeEditorConfig as _0x1541f1}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5a9f7e,ViewText as _0x377b5b,ViewElement as _0x1fac3b,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x58bc9a,ViewAttributeElement as _0x4662ee,ViewEmptyElement as _0x425a8a,ViewRawElement as _0x206af8,ViewUIElement as _0x224256,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1e424c,submitHandler as _0x4c83e3,LabeledFieldView as _0x3f921c,createLabeledInputText as _0x2498fb,createDropdown as _0x547500,ListView as _0x1c3951,ListItemView as _0x4d7d59,ButtonView as te,MenuBarMenuView as _0x10f5c5,MenuBarMenuListView as _0xbf7996,MenuBarMenuListItemView as _0x228704,MenuBarMenuListItemButtonView as _0x3ceb1f,ContextualBalloon as _0x3c5899,ToolbarSeparatorView as _0x54463f,IconView as _0x825bd1,addListToDropdown as to,ViewModel as _0x4c462f,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 _0x4c6978}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x96c3fd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x333052){super(),this['id']=_0x333052['id']||_0x4e6837(),this['creator']=_0x333052['creator']||null,this['authors']=_0x333052['authors']||[],this['diffData']=_0x333052['diffData']||null,this['toVersion']=_0x333052['toVersion']||0x0,this['fromVersion']=_0x333052['fromVersion']||0x0,this['set']('name',_0x333052['name']||''),this['set']('createdAt',_0x333052['createdAt']||new Date()),this['set']('attributes',_0x333052['attributes']||{});}['setName'](_0x18fd4d){this['_update']({'name':_0x18fd4d});}['setAttribute'](_0x5a5460,_0xab231b){const _0x5eae51=_0x3f3c34(this['attributes']);_0x1fadfa(_0x5eae51,_0x5a5460,_0xab231b),this['_update']({'attributes':_0x5eae51});}['removeAttribute'](_0x3781a4){const _0x2e675e=_0x3f3c34(this['attributes']);_0x5a11d4(_0x2e675e,_0x3781a4),this['_update']({'attributes':_0x2e675e});}['_update'](_0x2b2c58,_0xf6b2e7=!0x1){let _0x47aba6=!0x1;const _0x303e9b={'id':this['id']},_0x4acc25=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfeeb3b of _0x4acc25){const _0x311eed=_0x2b2c58[_0xfeeb3b];void 0x0!==_0x311eed&&_0x311eed!==this[_0xfeeb3b]&&(this[_0xfeeb3b]=_0x311eed,_0x303e9b[_0xfeeb3b]=_0x311eed,_0x47aba6=!0x0);}_0x47aba6&&(_0x303e9b['authors']&&(_0x303e9b['authorsIds']=_0x303e9b['authors']['map'](_0x15d718=>_0x15d718['id']),delete _0x303e9b['authors']),this['fire']('_update',_0x303e9b,_0xf6b2e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1a1f87=>_0x1a1f87['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c98c7{['_revisions'];static get['requires'](){return[_0x4ae6c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x29e69d){super(_0x29e69d),this['_revisions']=new _0x3fda2b();}['afterInit'](){!async function(_0x97203d){const _0x173e42=_0x2d4aa2([0x38,0x57,0x69,0x45,0x44,0x4e,0x53,0x72,0x77,0x4d,0x71,0x51,0x4f,0x35,0x79,0x37,0x46,0x76,0x43,0x67,0x41,0x39,0x6b,0x42,0x75,0x4c,0x73,0x66,0x6e,0x62,0x68,0x5a,0x48,0x52,0x30,0x47,0x7a,0x64,0x78,0x6c,0x59,0x65,0x50,0x6d,0x56,0x49,0x31,0x55,0x36,0x6a,0x61,0x32,0x54,0x74,0x58,0x63,0x6f,0x70,0x4b,0x4a,0x33,0x34]),_0xa64e42=0xeb829,_0x26a46b=0xa9aa744,_0x4d69a5=0xa9dfe3c^_0x26a46b,_0x4637c6=window[_0x2d4aa2([0x44,0x61,0x74,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])](),_0x994a51=_0x97203d[_0x2d4aa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22c66d=new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159709=>{_0x994a51[_0x2d4aa2([0x6f,0x6e,0x63,0x65])](_0x2d4aa2([0x72,0x65,0x61,0x64,0x79]),_0x159709);}),_0xadc36c={[_0x2d4aa2([0x6b,0x74,0x79])]:_0x2d4aa2([0x45,0x43]),[_0x2d4aa2([0x75,0x73,0x65])]:_0x2d4aa2([0x73,0x69,0x67]),[_0x2d4aa2([0x63,0x72,0x76])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36]),[_0x2d4aa2([0x78])]:_0x2d4aa2([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]),[_0x2d4aa2([0x79])]:_0x2d4aa2([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]),[_0x2d4aa2([0x61,0x6c,0x67])]:_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])},_0xb8cc20=_0x994a51[_0x2d4aa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d4aa2([0x67,0x65,0x74])](_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ab42b(){let _0x1bded1,_0x4d942a=null,_0x40138b=null;try{if(_0xb8cc20==_0x2d4aa2([0x47,0x50,0x4c]))return _0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bded1=_0x26607d(),!_0x1bded1)return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40138b=_0x2ad409(_0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bded1[_0x2d4aa2([0x6a,0x74,0x69])])),await _0x3f55c9()?_0x1afa32()?_0x33a73e()?_0x2d4aa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x372fde()?(_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3677da()):_0x2d4aa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d27ee){return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33a73e(){const _0xcfe5e7=[_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])][_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4637c6/0x3e8:0xe10*_0x4d69a5;return _0x1bded1[_0x2d4aa2([0x65,0x78,0x70])]<_0xcfe5e7;}function _0x1afa32(){const _0xcb052a=_0x1bded1[_0x2d4aa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xcb052a)return!0x1;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x48])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x52,0x48]))){if(_0x58a8e1())return!0x0;if(_0x3181e0()||_0x12c53c())return!0x0;}return!0x1;}function _0x372fde(){const _0x48913e=_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48913e||0x0==_0x48913e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5bd1}=new URL(window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48913e[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5bd1))return!0x0;const _0xc82ba7=_0x2d5bd1[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));return _0x48913e[_0x2d4aa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cc01d=>_0x4cc01d[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))[_0x2d4aa2([0x6d,0x61,0x70])](_0x1e89c2=>_0x1e89c2[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])))[_0x2d4aa2([0x73,0x6f,0x6d,0x65])](_0x41ea90=>_0xc82ba7[_0x2d4aa2([0x65,0x76,0x65,0x72,0x79])]((_0x37e32d,_0x2a116b)=>_0x41ea90[_0x2a116b]===_0x37e32d||_0x41ea90[_0x2a116b]===_0x2d4aa2([0x2a])));}function _0x3677da(){return _0x4d942a&&_0x40138b?new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1683,_0x440ca8)=>{_0x4d942a[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x1d1683,_0x440ca8),_0x40138b[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x4cea34=>{_0x4cea34!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1683(_0x4cea34);},_0x440ca8);}):_0x4d942a||_0x40138b||_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ad409(_0x2be34f,_0x5d08ee){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d912=>{if(_0x409d86())return _0x42d912(_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]));_0x2e9771(),_0x994a51[_0x2d4aa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f4827=!0x1;const _0x4b9b67=_0x4e6837();function _0x15d54b(_0x59b6ac){return!!_0x59b6ac&&(typeof _0x59b6ac===_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59b6ac===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59b6ac[_0x2d4aa2([0x74,0x68,0x65,0x6e])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59b6ac[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34c00b(_0x317549){_0x52a31e(_0x317549)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x53bf7d=>{if(!_0x53bf7d||_0x53bf7d[_0x2d4aa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d4aa2([0x6f,0x6b]))return _0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad6e7(_0x5920c5(_0x4b9b67+_0x5d08ee))!=_0x53bf7d[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x2eb18e=>(_0x636a6(),_0x2eb18e),()=>{const _0x52af76=_0x35e8a6();return null==_0x52af76?(_0x636a6(),_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])):_0x2d4aa2(_0x4637c6-_0x52af76>(0x2e962344^_0x26a46b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x42d912)[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230d1b=0xaac49c4^_0x26a46b;function _0x636a6(){const _0x4d6b7d=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x2321c7=_0x165100(_0x4ad6e7(window[_0x2d4aa2([0x4d,0x61,0x74,0x68])][_0x2d4aa2([0x63,0x65,0x69,0x6c])](_0x4637c6/_0x230d1b)));window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d6b7d,_0x2321c7);}function _0x35e8a6(){const _0x570856=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x3c4cb7=window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570856);return _0x3c4cb7?window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165100(_0x3c4cb7),0x10)*_0x230d1b:null;}function _0x52a31e(_0x4ad23c){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f93e,_0x3c2bee)=>{_0x4ad23c[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x38f93e,_0x3c2bee),window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c2bee,0xa9b7384^_0x26a46b);});}}_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634fd,_0x3fb0c2)=>{if(_0x3fb0c2[0x0]!=_0x2be34f)return _0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fb0c2[0x1]={..._0x3fb0c2[0x1],[_0x2d4aa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9b67};},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x68,0x69,0x67,0x68])}),_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645962=>{_0x15d54b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f4827=!0x0,_0x34c00b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x6c,0x6f,0x77])}),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>{_0x3f4827||_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409d86(){return _0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d4aa2([0x61,0x75,0x74,0x6f]);}function _0x2e9771(){_0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d4aa2([0x61,0x75,0x74,0x6f]);}}function _0x451e3f(_0x2ffd0a){const _0xc38ed0=[new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546c6a=>setTimeout(_0x546c6a,0xa939988^_0x26a46b)),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b4d5a=>{const _0x5df74d=0xa9aa743^_0x26a46b,_0x53dd97=_0x97203d[_0x2d4aa2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x379a89(){_0x53dd97[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5df74d&&_0x2b4d5a();}_0x379a89(),_0x53dd97[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x61,0x64,0x64]),_0x379a89);})),new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52405f=>{function _0x184b6a(){for(const _0x3d0bf1 in window)if(window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d0bf1))&&window[_0x3d0bf1]==_0xa64e42)return _0x52405f();_0x994a51[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]!=_0x2d4aa2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184b6a,0xa9ab4cc^_0x26a46b);}_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184b6a();})];return window[_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d4aa2([0x72,0x61,0x63,0x65])](_0xc38ed0)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>_0x2ffd0a);}async function _0x467304(){if(await _0x22c66d,_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5099d6=_0x97203d[_0x2d4aa2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185dd9=_0x97203d[_0x2d4aa2([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])](_0x5099d6[_0x2d4aa2([0x69,0x64])]),_0x23da40=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5099d6['id'],_0x185dd9?_0x185dd9['id']:null,!0x0),_0x23da40[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23da40[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x138e18,void(_0x23da40[_0x2d4aa2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x138e18);}if(_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bf98=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bf98[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bf98[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bf98[_0x2d4aa2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x138e18,_0x59bf98[_0x2d4aa2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x138e18;}_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58a8e1(){return _0x237031(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1866be(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]==_0x2d4aa2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3181e0(){return _0x237031(_0x2d4aa2([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 _0x12c53c(){return _0x237031(_0x2d4aa2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x261c28(_0xacb270){const _0x177026=_0x258151();_0x994a51[_0x177026]=_0x2d4aa2([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])+_0xacb270,_0xacb270[_0x2d4aa2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x258151()]=_0xa64e42),_0xacb270!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x467304();}function _0x258151(){const _0x5948a5=window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d4aa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])]())[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d4aa2([0x2e]),'');let _0x315c56=_0x2d4aa2([0x57]);for(let _0x369335=0x0;_0x369335<_0x5948a5[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369335+=0x2){let _0x470078=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5948a5[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x369335,_0x369335+0x2));_0x470078>=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x470078-=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x315c56+=_0x173e42[_0x470078];}return _0x315c56;}function _0x26607d(){const _0x358027=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));if(0x3!=_0x358027[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45f7a6(_0x358027[0x1]);function _0x45f7a6(_0x4f934e){const _0x50811b=_0x1079f5(_0x4f934e);return _0x50811b&&_0x4aa9a4()?_0x50811b:null;function _0x4aa9a4(){const _0x58730e=_0x50811b[_0x2d4aa2([0x6a,0x74,0x69])],_0x4a498d=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495c7f={..._0x50811b,[_0x2d4aa2([0x6a,0x74,0x69])]:_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495c7f[_0x2d4aa2([0x76,0x63])],_0x5920c5(_0x495c7f)==_0x4a498d;}}}async function _0x3f55c9(){let _0x24f2fa=!0x0;try{const _0x2f4866=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])),[_0x45750f,_0x2b3fc0,_0x22e585]=_0x2f4866;return _0x3b1f6d(_0x45750f),await _0x1b6a95(_0x45750f,_0x2b3fc0,_0x22e585),_0x24f2fa;}catch(_0x2b1532){return!0x1;}function _0x3b1f6d(_0x107551){const _0x405d4d=_0x1079f5(_0x107551);_0x405d4d&&_0x405d4d[_0x2d4aa2([0x61,0x6c,0x67])]==_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])||(_0x24f2fa=!0x1);}async function _0x1b6a95(_0x2059c8,_0x2fb8df,_0x22060e){const _0x52d447=window[_0x2d4aa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d4aa2([0x66,0x72,0x6f,0x6d])](_0x25425a(_0x22060e),_0x1ddebc=>_0x1ddebc[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22386b=new window[(_0x2d4aa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d4aa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2059c8+_0x2d4aa2([0x2e])+_0x2fb8df),_0x1115d1=window[_0x2d4aa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d4aa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1115d1)return;const _0x426c37=await _0x1115d1[_0x2d4aa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d4aa2([0x6a,0x77,0x6b]),_0xadc36c,{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1115d1[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x68,0x61,0x73,0x68])]:{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426c37,_0x52d447,_0x22386b)||(_0x24f2fa=!0x1);}}function _0x1079f5(_0x185867){return _0x185867[_0x2d4aa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x65,0x79]))?JSON[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65])](_0x25425a(_0x185867)):null;}function _0x25425a(_0x46acbb){return window[_0x2d4aa2([0x61,0x74,0x6f,0x62])](_0x46acbb[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d4aa2([0x2b]))[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d4aa2([0x2f])));}function _0x5920c5(_0xc12e1){let _0x37db6c=0x1505;function _0x1734fb(_0x2367bf){for(let _0x182694=0x0;_0x182694<_0x2367bf[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x182694++){const _0x6c19ce=_0x2367bf[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x182694);_0x37db6c=(_0x37db6c<<0x5)+_0x37db6c+_0x6c19ce,_0x37db6c&=_0x37db6c;}}function _0x501e0a(_0x2ef2c5){Array[_0x2d4aa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ef2c5)?_0x2ef2c5[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x501e0a):_0x2ef2c5&&typeof _0x2ef2c5==_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d4aa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ef2c5)[_0x2d4aa2([0x73,0x6f,0x72,0x74])]()[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x85643e,_0x1172d3])=>{_0x1734fb(_0x85643e),_0x501e0a(_0x1172d3);}):_0x1734fb(window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ef2c5));}return _0x501e0a(_0xc12e1),_0x37db6c>>>0x0;}function _0x4ad6e7(_0x367eb1){return _0x367eb1[_0x2d4aa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d4aa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d4aa2([0x30]));}function _0x165100(_0x7592ad){return _0x7592ad[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d4aa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d4aa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x237031(_0x23622f){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x68,0x61,0x73])](_0x23622f);}function _0x1866be(_0x1e7b06){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x67,0x65,0x74])](_0x1e7b06);}function _0x138e18(){}function _0x2d4aa2(_0x40950e){return _0x40950e['map'](_0x2aacc0=>String['fromCharCode'](_0x2aacc0))['join']('');}_0x261c28(await _0x3ab42b());}(this);}['createRevision'](_0x4e42d5){const _0x362134=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e42d5['id'],'name':_0x4e42d5['name'],'creator':_0x4e42d5['creatorId']?_0x362134['getUser'](_0x4e42d5['creatorId']):null,'diffData':_0x4e42d5['diffData']||_0x4e42d5['data'],'authors':_0x4e42d5['authorsIds']['map'](_0x2fb79e=>_0x362134['getUser'](_0x2fb79e)),'createdAt':new Date(_0x4e42d5['createdAt']),'attributes':_0x4e42d5['attributes'],'fromVersion':_0x4e42d5['fromVersion'],'toVersion':_0x4e42d5['toVersion']});}['addRevision'](_0x4b8687,_0x3855c0=0x0){this['_revisions']['add'](_0x4b8687,_0x3855c0);}['getRevision'](_0x4aa5ab){return this['_revisions']['get'](_0x4aa5ab);}['getRevisions'](_0x549a21={'toJSON':!0x1}){const _0x24bb76=Array['from'](this['_revisions']);return _0x24bb76['reverse'](),_0x549a21['toJSON']?_0x24bb76['map'](_0x51b606=>_0x51b606['toJSON']()):_0x24bb76;}['getIndex'](_0x5448a9){return this['_revisions']['getIndex'](_0x5448a9);}['getEarlierVisibleRevision'](_0x402752){const [,_0x5f0c12]=this['getRevisionsIterator'](_0x402752,{'direction':'earlier'});return _0x5f0c12;}['getLaterVisibleRevision'](_0x55d4f1){const [,_0x305a19]=this['getRevisionsIterator'](_0x55d4f1,{'direction':'later'});return _0x305a19;}['getRevisionsInDiff'](_0x229f59){const _0x3aac2f=[];for(const _0x24c77a of this['getRevisionsIterator'](_0x229f59['newRevisionId']))if(_0x3aac2f['push'](_0x24c77a),_0x24c77a['id']===_0x229f59['oldRevisionId'])break;return _0x3aac2f;}*['getRevisionsIterator'](_0x2a2f99,{direction:_0x5b9e71='earlier',filter:_0x5d1457=()=>!0x0}={}){const _0xf61819='earlier'===_0x5b9e71?0x1:-0x1;let _0x3b204a=this['_revisions']['get'](_0x2a2f99),_0x1080c9=this['getIndex'](_0x3b204a);for(yield _0x3b204a;_0x3b204a;){if(_0x1080c9+=_0xf61819,_0x3b204a=this['getRevision'](_0x1080c9),!_0x3b204a)return;_0x5d1457(_0x3b204a)&&(yield _0x3b204a);}}}function R(_0x4fd1a2,_0x2b08d4,_0x343f8e){const t=_0x4fd1a2['t'];switch(_0x2b08d4){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'},_0x343f8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x343f8e);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':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class l extends _0x1c98c7{['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[_0x4ae6c4,j,_0x1f7a70];}constructor(_0x2dc833){super(_0x2dc833),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 _0x18b36f=_0x4e6837();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b36f},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 _0x3b354a=this['repository']['getRevision'](0x0),_0x1daf2c=_0x3b354a&&null===_0x3b354a['creator']?_0x3b354a:null;if(this['_continueCurrentRevision']=!!_0x1daf2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ebe78=this['_source']['getCurrentRevisionId'](),_0x198a39=this['repository']['getRevision'](_0x5ebe78);if(_0x198a39)this['_startingVersion']=_0x198a39['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2dbd9e=this['_source']['history']['_operations']['find'](_0xa178b3=>!_0xa178b3['_isInit']),_0x267171=_0x2dbd9e?_0x2dbd9e['baseVersion']:this['_source']['history']['version'];_0x3b354a?(_0x3b354a['toVersion']<_0x267171&&_0x3b354a['_update']({'toVersion':_0x267171}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['fromVersion']):(this['_startingVersion']=_0x3b354a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x267171,this['_continueCurrentRevision']=!0x1);}}else _0x1daf2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1daf2c['toVersion'],this['editor']['model']['document']['history']['version']),_0x1daf2c['fromVersion']===_0x1daf2c['toVersion']?(0x0!==_0x1daf2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['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',_0x2c6183=>!_0x2c6183),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9759=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d3602;for(const _0x158bcd in _0x4a9759){const _0x12579b=_0x158bcd,_0x241f01=_0x4a9759[_0x12579b];if('revisionHistoryLicenseKeyValid'==_0x241f01||'revisionHistoryLicenseKeyInvalid'==_0x241f01||'revisionHistoryLicenseKeyExpired'==_0x241f01||'revisionHistoryLicenseKeyDomainLimit'==_0x241f01||'revisionHistoryLicenseKeyNotAllowed'==_0x241f01||'revisionHistoryLicenseKeyEvaluationLimit'==_0x241f01||'revisionHistoryLicenseKeyTrialLimit'==_0x241f01||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x241f01||'revisionHistoryLicenseKeyUsageLimit'==_0x241f01){delete _0x4a9759[_0x12579b],_0x1d3602=_0x241f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d3602&&_0x4a9759['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d3602&&_0x4a9759['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d3602&&_0x4a9759['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4814d2=this['repository']['getRevision'](0x0),_0x4b4852=await this['getRevisionDocumentData'](_0x4814d2),_0xad1f70=await this['getRevisionRootsAttributes'](_0x4814d2);this['_replaceEditorDataWithRevisionData'](_0x4b4852,_0xad1f70);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x148bcc){this['_source']=_0x148bcc;}async['update'](){const _0x217770=await this['_source']['getLatestVersion']();if(_0x217770>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c62bb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x217770});_0x2c62bb['authors']=_0x2c62bb['authorsIds']['map'](_0x1377fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x1377fc)),this['currentRevision']['_update'](_0x2c62bb);}}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'](_0x989d83={},_0x445979=null){const _0x32af2b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x445979>this['currentRevision']['toVersion']&&(_0x445979=null),null===_0x445979&&(_0x445979=await this['_source']['getLatestVersion']());const _0x1b4e70=this['_getFromVersion'](_0x445979),_0x557fa0=this['buildRevisionData']({'from':_0x1b4e70,'to':_0x445979});if(this['currentRevision']['toVersion']<_0x445979){const _0x3d03a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x445979,'to':_0x445979});_0x3d03a5['authors']=[],_0x3d03a5['authorsIds']=[],_0x3d03a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d03a5,!0x0),delete _0x3d03a5['authors'],_0x32af2b['push'](_0x3d03a5);}_0x989d83['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x989d83['name']=_0x989d83['name']||null,_0x989d83['id']=_0x989d83['id']||_0x4e6837(),_0x989d83={..._0x989d83,..._0x557fa0};const _0x3b1872=this['addRevisionData'](_0x989d83);_0x32af2b['push'](_0x989d83);const _0x59c5a0=this['repository']['getIndex'](_0x3b1872);if(0x0!==_0x59c5a0){const _0x1d047f=this['repository']['getRevision'](_0x59c5a0-0x1);if(_0x1d047f['fromVersion']!==_0x445979){const _0x31c1a9=this['_revisionDataBuilder']['getData'](_0x445979,_0x1d047f['toVersion']),_0x123bc5={'id':_0x1d047f['id'],'diffData':_0x31c1a9['diffData'],'authorsIds':_0x31c1a9['authorsIds'],'authors':_0x31c1a9['authorsIds']['map'](_0x169a12=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a12)),'fromVersion':_0x445979};_0x1d047f===this['currentRevision']&&(_0x123bc5['createdAt']=new Date(_0x989d83['createdAt']['getTime']()+0xa)),_0x1d047f['_update'](_0x123bc5,!0x0),delete _0x123bc5['authors'],_0x32af2b['push'](_0x123bc5);}}if(this['adapter']){for(const _0x437f0d of _0x32af2b)this['_bufferUpdate'](_0x437f0d['id'],_0x437f0d,!0x0);this['sendBufferedUpdates']();}return _0x3b1872;}['addRevisionData'](_0x31d2a4){const _0x4f1b01=this['repository']['createRevision'](_0x31d2a4);return this['adapter']&&_0x4f1b01['on']('_update',(_0x32d442,_0x27bb48,_0x35250a)=>{_0x35250a||(this['_bufferUpdate'](_0x27bb48['id'],_0x27bb48,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f1b01,this['_findInsertionIndex'](_0x4f1b01)),_0x4f1b01;}async['getRevisionDocumentData'](_0x79b56a){await this['_loadRevisionData'](_0x79b56a);const _0x52ae8d={};for(const _0x231911 in _0x79b56a['diffData']){if(_0x79b56a['diffData'][_0x231911]['attachChange']&&!_0x79b56a['diffData'][_0x231911]['attachChange']['isAttached'])continue;const _0x5af120=this['_removeRevisionMarkers'](JSON['parse'](_0x79b56a['diffData'][_0x231911]['insertions'])),_0x1dc5c3=this['editor']['editing']['view']['document'],_0xb242a6=new _0x5a9f7e(_0x1dc5c3,_0x5af120['map'](_0x5c5493=>V(_0x5c5493,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52ae8d[_0x231911]=this['editor']['data']['processor']['toData'](_0xb242a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x52ae8d;}async['getRevisionRootsAttributes'](_0x43d750){await this['_loadRevisionData'](_0x43d750);const _0x44164d={};for(const _0x12e31c in _0x43d750['diffData'])_0x43d750['diffData'][_0x12e31c]['attachChange']&&!_0x43d750['diffData'][_0x12e31c]['attachChange']['isAttached']||(_0x44164d[_0x12e31c]=_0x43d750['diffData'][_0x12e31c]['attributesAfter']||{});return _0x44164d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8c8367=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e4159=0x0;_0x2e4159<_0x8c8367['length'];_0x2e4159++){const _0x4a7a7d=_0x8c8367[_0x2e4159];let _0x2fec27=!0x1;for(const _0x498d52 of Object['keys'](_0x4a7a7d))void 0x0===_0x4a7a7d[_0x498d52]?delete _0x4a7a7d[_0x498d52]:'id'!==_0x498d52&&(_0x2fec27=!0x0);_0x2fec27||(_0x8c8367[_0x2e4159]=null);}if(_0x8c8367=_0x8c8367['filter'](_0xcd4ad3=>null!==_0xcd4ad3),!_0x8c8367['length'])return;for(let _0x5d5dd3=0x0;_0x5d5dd3<_0x8c8367['length'];_0x5d5dd3++){const _0xf3f3fc=_0x8c8367[_0x5d5dd3];void 0x0!==_0xf3f3fc['fromVersion']&&void 0x0===_0xf3f3fc['toVersion']&&(_0xf3f3fc['toVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['toVersion']),void 0x0!==_0xf3f3fc['toVersion']&&void 0x0===_0xf3f3fc['fromVersion']&&(_0xf3f3fc['fromVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['fromVersion']);}const _0x5041fd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8c8367,_0x5041fd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x30954c=>{if(_0x30954c){for(const _0x1fb40f of _0x30954c)this['setRevisionData']({'id':_0x1fb40f['id'],'createdAt':_0x1fb40f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x391cd6,_0x3ab9a8){let _0x538afc=this['editor']['config']['get']('initialData'),_0x915919=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x538afc){_0x538afc={};for(const _0xa3ec3 of this['editor']['model']['document']['getRootNames']())_0x538afc[_0xa3ec3]='';}if('string'==typeof _0x538afc&&(_0x538afc={'main':_0x538afc}),void 0x0===_0x915919){_0x915919={};for(const _0x30be8b of this['editor']['model']['document']['getRootNames']())_0x915919[_0x30be8b]={};}let _0x2bd28c=!0x1;const _0x7c8961=Object['keys'](_0x538afc),_0x5eab8f=Object['keys'](_0x391cd6);for(const _0x3bd5cb of _0x7c8961){if(_0x538afc[_0x3bd5cb]!==_0x391cd6[_0x3bd5cb]&&''!==_0x538afc[_0x3bd5cb]['trim']()){_0x2bd28c=!0x0;break;}if(!_0x3efd05(_0x915919[_0x3bd5cb],_0x3ab9a8[_0x3bd5cb])&&Object['keys'](_0x915919[_0x3bd5cb])['length']>0x0){_0x2bd28c=!0x0;break;}}_0x2bd28c||(_0x2bd28c=_0x5eab8f['some'](_0x482c4a=>!this['editor']['model']['document']['getRoot'](_0x482c4a))),_0x2bd28c&&_0x1d5680('editor-initial-data-replaced-with-revision-data',{'editorData':_0x538afc,'editorRootsAttributes':_0x915919,'revisionData':_0x391cd6,'revisionRootsAttributes':_0x3ab9a8}),this['editor']['config']['set']('initialData',_0x391cd6),this['editor']['config']['set']('rootsAttributes',_0x3ab9a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc74c32=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc74c32['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36bd64){const _0x1e05a0=this['repository']['getRevisions']();_0x1e05a0['reverse']();let _0x2aec8e=0x0;for(;_0x2aec8e<_0x1e05a0['length'];){const _0xd193bb=_0x1e05a0[_0x2aec8e];if(_0xd193bb===this['currentRevision']){_0x2aec8e++;continue;}if(_0xd193bb['id']===this['_initialRevisionId'])break;const _0x2596d1=_0x36bd64['toVersion']-_0xd193bb['toVersion']||_0x36bd64['fromVersion']-_0xd193bb['fromVersion'];if(_0x2596d1>0x0)break;if(_0x2596d1<0x0)_0x2aec8e++;else{if(!_0x36bd64['creator']&&_0xd193bb['creator'])break;if(_0xd193bb['creator']||!_0x36bd64['creator']){if(_0x36bd64['createdAt']>_0xd193bb['createdAt'])break;_0x2aec8e++;}else _0x2aec8e++;}}return _0x2aec8e;}['setRevisionData'](_0x147b91){const _0x569a60=this['repository']['getRevision'](_0x147b91['id']);if(_0x147b91['createdAt']&&(_0x147b91['createdAt']=new Date(_0x147b91['createdAt'])),_0x147b91['authorsIds']){const _0x2d5ead=this['editor']['plugins']['get']('Users');_0x147b91['authors']=_0x147b91['authorsIds']['map'](_0x160f28=>_0x2d5ead['getUser'](_0x160f28));}_0x569a60['_update'](_0x147b91,!0x0);}['buildRevisionData']({revision:_0x1b69f0=null,from:_0x5c62df=null,to:_0x5c0fc9=null}){_0x5c62df=null!==_0x5c62df?_0x5c62df:_0x1b69f0['fromVersion'],_0x5c0fc9=null!==_0x5c0fc9?_0x5c0fc9:_0x1b69f0['toVersion'];const _0x108de1=this['_revisionDataBuilder']['getData'](_0x5c62df,_0x5c0fc9),_0x1034b1={'diffData':_0x108de1['diffData'],'authorsIds':_0x108de1['authorsIds'],'fromVersion':_0x5c62df,'toVersion':_0x5c0fc9};if(!_0x1b69f0||_0x5c0fc9!==_0x1b69f0['toVersion']){const _0x13f9a6=_0x5c0fc9-0x1,_0x42a6d1=this['_source']['history']['getOperation'](_0x13f9a6);_0x1034b1['createdAt']=_0x42a6d1&&_0x42a6d1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c62df===this['_loadedStateData']['fromVersion']){for(const _0x281bf0 of this['_loadedStateData']['authors'])_0x1034b1['authorsIds']['includes'](_0x281bf0['id'])||_0x1034b1['authorsIds']['push'](_0x281bf0['id']);}return _0x1034b1;}['_loadRevisionData'](_0x347fc6){if(!_0x347fc6||_0x347fc6['diffData'])return Promise['resolve']();{const _0x1a4aa0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a4aa0,'revisionId':_0x347fc6['id']})['then'](_0x28a5dc=>{_0x347fc6['diffData']=_0x28a5dc['diffData'];});}}['_bufferUpdate'](_0x35ee2a,_0x23f4b7,_0x30318a){if(this['_bufferedUpdates']['has'](_0x35ee2a)){const _0x173714=this['_bufferedUpdates']['get'](_0x35ee2a);_0x23f4b7=_0x30318a?{..._0x173714,..._0x23f4b7}:{..._0x23f4b7,..._0x173714};}this['_bufferedUpdates']['set'](_0x35ee2a,_0x23f4b7);}['_getFromVersion'](_0x36a7e9){const _0x4af5b6=this['repository']['getRevisions']();_0x4af5b6['reverse'](),_0x4af5b6['shift']();const _0x5059e3=_0x4af5b6['find'](_0x10509f=>_0x10509f['toVersion']<=_0x36a7e9)['toVersion'];return _0x5059e3<this['_startingVersion']?this['_startingVersion']:_0x5059e3;}['_createInitialRevision'](_0x218950){const _0x5d53d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d53d)this['_initialRevisionId']=_0x5d53d['id'];else{const _0x228ad1=!this['editor']['model']['document']['roots']['find'](_0x30edfd=>this['editor']['model']['hasContent'](_0x30edfd)),_0x376409=this['editor']['plugins']['get']('Users')['me']['id'],_0x77f9e3=R(this['editor']['locale'],_0x228ad1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x218950,'to':_0x218950,'id':this['_initialRevisionId'],'name':_0x77f9e3,'creatorId':_0x376409});}}['_createCurrentRevision'](_0x4a1ccf){const _0x59540c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x59540c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a1ccf,'to':_0x4a1ccf,'id':_0x59540c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41d6f5,from:_0x19db80,to:_0x54d09a,creatorId:_0x3b3361,id:_0x3a4c4a}){const _0x2c016e=this['buildRevisionData']({'from':_0x19db80,'to':_0x54d09a});_0x2c016e['name']=_0x41d6f5,_0x2c016e['creatorId']=_0x3b3361,_0x2c016e['id']=_0x3a4c4a;const _0x5cc5fc=this['addRevisionData'](_0x2c016e);return this['adapter']&&this['_bufferUpdate'](_0x2c016e['id'],_0x2c016e,!0x0),_0x5cc5fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5902b4){return(_0x5902b4=_0x5902b4['filter'](_0x5bfed2=>!_0x5bfed2['name']||'revision-start'!==_0x5bfed2['name']&&'revision-end'!==_0x5bfed2['name']))['forEach'](_0x1f7848=>{'string'!=typeof _0x1f7848&&(_0x1f7848['children']=this['_removeRevisionMarkers'](_0x1f7848['children']),_0x1f7848['attributes']=_0x1f7848['attributes']['filter'](_0x3e05a6=>!_0x3e05a6[0x0]['startsWith']('data-revision-')));}),_0x5902b4;}}function V(_0x5993e9,_0x48b367){const _0x14d1d8=_0x48b367['editing']['view']['document'];if('string'==typeof _0x5993e9)return new _0x377b5b(_0x14d1d8,_0x5993e9);{const _0x2487ed=_0x5993e9['children']['map'](_0x161bd6=>V(_0x161bd6,_0x48b367));return new(C[_0x5993e9['type']]||_0x1fac3b)(_0x14d1d8,_0x5993e9['name'],_0x5993e9['attributes'],_0x2487ed);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x34ec46){this['editor']=_0x34ec46,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'](_0x3824db){this['source']=_0x3824db;const _0xdb16aa=new Map(),_0x57ee08=new Map(),_0x566a46=this['editor']['model']['document']['roots']['map'](_0x251fee=>_0x251fee['rootName']);for(const _0xc2307e of _0x566a46){const _0x2a7f07=this['editor']['model']['document']['getRoot'](_0xc2307e),_0x5e700c=F(_0x2a7f07);_0xdb16aa['set'](_0xc2307e,_0x5e700c),_0x57ee08['set'](_0xc2307e,Object['fromEntries'](_0x2a7f07['getAttributes']()));}const _0x6244c1=Array['from'](this['editor']['model']['markers'])['map'](_0x2bb2a1=>[_0x2bb2a1['name'],_0x2bb2a1['getRange']()]),_0x4a5560=this['source']['version'];this['_saveMetaData'](_0x4a5560,_0xdb16aa,_0x6244c1,_0x57ee08),this['_startingRevisionId']=this['_revisionId'];const _0x3511a6=new Map(),_0x247f00=new Map();for(const _0x40efd4 of _0x566a46){const _0x31a8c7=B(_0x40efd4);_0x3511a6['set'](_0x40efd4,_0x31a8c7),_0x247f00['set'](_0x40efd4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3511a6,[],_0x247f00);}['getData'](_0x2a0eae,_0x526e9c){if(this['_lastFrom']===_0x2a0eae&&this['_lastTo']<=_0x526e9c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x526e9c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a0eae)){const _0x4d3473=this['_getPreviousFrom'](_0x2a0eae);this['_calculateMetaData'](_0x4d3473,_0x2a0eae,!0x1);}this['_calculateMetaData'](_0x2a0eae,_0x526e9c,!0x0);}return this['_lastFrom']=_0x2a0eae,this['_lastTo']=_0x526e9c,this['_getState']();}['loadState'](_0x530e66){this['_reset'](),this['_lastFrom']=_0x530e66['fromVersion'],this['_lastTo']=_0x530e66['toVersion'];for(const _0x1f2a9c in _0x530e66['diffData']){const _0x2a562f=_0x530e66['diffData'][_0x1f2a9c]['attachChange'],_0x31924f=_0x3f3c34(_0x530e66['diffData'][_0x1f2a9c]['attributesBefore'])||{},_0x39cd08=this['_makeModelFromViewString'](_0x530e66['diffData'][_0x1f2a9c]['deletions']);_0x39cd08['rootName']=_0x1f2a9c,_0x39cd08['_isAttached']=!_0x2a562f||!_0x2a562f['isAttached'],_0x39cd08['isAttached']=()=>_0x39cd08['_isAttached'],this['_baseRoots']['set'](_0x1f2a9c,_0x39cd08),this['_baseRootsAttributes']['set'](_0x1f2a9c,_0x31924f),_0x2a562f&&this['_touchedRoots']['set'](_0x1f2a9c,_0x2a562f);const _0x37abfd=this['_makeIdsRoot'](_0x39cd08);this['_baseIdsRoots']['set'](_0x1f2a9c,_0x37abfd);for(const [_0x417f94,_0x480e6f]of _0x39cd08['markers']){if(!_0x417f94['startsWith']('revision:'))continue;const _0x1319e1=_0x417f94['split'](':')[0x2];for(const _0x5b8053 of _0x480e6f['getWalker']({'singleCharacters':!0x0})){const _0x49d8c5=this['_getVidAttributeName'](_0x5b8053),_0x1ff675='elementEnd'==_0x5b8053['type']?_0x5b8053['previousPosition']['path']['slice'](0x0,-0x1):_0x5b8053['previousPosition']['path'],_0x3e74d2=_0x37abfd['getNodeByPath'](_0x1ff675)['getAttribute'](_0x49d8c5);this['_touched']['set'](_0x3e74d2,{'userId':_0x1319e1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4277d3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x160509=>!this['_touched']['has'](_0x160509));let _0x2f39c0=0x0;const _0x50f18e=new Map();for(const _0xe3f441 in _0x530e66['diffData']){const _0xb671c1=_0x530e66['diffData'][_0xe3f441]['attachChange'],_0x4fea00=_0x3f3c34(_0x530e66['diffData'][_0xe3f441]['attributesAfter'])||{},_0x1b4edf=this['_makeModelFromViewString'](_0x530e66['diffData'][_0xe3f441]['insertions']);_0x1b4edf['rootName']=_0xe3f441,_0x1b4edf['_isAttached']=!_0xb671c1||_0xb671c1['isAttached'],_0x1b4edf['isAttached']=()=>_0x1b4edf['_isAttached'],this['_diffRoots']['set'](_0xe3f441,_0x1b4edf),this['_diffRootsAttributes']['set'](_0xe3f441,_0x4fea00);const _0x348ac1=this['_makeIdsRoot'](_0x1b4edf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe3f441,_0x348ac1),_0x50f18e['set'](_0xe3f441,_0x1b4edf['isAttached']()?_0x4fea00:{});for(const [_0x377323,_0x554940]of _0x1b4edf['markers']){if(!_0x377323['startsWith']('revision:'))continue;const _0x55cfb7=_0x377323['split'](':')[0x2];for(const _0x19e612 of _0x554940['getWalker']({'singleCharacters':!0x0})){const _0x1cad43=this['_getVidAttributeName'](_0x19e612),_0x1ed7a0=this['_revisionId']++,_0xeb40cc='elementEnd'==_0x19e612['type']?_0x19e612['previousPosition']['path']['slice'](0x0,-0x1):_0x19e612['previousPosition']['path'];_0x348ac1['getNodeByPath'](_0xeb40cc)['_setAttribute'](_0x1cad43,_0x1ed7a0),this['_touched']['set'](_0x1ed7a0,{'userId':_0x55cfb7});}}for(const _0x153d40 of this['editor']['model']['createRangeIn'](_0x1b4edf)['getWalker']({'singleCharacters':!0x0})){const _0x319c7b=this['_getVidAttributeName'](_0x153d40),_0x3c0233='elementEnd'==_0x153d40['type']?_0x153d40['previousPosition']['path']['slice'](0x0,-0x1):_0x153d40['previousPosition']['path'],_0x164d26=_0x348ac1['getNodeByPath'](_0x3c0233);_0x164d26['getAttribute'](_0x319c7b)>0x0||_0x164d26['_setAttribute'](_0x319c7b,_0x4277d3[_0x2f39c0++]);}for(const [_0x18506b,_0x1f226d]of _0x1b4edf['markers'])_0x18506b['startsWith']('revision:')||this['_markers']['set'](_0x18506b,_0x1f226d);}const _0x2eab7f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2eab7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2eab7f,0x1));const _0x102491=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x102491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x102491,0x1));const _0x5a7b6b=Array['from'](this['_diffRoots'])['map'](([_0x1071e8,_0xd172e3])=>[_0x1071e8,F(_0xd172e3)]);this['_saveMetaData'](this['_lastTo'],_0x5a7b6b,this['_markers'],_0x50f18e);}['_makeModelFromViewString'](_0x303b7e){const _0x4bfc04=JSON['parse'](_0x303b7e),_0x595e22=this['editor']['editing']['view']['document'],_0x3456dd=new _0x5a9f7e(_0x595e22,_0x4bfc04['map'](_0x377404=>V(_0x377404,this['editor'])));return this['editor']['data']['toModel'](_0x3456dd);}['_saveMetaData'](_0x5819da,_0x2796a7,_0x6ff55f,_0x5aec0b){const _0x8e7535=new Map(_0x2796a7),_0xb774a9=new Map(_0x3f3c34(_0x5aec0b)),_0x1ff715=new Map();for(const [_0x3ff8bf,_0x56de83]of _0x6ff55f)_0x1ff715['set'](_0x3ff8bf,{'start':_0x56de83['start']['clone'](),'end':_0x56de83['end']['clone'](),'rootName':_0x56de83['root']['rootName']});this['_savedMetaData']['set'](_0x5819da,{'roots':_0x8e7535,'markers':_0x1ff715,'rootsAttributes':_0xb774a9});}['_removeMetaData'](_0x3fa1e0){this['_savedMetaData']['delete'](_0x3fa1e0);}['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'](_0x45ae9f,_0x591515=null){let _0x9f349e=null;_0x45ae9f['is']('documentFragment')||(_0x9f349e=new ft(_0x45ae9f['name'],{'vid_start':null===_0x591515?this['_revisionId']++:_0x591515++}));const _0x2258fa=[];for(const _0x4cd92d of _0x45ae9f['getChildren']())if(_0x4cd92d['is']('element')){_0x2258fa['push'](this['_makeIdsRoot'](_0x4cd92d,_0x591515));const _0x4bf2b4=_0x2258fa[_0x2258fa['length']-0x1];null!==_0x591515&&(_0x591515=_0x4bf2b4['is']('element','$text')?_0x4bf2b4['getAttribute']('vid')+0x1:_0x4bf2b4['getAttribute']('vid_end')+0x1);}else{for(let _0x432b43=0x0;_0x432b43<_0x4cd92d['offsetSize'];_0x432b43++)_0x2258fa['push'](new ft('$text',{'vid':null===_0x591515?this['_revisionId']++:_0x591515++}));}if(_0x45ae9f['is']('documentFragment')){const _0x28162b=B(_0x45ae9f['rootName']);return _0x28162b['_insertChild'](0x0,_0x2258fa),_0x28162b;}return _0x9f349e['_setAttribute']('vid_end',null===_0x591515?this['_revisionId']++:_0x591515++),_0x9f349e['_insertChild'](0x0,_0x2258fa),_0x9f349e;}['_calculateMetaData'](_0x2a995b,_0x41b014,_0x38d895){this['_reset']();const {roots:_0x18a458,markers:_0x1b2f25,rootsAttributes:_0x3face3}=this['_savedMetaData']['get'](_0x2a995b);this['_baseRoots']=new Map(_0x18a458),this['_baseRootsAttributes']=new Map(_0x3f3c34(_0x3face3));for(const [_0x193002,_0x4f3880]of this['_baseRoots'])if('$graveyard'!==_0x193002&&(this['_diffRoots']['set'](_0x193002,F(_0x4f3880)),this['_diffRootsAttributes']=new Map(_0x3f3c34(_0x3face3)),_0x38d895)){const _0x255262=this['_revisionId'];this['_idsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880)),this['_baseIdsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880,_0x255262));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x38d895&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44d849,_0x144a8e]of _0x1b2f25){const _0x4b5577=this['_baseRoots']['get'](_0x144a8e['rootName']),_0x2860f2=this['_diffRoots']['get'](_0x144a8e['rootName']),_0x31f8da=new vt(this['_fixPosition'](_0x144a8e['start'],_0x4b5577),this['_fixPosition'](_0x144a8e['end'],_0x4b5577)),_0x525613=this['_fixRange'](_0x31f8da,_0x2860f2);_0x4b5577['markers']['set'](_0x44d849,_0x31f8da),this['_markers']['set'](_0x44d849,_0x525613);}this['_applyOperations'](_0x2a995b,_0x41b014,_0x38d895);}['_applyOperations'](_0x910f9f,_0x3ecb3d,_0x188918){for(const _0x5f5d8d of this['source']['getOperations'](_0x910f9f,_0x3ecb3d))this['_handleOperation'](_0x5f5d8d,_0x188918);for(const _0x58960a of this['_diffRoots']['values']())_0x58960a['markers']['clear']();for(const [_0x77b59c,_0x560321]of this['_markers']){this['_diffRoots']['get'](_0x560321['root']['rootName'])['markers']['set'](_0x77b59c,_0x560321['clone']());}const _0x4d2ee0=new Map(),_0x2d2ded=new Map();for(const [_0x24594b,_0x373af0]of this['_diffRoots'])_0x4d2ee0['set'](_0x24594b,F(_0x373af0)),_0x2d2ded['set'](_0x24594b,this['_diffRootsAttributes']['get'](_0x24594b));this['_saveMetaData'](_0x3ecb3d,_0x4d2ee0,this['_markers'],_0x2d2ded);}['_getPreviousFrom'](_0x49d408){const _0xcc5bf8=Array['from'](this['_savedMetaData']['keys']());_0xcc5bf8['sort']((_0x410884,_0x558f8a)=>_0x410884-_0x558f8a),_0xcc5bf8['reverse']();for(const _0x39f6c2 of _0xcc5bf8)if(_0x39f6c2<_0x49d408)return _0x39f6c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xb3d91f,_0x16e7e7){const _0x130882=Array['from'](_0x16e7e7['markers'])['map'](([_0x264390,_0x5b4da2])=>[_0x264390,this['_fixRange'](_0x5b4da2,_0xb3d91f)]);_0xb3d91f['markers']=new Map(_0x130882);}['_transformMarkers'](_0x18d8e1){for(const _0x747461 of this['_markers']['values']()){const _0x344a7b=_0x747461['getTransformedByOperation'](_0x18d8e1),_0x5b42d2=vt['_createFromRanges'](_0x344a7b);_0x747461['start']=_0x5b42d2['start'],_0x747461['end']=_0x5b42d2['end'];}}['_handleOperation'](_0x422aaa,_0x2594a9){if('addRoot'!=_0x422aaa['type']&&'detachRoot'!=_0x422aaa['type']){if('insert'==_0x422aaa['type']){const _0x156ce2=_0x422aaa['position']['root']['rootName'];this['_diffRoots']['has'](_0x156ce2)||(this['_diffRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)),this['_diffRootsAttributes']['set'](_0x156ce2,{}),_0x2594a9&&this['_idsRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)));}else{if('addRootAttribute'==_0x422aaa['type']||'removeRootAttribute'==_0x422aaa['type']||'changeRootAttribute'==_0x422aaa['type'])return void this['_handleRootAttributeOperation'](_0x422aaa);'marker'==_0x422aaa['type']&&this['_handleMarkerOperation'](_0x422aaa);}if('marker'!==_0x422aaa['type']){const _0x14019e=this['_cloneOperation'](_0x422aaa,this['_diffRoots']);_0x14019e['_execute'](),this['_transformMarkers'](_0x14019e);}if(_0x2594a9)switch(_0x422aaa['type']){case'insert':this['_handleInsertOperation'](_0x422aaa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x422aaa);break;case'merge':this['_handleMergeOperation'](_0x422aaa);break;case'split':this['_handleSplitOperation'](_0x422aaa);}}else this['_handleRootOperation'](_0x422aaa,_0x2594a9);}['_cloneOperation'](_0x19f7d5,_0x4ade41){const _0x57eeee=_0x19f7d5['clone']();return _0x57eeee['_authorId']=_0x19f7d5['_authorId'],this['_fixOperation'](_0x57eeee,_0x4ade41),_0x57eeee;}['_getBaseVids'](_0x52b370){return _0x52b370['map'](_0x119afb=>{const _0x4d0123=this['_getVidAttributeName'](_0x119afb);return Number(_0x119afb['item']['getAttribute'](_0x4d0123));});}['_generateTape'](_0x2854ed,_0x4d8a2b){if(_0x2854ed['is']('element','$text'))_0x4d8a2b['push']({'item':_0x2854ed,'type':'text'});else{_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementStart'});for(const _0x5a00b9 of _0x2854ed['getChildren']())this['_generateTape'](_0x5a00b9,_0x4d8a2b);_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementEnd'});}return _0x4d8a2b;}['_getState'](){const _0x108c05=new Map(this['_touched']),_0x1e4471=new Map(_0x108c05),_0x37be51=new Map(),_0x260249={'insertions':{},'deletions':{}},_0x8c7365={'insertions':{},'deletions':{}},_0x3dc0a1=new Map(),_0x34e5d2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x34e5d2['delete']('$graveyard');for(const _0x2bd55e of _0x34e5d2){const _0x1b5e5a=this['_diffRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),_0x2c7b10=this['_baseRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1);_0x1b5e5a['isAttached']()||_0x2c7b10['isAttached']()?(_0x260249['insertions'][_0x2bd55e]=F(_0x1b5e5a),_0x260249['deletions'][_0x2bd55e]=F(_0x2c7b10),this['_copyMarkers'](_0x260249['deletions'][_0x2bd55e],_0x2c7b10),this['_copyMarkers'](_0x260249['insertions'][_0x2bd55e],_0x1b5e5a),_0x8c7365['insertions'][_0x2bd55e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bd55e),[]),_0x8c7365['deletions'][_0x2bd55e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),[])):_0x34e5d2['delete'](_0x2bd55e);}for(const _0x9deca9 of _0x34e5d2){const _0xf7d81b=_0x8c7365['insertions'][_0x9deca9];for(const _0x7bcba9 of _0xf7d81b){const _0x312480=this['_getVidAttributeName'](_0x7bcba9),_0x223cd5=_0x7bcba9['item']['getAttribute'](_0x312480);_0x1e4471['delete'](_0x223cd5),_0x223cd5>=this['_startingRevisionId']&&_0x37be51['set'](_0x223cd5,_0x108c05['get'](_0x223cd5));}}for(const _0x4fe543 of _0x34e5d2){const _0x4b3cbe=_0x8c7365['insertions'][_0x4fe543],_0x136fd6=this['_getBaseVids'](_0x8c7365['deletions'][_0x4fe543]);let _0x531208=0x0;for(const _0x5e395d of _0x4b3cbe){const _0x4083f7=this['_getVidAttributeName'](_0x5e395d),_0x9a0d12=_0x5e395d['item']['getAttribute'](_0x4083f7);if(!_0x37be51['has'](_0x9a0d12)&&!_0x3dc0a1['has'](_0x9a0d12)){if(_0x1e4471['has'](_0x9a0d12))_0x531208++;else{if(_0x9a0d12!=_0x136fd6[_0x531208]){const _0x1d6953=_0x108c05['get'](_0x9a0d12)||_0x108c05['get'](_0x136fd6[_0x531208]);for(;_0x9a0d12!=_0x136fd6[_0x531208];)_0x1e4471['has'](_0x136fd6[_0x531208])||(_0x3dc0a1['set'](_0x136fd6[_0x531208],_0x1d6953),_0x108c05['set'](_0x136fd6[_0x531208],_0x1d6953)),_0x531208++;}_0x531208++;}}}}for(const _0x2ad79e of _0x34e5d2){const _0x569ebd=_0x8c7365['insertions'][_0x2ad79e];for(const _0x1862a9 of _0x569ebd){const _0x31ddc9=this['_getVidAttributeName'](_0x1862a9),_0x4da945=_0x1862a9['item']['getAttribute'](_0x31ddc9);if(_0x3dc0a1['has'](_0x4da945)){const _0x671572=_0x3dc0a1['get'](_0x4da945);_0x1e4471['has'](_0x4da945)||_0x1e4471['set'](_0x4da945,{..._0x671572}),_0x37be51['set'](_0x4da945,{..._0x671572});}}}for(const _0x108b51 of _0x1e4471['keys']())_0x108b51>=this['_startingRevisionId']&&_0x1e4471['delete'](_0x108b51);const _0x37ed03=new Map();for(const _0x2ae239 of _0x34e5d2){let _0x23e607=_0x8c7365['insertions'][_0x2ae239];for(const _0x4b978b of _0x23e607)if(_0x4b978b['item']['is']('element','tableCell')){const _0x5df810=this['_getVidAttributeName'](_0x4b978b),_0x4dd7fc=_0x4b978b['item']['getAttribute'](_0x5df810);if(_0x37be51['has'](_0x4dd7fc)){const _0x258be2=_0x4b978b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fd12f=_0x37ed03['get'](_0x258be2)||new Set();_0x3fd12f['add'](_0x37be51['get'](_0x4dd7fc)['userId']),_0x37ed03['set'](_0x258be2,_0x3fd12f);}}_0x23e607=_0x8c7365['deletions'][_0x2ae239];for(const _0x509676 of _0x23e607)if(_0x509676['item']['is']('element','tableCell')){const _0x5e6361=this['_getVidAttributeName'](_0x509676),_0x1de920=_0x509676['item']['getAttribute'](_0x5e6361);if(_0x1e4471['has'](_0x1de920)){const _0x426b83=_0x509676['item']['parent']['parent']['getAttribute']('vid_start'),_0x136064=_0x37ed03['get'](_0x426b83)||new Set();_0x136064['add'](_0x1e4471['get'](_0x1de920)['userId']),_0x37ed03['set'](_0x426b83,_0x136064);}}for(const _0x4a6b39 of _0x37ed03['keys']())(_0x37be51['has'](_0x4a6b39)||_0x1e4471['has'](_0x4a6b39))&&_0x37ed03['delete'](_0x4a6b39);}for(const _0x56e0f3 of _0x34e5d2){const _0x2004d3=_0x8c7365['insertions'][_0x56e0f3];let _0x1c24ad=null,_0x216796=null;for(const _0x5b9397 of _0x2004d3){const _0x10264c=this['_getVidAttributeName'](_0x5b9397),_0x5bc9ce=_0x5b9397['item']['getAttribute'](_0x10264c),_0x283729=_0x37ed03['get'](_0x5bc9ce);_0x283729&&'elementStart'==_0x5b9397['type']&&(_0x1c24ad=Array['from'](_0x283729)[0x0],_0x216796=_0x5b9397['item']['getAttribute']('vid_end')),_0x1c24ad&&(_0x1e4471['set'](_0x5bc9ce,{'userId':_0x1c24ad}),_0x37be51['set'](_0x5bc9ce,{'userId':_0x1c24ad})),_0x5bc9ce==_0x216796&&(_0x1c24ad=null,_0x216796=null);}}const _0x53096c={},_0x394705=new Set();for(const _0x4440ae of _0x34e5d2){const _0x2af872=_0x260249['deletions'][_0x4440ae],_0x1e3379=_0x260249['insertions'][_0x4440ae];for(const {userId:_0x22ccce}of this['_touchedMarkers']['values']())null!==_0x22ccce&&_0x394705['add'](_0x22ccce);for(const {userId:_0x31e78c}of this['_touchedRoots']['values']())null!==_0x31e78c&&_0x394705['add'](_0x31e78c);this['_markChanges'](_0x1e3379,_0x8c7365['insertions'][_0x4440ae],_0x37be51,'insertion',_0x394705),this['_markChanges'](_0x2af872,_0x8c7365['deletions'][_0x4440ae],_0x1e4471,'deletion',_0x394705),_0x53096c[_0x4440ae]={'insertions':this['_prepareViewToSave'](_0x1e3379),'deletions':this['_prepareViewToSave'](_0x2af872),'attachChange':this['_touchedRoots']['get'](_0x4440ae)||null,'attributesBefore':_0x3f3c34(this['_baseRootsAttributes']['get'](_0x4440ae))||{},'attributesAfter':_0x3f3c34(this['_diffRootsAttributes']['get'](_0x4440ae))};}return{'diffData':_0x53096c,'authorsIds':Array['from'](_0x394705)};}['_processRootBeforeSave'](_0x13eb03){for(const [,_0x47cb8f]of _0x13eb03['markers']){const _0x155b4e=_0x47cb8f['start']['getAncestors']()['filter'](_0x26c093=>'tableCell'==_0x26c093['name']);for(const _0x4490b9 of _0x155b4e)0x1==_0x4490b9['childCount']&&_0x4490b9['getChild'](0x0)['is']('element','paragraph')&&_0x4490b9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x395538){this['_processRootBeforeSave'](_0x395538);const _0x585961=this['editor']['data']['toView'](_0x395538,{}),_0x15db11=Array['from'](_0x585961['getChildren']())['map'](_0x448c05=>this['_getViewJson'](_0x448c05));return JSON['stringify'](_0x15db11);}['_getViewJson'](_0x6181c9){if(_0x6181c9['is']('$text'))return _0x6181c9['data'];{const _0x4018a7=_0x6181c9;return{'type':Object['keys'](C)['find'](_0xdc7399=>_0x6181c9 instanceof C[_0xdc7399]),'name':_0x4018a7['name'],'attributes':Array['from'](_0x4018a7['getAttributes']()),'children':Array['from'](_0x4018a7['getChildren']())['map'](_0x512d6d=>this['_getViewJson'](_0x512d6d))};}}['_markChanges'](_0x4ea289,_0x16777f,_0x2c49ea,_0x22ae04,_0x31cfc1){let _0x174400=null,_0x1d6188=null,_0x1eeed8=0x0;const _0x57becc=this['editor']['model'];for(let _0x4ab630=0x0;_0x4ab630<_0x16777f['length'];_0x4ab630++){const _0x30ab4f=this['_getVidAttributeName'](_0x16777f[_0x4ab630]),_0x4e84b3=_0x16777f[_0x4ab630]['item']['getAttribute'](_0x30ab4f),_0x1c1b2b=_0x2c49ea['get'](_0x4e84b3),_0x229dd1=_0x4ab630==_0x16777f['length']-0x1;(!_0x174400&&_0x1c1b2b&&(_0x174400=_0x1c1b2b,_0x1d6188=_0x16777f[_0x4ab630]),_0x174400&&(!_0x1c1b2b||_0x1c1b2b['userId']!=_0x174400['userId']))&&(_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),J(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc)),_0x174400=_0x1c1b2b||null,_0x1d6188=_0x1c1b2b?_0x16777f[_0x4ab630]:null),_0x174400&&_0x229dd1&&_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),q(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc));}function _0x152dbf(_0x1c6bbb,_0x2b82f8,_0x190b7e){const _0x165fe7=_0x174400['userId'],_0x5e687='revision:'+_0x22ae04+':'+_0x165fe7+':'+_0x1eeed8++,_0xe2caeb=_0x57becc['createRange'](_0x2b82f8,_0x190b7e);_0x4ea289['markers']['set'](_0x5e687,_0xe2caeb),null!==_0x165fe7&&_0x31cfc1['add'](_0x165fe7);}}['_getVidAttributeName'](_0x3a6fae){switch(_0x3a6fae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13c286,_0x39e580){_0x13c286['baseVersion']=null;for(const _0xd15db2 in _0x13c286){const _0x23104e=_0x13c286[_0xd15db2];if(_0x23104e instanceof gt){const _0x49c185=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixPosition'](_0x23104e,_0x49c185);}if(_0x23104e instanceof vt){const _0x22d240=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixRange'](_0x23104e,_0x22d240);}'root'===_0xd15db2&&(_0x13c286['root']=_0x39e580['get'](_0x13c286['root']['rootName']));}}['_fixRange'](_0x587732,_0x531a8d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x587732['start'],_0x531a8d),this['_fixPosition'](_0x587732['end'],_0x531a8d));}['_fixPosition'](_0x1cffdd,_0x5f577a){return this['editor']['model']['createPositionFromPath'](_0x5f577a,_0x1cffdd['path'],_0x1cffdd['stickiness']);}['_handleInsertOperation'](_0x31e203){const _0x5bc1c8=this['_idsRoots']['get'](_0x31e203['position']['root']['rootName']),_0x30fe58=this['_fixPosition'](_0x31e203['position'],_0x5bc1c8),_0x31e6dc=null===_0x31e203['_authorId']?null:_0x31e203['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366b09=_0x30fe58['parent'],_0x396ead=this['_revisionId'],_0x58f2e2=[];for(const _0x20db55 of _0x31e203['nodes'])if(_0x20db55['is']('element'))_0x58f2e2['push'](this['_makeIdsRoot'](_0x20db55));else{for(let _0x1f02db=0x0;_0x1f02db<_0x20db55['offsetSize'];_0x1f02db++)_0x58f2e2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x55bacf=this['_revisionId'];for(let _0x2d0806=_0x396ead;_0x2d0806<_0x55bacf;_0x2d0806++)this['_touched']['set'](_0x2d0806,{'userId':_0x31e6dc});_0x366b09['_insertChild'](_0x30fe58['offset'],_0x58f2e2);}['_handleMoveOperation'](_0x189a0){(_0x189a0=this['_cloneOperation'](_0x189a0,this['_idsRoots']))['_execute']();const _0xaf4c79=null===_0x189a0['_authorId']?null:_0x189a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39492a=_0x189a0['getMovedRangeStart'](),_0x2c9578=_0x39492a['parent'],_0x448ba8=_0x39492a['offset'];!function _0x97595e(_0x56937a,_0x3bfb84,_0x5bd2fd,_0x23b71a){for(let _0x40dafb=_0x5bd2fd;_0x40dafb<_0x23b71a;_0x40dafb++){const _0x58ae59=_0x3bfb84['getChild'](_0x40dafb);_0x58ae59['is']('element','$text')?_0x56937a['set'](_0x58ae59['getAttribute']('vid'),{'userId':_0xaf4c79}):(_0x56937a['set'](_0x58ae59['getAttribute']('vid_start'),{'userId':_0xaf4c79}),_0x97595e(_0x56937a,_0x58ae59,0x0,_0x58ae59['childCount']),_0x56937a['set'](_0x58ae59['getAttribute']('vid_end'),{'userId':_0xaf4c79}));}}(this['_touched'],_0x2c9578,_0x448ba8,_0x448ba8+_0x189a0['howMany']);}['_handleMergeOperation'](_0xc44b06){const _0x39fc2a=null===(_0xc44b06=this['_cloneOperation'](_0xc44b06,this['_idsRoots']))['_authorId']?null:_0xc44b06['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29c261=_0xc44b06['targetPosition']['parent'],_0xa36c91=_0xc44b06['sourcePosition']['parent'],_0x4701b6=_0x29c261['getAttribute']('vid_end'),_0x2abfe6=_0xa36c91['getAttribute']('vid_start');_0x29c261['_setAttribute']('vid_end',_0xa36c91['getAttribute']('vid_end')),_0xa36c91['_setAttribute']('vid_end',_0x4701b6),this['_touched']['set'](_0x2abfe6,{'userId':_0x39fc2a}),this['_touched']['set'](_0x4701b6,{'userId':_0x39fc2a}),_0xc44b06['_execute']();}['_handleSplitOperation'](_0x5eb707){const _0x44abfa=null===(_0x5eb707=this['_cloneOperation'](_0x5eb707,this['_idsRoots']))['_authorId']?null:_0x5eb707['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ccf7f=_0x5eb707['graveyardPosition'],_0x45e9bc=_0x5eb707['splitPosition']['parent'];_0x5eb707['_execute']();const _0x3fd164=_0x45e9bc['getAttribute']('vid_end'),_0x46d043=_0x5eb707['insertionPosition']['nodeAfter'];if(_0x2ccf7f){const _0x33ab35=_0x46d043['getAttribute']('vid_end'),_0x442dbd=_0x45e9bc['getAttribute']('vid_end');_0x45e9bc['_setAttribute']('vid_end',_0x33ab35),_0x46d043['_setAttribute']('vid_end',_0x442dbd),this['_touched']['set'](_0x45e9bc['getAttribute']('vid_end'),{'userId':_0x44abfa}),this['_touched']['set'](_0x46d043['getAttribute']('vid_start'),{'userId':_0x44abfa});}else{const _0x2bef7e=this['_revisionId']++,_0x8a54c=this['_revisionId']++;_0x45e9bc['_setAttribute']('vid_end',_0x2bef7e),_0x46d043['_setAttribute']('vid_start',_0x8a54c),_0x46d043['_setAttribute']('vid_end',_0x3fd164),this['_touched']['set'](_0x2bef7e,{'userId':_0x44abfa}),this['_touched']['set'](_0x8a54c,{'userId':_0x44abfa});}}['_handleMarkerOperation'](_0x4f452f){if(!_0x4f452f['affectsData'])return;const _0x110cee=(_0x4f452f=this['_cloneOperation'](_0x4f452f,this['_diffRoots']))['oldRange']?_0x4f452f['oldRange']['root']:null,_0x356c91=_0x4f452f['newRange']?_0x4f452f['newRange']['root']:null;_0x110cee&&this['_markers']['delete'](_0x4f452f['name']),_0x356c91&&this['_markers']['set'](_0x4f452f['name'],_0x4f452f['newRange']['clone']());const _0x124f7e=null===_0x4f452f['_authorId']?null:_0x4f452f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4deead=_0x4f452f['name'];if(!this['_touchedMarkers']['has'](_0x4deead))return void this['_touchedMarkers']['set'](_0x4deead,{'range':_0x4f452f['oldRange'],'userId':_0x124f7e});const _0x5885ae=this['_touchedMarkers']['get'](_0x4deead),_0x3a7d1e=_0x5885ae['range'],_0x425f80=_0x4f452f['newRange'];null==_0x3a7d1e&&null==_0x425f80||_0x3a7d1e&&_0x425f80&&_0x3a7d1e['isEqual'](_0x425f80)?this['_touchedMarkers']['delete'](_0x4f452f['name']):_0x5885ae['userId']=_0x124f7e;}['_handleRootOperation'](_0x55701e,_0x445ea5){this['_diffRoots']['has'](_0x55701e['rootName'])?this['_diffRoots']['get'](_0x55701e['rootName'])['_isAttached']=_0x55701e['isAdd']:(this['_diffRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x55701e['rootName'],{}),_0x445ea5&&this['_idsRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)));const _0x52202d=null===_0x55701e['_authorId']?null:_0x55701e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44057a=this['_touchedRoots']['get'](_0x55701e['rootName']);_0x44057a&&_0x44057a['userId']===_0x52202d?this['_touchedRoots']['delete'](_0x55701e['rootName']):this['_touchedRoots']['set'](_0x55701e['rootName'],{'userId':_0x52202d,'isAttached':_0x55701e['isAdd']});}['_handleRootAttributeOperation'](_0x4078a7){const _0x42d475=this['_diffRootsAttributes']['get'](_0x4078a7['root']['rootName']);null===_0x4078a7['newValue']?delete _0x42d475[_0x4078a7['key']]:_0x42d475[_0x4078a7['key']]=_0x4078a7['newValue'];}}function F(_0x2c7b62){const _0x855a5b=B(_0x2c7b62['rootName'],_0x2c7b62['isAttached']());for(const _0x20dc66 of _0x2c7b62['getChildren']()){const _0x2826ef=_0x20dc66['_clone'](!0x0);_0x855a5b['_appendChild'](_0x2826ef);}return _0x855a5b;}function B(_0x507716,_0x179657=!0x0){const _0x3c9c80=new mt();return _0x3c9c80['rootName']=_0x507716,_0x3c9c80['_isAttached']=_0x179657,_0x3c9c80['isAttached']=()=>_0x3c9c80['_isAttached'],_0x3c9c80;}function J(_0x4af3e3,_0x1313f2,_0x3354b7){const _0x3500f9='elementEnd'==_0x4af3e3['type']?_0x3354b7['createPositionAt'](_0x4af3e3['item'],'end'):_0x3354b7['createPositionBefore'](_0x4af3e3['item']);return _0x3354b7['createPositionFromPath'](_0x1313f2,_0x3500f9['path'],_0x3500f9['stickiness']);}function q(_0x5c4163,_0x25f3e9,_0x468bdb){const _0xb6550c='elementStart'==_0x5c4163['type']?_0x468bdb['createPositionAt'](_0x5c4163['item'],0x0):_0x468bdb['createPositionAfter'](_0x5c4163['item']);return _0x468bdb['createPositionFromPath'](_0x25f3e9,_0xb6550c['path'],_0xb6550c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2275f5,_0x41de56){super(_0x2275f5),this['focusTracker']=new _0x71f497(),this['keystrokes']=new _0x5cd6bf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41de56),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e424c(this);}['render'](){super['render'](),_0x4c83e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fea55=_0x357780=>_0x357780['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fea55),this['keystrokes']['set']('arrowleft',_0x3fea55),this['keystrokes']['set']('arrowup',_0x3fea55),this['keystrokes']['set']('arrowdown',_0x3fea55);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1764fd){this['revisionNameInputView']['fieldView']['element']['value']=_0x1764fd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x317ac2){const _0xa570e=new _0x3f921c(this['locale'],_0x2498fb),_0x5e3537=_0xa570e['fieldView'];_0x5e3537['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3d9726=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x317ac2&&(_0x3d9726+='\x20('+R(this['locale'],'optional')+')'),(_0xa570e['label']=_0x3d9726,_0x5e3537['on']('input',()=>{this['revisionNameInputValue']=_0x5e3537['element']['value']['trim']();}),_0xa570e);}}class u extends _0x1c98c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x488eb5=this['editor'],_0xe6e9f6=_0x488eb5['plugins']['get']('RevisionTracker');_0x488eb5['ui']['componentFactory']['add']('revisionHistory',_0x290169=>{const _0x1cc3d9=_0x547500(_0x290169),_0x3e807f=_0x1cc3d9['panelView']['children'],_0x3d5c3e=new _0x1c3951(_0x290169),_0x436237=new _0x4d7d59(_0x290169),_0x2b7d8c=new te(_0x290169),_0x19cc66=new _0x4d7d59(_0x290169),_0x3a1034=new te(_0x290169);return _0x1cc3d9['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x1b4c7a,_0x25298d,_0x2f7a67)=>_0x1b4c7a&&_0x25298d&&!_0x2f7a67),_0x1cc3d9['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x290169,'Revision\x20history'),'tooltip':!0x0}),_0x2b7d8c['set']({'label':R(_0x290169,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b7d8c['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x45eeda,_0x2fccb2,_0x3fcc87)=>_0x45eeda&&_0x2fccb2&&!_0x3fcc87),_0x2b7d8c['on']('execute',()=>this['_showDialog']()),_0x3a1034['set']({'label':R(_0x290169,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a1034['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0x488eb5,'isReadOnly',(_0x439ec5,_0x547579)=>_0x439ec5&&!_0x547579),_0x3a1034['on']('execute',()=>{_0x488eb5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1cc3d9['isOpen']=!0x1,_0x488eb5['editing']['view']['focus']();}),_0x436237['children']['add'](_0x2b7d8c),_0x19cc66['children']['add'](_0x3a1034),_0x3d5c3e['role']='menu',_0x3d5c3e['items']['addMany']([_0x436237,_0x19cc66]),_0x3e807f['add'](_0x3d5c3e),_0x1cc3d9;}),_0x488eb5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x286ffb=this['editor'],_0x5db178=_0x286ffb['locale'],_0x3e76de=new _0x10f5c5(_0x5db178),_0x5c2a29=new _0xbf7996(_0x5db178);_0x3e76de['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x5db178,'Revision\x20history')});const _0x125e10=new _0x228704(_0x5db178,_0x3e76de),_0x2b2ac4=new _0x3ceb1f(_0x5db178);_0x2b2ac4['set']({'label':R(_0x5db178,'Save\x20current\x20revision')}),_0x2b2ac4['delegate']('execute')['to'](_0x3e76de),_0x2b2ac4['on']('execute',()=>{this['_showDialog']();}),_0x125e10['children']['add'](_0x2b2ac4),_0x5c2a29['items']['add'](_0x125e10);const _0x4f4e1b=new _0x228704(_0x5db178,_0x3e76de),_0x2c9090=new _0x3ceb1f(_0x5db178);return _0x2c9090['set']({'label':R(_0x5db178,'Open\x20revision\x20history')}),_0x2c9090['delegate']('execute')['to'](_0x3e76de),_0x2c9090['on']('execute',()=>{_0x286ffb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f4e1b['children']['add'](_0x2c9090),_0x5c2a29['items']['add'](_0x4f4e1b),_0x3e76de['panelView']['children']['add'](_0x5c2a29),_0x3e76de;}['_showDialog'](){const _0x528480=this['editor'],_0x1f4e35=_0x528480['locale'],_0x50800f=_0x528480['plugins']['get']('Dialog'),_0x30f4ad=_0x528480['plugins']['get']('RevisionTracker');function _0x142ee8(_0x16d498){_0x528480['config']['get']('revisionHistory.requireRevisionName')&&''===_0x16d498['revisionName']?_0x16d498['revisionNameInputView']['errorText']=R(_0x1f4e35,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x528480['plugins']['get'](l)['saveRevision']({'name':_0x16d498['revisionName']}),_0x50800f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x142ee8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x50800f['show']({'id':'revisionSave','title':R(_0x1f4e35,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x528480['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x50800f['hide']()},{'label':R(_0x528480['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4aad56){_0x4aad56['bind']('isEnabled')['to'](_0x30f4ad,'isReady',_0x30f4ad,'isEnabled',_0x528480,'isReadOnly',(_0x3ea8ff,_0x601770,_0x46c117)=>_0x3ea8ff&&_0x601770&&!_0x46c117);},'onExecute':()=>_0x142ee8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x582dfc=this['editor'],_0x4ac349=_0x582dfc['locale'];this['_saveRevisionFormView']=new hs(_0x4ac349,_0x582dfc['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x335b04,_0x192fe0){super(_0x335b04),this['_model']=_0x192fe0,this['changeId']=_0x192fe0['id'];const _0x3d194f=this['bindTemplate'],_0x50b273=R(_0x335b04,_0x192fe0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x192fe0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x192fe0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d194f['to']('type',_0x4154ec=>'ck-revision-change__'+_0x4154ec)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x50b273}]},{'text':'\x20'+_0x192fe0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x96c3fd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5acc88){super(),this['id']=_0x5acc88['id']||_0x4e6837(),this['author']=_0x5acc88['author'],this['type']=_0x5acc88['type'],this['data']=_0x5acc88['data']||{},this['rootName']=_0x5acc88['rootName'],this['set']('createdAt',_0x5acc88['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(_0x57e549,_0x28d3ad){this['newRevisionId']=_0x57e549,this['oldRevisionId']=_0x28d3ad,this['changes']=new _0x3fda2b();}['_setChanges'](_0xacc8cd){for(const _0xd8f0aa of _0xacc8cd)this['changes']['add'](_0xd8f0aa);}}const Z={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class d extends _0x1c98c7{['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[_0x4ae6c4,_0x3c5899,j];}constructor(_0x424c7d){super(_0x424c7d),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',(_0x3819cf,_0xe52aa,_0x1f999c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x283103=>{for(const _0x17260c of this['editor']['editing']['view']['document']['roots'])_0x1f999c?_0x283103['removeClass']('ck-editor__editable__overlay',_0x17260c):_0x283103['addClass']('ck-editor__editable__overlay',_0x17260c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1741ed=>null!==_0x1741ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b8dcb,_0xb89c52,_0x58c697)=>_0x4b8dcb&&_0x58c697?_0xb89c52['changes']['getIndex'](_0x58c697):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577eca,_0x5dbd37)=>_0x577eca?_0x5dbd37['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3c5899);}['init'](){const _0x2cfd7e=this['editor'],_0x622e57=new yt(_0x2cfd7e,{'direction':'backward'}),_0xabd82e=new yt(_0x2cfd7e,{'direction':'forward'});(_0x2cfd7e['commands']['add']('showPreviousChange',_0x622e57),_0x2cfd7e['commands']['add']('showNextChange',_0xabd82e),_0x2cfd7e['commands']['add']('restoreRevision',new _t(_0x2cfd7e)),this['on']('change:numberOfChanges',()=>{_0x622e57['refresh'](),_0xabd82e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2cfd7e['enableReadOnlyMode']('revision-viewer'),_0x2cfd7e['plugins']['has']('WidgetToolbarRepository'))&&_0x2cfd7e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2528e9){await this['loadRevisionData'](_0x2528e9);const _0x207c7d={};for(const _0x3bbab4 in _0x2528e9['diffData']){if(_0x2528e9['diffData'][_0x3bbab4]['attachChange']&&!_0x2528e9['diffData'][_0x3bbab4]['attachChange']['isAttached'])continue;const _0x189242=this['_removeRevisionMarkers'](JSON['parse'](_0x2528e9['diffData'][_0x3bbab4]['insertions'])),_0x502715=this['editor']['editing']['view']['document'],_0x366877=new _0x5a9f7e(_0x502715,_0x189242['map'](_0x9b0d8c=>this['_getViewObj'](_0x9b0d8c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x207c7d[_0x3bbab4]=this['editor']['data']['processor']['toData'](_0x366877),this['editor']['data']['processor']['useFillerType']('default');}return _0x207c7d;}async['getRevisionRootsAttributes'](_0x57c69c){await this['loadRevisionData'](_0x57c69c);const _0x1b2689={};for(const _0x398cef in _0x57c69c['diffData'])_0x57c69c['diffData'][_0x398cef]['attachChange']&&!_0x57c69c['diffData'][_0x398cef]['attachChange']['isAttached']||(_0x1b2689[_0x398cef]=_0x57c69c['diffData'][_0x398cef]['attributesAfter']||{});return _0x1b2689;}['_removeRevisionMarkers'](_0x504c21){return(_0x504c21=_0x504c21['filter'](_0x3359dc=>!_0x3359dc['name']||'revision-start'!==_0x3359dc['name']&&'revision-end'!==_0x3359dc['name']))['forEach'](_0x1e4f29=>{'string'!=typeof _0x1e4f29&&(_0x1e4f29['children']=this['_removeRevisionMarkers'](_0x1e4f29['children']),_0x1e4f29['attributes']=_0x1e4f29['attributes']['filter'](_0x295e18=>!_0x295e18[0x0]['startsWith']('data-revision-')));}),_0x504c21;}async['compare'](_0x4202fd,_0x5a7cb1,_0x4054a8=!0x1){if(!this['isEnabled'])return;const _0x58048a=this['diff'],_0x33442d=this['repository'],_0x5e09d8='string'==typeof _0x4202fd?_0x33442d['getRevision'](_0x4202fd):_0x4202fd,_0x94638e='string'==typeof _0x5a7cb1?_0x33442d['getRevision'](_0x5a7cb1):_0x5a7cb1,_0xf842a2=_0x5e09d8['id'],_0x2fe09f=_0x94638e?_0x94638e['id']:null;if(!_0x4054a8&&this['diff']&&this['diff']['newRevisionId']===_0xf842a2&&this['diff']['oldRevisionId']===_0x2fe09f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xf842a2,_0x2fe09f);const _0x10ee2b=this['_getRevisionsRange'](_0x5e09d8,_0x94638e,!0x0)['map'](_0x2bcc95=>this['loadRevisionData'](_0x2bcc95));return _0x10ee2b['push'](new Promise(_0x4bc048=>{setTimeout(_0x4bc048,0x14);})),Promise['all'](_0x10ee2b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b94f=this['_getDiff'](_0xf842a2,_0x2fe09f);for(const _0x41f0f8 of _0x40b94f['changes'])this['_changeIdToChange']['set'](_0x41f0f8['id'],_0x41f0f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57489c=>{for(const _0x1370f3 of this['editor']['model']['document']['getRootNames']())_0x57489c['detachRoot'](_0x1370f3);for(const _0x3dfd4c of Object['keys'](_0x40b94f['model'])){const _0x39742e=_0x57489c['addRoot'](_0x3dfd4c);for(const _0x2a3b70 of Object['keys'](_0x40b94f['attributes'][_0x3dfd4c]))_0x57489c['setAttribute'](_0x2a3b70,_0x40b94f['attributes'][_0x3dfd4c][_0x2a3b70],_0x39742e);_0x57489c['insert'](_0x40b94f['model'][_0x3dfd4c],_0x39742e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b94f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d4204=>{console['error'](_0x5d4204),this['_cleanUp'](),_0x58048a&&(this['diff']=_0x58048a),this['isReady']=!0x0;});}['addRevisionData'](_0x52f057,_0x4f352e){const _0x51200a=this['repository']['createRevision'](_0x52f057);return _0x51200a['on']('_update',(_0x3d3834,_0x2235a4,_0x556265)=>_0x4f352e(_0x2235a4,_0x556265,_0x51200a)),this['repository']['addRevision'](_0x51200a),_0x51200a;}['loadRevisionData'](_0x1e8f1c){if(!_0x1e8f1c||_0x1e8f1c['diffData'])return Promise['resolve']();{const _0x2b8394=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8394,'revisionId':_0x1e8f1c['id']})['then'](_0x25b7c9=>{_0x1e8f1c['_update']({'diffData':_0x25b7c9['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},_0x53b060=>{for(const _0x448b50 of this['editor']['model']['document']['getRootNames']())_0x53b060['detachRoot'](_0x448b50);});}['_sortAndFilterDiffChanges'](_0x197fc5){const _0x32b180=[],_0x329a28=new Map();for(const _0x4f25a9 of this['editor']['model']['document']['getRootNames']()){const _0x5650d5=this['editor']['editing']['view']['getDomRoot'](_0x4f25a9);if(!_0x5650d5)continue;const _0x190c08=_0x5650d5['getClientRects']()['item'](0x0);_0x190c08&&(_0x32b180['push'](_0x4f25a9),_0x329a28['set'](_0x4f25a9,_0x190c08));}return _0x32b180['sort']((_0x1af020,_0x3df4cb)=>{const _0x16e8a5=_0x329a28['get'](_0x1af020),_0x118d98=_0x329a28['get'](_0x3df4cb);return _0x16e8a5['y']-_0x118d98['y']||_0x16e8a5['x']-_0x118d98['x'];}),(_0x197fc5=_0x197fc5['filter'](_0x3c2adb=>_0x32b180['includes'](_0x3c2adb['rootName'])))['sort']((_0x2ad8c1,_0x270b28)=>_0x32b180['indexOf'](_0x2ad8c1['rootName'])-_0x32b180['indexOf'](_0x270b28['rootName'])),_0x197fc5;}['_makeTape'](_0x4b8a5f){const _0x1440af=Array['from'](_0x4b8a5f['markers'])['filter'](([_0x3291ae,_0x5795ec])=>_0x3291ae['startsWith']('revision:')&&!_0x5795ec['isCollapsed']),_0x3217df=Array['from'](this['editor']['model']['createRangeIn'](_0x4b8a5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1440af['length'])for(const _0x89e716 of _0x3217df){const [_0x38c562,_0x5ca6a4]=_0x1440af[0x0],[,_0x54c4ce,_0x211979]=_0x38c562['split'](':');if(_0x5ca6a4['end']['isEqual'](_0x89e716['nextPosition'])&&_0x1440af['shift'](),(_0x89e716['previousPosition']['isEqual'](_0x5ca6a4['start'])||_0x89e716['previousPosition']['isAfter'](_0x5ca6a4['start']))&&('insertion'==_0x54c4ce?_0x89e716['isAdded']={'userId':_0x211979}:'deletion'==_0x54c4ce&&(_0x89e716['isRemoved']={'userId':_0x211979})),0x0==_0x1440af['length'])break;}return _0x3217df;}['_refreshStartEndIndex'](_0x2dbddf){const _0x5b39e5=new Map();for(let _0x21088d=0x0;_0x21088d<_0x2dbddf['length'];_0x21088d++)'text'===_0x2dbddf[_0x21088d]['type']?(_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d,_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d):('elementStart'===_0x2dbddf[_0x21088d]['type']?_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d:'elementEnd'===_0x2dbddf[_0x21088d]['type']&&(_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d),_0x5b39e5['set'](_0x2dbddf[_0x21088d]['id'],_0x21088d));for(const _0x34e36e of _0x5b39e5['values']())'elementStart'===_0x2dbddf[_0x34e36e]['type']?_0x2dbddf[_0x34e36e]['item']['endIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']):'elementEnd'===_0x2dbddf[_0x34e36e]['type']&&(_0x2dbddf[_0x34e36e]['item']['startIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']));}['_processTape'](_0x4c96f1){for(let _0x1bddec=0x0;_0x1bddec<_0x4c96f1['length'];_0x1bddec++){if('elementStart'===_0x4c96f1[_0x1bddec]['type'])_0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec;else{if('elementEnd'===_0x4c96f1[_0x1bddec]['type']){_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec;const _0xd4286f=_0x4c96f1[_0x1bddec]['item']['startIndex'];_0x4c96f1[_0xd4286f]['pairId']=_0x4c96f1[_0x1bddec]['id'],_0x4c96f1[_0x1bddec]['pairId']=_0x4c96f1[_0xd4286f]['id'];}else _0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['pairId']=null;}_0x4c96f1[_0x1bddec]['markersStart']||(_0x4c96f1[_0x1bddec]['markersStart']=[],_0x4c96f1[_0x1bddec]['markersEnd']=[]);}}['_markInsertions'](_0x3352fc,_0x5d3e3d){const _0x522c29=_0x3352fc['filter'](_0x1764eb=>!_0x1764eb['isAdded']);for(let _0x26ce50=0x0;_0x26ce50<_0x5d3e3d['length'];_0x26ce50++)_0x5d3e3d[_0x26ce50]['isAdded']&&(_0x522c29[_0x26ce50]['isAdded']=_0x5d3e3d[_0x26ce50]['isAdded']);}['_makeModelFromViewString'](_0x552335){const _0x7e96db=JSON['parse'](_0x552335),_0x2271b7=this['editor']['editing']['view']['document'],_0x3e85ef=new _0x5a9f7e(_0x2271b7,_0x7e96db['map'](_0x2f05d7=>this['_getViewObj'](_0x2f05d7)));return this['editor']['data']['toModel'](_0x3e85ef);}['_getViewObj'](_0x47397d){const _0x3264cd=this['editor']['editing']['view']['document'];if('string'==typeof _0x47397d)return new _0x377b5b(_0x3264cd,_0x47397d);{const _0x4f9008=_0x47397d['children']['map'](_0x3fa9d4=>this['_getViewObj'](_0x3fa9d4));return new(Z[_0x47397d['type']]||_0x1fac3b)(_0x3264cd,_0x47397d['name'],_0x47397d['attributes'],_0x4f9008);}}['_getDiff'](_0x31dc3a,_0x46d85d=null){const _0x3bd816=this['repository']['getRevision'](_0x31dc3a),_0x1b3510=_0x46d85d?this['repository']['getRevision'](_0x46d85d):null,_0x465d3c=this['_getRevisionsRange'](_0x3bd816,_0x1b3510),_0x5236b9=_0x465d3c[_0x465d3c['length']-0x1],_0x1a4550=new Map(),_0x4f9961={'model':{},'attributes':{},'changes':[]},_0x3fc5e8=new Set(),_0x2ff99e=new Map();for(let _0x50292d=_0x465d3c['length']-0x1;_0x50292d>=0x0;_0x50292d--){const _0x3d72b6=_0x465d3c[_0x50292d];for(const _0x2ae8d9 of Object['keys'](_0x3d72b6['diffData']))if(_0x3d72b6['diffData'][_0x2ae8d9]['attachChange']){const _0x2ec889=_0x3d72b6['diffData'][_0x2ae8d9]['attachChange'];_0x2ec889['isAttached']?(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['has'](_0x2ae8d9)&&_0x2ff99e['get'](_0x2ae8d9)['userId']==_0x2ec889['userId']?_0x2ff99e['delete'](_0x2ae8d9):_0x2ff99e['set'](_0x2ae8d9,_0x2ec889)):_0x2ff99e['has'](_0x2ae8d9)?(_0x3fc5e8['delete'](_0x2ae8d9),_0x2ff99e['delete'](_0x2ae8d9)):(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['set'](_0x2ae8d9,_0x2ec889));}else _0x3fc5e8['add'](_0x2ae8d9);}for(const _0x2fc1d0 of _0x3fc5e8){const _0x49863e=_0x2ff99e['has'](_0x2fc1d0)&&!_0x2ff99e['get'](_0x2fc1d0)['isAttached'];let _0xfe194f=_0x49863e?_0x465d3c['length']-0x1:0x0;const _0x79e502=_0x49863e?-0x1:0x1;for(;_0x465d3c[_0xfe194f];){const _0x1e8080=_0x465d3c[_0xfe194f];if(_0x1e8080['diffData'][_0x2fc1d0]){const _0x49b706=_0x49863e?_0x1e8080['diffData'][_0x2fc1d0]['attributesBefore']:_0x1e8080['diffData'][_0x2fc1d0]['attributesAfter'];_0x4f9961['attributes'][_0x2fc1d0]=_0x49b706?_0x3f3c34(_0x49b706):{};break;}_0xfe194f+=_0x79e502;}}for(const _0x4cbc49 of _0x465d3c){_0x4cbc49['model']={};for(const _0x681178 of _0x4cbc49['authors'])_0x1a4550['set'](_0x681178['id'],_0x681178);for(const _0x54eff2 of _0x3fc5e8){const _0x2b320b=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['insertions']:'[]',_0x3834e7=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['deletions']:'[]';_0x4cbc49['model'][_0x54eff2]={'insertions':this['_makeModelFromViewString'](_0x2b320b),'deletions':this['_makeModelFromViewString'](_0x3834e7)};}}for(const _0xb6fff1 of _0x3fc5e8){let _0x3d3465=null,_0x32fbc8=0x0;const _0x12af27=new Map(Array['from'](_0x3bd816['model'][_0xb6fff1]['insertions']['markers'])['filter'](([_0xbc71c8])=>!_0xbc71c8['startsWith']('revision:')));let _0x2d1876=0x0;for(const _0x18b93c of _0x465d3c){const _0x4128e8=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['insertions']);_0x18b93c==_0x3bd816?(_0x3d3465=_0x4128e8,_0x32fbc8=_0x3d3465['length'],_0x3d3465['forEach'](_0x59801b=>{_0x59801b['id']=_0x2d1876++;}),this['_processTape'](_0x3d3465)):this['_markInsertions'](_0x3d3465,_0x4128e8);const _0x2cfafb=_0x3d3465['filter'](_0x4442f2=>!_0x4442f2['isAdded'])['map'](_0x29bae0=>_0x29bae0['id']);let _0x47f327=0x0;const _0x40f71f=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['deletions']);_0x40f71f['forEach'](_0x592dab=>{_0x592dab['isRemoved']?_0x592dab['id']=_0x32fbc8++:_0x592dab['id']=_0x2cfafb[_0x47f327++];}),this['_processTape'](_0x40f71f),this['_setDistance'](_0x3d3465,'isAdded'),this['_setDistance'](_0x40f71f,'isRemoved'),_0x18b93c==_0x3bd816&&this['_markMarkers'](_0x3d3465,_0x12af27),_0x3d3465=this['_joinTapes'](_0x3d3465,_0x40f71f),this['_refreshStartEndIndex'](_0x3d3465),this['_setDistance'](_0x3d3465,'isRemoved');}_0x3d3465=_0x3d3465['filter'](_0x4e2e43=>!(_0x4e2e43['isAdded']&&_0x4e2e43['isRemoved']));const _0xc080ce=new Map(_0x5236b9['model'][_0xb6fff1]['deletions']['markers']),_0x4f1988=new Set(_0x12af27['keys']());for(const _0x194089 of _0xc080ce['keys']())_0x4f1988['delete'](_0x194089);this['_markSuggestions'](_0x3d3465,_0x4f1988),this['_fixObsoleteTags'](_0x3d3465),_0x3d3465=this['_removeMissingPairs'](_0x3d3465),_0x3d3465=this['_markMismatchedRemovedTags'](_0x3d3465),_0x3d3465=this['_removeUnsupportedChanges'](_0x3d3465);const {root:_0x16e9c2,changes:_0x4d1ccc}=this['_makeModelFromTape'](_0x3d3465,_0x1a4550,_0xb6fff1);_0x4f9961['model'][_0xb6fff1]=_0x16e9c2;const _0x3e8eb7=_0x2ff99e['get'](_0xb6fff1);if(_0x3e8eb7){const _0x1fe813=_0x1a4550['get'](_0x3e8eb7['userId']),_0x2990d0=new r({'author':_0x1fe813,'type':_0x3e8eb7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb6fff1});_0x4d1ccc['unshift'](_0x2990d0),_0x4f9961['attributes'][_0xb6fff1]['revisionHistoryAttachChange']=_0x2990d0['id'];}_0x4f9961['changes']=_0x4f9961['changes']['concat'](_0x4d1ccc);}return _0x4f9961;}['_markMarkers'](_0xb8d635,_0x2fc7c6){for(let _0x53ee7c=0x0;_0x53ee7c<_0xb8d635['length'];_0x53ee7c++)for(const [_0xcacf0b,_0x50a9f1]of _0x2fc7c6)_0x50a9f1['start']['isEqual'](_0xb8d635[_0x53ee7c]['previousPosition'])&&_0xb8d635[_0x53ee7c]['markersStart']['push'](_0xcacf0b),_0x50a9f1['end']['isEqual'](_0xb8d635[_0x53ee7c]['nextPosition'])&&_0xb8d635[_0x53ee7c]['markersEnd']['push'](_0xcacf0b);}['_joinTapes'](_0x1d1988,_0x2f39a0){let _0x196081=[],_0x3fce28=0x0,_0x3bf906=0x0;for(;_0x3fce28<_0x1d1988['length']||_0x3bf906<_0x2f39a0['length'];){const _0x3cb87d=_0x1d1988[_0x3fce28]||{},_0x5d922f=_0x2f39a0[_0x3bf906]||{};if(_0x3cb87d['id']==_0x5d922f['id'])_0x3fce28++,_0x3bf906++,_0x196081['push'](_0x3cb87d);else{if(_0x5d922f['isRemoved']&&_0x3cb87d['isAdded']){const {commonTape:_0x3bdfdc,iEnd:_0x1ed258,jEnd:_0xb16712}=this['_threeWayMerge'](_0x1d1988,_0x3fce28,_0x2f39a0,_0x3bf906);_0x196081=_0x196081['concat'](_0x3bdfdc),_0x3fce28=_0x1ed258,_0x3bf906=_0xb16712;}else _0x5d922f['isRemoved']?(_0x3bf906++,_0x196081['push'](_0x5d922f)):(_0x3fce28++,_0x196081['push'](_0x3cb87d));}}return _0x196081;}['_markSuggestions'](_0x49b626,_0x2f177f){const _0xb16d0d=[];for(let _0x492e71=0x0;_0x492e71<_0x49b626['length'];_0x492e71++){for(let _0x4ad2f3=0x0;_0x4ad2f3<_0x49b626[_0x492e71]['markersStart']['length'];_0x4ad2f3++){const _0xad5e2c=_0x49b626[_0x492e71]['markersStart'][_0x4ad2f3];if(!_0x2f177f['has'](_0xad5e2c))continue;const {group:_0x5a4a03,type:_0x43a6c1,authorId:_0x426420}=_0x4f9519(_0xad5e2c);'revision-suggestion'!=_0x5a4a03||'insertion'!=_0x43a6c1&&'deletion'!=_0x43a6c1||(_0xb16d0d['unshift']({'type':_0x43a6c1,'name':_0xad5e2c,'userId':_0x426420}),_0x49b626[_0x492e71]['markersStart']['splice'](_0x4ad2f3,0x1),_0x4ad2f3--);}_0x5677c0(_0x49b626[_0x492e71]);for(let _0x322d16=0x0;_0x322d16<_0x49b626[_0x492e71]['markersEnd']['length'];_0x322d16++){const _0x32f82e=_0x49b626[_0x492e71]['markersEnd'][_0x322d16];if(!_0x2f177f['has'](_0x32f82e))continue;const {group:_0x3f1694,type:_0x2c56b7}=_0x4f9519(_0x32f82e);if('revision-suggestion'!=_0x3f1694||'insertion'!=_0x2c56b7&&'deletion'!=_0x2c56b7)continue;_0x49b626[_0x492e71]['markersEnd']['splice'](_0x322d16,0x1),_0x322d16--;const _0x25e62e=_0xb16d0d['findIndex'](_0x1a8296=>_0x1a8296['name']==_0x32f82e);_0x25e62e>-0x1&&_0xb16d0d['splice'](_0x25e62e,0x1);}}function _0x4f9519(_0x180d31){const _0x24d488=_0x180d31['split'](':');return{'group':_0x24d488[0x0],'type':_0x24d488[0x1],'subType':_0x24d488['length']>=0x5?_0x24d488[0x2]:null,'id':_0x24d488['length']<0x5?_0x24d488[0x2]:_0x24d488[0x3],'authorId':_0x24d488['length']<0x5?_0x24d488[0x3]:_0x24d488[0x4],'markerCount':0x6==_0x24d488['length']?_0x24d488[0x5]:null};}function _0x5677c0(_0x52518a){for(let _0x18ad9c=0x0;_0x18ad9c<_0xb16d0d['length'];_0x18ad9c++){if(_0x52518a['isAdded']&&'insertion'==_0xb16d0d[_0x18ad9c]['type'])return _0x52518a['isAddSuggestion']=_0xb16d0d[_0x18ad9c],void delete _0x52518a['isAdded'];if(!_0x52518a['isAdded']&&!_0x52518a['isRemoved']&&'deletion'==_0xb16d0d[_0x18ad9c]['type'])return void(_0x52518a['isRemoveSuggestion']=_0xb16d0d[_0x18ad9c]);}}}['_setDistance'](_0x5349a4,_0x16bf2d){let _0x2eb1a2=0x0,_0x4d89fe=!0x1;const _0x5307ca=new Map();for(const _0x46ed81 of _0x5349a4)_0x46ed81[_0x16bf2d]?_0x4d89fe&&(_0x2eb1a2++,_0x4d89fe=!0x1):(_0x2eb1a2++,_0x4d89fe=!0x0),_0x5307ca['set'](_0x46ed81['id'],_0x2eb1a2);for(let _0x59dfee=0x0;_0x59dfee<_0x5349a4['length'];_0x59dfee++){if('isRemoved'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isAdded']||'isAdded'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isRemoved'])continue;if('text'==_0x5349a4[_0x59dfee]['type']){_0x5349a4[_0x59dfee]['distance']=0x0;continue;}const _0x27a4e1=_0x5307ca['get'](_0x5349a4[_0x59dfee]['pairId']),_0x5640ec=_0x5307ca['get'](_0x5349a4[_0x59dfee]['id']);_0x5349a4[_0x59dfee]['distance']=_0x27a4e1-_0x5640ec;}}['_getRevisionsRange'](_0x498a3d,_0x226a52,_0x54684c=!0x1){const _0x4e0239=[];let _0x2d38f9=this['repository']['getIndex'](_0x498a3d),_0x38ccb2=this['repository']['getIndex'](_0x226a52);for(-0x1==_0x38ccb2&&(_0x38ccb2=this['repository']['_revisions']['length'],_0x54684c=!0x1);_0x2d38f9<_0x38ccb2;)_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x2d38f9++;return _0x54684c&&_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x4e0239;}['_threeWayMerge'](_0x5e1aec,_0x1bdf49,_0x239198,_0xf00cf1){const _0x2f911a=this['editor']['model']['schema'];let _0x44a80f=_0x1bdf49;for(;_0x5e1aec[_0x44a80f]&&_0x5e1aec[_0x44a80f]['isAdded'];)_0x44a80f++;let _0x5015c6=_0xf00cf1;for(;_0x239198[_0x5015c6]&&_0x239198[_0x5015c6]['isRemoved'];)_0x5015c6++;_0x5911e5(_0x5e1aec,_0x1bdf49,_0x44a80f),_0x5911e5(_0x239198,_0xf00cf1,_0x5015c6);const _0x5680b6=_0x239198['slice'](_0xf00cf1,_0x5015c6)['concat'](_0x5e1aec['slice'](_0x1bdf49,_0x44a80f));return _0x5680b6['sort']((_0x52b04e,_0x2bf00b)=>_0x52b04e['side']!=_0x2bf00b['side']?_0x52b04e['side']-_0x2bf00b['side']:_0x52b04e['level']!=_0x2bf00b['level']?_0x52b04e['level']-_0x2bf00b['level']:_0x52b04e['distance']!=_0x2bf00b['distance']?_0x2bf00b['distance']-_0x52b04e['distance']:!!_0x52b04e['isAdded']!=!!_0x2bf00b['isAdded']?-0x1==_0x52b04e['side']||0x0==_0x52b04e['side']?_0x52b04e['isAdded']?-0x1:0x1:_0x52b04e['isAdded']?0x1:-0x1:_0x52b04e['index']-_0x2bf00b['index']),{'commonTape':_0x5680b6,'iEnd':_0x44a80f,'jEnd':_0x5015c6};function _0x5911e5(_0x4690e2,_0x6fbd40,_0x1e5b39){let _0x3a2601=-0x1,_0x434adc=Number['POSITIVE_INFINITY'],_0x3e6ee3=!0x0;for(let _0x18cdd3=_0x6fbd40;_0x18cdd3<_0x1e5b39;_0x18cdd3++)if(_0x2f911a['isInline'](_0x4690e2[_0x18cdd3]['item'])||(_0x3e6ee3=!0x1),_0x4690e2[_0x18cdd3]['item']['startIndex']<_0x6fbd40&&(_0x3a2601=_0x18cdd3),_0x4690e2[_0x18cdd3]['item']['endIndex']>=_0x1e5b39){_0x434adc=_0x18cdd3;break;}_0x3e6ee3&&(_0x3a2601=_0x1e5b39-0x1);for(let _0x34da7a=_0x6fbd40;_0x34da7a<_0x1e5b39;_0x34da7a++)_0x4690e2[_0x34da7a]['side']=_0x34da7a<=_0x3a2601?-0x1:_0x34da7a<_0x434adc?0x0:0x1,_0x4690e2[_0x34da7a]['index']=_0x34da7a;let _0x5133de=0x0;for(let _0xab89f3=_0x6fbd40;_0xab89f3<=_0x3a2601;_0xab89f3++)0x0==_0x4690e2[_0xab89f3]['distance']?_0x4690e2[_0xab89f3]['level']=_0x5133de:(_0x5133de++,_0x4690e2[_0xab89f3]['level']=_0x5133de,_0x5133de++);for(let _0x21e4dd=_0x6fbd40;_0x21e4dd<_0x1e5b39;_0x21e4dd++)0x0==_0x4690e2[_0x21e4dd]['side']&&(_0x4690e2[_0x21e4dd]['level']=_0x5133de);_0x5133de=0x0;for(let _0x5e49e8=_0x1e5b39-0x1;_0x5e49e8>=_0x434adc;_0x5e49e8--)0x0==_0x4690e2[_0x5e49e8]['distance']?_0x4690e2[_0x5e49e8]['level']=_0x5133de:(_0x5133de--,_0x4690e2[_0x5e49e8]['level']=_0x5133de,_0x5133de--);}}['_fixObsoleteTags'](_0x47d3b6){const _0x14ca75=new Map(),_0x4a4793=this['editor']['model']['schema'];for(let _0x21718d=0x1;_0x21718d<_0x47d3b6['length'];_0x21718d++){let _0x532ae1,_0x4f2a6d,_0x1954ee;const _0x59b968=_0x47d3b6[_0x21718d],_0x1c9b9c=_0x47d3b6[_0x21718d-0x1];if('text'==_0x59b968['type'])continue;if(_0x59b968['type']!=_0x1c9b9c['type'])continue;if(!_0x4a4793['isBlock'](_0x1c9b9c['item'])||_0x4a4793['isLimit'](_0x1c9b9c['item']))continue;if(!_0x4a4793['isBlock'](_0x59b968['item'])||_0x4a4793['isLimit'](_0x59b968['item']))continue;if((_0x47d3b6[_0x21718d]['isAdded']||_0x47d3b6[_0x21718d]['isAddSuggestion'])&&_0x47d3b6[_0x21718d-0x1]['isRemoved'])_0x532ae1=_0x47d3b6[_0x21718d],_0x4f2a6d=_0x47d3b6[_0x21718d-0x1],_0x1954ee=_0x21718d-0x1;else{if(!_0x47d3b6[_0x21718d]['isRemoved']||!_0x47d3b6[_0x21718d-0x1]['isAdded']&&!_0x47d3b6[_0x21718d-0x1]['isAddSuggestion'])continue;_0x532ae1=_0x47d3b6[_0x21718d-0x1],_0x4f2a6d=_0x47d3b6[_0x21718d],_0x1954ee=_0x21718d;}const _0x1cd6f3=_0x532ae1['level']==_0x4f2a6d['level'],_0x581eb9=Math['abs'](_0x532ae1['level'])<Math['abs'](_0x4f2a6d['level'])&&0x0==_0x4f2a6d['distance'];(_0x1cd6f3||_0x581eb9)&&(_0x14ca75['set'](_0x4f2a6d['id'],_0x532ae1['id']),_0x47d3b6['splice'](_0x1954ee,0x1),_0x21718d--,_0x532ae1['isAdded']=!0x1);}for(let _0x32ef6f=0x0;_0x32ef6f<_0x47d3b6['length'];_0x32ef6f++)_0x14ca75['has'](_0x47d3b6[_0x32ef6f]['pairId'])&&(_0x47d3b6[_0x32ef6f]['pairId']=_0x14ca75['get'](_0x47d3b6[_0x32ef6f]['pairId']));}['_removeMissingPairs'](_0x5161ed){const _0xc3a609=new Set(_0x5161ed['map'](_0x4645a0=>_0x4645a0['id']));for(let _0x152ebd=0x0;_0x152ebd<_0x5161ed['length'];_0x152ebd++)_0xc3a609['has'](_0x5161ed[_0x152ebd]['pairId'])||0x0==_0x5161ed[_0x152ebd]['distance']||(_0x5161ed[_0x152ebd]['isIncorrect']=!0x0);return _0x5161ed['filter'](_0x561afb=>!_0x561afb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x68e5dc){const _0x1eb5be=new Set();for(let _0x43af5b=0x0;_0x43af5b<_0x68e5dc['length'];_0x43af5b++){if(_0x1eb5be['has'](_0x68e5dc[_0x43af5b]['id'])&&_0x68e5dc[_0x43af5b]['isRemoved']&&(_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0),_0x68e5dc[_0x43af5b]['isIncorrect'])continue;if(0x0==_0x68e5dc[_0x43af5b]['distance'])continue;if('elementStart'!=_0x68e5dc[_0x43af5b]['type'])continue;if(null==_0x68e5dc[_0x43af5b]['pairId'])continue;let _0x49d7e3=_0x43af5b+0x1,_0x4b02ef=0x0;for(;_0x68e5dc[_0x49d7e3]['id']!=_0x68e5dc[_0x43af5b]['pairId'];)'elementStart'==_0x68e5dc[_0x49d7e3]['type']?_0x4b02ef++:'elementEnd'==_0x68e5dc[_0x49d7e3]['type']&&_0x4b02ef--,_0x49d7e3++;if(0x0!=_0x4b02ef){if(_0x68e5dc[_0x43af5b]['isRemoved'])_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0;else{for(;_0x49d7e3!=_0x43af5b;)_0x68e5dc[_0x49d7e3]['isRemoved']&&0x0!=_0x68e5dc[_0x49d7e3]['distance']&&(_0x68e5dc[_0x49d7e3]['isIncorrect']=!0x0,_0x1eb5be['add'](_0x68e5dc[_0x49d7e3]['pairId'])),_0x49d7e3--;}}}return _0x68e5dc['filter'](_0x5730c0=>!_0x5730c0['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c24e2){const _0x96c338=this['editor']['model']['schema'];for(let _0x4bc968=0x0;_0x4bc968<_0x5c24e2['length'];_0x4bc968++){if(!(_0x5c24e2[_0x4bc968]['isAdded']||_0x5c24e2[_0x4bc968]['isAddSuggestion']||_0x5c24e2[_0x4bc968]['isRemoved']||_0x5c24e2[_0x4bc968]['isRemoveSuggestion']))continue;if(0x0==_0x5c24e2[_0x4bc968]['distance'])continue;const _0x5ce5fa=_0x5c24e2[_0x4bc968]['item'];_0x96c338['isBlock'](_0x5ce5fa)||_0x96c338['isLimit'](_0x5ce5fa)||(_0x5c24e2[_0x4bc968]['isAdded']&&delete _0x5c24e2[_0x4bc968]['isAdded'],_0x5c24e2[_0x4bc968]['isAddSuggestion']&&delete _0x5c24e2[_0x4bc968]['isAddSuggestion'],_0x5c24e2[_0x4bc968]['isRemoveSuggestion']&&delete _0x5c24e2[_0x4bc968]['isRemoveSuggestion'],_0x5c24e2[_0x4bc968]['isRemoved']&&(_0x5c24e2[_0x4bc968]['isIncorrect']=!0x0));}return _0x5c24e2['filter'](_0x5b5c5d=>!_0x5b5c5d['isIncorrect']);}['_makeModelFromTape'](_0x58e54c,_0x536d73,_0x53358d){const _0x245578=new mt(),_0x3cf2b6=[],_0x57f08c=new Map(),_0x253604=this['editor']['model'],_0x5b9327=_0x253604['schema'],_0xc0bcf4=[_0x245578],_0x405f44={},_0xe130a0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f4d01=null;const _0x3b441d=[0x0];for(let _0x29e84c=0x0;_0x29e84c<_0x58e54c['length'];_0x29e84c++)if('elementStart'===_0x58e54c[_0x29e84c]['type']){_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);const _0x30ec59=new ft(_0x58e54c[_0x29e84c]['item']['name'],_0x58e54c[_0x29e84c]['item']['getAttributes']());_0xc0bcf4[0x0]['_appendChild'](_0x30ec59),_0x3b441d['push'](0x0),_0xc0bcf4['unshift'](_0x30ec59),_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);}else'elementEnd'===_0x58e54c[_0x29e84c]['type']?(_0xc0bcf4['shift'](),_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3b441d['pop'](),_0x3b441d[_0x3b441d['length']-0x1]++,_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d)):(_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3f4d01?_0x3f4d01['_data']+=_0x58e54c[_0x29e84c]['item']['data']:_0x3f4d01=new wt(_0x58e54c[_0x29e84c]['item']['data'],_0x58e54c[_0x29e84c]['item']['getAttributes']()),_0x58e54c[_0x29e84c+0x1]&&'text'===_0x58e54c[_0x29e84c+0x1]['type']&&_0x1d45e2(_0x3f4d01,_0x58e54c[_0x29e84c+0x1]['item'])||(_0xc0bcf4[0x0]['_appendChild'](_0x3f4d01),_0x3f4d01=null),_0x3b441d[_0x3b441d['length']-0x1]+=_0x58e54c[_0x29e84c]['item']['offsetSize'],_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d));for(let _0x42e237=0x0;_0x42e237<_0x58e54c['length'];_0x42e237++){const _0x444296=_0x58e54c[_0x42e237]['previousPosition'],_0x4c6168=_0x58e54c[_0x42e237]['nextPosition'];for(const _0x721b12 of _0x58e54c[_0x42e237]['markersStart'])_0x57f08c['set'](_0x721b12,{'start':_0x444296,'end':null});_0x3e4c61('isRemoveSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAddSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isRemoved',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAdded',_0x42e237,_0x444296,_0x4c6168);for(const _0x25e7c7 of _0x58e54c[_0x42e237]['markersEnd']){_0x57f08c['get'](_0x25e7c7)['end']=_0x4c6168;}}for(const [_0x22002a,_0xd3076]of _0x57f08c){const _0x61737d=this['editor']['model']['createRange'](_0xd3076['start'],_0xd3076['end']);_0x245578['markers']['set'](_0x22002a,_0x61737d);}return _0x3cf2b6['sort']((_0x1f5000,_0x5cec0f)=>{const _0x58fc9e=_0x245578['markers']['get']('revision:'+_0x1f5000['id']),_0x11c560=_0x245578['markers']['get']('revision:'+_0x5cec0f['id']);return _0x58fc9e['start']['isBefore'](_0x11c560['start'])?-0x1:_0x58fc9e['start']['isAfter'](_0x11c560['start'])?0x1:_0x58fc9e['end']['isBefore'](_0x11c560['end'])?-0x1:_0x58fc9e['end']['isAfter'](_0x11c560['end'])?0x1:'add'===_0x1f5000['type']?-0x1:0x1;}),{'root':_0x245578,'changes':_0x3cf2b6};function _0x3e4c61(_0x556565,_0x1ae5f8,_0x5bfbf1,_0x147c06){const _0x3b0157=!!_0x58e54c[_0x1ae5f8][_0x556565],_0x543ae8=_0x3b0157?_0x58e54c[_0x1ae5f8][_0x556565]['userId']:null,_0x41c344=_0x1ae5f8===_0x58e54c['length']-0x1,_0x5942e0=_0xe130a0[_0x556565][0x0],_0x6b4cdb=_0x5b9327['isObject'](_0x58e54c[_0x1ae5f8]['item']);!_0x405f44[_0x556565]&&_0x3b0157?_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}:_0x405f44[_0x556565]&&!_0x3b0157?(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null):_0x405f44[_0x556565]&&_0x3b0157&&_0x405f44[_0x556565]['userId']!==_0x543ae8&&(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x5942e0&&_0x5942e0['userId']===_0x405f44[_0x556565]['userId']||_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}),_0x405f44[_0x556565]&&_0x6b4cdb&&('elementStart'!==_0x58e54c[_0x1ae5f8]['type']||_0x5942e0&&_0x5942e0['userId']===_0x543ae8||_0xe130a0[_0x556565]['unshift']({'userId':_0x543ae8,'object':_0x58e54c[_0x1ae5f8]['item'],'change':_0x405f44[_0x556565]}),'elementEnd'===_0x58e54c[_0x1ae5f8]['type']&&_0x5942e0&&_0x5942e0['object']===_0x58e54c[_0x1ae5f8]['item']&&(_0xe130a0[_0x556565]['shift'](),_0x405f44[_0x556565]=_0x5942e0['change'])),_0x405f44[_0x556565]&&_0x41c344&&(_0x405f44[_0x556565]['end']=_0x147c06,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null);}function _0x426661({start:_0x45b4db,end:_0x1db0b9,tapeItem:_0x5ce24c,userId:_0x1fb8d1,type:_0x37efb3}){const _0x4133c0=_0x5ce24c['item'],_0x130c94=_0x253604['schema']['isBlock'](_0x4133c0)&&!_0x253604['schema']['isLimit'](_0x4133c0),_0x2ffa50=_0x45b4db['nodeAfter']==_0x1db0b9['parent']&&_0x1db0b9['isAtStart'];if(_0x130c94&&_0x2ffa50)return;const _0x31138a=_0x253604['createRange'](_0x45b4db,_0x1db0b9),_0x5ce5ea=_0x536d73['get'](_0x1fb8d1),_0x5b80bd=new r({'author':_0x5ce5ea,'type':'isAdded'==_0x37efb3||'isAddSuggestion'==_0x37efb3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x37efb3||'isRemoveSuggestion'==_0x37efb3},'createdAt':new Date(),'rootName':_0x53358d});_0x3cf2b6['push'](_0x5b80bd),_0x245578['markers']['set']('revision:'+_0x5b80bd['id'],_0x31138a);}function _0x1d45e2(_0x37347d,_0xafd87f){const _0x236141=_0x37347d['getAttributes'](),_0x320730=_0xafd87f['getAttributes']();for(const _0x4ec0b7 of _0x236141){if(_0x4ec0b7[0x1]!==_0xafd87f['getAttribute'](_0x4ec0b7[0x0]))return!0x1;_0x320730['next']();}return _0x320730['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39a522=>{const _0xb0f6c3=_0x39a522['markerName']['split'](':')[0x1],_0x17f378=this['_getChangeFromId'](_0xb0f6c3);if(!_0x17f378)return null;const _0x4e3adc='add'==_0x17f378['type']?'insertion':'deletion',_0x330842=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e3adc];return _0x17f378['data']['isSuggestion']&&_0x330842['push']('ck-suggestion-marker-'+_0x4e3adc+'-new'),this['activeChange']==_0x17f378&&_0x330842['push']('ck-suggestion-marker--active'),{'classes':_0x330842,'attributes':{'data-change-id':_0xb0f6c3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bd32b=>{_0x5bd32b['on']('element:pre',(_0x58cb6c,_0x2de3f4,_0x5282c9)=>{const _0x37384f=_0x2de3f4['viewItem']['getChild'](0x0);if(!_0x37384f||!_0x37384f['is']('element','code'))return;if(!_0x5282c9['consumable']['consume'](_0x37384f,{'attributes':['vid_start','vid_end']}))return;const _0x446c94=_0x2de3f4['modelRange']['start']['nodeAfter'];_0x5282c9['writer']['setAttribute']('vid_start',_0x37384f['getAttribute']('vid_start'),_0x446c94),_0x5282c9['writer']['setAttribute']('vid_end',_0x37384f['getAttribute']('vid_end'),_0x446c94);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4d5c5c=>{_0x4d5c5c['on']('element',(_0x5d5515,_0x1610d3,_0x291ff9)=>{if(!_0x291ff9['consumable']['consume'](_0x1610d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1610d3['modelRange']['isCollapsed'])return;const _0x5760e7=_0x1610d3['modelRange']['start']['nodeAfter'];_0x5760e7['hasAttribute']('vid_start')||_0x5760e7['hasAttribute']('vid')||(_0x291ff9['writer']['setAttribute']('vid_start',_0x1610d3['viewItem']['getAttribute']('vid_start'),_0x5760e7),_0x291ff9['writer']['setAttribute']('vid_end',_0x1610d3['viewItem']['getAttribute']('vid_end'),_0x5760e7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39d945=>_0x39d945['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5bd54a,[,_0x5c05f7])=>{['vid_start','vid_end','vid']['includes'](_0x5c05f7)&&(_0x5bd54a['return']=!0x0,_0x5bd54a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x315795=>{_0x315795['on']('attribute:vid',(_0x5a06dc,_0xc5a209,_0x2fa4f3)=>{if('\x20'!=_0xc5a209['item']['data']||_0xc5a209['item']['parent']['maxOffset']>0x1)return;if(!_0x2fa4f3['consumable']['consume'](_0xc5a209['item'],_0x5a06dc['name']))return;const _0x2a69d0=_0x2fa4f3['writer'],_0x4cf14f=_0x2fa4f3['mapper']['toViewRange'](_0xc5a209['range']);_0x2a69d0['wrap'](_0x4cf14f,_0x2a69d0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x401861){const _0x3d02bd=_0x401861['plugins']['get']('RevisionViewer');return(_0x118d13,_0x59df22,_0x417922)=>{const _0x27335b=_0x59df22['markerName']['split'](':')[0x1],_0x41509b=_0x3d02bd['_getChangeFromId'](_0x27335b);if(!_0x41509b)return null;const _0x3e6738='add'==_0x41509b['type']?'split':'merge';if(!_0x417922['consumable']['test'](_0x59df22['markerRange'],_0x118d13['name']))return;const _0x569158=_0x59df22['markerRange']['getWalker'](),_0x4221e0=_0x59df22['markerRange']['start'],_0x216768=_0x401861['model']['schema'];let _0x338518=null,_0x382885=null,_0x54c2f9=!0x1,_0x29ae58=!0x1;for(const _0xdeea49 of _0x569158){const _0x283218=_0xdeea49['item'];_0x54c2f9=_0x54c2f9||_0x216768['isContent'](_0x283218);const _0x1896d4=_0x417922['mapper']['toViewElement'](_0x283218);if(_0x1896d4&&_0x1896d4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdeea49['type']&&(_0x216768['isBlock'](_0x283218)&&!_0x216768['isLimit'](_0x283218)&&(_0x283218['nextSibling']||_0x4221e0['isAtEnd']?_0x338518&&_0x338518['parent']==_0x283218||(_0x338518=_0x283218,_0x50504b(_0xdeea49['previousPosition']),_0x29ae58=!0x0):_0x382885=_0x382885||_0xdeea49['previousPosition']));}function _0x50504b(_0x35d719){const _0x136708=_0x417922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e6738}),_0x4c3c38=_0x417922['mapper']['toViewPosition'](_0x35d719);_0x41509b['data']['isSuggestion']&&_0x417922['writer']['addClass']('ck-suggestion-marker-'+_0x3e6738+'-new',_0x136708),_0x3d02bd['activeChange']==_0x41509b&&_0x417922['writer']['addClass']('ck-suggestion-marker--active',_0x136708),_0x417922['writer']['insert'](_0x4c3c38,_0x136708),_0x417922['mapper']['bindElementToMarker'](_0x136708,_0x59df22['markerName']);}_0x54c2f9||_0x29ae58||!_0x382885||_0x50504b(_0x382885);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x359f64,_0x5dde7f,_0x250fbc)=>{const _0xd5a86c=_0x250fbc['mapper']['markerNameToElements'](_0x5dde7f['markerName']);if(_0xd5a86c){for(const _0x30814e of _0xd5a86c)(_0x30814e['hasClass']('ck-suggestion-marker-split')||_0x30814e['hasClass']('ck-suggestion-marker-merge'))&&(_0x250fbc['mapper']['unbindElementFromMarkerName'](_0x30814e,_0x5dde7f['markerName']),_0x250fbc['writer']['remove'](_0x30814e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x105972,_0xc68bcd,_0x385b32)=>{const _0x43fc47=_0xc68bcd['markerName']['split'](':')[0x1],_0x1a4195=this['_getChangeFromId'](_0x43fc47);if(!_0x1a4195)return null;const _0x5a121e='add'==_0x1a4195['type']?'split':'merge';if(_0x385b32['consumable']['test'](_0xc68bcd['markerRange'],_0x105972['name']))for(const _0x5c06c6 of _0xc68bcd['markerRange']['getItems']()){if(!_0x5c06c6['is']('element','softBreak'))continue;const _0x291374=_0x385b32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a121e}),_0x541ba1=_0x385b32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c06c6));_0x1a4195['data']['isSuggestion']&&_0x385b32['writer']['addClass']('ck-suggestion-marker-'+_0x5a121e+'-new',_0x291374),this['activeChange']==_0x1a4195&&_0x385b32['writer']['addClass']('ck-suggestion-marker--active',_0x291374),_0x385b32['writer']['insert'](_0x541ba1,_0x291374),_0x385b32['mapper']['bindElementToMarker'](_0x291374,_0xc68bcd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x215d77=>{for(const _0x253b06 of this['editor']['model']['document']['getRootNames']()){const _0x1af5dc=this['editor']['model']['document']['getRoot'](_0x253b06),_0x54babf=this['editor']['editing']['view']['document']['getRoot'](_0x253b06);if(_0x54babf){const _0x4afa69=_0x1af5dc['getAttribute']('revisionHistoryAttachChange');if(_0x215d77['removeAttribute']('data-change-id',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-add',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-remove',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root--active',_0x54babf),_0x4afa69){const _0x228844=this['_getChangeFromId'](_0x4afa69);if(!_0x228844)return null;_0x215d77['setAttribute']('data-change-id',_0x4afa69,_0x54babf),_0x215d77['addClass']('ck-revision-history-root-'+_0x228844['type'],_0x54babf),this['activeChange']==_0x228844&&_0x215d77['addClass']('ck-revision-history-root--active',_0x54babf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39aeba=>'revision-comment:'+_0x39aeba,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x517bd1=>'revision-suggestion:'+_0x517bd1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x435fb2=>({'name':'suggestion:'+_0x435fb2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3076b5=>{const _0xcbf2dc=_0x3076b5['markerName']['split'](':')[0x1];return'insertion'!=_0xcbf2dc&&'deletion'!=_0xcbf2dc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcbf2dc]};}}),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',(_0x1277ca,_0x144d90,_0x11b631)=>{const _0x16e0ed=_0x11b631['mapper']['markerNameToElements'](_0x144d90['markerName']);if(_0x16e0ed){for(const _0x1e9c2e of _0x16e0ed)_0x1e9c2e['is']('uiElement')&&(_0x11b631['mapper']['unbindElementFromMarkerName'](_0x1e9c2e,_0x144d90['markerName']),_0x11b631['writer']['remove'](_0x1e9c2e));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6416){return this['_changeIdToChange']['get'](_0x4e6416);}['_getViewForChange'](_0x15b4ef){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x15b4ef),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x317002,_0x3a178e,_0x51bc9c,_0x45de4e)=>{_0x45de4e&&this['_balloon']['remove'](_0x45de4e),_0x51bc9c&&(this['_balloon']['add']({'view':_0x51bc9c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ce6b8=this['editor']['editing'],_0x34f5ba=this['_getChangeFromId'](_0x51bc9c['changeId']);let _0x2002c6;if(_0x34f5ba['data']['isOnRoot']){const _0x132a5d=_0x3ce6b8['view']['getDomRoot'](_0x34f5ba['rootName']);_0x2002c6=Array['from'](_0x132a5d['getClientRects']());}else{const _0x3aefb0=this['editor']['model']['markers']['get']('revision:'+_0x51bc9c['changeId']);_0x2002c6=Array['from'](_0x3ce6b8['mapper']['markerNameToElements'](_0x3aefb0['name']))['map'](_0x115456=>_0x3ce6b8['view']['domConverter']['mapViewToDom'](_0x115456))['map'](_0x339c2e=>Array['from'](_0x339c2e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2002c6[0x0];return _0x2002c6['find'](_0x5bcfe9=>_0x5bcfe9['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bcfe9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bcfe9['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bcfe9['right']+0x3>=this['_activeViewTarget']['x'])||_0x2002c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d04eb,_0xf01317,_0x34d0fa,_0x3fb023)=>{this['activeView']=_0x34d0fa?this['_getViewForChange'](_0x34d0fa):null,this['editor']['model']['change'](()=>{const _0x9820b8=this['editor']['editing'];_0x3fb023&&(_0x3fb023['data']['isOnRoot']?_0x9820b8['view']['change'](_0x52474f=>{_0x52474f['removeClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x3fb023['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x3fb023['id'])),_0x34d0fa&&(_0x34d0fa['data']['isOnRoot']?_0x9820b8['view']['change'](_0x72f372=>{_0x72f372['addClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x34d0fa['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x34d0fa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xc6f2de,_0x3ef779)=>{if(this['activeChange'])return;const _0xd5b868=this['_findChangeIdFromDomTarget'](_0x3ef779['target']),_0x5a12c8=this['_changeIdToChange']['get'](_0xd5b868);_0x5a12c8?(this['_activeViewTarget']={'x':_0x3ef779['domEvent']['x'],'y':_0x3ef779['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a12c8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2407cb,_0x25f07b)=>{const _0x7aec8c=this['_findChangeIdFromDomTarget'](_0x25f07b['target']),_0x5f2f2b=this['_changeIdToChange']['get'](_0x7aec8c);_0x5f2f2b?(this['_activeViewTarget']={'x':_0x25f07b['domEvent']['x'],'y':_0x25f07b['domEvent']['y']},_0x5f2f2b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5f2f2b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x572a8c){do{const _0x57fa83=_0x572a8c['getAttribute']('data-change-id');if(_0x57fa83)return _0x57fa83;_0x572a8c=_0x572a8c['parent'];}while(_0x572a8c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42661f=>{for(const _0x586e5a of this['editor']['model']['markers'])_0x42661f['removeMarker'](_0x586e5a);});}}function tt(_0x1f47fb,_0x53d4d9){return(_0x2e2b61,_0x1b0714,_0x31b007)=>{if(!_0x31b007['consumable']['test'](_0x1b0714['markerRange'],_0x2e2b61['name']))return;const _0x5b2b22=_0x1b0714['markerRange']['getWalker'](),_0xa06657=_0x1b0714['markerRange']['start'],_0x56fb0c=_0x1f47fb['model']['schema'];let _0x4a4a3b=null,_0x32b52a=null,_0x810710=!0x1,_0x3a3e2e=!0x1;for(const _0x303aec of _0x5b2b22){const _0xce9e63=_0x303aec['item'];_0x810710=_0x810710||_0x56fb0c['isContent'](_0xce9e63);const _0x2d462d=_0x31b007['mapper']['toViewElement'](_0xce9e63);if(_0x2d462d&&_0x2d462d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x303aec['type']&&(_0x56fb0c['isBlock'](_0xce9e63)&&!_0x56fb0c['isLimit'](_0xce9e63)&&(_0xce9e63['nextSibling']||_0xa06657['isAtEnd']?_0x4a4a3b&&_0x4a4a3b['parent']==_0xce9e63||(_0x4a4a3b=_0xce9e63,_0x4c99b1(_0x303aec['previousPosition']),_0x3a3e2e=!0x0):_0x32b52a=_0x32b52a||_0x303aec['previousPosition']));}function _0x4c99b1(_0x3b943e){const _0xec5ae=_0x31b007['mapper']['toViewPosition'](_0x3b943e),_0x15743d=_0x31b007['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x53d4d9});_0x31b007['writer']['insert'](_0xec5ae,_0x15743d),_0x31b007['mapper']['bindElementToMarker'](_0x15743d,_0x1b0714['markerName']);}_0x810710||_0x3a3e2e||!_0x32b52a||_0x4c99b1(_0x32b52a);};}class _t extends _0x4faceb{constructor(_0x2bbe66){super(_0x2bbe66);const _0x1db6e4=_0x2bbe66['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1db6e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1db6e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44ce3c=this['editor'],_0x47ac27=_0x44ce3c['plugins']['get'](d),_0x2988a2=_0x47ac27['isReady']?_0x47ac27['diff']['newRevisionId']:null;_0x44ce3c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2988a2);}['refresh'](){const {isReady:_0x5b59b2,isEnabled:_0x34468f,repository:_0x38cd70,diff:_0x47ad50}=this['editor']['plugins']['get'](d),_0x361069=_0x47ad50&&_0x38cd70['getLaterVisibleRevision'](_0x47ad50['newRevisionId']);this['isEnabled']=_0x5b59b2&&_0x34468f&&Boolean(_0x361069);}}class yt extends _0x4faceb{['_step'];constructor(_0x41a762,{direction:_0x5b85dc}){super(_0x41a762);const _0x3b8a7f=_0x41a762['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5b85dc?0x1:-0x1,this['listenTo'](_0x3b8a7f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1e9679=this['editor'],_0x2b3dbd=_0x1e9679['plugins']['get'](d),{isNavigationMode:_0x4066ab,currentChangeNumber:_0x10da1e}=_0x2b3dbd;let _0x5e09d9;if(_0x2b3dbd['activeChange']=_0x4066ab?_0x2b3dbd['diff']['changes']['get'](_0x10da1e+this['_step']):_0x2b3dbd['diff']['changes']['first'],_0x2b3dbd['activeChange']['data']['isOnRoot'])_0x5e09d9=_0x1e9679['editing']['view']['getDomRoot'](_0x2b3dbd['activeChange']['rootName']);else{const _0x5bcc1b=_0x1e9679['model']['markers']['get']('revision:'+_0x2b3dbd['activeChange']['id']);_0x5e09d9=_0x415cb4(_0x1e9679['editing'],_0x5bcc1b);}_0x28cd2e({'target':_0x5e09d9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x8f65bd,currentChangeNumber:_0x4e5861,numberOfChanges:_0x2efdee,isReady:_0x48d48f,isEnabled:_0x47059a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x47059a&&_0x48d48f&&_0x2efdee)&&(!_0x8f65bd||(0x1===this['_step']?_0x4e5861<_0x2efdee-0x1:_0x4e5861>0x0));}}class li extends ts{constructor(_0x3eab51){super(_0x3eab51);const _0x3cc218=this['bindTemplate'],_0x36bbb1=new te(_0x3eab51),_0x152c86=new te(_0x3eab51);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',(_0x1e972c,_0x1f94ae)=>_0x1e972c&&_0x1f94ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6a30fa,_0x59cc36,_0x209136,_0x38cdd3)=>{if(!_0x6a30fa)return R(_0x3eab51,'Loading...');if(!_0x209136)return R(_0x3eab51,'No\x20changes');const _0x2574a5=R(_0x3eab51,'NUMBER_OF_CHANGES',_0x209136);return _0x38cdd3?R(_0x3eab51,'X_OF_Y_CHANGES',[_0x59cc36+0x1,_0x209136]):_0x2574a5;}),_0x36bbb1['set']({'label':R(_0x3eab51,'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'}),_0x152c86['set']({'label':R(_0x3eab51,'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'}),_0x36bbb1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x152c86['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x36bbb1['on']('execute',()=>this['fire']('execute','backward')),_0x152c86['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',_0x3cc218['if']('_isStatusLabelVisible','ck-hidden',_0x2890c3=>!_0x2890c3)]},'children':[{'text':_0x3cc218['to']('isNavigationMode',_0x1d243e=>_0x1d243e?R(_0x3eab51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3eab51,'Total')+':\x20')}]},{'text':_0x3cc218['to']('_statusText')}]},new _0x54463f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x36bbb1,_0x152c86]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2f7aa1=this['editor']['editing']['view'];_0x2f7aa1['change'](_0x53bd6e=>{for(const _0x4e1da7 of _0x2f7aa1['document']['roots'])_0x53bd6e['addClass'](le,_0x4e1da7);});}['hide'](){const _0x32c9f9=this['editor']['editing']['view'];_0x32c9f9['change'](_0x3e707e=>{for(const _0x5383db of _0x32c9f9['document']['roots'])_0x3e707e['removeClass'](le,_0x5383db);});}}class m extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x38f2a3=this['editor'],_0x39e8da=_0x38f2a3['plugins']['get'](d),_0x55a6a3=_0x38f2a3['plugins']['get'](ge);_0x38f2a3['ui']['componentFactory']['add']('exitToEditing',_0x5cb0f4=>{const _0x3e434c=new te(_0x5cb0f4);return _0x3e434c['set']({'label':R(_0x5cb0f4,'Back\x20to\x20editing'),'icon':_0x14c866['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e434c,'execute',()=>{_0x38f2a3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e434c;}),_0x38f2a3['ui']['componentFactory']['add']('restoreRevision',_0x3cbe30=>{const _0xd91328=new te(_0x3cbe30);return _0xd91328['set']({'label':R(_0x3cbe30,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd91328['bind']('isEnabled')['to'](_0x38f2a3['commands']['get']('restoreRevision')),this['listenTo'](_0xd91328,'execute',()=>_0x38f2a3['execute']('restoreRevision')),_0xd91328;}),_0x38f2a3['ui']['componentFactory']['add']('changesNavigation',_0x434e16=>{const _0x386e57=new li(_0x434e16),_0x1f6d1d=_0x38f2a3['commands']['get']('showPreviousChange'),_0x20ca66=_0x38f2a3['commands']['get']('showNextChange');return _0x386e57['bind']('isBackwardNavigationEnabled')['to'](_0x1f6d1d,'isEnabled'),_0x386e57['bind']('isForwardNavigationEnabled')['to'](_0x20ca66,'isEnabled'),_0x386e57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39e8da),this['listenTo'](_0x386e57,'execute',(_0x1e8490,_0x40fdc)=>{_0x38f2a3['execute']('forward'===_0x40fdc?'showNextChange':'showPreviousChange');}),_0x386e57;}),_0x55a6a3['show'](),_0x39e8da['on']('change:isReady',(_0x576b0f,_0x16c2bd,_0xf58f5d)=>{_0xf58f5d?_0x55a6a3['hide']():_0x55a6a3['show']();});}}class pt extends _0x3f921c{['_resizeObserver']=null;constructor(_0x4a3020,_0x34fed1){super(_0x4a3020,_0x34fed1);const _0x246d84=this['bindTemplate'];this['set']({'label':R(_0x4a3020,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a3020,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x246d84['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 _0x10b986=this['fieldView']['element'];this['_tooltipString']=_0x10b986['scrollWidth']>_0x10b986['clientWidth']&&_0x10b986['value']||'';}}class ri extends ts{constructor(_0x2a3fcb,_0x28669f,_0x378f47){super(_0x2a3fcb);const _0xc5ce24=new _0x825bd1();_0xc5ce24['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 _0x2b91fe=['ck','ck-revision-history-sidebar__revision-author'];_0x378f47&&_0x2b91fe['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fae3e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2a3fcb,_0x378f47?'Revision\x20creator':'Revision\x20author')},'children':[_0xc5ce24,_0x28669f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b91fe},'children':_0x3fae3e});}}function oi(_0x23e21d,_0x3dba61){const _0x1b1bc6=_0x23e21d['bindTemplate'],_0x5863c8=_0x23e21d['locale'],_0x56dab8=_0x547500(_0x5863c8);_0x56dab8['panelPosition']='sw';const _0x294a8a=function(_0x1e66e5,_0x2e7316){const _0x335fce=function(_0xdcc638,_0x1de993){const _0x2b3b95=_0xdcc638['locale'],_0xca59d1={'Compare\x20against\x20selected':R(_0x2b3b95,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b3b95,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b3b95,'Restore\x20this\x20revision')};return _0x1de993['map'](_0x362af0=>{const _0x1f9946=_0xca59d1[_0x362af0['name']];return _0x1f9946&&_0x1f9946!==_0x362af0['name']&&(_0x362af0['name']=_0x1f9946),_0x362af0;});}(_0x1e66e5,_0x2e7316),_0x575dc4=new _0x3fda2b();for(const _0x469bd5 of _0x335fce){const _0x236241={'type':'button','model':new _0x4c462f({'label':_0x469bd5['name'],'class':_0x469bd5['class'],'withText':!0x0,'role':'menuitem','_action':_0x469bd5['action']})};_0x236241['model']['bind']('isEnabled')['to'](_0x1e66e5,'isActionsDropdownOpen',_0x59ee81=>'function'!=typeof _0x469bd5['isEnabled']||(!_0x59ee81||_0x469bd5['isEnabled'](_0x1e66e5))),_0x575dc4['add'](_0x236241);}return _0x575dc4;}(_0x23e21d,_0x3dba61);return _0x23e21d['bind']('isActionsDropdownOpen')['to'](_0x56dab8,'isOpen'),_0x56dab8['buttonView']['set']({'label':R(_0x5863c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14c866['threeVerticalDots']}),_0x56dab8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b1bc6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b1bc6['to'](_0x43a8f2=>_0x43a8f2['stopPropagation']())}}),_0x56dab8['on']('execute',_0x5ab11a=>{_0x23e21d['isReady']&&'function'==typeof _0x5ab11a['source']['_action']&&_0x5ab11a['source']['_action'](_0x23e21d);}),to(_0x56dab8,_0x294a8a,{'role':'menu'}),_0x56dab8['listenTo'](_0x23e21d,'change:isActionsDropdownOpen',(_0x6401f7,_0x4b4699,_0x4e7b1f)=>{if(_0x4e7b1f)for(const _0x47c70d of _0x56dab8['listView']['items']){const _0x5a4c30=_0x47c70d['children']['first'],_0x358341=_0x3dba61['find'](_0x20a9de=>_0x20a9de['action']===_0x5a4c30['_action'])['isVisible'];_0x47c70d['isVisible']=void 0x0===_0x358341||_0x358341(_0x23e21d);}}),_0x56dab8;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3b2130,_0x186c0f,_0x4fd2ab,_0x5e41e0){super(_0x3b2130);const _0x3e7340=this['bindTemplate'],_0x5e6570=function(_0x4a1bfb,_0x187a85){const _0x35b586=Array['from'](_0x187a85['authors'])['filter'](_0xd4ae28=>_0xd4ae28!=_0x187a85['creator']);return _0x187a85['creator']&&_0x35b586['unshift'](_0x187a85['creator']),_0x35b586['map'](_0x2abd06=>new ri(_0x4a1bfb,_0x2abd06,_0x2abd06==_0x187a85['creator']));}(_0x3b2130,_0x186c0f);this['id']=_0x186c0f['id'],this['_revision']=_0x186c0f,this['_requireRevisionName']=_0x5e41e0,this['bind']('name','createdAt')['to'](_0x186c0f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2990af=>{return _0x5ab4eb=_0x3b2130['uiLanguage'],(_0x159efc=_0x2990af)['toLocaleDateString'](_0x5ab4eb,{'month':'long','day':'numeric'})+',\x20'+_0x159efc['toLocaleTimeString'](_0x5ab4eb,{'hour':'numeric','minute':'numeric'});var _0x5ab4eb,_0x159efc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3b2130,_0x2498fb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a8b8c=>_0x1a8b8c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x32af7b,_0x3dfa5a)=>_0x32af7b&&_0x3dfa5a),this['revisionActionsView']=_0x4fd2ab&&_0x4fd2ab['length']?oi(this,_0x4fd2ab):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3e7340['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3e7340['if']('isEnabled','ck-disabled',_0x337405=>!_0x337405),_0x3e7340['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3e7340['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3e7340['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':_0x3e7340['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':_0x5e6570}]},this['revisionActionsView']],'on':{'click':_0x3e7340['to'](_0x1d5a10=>{_0x1d5a10['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4bf036=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4bf036,'change',()=>{this['_requireRevisionName']&&!_0x4bf036['value']||this['fire']('setName',{'id':this['id'],'name':_0x4bf036['value']}),_0x4bf036['value']||(_0x4bf036['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x492d8d,_0x2e7826){const _0x1b2707=_0x4c6978['fromJSDate'](_0x492d8d)['setLocale'](_0x2e7826),_0x5b110e=_0x4c6978['local'](),_0xc69cc2=_0x5b110e['minus']({'days':0x1})['startOf']('day');let _0x222d93,_0x409586;return _0x1b2707['hasSame'](_0x5b110e,'day')?(_0x222d93=_0x1b2707['startOf']('day')['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0xc69cc2,'day')?(_0x222d93=_0xc69cc2['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0x5b110e,'week')?(_0x222d93=_0x1b2707['startOf']('week')['toJSDate'](),_0x409586=_0x1b2707['weekdayLong']||''):_0x1b2707['hasSame'](_0x5b110e,'year')?(_0x222d93=_0x1b2707['startOf']('month')['toJSDate'](),_0x409586=_0x1b2707['monthLong']||''):(_0x222d93=_0x1b2707['startOf']('year')['toJSDate'](),_0x409586=String(_0x1b2707['year'])),{'startDate':_0x222d93,'localizedPeriodName':_0x409586};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1157d5,_0x2459de,_0x5c1db5,_0x5c8e3d){super(_0x1157d5);const _0x30051b=ci(_0x2459de,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2459de,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5c1db5,this['_requireRevisionName']=_0x5c8e3d,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':_0x30051b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3cd226){const _0x1eec7c=new hi(this['locale'],_0x3cd226,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1eec7c);}['removeRevision'](_0x132816){const _0x97499c=this['revisionViews']['find'](_0x773fa1=>_0x773fa1['id']===_0x132816['id']);this['revisionViews']['remove'](_0x97499c);}}class as extends ts{constructor(_0x2b6337){super(_0x2b6337);const _0x1a03e5=new _0x825bd1();_0x1a03e5['content']=_0x14c866['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1a03e5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2b6337,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x898e12,_0x541175,_0x3a1227,_0x5947ff){super(_0x898e12);const _0x3b7246=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x541175,this['_revisionActions']=_0x3a1227,this['_requireRevisionName']=_0x5947ff,this['on']('select',(_0xff1969,_0x4a21c3)=>{this['fire']('revisionSelected',_0x4a21c3);}),this['on']('setName',(_0x36b90c,_0x3fb946)=>{this['fire']('revisionSetName',_0x3fb946);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x898e12),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3b7246['if']('isEnabled','ck-disabled',_0x38add5=>!_0x38add5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4c726e of this['_revisions'])this['_addRevision'](_0x4c726e);this['_revisions']['on']('add',(_0x289499,_0x5c8085)=>{this['_addRevision'](_0x5c8085);}),this['_revisions']['on']('remove',(_0x5b95ac,_0x4bba9c)=>{this['_removeRevision'](_0x4bba9c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2974a7=>_0x2974a7['revisionViews']['map'](_0x31d534=>_0x31d534))['flat']();}['selectRevision'](_0x29788c){for(const _0x54e0f6 of this['revisionViews'])_0x29788c&&_0x29788c['id']===_0x54e0f6['id']?_0x54e0f6['select']():_0x54e0f6['deselect']();}['highlightRevisions'](_0x47215a){for(const _0x24469f of this['revisionViews'])_0x47215a['some'](({id:_0x178d1f})=>_0x178d1f===_0x24469f['id'])?_0x24469f['highlight']():_0x24469f['unhighlight']();}['_addRevision'](_0x42f8f3){const _0x5a6531=ci(_0x42f8f3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2155ba=this['timePeriodViews']['get'](0x0);_0x2155ba&&_0x2155ba['startDate']['getTime']()===_0x5a6531['getTime']()||(_0x2155ba=new ai(this['locale'],_0x5a6531,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2155ba)),_0x2155ba['addRevision'](_0x42f8f3);}['_removeRevision'](_0x3c1f78){const _0x352e05=ci(_0x3c1f78['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x352e05)['removeRevision'](_0x3c1f78);}['_getTimePeriodViewByStartDate'](_0x55d42b){return this['timePeriodViews']['find'](_0x10b984=>_0x10b984['startDate']['getTime']()===_0x55d42b['getTime']());}}class g extends _0x1c98c7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
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
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5d39ef){super(_0x5d39ef),this['_revisionViewer']=_0x5d39ef['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xbb4091=this['_revisionsRepository']['_revisions'],_0x49553d=this['_createRevisionActions'](),_0x584068=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0xbb4091,_0x49553d,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',(_0x594136,_0x36f9fe)=>{_0x36f9fe['revisionViews']['on']('add',(_0x264f7e,_0x9175d6)=>{_0x9175d6['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)),_0x584068['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4472ed=this['_revisionsRepository']['getRevision'](0x0);if(_0x4472ed){const _0x5579b3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4472ed['id']);this['_revisionViewer']['compare'](_0x4472ed,_0x5579b3);}}['_handleRevisionSelected'](_0x21c8f4,_0x4f1f30){const _0x24cd8c=this['_revisionsRepository']['getRevision'](_0x4f1f30['id']),_0x4cc6bd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24cd8c['id']);this['_revisionViewer']['compare'](_0x24cd8c,_0x4cc6bd);}['_handleRevisionSetName'](_0x29d9ad,_0x283629){this['_revisionsRepository']['getRevision'](_0x283629['id'])['setName'](_0x283629['name']);}['_handleDiffChange'](_0x5675c7,_0x28e053,_0xe57762){const _0x5294e3=this['_revisionsRepository']['getRevisionsInDiff'](_0xe57762);_0x5294e3['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5294e3),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5294e3[0x0]));}['_createRevisionActions'](){const _0x3f689d=this['editor'],_0x24653d=g['availableRevisionActions'],_0x2aa560=_0x3f689d['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2aa560['length'])return _0x2aa560['map'](_0x58902a=>{const _0x16d0df='string'==typeof _0x58902a?Object['assign']({},_0x24653d[_0x58902a]):_0x58902a;return _0x16d0df['action']=_0x16d0df['action']['bind'](this,_0x3f689d),_0x16d0df['isVisible']&&(_0x16d0df['isVisible']=_0x16d0df['isVisible']['bind'](this,_0x3f689d)),_0x16d0df;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd66637},_0x476004)=>{const _0x1a9fc6=_0xd66637['get'](d),_0x273089=_0x1a9fc6['repository'];let _0x402415=_0x1a9fc6['diff']['newRevisionId'],_0x5f3d0c=_0x476004['id'];_0x273089['getIndex'](_0x402415)>_0x273089['getIndex'](_0x5f3d0c)&&([_0x402415,_0x5f3d0c]=[_0x5f3d0c,_0x402415]),_0x1a9fc6['compare'](_0x402415,_0x5f3d0c);},'isVisible':({plugins:_0x5d3f26},_0x322801)=>{const _0x7f8f5e=_0x5d3f26['get'](d);return!(_0x7f8f5e['repository']['getRevisionsInDiff'](_0x7f8f5e['diff'])['length']>0x2)&&!_0x322801['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5cf167,{id:_0x3f3f52})=>{_0x5cf167['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f3f52);},'isVisible':({plugins:_0x2553e1},_0xdc7b98)=>!!_0x2553e1['get'](d)['repository']['getLaterVisibleRevision'](_0xdc7b98['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x55e1c4},{id:_0x16f93f,revisionNameView:_0x106d2c})=>{const _0x27f2c1=_0x55e1c4['get'](d),_0x1442d4=_0x27f2c1['repository']['getEarlierVisibleRevision'](_0x16f93f);_0x27f2c1['compare'](_0x16f93f,_0x1442d4),_0x106d2c['focus'](),_0x106d2c['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x284cbb,_0x4801db){super(_0x284cbb),this['_view']=_0x4801db,this['_toolbarConfig']=ht(_0x284cbb['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x22be27){const _0xd5c930=this['editor'],_0x5b9ab2=this['view'],_0x38e2a2=_0xd5c930['editing']['view'],_0x354105=_0x5b9ab2['editable'],_0x345f51=_0x38e2a2['document']['getRoot']();_0x354105['name']=_0x345f51['rootName'],_0x5b9ab2['render']();const _0x2ca5af=_0x354105['element'];this['setEditableElement'](_0x354105['name'],_0x2ca5af),_0x5b9ab2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38e2a2['attachDomRoot'](_0x2ca5af),this['_elementReplacer']['replace'](_0x22be27,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b625b=this['view'],_0x3e6a02=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3e6a02['detachDomRoot'](_0x2b625b['editable']['name']),_0x2b625b['destroy']();}['_initToolbar'](){const _0xbd25c6=this['view'];_0xbd25c6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xbd25c6['stickyPanel']['limiterElement']=_0xbd25c6['element'],_0xbd25c6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x38e6ba})=>_0x38e6ba),_0xbd25c6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xbd25c6['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe19c1e,_0x2d0075,_0x49daa1={}){super(_0xe19c1e),this['stickyPanel']=new lt(_0xe19c1e),this['toolbar']=new nt(_0xe19c1e,{'shouldGroupWhenFull':_0x49daa1['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xe19c1e,_0x2d0075);}['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(_0x5d71eb,_0x21d95e){super(_0x21d95e),this['sourceElement']=_0x5d71eb,this['model']['document']['createRoot']();const _0x33da70=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33da70);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x148f07,_0x168bde){const _0x10af56=new this(_0x148f07,_0x168bde);return await _0x10af56['initPlugins'](),await _0x10af56['ui']['init'](_0x148f07),await _0x10af56['data']['init'](_0x10af56['config']['get']('initialData')||''),_0x10af56['fire']('ready'),_0x10af56;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1c98c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10904c){function _0x3564d9(_0x435afb){return _0x435afb['map'](_0x21afa3=>String['fromCharCode'](_0x21afa3))['join']('');}super(_0x10904c),this['result']='end',_0x10904c[_0x3564d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3564d9([0x76,0x69,0x65,0x77])][_0x3564d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3564d9([0x61,0x75,0x74,0x6f]),_0x10904c[_0x3564d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3564d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3564d9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3564d9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3564d9([0x6f,0x6b])});}}class H extends _0x1c98c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5456a1){if(super(_0x5456a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x420f22('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1265dc=>this['_showRevisionViewer']({..._0x1265dc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fe975=>this['_closeRevisionViewer'](_0x4fe975)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x7a5ffa=>this['_restoreRevision'](_0x7a5ffa)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c451){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c451;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x408c08){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x408c08);}['getRevision'](_0x6614d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6614d8);}['getRevisions'](_0x138000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x138000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x13e9c0=this['editor'],_0x285a2e=_0x1541f1(_0x13e9c0,p),_0x55e75b=_0x13e9c0['plugins']['get']('RevisionTracker'),_0x4d39a7=_0x13e9c0['plugins']['get']('Users')['users'];return _0x285a2e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x285a2e['lazyRoots'],(_0x285a2e['plugins']['push'](k,d,m,class extends _0x1c98c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b248f=this['editor']['plugins']['get']('Users');for(const _0x22f12f of _0x4d39a7)_0x22f12f['isAnonymous']||_0x4b248f['getUser'](_0x22f12f['id'])||_0x4b248f['addUser'](_0x22f12f);const _0x6a1835=_0x55e75b['repository']['getRevisions']();let _0x202b33=null;const _0x290675=this['editor']['plugins']['get']('RevisionViewer');_0x290675['adapter']=_0x55e75b['adapter'],_0x290675['bind']('isEnabled')['to'](_0x55e75b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x13e9c0,'isReadOnly',_0x5be65e=>!_0x5be65e);for(const _0x3fa9b0 of _0x6a1835){const _0x1ecb3f=null===_0x3fa9b0['creator'];if(_0x1ecb3f&&_0x3fa9b0['toVersion']===_0x3fa9b0['fromVersion'])continue;const _0x2a563c=_0x3fa9b0['toJSON']();_0x290675['addRevisionData'](_0x2a563c,(_0x376c97,_0x113b7f,_0x370565)=>{if(_0x1ecb3f){if(_0x202b33)_0x202b33['_update'](_0x376c97,_0x113b7f);else{if(!_0x113b7f){const _0x12c88d=_0x370565['toJSON']();_0x12c88d['id']=_0x4e6837(),_0x55e75b['saveRevision'](_0x12c88d,_0x370565['toVersion'])['then'](_0x246e5d=>{_0x202b33=_0x246e5d;});}}}else _0x3fa9b0['_update'](_0x376c97,_0x113b7f);});}}},g),_0x285a2e);}['_enhanceShowRevisionViewerCallback'](){const _0x123edf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2098ce=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3aeb19=this['editor']['plugins']['get']('Autosave');await _0x3aeb19['save']();}else await _0x2098ce['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x197e77=this['editor']['plugins']['get']('Dialog');_0x197e77['isOpen']&&_0x197e77['hide']();}const _0x44f0dc=this['_getRevisionViewerEditorConfig']();return _0x123edf(_0x44f0dc)['then'](_0x1af658=>{return(this['_viewerEditor']=_0x1af658,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1af658;})['catch'](_0x20f2c2=>(console['error'](_0x20f2c2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x594968=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'](),_0x594968(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xc6afe0=this['editor']['plugins']['get']('Annotations');_0xc6afe0['refreshVisibility'](),_0xc6afe0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23b9f5){const _0x23b934=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe55349=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x433c68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x433c68,_0x23b9f5)['then'](_0x42e440=>(_0xe55349['style']['display']='block',_0x23b934['style']['display']='none',_0x42e440));}['_closeRevisionViewer'](_0x1bd05e){const _0x5e3ca7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e3ca7['style']['display']='',_0x1bd05e['destroy']();}async['_restoreRevision'](_0x36ceca){const _0xf4ac42=this['editor'],_0x29be6d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c5ff7=_0xf4ac42['plugins']['get']('RevisionTracker'),_0x43079c=_0x29be6d['repository']['getRevision'](_0x36ceca);let _0x3489c7,_0x544cc9,_0x227f29;try{_0x3489c7=await _0x29be6d['getRevisionData'](_0x43079c),_0x544cc9=await _0x29be6d['getRevisionRootsAttributes'](_0x43079c);}catch(_0x492c60){return void console['error'](_0x492c60);}_0xf4ac42['model']['change'](_0x555826=>{for(const _0x1d45bc of Array['from'](_0xf4ac42['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x555826['removeMarker'](_0x1d45bc);}),_0x29be6d['isReady']=!0x1,_0xf4ac42['model']['enqueueChange'](_0x4f1dd6=>{_0x4f1dd6['setSelection'](null),_0x4f1dd6['removeSelectionAttribute'](_0xf4ac42['model']['document']['selection']['getAttributeKeys']());const _0x3ca098=Object['keys'](_0x3489c7);for(const _0x58a407 of _0xf4ac42['model']['document']['roots'])'$graveyard'!=_0x58a407['rootName']&&_0x58a407['isAttached']()&&!_0x3ca098['includes'](_0x58a407['rootName'])&&_0x4f1dd6['detachRoot'](_0x58a407);for(const _0x433e93 of _0x3ca098){let _0x12c493=_0xf4ac42['model']['document']['getRoot'](_0x433e93);_0x12c493&&_0x12c493['isAttached']()||(_0x12c493=_0x4f1dd6['addRoot'](_0x433e93));const _0x5279fc=_0x544cc9[_0x433e93],_0x59f81d=Object['keys'](_0x5279fc),_0x1bf7d9=_0x3489c7[_0x433e93];for(const _0x12784c of _0x12c493['getAttributeKeys']())_0x59f81d['includes'](_0x12784c)||_0x4f1dd6['removeAttribute'](_0x12784c,_0x12c493);for(const _0x728448 of _0x59f81d)_0x4f1dd6['setAttribute'](_0x728448,_0x544cc9[_0x433e93][_0x728448],_0x12c493);_0x4f1dd6['remove'](_0x4f1dd6['createRangeIn'](_0x12c493)),_0x4f1dd6['insert'](_0xf4ac42['data']['parse'](_0x1bf7d9,_0x12c493),_0x12c493,0x0);}});const _0x759c30=R(_0xf4ac42['locale'],'Restored');if(_0x43079c['name'])_0x227f29=-0x1==_0x43079c['name']['indexOf'](_0x759c30)?_0x759c30+':\x20'+_0x43079c['name']:_0x43079c['name'];else _0x227f29=_0x759c30+':\x20'+(_0x43079c['createdAt']['toLocaleDateString'](_0xf4ac42['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x43079c['createdAt']['toLocaleTimeString'](_0xf4ac42['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c5ff7['saveRevision']({'name':_0x227f29}),_0x29be6d['isReady']=!0x0,_0xf4ac42['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|