@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250709.0 → 0.0.0-nightly-20250710.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 +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- 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,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x208296(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x19699d){super(),this['id']=_0x19699d['id']||_0x83b1c9(),this['creator']=_0x19699d['creator']||null,this['authors']=_0x19699d['authors']||[],this['diffData']=_0x19699d['diffData']||null,this['toVersion']=_0x19699d['toVersion']||0x0,this['fromVersion']=_0x19699d['fromVersion']||0x0,this['set']('name',_0x19699d['name']||''),this['set']('createdAt',_0x19699d['createdAt']||new Date()),this['set']('attributes',_0x19699d['attributes']||{});}['setName'](_0x1338c1){this['_update']({'name':_0x1338c1});}['setAttribute'](_0x11e4b3,_0x11f4b0){const _0x57b156=_0x29ca9e(this['attributes']);_0x71b26e(_0x57b156,_0x11e4b3,_0x11f4b0),this['_update']({'attributes':_0x57b156});}['removeAttribute'](_0x40ba20){const _0x1bcc7a=_0x29ca9e(this['attributes']);_0x102df9(_0x1bcc7a,_0x40ba20),this['_update']({'attributes':_0x1bcc7a});}['_update'](_0x3f4474,_0x5931a8=!0x1){let _0x3860bc=!0x1;const _0x2e9442={'id':this['id']},_0x5bc66e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x45d7ae of _0x5bc66e){const _0x483ee6=_0x3f4474[_0x45d7ae];void 0x0!==_0x483ee6&&_0x483ee6!==this[_0x45d7ae]&&(this[_0x45d7ae]=_0x483ee6,_0x2e9442[_0x45d7ae]=_0x483ee6,_0x3860bc=!0x0);}_0x3860bc&&(_0x2e9442['authors']&&(_0x2e9442['authorsIds']=_0x2e9442['authors']['map'](_0x3313d1=>_0x3313d1['id']),delete _0x2e9442['authors']),this['fire']('_update',_0x2e9442,_0x5931a8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17aced=>_0x17aced['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x55ca5c{['_revisions'];static get['requires'](){return[_0x39e2b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4b3eae){super(_0x4b3eae),this['_revisions']=new _0x390dd6();}['afterInit'](){!async function(_0x5c4925){const _0x4fc0a3=_0x23be3d([0x38,0x41,0x7a,0x32,0x52,0x57,0x48,0x62,0x34,0x64,0x76,0x4e,0x49,0x6b,0x69,0x35,0x46,0x4b,0x6f,0x77,0x6e,0x68,0x56,0x79,0x47,0x50,0x44,0x31,0x4d,0x55,0x71,0x51,0x4c,0x58,0x45,0x53,0x78,0x4a,0x65,0x6d,0x66,0x75,0x63,0x6a,0x42,0x37,0x4f,0x70,0x5a,0x59,0x73,0x39,0x6c,0x72,0x36,0x54,0x30,0x74,0x33,0x67,0x61,0x43]),_0xbf0f6d=0xeb829,_0x3b2799=0x5a1af934,_0x4d49ac=0x5a1d9424^_0x3b2799,_0x2aac2f=window[_0x23be3d([0x44,0x61,0x74,0x65])][_0x23be3d([0x6e,0x6f,0x77])](),_0x2b5e05=_0x5c4925[_0x23be3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d0d50=new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d047=>{_0x2b5e05[_0x23be3d([0x6f,0x6e,0x63,0x65])](_0x23be3d([0x72,0x65,0x61,0x64,0x79]),_0x54d047);}),_0x135822={[_0x23be3d([0x6b,0x74,0x79])]:_0x23be3d([0x45,0x43]),[_0x23be3d([0x75,0x73,0x65])]:_0x23be3d([0x73,0x69,0x67]),[_0x23be3d([0x63,0x72,0x76])]:_0x23be3d([0x50,0x2d,0x32,0x35,0x36]),[_0x23be3d([0x78])]:_0x23be3d([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]),[_0x23be3d([0x79])]:_0x23be3d([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]),[_0x23be3d([0x61,0x6c,0x67])]:_0x23be3d([0x45,0x53,0x32,0x35,0x36])},_0x54f22e=_0x2b5e05[_0x23be3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23be3d([0x67,0x65,0x74])](_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b8597(){let _0x364a33,_0x5e1949=null,_0x301df0=null;try{if(_0x54f22e==_0x23be3d([0x47,0x50,0x4c]))return _0x23be3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x364a33=_0x50156d(),!_0x364a33)return _0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x364a33[_0x23be3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x301df0=_0x40b071(_0x364a33[_0x23be3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x364a33[_0x23be3d([0x6a,0x74,0x69])])),await _0x165d7d()?_0x4d5402()?_0x96a799()?_0x23be3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15a932()?(_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23be3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e1949=_0x6c1b6f(_0x23be3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23be3d([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e1949=_0x6c1b6f(_0x23be3d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5407d2()):_0x23be3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23be3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96a799(){const _0xd6f8f1=[_0x23be3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23be3d([0x74,0x72,0x69,0x61,0x6c])][_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2aac2f/0x3e8:0xe10*_0x4d49ac;return _0x364a33[_0x23be3d([0x65,0x78,0x70])]<_0xd6f8f1;}function _0x4d5402(){const _0x3c14ff=_0x364a33[_0x23be3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c14ff)return!0x1;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x2a])))return!0x0;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x52,0x48])))return!0x0;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x52,0x52,0x48]))){if(_0x3df18c())return!0x0;if(_0x140e0a()||_0xfa3a71())return!0x0;}return!0x1;}function _0x15a932(){const _0x124cde=_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x124cde||0x0==_0x124cde[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16a1e9}=new URL(window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x124cde[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1e9))return!0x0;const _0x3a574e=_0x16a1e9[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e]));return _0x124cde[_0x23be3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31ea9a=>_0x31ea9a[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x2a])))[_0x23be3d([0x6d,0x61,0x70])](_0x40560e=>_0x40560e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e])))[_0x23be3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58cd47=>_0x58cd47[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a574e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23be3d([0x6d,0x61,0x70])](_0x5f3813=>Array(_0x3a574e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f3813[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23be3d([0x66,0x69,0x6c,0x6c])](_0x5f3813[0x0]===_0x23be3d([0x2a])?_0x23be3d([0x2a]):'')[_0x23be3d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f3813))[_0x23be3d([0x73,0x6f,0x6d,0x65])](_0x33dd29=>_0x3a574e[_0x23be3d([0x65,0x76,0x65,0x72,0x79])]((_0xdaa203,_0x59135a)=>_0x33dd29[_0x59135a]===_0xdaa203||_0x33dd29[_0x59135a]===_0x23be3d([0x2a])));}function _0x5407d2(){return _0x5e1949&&_0x301df0?new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x466b4f,_0x7f0ba1)=>{_0x5e1949[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x466b4f,_0x7f0ba1),_0x301df0[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x41992f=>{_0x41992f!=_0x23be3d([0x56,0x61,0x6c,0x69,0x64])&&_0x466b4f(_0x41992f);},_0x7f0ba1);}):_0x5e1949||_0x301df0||_0x23be3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40b071(_0x507e1f,_0x4b9fec){return new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x324993=>{if(_0x4242e5())return _0x324993(_0x23be3d([0x56,0x61,0x6c,0x69,0x64]));_0x3659e7(),_0x2b5e05[_0x23be3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a5c3=!0x1;const _0x198796=_0x83b1c9();function _0x133287(_0x24fb51){return!!_0x24fb51&&(typeof _0x24fb51===_0x23be3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24fb51===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24fb51[_0x23be3d([0x74,0x68,0x65,0x6e])]===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24fb51[_0x23be3d([0x63,0x61,0x74,0x63,0x68])]===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d2eff(_0x2a8abf){_0x3f959e(_0x2a8abf)[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x5042b6=>{if(!_0x5042b6||_0x5042b6[_0x23be3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23be3d([0x6f,0x6b]))return _0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b9d72(_0x34f73a(_0x198796+_0x4b9fec))!=_0x5042b6[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23be3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x40a1a8=>(_0x2f6ded(),_0x40a1a8),()=>{const _0x3410cb=_0x2e666d();return null==_0x3410cb?(_0x2f6ded(),_0x23be3d([0x56,0x61,0x6c,0x69,0x64])):_0x23be3d(_0x2aac2f-_0x3410cb>(0x7e167d34^_0x3b2799)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x324993)[_0x23be3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d88bf=0x5a2c17b4^_0x3b2799;function _0x2f6ded(){const _0x5236ca=_0x23be3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9d72(_0x34f73a(_0x507e1f)),_0x252f20=_0x4fd0cc(_0x5b9d72(window[_0x23be3d([0x4d,0x61,0x74,0x68])][_0x23be3d([0x63,0x65,0x69,0x6c])](_0x2aac2f/_0x5d88bf)));window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23be3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5236ca,_0x252f20);}function _0x2e666d(){const _0x525665=_0x23be3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9d72(_0x34f73a(_0x507e1f)),_0x228362=window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23be3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x525665);return _0x228362?window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fd0cc(_0x228362),0x10)*_0x5d88bf:null;}function _0x3f959e(_0xa5ef1e){return new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55f925,_0x161ab8)=>{_0xa5ef1e[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x55f925,_0x161ab8),window[_0x23be3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x161ab8,0x5a1b2df4^_0x3b2799);});}}_0x2b5e05[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dbf69,_0x576452)=>{if(_0x576452[0x0]!=_0x507e1f)return _0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x576452[0x1]={..._0x576452[0x1],[_0x23be3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198796};},{[_0x23be3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23be3d([0x68,0x69,0x67,0x68])}),_0x2b5e05[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x159275=>{_0x133287(_0x159275[_0x23be3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a5c3=!0x0,_0x4d2eff(_0x159275[_0x23be3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23be3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23be3d([0x6c,0x6f,0x77])}),_0x1d0d50[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>{_0x43a5c3||_0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4242e5(){return _0x2b5e05[_0x23be3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23be3d([0x76,0x69,0x65,0x77])][_0x23be3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23be3d([0x61,0x75,0x74,0x6f]);}function _0x3659e7(){_0x2b5e05[_0x23be3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23be3d([0x76,0x69,0x65,0x77])][_0x23be3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23be3d([0x61,0x75,0x74,0x6f]);}}function _0x6c1b6f(_0x5282ad){const _0x196512=[new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb77b=>setTimeout(_0x4bb77b,0x5a13c7f8^_0x3b2799)),_0x1d0d50[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59d72b=>{const _0x594fe4=0x5a1af933^_0x3b2799,_0x151a7e=_0x5c4925[_0x23be3d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x604d36(){_0x151a7e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x594fe4&&_0x59d72b();}_0x604d36(),_0x151a7e[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x61,0x64,0x64]),_0x604d36);})),new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14fffc=>{function _0x233131(){for(const _0xb849ec in window)if(window[_0x23be3d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23be3d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb849ec))&&window[_0xb849ec]==_0xbf0f6d)return _0x14fffc();_0x2b5e05[_0x23be3d([0x73,0x74,0x61,0x74,0x65])]!=_0x23be3d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23be3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x233131,0x5a1aeabc^_0x3b2799);}_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x233131();})];return window[_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23be3d([0x72,0x61,0x63,0x65])](_0x196512)[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>_0x5282ad);}async function _0x4a966d(){if(await _0x1d0d50,_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x271c53=_0x5c4925[_0x23be3d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e6cda=_0x5c4925[_0x23be3d([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])](_0x271c53[_0x23be3d([0x69,0x64])]),_0x52be61=_0x1ac26e(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x52be61[_0x23be3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x271c53['id'],_0x3e6cda?_0x3e6cda['id']:null,!0x0),_0x52be61[_0x23be3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x52be61[_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x52be61[_0x23be3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1ec059,void(_0x52be61[_0x23be3d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1ec059);}if(_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x43200e=_0x1ac26e(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x43200e[_0x23be3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43200e[_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43200e[_0x23be3d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1ec059,_0x43200e[_0x23be3d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1ec059;}_0x2b5e05[_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23be3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ec059,_0x2b5e05[_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23be3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ec059,_0x2b5e05[_0x23be3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df18c(){return _0xe311e7(_0x23be3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ac26e(_0x23be3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23be3d([0x73,0x74,0x61,0x74,0x65])]==_0x23be3d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x140e0a(){return _0xe311e7(_0x23be3d([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 _0xfa3a71(){return _0xe311e7(_0x23be3d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ed802(_0x3526d){const _0xb75c56=_0x20ab48();_0x2b5e05[_0xb75c56]=_0x23be3d([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])+_0x3526d,_0x3526d[_0x23be3d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23be3d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20ab48()]=_0xbf0f6d),_0x3526d!=_0x23be3d([0x56,0x61,0x6c,0x69,0x64])&&_0x4a966d();}function _0x20ab48(){const _0x3c66e1=window[_0x23be3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23be3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23be3d([0x6e,0x6f,0x77])]())[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23be3d([0x2e]),'');let _0x150ea4=_0x23be3d([0x41]);for(let _0x3f2ed3=0x0;_0x3f2ed3<_0x3c66e1[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2ed3+=0x2){let _0x1e7d4e=window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c66e1[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f2ed3,_0x3f2ed3+0x2));_0x1e7d4e>=_0x4fc0a3[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7d4e-=_0x4fc0a3[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x150ea4+=_0x4fc0a3[_0x1e7d4e];}return _0x150ea4;}function _0x50156d(){const _0x3a2a7b=_0x54f22e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e]));if(0x3!=_0x3a2a7b[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x381493(_0x3a2a7b[0x1]);function _0x381493(_0x1edfb7){const _0x360f3d=_0xff467e(_0x1edfb7);return _0x360f3d&&_0x15deb2()?_0x360f3d:null;function _0x15deb2(){const _0x535311=_0x360f3d[_0x23be3d([0x6a,0x74,0x69])],_0x3fccec=window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x535311[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x535311[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x352324={..._0x360f3d,[_0x23be3d([0x6a,0x74,0x69])]:_0x535311[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x535311[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x352324[_0x23be3d([0x76,0x63])],_0x34f73a(_0x352324)==_0x3fccec;}}}async function _0x165d7d(){let _0x1c24bb=!0x0;try{const _0x82d7c=_0x54f22e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e])),[_0x3aa9de,_0x4e4c74,_0x53824a]=_0x82d7c;return _0x427dbd(_0x3aa9de),await _0x39f3a2(_0x3aa9de,_0x4e4c74,_0x53824a),_0x1c24bb;}catch{return!0x1;}function _0x427dbd(_0x2fe57e){const _0x25213b=_0xff467e(_0x2fe57e);_0x25213b&&_0x25213b[_0x23be3d([0x61,0x6c,0x67])]==_0x23be3d([0x45,0x53,0x32,0x35,0x36])||(_0x1c24bb=!0x1);}async function _0x39f3a2(_0x422959,_0xca0efa,_0x408315){const _0x2f5af8=window[_0x23be3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23be3d([0x66,0x72,0x6f,0x6d])](_0x448e83(_0x408315),_0x6c669e=>_0x6c669e[_0x23be3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f9230=new window[(_0x23be3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23be3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x422959+_0x23be3d([0x2e])+_0xca0efa),_0x108a83=window[_0x23be3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23be3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x108a83)return;const _0x4277e9=await _0x108a83[_0x23be3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23be3d([0x6a,0x77,0x6b]),_0x135822,{[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x45,0x43,0x44,0x53,0x41]),[_0x23be3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23be3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x108a83[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x45,0x43,0x44,0x53,0x41]),[_0x23be3d([0x68,0x61,0x73,0x68])]:{[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4277e9,_0x2f5af8,_0x4f9230)||(_0x1c24bb=!0x1);}}function _0xff467e(_0x261e30){return _0x261e30[_0x23be3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23be3d([0x65,0x79]))?JSON[_0x23be3d([0x70,0x61,0x72,0x73,0x65])](_0x448e83(_0x261e30)):null;}function _0x448e83(_0x4d723a){return window[_0x23be3d([0x61,0x74,0x6f,0x62])](_0x4d723a[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23be3d([0x2b]))[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23be3d([0x2f])));}function _0x34f73a(_0x5b9fd0){let _0x473753=0x1505;function _0x464316(_0x282351){for(let _0x2fc41d=0x0;_0x2fc41d<_0x282351[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fc41d++){const _0x35bdea=_0x282351[_0x23be3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2fc41d);_0x473753=(_0x473753<<0x5)+_0x473753+_0x35bdea,_0x473753&=_0x473753;}}function _0x58203c(_0xc7e65b){Array[_0x23be3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc7e65b)?_0xc7e65b[_0x23be3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58203c):_0xc7e65b&&typeof _0xc7e65b==_0x23be3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23be3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc7e65b)[_0x23be3d([0x73,0x6f,0x72,0x74])]()[_0x23be3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23cc45,_0x5e7807])=>{_0x464316(_0x23cc45),_0x58203c(_0x5e7807);}):_0x464316(window[_0x23be3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc7e65b));}return _0x58203c(_0x5b9fd0),_0x473753>>>0x0;}function _0x5b9d72(_0x4441ea){return _0x4441ea[_0x23be3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23be3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23be3d([0x30]));}function _0x4fd0cc(_0xbb31cf){return _0xbb31cf[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23be3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23be3d([0x6a,0x6f,0x69,0x6e])]('');}function _0xe311e7(_0x32f597){return _0x2b5e05[_0x23be3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23be3d([0x68,0x61,0x73])](_0x32f597);}function _0x1ac26e(_0x574807){return _0x2b5e05[_0x23be3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23be3d([0x67,0x65,0x74])](_0x574807);}function _0x1ec059(){}function _0x23be3d(_0x2a4276){return _0x2a4276['map'](_0x155661=>String['fromCharCode'](_0x155661))['join']('');}_0x1ed802(await _0x3b8597());}(this);}['createRevision'](_0x56b82e){const _0x4d2720=this['editor']['plugins']['get']('Users');return new I({'id':_0x56b82e['id'],'name':_0x56b82e['name'],'creator':_0x56b82e['creatorId']?_0x4d2720['getUser'](_0x56b82e['creatorId']):null,'diffData':_0x56b82e['diffData']||_0x56b82e['data'],'authors':_0x56b82e['authorsIds']['map'](_0x378ad7=>_0x4d2720['getUser'](_0x378ad7)),'createdAt':new Date(_0x56b82e['createdAt']),'attributes':_0x56b82e['attributes'],'fromVersion':_0x56b82e['fromVersion'],'toVersion':_0x56b82e['toVersion']});}['addRevision'](_0x51fde3,_0xc78543=0x0){this['_revisions']['add'](_0x51fde3,_0xc78543);}['getRevision'](_0xdf8a77){return this['_revisions']['get'](_0xdf8a77);}['getRevisions'](_0x212726={'toJSON':!0x1}){const _0xbc1ad0=Array['from'](this['_revisions']);return _0xbc1ad0['reverse'](),_0x212726['toJSON']?_0xbc1ad0['map'](_0x115d77=>_0x115d77['toJSON']()):_0xbc1ad0;}['getIndex'](_0x2ead90){return this['_revisions']['getIndex'](_0x2ead90);}['getEarlierVisibleRevision'](_0x3601ab){const [,_0x2f7292]=this['getRevisionsIterator'](_0x3601ab,{'direction':'earlier'});return _0x2f7292;}['getLaterVisibleRevision'](_0x24d003){const [,_0x46e70e]=this['getRevisionsIterator'](_0x24d003,{'direction':'later'});return _0x46e70e;}['getRevisionsInDiff'](_0xb6d063){const _0x30e66d=[];for(const _0x186386 of this['getRevisionsIterator'](_0xb6d063['newRevisionId']))if(_0x30e66d['push'](_0x186386),_0x186386['id']===_0xb6d063['oldRevisionId'])break;return _0x30e66d;}*['getRevisionsIterator'](_0x90545d,{direction:_0x2ca489='earlier',filter:_0x4961e6=()=>!0x0}={}){const _0x32a326='earlier'===_0x2ca489?0x1:-0x1;let _0x55e412=this['_revisions']['get'](_0x90545d),_0x29d240=this['getIndex'](_0x55e412);for(yield _0x55e412;_0x55e412;){if(_0x29d240+=_0x32a326,_0x55e412=this['getRevision'](_0x29d240),!_0x55e412)return;_0x4961e6(_0x55e412)&&(yield _0x55e412);}}}class $ extends _0x55ca5c{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x24c87c,'c'],[_0x2f6fd9,'a'],[_0x58c353,'e'],[_0x1b7f89,'r'],[_0x41f32f,'u']]);['_typeCharToViewClass']=new Map([['c',_0x24c87c],['a',_0x2f6fd9],['e',_0x58c353],['r',_0x1b7f89],['u',_0x41f32f]]);async['loadRevisionData'](_0x4cd297,_0x466e83){if(_0x4cd297['diffData']||!_0x466e83)return;const _0x5eecfc=this['editor']['config']['get']('collaboration.channelId'),_0x3a6b88=await _0x466e83['getRevision']({'channelId':_0x5eecfc,'revisionId':_0x4cd297['id']});_0x4cd297['diffData']=_0x3a6b88['diffData'];}['getRevisionDocumentData'](_0x5bc553){const _0x27b454={};for(const _0x5a990a in _0x5bc553['diffData']){if(_0x5bc553['diffData'][_0x5a990a]['attachChange']&&!_0x5bc553['diffData'][_0x5a990a]['attachChange']['isAttached'])continue;const _0x28f61a=this['_removeRevisionMarkers'](JSON['parse'](_0x5bc553['diffData'][_0x5a990a]['insertions'])),_0x7d75f4=this['editor']['editing']['view']['document'],_0x3b2347=new _0x2cc1dd(_0x7d75f4,_0x28f61a['map'](_0x1f806f=>this['_getViewFromDiffObj'](_0x1f806f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27b454[_0x5a990a]=this['editor']['data']['processor']['toData'](_0x3b2347),this['editor']['data']['processor']['useFillerType']('default');}return _0x27b454;}['getRevisionRootsAttributes'](_0x28b465){const _0x336123={};for(const _0x3ddc0a in _0x28b465['diffData'])_0x28b465['diffData'][_0x3ddc0a]['attachChange']&&!_0x28b465['diffData'][_0x3ddc0a]['attachChange']['isAttached']||(_0x336123[_0x3ddc0a]=_0x28b465['diffData'][_0x3ddc0a]['attributesAfter']||{});return _0x336123;}['_getTypeCharForViewElement'](_0x27724c){return this['_viewClassToTypeChar']['get'](_0x27724c['constructor']);}['_getViewFromDiffObj'](_0x45bf29,_0x420129){const _0x147f3a=this['editor']['editing']['view']['document'];if('string'==typeof _0x45bf29)return new _0x3e0cf(_0x147f3a,_0x45bf29);{let _0x304f9a,_0x2b3141;_0x2b3141='u'==_0x45bf29['type']||'r'==_0x45bf29['type']?[]:_0x45bf29['children']['map'](_0x519615=>this['_getViewFromDiffObj'](_0x519615,_0x420129));const _0x2d7c62=this['_typeCharToViewClass']['get'](_0x45bf29['type'])||_0x5585fc,_0x315d20=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x304f9a=new _0x2d7c62(_0x147f3a,_0x45bf29['name'],_0x45bf29['attributes'],_0x2b3141),'u'==_0x45bf29['type']&&_0x45bf29['children'][0x0]){const _0x40684b=_0x45bf29['children'][0x0];if(_0x304f9a['render']=function(_0x174d7c){const _0x5e50fc=_0x174d7c['createElement']('div');return _0x5e50fc['innerHTML']=_0x40684b,_0x5e50fc['childNodes'][0x0];},_0x420129){const _0xcbd867=new _0x2cc1dd(_0x147f3a);_0xcbd867['_appendChild'](_0x304f9a);const _0x36a41e=Array['from'](_0x315d20['viewChildrenToDom'](_0xcbd867,{'bind':!0x1})),_0x408fe5=_0x315d20['domDocument']['createElement']('div');_0x408fe5['append'](..._0x36a41e),_0x304f9a=Array['from'](_0x315d20['domChildrenToView'](_0x408fe5))[0x0];}}else{if('r'==_0x45bf29['type']&&_0x45bf29['children'][0x0]){const _0x266712=_0x45bf29['children'][0x0];if(_0x304f9a['render']=function(_0x4fc3bc){_0x4fc3bc['innerHTML']=_0x266712;},_0x420129){const _0x2cac6e=new _0x2cc1dd(_0x147f3a);_0x2cac6e['_appendChild'](_0x304f9a);const _0x101d54=Array['from'](_0x315d20['viewChildrenToDom'](_0x2cac6e,{'bind':!0x1})),_0x1f7625=_0x315d20['domDocument']['createElement']('div');_0x1f7625['append'](..._0x101d54);const _0x43e0e3=Array['from'](_0x315d20['domChildrenToView'](_0x1f7625));_0x43e0e3['length']>0x1?_0x304f9a['_appendChild'](_0x43e0e3):_0x304f9a=_0x43e0e3[0x0];}}}if(_0x45bf29['customProperties']){for(const [_0x431d70,_0x5edc19]of _0x45bf29['customProperties'])_0x304f9a['_setCustomProperty'](_0x431d70,_0x5edc19);}const _0x1fe2d7=void 0x0===_0x45bf29['fillerOffset']?null:_0x45bf29['fillerOffset'];return null!==_0x1fe2d7&&(_0x304f9a['getFillerOffset']=()=>_0x1fe2d7),_0x304f9a;}}['_makeModelFromViewString'](_0x5045b9){const _0x1daac2=JSON['parse'](_0x5045b9),_0x39384a=this['editor']['editing']['view']['document'],_0x31c8c9=new _0x2cc1dd(_0x39384a,_0x1daac2['map'](_0x2dc390=>this['_getViewFromDiffObj'](_0x2dc390,!0x0)));return this['editor']['data']['toModel'](_0x31c8c9);}['_removeRevisionMarkers'](_0x430200){return(_0x430200=_0x430200['filter'](_0x57f3eb=>!_0x57f3eb['name']||'revision-start'!==_0x57f3eb['name']&&'revision-end'!==_0x57f3eb['name']))['forEach'](_0xebb8ff=>{'string'!=typeof _0xebb8ff&&(_0xebb8ff['children']=this['_removeRevisionMarkers'](_0xebb8ff['children']),_0xebb8ff['attributes']=_0xebb8ff['attributes']['filter'](_0xdb1287=>!_0xdb1287[0x0]['startsWith']('data-revision-')));}),_0x430200;}}function R(_0x32bbf3,_0x408743,_0x13ee27){const t=_0x32bbf3['t'];switch(_0x408743){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'},_0x13ee27);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13ee27);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x55ca5c{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x39e2b4,S,$,_0x53387b];}constructor(_0x203cc2){super(_0x203cc2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1dba07=_0x83b1c9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1dba07},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2263b6=this['repository']['getRevision'](0x0),_0x49e3a8=_0x2263b6&&null===_0x2263b6['creator']?_0x2263b6:null;if(this['_continueCurrentRevision']=!!_0x49e3a8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x44c0f9=this['_source']['getCurrentRevisionId'](),_0x4e5803=this['repository']['getRevision'](_0x44c0f9);if(_0x4e5803)this['_startingVersion']=_0x4e5803['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3eb9d9=this['_source']['history']['_operations']['find'](_0x4aa460=>!_0x4aa460['_isInit']),_0x30f709=_0x3eb9d9?_0x3eb9d9['baseVersion']:this['_source']['history']['version'];_0x2263b6?(_0x2263b6['toVersion']<_0x30f709&&_0x2263b6['_update']({'toVersion':_0x30f709}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id'],this['_startingVersion']=_0x49e3a8['fromVersion']):(this['_startingVersion']=_0x2263b6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x30f709,this['_continueCurrentRevision']=!0x1);}}else _0x49e3a8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x49e3a8['toVersion'],this['editor']['model']['document']['history']['version']),_0x49e3a8['fromVersion']===_0x49e3a8['toVersion']?(0x0!==_0x49e3a8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id'],this['_startingVersion']=_0x49e3a8['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',_0x34a227=>!_0x34a227),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x466338=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x100270;for(const _0x4dfd59 in _0x466338){const _0x3e1a57=_0x4dfd59,_0x5f5ac5=_0x466338[_0x3e1a57];if('revisionHistoryLicenseKeyValid'==_0x5f5ac5||'revisionHistoryLicenseKeyInvalid'==_0x5f5ac5||'revisionHistoryLicenseKeyExpired'==_0x5f5ac5||'revisionHistoryLicenseKeyDomainLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyNotAllowed'==_0x5f5ac5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyTrialLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyUsageLimit'==_0x5f5ac5){delete _0x466338[_0x3e1a57],_0x100270=_0x5f5ac5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x100270&&_0x466338['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x100270&&_0x466338['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x100270&&_0x466338['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x100270&&_0x466338['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x100270&&_0x466338['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x100270&&_0x466338['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x100270&&_0x466338['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x575165=this['repository']['getRevision'](0x0),_0x3ae150=await this['getRevisionDocumentData'](_0x575165),_0x5a29ff=await this['getRevisionRootsAttributes'](_0x575165);this['_replaceEditorDataWithRevisionData'](_0x3ae150,_0x5a29ff);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x21c93d){this['_source']=_0x21c93d;}async['update'](){const _0x489c19=await this['_source']['getLatestVersion']();if(_0x489c19>this['currentRevision']['toVersion']){await this['_loadState']();const _0x965b0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x489c19});_0x965b0['authors']=_0x965b0['authorsIds']['map'](_0xcfa4e3=>this['editor']['plugins']['get']('Users')['getUser'](_0xcfa4e3)),this['currentRevision']['_update'](_0x965b0);}}async['saveRevision'](_0x13cfe5={},_0x2e3c82=null){const _0x26f7a4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e3c82>this['currentRevision']['toVersion']&&(_0x2e3c82=null),null===_0x2e3c82&&(_0x2e3c82=await this['_source']['getLatestVersion']());const _0x38674f=this['_getFromVersion'](_0x2e3c82),_0x59edd3=this['buildRevisionData']({'from':_0x38674f,'to':_0x2e3c82});if(this['currentRevision']['toVersion']<_0x2e3c82){const _0x392aed=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2e3c82,'to':_0x2e3c82});_0x392aed['authors']=[],_0x392aed['authorsIds']=[],_0x392aed['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x392aed,!0x0),delete _0x392aed['authors'],_0x26f7a4['push'](_0x392aed);}_0x13cfe5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x13cfe5['name']=_0x13cfe5['name']||null,_0x13cfe5['id']=_0x13cfe5['id']||_0x83b1c9(),_0x13cfe5={..._0x13cfe5,..._0x59edd3};const _0x1f9521=this['addRevisionData'](_0x13cfe5);_0x26f7a4['push'](_0x13cfe5);const _0x53644e=this['repository']['getIndex'](_0x1f9521);if(0x0!==_0x53644e){const _0x1a4e20=this['repository']['getRevision'](_0x53644e-0x1);if(_0x1a4e20['fromVersion']!==_0x2e3c82){const _0x107a4b=this['_revisionDataBuilder']['getData'](_0x2e3c82,_0x1a4e20['toVersion']),_0x5a6751={'id':_0x1a4e20['id'],'diffData':_0x107a4b['diffData'],'authorsIds':_0x107a4b['authorsIds'],'authors':_0x107a4b['authorsIds']['map'](_0x5d1347=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d1347)),'fromVersion':_0x2e3c82};_0x1a4e20===this['currentRevision']&&(_0x5a6751['createdAt']=new Date(_0x13cfe5['createdAt']['getTime']()+0xa)),_0x1a4e20['_update'](_0x5a6751,!0x0),delete _0x5a6751['authors'],_0x26f7a4['push'](_0x5a6751);}}if(this['adapter']){for(const _0x216f6d of _0x26f7a4)this['_bufferUpdate'](_0x216f6d['id'],_0x216f6d,!0x0);this['sendBufferedUpdates']();}return _0x1f9521;}['addRevisionData'](_0x3077b1){const _0x298cf4=this['repository']['createRevision'](_0x3077b1);return this['adapter']&&_0x298cf4['on']('_update',(_0x115bb3,_0x2351a5,_0x290b05)=>{_0x290b05||(this['_bufferUpdate'](_0x2351a5['id'],_0x2351a5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x298cf4,this['_findInsertionIndex'](_0x298cf4)),_0x298cf4;}async['getRevisionDocumentData'](_0x28dd13){return await this['_utils']['loadRevisionData'](_0x28dd13,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x28dd13);}async['getRevisionRootsAttributes'](_0x1dae92){return await this['_utils']['loadRevisionData'](_0x1dae92,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1dae92);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x227c00=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x453481=0x0;_0x453481<_0x227c00['length'];_0x453481++){const _0x4b1047=_0x227c00[_0x453481];let _0x8f5976=!0x1;for(const _0xd82166 of Object['keys'](_0x4b1047))void 0x0===_0x4b1047[_0xd82166]?delete _0x4b1047[_0xd82166]:'id'!==_0xd82166&&(_0x8f5976=!0x0);_0x8f5976||(_0x227c00[_0x453481]=null);}if(_0x227c00=_0x227c00['filter'](_0x5ccf8e=>null!==_0x5ccf8e),!_0x227c00['length'])return;for(let _0x97c22e=0x0;_0x97c22e<_0x227c00['length'];_0x97c22e++){const _0x8944b8=_0x227c00[_0x97c22e];void 0x0!==_0x8944b8['fromVersion']&&void 0x0===_0x8944b8['toVersion']&&(_0x8944b8['toVersion']=this['repository']['getRevision'](_0x8944b8['id'])['toVersion']),void 0x0!==_0x8944b8['toVersion']&&void 0x0===_0x8944b8['fromVersion']&&(_0x8944b8['fromVersion']=this['repository']['getRevision'](_0x8944b8['id'])['fromVersion']);}const _0x5e0f1f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x227c00,_0x5e0f1f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e85f3=>{if(_0x4e85f3){for(const _0x4b5f3a of _0x4e85f3)this['setRevisionData']({'id':_0x4b5f3a['id'],'createdAt':_0x4b5f3a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2201a1=null,from:_0x4f81e8=null,to:_0x2428a5=null}){_0x4f81e8=null!==_0x4f81e8?_0x4f81e8:_0x2201a1['fromVersion'],_0x2428a5=null!==_0x2428a5?_0x2428a5:_0x2201a1['toVersion'];const _0x512172=this['_revisionDataBuilder']['getData'](_0x4f81e8,_0x2428a5),_0x5ab42e={'diffData':_0x512172['diffData'],'authorsIds':_0x512172['authorsIds'],'fromVersion':_0x4f81e8,'toVersion':_0x2428a5};if(!_0x2201a1||_0x2428a5!==_0x2201a1['toVersion']){const _0x5e1365=_0x2428a5-0x1,_0x50c8da=this['_source']['history']['getOperation'](_0x5e1365);_0x5ab42e['createdAt']=_0x50c8da&&_0x50c8da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f81e8===this['_loadedStateData']['fromVersion']){for(const _0x32ea3f of this['_loadedStateData']['authors'])_0x5ab42e['authorsIds']['includes'](_0x32ea3f['id'])||_0x5ab42e['authorsIds']['push'](_0x32ea3f['id']);}return _0x5ab42e;}['_bufferUpdate'](_0x26eb99,_0x4e8328,_0x2e621){if(this['_bufferedUpdates']['has'](_0x26eb99)){const _0x99f89e=this['_bufferedUpdates']['get'](_0x26eb99);_0x4e8328=_0x2e621?{..._0x99f89e,..._0x4e8328}:{..._0x4e8328,..._0x99f89e};}this['_bufferedUpdates']['set'](_0x26eb99,_0x4e8328);}['setRevisionData'](_0x4fa3d8){const _0x5db21a=this['repository']['getRevision'](_0x4fa3d8['id']);if(_0x4fa3d8['createdAt']&&(_0x4fa3d8['createdAt']=new Date(_0x4fa3d8['createdAt'])),_0x4fa3d8['authorsIds']){const _0x5c78ab=this['editor']['plugins']['get']('Users');_0x4fa3d8['authors']=_0x4fa3d8['authorsIds']['map'](_0x57034b=>_0x5c78ab['getUser'](_0x57034b));}_0x5db21a['_update'](_0x4fa3d8,!0x0);}['_createInitialRevision'](_0x137125){const _0x39b34c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x39b34c)this['_initialRevisionId']=_0x39b34c['id'];else{const _0x52dac1=!this['editor']['model']['document']['roots']['find'](_0x2a91ac=>this['editor']['model']['hasContent'](_0x2a91ac)),_0x33bd3b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f651b=R(this['editor']['locale'],_0x52dac1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x137125,'to':_0x137125,'id':this['_initialRevisionId'],'name':_0x3f651b,'creatorId':_0x33bd3b});}}['_createCurrentRevision'](_0x576502){const _0x3e4214=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e4214),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x576502,'to':_0x576502,'id':_0x3e4214,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x50d55a,_0x4354e1){let _0x1fea12=this['editor']['config']['get']('initialData'),_0x2f05c6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1fea12){_0x1fea12={};for(const _0x55ff0f of this['editor']['model']['document']['getRootNames']())_0x1fea12[_0x55ff0f]='';}if('string'==typeof _0x1fea12&&(_0x1fea12={'main':_0x1fea12}),void 0x0===_0x2f05c6){_0x2f05c6={};for(const _0x3d86e3 of this['editor']['model']['document']['getRootNames']())_0x2f05c6[_0x3d86e3]={};}let _0x2dec57=!0x1;const _0x3c06aa=Object['keys'](_0x1fea12),_0x49455d=Object['keys'](_0x50d55a);for(const _0x8f726c of _0x3c06aa){if(_0x1fea12[_0x8f726c]!==_0x50d55a[_0x8f726c]&&''!==_0x1fea12[_0x8f726c]['trim']()){_0x2dec57=!0x0;break;}if(!_0x30d55f(_0x2f05c6[_0x8f726c],_0x4354e1[_0x8f726c])&&Object['keys'](_0x2f05c6[_0x8f726c])['length']>0x0){_0x2dec57=!0x0;break;}}_0x2dec57||(_0x2dec57=_0x49455d['some'](_0x4ad14e=>!this['editor']['model']['document']['getRoot'](_0x4ad14e))),_0x2dec57&&_0x5156f0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1fea12,'editorRootsAttributes':_0x2f05c6,'revisionData':_0x50d55a,'revisionRootsAttributes':_0x4354e1}),this['editor']['config']['set']('initialData',_0x50d55a),this['editor']['config']['set']('rootsAttributes',_0x4354e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c4853=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c4853['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x38ba87){const _0x3405b2=this['repository']['getRevisions']();_0x3405b2['reverse']();let _0x5f58ce=0x0;for(;_0x5f58ce<_0x3405b2['length'];){const _0x2a23bb=_0x3405b2[_0x5f58ce];if(_0x2a23bb===this['currentRevision']){_0x5f58ce++;continue;}if(_0x2a23bb['id']===this['_initialRevisionId'])break;const _0x2e3059=_0x38ba87['toVersion']-_0x2a23bb['toVersion']||_0x38ba87['fromVersion']-_0x2a23bb['fromVersion'];if(_0x2e3059>0x0)break;if(_0x2e3059<0x0)_0x5f58ce++;else{if(!_0x38ba87['creator']&&_0x2a23bb['creator'])break;if(_0x2a23bb['creator']||!_0x38ba87['creator']){if(_0x38ba87['createdAt']>_0x2a23bb['createdAt'])break;_0x5f58ce++;}else _0x5f58ce++;}}return _0x5f58ce;}['_getFromVersion'](_0x236a1c){const _0x814510=this['repository']['getRevisions']();_0x814510['reverse'](),_0x814510['shift']();const _0x2992a1=_0x814510['find'](_0x23433a=>_0x23433a['toVersion']<=_0x236a1c)['toVersion'];return _0x2992a1<this['_startingVersion']?this['_startingVersion']:_0x2992a1;}['_makeRevision']({name:_0x8f58f5,from:_0x1908fc,to:_0xf411dc,creatorId:_0x2a76d8,id:_0x3f33ca}){const _0x569759=this['buildRevisionData']({'from':_0x1908fc,'to':_0xf411dc});_0x569759['name']=_0x8f58f5,_0x569759['creatorId']=_0x2a76d8,_0x569759['id']=_0x3f33ca;const _0x4936d3=this['addRevisionData'](_0x569759);return this['adapter']&&this['_bufferUpdate'](_0x569759['id'],_0x569759,!0x0),_0x4936d3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3feea1){this['editor']=_0x3feea1,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'](_0x3c637b){this['source']=_0x3c637b;const _0xe35d38=new Map(),_0x11f0bd=new Map(),_0x7546c4=this['editor']['model']['document']['roots']['map'](_0x3a75c8=>_0x3a75c8['rootName']);for(const _0x52b4ce of _0x7546c4){const _0x350163=this['editor']['model']['document']['getRoot'](_0x52b4ce),_0x4d5db5=x(_0x350163);_0xe35d38['set'](_0x52b4ce,_0x4d5db5),_0x11f0bd['set'](_0x52b4ce,Object['fromEntries'](_0x350163['getAttributes']()));}const _0x505949=Array['from'](this['editor']['model']['markers'])['map'](_0xb041cf=>[_0xb041cf['name'],_0xb041cf['getRange']()]),_0x348939=this['source']['version'];this['_saveMetaData'](_0x348939,_0xe35d38,_0x505949,_0x11f0bd),this['_startingRevisionId']=this['_revisionId'];const _0x4b5736=new Map(),_0x4519ed=new Map();for(const _0x25808e of _0x7546c4){const _0x4f2544=N(_0x25808e);_0x4b5736['set'](_0x25808e,_0x4f2544),_0x4519ed['set'](_0x25808e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b5736,[],_0x4519ed);}['getData'](_0x2c340d,_0x5a34e3){if(this['_lastFrom']===_0x2c340d&&this['_lastTo']<=_0x5a34e3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5a34e3,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c340d)){const _0x43c58a=this['_getPreviousFrom'](_0x2c340d);this['_calculateMetaData'](_0x43c58a,_0x2c340d,!0x1);}this['_calculateMetaData'](_0x2c340d,_0x5a34e3,!0x0);}return this['_lastFrom']=_0x2c340d,this['_lastTo']=_0x5a34e3,this['_getState']();}['loadState'](_0x171661){const _0x47957c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x171661['fromVersion'],this['_lastTo']=_0x171661['toVersion'];for(const _0x4a6ac4 in _0x171661['diffData']){const _0x2bb7e9=_0x171661['diffData'][_0x4a6ac4]['attachChange'],_0xd3ec7=_0x29ca9e(_0x171661['diffData'][_0x4a6ac4]['attributesBefore'])||{},_0x88cdae=_0x47957c['_makeModelFromViewString'](_0x171661['diffData'][_0x4a6ac4]['deletions']);_0x88cdae['rootName']=_0x4a6ac4,_0x88cdae['_isAttached']=!_0x2bb7e9||!_0x2bb7e9['isAttached'],_0x88cdae['isAttached']=()=>_0x88cdae['_isAttached'],this['_baseRoots']['set'](_0x4a6ac4,_0x88cdae),this['_baseRootsAttributes']['set'](_0x4a6ac4,_0xd3ec7),_0x2bb7e9&&this['_touchedRoots']['set'](_0x4a6ac4,_0x2bb7e9);const _0x7077b9=this['_makeIdsRoot'](_0x88cdae);this['_baseIdsRoots']['set'](_0x4a6ac4,_0x7077b9);for(const [_0xff105c,_0xa70b00]of _0x88cdae['markers']){if(!_0xff105c['startsWith']('revision:'))continue;const _0x455e56=_0xff105c['split'](':')[0x2];for(const _0x5de64a of _0xa70b00['getWalker']({'singleCharacters':!0x0})){const _0x384429=this['_getVidAttributeName'](_0x5de64a),_0x11562b='elementEnd'==_0x5de64a['type']?_0x5de64a['previousPosition']['path']['slice'](0x0,-0x1):_0x5de64a['previousPosition']['path'],_0x5e227c=_0x7077b9['getNodeByPath'](_0x11562b)['getAttribute'](_0x384429);this['_touched']['set'](_0x5e227c,{'userId':_0x455e56});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21566d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e1d6a=>!this['_touched']['has'](_0x3e1d6a));let _0x54a47f=0x0;const _0x36daf5=new Map();for(const _0x5d2e9d in _0x171661['diffData']){const _0x35798f=_0x171661['diffData'][_0x5d2e9d]['attachChange'],_0x2381f2=_0x29ca9e(_0x171661['diffData'][_0x5d2e9d]['attributesAfter'])||{},_0x16cc4b=_0x47957c['_makeModelFromViewString'](_0x171661['diffData'][_0x5d2e9d]['insertions']);_0x16cc4b['rootName']=_0x5d2e9d,_0x16cc4b['_isAttached']=!_0x35798f||_0x35798f['isAttached'],_0x16cc4b['isAttached']=()=>_0x16cc4b['_isAttached'],this['_diffRoots']['set'](_0x5d2e9d,_0x16cc4b),this['_diffRootsAttributes']['set'](_0x5d2e9d,_0x2381f2);const _0x321ac3=this['_makeIdsRoot'](_0x16cc4b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5d2e9d,_0x321ac3),_0x36daf5['set'](_0x5d2e9d,_0x16cc4b['isAttached']()?_0x2381f2:{});for(const [_0x3c575d,_0x2d8f49]of _0x16cc4b['markers']){if(!_0x3c575d['startsWith']('revision:'))continue;const _0x5b785b=_0x3c575d['split'](':')[0x2];for(const _0x4117e3 of _0x2d8f49['getWalker']({'singleCharacters':!0x0})){const _0x253ec3=this['_getVidAttributeName'](_0x4117e3),_0x26d569=this['_revisionId']++,_0x54c500='elementEnd'==_0x4117e3['type']?_0x4117e3['previousPosition']['path']['slice'](0x0,-0x1):_0x4117e3['previousPosition']['path'];_0x321ac3['getNodeByPath'](_0x54c500)['_setAttribute'](_0x253ec3,_0x26d569),this['_touched']['set'](_0x26d569,{'userId':_0x5b785b});}}for(const _0x4c64eb of this['editor']['model']['createRangeIn'](_0x16cc4b)['getWalker']({'singleCharacters':!0x0})){const _0xa4d571=this['_getVidAttributeName'](_0x4c64eb),_0x30ac78='elementEnd'==_0x4c64eb['type']?_0x4c64eb['previousPosition']['path']['slice'](0x0,-0x1):_0x4c64eb['previousPosition']['path'],_0x42f391=_0x321ac3['getNodeByPath'](_0x30ac78);_0x42f391['getAttribute'](_0xa4d571)>0x0||_0x42f391['_setAttribute'](_0xa4d571,_0x21566d[_0x54a47f++]);}for(const [_0x31798a,_0x1863f3]of _0x16cc4b['markers'])_0x31798a['startsWith']('revision:')||this['_markers']['set'](_0x31798a,_0x1863f3);}const _0x592a7f=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x592a7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x592a7f,0x1));const _0x301c37=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x301c37),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x301c37,0x1));const _0x3a4b4f=Array['from'](this['_diffRoots'])['map'](([_0x10dd90,_0x379599])=>[_0x10dd90,x(_0x379599)]);this['_saveMetaData'](this['_lastTo'],_0x3a4b4f,this['_markers'],_0x36daf5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5ad23a,_0x528f97,_0xf0677a,_0x5422a4){const _0x32298f=new Map(_0x528f97),_0x5f0954=new Map(_0x29ca9e(_0x5422a4)),_0x4746d8=new Map();for(const [_0x484934,_0x224524]of _0xf0677a)_0x4746d8['set'](_0x484934,{'start':_0x224524['start']['clone'](),'end':_0x224524['end']['clone'](),'rootName':_0x224524['root']['rootName']});this['_savedMetaData']['set'](_0x5ad23a,{'roots':_0x32298f,'markers':_0x4746d8,'rootsAttributes':_0x5f0954});}['_removeMetaData'](_0xf19c59){this['_savedMetaData']['delete'](_0xf19c59);}['_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'](_0x4be65d,_0x4260d5=null){let _0x22a6bd=null;_0x4be65d['is']('documentFragment')||(_0x22a6bd=new _0x25cd9f(_0x4be65d['name'],{'vid_start':null===_0x4260d5?this['_revisionId']++:_0x4260d5++}));const _0x38a551=[];for(const _0x2bf092 of _0x4be65d['getChildren']())if(_0x2bf092['is']('element')){_0x38a551['push'](this['_makeIdsRoot'](_0x2bf092,_0x4260d5));const _0x337628=_0x38a551[_0x38a551['length']-0x1];null!==_0x4260d5&&(_0x4260d5=_0x337628['is']('element','$text')?_0x337628['getAttribute']('vid')+0x1:_0x337628['getAttribute']('vid_end')+0x1);}else{for(let _0xcd8d05=0x0;_0xcd8d05<_0x2bf092['offsetSize'];_0xcd8d05++)_0x38a551['push'](new _0x25cd9f('$text',{'vid':null===_0x4260d5?this['_revisionId']++:_0x4260d5++}));}if(_0x4be65d['is']('documentFragment')){const _0x1f7391=N(_0x4be65d['rootName']);return _0x1f7391['_insertChild'](0x0,_0x38a551),_0x1f7391;}return _0x22a6bd['_setAttribute']('vid_end',null===_0x4260d5?this['_revisionId']++:_0x4260d5++),_0x22a6bd['_insertChild'](0x0,_0x38a551),_0x22a6bd;}['_calculateMetaData'](_0x500bde,_0x196ab5,_0x5ece96){this['_reset']();const {roots:_0x58084c,markers:_0x104466,rootsAttributes:_0x3e0aaa}=this['_savedMetaData']['get'](_0x500bde);this['_baseRoots']=new Map(_0x58084c),this['_baseRootsAttributes']=new Map(_0x29ca9e(_0x3e0aaa));for(const [_0x484786,_0x4cb95e]of this['_baseRoots'])if('$graveyard'!==_0x484786&&(this['_diffRoots']['set'](_0x484786,x(_0x4cb95e)),this['_diffRootsAttributes']=new Map(_0x29ca9e(_0x3e0aaa)),_0x5ece96)){const _0x203576=this['_revisionId'];this['_idsRoots']['set'](_0x484786,this['_makeIdsRoot'](_0x4cb95e)),this['_baseIdsRoots']['set'](_0x484786,this['_makeIdsRoot'](_0x4cb95e,_0x203576));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5ece96&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2e0a30,_0x54c723]of _0x104466){const _0x4e0d70=this['_baseRoots']['get'](_0x54c723['rootName']),_0x554cd8=this['_diffRoots']['get'](_0x54c723['rootName']),_0xa2c4d=new _0x29e7cd(this['_fixPosition'](_0x54c723['start'],_0x4e0d70),this['_fixPosition'](_0x54c723['end'],_0x4e0d70)),_0x4f28a3=this['_fixRange'](_0xa2c4d,_0x554cd8);_0x4e0d70['markers']['set'](_0x2e0a30,_0xa2c4d),this['_markers']['set'](_0x2e0a30,_0x4f28a3);}this['_applyOperations'](_0x500bde,_0x196ab5,_0x5ece96);}['_applyOperations'](_0x484522,_0x2294ae,_0xee904c){for(const _0x57682d of this['source']['getOperations'](_0x484522,_0x2294ae))this['_handleOperation'](_0x57682d,_0xee904c);for(const _0x52d6f8 of this['_diffRoots']['values']())_0x52d6f8['markers']['clear']();for(const [_0x4bd01d,_0x24a713]of this['_markers']){this['_diffRoots']['get'](_0x24a713['root']['rootName'])['markers']['set'](_0x4bd01d,_0x24a713['clone']());}const _0x5c2cac=new Map(),_0x2ca88d=new Map();for(const [_0x41ff5e,_0xc5c8f4]of this['_diffRoots'])_0x5c2cac['set'](_0x41ff5e,x(_0xc5c8f4)),_0x2ca88d['set'](_0x41ff5e,this['_diffRootsAttributes']['get'](_0x41ff5e));this['_saveMetaData'](_0x2294ae,_0x5c2cac,this['_markers'],_0x2ca88d);}['_getPreviousFrom'](_0x314c96){const _0x444092=Array['from'](this['_savedMetaData']['keys']());_0x444092['sort']((_0x5c0783,_0x459eb3)=>_0x5c0783-_0x459eb3),_0x444092['reverse']();for(const _0x9e9c47 of _0x444092)if(_0x9e9c47<_0x314c96)return _0x9e9c47;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3cf914,_0x41f71b){const _0x195a42=Array['from'](_0x41f71b['markers'])['map'](([_0x3c459d,_0x11f95e])=>[_0x3c459d,this['_fixRange'](_0x11f95e,_0x3cf914)]);_0x3cf914['markers']=new Map(_0x195a42);}['_transformMarkers'](_0x2057cd){for(const _0x1c0f85 of this['_markers']['values']()){const _0x538e19=_0x1c0f85['getTransformedByOperation'](_0x2057cd),_0x3b07b2=_0x29e7cd['_createFromRanges'](_0x538e19);_0x1c0f85['start']=_0x3b07b2['start'],_0x1c0f85['end']=_0x3b07b2['end'];}}['_handleOperation'](_0x512e81,_0x382455){if('addRoot'!=_0x512e81['type']&&'detachRoot'!=_0x512e81['type']){if('insert'==_0x512e81['type']){const _0xcc4bf9=_0x512e81['position']['root']['rootName'];this['_diffRoots']['has'](_0xcc4bf9)||(this['_diffRoots']['set'](_0xcc4bf9,N(_0xcc4bf9,!0x0)),this['_diffRootsAttributes']['set'](_0xcc4bf9,{}),_0x382455&&this['_idsRoots']['set'](_0xcc4bf9,N(_0xcc4bf9,!0x0)));}else{if('addRootAttribute'==_0x512e81['type']||'removeRootAttribute'==_0x512e81['type']||'changeRootAttribute'==_0x512e81['type'])return void this['_handleRootAttributeOperation'](_0x512e81);'marker'==_0x512e81['type']&&this['_handleMarkerOperation'](_0x512e81);}if('marker'!==_0x512e81['type']){const _0x47274c=this['_cloneOperation'](_0x512e81,this['_diffRoots']);_0x47274c['_execute'](),this['_transformMarkers'](_0x47274c);}if(_0x382455)switch(_0x512e81['type']){case'insert':this['_handleInsertOperation'](_0x512e81);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x512e81);break;case'merge':this['_handleMergeOperation'](_0x512e81);break;case'split':this['_handleSplitOperation'](_0x512e81);}}else this['_handleRootOperation'](_0x512e81,_0x382455);}['_cloneOperation'](_0x5e65d0,_0x46c53f){const _0x55102a=_0x5e65d0['clone']();return _0x55102a['_authorId']=_0x5e65d0['_authorId'],this['_fixOperation'](_0x55102a,_0x46c53f),_0x55102a;}['_getBaseVids'](_0x19781e){return _0x19781e['map'](_0x2cae10=>{const _0x3fcb4b=this['_getVidAttributeName'](_0x2cae10);return Number(_0x2cae10['item']['getAttribute'](_0x3fcb4b));});}['_generateTape'](_0x353cc0,_0x322fcc){if(_0x353cc0['is']('element','$text'))_0x322fcc['push']({'item':_0x353cc0,'type':'text'});else{_0x353cc0['is']('element')&&_0x322fcc['push']({'item':_0x353cc0,'type':'elementStart'});for(const _0x2900d5 of _0x353cc0['getChildren']())this['_generateTape'](_0x2900d5,_0x322fcc);_0x353cc0['is']('element')&&_0x322fcc['push']({'item':_0x353cc0,'type':'elementEnd'});}return _0x322fcc;}['_getState'](){const _0x555eb0=new Map(this['_touched']),_0x7f72bc=new Map(_0x555eb0),_0x4db9d1=new Map(),_0x313756={'insertions':{},'deletions':{}},_0x2f1051={'insertions':{},'deletions':{}},_0x14a17b=new Map(),_0x29556a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29556a['delete']('$graveyard');for(const _0x95a52b of _0x29556a){const _0x353ac9=this['_diffRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1),_0x1f3b77=this['_baseRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1);_0x353ac9['isAttached']()||_0x1f3b77['isAttached']()?(_0x313756['insertions'][_0x95a52b]=x(_0x353ac9),_0x313756['deletions'][_0x95a52b]=x(_0x1f3b77),this['_copyMarkers'](_0x313756['deletions'][_0x95a52b],_0x1f3b77),this['_copyMarkers'](_0x313756['insertions'][_0x95a52b],_0x353ac9),_0x2f1051['insertions'][_0x95a52b]=this['_generateTape'](this['_idsRoots']['get'](_0x95a52b),[]),_0x2f1051['deletions'][_0x95a52b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1),[])):_0x29556a['delete'](_0x95a52b);}for(const _0x39de89 of _0x29556a){const _0x1940af=_0x2f1051['insertions'][_0x39de89];for(const _0x3ed63c of _0x1940af){const _0x403f0c=this['_getVidAttributeName'](_0x3ed63c),_0x56788e=_0x3ed63c['item']['getAttribute'](_0x403f0c);_0x7f72bc['delete'](_0x56788e),_0x56788e>=this['_startingRevisionId']&&_0x4db9d1['set'](_0x56788e,_0x555eb0['get'](_0x56788e));}}for(const _0x1fa667 of _0x29556a){const _0x4071e9=_0x2f1051['insertions'][_0x1fa667],_0x25e992=this['_getBaseVids'](_0x2f1051['deletions'][_0x1fa667]);let _0x3843a5=0x0;for(const _0x2a8097 of _0x4071e9){const _0x2e8ceb=this['_getVidAttributeName'](_0x2a8097),_0x441a43=_0x2a8097['item']['getAttribute'](_0x2e8ceb);if(!_0x4db9d1['has'](_0x441a43)&&!_0x14a17b['has'](_0x441a43)){if(_0x7f72bc['has'](_0x441a43))_0x3843a5++;else{if(_0x441a43!=_0x25e992[_0x3843a5]){const _0x3f18fc=_0x555eb0['get'](_0x441a43)||_0x555eb0['get'](_0x25e992[_0x3843a5]);for(;_0x441a43!=_0x25e992[_0x3843a5];)_0x7f72bc['has'](_0x25e992[_0x3843a5])||(_0x14a17b['set'](_0x25e992[_0x3843a5],_0x3f18fc),_0x555eb0['set'](_0x25e992[_0x3843a5],_0x3f18fc)),_0x3843a5++;}_0x3843a5++;}}}}for(const _0x5c5ee3 of _0x29556a){const _0x3ebf49=_0x2f1051['insertions'][_0x5c5ee3];for(const _0x3cb273 of _0x3ebf49){const _0x57d073=this['_getVidAttributeName'](_0x3cb273),_0x37dd37=_0x3cb273['item']['getAttribute'](_0x57d073);if(_0x14a17b['has'](_0x37dd37)){const _0x3bfdab=_0x14a17b['get'](_0x37dd37);_0x7f72bc['has'](_0x37dd37)||_0x7f72bc['set'](_0x37dd37,{..._0x3bfdab}),_0x4db9d1['set'](_0x37dd37,{..._0x3bfdab});}}}for(const _0x3d4aa5 of _0x7f72bc['keys']())_0x3d4aa5>=this['_startingRevisionId']&&_0x7f72bc['delete'](_0x3d4aa5);const _0x353ca9=new Map();for(const _0x147882 of _0x29556a){let _0x2c4677=_0x2f1051['insertions'][_0x147882];for(const _0x371ff6 of _0x2c4677)if(_0x371ff6['item']['is']('element','tableCell')){const _0x41f8bc=this['_getVidAttributeName'](_0x371ff6),_0x193369=_0x371ff6['item']['getAttribute'](_0x41f8bc);if(_0x4db9d1['has'](_0x193369)){const _0x35f6c8=_0x371ff6['item']['parent']['parent']['getAttribute']('vid_start'),_0x581b5a=_0x353ca9['get'](_0x35f6c8)||new Set();_0x581b5a['add'](_0x4db9d1['get'](_0x193369)['userId']),_0x353ca9['set'](_0x35f6c8,_0x581b5a);}}_0x2c4677=_0x2f1051['deletions'][_0x147882];for(const _0x442d29 of _0x2c4677)if(_0x442d29['item']['is']('element','tableCell')){const _0x4d84c1=this['_getVidAttributeName'](_0x442d29),_0x1e5aa1=_0x442d29['item']['getAttribute'](_0x4d84c1);if(_0x7f72bc['has'](_0x1e5aa1)){const _0x344ce3=_0x442d29['item']['parent']['parent']['getAttribute']('vid_start'),_0x21a52=_0x353ca9['get'](_0x344ce3)||new Set();_0x21a52['add'](_0x7f72bc['get'](_0x1e5aa1)['userId']),_0x353ca9['set'](_0x344ce3,_0x21a52);}}for(const _0xc89503 of _0x353ca9['keys']())(_0x4db9d1['has'](_0xc89503)||_0x7f72bc['has'](_0xc89503))&&_0x353ca9['delete'](_0xc89503);}for(const _0x33fef9 of _0x29556a){const _0xbbb1d1=_0x2f1051['insertions'][_0x33fef9];let _0x3ec3f1=null,_0x3908be=null;for(const _0xb2d962 of _0xbbb1d1){const _0x5a26ae=this['_getVidAttributeName'](_0xb2d962),_0xff6b6a=_0xb2d962['item']['getAttribute'](_0x5a26ae),_0x334ba0=_0x353ca9['get'](_0xff6b6a);_0x334ba0&&'elementStart'==_0xb2d962['type']&&(_0x3ec3f1=Array['from'](_0x334ba0)[0x0],_0x3908be=_0xb2d962['item']['getAttribute']('vid_end')),_0x3ec3f1&&(_0x7f72bc['set'](_0xff6b6a,{'userId':_0x3ec3f1}),_0x4db9d1['set'](_0xff6b6a,{'userId':_0x3ec3f1})),_0xff6b6a==_0x3908be&&(_0x3ec3f1=null,_0x3908be=null);}}const _0x1109c6={},_0x4c336c=new Set();for(const _0x25a4bb of _0x29556a){const _0x1d7d44=_0x313756['deletions'][_0x25a4bb],_0x2a0630=_0x313756['insertions'][_0x25a4bb];for(const {userId:_0x5844da}of this['_touchedMarkers']['values']())null!==_0x5844da&&_0x4c336c['add'](_0x5844da);for(const {userId:_0x12142b}of this['_touchedRoots']['values']())null!==_0x12142b&&_0x4c336c['add'](_0x12142b);this['_markChanges'](_0x2a0630,_0x2f1051['insertions'][_0x25a4bb],_0x4db9d1,'insertion',_0x4c336c),this['_markChanges'](_0x1d7d44,_0x2f1051['deletions'][_0x25a4bb],_0x7f72bc,'deletion',_0x4c336c),_0x1109c6[_0x25a4bb]={'insertions':this['_prepareViewToSave'](_0x2a0630),'deletions':this['_prepareViewToSave'](_0x1d7d44),'attachChange':this['_touchedRoots']['get'](_0x25a4bb)||null,'attributesBefore':_0x29ca9e(this['_baseRootsAttributes']['get'](_0x25a4bb))||{},'attributesAfter':_0x29ca9e(this['_diffRootsAttributes']['get'](_0x25a4bb))};}return{'diffData':_0x1109c6,'authorsIds':Array['from'](_0x4c336c)};}['_processRootBeforeSave'](_0x1648bb){for(const [,_0x940d01]of _0x1648bb['markers']){const _0x4fc05d=_0x940d01['start']['getAncestors']()['filter'](_0x4f286f=>'tableCell'==_0x4f286f['name']);for(const _0x13c2e7 of _0x4fc05d)0x1==_0x13c2e7['childCount']&&_0x13c2e7['getChild'](0x0)['is']('element','paragraph')&&_0x13c2e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x10aa5b){this['_processRootBeforeSave'](_0x10aa5b);const _0x3c027e=this['editor']['data']['toView'](_0x10aa5b,{}),_0x2ca590=Array['from'](_0x3c027e['getChildren']())['map'](_0x1f6cac=>this['_getViewJson'](_0x1f6cac));return JSON['stringify'](_0x2ca590);}['_getViewJson'](_0x2e49b2){if(_0x2e49b2['is']('$text'))return _0x2e49b2['data'];{const _0x1d070e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x531e72=_0x2e49b2,_0x1167b8=this['editor']['data']['htmlProcessor']['domConverter'],_0x142104={'type':_0x1d070e['_getTypeCharForViewElement'](_0x531e72),'name':_0x531e72['name'],'attributes':Array['from'](_0x531e72['getAttributes']()),'children':Array['from'](_0x531e72['getChildren']())['map'](_0x5242e9=>this['_getViewJson'](_0x5242e9))};if(_0x2e49b2['is']('uiElement')&&'$comment'!=_0x2e49b2['name']){const _0xc60b78=_0x2e49b2['render'](_0x1167b8['domDocument'],_0x1167b8);_0x142104['children']['push'](_0xc60b78['outerHTML']);}else{if(_0x2e49b2['is']('rawElement')){const _0x4c5291=_0x1167b8['domDocument']['createElement'](_0x531e72['name']);_0x2e49b2['render'](_0x4c5291,_0x1167b8),_0x142104['children']['push'](_0x4c5291['innerHTML']);}}const _0x35bf1d=Array['from'](_0x531e72['getCustomProperties']());_0x35bf1d['length']>0x0&&(_0x142104['customProperties']=_0x35bf1d);const _0x436f90=_0x531e72['getFillerOffset']();return null!==_0x436f90&&(_0x142104['fillerOffset']=_0x436f90),_0x142104;}}['_markChanges'](_0x23f570,_0x5068d5,_0x37ac22,_0x1c339,_0x14ec99){let _0x5acad6=null,_0x4341e3=null,_0x4f7963=0x0;const _0x13e36d=this['editor']['model'];for(let _0x16b80d=0x0;_0x16b80d<_0x5068d5['length'];_0x16b80d++){const _0x27a184=this['_getVidAttributeName'](_0x5068d5[_0x16b80d]),_0x5ab989=_0x5068d5[_0x16b80d]['item']['getAttribute'](_0x27a184),_0x361202=_0x37ac22['get'](_0x5ab989),_0x390e10=_0x16b80d==_0x5068d5['length']-0x1;(!_0x5acad6&&_0x361202&&(_0x5acad6=_0x361202,_0x4341e3=_0x5068d5[_0x16b80d]),_0x5acad6&&(!_0x361202||_0x361202['userId']!=_0x5acad6['userId']))&&(_0x217d17(_0x361202,P(_0x4341e3,_0x23f570,_0x13e36d),P(_0x5068d5[_0x16b80d],_0x23f570,_0x13e36d)),_0x5acad6=_0x361202||null,_0x4341e3=_0x361202?_0x5068d5[_0x16b80d]:null),_0x5acad6&&_0x390e10&&_0x217d17(_0x361202,P(_0x4341e3,_0x23f570,_0x13e36d),V(_0x5068d5[_0x16b80d],_0x23f570,_0x13e36d));}function _0x217d17(_0x3ea28f,_0x3e436a,_0x56c984){const _0x52d480=_0x5acad6['userId'],_0x28690c='revision:'+_0x1c339+':'+_0x52d480+':'+_0x4f7963++,_0x1f4dec=_0x13e36d['createRange'](_0x3e436a,_0x56c984);_0x23f570['markers']['set'](_0x28690c,_0x1f4dec),null!==_0x52d480&&_0x14ec99['add'](_0x52d480);}}['_getVidAttributeName'](_0x37cdc8){switch(_0x37cdc8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x479f40,_0x437a95){_0x479f40['baseVersion']=null;for(const _0x31e39d in _0x479f40){const _0x4c3ebf=_0x479f40[_0x31e39d];if(_0x4c3ebf instanceof _0x18cc82){const _0x59c558=_0x437a95['get'](_0x4c3ebf['root']['rootName']);_0x479f40[_0x31e39d]=this['_fixPosition'](_0x4c3ebf,_0x59c558);}if(_0x4c3ebf instanceof _0x29e7cd){const _0x17b8dc=_0x437a95['get'](_0x4c3ebf['root']['rootName']);_0x479f40[_0x31e39d]=this['_fixRange'](_0x4c3ebf,_0x17b8dc);}'root'===_0x31e39d&&(_0x479f40['root']=_0x437a95['get'](_0x479f40['root']['rootName']));}}['_fixRange'](_0x304a82,_0x22806d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x304a82['start'],_0x22806d),this['_fixPosition'](_0x304a82['end'],_0x22806d));}['_fixPosition'](_0x1f8c54,_0x18f2e5){return this['editor']['model']['createPositionFromPath'](_0x18f2e5,_0x1f8c54['path'],_0x1f8c54['stickiness']);}['_handleInsertOperation'](_0x1c06c6){const _0x51f316=this['_idsRoots']['get'](_0x1c06c6['position']['root']['rootName']),_0x1745fb=this['_fixPosition'](_0x1c06c6['position'],_0x51f316),_0x1f8ad8=null===_0x1c06c6['_authorId']?null:_0x1c06c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32b3dc=_0x1745fb['parent'],_0x56c40c=this['_revisionId'],_0x33afeb=[];for(const _0x11d40e of _0x1c06c6['nodes'])if(_0x11d40e['is']('element'))_0x33afeb['push'](this['_makeIdsRoot'](_0x11d40e));else{for(let _0x1f201c=0x0;_0x1f201c<_0x11d40e['offsetSize'];_0x1f201c++)_0x33afeb['push'](new _0x25cd9f('$text',{'vid':this['_revisionId']++}));}const _0x587cec=this['_revisionId'];for(let _0x5963be=_0x56c40c;_0x5963be<_0x587cec;_0x5963be++)this['_touched']['set'](_0x5963be,{'userId':_0x1f8ad8});_0x32b3dc['_insertChild'](_0x1745fb['offset'],_0x33afeb);}['_handleMoveOperation'](_0x414425){(_0x414425=this['_cloneOperation'](_0x414425,this['_idsRoots']))['_execute']();const _0x96909d=null===_0x414425['_authorId']?null:_0x414425['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe94f5f=_0x414425['getMovedRangeStart'](),_0x237122=_0xe94f5f['parent'],_0x3fa7dd=_0xe94f5f['offset'];!function _0x3f8fbc(_0x473441,_0x2fd8de,_0x4c2934,_0x5e7bed){for(let _0x2d88fe=_0x4c2934;_0x2d88fe<_0x5e7bed;_0x2d88fe++){const _0x2466e8=_0x2fd8de['getChild'](_0x2d88fe);_0x2466e8['is']('element','$text')?_0x473441['set'](_0x2466e8['getAttribute']('vid'),{'userId':_0x96909d}):(_0x473441['set'](_0x2466e8['getAttribute']('vid_start'),{'userId':_0x96909d}),_0x3f8fbc(_0x473441,_0x2466e8,0x0,_0x2466e8['childCount']),_0x473441['set'](_0x2466e8['getAttribute']('vid_end'),{'userId':_0x96909d}));}}(this['_touched'],_0x237122,_0x3fa7dd,_0x3fa7dd+_0x414425['howMany']);}['_handleMergeOperation'](_0x3c3d99){const _0x26e239=null===(_0x3c3d99=this['_cloneOperation'](_0x3c3d99,this['_idsRoots']))['_authorId']?null:_0x3c3d99['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b0fa2=_0x3c3d99['targetPosition']['parent'],_0xc467de=_0x3c3d99['sourcePosition']['parent'],_0x455312=_0x2b0fa2['getAttribute']('vid_end'),_0x394352=_0xc467de['getAttribute']('vid_start');_0x2b0fa2['_setAttribute']('vid_end',_0xc467de['getAttribute']('vid_end')),_0xc467de['_setAttribute']('vid_end',_0x455312),this['_touched']['set'](_0x394352,{'userId':_0x26e239}),this['_touched']['set'](_0x455312,{'userId':_0x26e239}),_0x3c3d99['_execute']();}['_handleSplitOperation'](_0xf0928a){const _0x1f6664=null===(_0xf0928a=this['_cloneOperation'](_0xf0928a,this['_idsRoots']))['_authorId']?null:_0xf0928a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a8a17=_0xf0928a['graveyardPosition'],_0x46649e=_0xf0928a['splitPosition']['parent'];_0xf0928a['_execute']();const _0x1dfd8b=_0x46649e['getAttribute']('vid_end'),_0x4781e4=_0xf0928a['insertionPosition']['nodeAfter'];if(_0x2a8a17){const _0x568ddd=_0x4781e4['getAttribute']('vid_end'),_0x199073=_0x46649e['getAttribute']('vid_end');_0x46649e['_setAttribute']('vid_end',_0x568ddd),_0x4781e4['_setAttribute']('vid_end',_0x199073),this['_touched']['set'](_0x46649e['getAttribute']('vid_end'),{'userId':_0x1f6664}),this['_touched']['set'](_0x4781e4['getAttribute']('vid_start'),{'userId':_0x1f6664});}else{const _0x251012=this['_revisionId']++,_0x2b1e0a=this['_revisionId']++;_0x46649e['_setAttribute']('vid_end',_0x251012),_0x4781e4['_setAttribute']('vid_start',_0x2b1e0a),_0x4781e4['_setAttribute']('vid_end',_0x1dfd8b),this['_touched']['set'](_0x251012,{'userId':_0x1f6664}),this['_touched']['set'](_0x2b1e0a,{'userId':_0x1f6664});}}['_handleMarkerOperation'](_0x1accac){if(!_0x1accac['affectsData'])return;const _0x9fbd6c=(_0x1accac=this['_cloneOperation'](_0x1accac,this['_diffRoots']))['oldRange']?_0x1accac['oldRange']['root']:null,_0x12e749=_0x1accac['newRange']?_0x1accac['newRange']['root']:null;_0x9fbd6c&&this['_markers']['delete'](_0x1accac['name']),_0x12e749&&this['_markers']['set'](_0x1accac['name'],_0x1accac['newRange']['clone']());const _0xf31f2=null===_0x1accac['_authorId']?null:_0x1accac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55e1f8=_0x1accac['name'];if(!this['_touchedMarkers']['has'](_0x55e1f8))return void this['_touchedMarkers']['set'](_0x55e1f8,{'range':_0x1accac['oldRange'],'userId':_0xf31f2});const _0x2eab07=this['_touchedMarkers']['get'](_0x55e1f8),_0x5cb560=_0x2eab07['range'],_0x1aa36d=_0x1accac['newRange'];null==_0x5cb560&&null==_0x1aa36d||_0x5cb560&&_0x1aa36d&&_0x5cb560['isEqual'](_0x1aa36d)?this['_touchedMarkers']['delete'](_0x1accac['name']):_0x2eab07['userId']=_0xf31f2;}['_handleRootOperation'](_0x347acf,_0x3cf8c4){this['_diffRoots']['has'](_0x347acf['rootName'])?this['_diffRoots']['get'](_0x347acf['rootName'])['_isAttached']=_0x347acf['isAdd']:(this['_diffRoots']['set'](_0x347acf['rootName'],N(_0x347acf['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x347acf['rootName'],{}),_0x3cf8c4&&this['_idsRoots']['set'](_0x347acf['rootName'],N(_0x347acf['rootName'],!0x0)));const _0x2c7890=null===_0x347acf['_authorId']?null:_0x347acf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2475cb=this['_touchedRoots']['get'](_0x347acf['rootName']);_0x2475cb&&_0x2475cb['userId']===_0x2c7890?this['_touchedRoots']['delete'](_0x347acf['rootName']):this['_touchedRoots']['set'](_0x347acf['rootName'],{'userId':_0x2c7890,'isAttached':_0x347acf['isAdd']});}['_handleRootAttributeOperation'](_0x1904b0){const _0x65ef4a=this['_diffRootsAttributes']['get'](_0x1904b0['root']['rootName']);null===_0x1904b0['newValue']?delete _0x65ef4a[_0x1904b0['key']]:_0x65ef4a[_0x1904b0['key']]=_0x1904b0['newValue'];}}function x(_0x1eb177){const _0x36b3a3=N(_0x1eb177['rootName'],_0x1eb177['isAttached']());for(const _0x157788 of _0x1eb177['getChildren']()){const _0x139373=_0x157788['_clone'](!0x0);_0x36b3a3['_appendChild'](_0x139373);}return _0x36b3a3;}function N(_0x126050,_0x3c7632=!0x0){const _0x7c1575=new _0x30066f();return _0x7c1575['rootName']=_0x126050,_0x7c1575['_isAttached']=_0x3c7632,_0x7c1575['isAttached']=()=>_0x7c1575['_isAttached'],_0x7c1575;}function P(_0x556f2a,_0x181e74,_0x16f154){const _0xfdefe8='elementEnd'==_0x556f2a['type']?_0x16f154['createPositionAt'](_0x556f2a['item'],'end'):_0x16f154['createPositionBefore'](_0x556f2a['item']);return _0x16f154['createPositionFromPath'](_0x181e74,_0xfdefe8['path'],_0xfdefe8['stickiness']);}function V(_0x3c704b,_0x363fd3,_0x53760d){const _0x1ad0be='elementStart'==_0x3c704b['type']?_0x53760d['createPositionAt'](_0x3c704b['item'],0x0):_0x53760d['createPositionAfter'](_0x3c704b['item']);return _0x53760d['createPositionFromPath'](_0x363fd3,_0x1ad0be['path'],_0x1ad0be['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x208296(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x397d9d){super(),this['id']=_0x397d9d['id']||_0x83b1c9(),this['author']=_0x397d9d['author'],this['type']=_0x397d9d['type'],this['data']=_0x397d9d['data']||{},this['rootName']=_0x397d9d['rootName'],this['set']('createdAt',_0x397d9d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x532f1a,_0x597bc0){this['newRevisionId']=_0x532f1a,this['oldRevisionId']=_0x597bc0,this['changes']=new _0x390dd6();}['_setChanges'](_0x1eb78f){for(const _0x453d8c of _0x1eb78f)this['changes']['add'](_0x453d8c);}}class l extends _0x55ca5c{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x39e2b4,_0x5b3cf1,S,$];}constructor(_0xaba064){super(_0xaba064),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3bff18,_0x225ffb,_0x131918)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb84144=>{for(const _0x3a6fcf of this['editor']['editing']['view']['document']['roots'])_0x131918?_0xb84144['removeClass']('ck-editor__editable__overlay',_0x3a6fcf):_0xb84144['addClass']('ck-editor__editable__overlay',_0x3a6fcf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x214af3=>null!==_0x214af3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5ccce2,_0x502f41,_0x4ea949)=>_0x5ccce2&&_0x4ea949?_0x502f41['changes']['getIndex'](_0x4ea949):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x27bc26,_0x2590df)=>_0x27bc26?_0x2590df['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5b3cf1);}['init'](){const _0x2e6cfc=this['editor'],_0x660cb2=new rt(_0x2e6cfc,{'direction':'backward'}),_0x5d3d79=new rt(_0x2e6cfc,{'direction':'forward'});(_0x2e6cfc['commands']['add']('showPreviousChange',_0x660cb2),_0x2e6cfc['commands']['add']('showNextChange',_0x5d3d79),_0x2e6cfc['commands']['add']('restoreRevision',new nt(_0x2e6cfc)),this['on']('change:numberOfChanges',()=>{_0x660cb2['refresh'](),_0x5d3d79['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2e6cfc['enableReadOnlyMode']('revision-viewer'),_0x2e6cfc['plugins']['has']('WidgetToolbarRepository'))&&_0x2e6cfc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3d3b57){return await this['_utils']['loadRevisionData'](_0x3d3b57,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3d3b57);}async['getRevisionRootsAttributes'](_0x5085b9){return await this['_utils']['loadRevisionData'](_0x5085b9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5085b9);}async['compare'](_0x4b04a6,_0x40bfdc,_0x178fb1=!0x1){if(!this['isEnabled'])return;const _0x4eed61=this['diff'],_0x4b4d98=this['repository'],_0x1fafce='string'==typeof _0x4b04a6?_0x4b4d98['getRevision'](_0x4b04a6):_0x4b04a6,_0x500089='string'==typeof _0x40bfdc?_0x4b4d98['getRevision'](_0x40bfdc):_0x40bfdc,_0x3a96f6=_0x1fafce['id'],_0x201f6c=_0x500089?_0x500089['id']:null;if(!_0x178fb1&&this['diff']&&this['diff']['newRevisionId']===_0x3a96f6&&this['diff']['oldRevisionId']===_0x201f6c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3a96f6,_0x201f6c);const _0x36885c=this['_getRevisionsRange'](_0x1fafce,_0x500089,!0x0)['map'](_0x13663e=>this['_utils']['loadRevisionData'](_0x13663e,this['adapter']));return _0x36885c['push'](new Promise(_0x5020b6=>{setTimeout(_0x5020b6,0x14);})),Promise['all'](_0x36885c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29e51d=this['_getDiff'](_0x3a96f6,_0x201f6c);for(const _0x441fc4 of _0x29e51d['changes'])this['_changeIdToChange']['set'](_0x441fc4['id'],_0x441fc4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57d066=>{for(const _0x21cde0 of this['editor']['model']['document']['getRootNames']())_0x57d066['detachRoot'](_0x21cde0);for(const _0x3e005e of Object['keys'](_0x29e51d['model'])){const _0x3a0e89=_0x57d066['addRoot'](_0x3e005e);for(const _0x1fa43c of Object['keys'](_0x29e51d['attributes'][_0x3e005e]))_0x57d066['setAttribute'](_0x1fa43c,_0x29e51d['attributes'][_0x3e005e][_0x1fa43c],_0x3a0e89);_0x57d066['insert'](_0x29e51d['model'][_0x3e005e],_0x3a0e89,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29e51d['changes'])),this['isReady']=!0x0;})['catch'](_0x1d1932=>{console['error'](_0x1d1932),this['_cleanUp'](),_0x4eed61&&(this['diff']=_0x4eed61),this['isReady']=!0x0;});}['addRevisionData'](_0x58542f,_0xa23ab5){const _0x30c113=this['repository']['createRevision'](_0x58542f);return _0x30c113['on']('_update',(_0x3f7b84,_0x2b2b38,_0x30f9ec)=>_0xa23ab5(_0x2b2b38,_0x30f9ec,_0x30c113)),this['repository']['addRevision'](_0x30c113),_0x30c113;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3c0d3e=>{for(const _0x8facb3 of this['editor']['model']['document']['getRootNames']())_0x3c0d3e['detachRoot'](_0x8facb3);});}['_sortAndFilterDiffChanges'](_0x43c5d1){const _0x1120a3=[],_0x360dbb=new Map();for(const _0x482d67 of this['editor']['model']['document']['getRootNames']()){const _0x384c6f=this['editor']['editing']['view']['getDomRoot'](_0x482d67);if(!_0x384c6f)continue;const _0x364020=_0x384c6f['getClientRects']()['item'](0x0);_0x364020&&(_0x1120a3['push'](_0x482d67),_0x360dbb['set'](_0x482d67,_0x364020));}return _0x1120a3['sort']((_0x36ab2f,_0x22bda6)=>{const _0xb20a00=_0x360dbb['get'](_0x36ab2f),_0x2c9a1b=_0x360dbb['get'](_0x22bda6);return _0xb20a00['y']-_0x2c9a1b['y']||_0xb20a00['x']-_0x2c9a1b['x'];}),(_0x43c5d1=_0x43c5d1['filter'](_0x3972d5=>_0x1120a3['includes'](_0x3972d5['rootName'])))['sort']((_0x4452be,_0x409979)=>_0x1120a3['indexOf'](_0x4452be['rootName'])-_0x1120a3['indexOf'](_0x409979['rootName'])),_0x43c5d1;}['_makeTape'](_0xf9fc2c){const _0x224fca=Array['from'](_0xf9fc2c['markers'])['filter'](([_0x28c409,_0x533989])=>_0x28c409['startsWith']('revision:')&&!_0x533989['isCollapsed']),_0x3211f7=Array['from'](this['editor']['model']['createRangeIn'](_0xf9fc2c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x224fca['length'])for(const _0x1c00ae of _0x3211f7){const [_0x38d7f4,_0x5c535d]=_0x224fca[0x0],[,_0x1c84c2,_0x2a3a6e]=_0x38d7f4['split'](':');if(_0x5c535d['end']['isEqual'](_0x1c00ae['nextPosition'])&&_0x224fca['shift'](),(_0x1c00ae['previousPosition']['isEqual'](_0x5c535d['start'])||_0x1c00ae['previousPosition']['isAfter'](_0x5c535d['start']))&&('insertion'==_0x1c84c2?_0x1c00ae['isAdded']={'userId':_0x2a3a6e}:'deletion'==_0x1c84c2&&(_0x1c00ae['isRemoved']={'userId':_0x2a3a6e})),0x0==_0x224fca['length'])break;}return _0x3211f7;}['_refreshStartEndIndex'](_0x5bb7c8){const _0x48458e=new Map();for(let _0x2236a7=0x0;_0x2236a7<_0x5bb7c8['length'];_0x2236a7++)'text'===_0x5bb7c8[_0x2236a7]['type']?(_0x5bb7c8[_0x2236a7]['item']['startIndex']=_0x2236a7,_0x5bb7c8[_0x2236a7]['item']['endIndex']=_0x2236a7):('elementStart'===_0x5bb7c8[_0x2236a7]['type']?_0x5bb7c8[_0x2236a7]['item']['startIndex']=_0x2236a7:'elementEnd'===_0x5bb7c8[_0x2236a7]['type']&&(_0x5bb7c8[_0x2236a7]['item']['endIndex']=_0x2236a7),_0x48458e['set'](_0x5bb7c8[_0x2236a7]['id'],_0x2236a7));for(const _0x2b5765 of _0x48458e['values']())'elementStart'===_0x5bb7c8[_0x2b5765]['type']?_0x5bb7c8[_0x2b5765]['item']['endIndex']=_0x48458e['get'](_0x5bb7c8[_0x2b5765]['pairId']):'elementEnd'===_0x5bb7c8[_0x2b5765]['type']&&(_0x5bb7c8[_0x2b5765]['item']['startIndex']=_0x48458e['get'](_0x5bb7c8[_0x2b5765]['pairId']));}['_processTape'](_0x181718){for(let _0x479dbe=0x0;_0x479dbe<_0x181718['length'];_0x479dbe++){if('elementStart'===_0x181718[_0x479dbe]['type'])_0x181718[_0x479dbe]['item']['startIndex']=_0x479dbe;else{if('elementEnd'===_0x181718[_0x479dbe]['type']){_0x181718[_0x479dbe]['item']['endIndex']=_0x479dbe;const _0x20328b=_0x181718[_0x479dbe]['item']['startIndex'];_0x181718[_0x20328b]['pairId']=_0x181718[_0x479dbe]['id'],_0x181718[_0x479dbe]['pairId']=_0x181718[_0x20328b]['id'];}else _0x181718[_0x479dbe]['item']['startIndex']=_0x479dbe,_0x181718[_0x479dbe]['item']['endIndex']=_0x479dbe,_0x181718[_0x479dbe]['pairId']=null;}_0x181718[_0x479dbe]['markersStart']||(_0x181718[_0x479dbe]['markersStart']=[],_0x181718[_0x479dbe]['markersEnd']=[]);}}['_markInsertions'](_0x40bad2,_0x818e3b){const _0x2f4cf1=_0x40bad2['filter'](_0x16552e=>!_0x16552e['isAdded']);for(let _0x51325c=0x0;_0x51325c<_0x818e3b['length'];_0x51325c++)_0x818e3b[_0x51325c]['isAdded']&&(_0x2f4cf1[_0x51325c]['isAdded']=_0x818e3b[_0x51325c]['isAdded']);}['_getDiff'](_0x5f3303,_0x1b94e1=null){const _0x4829af=this['repository']['getRevision'](_0x5f3303),_0x2cdf5b=_0x1b94e1?this['repository']['getRevision'](_0x1b94e1):null,_0x106127=this['_getRevisionsRange'](_0x4829af,_0x2cdf5b),_0x193fff=_0x106127[_0x106127['length']-0x1],_0x29233d=new Map(),_0x5069b1={'model':{},'attributes':{},'changes':[]},_0x2b115e=new Set(),_0x18d959=new Map();for(let _0x59324b=_0x106127['length']-0x1;_0x59324b>=0x0;_0x59324b--){const _0x10a5d4=_0x106127[_0x59324b];for(const _0x295d31 of Object['keys'](_0x10a5d4['diffData']))if(_0x10a5d4['diffData'][_0x295d31]['attachChange']){const _0x3a1750=_0x10a5d4['diffData'][_0x295d31]['attachChange'];_0x3a1750['isAttached']?(_0x2b115e['add'](_0x295d31),_0x18d959['has'](_0x295d31)&&_0x18d959['get'](_0x295d31)['userId']==_0x3a1750['userId']?_0x18d959['delete'](_0x295d31):_0x18d959['set'](_0x295d31,_0x3a1750)):_0x18d959['has'](_0x295d31)?(_0x2b115e['delete'](_0x295d31),_0x18d959['delete'](_0x295d31)):(_0x2b115e['add'](_0x295d31),_0x18d959['set'](_0x295d31,_0x3a1750));}else _0x2b115e['add'](_0x295d31);}for(const _0x4aa152 of _0x2b115e){const _0x9c4e90=_0x18d959['has'](_0x4aa152)&&!_0x18d959['get'](_0x4aa152)['isAttached'];let _0x2f1da7=_0x9c4e90?_0x106127['length']-0x1:0x0;const _0x55b6c2=_0x9c4e90?-0x1:0x1;for(;_0x106127[_0x2f1da7];){const _0x3c868b=_0x106127[_0x2f1da7];if(_0x3c868b['diffData'][_0x4aa152]){const _0xa5274b=_0x9c4e90?_0x3c868b['diffData'][_0x4aa152]['attributesBefore']:_0x3c868b['diffData'][_0x4aa152]['attributesAfter'];_0x5069b1['attributes'][_0x4aa152]=_0xa5274b?_0x29ca9e(_0xa5274b):{};break;}_0x2f1da7+=_0x55b6c2;}}for(const _0x3e83c4 of _0x106127){_0x3e83c4['model']={};for(const _0x5ad115 of _0x3e83c4['authors'])_0x29233d['set'](_0x5ad115['id'],_0x5ad115);for(const _0x475d91 of _0x2b115e){const _0x284954=_0x3e83c4['diffData'][_0x475d91]?_0x3e83c4['diffData'][_0x475d91]['insertions']:'[]',_0x2aa369=_0x3e83c4['diffData'][_0x475d91]?_0x3e83c4['diffData'][_0x475d91]['deletions']:'[]';_0x3e83c4['model'][_0x475d91]={'insertions':this['_utils']['_makeModelFromViewString'](_0x284954),'deletions':this['_utils']['_makeModelFromViewString'](_0x2aa369)};}}for(const _0x15611b of _0x2b115e){let _0xa4ce56=null,_0x15b744=0x0;const _0x5ac64b=new Map(Array['from'](_0x4829af['model'][_0x15611b]['insertions']['markers'])['filter'](([_0x301729])=>!_0x301729['startsWith']('revision:')));let _0xac19d8=0x0;for(const _0x5274de of _0x106127){const _0x19d1f4=this['_makeTape'](_0x5274de['model'][_0x15611b]['insertions']);_0x5274de==_0x4829af?(_0xa4ce56=_0x19d1f4,_0x15b744=_0xa4ce56['length'],_0xa4ce56['forEach'](_0x5c4dda=>{_0x5c4dda['id']=_0xac19d8++;}),this['_processTape'](_0xa4ce56)):this['_markInsertions'](_0xa4ce56,_0x19d1f4);const _0x8c4357=_0xa4ce56['filter'](_0xdd96c4=>!_0xdd96c4['isAdded'])['map'](_0x5413b6=>_0x5413b6['id']);let _0x5a47ca=0x0;const _0x2e5672=this['_makeTape'](_0x5274de['model'][_0x15611b]['deletions']);_0x2e5672['forEach'](_0x1cda3e=>{_0x1cda3e['isRemoved']?_0x1cda3e['id']=_0x15b744++:_0x1cda3e['id']=_0x8c4357[_0x5a47ca++];}),this['_processTape'](_0x2e5672),this['_setDistance'](_0xa4ce56,'isAdded'),this['_setDistance'](_0x2e5672,'isRemoved'),_0x5274de==_0x4829af&&this['_markMarkers'](_0xa4ce56,_0x5ac64b),_0xa4ce56=this['_joinTapes'](_0xa4ce56,_0x2e5672),this['_refreshStartEndIndex'](_0xa4ce56),this['_setDistance'](_0xa4ce56,'isRemoved');}_0xa4ce56=_0xa4ce56['filter'](_0x53cc78=>!(_0x53cc78['isAdded']&&_0x53cc78['isRemoved']));const _0x104b0e=new Map(_0x193fff['model'][_0x15611b]['deletions']['markers']),_0x424fc1=new Set(_0x5ac64b['keys']());for(const _0x1e794a of _0x104b0e['keys']())_0x424fc1['delete'](_0x1e794a);this['_markSuggestions'](_0xa4ce56,_0x424fc1),this['_fixObsoleteTags'](_0xa4ce56),_0xa4ce56=this['_removeMissingPairs'](_0xa4ce56),_0xa4ce56=this['_markMismatchedRemovedTags'](_0xa4ce56),_0xa4ce56=this['_removeUnsupportedChanges'](_0xa4ce56);const {root:_0xe337a2,changes:_0x17f848}=this['_makeModelFromTape'](_0xa4ce56,_0x29233d,_0x15611b);_0x5069b1['model'][_0x15611b]=_0xe337a2;const _0x1e56b9=_0x18d959['get'](_0x15611b);if(_0x1e56b9){const _0x4a10aa=_0x29233d['get'](_0x1e56b9['userId']),_0x59ae9d=new G({'author':_0x4a10aa,'type':_0x1e56b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x15611b});_0x17f848['unshift'](_0x59ae9d),_0x5069b1['attributes'][_0x15611b]['revisionHistoryAttachChange']=_0x59ae9d['id'];}_0x5069b1['changes']=_0x5069b1['changes']['concat'](_0x17f848);}return _0x5069b1;}['_markMarkers'](_0x41edce,_0xe751b5){for(let _0x1df798=0x0;_0x1df798<_0x41edce['length'];_0x1df798++)for(const [_0x3f230d,_0x5e1863]of _0xe751b5)!_0x5e1863['isCollapsed']&&_0x5e1863['start']['isEqual'](_0x41edce[_0x1df798]['previousPosition'])&&_0x41edce[_0x1df798]['markersStart']['push'](_0x3f230d),_0x5e1863['end']['isEqual'](_0x41edce[_0x1df798]['nextPosition'])&&_0x41edce[_0x1df798]['markersEnd']['push'](_0x3f230d);}['_joinTapes'](_0x5d2aef,_0x29f49b){let _0x5100bc=[],_0xf2370f=0x0,_0x2ee633=0x0;for(;_0xf2370f<_0x5d2aef['length']||_0x2ee633<_0x29f49b['length'];){const _0x52b656=_0x5d2aef[_0xf2370f]||{},_0x38be60=_0x29f49b[_0x2ee633]||{};if(_0x52b656['id']==_0x38be60['id'])_0xf2370f++,_0x2ee633++,_0x5100bc['push'](_0x52b656);else{if(_0x38be60['isRemoved']&&_0x52b656['isAdded']){const {commonTape:_0x240cab,iEnd:_0xdbb403,jEnd:_0x3729dd}=this['_threeWayMerge'](_0x5d2aef,_0xf2370f,_0x29f49b,_0x2ee633);_0x5100bc=_0x5100bc['concat'](_0x240cab),_0xf2370f=_0xdbb403,_0x2ee633=_0x3729dd;}else _0x38be60['isRemoved']?(_0x2ee633++,_0x5100bc['push'](_0x38be60)):(_0xf2370f++,_0x5100bc['push'](_0x52b656));}}return _0x5100bc;}['_markSuggestions'](_0x232dc9,_0x3ef2ad){const _0x1a1cf2=[];for(let _0x3f6ab5=0x0;_0x3f6ab5<_0x232dc9['length'];_0x3f6ab5++){for(let _0x39efc6=0x0;_0x39efc6<_0x232dc9[_0x3f6ab5]['markersStart']['length'];_0x39efc6++){const _0x4cf801=_0x232dc9[_0x3f6ab5]['markersStart'][_0x39efc6];if(!_0x3ef2ad['has'](_0x4cf801))continue;const {group:_0x498525,type:_0x1342f0,authorId:_0x2f0d12}=_0x4a1ce7(_0x4cf801);'revision-suggestion'!=_0x498525||'insertion'!=_0x1342f0&&'deletion'!=_0x1342f0||(_0x1a1cf2['unshift']({'type':_0x1342f0,'name':_0x4cf801,'userId':_0x2f0d12}),_0x232dc9[_0x3f6ab5]['markersStart']['splice'](_0x39efc6,0x1),_0x39efc6--);}_0x3c6815(_0x232dc9[_0x3f6ab5]);for(let _0x1d5b54=0x0;_0x1d5b54<_0x232dc9[_0x3f6ab5]['markersEnd']['length'];_0x1d5b54++){const _0x59efdd=_0x232dc9[_0x3f6ab5]['markersEnd'][_0x1d5b54];if(!_0x3ef2ad['has'](_0x59efdd))continue;const {group:_0x48c90d,type:_0x3ed62a}=_0x4a1ce7(_0x59efdd);if('revision-suggestion'!=_0x48c90d||'insertion'!=_0x3ed62a&&'deletion'!=_0x3ed62a)continue;_0x232dc9[_0x3f6ab5]['markersEnd']['splice'](_0x1d5b54,0x1),_0x1d5b54--;const _0x45c4b0=_0x1a1cf2['findIndex'](_0x23731c=>_0x23731c['name']==_0x59efdd);_0x45c4b0>-0x1&&_0x1a1cf2['splice'](_0x45c4b0,0x1);}}function _0x4a1ce7(_0xc23274){const _0x50dd34=_0xc23274['split'](':');return{'group':_0x50dd34[0x0],'type':_0x50dd34[0x1],'subType':_0x50dd34['length']>=0x5?_0x50dd34[0x2]:null,'id':_0x50dd34['length']<0x5?_0x50dd34[0x2]:_0x50dd34[0x3],'authorId':_0x50dd34['length']<0x5?_0x50dd34[0x3]:_0x50dd34[0x4],'markerCount':0x6==_0x50dd34['length']?_0x50dd34[0x5]:null};}function _0x3c6815(_0x152108){for(let _0x20bcbb=0x0;_0x20bcbb<_0x1a1cf2['length'];_0x20bcbb++){if(_0x152108['isAdded']&&'insertion'==_0x1a1cf2[_0x20bcbb]['type']&&_0x152108['isAdded']['userId']==_0x1a1cf2[_0x20bcbb]['userId'])return _0x152108['isAddSuggestion']=_0x1a1cf2[_0x20bcbb],void delete _0x152108['isAdded'];if(!_0x152108['isAdded']&&!_0x152108['isRemoved']&&'deletion'==_0x1a1cf2[_0x20bcbb]['type'])return void(_0x152108['isRemoveSuggestion']=_0x1a1cf2[_0x20bcbb]);}}}['_setDistance'](_0x588ce7,_0x49a651){let _0x9a4358=0x0,_0x51a3ad=!0x1;const _0x34acbe=new Map();for(const _0x229b16 of _0x588ce7)_0x229b16[_0x49a651]?_0x51a3ad&&(_0x9a4358++,_0x51a3ad=!0x1):(_0x9a4358++,_0x51a3ad=!0x0),_0x34acbe['set'](_0x229b16['id'],_0x9a4358);for(let _0x262798=0x0;_0x262798<_0x588ce7['length'];_0x262798++){if('isRemoved'==_0x49a651&&_0x588ce7[_0x262798]['isAdded']||'isAdded'==_0x49a651&&_0x588ce7[_0x262798]['isRemoved'])continue;if('text'==_0x588ce7[_0x262798]['type']){_0x588ce7[_0x262798]['distance']=0x0;continue;}const _0x5ca520=_0x34acbe['get'](_0x588ce7[_0x262798]['pairId']),_0x10d880=_0x34acbe['get'](_0x588ce7[_0x262798]['id']);_0x588ce7[_0x262798]['distance']=_0x5ca520-_0x10d880;}}['_getRevisionsRange'](_0x56fbcb,_0x499874,_0x2d6ec2=!0x1){const _0x488fcd=[];let _0x47bf4b=this['repository']['getIndex'](_0x56fbcb),_0x5dc45b=this['repository']['getIndex'](_0x499874);for(-0x1==_0x5dc45b&&(_0x5dc45b=this['repository']['_revisions']['length'],_0x2d6ec2=!0x1);_0x47bf4b<_0x5dc45b;)_0x488fcd['push'](this['repository']['getRevision'](_0x47bf4b)),_0x47bf4b++;return _0x2d6ec2&&_0x488fcd['push'](this['repository']['getRevision'](_0x47bf4b)),_0x488fcd;}['_threeWayMerge'](_0x46e1ad,_0x173bd4,_0x10ccdb,_0x4ab59c){const _0x2bf98b=this['editor']['model']['schema'];let _0x3854f2=_0x173bd4;for(;_0x46e1ad[_0x3854f2]&&_0x46e1ad[_0x3854f2]['isAdded'];)_0x3854f2++;let _0x4135f2=_0x4ab59c;for(;_0x10ccdb[_0x4135f2]&&_0x10ccdb[_0x4135f2]['isRemoved'];)_0x4135f2++;_0x2271db(_0x46e1ad,_0x173bd4,_0x3854f2),_0x2271db(_0x10ccdb,_0x4ab59c,_0x4135f2);const _0x504b07=_0x10ccdb['slice'](_0x4ab59c,_0x4135f2)['concat'](_0x46e1ad['slice'](_0x173bd4,_0x3854f2));return _0x504b07['sort']((_0x5a6845,_0x376173)=>_0x5a6845['side']!=_0x376173['side']?_0x5a6845['side']-_0x376173['side']:_0x5a6845['level']!=_0x376173['level']?_0x5a6845['level']-_0x376173['level']:_0x5a6845['distance']!=_0x376173['distance']?_0x376173['distance']-_0x5a6845['distance']:!!_0x5a6845['isAdded']!=!!_0x376173['isAdded']?-0x1==_0x5a6845['side']||0x0==_0x5a6845['side']?_0x5a6845['isAdded']?-0x1:0x1:_0x5a6845['isAdded']?0x1:-0x1:_0x5a6845['index']-_0x376173['index']),{'commonTape':_0x504b07,'iEnd':_0x3854f2,'jEnd':_0x4135f2};function _0x2271db(_0x47f4e7,_0x26b3e0,_0xc5e2be){let _0x3a637d=-0x1,_0x5475eb=Number['POSITIVE_INFINITY'],_0x10a8ba=!0x0;for(let _0x4b5cd2=_0x26b3e0;_0x4b5cd2<_0xc5e2be;_0x4b5cd2++)if(_0x2bf98b['isInline'](_0x47f4e7[_0x4b5cd2]['item'])||(_0x10a8ba=!0x1),_0x47f4e7[_0x4b5cd2]['item']['startIndex']<_0x26b3e0&&(_0x3a637d=_0x4b5cd2),_0x47f4e7[_0x4b5cd2]['item']['endIndex']>=_0xc5e2be){_0x5475eb=_0x4b5cd2;break;}_0x10a8ba&&(_0x3a637d=_0xc5e2be-0x1);for(let _0x210a23=_0x26b3e0;_0x210a23<_0xc5e2be;_0x210a23++)_0x47f4e7[_0x210a23]['side']=_0x210a23<=_0x3a637d?-0x1:_0x210a23<_0x5475eb?0x0:0x1,_0x47f4e7[_0x210a23]['index']=_0x210a23;let _0x587767=0x0;for(let _0x45c039=_0x26b3e0;_0x45c039<=_0x3a637d;_0x45c039++)0x0==_0x47f4e7[_0x45c039]['distance']?_0x47f4e7[_0x45c039]['level']=_0x587767:(_0x587767++,_0x47f4e7[_0x45c039]['level']=_0x587767,_0x587767++);for(let _0x3312b5=_0x26b3e0;_0x3312b5<_0xc5e2be;_0x3312b5++)0x0==_0x47f4e7[_0x3312b5]['side']&&(_0x47f4e7[_0x3312b5]['level']=_0x587767);_0x587767=0x0;for(let _0x4f42fb=_0xc5e2be-0x1;_0x4f42fb>=_0x5475eb;_0x4f42fb--)0x0==_0x47f4e7[_0x4f42fb]['distance']?_0x47f4e7[_0x4f42fb]['level']=_0x587767:(_0x587767--,_0x47f4e7[_0x4f42fb]['level']=_0x587767,_0x587767--);}}['_fixObsoleteTags'](_0x40905c){const _0x87584e=new Map(),_0x31e9c5=this['editor']['model']['schema'];for(let _0x263cfb=0x1;_0x263cfb<_0x40905c['length'];_0x263cfb++){let _0x4866e6,_0x2d652c,_0x3b4d13;const _0x119495=_0x40905c[_0x263cfb],_0x153aa2=_0x40905c[_0x263cfb-0x1];if('text'==_0x119495['type'])continue;if(_0x119495['type']!=_0x153aa2['type'])continue;if(!_0x31e9c5['isBlock'](_0x153aa2['item'])||_0x31e9c5['isLimit'](_0x153aa2['item']))continue;if(!_0x31e9c5['isBlock'](_0x119495['item'])||_0x31e9c5['isLimit'](_0x119495['item']))continue;if((_0x40905c[_0x263cfb]['isAdded']||_0x40905c[_0x263cfb]['isAddSuggestion'])&&_0x40905c[_0x263cfb-0x1]['isRemoved'])_0x4866e6=_0x40905c[_0x263cfb],_0x2d652c=_0x40905c[_0x263cfb-0x1],_0x3b4d13=_0x263cfb-0x1;else{if(!_0x40905c[_0x263cfb]['isRemoved']||!_0x40905c[_0x263cfb-0x1]['isAdded']&&!_0x40905c[_0x263cfb-0x1]['isAddSuggestion'])continue;_0x4866e6=_0x40905c[_0x263cfb-0x1],_0x2d652c=_0x40905c[_0x263cfb],_0x3b4d13=_0x263cfb;}const _0x1c8b0e=_0x4866e6['level']==_0x2d652c['level'],_0x27af05=Math['abs'](_0x4866e6['level'])<Math['abs'](_0x2d652c['level'])&&0x0==_0x2d652c['distance'];(_0x1c8b0e||_0x27af05)&&(_0x87584e['set'](_0x2d652c['id'],_0x4866e6['id']),_0x40905c['splice'](_0x3b4d13,0x1),_0x263cfb--,_0x4866e6['isAdded']=!0x1);}for(let _0x37c6f5=0x0;_0x37c6f5<_0x40905c['length'];_0x37c6f5++)_0x87584e['has'](_0x40905c[_0x37c6f5]['pairId'])&&(_0x40905c[_0x37c6f5]['pairId']=_0x87584e['get'](_0x40905c[_0x37c6f5]['pairId']));}['_removeMissingPairs'](_0x32b445){const _0x282650=new Set(_0x32b445['map'](_0x12ca87=>_0x12ca87['id']));for(let _0x439f36=0x0;_0x439f36<_0x32b445['length'];_0x439f36++)_0x282650['has'](_0x32b445[_0x439f36]['pairId'])||0x0==_0x32b445[_0x439f36]['distance']||(_0x32b445[_0x439f36]['isIncorrect']=!0x0);return _0x32b445['filter'](_0x128fda=>!_0x128fda['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b270f){const _0x1ee6b6=new Set();for(let _0x44599c=0x0;_0x44599c<_0x2b270f['length'];_0x44599c++){if(_0x1ee6b6['has'](_0x2b270f[_0x44599c]['id'])&&_0x2b270f[_0x44599c]['isRemoved']&&(_0x2b270f[_0x44599c]['isIncorrect']=!0x0),_0x2b270f[_0x44599c]['isIncorrect'])continue;if(0x0==_0x2b270f[_0x44599c]['distance'])continue;if('elementStart'!=_0x2b270f[_0x44599c]['type'])continue;if(null==_0x2b270f[_0x44599c]['pairId'])continue;let _0x238829=_0x44599c+0x1,_0x142b4a=0x0;for(;_0x2b270f[_0x238829]['id']!=_0x2b270f[_0x44599c]['pairId'];)'elementStart'==_0x2b270f[_0x238829]['type']?_0x142b4a++:'elementEnd'==_0x2b270f[_0x238829]['type']&&_0x142b4a--,_0x238829++;if(0x0!=_0x142b4a){if(_0x2b270f[_0x44599c]['isRemoved'])_0x2b270f[_0x44599c]['isIncorrect']=!0x0;else{for(;_0x238829!=_0x44599c;)_0x2b270f[_0x238829]['isRemoved']&&0x0!=_0x2b270f[_0x238829]['distance']&&(_0x2b270f[_0x238829]['isIncorrect']=!0x0,_0x1ee6b6['add'](_0x2b270f[_0x238829]['pairId'])),_0x238829--;}}}return _0x2b270f['filter'](_0x1fd9de=>!_0x1fd9de['isIncorrect']);}['_removeUnsupportedChanges'](_0x53436a){const _0x133665=this['editor']['model']['schema'];for(let _0x169c3d=0x0;_0x169c3d<_0x53436a['length'];_0x169c3d++){if(!(_0x53436a[_0x169c3d]['isAdded']||_0x53436a[_0x169c3d]['isAddSuggestion']||_0x53436a[_0x169c3d]['isRemoved']||_0x53436a[_0x169c3d]['isRemoveSuggestion']))continue;if(0x0==_0x53436a[_0x169c3d]['distance'])continue;const _0x30b45c=_0x53436a[_0x169c3d]['item'];_0x133665['isBlock'](_0x30b45c)||_0x133665['isLimit'](_0x30b45c)||(_0x53436a[_0x169c3d]['isAdded']&&delete _0x53436a[_0x169c3d]['isAdded'],_0x53436a[_0x169c3d]['isAddSuggestion']&&delete _0x53436a[_0x169c3d]['isAddSuggestion'],_0x53436a[_0x169c3d]['isRemoveSuggestion']&&delete _0x53436a[_0x169c3d]['isRemoveSuggestion'],_0x53436a[_0x169c3d]['isRemoved']&&(_0x53436a[_0x169c3d]['isIncorrect']=!0x0));}return _0x53436a['filter'](_0x58835a=>!_0x58835a['isIncorrect']);}['_makeModelFromTape'](_0x1f0a6d,_0x484d1f,_0xe69363){const _0xba1ddf=new _0x30066f(),_0x25ea74=[],_0x400cbf=new Map(),_0x58e905=this['editor']['model'],_0x3fc82c=_0x58e905['schema'],_0x334554=[_0xba1ddf],_0x57c012={},_0x5b0625={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a7519=null;const _0x354d4f=[0x0];for(let _0x29a89f=0x0;_0x29a89f<_0x1f0a6d['length'];_0x29a89f++)if('elementStart'===_0x1f0a6d[_0x29a89f]['type']){_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f);const _0x65e2e5=new _0x25cd9f(_0x1f0a6d[_0x29a89f]['item']['name'],_0x1f0a6d[_0x29a89f]['item']['getAttributes']());_0x334554[0x0]['_appendChild'](_0x65e2e5),_0x354d4f['push'](0x0),_0x334554['unshift'](_0x65e2e5),_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f);}else'elementEnd'===_0x1f0a6d[_0x29a89f]['type']?(_0x334554['shift'](),_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f),_0x354d4f['pop'](),_0x354d4f[_0x354d4f['length']-0x1]++,_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f)):(_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f),_0x1a7519?_0x1a7519['_data']+=_0x1f0a6d[_0x29a89f]['item']['data']:_0x1a7519=new _0x321254(_0x1f0a6d[_0x29a89f]['item']['data'],_0x1f0a6d[_0x29a89f]['item']['getAttributes']()),_0x1f0a6d[_0x29a89f+0x1]&&'text'===_0x1f0a6d[_0x29a89f+0x1]['type']&&_0x47183c(_0x1a7519,_0x1f0a6d[_0x29a89f+0x1]['item'])||(_0x334554[0x0]['_appendChild'](_0x1a7519),_0x1a7519=null),_0x354d4f[_0x354d4f['length']-0x1]+=_0x1f0a6d[_0x29a89f]['item']['offsetSize'],_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f));for(let _0x2ca880=0x0;_0x2ca880<_0x1f0a6d['length'];_0x2ca880++){const _0xb4e6bf=_0x1f0a6d[_0x2ca880]['previousPosition'],_0x229fa7=_0x1f0a6d[_0x2ca880]['nextPosition'];for(const _0x518118 of _0x1f0a6d[_0x2ca880]['markersStart'])_0x400cbf['set'](_0x518118,{'start':_0xb4e6bf,'end':null});_0xecc1f9('isRemoveSuggestion',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isAddSuggestion',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isRemoved',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isAdded',_0x2ca880,_0xb4e6bf,_0x229fa7);for(const _0x598ccf of _0x1f0a6d[_0x2ca880]['markersEnd']){const _0x5d7a7d=_0x400cbf['get'](_0x598ccf);_0x5d7a7d?_0x5d7a7d['end']=_0x229fa7:_0x400cbf['set'](_0x598ccf,{'start':_0x229fa7,'end':_0x229fa7});}}for(const [_0x513dca,_0x2565fc]of _0x400cbf){const _0x800319=this['editor']['model']['createRange'](_0x2565fc['start'],_0x2565fc['end']);_0xba1ddf['markers']['set'](_0x513dca,_0x800319);}return _0x25ea74['sort']((_0x3e313e,_0x44eaa4)=>{const _0x445e67=_0xba1ddf['markers']['get']('revision:'+_0x3e313e['id']),_0x458c08=_0xba1ddf['markers']['get']('revision:'+_0x44eaa4['id']);return _0x445e67['start']['isBefore'](_0x458c08['start'])?-0x1:_0x445e67['start']['isAfter'](_0x458c08['start'])?0x1:_0x445e67['end']['isBefore'](_0x458c08['end'])?-0x1:_0x445e67['end']['isAfter'](_0x458c08['end'])?0x1:'add'===_0x3e313e['type']?-0x1:0x1;}),{'root':_0xba1ddf,'changes':_0x25ea74};function _0xecc1f9(_0x1cc064,_0x5b235d,_0x24a628,_0x2fb9f7){const _0x1173da=!!_0x1f0a6d[_0x5b235d][_0x1cc064],_0x163a1e=_0x1173da?_0x1f0a6d[_0x5b235d][_0x1cc064]['userId']:null,_0x4fee6e=_0x5b235d===_0x1f0a6d['length']-0x1,_0x2d3133=_0x5b0625[_0x1cc064][0x0],_0x28d9a4=_0x3fc82c['isObject'](_0x1f0a6d[_0x5b235d]['item']);!_0x57c012[_0x1cc064]&&_0x1173da?_0x57c012[_0x1cc064]={'start':_0x24a628,'tapeItem':_0x1f0a6d[_0x5b235d],'userId':_0x163a1e,'type':_0x1cc064}:_0x57c012[_0x1cc064]&&!_0x1173da?(_0x57c012[_0x1cc064]['end']=_0x24a628,_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]=null):_0x57c012[_0x1cc064]&&_0x1173da&&_0x57c012[_0x1cc064]['userId']!==_0x163a1e&&(_0x57c012[_0x1cc064]['end']=_0x24a628,_0x2d3133&&_0x2d3133['userId']===_0x57c012[_0x1cc064]['userId']||_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]={'start':_0x24a628,'tapeItem':_0x1f0a6d[_0x5b235d],'userId':_0x163a1e,'type':_0x1cc064}),_0x57c012[_0x1cc064]&&_0x28d9a4&&('elementStart'!==_0x1f0a6d[_0x5b235d]['type']||_0x2d3133&&_0x2d3133['userId']===_0x163a1e||_0x5b0625[_0x1cc064]['unshift']({'userId':_0x163a1e,'object':_0x1f0a6d[_0x5b235d]['item'],'change':_0x57c012[_0x1cc064]}),'elementEnd'===_0x1f0a6d[_0x5b235d]['type']&&_0x2d3133&&_0x2d3133['object']===_0x1f0a6d[_0x5b235d]['item']&&(_0x5b0625[_0x1cc064]['shift'](),_0x57c012[_0x1cc064]=_0x2d3133['change'])),_0x57c012[_0x1cc064]&&_0x4fee6e&&(_0x57c012[_0x1cc064]['end']=_0x2fb9f7,_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]=null);}function _0x3991e1({start:_0x4aede4,end:_0x2db9a1,tapeItem:_0x3e92b1,userId:_0x39ccb1,type:_0x36766d}){const _0x535ef2=_0x3e92b1['item'],_0x5af2b0=_0x58e905['schema']['isBlock'](_0x535ef2)&&!_0x58e905['schema']['isLimit'](_0x535ef2),_0x54ebfd=_0x4aede4['nodeAfter']==_0x2db9a1['parent']&&_0x2db9a1['isAtStart'];if(_0x5af2b0&&_0x54ebfd)return;const _0x78385a=_0x58e905['createRange'](_0x4aede4,_0x2db9a1),_0x5a3140=_0x484d1f['get'](_0x39ccb1),_0x16572e=new G({'author':_0x5a3140,'type':'isAdded'==_0x36766d||'isAddSuggestion'==_0x36766d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36766d||'isRemoveSuggestion'==_0x36766d},'createdAt':new Date(),'rootName':_0xe69363});_0x25ea74['push'](_0x16572e),_0xba1ddf['markers']['set']('revision:'+_0x16572e['id'],_0x78385a);}function _0x47183c(_0x161cf9,_0x587475){const _0x7fd3e4=_0x161cf9['getAttributes'](),_0x513c81=_0x587475['getAttributes']();for(const _0xd875e5 of _0x7fd3e4){if(_0xd875e5[0x1]!==_0x587475['getAttribute'](_0xd875e5[0x0]))return!0x1;_0x513c81['next']();}return _0x513c81['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdcd0da=>{const _0x11437a=_0xdcd0da['markerName']['split'](':')[0x1],_0x4c435c=this['_getChangeFromId'](_0x11437a);if(!_0x4c435c)return null;const _0x15662c='add'==_0x4c435c['type']?'insertion':'deletion',_0xb77e8c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15662c];return _0x4c435c['data']['isSuggestion']&&_0xb77e8c['push']('ck-suggestion-marker-'+_0x15662c+'-new'),this['activeChange']==_0x4c435c&&_0xb77e8c['push']('ck-suggestion-marker--active'),{'classes':_0xb77e8c,'attributes':{'data-change-id':_0x11437a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x31b0da=>{_0x31b0da['on']('element:pre',(_0x1284e2,_0x5d88b6,_0x322d86)=>{const _0x22d03f=_0x5d88b6['viewItem']['getChild'](0x0);if(!_0x22d03f||!_0x22d03f['is']('element','code'))return;if(!_0x322d86['consumable']['consume'](_0x22d03f,{'attributes':['vid_start','vid_end']}))return;const _0xa41a7b=_0x5d88b6['modelRange']['start']['nodeAfter'];_0x322d86['writer']['setAttribute']('vid_start',_0x22d03f['getAttribute']('vid_start'),_0xa41a7b),_0x322d86['writer']['setAttribute']('vid_end',_0x22d03f['getAttribute']('vid_end'),_0xa41a7b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33b065=>{_0x33b065['on']('element',(_0x35d41f,_0x2db281,_0x34ae41)=>{if(!_0x34ae41['consumable']['consume'](_0x2db281['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2db281['modelRange']['isCollapsed'])return;const _0x39d17e=_0x2db281['modelRange']['start']['nodeAfter'];_0x39d17e['hasAttribute']('vid_start')||_0x39d17e['hasAttribute']('vid')||(_0x34ae41['writer']['setAttribute']('vid_start',_0x2db281['viewItem']['getAttribute']('vid_start'),_0x39d17e),_0x34ae41['writer']['setAttribute']('vid_end',_0x2db281['viewItem']['getAttribute']('vid_end'),_0x39d17e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d6260=>_0x2d6260['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x488e48,[,_0x8949a7])=>{['vid_start','vid_end','vid']['includes'](_0x8949a7)&&(_0x488e48['return']=!0x0,_0x488e48['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9384a9=>{_0x9384a9['on']('attribute:vid',(_0x12a7e5,_0x54cf34,_0x3b2602)=>{if('\x20'!=_0x54cf34['item']['data']||_0x54cf34['item']['parent']['maxOffset']>0x1)return;if(!_0x3b2602['consumable']['consume'](_0x54cf34['item'],_0x12a7e5['name']))return;const _0x18b8e9=_0x3b2602['writer'],_0x545f3d=_0x3b2602['mapper']['toViewRange'](_0x54cf34['range']);_0x18b8e9['wrap'](_0x545f3d,_0x18b8e9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x46ea92){const _0x3e4877=_0x46ea92['plugins']['get']('RevisionViewer');return(_0x214ba2,_0x405d23,_0x481f5f)=>{const _0x45b377=_0x405d23['markerName']['split'](':')[0x1],_0x24c720=_0x3e4877['_getChangeFromId'](_0x45b377);if(!_0x24c720)return null;const _0x4ae591='add'==_0x24c720['type']?'split':'merge';if(!_0x481f5f['consumable']['test'](_0x405d23['markerRange'],_0x214ba2['name']))return;const _0x13d1af=_0x405d23['markerRange']['getWalker'](),_0x1cd51d=_0x405d23['markerRange']['start'],_0x516c8a=_0x46ea92['model']['schema'];let _0x53d515=null,_0x5e697e=null,_0x460c0c=!0x1,_0x428c68=!0x1;for(const _0x54c26e of _0x13d1af){const _0x284e83=_0x54c26e['item'];_0x460c0c=_0x460c0c||_0x516c8a['isContent'](_0x284e83);const _0x5a0051=_0x481f5f['mapper']['toViewElement'](_0x284e83);if(_0x5a0051&&_0x5a0051['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54c26e['type']&&(_0x516c8a['isBlock'](_0x284e83)&&!_0x516c8a['isLimit'](_0x284e83)&&(_0x284e83['nextSibling']||_0x1cd51d['isAtEnd']?_0x53d515&&_0x53d515['parent']==_0x284e83||(_0x53d515=_0x284e83,_0x42a932(_0x54c26e['previousPosition']),_0x428c68=!0x0):_0x5e697e=_0x5e697e||_0x54c26e['previousPosition']));}function _0x42a932(_0xe9eab5){const _0x13cdb6=_0x481f5f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ae591}),_0x474235=_0x481f5f['mapper']['toViewPosition'](_0xe9eab5);_0x24c720['data']['isSuggestion']&&_0x481f5f['writer']['addClass']('ck-suggestion-marker-'+_0x4ae591+'-new',_0x13cdb6),_0x3e4877['activeChange']==_0x24c720&&_0x481f5f['writer']['addClass']('ck-suggestion-marker--active',_0x13cdb6),_0x481f5f['writer']['insert'](_0x474235,_0x13cdb6),_0x481f5f['mapper']['bindElementToMarker'](_0x13cdb6,_0x405d23['markerName']);}_0x460c0c||_0x428c68||!_0x5e697e||_0x42a932(_0x5e697e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b3cc9,_0x273005,_0x5b974d)=>{const _0x3e12d3=_0x5b974d['mapper']['markerNameToElements'](_0x273005['markerName']);if(_0x3e12d3){for(const _0x47233d of _0x3e12d3)(_0x47233d['hasClass']('ck-suggestion-marker-split')||_0x47233d['hasClass']('ck-suggestion-marker-merge'))&&(_0x5b974d['mapper']['unbindElementFromMarkerName'](_0x47233d,_0x273005['markerName']),_0x5b974d['writer']['remove'](_0x47233d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26642b,_0x43f0ae,_0x3fcde9)=>{const _0x37bdd5=_0x43f0ae['markerName']['split'](':')[0x1],_0x36be77=this['_getChangeFromId'](_0x37bdd5);if(!_0x36be77)return null;const _0x5f5b2d='add'==_0x36be77['type']?'split':'merge';if(_0x3fcde9['consumable']['test'](_0x43f0ae['markerRange'],_0x26642b['name']))for(const _0x4657d6 of _0x43f0ae['markerRange']['getItems']()){if(!_0x4657d6['is']('element','softBreak'))continue;const _0x36133e=_0x3fcde9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f5b2d}),_0x30bf06=_0x3fcde9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4657d6));_0x36be77['data']['isSuggestion']&&_0x3fcde9['writer']['addClass']('ck-suggestion-marker-'+_0x5f5b2d+'-new',_0x36133e),this['activeChange']==_0x36be77&&_0x3fcde9['writer']['addClass']('ck-suggestion-marker--active',_0x36133e),_0x3fcde9['writer']['insert'](_0x30bf06,_0x36133e),_0x3fcde9['mapper']['bindElementToMarker'](_0x36133e,_0x43f0ae['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1b6f8f=>{for(const _0xa85c17 of this['editor']['model']['document']['getRootNames']()){const _0x4e1f5d=this['editor']['model']['document']['getRoot'](_0xa85c17),_0x137040=this['editor']['editing']['view']['document']['getRoot'](_0xa85c17);if(_0x137040){const _0x3e39f1=_0x4e1f5d['getAttribute']('revisionHistoryAttachChange');if(_0x1b6f8f['removeAttribute']('data-change-id',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root-add',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root-remove',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root--active',_0x137040),_0x3e39f1){const _0x4564aa=this['_getChangeFromId'](_0x3e39f1);if(!_0x4564aa)return null;_0x1b6f8f['setAttribute']('data-change-id',_0x3e39f1,_0x137040),_0x1b6f8f['addClass']('ck-revision-history-root-'+_0x4564aa['type'],_0x137040),this['activeChange']==_0x4564aa&&_0x1b6f8f['addClass']('ck-revision-history-root--active',_0x137040);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x118092=>'revision-comment:'+_0x118092,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4d2832=>'revision-suggestion:'+_0x4d2832,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x31ea33=>({'name':'suggestion:'+_0x31ea33,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x422a1c=>{const _0x33fe6e=_0x422a1c['markerName']['split'](':')[0x1];return'insertion'!=_0x33fe6e&&'deletion'!=_0x33fe6e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x33fe6e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1711e3,_0x3d47a7,_0x29605a)=>{const _0x390fed=_0x29605a['mapper']['markerNameToElements'](_0x3d47a7['markerName']);if(_0x390fed){for(const _0x374ca6 of _0x390fed)_0x374ca6['is']('uiElement')&&(_0x29605a['mapper']['unbindElementFromMarkerName'](_0x374ca6,_0x3d47a7['markerName']),_0x29605a['writer']['remove'](_0x374ca6));}},{'priority':'high'});}['_getChangeFromId'](_0x42a580){return this['_changeIdToChange']['get'](_0x42a580);}['_getViewForChange'](_0x42f825){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x42f825),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x282a57,_0x342592,_0x1ef182,_0x2cc658)=>{_0x2cc658&&this['_balloon']['remove'](_0x2cc658),_0x1ef182&&(this['_balloon']['add']({'view':_0x1ef182,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x435d83=this['editor']['editing'],_0x1a8ac9=this['_getChangeFromId'](_0x1ef182['changeId']);let _0xcfb912;if(_0x1a8ac9['data']['isOnRoot']){const _0x2fcbbc=_0x435d83['view']['getDomRoot'](_0x1a8ac9['rootName']);_0xcfb912=Array['from'](_0x2fcbbc['getClientRects']());}else{const _0x53c4e9=this['editor']['model']['markers']['get']('revision:'+_0x1ef182['changeId']);_0xcfb912=Array['from'](_0x435d83['mapper']['markerNameToElements'](_0x53c4e9['name']))['map'](_0x3671c2=>_0x435d83['view']['domConverter']['mapViewToDom'](_0x3671c2))['map'](_0xafb488=>Array['from'](_0xafb488['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xcfb912[0x0];return _0xcfb912['find'](_0x12e485=>_0x12e485['top']-0x3<=this['_activeViewTarget']['y']&&_0x12e485['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x12e485['left']-0x3<=this['_activeViewTarget']['x']&&_0x12e485['right']+0x3>=this['_activeViewTarget']['x'])||_0xcfb912[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3e3eee,_0x2537e9,_0x51b22d,_0x50dbc7)=>{this['activeView']=_0x51b22d?this['_getViewForChange'](_0x51b22d):null,this['editor']['model']['change'](()=>{const _0x55cb8c=this['editor']['editing'];_0x50dbc7&&(_0x50dbc7['data']['isOnRoot']?_0x55cb8c['view']['change'](_0xf6acc5=>{_0xf6acc5['removeClass']('ck-revision-history-root--active',_0x55cb8c['view']['document']['getRoot'](_0x50dbc7['rootName']));}):_0x55cb8c['reconvertMarker']('revision:'+_0x50dbc7['id'])),_0x51b22d&&(_0x51b22d['data']['isOnRoot']?_0x55cb8c['view']['change'](_0x53a85d=>{_0x53a85d['addClass']('ck-revision-history-root--active',_0x55cb8c['view']['document']['getRoot'](_0x51b22d['rootName']));}):_0x55cb8c['reconvertMarker']('revision:'+_0x51b22d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x233601,_0xcf1842)=>{if(this['activeChange'])return;const _0x2d9f29=this['_findChangeIdFromDomTarget'](_0xcf1842['target']),_0x470d0e=this['_changeIdToChange']['get'](_0x2d9f29);_0x470d0e?(this['_activeViewTarget']={'x':_0xcf1842['domEvent']['x'],'y':_0xcf1842['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x470d0e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x39fad3,_0x526058)=>{const _0x6be2b1=this['_findChangeIdFromDomTarget'](_0x526058['target']),_0x15e637=this['_changeIdToChange']['get'](_0x6be2b1);_0x15e637?(this['_activeViewTarget']={'x':_0x526058['domEvent']['x'],'y':_0x526058['domEvent']['y']},_0x15e637===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x15e637):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x54d795){do{const _0x12a363=_0x54d795['getAttribute']('data-change-id');if(_0x12a363)return _0x12a363;_0x54d795=_0x54d795['parent'];}while(_0x54d795);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x10f347=>{for(const _0x3e6b12 of this['editor']['model']['markers'])_0x10f347['removeMarker'](_0x3e6b12);});}}function Q(_0x5856a3,_0x525e1c){return(_0x1c5d59,_0x55f384,_0x1d21d8)=>{if(!_0x1d21d8['consumable']['test'](_0x55f384['markerRange'],_0x1c5d59['name']))return;const _0x684fb9=_0x55f384['markerRange']['getWalker'](),_0x5c33df=_0x55f384['markerRange']['start'],_0x2ebad8=_0x5856a3['model']['schema'];let _0x4637ca=null,_0x291e56=null,_0x444c71=!0x1,_0x147087=!0x1;for(const _0x40519e of _0x684fb9){const _0x5b6c59=_0x40519e['item'];_0x444c71=_0x444c71||_0x2ebad8['isContent'](_0x5b6c59);const _0x41808e=_0x1d21d8['mapper']['toViewElement'](_0x5b6c59);if(_0x41808e&&_0x41808e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40519e['type']&&(_0x2ebad8['isBlock'](_0x5b6c59)&&!_0x2ebad8['isLimit'](_0x5b6c59)&&(_0x5b6c59['nextSibling']||_0x5c33df['isAtEnd']?_0x4637ca&&_0x4637ca['parent']==_0x5b6c59||(_0x4637ca=_0x5b6c59,_0x47aa58(_0x40519e['previousPosition']),_0x147087=!0x0):_0x291e56=_0x291e56||_0x40519e['previousPosition']));}function _0x47aa58(_0x538751){const _0x5265a3=_0x1d21d8['mapper']['toViewPosition'](_0x538751),_0x5d3925=_0x1d21d8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x525e1c});_0x1d21d8['writer']['insert'](_0x5265a3,_0x5d3925),_0x1d21d8['mapper']['bindElementToMarker'](_0x5d3925,_0x55f384['markerName']);}_0x444c71||_0x147087||!_0x291e56||_0x47aa58(_0x291e56);};}class nt extends _0xf9318a{constructor(_0x43645c){super(_0x43645c);const _0x37c8be=_0x43645c['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x37c8be,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37c8be,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1c9888=this['editor'],_0x3bcea5=_0x1c9888['plugins']['get'](l),_0x16b800=_0x3bcea5['isReady']?_0x3bcea5['diff']['newRevisionId']:null;_0x1c9888['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x16b800);}['refresh'](){const {isReady:_0x5a1b99,isEnabled:_0x1ef29e,repository:_0x359652,diff:_0x4b4a20}=this['editor']['plugins']['get'](l),_0xd088c3=_0x4b4a20&&_0x359652['getLaterVisibleRevision'](_0x4b4a20['newRevisionId']);this['isEnabled']=_0x5a1b99&&_0x1ef29e&&Boolean(_0xd088c3);}}class rt extends _0xf9318a{['_step'];constructor(_0x1cd3cc,{direction:_0x2a5fdd}){super(_0x1cd3cc);const _0x20979f=_0x1cd3cc['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2a5fdd?0x1:-0x1,this['listenTo'](_0x20979f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20979f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x20979f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x54df74=this['editor'],_0xce03ff=_0x54df74['plugins']['get'](l),{isNavigationMode:_0x462edc,currentChangeNumber:_0xeed3d0}=_0xce03ff;let _0xe6ff75;if(_0xce03ff['activeChange']=_0x462edc?_0xce03ff['diff']['changes']['get'](_0xeed3d0+this['_step']):_0xce03ff['diff']['changes']['first'],_0xce03ff['activeChange']['data']['isOnRoot'])_0xe6ff75=_0x54df74['editing']['view']['getDomRoot'](_0xce03ff['activeChange']['rootName']);else{const _0x49f5e8=_0x54df74['model']['markers']['get']('revision:'+_0xce03ff['activeChange']['id']);_0xe6ff75=_0x29a0c9(_0x54df74['editing'],_0x49f5e8);}_0x404324({'target':_0xe6ff75,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x303a5d,currentChangeNumber:_0xb20531,numberOfChanges:_0x10ad37,isReady:_0x1f1f69,isEnabled:_0x350d91}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x350d91&&_0x1f1f69&&_0x10ad37)&&(!_0x303a5d||(0x1===this['_step']?_0xb20531<_0x10ad37-0x1:_0xb20531>0x0));}}class pi extends _0x6da706{constructor(_0x308eeb){super(_0x308eeb);const _0x219c30=this['bindTemplate'],_0x6482b7=new _0x22eb10(_0x308eeb),_0x332bc5=new _0x22eb10(_0x308eeb);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',(_0x2e825b,_0x1ae07f)=>_0x2e825b&&_0x1ae07f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x352f7f,_0x55937e,_0x57b08b,_0x1918ab)=>{if(!_0x352f7f)return R(_0x308eeb,'Loading...');if(!_0x57b08b)return R(_0x308eeb,'No\x20changes');const _0x485254=R(_0x308eeb,'NUMBER_OF_CHANGES',_0x57b08b);return _0x1918ab?R(_0x308eeb,'X_OF_Y_CHANGES',[_0x55937e+0x1,_0x57b08b]):_0x485254;}),_0x6482b7['set']({'label':R(_0x308eeb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x14e1fd}),_0x332bc5['set']({'label':R(_0x308eeb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x21683d}),_0x6482b7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x332bc5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x6482b7['on']('execute',()=>this['fire']('execute','backward')),_0x332bc5['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',_0x219c30['if']('_isStatusLabelVisible','ck-hidden',_0x49b298=>!_0x49b298)]},'children':[{'text':_0x219c30['to']('isNavigationMode',_0x33f60a=>_0x33f60a?R(_0x308eeb,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x308eeb,'Total')+':\x20')}]},{'text':_0x219c30['to']('_statusText')}]},new _0x1d7201(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x6482b7,_0x332bc5]}]});}}const oe='ck-editor__editable__loading-overlay';class fi extends _0x55ca5c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x14c058=this['editor']['editing']['view'];_0x14c058['change'](_0x25058b=>{for(const _0x42b449 of _0x14c058['document']['roots'])_0x25058b['addClass'](oe,_0x42b449);});}['hide'](){const _0x44fc39=this['editor']['editing']['view'];_0x44fc39['change'](_0x235b81=>{for(const _0x421543 of _0x44fc39['document']['roots'])_0x235b81['removeClass'](oe,_0x421543);});}}class u extends _0x55ca5c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,fi];}['init'](){const _0x355312=this['editor'],_0x168850=_0x355312['plugins']['get'](l),_0x5c1992=_0x355312['plugins']['get'](fi);_0x355312['ui']['componentFactory']['add']('exitToEditing',_0x43da4a=>{const _0x3f9033=new _0x22eb10(_0x43da4a);return _0x3f9033['set']({'label':R(_0x43da4a,'Back\x20to\x20editing'),'icon':_0x40012c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3f9033,'execute',()=>{_0x355312['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3f9033;}),_0x355312['ui']['componentFactory']['add']('restoreRevision',_0x48f6da=>{const _0x584111=new _0x22eb10(_0x48f6da);return _0x584111['set']({'label':R(_0x48f6da,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x584111['bind']('isEnabled')['to'](_0x355312['commands']['get']('restoreRevision')),this['listenTo'](_0x584111,'execute',()=>_0x355312['execute']('restoreRevision')),_0x584111;}),_0x355312['ui']['componentFactory']['add']('changesNavigation',_0x5ea98c=>{const _0x1f6e21=new pi(_0x5ea98c),_0x27f0dd=_0x355312['commands']['get']('showPreviousChange'),_0x250a0d=_0x355312['commands']['get']('showNextChange');return _0x1f6e21['bind']('isBackwardNavigationEnabled')['to'](_0x27f0dd,'isEnabled'),_0x1f6e21['bind']('isForwardNavigationEnabled')['to'](_0x250a0d,'isEnabled'),_0x1f6e21['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x168850),this['listenTo'](_0x1f6e21,'execute',(_0x7eb79b,_0x9cf28f)=>{_0x355312['execute']('forward'===_0x9cf28f?'showNextChange':'showPreviousChange');}),_0x1f6e21;}),_0x5c1992['show'](),_0x168850['on']('change:isReady',(_0x13de6f,_0x10fbf2,_0x4f3002)=>{_0x4f3002?_0x5c1992['hide']():_0x5c1992['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5f2487,_0xff4d13){super(_0x5f2487,_0xff4d13);const _0x453940=this['bindTemplate'];this['set']({'label':R(_0x5f2487,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5f2487,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x453940['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1eea8b=this['fieldView']['element'];this['_tooltipString']=_0x1eea8b['scrollWidth']>_0x1eea8b['clientWidth']&&_0x1eea8b['value']||'';}}class ni extends _0x6da706{constructor(_0x206ae5,_0x4c6d90,_0x2b5b9f){super(_0x206ae5);const _0x25d9dd=new _0x4c1afd();_0x25d9dd['set']({'content':_0x5f4451,'viewBox':'0\x200\x2011\x2010'});const _0x32928e=['ck','ck-revision-history-sidebar__revision-author'];_0x2b5b9f&&_0x32928e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c068d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x206ae5,_0x2b5b9f?'Revision\x20creator':'Revision\x20author')},'children':[_0x25d9dd,_0x4c6d90['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x32928e},'children':_0x2c068d});}}function ci(_0x49ebfd,_0x819253){const _0x4893a0=_0x49ebfd['bindTemplate'],_0x54654b=_0x49ebfd['locale'],_0x11cff1=_0x1c3547(_0x54654b);_0x11cff1['panelPosition']='sw';const _0x10daeb=function(_0x2d2647,_0x12b651){const _0xed373d=function(_0x10f533,_0x512296){const _0x5438d1=_0x10f533['locale'],_0x4cbc17={'Compare\x20against\x20selected':R(_0x5438d1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5438d1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5438d1,'Restore\x20this\x20revision')};return _0x512296['map'](_0x4a37ff=>{const _0xf4cc4b=_0x4cbc17[_0x4a37ff['name']];return _0xf4cc4b&&_0xf4cc4b!==_0x4a37ff['name']&&(_0x4a37ff['name']=_0xf4cc4b),_0x4a37ff;});}(_0x2d2647,_0x12b651),_0x48f3c7=new _0x390dd6();for(const _0x14495a of _0xed373d){const _0x588f40={'type':'button','model':new to({'label':_0x14495a['name'],'class':_0x14495a['class'],'withText':!0x0,'role':'menuitem','_action':_0x14495a['action']})};_0x588f40['model']['bind']('isEnabled')['to'](_0x2d2647,'isActionsDropdownOpen',_0x5a73e0=>'function'!=typeof _0x14495a['isEnabled']||(!_0x5a73e0||_0x14495a['isEnabled'](_0x2d2647))),_0x48f3c7['add'](_0x588f40);}return _0x48f3c7;}(_0x49ebfd,_0x819253);return _0x49ebfd['bind']('isActionsDropdownOpen')['to'](_0x11cff1,'isOpen'),_0x11cff1['buttonView']['set']({'label':R(_0x54654b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x553f72}),_0x11cff1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4893a0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4893a0['to'](_0x533e3f=>_0x533e3f['stopPropagation']())}}),_0x11cff1['on']('execute',_0x2932fd=>{_0x49ebfd['isReady']&&'function'==typeof _0x2932fd['source']['_action']&&_0x2932fd['source']['_action'](_0x49ebfd);}),_0x52e59e(_0x11cff1,_0x10daeb,{'role':'menu'}),_0x11cff1['listenTo'](_0x49ebfd,'change:isActionsDropdownOpen',(_0x4e5a6d,_0x23a888,_0xb5ae6d)=>{if(_0xb5ae6d)for(const _0x1103e0 of _0x11cff1['listView']['items']){const _0x5e575d=_0x1103e0['children']['first'],_0x27d0c9=_0x819253['find'](_0x4663e2=>_0x4663e2['action']===_0x5e575d['_action'])['isVisible'];_0x1103e0['isVisible']=void 0x0===_0x27d0c9||_0x27d0c9(_0x49ebfd);}}),_0x11cff1;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5e85d7,uid as _0x4c943c,Collection as _0x28ccb6,logWarning as _0x272f8a,FocusTracker as _0xf2816d,KeystrokeHandler as _0x2873ab,scrollViewportToShowTarget as _0x2668d4,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4a7f12}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x291192,set as _0x256410,unset as _0x48b1d4,isEqual as _0x845035}from'es-toolkit/compat';import{Plugin as _0xc698e3,PendingActions as _0xe6dcfb,Command as _0x26a7b3,ElementApiMixin as _0x3a0d4e,Editor as _0x758c60}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x58c107,getMarkerDomElement as _0x339914,ConfirmMixin as _0x128763,sanitizeEditorConfig as _0x114a78}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4b2b6f,ViewAttributeElement as _0x1ea676,ViewEmptyElement as _0xd14834,ViewRawElement as _0x528cc7,ViewUIElement as _0x2efeb7,ViewDocumentFragment as _0x1998ea,ViewText as _0xe13e67,ViewElement as _0x163ab2,ModelElement as _0x99735e,ModelRange as _0x5671c9,ModelPosition as _0x4b2e20,ModelDocumentFragment as _0xecbb41,ModelText as _0x24c0ef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x26523b,IconChevronUp as _0x5ed9b3,IconChevronDown as _0x35f01a,IconUndo as _0x12b4c1,IconUser as _0x4e06a0,IconThreeVerticalDots as _0x2f8ce8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x290aeb,View as _0x1579ef,submitHandler as _0x270a5c,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x310321,ListView as _0x4a5d6e,ListItemView as _0xfb36db,ButtonView as _0x536736,MenuBarMenuView as _0x4783b4,MenuBarMenuListView as _0x3abd18,MenuBarMenuListItemView as _0x144d41,MenuBarMenuListItemButtonView as _0x508a90,ContextualBalloon as _0x304943,ToolbarSeparatorView as _0x150645,IconView as _0x47ea2f,addListToDropdown as _0x2716f0,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x214cf3,StickyPanelView as _0x7153d0,ToolbarView as _0x15694e,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x500ead}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e85d7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5f2ac4){super(),this['id']=_0x5f2ac4['id']||_0x4c943c(),this['creator']=_0x5f2ac4['creator']||null,this['authors']=_0x5f2ac4['authors']||[],this['diffData']=_0x5f2ac4['diffData']||null,this['toVersion']=_0x5f2ac4['toVersion']||0x0,this['fromVersion']=_0x5f2ac4['fromVersion']||0x0,this['set']('name',_0x5f2ac4['name']||''),this['set']('createdAt',_0x5f2ac4['createdAt']||new Date()),this['set']('attributes',_0x5f2ac4['attributes']||{});}['setName'](_0x25e5b5){this['_update']({'name':_0x25e5b5});}['setAttribute'](_0xe66297,_0x3a6d2f){const _0x51c99f=_0x291192(this['attributes']);_0x256410(_0x51c99f,_0xe66297,_0x3a6d2f),this['_update']({'attributes':_0x51c99f});}['removeAttribute'](_0xd1de5){const _0x4375ce=_0x291192(this['attributes']);_0x48b1d4(_0x4375ce,_0xd1de5),this['_update']({'attributes':_0x4375ce});}['_update'](_0x47a40f,_0x11d55e=!0x1){let _0xb89481=!0x1;const _0x530158={'id':this['id']},_0x9ee2f1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b0687 of _0x9ee2f1){const _0x37d0a9=_0x47a40f[_0x5b0687];void 0x0!==_0x37d0a9&&_0x37d0a9!==this[_0x5b0687]&&(this[_0x5b0687]=_0x37d0a9,_0x530158[_0x5b0687]=_0x37d0a9,_0xb89481=!0x0);}_0xb89481&&(_0x530158['authors']&&(_0x530158['authorsIds']=_0x530158['authors']['map'](_0x13b734=>_0x13b734['id']),delete _0x530158['authors']),this['fire']('_update',_0x530158,_0x11d55e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x56e658=>_0x56e658['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xc698e3{['_revisions'];static get['requires'](){return[_0x58c107];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x866dd0){super(_0x866dd0),this['_revisions']=new _0x28ccb6();}['afterInit'](){!async function(_0x7b6525){const _0x42ca52=_0x332c81([0x57,0x4e,0x54,0x33,0x77,0x51,0x70,0x73,0x48,0x64,0x32,0x35,0x76,0x55,0x72,0x67,0x44,0x66,0x38,0x39,0x6c,0x61,0x7a,0x53,0x4d,0x42,0x56,0x6d,0x68,0x79,0x6a,0x63,0x78,0x41,0x4f,0x6e,0x65,0x4c,0x43,0x47,0x71,0x69,0x62,0x4a,0x36,0x4b,0x34,0x74,0x52,0x37,0x49,0x30,0x5a,0x6b,0x75,0x45,0x58,0x50,0x46,0x31,0x59,0x6f]),_0x5f5325=0xeb829,_0x373b85=0x49cff00b,_0x382922=0x49c89d23^_0x373b85,_0x408fef=window[_0x332c81([0x44,0x61,0x74,0x65])][_0x332c81([0x6e,0x6f,0x77])](),_0x5929ff=_0x7b6525[_0x332c81([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x235472=new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d48a7=>{_0x5929ff[_0x332c81([0x6f,0x6e,0x63,0x65])](_0x332c81([0x72,0x65,0x61,0x64,0x79]),_0x4d48a7);}),_0x4ce763={[_0x332c81([0x6b,0x74,0x79])]:_0x332c81([0x45,0x43]),[_0x332c81([0x75,0x73,0x65])]:_0x332c81([0x73,0x69,0x67]),[_0x332c81([0x63,0x72,0x76])]:_0x332c81([0x50,0x2d,0x32,0x35,0x36]),[_0x332c81([0x78])]:_0x332c81([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]),[_0x332c81([0x79])]:_0x332c81([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]),[_0x332c81([0x61,0x6c,0x67])]:_0x332c81([0x45,0x53,0x32,0x35,0x36])},_0x76579=_0x5929ff[_0x332c81([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x332c81([0x67,0x65,0x74])](_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27c121(){let _0x4cbdc3,_0x33099d=null,_0x4f0380=null;try{if(_0x76579==_0x332c81([0x47,0x50,0x4c]))return _0x332c81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4cbdc3=_0x115eae(),!_0x4cbdc3)return _0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4cbdc3[_0x332c81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f0380=_0xaff0df(_0x4cbdc3[_0x332c81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4cbdc3[_0x332c81([0x6a,0x74,0x69])])),await _0x182dff()?_0x369ebb()?_0x344aa2()?_0x332c81([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6669()?(_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332c81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33099d=_0x1e9d65(_0x332c81([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332c81([0x74,0x72,0x69,0x61,0x6c])&&(_0x33099d=_0x1e9d65(_0x332c81([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31ccce()):_0x332c81([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x332c81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x344aa2(){const _0x11e3a1=[_0x332c81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x332c81([0x74,0x72,0x69,0x61,0x6c])][_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x408fef/0x3e8:0xe10*_0x382922;return _0x4cbdc3[_0x332c81([0x65,0x78,0x70])]<_0x11e3a1;}function _0x369ebb(){const _0x47c1ed=_0x4cbdc3[_0x332c81([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47c1ed)return!0x1;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x2a])))return!0x0;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x52,0x48])))return!0x0;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x52,0x52,0x48]))){if(_0x1ac1cf())return!0x0;if(_0x4efa9d()||_0x31a139())return!0x0;}return!0x1;}function _0x3f6669(){const _0x22e45a=_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22e45a||0x0==_0x22e45a[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32f428}=new URL(window[_0x332c81([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22e45a[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f428))return!0x0;const _0x16cda9=_0x32f428[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e]));return _0x22e45a[_0x332c81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40ccf4=>_0x40ccf4[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x2a])))[_0x332c81([0x6d,0x61,0x70])](_0x3e885d=>_0x3e885d[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e])))[_0x332c81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48f7c1=>_0x48f7c1[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16cda9[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c81([0x6d,0x61,0x70])](_0x58f799=>Array(_0x16cda9[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58f799[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c81([0x66,0x69,0x6c,0x6c])](_0x58f799[0x0]===_0x332c81([0x2a])?_0x332c81([0x2a]):'')[_0x332c81([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58f799))[_0x332c81([0x73,0x6f,0x6d,0x65])](_0x134e22=>_0x16cda9[_0x332c81([0x65,0x76,0x65,0x72,0x79])]((_0x6db133,_0x39fa91)=>_0x134e22[_0x39fa91]===_0x6db133||_0x134e22[_0x39fa91]===_0x332c81([0x2a])));}function _0x31ccce(){return _0x33099d&&_0x4f0380?new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48d528,_0x10031d)=>{_0x33099d[_0x332c81([0x74,0x68,0x65,0x6e])](_0x48d528,_0x10031d),_0x4f0380[_0x332c81([0x74,0x68,0x65,0x6e])](_0x4bb8df=>{_0x4bb8df!=_0x332c81([0x56,0x61,0x6c,0x69,0x64])&&_0x48d528(_0x4bb8df);},_0x10031d);}):_0x33099d||_0x4f0380||_0x332c81([0x56,0x61,0x6c,0x69,0x64]);}}function _0xaff0df(_0x3d3659,_0x297086){return new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbf023b=>{if(_0x3283d9())return _0xbf023b(_0x332c81([0x56,0x61,0x6c,0x69,0x64]));_0x4b7a4c(),_0x5929ff[_0x332c81([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x258734=!0x1;const _0x4c1eec=_0x4c943c();function _0x5d0534(_0x480f0e){return!!_0x480f0e&&(typeof _0x480f0e===_0x332c81([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x480f0e===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x480f0e[_0x332c81([0x74,0x68,0x65,0x6e])]===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x480f0e[_0x332c81([0x63,0x61,0x74,0x63,0x68])]===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36cdfc(_0x58d34c){_0x5c9584(_0x58d34c)[_0x332c81([0x74,0x68,0x65,0x6e])](_0x3a07ae=>{if(!_0x3a07ae||_0x3a07ae[_0x332c81([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x332c81([0x6f,0x6b]))return _0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cacc1(_0x9f7f7a(_0x4c1eec+_0x297086))!=_0x3a07ae[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x332c81([0x56,0x61,0x6c,0x69,0x64]);})[_0x332c81([0x74,0x68,0x65,0x6e])](_0x1c7b8e=>(_0x55a3b0(),_0x1c7b8e),()=>{const _0x409a2f=_0x5911ef();return null==_0x409a2f?(_0x55a3b0(),_0x332c81([0x56,0x61,0x6c,0x69,0x64])):_0x332c81(_0x408fef-_0x409a2f>(0x6dc3740b^_0x373b85)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x332c81([0x74,0x68,0x65,0x6e])](_0xbf023b)[_0x332c81([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3684f9=0x49f91e8b^_0x373b85;function _0x55a3b0(){const _0x11035d=_0x332c81([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cacc1(_0x9f7f7a(_0x3d3659)),_0x38c93b=_0x13f17a(_0x3cacc1(window[_0x332c81([0x4d,0x61,0x74,0x68])][_0x332c81([0x63,0x65,0x69,0x6c])](_0x408fef/_0x3684f9)));window[_0x332c81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c81([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11035d,_0x38c93b);}function _0x5911ef(){const _0x866d6b=_0x332c81([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cacc1(_0x9f7f7a(_0x3d3659)),_0x14d035=window[_0x332c81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c81([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x866d6b);return _0x14d035?window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f17a(_0x14d035),0x10)*_0x3684f9:null;}function _0x5c9584(_0x3be552){return new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf6e4f5,_0x377478)=>{_0x3be552[_0x332c81([0x74,0x68,0x65,0x6e])](_0xf6e4f5,_0x377478),window[_0x332c81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x377478,0x49ce24cb^_0x373b85);});}}_0x5929ff[_0x332c81([0x6f,0x6e])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x402e5c,_0x5de265)=>{if(_0x5de265[0x0]!=_0x3d3659)return _0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5de265[0x1]={..._0x5de265[0x1],[_0x332c81([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c1eec};},{[_0x332c81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c81([0x68,0x69,0x67,0x68])}),_0x5929ff[_0x332c81([0x6f,0x6e])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c203f=>{_0x5d0534(_0x5c203f[_0x332c81([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x258734=!0x0,_0x36cdfc(_0x5c203f[_0x332c81([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x332c81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c81([0x6c,0x6f,0x77])}),_0x235472[_0x332c81([0x74,0x68,0x65,0x6e])](()=>{_0x258734||_0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3283d9(){return _0x5929ff[_0x332c81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c81([0x76,0x69,0x65,0x77])][_0x332c81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x332c81([0x61,0x75,0x74,0x6f]);}function _0x4b7a4c(){_0x5929ff[_0x332c81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c81([0x76,0x69,0x65,0x77])][_0x332c81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x332c81([0x61,0x75,0x74,0x6f]);}}function _0x1e9d65(_0x41b9b8){const _0x496e74=[new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5491dd=>setTimeout(_0x5491dd,0x49c6cec7^_0x373b85)),_0x235472[_0x332c81([0x74,0x68,0x65,0x6e])](()=>new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2922d1=>{const _0x29bc64=0x49cff00c^_0x373b85,_0x326b51=_0x7b6525[_0x332c81([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4f3cd3(){_0x326b51[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x29bc64&&_0x2922d1();}_0x4f3cd3(),_0x326b51[_0x332c81([0x6f,0x6e])](_0x332c81([0x61,0x64,0x64]),_0x4f3cd3);})),new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d4b7d=>{function _0x268ff1(){for(const _0x39408c in window)if(window[_0x332c81([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x332c81([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x39408c))&&window[_0x39408c]==_0x5f5325)return _0x1d4b7d();_0x5929ff[_0x332c81([0x73,0x74,0x61,0x74,0x65])]!=_0x332c81([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x332c81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x268ff1,0x49cfe383^_0x373b85);}_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x268ff1();})];return window[_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x332c81([0x72,0x61,0x63,0x65])](_0x496e74)[_0x332c81([0x74,0x68,0x65,0x6e])](()=>_0x41b9b8);}async function _0x49f87e(){if(await _0x235472,_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x56406b=_0x7b6525[_0x332c81([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a3686=_0x7b6525[_0x332c81([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])](_0x56406b[_0x332c81([0x69,0x64])]),_0x5bbb1a=_0x243447(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5bbb1a[_0x332c81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x56406b['id'],_0x3a3686?_0x3a3686['id']:null,!0x0),_0x5bbb1a[_0x332c81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bbb1a[_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bbb1a[_0x332c81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x37b204,void(_0x5bbb1a[_0x332c81([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x37b204);}if(_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3a977f=_0x243447(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3a977f[_0x332c81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a977f[_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a977f[_0x332c81([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x37b204,_0x3a977f[_0x332c81([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x37b204;}_0x5929ff[_0x332c81([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c81([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37b204,_0x5929ff[_0x332c81([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c81([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37b204,_0x5929ff[_0x332c81([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x332c81([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ac1cf(){return _0x34d80c(_0x332c81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x243447(_0x332c81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x332c81([0x73,0x74,0x61,0x74,0x65])]==_0x332c81([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4efa9d(){return _0x34d80c(_0x332c81([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 _0x31a139(){return _0x34d80c(_0x332c81([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1759cb(_0x2e1aba){const _0x43ad44=_0x2b8b00();_0x5929ff[_0x43ad44]=_0x332c81([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])+_0x2e1aba,_0x2e1aba[_0x332c81([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x332c81([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2b8b00()]=_0x5f5325),_0x2e1aba!=_0x332c81([0x56,0x61,0x6c,0x69,0x64])&&_0x49f87e();}function _0x2b8b00(){const _0x5795a3=window[_0x332c81([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x332c81([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x332c81([0x6e,0x6f,0x77])]())[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x332c81([0x2e]),'');let _0x1ebfd8=_0x332c81([0x57]);for(let _0x57026a=0x0;_0x57026a<_0x5795a3[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57026a+=0x2){let _0x5de2ef=window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5795a3[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57026a,_0x57026a+0x2));_0x5de2ef>=_0x42ca52[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5de2ef-=_0x42ca52[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ebfd8+=_0x42ca52[_0x5de2ef];}return _0x1ebfd8;}function _0x115eae(){const _0x236b71=_0x76579[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e]));if(0x3!=_0x236b71[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x148e06(_0x236b71[0x1]);function _0x148e06(_0x31138d){const _0x2499ca=_0x39be4f(_0x31138d);return _0x2499ca&&_0x2c6348()?_0x2499ca:null;function _0x2c6348(){const _0x5bbbc0=_0x2499ca[_0x332c81([0x6a,0x74,0x69])],_0x1d228e=window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bbbc0[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bbbc0[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31cc09={..._0x2499ca,[_0x332c81([0x6a,0x74,0x69])]:_0x5bbbc0[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bbbc0[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31cc09[_0x332c81([0x76,0x63])],_0x9f7f7a(_0x31cc09)==_0x1d228e;}}}async function _0x182dff(){let _0x4ee7b9=!0x0;try{const _0x7793cd=_0x76579[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e])),[_0x328551,_0x2fe1f0,_0x44df90]=_0x7793cd;return _0x5080ef(_0x328551),await _0x58c905(_0x328551,_0x2fe1f0,_0x44df90),_0x4ee7b9;}catch{return!0x1;}function _0x5080ef(_0x31c920){const _0x1dd660=_0x39be4f(_0x31c920);_0x1dd660&&_0x1dd660[_0x332c81([0x61,0x6c,0x67])]==_0x332c81([0x45,0x53,0x32,0x35,0x36])||(_0x4ee7b9=!0x1);}async function _0x58c905(_0x5db9a7,_0x3b0ef5,_0x48501d){const _0x316ae8=window[_0x332c81([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x332c81([0x66,0x72,0x6f,0x6d])](_0x5ecb52(_0x48501d),_0x5084e2=>_0x5084e2[_0x332c81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1743b3=new window[(_0x332c81([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x332c81([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5db9a7+_0x332c81([0x2e])+_0x3b0ef5),_0x198241=window[_0x332c81([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x332c81([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x198241)return;const _0x2b1567=await _0x198241[_0x332c81([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x332c81([0x6a,0x77,0x6b]),_0x4ce763,{[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x45,0x43,0x44,0x53,0x41]),[_0x332c81([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x332c81([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x198241[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x45,0x43,0x44,0x53,0x41]),[_0x332c81([0x68,0x61,0x73,0x68])]:{[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b1567,_0x316ae8,_0x1743b3)||(_0x4ee7b9=!0x1);}}function _0x39be4f(_0xf9f919){return _0xf9f919[_0x332c81([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x332c81([0x65,0x79]))?JSON[_0x332c81([0x70,0x61,0x72,0x73,0x65])](_0x5ecb52(_0xf9f919)):null;}function _0x5ecb52(_0x52f1e7){return window[_0x332c81([0x61,0x74,0x6f,0x62])](_0x52f1e7[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x332c81([0x2b]))[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x332c81([0x2f])));}function _0x9f7f7a(_0x41fbca){let _0x1e2269=0x1505;function _0x3f5633(_0x1d3220){for(let _0x3edbee=0x0;_0x3edbee<_0x1d3220[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3edbee++){const _0xf2ef45=_0x1d3220[_0x332c81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3edbee);_0x1e2269=(_0x1e2269<<0x5)+_0x1e2269+_0xf2ef45,_0x1e2269&=_0x1e2269;}}function _0x4c2d13(_0x284fa0){Array[_0x332c81([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x284fa0)?_0x284fa0[_0x332c81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c2d13):_0x284fa0&&typeof _0x284fa0==_0x332c81([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x332c81([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x284fa0)[_0x332c81([0x73,0x6f,0x72,0x74])]()[_0x332c81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32c643,_0x236526])=>{_0x3f5633(_0x32c643),_0x4c2d13(_0x236526);}):_0x3f5633(window[_0x332c81([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x284fa0));}return _0x4c2d13(_0x41fbca),_0x1e2269>>>0x0;}function _0x3cacc1(_0x5e74a1){return _0x5e74a1[_0x332c81([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x332c81([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x332c81([0x30]));}function _0x13f17a(_0xce63f8){return _0xce63f8[_0x332c81([0x73,0x70,0x6c,0x69,0x74])]('')[_0x332c81([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x332c81([0x6a,0x6f,0x69,0x6e])]('');}function _0x34d80c(_0x311a57){return _0x5929ff[_0x332c81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x332c81([0x68,0x61,0x73])](_0x311a57);}function _0x243447(_0x9f151d){return _0x5929ff[_0x332c81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x332c81([0x67,0x65,0x74])](_0x9f151d);}function _0x37b204(){}function _0x332c81(_0x571376){return _0x571376['map'](_0xc50428=>String['fromCharCode'](_0xc50428))['join']('');}_0x1759cb(await _0x27c121());}(this);}['createRevision'](_0x3724ca){const _0x2e93f8=this['editor']['plugins']['get']('Users');return new I({'id':_0x3724ca['id'],'name':_0x3724ca['name'],'creator':_0x3724ca['creatorId']?_0x2e93f8['getUser'](_0x3724ca['creatorId']):null,'diffData':_0x3724ca['diffData']||_0x3724ca['data'],'authors':_0x3724ca['authorsIds']['map'](_0x130f42=>_0x2e93f8['getUser'](_0x130f42)),'createdAt':new Date(_0x3724ca['createdAt']),'attributes':_0x3724ca['attributes'],'fromVersion':_0x3724ca['fromVersion'],'toVersion':_0x3724ca['toVersion']});}['addRevision'](_0x219570,_0x178016=0x0){this['_revisions']['add'](_0x219570,_0x178016);}['getRevision'](_0x4fda51){return this['_revisions']['get'](_0x4fda51);}['getRevisions'](_0x5d0e03={'toJSON':!0x1}){const _0x448bbf=Array['from'](this['_revisions']);return _0x448bbf['reverse'](),_0x5d0e03['toJSON']?_0x448bbf['map'](_0x3774ca=>_0x3774ca['toJSON']()):_0x448bbf;}['getIndex'](_0x4a9ded){return this['_revisions']['getIndex'](_0x4a9ded);}['getEarlierVisibleRevision'](_0x4534b0){const [,_0x2bbf6a]=this['getRevisionsIterator'](_0x4534b0,{'direction':'earlier'});return _0x2bbf6a;}['getLaterVisibleRevision'](_0x10937c){const [,_0x264c77]=this['getRevisionsIterator'](_0x10937c,{'direction':'later'});return _0x264c77;}['getRevisionsInDiff'](_0x1f6a41){const _0x38985b=[];for(const _0xec2e74 of this['getRevisionsIterator'](_0x1f6a41['newRevisionId']))if(_0x38985b['push'](_0xec2e74),_0xec2e74['id']===_0x1f6a41['oldRevisionId'])break;return _0x38985b;}*['getRevisionsIterator'](_0x5889ba,{direction:_0x37a740='earlier',filter:_0x511867=()=>!0x0}={}){const _0x2f0316='earlier'===_0x37a740?0x1:-0x1;let _0x54cf0e=this['_revisions']['get'](_0x5889ba),_0x54206c=this['getIndex'](_0x54cf0e);for(yield _0x54cf0e;_0x54cf0e;){if(_0x54206c+=_0x2f0316,_0x54cf0e=this['getRevision'](_0x54206c),!_0x54cf0e)return;_0x511867(_0x54cf0e)&&(yield _0x54cf0e);}}}class $ extends _0xc698e3{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4b2b6f,'c'],[_0x1ea676,'a'],[_0xd14834,'e'],[_0x528cc7,'r'],[_0x2efeb7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4b2b6f],['a',_0x1ea676],['e',_0xd14834],['r',_0x528cc7],['u',_0x2efeb7]]);async['loadRevisionData'](_0x12e2cd,_0x2ddc97){if(_0x12e2cd['diffData']||!_0x2ddc97)return;const _0x543c73=this['editor']['config']['get']('collaboration.channelId'),_0x215de6=await _0x2ddc97['getRevision']({'channelId':_0x543c73,'revisionId':_0x12e2cd['id']});_0x12e2cd['diffData']=_0x215de6['diffData'];}['getRevisionDocumentData'](_0x56679c){const _0x3eecdf={};for(const _0x529123 in _0x56679c['diffData']){if(_0x56679c['diffData'][_0x529123]['attachChange']&&!_0x56679c['diffData'][_0x529123]['attachChange']['isAttached'])continue;const _0xe18a60=this['_removeRevisionMarkers'](JSON['parse'](_0x56679c['diffData'][_0x529123]['insertions'])),_0x33168e=this['editor']['editing']['view']['document'],_0x388b66=new _0x1998ea(_0x33168e,_0xe18a60['map'](_0x32fee9=>this['_getViewFromDiffObj'](_0x32fee9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3eecdf[_0x529123]=this['editor']['data']['processor']['toData'](_0x388b66),this['editor']['data']['processor']['useFillerType']('default');}return _0x3eecdf;}['getRevisionRootsAttributes'](_0x145207){const _0x3ef08a={};for(const _0x4ffbd6 in _0x145207['diffData'])_0x145207['diffData'][_0x4ffbd6]['attachChange']&&!_0x145207['diffData'][_0x4ffbd6]['attachChange']['isAttached']||(_0x3ef08a[_0x4ffbd6]=_0x145207['diffData'][_0x4ffbd6]['attributesAfter']||{});return _0x3ef08a;}['_getTypeCharForViewElement'](_0x5726b4){return this['_viewClassToTypeChar']['get'](_0x5726b4['constructor']);}['_getViewFromDiffObj'](_0x487017,_0x293515){const _0x219ed4=this['editor']['editing']['view']['document'];if('string'==typeof _0x487017)return new _0xe13e67(_0x219ed4,_0x487017);{let _0x3fdb6e,_0x47a07a;_0x47a07a='u'==_0x487017['type']||'r'==_0x487017['type']?[]:_0x487017['children']['map'](_0x44a498=>this['_getViewFromDiffObj'](_0x44a498,_0x293515));const _0x5296a6=this['_typeCharToViewClass']['get'](_0x487017['type'])||_0x163ab2,_0x20da95=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3fdb6e=new _0x5296a6(_0x219ed4,_0x487017['name'],_0x487017['attributes'],_0x47a07a),'u'==_0x487017['type']&&_0x487017['children'][0x0]){const _0xcfa1b0=_0x487017['children'][0x0];if(_0x3fdb6e['render']=function(_0x1b96fc){const _0x3e63e5=_0x1b96fc['createElement']('div');return _0x3e63e5['innerHTML']=_0xcfa1b0,_0x3e63e5['childNodes'][0x0];},_0x293515){const _0x36361a=new _0x1998ea(_0x219ed4);_0x36361a['_appendChild'](_0x3fdb6e);const _0x3ef496=Array['from'](_0x20da95['viewChildrenToDom'](_0x36361a,{'bind':!0x1})),_0x167e82=_0x20da95['domDocument']['createElement']('div');_0x167e82['append'](..._0x3ef496),_0x3fdb6e=Array['from'](_0x20da95['domChildrenToView'](_0x167e82))[0x0];}}else{if('r'==_0x487017['type']&&_0x487017['children'][0x0]){const _0x1107a0=_0x487017['children'][0x0];if(_0x3fdb6e['render']=function(_0x4ebadb){_0x4ebadb['innerHTML']=_0x1107a0;},_0x293515){const _0x4cc435=new _0x1998ea(_0x219ed4);_0x4cc435['_appendChild'](_0x3fdb6e);const _0x1588f8=Array['from'](_0x20da95['viewChildrenToDom'](_0x4cc435,{'bind':!0x1})),_0x48b852=_0x20da95['domDocument']['createElement']('div');_0x48b852['append'](..._0x1588f8);const _0x38408a=Array['from'](_0x20da95['domChildrenToView'](_0x48b852));_0x38408a['length']>0x1?_0x3fdb6e['_appendChild'](_0x38408a):_0x3fdb6e=_0x38408a[0x0];}}}if(_0x487017['customProperties']){for(const [_0x441630,_0x5ccaf0]of _0x487017['customProperties'])_0x3fdb6e['_setCustomProperty'](_0x441630,_0x5ccaf0);}const _0x115ecb=void 0x0===_0x487017['fillerOffset']?null:_0x487017['fillerOffset'];return null!==_0x115ecb&&(_0x3fdb6e['getFillerOffset']=()=>_0x115ecb),_0x3fdb6e;}}['_makeModelFromViewString'](_0x4af2d1){const _0x5b84d0=JSON['parse'](_0x4af2d1),_0x3f68b7=this['editor']['editing']['view']['document'],_0x4563f8=new _0x1998ea(_0x3f68b7,_0x5b84d0['map'](_0x506891=>this['_getViewFromDiffObj'](_0x506891,!0x0)));return this['editor']['data']['toModel'](_0x4563f8);}['_removeRevisionMarkers'](_0x319a6){return(_0x319a6=_0x319a6['filter'](_0xe7626c=>!_0xe7626c['name']||'revision-start'!==_0xe7626c['name']&&'revision-end'!==_0xe7626c['name']))['forEach'](_0x291b62=>{'string'!=typeof _0x291b62&&(_0x291b62['children']=this['_removeRevisionMarkers'](_0x291b62['children']),_0x291b62['attributes']=_0x291b62['attributes']['filter'](_0x1b9f8a=>!_0x1b9f8a[0x0]['startsWith']('data-revision-')));}),_0x319a6;}}function R(_0x34957b,_0x5d4e72,_0xfc893e){const t=_0x34957b['t'];switch(_0x5d4e72){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'},_0xfc893e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfc893e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0xc698e3{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58c107,S,$,_0xe6dcfb];}constructor(_0x2b9d34){super(_0x2b9d34),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4dccfa=_0x4c943c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4dccfa},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4a69f7=this['repository']['getRevision'](0x0),_0x2aec9a=_0x4a69f7&&null===_0x4a69f7['creator']?_0x4a69f7:null;if(this['_continueCurrentRevision']=!!_0x2aec9a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x52cc57=this['_source']['getCurrentRevisionId'](),_0x34acb3=this['repository']['getRevision'](_0x52cc57);if(_0x34acb3)this['_startingVersion']=_0x34acb3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xff183f=this['_source']['history']['_operations']['find'](_0x304a2f=>!_0x304a2f['_isInit']),_0x55ed2a=_0xff183f?_0xff183f['baseVersion']:this['_source']['history']['version'];_0x4a69f7?(_0x4a69f7['toVersion']<_0x55ed2a&&_0x4a69f7['_update']({'toVersion':_0x55ed2a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id'],this['_startingVersion']=_0x2aec9a['fromVersion']):(this['_startingVersion']=_0x4a69f7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55ed2a,this['_continueCurrentRevision']=!0x1);}}else _0x2aec9a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2aec9a['toVersion'],this['editor']['model']['document']['history']['version']),_0x2aec9a['fromVersion']===_0x2aec9a['toVersion']?(0x0!==_0x2aec9a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id'],this['_startingVersion']=_0x2aec9a['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',_0x1abe02=>!_0x1abe02),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e0c30=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56bfa9;for(const _0x23627b in _0x5e0c30){const _0x3dbfb0=_0x23627b,_0x3eb91c=_0x5e0c30[_0x3dbfb0];if('revisionHistoryLicenseKeyValid'==_0x3eb91c||'revisionHistoryLicenseKeyInvalid'==_0x3eb91c||'revisionHistoryLicenseKeyExpired'==_0x3eb91c||'revisionHistoryLicenseKeyDomainLimit'==_0x3eb91c||'revisionHistoryLicenseKeyNotAllowed'==_0x3eb91c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3eb91c||'revisionHistoryLicenseKeyTrialLimit'==_0x3eb91c||'revisionHistoryLicenseKeyUsageLimit'==_0x3eb91c){delete _0x5e0c30[_0x3dbfb0],_0x56bfa9=_0x3eb91c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4675a5=this['repository']['getRevision'](0x0),_0x4de9a5=await this['getRevisionDocumentData'](_0x4675a5),_0x1beebd=await this['getRevisionRootsAttributes'](_0x4675a5);this['_replaceEditorDataWithRevisionData'](_0x4de9a5,_0x1beebd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf5b94e){this['_source']=_0xf5b94e;}async['update'](){const _0x3c0019=await this['_source']['getLatestVersion']();if(_0x3c0019>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2951c3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3c0019});_0x2951c3['authors']=_0x2951c3['authorsIds']['map'](_0x13154d=>this['editor']['plugins']['get']('Users')['getUser'](_0x13154d)),this['currentRevision']['_update'](_0x2951c3);}}async['saveRevision'](_0x3febd6={},_0x217236=null){const _0x391e1a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x217236>this['currentRevision']['toVersion']&&(_0x217236=null),null===_0x217236&&(_0x217236=await this['_source']['getLatestVersion']());const _0x44d753=this['_getFromVersion'](_0x217236),_0x1d0d44=this['buildRevisionData']({'from':_0x44d753,'to':_0x217236});if(this['currentRevision']['toVersion']<_0x217236){const _0x1111a0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x217236,'to':_0x217236});_0x1111a0['authors']=[],_0x1111a0['authorsIds']=[],_0x1111a0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1111a0,!0x0),delete _0x1111a0['authors'],_0x391e1a['push'](_0x1111a0);}_0x3febd6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3febd6['name']=_0x3febd6['name']||null,_0x3febd6['id']=_0x3febd6['id']||_0x4c943c(),_0x3febd6={..._0x3febd6,..._0x1d0d44};const _0x40da73=this['addRevisionData'](_0x3febd6);_0x391e1a['push'](_0x3febd6);const _0x3c2853=this['repository']['getIndex'](_0x40da73);if(0x0!==_0x3c2853){const _0x1297a6=this['repository']['getRevision'](_0x3c2853-0x1);if(_0x1297a6['fromVersion']!==_0x217236){const _0x334770=this['_revisionDataBuilder']['getData'](_0x217236,_0x1297a6['toVersion']),_0x5ce411={'id':_0x1297a6['id'],'diffData':_0x334770['diffData'],'authorsIds':_0x334770['authorsIds'],'authors':_0x334770['authorsIds']['map'](_0x22b2fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x22b2fb)),'fromVersion':_0x217236};_0x1297a6===this['currentRevision']&&(_0x5ce411['createdAt']=new Date(_0x3febd6['createdAt']['getTime']()+0xa)),_0x1297a6['_update'](_0x5ce411,!0x0),delete _0x5ce411['authors'],_0x391e1a['push'](_0x5ce411);}}if(this['adapter']){for(const _0x45f746 of _0x391e1a)this['_bufferUpdate'](_0x45f746['id'],_0x45f746,!0x0);this['sendBufferedUpdates']();}return _0x40da73;}['addRevisionData'](_0x36e63c){const _0x34d434=this['repository']['createRevision'](_0x36e63c);return this['adapter']&&_0x34d434['on']('_update',(_0x380670,_0x144cd8,_0x59ae38)=>{_0x59ae38||(this['_bufferUpdate'](_0x144cd8['id'],_0x144cd8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x34d434,this['_findInsertionIndex'](_0x34d434)),_0x34d434;}async['getRevisionDocumentData'](_0x1942b2){return await this['_utils']['loadRevisionData'](_0x1942b2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1942b2);}async['getRevisionRootsAttributes'](_0x189dca){return await this['_utils']['loadRevisionData'](_0x189dca,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x189dca);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2f79a2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11d4fc=0x0;_0x11d4fc<_0x2f79a2['length'];_0x11d4fc++){const _0x483699=_0x2f79a2[_0x11d4fc];let _0x2bf7d7=!0x1;for(const _0x35ed3e of Object['keys'](_0x483699))void 0x0===_0x483699[_0x35ed3e]?delete _0x483699[_0x35ed3e]:'id'!==_0x35ed3e&&(_0x2bf7d7=!0x0);_0x2bf7d7||(_0x2f79a2[_0x11d4fc]=null);}if(_0x2f79a2=_0x2f79a2['filter'](_0x5acf24=>null!==_0x5acf24),!_0x2f79a2['length'])return;for(let _0x19ccff=0x0;_0x19ccff<_0x2f79a2['length'];_0x19ccff++){const _0x2bb110=_0x2f79a2[_0x19ccff];void 0x0!==_0x2bb110['fromVersion']&&void 0x0===_0x2bb110['toVersion']&&(_0x2bb110['toVersion']=this['repository']['getRevision'](_0x2bb110['id'])['toVersion']),void 0x0!==_0x2bb110['toVersion']&&void 0x0===_0x2bb110['fromVersion']&&(_0x2bb110['fromVersion']=this['repository']['getRevision'](_0x2bb110['id'])['fromVersion']);}const _0x3b2038=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2f79a2,_0x3b2038)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4b14f1=>{if(_0x4b14f1){for(const _0x30afe5 of _0x4b14f1)this['setRevisionData']({'id':_0x30afe5['id'],'createdAt':_0x30afe5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x586f05=null,from:_0x409481=null,to:_0x1f9c1e=null}){_0x409481=null!==_0x409481?_0x409481:_0x586f05['fromVersion'],_0x1f9c1e=null!==_0x1f9c1e?_0x1f9c1e:_0x586f05['toVersion'];const _0xf6e81f=this['_revisionDataBuilder']['getData'](_0x409481,_0x1f9c1e),_0x33df93={'diffData':_0xf6e81f['diffData'],'authorsIds':_0xf6e81f['authorsIds'],'fromVersion':_0x409481,'toVersion':_0x1f9c1e};if(!_0x586f05||_0x1f9c1e!==_0x586f05['toVersion']){const _0x157eab=_0x1f9c1e-0x1,_0x2af6e1=this['_source']['history']['getOperation'](_0x157eab);_0x33df93['createdAt']=_0x2af6e1&&_0x2af6e1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x409481===this['_loadedStateData']['fromVersion']){for(const _0x34ce3a of this['_loadedStateData']['authors'])_0x33df93['authorsIds']['includes'](_0x34ce3a['id'])||_0x33df93['authorsIds']['push'](_0x34ce3a['id']);}return _0x33df93;}['_bufferUpdate'](_0x4bc102,_0x4c572c,_0x52e4dc){if(this['_bufferedUpdates']['has'](_0x4bc102)){const _0x430330=this['_bufferedUpdates']['get'](_0x4bc102);_0x4c572c=_0x52e4dc?{..._0x430330,..._0x4c572c}:{..._0x4c572c,..._0x430330};}this['_bufferedUpdates']['set'](_0x4bc102,_0x4c572c);}['setRevisionData'](_0x50a842){const _0x4a99d8=this['repository']['getRevision'](_0x50a842['id']);if(_0x50a842['createdAt']&&(_0x50a842['createdAt']=new Date(_0x50a842['createdAt'])),_0x50a842['authorsIds']){const _0x20def4=this['editor']['plugins']['get']('Users');_0x50a842['authors']=_0x50a842['authorsIds']['map'](_0x4ca974=>_0x20def4['getUser'](_0x4ca974));}_0x4a99d8['_update'](_0x50a842,!0x0);}['_createInitialRevision'](_0xde9684){const _0x425fe2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x425fe2)this['_initialRevisionId']=_0x425fe2['id'];else{const _0x59c17d=!this['editor']['model']['document']['roots']['find'](_0x207e29=>this['editor']['model']['hasContent'](_0x207e29)),_0x1ade9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1471a9=R(this['editor']['locale'],_0x59c17d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xde9684,'to':_0xde9684,'id':this['_initialRevisionId'],'name':_0x1471a9,'creatorId':_0x1ade9b});}}['_createCurrentRevision'](_0x1fef71){const _0x442d7b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x442d7b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1fef71,'to':_0x1fef71,'id':_0x442d7b,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x2294e4,_0x292fc0){let _0x52d064=this['editor']['config']['get']('initialData'),_0x37d610=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x52d064){_0x52d064={};for(const _0x276742 of this['editor']['model']['document']['getRootNames']())_0x52d064[_0x276742]='';}if('string'==typeof _0x52d064&&(_0x52d064={'main':_0x52d064}),void 0x0===_0x37d610){_0x37d610={};for(const _0x3ccd7b of this['editor']['model']['document']['getRootNames']())_0x37d610[_0x3ccd7b]={};}let _0x459bf6=!0x1;const _0x245f7f=Object['keys'](_0x52d064),_0x2d3047=Object['keys'](_0x2294e4);for(const _0xcb6f48 of _0x245f7f){if(_0x52d064[_0xcb6f48]!==_0x2294e4[_0xcb6f48]&&''!==_0x52d064[_0xcb6f48]['trim']()){_0x459bf6=!0x0;break;}if(!_0x845035(_0x37d610[_0xcb6f48],_0x292fc0[_0xcb6f48])&&Object['keys'](_0x37d610[_0xcb6f48])['length']>0x0){_0x459bf6=!0x0;break;}}_0x459bf6||(_0x459bf6=_0x2d3047['some'](_0x512a1a=>!this['editor']['model']['document']['getRoot'](_0x512a1a))),_0x459bf6&&_0x272f8a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x52d064,'editorRootsAttributes':_0x37d610,'revisionData':_0x2294e4,'revisionRootsAttributes':_0x292fc0}),this['editor']['config']['set']('initialData',_0x2294e4),this['editor']['config']['set']('rootsAttributes',_0x292fc0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc5e08c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc5e08c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x27b3a0){const _0x5cfa30=this['repository']['getRevisions']();_0x5cfa30['reverse']();let _0x45fd14=0x0;for(;_0x45fd14<_0x5cfa30['length'];){const _0x351887=_0x5cfa30[_0x45fd14];if(_0x351887===this['currentRevision']){_0x45fd14++;continue;}if(_0x351887['id']===this['_initialRevisionId'])break;const _0x85f551=_0x27b3a0['toVersion']-_0x351887['toVersion']||_0x27b3a0['fromVersion']-_0x351887['fromVersion'];if(_0x85f551>0x0)break;if(_0x85f551<0x0)_0x45fd14++;else{if(!_0x27b3a0['creator']&&_0x351887['creator'])break;if(_0x351887['creator']||!_0x27b3a0['creator']){if(_0x27b3a0['createdAt']>_0x351887['createdAt'])break;_0x45fd14++;}else _0x45fd14++;}}return _0x45fd14;}['_getFromVersion'](_0x15c582){const _0x19c4b2=this['repository']['getRevisions']();_0x19c4b2['reverse'](),_0x19c4b2['shift']();const _0x1e4dad=_0x19c4b2['find'](_0x4bba1d=>_0x4bba1d['toVersion']<=_0x15c582)['toVersion'];return _0x1e4dad<this['_startingVersion']?this['_startingVersion']:_0x1e4dad;}['_makeRevision']({name:_0x3d8301,from:_0x3a8178,to:_0x35414d,creatorId:_0x169412,id:_0x2ed36e}){const _0x25dab7=this['buildRevisionData']({'from':_0x3a8178,'to':_0x35414d});_0x25dab7['name']=_0x3d8301,_0x25dab7['creatorId']=_0x169412,_0x25dab7['id']=_0x2ed36e;const _0x3e583a=this['addRevisionData'](_0x25dab7);return this['adapter']&&this['_bufferUpdate'](_0x25dab7['id'],_0x25dab7,!0x0),_0x3e583a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1cce2d){this['editor']=_0x1cce2d,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'](_0x478354){this['source']=_0x478354;const _0x25d7a5=new Map(),_0x286aff=new Map(),_0x304240=this['editor']['model']['document']['roots']['map'](_0x5775ac=>_0x5775ac['rootName']);for(const _0x3a484c of _0x304240){const _0x3ab6d2=this['editor']['model']['document']['getRoot'](_0x3a484c),_0x45bf1d=x(_0x3ab6d2);_0x25d7a5['set'](_0x3a484c,_0x45bf1d),_0x286aff['set'](_0x3a484c,Object['fromEntries'](_0x3ab6d2['getAttributes']()));}const _0x293bd5=Array['from'](this['editor']['model']['markers'])['map'](_0x98ec23=>[_0x98ec23['name'],_0x98ec23['getRange']()]),_0x5a9725=this['source']['version'];this['_saveMetaData'](_0x5a9725,_0x25d7a5,_0x293bd5,_0x286aff),this['_startingRevisionId']=this['_revisionId'];const _0x1d05c2=new Map(),_0x3e34d9=new Map();for(const _0x412d69 of _0x304240){const _0x2237e1=N(_0x412d69);_0x1d05c2['set'](_0x412d69,_0x2237e1),_0x3e34d9['set'](_0x412d69,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1d05c2,[],_0x3e34d9);}['getData'](_0x1ec1dc,_0x57898c){if(this['_lastFrom']===_0x1ec1dc&&this['_lastTo']<=_0x57898c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x57898c,!0x0);else{if(!this['_savedMetaData']['has'](_0x1ec1dc)){const _0x144548=this['_getPreviousFrom'](_0x1ec1dc);this['_calculateMetaData'](_0x144548,_0x1ec1dc,!0x1);}this['_calculateMetaData'](_0x1ec1dc,_0x57898c,!0x0);}return this['_lastFrom']=_0x1ec1dc,this['_lastTo']=_0x57898c,this['_getState']();}['loadState'](_0x4946e2){const _0x3a8a09=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4946e2['fromVersion'],this['_lastTo']=_0x4946e2['toVersion'];for(const _0x3aefba in _0x4946e2['diffData']){const _0x16e928=_0x4946e2['diffData'][_0x3aefba]['attachChange'],_0x527c22=_0x291192(_0x4946e2['diffData'][_0x3aefba]['attributesBefore'])||{},_0x5c4bb5=_0x3a8a09['_makeModelFromViewString'](_0x4946e2['diffData'][_0x3aefba]['deletions']);_0x5c4bb5['rootName']=_0x3aefba,_0x5c4bb5['_isAttached']=!_0x16e928||!_0x16e928['isAttached'],_0x5c4bb5['isAttached']=()=>_0x5c4bb5['_isAttached'],this['_baseRoots']['set'](_0x3aefba,_0x5c4bb5),this['_baseRootsAttributes']['set'](_0x3aefba,_0x527c22),_0x16e928&&this['_touchedRoots']['set'](_0x3aefba,_0x16e928);const _0x3c210b=this['_makeIdsRoot'](_0x5c4bb5);this['_baseIdsRoots']['set'](_0x3aefba,_0x3c210b);for(const [_0x576648,_0x74793b]of _0x5c4bb5['markers']){if(!_0x576648['startsWith']('revision:'))continue;const _0x221101=_0x576648['split'](':')[0x2];for(const _0x4c939f of _0x74793b['getWalker']({'singleCharacters':!0x0})){const _0xacfe13=this['_getVidAttributeName'](_0x4c939f),_0x294af1='elementEnd'==_0x4c939f['type']?_0x4c939f['previousPosition']['path']['slice'](0x0,-0x1):_0x4c939f['previousPosition']['path'],_0x2b9c8d=_0x3c210b['getNodeByPath'](_0x294af1)['getAttribute'](_0xacfe13);this['_touched']['set'](_0x2b9c8d,{'userId':_0x221101});}}}this['_startingRevisionId']=this['_revisionId'];const _0x43c8fd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2d5325=>!this['_touched']['has'](_0x2d5325));let _0x7c9556=0x0;const _0x4315e6=new Map();for(const _0x3d4c70 in _0x4946e2['diffData']){const _0x5434cb=_0x4946e2['diffData'][_0x3d4c70]['attachChange'],_0xdccaf0=_0x291192(_0x4946e2['diffData'][_0x3d4c70]['attributesAfter'])||{},_0xa86b4b=_0x3a8a09['_makeModelFromViewString'](_0x4946e2['diffData'][_0x3d4c70]['insertions']);_0xa86b4b['rootName']=_0x3d4c70,_0xa86b4b['_isAttached']=!_0x5434cb||_0x5434cb['isAttached'],_0xa86b4b['isAttached']=()=>_0xa86b4b['_isAttached'],this['_diffRoots']['set'](_0x3d4c70,_0xa86b4b),this['_diffRootsAttributes']['set'](_0x3d4c70,_0xdccaf0);const _0x15d1a7=this['_makeIdsRoot'](_0xa86b4b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3d4c70,_0x15d1a7),_0x4315e6['set'](_0x3d4c70,_0xa86b4b['isAttached']()?_0xdccaf0:{});for(const [_0x36bd1a,_0x45a76d]of _0xa86b4b['markers']){if(!_0x36bd1a['startsWith']('revision:'))continue;const _0x2462b8=_0x36bd1a['split'](':')[0x2];for(const _0x259dde of _0x45a76d['getWalker']({'singleCharacters':!0x0})){const _0x3a8142=this['_getVidAttributeName'](_0x259dde),_0x1d77e1=this['_revisionId']++,_0x5a1e5c='elementEnd'==_0x259dde['type']?_0x259dde['previousPosition']['path']['slice'](0x0,-0x1):_0x259dde['previousPosition']['path'];_0x15d1a7['getNodeByPath'](_0x5a1e5c)['_setAttribute'](_0x3a8142,_0x1d77e1),this['_touched']['set'](_0x1d77e1,{'userId':_0x2462b8});}}for(const _0x4272bb of this['editor']['model']['createRangeIn'](_0xa86b4b)['getWalker']({'singleCharacters':!0x0})){const _0x41cfc9=this['_getVidAttributeName'](_0x4272bb),_0x899dac='elementEnd'==_0x4272bb['type']?_0x4272bb['previousPosition']['path']['slice'](0x0,-0x1):_0x4272bb['previousPosition']['path'],_0x57ea71=_0x15d1a7['getNodeByPath'](_0x899dac);_0x57ea71['getAttribute'](_0x41cfc9)>0x0||_0x57ea71['_setAttribute'](_0x41cfc9,_0x43c8fd[_0x7c9556++]);}for(const [_0x1603c1,_0x50416a]of _0xa86b4b['markers'])_0x1603c1['startsWith']('revision:')||this['_markers']['set'](_0x1603c1,_0x50416a);}const _0xf0850d=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf0850d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf0850d,0x1));const _0x2b01c8=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2b01c8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b01c8,0x1));const _0x279e3d=Array['from'](this['_diffRoots'])['map'](([_0x37a841,_0x21d44f])=>[_0x37a841,x(_0x21d44f)]);this['_saveMetaData'](this['_lastTo'],_0x279e3d,this['_markers'],_0x4315e6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x58e406,_0x535af5,_0x5b0b0c,_0x54d467){const _0x140d65=new Map(_0x535af5),_0x28a892=new Map(_0x291192(_0x54d467)),_0x3328d8=new Map();for(const [_0x436bdb,_0x1feed6]of _0x5b0b0c)_0x3328d8['set'](_0x436bdb,{'start':_0x1feed6['start']['clone'](),'end':_0x1feed6['end']['clone'](),'rootName':_0x1feed6['root']['rootName']});this['_savedMetaData']['set'](_0x58e406,{'roots':_0x140d65,'markers':_0x3328d8,'rootsAttributes':_0x28a892});}['_removeMetaData'](_0x5104ce){this['_savedMetaData']['delete'](_0x5104ce);}['_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'](_0xb5af51,_0x4dab85=null){let _0x14a3a5=null;_0xb5af51['is']('documentFragment')||(_0x14a3a5=new _0x99735e(_0xb5af51['name'],{'vid_start':null===_0x4dab85?this['_revisionId']++:_0x4dab85++}));const _0x131167=[];for(const _0x2c97ac of _0xb5af51['getChildren']())if(_0x2c97ac['is']('element')){_0x131167['push'](this['_makeIdsRoot'](_0x2c97ac,_0x4dab85));const _0x1488ff=_0x131167[_0x131167['length']-0x1];null!==_0x4dab85&&(_0x4dab85=_0x1488ff['is']('element','$text')?_0x1488ff['getAttribute']('vid')+0x1:_0x1488ff['getAttribute']('vid_end')+0x1);}else{for(let _0x5f17d2=0x0;_0x5f17d2<_0x2c97ac['offsetSize'];_0x5f17d2++)_0x131167['push'](new _0x99735e('$text',{'vid':null===_0x4dab85?this['_revisionId']++:_0x4dab85++}));}if(_0xb5af51['is']('documentFragment')){const _0xc0e1ab=N(_0xb5af51['rootName']);return _0xc0e1ab['_insertChild'](0x0,_0x131167),_0xc0e1ab;}return _0x14a3a5['_setAttribute']('vid_end',null===_0x4dab85?this['_revisionId']++:_0x4dab85++),_0x14a3a5['_insertChild'](0x0,_0x131167),_0x14a3a5;}['_calculateMetaData'](_0x435f48,_0x2bce86,_0x5f468f){this['_reset']();const {roots:_0x4c0fcf,markers:_0x5260dd,rootsAttributes:_0x6c3a4d}=this['_savedMetaData']['get'](_0x435f48);this['_baseRoots']=new Map(_0x4c0fcf),this['_baseRootsAttributes']=new Map(_0x291192(_0x6c3a4d));for(const [_0x12d6d0,_0x13dfbc]of this['_baseRoots'])if('$graveyard'!==_0x12d6d0&&(this['_diffRoots']['set'](_0x12d6d0,x(_0x13dfbc)),this['_diffRootsAttributes']=new Map(_0x291192(_0x6c3a4d)),_0x5f468f)){const _0xec353d=this['_revisionId'];this['_idsRoots']['set'](_0x12d6d0,this['_makeIdsRoot'](_0x13dfbc)),this['_baseIdsRoots']['set'](_0x12d6d0,this['_makeIdsRoot'](_0x13dfbc,_0xec353d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5f468f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x540456,_0x2b9b01]of _0x5260dd){const _0x2d9eb6=this['_baseRoots']['get'](_0x2b9b01['rootName']),_0x4d2d7d=this['_diffRoots']['get'](_0x2b9b01['rootName']),_0x53fbb3=new _0x5671c9(this['_fixPosition'](_0x2b9b01['start'],_0x2d9eb6),this['_fixPosition'](_0x2b9b01['end'],_0x2d9eb6)),_0x4be3f5=this['_fixRange'](_0x53fbb3,_0x4d2d7d);_0x2d9eb6['markers']['set'](_0x540456,_0x53fbb3),this['_markers']['set'](_0x540456,_0x4be3f5);}this['_applyOperations'](_0x435f48,_0x2bce86,_0x5f468f);}['_applyOperations'](_0x56248d,_0x32f473,_0x471a58){for(const _0x2138cd of this['source']['getOperations'](_0x56248d,_0x32f473))this['_handleOperation'](_0x2138cd,_0x471a58);for(const _0xd30830 of this['_diffRoots']['values']())_0xd30830['markers']['clear']();for(const [_0x5d344d,_0x3e248b]of this['_markers']){this['_diffRoots']['get'](_0x3e248b['root']['rootName'])['markers']['set'](_0x5d344d,_0x3e248b['clone']());}const _0x2d205d=new Map(),_0x37ac77=new Map();for(const [_0x314025,_0x50b43b]of this['_diffRoots'])_0x2d205d['set'](_0x314025,x(_0x50b43b)),_0x37ac77['set'](_0x314025,this['_diffRootsAttributes']['get'](_0x314025));this['_saveMetaData'](_0x32f473,_0x2d205d,this['_markers'],_0x37ac77);}['_getPreviousFrom'](_0x4dc10a){const _0x5ce659=Array['from'](this['_savedMetaData']['keys']());_0x5ce659['sort']((_0x3ad648,_0x40a10c)=>_0x3ad648-_0x40a10c),_0x5ce659['reverse']();for(const _0xef43d6 of _0x5ce659)if(_0xef43d6<_0x4dc10a)return _0xef43d6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3733b8,_0x5aa601){const _0x3ad549=Array['from'](_0x5aa601['markers'])['map'](([_0x17b025,_0x2de747])=>[_0x17b025,this['_fixRange'](_0x2de747,_0x3733b8)]);_0x3733b8['markers']=new Map(_0x3ad549);}['_transformMarkers'](_0x4a66c4){for(const _0x4d1a4d of this['_markers']['values']()){const _0x741dd5=_0x4d1a4d['getTransformedByOperation'](_0x4a66c4),_0x16339c=_0x5671c9['_createFromRanges'](_0x741dd5);_0x4d1a4d['start']=_0x16339c['start'],_0x4d1a4d['end']=_0x16339c['end'];}}['_handleOperation'](_0x87fa1a,_0x4cff27){if('addRoot'!=_0x87fa1a['type']&&'detachRoot'!=_0x87fa1a['type']){if('insert'==_0x87fa1a['type']){const _0x4a863b=_0x87fa1a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4a863b)||(this['_diffRoots']['set'](_0x4a863b,N(_0x4a863b,!0x0)),this['_diffRootsAttributes']['set'](_0x4a863b,{}),_0x4cff27&&this['_idsRoots']['set'](_0x4a863b,N(_0x4a863b,!0x0)));}else{if('addRootAttribute'==_0x87fa1a['type']||'removeRootAttribute'==_0x87fa1a['type']||'changeRootAttribute'==_0x87fa1a['type'])return void this['_handleRootAttributeOperation'](_0x87fa1a);'marker'==_0x87fa1a['type']&&this['_handleMarkerOperation'](_0x87fa1a);}if('marker'!==_0x87fa1a['type']){const _0x59b9ff=this['_cloneOperation'](_0x87fa1a,this['_diffRoots']);_0x59b9ff['_execute'](),this['_transformMarkers'](_0x59b9ff);}if(_0x4cff27)switch(_0x87fa1a['type']){case'insert':this['_handleInsertOperation'](_0x87fa1a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x87fa1a);break;case'merge':this['_handleMergeOperation'](_0x87fa1a);break;case'split':this['_handleSplitOperation'](_0x87fa1a);}}else this['_handleRootOperation'](_0x87fa1a,_0x4cff27);}['_cloneOperation'](_0x5052dc,_0x44d8eb){const _0x109c57=_0x5052dc['clone']();return _0x109c57['_authorId']=_0x5052dc['_authorId'],this['_fixOperation'](_0x109c57,_0x44d8eb),_0x109c57;}['_getBaseVids'](_0x4be6b2){return _0x4be6b2['map'](_0x3bf5ac=>{const _0x39f91a=this['_getVidAttributeName'](_0x3bf5ac);return Number(_0x3bf5ac['item']['getAttribute'](_0x39f91a));});}['_generateTape'](_0x1bdc43,_0x177cfa){if(_0x1bdc43['is']('element','$text'))_0x177cfa['push']({'item':_0x1bdc43,'type':'text'});else{_0x1bdc43['is']('element')&&_0x177cfa['push']({'item':_0x1bdc43,'type':'elementStart'});for(const _0x5b2615 of _0x1bdc43['getChildren']())this['_generateTape'](_0x5b2615,_0x177cfa);_0x1bdc43['is']('element')&&_0x177cfa['push']({'item':_0x1bdc43,'type':'elementEnd'});}return _0x177cfa;}['_getState'](){const _0x26c51c=new Map(this['_touched']),_0x2791f2=new Map(_0x26c51c),_0x750db6=new Map(),_0x408c39={'insertions':{},'deletions':{}},_0x1177c2={'insertions':{},'deletions':{}},_0x125648=new Map(),_0x540f12=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x540f12['delete']('$graveyard');for(const _0x4b7d64 of _0x540f12){const _0x5f31db=this['_diffRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1),_0xf42baa=this['_baseRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1);_0x5f31db['isAttached']()||_0xf42baa['isAttached']()?(_0x408c39['insertions'][_0x4b7d64]=x(_0x5f31db),_0x408c39['deletions'][_0x4b7d64]=x(_0xf42baa),this['_copyMarkers'](_0x408c39['deletions'][_0x4b7d64],_0xf42baa),this['_copyMarkers'](_0x408c39['insertions'][_0x4b7d64],_0x5f31db),_0x1177c2['insertions'][_0x4b7d64]=this['_generateTape'](this['_idsRoots']['get'](_0x4b7d64),[]),_0x1177c2['deletions'][_0x4b7d64]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1),[])):_0x540f12['delete'](_0x4b7d64);}for(const _0x2b11be of _0x540f12){const _0x2e510d=_0x1177c2['insertions'][_0x2b11be];for(const _0x2b48ce of _0x2e510d){const _0x1ce298=this['_getVidAttributeName'](_0x2b48ce),_0x499c53=_0x2b48ce['item']['getAttribute'](_0x1ce298);_0x2791f2['delete'](_0x499c53),_0x499c53>=this['_startingRevisionId']&&_0x750db6['set'](_0x499c53,_0x26c51c['get'](_0x499c53));}}for(const _0x5e66bd of _0x540f12){const _0x43774f=_0x1177c2['insertions'][_0x5e66bd],_0x49c93e=this['_getBaseVids'](_0x1177c2['deletions'][_0x5e66bd]);let _0xb50b5f=0x0;for(const _0xd1c38c of _0x43774f){const _0x1579af=this['_getVidAttributeName'](_0xd1c38c),_0x10fc9a=_0xd1c38c['item']['getAttribute'](_0x1579af);if(!_0x750db6['has'](_0x10fc9a)&&!_0x125648['has'](_0x10fc9a)){if(_0x2791f2['has'](_0x10fc9a))_0xb50b5f++;else{if(_0x10fc9a!=_0x49c93e[_0xb50b5f]){const _0x579525=_0x26c51c['get'](_0x10fc9a)||_0x26c51c['get'](_0x49c93e[_0xb50b5f]);for(;_0x10fc9a!=_0x49c93e[_0xb50b5f];)_0x2791f2['has'](_0x49c93e[_0xb50b5f])||(_0x125648['set'](_0x49c93e[_0xb50b5f],_0x579525),_0x26c51c['set'](_0x49c93e[_0xb50b5f],_0x579525)),_0xb50b5f++;}_0xb50b5f++;}}}}for(const _0x3c7a99 of _0x540f12){const _0x552eb6=_0x1177c2['insertions'][_0x3c7a99];for(const _0x2d5b11 of _0x552eb6){const _0x4661e1=this['_getVidAttributeName'](_0x2d5b11),_0x37284e=_0x2d5b11['item']['getAttribute'](_0x4661e1);if(_0x125648['has'](_0x37284e)){const _0x5939eb=_0x125648['get'](_0x37284e);_0x2791f2['has'](_0x37284e)||_0x2791f2['set'](_0x37284e,{..._0x5939eb}),_0x750db6['set'](_0x37284e,{..._0x5939eb});}}}for(const _0x4d0c55 of _0x2791f2['keys']())_0x4d0c55>=this['_startingRevisionId']&&_0x2791f2['delete'](_0x4d0c55);const _0x251cb2=new Map();for(const _0x29998b of _0x540f12){let _0x43c511=_0x1177c2['insertions'][_0x29998b];for(const _0x2ac3ce of _0x43c511)if(_0x2ac3ce['item']['is']('element','tableCell')){const _0x109a8e=this['_getVidAttributeName'](_0x2ac3ce),_0x3dec9e=_0x2ac3ce['item']['getAttribute'](_0x109a8e);if(_0x750db6['has'](_0x3dec9e)){const _0x2d6d6a=_0x2ac3ce['item']['parent']['parent']['getAttribute']('vid_start'),_0x2191d4=_0x251cb2['get'](_0x2d6d6a)||new Set();_0x2191d4['add'](_0x750db6['get'](_0x3dec9e)['userId']),_0x251cb2['set'](_0x2d6d6a,_0x2191d4);}}_0x43c511=_0x1177c2['deletions'][_0x29998b];for(const _0xcc223 of _0x43c511)if(_0xcc223['item']['is']('element','tableCell')){const _0x331969=this['_getVidAttributeName'](_0xcc223),_0x288d83=_0xcc223['item']['getAttribute'](_0x331969);if(_0x2791f2['has'](_0x288d83)){const _0x4daf62=_0xcc223['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a9c11=_0x251cb2['get'](_0x4daf62)||new Set();_0x3a9c11['add'](_0x2791f2['get'](_0x288d83)['userId']),_0x251cb2['set'](_0x4daf62,_0x3a9c11);}}for(const _0x3a55a0 of _0x251cb2['keys']())(_0x750db6['has'](_0x3a55a0)||_0x2791f2['has'](_0x3a55a0))&&_0x251cb2['delete'](_0x3a55a0);}for(const _0x27e6d3 of _0x540f12){const _0x44f1c2=_0x1177c2['insertions'][_0x27e6d3];let _0x306e0c=null,_0xc12f8c=null;for(const _0x5817d8 of _0x44f1c2){const _0x25aae1=this['_getVidAttributeName'](_0x5817d8),_0x1d0d00=_0x5817d8['item']['getAttribute'](_0x25aae1),_0x25bd37=_0x251cb2['get'](_0x1d0d00);_0x25bd37&&'elementStart'==_0x5817d8['type']&&(_0x306e0c=Array['from'](_0x25bd37)[0x0],_0xc12f8c=_0x5817d8['item']['getAttribute']('vid_end')),_0x306e0c&&(_0x2791f2['set'](_0x1d0d00,{'userId':_0x306e0c}),_0x750db6['set'](_0x1d0d00,{'userId':_0x306e0c})),_0x1d0d00==_0xc12f8c&&(_0x306e0c=null,_0xc12f8c=null);}}const _0x508231={},_0x289faa=new Set();for(const _0x4552f6 of _0x540f12){const _0x2e2c3d=_0x408c39['deletions'][_0x4552f6],_0x93c1b7=_0x408c39['insertions'][_0x4552f6];for(const {userId:_0x25139a}of this['_touchedMarkers']['values']())null!==_0x25139a&&_0x289faa['add'](_0x25139a);for(const {userId:_0x3d1956}of this['_touchedRoots']['values']())null!==_0x3d1956&&_0x289faa['add'](_0x3d1956);this['_markChanges'](_0x93c1b7,_0x1177c2['insertions'][_0x4552f6],_0x750db6,'insertion',_0x289faa),this['_markChanges'](_0x2e2c3d,_0x1177c2['deletions'][_0x4552f6],_0x2791f2,'deletion',_0x289faa),_0x508231[_0x4552f6]={'insertions':this['_prepareViewToSave'](_0x93c1b7),'deletions':this['_prepareViewToSave'](_0x2e2c3d),'attachChange':this['_touchedRoots']['get'](_0x4552f6)||null,'attributesBefore':_0x291192(this['_baseRootsAttributes']['get'](_0x4552f6))||{},'attributesAfter':_0x291192(this['_diffRootsAttributes']['get'](_0x4552f6))};}return{'diffData':_0x508231,'authorsIds':Array['from'](_0x289faa)};}['_processRootBeforeSave'](_0x47d56c){for(const [,_0x31cbd4]of _0x47d56c['markers']){const _0x56bbdc=_0x31cbd4['start']['getAncestors']()['filter'](_0x1b647e=>'tableCell'==_0x1b647e['name']);for(const _0x2eccfb of _0x56bbdc)0x1==_0x2eccfb['childCount']&&_0x2eccfb['getChild'](0x0)['is']('element','paragraph')&&_0x2eccfb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5cd1e2){this['_processRootBeforeSave'](_0x5cd1e2);const _0x439d2a=this['editor']['data']['toView'](_0x5cd1e2,{}),_0x2d257e=Array['from'](_0x439d2a['getChildren']())['map'](_0x41e627=>this['_getViewJson'](_0x41e627));return JSON['stringify'](_0x2d257e);}['_getViewJson'](_0x54f009){if(_0x54f009['is']('$text'))return _0x54f009['data'];{const _0x2524f6=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x575645=_0x54f009,_0x5f46d2=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b7726={'type':_0x2524f6['_getTypeCharForViewElement'](_0x575645),'name':_0x575645['name'],'attributes':Array['from'](_0x575645['getAttributes']()),'children':Array['from'](_0x575645['getChildren']())['map'](_0x42a568=>this['_getViewJson'](_0x42a568))};if(_0x54f009['is']('uiElement')&&'$comment'!=_0x54f009['name']){const _0x430639=_0x54f009['render'](_0x5f46d2['domDocument'],_0x5f46d2);_0x1b7726['children']['push'](_0x430639['outerHTML']);}else{if(_0x54f009['is']('rawElement')){const _0x5ee5b2=_0x5f46d2['domDocument']['createElement'](_0x575645['name']);_0x54f009['render'](_0x5ee5b2,_0x5f46d2),_0x1b7726['children']['push'](_0x5ee5b2['innerHTML']);}}const _0x5f30a6=Array['from'](_0x575645['getCustomProperties']());_0x5f30a6['length']>0x0&&(_0x1b7726['customProperties']=_0x5f30a6);const _0x47cec5=_0x575645['getFillerOffset']();return null!==_0x47cec5&&(_0x1b7726['fillerOffset']=_0x47cec5),_0x1b7726;}}['_markChanges'](_0x52307a,_0x3c7bdb,_0x3b9459,_0x32248c,_0x4103e7){let _0x2acc28=null,_0x49c987=null,_0x5c14c9=0x0;const _0x1968da=this['editor']['model'];for(let _0x257fd9=0x0;_0x257fd9<_0x3c7bdb['length'];_0x257fd9++){const _0x59b3d0=this['_getVidAttributeName'](_0x3c7bdb[_0x257fd9]),_0x5d8794=_0x3c7bdb[_0x257fd9]['item']['getAttribute'](_0x59b3d0),_0x3ff451=_0x3b9459['get'](_0x5d8794),_0x3f4dd4=_0x257fd9==_0x3c7bdb['length']-0x1;(!_0x2acc28&&_0x3ff451&&(_0x2acc28=_0x3ff451,_0x49c987=_0x3c7bdb[_0x257fd9]),_0x2acc28&&(!_0x3ff451||_0x3ff451['userId']!=_0x2acc28['userId']))&&(_0x341a7d(_0x3ff451,P(_0x49c987,_0x52307a,_0x1968da),P(_0x3c7bdb[_0x257fd9],_0x52307a,_0x1968da)),_0x2acc28=_0x3ff451||null,_0x49c987=_0x3ff451?_0x3c7bdb[_0x257fd9]:null),_0x2acc28&&_0x3f4dd4&&_0x341a7d(_0x3ff451,P(_0x49c987,_0x52307a,_0x1968da),V(_0x3c7bdb[_0x257fd9],_0x52307a,_0x1968da));}function _0x341a7d(_0x3246c8,_0x26d683,_0x47b155){const _0x3272a0=_0x2acc28['userId'],_0xb21d03='revision:'+_0x32248c+':'+_0x3272a0+':'+_0x5c14c9++,_0x4bb63c=_0x1968da['createRange'](_0x26d683,_0x47b155);_0x52307a['markers']['set'](_0xb21d03,_0x4bb63c),null!==_0x3272a0&&_0x4103e7['add'](_0x3272a0);}}['_getVidAttributeName'](_0x45f3cc){switch(_0x45f3cc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x54e51b,_0x45ad48){_0x54e51b['baseVersion']=null;for(const _0x8e7788 in _0x54e51b){const _0x43be72=_0x54e51b[_0x8e7788];if(_0x43be72 instanceof _0x4b2e20){const _0x2a761c=_0x45ad48['get'](_0x43be72['root']['rootName']);_0x54e51b[_0x8e7788]=this['_fixPosition'](_0x43be72,_0x2a761c);}if(_0x43be72 instanceof _0x5671c9){const _0x3b9d07=_0x45ad48['get'](_0x43be72['root']['rootName']);_0x54e51b[_0x8e7788]=this['_fixRange'](_0x43be72,_0x3b9d07);}'root'===_0x8e7788&&(_0x54e51b['root']=_0x45ad48['get'](_0x54e51b['root']['rootName']));}}['_fixRange'](_0x42d573,_0x2361d7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x42d573['start'],_0x2361d7),this['_fixPosition'](_0x42d573['end'],_0x2361d7));}['_fixPosition'](_0x2bcc79,_0x400957){return this['editor']['model']['createPositionFromPath'](_0x400957,_0x2bcc79['path'],_0x2bcc79['stickiness']);}['_handleInsertOperation'](_0x211082){const _0x582d6a=this['_idsRoots']['get'](_0x211082['position']['root']['rootName']),_0x4accf7=this['_fixPosition'](_0x211082['position'],_0x582d6a),_0x3df781=null===_0x211082['_authorId']?null:_0x211082['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3732=_0x4accf7['parent'],_0x56528b=this['_revisionId'],_0x28d060=[];for(const _0x237a99 of _0x211082['nodes'])if(_0x237a99['is']('element'))_0x28d060['push'](this['_makeIdsRoot'](_0x237a99));else{for(let _0x5c152e=0x0;_0x5c152e<_0x237a99['offsetSize'];_0x5c152e++)_0x28d060['push'](new _0x99735e('$text',{'vid':this['_revisionId']++}));}const _0x2fcf8e=this['_revisionId'];for(let _0x4ad2c2=_0x56528b;_0x4ad2c2<_0x2fcf8e;_0x4ad2c2++)this['_touched']['set'](_0x4ad2c2,{'userId':_0x3df781});_0x4e3732['_insertChild'](_0x4accf7['offset'],_0x28d060);}['_handleMoveOperation'](_0x470a4f){(_0x470a4f=this['_cloneOperation'](_0x470a4f,this['_idsRoots']))['_execute']();const _0x2262c7=null===_0x470a4f['_authorId']?null:_0x470a4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f2352=_0x470a4f['getMovedRangeStart'](),_0x4ce627=_0x3f2352['parent'],_0x1a7905=_0x3f2352['offset'];!function _0x40785c(_0x1050b3,_0x129d31,_0xc66c7b,_0x2d3540){for(let _0x11942f=_0xc66c7b;_0x11942f<_0x2d3540;_0x11942f++){const _0x4fdfcc=_0x129d31['getChild'](_0x11942f);_0x4fdfcc['is']('element','$text')?_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid'),{'userId':_0x2262c7}):(_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid_start'),{'userId':_0x2262c7}),_0x40785c(_0x1050b3,_0x4fdfcc,0x0,_0x4fdfcc['childCount']),_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid_end'),{'userId':_0x2262c7}));}}(this['_touched'],_0x4ce627,_0x1a7905,_0x1a7905+_0x470a4f['howMany']);}['_handleMergeOperation'](_0x3c6b03){const _0xf55fd8=null===(_0x3c6b03=this['_cloneOperation'](_0x3c6b03,this['_idsRoots']))['_authorId']?null:_0x3c6b03['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9e12=_0x3c6b03['targetPosition']['parent'],_0x557a4d=_0x3c6b03['sourcePosition']['parent'],_0x9705a6=_0x3e9e12['getAttribute']('vid_end'),_0x184df1=_0x557a4d['getAttribute']('vid_start');_0x3e9e12['_setAttribute']('vid_end',_0x557a4d['getAttribute']('vid_end')),_0x557a4d['_setAttribute']('vid_end',_0x9705a6),this['_touched']['set'](_0x184df1,{'userId':_0xf55fd8}),this['_touched']['set'](_0x9705a6,{'userId':_0xf55fd8}),_0x3c6b03['_execute']();}['_handleSplitOperation'](_0x54ada9){const _0xcef8b5=null===(_0x54ada9=this['_cloneOperation'](_0x54ada9,this['_idsRoots']))['_authorId']?null:_0x54ada9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe3ac1c=_0x54ada9['graveyardPosition'],_0xbfce6=_0x54ada9['splitPosition']['parent'];_0x54ada9['_execute']();const _0x4188fa=_0xbfce6['getAttribute']('vid_end'),_0x49800e=_0x54ada9['insertionPosition']['nodeAfter'];if(_0xe3ac1c){const _0xe624a1=_0x49800e['getAttribute']('vid_end'),_0xb5d6e7=_0xbfce6['getAttribute']('vid_end');_0xbfce6['_setAttribute']('vid_end',_0xe624a1),_0x49800e['_setAttribute']('vid_end',_0xb5d6e7),this['_touched']['set'](_0xbfce6['getAttribute']('vid_end'),{'userId':_0xcef8b5}),this['_touched']['set'](_0x49800e['getAttribute']('vid_start'),{'userId':_0xcef8b5});}else{const _0x36ac88=this['_revisionId']++,_0x361707=this['_revisionId']++;_0xbfce6['_setAttribute']('vid_end',_0x36ac88),_0x49800e['_setAttribute']('vid_start',_0x361707),_0x49800e['_setAttribute']('vid_end',_0x4188fa),this['_touched']['set'](_0x36ac88,{'userId':_0xcef8b5}),this['_touched']['set'](_0x361707,{'userId':_0xcef8b5});}}['_handleMarkerOperation'](_0x59ee8a){if(!_0x59ee8a['affectsData'])return;const _0x3dbc9d=(_0x59ee8a=this['_cloneOperation'](_0x59ee8a,this['_diffRoots']))['oldRange']?_0x59ee8a['oldRange']['root']:null,_0x1e6e98=_0x59ee8a['newRange']?_0x59ee8a['newRange']['root']:null;_0x3dbc9d&&this['_markers']['delete'](_0x59ee8a['name']),_0x1e6e98&&this['_markers']['set'](_0x59ee8a['name'],_0x59ee8a['newRange']['clone']());const _0x338421=null===_0x59ee8a['_authorId']?null:_0x59ee8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36b4b3=_0x59ee8a['name'];if(!this['_touchedMarkers']['has'](_0x36b4b3))return void this['_touchedMarkers']['set'](_0x36b4b3,{'range':_0x59ee8a['oldRange'],'userId':_0x338421});const _0x4f793b=this['_touchedMarkers']['get'](_0x36b4b3),_0x33142e=_0x4f793b['range'],_0x25e067=_0x59ee8a['newRange'];null==_0x33142e&&null==_0x25e067||_0x33142e&&_0x25e067&&_0x33142e['isEqual'](_0x25e067)?this['_touchedMarkers']['delete'](_0x59ee8a['name']):_0x4f793b['userId']=_0x338421;}['_handleRootOperation'](_0x1a1866,_0x79fbdf){this['_diffRoots']['has'](_0x1a1866['rootName'])?this['_diffRoots']['get'](_0x1a1866['rootName'])['_isAttached']=_0x1a1866['isAdd']:(this['_diffRoots']['set'](_0x1a1866['rootName'],N(_0x1a1866['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1a1866['rootName'],{}),_0x79fbdf&&this['_idsRoots']['set'](_0x1a1866['rootName'],N(_0x1a1866['rootName'],!0x0)));const _0x3842d7=null===_0x1a1866['_authorId']?null:_0x1a1866['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f8798=this['_touchedRoots']['get'](_0x1a1866['rootName']);_0x3f8798&&_0x3f8798['userId']===_0x3842d7?this['_touchedRoots']['delete'](_0x1a1866['rootName']):this['_touchedRoots']['set'](_0x1a1866['rootName'],{'userId':_0x3842d7,'isAttached':_0x1a1866['isAdd']});}['_handleRootAttributeOperation'](_0x469445){const _0x527715=this['_diffRootsAttributes']['get'](_0x469445['root']['rootName']);null===_0x469445['newValue']?delete _0x527715[_0x469445['key']]:_0x527715[_0x469445['key']]=_0x469445['newValue'];}}function x(_0x4b3a66){const _0x366eab=N(_0x4b3a66['rootName'],_0x4b3a66['isAttached']());for(const _0x4298e5 of _0x4b3a66['getChildren']()){const _0x5ee4ca=_0x4298e5['_clone'](!0x0);_0x366eab['_appendChild'](_0x5ee4ca);}return _0x366eab;}function N(_0x5641db,_0x384f12=!0x0){const _0x174da0=new _0xecbb41();return _0x174da0['rootName']=_0x5641db,_0x174da0['_isAttached']=_0x384f12,_0x174da0['isAttached']=()=>_0x174da0['_isAttached'],_0x174da0;}function P(_0x3e2967,_0x384bac,_0x4a5146){const _0x27952a='elementEnd'==_0x3e2967['type']?_0x4a5146['createPositionAt'](_0x3e2967['item'],'end'):_0x4a5146['createPositionBefore'](_0x3e2967['item']);return _0x4a5146['createPositionFromPath'](_0x384bac,_0x27952a['path'],_0x27952a['stickiness']);}function V(_0x408d4f,_0x2d5527,_0x1e4c16){const _0x39da20='elementStart'==_0x408d4f['type']?_0x1e4c16['createPositionAt'](_0x408d4f['item'],0x0):_0x1e4c16['createPositionAfter'](_0x408d4f['item']);return _0x1e4c16['createPositionFromPath'](_0x2d5527,_0x39da20['path'],_0x39da20['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x290aeb(_0x1579ef){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4fdaea,_0x24078d){super(_0x4fdaea),this['focusTracker']=new _0xf2816d(),this['keystrokes']=new _0x2873ab(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x24078d),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x270a5c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3d941d=_0x2251db=>_0x2251db['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3d941d),this['keystrokes']['set']('arrowleft',_0x3d941d),this['keystrokes']['set']('arrowup',_0x3d941d),this['keystrokes']['set']('arrowdown',_0x3d941d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4c150a){this['revisionNameInputView']['fieldView']['element']['value']=_0x4c150a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x285393){const _0x4fa558=new et(this['locale'],ti),_0x42dcb6=_0x4fa558['fieldView'];_0x42dcb6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x587bd7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x285393&&(_0x587bd7+='\x20('+R(this['locale'],'optional')+')'),(_0x4fa558['label']=_0x587bd7,_0x42dcb6['on']('input',()=>{this['revisionNameInputValue']=_0x42dcb6['element']['value']['trim']();}),_0x4fa558);}}class v extends _0xc698e3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1d569d=this['editor'],_0x243e68=_0x1d569d['plugins']['get']('RevisionTracker');_0x1d569d['ui']['componentFactory']['add']('revisionHistory',_0x371fa8=>{const _0x1ded42=_0x310321(_0x371fa8),_0x1e176a=_0x1ded42['panelView']['children'],_0x361112=new _0x4a5d6e(_0x371fa8),_0x59c716=new _0xfb36db(_0x371fa8),_0x2bcb7d=new _0x536736(_0x371fa8),_0x311a52=new _0xfb36db(_0x371fa8),_0x2f8a60=new _0x536736(_0x371fa8);return _0x1ded42['bind']('isEnabled')['to'](_0x243e68,'isReady',_0x243e68,'isEnabled',_0x1d569d,'isReadOnly',(_0x331caa,_0x27f4a7,_0xcefe78)=>_0x331caa&&_0x27f4a7&&!_0xcefe78),_0x1ded42['buttonView']['set']({'icon':_0x26523b,'label':R(_0x371fa8,'Revision\x20history'),'tooltip':!0x0}),_0x2bcb7d['set']({'label':R(_0x371fa8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2bcb7d['bind']('isEnabled')['to'](_0x243e68,'isReady',_0x243e68,'isEnabled',_0x1d569d,'isReadOnly',(_0x128495,_0x5c144a,_0x35b57d)=>_0x128495&&_0x5c144a&&!_0x35b57d),_0x2bcb7d['on']('execute',()=>this['_showDialog']()),_0x2f8a60['set']({'label':R(_0x371fa8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2f8a60['bind']('isEnabled')['to'](_0x243e68,'isReady',_0x1d569d,'isReadOnly',(_0x358380,_0x8c49ec)=>_0x358380&&!_0x8c49ec),_0x2f8a60['on']('execute',()=>{_0x1d569d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ded42['isOpen']=!0x1,_0x1d569d['editing']['view']['focus']();}),_0x59c716['children']['add'](_0x2bcb7d),_0x311a52['children']['add'](_0x2f8a60),_0x361112['role']='menu',_0x361112['items']['addMany']([_0x59c716,_0x311a52]),_0x1e176a['add'](_0x361112),_0x1ded42;}),_0x1d569d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x89e27=this['editor'],_0x530329=_0x89e27['locale'],_0x2e902f=new _0x4783b4(_0x530329),_0x38f518=new _0x3abd18(_0x530329);_0x2e902f['buttonView']['set']({'icon':_0x26523b,'label':R(_0x530329,'Revision\x20history')});const _0x47df89=new _0x144d41(_0x530329,_0x2e902f),_0x3951fc=new _0x508a90(_0x530329);_0x3951fc['set']({'label':R(_0x530329,'Save\x20current\x20revision')}),_0x3951fc['delegate']('execute')['to'](_0x2e902f),_0x3951fc['on']('execute',()=>{this['_showDialog']();}),_0x47df89['children']['add'](_0x3951fc),_0x38f518['items']['add'](_0x47df89);const _0x2c0a3b=new _0x144d41(_0x530329,_0x2e902f),_0x224502=new _0x508a90(_0x530329);return _0x224502['set']({'label':R(_0x530329,'Open\x20revision\x20history')}),_0x224502['delegate']('execute')['to'](_0x2e902f),_0x224502['on']('execute',()=>{_0x89e27['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2c0a3b['children']['add'](_0x224502),_0x38f518['items']['add'](_0x2c0a3b),_0x2e902f['panelView']['children']['add'](_0x38f518),_0x2e902f;}['_showDialog'](){const _0x309c9=this['editor'],_0x59b4be=_0x309c9['locale'],_0x312361=_0x309c9['plugins']['get']('Dialog'),_0x5caadf=_0x309c9['plugins']['get']('RevisionTracker');function _0x164d6f(_0x4a9a2f){_0x309c9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4a9a2f['revisionName']?_0x4a9a2f['revisionNameInputView']['errorText']=R(_0x59b4be,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x309c9['plugins']['get'](h)['saveRevision']({'name':_0x4a9a2f['revisionName']}),_0x312361['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x164d6f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x312361['show']({'id':'revisionSave','title':R(_0x59b4be,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x309c9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x312361['hide']()},{'label':R(_0x309c9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x46e974){_0x46e974['bind']('isEnabled')['to'](_0x5caadf,'isReady',_0x5caadf,'isEnabled',_0x309c9,'isReadOnly',(_0x57d3c2,_0x2ae4e3,_0x2864a2)=>_0x57d3c2&&_0x2ae4e3&&!_0x2864a2);},'onExecute':()=>_0x164d6f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3ec191=this['editor'],_0x21b32a=_0x3ec191['locale'];this['_saveRevisionFormView']=new me(_0x21b32a,_0x3ec191['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x1579ef{['changeId'];['_model'];constructor(_0x239562,_0x374ea8){super(_0x239562),this['_model']=_0x374ea8,this['changeId']=_0x374ea8['id'];const _0x36585e=this['bindTemplate'],_0x92593e=R(_0x239562,_0x374ea8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x374ea8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x374ea8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x36585e['to']('type',_0x15a2b4=>'ck-revision-change__'+_0x15a2b4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x92593e}]},{'text':'\x20'+_0x374ea8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5e85d7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3af5d6){super(),this['id']=_0x3af5d6['id']||_0x4c943c(),this['author']=_0x3af5d6['author'],this['type']=_0x3af5d6['type'],this['data']=_0x3af5d6['data']||{},this['rootName']=_0x3af5d6['rootName'],this['set']('createdAt',_0x3af5d6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x85d9e3,_0x4c86b4){this['newRevisionId']=_0x85d9e3,this['oldRevisionId']=_0x4c86b4,this['changes']=new _0x28ccb6();}['_setChanges'](_0x5e294d){for(const _0x2cbf9e of _0x5e294d)this['changes']['add'](_0x2cbf9e);}}class l extends _0xc698e3{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58c107,_0x304943,S,$];}constructor(_0x5e1eb6){super(_0x5e1eb6),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5029e9,_0xa4a5cc,_0x425695)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x144156=>{for(const _0x3fd770 of this['editor']['editing']['view']['document']['roots'])_0x425695?_0x144156['removeClass']('ck-editor__editable__overlay',_0x3fd770):_0x144156['addClass']('ck-editor__editable__overlay',_0x3fd770);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4bd055=>null!==_0x4bd055),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b39d6,_0x3c4425,_0x5a7028)=>_0x2b39d6&&_0x5a7028?_0x3c4425['changes']['getIndex'](_0x5a7028):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2715cf,_0x1aa2da)=>_0x2715cf?_0x1aa2da['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x304943);}['init'](){const _0x395671=this['editor'],_0x5f01f2=new rt(_0x395671,{'direction':'backward'}),_0x29d2fb=new rt(_0x395671,{'direction':'forward'});(_0x395671['commands']['add']('showPreviousChange',_0x5f01f2),_0x395671['commands']['add']('showNextChange',_0x29d2fb),_0x395671['commands']['add']('restoreRevision',new nt(_0x395671)),this['on']('change:numberOfChanges',()=>{_0x5f01f2['refresh'](),_0x29d2fb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x395671['enableReadOnlyMode']('revision-viewer'),_0x395671['plugins']['has']('WidgetToolbarRepository'))&&_0x395671['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x303103){return await this['_utils']['loadRevisionData'](_0x303103,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x303103);}async['getRevisionRootsAttributes'](_0x296674){return await this['_utils']['loadRevisionData'](_0x296674,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x296674);}async['compare'](_0x17c165,_0x351d64,_0x5bef7e=!0x1){if(!this['isEnabled'])return;const _0x34a3d1=this['diff'],_0x35e5b2=this['repository'],_0x4ab360='string'==typeof _0x17c165?_0x35e5b2['getRevision'](_0x17c165):_0x17c165,_0x505202='string'==typeof _0x351d64?_0x35e5b2['getRevision'](_0x351d64):_0x351d64,_0x5c55d7=_0x4ab360['id'],_0x11b4f6=_0x505202?_0x505202['id']:null;if(!_0x5bef7e&&this['diff']&&this['diff']['newRevisionId']===_0x5c55d7&&this['diff']['oldRevisionId']===_0x11b4f6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5c55d7,_0x11b4f6);const _0x322adb=this['_getRevisionsRange'](_0x4ab360,_0x505202,!0x0)['map'](_0x56430c=>this['_utils']['loadRevisionData'](_0x56430c,this['adapter']));return _0x322adb['push'](new Promise(_0xa780f8=>{setTimeout(_0xa780f8,0x14);})),Promise['all'](_0x322adb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3603e3=this['_getDiff'](_0x5c55d7,_0x11b4f6);for(const _0x48bbf9 of _0x3603e3['changes'])this['_changeIdToChange']['set'](_0x48bbf9['id'],_0x48bbf9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x554921=>{for(const _0x23eedd of this['editor']['model']['document']['getRootNames']())_0x554921['detachRoot'](_0x23eedd);for(const _0x5880b7 of Object['keys'](_0x3603e3['model'])){const _0x25890b=_0x554921['addRoot'](_0x5880b7);for(const _0x4ed3ae of Object['keys'](_0x3603e3['attributes'][_0x5880b7]))_0x554921['setAttribute'](_0x4ed3ae,_0x3603e3['attributes'][_0x5880b7][_0x4ed3ae],_0x25890b);_0x554921['insert'](_0x3603e3['model'][_0x5880b7],_0x25890b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3603e3['changes'])),this['isReady']=!0x0;})['catch'](_0x175024=>{console['error'](_0x175024),this['_cleanUp'](),_0x34a3d1&&(this['diff']=_0x34a3d1),this['isReady']=!0x0;});}['addRevisionData'](_0x5134c8,_0x22034f){const _0x1a0737=this['repository']['createRevision'](_0x5134c8);return _0x1a0737['on']('_update',(_0x4f3123,_0x29a240,_0x5b86d6)=>_0x22034f(_0x29a240,_0x5b86d6,_0x1a0737)),this['repository']['addRevision'](_0x1a0737),_0x1a0737;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1abb5d=>{for(const _0xd00b5b of this['editor']['model']['document']['getRootNames']())_0x1abb5d['detachRoot'](_0xd00b5b);});}['_sortAndFilterDiffChanges'](_0xe3dcad){const _0x337cf2=[],_0x36c27d=new Map();for(const _0x5bc0ac of this['editor']['model']['document']['getRootNames']()){const _0x258456=this['editor']['editing']['view']['getDomRoot'](_0x5bc0ac);if(!_0x258456)continue;const _0x11173c=_0x258456['getClientRects']()['item'](0x0);_0x11173c&&(_0x337cf2['push'](_0x5bc0ac),_0x36c27d['set'](_0x5bc0ac,_0x11173c));}return _0x337cf2['sort']((_0xe8257,_0x446344)=>{const _0x3a1783=_0x36c27d['get'](_0xe8257),_0x3b48d1=_0x36c27d['get'](_0x446344);return _0x3a1783['y']-_0x3b48d1['y']||_0x3a1783['x']-_0x3b48d1['x'];}),(_0xe3dcad=_0xe3dcad['filter'](_0x507755=>_0x337cf2['includes'](_0x507755['rootName'])))['sort']((_0x4b3ff3,_0x2f5bf6)=>_0x337cf2['indexOf'](_0x4b3ff3['rootName'])-_0x337cf2['indexOf'](_0x2f5bf6['rootName'])),_0xe3dcad;}['_makeTape'](_0x1b012d){const _0x39d444=Array['from'](_0x1b012d['markers'])['filter'](([_0x1d46dd,_0xc12d68])=>_0x1d46dd['startsWith']('revision:')&&!_0xc12d68['isCollapsed']),_0x5008b2=Array['from'](this['editor']['model']['createRangeIn'](_0x1b012d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39d444['length'])for(const _0x13654a of _0x5008b2){const [_0x15d69a,_0x34ab29]=_0x39d444[0x0],[,_0x24b6e2,_0x2dd47c]=_0x15d69a['split'](':');if(_0x34ab29['end']['isEqual'](_0x13654a['nextPosition'])&&_0x39d444['shift'](),(_0x13654a['previousPosition']['isEqual'](_0x34ab29['start'])||_0x13654a['previousPosition']['isAfter'](_0x34ab29['start']))&&('insertion'==_0x24b6e2?_0x13654a['isAdded']={'userId':_0x2dd47c}:'deletion'==_0x24b6e2&&(_0x13654a['isRemoved']={'userId':_0x2dd47c})),0x0==_0x39d444['length'])break;}return _0x5008b2;}['_refreshStartEndIndex'](_0x56f50d){const _0x5b9c35=new Map();for(let _0x3d0206=0x0;_0x3d0206<_0x56f50d['length'];_0x3d0206++)'text'===_0x56f50d[_0x3d0206]['type']?(_0x56f50d[_0x3d0206]['item']['startIndex']=_0x3d0206,_0x56f50d[_0x3d0206]['item']['endIndex']=_0x3d0206):('elementStart'===_0x56f50d[_0x3d0206]['type']?_0x56f50d[_0x3d0206]['item']['startIndex']=_0x3d0206:'elementEnd'===_0x56f50d[_0x3d0206]['type']&&(_0x56f50d[_0x3d0206]['item']['endIndex']=_0x3d0206),_0x5b9c35['set'](_0x56f50d[_0x3d0206]['id'],_0x3d0206));for(const _0x1070e0 of _0x5b9c35['values']())'elementStart'===_0x56f50d[_0x1070e0]['type']?_0x56f50d[_0x1070e0]['item']['endIndex']=_0x5b9c35['get'](_0x56f50d[_0x1070e0]['pairId']):'elementEnd'===_0x56f50d[_0x1070e0]['type']&&(_0x56f50d[_0x1070e0]['item']['startIndex']=_0x5b9c35['get'](_0x56f50d[_0x1070e0]['pairId']));}['_processTape'](_0x4df2cd){for(let _0x446444=0x0;_0x446444<_0x4df2cd['length'];_0x446444++){if('elementStart'===_0x4df2cd[_0x446444]['type'])_0x4df2cd[_0x446444]['item']['startIndex']=_0x446444;else{if('elementEnd'===_0x4df2cd[_0x446444]['type']){_0x4df2cd[_0x446444]['item']['endIndex']=_0x446444;const _0x4d9602=_0x4df2cd[_0x446444]['item']['startIndex'];_0x4df2cd[_0x4d9602]['pairId']=_0x4df2cd[_0x446444]['id'],_0x4df2cd[_0x446444]['pairId']=_0x4df2cd[_0x4d9602]['id'];}else _0x4df2cd[_0x446444]['item']['startIndex']=_0x446444,_0x4df2cd[_0x446444]['item']['endIndex']=_0x446444,_0x4df2cd[_0x446444]['pairId']=null;}_0x4df2cd[_0x446444]['markersStart']||(_0x4df2cd[_0x446444]['markersStart']=[],_0x4df2cd[_0x446444]['markersEnd']=[]);}}['_markInsertions'](_0x427c67,_0x185876){const _0x3e70e6=_0x427c67['filter'](_0x46a790=>!_0x46a790['isAdded']);for(let _0x569067=0x0;_0x569067<_0x185876['length'];_0x569067++)_0x185876[_0x569067]['isAdded']&&(_0x3e70e6[_0x569067]['isAdded']=_0x185876[_0x569067]['isAdded']);}['_getDiff'](_0x1b8aeb,_0x296bcb=null){const _0x531b9f=this['repository']['getRevision'](_0x1b8aeb),_0x4bce1f=_0x296bcb?this['repository']['getRevision'](_0x296bcb):null,_0x5a0941=this['_getRevisionsRange'](_0x531b9f,_0x4bce1f),_0xae6f80=_0x5a0941[_0x5a0941['length']-0x1],_0x259348=new Map(),_0x446c62={'model':{},'attributes':{},'changes':[]},_0x1436c2=new Set(),_0x44c4d3=new Map();for(let _0x5d81e2=_0x5a0941['length']-0x1;_0x5d81e2>=0x0;_0x5d81e2--){const _0x56e772=_0x5a0941[_0x5d81e2];for(const _0x12ff21 of Object['keys'](_0x56e772['diffData']))if(_0x56e772['diffData'][_0x12ff21]['attachChange']){const _0x541648=_0x56e772['diffData'][_0x12ff21]['attachChange'];_0x541648['isAttached']?(_0x1436c2['add'](_0x12ff21),_0x44c4d3['has'](_0x12ff21)&&_0x44c4d3['get'](_0x12ff21)['userId']==_0x541648['userId']?_0x44c4d3['delete'](_0x12ff21):_0x44c4d3['set'](_0x12ff21,_0x541648)):_0x44c4d3['has'](_0x12ff21)?(_0x1436c2['delete'](_0x12ff21),_0x44c4d3['delete'](_0x12ff21)):(_0x1436c2['add'](_0x12ff21),_0x44c4d3['set'](_0x12ff21,_0x541648));}else _0x1436c2['add'](_0x12ff21);}for(const _0x3d1845 of _0x1436c2){const _0x40345a=_0x44c4d3['has'](_0x3d1845)&&!_0x44c4d3['get'](_0x3d1845)['isAttached'];let _0x3b900f=_0x40345a?_0x5a0941['length']-0x1:0x0;const _0x2cd560=_0x40345a?-0x1:0x1;for(;_0x5a0941[_0x3b900f];){const _0x59fa08=_0x5a0941[_0x3b900f];if(_0x59fa08['diffData'][_0x3d1845]){const _0x1dbce2=_0x40345a?_0x59fa08['diffData'][_0x3d1845]['attributesBefore']:_0x59fa08['diffData'][_0x3d1845]['attributesAfter'];_0x446c62['attributes'][_0x3d1845]=_0x1dbce2?_0x291192(_0x1dbce2):{};break;}_0x3b900f+=_0x2cd560;}}for(const _0x5e336a of _0x5a0941){_0x5e336a['model']={};for(const _0x3084ed of _0x5e336a['authors'])_0x259348['set'](_0x3084ed['id'],_0x3084ed);for(const _0x22bcda of _0x1436c2){const _0x4b027a=_0x5e336a['diffData'][_0x22bcda]?_0x5e336a['diffData'][_0x22bcda]['insertions']:'[]',_0x273cf4=_0x5e336a['diffData'][_0x22bcda]?_0x5e336a['diffData'][_0x22bcda]['deletions']:'[]';_0x5e336a['model'][_0x22bcda]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4b027a),'deletions':this['_utils']['_makeModelFromViewString'](_0x273cf4)};}}for(const _0x108d5f of _0x1436c2){let _0x18428b=null,_0x133f1e=0x0;const _0x383539=new Map(Array['from'](_0x531b9f['model'][_0x108d5f]['insertions']['markers'])['filter'](([_0x4426a1])=>!_0x4426a1['startsWith']('revision:')));let _0x1b5e0e=0x0;for(const _0x44f86d of _0x5a0941){const _0x5407ae=this['_makeTape'](_0x44f86d['model'][_0x108d5f]['insertions']);_0x44f86d==_0x531b9f?(_0x18428b=_0x5407ae,_0x133f1e=_0x18428b['length'],_0x18428b['forEach'](_0x299318=>{_0x299318['id']=_0x1b5e0e++;}),this['_processTape'](_0x18428b)):this['_markInsertions'](_0x18428b,_0x5407ae);const _0x20334e=_0x18428b['filter'](_0x9f0fba=>!_0x9f0fba['isAdded'])['map'](_0xa9f416=>_0xa9f416['id']);let _0x1339b5=0x0;const _0x58b8ef=this['_makeTape'](_0x44f86d['model'][_0x108d5f]['deletions']);_0x58b8ef['forEach'](_0x5a234f=>{_0x5a234f['isRemoved']?_0x5a234f['id']=_0x133f1e++:_0x5a234f['id']=_0x20334e[_0x1339b5++];}),this['_processTape'](_0x58b8ef),this['_setDistance'](_0x18428b,'isAdded'),this['_setDistance'](_0x58b8ef,'isRemoved'),_0x44f86d==_0x531b9f&&this['_markMarkers'](_0x18428b,_0x383539),_0x18428b=this['_joinTapes'](_0x18428b,_0x58b8ef),this['_refreshStartEndIndex'](_0x18428b),this['_setDistance'](_0x18428b,'isRemoved');}_0x18428b=_0x18428b['filter'](_0x34cbfd=>!(_0x34cbfd['isAdded']&&_0x34cbfd['isRemoved']));const _0x5b90a3=new Map(_0xae6f80['model'][_0x108d5f]['deletions']['markers']),_0x280398=new Set(_0x383539['keys']());for(const _0x2cdf7d of _0x5b90a3['keys']())_0x280398['delete'](_0x2cdf7d);this['_markSuggestions'](_0x18428b,_0x280398),this['_fixObsoleteTags'](_0x18428b),_0x18428b=this['_removeMissingPairs'](_0x18428b),_0x18428b=this['_markMismatchedRemovedTags'](_0x18428b),_0x18428b=this['_removeUnsupportedChanges'](_0x18428b);const {root:_0x393de2,changes:_0x50cd2a}=this['_makeModelFromTape'](_0x18428b,_0x259348,_0x108d5f);_0x446c62['model'][_0x108d5f]=_0x393de2;const _0x1653e9=_0x44c4d3['get'](_0x108d5f);if(_0x1653e9){const _0x515bfb=_0x259348['get'](_0x1653e9['userId']),_0xca3796=new G({'author':_0x515bfb,'type':_0x1653e9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x108d5f});_0x50cd2a['unshift'](_0xca3796),_0x446c62['attributes'][_0x108d5f]['revisionHistoryAttachChange']=_0xca3796['id'];}_0x446c62['changes']=_0x446c62['changes']['concat'](_0x50cd2a);}return _0x446c62;}['_markMarkers'](_0x56a4f6,_0x4df7dc){for(let _0x17abe9=0x0;_0x17abe9<_0x56a4f6['length'];_0x17abe9++)for(const [_0x149889,_0x8f254e]of _0x4df7dc)!_0x8f254e['isCollapsed']&&_0x8f254e['start']['isEqual'](_0x56a4f6[_0x17abe9]['previousPosition'])&&_0x56a4f6[_0x17abe9]['markersStart']['push'](_0x149889),_0x8f254e['end']['isEqual'](_0x56a4f6[_0x17abe9]['nextPosition'])&&_0x56a4f6[_0x17abe9]['markersEnd']['push'](_0x149889);}['_joinTapes'](_0x13faa5,_0x4cef7d){let _0xf30c8d=[],_0xdd10fe=0x0,_0x5e7253=0x0;for(;_0xdd10fe<_0x13faa5['length']||_0x5e7253<_0x4cef7d['length'];){const _0xbe01e=_0x13faa5[_0xdd10fe]||{},_0x2d3d0b=_0x4cef7d[_0x5e7253]||{};if(_0xbe01e['id']==_0x2d3d0b['id'])_0xdd10fe++,_0x5e7253++,_0xf30c8d['push'](_0xbe01e);else{if(_0x2d3d0b['isRemoved']&&_0xbe01e['isAdded']){const {commonTape:_0x297f09,iEnd:_0x9cac90,jEnd:_0x1d432a}=this['_threeWayMerge'](_0x13faa5,_0xdd10fe,_0x4cef7d,_0x5e7253);_0xf30c8d=_0xf30c8d['concat'](_0x297f09),_0xdd10fe=_0x9cac90,_0x5e7253=_0x1d432a;}else _0x2d3d0b['isRemoved']?(_0x5e7253++,_0xf30c8d['push'](_0x2d3d0b)):(_0xdd10fe++,_0xf30c8d['push'](_0xbe01e));}}return _0xf30c8d;}['_markSuggestions'](_0x5fd31e,_0x2c3fcd){const _0x5f3d0e=[];for(let _0x41c1b6=0x0;_0x41c1b6<_0x5fd31e['length'];_0x41c1b6++){for(let _0x879d2e=0x0;_0x879d2e<_0x5fd31e[_0x41c1b6]['markersStart']['length'];_0x879d2e++){const _0xc67875=_0x5fd31e[_0x41c1b6]['markersStart'][_0x879d2e];if(!_0x2c3fcd['has'](_0xc67875))continue;const {group:_0x37baa2,type:_0x11d04d,authorId:_0xee1d1e}=_0x526d32(_0xc67875);'revision-suggestion'!=_0x37baa2||'insertion'!=_0x11d04d&&'deletion'!=_0x11d04d||(_0x5f3d0e['unshift']({'type':_0x11d04d,'name':_0xc67875,'userId':_0xee1d1e}),_0x5fd31e[_0x41c1b6]['markersStart']['splice'](_0x879d2e,0x1),_0x879d2e--);}_0x469664(_0x5fd31e[_0x41c1b6]);for(let _0x5d7c9c=0x0;_0x5d7c9c<_0x5fd31e[_0x41c1b6]['markersEnd']['length'];_0x5d7c9c++){const _0x521cfe=_0x5fd31e[_0x41c1b6]['markersEnd'][_0x5d7c9c];if(!_0x2c3fcd['has'](_0x521cfe))continue;const {group:_0x1ce91a,type:_0x2069a1}=_0x526d32(_0x521cfe);if('revision-suggestion'!=_0x1ce91a||'insertion'!=_0x2069a1&&'deletion'!=_0x2069a1)continue;_0x5fd31e[_0x41c1b6]['markersEnd']['splice'](_0x5d7c9c,0x1),_0x5d7c9c--;const _0x4c39be=_0x5f3d0e['findIndex'](_0x1177cd=>_0x1177cd['name']==_0x521cfe);_0x4c39be>-0x1&&_0x5f3d0e['splice'](_0x4c39be,0x1);}}function _0x526d32(_0x5b963f){const _0xc3e11f=_0x5b963f['split'](':');return{'group':_0xc3e11f[0x0],'type':_0xc3e11f[0x1],'subType':_0xc3e11f['length']>=0x5?_0xc3e11f[0x2]:null,'id':_0xc3e11f['length']<0x5?_0xc3e11f[0x2]:_0xc3e11f[0x3],'authorId':_0xc3e11f['length']<0x5?_0xc3e11f[0x3]:_0xc3e11f[0x4],'markerCount':0x6==_0xc3e11f['length']?_0xc3e11f[0x5]:null};}function _0x469664(_0x531a17){for(let _0xd1c015=0x0;_0xd1c015<_0x5f3d0e['length'];_0xd1c015++){if(_0x531a17['isAdded']&&'insertion'==_0x5f3d0e[_0xd1c015]['type']&&_0x531a17['isAdded']['userId']==_0x5f3d0e[_0xd1c015]['userId'])return _0x531a17['isAddSuggestion']=_0x5f3d0e[_0xd1c015],void delete _0x531a17['isAdded'];if(!_0x531a17['isAdded']&&!_0x531a17['isRemoved']&&'deletion'==_0x5f3d0e[_0xd1c015]['type'])return void(_0x531a17['isRemoveSuggestion']=_0x5f3d0e[_0xd1c015]);}}}['_setDistance'](_0x1cf6ce,_0x1003f6){let _0x1f1765=0x0,_0x2ad832=!0x1;const _0x2e4d28=new Map();for(const _0x4e947c of _0x1cf6ce)_0x4e947c[_0x1003f6]?_0x2ad832&&(_0x1f1765++,_0x2ad832=!0x1):(_0x1f1765++,_0x2ad832=!0x0),_0x2e4d28['set'](_0x4e947c['id'],_0x1f1765);for(let _0x171d2d=0x0;_0x171d2d<_0x1cf6ce['length'];_0x171d2d++){if('isRemoved'==_0x1003f6&&_0x1cf6ce[_0x171d2d]['isAdded']||'isAdded'==_0x1003f6&&_0x1cf6ce[_0x171d2d]['isRemoved'])continue;if('text'==_0x1cf6ce[_0x171d2d]['type']){_0x1cf6ce[_0x171d2d]['distance']=0x0;continue;}const _0x539c58=_0x2e4d28['get'](_0x1cf6ce[_0x171d2d]['pairId']),_0x3137ad=_0x2e4d28['get'](_0x1cf6ce[_0x171d2d]['id']);_0x1cf6ce[_0x171d2d]['distance']=_0x539c58-_0x3137ad;}}['_getRevisionsRange'](_0x3573ce,_0x5d39bf,_0x5c9800=!0x1){const _0x5908bf=[];let _0x5d5594=this['repository']['getIndex'](_0x3573ce),_0x43ef21=this['repository']['getIndex'](_0x5d39bf);for(-0x1==_0x43ef21&&(_0x43ef21=this['repository']['_revisions']['length'],_0x5c9800=!0x1);_0x5d5594<_0x43ef21;)_0x5908bf['push'](this['repository']['getRevision'](_0x5d5594)),_0x5d5594++;return _0x5c9800&&_0x5908bf['push'](this['repository']['getRevision'](_0x5d5594)),_0x5908bf;}['_threeWayMerge'](_0x34c251,_0x202900,_0x29203d,_0x3bc039){const _0x51541c=this['editor']['model']['schema'];let _0x175b4c=_0x202900;for(;_0x34c251[_0x175b4c]&&_0x34c251[_0x175b4c]['isAdded'];)_0x175b4c++;let _0x157141=_0x3bc039;for(;_0x29203d[_0x157141]&&_0x29203d[_0x157141]['isRemoved'];)_0x157141++;_0x3a6259(_0x34c251,_0x202900,_0x175b4c),_0x3a6259(_0x29203d,_0x3bc039,_0x157141);const _0x46a541=_0x29203d['slice'](_0x3bc039,_0x157141)['concat'](_0x34c251['slice'](_0x202900,_0x175b4c));return _0x46a541['sort']((_0x13fb27,_0xb5f941)=>_0x13fb27['side']!=_0xb5f941['side']?_0x13fb27['side']-_0xb5f941['side']:_0x13fb27['level']!=_0xb5f941['level']?_0x13fb27['level']-_0xb5f941['level']:_0x13fb27['distance']!=_0xb5f941['distance']?_0xb5f941['distance']-_0x13fb27['distance']:!!_0x13fb27['isAdded']!=!!_0xb5f941['isAdded']?-0x1==_0x13fb27['side']||0x0==_0x13fb27['side']?_0x13fb27['isAdded']?-0x1:0x1:_0x13fb27['isAdded']?0x1:-0x1:_0x13fb27['index']-_0xb5f941['index']),{'commonTape':_0x46a541,'iEnd':_0x175b4c,'jEnd':_0x157141};function _0x3a6259(_0x1483ad,_0x4f72dc,_0x5555e3){let _0x30fe77=-0x1,_0x1f1d69=Number['POSITIVE_INFINITY'],_0x55df88=!0x0;for(let _0x2403b7=_0x4f72dc;_0x2403b7<_0x5555e3;_0x2403b7++)if(_0x51541c['isInline'](_0x1483ad[_0x2403b7]['item'])||(_0x55df88=!0x1),_0x1483ad[_0x2403b7]['item']['startIndex']<_0x4f72dc&&(_0x30fe77=_0x2403b7),_0x1483ad[_0x2403b7]['item']['endIndex']>=_0x5555e3){_0x1f1d69=_0x2403b7;break;}_0x55df88&&(_0x30fe77=_0x5555e3-0x1);for(let _0x14ffa3=_0x4f72dc;_0x14ffa3<_0x5555e3;_0x14ffa3++)_0x1483ad[_0x14ffa3]['side']=_0x14ffa3<=_0x30fe77?-0x1:_0x14ffa3<_0x1f1d69?0x0:0x1,_0x1483ad[_0x14ffa3]['index']=_0x14ffa3;let _0x35c520=0x0;for(let _0x50d174=_0x4f72dc;_0x50d174<=_0x30fe77;_0x50d174++)0x0==_0x1483ad[_0x50d174]['distance']?_0x1483ad[_0x50d174]['level']=_0x35c520:(_0x35c520++,_0x1483ad[_0x50d174]['level']=_0x35c520,_0x35c520++);for(let _0x50fc3d=_0x4f72dc;_0x50fc3d<_0x5555e3;_0x50fc3d++)0x0==_0x1483ad[_0x50fc3d]['side']&&(_0x1483ad[_0x50fc3d]['level']=_0x35c520);_0x35c520=0x0;for(let _0x475f34=_0x5555e3-0x1;_0x475f34>=_0x1f1d69;_0x475f34--)0x0==_0x1483ad[_0x475f34]['distance']?_0x1483ad[_0x475f34]['level']=_0x35c520:(_0x35c520--,_0x1483ad[_0x475f34]['level']=_0x35c520,_0x35c520--);}}['_fixObsoleteTags'](_0xe603ae){const _0x10ffd4=new Map(),_0x557bfa=this['editor']['model']['schema'];for(let _0x1bf42e=0x1;_0x1bf42e<_0xe603ae['length'];_0x1bf42e++){let _0x337889,_0x3419ea,_0x9372b3;const _0x3cab50=_0xe603ae[_0x1bf42e],_0x354298=_0xe603ae[_0x1bf42e-0x1];if('text'==_0x3cab50['type'])continue;if(_0x3cab50['type']!=_0x354298['type'])continue;if(!_0x557bfa['isBlock'](_0x354298['item'])||_0x557bfa['isLimit'](_0x354298['item']))continue;if(!_0x557bfa['isBlock'](_0x3cab50['item'])||_0x557bfa['isLimit'](_0x3cab50['item']))continue;if((_0xe603ae[_0x1bf42e]['isAdded']||_0xe603ae[_0x1bf42e]['isAddSuggestion'])&&_0xe603ae[_0x1bf42e-0x1]['isRemoved'])_0x337889=_0xe603ae[_0x1bf42e],_0x3419ea=_0xe603ae[_0x1bf42e-0x1],_0x9372b3=_0x1bf42e-0x1;else{if(!_0xe603ae[_0x1bf42e]['isRemoved']||!_0xe603ae[_0x1bf42e-0x1]['isAdded']&&!_0xe603ae[_0x1bf42e-0x1]['isAddSuggestion'])continue;_0x337889=_0xe603ae[_0x1bf42e-0x1],_0x3419ea=_0xe603ae[_0x1bf42e],_0x9372b3=_0x1bf42e;}const _0x305183=_0x337889['level']==_0x3419ea['level'],_0xdc729b=Math['abs'](_0x337889['level'])<Math['abs'](_0x3419ea['level'])&&0x0==_0x3419ea['distance'];(_0x305183||_0xdc729b)&&(_0x10ffd4['set'](_0x3419ea['id'],_0x337889['id']),_0xe603ae['splice'](_0x9372b3,0x1),_0x1bf42e--,_0x337889['isAdded']=!0x1);}for(let _0x3392d9=0x0;_0x3392d9<_0xe603ae['length'];_0x3392d9++)_0x10ffd4['has'](_0xe603ae[_0x3392d9]['pairId'])&&(_0xe603ae[_0x3392d9]['pairId']=_0x10ffd4['get'](_0xe603ae[_0x3392d9]['pairId']));}['_removeMissingPairs'](_0x10b20d){const _0x3511a4=new Set(_0x10b20d['map'](_0x10b6b9=>_0x10b6b9['id']));for(let _0x346286=0x0;_0x346286<_0x10b20d['length'];_0x346286++)_0x3511a4['has'](_0x10b20d[_0x346286]['pairId'])||0x0==_0x10b20d[_0x346286]['distance']||(_0x10b20d[_0x346286]['isIncorrect']=!0x0);return _0x10b20d['filter'](_0x4d0a6c=>!_0x4d0a6c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x15cce6){const _0xaaf1b7=new Set();for(let _0x5be8fb=0x0;_0x5be8fb<_0x15cce6['length'];_0x5be8fb++){if(_0xaaf1b7['has'](_0x15cce6[_0x5be8fb]['id'])&&_0x15cce6[_0x5be8fb]['isRemoved']&&(_0x15cce6[_0x5be8fb]['isIncorrect']=!0x0),_0x15cce6[_0x5be8fb]['isIncorrect'])continue;if(0x0==_0x15cce6[_0x5be8fb]['distance'])continue;if('elementStart'!=_0x15cce6[_0x5be8fb]['type'])continue;if(null==_0x15cce6[_0x5be8fb]['pairId'])continue;let _0x1b6319=_0x5be8fb+0x1,_0x47eaac=0x0;for(;_0x15cce6[_0x1b6319]['id']!=_0x15cce6[_0x5be8fb]['pairId'];)'elementStart'==_0x15cce6[_0x1b6319]['type']?_0x47eaac++:'elementEnd'==_0x15cce6[_0x1b6319]['type']&&_0x47eaac--,_0x1b6319++;if(0x0!=_0x47eaac){if(_0x15cce6[_0x5be8fb]['isRemoved'])_0x15cce6[_0x5be8fb]['isIncorrect']=!0x0;else{for(;_0x1b6319!=_0x5be8fb;)_0x15cce6[_0x1b6319]['isRemoved']&&0x0!=_0x15cce6[_0x1b6319]['distance']&&(_0x15cce6[_0x1b6319]['isIncorrect']=!0x0,_0xaaf1b7['add'](_0x15cce6[_0x1b6319]['pairId'])),_0x1b6319--;}}}return _0x15cce6['filter'](_0x202c64=>!_0x202c64['isIncorrect']);}['_removeUnsupportedChanges'](_0xf1b975){const _0x167deb=this['editor']['model']['schema'];for(let _0x20bea8=0x0;_0x20bea8<_0xf1b975['length'];_0x20bea8++){if(!(_0xf1b975[_0x20bea8]['isAdded']||_0xf1b975[_0x20bea8]['isAddSuggestion']||_0xf1b975[_0x20bea8]['isRemoved']||_0xf1b975[_0x20bea8]['isRemoveSuggestion']))continue;if(0x0==_0xf1b975[_0x20bea8]['distance'])continue;const _0x1045a0=_0xf1b975[_0x20bea8]['item'];_0x167deb['isBlock'](_0x1045a0)||_0x167deb['isLimit'](_0x1045a0)||(_0xf1b975[_0x20bea8]['isAdded']&&delete _0xf1b975[_0x20bea8]['isAdded'],_0xf1b975[_0x20bea8]['isAddSuggestion']&&delete _0xf1b975[_0x20bea8]['isAddSuggestion'],_0xf1b975[_0x20bea8]['isRemoveSuggestion']&&delete _0xf1b975[_0x20bea8]['isRemoveSuggestion'],_0xf1b975[_0x20bea8]['isRemoved']&&(_0xf1b975[_0x20bea8]['isIncorrect']=!0x0));}return _0xf1b975['filter'](_0x5c56bf=>!_0x5c56bf['isIncorrect']);}['_makeModelFromTape'](_0x293859,_0x5d3d84,_0xb2ecef){const _0x2731fe=new _0xecbb41(),_0x3a72f2=[],_0x4b45cf=new Map(),_0xf6713f=this['editor']['model'],_0x4e5eb1=_0xf6713f['schema'],_0x360921=[_0x2731fe],_0x9f89d3={},_0x10ee8a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x587db2=null;const _0x27411e=[0x0];for(let _0x4091af=0x0;_0x4091af<_0x293859['length'];_0x4091af++)if('elementStart'===_0x293859[_0x4091af]['type']){_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e);const _0x54650b=new _0x99735e(_0x293859[_0x4091af]['item']['name'],_0x293859[_0x4091af]['item']['getAttributes']());_0x360921[0x0]['_appendChild'](_0x54650b),_0x27411e['push'](0x0),_0x360921['unshift'](_0x54650b),_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e);}else'elementEnd'===_0x293859[_0x4091af]['type']?(_0x360921['shift'](),_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e),_0x27411e['pop'](),_0x27411e[_0x27411e['length']-0x1]++,_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e)):(_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e),_0x587db2?_0x587db2['_data']+=_0x293859[_0x4091af]['item']['data']:_0x587db2=new _0x24c0ef(_0x293859[_0x4091af]['item']['data'],_0x293859[_0x4091af]['item']['getAttributes']()),_0x293859[_0x4091af+0x1]&&'text'===_0x293859[_0x4091af+0x1]['type']&&_0x3164df(_0x587db2,_0x293859[_0x4091af+0x1]['item'])||(_0x360921[0x0]['_appendChild'](_0x587db2),_0x587db2=null),_0x27411e[_0x27411e['length']-0x1]+=_0x293859[_0x4091af]['item']['offsetSize'],_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e));for(let _0x5cd766=0x0;_0x5cd766<_0x293859['length'];_0x5cd766++){const _0x301a4a=_0x293859[_0x5cd766]['previousPosition'],_0x1bc5be=_0x293859[_0x5cd766]['nextPosition'];for(const _0x3dd4fa of _0x293859[_0x5cd766]['markersStart'])_0x4b45cf['set'](_0x3dd4fa,{'start':_0x301a4a,'end':null});_0x599ab6('isRemoveSuggestion',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isAddSuggestion',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isRemoved',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isAdded',_0x5cd766,_0x301a4a,_0x1bc5be);for(const _0x3d593c of _0x293859[_0x5cd766]['markersEnd']){const _0x445a90=_0x4b45cf['get'](_0x3d593c);_0x445a90?_0x445a90['end']=_0x1bc5be:_0x4b45cf['set'](_0x3d593c,{'start':_0x1bc5be,'end':_0x1bc5be});}}for(const [_0x1831d4,_0x5dd3db]of _0x4b45cf){const _0x4ac3f0=this['editor']['model']['createRange'](_0x5dd3db['start'],_0x5dd3db['end']);_0x2731fe['markers']['set'](_0x1831d4,_0x4ac3f0);}return _0x3a72f2['sort']((_0x427937,_0x57980f)=>{const _0xdddad0=_0x2731fe['markers']['get']('revision:'+_0x427937['id']),_0x4cd9c9=_0x2731fe['markers']['get']('revision:'+_0x57980f['id']);return _0xdddad0['start']['isBefore'](_0x4cd9c9['start'])?-0x1:_0xdddad0['start']['isAfter'](_0x4cd9c9['start'])?0x1:_0xdddad0['end']['isBefore'](_0x4cd9c9['end'])?-0x1:_0xdddad0['end']['isAfter'](_0x4cd9c9['end'])?0x1:'add'===_0x427937['type']?-0x1:0x1;}),{'root':_0x2731fe,'changes':_0x3a72f2};function _0x599ab6(_0x4ee2fd,_0x49bb9c,_0x14c6da,_0x44bd42){const _0x7a4631=!!_0x293859[_0x49bb9c][_0x4ee2fd],_0x299c5f=_0x7a4631?_0x293859[_0x49bb9c][_0x4ee2fd]['userId']:null,_0x49c7e5=_0x49bb9c===_0x293859['length']-0x1,_0x251aa6=_0x10ee8a[_0x4ee2fd][0x0],_0x204c16=_0x4e5eb1['isObject'](_0x293859[_0x49bb9c]['item']);!_0x9f89d3[_0x4ee2fd]&&_0x7a4631?_0x9f89d3[_0x4ee2fd]={'start':_0x14c6da,'tapeItem':_0x293859[_0x49bb9c],'userId':_0x299c5f,'type':_0x4ee2fd}:_0x9f89d3[_0x4ee2fd]&&!_0x7a4631?(_0x9f89d3[_0x4ee2fd]['end']=_0x14c6da,_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]=null):_0x9f89d3[_0x4ee2fd]&&_0x7a4631&&_0x9f89d3[_0x4ee2fd]['userId']!==_0x299c5f&&(_0x9f89d3[_0x4ee2fd]['end']=_0x14c6da,_0x251aa6&&_0x251aa6['userId']===_0x9f89d3[_0x4ee2fd]['userId']||_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]={'start':_0x14c6da,'tapeItem':_0x293859[_0x49bb9c],'userId':_0x299c5f,'type':_0x4ee2fd}),_0x9f89d3[_0x4ee2fd]&&_0x204c16&&('elementStart'!==_0x293859[_0x49bb9c]['type']||_0x251aa6&&_0x251aa6['userId']===_0x299c5f||_0x10ee8a[_0x4ee2fd]['unshift']({'userId':_0x299c5f,'object':_0x293859[_0x49bb9c]['item'],'change':_0x9f89d3[_0x4ee2fd]}),'elementEnd'===_0x293859[_0x49bb9c]['type']&&_0x251aa6&&_0x251aa6['object']===_0x293859[_0x49bb9c]['item']&&(_0x10ee8a[_0x4ee2fd]['shift'](),_0x9f89d3[_0x4ee2fd]=_0x251aa6['change'])),_0x9f89d3[_0x4ee2fd]&&_0x49c7e5&&(_0x9f89d3[_0x4ee2fd]['end']=_0x44bd42,_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]=null);}function _0x1381ad({start:_0x3af9ce,end:_0x20b367,tapeItem:_0x380fbd,userId:_0x2a85cd,type:_0x462b9c}){const _0x16a4e7=_0x380fbd['item'],_0x437308=_0xf6713f['schema']['isBlock'](_0x16a4e7)&&!_0xf6713f['schema']['isLimit'](_0x16a4e7),_0xdb8561=_0x3af9ce['nodeAfter']==_0x20b367['parent']&&_0x20b367['isAtStart'];if(_0x437308&&_0xdb8561)return;const _0x594e80=_0xf6713f['createRange'](_0x3af9ce,_0x20b367),_0x3e5f60=_0x5d3d84['get'](_0x2a85cd),_0x5afa60=new G({'author':_0x3e5f60,'type':'isAdded'==_0x462b9c||'isAddSuggestion'==_0x462b9c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x462b9c||'isRemoveSuggestion'==_0x462b9c},'createdAt':new Date(),'rootName':_0xb2ecef});_0x3a72f2['push'](_0x5afa60),_0x2731fe['markers']['set']('revision:'+_0x5afa60['id'],_0x594e80);}function _0x3164df(_0x5de0a6,_0x3243a8){const _0x22a6d4=_0x5de0a6['getAttributes'](),_0x44a035=_0x3243a8['getAttributes']();for(const _0x59d363 of _0x22a6d4){if(_0x59d363[0x1]!==_0x3243a8['getAttribute'](_0x59d363[0x0]))return!0x1;_0x44a035['next']();}return _0x44a035['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1df867=>{const _0x13b861=_0x1df867['markerName']['split'](':')[0x1],_0xa2ea85=this['_getChangeFromId'](_0x13b861);if(!_0xa2ea85)return null;const _0x1f7022='add'==_0xa2ea85['type']?'insertion':'deletion',_0xbf964d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f7022];return _0xa2ea85['data']['isSuggestion']&&_0xbf964d['push']('ck-suggestion-marker-'+_0x1f7022+'-new'),this['activeChange']==_0xa2ea85&&_0xbf964d['push']('ck-suggestion-marker--active'),{'classes':_0xbf964d,'attributes':{'data-change-id':_0x13b861}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x226aa7=>{_0x226aa7['on']('element:pre',(_0x5608a7,_0x27cdb9,_0x4635e9)=>{const _0x4bb1cc=_0x27cdb9['viewItem']['getChild'](0x0);if(!_0x4bb1cc||!_0x4bb1cc['is']('element','code'))return;if(!_0x4635e9['consumable']['consume'](_0x4bb1cc,{'attributes':['vid_start','vid_end']}))return;const _0xb8f9e5=_0x27cdb9['modelRange']['start']['nodeAfter'];_0x4635e9['writer']['setAttribute']('vid_start',_0x4bb1cc['getAttribute']('vid_start'),_0xb8f9e5),_0x4635e9['writer']['setAttribute']('vid_end',_0x4bb1cc['getAttribute']('vid_end'),_0xb8f9e5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4a2969=>{_0x4a2969['on']('element',(_0x40bf25,_0x330105,_0x490741)=>{if(!_0x490741['consumable']['consume'](_0x330105['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x330105['modelRange']['isCollapsed'])return;const _0x4bc73e=_0x330105['modelRange']['start']['nodeAfter'];_0x4bc73e['hasAttribute']('vid_start')||_0x4bc73e['hasAttribute']('vid')||(_0x490741['writer']['setAttribute']('vid_start',_0x330105['viewItem']['getAttribute']('vid_start'),_0x4bc73e),_0x490741['writer']['setAttribute']('vid_end',_0x330105['viewItem']['getAttribute']('vid_end'),_0x4bc73e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe60ffb=>_0xe60ffb['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53cb4e,[,_0x46beba])=>{['vid_start','vid_end','vid']['includes'](_0x46beba)&&(_0x53cb4e['return']=!0x0,_0x53cb4e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31c15c=>{_0x31c15c['on']('attribute:vid',(_0x55d371,_0x425fd5,_0x3e931f)=>{if('\x20'!=_0x425fd5['item']['data']||_0x425fd5['item']['parent']['maxOffset']>0x1)return;if(!_0x3e931f['consumable']['consume'](_0x425fd5['item'],_0x55d371['name']))return;const _0x48007a=_0x3e931f['writer'],_0x349921=_0x3e931f['mapper']['toViewRange'](_0x425fd5['range']);_0x48007a['wrap'](_0x349921,_0x48007a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x48588e){const _0x5c8138=_0x48588e['plugins']['get']('RevisionViewer');return(_0x5383f7,_0x1df0d6,_0x27492c)=>{const _0x30ccfd=_0x1df0d6['markerName']['split'](':')[0x1],_0x597af1=_0x5c8138['_getChangeFromId'](_0x30ccfd);if(!_0x597af1)return null;const _0x405140='add'==_0x597af1['type']?'split':'merge';if(!_0x27492c['consumable']['test'](_0x1df0d6['markerRange'],_0x5383f7['name']))return;const _0x16281a=_0x1df0d6['markerRange']['getWalker'](),_0x5145cf=_0x1df0d6['markerRange']['start'],_0x2456cd=_0x48588e['model']['schema'];let _0x4d6208=null,_0xc5bc7c=null,_0xf683b9=!0x1,_0x576a8f=!0x1;for(const _0x3e19a4 of _0x16281a){const _0x4b3ca4=_0x3e19a4['item'];_0xf683b9=_0xf683b9||_0x2456cd['isContent'](_0x4b3ca4);const _0x5d38e2=_0x27492c['mapper']['toViewElement'](_0x4b3ca4);if(_0x5d38e2&&_0x5d38e2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e19a4['type']&&(_0x2456cd['isBlock'](_0x4b3ca4)&&!_0x2456cd['isLimit'](_0x4b3ca4)&&(_0x4b3ca4['nextSibling']||_0x5145cf['isAtEnd']?_0x4d6208&&_0x4d6208['parent']==_0x4b3ca4||(_0x4d6208=_0x4b3ca4,_0x1fca91(_0x3e19a4['previousPosition']),_0x576a8f=!0x0):_0xc5bc7c=_0xc5bc7c||_0x3e19a4['previousPosition']));}function _0x1fca91(_0x3d6d00){const _0x36860e=_0x27492c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x405140}),_0x2c0a07=_0x27492c['mapper']['toViewPosition'](_0x3d6d00);_0x597af1['data']['isSuggestion']&&_0x27492c['writer']['addClass']('ck-suggestion-marker-'+_0x405140+'-new',_0x36860e),_0x5c8138['activeChange']==_0x597af1&&_0x27492c['writer']['addClass']('ck-suggestion-marker--active',_0x36860e),_0x27492c['writer']['insert'](_0x2c0a07,_0x36860e),_0x27492c['mapper']['bindElementToMarker'](_0x36860e,_0x1df0d6['markerName']);}_0xf683b9||_0x576a8f||!_0xc5bc7c||_0x1fca91(_0xc5bc7c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b8eb1,_0x116212,_0x355340)=>{const _0x5ded8d=_0x355340['mapper']['markerNameToElements'](_0x116212['markerName']);if(_0x5ded8d){for(const _0x51e427 of _0x5ded8d)(_0x51e427['hasClass']('ck-suggestion-marker-split')||_0x51e427['hasClass']('ck-suggestion-marker-merge'))&&(_0x355340['mapper']['unbindElementFromMarkerName'](_0x51e427,_0x116212['markerName']),_0x355340['writer']['remove'](_0x51e427));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x609ccc,_0x1e2813,_0x382dfd)=>{const _0x5a4967=_0x1e2813['markerName']['split'](':')[0x1],_0x5735c7=this['_getChangeFromId'](_0x5a4967);if(!_0x5735c7)return null;const _0x537bab='add'==_0x5735c7['type']?'split':'merge';if(_0x382dfd['consumable']['test'](_0x1e2813['markerRange'],_0x609ccc['name']))for(const _0x7875d0 of _0x1e2813['markerRange']['getItems']()){if(!_0x7875d0['is']('element','softBreak'))continue;const _0x493ba5=_0x382dfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x537bab}),_0x277e77=_0x382dfd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x7875d0));_0x5735c7['data']['isSuggestion']&&_0x382dfd['writer']['addClass']('ck-suggestion-marker-'+_0x537bab+'-new',_0x493ba5),this['activeChange']==_0x5735c7&&_0x382dfd['writer']['addClass']('ck-suggestion-marker--active',_0x493ba5),_0x382dfd['writer']['insert'](_0x277e77,_0x493ba5),_0x382dfd['mapper']['bindElementToMarker'](_0x493ba5,_0x1e2813['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x452ed4=>{for(const _0x347a60 of this['editor']['model']['document']['getRootNames']()){const _0x1b8b65=this['editor']['model']['document']['getRoot'](_0x347a60),_0x57dbe1=this['editor']['editing']['view']['document']['getRoot'](_0x347a60);if(_0x57dbe1){const _0x2c7bc6=_0x1b8b65['getAttribute']('revisionHistoryAttachChange');if(_0x452ed4['removeAttribute']('data-change-id',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root-add',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root-remove',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root--active',_0x57dbe1),_0x2c7bc6){const _0x1c9a82=this['_getChangeFromId'](_0x2c7bc6);if(!_0x1c9a82)return null;_0x452ed4['setAttribute']('data-change-id',_0x2c7bc6,_0x57dbe1),_0x452ed4['addClass']('ck-revision-history-root-'+_0x1c9a82['type'],_0x57dbe1),this['activeChange']==_0x1c9a82&&_0x452ed4['addClass']('ck-revision-history-root--active',_0x57dbe1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x52c70b=>'revision-comment:'+_0x52c70b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x30d719=>'revision-suggestion:'+_0x30d719,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3bbc47=>({'name':'suggestion:'+_0x3bbc47,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3ba8f0=>{const _0x2673c8=_0x3ba8f0['markerName']['split'](':')[0x1];return'insertion'!=_0x2673c8&&'deletion'!=_0x2673c8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2673c8]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x205976,_0x442a34,_0x7b2901)=>{const _0x2b1c59=_0x7b2901['mapper']['markerNameToElements'](_0x442a34['markerName']);if(_0x2b1c59){for(const _0x291746 of _0x2b1c59)_0x291746['is']('uiElement')&&(_0x7b2901['mapper']['unbindElementFromMarkerName'](_0x291746,_0x442a34['markerName']),_0x7b2901['writer']['remove'](_0x291746));}},{'priority':'high'});}['_getChangeFromId'](_0x27e739){return this['_changeIdToChange']['get'](_0x27e739);}['_getViewForChange'](_0x3382df){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3382df),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x26cd1c,_0x38eedc,_0x4b8315,_0x4d2333)=>{_0x4d2333&&this['_balloon']['remove'](_0x4d2333),_0x4b8315&&(this['_balloon']['add']({'view':_0x4b8315,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4f3b21=this['editor']['editing'],_0x257580=this['_getChangeFromId'](_0x4b8315['changeId']);let _0x338671;if(_0x257580['data']['isOnRoot']){const _0x567784=_0x4f3b21['view']['getDomRoot'](_0x257580['rootName']);_0x338671=Array['from'](_0x567784['getClientRects']());}else{const _0x1ade38=this['editor']['model']['markers']['get']('revision:'+_0x4b8315['changeId']);_0x338671=Array['from'](_0x4f3b21['mapper']['markerNameToElements'](_0x1ade38['name']))['map'](_0x10745f=>_0x4f3b21['view']['domConverter']['mapViewToDom'](_0x10745f))['map'](_0x1d2da2=>Array['from'](_0x1d2da2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x338671[0x0];return _0x338671['find'](_0x21eff5=>_0x21eff5['top']-0x3<=this['_activeViewTarget']['y']&&_0x21eff5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21eff5['left']-0x3<=this['_activeViewTarget']['x']&&_0x21eff5['right']+0x3>=this['_activeViewTarget']['x'])||_0x338671[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x467fc6,_0x276ecd,_0x5a87b4,_0x15a99e)=>{this['activeView']=_0x5a87b4?this['_getViewForChange'](_0x5a87b4):null,this['editor']['model']['change'](()=>{const _0x1b8e78=this['editor']['editing'];_0x15a99e&&(_0x15a99e['data']['isOnRoot']?_0x1b8e78['view']['change'](_0x44fce9=>{_0x44fce9['removeClass']('ck-revision-history-root--active',_0x1b8e78['view']['document']['getRoot'](_0x15a99e['rootName']));}):_0x1b8e78['reconvertMarker']('revision:'+_0x15a99e['id'])),_0x5a87b4&&(_0x5a87b4['data']['isOnRoot']?_0x1b8e78['view']['change'](_0x1c10a9=>{_0x1c10a9['addClass']('ck-revision-history-root--active',_0x1b8e78['view']['document']['getRoot'](_0x5a87b4['rootName']));}):_0x1b8e78['reconvertMarker']('revision:'+_0x5a87b4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x81be3c,_0x2baff9)=>{if(this['activeChange'])return;const _0x2d1815=this['_findChangeIdFromDomTarget'](_0x2baff9['target']),_0x345ad9=this['_changeIdToChange']['get'](_0x2d1815);_0x345ad9?(this['_activeViewTarget']={'x':_0x2baff9['domEvent']['x'],'y':_0x2baff9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x345ad9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3f86d5,_0x409d8a)=>{const _0x4692ef=this['_findChangeIdFromDomTarget'](_0x409d8a['target']),_0x579eee=this['_changeIdToChange']['get'](_0x4692ef);_0x579eee?(this['_activeViewTarget']={'x':_0x409d8a['domEvent']['x'],'y':_0x409d8a['domEvent']['y']},_0x579eee===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x579eee):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bcc5c){do{const _0x33602a=_0x3bcc5c['getAttribute']('data-change-id');if(_0x33602a)return _0x33602a;_0x3bcc5c=_0x3bcc5c['parent'];}while(_0x3bcc5c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37721f=>{for(const _0x18704a of this['editor']['model']['markers'])_0x37721f['removeMarker'](_0x18704a);});}}function Q(_0x4736a8,_0x15d1a3){return(_0x3590cf,_0x4cc96a,_0x550d98)=>{if(!_0x550d98['consumable']['test'](_0x4cc96a['markerRange'],_0x3590cf['name']))return;const _0x4ab1ce=_0x4cc96a['markerRange']['getWalker'](),_0x3dca1a=_0x4cc96a['markerRange']['start'],_0x40f400=_0x4736a8['model']['schema'];let _0x1c88b9=null,_0xaf0e04=null,_0xfa7a9c=!0x1,_0xc30f5a=!0x1;for(const _0x1a4601 of _0x4ab1ce){const _0x1f9b77=_0x1a4601['item'];_0xfa7a9c=_0xfa7a9c||_0x40f400['isContent'](_0x1f9b77);const _0xcb515b=_0x550d98['mapper']['toViewElement'](_0x1f9b77);if(_0xcb515b&&_0xcb515b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a4601['type']&&(_0x40f400['isBlock'](_0x1f9b77)&&!_0x40f400['isLimit'](_0x1f9b77)&&(_0x1f9b77['nextSibling']||_0x3dca1a['isAtEnd']?_0x1c88b9&&_0x1c88b9['parent']==_0x1f9b77||(_0x1c88b9=_0x1f9b77,_0x43c0d9(_0x1a4601['previousPosition']),_0xc30f5a=!0x0):_0xaf0e04=_0xaf0e04||_0x1a4601['previousPosition']));}function _0x43c0d9(_0x45de25){const _0x4a8044=_0x550d98['mapper']['toViewPosition'](_0x45de25),_0x348692=_0x550d98['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x15d1a3});_0x550d98['writer']['insert'](_0x4a8044,_0x348692),_0x550d98['mapper']['bindElementToMarker'](_0x348692,_0x4cc96a['markerName']);}_0xfa7a9c||_0xc30f5a||!_0xaf0e04||_0x43c0d9(_0xaf0e04);};}class nt extends _0x26a7b3{constructor(_0x4bfe6f){super(_0x4bfe6f);const _0x722369=_0x4bfe6f['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x722369,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x722369,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4e793e=this['editor'],_0x199fb9=_0x4e793e['plugins']['get'](l),_0xd11e92=_0x199fb9['isReady']?_0x199fb9['diff']['newRevisionId']:null;_0x4e793e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xd11e92);}['refresh'](){const {isReady:_0x143b22,isEnabled:_0xcfd153,repository:_0x5ac023,diff:_0x2866a9}=this['editor']['plugins']['get'](l),_0x2fd2a3=_0x2866a9&&_0x5ac023['getLaterVisibleRevision'](_0x2866a9['newRevisionId']);this['isEnabled']=_0x143b22&&_0xcfd153&&Boolean(_0x2fd2a3);}}class rt extends _0x26a7b3{['_step'];constructor(_0x6ce0a9,{direction:_0x5c1115}){super(_0x6ce0a9);const _0x2183a7=_0x6ce0a9['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5c1115?0x1:-0x1,this['listenTo'](_0x2183a7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2183a7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2183a7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5adfe1=this['editor'],_0x46cc1f=_0x5adfe1['plugins']['get'](l),{isNavigationMode:_0x470ba4,currentChangeNumber:_0x2431e0}=_0x46cc1f;let _0x38613d;if(_0x46cc1f['activeChange']=_0x470ba4?_0x46cc1f['diff']['changes']['get'](_0x2431e0+this['_step']):_0x46cc1f['diff']['changes']['first'],_0x46cc1f['activeChange']['data']['isOnRoot'])_0x38613d=_0x5adfe1['editing']['view']['getDomRoot'](_0x46cc1f['activeChange']['rootName']);else{const _0x5769ca=_0x5adfe1['model']['markers']['get']('revision:'+_0x46cc1f['activeChange']['id']);_0x38613d=_0x339914(_0x5adfe1['editing'],_0x5769ca);}_0x2668d4({'target':_0x38613d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x266c25,currentChangeNumber:_0x5df9b7,numberOfChanges:_0x3b2d28,isReady:_0x3b3704,isEnabled:_0x2962a4}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2962a4&&_0x3b3704&&_0x3b2d28)&&(!_0x266c25||(0x1===this['_step']?_0x5df9b7<_0x3b2d28-0x1:_0x5df9b7>0x0));}}class fi extends _0x1579ef{constructor(_0x17cd54){super(_0x17cd54);const _0x43747b=this['bindTemplate'],_0x3477b3=new _0x536736(_0x17cd54),_0x388745=new _0x536736(_0x17cd54);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',(_0x236f6f,_0x49a8b8)=>_0x236f6f&&_0x49a8b8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x44e473,_0x379fe1,_0x3d05ff,_0x480081)=>{if(!_0x44e473)return R(_0x17cd54,'Loading...');if(!_0x3d05ff)return R(_0x17cd54,'No\x20changes');const _0x25c43c=R(_0x17cd54,'NUMBER_OF_CHANGES',_0x3d05ff);return _0x480081?R(_0x17cd54,'X_OF_Y_CHANGES',[_0x379fe1+0x1,_0x3d05ff]):_0x25c43c;}),_0x3477b3['set']({'label':R(_0x17cd54,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5ed9b3}),_0x388745['set']({'label':R(_0x17cd54,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x35f01a}),_0x3477b3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x388745['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3477b3['on']('execute',()=>this['fire']('execute','backward')),_0x388745['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',_0x43747b['if']('_isStatusLabelVisible','ck-hidden',_0x2ff8a3=>!_0x2ff8a3)]},'children':[{'text':_0x43747b['to']('isNavigationMode',_0x1a3fb7=>_0x1a3fb7?R(_0x17cd54,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x17cd54,'Total')+':\x20')}]},{'text':_0x43747b['to']('_statusText')}]},new _0x150645(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3477b3,_0x388745]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0xc698e3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x112d62=this['editor']['editing']['view'];_0x112d62['change'](_0x34a736=>{for(const _0x2427fc of _0x112d62['document']['roots'])_0x34a736['addClass'](ge,_0x2427fc);});}['hide'](){const _0x309c55=this['editor']['editing']['view'];_0x309c55['change'](_0x3f3cca=>{for(const _0x35af02 of _0x309c55['document']['roots'])_0x3f3cca['removeClass'](ge,_0x35af02);});}}class u extends _0xc698e3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,bi];}['init'](){const _0xe7decc=this['editor'],_0x3b38c6=_0xe7decc['plugins']['get'](l),_0x1d6453=_0xe7decc['plugins']['get'](bi);_0xe7decc['ui']['componentFactory']['add']('exitToEditing',_0x1047d2=>{const _0x141685=new _0x536736(_0x1047d2);return _0x141685['set']({'label':R(_0x1047d2,'Back\x20to\x20editing'),'icon':_0x12b4c1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x141685,'execute',()=>{_0xe7decc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x141685;}),_0xe7decc['ui']['componentFactory']['add']('restoreRevision',_0x241ebb=>{const _0x50a35a=new _0x536736(_0x241ebb);return _0x50a35a['set']({'label':R(_0x241ebb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50a35a['bind']('isEnabled')['to'](_0xe7decc['commands']['get']('restoreRevision')),this['listenTo'](_0x50a35a,'execute',()=>_0xe7decc['execute']('restoreRevision')),_0x50a35a;}),_0xe7decc['ui']['componentFactory']['add']('changesNavigation',_0x533b3d=>{const _0x54850c=new fi(_0x533b3d),_0x21e3a4=_0xe7decc['commands']['get']('showPreviousChange'),_0x257b8f=_0xe7decc['commands']['get']('showNextChange');return _0x54850c['bind']('isBackwardNavigationEnabled')['to'](_0x21e3a4,'isEnabled'),_0x54850c['bind']('isForwardNavigationEnabled')['to'](_0x257b8f,'isEnabled'),_0x54850c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b38c6),this['listenTo'](_0x54850c,'execute',(_0x473edc,_0x879e88)=>{_0xe7decc['execute']('forward'===_0x879e88?'showNextChange':'showPreviousChange');}),_0x54850c;}),_0x1d6453['show'](),_0x3b38c6['on']('change:isReady',(_0x193980,_0x2a675e,_0x238f25)=>{_0x238f25?_0x1d6453['hide']():_0x1d6453['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4401a4,_0x4a2919){super(_0x4401a4,_0x4a2919);const _0x94edcf=this['bindTemplate'];this['set']({'label':R(_0x4401a4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4401a4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x94edcf['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3bb0a6=this['fieldView']['element'];this['_tooltipString']=_0x3bb0a6['scrollWidth']>_0x3bb0a6['clientWidth']&&_0x3bb0a6['value']||'';}}class ni extends _0x1579ef{constructor(_0x333fe0,_0x1d6117,_0x2b4d65){super(_0x333fe0);const _0xbb4725=new _0x47ea2f();_0xbb4725['set']({'content':_0x4e06a0,'viewBox':'0\x200\x2011\x2010'});const _0x3b02cf=['ck','ck-revision-history-sidebar__revision-author'];_0x2b4d65&&_0x3b02cf['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2d66bd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x333fe0,_0x2b4d65?'Revision\x20creator':'Revision\x20author')},'children':[_0xbb4725,_0x1d6117['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b02cf},'children':_0x2d66bd});}}function ci(_0x3aa58c,_0x3e8bb7){const _0x499c3d=_0x3aa58c['bindTemplate'],_0xfeefa0=_0x3aa58c['locale'],_0x1b9fa3=_0x310321(_0xfeefa0);_0x1b9fa3['panelPosition']='sw';const _0x95c80b=function(_0x48a25f,_0x287079){const _0x4f3f5f=function(_0xbd829,_0x2b9cf6){const _0x5d7902=_0xbd829['locale'],_0x16d11e={'Compare\x20against\x20selected':R(_0x5d7902,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5d7902,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5d7902,'Restore\x20this\x20revision')};return _0x2b9cf6['map'](_0x16413c=>{const _0x193366=_0x16d11e[_0x16413c['name']];return _0x193366&&_0x193366!==_0x16413c['name']&&(_0x16413c['name']=_0x193366),_0x16413c;});}(_0x48a25f,_0x287079),_0xdf17ce=new _0x28ccb6();for(const _0x37048e of _0x4f3f5f){const _0x238cbc={'type':'button','model':new to({'label':_0x37048e['name'],'class':_0x37048e['class'],'withText':!0x0,'role':'menuitem','_action':_0x37048e['action']})};_0x238cbc['model']['bind']('isEnabled')['to'](_0x48a25f,'isActionsDropdownOpen',_0x477336=>'function'!=typeof _0x37048e['isEnabled']||(!_0x477336||_0x37048e['isEnabled'](_0x48a25f))),_0xdf17ce['add'](_0x238cbc);}return _0xdf17ce;}(_0x3aa58c,_0x3e8bb7);return _0x3aa58c['bind']('isActionsDropdownOpen')['to'](_0x1b9fa3,'isOpen'),_0x1b9fa3['buttonView']['set']({'label':R(_0xfeefa0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2f8ce8}),_0x1b9fa3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x499c3d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x499c3d['to'](_0x7f21e8=>_0x7f21e8['stopPropagation']())}}),_0x1b9fa3['on']('execute',_0x526fe7=>{_0x3aa58c['isReady']&&'function'==typeof _0x526fe7['source']['_action']&&_0x526fe7['source']['_action'](_0x3aa58c);}),_0x2716f0(_0x1b9fa3,_0x95c80b,{'role':'menu'}),_0x1b9fa3['listenTo'](_0x3aa58c,'change:isActionsDropdownOpen',(_0x4c6237,_0x58773e,_0x1e4121)=>{if(_0x1e4121)for(const _0x28a4d3 of _0x1b9fa3['listView']['items']){const _0x14dd9=_0x28a4d3['children']['first'],_0x5820e3=_0x3e8bb7['find'](_0x19d471=>_0x19d471['action']===_0x14dd9['_action'])['isVisible'];_0x28a4d3['isVisible']=void 0x0===_0x5820e3||_0x5820e3(_0x3aa58c);}}),_0x1b9fa3;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x128763(_0x1579ef){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ee26c,_0x22e223,_0x3fac5e,_0xcf3a92){super(_0x5ee26c);const _0x33a5c3=this['bindTemplate'],_0xe7e0e6=function(_0x645641,_0x5d7276){const _0x2060f0=Array['from'](_0x5d7276['authors'])['filter'](_0x746102=>_0x746102!=_0x5d7276['creator']);return _0x5d7276['creator']&&_0x2060f0['unshift'](_0x5d7276['creator']),_0x2060f0['map'](_0x312937=>new ni(_0x645641,_0x312937,_0x312937==_0x5d7276['creator']));}(_0x5ee26c,_0x22e223);this['id']=_0x22e223['id'],this['_revision']=_0x22e223,this['_requireRevisionName']=_0xcf3a92,this['bind']('name','createdAt')['to'](_0x22e223),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x93b296=>{return _0x21fa1d=_0x5ee26c['uiLanguage'],(_0x427c59=_0x93b296)['toLocaleDateString'](_0x21fa1d,{'month':'long','day':'numeric'})+',\x20'+_0x427c59['toLocaleTimeString'](_0x21fa1d,{'hour':'numeric','minute':'numeric'});var _0x21fa1d,_0x427c59;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x5ee26c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x152d25=>_0x152d25||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x47b04a,_0x1d0bd4)=>_0x47b04a&&_0x1d0bd4),this['revisionActionsView']=_0x3fac5e&&_0x3fac5e['length']?ci(this,_0x3fac5e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x33a5c3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x33a5c3['if']('isEnabled','ck-disabled',_0xce2432=>!_0xce2432),_0x33a5c3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x33a5c3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x33a5c3['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':_0x33a5c3['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':_0xe7e0e6}]},this['revisionActionsView']],'on':{'click':_0x33a5c3['to'](_0x8fb709=>{_0x8fb709['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x265c77=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x265c77,'change',()=>{this['_requireRevisionName']&&!_0x265c77['value']||this['fire']('setName',{'id':this['id'],'name':_0x265c77['value']}),_0x265c77['value']||(_0x265c77['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x2f385a,_0x46506a){const _0x17f78f=_0x500ead['fromJSDate'](_0x2f385a)['setLocale'](_0x46506a),_0x569316=_0x500ead['local'](),_0x395b6b=_0x569316['minus']({'days':0x1})['startOf']('day');let _0x2bcf17,_0x8b57c1;return _0x17f78f['hasSame'](_0x569316,'day')?(_0x2bcf17=_0x17f78f['startOf']('day')['toJSDate'](),_0x8b57c1=_0x17f78f['toRelativeCalendar']()):_0x17f78f['hasSame'](_0x395b6b,'day')?(_0x2bcf17=_0x395b6b['toJSDate'](),_0x8b57c1=_0x17f78f['toRelativeCalendar']()):_0x17f78f['hasSame'](_0x569316,'week')?(_0x2bcf17=_0x17f78f['startOf']('week')['toJSDate'](),_0x8b57c1=_0x17f78f['weekdayLong']||''):_0x17f78f['hasSame'](_0x569316,'year')?(_0x2bcf17=_0x17f78f['startOf']('month')['toJSDate'](),_0x8b57c1=_0x17f78f['monthLong']||''):(_0x2bcf17=_0x17f78f['startOf']('year')['toJSDate'](),_0x8b57c1=String(_0x17f78f['year'])),{'startDate':_0x2bcf17,'localizedPeriodName':_0x8b57c1};}class ji extends _0x1579ef{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x563d95,_0x24a64e,_0x5e6fa6,_0x3fffb8){super(_0x563d95);const _0x4de78d=ki(_0x24a64e,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x24a64e,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5e6fa6,this['_requireRevisionName']=_0x3fffb8,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':_0x4de78d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3663a3){const _0x174da1=new _i(this['locale'],_0x3663a3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x174da1);}['removeRevision'](_0x34d7f9){const _0xc33280=this['revisionViews']['find'](_0x211312=>_0x211312['id']===_0x34d7f9['id']);this['revisionViews']['remove'](_0xc33280);}}class Ni extends _0x1579ef{constructor(_0x18f468){super(_0x18f468);const _0x2adc66=new _0x47ea2f();_0x2adc66['content']=_0x26523b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2adc66,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x18f468,'Revision\x20history')]}]});}}class Ri extends _0x1579ef{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x37d70a,_0x2fc026,_0x3b0b65,_0x7132ee){super(_0x37d70a);const _0xa44b77=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2fc026,this['_revisionActions']=_0x3b0b65,this['_requireRevisionName']=_0x7132ee,this['on']('select',(_0x443403,_0x1cd2f3)=>{this['fire']('revisionSelected',_0x1cd2f3);}),this['on']('setName',(_0x37af1d,_0x3a1d56)=>{this['fire']('revisionSetName',_0x3a1d56);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x37d70a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa44b77['if']('isEnabled','ck-disabled',_0x38fbba=>!_0x38fbba)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x49ef85 of this['_revisions'])this['_addRevision'](_0x49ef85);this['_revisions']['on']('add',(_0x3aba47,_0x352f16)=>{this['_addRevision'](_0x352f16);}),this['_revisions']['on']('remove',(_0x18c220,_0x2ef478)=>{this['_removeRevision'](_0x2ef478);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x518ad5=>_0x518ad5['revisionViews']['map'](_0x4890a1=>_0x4890a1))['flat']();}['selectRevision'](_0x4935a1){for(const _0x5bdf96 of this['revisionViews'])_0x4935a1&&_0x4935a1['id']===_0x5bdf96['id']?_0x5bdf96['select']():_0x5bdf96['deselect']();}['highlightRevisions'](_0x4a8f58){for(const _0x9e99bc of this['revisionViews'])_0x4a8f58['some'](({id:_0x5908bd})=>_0x5908bd===_0x9e99bc['id'])?_0x9e99bc['highlight']():_0x9e99bc['unhighlight']();}['_addRevision'](_0x31638d){const _0x375a98=ki(_0x31638d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x9ba1a9=this['timePeriodViews']['get'](0x0);_0x9ba1a9&&_0x9ba1a9['startDate']['getTime']()===_0x375a98['getTime']()||(_0x9ba1a9=new ji(this['locale'],_0x375a98,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x9ba1a9)),_0x9ba1a9['addRevision'](_0x31638d);}['_removeRevision'](_0x339e98){const _0x3cf7c=ki(_0x339e98['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3cf7c)['removeRevision'](_0x339e98);}['_getTimePeriodViewByStartDate'](_0x50d5bd){return this['timePeriodViews']['find'](_0x4bf55c=>_0x4bf55c['startDate']['getTime']()===_0x50d5bd['getTime']());}}class f extends _0xc698e3{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x22793d(_0x27b640){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x46d96f,_0x14b835){super(_0x14b835),this['sourceElement']=_0x46d96f,this['model']['document']['createRoot']();const _0x3df853=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3df853);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x12a88c,_0x112ae3){const _0x2e894c=new this(_0x12a88c,_0x112ae3);return await _0x2e894c['initPlugins'](),await _0x2e894c['ui']['init'](_0x12a88c),await _0x2e894c['data']['init'](_0x2e894c['config']['get']('initialData')||''),_0x2e894c['fire']('ready'),_0x2e894c;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x55ca5c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e54d3){function _0x3a2f00(_0x22ee5b){return _0x22ee5b['map'](_0x4823f0=>String['fromCharCode'](_0x4823f0))['join']('');}super(_0x5e54d3),this['result']='end',_0x5e54d3[_0x3a2f00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2f00([0x76,0x69,0x65,0x77])][_0x3a2f00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a2f00([0x61,0x75,0x74,0x6f]),_0x5e54d3[_0x3a2f00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a2f00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a2f00([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a2f00([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a2f00([0x6f,0x6b])});}}class ct extends _0x55ca5c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x5c8fa5){if(super(_0x5c8fa5),!this['editor']['config']['get']('revisionHistory'))throw new _0x368209('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x124921=>this['_showRevisionViewer']({..._0x124921,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35f903=>this['_closeRevisionViewer'](_0x35f903)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x22830f=>this['_restoreRevision'](_0x22830f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x20aaa1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x20aaa1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4fb730){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4fb730);}['getRevision'](_0x174705){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x174705);}['getRevisions'](_0x4c6f02){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c6f02||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b1a01=this['editor'],_0x32314a=_0x575c44(_0x1b1a01,d),_0x5da1d3=_0x1b1a01['plugins']['get']('RevisionTracker'),_0x82bd5=_0x1b1a01['plugins']['get']('Users')['users'];return _0x32314a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x32314a['lazyRoots'],(_0x32314a['plugins']['push'](ht,l,u,class extends _0x55ca5c{static get['requires'](){return[l,'Users'];}['init'](){const _0x27dfb1=this['editor']['plugins']['get']('Users');for(const _0x34040d of _0x82bd5)_0x34040d['isAnonymous']||_0x27dfb1['getUser'](_0x34040d['id'])||_0x27dfb1['addUser'](_0x34040d);const _0x208240=_0x5da1d3['repository']['getRevisions']();let _0x18212a=null;const _0x151975=this['editor']['plugins']['get']('RevisionViewer');_0x151975['adapter']=_0x5da1d3['adapter'],_0x151975['bind']('isEnabled')['to'](_0x5da1d3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b1a01,'isReadOnly',_0x8559af=>!_0x8559af);for(const _0x4ef9a2 of _0x208240){const _0x4df899=null===_0x4ef9a2['creator'];if(_0x4df899&&_0x4ef9a2['toVersion']===_0x4ef9a2['fromVersion'])continue;const _0x115787=_0x4ef9a2['toJSON']();_0x151975['addRevisionData'](_0x115787,(_0x3bb92c,_0x1916fc,_0x430fdb)=>{if(_0x4df899){if(_0x18212a)_0x18212a['_update'](_0x3bb92c,_0x1916fc);else{if(!_0x1916fc){const _0x348227=_0x430fdb['toJSON']();_0x348227['id']=_0x83b1c9(),_0x5da1d3['saveRevision'](_0x348227,_0x430fdb['toVersion'])['then'](_0x19b04e=>{_0x18212a=_0x19b04e;});}}}else _0x4ef9a2['_update'](_0x3bb92c,_0x1916fc);});}}},f),_0x32314a);}['_enhanceShowRevisionViewerCallback'](){const _0x45a0ea=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x10bb76=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2088e4=this['editor']['plugins']['get']('Autosave');await _0x2088e4['save']();}else await _0x10bb76['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3a0607=this['editor']['plugins']['get']('Dialog');_0x3a0607['isOpen']&&_0x3a0607['hide']();}const _0x21ff8e=this['_getRevisionViewerEditorConfig']();return _0x45a0ea(_0x21ff8e)['then'](_0x57ebed=>{return(this['_viewerEditor']=_0x57ebed,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x57ebed);})['catch'](_0x1d9842=>(console['error'](_0x1d9842),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x48fc63=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x48fc63(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x32d586=this['editor']['plugins']['get']('Annotations');_0x32d586['refreshVisibility'](),_0x32d586['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5e045a){const _0x459da7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3cf316=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x358670=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x358670,_0x5e045a)['then'](_0x2dfc64=>(_0x3cf316['style']['display']='block',_0x459da7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2dfc64));}['_closeRevisionViewer'](_0x331441){const _0x2616f2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2616f2['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x331441['destroy']();}async['_restoreRevision'](_0xc54bfe){const _0xa52604=this['editor'],_0x5dfea9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x485dc4=_0xa52604['plugins']['get']('RevisionTracker'),_0x29b564=_0xa52604['plugins']['get']('RevisionHistoryUtils'),_0x1c2863=_0x5dfea9['repository']['getRevision'](_0xc54bfe);let _0x2d4d65,_0x28efcf,_0xa07dd1;try{await _0x29b564['loadRevisionData'](_0x1c2863,this['adapter']),_0x2d4d65=_0x29b564['getRevisionDocumentData'](_0x1c2863),_0x28efcf=_0x29b564['getRevisionRootsAttributes'](_0x1c2863);}catch(_0x5b4b2d){return void console['error'](_0x5b4b2d);}_0xa52604['model']['change'](_0x36b29d=>{for(const _0x2704d0 of Array['from'](_0xa52604['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x36b29d['removeMarker'](_0x2704d0);}),_0x5dfea9['isReady']=!0x1,_0xa52604['model']['enqueueChange'](_0xb754c7=>{_0xb754c7['setSelection'](null),_0xb754c7['removeSelectionAttribute'](_0xa52604['model']['document']['selection']['getAttributeKeys']());const _0x282c03=Object['keys'](_0x2d4d65);for(const _0x44970e of _0xa52604['model']['document']['roots'])'$graveyard'!=_0x44970e['rootName']&&_0x44970e['isAttached']()&&!_0x282c03['includes'](_0x44970e['rootName'])&&_0xb754c7['detachRoot'](_0x44970e);for(const _0x1684f5 of _0x282c03){let _0x5908c6=_0xa52604['model']['document']['getRoot'](_0x1684f5);_0x5908c6&&_0x5908c6['isAttached']()||(_0x5908c6=_0xb754c7['addRoot'](_0x1684f5));const _0x395b10=_0x28efcf[_0x1684f5],_0x40b276=Object['keys'](_0x395b10),_0x20986f=_0x2d4d65[_0x1684f5];for(const _0x326175 of _0x5908c6['getAttributeKeys']())_0x40b276['includes'](_0x326175)||_0xb754c7['removeAttribute'](_0x326175,_0x5908c6);for(const _0xe250fd of _0x40b276)_0xb754c7['setAttribute'](_0xe250fd,_0x28efcf[_0x1684f5][_0xe250fd],_0x5908c6);_0xb754c7['remove'](_0xb754c7['createRangeIn'](_0x5908c6)),_0xb754c7['insert'](_0xa52604['data']['parse'](_0x20986f,_0x5908c6),_0x5908c6,0x0);}});const _0x27725e=R(_0xa52604['locale'],'Restored');if(_0x1c2863['name'])_0xa07dd1=-0x1==_0x1c2863['name']['indexOf'](_0x27725e)?_0x27725e+':\x20'+_0x1c2863['name']:_0x1c2863['name'];else _0xa07dd1=_0x27725e+':\x20'+(_0x1c2863['createdAt']['toLocaleDateString'](_0xa52604['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c2863['createdAt']['toLocaleTimeString'](_0xa52604['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x485dc4['saveRevision']({'name':_0xa07dd1}),_0x5dfea9['isReady']=!0x0,_0xa52604['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,fi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x4e6ff0){super(_0x4e6ff0),this['_revisionViewer']=_0x4e6ff0['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3c9705=this['_revisionsRepository']['_revisions'],_0xb82acf=this['_createRevisionActions'](),_0x30b92f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x3c9705,_0xb82acf,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',(_0x558c2d,_0x5ca54e)=>{_0x5ca54e['revisionViews']['on']('add',(_0x5295f6,_0x9a6a3c)=>{_0x9a6a3c['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)),_0x30b92f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x9702fb=this['_revisionsRepository']['getRevision'](0x0);if(_0x9702fb){const _0x1204ec=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9702fb['id']);this['_revisionViewer']['compare'](_0x9702fb,_0x1204ec);}}['_handleRevisionSelected'](_0x542523,_0x4f1d84){const _0x259c26=this['_revisionsRepository']['getRevision'](_0x4f1d84['id']),_0x59918e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x259c26['id']);this['_revisionViewer']['compare'](_0x259c26,_0x59918e);}['_handleRevisionSetName'](_0x1c3b1c,_0x12207b){this['_revisionsRepository']['getRevision'](_0x12207b['id'])['setName'](_0x12207b['name']);}['_handleDiffChange'](_0x1843fa,_0x181921,_0x2545c5){const _0x8dd13a=this['_revisionsRepository']['getRevisionsInDiff'](_0x2545c5);_0x8dd13a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x8dd13a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x8dd13a[0x0]));}['_createRevisionActions'](){const _0x53a7ff=this['editor'],_0x2dbf25=f['availableRevisionActions'],_0x1c4ee0=_0x53a7ff['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x1c4ee0['length'])return _0x1c4ee0['map'](_0x5c2926=>{const _0x369e1d='string'==typeof _0x5c2926?Object['assign']({},_0x2dbf25[_0x5c2926]):_0x5c2926;return _0x369e1d['action']=_0x369e1d['action']['bind'](this,_0x53a7ff),_0x369e1d['isVisible']&&(_0x369e1d['isVisible']=_0x369e1d['isVisible']['bind'](this,_0x53a7ff)),_0x369e1d;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x17581f},_0x4662f1)=>{const _0x1877de=_0x17581f['get'](l),_0x20ad1a=_0x1877de['repository'];let _0x1c6ea8=_0x1877de['diff']['newRevisionId'],_0x321957=_0x4662f1['id'];_0x20ad1a['getIndex'](_0x1c6ea8)>_0x20ad1a['getIndex'](_0x321957)&&([_0x1c6ea8,_0x321957]=[_0x321957,_0x1c6ea8]),_0x1877de['compare'](_0x1c6ea8,_0x321957);},'isVisible':({plugins:_0x3f3827},_0x48f094)=>{const _0x2f70e6=_0x3f3827['get'](l);return!(_0x2f70e6['repository']['getRevisionsInDiff'](_0x2f70e6['diff'])['length']>0x2)&&!_0x48f094['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x333480,{id:_0x5ba887})=>{_0x333480['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5ba887);},'isVisible':({plugins:_0x3d64e2},_0x34a59e)=>!!_0x3d64e2['get'](l)['repository']['getLaterVisibleRevision'](_0x34a59e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3d35d1},{id:_0x349db8,revisionNameView:_0x225bc3})=>{const _0x5c00ab=_0x3d35d1['get'](l),_0x14906e=_0x5c00ab['repository']['getEarlierVisibleRevision'](_0x349db8);_0x5c00ab['compare'](_0x349db8,_0x14906e),_0x225bc3['focus'](),_0x225bc3['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x40c771,_0x1a6e13){super(_0x40c771),this['_view']=_0x1a6e13,this['_toolbarConfig']=st(_0x40c771['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x270ad1){const _0x2f7967=this['editor'],_0x175990=this['view'],_0x28e4f5=_0x2f7967['editing']['view'],_0x5c3a29=_0x175990['editable'],_0x21349f=_0x28e4f5['document']['getRoot']();_0x5c3a29['name']=_0x21349f['rootName'],_0x175990['render']();const _0x228a32=_0x5c3a29['element'];this['setEditableElement'](_0x5c3a29['name'],_0x228a32),_0x175990['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x28e4f5['attachDomRoot'](_0x228a32),this['_elementReplacer']['replace'](_0x270ad1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x22de54=this['view'],_0x5e80ca=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5e80ca['detachDomRoot'](_0x22de54['editable']['name']),_0x22de54['destroy']();}['_initToolbar'](){const _0x15be15=this['view'];_0x15be15['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x15be15['stickyPanel']['limiterElement']=_0x15be15['element'],_0x15be15['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x252d8c})=>_0x252d8c),_0x15be15['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x15be15['toolbar']);}}class ii extends _0x214cf3{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5d9ee0,_0x3dcdee,_0x24d7b9={}){super(_0x5d9ee0),this['stickyPanel']=new _0x7153d0(_0x5d9ee0),this['toolbar']=new _0x15694e(_0x5d9ee0,{'shouldGroupWhenFull':_0x24d7b9['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5d9ee0,_0x3dcdee);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x3a0d4e(_0x758c60){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3eecf9,_0x1f4d0a){super(_0x1f4d0a),this['sourceElement']=_0x3eecf9,this['model']['document']['createRoot']();const _0xe7a224=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xe7a224);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41a21d,_0xc057f5){const _0x562962=new this(_0x41a21d,_0xc057f5);return await _0x562962['initPlugins'](),await _0x562962['ui']['init'](_0x41a21d),await _0x562962['data']['init'](_0x562962['config']['get']('initialData')||''),_0x562962['fire']('ready'),_0x562962;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0xc698e3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48e1e7){function _0x1a5293(_0x1b3f6f){return _0x1b3f6f['map'](_0x28cb56=>String['fromCharCode'](_0x28cb56))['join']('');}super(_0x48e1e7),this['result']='end',_0x48e1e7[_0x1a5293([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5293([0x76,0x69,0x65,0x77])][_0x1a5293([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5293([0x61,0x75,0x74,0x6f]),_0x48e1e7[_0x1a5293([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a5293([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5293([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a5293([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a5293([0x6f,0x6b])});}}class ct extends _0xc698e3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x4c96a8){if(super(_0x4c96a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4a7f12('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3a6e27=>this['_showRevisionViewer']({..._0x3a6e27,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4ea6fe=>this['_closeRevisionViewer'](_0x4ea6fe)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x49b463=>this['_restoreRevision'](_0x49b463)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10c6a1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10c6a1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x14cb0d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x14cb0d);}['getRevision'](_0x8a1a84){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8a1a84);}['getRevisions'](_0x5074bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5074bc||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x389ca7=this['editor'],_0x7ecba5=_0x114a78(_0x389ca7,d),_0x28e12b=_0x389ca7['plugins']['get']('RevisionTracker'),_0x496e4d=_0x389ca7['plugins']['get']('Users')['users'];return _0x7ecba5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x7ecba5['lazyRoots'],(_0x7ecba5['plugins']['push'](ht,l,u,class extends _0xc698e3{static get['requires'](){return[l,'Users'];}['init'](){const _0x1ea522=this['editor']['plugins']['get']('Users');for(const _0x4f9a80 of _0x496e4d)_0x4f9a80['isAnonymous']||_0x1ea522['getUser'](_0x4f9a80['id'])||_0x1ea522['addUser'](_0x4f9a80);const _0xdc7e50=_0x28e12b['repository']['getRevisions']();let _0x754133=null;const _0x508b71=this['editor']['plugins']['get']('RevisionViewer');_0x508b71['adapter']=_0x28e12b['adapter'],_0x508b71['bind']('isEnabled')['to'](_0x28e12b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x389ca7,'isReadOnly',_0x3bedcc=>!_0x3bedcc);for(const _0x66cc55 of _0xdc7e50){const _0x915aa9=null===_0x66cc55['creator'];if(_0x915aa9&&_0x66cc55['toVersion']===_0x66cc55['fromVersion'])continue;const _0x467d14=_0x66cc55['toJSON']();_0x508b71['addRevisionData'](_0x467d14,(_0x54abc4,_0x1d2f94,_0x1e33fe)=>{if(_0x915aa9){if(_0x754133)_0x754133['_update'](_0x54abc4,_0x1d2f94);else{if(!_0x1d2f94){const _0xeabb05=_0x1e33fe['toJSON']();_0xeabb05['id']=_0x4c943c(),_0x28e12b['saveRevision'](_0xeabb05,_0x1e33fe['toVersion'])['then'](_0x797de6=>{_0x754133=_0x797de6;});}}}else _0x66cc55['_update'](_0x54abc4,_0x1d2f94);});}}},f),_0x7ecba5);}['_enhanceShowRevisionViewerCallback'](){const _0x5ac58a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x205846=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bf4ff=this['editor']['plugins']['get']('Autosave');await _0x4bf4ff['save']();}else await _0x205846['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x258f82=this['editor']['plugins']['get']('Dialog');_0x258f82['isOpen']&&_0x258f82['hide']();}const _0xa334fc=this['_getRevisionViewerEditorConfig']();return _0x5ac58a(_0xa334fc)['then'](_0x320f6f=>{return(this['_viewerEditor']=_0x320f6f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x320f6f);})['catch'](_0x1daf4a=>(console['error'](_0x1daf4a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x25da66=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x25da66(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x37fd4a=this['editor']['plugins']['get']('Annotations');_0x37fd4a['refreshVisibility'](),_0x37fd4a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5076fc){const _0x5cb88f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23aaae=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1559c7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1559c7,_0x5076fc)['then'](_0x26135d=>(_0x23aaae['style']['display']='block',_0x5cb88f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x26135d));}['_closeRevisionViewer'](_0x1609cc){const _0x113627=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x113627['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1609cc['destroy']();}async['_restoreRevision'](_0x5976a9){const _0x3619dc=this['editor'],_0xb5d243=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xaea5f6=_0x3619dc['plugins']['get']('RevisionTracker'),_0xf6a452=_0x3619dc['plugins']['get']('RevisionHistoryUtils'),_0x1f185a=_0xb5d243['repository']['getRevision'](_0x5976a9);let _0x180eb0,_0x60e6ad,_0x343a9d;try{await _0xf6a452['loadRevisionData'](_0x1f185a,this['adapter']),_0x180eb0=_0xf6a452['getRevisionDocumentData'](_0x1f185a),_0x60e6ad=_0xf6a452['getRevisionRootsAttributes'](_0x1f185a);}catch(_0x43f63c){return void console['error'](_0x43f63c);}_0x3619dc['model']['change'](_0x1e728d=>{for(const _0x15ee24 of Array['from'](_0x3619dc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e728d['removeMarker'](_0x15ee24);}),_0xb5d243['isReady']=!0x1,_0x3619dc['model']['enqueueChange'](_0x74d3dc=>{_0x74d3dc['setSelection'](null),_0x74d3dc['removeSelectionAttribute'](_0x3619dc['model']['document']['selection']['getAttributeKeys']());const _0x485f52=Object['keys'](_0x180eb0);for(const _0x38fd58 of _0x3619dc['model']['document']['roots'])'$graveyard'!=_0x38fd58['rootName']&&_0x38fd58['isAttached']()&&!_0x485f52['includes'](_0x38fd58['rootName'])&&_0x74d3dc['detachRoot'](_0x38fd58);for(const _0x31cd34 of _0x485f52){let _0x47ef8f=_0x3619dc['model']['document']['getRoot'](_0x31cd34);_0x47ef8f&&_0x47ef8f['isAttached']()||(_0x47ef8f=_0x74d3dc['addRoot'](_0x31cd34));const _0x5cf9d3=_0x60e6ad[_0x31cd34],_0x6dab5e=Object['keys'](_0x5cf9d3),_0x3791c8=_0x180eb0[_0x31cd34];for(const _0x21471c of _0x47ef8f['getAttributeKeys']())_0x6dab5e['includes'](_0x21471c)||_0x74d3dc['removeAttribute'](_0x21471c,_0x47ef8f);for(const _0x31c2a6 of _0x6dab5e)_0x74d3dc['setAttribute'](_0x31c2a6,_0x60e6ad[_0x31cd34][_0x31c2a6],_0x47ef8f);_0x74d3dc['remove'](_0x74d3dc['createRangeIn'](_0x47ef8f)),_0x74d3dc['insert'](_0x3619dc['data']['parse'](_0x3791c8,_0x47ef8f),_0x47ef8f,0x0);}});const _0x33bff3=R(_0x3619dc['locale'],'Restored');if(_0x1f185a['name'])_0x343a9d=-0x1==_0x1f185a['name']['indexOf'](_0x33bff3)?_0x33bff3+':\x20'+_0x1f185a['name']:_0x1f185a['name'];else _0x343a9d=_0x33bff3+':\x20'+(_0x1f185a['createdAt']['toLocaleDateString'](_0x3619dc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1f185a['createdAt']['toLocaleTimeString'](_0x3619dc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xaea5f6['saveRevision']({'name':_0x343a9d}),_0xb5d243['isReady']=!0x0,_0x3619dc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,bi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|