@ckeditor/ckeditor5-revision-history 47.3.0-alpha.6 → 47.3.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 +12 -12
- 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
|
-
_0x55ca03(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x584af9){super(),this['id']=_0x584af9['id']||_0x118ae2(),this['creator']=_0x584af9['creator']||null,this['authors']=_0x584af9['authors']||[],this['diffData']=_0x584af9['diffData']||null,this['toVersion']=_0x584af9['toVersion']||0x0,this['fromVersion']=_0x584af9['fromVersion']||0x0,this['set']('name',_0x584af9['name']||''),this['set']('createdAt',_0x584af9['createdAt']||new Date()),this['set']('attributes',_0x584af9['attributes']||{});}['setName'](_0x539c66){this['_update']({'name':_0x539c66});}['setAttribute'](_0x1d86ea,_0x9c0d45){const _0x59087d=_0x3f9059(this['attributes']);_0x5785c6(_0x59087d,_0x1d86ea,_0x9c0d45),this['_update']({'attributes':_0x59087d});}['removeAttribute'](_0x25c48b){const _0x4b8b12=_0x3f9059(this['attributes']);_0x13eafe(_0x4b8b12,_0x25c48b),this['_update']({'attributes':_0x4b8b12});}['_update'](_0x333748,_0x1d3115=!0x1){let _0x16ab5f=!0x1;const _0x50678c={'id':this['id']},_0x20520f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x516ef6 of _0x20520f){const _0x162799=_0x333748[_0x516ef6];void 0x0!==_0x162799&&_0x162799!==this[_0x516ef6]&&(this[_0x516ef6]=_0x162799,_0x50678c[_0x516ef6]=_0x162799,_0x16ab5f=!0x0);}_0x16ab5f&&(_0x50678c['authors']&&(_0x50678c['authorsIds']=_0x50678c['authors']['map'](_0x301aad=>_0x301aad['id']),delete _0x50678c['authors']),this['fire']('_update',_0x50678c,_0x1d3115));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b3d54=>_0x1b3d54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x4b71e4{['_revisions'];static get['requires'](){return[_0x3ecf8d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x366af6){super(_0x366af6),this['_revisions']=new _0x4658e5();}['afterInit'](){!async function(_0x327a83){const _0x1c32de=_0x14147c([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x5aaca4=0xeb829,_0x221d3e=0x359e09b0,_0xe8aa10=0x35997370^_0x221d3e,_0x387539=window[_0x14147c([0x44,0x61,0x74,0x65])][_0x14147c([0x6e,0x6f,0x77])](),_0x50386e=_0x327a83[_0x14147c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26e2c2=new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fac8d=>{_0x50386e[_0x14147c([0x6f,0x6e,0x63,0x65])](_0x14147c([0x72,0x65,0x61,0x64,0x79]),_0x3fac8d);}),_0x3370f9={[_0x14147c([0x6b,0x74,0x79])]:_0x14147c([0x45,0x43]),[_0x14147c([0x75,0x73,0x65])]:_0x14147c([0x73,0x69,0x67]),[_0x14147c([0x63,0x72,0x76])]:_0x14147c([0x50,0x2d,0x32,0x35,0x36]),[_0x14147c([0x78])]:_0x14147c([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]),[_0x14147c([0x79])]:_0x14147c([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]),[_0x14147c([0x61,0x6c,0x67])]:_0x14147c([0x45,0x53,0x32,0x35,0x36])},_0x2ba8a9=_0x50386e[_0x14147c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14147c([0x67,0x65,0x74])](_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fa10a(){let _0x375a93,_0x249fa9=null,_0x47fddf=null;try{if(_0x2ba8a9==_0x14147c([0x47,0x50,0x4c]))return _0x14147c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375a93=_0xdabd6f(),!_0x375a93)return _0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375a93[_0x14147c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47fddf=_0x1d8ad5(_0x375a93[_0x14147c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375a93[_0x14147c([0x6a,0x74,0x69])])),await _0x21fa77()?_0x59b0ad()?_0x1e8271()?_0x14147c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41a4df()?(_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14147c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x249fa9=_0x2f38d0(_0x14147c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14147c([0x74,0x72,0x69,0x61,0x6c])&&(_0x249fa9=_0x2f38d0(_0x14147c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e1fa1()):_0x14147c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14147c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e8271(){const _0x2e1fc4=[_0x14147c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14147c([0x74,0x72,0x69,0x61,0x6c])][_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x387539/0x3e8:0xe10*_0xe8aa10;return _0x375a93[_0x14147c([0x65,0x78,0x70])]<_0x2e1fc4;}function _0x59b0ad(){const _0x1cb421=_0x375a93[_0x14147c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1cb421)return!0x1;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x2a])))return!0x0;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x52,0x48])))return!0x0;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x52,0x52,0x48]))){if(_0xd4cb5d())return!0x0;if(_0x3e1fed()||_0x443812())return!0x0;}return!0x1;}function _0x41a4df(){const _0x5364f8=_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5364f8||0x0==_0x5364f8[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x487eab}=new URL(window[_0x14147c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5364f8[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487eab))return!0x0;const _0x14819c=_0x487eab[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e]));return _0x5364f8[_0x14147c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eae72=>_0x5eae72[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x2a])))[_0x14147c([0x6d,0x61,0x70])](_0x17e24c=>_0x17e24c[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e])))[_0x14147c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12d91d=>_0x12d91d[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14819c[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14147c([0x6d,0x61,0x70])](_0xe1db01=>Array(_0x14819c[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe1db01[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14147c([0x66,0x69,0x6c,0x6c])](_0xe1db01[0x0]===_0x14147c([0x2a])?_0x14147c([0x2a]):'')[_0x14147c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe1db01))[_0x14147c([0x73,0x6f,0x6d,0x65])](_0x15900d=>_0x14819c[_0x14147c([0x65,0x76,0x65,0x72,0x79])]((_0x44ff6d,_0x45b0de)=>_0x15900d[_0x45b0de]===_0x44ff6d||_0x15900d[_0x45b0de]===_0x14147c([0x2a])));}function _0x2e1fa1(){return _0x249fa9&&_0x47fddf?new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fe191,_0x4ec613)=>{_0x249fa9[_0x14147c([0x74,0x68,0x65,0x6e])](_0x4fe191,_0x4ec613),_0x47fddf[_0x14147c([0x74,0x68,0x65,0x6e])](_0x11a2af=>{_0x11a2af!=_0x14147c([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe191(_0x11a2af);},_0x4ec613);}):_0x249fa9||_0x47fddf||_0x14147c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d8ad5(_0x4292e5,_0x3bc118){return new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa36ab4=>{if(_0x1194c6())return _0xa36ab4(_0x14147c([0x56,0x61,0x6c,0x69,0x64]));_0x5a3df6(),_0x50386e[_0x14147c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ee061=!0x1;const _0x4b0adc=_0x118ae2();function _0x39a931(_0x30b312){return!!_0x30b312&&(typeof _0x30b312===_0x14147c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30b312===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30b312[_0x14147c([0x74,0x68,0x65,0x6e])]===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30b312[_0x14147c([0x63,0x61,0x74,0x63,0x68])]===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4edf5d(_0x2c13a7){_0x235b7a(_0x2c13a7)[_0x14147c([0x74,0x68,0x65,0x6e])](_0x307e36=>{if(!_0x307e36||_0x307e36[_0x14147c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14147c([0x6f,0x6b]))return _0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a677c(_0x36f1ca(_0x4b0adc+_0x3bc118))!=_0x307e36[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14147c([0x56,0x61,0x6c,0x69,0x64]);})[_0x14147c([0x74,0x68,0x65,0x6e])](_0x8cffe6=>(_0x4e1f1a(),_0x8cffe6),()=>{const _0x84634c=_0x552b15();return null==_0x84634c?(_0x4e1f1a(),_0x14147c([0x56,0x61,0x6c,0x69,0x64])):_0x14147c(_0x387539-_0x84634c>(0x11928db0^_0x221d3e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14147c([0x74,0x68,0x65,0x6e])](_0xa36ab4)[_0x14147c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x160d25=0x35a8e730^_0x221d3e;function _0x4e1f1a(){const _0x2a2fe3=_0x14147c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a677c(_0x36f1ca(_0x4292e5)),_0x5a2cd2=_0x5c1e93(_0x2a677c(window[_0x14147c([0x4d,0x61,0x74,0x68])][_0x14147c([0x63,0x65,0x69,0x6c])](_0x387539/_0x160d25)));window[_0x14147c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14147c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a2fe3,_0x5a2cd2);}function _0x552b15(){const _0x19ae33=_0x14147c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a677c(_0x36f1ca(_0x4292e5)),_0x5e8df0=window[_0x14147c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14147c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19ae33);return _0x5e8df0?window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1e93(_0x5e8df0),0x10)*_0x160d25:null;}function _0x235b7a(_0x293494){return new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14b6cd,_0x51c384)=>{_0x293494[_0x14147c([0x74,0x68,0x65,0x6e])](_0x14b6cd,_0x51c384),window[_0x14147c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51c384,0x359fdd70^_0x221d3e);});}}_0x50386e[_0x14147c([0x6f,0x6e])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a494e,_0xbb31a4)=>{if(_0xbb31a4[0x0]!=_0x4292e5)return _0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbb31a4[0x1]={..._0xbb31a4[0x1],[_0x14147c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b0adc};},{[_0x14147c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14147c([0x68,0x69,0x67,0x68])}),_0x50386e[_0x14147c([0x6f,0x6e])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x451e49=>{_0x39a931(_0x451e49[_0x14147c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ee061=!0x0,_0x4edf5d(_0x451e49[_0x14147c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14147c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14147c([0x6c,0x6f,0x77])}),_0x26e2c2[_0x14147c([0x74,0x68,0x65,0x6e])](()=>{_0x2ee061||_0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1194c6(){return _0x50386e[_0x14147c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14147c([0x76,0x69,0x65,0x77])][_0x14147c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14147c([0x61,0x75,0x74,0x6f]);}function _0x5a3df6(){_0x50386e[_0x14147c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14147c([0x76,0x69,0x65,0x77])][_0x14147c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14147c([0x61,0x75,0x74,0x6f]);}}function _0x2f38d0(_0x11f75e){const _0x1d9210=[new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eedf6=>setTimeout(_0x2eedf6,0x3597377c^_0x221d3e)),_0x26e2c2[_0x14147c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3315a2=>{const _0x5ae9df=0x359e09b7^_0x221d3e,_0x2995af=_0x327a83[_0x14147c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x317d3b(){_0x2995af[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5ae9df&&_0x3315a2();}_0x317d3b(),_0x2995af[_0x14147c([0x6f,0x6e])](_0x14147c([0x61,0x64,0x64]),_0x317d3b);})),new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75914a=>{function _0xf153bb(){for(const _0x13ce31 in window)if(window[_0x14147c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14147c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x13ce31))&&window[_0x13ce31]==_0x5aaca4)return _0x75914a();_0x50386e[_0x14147c([0x73,0x74,0x61,0x74,0x65])]!=_0x14147c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14147c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf153bb,0x359e1a38^_0x221d3e);}_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xf153bb();})];return window[_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14147c([0x72,0x61,0x63,0x65])](_0x1d9210)[_0x14147c([0x74,0x68,0x65,0x6e])](()=>_0x11f75e);}async function _0x20be3f(){if(await _0x26e2c2,_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44234a=_0x327a83[_0x14147c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x532aa9=_0x327a83[_0x14147c([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])](_0x44234a[_0x14147c([0x69,0x64])]),_0x5d5c4e=_0x2e2a27(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5d5c4e[_0x14147c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44234a['id'],_0x532aa9?_0x532aa9['id']:null,!0x0),_0x5d5c4e[_0x14147c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d5c4e[_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d5c4e[_0x14147c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1149a6,void(_0x5d5c4e[_0x14147c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1149a6);}if(_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x19e94c=_0x2e2a27(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x19e94c[_0x14147c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x19e94c[_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x19e94c[_0x14147c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1149a6,_0x19e94c[_0x14147c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1149a6;}_0x50386e[_0x14147c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14147c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1149a6,_0x50386e[_0x14147c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14147c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1149a6,_0x50386e[_0x14147c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14147c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd4cb5d(){return _0x1231b5(_0x14147c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e2a27(_0x14147c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14147c([0x73,0x74,0x61,0x74,0x65])]==_0x14147c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e1fed(){return _0x1231b5(_0x14147c([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 _0x443812(){return _0x1231b5(_0x14147c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x301f5b(_0x5145e1){const _0x4d166b=_0x3caa95();_0x50386e[_0x4d166b]=_0x14147c([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])+_0x5145e1,_0x5145e1[_0x14147c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14147c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3caa95()]=_0x5aaca4),_0x5145e1!=_0x14147c([0x56,0x61,0x6c,0x69,0x64])&&_0x20be3f();}function _0x3caa95(){const _0x3dbf44=window[_0x14147c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14147c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14147c([0x6e,0x6f,0x77])]())[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14147c([0x2e]),'');let _0xe5b5b7=_0x14147c([0x76]);for(let _0x3b7719=0x0;_0x3b7719<_0x3dbf44[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7719+=0x2){let _0x2b6b76=window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dbf44[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7719,_0x3b7719+0x2));_0x2b6b76>=_0x1c32de[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b6b76-=_0x1c32de[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe5b5b7+=_0x1c32de[_0x2b6b76];}return _0xe5b5b7;}function _0xdabd6f(){const _0x115382=_0x2ba8a9[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e]));if(0x3!=_0x115382[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x77eaaf(_0x115382[0x1]);function _0x77eaaf(_0x2d5d1e){const _0x4e264e=_0x34ca50(_0x2d5d1e);return _0x4e264e&&_0x355a2b()?_0x4e264e:null;function _0x355a2b(){const _0xf7466a=_0x4e264e[_0x14147c([0x6a,0x74,0x69])],_0x4ba0ff=window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf7466a[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf7466a[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c32fa={..._0x4e264e,[_0x14147c([0x6a,0x74,0x69])]:_0xf7466a[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf7466a[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c32fa[_0x14147c([0x76,0x63])],_0x36f1ca(_0x2c32fa)==_0x4ba0ff;}}}async function _0x21fa77(){let _0x3f1a4c=!0x0;try{const _0x4b20fd=_0x2ba8a9[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e])),[_0x54e4eb,_0x5464cb,_0x3383ff]=_0x4b20fd;return _0x2b2bd1(_0x54e4eb),await _0x25d18f(_0x54e4eb,_0x5464cb,_0x3383ff),_0x3f1a4c;}catch{return!0x1;}function _0x2b2bd1(_0x21fc8d){const _0x55e154=_0x34ca50(_0x21fc8d);_0x55e154&&_0x55e154[_0x14147c([0x61,0x6c,0x67])]==_0x14147c([0x45,0x53,0x32,0x35,0x36])||(_0x3f1a4c=!0x1);}async function _0x25d18f(_0x176a76,_0x31c5d5,_0x3ccfb9){const _0x5d4680=window[_0x14147c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14147c([0x66,0x72,0x6f,0x6d])](_0x4e39c2(_0x3ccfb9),_0x32b3f0=>_0x32b3f0[_0x14147c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4284c7=new window[(_0x14147c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14147c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x176a76+_0x14147c([0x2e])+_0x31c5d5),_0x3c5e8c=window[_0x14147c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14147c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c5e8c)return;const _0x4ccbd8=await _0x3c5e8c[_0x14147c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14147c([0x6a,0x77,0x6b]),_0x3370f9,{[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x45,0x43,0x44,0x53,0x41]),[_0x14147c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14147c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c5e8c[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x45,0x43,0x44,0x53,0x41]),[_0x14147c([0x68,0x61,0x73,0x68])]:{[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ccbd8,_0x5d4680,_0x4284c7)||(_0x3f1a4c=!0x1);}}function _0x34ca50(_0x4623d4){return _0x4623d4[_0x14147c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14147c([0x65,0x79]))?JSON[_0x14147c([0x70,0x61,0x72,0x73,0x65])](_0x4e39c2(_0x4623d4)):null;}function _0x4e39c2(_0x25ce81){return window[_0x14147c([0x61,0x74,0x6f,0x62])](_0x25ce81[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14147c([0x2b]))[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14147c([0x2f])));}function _0x36f1ca(_0x69fb03){let _0x1741c6=0x1505;function _0xb8fe46(_0x12ca2b){for(let _0x963fbe=0x0;_0x963fbe<_0x12ca2b[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x963fbe++){const _0x298b4c=_0x12ca2b[_0x14147c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x963fbe);_0x1741c6=(_0x1741c6<<0x5)+_0x1741c6+_0x298b4c,_0x1741c6&=_0x1741c6;}}function _0xa2d351(_0x5a938c){Array[_0x14147c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a938c)?_0x5a938c[_0x14147c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa2d351):_0x5a938c&&typeof _0x5a938c==_0x14147c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14147c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a938c)[_0x14147c([0x73,0x6f,0x72,0x74])]()[_0x14147c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19ac00,_0x45d95c])=>{_0xb8fe46(_0x19ac00),_0xa2d351(_0x45d95c);}):_0xb8fe46(window[_0x14147c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a938c));}return _0xa2d351(_0x69fb03),_0x1741c6>>>0x0;}function _0x2a677c(_0x1c667d){return _0x1c667d[_0x14147c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14147c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14147c([0x30]));}function _0x5c1e93(_0x3c256a){return _0x3c256a[_0x14147c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14147c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14147c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1231b5(_0x3d6535){return _0x50386e[_0x14147c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14147c([0x68,0x61,0x73])](_0x3d6535);}function _0x2e2a27(_0x5a26c7){return _0x50386e[_0x14147c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14147c([0x67,0x65,0x74])](_0x5a26c7);}function _0x1149a6(){}function _0x14147c(_0x1ef970){return _0x1ef970['map'](_0x441353=>String['fromCharCode'](_0x441353))['join']('');}_0x301f5b(await _0x3fa10a());}(this);}['createRevision'](_0x49013e){const _0x17e112=this['editor']['plugins']['get']('Users');return new I({'id':_0x49013e['id'],'name':_0x49013e['name'],'creator':_0x49013e['creatorId']?_0x17e112['getUser'](_0x49013e['creatorId']):null,'diffData':_0x49013e['diffData']||_0x49013e['data'],'authors':_0x49013e['authorsIds']['map'](_0x2fa6bc=>_0x17e112['getUser'](_0x2fa6bc)),'createdAt':new Date(_0x49013e['createdAt']),'attributes':_0x49013e['attributes'],'fromVersion':_0x49013e['fromVersion'],'toVersion':_0x49013e['toVersion']});}['addRevision'](_0x5658cf,_0x2959d0=0x0){this['_revisions']['add'](_0x5658cf,_0x2959d0);}['getRevision'](_0x6ed856){return this['_revisions']['get'](_0x6ed856);}['getRevisions'](_0x59eb19={'toJSON':!0x1}){const _0x44c457=Array['from'](this['_revisions']);return _0x44c457['reverse'](),_0x59eb19['toJSON']?_0x44c457['map'](_0x527c6f=>_0x527c6f['toJSON']()):_0x44c457;}['getIndex'](_0x1f50f2){return this['_revisions']['getIndex'](_0x1f50f2);}['getEarlierVisibleRevision'](_0x1dbc83){const [,_0xfaec11]=this['getRevisionsIterator'](_0x1dbc83,{'direction':'earlier'});return _0xfaec11;}['getLaterVisibleRevision'](_0x19c320){const [,_0x2d339f]=this['getRevisionsIterator'](_0x19c320,{'direction':'later'});return _0x2d339f;}['getRevisionsInDiff'](_0x5355fd){const _0x116d10=[];for(const _0x54739d of this['getRevisionsIterator'](_0x5355fd['newRevisionId']))if(_0x116d10['push'](_0x54739d),_0x54739d['id']===_0x5355fd['oldRevisionId'])break;return _0x116d10;}*['getRevisionsIterator'](_0x29447d,{direction:_0x296867='earlier',filter:_0xcddfc4=()=>!0x0}={}){const _0x3598c4='earlier'===_0x296867?0x1:-0x1;let _0x403e27=this['_revisions']['get'](_0x29447d),_0x468c7c=this['getIndex'](_0x403e27);for(yield _0x403e27;_0x403e27;){if(_0x468c7c+=_0x3598c4,_0x403e27=this['getRevision'](_0x468c7c),!_0x403e27)return;_0xcddfc4(_0x403e27)&&(yield _0x403e27);}}}class $ extends _0x4b71e4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5c53e0,'c'],[_0x29027f,'a'],[_0xb86252,'e'],[_0x4fb903,'r'],[_0x553147,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5c53e0],['a',_0x29027f],['e',_0xb86252],['r',_0x4fb903],['u',_0x553147]]);async['loadRevisionData'](_0x291025,_0x52f375){if(_0x291025['diffData']||!_0x52f375)return;const _0x2f3056=this['editor']['config']['get']('collaboration.channelId'),_0x128a3f=await _0x52f375['getRevision']({'channelId':_0x2f3056,'revisionId':_0x291025['id']});_0x291025['diffData']=_0x128a3f['diffData'];}['getRevisionDocumentData'](_0x45a276){const _0x3dcc4a={};for(const _0x4d05e5 in _0x45a276['diffData']){if(_0x45a276['diffData'][_0x4d05e5]['attachChange']&&!_0x45a276['diffData'][_0x4d05e5]['attachChange']['isAttached'])continue;const _0x4628fc=this['_removeRevisionMarkers'](JSON['parse'](_0x45a276['diffData'][_0x4d05e5]['insertions'])),_0xd826ee=this['editor']['editing']['view']['document'],_0x185c55=new _0x28c8b2(_0xd826ee,_0x4628fc['map'](_0x5d08f7=>this['_getViewFromDiffObj'](_0x5d08f7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3dcc4a[_0x4d05e5]=this['editor']['data']['processor']['toData'](_0x185c55),this['editor']['data']['processor']['useFillerType']('default');}return _0x3dcc4a;}['getRevisionRootsAttributes'](_0x335d6a){const _0x4e9a21={};for(const _0x459579 in _0x335d6a['diffData'])_0x335d6a['diffData'][_0x459579]['attachChange']&&!_0x335d6a['diffData'][_0x459579]['attachChange']['isAttached']||(_0x4e9a21[_0x459579]=_0x335d6a['diffData'][_0x459579]['attributesAfter']||{});return _0x4e9a21;}['_getTypeCharForViewElement'](_0x244ba5){return this['_viewClassToTypeChar']['get'](_0x244ba5['constructor']);}['_getViewFromDiffObj'](_0x3a0a8e,_0x3c45b4){const _0x15fbed=this['editor']['editing']['view']['document'];if('string'==typeof _0x3a0a8e)return new _0x39d77d(_0x15fbed,_0x3a0a8e);{let _0x3e9411,_0x427201;_0x427201='u'==_0x3a0a8e['type']||'r'==_0x3a0a8e['type']?[]:_0x3a0a8e['children']['map'](_0x8d3a0d=>this['_getViewFromDiffObj'](_0x8d3a0d,_0x3c45b4));const _0x663e0a=this['_typeCharToViewClass']['get'](_0x3a0a8e['type'])||_0x4578d7,_0x29adaf=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3e9411=new _0x663e0a(_0x15fbed,_0x3a0a8e['name'],_0x3a0a8e['attributes'],_0x427201),'u'==_0x3a0a8e['type']&&_0x3a0a8e['children'][0x0]){const _0x3d0dfc=_0x3a0a8e['children'][0x0];if(_0x3e9411['render']=function(_0x47b692){const _0x34019c=_0x47b692['createElement']('div');return _0x34019c['innerHTML']=_0x3d0dfc,_0x34019c['childNodes'][0x0];},_0x3c45b4){const _0xa7d6d7=new _0x28c8b2(_0x15fbed);_0xa7d6d7['_appendChild'](_0x3e9411);const _0x3d803f=Array['from'](_0x29adaf['viewChildrenToDom'](_0xa7d6d7,{'bind':!0x1})),_0x465fb0=_0x29adaf['domDocument']['createElement']('div');_0x465fb0['append'](..._0x3d803f),_0x3e9411=Array['from'](_0x29adaf['domChildrenToView'](_0x465fb0))[0x0];}}else{if('r'==_0x3a0a8e['type']&&_0x3a0a8e['children'][0x0]){const _0xe51d4c=_0x3a0a8e['children'][0x0];if(_0x3e9411['render']=function(_0x280d1f){_0x280d1f['innerHTML']=_0xe51d4c;},_0x3c45b4){const _0x99b630=new _0x28c8b2(_0x15fbed);_0x99b630['_appendChild'](_0x3e9411);const _0x132c55=Array['from'](_0x29adaf['viewChildrenToDom'](_0x99b630,{'bind':!0x1})),_0x2a53bb=_0x29adaf['domDocument']['createElement']('div');_0x2a53bb['append'](..._0x132c55);const _0x2e5a8a=Array['from'](_0x29adaf['domChildrenToView'](_0x2a53bb));_0x2e5a8a['length']>0x1?_0x3e9411['_appendChild'](_0x2e5a8a):_0x3e9411=_0x2e5a8a[0x0];}}}if(_0x3a0a8e['customProperties']){for(const [_0x178ea0,_0x14bdd6]of _0x3a0a8e['customProperties'])_0x3e9411['_setCustomProperty'](_0x178ea0,_0x14bdd6);}const _0x26b707=void 0x0===_0x3a0a8e['fillerOffset']?null:_0x3a0a8e['fillerOffset'];return null!==_0x26b707&&(_0x3e9411['getFillerOffset']=()=>_0x26b707),_0x3e9411;}}['_makeModelFromViewString'](_0xe35997){const _0x4600c5=JSON['parse'](_0xe35997),_0x5a5e13=this['editor']['editing']['view']['document'],_0x5cf0d7=new _0x28c8b2(_0x5a5e13,_0x4600c5['map'](_0x1f26ba=>this['_getViewFromDiffObj'](_0x1f26ba,!0x0)));return this['editor']['data']['toModel'](_0x5cf0d7);}['_removeRevisionMarkers'](_0x205686){return(_0x205686=_0x205686['filter'](_0x4afe60=>!_0x4afe60['name']||'revision-start'!==_0x4afe60['name']&&'revision-end'!==_0x4afe60['name']))['forEach'](_0x1a4836=>{'string'!=typeof _0x1a4836&&(_0x1a4836['children']=this['_removeRevisionMarkers'](_0x1a4836['children']),_0x1a4836['attributes']=_0x1a4836['attributes']['filter'](_0x4f875d=>!_0x4f875d[0x0]['startsWith']('data-revision-')));}),_0x205686;}}function m(_0x325dfc,_0x4870f7,_0x380c49){const t=_0x325dfc['t'];switch(_0x4870f7){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'},_0x380c49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x380c49);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 _0x4b71e4{['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[_0x3ecf8d,S,$,_0xbbae3a];}constructor(_0x40e399){super(_0x40e399),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 _0x7d43d4=_0x118ae2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7d43d4},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 _0x16b58a=this['repository']['getRevision'](0x0),_0x4ff36b=_0x16b58a&&null===_0x16b58a['creator']?_0x16b58a:null;if(this['_continueCurrentRevision']=!!_0x4ff36b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2792bd=this['_source']['getCurrentRevisionId'](),_0x378af5=this['repository']['getRevision'](_0x2792bd);if(_0x378af5)this['_startingVersion']=_0x378af5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4b1ec7=this['_source']['history']['_operations']['find'](_0x4dae99=>!_0x4dae99['_isInit']),_0xcfbb56=_0x4b1ec7?_0x4b1ec7['baseVersion']:this['_source']['history']['version'];_0x16b58a?(_0x16b58a['toVersion']<_0xcfbb56&&_0x16b58a['_update']({'toVersion':_0xcfbb56}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id'],this['_startingVersion']=_0x4ff36b['fromVersion']):(this['_startingVersion']=_0x16b58a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xcfbb56,this['_continueCurrentRevision']=!0x1);}}else _0x4ff36b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ff36b['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ff36b['fromVersion']===_0x4ff36b['toVersion']?(0x0!==_0x4ff36b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id'],this['_startingVersion']=_0x4ff36b['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',_0x5e8980=>!_0x5e8980),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5cc7ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6ade58;for(const _0x4e3ae4 in _0x5cc7ca){const _0x5832eb=_0x4e3ae4,_0x3d8309=_0x5cc7ca[_0x5832eb];if('revisionHistoryLicenseKeyValid'==_0x3d8309||'revisionHistoryLicenseKeyInvalid'==_0x3d8309||'revisionHistoryLicenseKeyExpired'==_0x3d8309||'revisionHistoryLicenseKeyDomainLimit'==_0x3d8309||'revisionHistoryLicenseKeyNotAllowed'==_0x3d8309||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3d8309||'revisionHistoryLicenseKeyTrialLimit'==_0x3d8309||'revisionHistoryLicenseKeyUsageLimit'==_0x3d8309){delete _0x5cc7ca[_0x5832eb],_0x6ade58=_0x3d8309,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x21eff5=this['repository']['getRevision'](0x0),_0x3bae3e=await this['getRevisionDocumentData'](_0x21eff5),_0x118a25=await this['getRevisionRootsAttributes'](_0x21eff5);this['_replaceEditorDataWithRevisionData'](_0x3bae3e,_0x118a25);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3edbb6){this['_source']=_0x3edbb6;}async['update'](){const _0x482870=await this['_source']['getLatestVersion']();if(_0x482870>this['currentRevision']['toVersion']){await this['_loadState']();const _0xce427a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x482870});_0xce427a['authors']=_0xce427a['authorsIds']['map'](_0x4c2523=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c2523)),this['currentRevision']['_update'](_0xce427a);}}async['saveRevision'](_0x3757ce={},_0x1e58bf=null){const _0x277276=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e58bf>this['currentRevision']['toVersion']&&(_0x1e58bf=null),null===_0x1e58bf&&(_0x1e58bf=await this['_source']['getLatestVersion']());const _0x1acdf8=this['_getFromVersion'](_0x1e58bf),_0x251ed4=this['buildRevisionData']({'from':_0x1acdf8,'to':_0x1e58bf});if(this['currentRevision']['toVersion']<_0x1e58bf){const _0x208c43=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e58bf,'to':_0x1e58bf});_0x208c43['authors']=[],_0x208c43['authorsIds']=[],_0x208c43['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x208c43,!0x0),delete _0x208c43['authors'],_0x277276['push'](_0x208c43);}_0x3757ce['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3757ce['name']=_0x3757ce['name']||null,_0x3757ce['id']=_0x3757ce['id']||_0x118ae2(),_0x3757ce={..._0x3757ce,..._0x251ed4};const _0xbb30f=this['addRevisionData'](_0x3757ce);_0x277276['push'](_0x3757ce);const _0x11fbc3=this['repository']['getIndex'](_0xbb30f);if(0x0!==_0x11fbc3){const _0x161fb8=this['repository']['getRevision'](_0x11fbc3-0x1);if(_0x161fb8['fromVersion']!==_0x1e58bf){const _0x31b2aa=this['_revisionDataBuilder']['getData'](_0x1e58bf,_0x161fb8['toVersion']),_0x1281fb={'id':_0x161fb8['id'],'diffData':_0x31b2aa['diffData'],'authorsIds':_0x31b2aa['authorsIds'],'authors':_0x31b2aa['authorsIds']['map'](_0x4044a5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4044a5)),'fromVersion':_0x1e58bf};_0x161fb8===this['currentRevision']&&(_0x1281fb['createdAt']=new Date(_0x3757ce['createdAt']['getTime']()+0xa)),_0x161fb8['_update'](_0x1281fb,!0x0),delete _0x1281fb['authors'],_0x277276['push'](_0x1281fb);}}if(this['adapter']){for(const _0x2c0f73 of _0x277276)this['_bufferUpdate'](_0x2c0f73['id'],_0x2c0f73,!0x0);this['sendBufferedUpdates']();}return _0xbb30f;}['addRevisionData'](_0x40dd44){const _0xe379f7=this['repository']['createRevision'](_0x40dd44);return this['adapter']&&_0xe379f7['on']('_update',(_0x287ff1,_0x48d550,_0x2de12b)=>{_0x2de12b||(this['_bufferUpdate'](_0x48d550['id'],_0x48d550,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe379f7,this['_findInsertionIndex'](_0xe379f7)),_0xe379f7;}async['getRevisionDocumentData'](_0x5e8339){return await this['_utils']['loadRevisionData'](_0x5e8339,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5e8339);}async['getRevisionRootsAttributes'](_0x2d4c81){return await this['_utils']['loadRevisionData'](_0x2d4c81,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d4c81);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x11fee7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x41dfd6=0x0;_0x41dfd6<_0x11fee7['length'];_0x41dfd6++){const _0x3d0778=_0x11fee7[_0x41dfd6];let _0xbfa6e8=!0x1;for(const _0x588287 of Object['keys'](_0x3d0778))void 0x0===_0x3d0778[_0x588287]?delete _0x3d0778[_0x588287]:'id'!==_0x588287&&(_0xbfa6e8=!0x0);_0xbfa6e8||(_0x11fee7[_0x41dfd6]=null);}if(_0x11fee7=_0x11fee7['filter'](_0x4a89c9=>null!==_0x4a89c9),!_0x11fee7['length'])return;for(let _0x14db40=0x0;_0x14db40<_0x11fee7['length'];_0x14db40++){const _0x41e1e5=_0x11fee7[_0x14db40];void 0x0!==_0x41e1e5['fromVersion']&&void 0x0===_0x41e1e5['toVersion']&&(_0x41e1e5['toVersion']=this['repository']['getRevision'](_0x41e1e5['id'])['toVersion']),void 0x0!==_0x41e1e5['toVersion']&&void 0x0===_0x41e1e5['fromVersion']&&(_0x41e1e5['fromVersion']=this['repository']['getRevision'](_0x41e1e5['id'])['fromVersion']);}const _0x242df4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x11fee7,_0x242df4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ff642=>{if(_0x1ff642){for(const _0x1dfe5b of _0x1ff642)this['setRevisionData']({'id':_0x1dfe5b['id'],'createdAt':_0x1dfe5b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x423960=null,from:_0x4c01a4=null,to:_0x3ef707=null}){_0x4c01a4=null!==_0x4c01a4?_0x4c01a4:_0x423960['fromVersion'],_0x3ef707=null!==_0x3ef707?_0x3ef707:_0x423960['toVersion'];const _0x19f658=this['_revisionDataBuilder']['getData'](_0x4c01a4,_0x3ef707),_0x393bc5={'diffData':_0x19f658['diffData'],'authorsIds':_0x19f658['authorsIds'],'fromVersion':_0x4c01a4,'toVersion':_0x3ef707};if(!_0x423960||_0x3ef707!==_0x423960['toVersion']){const _0x8005bc=_0x3ef707-0x1,_0x24c92a=this['_source']['history']['getOperation'](_0x8005bc);_0x393bc5['createdAt']=_0x24c92a&&_0x24c92a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c01a4===this['_loadedStateData']['fromVersion']){for(const _0x274556 of this['_loadedStateData']['authors'])_0x393bc5['authorsIds']['includes'](_0x274556['id'])||_0x393bc5['authorsIds']['push'](_0x274556['id']);}return _0x393bc5;}['_bufferUpdate'](_0xb2d6fa,_0x14a4f1,_0x423a5f){if(this['_bufferedUpdates']['has'](_0xb2d6fa)){const _0x5b9314=this['_bufferedUpdates']['get'](_0xb2d6fa);_0x14a4f1=_0x423a5f?{..._0x5b9314,..._0x14a4f1}:{..._0x14a4f1,..._0x5b9314};}this['_bufferedUpdates']['set'](_0xb2d6fa,_0x14a4f1);}['setRevisionData'](_0x3cf7de){const _0x10002f=this['repository']['getRevision'](_0x3cf7de['id']);if(_0x3cf7de['createdAt']&&(_0x3cf7de['createdAt']=new Date(_0x3cf7de['createdAt'])),_0x3cf7de['authorsIds']){const _0xc55f14=this['editor']['plugins']['get']('Users');_0x3cf7de['authors']=_0x3cf7de['authorsIds']['map'](_0x59acb5=>_0xc55f14['getUser'](_0x59acb5));}_0x10002f['_update'](_0x3cf7de,!0x0);}['_createInitialRevision'](_0x3df239){const _0x43ba3b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x43ba3b)this['_initialRevisionId']=_0x43ba3b['id'];else{const _0x56b069=!this['editor']['model']['document']['roots']['find'](_0x18ad6b=>this['editor']['model']['hasContent'](_0x18ad6b)),_0x1ce4a7=this['editor']['plugins']['get']('Users')['me']['id'],_0x352a59=m(this['editor']['locale'],_0x56b069?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3df239,'to':_0x3df239,'id':this['_initialRevisionId'],'name':_0x352a59,'creatorId':_0x1ce4a7});}}['_createCurrentRevision'](_0x1bd65e){const _0x55f961=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x55f961),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1bd65e,'to':_0x1bd65e,'id':_0x55f961,'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'](_0x5bdbfb,_0x19e0af){let _0x48fd8d=this['editor']['config']['get']('initialData'),_0xf82e02=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48fd8d){_0x48fd8d={};for(const _0x918f7c of this['editor']['model']['document']['getRootNames']())_0x48fd8d[_0x918f7c]='';}if('string'==typeof _0x48fd8d&&(_0x48fd8d={'main':_0x48fd8d}),void 0x0===_0xf82e02){_0xf82e02={};for(const _0x28be77 of this['editor']['model']['document']['getRootNames']())_0xf82e02[_0x28be77]={};}let _0x41922d=!0x1;const _0x29972c=Object['keys'](_0x48fd8d),_0x21a7cd=Object['keys'](_0x5bdbfb);for(const _0x52db2c of _0x29972c){if(_0x48fd8d[_0x52db2c]!==_0x5bdbfb[_0x52db2c]&&''!==_0x48fd8d[_0x52db2c]['trim']()){_0x41922d=!0x0;break;}if(!_0xb75ec2(_0xf82e02[_0x52db2c],_0x19e0af[_0x52db2c])&&Object['keys'](_0xf82e02[_0x52db2c])['length']>0x0){_0x41922d=!0x0;break;}}_0x41922d||(_0x41922d=_0x21a7cd['some'](_0x225a57=>!this['editor']['model']['document']['getRoot'](_0x225a57))),_0x41922d&&_0x88625c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48fd8d,'editorRootsAttributes':_0xf82e02,'revisionData':_0x5bdbfb,'revisionRootsAttributes':_0x19e0af}),this['editor']['config']['set']('initialData',_0x5bdbfb),this['editor']['config']['set']('rootsAttributes',_0x19e0af);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x160ac3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x160ac3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xece95){const _0x3e3055=this['repository']['getRevisions']();_0x3e3055['reverse']();let _0x33ca83=0x0;for(;_0x33ca83<_0x3e3055['length'];){const _0x44b032=_0x3e3055[_0x33ca83];if(_0x44b032===this['currentRevision']){_0x33ca83++;continue;}if(_0x44b032['id']===this['_initialRevisionId'])break;const _0x5e8139=_0xece95['toVersion']-_0x44b032['toVersion']||_0xece95['fromVersion']-_0x44b032['fromVersion'];if(_0x5e8139>0x0)break;if(_0x5e8139<0x0)_0x33ca83++;else{if(!_0xece95['creator']&&_0x44b032['creator'])break;if(_0x44b032['creator']||!_0xece95['creator']){if(_0xece95['createdAt']>_0x44b032['createdAt'])break;_0x33ca83++;}else _0x33ca83++;}}return _0x33ca83;}['_getFromVersion'](_0x493f65){const _0x5b8b0b=this['repository']['getRevisions']();_0x5b8b0b['reverse'](),_0x5b8b0b['shift']();const _0x2b23da=_0x5b8b0b['find'](_0x3a0f21=>_0x3a0f21['toVersion']<=_0x493f65)['toVersion'];return _0x2b23da<this['_startingVersion']?this['_startingVersion']:_0x2b23da;}['_makeRevision']({name:_0x1afc69,from:_0x58c22f,to:_0x14308a,creatorId:_0x40d81a,id:_0x1d05cb}){const _0x51a17f=this['buildRevisionData']({'from':_0x58c22f,'to':_0x14308a});_0x51a17f['name']=_0x1afc69,_0x51a17f['creatorId']=_0x40d81a,_0x51a17f['id']=_0x1d05cb;const _0x475a08=this['addRevisionData'](_0x51a17f);return this['adapter']&&this['_bufferUpdate'](_0x51a17f['id'],_0x51a17f,!0x0),_0x475a08;}['_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(_0x71e852){this['editor']=_0x71e852,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'](_0x4f3d54){this['source']=_0x4f3d54;const _0x5e83d0=new Map(),_0x52a2f1=new Map(),_0x1ac6be=this['editor']['model']['document']['roots']['map'](_0x36766f=>_0x36766f['rootName']);for(const _0x320342 of _0x1ac6be){const _0x37ce06=this['editor']['model']['document']['getRoot'](_0x320342),_0x25a1ca=x(_0x37ce06);_0x5e83d0['set'](_0x320342,_0x25a1ca),_0x52a2f1['set'](_0x320342,Object['fromEntries'](_0x37ce06['getAttributes']()));}const _0x574f70=Array['from'](this['editor']['model']['markers'])['map'](_0x28fb6b=>[_0x28fb6b['name'],_0x28fb6b['getRange']()]),_0x1ddb16=this['source']['version'];this['_saveMetaData'](_0x1ddb16,_0x5e83d0,_0x574f70,_0x52a2f1),this['_startingRevisionId']=this['_revisionId'];const _0xb045c4=new Map(),_0x1b5f88=new Map();for(const _0x3d50b1 of _0x1ac6be){const _0x3d1679=N(_0x3d50b1);_0xb045c4['set'](_0x3d50b1,_0x3d1679),_0x1b5f88['set'](_0x3d50b1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb045c4,[],_0x1b5f88);}['getData'](_0x21cf4a,_0x1706ec){if(this['_lastFrom']===_0x21cf4a&&this['_lastTo']<=_0x1706ec)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1706ec,!0x0);else{if(!this['_savedMetaData']['has'](_0x21cf4a)){const _0x5d3a59=this['_getPreviousFrom'](_0x21cf4a);this['_calculateMetaData'](_0x5d3a59,_0x21cf4a,!0x1);}this['_calculateMetaData'](_0x21cf4a,_0x1706ec,!0x0);}return this['_lastFrom']=_0x21cf4a,this['_lastTo']=_0x1706ec,this['_getState']();}['loadState'](_0x207491){if(!this['_savedMetaData']['has'](_0x207491['fromVersion'])){const _0x32c1d=this['_getPreviousFrom'](_0x207491['fromVersion']);this['_calculateMetaData'](_0x32c1d,_0x207491['fromVersion'],!0x1);}this['_calculateMetaData'](_0x207491['fromVersion'],_0x207491['toVersion'],!0x1);const _0xd13c0a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x207491['fromVersion'],this['_lastTo']=_0x207491['toVersion'];for(const _0x282907 in _0x207491['diffData']){const _0x11b6cf=_0x207491['diffData'][_0x282907]['attachChange'],_0x477a86=_0x3f9059(_0x207491['diffData'][_0x282907]['attributesBefore'])||{},_0x3a9c18=_0xd13c0a['_makeModelFromViewString'](_0x207491['diffData'][_0x282907]['deletions']);_0x3a9c18['rootName']=_0x282907,_0x3a9c18['_isAttached']=!_0x11b6cf||!_0x11b6cf['isAttached'],_0x3a9c18['isAttached']=()=>_0x3a9c18['_isAttached'],this['_baseRoots']['set'](_0x282907,_0x3a9c18),this['_baseRootsAttributes']['set'](_0x282907,_0x477a86),_0x11b6cf&&this['_touchedRoots']['set'](_0x282907,_0x11b6cf);const _0x4bec46=this['_makeIdsRoot'](_0x3a9c18);this['_baseIdsRoots']['set'](_0x282907,_0x4bec46);for(const [_0x3a837a,_0x31d2e1]of _0x3a9c18['markers']){if(!_0x3a837a['startsWith']('revision:'))continue;const _0x42fee3=_0x3a837a['split'](':')[0x2];for(const _0x3136fb of _0x31d2e1['getWalker']({'singleCharacters':!0x0})){const _0x21b413=this['_getVidAttributeName'](_0x3136fb),_0x1019ec='elementEnd'==_0x3136fb['type']?_0x3136fb['previousPosition']['path']['slice'](0x0,-0x1):_0x3136fb['previousPosition']['path'],_0x5300f9=_0x4bec46['getNodeByPath'](_0x1019ec)['getAttribute'](_0x21b413);this['_touched']['set'](_0x5300f9,{'userId':_0x42fee3});}_0x3a9c18['markers']['delete'](_0x3a837a);}}this['_startingRevisionId']=this['_revisionId'];const _0x232f9f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5adb11=>!this['_touched']['has'](_0x5adb11));let _0x236a25=0x0;const _0x111306=new Map();for(const _0x36dfa7 in _0x207491['diffData']){const _0x5c8e6b=_0x207491['diffData'][_0x36dfa7]['attachChange'],_0x35ecc1=_0x3f9059(_0x207491['diffData'][_0x36dfa7]['attributesAfter'])||{},_0x255d8e=_0xd13c0a['_makeModelFromViewString'](_0x207491['diffData'][_0x36dfa7]['insertions']);_0x255d8e['rootName']=_0x36dfa7,_0x255d8e['_isAttached']=!_0x5c8e6b||_0x5c8e6b['isAttached'],_0x255d8e['isAttached']=()=>_0x255d8e['_isAttached'],this['_diffRoots']['set'](_0x36dfa7,_0x255d8e),this['_diffRootsAttributes']['set'](_0x36dfa7,_0x35ecc1);const _0x209d05=this['_makeIdsRoot'](_0x255d8e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x36dfa7,_0x209d05),_0x111306['set'](_0x36dfa7,_0x255d8e['isAttached']()?_0x35ecc1:{});for(const [_0x3c6908,_0x232592]of _0x255d8e['markers']){if(!_0x3c6908['startsWith']('revision:'))continue;const _0x43f833=_0x3c6908['split'](':')[0x2];for(const _0x47aad5 of _0x232592['getWalker']({'singleCharacters':!0x0})){const _0x163453=this['_getVidAttributeName'](_0x47aad5),_0x190d67=this['_revisionId']++,_0x408199='elementEnd'==_0x47aad5['type']?_0x47aad5['previousPosition']['path']['slice'](0x0,-0x1):_0x47aad5['previousPosition']['path'];_0x209d05['getNodeByPath'](_0x408199)['_setAttribute'](_0x163453,_0x190d67),this['_touched']['set'](_0x190d67,{'userId':_0x43f833});}_0x255d8e['markers']['delete'](_0x3c6908);}for(const _0x3f0189 of this['editor']['model']['createRangeIn'](_0x255d8e)['getWalker']({'singleCharacters':!0x0})){const _0x4f9115=this['_getVidAttributeName'](_0x3f0189),_0x48d170='elementEnd'==_0x3f0189['type']?_0x3f0189['previousPosition']['path']['slice'](0x0,-0x1):_0x3f0189['previousPosition']['path'],_0x34ecc8=_0x209d05['getNodeByPath'](_0x48d170);_0x34ecc8['getAttribute'](_0x4f9115)>0x0||_0x34ecc8['_setAttribute'](_0x4f9115,_0x232f9f[_0x236a25++]);}for(const [_0x4c206d,_0x5548ea]of _0x255d8e['markers'])_0x4c206d['startsWith']('revision:')||this['_markers']['set'](_0x4c206d,_0x5548ea);}const {roots:_0x513ea0}=this['_savedMetaData']['get'](_0x207491['fromVersion']),{roots:_0x371d60}=this['_savedMetaData']['get'](_0x207491['toVersion']),_0x4de3c9=x(_0x513ea0['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x4de3c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4de3c9,Number['NEGATIVE_INFINITY']));const _0x549c9f=x(_0x371d60['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x549c9f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x549c9f));const _0x3d7d69=Array['from'](this['_diffRoots'])['map'](([_0x1eaa1e,_0x4c1df3])=>[_0x1eaa1e,x(_0x4c1df3)]);this['_saveMetaData'](this['_lastTo'],_0x3d7d69,this['_markers'],_0x111306);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2137ac,_0x3c52ff,_0xb51153,_0x533c91){const _0x55c643=new Map(_0x3c52ff),_0x145a79=new Map(_0x3f9059(_0x533c91)),_0x594dd2=new Map();for(const [_0x572671,_0x120cd7]of _0xb51153)_0x594dd2['set'](_0x572671,{'start':_0x120cd7['start']['clone'](),'end':_0x120cd7['end']['clone'](),'rootName':_0x120cd7['root']['rootName']});this['_savedMetaData']['set'](_0x2137ac,{'roots':_0x55c643,'markers':_0x594dd2,'rootsAttributes':_0x145a79});}['_removeMetaData'](_0x29f183){this['_savedMetaData']['delete'](_0x29f183);}['_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'](_0x665acb,_0x1a7e44=null){let _0x249d63=null;_0x665acb['is']('documentFragment')||(_0x249d63=new _0x10b403(_0x665acb['name'],{'vid_start':null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++}));const _0xb32b8e=[];for(const _0x3b3575 of _0x665acb['getChildren']())if(_0x3b3575['is']('element')){_0xb32b8e['push'](this['_makeIdsRoot'](_0x3b3575,_0x1a7e44));const _0x5eee7b=_0xb32b8e[_0xb32b8e['length']-0x1];null!==_0x1a7e44&&(_0x1a7e44=_0x5eee7b['is']('element','$text')?_0x5eee7b['getAttribute']('vid')+0x1:_0x5eee7b['getAttribute']('vid_end')+0x1);}else{for(let _0x2d8918=0x0;_0x2d8918<_0x3b3575['offsetSize'];_0x2d8918++)_0xb32b8e['push'](new _0x10b403('$text',{'vid':null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++}));}if(_0x665acb['is']('documentFragment')){const _0x184104=N(_0x665acb['rootName']);return _0x184104['_insertChild'](0x0,_0xb32b8e),_0x184104;}return _0x249d63['_setAttribute']('vid_end',null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++),_0x249d63['_insertChild'](0x0,_0xb32b8e),_0x249d63;}['_calculateMetaData'](_0x17908f,_0x57fd91,_0x34585e){this['_reset']();const {roots:_0x246c9b,markers:_0x5578ef,rootsAttributes:_0x56ed0c}=this['_savedMetaData']['get'](_0x17908f);this['_baseRoots']=new Map(_0x246c9b),this['_baseRootsAttributes']=new Map(_0x3f9059(_0x56ed0c));for(const [_0x1f5f38,_0x3a7cb4]of this['_baseRoots'])if('$graveyard'!==_0x1f5f38&&(this['_diffRoots']['set'](_0x1f5f38,x(_0x3a7cb4)),this['_diffRootsAttributes']=new Map(_0x3f9059(_0x56ed0c)),_0x34585e)){const _0x19f3e7=this['_revisionId'];this['_idsRoots']['set'](_0x1f5f38,this['_makeIdsRoot'](_0x3a7cb4)),this['_baseIdsRoots']['set'](_0x1f5f38,this['_makeIdsRoot'](_0x3a7cb4,_0x19f3e7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x34585e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f2570,_0x390f2c]of _0x5578ef){const _0x4c0bd0=this['_baseRoots']['get'](_0x390f2c['rootName']),_0x3c57f4=this['_diffRoots']['get'](_0x390f2c['rootName']),_0x1f02ca=new _0x10fc72(this['_fixPosition'](_0x390f2c['start'],_0x4c0bd0),this['_fixPosition'](_0x390f2c['end'],_0x4c0bd0)),_0x1136ae=this['_fixRange'](_0x1f02ca,_0x3c57f4);_0x4c0bd0['markers']['set'](_0x3f2570,_0x1f02ca),this['_markers']['set'](_0x3f2570,_0x1136ae);}this['_applyOperations'](_0x17908f,_0x57fd91,_0x34585e);}['_applyOperations'](_0x5c5a80,_0x4773bf,_0x5b6fe7){for(const _0x5d3b9f of this['source']['getOperations'](_0x5c5a80,_0x4773bf))this['_handleOperation'](_0x5d3b9f,_0x5b6fe7);for(const _0x63d9db of this['_diffRoots']['values']())_0x63d9db['markers']['clear']();for(const [_0x24711,_0x31515e]of this['_markers']){this['_diffRoots']['get'](_0x31515e['root']['rootName'])['markers']['set'](_0x24711,_0x31515e['clone']());}const _0x1eb41f=new Map(),_0x4d1ca7=new Map();for(const [_0x1e0294,_0x374772]of this['_diffRoots'])_0x1eb41f['set'](_0x1e0294,x(_0x374772)),_0x4d1ca7['set'](_0x1e0294,this['_diffRootsAttributes']['get'](_0x1e0294));this['_saveMetaData'](_0x4773bf,_0x1eb41f,this['_markers'],_0x4d1ca7);}['_getPreviousFrom'](_0x48d4ab){const _0x3cf356=Array['from'](this['_savedMetaData']['keys']());_0x3cf356['sort']((_0xd00ce6,_0x19dee1)=>_0xd00ce6-_0x19dee1),_0x3cf356['reverse']();for(const _0x40647a of _0x3cf356)if(_0x40647a<_0x48d4ab)return _0x40647a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a9e06,_0x1b3627){const _0x4903e8=Array['from'](_0x1b3627['markers'])['map'](([_0x5e0e03,_0x4630f8])=>[_0x5e0e03,this['_fixRange'](_0x4630f8,_0x5a9e06)]);_0x5a9e06['markers']=new Map(_0x4903e8);}['_transformMarkers'](_0x138d68){for(const _0x28e5f2 of this['_markers']['values']()){const _0x6f8751=_0x28e5f2['getTransformedByOperation'](_0x138d68),_0x4c39cf=_0x10fc72['_createFromRanges'](_0x6f8751);_0x28e5f2['start']=_0x4c39cf['start'],_0x28e5f2['end']=_0x4c39cf['end'];}}['_handleOperation'](_0x26228b,_0x214dd4){if('addRoot'!=_0x26228b['type']&&'detachRoot'!=_0x26228b['type']){if('insert'==_0x26228b['type']){const _0x1c7043=_0x26228b['position']['root']['rootName'];this['_diffRoots']['has'](_0x1c7043)||(this['_diffRoots']['set'](_0x1c7043,N(_0x1c7043,!0x0)),this['_diffRootsAttributes']['set'](_0x1c7043,{}),_0x214dd4&&this['_idsRoots']['set'](_0x1c7043,N(_0x1c7043,!0x0)));}else{if('addRootAttribute'==_0x26228b['type']||'removeRootAttribute'==_0x26228b['type']||'changeRootAttribute'==_0x26228b['type'])return void this['_handleRootAttributeOperation'](_0x26228b);'marker'==_0x26228b['type']&&this['_handleMarkerOperation'](_0x26228b);}if('marker'!==_0x26228b['type']){const _0x35991c=this['_cloneOperation'](_0x26228b,this['_diffRoots']);_0x35991c['_execute'](),this['_transformMarkers'](_0x35991c);}if(_0x214dd4)switch(_0x26228b['type']){case'insert':this['_handleInsertOperation'](_0x26228b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26228b);break;case'merge':this['_handleMergeOperation'](_0x26228b);break;case'split':this['_handleSplitOperation'](_0x26228b);}}else this['_handleRootOperation'](_0x26228b,_0x214dd4);}['_cloneOperation'](_0x4305fa,_0x5e08fb){const _0x280295=_0x4305fa['clone']();return _0x280295['_authorId']=_0x4305fa['_authorId'],this['_fixOperation'](_0x280295,_0x5e08fb),_0x280295;}['_getBaseVids'](_0x5b1083){return _0x5b1083['map'](_0x2d3704=>{const _0x50f248=this['_getVidAttributeName'](_0x2d3704);return Number(_0x2d3704['item']['getAttribute'](_0x50f248));});}['_generateTape'](_0x4ebf4b,_0x34fc48){if(_0x4ebf4b['is']('element','$text'))_0x34fc48['push']({'item':_0x4ebf4b,'type':'text'});else{_0x4ebf4b['is']('element')&&_0x34fc48['push']({'item':_0x4ebf4b,'type':'elementStart'});for(const _0x404de4 of _0x4ebf4b['getChildren']())this['_generateTape'](_0x404de4,_0x34fc48);_0x4ebf4b['is']('element')&&_0x34fc48['push']({'item':_0x4ebf4b,'type':'elementEnd'});}return _0x34fc48;}['_getState'](){const _0xc0a8fd=new Map(this['_touched']),_0x1e7135=new Map(_0xc0a8fd),_0x5f0ab3=new Map(),_0x53e654={'insertions':{},'deletions':{}},_0x466de6={'insertions':{},'deletions':{}},_0x3749ee=new Map(),_0x2fe7de=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2fe7de['delete']('$graveyard');for(const _0x48e929 of _0x2fe7de){const _0x4af4a9=this['_diffRoots']['get'](_0x48e929)||N(_0x48e929,!0x1),_0x56f17d=this['_baseRoots']['get'](_0x48e929)||N(_0x48e929,!0x1);_0x4af4a9['isAttached']()||_0x56f17d['isAttached']()?(_0x53e654['insertions'][_0x48e929]=x(_0x4af4a9),_0x53e654['deletions'][_0x48e929]=x(_0x56f17d),this['_copyMarkers'](_0x53e654['deletions'][_0x48e929],_0x56f17d),this['_copyMarkers'](_0x53e654['insertions'][_0x48e929],_0x4af4a9),_0x466de6['insertions'][_0x48e929]=this['_generateTape'](this['_idsRoots']['get'](_0x48e929),[]),_0x466de6['deletions'][_0x48e929]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x48e929)||N(_0x48e929,!0x1),[])):_0x2fe7de['delete'](_0x48e929);}for(const _0x301630 of _0x2fe7de){const _0x4ba2b1=_0x466de6['insertions'][_0x301630];for(const _0x31def2 of _0x4ba2b1){const _0x208c4c=this['_getVidAttributeName'](_0x31def2),_0x479273=_0x31def2['item']['getAttribute'](_0x208c4c);_0x1e7135['delete'](_0x479273),_0x479273>=this['_startingRevisionId']&&_0x5f0ab3['set'](_0x479273,_0xc0a8fd['get'](_0x479273));}}for(const _0x40ecb5 of _0x2fe7de){const _0x1624ed=_0x466de6['insertions'][_0x40ecb5],_0x1dda15=this['_getBaseVids'](_0x466de6['deletions'][_0x40ecb5]);let _0x501fbd=0x0;for(const _0x3f84c5 of _0x1624ed){const _0x2c33c9=this['_getVidAttributeName'](_0x3f84c5),_0x2377d8=_0x3f84c5['item']['getAttribute'](_0x2c33c9);if(!_0x5f0ab3['has'](_0x2377d8)&&!_0x3749ee['has'](_0x2377d8)){if(_0x1e7135['has'](_0x2377d8))_0x501fbd++;else{if(_0x2377d8!=_0x1dda15[_0x501fbd]){const _0x5bf071=_0xc0a8fd['get'](_0x2377d8)||_0xc0a8fd['get'](_0x1dda15[_0x501fbd]);for(;_0x2377d8!=_0x1dda15[_0x501fbd];)_0x1e7135['has'](_0x1dda15[_0x501fbd])||(_0x3749ee['set'](_0x1dda15[_0x501fbd],_0x5bf071),_0xc0a8fd['set'](_0x1dda15[_0x501fbd],_0x5bf071)),_0x501fbd++;}_0x501fbd++;}}}}for(const _0x3bae32 of _0x2fe7de){const _0x1a314f=_0x466de6['insertions'][_0x3bae32];for(const _0x5fcc2d of _0x1a314f){const _0x470488=this['_getVidAttributeName'](_0x5fcc2d),_0x3e4240=_0x5fcc2d['item']['getAttribute'](_0x470488);if(_0x3749ee['has'](_0x3e4240)){const _0x2dc179=_0x3749ee['get'](_0x3e4240);_0x1e7135['has'](_0x3e4240)||_0x1e7135['set'](_0x3e4240,{..._0x2dc179}),_0x5f0ab3['set'](_0x3e4240,{..._0x2dc179});}}}for(const _0x16654c of _0x1e7135['keys']())_0x16654c>=this['_startingRevisionId']&&_0x1e7135['delete'](_0x16654c);const _0x500ab5=new Map();for(const _0x4bd3af of _0x2fe7de){let _0x4c0279=_0x466de6['insertions'][_0x4bd3af];for(const _0x2510ab of _0x4c0279)if(_0x2510ab['item']['is']('element','tableCell')){const _0x5a740d=this['_getVidAttributeName'](_0x2510ab),_0x2b2a50=_0x2510ab['item']['getAttribute'](_0x5a740d);if(_0x5f0ab3['has'](_0x2b2a50)){const _0x2e3df8=_0x2510ab['item']['parent']['parent']['getAttribute']('vid_start'),_0x57248f=_0x500ab5['get'](_0x2e3df8)||new Set();_0x57248f['add'](_0x5f0ab3['get'](_0x2b2a50)['userId']),_0x500ab5['set'](_0x2e3df8,_0x57248f);}}_0x4c0279=_0x466de6['deletions'][_0x4bd3af];for(const _0x5897b1 of _0x4c0279)if(_0x5897b1['item']['is']('element','tableCell')){const _0x47a0cd=this['_getVidAttributeName'](_0x5897b1),_0x16fb0c=_0x5897b1['item']['getAttribute'](_0x47a0cd);if(_0x1e7135['has'](_0x16fb0c)){const _0xbf0419=_0x5897b1['item']['parent']['parent']['getAttribute']('vid_start'),_0x548b2c=_0x500ab5['get'](_0xbf0419)||new Set();_0x548b2c['add'](_0x1e7135['get'](_0x16fb0c)['userId']),_0x500ab5['set'](_0xbf0419,_0x548b2c);}}for(const _0x3e3a03 of _0x500ab5['keys']())(_0x5f0ab3['has'](_0x3e3a03)||_0x1e7135['has'](_0x3e3a03))&&_0x500ab5['delete'](_0x3e3a03);}for(const _0xa1b853 of _0x2fe7de){const _0x211c66=_0x466de6['insertions'][_0xa1b853];let _0x14bee4=null,_0x1d6447=null;for(const _0x35b2d1 of _0x211c66){const _0x221bb8=this['_getVidAttributeName'](_0x35b2d1),_0x368c82=_0x35b2d1['item']['getAttribute'](_0x221bb8),_0x50bca3=_0x500ab5['get'](_0x368c82);_0x50bca3&&'elementStart'==_0x35b2d1['type']&&(_0x14bee4=Array['from'](_0x50bca3)[0x0],_0x1d6447=_0x35b2d1['item']['getAttribute']('vid_end')),_0x14bee4&&(_0x1e7135['set'](_0x368c82,{'userId':_0x14bee4}),_0x5f0ab3['set'](_0x368c82,{'userId':_0x14bee4})),_0x368c82==_0x1d6447&&(_0x14bee4=null,_0x1d6447=null);}}const _0xf8308f={},_0x5a127c=new Set();for(const _0x11e8fb of _0x2fe7de){const _0x4f499c=_0x53e654['deletions'][_0x11e8fb],_0x34a70a=_0x53e654['insertions'][_0x11e8fb];for(const {userId:_0x2d5f71}of this['_touchedMarkers']['values']())null!==_0x2d5f71&&_0x5a127c['add'](_0x2d5f71);for(const {userId:_0xaa9361}of this['_touchedRoots']['values']())null!==_0xaa9361&&_0x5a127c['add'](_0xaa9361);this['_markChanges'](_0x34a70a,_0x466de6['insertions'][_0x11e8fb],_0x5f0ab3,'insertion',_0x5a127c),this['_markChanges'](_0x4f499c,_0x466de6['deletions'][_0x11e8fb],_0x1e7135,'deletion',_0x5a127c),_0xf8308f[_0x11e8fb]={'insertions':this['_prepareViewToSave'](_0x34a70a),'deletions':this['_prepareViewToSave'](_0x4f499c),'attachChange':this['_touchedRoots']['get'](_0x11e8fb)||null,'attributesBefore':_0x3f9059(this['_baseRootsAttributes']['get'](_0x11e8fb))||{},'attributesAfter':_0x3f9059(this['_diffRootsAttributes']['get'](_0x11e8fb))};}return{'diffData':_0xf8308f,'authorsIds':Array['from'](_0x5a127c)};}['_processRootBeforeSave'](_0xa9b71e){for(const [,_0x54b75c]of _0xa9b71e['markers']){const _0x34d5c5=_0x54b75c['start']['getAncestors']()['filter'](_0x517177=>'tableCell'==_0x517177['name']);for(const _0x51149b of _0x34d5c5)0x1==_0x51149b['childCount']&&_0x51149b['getChild'](0x0)['is']('element','paragraph')&&_0x51149b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5b2015){this['_processRootBeforeSave'](_0x5b2015);const _0x52dfd8=this['editor']['data']['toView'](_0x5b2015,{}),_0x50a3c6=Array['from'](_0x52dfd8['getChildren']())['map'](_0x2edc46=>this['_getViewJson'](_0x2edc46));return JSON['stringify'](_0x50a3c6);}['_getViewJson'](_0x245528){if(_0x245528['is']('$text'))return _0x245528['data'];{const _0x3ffca0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x16e7d8=_0x245528,_0x172439=this['editor']['data']['htmlProcessor']['domConverter'],_0x6ec4b8={'type':_0x3ffca0['_getTypeCharForViewElement'](_0x16e7d8),'name':_0x16e7d8['name'],'attributes':Array['from'](_0x16e7d8['getAttributes']()),'children':Array['from'](_0x16e7d8['getChildren']())['map'](_0x3088ed=>this['_getViewJson'](_0x3088ed))};if(_0x245528['is']('uiElement')&&'$comment'!=_0x245528['name']){const _0x175a10=_0x245528['render'](_0x172439['domDocument'],_0x172439);_0x6ec4b8['children']['push'](_0x175a10['outerHTML']);}else{if(_0x245528['is']('rawElement')){const _0x3e503a=_0x172439['domDocument']['createElement'](_0x16e7d8['name']);_0x245528['render'](_0x3e503a,_0x172439),_0x6ec4b8['children']['push'](_0x3e503a['innerHTML']);}}const _0x3be95f=Array['from'](_0x16e7d8['getCustomProperties']());_0x3be95f['length']>0x0&&(_0x6ec4b8['customProperties']=_0x3be95f);const _0x275605=_0x16e7d8['getFillerOffset']();return null!==_0x275605&&(_0x6ec4b8['fillerOffset']=_0x275605),_0x6ec4b8;}}['_markChanges'](_0x403ab1,_0x45b043,_0x57c3ee,_0x5f72e,_0x3016ec){let _0x503647=null,_0x58a3e0=null,_0x770343=0x0;const _0x353606=this['editor']['model'];for(let _0x246a77=0x0;_0x246a77<_0x45b043['length'];_0x246a77++){const _0x308669=this['_getVidAttributeName'](_0x45b043[_0x246a77]),_0x12339b=_0x45b043[_0x246a77]['item']['getAttribute'](_0x308669),_0x38c8ee=_0x57c3ee['get'](_0x12339b),_0x57a662=_0x246a77==_0x45b043['length']-0x1;(!_0x503647&&_0x38c8ee&&(_0x503647=_0x38c8ee,_0x58a3e0=_0x45b043[_0x246a77]),_0x503647&&(!_0x38c8ee||_0x38c8ee['userId']!=_0x503647['userId']))&&(_0x378c5e(_0x38c8ee,P(_0x58a3e0,_0x403ab1,_0x353606),P(_0x45b043[_0x246a77],_0x403ab1,_0x353606)),_0x503647=_0x38c8ee||null,_0x58a3e0=_0x38c8ee?_0x45b043[_0x246a77]:null),_0x503647&&_0x57a662&&_0x378c5e(_0x38c8ee,P(_0x58a3e0,_0x403ab1,_0x353606),V(_0x45b043[_0x246a77],_0x403ab1,_0x353606));}function _0x378c5e(_0x2fc0cd,_0x2610c5,_0x404eb7){const _0x5f1081=_0x503647['userId'],_0x480960='revision:'+_0x5f72e+':'+_0x5f1081+':'+_0x770343++,_0x4e6b38=_0x353606['createRange'](_0x2610c5,_0x404eb7);_0x403ab1['markers']['set'](_0x480960,_0x4e6b38),null!==_0x5f1081&&_0x3016ec['add'](_0x5f1081);}}['_getVidAttributeName'](_0x4315ee){switch(_0x4315ee['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x44655c,_0x32bd00){_0x44655c['baseVersion']=null;for(const _0x42895e in _0x44655c){const _0x3c140c=_0x44655c[_0x42895e];if(_0x3c140c instanceof _0x11d7f2){const _0x1914e5=_0x32bd00['get'](_0x3c140c['root']['rootName']);_0x44655c[_0x42895e]=this['_fixPosition'](_0x3c140c,_0x1914e5);}if(_0x3c140c instanceof _0x10fc72){const _0x1541a6=_0x32bd00['get'](_0x3c140c['root']['rootName']);_0x44655c[_0x42895e]=this['_fixRange'](_0x3c140c,_0x1541a6);}'root'===_0x42895e&&(_0x44655c['root']=_0x32bd00['get'](_0x44655c['root']['rootName']));}}['_fixRange'](_0x228f34,_0x56d8db){return this['editor']['model']['createRange'](this['_fixPosition'](_0x228f34['start'],_0x56d8db),this['_fixPosition'](_0x228f34['end'],_0x56d8db));}['_fixPosition'](_0x48b37f,_0x136b1f){return this['editor']['model']['createPositionFromPath'](_0x136b1f,_0x48b37f['path'],_0x48b37f['stickiness']);}['_handleInsertOperation'](_0x4846eb){const _0x2f27bd=this['_idsRoots']['get'](_0x4846eb['position']['root']['rootName']),_0x29b741=this['_fixPosition'](_0x4846eb['position'],_0x2f27bd),_0x574244=null===_0x4846eb['_authorId']?null:_0x4846eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b4e2f=_0x29b741['parent'],_0x19e224=this['_revisionId'],_0x45ccee=[];for(const _0x32cc53 of _0x4846eb['nodes'])if(_0x32cc53['is']('element'))_0x45ccee['push'](this['_makeIdsRoot'](_0x32cc53));else{for(let _0x276d11=0x0;_0x276d11<_0x32cc53['offsetSize'];_0x276d11++)_0x45ccee['push'](new _0x10b403('$text',{'vid':this['_revisionId']++}));}const _0x381a26=this['_revisionId'];for(let _0x516903=_0x19e224;_0x516903<_0x381a26;_0x516903++)this['_touched']['set'](_0x516903,{'userId':_0x574244});_0x4b4e2f['_insertChild'](_0x29b741['offset'],_0x45ccee);}['_handleMoveOperation'](_0x32ae0d){(_0x32ae0d=this['_cloneOperation'](_0x32ae0d,this['_idsRoots']))['_execute']();const _0x474da9=null===_0x32ae0d['_authorId']?null:_0x32ae0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x387a2e=_0x32ae0d['getMovedRangeStart'](),_0x90af3=_0x387a2e['parent'],_0x15abc5=_0x387a2e['offset'];!function _0x3d58fe(_0x18b4f2,_0x464439,_0x616ae9,_0x40d1a2){for(let _0x5571d4=_0x616ae9;_0x5571d4<_0x40d1a2;_0x5571d4++){const _0x29353f=_0x464439['getChild'](_0x5571d4);_0x29353f['is']('element','$text')?_0x18b4f2['set'](_0x29353f['getAttribute']('vid'),{'userId':_0x474da9}):(_0x18b4f2['set'](_0x29353f['getAttribute']('vid_start'),{'userId':_0x474da9}),_0x3d58fe(_0x18b4f2,_0x29353f,0x0,_0x29353f['childCount']),_0x18b4f2['set'](_0x29353f['getAttribute']('vid_end'),{'userId':_0x474da9}));}}(this['_touched'],_0x90af3,_0x15abc5,_0x15abc5+_0x32ae0d['howMany']);}['_handleMergeOperation'](_0x401938){const _0x2c27bc=null===(_0x401938=this['_cloneOperation'](_0x401938,this['_idsRoots']))['_authorId']?null:_0x401938['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x167184=_0x401938['targetPosition']['parent'],_0x6dd499=_0x401938['sourcePosition']['parent'],_0x51d8e6=_0x167184['getAttribute']('vid_end'),_0x3a15b5=_0x6dd499['getAttribute']('vid_start');_0x167184['_setAttribute']('vid_end',_0x6dd499['getAttribute']('vid_end')),_0x6dd499['_setAttribute']('vid_end',_0x51d8e6),this['_touched']['set'](_0x3a15b5,{'userId':_0x2c27bc}),this['_touched']['set'](_0x51d8e6,{'userId':_0x2c27bc}),_0x401938['_execute']();}['_handleSplitOperation'](_0x5f2b03){const _0x1a90c9=null===(_0x5f2b03=this['_cloneOperation'](_0x5f2b03,this['_idsRoots']))['_authorId']?null:_0x5f2b03['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f259b=_0x5f2b03['graveyardPosition'],_0xe303df=_0x5f2b03['splitPosition']['parent'];_0x5f2b03['_execute']();const _0x283145=_0xe303df['getAttribute']('vid_end'),_0x2965c1=_0x5f2b03['insertionPosition']['nodeAfter'];if(_0x1f259b){const _0x45c319=_0x2965c1['getAttribute']('vid_end'),_0x5dfcf9=_0xe303df['getAttribute']('vid_end');_0xe303df['_setAttribute']('vid_end',_0x45c319),_0x2965c1['_setAttribute']('vid_end',_0x5dfcf9),this['_touched']['set'](_0xe303df['getAttribute']('vid_end'),{'userId':_0x1a90c9}),this['_touched']['set'](_0x2965c1['getAttribute']('vid_start'),{'userId':_0x1a90c9});}else{const _0x4e376d=this['_revisionId']++,_0x1f2f19=this['_revisionId']++;_0xe303df['_setAttribute']('vid_end',_0x4e376d),_0x2965c1['_setAttribute']('vid_start',_0x1f2f19),_0x2965c1['_setAttribute']('vid_end',_0x283145),this['_touched']['set'](_0x4e376d,{'userId':_0x1a90c9}),this['_touched']['set'](_0x1f2f19,{'userId':_0x1a90c9});}}['_handleMarkerOperation'](_0x2a4516){if(!_0x2a4516['affectsData'])return;const _0x371846=(_0x2a4516=this['_cloneOperation'](_0x2a4516,this['_diffRoots']))['oldRange']?_0x2a4516['oldRange']['root']:null,_0x1e299e=_0x2a4516['newRange']?_0x2a4516['newRange']['root']:null;_0x371846&&this['_markers']['delete'](_0x2a4516['name']),_0x1e299e&&this['_markers']['set'](_0x2a4516['name'],_0x2a4516['newRange']['clone']());const _0x54ff87=null===_0x2a4516['_authorId']?null:_0x2a4516['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39a4c0=_0x2a4516['name'];if(!this['_touchedMarkers']['has'](_0x39a4c0))return void this['_touchedMarkers']['set'](_0x39a4c0,{'range':_0x2a4516['oldRange'],'userId':_0x54ff87});const _0x2b710e=this['_touchedMarkers']['get'](_0x39a4c0),_0x350a3d=_0x2b710e['range'],_0x194d19=_0x2a4516['newRange'];null==_0x350a3d&&null==_0x194d19||_0x350a3d&&_0x194d19&&_0x350a3d['isEqual'](_0x194d19)?this['_touchedMarkers']['delete'](_0x2a4516['name']):_0x2b710e['userId']=_0x54ff87;}['_handleRootOperation'](_0x4cb46e,_0x51a08a){this['_diffRoots']['has'](_0x4cb46e['rootName'])?this['_diffRoots']['get'](_0x4cb46e['rootName'])['_isAttached']=_0x4cb46e['isAdd']:(this['_diffRoots']['set'](_0x4cb46e['rootName'],N(_0x4cb46e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4cb46e['rootName'],{}),_0x51a08a&&this['_idsRoots']['set'](_0x4cb46e['rootName'],N(_0x4cb46e['rootName'],!0x0)));const _0x59b7eb=null===_0x4cb46e['_authorId']?null:_0x4cb46e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40e2f0=this['_touchedRoots']['get'](_0x4cb46e['rootName']);_0x40e2f0&&_0x40e2f0['userId']===_0x59b7eb?this['_touchedRoots']['delete'](_0x4cb46e['rootName']):this['_touchedRoots']['set'](_0x4cb46e['rootName'],{'userId':_0x59b7eb,'isAttached':_0x4cb46e['isAdd']});}['_handleRootAttributeOperation'](_0x511cd3){const _0x4f47a6=this['_diffRootsAttributes']['get'](_0x511cd3['root']['rootName']);null===_0x511cd3['newValue']?delete _0x4f47a6[_0x511cd3['key']]:_0x4f47a6[_0x511cd3['key']]=_0x511cd3['newValue'];}}function x(_0x2a6bf8){const _0xb7724d=N(_0x2a6bf8['rootName'],_0x2a6bf8['isAttached']());for(const _0x54f97f of _0x2a6bf8['getChildren']()){const _0x178c8b=_0x54f97f['_clone'](!0x0);_0xb7724d['_appendChild'](_0x178c8b);}return _0xb7724d;}function N(_0x1927b1,_0x4630dc=!0x0){const _0x129f23=new _0x3b75f6();return _0x129f23['rootName']=_0x1927b1,_0x129f23['_isAttached']=_0x4630dc,_0x129f23['isAttached']=()=>_0x129f23['_isAttached'],_0x129f23;}function P(_0x34b82b,_0xd631c9,_0x58465a){const _0x3dce85='elementEnd'==_0x34b82b['type']?_0x58465a['createPositionAt'](_0x34b82b['item'],'end'):_0x58465a['createPositionBefore'](_0x34b82b['item']);return _0x58465a['createPositionFromPath'](_0xd631c9,_0x3dce85['path'],_0x3dce85['stickiness']);}function V(_0x43446a,_0x45dec4,_0x37d9ac){const _0x365390='elementStart'==_0x43446a['type']?_0x37d9ac['createPositionAt'](_0x43446a['item'],0x0):_0x37d9ac['createPositionAfter'](_0x43446a['item']);return _0x37d9ac['createPositionFromPath'](_0x45dec4,_0x365390['path'],_0x365390['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x55ca03(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x460cde){super(),this['id']=_0x460cde['id']||_0x118ae2(),this['author']=_0x460cde['author'],this['type']=_0x460cde['type'],this['data']=_0x460cde['data']||{},this['rootName']=_0x460cde['rootName'],this['set']('createdAt',_0x460cde['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(_0xdec2ee,_0x23b9ed){this['newRevisionId']=_0xdec2ee,this['oldRevisionId']=_0x23b9ed,this['changes']=new _0x4658e5();}['_setChanges'](_0xdc76d6){for(const _0x356595 of _0xdc76d6)this['changes']['add'](_0x356595);}}class u extends _0x4b71e4{['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[_0x3ecf8d,_0x3c59fb,S,$];}constructor(_0x4e84f7){super(_0x4e84f7),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',(_0x38eeee,_0x4ba487,_0x4555bb)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3c1f4b=>{for(const _0x27c0df of this['editor']['editing']['view']['document']['roots'])_0x4555bb?_0x3c1f4b['removeClass']('ck-editor__editable__overlay',_0x27c0df):_0x3c1f4b['addClass']('ck-editor__editable__overlay',_0x27c0df);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3627cf=>null!==_0x3627cf),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3be9bc,_0x21b139,_0x459a9a)=>_0x3be9bc&&_0x459a9a?_0x21b139['changes']['getIndex'](_0x459a9a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5ad3e5,_0x47e07c)=>_0x5ad3e5?_0x47e07c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3c59fb);}['init'](){const _0x4ed7a4=this['editor'],_0x2fecd1=new rt(_0x4ed7a4,{'direction':'backward'}),_0x48c036=new rt(_0x4ed7a4,{'direction':'forward'});(_0x4ed7a4['commands']['add']('showPreviousChange',_0x2fecd1),_0x4ed7a4['commands']['add']('showNextChange',_0x48c036),_0x4ed7a4['commands']['add']('restoreRevision',new nt(_0x4ed7a4)),this['on']('change:numberOfChanges',()=>{_0x2fecd1['refresh'](),_0x48c036['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4ed7a4['enableReadOnlyMode']('revision-viewer'),_0x4ed7a4['plugins']['has']('WidgetToolbarRepository'))&&_0x4ed7a4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3b4f1f){return await this['_utils']['loadRevisionData'](_0x3b4f1f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b4f1f);}async['getRevisionRootsAttributes'](_0x29c856){return await this['_utils']['loadRevisionData'](_0x29c856,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29c856);}async['compare'](_0x46dc6a,_0x50f813,_0x4eae03=!0x1){if(!this['isEnabled'])return;const _0x5f3408=this['diff'],_0x2861f8=this['repository'],_0x57ef45='string'==typeof _0x46dc6a?_0x2861f8['getRevision'](_0x46dc6a):_0x46dc6a,_0xd49ae5='string'==typeof _0x50f813?_0x2861f8['getRevision'](_0x50f813):_0x50f813,_0x40b791=_0x57ef45['id'],_0x37cead=_0xd49ae5?_0xd49ae5['id']:null;if(!_0x4eae03&&this['diff']&&this['diff']['newRevisionId']===_0x40b791&&this['diff']['oldRevisionId']===_0x37cead)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x40b791,_0x37cead);const _0x5b1d68=this['_getRevisionsRange'](_0x57ef45,_0xd49ae5,!0x0)['map'](_0x2dc8d9=>this['_utils']['loadRevisionData'](_0x2dc8d9,this['adapter']));return _0x5b1d68['push'](new Promise(_0x28dfc1=>{setTimeout(_0x28dfc1,0x14);})),Promise['all'](_0x5b1d68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x487ee9=this['_getDiff'](_0x40b791,_0x37cead);for(const _0x1e63c5 of _0x487ee9['changes'])this['_changeIdToChange']['set'](_0x1e63c5['id'],_0x1e63c5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x42e596=>{for(const _0x531559 of this['editor']['model']['document']['getRootNames']())_0x42e596['detachRoot'](_0x531559);for(const _0x574902 of Object['keys'](_0x487ee9['model'])){const _0xdd84a2=_0x42e596['addRoot'](_0x574902);for(const _0x407242 of Object['keys'](_0x487ee9['attributes'][_0x574902]))_0x42e596['setAttribute'](_0x407242,_0x487ee9['attributes'][_0x574902][_0x407242],_0xdd84a2);_0x42e596['insert'](_0x487ee9['model'][_0x574902],_0xdd84a2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x487ee9['changes'])),this['isReady']=!0x0;})['catch'](_0x4538a0=>{console['error'](_0x4538a0),this['_cleanUp'](),_0x5f3408&&(this['diff']=_0x5f3408),this['isReady']=!0x0;});}['addRevisionData'](_0xb05111,_0x18ef03){const _0x4a6400=this['repository']['createRevision'](_0xb05111);return _0x4a6400['on']('_update',(_0x1ac876,_0x7de02d,_0x31aa47)=>_0x18ef03(_0x7de02d,_0x31aa47,_0x4a6400)),this['repository']['addRevision'](_0x4a6400),_0x4a6400;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3218fb=>{for(const _0x2f0e43 of this['editor']['model']['document']['getRootNames']())_0x3218fb['detachRoot'](_0x2f0e43);});}['_sortAndFilterDiffChanges'](_0x350720){const _0x1219f2=[],_0x59d26e=new Map();for(const _0x512ed5 of this['editor']['model']['document']['getRootNames']()){const _0x4370ff=this['editor']['editing']['view']['getDomRoot'](_0x512ed5);if(!_0x4370ff)continue;const _0x2c9f56=_0x4370ff['getClientRects']()['item'](0x0);_0x2c9f56&&(_0x1219f2['push'](_0x512ed5),_0x59d26e['set'](_0x512ed5,_0x2c9f56));}return _0x1219f2['sort']((_0x242a9e,_0x59f94d)=>{const _0x269c79=_0x59d26e['get'](_0x242a9e),_0x1fc895=_0x59d26e['get'](_0x59f94d);return _0x269c79['y']-_0x1fc895['y']||_0x269c79['x']-_0x1fc895['x'];}),(_0x350720=_0x350720['filter'](_0x30ee81=>_0x1219f2['includes'](_0x30ee81['rootName'])))['sort']((_0x4d9555,_0x3ecbbb)=>_0x1219f2['indexOf'](_0x4d9555['rootName'])-_0x1219f2['indexOf'](_0x3ecbbb['rootName'])),_0x350720;}['_makeTape'](_0x5f35a4){const _0x965b5c=Array['from'](_0x5f35a4['markers'])['filter'](([_0x5e26ed,_0x56b7ad])=>_0x5e26ed['startsWith']('revision:')&&!_0x56b7ad['isCollapsed']),_0x547065=Array['from'](this['editor']['model']['createRangeIn'](_0x5f35a4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x965b5c['length'])for(const _0x16afa3 of _0x547065){const [_0x295aea,_0x4c6179]=_0x965b5c[0x0],[,_0x5d2b35,_0x357d8a]=_0x295aea['split'](':');if(_0x4c6179['end']['isEqual'](_0x16afa3['nextPosition'])&&_0x965b5c['shift'](),(_0x16afa3['previousPosition']['isEqual'](_0x4c6179['start'])||_0x16afa3['previousPosition']['isAfter'](_0x4c6179['start']))&&('insertion'==_0x5d2b35?_0x16afa3['isAdded']={'userId':_0x357d8a}:'deletion'==_0x5d2b35&&(_0x16afa3['isRemoved']={'userId':_0x357d8a})),0x0==_0x965b5c['length'])break;}return _0x547065;}['_refreshStartEndIndex'](_0x4a6137){const _0xbcbe29=new Map();for(let _0x3ee31b=0x0;_0x3ee31b<_0x4a6137['length'];_0x3ee31b++)'text'===_0x4a6137[_0x3ee31b]['type']?(_0x4a6137[_0x3ee31b]['item']['startIndex']=_0x3ee31b,_0x4a6137[_0x3ee31b]['item']['endIndex']=_0x3ee31b):('elementStart'===_0x4a6137[_0x3ee31b]['type']?_0x4a6137[_0x3ee31b]['item']['startIndex']=_0x3ee31b:'elementEnd'===_0x4a6137[_0x3ee31b]['type']&&(_0x4a6137[_0x3ee31b]['item']['endIndex']=_0x3ee31b),_0xbcbe29['set'](_0x4a6137[_0x3ee31b]['id'],_0x3ee31b));for(const _0x88e550 of _0xbcbe29['values']())'elementStart'===_0x4a6137[_0x88e550]['type']?_0x4a6137[_0x88e550]['item']['endIndex']=_0xbcbe29['get'](_0x4a6137[_0x88e550]['pairId']):'elementEnd'===_0x4a6137[_0x88e550]['type']&&(_0x4a6137[_0x88e550]['item']['startIndex']=_0xbcbe29['get'](_0x4a6137[_0x88e550]['pairId']));}['_processTape'](_0x44415f){for(let _0xfc2b99=0x0;_0xfc2b99<_0x44415f['length'];_0xfc2b99++){if('elementStart'===_0x44415f[_0xfc2b99]['type'])_0x44415f[_0xfc2b99]['item']['startIndex']=_0xfc2b99;else{if('elementEnd'===_0x44415f[_0xfc2b99]['type']){_0x44415f[_0xfc2b99]['item']['endIndex']=_0xfc2b99;const _0x442f90=_0x44415f[_0xfc2b99]['item']['startIndex'];_0x44415f[_0x442f90]['pairId']=_0x44415f[_0xfc2b99]['id'],_0x44415f[_0xfc2b99]['pairId']=_0x44415f[_0x442f90]['id'];}else _0x44415f[_0xfc2b99]['item']['startIndex']=_0xfc2b99,_0x44415f[_0xfc2b99]['item']['endIndex']=_0xfc2b99,_0x44415f[_0xfc2b99]['pairId']=null;}_0x44415f[_0xfc2b99]['markersStart']||(_0x44415f[_0xfc2b99]['markersStart']=[],_0x44415f[_0xfc2b99]['markersEnd']=[]);}}['_markInsertions'](_0x205e27,_0x2e3fc5){const _0xc80768=_0x205e27['filter'](_0x1beed0=>!_0x1beed0['isAdded']);for(let _0x54b594=0x0;_0x54b594<_0x2e3fc5['length'];_0x54b594++)_0x2e3fc5[_0x54b594]['isAdded']&&(_0xc80768[_0x54b594]['isAdded']=_0x2e3fc5[_0x54b594]['isAdded']);}['_getDiff'](_0x163b6b,_0x30a07f=null){const _0x9fe3f7=this['repository']['getRevision'](_0x163b6b),_0x23e144=_0x30a07f?this['repository']['getRevision'](_0x30a07f):null,_0x20569a=this['_getRevisionsRange'](_0x9fe3f7,_0x23e144),_0x3e744c=_0x20569a[_0x20569a['length']-0x1],_0x196c51=new Map(),_0x52e2b4={'model':{},'attributes':{},'changes':[]},_0x1c05ef=new Set(),_0x5e5ba1=new Map();for(let _0x27e957=_0x20569a['length']-0x1;_0x27e957>=0x0;_0x27e957--){const _0x31f82a=_0x20569a[_0x27e957];for(const _0x5f002d of Object['keys'](_0x31f82a['diffData']))if(_0x31f82a['diffData'][_0x5f002d]['attachChange']){const _0x306fc4=_0x31f82a['diffData'][_0x5f002d]['attachChange'];_0x306fc4['isAttached']?(_0x1c05ef['add'](_0x5f002d),_0x5e5ba1['has'](_0x5f002d)&&_0x5e5ba1['get'](_0x5f002d)['userId']==_0x306fc4['userId']?_0x5e5ba1['delete'](_0x5f002d):_0x5e5ba1['set'](_0x5f002d,_0x306fc4)):_0x5e5ba1['has'](_0x5f002d)?(_0x1c05ef['delete'](_0x5f002d),_0x5e5ba1['delete'](_0x5f002d)):(_0x1c05ef['add'](_0x5f002d),_0x5e5ba1['set'](_0x5f002d,_0x306fc4));}else _0x1c05ef['add'](_0x5f002d);}for(const _0x180ae1 of _0x1c05ef){const _0x581c91=_0x5e5ba1['has'](_0x180ae1)&&!_0x5e5ba1['get'](_0x180ae1)['isAttached'];let _0x5b1a93=_0x581c91?_0x20569a['length']-0x1:0x0;const _0x1434a0=_0x581c91?-0x1:0x1;for(;_0x20569a[_0x5b1a93];){const _0x19213c=_0x20569a[_0x5b1a93];if(_0x19213c['diffData'][_0x180ae1]){const _0x2cfa5e=_0x581c91?_0x19213c['diffData'][_0x180ae1]['attributesBefore']:_0x19213c['diffData'][_0x180ae1]['attributesAfter'];_0x52e2b4['attributes'][_0x180ae1]=_0x2cfa5e?_0x3f9059(_0x2cfa5e):{};break;}_0x5b1a93+=_0x1434a0;}}for(const _0x407845 of _0x20569a){_0x407845['model']={};for(const _0x485b58 of _0x407845['authors'])_0x196c51['set'](_0x485b58['id'],_0x485b58);for(const _0x1ce350 of _0x1c05ef){const _0x2f1aac=_0x407845['diffData'][_0x1ce350]?_0x407845['diffData'][_0x1ce350]['insertions']:'[]',_0x3df191=_0x407845['diffData'][_0x1ce350]?_0x407845['diffData'][_0x1ce350]['deletions']:'[]';_0x407845['model'][_0x1ce350]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2f1aac),'deletions':this['_utils']['_makeModelFromViewString'](_0x3df191)};}}for(const _0x44ea0e of _0x1c05ef){let _0x246919=null,_0x3f9f89=0x0;const _0x38e106=new Map(Array['from'](_0x9fe3f7['model'][_0x44ea0e]['insertions']['markers'])['filter'](([_0x3a2c2c])=>!_0x3a2c2c['startsWith']('revision:')));let _0x2c9b87=0x0;for(const _0x5863d4 of _0x20569a){const _0x49b218=this['_makeTape'](_0x5863d4['model'][_0x44ea0e]['insertions']);_0x5863d4==_0x9fe3f7?(_0x246919=_0x49b218,_0x3f9f89=_0x246919['length'],_0x246919['forEach'](_0x2ba3cf=>{_0x2ba3cf['id']=_0x2c9b87++;}),this['_processTape'](_0x246919)):this['_markInsertions'](_0x246919,_0x49b218);const _0x10ac76=_0x246919['filter'](_0x9ca0d6=>!_0x9ca0d6['isAdded'])['map'](_0x4bc1a6=>_0x4bc1a6['id']);let _0x295fb1=0x0;const _0x3b4fa3=this['_makeTape'](_0x5863d4['model'][_0x44ea0e]['deletions']);_0x3b4fa3['forEach'](_0x13a43c=>{_0x13a43c['isRemoved']?_0x13a43c['id']=_0x3f9f89++:_0x13a43c['id']=_0x10ac76[_0x295fb1++];}),this['_processTape'](_0x3b4fa3),this['_setDistance'](_0x246919,'isAdded'),this['_setDistance'](_0x3b4fa3,'isRemoved'),_0x5863d4==_0x9fe3f7&&this['_markMarkers'](_0x246919,_0x38e106),_0x246919=this['_joinTapes'](_0x246919,_0x3b4fa3),this['_refreshStartEndIndex'](_0x246919),this['_setDistance'](_0x246919,'isRemoved');}_0x246919=_0x246919['filter'](_0x3e9184=>!(_0x3e9184['isAdded']&&_0x3e9184['isRemoved']));const _0x4e1ce2=new Map(_0x3e744c['model'][_0x44ea0e]['deletions']['markers']),_0x3cd2b2=new Set(_0x38e106['keys']());for(const _0x2d4554 of _0x4e1ce2['keys']())_0x3cd2b2['delete'](_0x2d4554);this['_markSuggestions'](_0x246919,_0x3cd2b2),this['_fixObsoleteTags'](_0x246919),_0x246919=this['_removeMissingPairs'](_0x246919),_0x246919=this['_markMismatchedRemovedTags'](_0x246919),_0x246919=this['_removeUnsupportedChanges'](_0x246919);const {root:_0x53232a,changes:_0x12604c}=this['_makeModelFromTape'](_0x246919,_0x196c51,_0x44ea0e);_0x52e2b4['model'][_0x44ea0e]=_0x53232a;const _0xce7f50=_0x5e5ba1['get'](_0x44ea0e);if(_0xce7f50){const _0x10a20f=_0x196c51['get'](_0xce7f50['userId']),_0x30ccd2=new G({'author':_0x10a20f,'type':_0xce7f50['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44ea0e});_0x12604c['unshift'](_0x30ccd2),_0x52e2b4['attributes'][_0x44ea0e]['revisionHistoryAttachChange']=_0x30ccd2['id'];}_0x52e2b4['changes']=_0x52e2b4['changes']['concat'](_0x12604c);}return _0x52e2b4;}['_markMarkers'](_0x408b1b,_0x296686){for(let _0x2a4394=0x0;_0x2a4394<_0x408b1b['length'];_0x2a4394++)for(const [_0x124bd5,_0x4733ca]of _0x296686)!_0x4733ca['isCollapsed']&&_0x4733ca['start']['isEqual'](_0x408b1b[_0x2a4394]['previousPosition'])&&_0x408b1b[_0x2a4394]['markersStart']['push'](_0x124bd5),_0x4733ca['end']['isEqual'](_0x408b1b[_0x2a4394]['nextPosition'])&&_0x408b1b[_0x2a4394]['markersEnd']['push'](_0x124bd5);}['_joinTapes'](_0x17cc5f,_0x1f7e88){let _0x354bf1=[],_0x1f5f6c=0x0,_0x3b9568=0x0;for(;_0x1f5f6c<_0x17cc5f['length']||_0x3b9568<_0x1f7e88['length'];){const _0xeb4c4d=_0x17cc5f[_0x1f5f6c]||{},_0xc1dbb2=_0x1f7e88[_0x3b9568]||{};if(_0xeb4c4d['id']==_0xc1dbb2['id'])_0x1f5f6c++,_0x3b9568++,_0x354bf1['push'](_0xeb4c4d);else{if(_0xc1dbb2['isRemoved']&&_0xeb4c4d['isAdded']){const {commonTape:_0x561b7b,iEnd:_0x5dfeb8,jEnd:_0x470f9a}=this['_threeWayMerge'](_0x17cc5f,_0x1f5f6c,_0x1f7e88,_0x3b9568);_0x354bf1=_0x354bf1['concat'](_0x561b7b),_0x1f5f6c=_0x5dfeb8,_0x3b9568=_0x470f9a;}else _0xc1dbb2['isRemoved']?(_0x3b9568++,_0x354bf1['push'](_0xc1dbb2)):(_0x1f5f6c++,_0x354bf1['push'](_0xeb4c4d));}}return _0x354bf1;}['_markSuggestions'](_0x2db00a,_0x374f70){const _0x2994cb=[];for(let _0xfdc6c1=0x0;_0xfdc6c1<_0x2db00a['length'];_0xfdc6c1++){for(let _0x3a63bb=0x0;_0x3a63bb<_0x2db00a[_0xfdc6c1]['markersStart']['length'];_0x3a63bb++){const _0x286c58=_0x2db00a[_0xfdc6c1]['markersStart'][_0x3a63bb];if(!_0x374f70['has'](_0x286c58))continue;const {group:_0x342148,type:_0x503913,authorId:_0xa0b451}=_0x36d2c1(_0x286c58);'revision-suggestion'!=_0x342148||'insertion'!=_0x503913&&'deletion'!=_0x503913||(_0x2994cb['unshift']({'type':_0x503913,'name':_0x286c58,'userId':_0xa0b451}),_0x2db00a[_0xfdc6c1]['markersStart']['splice'](_0x3a63bb,0x1),_0x3a63bb--);}_0x5bd564(_0x2db00a[_0xfdc6c1]);for(let _0x11a13c=0x0;_0x11a13c<_0x2db00a[_0xfdc6c1]['markersEnd']['length'];_0x11a13c++){const _0x2b66fb=_0x2db00a[_0xfdc6c1]['markersEnd'][_0x11a13c];if(!_0x374f70['has'](_0x2b66fb))continue;const {group:_0x107dc7,type:_0x3d1d8c}=_0x36d2c1(_0x2b66fb);if('revision-suggestion'!=_0x107dc7||'insertion'!=_0x3d1d8c&&'deletion'!=_0x3d1d8c)continue;_0x2db00a[_0xfdc6c1]['markersEnd']['splice'](_0x11a13c,0x1),_0x11a13c--;const _0x79bac5=_0x2994cb['findIndex'](_0x4d17ff=>_0x4d17ff['name']==_0x2b66fb);_0x79bac5>-0x1&&_0x2994cb['splice'](_0x79bac5,0x1);}}function _0x36d2c1(_0x5aea27){const _0x111595=_0x5aea27['split'](':');return{'group':_0x111595[0x0],'type':_0x111595[0x1],'subType':_0x111595['length']>=0x5?_0x111595[0x2]:null,'id':_0x111595['length']<0x5?_0x111595[0x2]:_0x111595[0x3],'authorId':_0x111595['length']<0x5?_0x111595[0x3]:_0x111595[0x4],'markerCount':0x6==_0x111595['length']?_0x111595[0x5]:null};}function _0x5bd564(_0x4d06af){for(let _0x5bbcf3=0x0;_0x5bbcf3<_0x2994cb['length'];_0x5bbcf3++){if(_0x4d06af['isAdded']&&'insertion'==_0x2994cb[_0x5bbcf3]['type']&&_0x4d06af['isAdded']['userId']==_0x2994cb[_0x5bbcf3]['userId'])return _0x4d06af['isAddSuggestion']=_0x2994cb[_0x5bbcf3],void delete _0x4d06af['isAdded'];if(!_0x4d06af['isAdded']&&!_0x4d06af['isRemoved']&&'deletion'==_0x2994cb[_0x5bbcf3]['type'])return void(_0x4d06af['isRemoveSuggestion']=_0x2994cb[_0x5bbcf3]);}}}['_setDistance'](_0xa27f10,_0x1f3b7c){let _0x253998=0x0,_0x463965=!0x1;const _0x222828=new Map();for(const _0x39bf81 of _0xa27f10)_0x39bf81[_0x1f3b7c]?_0x463965&&(_0x253998++,_0x463965=!0x1):(_0x253998++,_0x463965=!0x0),_0x222828['set'](_0x39bf81['id'],_0x253998);for(let _0x1e9dbc=0x0;_0x1e9dbc<_0xa27f10['length'];_0x1e9dbc++){if('isRemoved'==_0x1f3b7c&&_0xa27f10[_0x1e9dbc]['isAdded']||'isAdded'==_0x1f3b7c&&_0xa27f10[_0x1e9dbc]['isRemoved'])continue;if('text'==_0xa27f10[_0x1e9dbc]['type']){_0xa27f10[_0x1e9dbc]['distance']=0x0;continue;}const _0x32cba4=_0x222828['get'](_0xa27f10[_0x1e9dbc]['pairId']),_0x22cc57=_0x222828['get'](_0xa27f10[_0x1e9dbc]['id']);_0xa27f10[_0x1e9dbc]['distance']=_0x32cba4-_0x22cc57;}}['_getRevisionsRange'](_0x5dc7cd,_0x35a747,_0x55e018=!0x1){const _0x5dfde5=[];let _0x593c0c=this['repository']['getIndex'](_0x5dc7cd),_0x57340e=this['repository']['getIndex'](_0x35a747);for(-0x1==_0x57340e&&(_0x57340e=this['repository']['_revisions']['length'],_0x55e018=!0x1);_0x593c0c<_0x57340e;)_0x5dfde5['push'](this['repository']['getRevision'](_0x593c0c)),_0x593c0c++;return _0x55e018&&_0x5dfde5['push'](this['repository']['getRevision'](_0x593c0c)),_0x5dfde5;}['_threeWayMerge'](_0x553307,_0xf01910,_0x37c298,_0x17fbd4){const _0x4839c0=this['editor']['model']['schema'];let _0x46a728=_0xf01910;for(;_0x553307[_0x46a728]&&_0x553307[_0x46a728]['isAdded'];)_0x46a728++;let _0x39914b=_0x17fbd4;for(;_0x37c298[_0x39914b]&&_0x37c298[_0x39914b]['isRemoved'];)_0x39914b++;_0x5ae8e3(_0x553307,_0xf01910,_0x46a728),_0x5ae8e3(_0x37c298,_0x17fbd4,_0x39914b);const _0x25dae6=_0x37c298['slice'](_0x17fbd4,_0x39914b)['concat'](_0x553307['slice'](_0xf01910,_0x46a728));return _0x25dae6['sort']((_0x4a0e61,_0x3342f4)=>_0x4a0e61['side']!=_0x3342f4['side']?_0x4a0e61['side']-_0x3342f4['side']:_0x4a0e61['level']!=_0x3342f4['level']?_0x4a0e61['level']-_0x3342f4['level']:_0x4a0e61['distance']!=_0x3342f4['distance']?_0x3342f4['distance']-_0x4a0e61['distance']:!!_0x4a0e61['isAdded']!=!!_0x3342f4['isAdded']?-0x1==_0x4a0e61['side']||0x0==_0x4a0e61['side']?_0x4a0e61['isAdded']?-0x1:0x1:_0x4a0e61['isAdded']?0x1:-0x1:_0x4a0e61['index']-_0x3342f4['index']),{'commonTape':_0x25dae6,'iEnd':_0x46a728,'jEnd':_0x39914b};function _0x5ae8e3(_0x315db0,_0x3cc417,_0x500bcd){let _0x5a22d0=-0x1,_0x41ea51=Number['POSITIVE_INFINITY'],_0x3fe1b2=!0x0;for(let _0x1eb5a0=_0x3cc417;_0x1eb5a0<_0x500bcd;_0x1eb5a0++)if(_0x4839c0['isInline'](_0x315db0[_0x1eb5a0]['item'])||(_0x3fe1b2=!0x1),_0x315db0[_0x1eb5a0]['item']['startIndex']<_0x3cc417&&(_0x5a22d0=_0x1eb5a0),_0x315db0[_0x1eb5a0]['item']['endIndex']>=_0x500bcd){_0x41ea51=_0x1eb5a0;break;}_0x3fe1b2&&(_0x5a22d0=_0x500bcd-0x1);for(let _0x413717=_0x3cc417;_0x413717<_0x500bcd;_0x413717++)_0x315db0[_0x413717]['side']=_0x413717<=_0x5a22d0?-0x1:_0x413717<_0x41ea51?0x0:0x1,_0x315db0[_0x413717]['index']=_0x413717;let _0x2de248=0x0;for(let _0x4324a7=_0x3cc417;_0x4324a7<=_0x5a22d0;_0x4324a7++)0x0==_0x315db0[_0x4324a7]['distance']?_0x315db0[_0x4324a7]['level']=_0x2de248:(_0x2de248++,_0x315db0[_0x4324a7]['level']=_0x2de248,_0x2de248++);for(let _0x29803d=_0x3cc417;_0x29803d<_0x500bcd;_0x29803d++)0x0==_0x315db0[_0x29803d]['side']&&(_0x315db0[_0x29803d]['level']=_0x2de248);_0x2de248=0x0;for(let _0x41fd1b=_0x500bcd-0x1;_0x41fd1b>=_0x41ea51;_0x41fd1b--)0x0==_0x315db0[_0x41fd1b]['distance']?_0x315db0[_0x41fd1b]['level']=_0x2de248:(_0x2de248--,_0x315db0[_0x41fd1b]['level']=_0x2de248,_0x2de248--);}}['_fixObsoleteTags'](_0x2262a1){const _0x5e5bc3=new Map(),_0x3e5704=this['editor']['model']['schema'];for(let _0x221ecc=0x1;_0x221ecc<_0x2262a1['length'];_0x221ecc++){let _0x4a14a6,_0x55e091,_0x23e3ab;const _0xdd290b=_0x2262a1[_0x221ecc],_0x33f4ab=_0x2262a1[_0x221ecc-0x1];if('text'==_0xdd290b['type'])continue;if(_0xdd290b['type']!=_0x33f4ab['type'])continue;if(!_0x3e5704['isBlock'](_0x33f4ab['item'])||_0x3e5704['isLimit'](_0x33f4ab['item']))continue;if(!_0x3e5704['isBlock'](_0xdd290b['item'])||_0x3e5704['isLimit'](_0xdd290b['item']))continue;if((_0x2262a1[_0x221ecc]['isAdded']||_0x2262a1[_0x221ecc]['isAddSuggestion'])&&_0x2262a1[_0x221ecc-0x1]['isRemoved'])_0x4a14a6=_0x2262a1[_0x221ecc],_0x55e091=_0x2262a1[_0x221ecc-0x1],_0x23e3ab=_0x221ecc-0x1;else{if(!_0x2262a1[_0x221ecc]['isRemoved']||!_0x2262a1[_0x221ecc-0x1]['isAdded']&&!_0x2262a1[_0x221ecc-0x1]['isAddSuggestion'])continue;_0x4a14a6=_0x2262a1[_0x221ecc-0x1],_0x55e091=_0x2262a1[_0x221ecc],_0x23e3ab=_0x221ecc;}const _0x27d14d=_0x4a14a6['level']==_0x55e091['level'],_0xf2a99e=Math['abs'](_0x4a14a6['level'])<Math['abs'](_0x55e091['level'])&&0x0==_0x55e091['distance'];(_0x27d14d||_0xf2a99e)&&(_0x5e5bc3['set'](_0x55e091['id'],_0x4a14a6['id']),_0x2262a1['splice'](_0x23e3ab,0x1),_0x221ecc--,_0x4a14a6['isAdded']=!0x1);}for(let _0x4f1db6=0x0;_0x4f1db6<_0x2262a1['length'];_0x4f1db6++)_0x5e5bc3['has'](_0x2262a1[_0x4f1db6]['pairId'])&&(_0x2262a1[_0x4f1db6]['pairId']=_0x5e5bc3['get'](_0x2262a1[_0x4f1db6]['pairId']));}['_removeMissingPairs'](_0x3a1e00){const _0x2e2612=new Set(_0x3a1e00['map'](_0x3f62fd=>_0x3f62fd['id']));for(let _0x240463=0x0;_0x240463<_0x3a1e00['length'];_0x240463++)_0x2e2612['has'](_0x3a1e00[_0x240463]['pairId'])||0x0==_0x3a1e00[_0x240463]['distance']||(_0x3a1e00[_0x240463]['isIncorrect']=!0x0);return _0x3a1e00['filter'](_0x380d0b=>!_0x380d0b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2d00ff){const _0x214800=new Set();for(let _0x539ec6=0x0;_0x539ec6<_0x2d00ff['length'];_0x539ec6++){if(_0x214800['has'](_0x2d00ff[_0x539ec6]['id'])&&_0x2d00ff[_0x539ec6]['isRemoved']&&(_0x2d00ff[_0x539ec6]['isIncorrect']=!0x0),_0x2d00ff[_0x539ec6]['isIncorrect'])continue;if(0x0==_0x2d00ff[_0x539ec6]['distance'])continue;if('elementStart'!=_0x2d00ff[_0x539ec6]['type'])continue;if(null==_0x2d00ff[_0x539ec6]['pairId'])continue;let _0x2f0e4a=_0x539ec6+0x1,_0x369486=0x0;for(;_0x2d00ff[_0x2f0e4a]['id']!=_0x2d00ff[_0x539ec6]['pairId'];)'elementStart'==_0x2d00ff[_0x2f0e4a]['type']?_0x369486++:'elementEnd'==_0x2d00ff[_0x2f0e4a]['type']&&_0x369486--,_0x2f0e4a++;if(0x0!=_0x369486){if(_0x2d00ff[_0x539ec6]['isRemoved'])_0x2d00ff[_0x539ec6]['isIncorrect']=!0x0;else{for(;_0x2f0e4a!=_0x539ec6;)_0x2d00ff[_0x2f0e4a]['isRemoved']&&0x0!=_0x2d00ff[_0x2f0e4a]['distance']&&(_0x2d00ff[_0x2f0e4a]['isIncorrect']=!0x0,_0x214800['add'](_0x2d00ff[_0x2f0e4a]['pairId'])),_0x2f0e4a--;}}}return _0x2d00ff['filter'](_0x4916b3=>!_0x4916b3['isIncorrect']);}['_removeUnsupportedChanges'](_0x327313){const _0x3ab173=this['editor']['model']['schema'];for(let _0x2b167f=0x0;_0x2b167f<_0x327313['length'];_0x2b167f++){if(!(_0x327313[_0x2b167f]['isAdded']||_0x327313[_0x2b167f]['isAddSuggestion']||_0x327313[_0x2b167f]['isRemoved']||_0x327313[_0x2b167f]['isRemoveSuggestion']))continue;if(0x0==_0x327313[_0x2b167f]['distance'])continue;const _0x1505d5=_0x327313[_0x2b167f]['item'];_0x3ab173['isBlock'](_0x1505d5)||_0x3ab173['isLimit'](_0x1505d5)||(_0x327313[_0x2b167f]['isAdded']&&delete _0x327313[_0x2b167f]['isAdded'],_0x327313[_0x2b167f]['isAddSuggestion']&&delete _0x327313[_0x2b167f]['isAddSuggestion'],_0x327313[_0x2b167f]['isRemoveSuggestion']&&delete _0x327313[_0x2b167f]['isRemoveSuggestion'],_0x327313[_0x2b167f]['isRemoved']&&(_0x327313[_0x2b167f]['isIncorrect']=!0x0));}return _0x327313['filter'](_0x2295f0=>!_0x2295f0['isIncorrect']);}['_makeModelFromTape'](_0xda4198,_0x5674cf,_0x527bd9){const _0x3e306f=new _0x3b75f6(),_0x52594b=[],_0x5e4729=new Map(),_0x35c7fc=this['editor']['model'],_0x410605=_0x35c7fc['schema'],_0x122dd5=[_0x3e306f],_0x1c005d={},_0x3d2ed7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cf03c=null;const _0x1f2c6d=[0x0];for(let _0x59827b=0x0;_0x59827b<_0xda4198['length'];_0x59827b++)if('elementStart'===_0xda4198[_0x59827b]['type']){_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d);const _0x3526dd=new _0x10b403(_0xda4198[_0x59827b]['item']['name'],_0xda4198[_0x59827b]['item']['getAttributes']());_0x122dd5[0x0]['_appendChild'](_0x3526dd),_0x1f2c6d['push'](0x0),_0x122dd5['unshift'](_0x3526dd),_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d);}else'elementEnd'===_0xda4198[_0x59827b]['type']?(_0x122dd5['shift'](),_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d),_0x1f2c6d['pop'](),_0x1f2c6d[_0x1f2c6d['length']-0x1]++,_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d)):(_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d),_0x1cf03c?_0x1cf03c['_data']+=_0xda4198[_0x59827b]['item']['data']:_0x1cf03c=new _0x5eda90(_0xda4198[_0x59827b]['item']['data'],_0xda4198[_0x59827b]['item']['getAttributes']()),_0xda4198[_0x59827b+0x1]&&'text'===_0xda4198[_0x59827b+0x1]['type']&&_0x56c64d(_0x1cf03c,_0xda4198[_0x59827b+0x1]['item'])||(_0x122dd5[0x0]['_appendChild'](_0x1cf03c),_0x1cf03c=null),_0x1f2c6d[_0x1f2c6d['length']-0x1]+=_0xda4198[_0x59827b]['item']['offsetSize'],_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d));for(let _0x58d6ef=0x0;_0x58d6ef<_0xda4198['length'];_0x58d6ef++){const _0x1276ae=_0xda4198[_0x58d6ef]['previousPosition'],_0x8c5a27=_0xda4198[_0x58d6ef]['nextPosition'];for(const _0x1a63e6 of _0xda4198[_0x58d6ef]['markersStart'])_0x5e4729['set'](_0x1a63e6,{'start':_0x1276ae,'end':null});_0x2a7f80('isRemoveSuggestion',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isAddSuggestion',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isRemoved',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isAdded',_0x58d6ef,_0x1276ae,_0x8c5a27);for(const _0x3424d3 of _0xda4198[_0x58d6ef]['markersEnd']){const _0x277f54=_0x5e4729['get'](_0x3424d3);_0x277f54?_0x277f54['end']=_0x8c5a27:_0x5e4729['set'](_0x3424d3,{'start':_0x8c5a27,'end':_0x8c5a27});}}for(const [_0xc19eec,_0x244042]of _0x5e4729){const _0x375271=this['editor']['model']['createRange'](_0x244042['start'],_0x244042['end']);_0x3e306f['markers']['set'](_0xc19eec,_0x375271);}return _0x52594b['sort']((_0x57b24a,_0x24bf74)=>{const _0xa3b0d1=_0x3e306f['markers']['get']('revision:'+_0x57b24a['id']),_0x3da44c=_0x3e306f['markers']['get']('revision:'+_0x24bf74['id']);return _0xa3b0d1['start']['isBefore'](_0x3da44c['start'])?-0x1:_0xa3b0d1['start']['isAfter'](_0x3da44c['start'])?0x1:_0xa3b0d1['end']['isBefore'](_0x3da44c['end'])?-0x1:_0xa3b0d1['end']['isAfter'](_0x3da44c['end'])?0x1:'add'===_0x57b24a['type']?-0x1:0x1;}),{'root':_0x3e306f,'changes':_0x52594b};function _0x2a7f80(_0x318b74,_0x512016,_0x3d4344,_0x147584){const _0x1bac69=!!_0xda4198[_0x512016][_0x318b74],_0x4711c9=_0x1bac69?_0xda4198[_0x512016][_0x318b74]['userId']:null,_0x719cfc=_0x512016===_0xda4198['length']-0x1,_0x121288=_0x3d2ed7[_0x318b74][0x0],_0x4e810b=_0x410605['isObject'](_0xda4198[_0x512016]['item']);!_0x1c005d[_0x318b74]&&_0x1bac69?_0x1c005d[_0x318b74]={'start':_0x3d4344,'tapeItem':_0xda4198[_0x512016],'userId':_0x4711c9,'type':_0x318b74}:_0x1c005d[_0x318b74]&&!_0x1bac69?(_0x1c005d[_0x318b74]['end']=_0x3d4344,_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]=null):_0x1c005d[_0x318b74]&&_0x1bac69&&_0x1c005d[_0x318b74]['userId']!==_0x4711c9&&(_0x1c005d[_0x318b74]['end']=_0x3d4344,_0x121288&&_0x121288['userId']===_0x1c005d[_0x318b74]['userId']||_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]={'start':_0x3d4344,'tapeItem':_0xda4198[_0x512016],'userId':_0x4711c9,'type':_0x318b74}),_0x1c005d[_0x318b74]&&_0x4e810b&&('elementStart'!==_0xda4198[_0x512016]['type']||_0x121288&&_0x121288['userId']===_0x4711c9||_0x3d2ed7[_0x318b74]['unshift']({'userId':_0x4711c9,'object':_0xda4198[_0x512016]['item'],'change':_0x1c005d[_0x318b74]}),'elementEnd'===_0xda4198[_0x512016]['type']&&_0x121288&&_0x121288['object']===_0xda4198[_0x512016]['item']&&(_0x3d2ed7[_0x318b74]['shift'](),_0x1c005d[_0x318b74]=_0x121288['change'])),_0x1c005d[_0x318b74]&&_0x719cfc&&(_0x1c005d[_0x318b74]['end']=_0x147584,_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]=null);}function _0x2a64cd({start:_0x5f3120,end:_0x26e420,tapeItem:_0x570d4b,userId:_0x3715b5,type:_0x50cac0}){const _0x4558ab=_0x570d4b['item'],_0x82825d=_0x35c7fc['schema']['isBlock'](_0x4558ab)&&!_0x35c7fc['schema']['isLimit'](_0x4558ab),_0x29d4eb=_0x5f3120['nodeAfter']==_0x26e420['parent']&&_0x26e420['isAtStart'];if(_0x82825d&&_0x29d4eb)return;const _0x194b76=_0x35c7fc['createRange'](_0x5f3120,_0x26e420),_0x8803d=_0x5674cf['get'](_0x3715b5),_0x3d795e=new G({'author':_0x8803d,'type':'isAdded'==_0x50cac0||'isAddSuggestion'==_0x50cac0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x50cac0||'isRemoveSuggestion'==_0x50cac0},'createdAt':new Date(),'rootName':_0x527bd9});_0x52594b['push'](_0x3d795e),_0x3e306f['markers']['set']('revision:'+_0x3d795e['id'],_0x194b76);}function _0x56c64d(_0x320968,_0x49840e){const _0x35e493=_0x320968['getAttributes'](),_0x4070ea=_0x49840e['getAttributes']();for(const _0x267286 of _0x35e493){if(_0x267286[0x1]!==_0x49840e['getAttribute'](_0x267286[0x0]))return!0x1;_0x4070ea['next']();}return _0x4070ea['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x349d84=>{const _0x2b26a3=_0x349d84['markerName']['split'](':')[0x1],_0x158ae5=this['_getChangeFromId'](_0x2b26a3);if(!_0x158ae5)return null;const _0x2fe797='add'==_0x158ae5['type']?'insertion':'deletion',_0x534f3d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2fe797];return _0x158ae5['data']['isSuggestion']&&_0x534f3d['push']('ck-suggestion-marker-'+_0x2fe797+'-new'),this['activeChange']==_0x158ae5&&_0x534f3d['push']('ck-suggestion-marker--active'),{'classes':_0x534f3d,'attributes':{'data-change-id':_0x2b26a3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x456919=>{_0x456919['on']('element:pre',(_0x35bced,_0x578443,_0x17e402)=>{const _0x335176=_0x578443['viewItem']['getChild'](0x0);if(!_0x335176||!_0x335176['is']('element','code'))return;if(!_0x17e402['consumable']['consume'](_0x335176,{'attributes':['vid_start','vid_end']}))return;const _0x5829dd=_0x578443['modelRange']['start']['nodeAfter'];_0x17e402['writer']['setAttribute']('vid_start',_0x335176['getAttribute']('vid_start'),_0x5829dd),_0x17e402['writer']['setAttribute']('vid_end',_0x335176['getAttribute']('vid_end'),_0x5829dd);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xa5d28c=>{_0xa5d28c['on']('element',(_0x506be4,_0x91292b,_0xbdfb9a)=>{if(!_0xbdfb9a['consumable']['consume'](_0x91292b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x91292b['modelRange']['isCollapsed'])return;const _0x47f903=_0x91292b['modelRange']['start']['nodeAfter'];_0x47f903['hasAttribute']('vid_start')||_0x47f903['hasAttribute']('vid')||(_0xbdfb9a['writer']['setAttribute']('vid_start',_0x91292b['viewItem']['getAttribute']('vid_start'),_0x47f903),_0xbdfb9a['writer']['setAttribute']('vid_end',_0x91292b['viewItem']['getAttribute']('vid_end'),_0x47f903));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1f5b50=>_0x1f5b50['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e726a,[,_0x1dd57b])=>{['vid_start','vid_end','vid']['includes'](_0x1dd57b)&&(_0x1e726a['return']=!0x0,_0x1e726a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1b6210=>{_0x1b6210['on']('attribute:vid',(_0x4a6539,_0x378529,_0x5eeedb)=>{if('\x20'!=_0x378529['item']['data']||_0x378529['item']['parent']['maxOffset']>0x1)return;if(!_0x5eeedb['consumable']['consume'](_0x378529['item'],_0x4a6539['name']))return;const _0x338790=_0x5eeedb['writer'],_0x4fa9bb=_0x5eeedb['mapper']['toViewRange'](_0x378529['range']);_0x338790['wrap'](_0x4fa9bb,_0x338790['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5e86a2){const _0x5f62fa=_0x5e86a2['plugins']['get']('RevisionViewer');return(_0x3f8a45,_0x28560b,_0x2e71ad)=>{const _0x3e3cc5=_0x28560b['markerName']['split'](':')[0x1],_0x345680=_0x5f62fa['_getChangeFromId'](_0x3e3cc5);if(!_0x345680)return null;const _0x55c9fd='add'==_0x345680['type']?'split':'merge';if(!_0x2e71ad['consumable']['test'](_0x28560b['markerRange'],_0x3f8a45['name']))return;const _0x2d88ad=_0x28560b['markerRange']['getWalker'](),_0xcf638=_0x28560b['markerRange']['start'],_0x539572=_0x5e86a2['model']['schema'];let _0x3e05de=null,_0x33be4c=null,_0x4b5913=!0x1,_0x7945d7=!0x1;for(const _0x1054bf of _0x2d88ad){const _0x3b600c=_0x1054bf['item'];_0x4b5913=_0x4b5913||_0x539572['isContent'](_0x3b600c);const _0x2262d7=_0x2e71ad['mapper']['toViewElement'](_0x3b600c);if(_0x2262d7&&_0x2262d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1054bf['type']&&(_0x539572['isBlock'](_0x3b600c)&&!_0x539572['isLimit'](_0x3b600c)&&(_0x3b600c['nextSibling']||_0xcf638['isAtEnd']?_0x3e05de&&_0x3e05de['parent']==_0x3b600c||(_0x3e05de=_0x3b600c,_0x53d890(_0x1054bf['previousPosition']),_0x7945d7=!0x0):_0x33be4c=_0x33be4c||_0x1054bf['previousPosition']));}function _0x53d890(_0xdfe485){const _0x4f9e3f=_0x2e71ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55c9fd}),_0x33f8f8=_0x2e71ad['mapper']['toViewPosition'](_0xdfe485);_0x345680['data']['isSuggestion']&&_0x2e71ad['writer']['addClass']('ck-suggestion-marker-'+_0x55c9fd+'-new',_0x4f9e3f),_0x5f62fa['activeChange']==_0x345680&&_0x2e71ad['writer']['addClass']('ck-suggestion-marker--active',_0x4f9e3f),_0x2e71ad['writer']['insert'](_0x33f8f8,_0x4f9e3f),_0x2e71ad['mapper']['bindElementToMarker'](_0x4f9e3f,_0x28560b['markerName']);}_0x4b5913||_0x7945d7||!_0x33be4c||_0x53d890(_0x33be4c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x20a859,_0x30632b,_0x107d61)=>{const _0x3fe3d3=_0x107d61['mapper']['markerNameToElements'](_0x30632b['markerName']);if(_0x3fe3d3){for(const _0x12729f of _0x3fe3d3)(_0x12729f['hasClass']('ck-suggestion-marker-split')||_0x12729f['hasClass']('ck-suggestion-marker-merge'))&&(_0x107d61['mapper']['unbindElementFromMarkerName'](_0x12729f,_0x30632b['markerName']),_0x107d61['writer']['remove'](_0x12729f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5d3fa5,_0x447ef0,_0x5f2ac1)=>{const _0x26528c=_0x447ef0['markerName']['split'](':')[0x1],_0x290b33=this['_getChangeFromId'](_0x26528c);if(!_0x290b33)return null;const _0x1725a5='add'==_0x290b33['type']?'split':'merge';if(_0x5f2ac1['consumable']['test'](_0x447ef0['markerRange'],_0x5d3fa5['name']))for(const _0x4923fa of _0x447ef0['markerRange']['getItems']()){if(!_0x4923fa['is']('element','softBreak'))continue;const _0x109fd8=_0x5f2ac1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1725a5}),_0x1d8c14=_0x5f2ac1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4923fa));_0x290b33['data']['isSuggestion']&&_0x5f2ac1['writer']['addClass']('ck-suggestion-marker-'+_0x1725a5+'-new',_0x109fd8),this['activeChange']==_0x290b33&&_0x5f2ac1['writer']['addClass']('ck-suggestion-marker--active',_0x109fd8),_0x5f2ac1['writer']['insert'](_0x1d8c14,_0x109fd8),_0x5f2ac1['mapper']['bindElementToMarker'](_0x109fd8,_0x447ef0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x319816=>{for(const _0xf49f1b of this['editor']['model']['document']['getRootNames']()){const _0x449cbf=this['editor']['model']['document']['getRoot'](_0xf49f1b),_0x1583c8=this['editor']['editing']['view']['document']['getRoot'](_0xf49f1b);if(_0x1583c8){const _0x149768=_0x449cbf['getAttribute']('revisionHistoryAttachChange');if(_0x319816['removeAttribute']('data-change-id',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root-add',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root-remove',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root--active',_0x1583c8),_0x149768){const _0x212477=this['_getChangeFromId'](_0x149768);if(!_0x212477)return null;_0x319816['setAttribute']('data-change-id',_0x149768,_0x1583c8),_0x319816['addClass']('ck-revision-history-root-'+_0x212477['type'],_0x1583c8),this['activeChange']==_0x212477&&_0x319816['addClass']('ck-revision-history-root--active',_0x1583c8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8737fc=>'revision-comment:'+_0x8737fc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c4bef=>'revision-suggestion:'+_0x5c4bef,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x50db22=>({'name':'suggestion:'+_0x50db22,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2ebbf4=>{const _0x2ec87e=_0x2ebbf4['markerName']['split'](':')[0x1];return'insertion'!=_0x2ec87e&&'deletion'!=_0x2ec87e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ec87e]};}}),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',(_0x8af211,_0x5954f0,_0x320512)=>{const _0x1dbe1b=_0x320512['mapper']['markerNameToElements'](_0x5954f0['markerName']);if(_0x1dbe1b){for(const _0x43e3b3 of _0x1dbe1b)_0x43e3b3['is']('uiElement')&&(_0x320512['mapper']['unbindElementFromMarkerName'](_0x43e3b3,_0x5954f0['markerName']),_0x320512['writer']['remove'](_0x43e3b3));}},{'priority':'high'});}['_getChangeFromId'](_0x320b82){return this['_changeIdToChange']['get'](_0x320b82);}['_getViewForChange'](_0x38f19c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x38f19c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x25ce69,_0x34da19,_0x10f89b,_0xb7a755)=>{_0xb7a755&&this['_balloon']['remove'](_0xb7a755),_0x10f89b&&(this['_balloon']['add']({'view':_0x10f89b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x425925=this['editor']['editing'],_0x183ca2=this['_getChangeFromId'](_0x10f89b['changeId']);let _0x343757;if(_0x183ca2['data']['isOnRoot']){const _0x24f3b7=_0x425925['view']['getDomRoot'](_0x183ca2['rootName']);_0x343757=Array['from'](_0x24f3b7['getClientRects']());}else{const _0x30993c=this['editor']['model']['markers']['get']('revision:'+_0x10f89b['changeId']);_0x343757=Array['from'](_0x425925['mapper']['markerNameToElements'](_0x30993c['name']))['map'](_0x23f28b=>_0x425925['view']['domConverter']['mapViewToDom'](_0x23f28b))['map'](_0x5f4e95=>Array['from'](_0x5f4e95['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x343757[0x0];return _0x343757['find'](_0x4c64db=>_0x4c64db['top']-0x3<=this['_activeViewTarget']['y']&&_0x4c64db['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c64db['left']-0x3<=this['_activeViewTarget']['x']&&_0x4c64db['right']+0x3>=this['_activeViewTarget']['x'])||_0x343757[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2071ca,_0x3306f2,_0x2dcc4d,_0x3e01ca)=>{this['activeView']=_0x2dcc4d?this['_getViewForChange'](_0x2dcc4d):null,this['editor']['model']['change'](()=>{const _0x16da57=this['editor']['editing'];_0x3e01ca&&(_0x3e01ca['data']['isOnRoot']?_0x16da57['view']['change'](_0x49256a=>{_0x49256a['removeClass']('ck-revision-history-root--active',_0x16da57['view']['document']['getRoot'](_0x3e01ca['rootName']));}):_0x16da57['reconvertMarker']('revision:'+_0x3e01ca['id'])),_0x2dcc4d&&(_0x2dcc4d['data']['isOnRoot']?_0x16da57['view']['change'](_0x57ce80=>{_0x57ce80['addClass']('ck-revision-history-root--active',_0x16da57['view']['document']['getRoot'](_0x2dcc4d['rootName']));}):_0x16da57['reconvertMarker']('revision:'+_0x2dcc4d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b2491,_0x16c503)=>{if(this['activeChange'])return;const _0x741190=this['_findChangeIdFromDomTarget'](_0x16c503['target']),_0x5e271d=this['_changeIdToChange']['get'](_0x741190);_0x5e271d?(this['_activeViewTarget']={'x':_0x16c503['domEvent']['x'],'y':_0x16c503['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5e271d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x524b8f,_0x956f14)=>{const _0x440d92=this['_findChangeIdFromDomTarget'](_0x956f14['target']),_0x56d2cc=this['_changeIdToChange']['get'](_0x440d92);_0x56d2cc?(this['_activeViewTarget']={'x':_0x956f14['domEvent']['x'],'y':_0x956f14['domEvent']['y']},_0x56d2cc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x56d2cc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5977bb){do{const _0x8ac38a=_0x5977bb['getAttribute']('data-change-id');if(_0x8ac38a)return _0x8ac38a;_0x5977bb=_0x5977bb['parent'];}while(_0x5977bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4303cf=>{for(const _0xdc5057 of this['editor']['model']['markers'])_0x4303cf['removeMarker'](_0xdc5057);});}}function Q(_0x74f221,_0x52c2a9){return(_0x11e2ce,_0x24bf9f,_0x3a1aa3)=>{if(!_0x3a1aa3['consumable']['test'](_0x24bf9f['markerRange'],_0x11e2ce['name']))return;const _0x47644b=_0x24bf9f['markerRange']['getWalker'](),_0x298d0d=_0x24bf9f['markerRange']['start'],_0x5cd925=_0x74f221['model']['schema'];let _0xffa708=null,_0x5d78b4=null,_0x169fa2=!0x1,_0x56217e=!0x1;for(const _0x4a3d0c of _0x47644b){const _0x1e6913=_0x4a3d0c['item'];_0x169fa2=_0x169fa2||_0x5cd925['isContent'](_0x1e6913);const _0x4e25c1=_0x3a1aa3['mapper']['toViewElement'](_0x1e6913);if(_0x4e25c1&&_0x4e25c1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a3d0c['type']&&(_0x5cd925['isBlock'](_0x1e6913)&&!_0x5cd925['isLimit'](_0x1e6913)&&(_0x1e6913['nextSibling']||_0x298d0d['isAtEnd']?_0xffa708&&_0xffa708['parent']==_0x1e6913||(_0xffa708=_0x1e6913,_0x42dff9(_0x4a3d0c['previousPosition']),_0x56217e=!0x0):_0x5d78b4=_0x5d78b4||_0x4a3d0c['previousPosition']));}function _0x42dff9(_0x27d23c){const _0x309788=_0x3a1aa3['mapper']['toViewPosition'](_0x27d23c),_0x571ace=_0x3a1aa3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x52c2a9});_0x3a1aa3['writer']['insert'](_0x309788,_0x571ace),_0x3a1aa3['mapper']['bindElementToMarker'](_0x571ace,_0x24bf9f['markerName']);}_0x169fa2||_0x56217e||!_0x5d78b4||_0x42dff9(_0x5d78b4);};}class nt extends _0x518bfa{constructor(_0x5928ab){super(_0x5928ab);const _0x2a0f0a=_0x5928ab['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2a0f0a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2a0f0a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x144894=this['editor'],_0x3f312d=_0x144894['plugins']['get'](u),_0x26f2e4=_0x3f312d['isReady']?_0x3f312d['diff']['newRevisionId']:null;_0x144894['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26f2e4);}['refresh'](){const {isReady:_0x53f6ca,isEnabled:_0x3dd3ea,repository:_0x5dd3d1,diff:_0x53883f}=this['editor']['plugins']['get'](u),_0x4c4ae1=_0x53883f&&_0x5dd3d1['getLaterVisibleRevision'](_0x53883f['newRevisionId']);this['isEnabled']=_0x53f6ca&&_0x3dd3ea&&Boolean(_0x4c4ae1);}}class rt extends _0x518bfa{['_step'];constructor(_0x5e53aa,{direction:_0x1df5b9}){super(_0x5e53aa);const _0x5bf7e3=_0x5e53aa['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1df5b9?0x1:-0x1,this['listenTo'](_0x5bf7e3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bf7e3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5bf7e3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x9fabe0=this['editor'],_0x3aa3e6=_0x9fabe0['plugins']['get'](u),{isNavigationMode:_0x3b7935,currentChangeNumber:_0xa65cb8}=_0x3aa3e6;let _0x4b4dc7;if(_0x3aa3e6['activeChange']=_0x3b7935?_0x3aa3e6['diff']['changes']['get'](_0xa65cb8+this['_step']):_0x3aa3e6['diff']['changes']['first'],_0x3aa3e6['activeChange']['data']['isOnRoot'])_0x4b4dc7=_0x9fabe0['editing']['view']['getDomRoot'](_0x3aa3e6['activeChange']['rootName']);else{const _0x20bb2c=_0x9fabe0['model']['markers']['get']('revision:'+_0x3aa3e6['activeChange']['id']);_0x4b4dc7=_0x4ba0e4(_0x9fabe0['editing'],_0x20bb2c);}_0xd0b7de({'target':_0x4b4dc7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4cd392,currentChangeNumber:_0x53ad63,numberOfChanges:_0x2a19c4,isReady:_0x41f5b6,isEnabled:_0x13b04e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x13b04e&&_0x41f5b6&&_0x2a19c4)&&(!_0x4cd392||(0x1===this['_step']?_0x53ad63<_0x2a19c4-0x1:_0x53ad63>0x0));}}class Ri extends _0x3ee578{constructor(_0x4ca33a){super(_0x4ca33a);const _0x5d89ce=this['bindTemplate'],_0x33c5ac=new _0x235a06(_0x4ca33a),_0x5937ab=new _0x235a06(_0x4ca33a);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',(_0x45408c,_0xa1aa3c)=>_0x45408c&&_0xa1aa3c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9e8a40,_0x1eab2a,_0x240e06,_0x4a4e17)=>{if(!_0x9e8a40)return m(_0x4ca33a,'Loading...');if(!_0x240e06)return m(_0x4ca33a,'No\x20changes');const _0x4c4d70=m(_0x4ca33a,'NUMBER_OF_CHANGES',_0x240e06);return _0x4a4e17?m(_0x4ca33a,'X_OF_Y_CHANGES',[_0x1eab2a+0x1,_0x240e06]):_0x4c4d70;}),_0x33c5ac['set']({'label':m(_0x4ca33a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x54e670}),_0x5937ab['set']({'label':m(_0x4ca33a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1fe749}),_0x33c5ac['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5937ab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33c5ac['on']('execute',()=>this['fire']('execute','backward')),_0x5937ab['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',_0x5d89ce['if']('_isStatusLabelVisible','ck-hidden',_0x4d8644=>!_0x4d8644)]},'children':[{'text':_0x5d89ce['to']('isNavigationMode',_0x45d7fc=>_0x45d7fc?m(_0x4ca33a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ca33a,'Total')+':\x20')}]},{'text':_0x5d89ce['to']('_statusText')}]},new _0x5652f5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33c5ac,_0x5937ab]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x4b71e4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x246a2c=this['editor']['editing']['view'];_0x246a2c['change'](_0xd8596f=>{for(const _0xc44441 of _0x246a2c['document']['roots'])_0xd8596f['addClass'](ge,_0xc44441);});}['hide'](){const _0x663880=this['editor']['editing']['view'];_0x663880['change'](_0x3eaaa1=>{for(const _0x92c01b of _0x663880['document']['roots'])_0x3eaaa1['removeClass'](ge,_0x92c01b);});}}class v extends _0x4b71e4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x14e739=this['editor'],_0x5da3b2=_0x14e739['plugins']['get'](u),_0x24193a=_0x14e739['plugins']['get'](ji);_0x14e739['ui']['componentFactory']['add']('exitToEditing',_0x2bef4d=>{const _0x2896f6=new _0x235a06(_0x2bef4d);return _0x2896f6['set']({'label':m(_0x2bef4d,'Back\x20to\x20editing'),'icon':_0x90f4af,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2896f6,'execute',()=>{_0x14e739['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2896f6;}),_0x14e739['ui']['componentFactory']['add']('restoreRevision',_0x2228fa=>{const _0x162641=new _0x235a06(_0x2228fa);return _0x162641['set']({'label':m(_0x2228fa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x162641['bind']('isEnabled')['to'](_0x14e739['commands']['get']('restoreRevision')),this['listenTo'](_0x162641,'execute',()=>_0x14e739['execute']('restoreRevision')),_0x162641;}),_0x14e739['ui']['componentFactory']['add']('changesNavigation',_0x10fc49=>{const _0x5350c2=new Ri(_0x10fc49),_0x34971e=_0x14e739['commands']['get']('showPreviousChange'),_0x37eaca=_0x14e739['commands']['get']('showNextChange');return _0x5350c2['bind']('isBackwardNavigationEnabled')['to'](_0x34971e,'isEnabled'),_0x5350c2['bind']('isForwardNavigationEnabled')['to'](_0x37eaca,'isEnabled'),_0x5350c2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5da3b2),this['listenTo'](_0x5350c2,'execute',(_0x1f9532,_0x5a8849)=>{_0x14e739['execute']('forward'===_0x5a8849?'showNextChange':'showPreviousChange');}),_0x5350c2;}),_0x24193a['show'](),_0x5da3b2['on']('change:isReady',(_0x4c6c55,_0x5b7963,_0x3e7545)=>{_0x3e7545?_0x24193a['hide']():_0x24193a['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x3b6662,_0x4855ff){super(_0x3b6662,_0x4855ff);const _0x2b0756=this['bindTemplate'];this['set']({'label':m(_0x3b6662,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3b6662,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2b0756['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 _0x4e6f4b=this['fieldView']['element'];this['_tooltipString']=_0x4e6f4b['scrollWidth']>_0x4e6f4b['clientWidth']&&_0x4e6f4b['value']||'';}}class ni extends _0x3ee578{constructor(_0x3447a1,_0x15a9eb,_0x27c65a){super(_0x3447a1);const _0x2f8dda=new _0x468b2c();_0x2f8dda['set']({'content':_0x2d4ff3,'viewBox':'0\x200\x2011\x2010'});const _0x450534=['ck','ck-revision-history-sidebar__revision-author'];_0x27c65a&&_0x450534['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1c2407=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3447a1,_0x27c65a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2f8dda,_0x15a9eb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x450534},'children':_0x1c2407});}}function ai(_0x5212c6,_0x37fe46){const _0x3e3990=_0x5212c6['bindTemplate'],_0x68f4d9=_0x5212c6['locale'],_0x278bd0=_0x5925fb(_0x68f4d9);_0x278bd0['panelPosition']='sw';const _0x27de38=function(_0x16215a,_0x16bcf0){const _0x3ddf88=function(_0x134a16,_0x4466c5){const _0x5913aa=_0x134a16['locale'],_0x3ae580={'Compare\x20against\x20selected':m(_0x5913aa,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5913aa,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5913aa,'Restore\x20this\x20revision')};return _0x4466c5['map'](_0x57f2c8=>{const _0x1eca90=_0x3ae580[_0x57f2c8['name']];return _0x1eca90&&_0x1eca90!==_0x57f2c8['name']&&(_0x57f2c8['name']=_0x1eca90),_0x57f2c8;});}(_0x16215a,_0x16bcf0),_0x375861=new _0x4658e5();for(const _0x47124f of _0x3ddf88){const _0x2adc00={'type':'button','model':new to({'label':_0x47124f['name'],'class':_0x47124f['class'],'withText':!0x0,'role':'menuitem','_action':_0x47124f['action']})};_0x2adc00['model']['bind']('isEnabled')['to'](_0x16215a,'isActionsDropdownOpen',_0x5df732=>'function'!=typeof _0x47124f['isEnabled']||(!_0x5df732||_0x47124f['isEnabled'](_0x16215a))),_0x375861['add'](_0x2adc00);}return _0x375861;}(_0x5212c6,_0x37fe46);return _0x5212c6['bind']('isActionsDropdownOpen')['to'](_0x278bd0,'isOpen'),_0x278bd0['buttonView']['set']({'label':m(_0x68f4d9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x170036}),_0x278bd0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e3990['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e3990['to'](_0x715094=>_0x715094['stopPropagation']())}}),_0x278bd0['on']('execute',_0x20e9c5=>{_0x5212c6['isReady']&&'function'==typeof _0x20e9c5['source']['_action']&&_0x20e9c5['source']['_action'](_0x5212c6);}),_0x2c6bad(_0x278bd0,_0x27de38,{'role':'menu'}),_0x278bd0['listenTo'](_0x5212c6,'change:isActionsDropdownOpen',(_0x297447,_0x5db434,_0x58ad7a)=>{if(_0x58ad7a)for(const _0x6cb7c5 of _0x278bd0['listView']['items']){const _0x2d688c=_0x6cb7c5['children']['first'],_0x517fd4=_0x37fe46['find'](_0x84de01=>_0x84de01['action']===_0x2d688c['_action'])['isVisible'];_0x6cb7c5['isVisible']=void 0x0===_0x517fd4||_0x517fd4(_0x5212c6);}}),_0x278bd0;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x2f0b4b,uid as _0x2007cb,Collection as _0x10ef23,logWarning as _0x2254ca,FocusTracker as _0xb1d55b,KeystrokeHandler as _0x5be3b7,scrollViewportToShowTarget as _0x36e0cc,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x28aaf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fa70e,set as _0x4fef17,unset as _0x586c0b,isEqual as _0x4d3aac}from'es-toolkit/compat';import{Plugin as _0x37efbb,PendingActions as _0x4626f1,Command as _0x32a8c2,ElementApiMixin as _0x3f7666,Editor as _0x24ae32}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2a2deb,getMarkerDomElement as _0x5111b4,ConfirmMixin as _0x35bf1a,sanitizeEditorConfig as _0x674281}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0xf7b6cb,ViewAttributeElement as _0x49a8ce,ViewEmptyElement as _0x47e816,ViewRawElement as _0x505a83,ViewUIElement as _0x5552ae,ViewDocumentFragment as _0x1eb0f8,ViewText as _0x51a2c1,ViewElement as _0x5c06a7,ModelElement as _0x4d179,ModelRange as _0xf40c04,ModelPosition as _0x430f9e,ModelDocumentFragment as _0x788399,ModelText as _0x4393a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5f4d6c,IconChevronUp as _0x40aa8b,IconChevronDown as _0x286aff,IconUndo as _0x1aee6f,IconUser as _0x44584d,IconThreeVerticalDots as _0x3435b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x52266d,View as _0x126ab4,submitHandler as _0x3848c6,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x3295c4,ListView as _0x4fd814,ListItemView as _0x472e37,ButtonView as _0xc3e667,MenuBarMenuView as _0x483f6b,MenuBarMenuListView as _0xf63aa3,MenuBarMenuListItemView as _0x41236d,MenuBarMenuListItemButtonView as _0x5f27ec,ContextualBalloon as _0x282325,ToolbarSeparatorView as _0x550144,IconView as _0x860f76,addListToDropdown as _0x593ae8,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x21a7f9,StickyPanelView as _0x73ee2d,ToolbarView as _0x36ff58,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1006f5}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f0b4b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x539499){super(),this['id']=_0x539499['id']||_0x2007cb(),this['creator']=_0x539499['creator']||null,this['authors']=_0x539499['authors']||[],this['diffData']=_0x539499['diffData']||null,this['toVersion']=_0x539499['toVersion']||0x0,this['fromVersion']=_0x539499['fromVersion']||0x0,this['set']('name',_0x539499['name']||''),this['set']('createdAt',_0x539499['createdAt']||new Date()),this['set']('attributes',_0x539499['attributes']||{});}['setName'](_0x247132){this['_update']({'name':_0x247132});}['setAttribute'](_0x599fa5,_0x15656e){const _0x52fec5=_0x2fa70e(this['attributes']);_0x4fef17(_0x52fec5,_0x599fa5,_0x15656e),this['_update']({'attributes':_0x52fec5});}['removeAttribute'](_0x29d853){const _0x58dde0=_0x2fa70e(this['attributes']);_0x586c0b(_0x58dde0,_0x29d853),this['_update']({'attributes':_0x58dde0});}['_update'](_0x2ba935,_0x48509c=!0x1){let _0x9209fe=!0x1;const _0x1cd404={'id':this['id']},_0x205777=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2ef9e6 of _0x205777){const _0x310acc=_0x2ba935[_0x2ef9e6];void 0x0!==_0x310acc&&_0x310acc!==this[_0x2ef9e6]&&(this[_0x2ef9e6]=_0x310acc,_0x1cd404[_0x2ef9e6]=_0x310acc,_0x9209fe=!0x0);}_0x9209fe&&(_0x1cd404['authors']&&(_0x1cd404['authorsIds']=_0x1cd404['authors']['map'](_0x2bc686=>_0x2bc686['id']),delete _0x1cd404['authors']),this['fire']('_update',_0x1cd404,_0x48509c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2a0417=>_0x2a0417['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x37efbb{['_revisions'];static get['requires'](){return[_0x2a2deb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x43d36e){super(_0x43d36e),this['_revisions']=new _0x10ef23();}['afterInit'](){!async function(_0x34dc6d){const _0x4af020=_0x5efcc0([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x2a18cf=0xeb829,_0x3f3fbe=0x359e09b0,_0x1e2a5d=0x35997368^_0x3f3fbe,_0x13069a=window[_0x5efcc0([0x44,0x61,0x74,0x65])][_0x5efcc0([0x6e,0x6f,0x77])](),_0x5438aa=_0x34dc6d[_0x5efcc0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6bb215=new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2891db=>{_0x5438aa[_0x5efcc0([0x6f,0x6e,0x63,0x65])](_0x5efcc0([0x72,0x65,0x61,0x64,0x79]),_0x2891db);}),_0x37e4d3={[_0x5efcc0([0x6b,0x74,0x79])]:_0x5efcc0([0x45,0x43]),[_0x5efcc0([0x75,0x73,0x65])]:_0x5efcc0([0x73,0x69,0x67]),[_0x5efcc0([0x63,0x72,0x76])]:_0x5efcc0([0x50,0x2d,0x32,0x35,0x36]),[_0x5efcc0([0x78])]:_0x5efcc0([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]),[_0x5efcc0([0x79])]:_0x5efcc0([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]),[_0x5efcc0([0x61,0x6c,0x67])]:_0x5efcc0([0x45,0x53,0x32,0x35,0x36])},_0x420bde=_0x5438aa[_0x5efcc0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5efcc0([0x67,0x65,0x74])](_0x5efcc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xed97cf(){let _0x1d4b4d,_0x4a4d63=null,_0x446f1d=null;try{if(_0x420bde==_0x5efcc0([0x47,0x50,0x4c]))return _0x5efcc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d4b4d=_0x8da36c(),!_0x1d4b4d)return _0x5efcc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d4b4d[_0x5efcc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x446f1d=_0x61c714(_0x1d4b4d[_0x5efcc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d4b4d[_0x5efcc0([0x6a,0x74,0x69])])),await _0x13d50b()?_0xd0974b()?_0x579f98()?_0x5efcc0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14db96()?(_0x1d4b4d[_0x5efcc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5efcc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a4d63=_0x2c090c(_0x5efcc0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d4b4d[_0x5efcc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5efcc0([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a4d63=_0x2c090c(_0x5efcc0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1728d6()):_0x5efcc0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5efcc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5efcc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5efcc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x579f98(){const _0x1b9696=[_0x5efcc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5efcc0([0x74,0x72,0x69,0x61,0x6c])][_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d4b4d[_0x5efcc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13069a/0x3e8:0xe10*_0x1e2a5d;return _0x1d4b4d[_0x5efcc0([0x65,0x78,0x70])]<_0x1b9696;}function _0xd0974b(){const _0x2efc95=_0x1d4b4d[_0x5efcc0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2efc95)return!0x1;if(_0x2efc95[_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5efcc0([0x2a])))return!0x0;if(_0x2efc95[_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5efcc0([0x52,0x48])))return!0x0;if(_0x2efc95[_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5efcc0([0x52,0x52,0x48]))){if(_0x1e6e2c())return!0x0;if(_0x3ce5f7()||_0x1cdad0())return!0x0;}return!0x1;}function _0x14db96(){const _0x58c5a2=_0x1d4b4d[_0x5efcc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58c5a2||0x0==_0x58c5a2[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a3405}=new URL(window[_0x5efcc0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58c5a2[_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a3405))return!0x0;const _0x26d1bd=_0x5a3405[_0x5efcc0([0x73,0x70,0x6c,0x69,0x74])](_0x5efcc0([0x2e]));return _0x58c5a2[_0x5efcc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x196c75=>_0x196c75[_0x5efcc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5efcc0([0x2a])))[_0x5efcc0([0x6d,0x61,0x70])](_0x507875=>_0x507875[_0x5efcc0([0x73,0x70,0x6c,0x69,0x74])](_0x5efcc0([0x2e])))[_0x5efcc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x193505=>_0x193505[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26d1bd[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5efcc0([0x6d,0x61,0x70])](_0x718fc9=>Array(_0x26d1bd[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x718fc9[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5efcc0([0x66,0x69,0x6c,0x6c])](_0x718fc9[0x0]===_0x5efcc0([0x2a])?_0x5efcc0([0x2a]):'')[_0x5efcc0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x718fc9))[_0x5efcc0([0x73,0x6f,0x6d,0x65])](_0x134911=>_0x26d1bd[_0x5efcc0([0x65,0x76,0x65,0x72,0x79])]((_0x41adb0,_0x248b9b)=>_0x134911[_0x248b9b]===_0x41adb0||_0x134911[_0x248b9b]===_0x5efcc0([0x2a])));}function _0x1728d6(){return _0x4a4d63&&_0x446f1d?new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50a4b6,_0x5a07d1)=>{_0x4a4d63[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0x50a4b6,_0x5a07d1),_0x446f1d[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0xb31f32=>{_0xb31f32!=_0x5efcc0([0x56,0x61,0x6c,0x69,0x64])&&_0x50a4b6(_0xb31f32);},_0x5a07d1);}):_0x4a4d63||_0x446f1d||_0x5efcc0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x61c714(_0x31017a,_0x17b4b3){return new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e9bc6=>{if(_0x27ecef())return _0x9e9bc6(_0x5efcc0([0x56,0x61,0x6c,0x69,0x64]));_0x28d93e(),_0x5438aa[_0x5efcc0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5efcc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cc836=!0x1;const _0x4215ec=_0x2007cb();function _0x190aee(_0x4764c9){return!!_0x4764c9&&(typeof _0x4764c9===_0x5efcc0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4764c9===_0x5efcc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4764c9[_0x5efcc0([0x74,0x68,0x65,0x6e])]===_0x5efcc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4764c9[_0x5efcc0([0x63,0x61,0x74,0x63,0x68])]===_0x5efcc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52e7c2(_0x2185be){_0x21eecd(_0x2185be)[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0x5d425e=>{if(!_0x5d425e||_0x5d425e[_0x5efcc0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5efcc0([0x6f,0x6b]))return _0x5efcc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5340bc(_0x12a86d(_0x4215ec+_0x17b4b3))!=_0x5d425e[_0x5efcc0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5efcc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5efcc0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0x408b2e=>(_0x2c2161(),_0x408b2e),()=>{const _0x5ce37e=_0x27e3a9();return null==_0x5ce37e?(_0x2c2161(),_0x5efcc0([0x56,0x61,0x6c,0x69,0x64])):_0x5efcc0(_0x13069a-_0x5ce37e>(0x11928db0^_0x3f3fbe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0x9e9bc6)[_0x5efcc0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9e9bc6(_0x5efcc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5940ba=0x35a8e730^_0x3f3fbe;function _0x2c2161(){const _0x1c9acb=_0x5efcc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5340bc(_0x12a86d(_0x31017a)),_0xad84b4=_0x4966bd(_0x5340bc(window[_0x5efcc0([0x4d,0x61,0x74,0x68])][_0x5efcc0([0x63,0x65,0x69,0x6c])](_0x13069a/_0x5940ba)));window[_0x5efcc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5efcc0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c9acb,_0xad84b4);}function _0x27e3a9(){const _0x1ecc5f=_0x5efcc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5340bc(_0x12a86d(_0x31017a)),_0xf32500=window[_0x5efcc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5efcc0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ecc5f);return _0xf32500?window[_0x5efcc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4966bd(_0xf32500),0x10)*_0x5940ba:null;}function _0x21eecd(_0x259609){return new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d66fb,_0x19ffbd)=>{_0x259609[_0x5efcc0([0x74,0x68,0x65,0x6e])](_0x2d66fb,_0x19ffbd),window[_0x5efcc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19ffbd,0x359fdd70^_0x3f3fbe);});}}_0x5438aa[_0x5efcc0([0x6f,0x6e])](_0x5efcc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x193972,_0x26cb59)=>{if(_0x26cb59[0x0]!=_0x31017a)return _0x9e9bc6(_0x5efcc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26cb59[0x1]={..._0x26cb59[0x1],[_0x5efcc0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4215ec};},{[_0x5efcc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5efcc0([0x68,0x69,0x67,0x68])}),_0x5438aa[_0x5efcc0([0x6f,0x6e])](_0x5efcc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5200ea=>{_0x190aee(_0x5200ea[_0x5efcc0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cc836=!0x0,_0x52e7c2(_0x5200ea[_0x5efcc0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5efcc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5efcc0([0x6c,0x6f,0x77])}),_0x6bb215[_0x5efcc0([0x74,0x68,0x65,0x6e])](()=>{_0x3cc836||_0x9e9bc6(_0x5efcc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27ecef(){return _0x5438aa[_0x5efcc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5efcc0([0x76,0x69,0x65,0x77])][_0x5efcc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5efcc0([0x61,0x75,0x74,0x6f]);}function _0x28d93e(){_0x5438aa[_0x5efcc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5efcc0([0x76,0x69,0x65,0x77])][_0x5efcc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5efcc0([0x61,0x75,0x74,0x6f]);}}function _0x2c090c(_0x1f5246){const _0x16232e=[new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc0c1=>setTimeout(_0x1cc0c1,0x3597377c^_0x3f3fbe)),_0x6bb215[_0x5efcc0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af7b4=>{const _0x4f2e54=0x359e09b7^_0x3f3fbe,_0x5eff8b=_0x34dc6d[_0x5efcc0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x532f73(){_0x5eff8b[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4f2e54&&_0x1af7b4();}_0x532f73(),_0x5eff8b[_0x5efcc0([0x6f,0x6e])](_0x5efcc0([0x61,0x64,0x64]),_0x532f73);})),new window[(_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57a4a8=>{function _0x12007e(){for(const _0x17edfb in window)if(window[_0x5efcc0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5efcc0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x17edfb))&&window[_0x17edfb]==_0x2a18cf)return _0x57a4a8();_0x5438aa[_0x5efcc0([0x73,0x74,0x61,0x74,0x65])]!=_0x5efcc0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5efcc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12007e,0x359e1a38^_0x3f3fbe);}_0x316e6e(_0x5efcc0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x12007e();})];return window[_0x5efcc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5efcc0([0x72,0x61,0x63,0x65])](_0x16232e)[_0x5efcc0([0x74,0x68,0x65,0x6e])](()=>_0x1f5246);}async function _0x4d1bd0(){if(await _0x6bb215,_0x316e6e(_0x5efcc0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2010ce=_0x34dc6d[_0x5efcc0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xbbaf3a=_0x34dc6d[_0x5efcc0([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])](_0x2010ce[_0x5efcc0([0x69,0x64])]),_0x3f9ac8=_0x2ce1ef(_0x5efcc0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3f9ac8[_0x5efcc0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2010ce['id'],_0xbbaf3a?_0xbbaf3a['id']:null,!0x0),_0x3f9ac8[_0x5efcc0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5efcc0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3f9ac8[_0x5efcc0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3f9ac8[_0x5efcc0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x38ae32,void(_0x3f9ac8[_0x5efcc0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x38ae32);}if(_0x316e6e(_0x5efcc0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f13f5=_0x2ce1ef(_0x5efcc0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f13f5[_0x5efcc0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5efcc0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f13f5[_0x5efcc0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f13f5[_0x5efcc0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x38ae32,_0x1f13f5[_0x5efcc0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x38ae32;}_0x5438aa[_0x5efcc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5efcc0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38ae32,_0x5438aa[_0x5efcc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5efcc0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38ae32,_0x5438aa[_0x5efcc0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5efcc0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e6e2c(){return _0x316e6e(_0x5efcc0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ce1ef(_0x5efcc0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5efcc0([0x73,0x74,0x61,0x74,0x65])]==_0x5efcc0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ce5f7(){return _0x316e6e(_0x5efcc0([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 _0x1cdad0(){return _0x316e6e(_0x5efcc0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54feba(_0x4581d8){const _0x19c366=_0x27166b();_0x5438aa[_0x19c366]=_0x5efcc0([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])+_0x4581d8,_0x4581d8[_0x5efcc0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5efcc0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x27166b()]=_0x2a18cf),_0x4581d8!=_0x5efcc0([0x56,0x61,0x6c,0x69,0x64])&&_0x4d1bd0();}function _0x27166b(){const _0x4ab943=window[_0x5efcc0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5efcc0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5efcc0([0x6e,0x6f,0x77])]())[_0x5efcc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5efcc0([0x2e]),'');let _0x35bc63=_0x5efcc0([0x76]);for(let _0x2b17ea=0x0;_0x2b17ea<_0x4ab943[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b17ea+=0x2){let _0x5938c5=window[_0x5efcc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ab943[_0x5efcc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b17ea,_0x2b17ea+0x2));_0x5938c5>=_0x4af020[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5938c5-=_0x4af020[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35bc63+=_0x4af020[_0x5938c5];}return _0x35bc63;}function _0x8da36c(){const _0x31bbbb=_0x420bde[_0x5efcc0([0x73,0x70,0x6c,0x69,0x74])](_0x5efcc0([0x2e]));if(0x3!=_0x31bbbb[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x433443(_0x31bbbb[0x1]);function _0x433443(_0x27cdda){const _0x489de1=_0x3f4d44(_0x27cdda);return _0x489de1&&_0x333669()?_0x489de1:null;function _0x333669(){const _0x5496cd=_0x489de1[_0x5efcc0([0x6a,0x74,0x69])],_0x3c60c0=window[_0x5efcc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5496cd[_0x5efcc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5496cd[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b16a4={..._0x489de1,[_0x5efcc0([0x6a,0x74,0x69])]:_0x5496cd[_0x5efcc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5496cd[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b16a4[_0x5efcc0([0x76,0x63])],_0x12a86d(_0x4b16a4)==_0x3c60c0;}}}async function _0x13d50b(){let _0xa8b3ac=!0x0;try{const _0x15b4bb=_0x420bde[_0x5efcc0([0x73,0x70,0x6c,0x69,0x74])](_0x5efcc0([0x2e])),[_0x48e2c3,_0x2e3e95,_0xd0cc8e]=_0x15b4bb;return _0x4e11de(_0x48e2c3),await _0x91ba76(_0x48e2c3,_0x2e3e95,_0xd0cc8e),_0xa8b3ac;}catch{return!0x1;}function _0x4e11de(_0x520df7){const _0x21a9bc=_0x3f4d44(_0x520df7);_0x21a9bc&&_0x21a9bc[_0x5efcc0([0x61,0x6c,0x67])]==_0x5efcc0([0x45,0x53,0x32,0x35,0x36])||(_0xa8b3ac=!0x1);}async function _0x91ba76(_0x1695aa,_0x2799c2,_0x56ab6b){const _0x56e633=window[_0x5efcc0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5efcc0([0x66,0x72,0x6f,0x6d])](_0x18f425(_0x56ab6b),_0x6d8de=>_0x6d8de[_0x5efcc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf84ee6=new window[(_0x5efcc0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5efcc0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1695aa+_0x5efcc0([0x2e])+_0x2799c2),_0x1aabb3=window[_0x5efcc0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5efcc0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1aabb3)return;const _0x357c24=await _0x1aabb3[_0x5efcc0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5efcc0([0x6a,0x77,0x6b]),_0x37e4d3,{[_0x5efcc0([0x6e,0x61,0x6d,0x65])]:_0x5efcc0([0x45,0x43,0x44,0x53,0x41]),[_0x5efcc0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5efcc0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5efcc0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1aabb3[_0x5efcc0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5efcc0([0x6e,0x61,0x6d,0x65])]:_0x5efcc0([0x45,0x43,0x44,0x53,0x41]),[_0x5efcc0([0x68,0x61,0x73,0x68])]:{[_0x5efcc0([0x6e,0x61,0x6d,0x65])]:_0x5efcc0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x357c24,_0x56e633,_0xf84ee6)||(_0xa8b3ac=!0x1);}}function _0x3f4d44(_0x6f129d){return _0x6f129d[_0x5efcc0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5efcc0([0x65,0x79]))?JSON[_0x5efcc0([0x70,0x61,0x72,0x73,0x65])](_0x18f425(_0x6f129d)):null;}function _0x18f425(_0x24bc9f){return window[_0x5efcc0([0x61,0x74,0x6f,0x62])](_0x24bc9f[_0x5efcc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5efcc0([0x2b]))[_0x5efcc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5efcc0([0x2f])));}function _0x12a86d(_0x255f34){let _0x274d65=0x1505;function _0x16c96d(_0x3be1a4){for(let _0x117b9e=0x0;_0x117b9e<_0x3be1a4[_0x5efcc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x117b9e++){const _0x1864bc=_0x3be1a4[_0x5efcc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x117b9e);_0x274d65=(_0x274d65<<0x5)+_0x274d65+_0x1864bc,_0x274d65&=_0x274d65;}}function _0x3346ed(_0x3a0727){Array[_0x5efcc0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a0727)?_0x3a0727[_0x5efcc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3346ed):_0x3a0727&&typeof _0x3a0727==_0x5efcc0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5efcc0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a0727)[_0x5efcc0([0x73,0x6f,0x72,0x74])]()[_0x5efcc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x349e40,_0x5426a2])=>{_0x16c96d(_0x349e40),_0x3346ed(_0x5426a2);}):_0x16c96d(window[_0x5efcc0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a0727));}return _0x3346ed(_0x255f34),_0x274d65>>>0x0;}function _0x5340bc(_0x5b8e6d){return _0x5b8e6d[_0x5efcc0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5efcc0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5efcc0([0x30]));}function _0x4966bd(_0x4eeda0){return _0x4eeda0[_0x5efcc0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5efcc0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5efcc0([0x6a,0x6f,0x69,0x6e])]('');}function _0x316e6e(_0x466592){return _0x5438aa[_0x5efcc0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5efcc0([0x68,0x61,0x73])](_0x466592);}function _0x2ce1ef(_0xebddc2){return _0x5438aa[_0x5efcc0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5efcc0([0x67,0x65,0x74])](_0xebddc2);}function _0x38ae32(){}function _0x5efcc0(_0x3cd931){return _0x3cd931['map'](_0x15042a=>String['fromCharCode'](_0x15042a))['join']('');}_0x54feba(await _0xed97cf());}(this);}['createRevision'](_0x463c59){const _0x2613f5=this['editor']['plugins']['get']('Users');return new I({'id':_0x463c59['id'],'name':_0x463c59['name'],'creator':_0x463c59['creatorId']?_0x2613f5['getUser'](_0x463c59['creatorId']):null,'diffData':_0x463c59['diffData']||_0x463c59['data'],'authors':_0x463c59['authorsIds']['map'](_0x4f9478=>_0x2613f5['getUser'](_0x4f9478)),'createdAt':new Date(_0x463c59['createdAt']),'attributes':_0x463c59['attributes'],'fromVersion':_0x463c59['fromVersion'],'toVersion':_0x463c59['toVersion']});}['addRevision'](_0x4a1d78,_0x354480=0x0){this['_revisions']['add'](_0x4a1d78,_0x354480);}['getRevision'](_0xaf83f8){return this['_revisions']['get'](_0xaf83f8);}['getRevisions'](_0x8ff333={'toJSON':!0x1}){const _0x5c5876=Array['from'](this['_revisions']);return _0x5c5876['reverse'](),_0x8ff333['toJSON']?_0x5c5876['map'](_0x1afbca=>_0x1afbca['toJSON']()):_0x5c5876;}['getIndex'](_0x208f2f){return this['_revisions']['getIndex'](_0x208f2f);}['getEarlierVisibleRevision'](_0x5025da){const [,_0x169fa4]=this['getRevisionsIterator'](_0x5025da,{'direction':'earlier'});return _0x169fa4;}['getLaterVisibleRevision'](_0x294364){const [,_0x2be109]=this['getRevisionsIterator'](_0x294364,{'direction':'later'});return _0x2be109;}['getRevisionsInDiff'](_0x138e4e){const _0x497f7d=[];for(const _0x15712f of this['getRevisionsIterator'](_0x138e4e['newRevisionId']))if(_0x497f7d['push'](_0x15712f),_0x15712f['id']===_0x138e4e['oldRevisionId'])break;return _0x497f7d;}*['getRevisionsIterator'](_0xc999de,{direction:_0x57b26a='earlier',filter:_0x123f65=()=>!0x0}={}){const _0x4dc4fd='earlier'===_0x57b26a?0x1:-0x1;let _0x59dcad=this['_revisions']['get'](_0xc999de),_0x3e27be=this['getIndex'](_0x59dcad);for(yield _0x59dcad;_0x59dcad;){if(_0x3e27be+=_0x4dc4fd,_0x59dcad=this['getRevision'](_0x3e27be),!_0x59dcad)return;_0x123f65(_0x59dcad)&&(yield _0x59dcad);}}}class $ extends _0x37efbb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xf7b6cb,'c'],[_0x49a8ce,'a'],[_0x47e816,'e'],[_0x505a83,'r'],[_0x5552ae,'u']]);['_typeCharToViewClass']=new Map([['c',_0xf7b6cb],['a',_0x49a8ce],['e',_0x47e816],['r',_0x505a83],['u',_0x5552ae]]);async['loadRevisionData'](_0x5f2a99,_0x595bfc){if(_0x5f2a99['diffData']||!_0x595bfc)return;const _0x5b466f=this['editor']['config']['get']('collaboration.channelId'),_0x46e302=await _0x595bfc['getRevision']({'channelId':_0x5b466f,'revisionId':_0x5f2a99['id']});_0x5f2a99['diffData']=_0x46e302['diffData'];}['getRevisionDocumentData'](_0x3cd94b){const _0x54a289={};for(const _0x3be377 in _0x3cd94b['diffData']){if(_0x3cd94b['diffData'][_0x3be377]['attachChange']&&!_0x3cd94b['diffData'][_0x3be377]['attachChange']['isAttached'])continue;const _0x313f5c=this['_removeRevisionMarkers'](JSON['parse'](_0x3cd94b['diffData'][_0x3be377]['insertions'])),_0x111798=this['editor']['editing']['view']['document'],_0x25aa1c=new _0x1eb0f8(_0x111798,_0x313f5c['map'](_0x497d05=>this['_getViewFromDiffObj'](_0x497d05,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x54a289[_0x3be377]=this['editor']['data']['processor']['toData'](_0x25aa1c),this['editor']['data']['processor']['useFillerType']('default');}return _0x54a289;}['getRevisionRootsAttributes'](_0x2f1404){const _0x3c3bef={};for(const _0x58ca0c in _0x2f1404['diffData'])_0x2f1404['diffData'][_0x58ca0c]['attachChange']&&!_0x2f1404['diffData'][_0x58ca0c]['attachChange']['isAttached']||(_0x3c3bef[_0x58ca0c]=_0x2f1404['diffData'][_0x58ca0c]['attributesAfter']||{});return _0x3c3bef;}['_getTypeCharForViewElement'](_0x44749d){return this['_viewClassToTypeChar']['get'](_0x44749d['constructor']);}['_getViewFromDiffObj'](_0xb9094f,_0x38df35){const _0xbc838e=this['editor']['editing']['view']['document'];if('string'==typeof _0xb9094f)return new _0x51a2c1(_0xbc838e,_0xb9094f);{let _0x34876e,_0x4bfbb7;_0x4bfbb7='u'==_0xb9094f['type']||'r'==_0xb9094f['type']?[]:_0xb9094f['children']['map'](_0x1d22e6=>this['_getViewFromDiffObj'](_0x1d22e6,_0x38df35));const _0x145c61=this['_typeCharToViewClass']['get'](_0xb9094f['type'])||_0x5c06a7,_0x4f4c65=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x34876e=new _0x145c61(_0xbc838e,_0xb9094f['name'],_0xb9094f['attributes'],_0x4bfbb7),'u'==_0xb9094f['type']&&_0xb9094f['children'][0x0]){const _0x42c6b9=_0xb9094f['children'][0x0];if(_0x34876e['render']=function(_0x426c30){const _0xbdadab=_0x426c30['createElement']('div');return _0xbdadab['innerHTML']=_0x42c6b9,_0xbdadab['childNodes'][0x0];},_0x38df35){const _0x324757=new _0x1eb0f8(_0xbc838e);_0x324757['_appendChild'](_0x34876e);const _0x2d57fa=Array['from'](_0x4f4c65['viewChildrenToDom'](_0x324757,{'bind':!0x1})),_0x123edb=_0x4f4c65['domDocument']['createElement']('div');_0x123edb['append'](..._0x2d57fa),_0x34876e=Array['from'](_0x4f4c65['domChildrenToView'](_0x123edb))[0x0];}}else{if('r'==_0xb9094f['type']&&_0xb9094f['children'][0x0]){const _0x3bd856=_0xb9094f['children'][0x0];if(_0x34876e['render']=function(_0x28bc54){_0x28bc54['innerHTML']=_0x3bd856;},_0x38df35){const _0x481343=new _0x1eb0f8(_0xbc838e);_0x481343['_appendChild'](_0x34876e);const _0x4190a2=Array['from'](_0x4f4c65['viewChildrenToDom'](_0x481343,{'bind':!0x1})),_0x48b31d=_0x4f4c65['domDocument']['createElement']('div');_0x48b31d['append'](..._0x4190a2);const _0x274d45=Array['from'](_0x4f4c65['domChildrenToView'](_0x48b31d));_0x274d45['length']>0x1?_0x34876e['_appendChild'](_0x274d45):_0x34876e=_0x274d45[0x0];}}}if(_0xb9094f['customProperties']){for(const [_0x3dec25,_0x3e7c69]of _0xb9094f['customProperties'])_0x34876e['_setCustomProperty'](_0x3dec25,_0x3e7c69);}const _0x747829=void 0x0===_0xb9094f['fillerOffset']?null:_0xb9094f['fillerOffset'];return null!==_0x747829&&(_0x34876e['getFillerOffset']=()=>_0x747829),_0x34876e;}}['_makeModelFromViewString'](_0x25bd0d){const _0x4f4d25=JSON['parse'](_0x25bd0d),_0x323be7=this['editor']['editing']['view']['document'],_0xb10f2a=new _0x1eb0f8(_0x323be7,_0x4f4d25['map'](_0x256b6d=>this['_getViewFromDiffObj'](_0x256b6d,!0x0)));return this['editor']['data']['toModel'](_0xb10f2a);}['_removeRevisionMarkers'](_0x156e72){return(_0x156e72=_0x156e72['filter'](_0x10344f=>!_0x10344f['name']||'revision-start'!==_0x10344f['name']&&'revision-end'!==_0x10344f['name']))['forEach'](_0x3615fa=>{'string'!=typeof _0x3615fa&&(_0x3615fa['children']=this['_removeRevisionMarkers'](_0x3615fa['children']),_0x3615fa['attributes']=_0x3615fa['attributes']['filter'](_0x1a2f38=>!_0x1a2f38[0x0]['startsWith']('data-revision-')));}),_0x156e72;}}function m(_0x1ae8de,_0x3b1b0e,_0x3c3774){const t=_0x1ae8de['t'];switch(_0x3b1b0e){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'},_0x3c3774);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c3774);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 _0x37efbb{['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[_0x2a2deb,S,$,_0x4626f1];}constructor(_0x5f958f){super(_0x5f958f),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 _0x17ad13=_0x2007cb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x17ad13},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 _0x1c0e20=this['repository']['getRevision'](0x0),_0x2f0693=_0x1c0e20&&null===_0x1c0e20['creator']?_0x1c0e20:null;if(this['_continueCurrentRevision']=!!_0x2f0693&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x123205=this['_source']['getCurrentRevisionId'](),_0x3bac23=this['repository']['getRevision'](_0x123205);if(_0x3bac23)this['_startingVersion']=_0x3bac23['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4b9e26=this['_source']['history']['_operations']['find'](_0x48ea56=>!_0x48ea56['_isInit']),_0x36487e=_0x4b9e26?_0x4b9e26['baseVersion']:this['_source']['history']['version'];_0x1c0e20?(_0x1c0e20['toVersion']<_0x36487e&&_0x1c0e20['_update']({'toVersion':_0x36487e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2f0693['id'],this['_startingVersion']=_0x2f0693['fromVersion']):(this['_startingVersion']=_0x1c0e20['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x36487e,this['_continueCurrentRevision']=!0x1);}}else _0x2f0693&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2f0693['toVersion'],this['editor']['model']['document']['history']['version']),_0x2f0693['fromVersion']===_0x2f0693['toVersion']?(0x0!==_0x2f0693['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f0693['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f0693['id'],this['_startingVersion']=_0x2f0693['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',_0x37257f=>!_0x37257f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54d0d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a3acd;for(const _0x38a4c2 in _0x54d0d4){const _0x555f0c=_0x38a4c2,_0x450bca=_0x54d0d4[_0x555f0c];if('revisionHistoryLicenseKeyValid'==_0x450bca||'revisionHistoryLicenseKeyInvalid'==_0x450bca||'revisionHistoryLicenseKeyExpired'==_0x450bca||'revisionHistoryLicenseKeyDomainLimit'==_0x450bca||'revisionHistoryLicenseKeyNotAllowed'==_0x450bca||'revisionHistoryLicenseKeyEvaluationLimit'==_0x450bca||'revisionHistoryLicenseKeyTrialLimit'==_0x450bca||'revisionHistoryLicenseKeyUsageLimit'==_0x450bca){delete _0x54d0d4[_0x555f0c],_0x2a3acd=_0x450bca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2a3acd&&_0x54d0d4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x53c070=this['repository']['getRevision'](0x0),_0x6e184=await this['getRevisionDocumentData'](_0x53c070),_0x4501d3=await this['getRevisionRootsAttributes'](_0x53c070);this['_replaceEditorDataWithRevisionData'](_0x6e184,_0x4501d3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3dd970){this['_source']=_0x3dd970;}async['update'](){const _0x53805f=await this['_source']['getLatestVersion']();if(_0x53805f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x11b249=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x53805f});_0x11b249['authors']=_0x11b249['authorsIds']['map'](_0x139f3d=>this['editor']['plugins']['get']('Users')['getUser'](_0x139f3d)),this['currentRevision']['_update'](_0x11b249);}}async['saveRevision'](_0x545f61={},_0xf413ad=null){const _0x479c23=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xf413ad>this['currentRevision']['toVersion']&&(_0xf413ad=null),null===_0xf413ad&&(_0xf413ad=await this['_source']['getLatestVersion']());const _0x9ba187=this['_getFromVersion'](_0xf413ad),_0x23f3ab=this['buildRevisionData']({'from':_0x9ba187,'to':_0xf413ad});if(this['currentRevision']['toVersion']<_0xf413ad){const _0x4a3206=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xf413ad,'to':_0xf413ad});_0x4a3206['authors']=[],_0x4a3206['authorsIds']=[],_0x4a3206['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4a3206,!0x0),delete _0x4a3206['authors'],_0x479c23['push'](_0x4a3206);}_0x545f61['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x545f61['name']=_0x545f61['name']||null,_0x545f61['id']=_0x545f61['id']||_0x2007cb(),_0x545f61={..._0x545f61,..._0x23f3ab};const _0x167d9c=this['addRevisionData'](_0x545f61);_0x479c23['push'](_0x545f61);const _0xe0225e=this['repository']['getIndex'](_0x167d9c);if(0x0!==_0xe0225e){const _0x5e282a=this['repository']['getRevision'](_0xe0225e-0x1);if(_0x5e282a['fromVersion']!==_0xf413ad){const _0x31454d=this['_revisionDataBuilder']['getData'](_0xf413ad,_0x5e282a['toVersion']),_0x3407bb={'id':_0x5e282a['id'],'diffData':_0x31454d['diffData'],'authorsIds':_0x31454d['authorsIds'],'authors':_0x31454d['authorsIds']['map'](_0x317eca=>this['editor']['plugins']['get']('Users')['getUser'](_0x317eca)),'fromVersion':_0xf413ad};_0x5e282a===this['currentRevision']&&(_0x3407bb['createdAt']=new Date(_0x545f61['createdAt']['getTime']()+0xa)),_0x5e282a['_update'](_0x3407bb,!0x0),delete _0x3407bb['authors'],_0x479c23['push'](_0x3407bb);}}if(this['adapter']){for(const _0x3a3902 of _0x479c23)this['_bufferUpdate'](_0x3a3902['id'],_0x3a3902,!0x0);this['sendBufferedUpdates']();}return _0x167d9c;}['addRevisionData'](_0x41429d){const _0x1e49af=this['repository']['createRevision'](_0x41429d);return this['adapter']&&_0x1e49af['on']('_update',(_0x223479,_0x74cb9d,_0x57d9ae)=>{_0x57d9ae||(this['_bufferUpdate'](_0x74cb9d['id'],_0x74cb9d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e49af,this['_findInsertionIndex'](_0x1e49af)),_0x1e49af;}async['getRevisionDocumentData'](_0x1564f0){return await this['_utils']['loadRevisionData'](_0x1564f0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1564f0);}async['getRevisionRootsAttributes'](_0x5c6ce9){return await this['_utils']['loadRevisionData'](_0x5c6ce9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5c6ce9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1b3b80=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x398100=0x0;_0x398100<_0x1b3b80['length'];_0x398100++){const _0x50ef5e=_0x1b3b80[_0x398100];let _0x191a05=!0x1;for(const _0x5a0ab4 of Object['keys'](_0x50ef5e))void 0x0===_0x50ef5e[_0x5a0ab4]?delete _0x50ef5e[_0x5a0ab4]:'id'!==_0x5a0ab4&&(_0x191a05=!0x0);_0x191a05||(_0x1b3b80[_0x398100]=null);}if(_0x1b3b80=_0x1b3b80['filter'](_0x1f22c4=>null!==_0x1f22c4),!_0x1b3b80['length'])return;for(let _0x20fc9c=0x0;_0x20fc9c<_0x1b3b80['length'];_0x20fc9c++){const _0x2e1fca=_0x1b3b80[_0x20fc9c];void 0x0!==_0x2e1fca['fromVersion']&&void 0x0===_0x2e1fca['toVersion']&&(_0x2e1fca['toVersion']=this['repository']['getRevision'](_0x2e1fca['id'])['toVersion']),void 0x0!==_0x2e1fca['toVersion']&&void 0x0===_0x2e1fca['fromVersion']&&(_0x2e1fca['fromVersion']=this['repository']['getRevision'](_0x2e1fca['id'])['fromVersion']);}const _0x1b65f2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1b3b80,_0x1b65f2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x42fb3c=>{if(_0x42fb3c){for(const _0x14635e of _0x42fb3c)this['setRevisionData']({'id':_0x14635e['id'],'createdAt':_0x14635e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3e6026=null,from:_0xbd83ed=null,to:_0x1a292d=null}){_0xbd83ed=null!==_0xbd83ed?_0xbd83ed:_0x3e6026['fromVersion'],_0x1a292d=null!==_0x1a292d?_0x1a292d:_0x3e6026['toVersion'];const _0x1f2278=this['_revisionDataBuilder']['getData'](_0xbd83ed,_0x1a292d),_0x3e7a30={'diffData':_0x1f2278['diffData'],'authorsIds':_0x1f2278['authorsIds'],'fromVersion':_0xbd83ed,'toVersion':_0x1a292d};if(!_0x3e6026||_0x1a292d!==_0x3e6026['toVersion']){const _0x109268=_0x1a292d-0x1,_0x311e5b=this['_source']['history']['getOperation'](_0x109268);_0x3e7a30['createdAt']=_0x311e5b&&_0x311e5b['createdAt']||new Date();}if(this['_loadedStateData']&&_0xbd83ed===this['_loadedStateData']['fromVersion']){for(const _0x134524 of this['_loadedStateData']['authors'])_0x3e7a30['authorsIds']['includes'](_0x134524['id'])||_0x3e7a30['authorsIds']['push'](_0x134524['id']);}return _0x3e7a30;}['_bufferUpdate'](_0x293635,_0x97e281,_0x51e8c9){if(this['_bufferedUpdates']['has'](_0x293635)){const _0x431543=this['_bufferedUpdates']['get'](_0x293635);_0x97e281=_0x51e8c9?{..._0x431543,..._0x97e281}:{..._0x97e281,..._0x431543};}this['_bufferedUpdates']['set'](_0x293635,_0x97e281);}['setRevisionData'](_0x5ac193){const _0x3b3011=this['repository']['getRevision'](_0x5ac193['id']);if(_0x5ac193['createdAt']&&(_0x5ac193['createdAt']=new Date(_0x5ac193['createdAt'])),_0x5ac193['authorsIds']){const _0x3875be=this['editor']['plugins']['get']('Users');_0x5ac193['authors']=_0x5ac193['authorsIds']['map'](_0x2e87cd=>_0x3875be['getUser'](_0x2e87cd));}_0x3b3011['_update'](_0x5ac193,!0x0);}['_createInitialRevision'](_0x59aef4){const _0x46520e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x46520e)this['_initialRevisionId']=_0x46520e['id'];else{const _0x4b70be=!this['editor']['model']['document']['roots']['find'](_0x593521=>this['editor']['model']['hasContent'](_0x593521)),_0x110cf6=this['editor']['plugins']['get']('Users')['me']['id'],_0x55edaa=m(this['editor']['locale'],_0x4b70be?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x59aef4,'to':_0x59aef4,'id':this['_initialRevisionId'],'name':_0x55edaa,'creatorId':_0x110cf6});}}['_createCurrentRevision'](_0x5688cb){const _0x56feed=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x56feed),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5688cb,'to':_0x5688cb,'id':_0x56feed,'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'](_0x577336,_0x361a09){let _0x3d0f99=this['editor']['config']['get']('initialData'),_0x593869=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3d0f99){_0x3d0f99={};for(const _0x21d2a1 of this['editor']['model']['document']['getRootNames']())_0x3d0f99[_0x21d2a1]='';}if('string'==typeof _0x3d0f99&&(_0x3d0f99={'main':_0x3d0f99}),void 0x0===_0x593869){_0x593869={};for(const _0xa399e of this['editor']['model']['document']['getRootNames']())_0x593869[_0xa399e]={};}let _0x134fab=!0x1;const _0x2aee0a=Object['keys'](_0x3d0f99),_0x3807fc=Object['keys'](_0x577336);for(const _0x4b71ed of _0x2aee0a){if(_0x3d0f99[_0x4b71ed]!==_0x577336[_0x4b71ed]&&''!==_0x3d0f99[_0x4b71ed]['trim']()){_0x134fab=!0x0;break;}if(!_0x4d3aac(_0x593869[_0x4b71ed],_0x361a09[_0x4b71ed])&&Object['keys'](_0x593869[_0x4b71ed])['length']>0x0){_0x134fab=!0x0;break;}}_0x134fab||(_0x134fab=_0x3807fc['some'](_0x4746fe=>!this['editor']['model']['document']['getRoot'](_0x4746fe))),_0x134fab&&_0x2254ca('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3d0f99,'editorRootsAttributes':_0x593869,'revisionData':_0x577336,'revisionRootsAttributes':_0x361a09}),this['editor']['config']['set']('initialData',_0x577336),this['editor']['config']['set']('rootsAttributes',_0x361a09);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x59f2b1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x59f2b1['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4aa43e){const _0x166cff=this['repository']['getRevisions']();_0x166cff['reverse']();let _0x530621=0x0;for(;_0x530621<_0x166cff['length'];){const _0x13bc47=_0x166cff[_0x530621];if(_0x13bc47===this['currentRevision']){_0x530621++;continue;}if(_0x13bc47['id']===this['_initialRevisionId'])break;const _0x162805=_0x4aa43e['toVersion']-_0x13bc47['toVersion']||_0x4aa43e['fromVersion']-_0x13bc47['fromVersion'];if(_0x162805>0x0)break;if(_0x162805<0x0)_0x530621++;else{if(!_0x4aa43e['creator']&&_0x13bc47['creator'])break;if(_0x13bc47['creator']||!_0x4aa43e['creator']){if(_0x4aa43e['createdAt']>_0x13bc47['createdAt'])break;_0x530621++;}else _0x530621++;}}return _0x530621;}['_getFromVersion'](_0x8699cb){const _0x18f941=this['repository']['getRevisions']();_0x18f941['reverse'](),_0x18f941['shift']();const _0x34cb40=_0x18f941['find'](_0x477ff7=>_0x477ff7['toVersion']<=_0x8699cb)['toVersion'];return _0x34cb40<this['_startingVersion']?this['_startingVersion']:_0x34cb40;}['_makeRevision']({name:_0x5f4053,from:_0xb1e12c,to:_0x2f63fe,creatorId:_0x8509c1,id:_0x508370}){const _0x4f175f=this['buildRevisionData']({'from':_0xb1e12c,'to':_0x2f63fe});_0x4f175f['name']=_0x5f4053,_0x4f175f['creatorId']=_0x8509c1,_0x4f175f['id']=_0x508370;const _0x5e2582=this['addRevisionData'](_0x4f175f);return this['adapter']&&this['_bufferUpdate'](_0x4f175f['id'],_0x4f175f,!0x0),_0x5e2582;}['_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(_0x101d2b){this['editor']=_0x101d2b,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'](_0x12cd18){this['source']=_0x12cd18;const _0x23b47e=new Map(),_0x40643f=new Map(),_0x414d35=this['editor']['model']['document']['roots']['map'](_0x14d63e=>_0x14d63e['rootName']);for(const _0x5697c6 of _0x414d35){const _0x71955b=this['editor']['model']['document']['getRoot'](_0x5697c6),_0x41eaae=x(_0x71955b);_0x23b47e['set'](_0x5697c6,_0x41eaae),_0x40643f['set'](_0x5697c6,Object['fromEntries'](_0x71955b['getAttributes']()));}const _0x3e856d=Array['from'](this['editor']['model']['markers'])['map'](_0x16b39f=>[_0x16b39f['name'],_0x16b39f['getRange']()]),_0x11e6b8=this['source']['version'];this['_saveMetaData'](_0x11e6b8,_0x23b47e,_0x3e856d,_0x40643f),this['_startingRevisionId']=this['_revisionId'];const _0x2bae93=new Map(),_0x1fd97e=new Map();for(const _0x4250ec of _0x414d35){const _0x5bd8d7=N(_0x4250ec);_0x2bae93['set'](_0x4250ec,_0x5bd8d7),_0x1fd97e['set'](_0x4250ec,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2bae93,[],_0x1fd97e);}['getData'](_0x18db25,_0x656098){if(this['_lastFrom']===_0x18db25&&this['_lastTo']<=_0x656098)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x656098,!0x0);else{if(!this['_savedMetaData']['has'](_0x18db25)){const _0x1be08d=this['_getPreviousFrom'](_0x18db25);this['_calculateMetaData'](_0x1be08d,_0x18db25,!0x1);}this['_calculateMetaData'](_0x18db25,_0x656098,!0x0);}return this['_lastFrom']=_0x18db25,this['_lastTo']=_0x656098,this['_getState']();}['loadState'](_0x48df12){if(!this['_savedMetaData']['has'](_0x48df12['fromVersion'])){const _0x4c5432=this['_getPreviousFrom'](_0x48df12['fromVersion']);this['_calculateMetaData'](_0x4c5432,_0x48df12['fromVersion'],!0x1);}this['_calculateMetaData'](_0x48df12['fromVersion'],_0x48df12['toVersion'],!0x1);const _0x424846=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x48df12['fromVersion'],this['_lastTo']=_0x48df12['toVersion'];for(const _0x26b87 in _0x48df12['diffData']){const _0x15d5fa=_0x48df12['diffData'][_0x26b87]['attachChange'],_0x28db38=_0x2fa70e(_0x48df12['diffData'][_0x26b87]['attributesBefore'])||{},_0x28678a=_0x424846['_makeModelFromViewString'](_0x48df12['diffData'][_0x26b87]['deletions']);_0x28678a['rootName']=_0x26b87,_0x28678a['_isAttached']=!_0x15d5fa||!_0x15d5fa['isAttached'],_0x28678a['isAttached']=()=>_0x28678a['_isAttached'],this['_baseRoots']['set'](_0x26b87,_0x28678a),this['_baseRootsAttributes']['set'](_0x26b87,_0x28db38),_0x15d5fa&&this['_touchedRoots']['set'](_0x26b87,_0x15d5fa);const _0x39ed8b=this['_makeIdsRoot'](_0x28678a);this['_baseIdsRoots']['set'](_0x26b87,_0x39ed8b);for(const [_0xc69b0,_0x1e0a21]of _0x28678a['markers']){if(!_0xc69b0['startsWith']('revision:'))continue;const _0x1fe64d=_0xc69b0['split'](':')[0x2];for(const _0xbf53fd of _0x1e0a21['getWalker']({'singleCharacters':!0x0})){const _0x2882c5=this['_getVidAttributeName'](_0xbf53fd),_0x30172d='elementEnd'==_0xbf53fd['type']?_0xbf53fd['previousPosition']['path']['slice'](0x0,-0x1):_0xbf53fd['previousPosition']['path'],_0x2d1bcc=_0x39ed8b['getNodeByPath'](_0x30172d)['getAttribute'](_0x2882c5);this['_touched']['set'](_0x2d1bcc,{'userId':_0x1fe64d});}_0x28678a['markers']['delete'](_0xc69b0);}}this['_startingRevisionId']=this['_revisionId'];const _0x114346=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x31e288=>!this['_touched']['has'](_0x31e288));let _0x13767e=0x0;const _0x2c8713=new Map();for(const _0xe3475c in _0x48df12['diffData']){const _0x14ec8c=_0x48df12['diffData'][_0xe3475c]['attachChange'],_0x557a2f=_0x2fa70e(_0x48df12['diffData'][_0xe3475c]['attributesAfter'])||{},_0x160ee1=_0x424846['_makeModelFromViewString'](_0x48df12['diffData'][_0xe3475c]['insertions']);_0x160ee1['rootName']=_0xe3475c,_0x160ee1['_isAttached']=!_0x14ec8c||_0x14ec8c['isAttached'],_0x160ee1['isAttached']=()=>_0x160ee1['_isAttached'],this['_diffRoots']['set'](_0xe3475c,_0x160ee1),this['_diffRootsAttributes']['set'](_0xe3475c,_0x557a2f);const _0x211041=this['_makeIdsRoot'](_0x160ee1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe3475c,_0x211041),_0x2c8713['set'](_0xe3475c,_0x160ee1['isAttached']()?_0x557a2f:{});for(const [_0x5c21d2,_0x5a9934]of _0x160ee1['markers']){if(!_0x5c21d2['startsWith']('revision:'))continue;const _0x57dcde=_0x5c21d2['split'](':')[0x2];for(const _0x58349d of _0x5a9934['getWalker']({'singleCharacters':!0x0})){const _0x4da36f=this['_getVidAttributeName'](_0x58349d),_0x4dea30=this['_revisionId']++,_0x36a5c5='elementEnd'==_0x58349d['type']?_0x58349d['previousPosition']['path']['slice'](0x0,-0x1):_0x58349d['previousPosition']['path'];_0x211041['getNodeByPath'](_0x36a5c5)['_setAttribute'](_0x4da36f,_0x4dea30),this['_touched']['set'](_0x4dea30,{'userId':_0x57dcde});}_0x160ee1['markers']['delete'](_0x5c21d2);}for(const _0x1c2f29 of this['editor']['model']['createRangeIn'](_0x160ee1)['getWalker']({'singleCharacters':!0x0})){const _0x441aee=this['_getVidAttributeName'](_0x1c2f29),_0xa5ce3f='elementEnd'==_0x1c2f29['type']?_0x1c2f29['previousPosition']['path']['slice'](0x0,-0x1):_0x1c2f29['previousPosition']['path'],_0x5095cd=_0x211041['getNodeByPath'](_0xa5ce3f);_0x5095cd['getAttribute'](_0x441aee)>0x0||_0x5095cd['_setAttribute'](_0x441aee,_0x114346[_0x13767e++]);}for(const [_0x28282d,_0x43b354]of _0x160ee1['markers'])_0x28282d['startsWith']('revision:')||this['_markers']['set'](_0x28282d,_0x43b354);}const {roots:_0x192ada}=this['_savedMetaData']['get'](_0x48df12['fromVersion']),{roots:_0x2da081}=this['_savedMetaData']['get'](_0x48df12['toVersion']),_0x1c9d40=x(_0x192ada['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1c9d40),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c9d40,Number['NEGATIVE_INFINITY']));const _0x397fdc=x(_0x2da081['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x397fdc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x397fdc));const _0x3e9d13=Array['from'](this['_diffRoots'])['map'](([_0xdaa8d2,_0x3fa6c0])=>[_0xdaa8d2,x(_0x3fa6c0)]);this['_saveMetaData'](this['_lastTo'],_0x3e9d13,this['_markers'],_0x2c8713);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x698b75,_0x2444e9,_0x5c3599,_0x3a7c95){const _0x48b54e=new Map(_0x2444e9),_0x39ad8d=new Map(_0x2fa70e(_0x3a7c95)),_0x59c908=new Map();for(const [_0x390dd4,_0x130da6]of _0x5c3599)_0x59c908['set'](_0x390dd4,{'start':_0x130da6['start']['clone'](),'end':_0x130da6['end']['clone'](),'rootName':_0x130da6['root']['rootName']});this['_savedMetaData']['set'](_0x698b75,{'roots':_0x48b54e,'markers':_0x59c908,'rootsAttributes':_0x39ad8d});}['_removeMetaData'](_0x24ceda){this['_savedMetaData']['delete'](_0x24ceda);}['_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'](_0x1b1b2f,_0x2fec0f=null){let _0x40f587=null;_0x1b1b2f['is']('documentFragment')||(_0x40f587=new _0x4d179(_0x1b1b2f['name'],{'vid_start':null===_0x2fec0f?this['_revisionId']++:_0x2fec0f++}));const _0x15c8b5=[];for(const _0x1aa5df of _0x1b1b2f['getChildren']())if(_0x1aa5df['is']('element')){_0x15c8b5['push'](this['_makeIdsRoot'](_0x1aa5df,_0x2fec0f));const _0x2d8faf=_0x15c8b5[_0x15c8b5['length']-0x1];null!==_0x2fec0f&&(_0x2fec0f=_0x2d8faf['is']('element','$text')?_0x2d8faf['getAttribute']('vid')+0x1:_0x2d8faf['getAttribute']('vid_end')+0x1);}else{for(let _0x1a9231=0x0;_0x1a9231<_0x1aa5df['offsetSize'];_0x1a9231++)_0x15c8b5['push'](new _0x4d179('$text',{'vid':null===_0x2fec0f?this['_revisionId']++:_0x2fec0f++}));}if(_0x1b1b2f['is']('documentFragment')){const _0x5bea8c=N(_0x1b1b2f['rootName']);return _0x5bea8c['_insertChild'](0x0,_0x15c8b5),_0x5bea8c;}return _0x40f587['_setAttribute']('vid_end',null===_0x2fec0f?this['_revisionId']++:_0x2fec0f++),_0x40f587['_insertChild'](0x0,_0x15c8b5),_0x40f587;}['_calculateMetaData'](_0x37282c,_0x3650c2,_0x3d8bc2){this['_reset']();const {roots:_0x59ae4d,markers:_0x516411,rootsAttributes:_0x14f080}=this['_savedMetaData']['get'](_0x37282c);this['_baseRoots']=new Map(_0x59ae4d),this['_baseRootsAttributes']=new Map(_0x2fa70e(_0x14f080));for(const [_0x3239a6,_0xb29d14]of this['_baseRoots'])if('$graveyard'!==_0x3239a6&&(this['_diffRoots']['set'](_0x3239a6,x(_0xb29d14)),this['_diffRootsAttributes']=new Map(_0x2fa70e(_0x14f080)),_0x3d8bc2)){const _0x15bf60=this['_revisionId'];this['_idsRoots']['set'](_0x3239a6,this['_makeIdsRoot'](_0xb29d14)),this['_baseIdsRoots']['set'](_0x3239a6,this['_makeIdsRoot'](_0xb29d14,_0x15bf60));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3d8bc2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4505c6,_0x4249f1]of _0x516411){const _0x559bc8=this['_baseRoots']['get'](_0x4249f1['rootName']),_0x5bc5a1=this['_diffRoots']['get'](_0x4249f1['rootName']),_0x4f69ae=new _0xf40c04(this['_fixPosition'](_0x4249f1['start'],_0x559bc8),this['_fixPosition'](_0x4249f1['end'],_0x559bc8)),_0x54661f=this['_fixRange'](_0x4f69ae,_0x5bc5a1);_0x559bc8['markers']['set'](_0x4505c6,_0x4f69ae),this['_markers']['set'](_0x4505c6,_0x54661f);}this['_applyOperations'](_0x37282c,_0x3650c2,_0x3d8bc2);}['_applyOperations'](_0x31a7e6,_0x3c21a2,_0x46c73b){for(const _0x33d5b5 of this['source']['getOperations'](_0x31a7e6,_0x3c21a2))this['_handleOperation'](_0x33d5b5,_0x46c73b);for(const _0xe5005f of this['_diffRoots']['values']())_0xe5005f['markers']['clear']();for(const [_0x2a3dd3,_0x6b899f]of this['_markers']){this['_diffRoots']['get'](_0x6b899f['root']['rootName'])['markers']['set'](_0x2a3dd3,_0x6b899f['clone']());}const _0x55faea=new Map(),_0xbb71a3=new Map();for(const [_0x292ac0,_0xcf7d7b]of this['_diffRoots'])_0x55faea['set'](_0x292ac0,x(_0xcf7d7b)),_0xbb71a3['set'](_0x292ac0,this['_diffRootsAttributes']['get'](_0x292ac0));this['_saveMetaData'](_0x3c21a2,_0x55faea,this['_markers'],_0xbb71a3);}['_getPreviousFrom'](_0x2199b8){const _0x27fc45=Array['from'](this['_savedMetaData']['keys']());_0x27fc45['sort']((_0x4e2a2b,_0x528dc2)=>_0x4e2a2b-_0x528dc2),_0x27fc45['reverse']();for(const _0x3c33a2 of _0x27fc45)if(_0x3c33a2<_0x2199b8)return _0x3c33a2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x121837,_0xe5fa29){const _0x21f850=Array['from'](_0xe5fa29['markers'])['map'](([_0x23223a,_0x17e007])=>[_0x23223a,this['_fixRange'](_0x17e007,_0x121837)]);_0x121837['markers']=new Map(_0x21f850);}['_transformMarkers'](_0x43e857){for(const _0xd5f4b of this['_markers']['values']()){const _0x4629ba=_0xd5f4b['getTransformedByOperation'](_0x43e857),_0x52ed5c=_0xf40c04['_createFromRanges'](_0x4629ba);_0xd5f4b['start']=_0x52ed5c['start'],_0xd5f4b['end']=_0x52ed5c['end'];}}['_handleOperation'](_0x30baa2,_0x22ed56){if('addRoot'!=_0x30baa2['type']&&'detachRoot'!=_0x30baa2['type']){if('insert'==_0x30baa2['type']){const _0x15103d=_0x30baa2['position']['root']['rootName'];this['_diffRoots']['has'](_0x15103d)||(this['_diffRoots']['set'](_0x15103d,N(_0x15103d,!0x0)),this['_diffRootsAttributes']['set'](_0x15103d,{}),_0x22ed56&&this['_idsRoots']['set'](_0x15103d,N(_0x15103d,!0x0)));}else{if('addRootAttribute'==_0x30baa2['type']||'removeRootAttribute'==_0x30baa2['type']||'changeRootAttribute'==_0x30baa2['type'])return void this['_handleRootAttributeOperation'](_0x30baa2);'marker'==_0x30baa2['type']&&this['_handleMarkerOperation'](_0x30baa2);}if('marker'!==_0x30baa2['type']){const _0xc5aa45=this['_cloneOperation'](_0x30baa2,this['_diffRoots']);_0xc5aa45['_execute'](),this['_transformMarkers'](_0xc5aa45);}if(_0x22ed56)switch(_0x30baa2['type']){case'insert':this['_handleInsertOperation'](_0x30baa2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x30baa2);break;case'merge':this['_handleMergeOperation'](_0x30baa2);break;case'split':this['_handleSplitOperation'](_0x30baa2);}}else this['_handleRootOperation'](_0x30baa2,_0x22ed56);}['_cloneOperation'](_0x4f0e03,_0x3b7e79){const _0xa9b11e=_0x4f0e03['clone']();return _0xa9b11e['_authorId']=_0x4f0e03['_authorId'],this['_fixOperation'](_0xa9b11e,_0x3b7e79),_0xa9b11e;}['_getBaseVids'](_0x89abe4){return _0x89abe4['map'](_0x2e20d0=>{const _0xe35803=this['_getVidAttributeName'](_0x2e20d0);return Number(_0x2e20d0['item']['getAttribute'](_0xe35803));});}['_generateTape'](_0x49f615,_0x52b821){if(_0x49f615['is']('element','$text'))_0x52b821['push']({'item':_0x49f615,'type':'text'});else{_0x49f615['is']('element')&&_0x52b821['push']({'item':_0x49f615,'type':'elementStart'});for(const _0xd1952 of _0x49f615['getChildren']())this['_generateTape'](_0xd1952,_0x52b821);_0x49f615['is']('element')&&_0x52b821['push']({'item':_0x49f615,'type':'elementEnd'});}return _0x52b821;}['_getState'](){const _0x96a1b1=new Map(this['_touched']),_0x2d823d=new Map(_0x96a1b1),_0x499323=new Map(),_0x223e25={'insertions':{},'deletions':{}},_0x5338c3={'insertions':{},'deletions':{}},_0x3b734d=new Map(),_0x3d1fea=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d1fea['delete']('$graveyard');for(const _0x3751bb of _0x3d1fea){const _0x509a2f=this['_diffRoots']['get'](_0x3751bb)||N(_0x3751bb,!0x1),_0x32ce5d=this['_baseRoots']['get'](_0x3751bb)||N(_0x3751bb,!0x1);_0x509a2f['isAttached']()||_0x32ce5d['isAttached']()?(_0x223e25['insertions'][_0x3751bb]=x(_0x509a2f),_0x223e25['deletions'][_0x3751bb]=x(_0x32ce5d),this['_copyMarkers'](_0x223e25['deletions'][_0x3751bb],_0x32ce5d),this['_copyMarkers'](_0x223e25['insertions'][_0x3751bb],_0x509a2f),_0x5338c3['insertions'][_0x3751bb]=this['_generateTape'](this['_idsRoots']['get'](_0x3751bb),[]),_0x5338c3['deletions'][_0x3751bb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3751bb)||N(_0x3751bb,!0x1),[])):_0x3d1fea['delete'](_0x3751bb);}for(const _0x3c6132 of _0x3d1fea){const _0x417811=_0x5338c3['insertions'][_0x3c6132];for(const _0x2b27b2 of _0x417811){const _0x292327=this['_getVidAttributeName'](_0x2b27b2),_0x19cfe2=_0x2b27b2['item']['getAttribute'](_0x292327);_0x2d823d['delete'](_0x19cfe2),_0x19cfe2>=this['_startingRevisionId']&&_0x499323['set'](_0x19cfe2,_0x96a1b1['get'](_0x19cfe2));}}for(const _0x518c72 of _0x3d1fea){const _0x19dd2b=_0x5338c3['insertions'][_0x518c72],_0x10dced=this['_getBaseVids'](_0x5338c3['deletions'][_0x518c72]);let _0x4e5602=0x0;for(const _0x2cc229 of _0x19dd2b){const _0x399108=this['_getVidAttributeName'](_0x2cc229),_0x2b2798=_0x2cc229['item']['getAttribute'](_0x399108);if(!_0x499323['has'](_0x2b2798)&&!_0x3b734d['has'](_0x2b2798)){if(_0x2d823d['has'](_0x2b2798))_0x4e5602++;else{if(_0x2b2798!=_0x10dced[_0x4e5602]){const _0x1b7e13=_0x96a1b1['get'](_0x2b2798)||_0x96a1b1['get'](_0x10dced[_0x4e5602]);for(;_0x2b2798!=_0x10dced[_0x4e5602];)_0x2d823d['has'](_0x10dced[_0x4e5602])||(_0x3b734d['set'](_0x10dced[_0x4e5602],_0x1b7e13),_0x96a1b1['set'](_0x10dced[_0x4e5602],_0x1b7e13)),_0x4e5602++;}_0x4e5602++;}}}}for(const _0x31d486 of _0x3d1fea){const _0x3dfc61=_0x5338c3['insertions'][_0x31d486];for(const _0x25350a of _0x3dfc61){const _0x4ac16b=this['_getVidAttributeName'](_0x25350a),_0x4559f2=_0x25350a['item']['getAttribute'](_0x4ac16b);if(_0x3b734d['has'](_0x4559f2)){const _0x5d7017=_0x3b734d['get'](_0x4559f2);_0x2d823d['has'](_0x4559f2)||_0x2d823d['set'](_0x4559f2,{..._0x5d7017}),_0x499323['set'](_0x4559f2,{..._0x5d7017});}}}for(const _0x2e725 of _0x2d823d['keys']())_0x2e725>=this['_startingRevisionId']&&_0x2d823d['delete'](_0x2e725);const _0x49925b=new Map();for(const _0x315dff of _0x3d1fea){let _0x3d34ad=_0x5338c3['insertions'][_0x315dff];for(const _0x4ae280 of _0x3d34ad)if(_0x4ae280['item']['is']('element','tableCell')){const _0x140223=this['_getVidAttributeName'](_0x4ae280),_0x446aac=_0x4ae280['item']['getAttribute'](_0x140223);if(_0x499323['has'](_0x446aac)){const _0x4313fe=_0x4ae280['item']['parent']['parent']['getAttribute']('vid_start'),_0x40aa44=_0x49925b['get'](_0x4313fe)||new Set();_0x40aa44['add'](_0x499323['get'](_0x446aac)['userId']),_0x49925b['set'](_0x4313fe,_0x40aa44);}}_0x3d34ad=_0x5338c3['deletions'][_0x315dff];for(const _0x2afae9 of _0x3d34ad)if(_0x2afae9['item']['is']('element','tableCell')){const _0x3bfdcd=this['_getVidAttributeName'](_0x2afae9),_0x590a6f=_0x2afae9['item']['getAttribute'](_0x3bfdcd);if(_0x2d823d['has'](_0x590a6f)){const _0x32deb1=_0x2afae9['item']['parent']['parent']['getAttribute']('vid_start'),_0x3c3f5c=_0x49925b['get'](_0x32deb1)||new Set();_0x3c3f5c['add'](_0x2d823d['get'](_0x590a6f)['userId']),_0x49925b['set'](_0x32deb1,_0x3c3f5c);}}for(const _0x56a50c of _0x49925b['keys']())(_0x499323['has'](_0x56a50c)||_0x2d823d['has'](_0x56a50c))&&_0x49925b['delete'](_0x56a50c);}for(const _0x300989 of _0x3d1fea){const _0x3395cc=_0x5338c3['insertions'][_0x300989];let _0x150918=null,_0x102932=null;for(const _0x172764 of _0x3395cc){const _0x52683d=this['_getVidAttributeName'](_0x172764),_0x5defe5=_0x172764['item']['getAttribute'](_0x52683d),_0x3d9872=_0x49925b['get'](_0x5defe5);_0x3d9872&&'elementStart'==_0x172764['type']&&(_0x150918=Array['from'](_0x3d9872)[0x0],_0x102932=_0x172764['item']['getAttribute']('vid_end')),_0x150918&&(_0x2d823d['set'](_0x5defe5,{'userId':_0x150918}),_0x499323['set'](_0x5defe5,{'userId':_0x150918})),_0x5defe5==_0x102932&&(_0x150918=null,_0x102932=null);}}const _0x171bcd={},_0x1bf92b=new Set();for(const _0x4ea5e8 of _0x3d1fea){const _0x365d74=_0x223e25['deletions'][_0x4ea5e8],_0x1e8c9b=_0x223e25['insertions'][_0x4ea5e8];for(const {userId:_0x4bb285}of this['_touchedMarkers']['values']())null!==_0x4bb285&&_0x1bf92b['add'](_0x4bb285);for(const {userId:_0x3836d9}of this['_touchedRoots']['values']())null!==_0x3836d9&&_0x1bf92b['add'](_0x3836d9);this['_markChanges'](_0x1e8c9b,_0x5338c3['insertions'][_0x4ea5e8],_0x499323,'insertion',_0x1bf92b),this['_markChanges'](_0x365d74,_0x5338c3['deletions'][_0x4ea5e8],_0x2d823d,'deletion',_0x1bf92b),_0x171bcd[_0x4ea5e8]={'insertions':this['_prepareViewToSave'](_0x1e8c9b),'deletions':this['_prepareViewToSave'](_0x365d74),'attachChange':this['_touchedRoots']['get'](_0x4ea5e8)||null,'attributesBefore':_0x2fa70e(this['_baseRootsAttributes']['get'](_0x4ea5e8))||{},'attributesAfter':_0x2fa70e(this['_diffRootsAttributes']['get'](_0x4ea5e8))};}return{'diffData':_0x171bcd,'authorsIds':Array['from'](_0x1bf92b)};}['_processRootBeforeSave'](_0x2d4cab){for(const [,_0x13c1c8]of _0x2d4cab['markers']){const _0x3bea57=_0x13c1c8['start']['getAncestors']()['filter'](_0x369cb1=>'tableCell'==_0x369cb1['name']);for(const _0x8c8954 of _0x3bea57)0x1==_0x8c8954['childCount']&&_0x8c8954['getChild'](0x0)['is']('element','paragraph')&&_0x8c8954['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8c324e){this['_processRootBeforeSave'](_0x8c324e);const _0x40fa80=this['editor']['data']['toView'](_0x8c324e,{}),_0x4486a5=Array['from'](_0x40fa80['getChildren']())['map'](_0x171cea=>this['_getViewJson'](_0x171cea));return JSON['stringify'](_0x4486a5);}['_getViewJson'](_0x22a3be){if(_0x22a3be['is']('$text'))return _0x22a3be['data'];{const _0x252402=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1e4bb9=_0x22a3be,_0xd79fe0=this['editor']['data']['htmlProcessor']['domConverter'],_0x22d4aa={'type':_0x252402['_getTypeCharForViewElement'](_0x1e4bb9),'name':_0x1e4bb9['name'],'attributes':Array['from'](_0x1e4bb9['getAttributes']()),'children':Array['from'](_0x1e4bb9['getChildren']())['map'](_0xbff489=>this['_getViewJson'](_0xbff489))};if(_0x22a3be['is']('uiElement')&&'$comment'!=_0x22a3be['name']){const _0x2efe1d=_0x22a3be['render'](_0xd79fe0['domDocument'],_0xd79fe0);_0x22d4aa['children']['push'](_0x2efe1d['outerHTML']);}else{if(_0x22a3be['is']('rawElement')){const _0x12c07c=_0xd79fe0['domDocument']['createElement'](_0x1e4bb9['name']);_0x22a3be['render'](_0x12c07c,_0xd79fe0),_0x22d4aa['children']['push'](_0x12c07c['innerHTML']);}}const _0x3d5f16=Array['from'](_0x1e4bb9['getCustomProperties']());_0x3d5f16['length']>0x0&&(_0x22d4aa['customProperties']=_0x3d5f16);const _0x2a753f=_0x1e4bb9['getFillerOffset']();return null!==_0x2a753f&&(_0x22d4aa['fillerOffset']=_0x2a753f),_0x22d4aa;}}['_markChanges'](_0x2b70f9,_0x411a9c,_0x59bbc7,_0x2d76e3,_0x26ffe2){let _0x3418a6=null,_0x33878b=null,_0x249d40=0x0;const _0x4c33a1=this['editor']['model'];for(let _0x3cc53c=0x0;_0x3cc53c<_0x411a9c['length'];_0x3cc53c++){const _0x376f3e=this['_getVidAttributeName'](_0x411a9c[_0x3cc53c]),_0xb3f5c0=_0x411a9c[_0x3cc53c]['item']['getAttribute'](_0x376f3e),_0xa81f70=_0x59bbc7['get'](_0xb3f5c0),_0x15223e=_0x3cc53c==_0x411a9c['length']-0x1;(!_0x3418a6&&_0xa81f70&&(_0x3418a6=_0xa81f70,_0x33878b=_0x411a9c[_0x3cc53c]),_0x3418a6&&(!_0xa81f70||_0xa81f70['userId']!=_0x3418a6['userId']))&&(_0x4e5b3c(_0xa81f70,P(_0x33878b,_0x2b70f9,_0x4c33a1),P(_0x411a9c[_0x3cc53c],_0x2b70f9,_0x4c33a1)),_0x3418a6=_0xa81f70||null,_0x33878b=_0xa81f70?_0x411a9c[_0x3cc53c]:null),_0x3418a6&&_0x15223e&&_0x4e5b3c(_0xa81f70,P(_0x33878b,_0x2b70f9,_0x4c33a1),V(_0x411a9c[_0x3cc53c],_0x2b70f9,_0x4c33a1));}function _0x4e5b3c(_0x1dab44,_0x4f375d,_0x58bfbf){const _0x194b15=_0x3418a6['userId'],_0x315dc5='revision:'+_0x2d76e3+':'+_0x194b15+':'+_0x249d40++,_0x4d403e=_0x4c33a1['createRange'](_0x4f375d,_0x58bfbf);_0x2b70f9['markers']['set'](_0x315dc5,_0x4d403e),null!==_0x194b15&&_0x26ffe2['add'](_0x194b15);}}['_getVidAttributeName'](_0x41693e){switch(_0x41693e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x35a383,_0x2da29a){_0x35a383['baseVersion']=null;for(const _0x403a14 in _0x35a383){const _0x1ceda0=_0x35a383[_0x403a14];if(_0x1ceda0 instanceof _0x430f9e){const _0x4608d=_0x2da29a['get'](_0x1ceda0['root']['rootName']);_0x35a383[_0x403a14]=this['_fixPosition'](_0x1ceda0,_0x4608d);}if(_0x1ceda0 instanceof _0xf40c04){const _0x46cee0=_0x2da29a['get'](_0x1ceda0['root']['rootName']);_0x35a383[_0x403a14]=this['_fixRange'](_0x1ceda0,_0x46cee0);}'root'===_0x403a14&&(_0x35a383['root']=_0x2da29a['get'](_0x35a383['root']['rootName']));}}['_fixRange'](_0xf526e4,_0x5e5758){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf526e4['start'],_0x5e5758),this['_fixPosition'](_0xf526e4['end'],_0x5e5758));}['_fixPosition'](_0x386682,_0x26593c){return this['editor']['model']['createPositionFromPath'](_0x26593c,_0x386682['path'],_0x386682['stickiness']);}['_handleInsertOperation'](_0xb36d4b){const _0x4189e8=this['_idsRoots']['get'](_0xb36d4b['position']['root']['rootName']),_0x417488=this['_fixPosition'](_0xb36d4b['position'],_0x4189e8),_0x36fae2=null===_0xb36d4b['_authorId']?null:_0xb36d4b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a2a66=_0x417488['parent'],_0xfe6157=this['_revisionId'],_0x451413=[];for(const _0x256c5b of _0xb36d4b['nodes'])if(_0x256c5b['is']('element'))_0x451413['push'](this['_makeIdsRoot'](_0x256c5b));else{for(let _0x4c745e=0x0;_0x4c745e<_0x256c5b['offsetSize'];_0x4c745e++)_0x451413['push'](new _0x4d179('$text',{'vid':this['_revisionId']++}));}const _0x35530f=this['_revisionId'];for(let _0x146883=_0xfe6157;_0x146883<_0x35530f;_0x146883++)this['_touched']['set'](_0x146883,{'userId':_0x36fae2});_0x1a2a66['_insertChild'](_0x417488['offset'],_0x451413);}['_handleMoveOperation'](_0x2e77a7){(_0x2e77a7=this['_cloneOperation'](_0x2e77a7,this['_idsRoots']))['_execute']();const _0x363c21=null===_0x2e77a7['_authorId']?null:_0x2e77a7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f438f=_0x2e77a7['getMovedRangeStart'](),_0x4df6d9=_0x2f438f['parent'],_0x25fdbd=_0x2f438f['offset'];!function _0x4a1630(_0x16110e,_0x3a30a6,_0x52f1bf,_0x3997b7){for(let _0x24a387=_0x52f1bf;_0x24a387<_0x3997b7;_0x24a387++){const _0x35f08c=_0x3a30a6['getChild'](_0x24a387);_0x35f08c['is']('element','$text')?_0x16110e['set'](_0x35f08c['getAttribute']('vid'),{'userId':_0x363c21}):(_0x16110e['set'](_0x35f08c['getAttribute']('vid_start'),{'userId':_0x363c21}),_0x4a1630(_0x16110e,_0x35f08c,0x0,_0x35f08c['childCount']),_0x16110e['set'](_0x35f08c['getAttribute']('vid_end'),{'userId':_0x363c21}));}}(this['_touched'],_0x4df6d9,_0x25fdbd,_0x25fdbd+_0x2e77a7['howMany']);}['_handleMergeOperation'](_0x311ff7){const _0x1c4b78=null===(_0x311ff7=this['_cloneOperation'](_0x311ff7,this['_idsRoots']))['_authorId']?null:_0x311ff7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40ce70=_0x311ff7['targetPosition']['parent'],_0x528aed=_0x311ff7['sourcePosition']['parent'],_0x84ef99=_0x40ce70['getAttribute']('vid_end'),_0x1f72c6=_0x528aed['getAttribute']('vid_start');_0x40ce70['_setAttribute']('vid_end',_0x528aed['getAttribute']('vid_end')),_0x528aed['_setAttribute']('vid_end',_0x84ef99),this['_touched']['set'](_0x1f72c6,{'userId':_0x1c4b78}),this['_touched']['set'](_0x84ef99,{'userId':_0x1c4b78}),_0x311ff7['_execute']();}['_handleSplitOperation'](_0x407850){const _0x3ebb9f=null===(_0x407850=this['_cloneOperation'](_0x407850,this['_idsRoots']))['_authorId']?null:_0x407850['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2987ab=_0x407850['graveyardPosition'],_0x15e798=_0x407850['splitPosition']['parent'];_0x407850['_execute']();const _0x35a269=_0x15e798['getAttribute']('vid_end'),_0x19f4a1=_0x407850['insertionPosition']['nodeAfter'];if(_0x2987ab){const _0x4ed905=_0x19f4a1['getAttribute']('vid_end'),_0x2ea2b4=_0x15e798['getAttribute']('vid_end');_0x15e798['_setAttribute']('vid_end',_0x4ed905),_0x19f4a1['_setAttribute']('vid_end',_0x2ea2b4),this['_touched']['set'](_0x15e798['getAttribute']('vid_end'),{'userId':_0x3ebb9f}),this['_touched']['set'](_0x19f4a1['getAttribute']('vid_start'),{'userId':_0x3ebb9f});}else{const _0x2563e4=this['_revisionId']++,_0x9890e1=this['_revisionId']++;_0x15e798['_setAttribute']('vid_end',_0x2563e4),_0x19f4a1['_setAttribute']('vid_start',_0x9890e1),_0x19f4a1['_setAttribute']('vid_end',_0x35a269),this['_touched']['set'](_0x2563e4,{'userId':_0x3ebb9f}),this['_touched']['set'](_0x9890e1,{'userId':_0x3ebb9f});}}['_handleMarkerOperation'](_0x416465){if(!_0x416465['affectsData'])return;const _0x1a2af0=(_0x416465=this['_cloneOperation'](_0x416465,this['_diffRoots']))['oldRange']?_0x416465['oldRange']['root']:null,_0x5d7182=_0x416465['newRange']?_0x416465['newRange']['root']:null;_0x1a2af0&&this['_markers']['delete'](_0x416465['name']),_0x5d7182&&this['_markers']['set'](_0x416465['name'],_0x416465['newRange']['clone']());const _0x476b73=null===_0x416465['_authorId']?null:_0x416465['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20a064=_0x416465['name'];if(!this['_touchedMarkers']['has'](_0x20a064))return void this['_touchedMarkers']['set'](_0x20a064,{'range':_0x416465['oldRange'],'userId':_0x476b73});const _0x57af38=this['_touchedMarkers']['get'](_0x20a064),_0x5f14ce=_0x57af38['range'],_0x4d53a6=_0x416465['newRange'];null==_0x5f14ce&&null==_0x4d53a6||_0x5f14ce&&_0x4d53a6&&_0x5f14ce['isEqual'](_0x4d53a6)?this['_touchedMarkers']['delete'](_0x416465['name']):_0x57af38['userId']=_0x476b73;}['_handleRootOperation'](_0x51a245,_0x849ee8){this['_diffRoots']['has'](_0x51a245['rootName'])?this['_diffRoots']['get'](_0x51a245['rootName'])['_isAttached']=_0x51a245['isAdd']:(this['_diffRoots']['set'](_0x51a245['rootName'],N(_0x51a245['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x51a245['rootName'],{}),_0x849ee8&&this['_idsRoots']['set'](_0x51a245['rootName'],N(_0x51a245['rootName'],!0x0)));const _0x16f7f1=null===_0x51a245['_authorId']?null:_0x51a245['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x250e20=this['_touchedRoots']['get'](_0x51a245['rootName']);_0x250e20&&_0x250e20['userId']===_0x16f7f1?this['_touchedRoots']['delete'](_0x51a245['rootName']):this['_touchedRoots']['set'](_0x51a245['rootName'],{'userId':_0x16f7f1,'isAttached':_0x51a245['isAdd']});}['_handleRootAttributeOperation'](_0xe73daa){const _0x4225ff=this['_diffRootsAttributes']['get'](_0xe73daa['root']['rootName']);null===_0xe73daa['newValue']?delete _0x4225ff[_0xe73daa['key']]:_0x4225ff[_0xe73daa['key']]=_0xe73daa['newValue'];}}function x(_0x5956fc){const _0x4ba44d=N(_0x5956fc['rootName'],_0x5956fc['isAttached']());for(const _0x116e24 of _0x5956fc['getChildren']()){const _0x378520=_0x116e24['_clone'](!0x0);_0x4ba44d['_appendChild'](_0x378520);}return _0x4ba44d;}function N(_0x461a23,_0x569d7f=!0x0){const _0x1e28c8=new _0x788399();return _0x1e28c8['rootName']=_0x461a23,_0x1e28c8['_isAttached']=_0x569d7f,_0x1e28c8['isAttached']=()=>_0x1e28c8['_isAttached'],_0x1e28c8;}function P(_0x4c5de5,_0x1ffb90,_0x2293d8){const _0x3bfde7='elementEnd'==_0x4c5de5['type']?_0x2293d8['createPositionAt'](_0x4c5de5['item'],'end'):_0x2293d8['createPositionBefore'](_0x4c5de5['item']);return _0x2293d8['createPositionFromPath'](_0x1ffb90,_0x3bfde7['path'],_0x3bfde7['stickiness']);}function V(_0x456a1d,_0x5af7e0,_0x5f146b){const _0x1b3047='elementStart'==_0x456a1d['type']?_0x5f146b['createPositionAt'](_0x456a1d['item'],0x0):_0x5f146b['createPositionAfter'](_0x456a1d['item']);return _0x5f146b['createPositionFromPath'](_0x5af7e0,_0x1b3047['path'],_0x1b3047['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x52266d(_0x126ab4){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1f69de,_0x47e79a){super(_0x1f69de),this['focusTracker']=new _0xb1d55b(),this['keystrokes']=new _0x5be3b7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x47e79a),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'](),_0x3848c6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x41fcad=_0x4a28f3=>_0x4a28f3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x41fcad),this['keystrokes']['set']('arrowleft',_0x41fcad),this['keystrokes']['set']('arrowup',_0x41fcad),this['keystrokes']['set']('arrowdown',_0x41fcad);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x223e9b){this['revisionNameInputView']['fieldView']['element']['value']=_0x223e9b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24bed7){const _0xee9537=new et(this['locale'],ti),_0x3eb73d=_0xee9537['fieldView'];_0x3eb73d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x7d1b1f=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24bed7&&(_0x7d1b1f+='\x20('+m(this['locale'],'optional')+')'),(_0xee9537['label']=_0x7d1b1f,_0x3eb73d['on']('input',()=>{this['revisionNameInputValue']=_0x3eb73d['element']['value']['trim']();}),_0xee9537);}}class l extends _0x37efbb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x55a7c4=this['editor'],_0x4cd5bb=_0x55a7c4['plugins']['get']('RevisionTracker');_0x55a7c4['ui']['componentFactory']['add']('revisionHistory',_0x14612c=>{const _0x4bcfc4=_0x3295c4(_0x14612c),_0x1f2e27=_0x4bcfc4['panelView']['children'],_0x13293b=new _0x4fd814(_0x14612c),_0x203f9d=new _0x472e37(_0x14612c),_0x8a6877=this['_createSaveRevisionButton'](_0xc3e667),_0x207e44=new _0x472e37(_0x14612c),_0x521ccb=this['_createOpenRevisionButton'](_0xc3e667);return _0x4bcfc4['bind']('isEnabled')['to'](_0x4cd5bb,'isReady',_0x4cd5bb,'isEnabled',_0x55a7c4,'isReadOnly',(_0x29ec37,_0xb4b575,_0x842ea7)=>_0x29ec37&&_0xb4b575&&!_0x842ea7),_0x4bcfc4['buttonView']['set']({'icon':_0x5f4d6c,'label':m(_0x14612c,'Revision\x20history'),'tooltip':!0x0}),_0x8a6877['set']({'withText':!0x0,'role':'menuitem'}),_0x521ccb['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x521ccb,'execute',()=>{_0x4bcfc4['isOpen']=!0x1,_0x55a7c4['editing']['view']['focus']();},{'priority':'low'}),_0x203f9d['children']['add'](_0x8a6877),_0x207e44['children']['add'](_0x521ccb),_0x13293b['role']='menu',_0x13293b['items']['addMany']([_0x203f9d,_0x207e44]),_0x1f2e27['add'](_0x13293b),_0x4bcfc4;}),_0x55a7c4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2b1f1d=this['editor'],_0x3ff3b4=_0x2b1f1d['locale'],_0x15c74c=_0x2b1f1d['plugins']['get']('RevisionTracker'),_0x5c9217=new _0x483f6b(_0x3ff3b4),_0x9ba300=new _0xf63aa3(_0x3ff3b4);_0x5c9217['bind']('isEnabled')['to'](_0x15c74c,'isReady',_0x15c74c,'isEnabled',_0x2b1f1d,'isReadOnly',(_0xf0a82b,_0xd11f89,_0x3d1049)=>_0xf0a82b&&_0xd11f89&&!_0x3d1049),_0x5c9217['buttonView']['set']({'icon':_0x5f4d6c,'label':m(_0x3ff3b4,'Revision\x20history')});const _0x2ff525=new _0x41236d(_0x3ff3b4,_0x5c9217),_0x13f8a8=this['_createSaveRevisionButton'](_0x5f27ec);_0x13f8a8['delegate']('execute')['to'](_0x5c9217),_0x2ff525['children']['add'](_0x13f8a8),_0x9ba300['items']['add'](_0x2ff525);const _0x5c8afb=new _0x41236d(_0x3ff3b4,_0x5c9217),_0x2a6093=this['_createOpenRevisionButton'](_0x5f27ec);return _0x2a6093['delegate']('execute')['to'](_0x5c9217),_0x5c8afb['children']['add'](_0x2a6093),_0x9ba300['items']['add'](_0x5c8afb),_0x5c9217['panelView']['children']['add'](_0x9ba300),_0x5c9217;}['_createSaveRevisionButton'](_0x57beaa){const _0x4caf33=this['editor'],_0x11b225=_0x4caf33['plugins']['get']('RevisionTracker'),_0xf128d8=new _0x57beaa(_0x4caf33['locale']);return _0xf128d8['set']({'label':m(_0x4caf33['locale'],'Save\x20current\x20revision')}),_0xf128d8['bind']('isEnabled')['to'](_0x11b225,'isReady',_0x11b225,'isEnabled',_0x4caf33,'isReadOnly',(_0x150282,_0x47c446,_0x4199d2)=>_0x150282&&_0x47c446&&!_0x4199d2),this['listenTo'](_0xf128d8,'execute',()=>{this['_showDialog']();}),_0xf128d8;}['_createOpenRevisionButton'](_0xb85dba){const _0x112970=this['editor'],_0x4b22f3=_0x112970['plugins']['get']('RevisionTracker'),_0x39e3c8=new _0xb85dba(_0x112970['locale']);return _0x39e3c8['set']({'label':m(_0x112970['locale'],'Open\x20revision\x20history')}),_0x39e3c8['bind']('isEnabled')['to'](_0x4b22f3,'isReady',_0x112970,'isReadOnly',(_0x3df76,_0x50d121)=>_0x3df76&&!_0x50d121),this['listenTo'](_0x39e3c8,'execute',()=>{_0x112970['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x39e3c8;}['_showDialog'](){const _0x4fe7f9=this['editor'],_0x6d911e=_0x4fe7f9['locale'],_0x2a09ae=_0x4fe7f9['plugins']['get']('Dialog'),_0x134580=_0x4fe7f9['plugins']['get']('RevisionTracker');function _0x3a9956(_0x2a3fe9){_0x4fe7f9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2a3fe9['revisionName']?_0x2a3fe9['revisionNameInputView']['errorText']=m(_0x6d911e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4fe7f9['plugins']['get'](h)['saveRevision']({'name':_0x2a3fe9['revisionName']}),_0x2a09ae['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3a9956(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2a09ae['show']({'id':'revisionSave','title':m(_0x6d911e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4fe7f9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2a09ae['hide']()},{'label':m(_0x4fe7f9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c7bb7){_0x5c7bb7['bind']('isEnabled')['to'](_0x134580,'isReady',_0x134580,'isEnabled',_0x4fe7f9,'isReadOnly',(_0x1f071e,_0x5bd999,_0x6f7110)=>_0x1f071e&&_0x5bd999&&!_0x6f7110);},'onExecute':()=>_0x3a9956(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a7b3d=this['editor'],_0x4f38f4=_0x2a7b3d['locale'];this['_saveRevisionFormView']=new he(_0x4f38f4,_0x2a7b3d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x126ab4{['changeId'];['_model'];constructor(_0x2e3e48,_0x1c5c6e){super(_0x2e3e48),this['_model']=_0x1c5c6e,this['changeId']=_0x1c5c6e['id'];const _0x593d32=this['bindTemplate'],_0x5a5768=m(_0x2e3e48,_0x1c5c6e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1c5c6e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1c5c6e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x593d32['to']('type',_0x43a2d3=>'ck-revision-change__'+_0x43a2d3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5a5768}]},{'text':'\x20'+_0x1c5c6e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2f0b4b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x612da0){super(),this['id']=_0x612da0['id']||_0x2007cb(),this['author']=_0x612da0['author'],this['type']=_0x612da0['type'],this['data']=_0x612da0['data']||{},this['rootName']=_0x612da0['rootName'],this['set']('createdAt',_0x612da0['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(_0x34fec6,_0xb626b5){this['newRevisionId']=_0x34fec6,this['oldRevisionId']=_0xb626b5,this['changes']=new _0x10ef23();}['_setChanges'](_0x22021e){for(const _0x9a10bc of _0x22021e)this['changes']['add'](_0x9a10bc);}}class u extends _0x37efbb{['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[_0x2a2deb,_0x282325,S,$];}constructor(_0x1da5bc){super(_0x1da5bc),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',(_0x3f1cf9,_0x1d79b7,_0x18ceb5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x39358b=>{for(const _0x5577f9 of this['editor']['editing']['view']['document']['roots'])_0x18ceb5?_0x39358b['removeClass']('ck-editor__editable__overlay',_0x5577f9):_0x39358b['addClass']('ck-editor__editable__overlay',_0x5577f9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x37396e=>null!==_0x37396e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1857f2,_0x54a69a,_0x127696)=>_0x1857f2&&_0x127696?_0x54a69a['changes']['getIndex'](_0x127696):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x55a8ca,_0x41211b)=>_0x55a8ca?_0x41211b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x282325);}['init'](){const _0x5e8038=this['editor'],_0x2c85b7=new rt(_0x5e8038,{'direction':'backward'}),_0x51b1e6=new rt(_0x5e8038,{'direction':'forward'});(_0x5e8038['commands']['add']('showPreviousChange',_0x2c85b7),_0x5e8038['commands']['add']('showNextChange',_0x51b1e6),_0x5e8038['commands']['add']('restoreRevision',new nt(_0x5e8038)),this['on']('change:numberOfChanges',()=>{_0x2c85b7['refresh'](),_0x51b1e6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5e8038['enableReadOnlyMode']('revision-viewer'),_0x5e8038['plugins']['has']('WidgetToolbarRepository'))&&_0x5e8038['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x484322){return await this['_utils']['loadRevisionData'](_0x484322,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x484322);}async['getRevisionRootsAttributes'](_0x11c739){return await this['_utils']['loadRevisionData'](_0x11c739,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x11c739);}async['compare'](_0x599b57,_0x2e282f,_0x4b0c69=!0x1){if(!this['isEnabled'])return;const _0x45da8d=this['diff'],_0x439f61=this['repository'],_0x4321cc='string'==typeof _0x599b57?_0x439f61['getRevision'](_0x599b57):_0x599b57,_0x53686d='string'==typeof _0x2e282f?_0x439f61['getRevision'](_0x2e282f):_0x2e282f,_0x4fbef4=_0x4321cc['id'],_0x1a09fe=_0x53686d?_0x53686d['id']:null;if(!_0x4b0c69&&this['diff']&&this['diff']['newRevisionId']===_0x4fbef4&&this['diff']['oldRevisionId']===_0x1a09fe)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4fbef4,_0x1a09fe);const _0x7f503b=this['_getRevisionsRange'](_0x4321cc,_0x53686d,!0x0)['map'](_0x23368d=>this['_utils']['loadRevisionData'](_0x23368d,this['adapter']));return _0x7f503b['push'](new Promise(_0x49c092=>{setTimeout(_0x49c092,0x14);})),Promise['all'](_0x7f503b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2e380a=this['_getDiff'](_0x4fbef4,_0x1a09fe);for(const _0x4a01ed of _0x2e380a['changes'])this['_changeIdToChange']['set'](_0x4a01ed['id'],_0x4a01ed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a46a5=>{for(const _0x299f13 of this['editor']['model']['document']['getRootNames']())_0x3a46a5['detachRoot'](_0x299f13);for(const _0x593967 of Object['keys'](_0x2e380a['model'])){const _0x2d80c8=_0x3a46a5['addRoot'](_0x593967);for(const _0x17e0e3 of Object['keys'](_0x2e380a['attributes'][_0x593967]))_0x3a46a5['setAttribute'](_0x17e0e3,_0x2e380a['attributes'][_0x593967][_0x17e0e3],_0x2d80c8);_0x3a46a5['insert'](_0x2e380a['model'][_0x593967],_0x2d80c8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2e380a['changes'])),this['isReady']=!0x0;})['catch'](_0x286942=>{console['error'](_0x286942),this['_cleanUp'](),_0x45da8d&&(this['diff']=_0x45da8d),this['isReady']=!0x0;});}['addRevisionData'](_0x34611c,_0x536b42){const _0x1b1145=this['repository']['createRevision'](_0x34611c);return _0x1b1145['on']('_update',(_0x41ff74,_0x253052,_0x44565d)=>_0x536b42(_0x253052,_0x44565d,_0x1b1145)),this['repository']['addRevision'](_0x1b1145),_0x1b1145;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4dac5f=>{for(const _0x2bd36f of this['editor']['model']['document']['getRootNames']())_0x4dac5f['detachRoot'](_0x2bd36f);});}['_sortAndFilterDiffChanges'](_0x2de91a){const _0x46d956=[],_0x364bc4=new Map();for(const _0x434607 of this['editor']['model']['document']['getRootNames']()){const _0xd463d1=this['editor']['editing']['view']['getDomRoot'](_0x434607);if(!_0xd463d1)continue;const _0x3c6c20=_0xd463d1['getClientRects']()['item'](0x0);_0x3c6c20&&(_0x46d956['push'](_0x434607),_0x364bc4['set'](_0x434607,_0x3c6c20));}return _0x46d956['sort']((_0x5b981e,_0x250076)=>{const _0x4aa8ea=_0x364bc4['get'](_0x5b981e),_0x1fa6c9=_0x364bc4['get'](_0x250076);return _0x4aa8ea['y']-_0x1fa6c9['y']||_0x4aa8ea['x']-_0x1fa6c9['x'];}),(_0x2de91a=_0x2de91a['filter'](_0x25e10d=>_0x46d956['includes'](_0x25e10d['rootName'])))['sort']((_0x30eee4,_0x2f32e9)=>_0x46d956['indexOf'](_0x30eee4['rootName'])-_0x46d956['indexOf'](_0x2f32e9['rootName'])),_0x2de91a;}['_makeTape'](_0x240b10){const _0x47a1ec=Array['from'](_0x240b10['markers'])['filter'](([_0x1b7c61,_0x377f9a])=>_0x1b7c61['startsWith']('revision:')&&!_0x377f9a['isCollapsed']),_0x2f2caf=Array['from'](this['editor']['model']['createRangeIn'](_0x240b10)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x47a1ec['length'])for(const _0x297aea of _0x2f2caf){const [_0x5a6153,_0x3b7c74]=_0x47a1ec[0x0],[,_0x1838f6,_0x144a59]=_0x5a6153['split'](':');if(_0x3b7c74['end']['isEqual'](_0x297aea['nextPosition'])&&_0x47a1ec['shift'](),(_0x297aea['previousPosition']['isEqual'](_0x3b7c74['start'])||_0x297aea['previousPosition']['isAfter'](_0x3b7c74['start']))&&('insertion'==_0x1838f6?_0x297aea['isAdded']={'userId':_0x144a59}:'deletion'==_0x1838f6&&(_0x297aea['isRemoved']={'userId':_0x144a59})),0x0==_0x47a1ec['length'])break;}return _0x2f2caf;}['_refreshStartEndIndex'](_0x550ce2){const _0x12b890=new Map();for(let _0x1c3c50=0x0;_0x1c3c50<_0x550ce2['length'];_0x1c3c50++)'text'===_0x550ce2[_0x1c3c50]['type']?(_0x550ce2[_0x1c3c50]['item']['startIndex']=_0x1c3c50,_0x550ce2[_0x1c3c50]['item']['endIndex']=_0x1c3c50):('elementStart'===_0x550ce2[_0x1c3c50]['type']?_0x550ce2[_0x1c3c50]['item']['startIndex']=_0x1c3c50:'elementEnd'===_0x550ce2[_0x1c3c50]['type']&&(_0x550ce2[_0x1c3c50]['item']['endIndex']=_0x1c3c50),_0x12b890['set'](_0x550ce2[_0x1c3c50]['id'],_0x1c3c50));for(const _0x4a30e1 of _0x12b890['values']())'elementStart'===_0x550ce2[_0x4a30e1]['type']?_0x550ce2[_0x4a30e1]['item']['endIndex']=_0x12b890['get'](_0x550ce2[_0x4a30e1]['pairId']):'elementEnd'===_0x550ce2[_0x4a30e1]['type']&&(_0x550ce2[_0x4a30e1]['item']['startIndex']=_0x12b890['get'](_0x550ce2[_0x4a30e1]['pairId']));}['_processTape'](_0x3dc3d1){for(let _0x2f81ad=0x0;_0x2f81ad<_0x3dc3d1['length'];_0x2f81ad++){if('elementStart'===_0x3dc3d1[_0x2f81ad]['type'])_0x3dc3d1[_0x2f81ad]['item']['startIndex']=_0x2f81ad;else{if('elementEnd'===_0x3dc3d1[_0x2f81ad]['type']){_0x3dc3d1[_0x2f81ad]['item']['endIndex']=_0x2f81ad;const _0xa9f3cf=_0x3dc3d1[_0x2f81ad]['item']['startIndex'];_0x3dc3d1[_0xa9f3cf]['pairId']=_0x3dc3d1[_0x2f81ad]['id'],_0x3dc3d1[_0x2f81ad]['pairId']=_0x3dc3d1[_0xa9f3cf]['id'];}else _0x3dc3d1[_0x2f81ad]['item']['startIndex']=_0x2f81ad,_0x3dc3d1[_0x2f81ad]['item']['endIndex']=_0x2f81ad,_0x3dc3d1[_0x2f81ad]['pairId']=null;}_0x3dc3d1[_0x2f81ad]['markersStart']||(_0x3dc3d1[_0x2f81ad]['markersStart']=[],_0x3dc3d1[_0x2f81ad]['markersEnd']=[]);}}['_markInsertions'](_0x4d7180,_0x5f43d3){const _0x70f2b5=_0x4d7180['filter'](_0x1f1da6=>!_0x1f1da6['isAdded']);for(let _0x222358=0x0;_0x222358<_0x5f43d3['length'];_0x222358++)_0x5f43d3[_0x222358]['isAdded']&&(_0x70f2b5[_0x222358]['isAdded']=_0x5f43d3[_0x222358]['isAdded']);}['_getDiff'](_0x25c070,_0x85f0a4=null){const _0x4703d5=this['repository']['getRevision'](_0x25c070),_0x5693ad=_0x85f0a4?this['repository']['getRevision'](_0x85f0a4):null,_0x229e75=this['_getRevisionsRange'](_0x4703d5,_0x5693ad),_0x45dcb1=_0x229e75[_0x229e75['length']-0x1],_0x163fe0=new Map(),_0x1baf32={'model':{},'attributes':{},'changes':[]},_0x3fe0fd=new Set(),_0x17b3fb=new Map();for(let _0x3eed1f=_0x229e75['length']-0x1;_0x3eed1f>=0x0;_0x3eed1f--){const _0x3f2fab=_0x229e75[_0x3eed1f];for(const _0x8f1713 of Object['keys'](_0x3f2fab['diffData']))if(_0x3f2fab['diffData'][_0x8f1713]['attachChange']){const _0x6ff50e=_0x3f2fab['diffData'][_0x8f1713]['attachChange'];_0x6ff50e['isAttached']?(_0x3fe0fd['add'](_0x8f1713),_0x17b3fb['has'](_0x8f1713)&&_0x17b3fb['get'](_0x8f1713)['userId']==_0x6ff50e['userId']?_0x17b3fb['delete'](_0x8f1713):_0x17b3fb['set'](_0x8f1713,_0x6ff50e)):_0x17b3fb['has'](_0x8f1713)?(_0x3fe0fd['delete'](_0x8f1713),_0x17b3fb['delete'](_0x8f1713)):(_0x3fe0fd['add'](_0x8f1713),_0x17b3fb['set'](_0x8f1713,_0x6ff50e));}else _0x3fe0fd['add'](_0x8f1713);}for(const _0x3463a5 of _0x3fe0fd){const _0x5765cd=_0x17b3fb['has'](_0x3463a5)&&!_0x17b3fb['get'](_0x3463a5)['isAttached'];let _0x35312c=_0x5765cd?_0x229e75['length']-0x1:0x0;const _0xf8617e=_0x5765cd?-0x1:0x1;for(;_0x229e75[_0x35312c];){const _0x210e79=_0x229e75[_0x35312c];if(_0x210e79['diffData'][_0x3463a5]){const _0x47a9cb=_0x5765cd?_0x210e79['diffData'][_0x3463a5]['attributesBefore']:_0x210e79['diffData'][_0x3463a5]['attributesAfter'];_0x1baf32['attributes'][_0x3463a5]=_0x47a9cb?_0x2fa70e(_0x47a9cb):{};break;}_0x35312c+=_0xf8617e;}}for(const _0x22d126 of _0x229e75){_0x22d126['model']={};for(const _0x22bdaa of _0x22d126['authors'])_0x163fe0['set'](_0x22bdaa['id'],_0x22bdaa);for(const _0x282055 of _0x3fe0fd){const _0x128fba=_0x22d126['diffData'][_0x282055]?_0x22d126['diffData'][_0x282055]['insertions']:'[]',_0x307f6b=_0x22d126['diffData'][_0x282055]?_0x22d126['diffData'][_0x282055]['deletions']:'[]';_0x22d126['model'][_0x282055]={'insertions':this['_utils']['_makeModelFromViewString'](_0x128fba),'deletions':this['_utils']['_makeModelFromViewString'](_0x307f6b)};}}for(const _0x59b312 of _0x3fe0fd){let _0x38da06=null,_0x26e420=0x0;const _0x42a91b=new Map(Array['from'](_0x4703d5['model'][_0x59b312]['insertions']['markers'])['filter'](([_0x53e671])=>!_0x53e671['startsWith']('revision:')));let _0x147a45=0x0;for(const _0x1e3639 of _0x229e75){const _0x154617=this['_makeTape'](_0x1e3639['model'][_0x59b312]['insertions']);_0x1e3639==_0x4703d5?(_0x38da06=_0x154617,_0x26e420=_0x38da06['length'],_0x38da06['forEach'](_0x4799e2=>{_0x4799e2['id']=_0x147a45++;}),this['_processTape'](_0x38da06)):this['_markInsertions'](_0x38da06,_0x154617);const _0x141937=_0x38da06['filter'](_0x226cd2=>!_0x226cd2['isAdded'])['map'](_0x5e0174=>_0x5e0174['id']);let _0x1a26fc=0x0;const _0x442a93=this['_makeTape'](_0x1e3639['model'][_0x59b312]['deletions']);_0x442a93['forEach'](_0x4e607d=>{_0x4e607d['isRemoved']?_0x4e607d['id']=_0x26e420++:_0x4e607d['id']=_0x141937[_0x1a26fc++];}),this['_processTape'](_0x442a93),this['_setDistance'](_0x38da06,'isAdded'),this['_setDistance'](_0x442a93,'isRemoved'),_0x1e3639==_0x4703d5&&this['_markMarkers'](_0x38da06,_0x42a91b),_0x38da06=this['_joinTapes'](_0x38da06,_0x442a93),this['_refreshStartEndIndex'](_0x38da06),this['_setDistance'](_0x38da06,'isRemoved');}_0x38da06=_0x38da06['filter'](_0x256442=>!(_0x256442['isAdded']&&_0x256442['isRemoved']));const _0x380f21=new Map(_0x45dcb1['model'][_0x59b312]['deletions']['markers']),_0x2f5ea9=new Set(_0x42a91b['keys']());for(const _0x4a9d1f of _0x380f21['keys']())_0x2f5ea9['delete'](_0x4a9d1f);this['_markSuggestions'](_0x38da06,_0x2f5ea9),this['_fixObsoleteTags'](_0x38da06),_0x38da06=this['_removeMissingPairs'](_0x38da06),_0x38da06=this['_markMismatchedRemovedTags'](_0x38da06),_0x38da06=this['_removeUnsupportedChanges'](_0x38da06);const {root:_0x544620,changes:_0xcb29bb}=this['_makeModelFromTape'](_0x38da06,_0x163fe0,_0x59b312);_0x1baf32['model'][_0x59b312]=_0x544620;const _0x4219f4=_0x17b3fb['get'](_0x59b312);if(_0x4219f4){const _0x530abd=_0x163fe0['get'](_0x4219f4['userId']),_0xe94ac5=new G({'author':_0x530abd,'type':_0x4219f4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x59b312});_0xcb29bb['unshift'](_0xe94ac5),_0x1baf32['attributes'][_0x59b312]['revisionHistoryAttachChange']=_0xe94ac5['id'];}_0x1baf32['changes']=_0x1baf32['changes']['concat'](_0xcb29bb);}return _0x1baf32;}['_markMarkers'](_0x357772,_0x4529a3){for(let _0x1f3d45=0x0;_0x1f3d45<_0x357772['length'];_0x1f3d45++)for(const [_0x476a93,_0x14e855]of _0x4529a3)!_0x14e855['isCollapsed']&&_0x14e855['start']['isEqual'](_0x357772[_0x1f3d45]['previousPosition'])&&_0x357772[_0x1f3d45]['markersStart']['push'](_0x476a93),_0x14e855['end']['isEqual'](_0x357772[_0x1f3d45]['nextPosition'])&&_0x357772[_0x1f3d45]['markersEnd']['push'](_0x476a93);}['_joinTapes'](_0x5ab11a,_0x4c668a){let _0x26675c=[],_0x161f37=0x0,_0x2917e2=0x0;for(;_0x161f37<_0x5ab11a['length']||_0x2917e2<_0x4c668a['length'];){const _0x5cd358=_0x5ab11a[_0x161f37]||{},_0x107813=_0x4c668a[_0x2917e2]||{};if(_0x5cd358['id']==_0x107813['id'])_0x161f37++,_0x2917e2++,_0x26675c['push'](_0x5cd358);else{if(_0x107813['isRemoved']&&_0x5cd358['isAdded']){const {commonTape:_0x3e6aca,iEnd:_0x2c129b,jEnd:_0x80740b}=this['_threeWayMerge'](_0x5ab11a,_0x161f37,_0x4c668a,_0x2917e2);_0x26675c=_0x26675c['concat'](_0x3e6aca),_0x161f37=_0x2c129b,_0x2917e2=_0x80740b;}else _0x107813['isRemoved']?(_0x2917e2++,_0x26675c['push'](_0x107813)):(_0x161f37++,_0x26675c['push'](_0x5cd358));}}return _0x26675c;}['_markSuggestions'](_0x1f4a72,_0x4b1842){const _0x4689ea=[];for(let _0x478564=0x0;_0x478564<_0x1f4a72['length'];_0x478564++){for(let _0x10765f=0x0;_0x10765f<_0x1f4a72[_0x478564]['markersStart']['length'];_0x10765f++){const _0x38f138=_0x1f4a72[_0x478564]['markersStart'][_0x10765f];if(!_0x4b1842['has'](_0x38f138))continue;const {group:_0x88efd4,type:_0x5157e8,authorId:_0x296d25}=_0x6bee4d(_0x38f138);'revision-suggestion'!=_0x88efd4||'insertion'!=_0x5157e8&&'deletion'!=_0x5157e8||(_0x4689ea['unshift']({'type':_0x5157e8,'name':_0x38f138,'userId':_0x296d25}),_0x1f4a72[_0x478564]['markersStart']['splice'](_0x10765f,0x1),_0x10765f--);}_0x46393a(_0x1f4a72[_0x478564]);for(let _0x24a60b=0x0;_0x24a60b<_0x1f4a72[_0x478564]['markersEnd']['length'];_0x24a60b++){const _0x1c5ebd=_0x1f4a72[_0x478564]['markersEnd'][_0x24a60b];if(!_0x4b1842['has'](_0x1c5ebd))continue;const {group:_0x446c15,type:_0x4ad4fd}=_0x6bee4d(_0x1c5ebd);if('revision-suggestion'!=_0x446c15||'insertion'!=_0x4ad4fd&&'deletion'!=_0x4ad4fd)continue;_0x1f4a72[_0x478564]['markersEnd']['splice'](_0x24a60b,0x1),_0x24a60b--;const _0x33e093=_0x4689ea['findIndex'](_0x5b2373=>_0x5b2373['name']==_0x1c5ebd);_0x33e093>-0x1&&_0x4689ea['splice'](_0x33e093,0x1);}}function _0x6bee4d(_0x1254ce){const _0x24497a=_0x1254ce['split'](':');return{'group':_0x24497a[0x0],'type':_0x24497a[0x1],'subType':_0x24497a['length']>=0x5?_0x24497a[0x2]:null,'id':_0x24497a['length']<0x5?_0x24497a[0x2]:_0x24497a[0x3],'authorId':_0x24497a['length']<0x5?_0x24497a[0x3]:_0x24497a[0x4],'markerCount':0x6==_0x24497a['length']?_0x24497a[0x5]:null};}function _0x46393a(_0x97d99c){for(let _0x20b098=0x0;_0x20b098<_0x4689ea['length'];_0x20b098++){if(_0x97d99c['isAdded']&&'insertion'==_0x4689ea[_0x20b098]['type']&&_0x97d99c['isAdded']['userId']==_0x4689ea[_0x20b098]['userId'])return _0x97d99c['isAddSuggestion']=_0x4689ea[_0x20b098],void delete _0x97d99c['isAdded'];if(!_0x97d99c['isAdded']&&!_0x97d99c['isRemoved']&&'deletion'==_0x4689ea[_0x20b098]['type'])return void(_0x97d99c['isRemoveSuggestion']=_0x4689ea[_0x20b098]);}}}['_setDistance'](_0x8253d8,_0x3069e3){let _0x28ee92=0x0,_0x77a2b7=!0x1;const _0x3bae43=new Map();for(const _0xfea7ab of _0x8253d8)_0xfea7ab[_0x3069e3]?_0x77a2b7&&(_0x28ee92++,_0x77a2b7=!0x1):(_0x28ee92++,_0x77a2b7=!0x0),_0x3bae43['set'](_0xfea7ab['id'],_0x28ee92);for(let _0x50e38d=0x0;_0x50e38d<_0x8253d8['length'];_0x50e38d++){if('isRemoved'==_0x3069e3&&_0x8253d8[_0x50e38d]['isAdded']||'isAdded'==_0x3069e3&&_0x8253d8[_0x50e38d]['isRemoved'])continue;if('text'==_0x8253d8[_0x50e38d]['type']){_0x8253d8[_0x50e38d]['distance']=0x0;continue;}const _0x553a9d=_0x3bae43['get'](_0x8253d8[_0x50e38d]['pairId']),_0xd3c38e=_0x3bae43['get'](_0x8253d8[_0x50e38d]['id']);_0x8253d8[_0x50e38d]['distance']=_0x553a9d-_0xd3c38e;}}['_getRevisionsRange'](_0x3d7595,_0x5a9fef,_0x246f76=!0x1){const _0x4170de=[];let _0x22ad8c=this['repository']['getIndex'](_0x3d7595),_0x1ccd70=this['repository']['getIndex'](_0x5a9fef);for(-0x1==_0x1ccd70&&(_0x1ccd70=this['repository']['_revisions']['length'],_0x246f76=!0x1);_0x22ad8c<_0x1ccd70;)_0x4170de['push'](this['repository']['getRevision'](_0x22ad8c)),_0x22ad8c++;return _0x246f76&&_0x4170de['push'](this['repository']['getRevision'](_0x22ad8c)),_0x4170de;}['_threeWayMerge'](_0x570adf,_0x85e2cf,_0x515276,_0x21869d){const _0x2664f0=this['editor']['model']['schema'];let _0x786483=_0x85e2cf;for(;_0x570adf[_0x786483]&&_0x570adf[_0x786483]['isAdded'];)_0x786483++;let _0x1f9592=_0x21869d;for(;_0x515276[_0x1f9592]&&_0x515276[_0x1f9592]['isRemoved'];)_0x1f9592++;_0x5ca41d(_0x570adf,_0x85e2cf,_0x786483),_0x5ca41d(_0x515276,_0x21869d,_0x1f9592);const _0x179743=_0x515276['slice'](_0x21869d,_0x1f9592)['concat'](_0x570adf['slice'](_0x85e2cf,_0x786483));return _0x179743['sort']((_0x2788e1,_0x3c7261)=>_0x2788e1['side']!=_0x3c7261['side']?_0x2788e1['side']-_0x3c7261['side']:_0x2788e1['level']!=_0x3c7261['level']?_0x2788e1['level']-_0x3c7261['level']:_0x2788e1['distance']!=_0x3c7261['distance']?_0x3c7261['distance']-_0x2788e1['distance']:!!_0x2788e1['isAdded']!=!!_0x3c7261['isAdded']?-0x1==_0x2788e1['side']||0x0==_0x2788e1['side']?_0x2788e1['isAdded']?-0x1:0x1:_0x2788e1['isAdded']?0x1:-0x1:_0x2788e1['index']-_0x3c7261['index']),{'commonTape':_0x179743,'iEnd':_0x786483,'jEnd':_0x1f9592};function _0x5ca41d(_0x1d0fd2,_0x3ca97b,_0xd7e9af){let _0x150f04=-0x1,_0x5885f8=Number['POSITIVE_INFINITY'],_0xc30ba1=!0x0;for(let _0x337d6d=_0x3ca97b;_0x337d6d<_0xd7e9af;_0x337d6d++)if(_0x2664f0['isInline'](_0x1d0fd2[_0x337d6d]['item'])||(_0xc30ba1=!0x1),_0x1d0fd2[_0x337d6d]['item']['startIndex']<_0x3ca97b&&(_0x150f04=_0x337d6d),_0x1d0fd2[_0x337d6d]['item']['endIndex']>=_0xd7e9af){_0x5885f8=_0x337d6d;break;}_0xc30ba1&&(_0x150f04=_0xd7e9af-0x1);for(let _0x56168f=_0x3ca97b;_0x56168f<_0xd7e9af;_0x56168f++)_0x1d0fd2[_0x56168f]['side']=_0x56168f<=_0x150f04?-0x1:_0x56168f<_0x5885f8?0x0:0x1,_0x1d0fd2[_0x56168f]['index']=_0x56168f;let _0x310c33=0x0;for(let _0x9cb3e0=_0x3ca97b;_0x9cb3e0<=_0x150f04;_0x9cb3e0++)0x0==_0x1d0fd2[_0x9cb3e0]['distance']?_0x1d0fd2[_0x9cb3e0]['level']=_0x310c33:(_0x310c33++,_0x1d0fd2[_0x9cb3e0]['level']=_0x310c33,_0x310c33++);for(let _0x47afc5=_0x3ca97b;_0x47afc5<_0xd7e9af;_0x47afc5++)0x0==_0x1d0fd2[_0x47afc5]['side']&&(_0x1d0fd2[_0x47afc5]['level']=_0x310c33);_0x310c33=0x0;for(let _0x26ef6e=_0xd7e9af-0x1;_0x26ef6e>=_0x5885f8;_0x26ef6e--)0x0==_0x1d0fd2[_0x26ef6e]['distance']?_0x1d0fd2[_0x26ef6e]['level']=_0x310c33:(_0x310c33--,_0x1d0fd2[_0x26ef6e]['level']=_0x310c33,_0x310c33--);}}['_fixObsoleteTags'](_0x562cb8){const _0x8b1634=new Map(),_0xc80786=this['editor']['model']['schema'];for(let _0x4b3232=0x1;_0x4b3232<_0x562cb8['length'];_0x4b3232++){let _0x1fdf66,_0x1773be,_0x4d6bc6;const _0x3947a9=_0x562cb8[_0x4b3232],_0x1f4400=_0x562cb8[_0x4b3232-0x1];if('text'==_0x3947a9['type'])continue;if(_0x3947a9['type']!=_0x1f4400['type'])continue;if(!_0xc80786['isBlock'](_0x1f4400['item'])||_0xc80786['isLimit'](_0x1f4400['item']))continue;if(!_0xc80786['isBlock'](_0x3947a9['item'])||_0xc80786['isLimit'](_0x3947a9['item']))continue;if((_0x562cb8[_0x4b3232]['isAdded']||_0x562cb8[_0x4b3232]['isAddSuggestion'])&&_0x562cb8[_0x4b3232-0x1]['isRemoved'])_0x1fdf66=_0x562cb8[_0x4b3232],_0x1773be=_0x562cb8[_0x4b3232-0x1],_0x4d6bc6=_0x4b3232-0x1;else{if(!_0x562cb8[_0x4b3232]['isRemoved']||!_0x562cb8[_0x4b3232-0x1]['isAdded']&&!_0x562cb8[_0x4b3232-0x1]['isAddSuggestion'])continue;_0x1fdf66=_0x562cb8[_0x4b3232-0x1],_0x1773be=_0x562cb8[_0x4b3232],_0x4d6bc6=_0x4b3232;}const _0x11fbe1=_0x1fdf66['level']==_0x1773be['level'],_0x2c8524=Math['abs'](_0x1fdf66['level'])<Math['abs'](_0x1773be['level'])&&0x0==_0x1773be['distance'];(_0x11fbe1||_0x2c8524)&&(_0x8b1634['set'](_0x1773be['id'],_0x1fdf66['id']),_0x562cb8['splice'](_0x4d6bc6,0x1),_0x4b3232--,_0x1fdf66['isAdded']=!0x1);}for(let _0x4f0ef7=0x0;_0x4f0ef7<_0x562cb8['length'];_0x4f0ef7++)_0x8b1634['has'](_0x562cb8[_0x4f0ef7]['pairId'])&&(_0x562cb8[_0x4f0ef7]['pairId']=_0x8b1634['get'](_0x562cb8[_0x4f0ef7]['pairId']));}['_removeMissingPairs'](_0x92d4c1){const _0x5f56ba=new Set(_0x92d4c1['map'](_0x600833=>_0x600833['id']));for(let _0x11e43f=0x0;_0x11e43f<_0x92d4c1['length'];_0x11e43f++)_0x5f56ba['has'](_0x92d4c1[_0x11e43f]['pairId'])||0x0==_0x92d4c1[_0x11e43f]['distance']||(_0x92d4c1[_0x11e43f]['isIncorrect']=!0x0);return _0x92d4c1['filter'](_0x117d34=>!_0x117d34['isIncorrect']);}['_markMismatchedRemovedTags'](_0x501a2d){const _0x49cb35=new Set();for(let _0x1c651d=0x0;_0x1c651d<_0x501a2d['length'];_0x1c651d++){if(_0x49cb35['has'](_0x501a2d[_0x1c651d]['id'])&&_0x501a2d[_0x1c651d]['isRemoved']&&(_0x501a2d[_0x1c651d]['isIncorrect']=!0x0),_0x501a2d[_0x1c651d]['isIncorrect'])continue;if(0x0==_0x501a2d[_0x1c651d]['distance'])continue;if('elementStart'!=_0x501a2d[_0x1c651d]['type'])continue;if(null==_0x501a2d[_0x1c651d]['pairId'])continue;let _0x45022f=_0x1c651d+0x1,_0x44c3cd=0x0;for(;_0x501a2d[_0x45022f]['id']!=_0x501a2d[_0x1c651d]['pairId'];)'elementStart'==_0x501a2d[_0x45022f]['type']?_0x44c3cd++:'elementEnd'==_0x501a2d[_0x45022f]['type']&&_0x44c3cd--,_0x45022f++;if(0x0!=_0x44c3cd){if(_0x501a2d[_0x1c651d]['isRemoved'])_0x501a2d[_0x1c651d]['isIncorrect']=!0x0;else{for(;_0x45022f!=_0x1c651d;)_0x501a2d[_0x45022f]['isRemoved']&&0x0!=_0x501a2d[_0x45022f]['distance']&&(_0x501a2d[_0x45022f]['isIncorrect']=!0x0,_0x49cb35['add'](_0x501a2d[_0x45022f]['pairId'])),_0x45022f--;}}}return _0x501a2d['filter'](_0x31183a=>!_0x31183a['isIncorrect']);}['_removeUnsupportedChanges'](_0x23d9a1){const _0x13d3ce=this['editor']['model']['schema'];for(let _0x2ef71d=0x0;_0x2ef71d<_0x23d9a1['length'];_0x2ef71d++){if(!(_0x23d9a1[_0x2ef71d]['isAdded']||_0x23d9a1[_0x2ef71d]['isAddSuggestion']||_0x23d9a1[_0x2ef71d]['isRemoved']||_0x23d9a1[_0x2ef71d]['isRemoveSuggestion']))continue;if(0x0==_0x23d9a1[_0x2ef71d]['distance'])continue;const _0x581fe8=_0x23d9a1[_0x2ef71d]['item'];_0x13d3ce['isBlock'](_0x581fe8)||_0x13d3ce['isLimit'](_0x581fe8)||(_0x23d9a1[_0x2ef71d]['isAdded']&&delete _0x23d9a1[_0x2ef71d]['isAdded'],_0x23d9a1[_0x2ef71d]['isAddSuggestion']&&delete _0x23d9a1[_0x2ef71d]['isAddSuggestion'],_0x23d9a1[_0x2ef71d]['isRemoveSuggestion']&&delete _0x23d9a1[_0x2ef71d]['isRemoveSuggestion'],_0x23d9a1[_0x2ef71d]['isRemoved']&&(_0x23d9a1[_0x2ef71d]['isIncorrect']=!0x0));}return _0x23d9a1['filter'](_0x38c77f=>!_0x38c77f['isIncorrect']);}['_makeModelFromTape'](_0x319ab9,_0x5e1526,_0x246cdb){const _0x437154=new _0x788399(),_0x40598e=[],_0x3410a2=new Map(),_0xfb04ac=this['editor']['model'],_0x51ceee=_0xfb04ac['schema'],_0x1ef791=[_0x437154],_0x5d2d30={},_0x1765b2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x40ea70=null;const _0x146e83=[0x0];for(let _0x3ed659=0x0;_0x3ed659<_0x319ab9['length'];_0x3ed659++)if('elementStart'===_0x319ab9[_0x3ed659]['type']){_0x319ab9[_0x3ed659]['previousPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83);const _0x5f24d0=new _0x4d179(_0x319ab9[_0x3ed659]['item']['name'],_0x319ab9[_0x3ed659]['item']['getAttributes']());_0x1ef791[0x0]['_appendChild'](_0x5f24d0),_0x146e83['push'](0x0),_0x1ef791['unshift'](_0x5f24d0),_0x319ab9[_0x3ed659]['nextPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83);}else'elementEnd'===_0x319ab9[_0x3ed659]['type']?(_0x1ef791['shift'](),_0x319ab9[_0x3ed659]['previousPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83),_0x146e83['pop'](),_0x146e83[_0x146e83['length']-0x1]++,_0x319ab9[_0x3ed659]['nextPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83)):(_0x319ab9[_0x3ed659]['previousPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83),_0x40ea70?_0x40ea70['_data']+=_0x319ab9[_0x3ed659]['item']['data']:_0x40ea70=new _0x4393a3(_0x319ab9[_0x3ed659]['item']['data'],_0x319ab9[_0x3ed659]['item']['getAttributes']()),_0x319ab9[_0x3ed659+0x1]&&'text'===_0x319ab9[_0x3ed659+0x1]['type']&&_0x2fb01d(_0x40ea70,_0x319ab9[_0x3ed659+0x1]['item'])||(_0x1ef791[0x0]['_appendChild'](_0x40ea70),_0x40ea70=null),_0x146e83[_0x146e83['length']-0x1]+=_0x319ab9[_0x3ed659]['item']['offsetSize'],_0x319ab9[_0x3ed659]['nextPosition']=_0xfb04ac['createPositionFromPath'](_0x437154,_0x146e83));for(let _0x2462c6=0x0;_0x2462c6<_0x319ab9['length'];_0x2462c6++){const _0x58d248=_0x319ab9[_0x2462c6]['previousPosition'],_0xf3073d=_0x319ab9[_0x2462c6]['nextPosition'];for(const _0x6a23e1 of _0x319ab9[_0x2462c6]['markersStart'])_0x3410a2['set'](_0x6a23e1,{'start':_0x58d248,'end':null});_0x3b3fad('isRemoveSuggestion',_0x2462c6,_0x58d248,_0xf3073d),_0x3b3fad('isAddSuggestion',_0x2462c6,_0x58d248,_0xf3073d),_0x3b3fad('isRemoved',_0x2462c6,_0x58d248,_0xf3073d),_0x3b3fad('isAdded',_0x2462c6,_0x58d248,_0xf3073d);for(const _0x362712 of _0x319ab9[_0x2462c6]['markersEnd']){const _0x58b84b=_0x3410a2['get'](_0x362712);_0x58b84b?_0x58b84b['end']=_0xf3073d:_0x3410a2['set'](_0x362712,{'start':_0xf3073d,'end':_0xf3073d});}}for(const [_0x3826eb,_0xf5fc59]of _0x3410a2){const _0xaa3eea=this['editor']['model']['createRange'](_0xf5fc59['start'],_0xf5fc59['end']);_0x437154['markers']['set'](_0x3826eb,_0xaa3eea);}return _0x40598e['sort']((_0x40ef7f,_0x26c888)=>{const _0x37811d=_0x437154['markers']['get']('revision:'+_0x40ef7f['id']),_0x2af41c=_0x437154['markers']['get']('revision:'+_0x26c888['id']);return _0x37811d['start']['isBefore'](_0x2af41c['start'])?-0x1:_0x37811d['start']['isAfter'](_0x2af41c['start'])?0x1:_0x37811d['end']['isBefore'](_0x2af41c['end'])?-0x1:_0x37811d['end']['isAfter'](_0x2af41c['end'])?0x1:'add'===_0x40ef7f['type']?-0x1:0x1;}),{'root':_0x437154,'changes':_0x40598e};function _0x3b3fad(_0x4ddfb1,_0x2fbff0,_0x1785de,_0x458b44){const _0x201a27=!!_0x319ab9[_0x2fbff0][_0x4ddfb1],_0x35b9dc=_0x201a27?_0x319ab9[_0x2fbff0][_0x4ddfb1]['userId']:null,_0x5f15c9=_0x2fbff0===_0x319ab9['length']-0x1,_0x2a05e6=_0x1765b2[_0x4ddfb1][0x0],_0xd6c525=_0x51ceee['isObject'](_0x319ab9[_0x2fbff0]['item']);!_0x5d2d30[_0x4ddfb1]&&_0x201a27?_0x5d2d30[_0x4ddfb1]={'start':_0x1785de,'tapeItem':_0x319ab9[_0x2fbff0],'userId':_0x35b9dc,'type':_0x4ddfb1}:_0x5d2d30[_0x4ddfb1]&&!_0x201a27?(_0x5d2d30[_0x4ddfb1]['end']=_0x1785de,_0xe67feb(_0x5d2d30[_0x4ddfb1]),_0x5d2d30[_0x4ddfb1]=null):_0x5d2d30[_0x4ddfb1]&&_0x201a27&&_0x5d2d30[_0x4ddfb1]['userId']!==_0x35b9dc&&(_0x5d2d30[_0x4ddfb1]['end']=_0x1785de,_0x2a05e6&&_0x2a05e6['userId']===_0x5d2d30[_0x4ddfb1]['userId']||_0xe67feb(_0x5d2d30[_0x4ddfb1]),_0x5d2d30[_0x4ddfb1]={'start':_0x1785de,'tapeItem':_0x319ab9[_0x2fbff0],'userId':_0x35b9dc,'type':_0x4ddfb1}),_0x5d2d30[_0x4ddfb1]&&_0xd6c525&&('elementStart'!==_0x319ab9[_0x2fbff0]['type']||_0x2a05e6&&_0x2a05e6['userId']===_0x35b9dc||_0x1765b2[_0x4ddfb1]['unshift']({'userId':_0x35b9dc,'object':_0x319ab9[_0x2fbff0]['item'],'change':_0x5d2d30[_0x4ddfb1]}),'elementEnd'===_0x319ab9[_0x2fbff0]['type']&&_0x2a05e6&&_0x2a05e6['object']===_0x319ab9[_0x2fbff0]['item']&&(_0x1765b2[_0x4ddfb1]['shift'](),_0x5d2d30[_0x4ddfb1]=_0x2a05e6['change'])),_0x5d2d30[_0x4ddfb1]&&_0x5f15c9&&(_0x5d2d30[_0x4ddfb1]['end']=_0x458b44,_0xe67feb(_0x5d2d30[_0x4ddfb1]),_0x5d2d30[_0x4ddfb1]=null);}function _0xe67feb({start:_0x954738,end:_0x232253,tapeItem:_0x18bc6c,userId:_0x4a64cc,type:_0x54bf42}){const _0x2c7bfe=_0x18bc6c['item'],_0x4bc4a9=_0xfb04ac['schema']['isBlock'](_0x2c7bfe)&&!_0xfb04ac['schema']['isLimit'](_0x2c7bfe),_0x2dfd18=_0x954738['nodeAfter']==_0x232253['parent']&&_0x232253['isAtStart'];if(_0x4bc4a9&&_0x2dfd18)return;const _0x4061a5=_0xfb04ac['createRange'](_0x954738,_0x232253),_0x13abd4=_0x5e1526['get'](_0x4a64cc),_0xa2ec71=new G({'author':_0x13abd4,'type':'isAdded'==_0x54bf42||'isAddSuggestion'==_0x54bf42?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x54bf42||'isRemoveSuggestion'==_0x54bf42},'createdAt':new Date(),'rootName':_0x246cdb});_0x40598e['push'](_0xa2ec71),_0x437154['markers']['set']('revision:'+_0xa2ec71['id'],_0x4061a5);}function _0x2fb01d(_0x17e24c,_0xe755f){const _0x2cade0=_0x17e24c['getAttributes'](),_0x4da529=_0xe755f['getAttributes']();for(const _0x55d950 of _0x2cade0){if(_0x55d950[0x1]!==_0xe755f['getAttribute'](_0x55d950[0x0]))return!0x1;_0x4da529['next']();}return _0x4da529['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x33547d=>{const _0x12e971=_0x33547d['markerName']['split'](':')[0x1],_0x2ba124=this['_getChangeFromId'](_0x12e971);if(!_0x2ba124)return null;const _0x2b9185='add'==_0x2ba124['type']?'insertion':'deletion',_0x5af23f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2b9185];return _0x2ba124['data']['isSuggestion']&&_0x5af23f['push']('ck-suggestion-marker-'+_0x2b9185+'-new'),this['activeChange']==_0x2ba124&&_0x5af23f['push']('ck-suggestion-marker--active'),{'classes':_0x5af23f,'attributes':{'data-change-id':_0x12e971}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5ad1df=>{_0x5ad1df['on']('element:pre',(_0x50d6ed,_0x57f14c,_0x41a1e6)=>{const _0x2835ff=_0x57f14c['viewItem']['getChild'](0x0);if(!_0x2835ff||!_0x2835ff['is']('element','code'))return;if(!_0x41a1e6['consumable']['consume'](_0x2835ff,{'attributes':['vid_start','vid_end']}))return;const _0x1731eb=_0x57f14c['modelRange']['start']['nodeAfter'];_0x41a1e6['writer']['setAttribute']('vid_start',_0x2835ff['getAttribute']('vid_start'),_0x1731eb),_0x41a1e6['writer']['setAttribute']('vid_end',_0x2835ff['getAttribute']('vid_end'),_0x1731eb);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7ffe49=>{_0x7ffe49['on']('element',(_0xc43c64,_0x16fbb3,_0x2cfa43)=>{if(!_0x2cfa43['consumable']['consume'](_0x16fbb3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16fbb3['modelRange']['isCollapsed'])return;const _0x26745d=_0x16fbb3['modelRange']['start']['nodeAfter'];_0x26745d['hasAttribute']('vid_start')||_0x26745d['hasAttribute']('vid')||(_0x2cfa43['writer']['setAttribute']('vid_start',_0x16fbb3['viewItem']['getAttribute']('vid_start'),_0x26745d),_0x2cfa43['writer']['setAttribute']('vid_end',_0x16fbb3['viewItem']['getAttribute']('vid_end'),_0x26745d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xc160d1=>_0xc160d1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xd6f6fe,[,_0x33d2ed])=>{['vid_start','vid_end','vid']['includes'](_0x33d2ed)&&(_0xd6f6fe['return']=!0x0,_0xd6f6fe['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x12a10c=>{_0x12a10c['on']('attribute:vid',(_0x26e41e,_0x45600b,_0xaab4c3)=>{if('\x20'!=_0x45600b['item']['data']||_0x45600b['item']['parent']['maxOffset']>0x1)return;if(!_0xaab4c3['consumable']['consume'](_0x45600b['item'],_0x26e41e['name']))return;const _0x2b6103=_0xaab4c3['writer'],_0x4be827=_0xaab4c3['mapper']['toViewRange'](_0x45600b['range']);_0x2b6103['wrap'](_0x4be827,_0x2b6103['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xfa28d9){const _0x2a563f=_0xfa28d9['plugins']['get']('RevisionViewer');return(_0x37a32e,_0x2e799d,_0x3add12)=>{const _0x2e016e=_0x2e799d['markerName']['split'](':')[0x1],_0x5e06f8=_0x2a563f['_getChangeFromId'](_0x2e016e);if(!_0x5e06f8)return null;const _0xc6a44='add'==_0x5e06f8['type']?'split':'merge';if(!_0x3add12['consumable']['test'](_0x2e799d['markerRange'],_0x37a32e['name']))return;const _0x4153c8=_0x2e799d['markerRange']['getWalker'](),_0x14e66e=_0x2e799d['markerRange']['start'],_0x2198c2=_0xfa28d9['model']['schema'];let _0x65c3dd=null,_0x39e285=null,_0x55db5f=!0x1,_0x41353d=!0x1;for(const _0x6cc59f of _0x4153c8){const _0x22d2df=_0x6cc59f['item'];_0x55db5f=_0x55db5f||_0x2198c2['isContent'](_0x22d2df);const _0x3054ec=_0x3add12['mapper']['toViewElement'](_0x22d2df);if(_0x3054ec&&_0x3054ec['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x6cc59f['type']&&(_0x2198c2['isBlock'](_0x22d2df)&&!_0x2198c2['isLimit'](_0x22d2df)&&(_0x22d2df['nextSibling']||_0x14e66e['isAtEnd']?_0x65c3dd&&_0x65c3dd['parent']==_0x22d2df||(_0x65c3dd=_0x22d2df,_0x2093ee(_0x6cc59f['previousPosition']),_0x41353d=!0x0):_0x39e285=_0x39e285||_0x6cc59f['previousPosition']));}function _0x2093ee(_0x1c07a4){const _0xb496e7=_0x3add12['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc6a44}),_0x4cc571=_0x3add12['mapper']['toViewPosition'](_0x1c07a4);_0x5e06f8['data']['isSuggestion']&&_0x3add12['writer']['addClass']('ck-suggestion-marker-'+_0xc6a44+'-new',_0xb496e7),_0x2a563f['activeChange']==_0x5e06f8&&_0x3add12['writer']['addClass']('ck-suggestion-marker--active',_0xb496e7),_0x3add12['writer']['insert'](_0x4cc571,_0xb496e7),_0x3add12['mapper']['bindElementToMarker'](_0xb496e7,_0x2e799d['markerName']);}_0x55db5f||_0x41353d||!_0x39e285||_0x2093ee(_0x39e285);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4b28fe,_0x340621,_0x54ffde)=>{const _0x2dabd1=_0x54ffde['mapper']['markerNameToElements'](_0x340621['markerName']);if(_0x2dabd1){for(const _0x14e1f2 of _0x2dabd1)(_0x14e1f2['hasClass']('ck-suggestion-marker-split')||_0x14e1f2['hasClass']('ck-suggestion-marker-merge'))&&(_0x54ffde['mapper']['unbindElementFromMarkerName'](_0x14e1f2,_0x340621['markerName']),_0x54ffde['writer']['remove'](_0x14e1f2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4e36b0,_0x5cc0cd,_0x14d137)=>{const _0x504057=_0x5cc0cd['markerName']['split'](':')[0x1],_0x4a5df2=this['_getChangeFromId'](_0x504057);if(!_0x4a5df2)return null;const _0xc5443d='add'==_0x4a5df2['type']?'split':'merge';if(_0x14d137['consumable']['test'](_0x5cc0cd['markerRange'],_0x4e36b0['name']))for(const _0x136b2c of _0x5cc0cd['markerRange']['getItems']()){if(!_0x136b2c['is']('element','softBreak'))continue;const _0x344754=_0x14d137['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc5443d}),_0x20a702=_0x14d137['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x136b2c));_0x4a5df2['data']['isSuggestion']&&_0x14d137['writer']['addClass']('ck-suggestion-marker-'+_0xc5443d+'-new',_0x344754),this['activeChange']==_0x4a5df2&&_0x14d137['writer']['addClass']('ck-suggestion-marker--active',_0x344754),_0x14d137['writer']['insert'](_0x20a702,_0x344754),_0x14d137['mapper']['bindElementToMarker'](_0x344754,_0x5cc0cd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x582d03=>{for(const _0x52c272 of this['editor']['model']['document']['getRootNames']()){const _0x4c4d9b=this['editor']['model']['document']['getRoot'](_0x52c272),_0x37cda2=this['editor']['editing']['view']['document']['getRoot'](_0x52c272);if(_0x37cda2){const _0x5d5363=_0x4c4d9b['getAttribute']('revisionHistoryAttachChange');if(_0x582d03['removeAttribute']('data-change-id',_0x37cda2),_0x582d03['removeClass']('ck-revision-history-root-add',_0x37cda2),_0x582d03['removeClass']('ck-revision-history-root-remove',_0x37cda2),_0x582d03['removeClass']('ck-revision-history-root--active',_0x37cda2),_0x5d5363){const _0x21ca08=this['_getChangeFromId'](_0x5d5363);if(!_0x21ca08)return null;_0x582d03['setAttribute']('data-change-id',_0x5d5363,_0x37cda2),_0x582d03['addClass']('ck-revision-history-root-'+_0x21ca08['type'],_0x37cda2),this['activeChange']==_0x21ca08&&_0x582d03['addClass']('ck-revision-history-root--active',_0x37cda2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2883dc=>'revision-comment:'+_0x2883dc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2d4bb6=>'revision-suggestion:'+_0x2d4bb6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b1898=>({'name':'suggestion:'+_0x2b1898,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x90b165=>{const _0x3fc47f=_0x90b165['markerName']['split'](':')[0x1];return'insertion'!=_0x3fc47f&&'deletion'!=_0x3fc47f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3fc47f]};}}),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',(_0x3282a9,_0x17e03c,_0x4bb55d)=>{const _0x4afed8=_0x4bb55d['mapper']['markerNameToElements'](_0x17e03c['markerName']);if(_0x4afed8){for(const _0x38e1bf of _0x4afed8)_0x38e1bf['is']('uiElement')&&(_0x4bb55d['mapper']['unbindElementFromMarkerName'](_0x38e1bf,_0x17e03c['markerName']),_0x4bb55d['writer']['remove'](_0x38e1bf));}},{'priority':'high'});}['_getChangeFromId'](_0x5a4265){return this['_changeIdToChange']['get'](_0x5a4265);}['_getViewForChange'](_0x284468){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x284468),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4161ad,_0x2f9368,_0x1b41b0,_0x5e491c)=>{_0x5e491c&&this['_balloon']['remove'](_0x5e491c),_0x1b41b0&&(this['_balloon']['add']({'view':_0x1b41b0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c77b3=this['editor']['editing'],_0x6f741d=this['_getChangeFromId'](_0x1b41b0['changeId']);let _0x5ae49c;if(_0x6f741d['data']['isOnRoot']){const _0x45f354=_0x3c77b3['view']['getDomRoot'](_0x6f741d['rootName']);_0x5ae49c=Array['from'](_0x45f354['getClientRects']());}else{const _0x13bfb3=this['editor']['model']['markers']['get']('revision:'+_0x1b41b0['changeId']);_0x5ae49c=Array['from'](_0x3c77b3['mapper']['markerNameToElements'](_0x13bfb3['name']))['map'](_0x5daefa=>_0x3c77b3['view']['domConverter']['mapViewToDom'](_0x5daefa))['map'](_0x2a2f33=>Array['from'](_0x2a2f33['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5ae49c[0x0];return _0x5ae49c['find'](_0x222289=>_0x222289['top']-0x3<=this['_activeViewTarget']['y']&&_0x222289['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x222289['left']-0x3<=this['_activeViewTarget']['x']&&_0x222289['right']+0x3>=this['_activeViewTarget']['x'])||_0x5ae49c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x470d99,_0x142164,_0x13a6eb,_0x3f34ed)=>{this['activeView']=_0x13a6eb?this['_getViewForChange'](_0x13a6eb):null,this['editor']['model']['change'](()=>{const _0x589330=this['editor']['editing'];_0x3f34ed&&(_0x3f34ed['data']['isOnRoot']?_0x589330['view']['change'](_0x4f7c36=>{_0x4f7c36['removeClass']('ck-revision-history-root--active',_0x589330['view']['document']['getRoot'](_0x3f34ed['rootName']));}):_0x589330['reconvertMarker']('revision:'+_0x3f34ed['id'])),_0x13a6eb&&(_0x13a6eb['data']['isOnRoot']?_0x589330['view']['change'](_0x344de6=>{_0x344de6['addClass']('ck-revision-history-root--active',_0x589330['view']['document']['getRoot'](_0x13a6eb['rootName']));}):_0x589330['reconvertMarker']('revision:'+_0x13a6eb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d3fab,_0x5e78fe)=>{if(this['activeChange'])return;const _0x33a81c=this['_findChangeIdFromDomTarget'](_0x5e78fe['target']),_0x5f1466=this['_changeIdToChange']['get'](_0x33a81c);_0x5f1466?(this['_activeViewTarget']={'x':_0x5e78fe['domEvent']['x'],'y':_0x5e78fe['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5f1466)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x128724,_0x531931)=>{const _0x31748b=this['_findChangeIdFromDomTarget'](_0x531931['target']),_0x8079f0=this['_changeIdToChange']['get'](_0x31748b);_0x8079f0?(this['_activeViewTarget']={'x':_0x531931['domEvent']['x'],'y':_0x531931['domEvent']['y']},_0x8079f0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8079f0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c370a){do{const _0x4f79c8=_0x4c370a['getAttribute']('data-change-id');if(_0x4f79c8)return _0x4f79c8;_0x4c370a=_0x4c370a['parent'];}while(_0x4c370a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x40b01e=>{for(const _0x592402 of this['editor']['model']['markers'])_0x40b01e['removeMarker'](_0x592402);});}}function Q(_0x470cc9,_0x2c7243){return(_0x33dcce,_0x7196f1,_0x228862)=>{if(!_0x228862['consumable']['test'](_0x7196f1['markerRange'],_0x33dcce['name']))return;const _0x50d521=_0x7196f1['markerRange']['getWalker'](),_0x3e137a=_0x7196f1['markerRange']['start'],_0x5574dc=_0x470cc9['model']['schema'];let _0x27fa6a=null,_0x40c6a3=null,_0x2bee87=!0x1,_0x208a3c=!0x1;for(const _0x143116 of _0x50d521){const _0x5977d2=_0x143116['item'];_0x2bee87=_0x2bee87||_0x5574dc['isContent'](_0x5977d2);const _0xb1d0f=_0x228862['mapper']['toViewElement'](_0x5977d2);if(_0xb1d0f&&_0xb1d0f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x143116['type']&&(_0x5574dc['isBlock'](_0x5977d2)&&!_0x5574dc['isLimit'](_0x5977d2)&&(_0x5977d2['nextSibling']||_0x3e137a['isAtEnd']?_0x27fa6a&&_0x27fa6a['parent']==_0x5977d2||(_0x27fa6a=_0x5977d2,_0x2a039e(_0x143116['previousPosition']),_0x208a3c=!0x0):_0x40c6a3=_0x40c6a3||_0x143116['previousPosition']));}function _0x2a039e(_0x42ae0f){const _0x4e4a2e=_0x228862['mapper']['toViewPosition'](_0x42ae0f),_0x50e18b=_0x228862['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2c7243});_0x228862['writer']['insert'](_0x4e4a2e,_0x50e18b),_0x228862['mapper']['bindElementToMarker'](_0x50e18b,_0x7196f1['markerName']);}_0x2bee87||_0x208a3c||!_0x40c6a3||_0x2a039e(_0x40c6a3);};}class nt extends _0x32a8c2{constructor(_0x1646cd){super(_0x1646cd);const _0x5bae8b=_0x1646cd['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x5bae8b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bae8b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x24d0c6=this['editor'],_0x41813e=_0x24d0c6['plugins']['get'](u),_0x2f35fb=_0x41813e['isReady']?_0x41813e['diff']['newRevisionId']:null;_0x24d0c6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f35fb);}['refresh'](){const {isReady:_0x2feb6c,isEnabled:_0x47f261,repository:_0x9b709d,diff:_0x3be441}=this['editor']['plugins']['get'](u),_0x19f4f1=_0x3be441&&_0x9b709d['getLaterVisibleRevision'](_0x3be441['newRevisionId']);this['isEnabled']=_0x2feb6c&&_0x47f261&&Boolean(_0x19f4f1);}}class rt extends _0x32a8c2{['_step'];constructor(_0x488c12,{direction:_0x1e636b}){super(_0x488c12);const _0x13cfc9=_0x488c12['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1e636b?0x1:-0x1,this['listenTo'](_0x13cfc9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13cfc9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x13cfc9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x581975=this['editor'],_0x310bfd=_0x581975['plugins']['get'](u),{isNavigationMode:_0x4ef61e,currentChangeNumber:_0x4e1557}=_0x310bfd;let _0x3160f2;if(_0x310bfd['activeChange']=_0x4ef61e?_0x310bfd['diff']['changes']['get'](_0x4e1557+this['_step']):_0x310bfd['diff']['changes']['first'],_0x310bfd['activeChange']['data']['isOnRoot'])_0x3160f2=_0x581975['editing']['view']['getDomRoot'](_0x310bfd['activeChange']['rootName']);else{const _0x72aa9d=_0x581975['model']['markers']['get']('revision:'+_0x310bfd['activeChange']['id']);_0x3160f2=_0x5111b4(_0x581975['editing'],_0x72aa9d);}_0x36e0cc({'target':_0x3160f2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa3b11d,currentChangeNumber:_0x1fae47,numberOfChanges:_0x28eb3,isReady:_0x141d21,isEnabled:_0x3da6c0}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x3da6c0&&_0x141d21&&_0x28eb3)&&(!_0xa3b11d||(0x1===this['_step']?_0x1fae47<_0x28eb3-0x1:_0x1fae47>0x0));}}class vi extends _0x126ab4{constructor(_0x55d7a3){super(_0x55d7a3);const _0x531fbe=this['bindTemplate'],_0x5bc3d6=new _0xc3e667(_0x55d7a3),_0x2c5dfd=new _0xc3e667(_0x55d7a3);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',(_0x380c5b,_0x257d80)=>_0x380c5b&&_0x257d80>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x49d888,_0x42befd,_0x1c3ab7,_0x6d86b7)=>{if(!_0x49d888)return m(_0x55d7a3,'Loading...');if(!_0x1c3ab7)return m(_0x55d7a3,'No\x20changes');const _0x4afade=m(_0x55d7a3,'NUMBER_OF_CHANGES',_0x1c3ab7);return _0x6d86b7?m(_0x55d7a3,'X_OF_Y_CHANGES',[_0x42befd+0x1,_0x1c3ab7]):_0x4afade;}),_0x5bc3d6['set']({'label':m(_0x55d7a3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x40aa8b}),_0x2c5dfd['set']({'label':m(_0x55d7a3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x286aff}),_0x5bc3d6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2c5dfd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5bc3d6['on']('execute',()=>this['fire']('execute','backward')),_0x2c5dfd['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',_0x531fbe['if']('_isStatusLabelVisible','ck-hidden',_0x205afb=>!_0x205afb)]},'children':[{'text':_0x531fbe['to']('isNavigationMode',_0x36b762=>_0x36b762?m(_0x55d7a3,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x55d7a3,'Total')+':\x20')}]},{'text':_0x531fbe['to']('_statusText')}]},new _0x550144(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5bc3d6,_0x2c5dfd]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x37efbb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xc4bc7e=this['editor']['editing']['view'];_0xc4bc7e['change'](_0xa2bd2c=>{for(const _0x3d8c31 of _0xc4bc7e['document']['roots'])_0xa2bd2c['addClass'](oe,_0x3d8c31);});}['hide'](){const _0x1cd157=this['editor']['editing']['view'];_0x1cd157['change'](_0x207607=>{for(const _0x2733a8 of _0x1cd157['document']['roots'])_0x207607['removeClass'](oe,_0x2733a8);});}}class v extends _0x37efbb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,wi];}['init'](){const _0x3ff263=this['editor'],_0x546dd0=_0x3ff263['plugins']['get'](u),_0x1e0178=_0x3ff263['plugins']['get'](wi);_0x3ff263['ui']['componentFactory']['add']('exitToEditing',_0x4da7c3=>{const _0x5d902f=new _0xc3e667(_0x4da7c3);return _0x5d902f['set']({'label':m(_0x4da7c3,'Back\x20to\x20editing'),'icon':_0x1aee6f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5d902f,'execute',()=>{_0x3ff263['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5d902f;}),_0x3ff263['ui']['componentFactory']['add']('restoreRevision',_0x2d57a8=>{const _0x598e4e=new _0xc3e667(_0x2d57a8);return _0x598e4e['set']({'label':m(_0x2d57a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x598e4e['bind']('isEnabled')['to'](_0x3ff263['commands']['get']('restoreRevision')),this['listenTo'](_0x598e4e,'execute',()=>_0x3ff263['execute']('restoreRevision')),_0x598e4e;}),_0x3ff263['ui']['componentFactory']['add']('changesNavigation',_0x378d80=>{const _0x3f5705=new vi(_0x378d80),_0x2827a5=_0x3ff263['commands']['get']('showPreviousChange'),_0x2fbdc7=_0x3ff263['commands']['get']('showNextChange');return _0x3f5705['bind']('isBackwardNavigationEnabled')['to'](_0x2827a5,'isEnabled'),_0x3f5705['bind']('isForwardNavigationEnabled')['to'](_0x2fbdc7,'isEnabled'),_0x3f5705['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x546dd0),this['listenTo'](_0x3f5705,'execute',(_0x306f05,_0x41745b)=>{_0x3ff263['execute']('forward'===_0x41745b?'showNextChange':'showPreviousChange');}),_0x3f5705;}),_0x1e0178['show'](),_0x546dd0['on']('change:isReady',(_0x38b442,_0x486c2b,_0x40c63b)=>{_0x40c63b?_0x1e0178['hide']():_0x1e0178['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x238ba4,_0x3e34ff){super(_0x238ba4,_0x3e34ff);const _0x55014b=this['bindTemplate'];this['set']({'label':m(_0x238ba4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x238ba4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55014b['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 _0x1f0606=this['fieldView']['element'];this['_tooltipString']=_0x1f0606['scrollWidth']>_0x1f0606['clientWidth']&&_0x1f0606['value']||'';}}class ni extends _0x126ab4{constructor(_0x2b82ca,_0x482336,_0x31fb93){super(_0x2b82ca);const _0x42a8d0=new _0x860f76();_0x42a8d0['set']({'content':_0x44584d,'viewBox':'0\x200\x2011\x2010'});const _0x58618f=['ck','ck-revision-history-sidebar__revision-author'];_0x31fb93&&_0x58618f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x587f1d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2b82ca,_0x31fb93?'Revision\x20creator':'Revision\x20author')},'children':[_0x42a8d0,_0x482336['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x58618f},'children':_0x587f1d});}}function ai(_0x774f89,_0x327e8e){const _0x196aa4=_0x774f89['bindTemplate'],_0x2b77a=_0x774f89['locale'],_0x3a5c49=_0x3295c4(_0x2b77a);_0x3a5c49['panelPosition']='sw';const _0x1778b3=function(_0x2ea63e,_0x2e847f){const _0x5e882e=function(_0x4cac30,_0x48b51e){const _0x4ea083=_0x4cac30['locale'],_0x2fc7bb={'Compare\x20against\x20selected':m(_0x4ea083,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4ea083,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4ea083,'Restore\x20this\x20revision')};return _0x48b51e['map'](_0x18547c=>{const _0x15c8d7=_0x2fc7bb[_0x18547c['name']];return _0x15c8d7&&_0x15c8d7!==_0x18547c['name']&&(_0x18547c['name']=_0x15c8d7),_0x18547c;});}(_0x2ea63e,_0x2e847f),_0x29d6c7=new _0x10ef23();for(const _0x1b3d9e of _0x5e882e){const _0x5ae775={'type':'button','model':new to({'label':_0x1b3d9e['name'],'class':_0x1b3d9e['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b3d9e['action']})};_0x5ae775['model']['bind']('isEnabled')['to'](_0x2ea63e,'isActionsDropdownOpen',_0x1198ef=>'function'!=typeof _0x1b3d9e['isEnabled']||(!_0x1198ef||_0x1b3d9e['isEnabled'](_0x2ea63e))),_0x29d6c7['add'](_0x5ae775);}return _0x29d6c7;}(_0x774f89,_0x327e8e);return _0x774f89['bind']('isActionsDropdownOpen')['to'](_0x3a5c49,'isOpen'),_0x3a5c49['buttonView']['set']({'label':m(_0x2b77a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3435b5}),_0x3a5c49['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x196aa4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x196aa4['to'](_0x267999=>_0x267999['stopPropagation']())}}),_0x3a5c49['on']('execute',_0xe5db4c=>{_0x774f89['isReady']&&'function'==typeof _0xe5db4c['source']['_action']&&_0xe5db4c['source']['_action'](_0x774f89);}),_0x593ae8(_0x3a5c49,_0x1778b3,{'role':'menu'}),_0x3a5c49['listenTo'](_0x774f89,'change:isActionsDropdownOpen',(_0x41bad2,_0x1981d6,_0x16dd1a)=>{if(_0x16dd1a)for(const _0x118fb9 of _0x3a5c49['listView']['items']){const _0x2d60ea=_0x118fb9['children']['first'],_0x2be46c=_0x327e8e['find'](_0x2db010=>_0x2db010['action']===_0x2d60ea['_action'])['isVisible'];_0x118fb9['isVisible']=void 0x0===_0x2be46c||_0x2be46c(_0x774f89);}}),_0x3a5c49;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x35bf1a(_0x126ab4){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4505c3,_0x44e5cc,_0x5649ca,_0x420039){super(_0x4505c3);const _0xfcd226=this['bindTemplate'],_0x287512=function(_0x37fa0f,_0x3ed0d7){const _0x171a74=Array['from'](_0x3ed0d7['authors'])['filter'](_0x5ae620=>_0x5ae620!=_0x3ed0d7['creator']);return _0x3ed0d7['creator']&&_0x171a74['unshift'](_0x3ed0d7['creator']),_0x171a74['map'](_0x350ccc=>new ni(_0x37fa0f,_0x350ccc,_0x350ccc==_0x3ed0d7['creator']));}(_0x4505c3,_0x44e5cc);this['id']=_0x44e5cc['id'],this['_revision']=_0x44e5cc,this['_requireRevisionName']=_0x420039,this['bind']('name','createdAt')['to'](_0x44e5cc),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x57468b=>{return _0xd35e31=_0x4505c3['uiLanguage'],(_0x265112=_0x57468b)['toLocaleDateString'](_0xd35e31,{'month':'long','day':'numeric'})+',\x20'+_0x265112['toLocaleTimeString'](_0xd35e31,{'hour':'numeric','minute':'numeric'});var _0xd35e31,_0x265112;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x4505c3,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x141c8c=>_0x141c8c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x41496e,_0x332e99)=>_0x41496e&&_0x332e99),this['revisionActionsView']=_0x5649ca&&_0x5649ca['length']?ai(this,_0x5649ca):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xfcd226['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xfcd226['if']('isEnabled','ck-disabled',_0x3c7a48=>!_0x3c7a48),_0xfcd226['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xfcd226['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xfcd226['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':_0xfcd226['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':_0x287512}]},this['revisionActionsView']],'on':{'click':_0xfcd226['to'](_0x3ba263=>{_0x3ba263['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xbf984d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xbf984d,'change',()=>{this['_requireRevisionName']&&!_0xbf984d['value']||this['fire']('setName',{'id':this['id'],'name':_0xbf984d['value']}),_0xbf984d['value']||(_0xbf984d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function pi(_0x526eaf,_0x39932c){const _0x3ecb49=_0x1006f5['fromJSDate'](_0x526eaf)['setLocale'](_0x39932c),_0x1fdc52=_0x1006f5['local'](),_0x68f210=_0x1fdc52['minus']({'days':0x1})['startOf']('day');let _0x2787fd,_0x263a2e;return _0x3ecb49['hasSame'](_0x1fdc52,'day')?(_0x2787fd=_0x3ecb49['startOf']('day')['toJSDate'](),_0x263a2e=_0x3ecb49['toRelativeCalendar']()):_0x3ecb49['hasSame'](_0x68f210,'day')?(_0x2787fd=_0x68f210['toJSDate'](),_0x263a2e=_0x3ecb49['toRelativeCalendar']()):_0x3ecb49['hasSame'](_0x1fdc52,'week')?(_0x2787fd=_0x3ecb49['startOf']('week')['toJSDate'](),_0x263a2e=_0x3ecb49['weekdayLong']||''):_0x3ecb49['hasSame'](_0x1fdc52,'year')?(_0x2787fd=_0x3ecb49['startOf']('month')['toJSDate'](),_0x263a2e=_0x3ecb49['monthLong']||''):(_0x2787fd=_0x3ecb49['startOf']('year')['toJSDate'](),_0x263a2e=String(_0x3ecb49['year'])),{'startDate':_0x2787fd,'localizedPeriodName':_0x263a2e};}class bi extends _0x126ab4{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x281a03,_0x4ef2cf,_0x27394e,_0x1c1139){super(_0x281a03);const _0x357863=pi(_0x4ef2cf,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4ef2cf,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x27394e,this['_requireRevisionName']=_0x1c1139,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':_0x357863}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4ed394){const _0x1721d9=new _i(this['locale'],_0x4ed394,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1721d9);}['removeRevision'](_0x565708){const _0x160e49=this['revisionViews']['find'](_0x41e1ec=>_0x41e1ec['id']===_0x565708['id']);this['revisionViews']['remove'](_0x160e49);}}class fi extends _0x126ab4{constructor(_0x28fc06){super(_0x28fc06);const _0x337a0b=new _0x860f76();_0x337a0b['content']=_0x5f4d6c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x337a0b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x28fc06,'Revision\x20history')]}]});}}class Ri extends _0x126ab4{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x48ba11,_0x54ca74,_0x2b5440,_0x7acbb1){super(_0x48ba11);const _0x50b8e9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x54ca74,this['_revisionActions']=_0x2b5440,this['_requireRevisionName']=_0x7acbb1,this['on']('select',(_0x563a57,_0x24bd0f)=>{this['fire']('revisionSelected',_0x24bd0f);}),this['on']('setName',(_0x4f80e0,_0x44bcf1)=>{this['fire']('revisionSetName',_0x44bcf1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x48ba11),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x50b8e9['if']('isEnabled','ck-disabled',_0xba783=>!_0xba783)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x468c93 of this['_revisions'])this['_addRevision'](_0x468c93);this['_revisions']['on']('add',(_0x1533ae,_0x21fab7)=>{this['_addRevision'](_0x21fab7);}),this['_revisions']['on']('remove',(_0x3fa953,_0x5de6cb)=>{this['_removeRevision'](_0x5de6cb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x580850=>_0x580850['revisionViews']['map'](_0x2c95e3=>_0x2c95e3))['flat']();}['selectRevision'](_0x128644){for(const _0x4150e4 of this['revisionViews'])_0x128644&&_0x128644['id']===_0x4150e4['id']?_0x4150e4['select']():_0x4150e4['deselect']();}['highlightRevisions'](_0x329446){for(const _0x204fc2 of this['revisionViews'])_0x329446['some'](({id:_0x59f53a})=>_0x59f53a===_0x204fc2['id'])?_0x204fc2['highlight']():_0x204fc2['unhighlight']();}['_addRevision'](_0x593e51){const _0x4aa724=pi(_0x593e51['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x11bae7=this['timePeriodViews']['get'](0x0);_0x11bae7&&_0x11bae7['startDate']['getTime']()===_0x4aa724['getTime']()||(_0x11bae7=new bi(this['locale'],_0x4aa724,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x11bae7)),_0x11bae7['addRevision'](_0x593e51);}['_removeRevision'](_0x478f22){const _0x419aee=pi(_0x478f22['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x419aee)['removeRevision'](_0x478f22);}['_getTimePeriodViewByStartDate'](_0x1aa670){return this['timePeriodViews']['find'](_0x28b133=>_0x28b133['startDate']['getTime']()===_0x1aa670['getTime']());}}class d extends _0x37efbb{['_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[u];}constructor(
|
|
30
|
-
_0x57ec93(_0x18abd4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3fd2f7,_0x27b4a9){super(_0x27b4a9),this['sourceElement']=_0x3fd2f7,this['model']['document']['createRoot']();const _0x569a8c=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x569a8c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x577861,_0x489649){const _0x19886d=new this(_0x577861,_0x489649);return await _0x19886d['initPlugins'](),await _0x19886d['ui']['init'](_0x577861),await _0x19886d['data']['init'](_0x19886d['config']['get']('initialData')||''),_0x19886d['fire']('ready'),_0x19886d;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x4b71e4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc4dc27){function _0xa42d42(_0x565fe4){return _0x565fe4['map'](_0x1d6d51=>String['fromCharCode'](_0x1d6d51))['join']('');}super(_0xc4dc27),this['result']='end',_0xc4dc27[_0xa42d42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa42d42([0x76,0x69,0x65,0x77])][_0xa42d42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa42d42([0x61,0x75,0x74,0x6f]),_0xc4dc27[_0xa42d42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa42d42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa42d42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa42d42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa42d42([0x6f,0x6b])});}}class ct extends _0x4b71e4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x5b3cd4){if(super(_0x5b3cd4),!this['editor']['config']['get']('revisionHistory'))throw new _0x2520ea('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x142023=>this['_showRevisionViewer']({..._0x142023,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x322230=>this['_closeRevisionViewer'](_0x322230)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x39e880=>this['_restoreRevision'](_0x39e880)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d2491){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d2491;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x37bcb6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x37bcb6);}['getRevision'](_0x46fb3b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x46fb3b);}['getRevisions'](_0x4a6d1c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4a6d1c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x398f89=this['editor'],_0x5e3678=_0x1498a0(_0x398f89,p),_0x499d97=_0x398f89['plugins']['get']('RevisionTracker'),_0x274b2c=_0x398f89['plugins']['get']('Users')['users'];return _0x5e3678['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5e3678['lazyRoots'],(_0x5e3678['plugins']['push'](ht,u,v,class extends _0x4b71e4{static get['requires'](){return[u,'Users'];}['init'](){const _0x5b6939=this['editor']['plugins']['get']('Users');for(const _0x31298d of _0x274b2c)_0x31298d['isAnonymous']||_0x5b6939['getUser'](_0x31298d['id'])||_0x5b6939['addUser'](_0x31298d);const _0x12fb07=_0x499d97['repository']['getRevisions']();let _0x35709f=null;const _0x11bfd9=this['editor']['plugins']['get']('RevisionViewer');_0x11bfd9['adapter']=_0x499d97['adapter'],_0x11bfd9['bind']('isEnabled')['to'](_0x499d97),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x398f89,'isReadOnly',_0x48efd5=>!_0x48efd5);for(const _0x120e17 of _0x12fb07){const _0x5e9c68=null===_0x120e17['creator'];if(_0x5e9c68&&_0x120e17['toVersion']===_0x120e17['fromVersion'])continue;const _0x5acb11=_0x120e17['toJSON']();_0x11bfd9['addRevisionData'](_0x5acb11,(_0x3383cb,_0x3f1fc9,_0x17bef9)=>{if(_0x5e9c68){if(_0x35709f)_0x35709f['_update'](_0x3383cb,_0x3f1fc9);else{if(!_0x3f1fc9){const _0x31d2b7=_0x17bef9['toJSON']();_0x31d2b7['id']=_0x118ae2(),_0x499d97['saveRevision'](_0x31d2b7,_0x17bef9['toVersion'])['then'](_0x502360=>{_0x35709f=_0x502360;});}}}else _0x120e17['_update'](_0x3383cb,_0x3f1fc9);});}}},d),_0x5e3678);}['_enhanceShowRevisionViewerCallback'](){const _0x34219a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x27868a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x51b31a=this['editor']['plugins']['get']('Autosave');await _0x51b31a['save']();}else await _0x27868a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3531e2=this['editor']['plugins']['get']('Dialog');_0x3531e2['isOpen']&&_0x3531e2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x74f720=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x380ff0 of _0x74f720)_0x380ff0['class']=_0x380ff0['class']?_0x380ff0['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x586906=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x586906&&_0x586906['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x31d4a2=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x31d4a2&&_0x31d4a2['setAttribute']('tabindex','-1');}}const _0x3d235a=this['_getRevisionViewerEditorConfig']();return _0x34219a(_0x3d235a)['then'](_0x4f8665=>{return(this['_viewerEditor']=_0x4f8665,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'),_0x4f8665);})['catch'](_0x11f883=>(console['error'](_0x11f883),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2b8731=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x3c187c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x18d905 of _0x3c187c)_0x18d905['class']='ck-tab-panel_disabled'===_0x18d905['class']?'':_0x18d905['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x16d6fa=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x16d6fa&&_0x16d6fa['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x210e12=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x210e12&&_0x210e12['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2b8731(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xdb1fd4=this['editor']['plugins']['get']('Annotations');_0xdb1fd4['refreshVisibility'](),_0xdb1fd4['refreshPositioning']();}});});}['_showRevisionViewer'](_0x22cc53){const _0xf4f987=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5edcaf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3a68e3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3a68e3,_0x22cc53)['then'](_0x145d2f=>(_0x5edcaf['style']['display']='block',_0xf4f987['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x145d2f));}['_closeRevisionViewer'](_0x2265e1){const _0x56fb4b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56fb4b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2265e1['destroy']();}async['_restoreRevision'](_0x2d5c12){const _0x1e527b=this['editor'],_0x22ee1e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x214ebf=_0x1e527b['plugins']['get']('RevisionTracker'),_0x3115cc=_0x1e527b['plugins']['get']('RevisionHistoryUtils'),_0x57b4c5=_0x22ee1e['repository']['getRevision'](_0x2d5c12);let _0x213d0e,_0x1a2f0c,_0xd7bbd4;try{await _0x3115cc['loadRevisionData'](_0x57b4c5,this['adapter']),_0x213d0e=_0x3115cc['getRevisionDocumentData'](_0x57b4c5),_0x1a2f0c=_0x3115cc['getRevisionRootsAttributes'](_0x57b4c5);}catch(_0x4f935f){return void console['error'](_0x4f935f);}_0x1e527b['model']['change'](_0x1d6848=>{for(const _0x3850d1 of Array['from'](_0x1e527b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1d6848['removeMarker'](_0x3850d1);}),_0x22ee1e['isReady']=!0x1,_0x1e527b['model']['enqueueChange'](_0x106b19=>{_0x106b19['setSelection'](null),_0x106b19['removeSelectionAttribute'](_0x1e527b['model']['document']['selection']['getAttributeKeys']());const _0x3b3c86=Object['keys'](_0x213d0e);for(const _0x6162be of _0x1e527b['model']['document']['roots'])'$graveyard'!=_0x6162be['rootName']&&_0x6162be['isAttached']()&&!_0x3b3c86['includes'](_0x6162be['rootName'])&&_0x106b19['detachRoot'](_0x6162be);for(const _0x348dc6 of _0x3b3c86){let _0x259722=_0x1e527b['model']['document']['getRoot'](_0x348dc6);_0x259722&&_0x259722['isAttached']()||(_0x259722=_0x106b19['addRoot'](_0x348dc6));const _0x3e16a4=_0x1a2f0c[_0x348dc6],_0x32a065=Object['keys'](_0x3e16a4),_0x1d8dbf=_0x213d0e[_0x348dc6];for(const _0xca6e9c of _0x259722['getAttributeKeys']())_0x32a065['includes'](_0xca6e9c)||_0x106b19['removeAttribute'](_0xca6e9c,_0x259722);for(const _0x6347a1 of _0x32a065)_0x106b19['setAttribute'](_0x6347a1,_0x1a2f0c[_0x348dc6][_0x6347a1],_0x259722);_0x106b19['remove'](_0x106b19['createRangeIn'](_0x259722)),_0x106b19['insert'](_0x1e527b['data']['parse'](_0x1d8dbf,_0x259722),_0x259722,0x0);}});const _0x137dfc=m(_0x1e527b['locale'],'Restored');if(_0x57b4c5['name'])_0xd7bbd4=-0x1==_0x57b4c5['name']['indexOf'](_0x137dfc)?_0x137dfc+':\x20'+_0x57b4c5['name']:_0x57b4c5['name'];else _0xd7bbd4=_0x137dfc+':\x20'+(_0x57b4c5['createdAt']['toLocaleDateString'](_0x1e527b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x57b4c5['createdAt']['toLocaleTimeString'](_0x1e527b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x214ebf['saveRevision']({'name':_0xd7bbd4}),_0x22ee1e['isReady']=!0x0,_0x1e527b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d 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[u];}constructor(_0x543b67){super(_0x543b67),this['_revisionViewer']=_0x543b67['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3a9895=this['_revisionsRepository']['_revisions'],_0x1657fc=this['_createRevisionActions'](),_0x3f688f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x3a9895,_0x1657fc,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',(_0x16296b,_0x4ad327)=>{_0x4ad327['revisionViews']['on']('add',(_0xd55e87,_0x24bddf)=>{_0x24bddf['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)),_0x3f688f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4fc585=this['_revisionsRepository']['getRevision'](0x0);if(_0x4fc585){const _0x43f47a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4fc585['id']);this['_revisionViewer']['compare'](_0x4fc585,_0x43f47a);}}['_handleRevisionSelected'](_0x3878d6,_0x239e22){const _0xbe74b1=this['_revisionsRepository']['getRevision'](_0x239e22['id']),_0x1335f3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xbe74b1['id']);this['_revisionViewer']['compare'](_0xbe74b1,_0x1335f3);}['_handleRevisionSetName'](_0x61dffd,_0x411492){this['_revisionsRepository']['getRevision'](_0x411492['id'])['setName'](_0x411492['name']);}['_handleDiffChange'](_0x527020,_0x268430,_0x145967){const _0x4b5487=this['_revisionsRepository']['getRevisionsInDiff'](_0x145967);_0x4b5487['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b5487),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b5487[0x0]));}['_createRevisionActions'](){const _0x33cf31=this['editor'],_0x4836b0=d['availableRevisionActions'],_0xbb9e3c=_0x33cf31['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xbb9e3c['length'])return _0xbb9e3c['map'](_0x2d911e=>{const _0x44066f='string'==typeof _0x2d911e?Object['assign']({},_0x4836b0[_0x2d911e]):_0x2d911e;return _0x44066f['action']=_0x44066f['action']['bind'](this,_0x33cf31),_0x44066f['isVisible']&&(_0x44066f['isVisible']=_0x44066f['isVisible']['bind'](this,_0x33cf31)),_0x44066f;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x332629},_0x4c1d36)=>{const _0x39329b=_0x332629['get'](u),_0x3c9a48=_0x39329b['repository'];let _0x1baafd=_0x39329b['diff']['newRevisionId'],_0x2ad746=_0x4c1d36['id'];_0x3c9a48['getIndex'](_0x1baafd)>_0x3c9a48['getIndex'](_0x2ad746)&&([_0x1baafd,_0x2ad746]=[_0x2ad746,_0x1baafd]),_0x39329b['compare'](_0x1baafd,_0x2ad746);},'isVisible':({plugins:_0xdb270d},_0x7a0fa5)=>{const _0x42182e=_0xdb270d['get'](u);return!(_0x42182e['repository']['getRevisionsInDiff'](_0x42182e['diff'])['length']>0x2)&&!_0x7a0fa5['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf0aff7,{id:_0xb43d03})=>{_0xf0aff7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xb43d03);},'isVisible':({plugins:_0x33ce43},_0x5bf02b)=>!!_0x33ce43['get'](u)['repository']['getLaterVisibleRevision'](_0x5bf02b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1cf63f},{id:_0x2c8d60,revisionNameView:_0x334ef0})=>{const _0x438e82=_0x1cf63f['get'](u),_0x4740ba=_0x438e82['repository']['getEarlierVisibleRevision'](_0x2c8d60);_0x438e82['compare'](_0x2c8d60,_0x4740ba),_0x334ef0['focus'](),_0x334ef0['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5e4770,_0x38978f){super(_0x5e4770),this['_view']=_0x38978f,this['_toolbarConfig']=st(_0x5e4770['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x394260){const _0x18be1a=this['editor'],_0x5ba0e5=this['view'],_0x3854df=_0x18be1a['editing']['view'],_0xdb2515=_0x5ba0e5['editable'],_0x548a64=_0x3854df['document']['getRoot']();_0xdb2515['name']=_0x548a64['rootName'],_0x5ba0e5['render']();const _0x278318=_0xdb2515['element'];this['setEditableElement'](_0xdb2515['name'],_0x278318),_0x5ba0e5['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3854df['attachDomRoot'](_0x278318),this['_elementReplacer']['replace'](_0x394260,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3f56ac=this['view'],_0x3c18f3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3c18f3['detachDomRoot'](_0x3f56ac['editable']['name']),_0x3f56ac['destroy']();}['_initToolbar'](){const _0x34c3b2=this['view'];_0x34c3b2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x34c3b2['stickyPanel']['limiterElement']=_0x34c3b2['element'],_0x34c3b2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51cea9})=>_0x51cea9),_0x34c3b2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x34c3b2['toolbar']);}}class ii extends _0x21a7f9{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x249346,_0x332330,_0x42bcda={}){super(_0x249346),this['stickyPanel']=new _0x73ee2d(_0x249346),this['toolbar']=new _0x36ff58(_0x249346,{'shouldGroupWhenFull':_0x42bcda['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x249346,_0x332330);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x3f7666(_0x24ae32){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5c3388,_0x5f48e4){super(_0x5f48e4),this['sourceElement']=_0x5c3388,this['model']['document']['createRoot']();const _0x2214e5=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2214e5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x136cf6,_0xddbe2a){const _0x182843=new this(_0x136cf6,_0xddbe2a);return await _0x182843['initPlugins'](),await _0x182843['ui']['init'](_0x136cf6),await _0x182843['data']['init'](_0x182843['config']['get']('initialData')||''),_0x182843['fire']('ready'),_0x182843;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x37efbb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c5b16){function _0x266a74(_0x135164){return _0x135164['map'](_0x1c7387=>String['fromCharCode'](_0x1c7387))['join']('');}super(_0x5c5b16),this['result']='end',_0x5c5b16[_0x266a74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x266a74([0x76,0x69,0x65,0x77])][_0x266a74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x266a74([0x61,0x75,0x74,0x6f]),_0x5c5b16[_0x266a74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x266a74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x266a74([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x266a74([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x266a74([0x6f,0x6b])});}}class ct extends _0x37efbb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x3e8f5b){if(super(_0x3e8f5b),!this['editor']['config']['get']('revisionHistory'))throw new _0x28aaf8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4c50b6=>this['_showRevisionViewer']({..._0x4c50b6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xbc9dca=>this['_closeRevisionViewer'](_0xbc9dca)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4a6680=>this['_restoreRevision'](_0x4a6680)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2ca3a6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2ca3a6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1aed4f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1aed4f);}['getRevision'](_0x44fbde){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x44fbde);}['getRevisions'](_0x9c5768){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x9c5768||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x44ec16=this['editor'],_0x35a67a=_0x674281(_0x44ec16,p),_0x73ea35=_0x44ec16['plugins']['get']('RevisionTracker'),_0x2e7c21=_0x44ec16['plugins']['get']('Users')['users'];return _0x35a67a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x35a67a['lazyRoots'],(_0x35a67a['plugins']['push'](ht,u,v,class extends _0x37efbb{static get['requires'](){return[u,'Users'];}['init'](){const _0x2e11d8=this['editor']['plugins']['get']('Users');for(const _0x46070d of _0x2e7c21)_0x46070d['isAnonymous']||_0x2e11d8['getUser'](_0x46070d['id'])||_0x2e11d8['addUser'](_0x46070d);const _0x405ca8=_0x73ea35['repository']['getRevisions']();let _0x16a5bf=null;const _0x557257=this['editor']['plugins']['get']('RevisionViewer');_0x557257['adapter']=_0x73ea35['adapter'],_0x557257['bind']('isEnabled')['to'](_0x73ea35),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x44ec16,'isReadOnly',_0x49c9ff=>!_0x49c9ff);for(const _0x4f7b1c of _0x405ca8){const _0x5d4f4a=null===_0x4f7b1c['creator'];if(_0x5d4f4a&&_0x4f7b1c['toVersion']===_0x4f7b1c['fromVersion'])continue;const _0x37ef8f=_0x4f7b1c['toJSON']();_0x557257['addRevisionData'](_0x37ef8f,(_0x3a7c7e,_0x1aa2cd,_0x421833)=>{if(_0x5d4f4a){if(_0x16a5bf)_0x16a5bf['_update'](_0x3a7c7e,_0x1aa2cd);else{if(!_0x1aa2cd){const _0x30dd27=_0x421833['toJSON']();_0x30dd27['id']=_0x2007cb(),_0x73ea35['saveRevision'](_0x30dd27,_0x421833['toVersion'])['then'](_0x5a6352=>{_0x16a5bf=_0x5a6352;});}}}else _0x4f7b1c['_update'](_0x3a7c7e,_0x1aa2cd);});}}},d),_0x35a67a);}['_enhanceShowRevisionViewerCallback'](){const _0x138cb1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x55ba98=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x30a21d=this['editor']['plugins']['get']('Autosave');await _0x30a21d['save']();}else await _0x55ba98['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5d8c4c=this['editor']['plugins']['get']('Dialog');_0x5d8c4c['isOpen']&&_0x5d8c4c['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x5c4407=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1cf6e9 of _0x5c4407)_0x1cf6e9['class']=_0x1cf6e9['class']?_0x1cf6e9['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4f0786=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4f0786&&_0x4f0786['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x7253e9=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x7253e9&&_0x7253e9['setAttribute']('tabindex','-1');}}const _0x4b2ff7=this['_getRevisionViewerEditorConfig']();return _0x138cb1(_0x4b2ff7)['then'](_0x280eff=>{return(this['_viewerEditor']=_0x280eff,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'),_0x280eff);})['catch'](_0x57f4ae=>(console['error'](_0x57f4ae),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x346809=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x265c2c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2d6619 of _0x265c2c)_0x2d6619['class']='ck-tab-panel_disabled'===_0x2d6619['class']?'':_0x2d6619['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x7d72ec=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x7d72ec&&_0x7d72ec['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1fa222=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1fa222&&_0x1fa222['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x346809(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x159a9b=this['editor']['plugins']['get']('Annotations');_0x159a9b['refreshVisibility'](),_0x159a9b['refreshPositioning']();}});});}['_showRevisionViewer'](_0x646e56){const _0x527be0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x396c7c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3af381=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3af381,_0x646e56)['then'](_0xebd97d=>(_0x396c7c['style']['display']='block',_0x527be0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xebd97d));}['_closeRevisionViewer'](_0x7475f4){const _0x571511=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x571511['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x7475f4['destroy']();}async['_restoreRevision'](_0x1542af){const _0x571ffc=this['editor'],_0x16d6d6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5d2459=_0x571ffc['plugins']['get']('RevisionTracker'),_0x8350a1=_0x571ffc['plugins']['get']('RevisionHistoryUtils'),_0x1fd12b=_0x16d6d6['repository']['getRevision'](_0x1542af);let _0x19a505,_0x4a21a0,_0x550bc9;try{await _0x8350a1['loadRevisionData'](_0x1fd12b,this['adapter']),_0x19a505=_0x8350a1['getRevisionDocumentData'](_0x1fd12b),_0x4a21a0=_0x8350a1['getRevisionRootsAttributes'](_0x1fd12b);}catch(_0x59fe1c){return void console['error'](_0x59fe1c);}_0x571ffc['model']['change'](_0x28f654=>{for(const _0x14239b of Array['from'](_0x571ffc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x28f654['removeMarker'](_0x14239b);}),_0x16d6d6['isReady']=!0x1,_0x571ffc['model']['enqueueChange'](_0x316553=>{_0x316553['setSelection'](null),_0x316553['removeSelectionAttribute'](_0x571ffc['model']['document']['selection']['getAttributeKeys']());const _0x325024=Object['keys'](_0x19a505);for(const _0xe94793 of _0x571ffc['model']['document']['roots'])'$graveyard'!=_0xe94793['rootName']&&_0xe94793['isAttached']()&&!_0x325024['includes'](_0xe94793['rootName'])&&_0x316553['detachRoot'](_0xe94793);for(const _0x4d4709 of _0x325024){let _0x5c05fc=_0x571ffc['model']['document']['getRoot'](_0x4d4709);_0x5c05fc&&_0x5c05fc['isAttached']()||(_0x5c05fc=_0x316553['addRoot'](_0x4d4709));const _0x186810=_0x4a21a0[_0x4d4709],_0x483bb6=Object['keys'](_0x186810),_0xeef998=_0x19a505[_0x4d4709];for(const _0x3b5169 of _0x5c05fc['getAttributeKeys']())_0x483bb6['includes'](_0x3b5169)||_0x316553['removeAttribute'](_0x3b5169,_0x5c05fc);for(const _0x4e4615 of _0x483bb6)_0x316553['setAttribute'](_0x4e4615,_0x4a21a0[_0x4d4709][_0x4e4615],_0x5c05fc);_0x316553['remove'](_0x316553['createRangeIn'](_0x5c05fc)),_0x316553['insert'](_0x571ffc['data']['parse'](_0xeef998,_0x5c05fc),_0x5c05fc,0x0);}});const _0x459c8c=m(_0x571ffc['locale'],'Restored');if(_0x1fd12b['name'])_0x550bc9=-0x1==_0x1fd12b['name']['indexOf'](_0x459c8c)?_0x459c8c+':\x20'+_0x1fd12b['name']:_0x1fd12b['name'];else _0x550bc9=_0x459c8c+':\x20'+(_0x1fd12b['createdAt']['toLocaleDateString'](_0x571ffc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1fd12b['createdAt']['toLocaleTimeString'](_0x571ffc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5d2459['saveRevision']({'name':_0x550bc9}),_0x16d6d6['isReady']=!0x0,_0x571ffc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,wi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|