@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250225.0 → 0.0.0-nightly-next-20250225.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/LICENSE.md +1 -1
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/icons/arrow-down.svg +0 -1
- package/theme/icons/arrow-up.svg +0 -1
- package/theme/icons/revision-history.svg +0 -1
- package/theme/icons/user.svg +0 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3df942(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1d94b0){super(),this['id']=_0x1d94b0['id']||_0x1f968a(),this['creator']=_0x1d94b0['creator']||null,this['authors']=_0x1d94b0['authors']||[],this['diffData']=_0x1d94b0['diffData']||null,this['toVersion']=_0x1d94b0['toVersion']||0x0,this['fromVersion']=_0x1d94b0['fromVersion']||0x0,this['set']('name',_0x1d94b0['name']||''),this['set']('createdAt',_0x1d94b0['createdAt']||new Date()),this['set']('attributes',_0x1d94b0['attributes']||{});}['setName'](_0x1f9964){this['_update']({'name':_0x1f9964});}['setAttribute'](_0x43556a,_0x3b3fb3){const _0xc2765b=_0x3d1bef(this['attributes']);_0x4c6a22(_0xc2765b,_0x43556a,_0x3b3fb3),this['_update']({'attributes':_0xc2765b});}['removeAttribute'](_0x36d598){const _0x3aed92=_0x3d1bef(this['attributes']);_0x597acb(_0x3aed92,_0x36d598),this['_update']({'attributes':_0x3aed92});}['_update'](_0xdcaf5,_0x96cf9e=!0x1){let _0x2988bf=!0x1;const _0x37169e={'id':this['id']},_0x3388f7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x352815 of _0x3388f7){const _0x386ed3=_0xdcaf5[_0x352815];void 0x0!==_0x386ed3&&_0x386ed3!==this[_0x352815]&&(this[_0x352815]=_0x386ed3,_0x37169e[_0x352815]=_0x386ed3,_0x2988bf=!0x0);}_0x2988bf&&(_0x37169e['authors']&&(_0x37169e['authorsIds']=_0x37169e['authors']['map'](_0x10158a=>_0x10158a['id']),delete _0x37169e['authors']),this['fire']('_update',_0x37169e,_0x96cf9e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3cebdc=>_0x3cebdc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x314a0a{['_revisions'];static get['requires'](){return[_0x7a2999];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x59a36b){super(_0x59a36b),this['_revisions']=new _0x45da80();}['afterInit'](){!async function(_0xced79b){const _0x2a9c4c=_0x14b621([0x79,0x54,0x6d,0x30,0x32,0x35,0x6e,0x31,0x76,0x37,0x56,0x70,0x52,0x46,0x38,0x64,0x55,0x45,0x4a,0x53,0x62,0x58,0x4d,0x71,0x7a,0x50,0x65,0x72,0x6c,0x77,0x4b,0x36,0x4e,0x6f,0x42,0x67,0x34,0x33,0x43,0x49,0x6b,0x41,0x5a,0x6a,0x74,0x39,0x63,0x57,0x59,0x66,0x51,0x4c,0x61,0x78,0x47,0x4f,0x68,0x75,0x69,0x48,0x44,0x73]),_0xceb2b9=0xeb829,_0x59ac37=0x5c87b0f8,_0x591beb=0x5c80d078^_0x59ac37,_0x447471=window[_0x14b621([0x44,0x61,0x74,0x65])][_0x14b621([0x6e,0x6f,0x77])](),_0x308828=_0xced79b[_0x14b621([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d4655=new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab45d=>{_0x308828[_0x14b621([0x6f,0x6e,0x63,0x65])](_0x14b621([0x72,0x65,0x61,0x64,0x79]),_0x2ab45d);}),_0x9a09fd={[_0x14b621([0x6b,0x74,0x79])]:_0x14b621([0x45,0x43]),[_0x14b621([0x75,0x73,0x65])]:_0x14b621([0x73,0x69,0x67]),[_0x14b621([0x63,0x72,0x76])]:_0x14b621([0x50,0x2d,0x32,0x35,0x36]),[_0x14b621([0x78])]:_0x14b621([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]),[_0x14b621([0x79])]:_0x14b621([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]),[_0x14b621([0x61,0x6c,0x67])]:_0x14b621([0x45,0x53,0x32,0x35,0x36])},_0x400904=_0x308828[_0x14b621([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b621([0x67,0x65,0x74])](_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xea2942(){let _0x4d495e,_0x5c9027=null,_0x562be6=null;try{if(_0x400904==_0x14b621([0x47,0x50,0x4c]))return _0x14b621([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d495e=_0x53694a(),!_0x4d495e)return _0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d495e[_0x14b621([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x562be6=_0x582e5f(_0x4d495e[_0x14b621([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d495e[_0x14b621([0x6a,0x74,0x69])])),await _0x2d83e7()?_0xf6fb8b()?_0x52c29d()?_0x14b621([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e317()?(_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b621([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9027=_0xdf9aff(_0x14b621([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b621([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c9027=_0xdf9aff(_0x14b621([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b409f()):_0x14b621([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b621([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x201b7e){return _0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52c29d(){const _0x29df70=[_0x14b621([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b621([0x74,0x72,0x69,0x61,0x6c])][_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x447471/0x3e8:0xe10*_0x591beb;return _0x4d495e[_0x14b621([0x65,0x78,0x70])]<_0x29df70;}function _0xf6fb8b(){const _0x13b91a=_0x4d495e[_0x14b621([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13b91a)return!0x1;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x2a])))return!0x0;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x52,0x48])))return!0x0;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x52,0x52,0x48]))){if(_0x24bf3b())return!0x0;if(_0x3e1979()||_0x286398())return!0x0;}return!0x1;}function _0x40e317(){const _0x139620=_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x139620||0x0==_0x139620[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bcde0}=new URL(window[_0x14b621([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x139620[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcde0))return!0x0;const _0x5a6bf8=_0x5bcde0[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e]));return _0x139620[_0x14b621([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52c80c=>_0x52c80c[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x2a])))[_0x14b621([0x6d,0x61,0x70])](_0x3134da=>_0x3134da[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e])))[_0x14b621([0x73,0x6f,0x6d,0x65])](_0x538076=>_0x5a6bf8[_0x14b621([0x65,0x76,0x65,0x72,0x79])]((_0x3273ac,_0x51f19d)=>_0x538076[_0x51f19d]===_0x3273ac||_0x538076[_0x51f19d]===_0x14b621([0x2a])));}function _0x4b409f(){return _0x5c9027&&_0x562be6?new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x619109,_0x2a1f40)=>{_0x5c9027[_0x14b621([0x74,0x68,0x65,0x6e])](_0x619109,_0x2a1f40),_0x562be6[_0x14b621([0x74,0x68,0x65,0x6e])](_0x45b014=>{_0x45b014!=_0x14b621([0x56,0x61,0x6c,0x69,0x64])&&_0x619109(_0x45b014);},_0x2a1f40);}):_0x5c9027||_0x562be6||_0x14b621([0x56,0x61,0x6c,0x69,0x64]);}}function _0x582e5f(_0x4b6925,_0x4d9d2f){return new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f820b=>{if(_0x392e55())return _0x2f820b(_0x14b621([0x56,0x61,0x6c,0x69,0x64]));_0x508412(),_0x308828[_0x14b621([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x199782=!0x1;const _0x639339=_0x1f968a();function _0x55d287(_0x42b0fa){return!!_0x42b0fa&&(typeof _0x42b0fa===_0x14b621([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42b0fa===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42b0fa[_0x14b621([0x74,0x68,0x65,0x6e])]===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42b0fa[_0x14b621([0x63,0x61,0x74,0x63,0x68])]===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bc47b(_0x4e7a06){_0xc4e980(_0x4e7a06)[_0x14b621([0x74,0x68,0x65,0x6e])](_0x239eb5=>{if(!_0x239eb5||_0x239eb5[_0x14b621([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b621([0x6f,0x6b]))return _0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x280173(_0x3b6d5c(_0x639339+_0x4d9d2f))!=_0x239eb5[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b621([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b621([0x74,0x68,0x65,0x6e])](_0x511488=>(_0x5e4558(),_0x511488),()=>{const _0x1947ae=_0x1a4fbb();return null==_0x1947ae?(_0x5e4558(),_0x14b621([0x56,0x61,0x6c,0x69,0x64])):_0x14b621(_0x447471-_0x1947ae>(0x788b34f8^_0x59ac37)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b621([0x74,0x68,0x65,0x6e])](_0x2f820b)[_0x14b621([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a8d3b=0x5cb15e78^_0x59ac37;function _0x5e4558(){const _0x7463b=_0x14b621([0x6c,0x6c,0x63,0x74,0x2d])+_0x280173(_0x3b6d5c(_0x4b6925)),_0x56a14c=_0x36be7f(_0x280173(window[_0x14b621([0x4d,0x61,0x74,0x68])][_0x14b621([0x63,0x65,0x69,0x6c])](_0x447471/_0x2a8d3b)));window[_0x14b621([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b621([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7463b,_0x56a14c);}function _0x1a4fbb(){const _0x129f1b=_0x14b621([0x6c,0x6c,0x63,0x74,0x2d])+_0x280173(_0x3b6d5c(_0x4b6925)),_0x12ff20=window[_0x14b621([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b621([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x129f1b);return _0x12ff20?window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36be7f(_0x12ff20),0x10)*_0x2a8d3b:null;}function _0xc4e980(_0x1c9add){return new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bd69,_0x1b025f)=>{_0x1c9add[_0x14b621([0x74,0x68,0x65,0x6e])](_0x16bd69,_0x1b025f),window[_0x14b621([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b025f,0x5c866438^_0x59ac37);});}}_0x308828[_0x14b621([0x6f,0x6e])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xace790,_0x10667f)=>{if(_0x10667f[0x0]!=_0x4b6925)return _0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10667f[0x1]={..._0x10667f[0x1],[_0x14b621([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x639339};},{[_0x14b621([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b621([0x68,0x69,0x67,0x68])}),_0x308828[_0x14b621([0x6f,0x6e])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x231b3b=>{_0x55d287(_0x231b3b[_0x14b621([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x199782=!0x0,_0x1bc47b(_0x231b3b[_0x14b621([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b621([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b621([0x6c,0x6f,0x77])}),_0x3d4655[_0x14b621([0x74,0x68,0x65,0x6e])](()=>{_0x199782||_0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x392e55(){return _0x308828[_0x14b621([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b621([0x76,0x69,0x65,0x77])][_0x14b621([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b621([0x61,0x75,0x74,0x6f]);}function _0x508412(){_0x308828[_0x14b621([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b621([0x76,0x69,0x65,0x77])][_0x14b621([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b621([0x61,0x75,0x74,0x6f]);}}function _0xdf9aff(_0x283b07){const _0x1590a4=[new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c87f0=>setTimeout(_0x4c87f0,0x5c8e8e34^_0x59ac37)),_0x3d4655[_0x14b621([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a23c=>{const _0x24633b=0x5c87b0ff^_0x59ac37,_0x3026f5=_0xced79b[_0x14b621([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x24b795(){_0x3026f5[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x24633b&&_0x13a23c();}_0x24b795(),_0x3026f5[_0x14b621([0x6f,0x6e])](_0x14b621([0x61,0x64,0x64]),_0x24b795);})),new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e0b66=>{function _0x2c8549(){for(const _0x18858c in window)if(window[_0x14b621([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14b621([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18858c))&&window[_0x18858c]==_0xceb2b9)return _0x2e0b66();_0x308828[_0x14b621([0x73,0x74,0x61,0x74,0x65])]!=_0x14b621([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14b621([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c8549,0x5c87a370^_0x59ac37);}_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2c8549();})];return window[_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b621([0x72,0x61,0x63,0x65])](_0x1590a4)[_0x14b621([0x74,0x68,0x65,0x6e])](()=>_0x283b07);}async function _0xfb44a5(){if(await _0x3d4655,_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5e5e90=_0xced79b[_0x14b621([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x24b5f5=_0xced79b[_0x14b621([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])](_0x5e5e90[_0x14b621([0x69,0x64])]),_0x180c51=_0x4d6ca4(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x180c51[_0x14b621([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5e5e90['id'],_0x24b5f5?_0x24b5f5['id']:null,!0x0),_0x180c51[_0x14b621([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x180c51[_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x180c51[_0x14b621([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x38c732,void(_0x180c51[_0x14b621([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x38c732);}if(_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x45db0b=_0x4d6ca4(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x45db0b[_0x14b621([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x45db0b[_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x45db0b[_0x14b621([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x38c732,_0x45db0b[_0x14b621([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x38c732;}_0x308828[_0x14b621([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b621([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38c732,_0x308828[_0x14b621([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b621([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38c732,_0x308828[_0x14b621([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b621([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24bf3b(){return _0x226888(_0x14b621([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d6ca4(_0x14b621([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14b621([0x73,0x74,0x61,0x74,0x65])]==_0x14b621([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e1979(){return _0x226888(_0x14b621([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 _0x286398(){return _0x226888(_0x14b621([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ce0d0(_0x1ac392){const _0x2e88bd=_0x54ee4f();_0x308828[_0x2e88bd]=_0x14b621([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])+_0x1ac392,_0x1ac392[_0x14b621([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14b621([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54ee4f()]=_0xceb2b9),_0x1ac392!=_0x14b621([0x56,0x61,0x6c,0x69,0x64])&&_0xfb44a5();}function _0x54ee4f(){const _0x2158d9=window[_0x14b621([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b621([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b621([0x6e,0x6f,0x77])]())[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b621([0x2e]),'');let _0x329130=_0x14b621([0x79]);for(let _0x17231f=0x0;_0x17231f<_0x2158d9[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17231f+=0x2){let _0x5362f9=window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2158d9[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17231f,_0x17231f+0x2));_0x5362f9>=_0x2a9c4c[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5362f9-=_0x2a9c4c[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x329130+=_0x2a9c4c[_0x5362f9];}return _0x329130;}function _0x53694a(){const _0x8668c0=_0x400904[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e]));if(0x3!=_0x8668c0[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4900ad(_0x8668c0[0x1]);function _0x4900ad(_0x66d169){const _0x4091f2=_0x1bfaa0(_0x66d169);return _0x4091f2&&_0x5e4d3f()?_0x4091f2:null;function _0x5e4d3f(){const _0x3fe3dd=_0x4091f2[_0x14b621([0x6a,0x74,0x69])],_0x1edc49=window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fe3dd[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fe3dd[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504532={..._0x4091f2,[_0x14b621([0x6a,0x74,0x69])]:_0x3fe3dd[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fe3dd[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504532[_0x14b621([0x76,0x63])],_0x3b6d5c(_0x504532)==_0x1edc49;}}}async function _0x2d83e7(){let _0x14a801=!0x0;try{const _0x50b36c=_0x400904[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e])),[_0xa6b8d0,_0x31b922,_0x519a41]=_0x50b36c;return _0x2ab846(_0xa6b8d0),await _0x51a0e8(_0xa6b8d0,_0x31b922,_0x519a41),_0x14a801;}catch(_0x2f0d1){return!0x1;}function _0x2ab846(_0x44e1b1){const _0x300e9b=_0x1bfaa0(_0x44e1b1);_0x300e9b&&_0x300e9b[_0x14b621([0x61,0x6c,0x67])]==_0x14b621([0x45,0x53,0x32,0x35,0x36])||(_0x14a801=!0x1);}async function _0x51a0e8(_0xcf8236,_0x2e589c,_0x2fb8ff){const _0x4abd5e=window[_0x14b621([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b621([0x66,0x72,0x6f,0x6d])](_0xea760e(_0x2fb8ff),_0xbffabb=>_0xbffabb[_0x14b621([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d2e4c=new window[(_0x14b621([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b621([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcf8236+_0x14b621([0x2e])+_0x2e589c),_0xae4422=window[_0x14b621([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b621([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xae4422)return;const _0x19fac6=await _0xae4422[_0x14b621([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b621([0x6a,0x77,0x6b]),_0x9a09fd,{[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x45,0x43,0x44,0x53,0x41]),[_0x14b621([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b621([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xae4422[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x45,0x43,0x44,0x53,0x41]),[_0x14b621([0x68,0x61,0x73,0x68])]:{[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19fac6,_0x4abd5e,_0x2d2e4c)||(_0x14a801=!0x1);}}function _0x1bfaa0(_0x321f46){return _0x321f46[_0x14b621([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b621([0x65,0x79]))?JSON[_0x14b621([0x70,0x61,0x72,0x73,0x65])](_0xea760e(_0x321f46)):null;}function _0xea760e(_0x257e64){return window[_0x14b621([0x61,0x74,0x6f,0x62])](_0x257e64[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b621([0x2b]))[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b621([0x2f])));}function _0x3b6d5c(_0x128037){let _0x5d4803=0x1505;function _0x5a322c(_0x12ce8d){for(let _0x33edff=0x0;_0x33edff<_0x12ce8d[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33edff++){const _0x54f07f=_0x12ce8d[_0x14b621([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33edff);_0x5d4803=(_0x5d4803<<0x5)+_0x5d4803+_0x54f07f,_0x5d4803&=_0x5d4803;}}function _0xbed42(_0x1798a4){Array[_0x14b621([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1798a4)?_0x1798a4[_0x14b621([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbed42):_0x1798a4&&typeof _0x1798a4==_0x14b621([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b621([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1798a4)[_0x14b621([0x73,0x6f,0x72,0x74])]()[_0x14b621([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10e658,_0x2ad5cb])=>{_0x5a322c(_0x10e658),_0xbed42(_0x2ad5cb);}):_0x5a322c(window[_0x14b621([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1798a4));}return _0xbed42(_0x128037),_0x5d4803>>>0x0;}function _0x280173(_0x48c9b9){return _0x48c9b9[_0x14b621([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b621([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b621([0x30]));}function _0x36be7f(_0x44cda7){return _0x44cda7[_0x14b621([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b621([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b621([0x6a,0x6f,0x69,0x6e])]('');}function _0x226888(_0x2f48b5){return _0x308828[_0x14b621([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b621([0x68,0x61,0x73])](_0x2f48b5);}function _0x4d6ca4(_0x3f15fb){return _0x308828[_0x14b621([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b621([0x67,0x65,0x74])](_0x3f15fb);}function _0x38c732(){}function _0x14b621(_0x29cea7){return _0x29cea7['map'](_0x47289b=>String['fromCharCode'](_0x47289b))['join']('');}_0x4ce0d0(await _0xea2942());}(this);}['createRevision'](_0x8e856){const _0x34ee40=this['editor']['plugins']['get']('Users');return new a({'id':_0x8e856['id'],'name':_0x8e856['name'],'creator':_0x8e856['creatorId']?_0x34ee40['getUser'](_0x8e856['creatorId']):null,'diffData':_0x8e856['diffData']||_0x8e856['data'],'authors':_0x8e856['authorsIds']['map'](_0x3bd56c=>_0x34ee40['getUser'](_0x3bd56c)),'createdAt':new Date(_0x8e856['createdAt']),'attributes':_0x8e856['attributes'],'fromVersion':_0x8e856['fromVersion'],'toVersion':_0x8e856['toVersion']});}['addRevision'](_0x40faf3,_0x43bf8e=0x0){this['_revisions']['add'](_0x40faf3,_0x43bf8e);}['getRevision'](_0x8388df){return this['_revisions']['get'](_0x8388df);}['getRevisions'](_0x275b3d={'toJSON':!0x1}){const _0x199058=Array['from'](this['_revisions']);return _0x199058['reverse'](),_0x275b3d['toJSON']?_0x199058['map'](_0x4db1f5=>_0x4db1f5['toJSON']()):_0x199058;}['getIndex'](_0x2b496f){return this['_revisions']['getIndex'](_0x2b496f);}['getEarlierVisibleRevision'](_0x214782){const [,_0x1ca0bd]=this['getRevisionsIterator'](_0x214782,{'direction':'earlier'});return _0x1ca0bd;}['getLaterVisibleRevision'](_0x365197){const [,_0x3daaa3]=this['getRevisionsIterator'](_0x365197,{'direction':'later'});return _0x3daaa3;}['getRevisionsInDiff'](_0x10bc22){const _0x1382bd=[];for(const _0x3526dd of this['getRevisionsIterator'](_0x10bc22['newRevisionId']))if(_0x1382bd['push'](_0x3526dd),_0x3526dd['id']===_0x10bc22['oldRevisionId'])break;return _0x1382bd;}*['getRevisionsIterator'](_0x5f1878,{direction:_0x2244c6='earlier',filter:_0x1f6284=()=>!0x0}={}){const _0x393b57='earlier'===_0x2244c6?0x1:-0x1;let _0x31a8e8=this['_revisions']['get'](_0x5f1878),_0x13c9ce=this['getIndex'](_0x31a8e8);for(yield _0x31a8e8;_0x31a8e8;){if(_0x13c9ce+=_0x393b57,_0x31a8e8=this['getRevision'](_0x13c9ce),!_0x31a8e8)return;_0x1f6284(_0x31a8e8)&&(yield _0x31a8e8);}}}function m(_0x1ba0c1,_0x135308,_0x441533){const t=_0x1ba0c1['t'];switch(_0x135308){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'},_0x441533);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x441533);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0xe6e3ea,'a':_0x10d9e1,'e':_0x597b98,'r':_0x27d44b,'u':_0xd4e326};class l extends _0x314a0a{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x7a2999,j,_0x4b2458];}constructor(_0x21943d){super(_0x21943d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b2ba9=_0x1f968a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b2ba9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x288642=this['repository']['getRevision'](0x0),_0x5cc797=_0x288642&&null===_0x288642['creator']?_0x288642:null;if(this['_continueCurrentRevision']=!!_0x5cc797&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x338f25=this['_source']['getCurrentRevisionId'](),_0x26fe00=this['repository']['getRevision'](_0x338f25);if(_0x26fe00)this['_startingVersion']=_0x26fe00['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xec1f5b=this['_source']['history']['_operations']['find'](_0x36fc55=>!_0x36fc55['_isInit']),_0x2ad352=_0xec1f5b?_0xec1f5b['baseVersion']:this['_source']['history']['version'];_0x288642?(_0x288642['toVersion']<_0x2ad352&&_0x288642['_update']({'toVersion':_0x2ad352}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id'],this['_startingVersion']=_0x5cc797['fromVersion']):(this['_startingVersion']=_0x288642['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ad352,this['_continueCurrentRevision']=!0x1);}}else _0x5cc797&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5cc797['toVersion'],this['editor']['model']['document']['history']['version']),_0x5cc797['fromVersion']===_0x5cc797['toVersion']?(0x0!==_0x5cc797['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id'],this['_startingVersion']=_0x5cc797['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',_0xdbe285=>!_0xdbe285),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x223495=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3be0bf;for(const _0xe8fbce in _0x223495){const _0x48ca95=_0xe8fbce,_0x326949=_0x223495[_0x48ca95];if('revisionHistoryLicenseKeyValid'==_0x326949||'revisionHistoryLicenseKeyInvalid'==_0x326949||'revisionHistoryLicenseKeyExpired'==_0x326949||'revisionHistoryLicenseKeyDomainLimit'==_0x326949||'revisionHistoryLicenseKeyNotAllowed'==_0x326949||'revisionHistoryLicenseKeyEvaluationLimit'==_0x326949||'revisionHistoryLicenseKeyTrialLimit'==_0x326949||'revisionHistoryLicenseKeyUsageLimit'==_0x326949){delete _0x223495[_0x48ca95],_0x3be0bf=_0x326949,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3be0bf&&_0x223495['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3be0bf&&_0x223495['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3be0bf&&_0x223495['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x531386=this['repository']['getRevision'](0x0),_0x146a50=await this['getRevisionDocumentData'](_0x531386),_0x4d1432=await this['getRevisionRootsAttributes'](_0x531386);this['_replaceEditorDataWithRevisionData'](_0x146a50,_0x4d1432);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2416b2){this['_source']=_0x2416b2;}async['update'](){const _0xedeab6=await this['_source']['getLatestVersion']();if(_0xedeab6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3b3b3b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xedeab6});_0x3b3b3b['authors']=_0x3b3b3b['authorsIds']['map'](_0xa99643=>this['editor']['plugins']['get']('Users')['getUser'](_0xa99643)),this['currentRevision']['_update'](_0x3b3b3b);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x30f531={},_0x226aa9=null){const _0x5411a9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x226aa9>this['currentRevision']['toVersion']&&(_0x226aa9=null),null===_0x226aa9&&(_0x226aa9=await this['_source']['getLatestVersion']());const _0x393388=this['_getFromVersion'](_0x226aa9),_0x4d89b3=this['buildRevisionData']({'from':_0x393388,'to':_0x226aa9});if(this['currentRevision']['toVersion']<_0x226aa9){const _0x1a253c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x226aa9,'to':_0x226aa9});_0x1a253c['authors']=[],_0x1a253c['authorsIds']=[],_0x1a253c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a253c,!0x0),delete _0x1a253c['authors'],_0x5411a9['push'](_0x1a253c);}_0x30f531['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30f531['name']=_0x30f531['name']||null,_0x30f531['id']=_0x30f531['id']||_0x1f968a(),_0x30f531={..._0x30f531,..._0x4d89b3};const _0x95ee99=this['addRevisionData'](_0x30f531);_0x5411a9['push'](_0x30f531);const _0x14a9d1=this['repository']['getIndex'](_0x95ee99);if(0x0!==_0x14a9d1){const _0x33a2c1=this['repository']['getRevision'](_0x14a9d1-0x1);if(_0x33a2c1['fromVersion']!==_0x226aa9){const _0x306bd3=this['_revisionDataBuilder']['getData'](_0x226aa9,_0x33a2c1['toVersion']),_0x10357d={'id':_0x33a2c1['id'],'diffData':_0x306bd3['diffData'],'authorsIds':_0x306bd3['authorsIds'],'authors':_0x306bd3['authorsIds']['map'](_0x400b73=>this['editor']['plugins']['get']('Users')['getUser'](_0x400b73)),'fromVersion':_0x226aa9};_0x33a2c1===this['currentRevision']&&(_0x10357d['createdAt']=new Date(_0x30f531['createdAt']['getTime']()+0xa)),_0x33a2c1['_update'](_0x10357d,!0x0),delete _0x10357d['authors'],_0x5411a9['push'](_0x10357d);}}if(this['adapter']){for(const _0x305882 of _0x5411a9)this['_bufferUpdate'](_0x305882['id'],_0x305882,!0x0);this['sendBufferedUpdates']();}return _0x95ee99;}['addRevisionData'](_0x29a172){const _0x4c0e5d=this['repository']['createRevision'](_0x29a172);return this['adapter']&&_0x4c0e5d['on']('_update',(_0x437941,_0x1e7899,_0x237b9c)=>{_0x237b9c||(this['_bufferUpdate'](_0x1e7899['id'],_0x1e7899,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4c0e5d,this['_findInsertionIndex'](_0x4c0e5d)),_0x4c0e5d;}async['getRevisionDocumentData'](_0x53c659){await this['_loadRevisionData'](_0x53c659);const _0x3d1ddc={};for(const _0x4660ba in _0x53c659['diffData']){if(_0x53c659['diffData'][_0x4660ba]['attachChange']&&!_0x53c659['diffData'][_0x4660ba]['attachChange']['isAttached'])continue;const _0x151da3=this['_removeRevisionMarkers'](JSON['parse'](_0x53c659['diffData'][_0x4660ba]['insertions'])),_0x15da8d=this['editor']['editing']['view']['document'],_0x55863e=new _0x1ebfbf(_0x15da8d,_0x151da3['map'](_0x5693d7=>C(_0x5693d7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3d1ddc[_0x4660ba]=this['editor']['data']['processor']['toData'](_0x55863e),this['editor']['data']['processor']['useFillerType']('default');}return _0x3d1ddc;}async['getRevisionRootsAttributes'](_0x1de987){await this['_loadRevisionData'](_0x1de987);const _0x56f9fa={};for(const _0x129cda in _0x1de987['diffData'])_0x1de987['diffData'][_0x129cda]['attachChange']&&!_0x1de987['diffData'][_0x129cda]['attachChange']['isAttached']||(_0x56f9fa[_0x129cda]=_0x1de987['diffData'][_0x129cda]['attributesAfter']||{});return _0x56f9fa;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x920144=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x790af5=0x0;_0x790af5<_0x920144['length'];_0x790af5++){const _0x9cc803=_0x920144[_0x790af5];let _0x3c3a61=!0x1;for(const _0x1603dc of Object['keys'](_0x9cc803))void 0x0===_0x9cc803[_0x1603dc]?delete _0x9cc803[_0x1603dc]:'id'!==_0x1603dc&&(_0x3c3a61=!0x0);_0x3c3a61||(_0x920144[_0x790af5]=null);}if(_0x920144=_0x920144['filter'](_0x554899=>null!==_0x554899),!_0x920144['length'])return;for(let _0x590bf0=0x0;_0x590bf0<_0x920144['length'];_0x590bf0++){const _0x1e2ef4=_0x920144[_0x590bf0];void 0x0!==_0x1e2ef4['fromVersion']&&void 0x0===_0x1e2ef4['toVersion']&&(_0x1e2ef4['toVersion']=this['repository']['getRevision'](_0x1e2ef4['id'])['toVersion']),void 0x0!==_0x1e2ef4['toVersion']&&void 0x0===_0x1e2ef4['fromVersion']&&(_0x1e2ef4['fromVersion']=this['repository']['getRevision'](_0x1e2ef4['id'])['fromVersion']);}const _0x217124=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x920144,_0x217124)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x14d7c2=>{if(_0x14d7c2){for(const _0x3e2efc of _0x14d7c2)this['setRevisionData']({'id':_0x3e2efc['id'],'createdAt':_0x3e2efc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x33872e,_0x372d4e){let _0x1718b1=this['editor']['config']['get']('initialData'),_0x14ee9f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1718b1){_0x1718b1={};for(const _0x13948c of this['editor']['model']['document']['getRootNames']())_0x1718b1[_0x13948c]='';}if('string'==typeof _0x1718b1&&(_0x1718b1={'main':_0x1718b1}),void 0x0===_0x14ee9f){_0x14ee9f={};for(const _0x25f53e of this['editor']['model']['document']['getRootNames']())_0x14ee9f[_0x25f53e]={};}let _0x21a56d=!0x1;const _0x45548e=Object['keys'](_0x1718b1),_0xdb3563=Object['keys'](_0x33872e);for(const _0x1ccb3f of _0x45548e){if(_0x1718b1[_0x1ccb3f]!==_0x33872e[_0x1ccb3f]&&''!==_0x1718b1[_0x1ccb3f]['trim']()){_0x21a56d=!0x0;break;}if(!_0x171344(_0x14ee9f[_0x1ccb3f],_0x372d4e[_0x1ccb3f])&&Object['keys'](_0x14ee9f[_0x1ccb3f])['length']>0x0){_0x21a56d=!0x0;break;}}_0x21a56d||(_0x21a56d=_0xdb3563['some'](_0x5b9ab9=>!this['editor']['model']['document']['getRoot'](_0x5b9ab9))),_0x21a56d&&_0x339b97('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1718b1,'editorRootsAttributes':_0x14ee9f,'revisionData':_0x33872e,'revisionRootsAttributes':_0x372d4e}),this['editor']['config']['set']('initialData',_0x33872e),this['editor']['config']['set']('rootsAttributes',_0x372d4e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5b4919=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5b4919['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57db57){const _0x5c3ff6=this['repository']['getRevisions']();_0x5c3ff6['reverse']();let _0x441909=0x0;for(;_0x441909<_0x5c3ff6['length'];){const _0x219222=_0x5c3ff6[_0x441909];if(_0x219222===this['currentRevision']){_0x441909++;continue;}if(_0x219222['id']===this['_initialRevisionId'])break;const _0x1a060c=_0x57db57['toVersion']-_0x219222['toVersion']||_0x57db57['fromVersion']-_0x219222['fromVersion'];if(_0x1a060c>0x0)break;if(_0x1a060c<0x0)_0x441909++;else{if(!_0x57db57['creator']&&_0x219222['creator'])break;if(_0x219222['creator']||!_0x57db57['creator']){if(_0x57db57['createdAt']>_0x219222['createdAt'])break;_0x441909++;}else _0x441909++;}}return _0x441909;}['setRevisionData'](_0x3113f4){const _0x17d158=this['repository']['getRevision'](_0x3113f4['id']);if(_0x3113f4['createdAt']&&(_0x3113f4['createdAt']=new Date(_0x3113f4['createdAt'])),_0x3113f4['authorsIds']){const _0x4af19b=this['editor']['plugins']['get']('Users');_0x3113f4['authors']=_0x3113f4['authorsIds']['map'](_0x4d16e0=>_0x4af19b['getUser'](_0x4d16e0));}_0x17d158['_update'](_0x3113f4,!0x0);}['buildRevisionData']({revision:_0x3989ed=null,from:_0x3f5544=null,to:_0x5df0f9=null}){_0x3f5544=null!==_0x3f5544?_0x3f5544:_0x3989ed['fromVersion'],_0x5df0f9=null!==_0x5df0f9?_0x5df0f9:_0x3989ed['toVersion'];const _0x19a69f=this['_revisionDataBuilder']['getData'](_0x3f5544,_0x5df0f9),_0x4b40e5={'diffData':_0x19a69f['diffData'],'authorsIds':_0x19a69f['authorsIds'],'fromVersion':_0x3f5544,'toVersion':_0x5df0f9};if(!_0x3989ed||_0x5df0f9!==_0x3989ed['toVersion']){const _0x100096=_0x5df0f9-0x1,_0x5aed16=this['_source']['history']['getOperation'](_0x100096);_0x4b40e5['createdAt']=_0x5aed16&&_0x5aed16['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f5544===this['_loadedStateData']['fromVersion']){for(const _0x3c7a38 of this['_loadedStateData']['authors'])_0x4b40e5['authorsIds']['includes'](_0x3c7a38['id'])||_0x4b40e5['authorsIds']['push'](_0x3c7a38['id']);}return _0x4b40e5;}['_loadRevisionData'](_0x4ff883){if(!_0x4ff883||_0x4ff883['diffData'])return Promise['resolve']();{const _0x1dc686=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1dc686,'revisionId':_0x4ff883['id']})['then'](_0x1e03fa=>{_0x4ff883['diffData']=_0x1e03fa['diffData'];});}}['_bufferUpdate'](_0x28f284,_0x551c20,_0x2933b7){if(this['_bufferedUpdates']['has'](_0x28f284)){const _0x350bef=this['_bufferedUpdates']['get'](_0x28f284);_0x551c20=_0x2933b7?{..._0x350bef,..._0x551c20}:{..._0x551c20,..._0x350bef};}this['_bufferedUpdates']['set'](_0x28f284,_0x551c20);}['_getFromVersion'](_0x343373){const _0x4f3b53=this['repository']['getRevisions']();_0x4f3b53['reverse'](),_0x4f3b53['shift']();const _0x386d7b=_0x4f3b53['find'](_0x2ea2c8=>_0x2ea2c8['toVersion']<=_0x343373)['toVersion'];return _0x386d7b<this['_startingVersion']?this['_startingVersion']:_0x386d7b;}['_createInitialRevision'](_0x7921bb){const _0x26c6e2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x26c6e2)this['_initialRevisionId']=_0x26c6e2['id'];else{const _0x4e1c31=!this['editor']['model']['document']['roots']['find'](_0x1354eb=>this['editor']['model']['hasContent'](_0x1354eb)),_0x20cf0f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fdbd5=m(this['editor']['locale'],_0x4e1c31?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x7921bb,'to':_0x7921bb,'id':this['_initialRevisionId'],'name':_0x2fdbd5,'creatorId':_0x20cf0f});}}['_createCurrentRevision'](_0x5a1129){const _0xf4c398=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xf4c398),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a1129,'to':_0x5a1129,'id':_0xf4c398,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5a4f52,from:_0x1ef828,to:_0x519dbf,creatorId:_0x283440,id:_0x2865ff}){const _0x322ff4=this['buildRevisionData']({'from':_0x1ef828,'to':_0x519dbf});_0x322ff4['name']=_0x5a4f52,_0x322ff4['creatorId']=_0x283440,_0x322ff4['id']=_0x2865ff;const _0x5d9f8b=this['addRevisionData'](_0x322ff4);return this['adapter']&&this['_bufferUpdate'](_0x322ff4['id'],_0x322ff4,!0x0),_0x5d9f8b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5015c7){return(_0x5015c7=_0x5015c7['filter'](_0x1c53a3=>!_0x1c53a3['name']||'revision-start'!==_0x1c53a3['name']&&'revision-end'!==_0x1c53a3['name']))['forEach'](_0x3b70d8=>{'string'!=typeof _0x3b70d8&&(_0x3b70d8['children']=this['_removeRevisionMarkers'](_0x3b70d8['children']),_0x3b70d8['attributes']=_0x3b70d8['attributes']['filter'](_0x8acdcf=>!_0x8acdcf[0x0]['startsWith']('data-revision-')));}),_0x5015c7;}}function C(_0x8534f6,_0x279612){const _0x41e6d3=_0x279612['editing']['view']['document'];if('string'==typeof _0x8534f6)return new _0x166355(_0x41e6d3,_0x8534f6);{const _0x389689=_0x8534f6['children']['map'](_0x27b914=>C(_0x27b914,_0x279612));return new(P[_0x8534f6['type']]||_0x2b1c67)(_0x41e6d3,_0x8534f6['name'],_0x8534f6['attributes'],_0x389689);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x619c26){this['editor']=_0x619c26,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'](_0x50f570){this['source']=_0x50f570;const _0x351e21=new Map(),_0x49e1b4=new Map(),_0x4bd1b7=this['editor']['model']['document']['roots']['map'](_0x46b9a5=>_0x46b9a5['rootName']);for(const _0x4397b1 of _0x4bd1b7){const _0x7933c7=this['editor']['model']['document']['getRoot'](_0x4397b1),_0x482266=T(_0x7933c7);_0x351e21['set'](_0x4397b1,_0x482266),_0x49e1b4['set'](_0x4397b1,Object['fromEntries'](_0x7933c7['getAttributes']()));}const _0x3933c8=Array['from'](this['editor']['model']['markers'])['map'](_0x142de9=>[_0x142de9['name'],_0x142de9['getRange']()]),_0x55de4c=this['source']['version'];this['_saveMetaData'](_0x55de4c,_0x351e21,_0x3933c8,_0x49e1b4),this['_startingRevisionId']=this['_revisionId'];const _0x3d3d9c=new Map(),_0x3f7c7a=new Map();for(const _0x4c9b03 of _0x4bd1b7){const _0x24dfad=F(_0x4c9b03);_0x3d3d9c['set'](_0x4c9b03,_0x24dfad),_0x3f7c7a['set'](_0x4c9b03,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3d3d9c,[],_0x3f7c7a);}['getData'](_0x155a2a,_0x36331e){if(this['_lastFrom']===_0x155a2a&&this['_lastTo']<=_0x36331e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x36331e,!0x0);else{if(!this['_savedMetaData']['has'](_0x155a2a)){const _0x1b305c=this['_getPreviousFrom'](_0x155a2a);this['_calculateMetaData'](_0x1b305c,_0x155a2a,!0x1);}this['_calculateMetaData'](_0x155a2a,_0x36331e,!0x0);}return this['_lastFrom']=_0x155a2a,this['_lastTo']=_0x36331e,this['_getState']();}['loadState'](_0x5e1ee4){this['_reset'](),this['_lastFrom']=_0x5e1ee4['fromVersion'],this['_lastTo']=_0x5e1ee4['toVersion'];for(const _0x1a6f64 in _0x5e1ee4['diffData']){const _0x512103=_0x5e1ee4['diffData'][_0x1a6f64]['attachChange'],_0x400994=_0x3d1bef(_0x5e1ee4['diffData'][_0x1a6f64]['attributesBefore'])||{},_0x32d7e8=this['_makeModelFromViewString'](_0x5e1ee4['diffData'][_0x1a6f64]['deletions']);_0x32d7e8['rootName']=_0x1a6f64,_0x32d7e8['_isAttached']=!_0x512103||!_0x512103['isAttached'],_0x32d7e8['isAttached']=()=>_0x32d7e8['_isAttached'],this['_baseRoots']['set'](_0x1a6f64,_0x32d7e8),this['_baseRootsAttributes']['set'](_0x1a6f64,_0x400994),_0x512103&&this['_touchedRoots']['set'](_0x1a6f64,_0x512103);const _0x59de29=this['_makeIdsRoot'](_0x32d7e8);this['_baseIdsRoots']['set'](_0x1a6f64,_0x59de29);for(const [_0x342111,_0xcec0dc]of _0x32d7e8['markers']){if(!_0x342111['startsWith']('revision:'))continue;const _0x5dbab9=_0x342111['split'](':')[0x2];for(const _0xa9318e of _0xcec0dc['getWalker']({'singleCharacters':!0x0})){const _0x559bf5=this['_getVidAttributeName'](_0xa9318e),_0xcfa546='elementEnd'==_0xa9318e['type']?_0xa9318e['previousPosition']['path']['slice'](0x0,-0x1):_0xa9318e['previousPosition']['path'],_0x2ae32d=_0x59de29['getNodeByPath'](_0xcfa546)['getAttribute'](_0x559bf5);this['_touched']['set'](_0x2ae32d,{'userId':_0x5dbab9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5466c1=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5cd99c=>!this['_touched']['has'](_0x5cd99c));let _0x25d2f9=0x0;const _0x1688b9=new Map();for(const _0x5e458b in _0x5e1ee4['diffData']){const _0x347f3e=_0x5e1ee4['diffData'][_0x5e458b]['attachChange'],_0xab0f98=_0x3d1bef(_0x5e1ee4['diffData'][_0x5e458b]['attributesAfter'])||{},_0x4c142c=this['_makeModelFromViewString'](_0x5e1ee4['diffData'][_0x5e458b]['insertions']);_0x4c142c['rootName']=_0x5e458b,_0x4c142c['_isAttached']=!_0x347f3e||_0x347f3e['isAttached'],_0x4c142c['isAttached']=()=>_0x4c142c['_isAttached'],this['_diffRoots']['set'](_0x5e458b,_0x4c142c),this['_diffRootsAttributes']['set'](_0x5e458b,_0xab0f98);const _0x3fbcbb=this['_makeIdsRoot'](_0x4c142c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e458b,_0x3fbcbb),_0x1688b9['set'](_0x5e458b,_0x4c142c['isAttached']()?_0xab0f98:{});for(const [_0x3ec202,_0x46e10b]of _0x4c142c['markers']){if(!_0x3ec202['startsWith']('revision:'))continue;const _0x325ff8=_0x3ec202['split'](':')[0x2];for(const _0x1ec359 of _0x46e10b['getWalker']({'singleCharacters':!0x0})){const _0x369b52=this['_getVidAttributeName'](_0x1ec359),_0x3959c3=this['_revisionId']++,_0x4f781f='elementEnd'==_0x1ec359['type']?_0x1ec359['previousPosition']['path']['slice'](0x0,-0x1):_0x1ec359['previousPosition']['path'];_0x3fbcbb['getNodeByPath'](_0x4f781f)['_setAttribute'](_0x369b52,_0x3959c3),this['_touched']['set'](_0x3959c3,{'userId':_0x325ff8});}}for(const _0x500523 of this['editor']['model']['createRangeIn'](_0x4c142c)['getWalker']({'singleCharacters':!0x0})){const _0x259520=this['_getVidAttributeName'](_0x500523),_0x106773='elementEnd'==_0x500523['type']?_0x500523['previousPosition']['path']['slice'](0x0,-0x1):_0x500523['previousPosition']['path'],_0x2e4158=_0x3fbcbb['getNodeByPath'](_0x106773);_0x2e4158['getAttribute'](_0x259520)>0x0||_0x2e4158['_setAttribute'](_0x259520,_0x5466c1[_0x25d2f9++]);}for(const [_0xceebfb,_0x2a11f0]of _0x4c142c['markers'])_0xceebfb['startsWith']('revision:')||this['_markers']['set'](_0xceebfb,_0x2a11f0);}const _0x155e85=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x155e85),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x155e85,0x1));const _0x238272=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x238272),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x238272,0x1));const _0x18a6e6=Array['from'](this['_diffRoots'])['map'](([_0x2ccd3d,_0x1f6d28])=>[_0x2ccd3d,T(_0x1f6d28)]);this['_saveMetaData'](this['_lastTo'],_0x18a6e6,this['_markers'],_0x1688b9);}['_makeModelFromViewString'](_0x4acba7){const _0x25c157=JSON['parse'](_0x4acba7),_0x5b9424=this['editor']['editing']['view']['document'],_0x8d3fa3=new _0x1ebfbf(_0x5b9424,_0x25c157['map'](_0x45b069=>C(_0x45b069,this['editor'])));return this['editor']['data']['toModel'](_0x8d3fa3);}['_saveMetaData'](_0x4516dd,_0x349782,_0x3979c0,_0x4274fb){const _0x3045c5=new Map(_0x349782),_0x4c30bb=new Map(_0x3d1bef(_0x4274fb)),_0x395a88=new Map();for(const [_0x1b25dc,_0x47f7a1]of _0x3979c0)_0x395a88['set'](_0x1b25dc,{'start':_0x47f7a1['start']['clone'](),'end':_0x47f7a1['end']['clone'](),'rootName':_0x47f7a1['root']['rootName']});this['_savedMetaData']['set'](_0x4516dd,{'roots':_0x3045c5,'markers':_0x395a88,'rootsAttributes':_0x4c30bb});}['_removeMetaData'](_0x86ea26){this['_savedMetaData']['delete'](_0x86ea26);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4bdcb5,_0x194041=null){let _0x4acd4a=null;_0x4bdcb5['is']('documentFragment')||(_0x4acd4a=new ft(_0x4bdcb5['name'],{'vid_start':null===_0x194041?this['_revisionId']++:_0x194041++}));const _0x2f6c3e=[];for(const _0x4a05ad of _0x4bdcb5['getChildren']())if(_0x4a05ad['is']('element')){_0x2f6c3e['push'](this['_makeIdsRoot'](_0x4a05ad,_0x194041));const _0x577ec9=_0x2f6c3e[_0x2f6c3e['length']-0x1];null!==_0x194041&&(_0x194041=_0x577ec9['is']('element','$text')?_0x577ec9['getAttribute']('vid')+0x1:_0x577ec9['getAttribute']('vid_end')+0x1);}else{for(let _0x43c757=0x0;_0x43c757<_0x4a05ad['offsetSize'];_0x43c757++)_0x2f6c3e['push'](new ft('$text',{'vid':null===_0x194041?this['_revisionId']++:_0x194041++}));}if(_0x4bdcb5['is']('documentFragment')){const _0x25dd01=F(_0x4bdcb5['rootName']);return _0x25dd01['_insertChild'](0x0,_0x2f6c3e),_0x25dd01;}return _0x4acd4a['_setAttribute']('vid_end',null===_0x194041?this['_revisionId']++:_0x194041++),_0x4acd4a['_insertChild'](0x0,_0x2f6c3e),_0x4acd4a;}['_calculateMetaData'](_0x227e3d,_0x4c6aa9,_0xa9a97c){this['_reset']();const {roots:_0x1e4e11,markers:_0x3d801f,rootsAttributes:_0x3fccdd}=this['_savedMetaData']['get'](_0x227e3d);this['_baseRoots']=new Map(_0x1e4e11),this['_baseRootsAttributes']=new Map(_0x3d1bef(_0x3fccdd));for(const [_0x2e2696,_0x509667]of this['_baseRoots'])if('$graveyard'!==_0x2e2696&&(this['_diffRoots']['set'](_0x2e2696,T(_0x509667)),this['_diffRootsAttributes']=new Map(_0x3d1bef(_0x3fccdd)),_0xa9a97c)){const _0x26e746=this['_revisionId'];this['_idsRoots']['set'](_0x2e2696,this['_makeIdsRoot'](_0x509667)),this['_baseIdsRoots']['set'](_0x2e2696,this['_makeIdsRoot'](_0x509667,_0x26e746));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xa9a97c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x199373,_0x18de5d]of _0x3d801f){const _0x5e1d2c=this['_baseRoots']['get'](_0x18de5d['rootName']),_0x508886=this['_diffRoots']['get'](_0x18de5d['rootName']),_0x1bddd1=new vt(this['_fixPosition'](_0x18de5d['start'],_0x5e1d2c),this['_fixPosition'](_0x18de5d['end'],_0x5e1d2c)),_0x27d8c0=this['_fixRange'](_0x1bddd1,_0x508886);_0x5e1d2c['markers']['set'](_0x199373,_0x1bddd1),this['_markers']['set'](_0x199373,_0x27d8c0);}this['_applyOperations'](_0x227e3d,_0x4c6aa9,_0xa9a97c);}['_applyOperations'](_0x190738,_0x49e932,_0x422571){for(const _0x1336b7 of this['source']['getOperations'](_0x190738,_0x49e932))this['_handleOperation'](_0x1336b7,_0x422571);for(const _0x5aee3a of this['_diffRoots']['values']())_0x5aee3a['markers']['clear']();for(const [_0x2d4af8,_0x5c87fd]of this['_markers']){this['_diffRoots']['get'](_0x5c87fd['root']['rootName'])['markers']['set'](_0x2d4af8,_0x5c87fd['clone']());}const _0x53620a=new Map(),_0x3dfeaa=new Map();for(const [_0x16731c,_0x2190e9]of this['_diffRoots'])_0x53620a['set'](_0x16731c,T(_0x2190e9)),_0x3dfeaa['set'](_0x16731c,this['_diffRootsAttributes']['get'](_0x16731c));this['_saveMetaData'](_0x49e932,_0x53620a,this['_markers'],_0x3dfeaa);}['_getPreviousFrom'](_0x6d80b3){const _0x26e58c=Array['from'](this['_savedMetaData']['keys']());_0x26e58c['sort']((_0xc12018,_0x3608e1)=>_0xc12018-_0x3608e1),_0x26e58c['reverse']();for(const _0x1b0916 of _0x26e58c)if(_0x1b0916<_0x6d80b3)return _0x1b0916;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5cb572,_0x4d4d68){const _0x5d9602=Array['from'](_0x4d4d68['markers'])['map'](([_0x59c9fa,_0x15f618])=>[_0x59c9fa,this['_fixRange'](_0x15f618,_0x5cb572)]);_0x5cb572['markers']=new Map(_0x5d9602);}['_transformMarkers'](_0x20b91a){for(const _0x5a574a of this['_markers']['values']()){const _0x57c4a9=_0x5a574a['getTransformedByOperation'](_0x20b91a),_0x34977f=vt['_createFromRanges'](_0x57c4a9);_0x5a574a['start']=_0x34977f['start'],_0x5a574a['end']=_0x34977f['end'];}}['_handleOperation'](_0x26edb1,_0x50e79e){if('addRoot'!=_0x26edb1['type']&&'detachRoot'!=_0x26edb1['type']){if('insert'==_0x26edb1['type']){const _0x360bdf=_0x26edb1['position']['root']['rootName'];this['_diffRoots']['has'](_0x360bdf)||(this['_diffRoots']['set'](_0x360bdf,F(_0x360bdf,!0x0)),this['_diffRootsAttributes']['set'](_0x360bdf,{}),_0x50e79e&&this['_idsRoots']['set'](_0x360bdf,F(_0x360bdf,!0x0)));}else{if('addRootAttribute'==_0x26edb1['type']||'removeRootAttribute'==_0x26edb1['type']||'changeRootAttribute'==_0x26edb1['type'])return void this['_handleRootAttributeOperation'](_0x26edb1);'marker'==_0x26edb1['type']&&this['_handleMarkerOperation'](_0x26edb1);}if('marker'!==_0x26edb1['type']){const _0x42d358=this['_cloneOperation'](_0x26edb1,this['_diffRoots']);_0x42d358['_execute'](),this['_transformMarkers'](_0x42d358);}if(_0x50e79e)switch(_0x26edb1['type']){case'insert':this['_handleInsertOperation'](_0x26edb1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26edb1);break;case'merge':this['_handleMergeOperation'](_0x26edb1);break;case'split':this['_handleSplitOperation'](_0x26edb1);}}else this['_handleRootOperation'](_0x26edb1,_0x50e79e);}['_cloneOperation'](_0x5df9e0,_0x529e06){const _0x5415a7=_0x5df9e0['clone']();return _0x5415a7['_authorId']=_0x5df9e0['_authorId'],this['_fixOperation'](_0x5415a7,_0x529e06),_0x5415a7;}['_getBaseVids'](_0x3a05f9){return _0x3a05f9['map'](_0x392378=>{const _0x5371d0=this['_getVidAttributeName'](_0x392378);return Number(_0x392378['item']['getAttribute'](_0x5371d0));});}['_generateTape'](_0x2f3785,_0x49ad61){if(_0x2f3785['is']('element','$text'))_0x49ad61['push']({'item':_0x2f3785,'type':'text'});else{_0x2f3785['is']('element')&&_0x49ad61['push']({'item':_0x2f3785,'type':'elementStart'});for(const _0x2e0ffd of _0x2f3785['getChildren']())this['_generateTape'](_0x2e0ffd,_0x49ad61);_0x2f3785['is']('element')&&_0x49ad61['push']({'item':_0x2f3785,'type':'elementEnd'});}return _0x49ad61;}['_getState'](){const _0x5c3a7d=new Map(this['_touched']),_0x3e1820=new Map(_0x5c3a7d),_0x958a1a=new Map(),_0xda2bb8={'insertions':{},'deletions':{}},_0x350f22={'insertions':{},'deletions':{}},_0x16d101=new Map(),_0x4a744d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4a744d['delete']('$graveyard');for(const _0x320248 of _0x4a744d){const _0x2103ff=this['_diffRoots']['get'](_0x320248)||F(_0x320248,!0x1),_0x4b0422=this['_baseRoots']['get'](_0x320248)||F(_0x320248,!0x1);_0x2103ff['isAttached']()||_0x4b0422['isAttached']()?(_0xda2bb8['insertions'][_0x320248]=T(_0x2103ff),_0xda2bb8['deletions'][_0x320248]=T(_0x4b0422),this['_copyMarkers'](_0xda2bb8['deletions'][_0x320248],_0x4b0422),this['_copyMarkers'](_0xda2bb8['insertions'][_0x320248],_0x2103ff),_0x350f22['insertions'][_0x320248]=this['_generateTape'](this['_idsRoots']['get'](_0x320248),[]),_0x350f22['deletions'][_0x320248]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x320248)||F(_0x320248,!0x1),[])):_0x4a744d['delete'](_0x320248);}for(const _0x5ab202 of _0x4a744d){const _0x388500=_0x350f22['insertions'][_0x5ab202];for(const _0x13ba47 of _0x388500){const _0x37d932=this['_getVidAttributeName'](_0x13ba47),_0x2294dd=_0x13ba47['item']['getAttribute'](_0x37d932);_0x3e1820['delete'](_0x2294dd),_0x2294dd>=this['_startingRevisionId']&&_0x958a1a['set'](_0x2294dd,_0x5c3a7d['get'](_0x2294dd));}}for(const _0x67b05f of _0x4a744d){const _0x412bae=_0x350f22['insertions'][_0x67b05f],_0x4781c4=this['_getBaseVids'](_0x350f22['deletions'][_0x67b05f]);let _0x13ee81=0x0;for(const _0x41697e of _0x412bae){const _0x39008a=this['_getVidAttributeName'](_0x41697e),_0x599203=_0x41697e['item']['getAttribute'](_0x39008a);if(!_0x958a1a['has'](_0x599203)&&!_0x16d101['has'](_0x599203)){if(_0x3e1820['has'](_0x599203))_0x13ee81++;else{if(_0x599203!=_0x4781c4[_0x13ee81]){const _0x5122c9=_0x5c3a7d['get'](_0x599203)||_0x5c3a7d['get'](_0x4781c4[_0x13ee81]);for(;_0x599203!=_0x4781c4[_0x13ee81];)_0x3e1820['has'](_0x4781c4[_0x13ee81])||(_0x16d101['set'](_0x4781c4[_0x13ee81],_0x5122c9),_0x5c3a7d['set'](_0x4781c4[_0x13ee81],_0x5122c9)),_0x13ee81++;}_0x13ee81++;}}}}for(const _0x568197 of _0x4a744d){const _0x35973d=_0x350f22['insertions'][_0x568197];for(const _0x3665f1 of _0x35973d){const _0x141ebf=this['_getVidAttributeName'](_0x3665f1),_0x435f5d=_0x3665f1['item']['getAttribute'](_0x141ebf);if(_0x16d101['has'](_0x435f5d)){const _0x4e7446=_0x16d101['get'](_0x435f5d);_0x3e1820['has'](_0x435f5d)||_0x3e1820['set'](_0x435f5d,{..._0x4e7446}),_0x958a1a['set'](_0x435f5d,{..._0x4e7446});}}}for(const _0x29296b of _0x3e1820['keys']())_0x29296b>=this['_startingRevisionId']&&_0x3e1820['delete'](_0x29296b);const _0x2b79dd=new Map();for(const _0x1d972f of _0x4a744d){let _0x1ca833=_0x350f22['insertions'][_0x1d972f];for(const _0xbf207a of _0x1ca833)if(_0xbf207a['item']['is']('element','tableCell')){const _0x2287dd=this['_getVidAttributeName'](_0xbf207a),_0x54863c=_0xbf207a['item']['getAttribute'](_0x2287dd);if(_0x958a1a['has'](_0x54863c)){const _0x102d26=_0xbf207a['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c4238=_0x2b79dd['get'](_0x102d26)||new Set();_0x1c4238['add'](_0x958a1a['get'](_0x54863c)['userId']),_0x2b79dd['set'](_0x102d26,_0x1c4238);}}_0x1ca833=_0x350f22['deletions'][_0x1d972f];for(const _0x40c173 of _0x1ca833)if(_0x40c173['item']['is']('element','tableCell')){const _0x52e1b6=this['_getVidAttributeName'](_0x40c173),_0x4a0a28=_0x40c173['item']['getAttribute'](_0x52e1b6);if(_0x3e1820['has'](_0x4a0a28)){const _0x15511c=_0x40c173['item']['parent']['parent']['getAttribute']('vid_start'),_0xcbb986=_0x2b79dd['get'](_0x15511c)||new Set();_0xcbb986['add'](_0x3e1820['get'](_0x4a0a28)['userId']),_0x2b79dd['set'](_0x15511c,_0xcbb986);}}for(const _0x25eefa of _0x2b79dd['keys']())(_0x958a1a['has'](_0x25eefa)||_0x3e1820['has'](_0x25eefa))&&_0x2b79dd['delete'](_0x25eefa);}for(const _0x3f2a91 of _0x4a744d){const _0x56f6eb=_0x350f22['insertions'][_0x3f2a91];let _0x3a6880=null,_0x4d1074=null;for(const _0x4c9a11 of _0x56f6eb){const _0x5f4249=this['_getVidAttributeName'](_0x4c9a11),_0x53354d=_0x4c9a11['item']['getAttribute'](_0x5f4249),_0x47e17a=_0x2b79dd['get'](_0x53354d);_0x47e17a&&'elementStart'==_0x4c9a11['type']&&(_0x3a6880=Array['from'](_0x47e17a)[0x0],_0x4d1074=_0x4c9a11['item']['getAttribute']('vid_end')),_0x3a6880&&(_0x3e1820['set'](_0x53354d,{'userId':_0x3a6880}),_0x958a1a['set'](_0x53354d,{'userId':_0x3a6880})),_0x53354d==_0x4d1074&&(_0x3a6880=null,_0x4d1074=null);}}const _0x352b5e={},_0x31d8b3=new Set();for(const _0xd32281 of _0x4a744d){const _0x3b55e4=_0xda2bb8['deletions'][_0xd32281],_0x3a3fa6=_0xda2bb8['insertions'][_0xd32281];for(const {userId:_0x30e427}of this['_touchedMarkers']['values']())null!==_0x30e427&&_0x31d8b3['add'](_0x30e427);for(const {userId:_0x4a5041}of this['_touchedRoots']['values']())null!==_0x4a5041&&_0x31d8b3['add'](_0x4a5041);this['_markChanges'](_0x3a3fa6,_0x350f22['insertions'][_0xd32281],_0x958a1a,'insertion',_0x31d8b3),this['_markChanges'](_0x3b55e4,_0x350f22['deletions'][_0xd32281],_0x3e1820,'deletion',_0x31d8b3),_0x352b5e[_0xd32281]={'insertions':this['_prepareViewToSave'](_0x3a3fa6),'deletions':this['_prepareViewToSave'](_0x3b55e4),'attachChange':this['_touchedRoots']['get'](_0xd32281)||null,'attributesBefore':_0x3d1bef(this['_baseRootsAttributes']['get'](_0xd32281))||{},'attributesAfter':_0x3d1bef(this['_diffRootsAttributes']['get'](_0xd32281))};}return{'diffData':_0x352b5e,'authorsIds':Array['from'](_0x31d8b3)};}['_processRootBeforeSave'](_0x4fda04){for(const [,_0x1755f2]of _0x4fda04['markers']){const _0x47e2db=_0x1755f2['start']['getAncestors']()['filter'](_0x414536=>'tableCell'==_0x414536['name']);for(const _0x411132 of _0x47e2db)0x1==_0x411132['childCount']&&_0x411132['getChild'](0x0)['is']('element','paragraph')&&_0x411132['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x117984){this['_processRootBeforeSave'](_0x117984);const _0xd6ef11=this['editor']['data']['toView'](_0x117984,{}),_0x5554dd=Array['from'](_0xd6ef11['getChildren']())['map'](_0x29ba76=>this['_getViewJson'](_0x29ba76));return JSON['stringify'](_0x5554dd);}['_getViewJson'](_0x2c98be){if(_0x2c98be['is']('$text'))return _0x2c98be['data'];{const _0x497b60=_0x2c98be;return{'type':Object['keys'](P)['find'](_0x516d99=>_0x2c98be instanceof P[_0x516d99]),'name':_0x497b60['name'],'attributes':Array['from'](_0x497b60['getAttributes']()),'children':Array['from'](_0x497b60['getChildren']())['map'](_0x130af6=>this['_getViewJson'](_0x130af6))};}}['_markChanges'](_0x581284,_0x1a96c0,_0x41fe01,_0x133fee,_0x496c89){let _0x3cb50d=null,_0x407add=null,_0x2b2e79=0x0;const _0x56da5e=this['editor']['model'];for(let _0x1071ac=0x0;_0x1071ac<_0x1a96c0['length'];_0x1071ac++){const _0x3803c2=this['_getVidAttributeName'](_0x1a96c0[_0x1071ac]),_0x4b027f=_0x1a96c0[_0x1071ac]['item']['getAttribute'](_0x3803c2),_0x5e6ffe=_0x41fe01['get'](_0x4b027f),_0x4352a8=_0x1071ac==_0x1a96c0['length']-0x1;(!_0x3cb50d&&_0x5e6ffe&&(_0x3cb50d=_0x5e6ffe,_0x407add=_0x1a96c0[_0x1071ac]),_0x3cb50d&&(!_0x5e6ffe||_0x5e6ffe['userId']!=_0x3cb50d['userId']))&&(_0x5667ae(_0x5e6ffe,B(_0x407add,_0x581284,_0x56da5e),B(_0x1a96c0[_0x1071ac],_0x581284,_0x56da5e)),_0x3cb50d=_0x5e6ffe||null,_0x407add=_0x5e6ffe?_0x1a96c0[_0x1071ac]:null),_0x3cb50d&&_0x4352a8&&_0x5667ae(_0x5e6ffe,B(_0x407add,_0x581284,_0x56da5e),J(_0x1a96c0[_0x1071ac],_0x581284,_0x56da5e));}function _0x5667ae(_0x235222,_0x2bb55e,_0x1cfbc7){const _0x2c171b=_0x3cb50d['userId'],_0x39f91c='revision:'+_0x133fee+':'+_0x2c171b+':'+_0x2b2e79++,_0x5afe59=_0x56da5e['createRange'](_0x2bb55e,_0x1cfbc7);_0x581284['markers']['set'](_0x39f91c,_0x5afe59),null!==_0x2c171b&&_0x496c89['add'](_0x2c171b);}}['_getVidAttributeName'](_0x6a10af){switch(_0x6a10af['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2c6137,_0x84b2e3){_0x2c6137['baseVersion']=null;for(const _0x12b8ca in _0x2c6137){const _0x3f286c=_0x2c6137[_0x12b8ca];if(_0x3f286c instanceof gt){const _0x190efe=_0x84b2e3['get'](_0x3f286c['root']['rootName']);_0x2c6137[_0x12b8ca]=this['_fixPosition'](_0x3f286c,_0x190efe);}if(_0x3f286c instanceof vt){const _0x79903b=_0x84b2e3['get'](_0x3f286c['root']['rootName']);_0x2c6137[_0x12b8ca]=this['_fixRange'](_0x3f286c,_0x79903b);}'root'===_0x12b8ca&&(_0x2c6137['root']=_0x84b2e3['get'](_0x2c6137['root']['rootName']));}}['_fixRange'](_0x1702c5,_0xf06d38){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1702c5['start'],_0xf06d38),this['_fixPosition'](_0x1702c5['end'],_0xf06d38));}['_fixPosition'](_0x6baba2,_0x149ead){return this['editor']['model']['createPositionFromPath'](_0x149ead,_0x6baba2['path'],_0x6baba2['stickiness']);}['_handleInsertOperation'](_0x384370){const _0xc8143b=this['_idsRoots']['get'](_0x384370['position']['root']['rootName']),_0x3cc150=this['_fixPosition'](_0x384370['position'],_0xc8143b),_0x2a17b4=null===_0x384370['_authorId']?null:_0x384370['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fa6c4=_0x3cc150['parent'],_0x4c11f6=this['_revisionId'],_0x218039=[];for(const _0x5723bd of _0x384370['nodes'])if(_0x5723bd['is']('element'))_0x218039['push'](this['_makeIdsRoot'](_0x5723bd));else{for(let _0x1e15ac=0x0;_0x1e15ac<_0x5723bd['offsetSize'];_0x1e15ac++)_0x218039['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2c2467=this['_revisionId'];for(let _0x4f55f2=_0x4c11f6;_0x4f55f2<_0x2c2467;_0x4f55f2++)this['_touched']['set'](_0x4f55f2,{'userId':_0x2a17b4});_0x4fa6c4['_insertChild'](_0x3cc150['offset'],_0x218039);}['_handleMoveOperation'](_0x2dde4f){(_0x2dde4f=this['_cloneOperation'](_0x2dde4f,this['_idsRoots']))['_execute']();const _0x53c4f6=null===_0x2dde4f['_authorId']?null:_0x2dde4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x594ad2=_0x2dde4f['getMovedRangeStart'](),_0x3e642a=_0x594ad2['parent'],_0x5edc9a=_0x594ad2['offset'];!function _0x445783(_0x2150cc,_0x2fd40e,_0x572496,_0x7e006c){for(let _0x2487c4=_0x572496;_0x2487c4<_0x7e006c;_0x2487c4++){const _0x2dfdc1=_0x2fd40e['getChild'](_0x2487c4);_0x2dfdc1['is']('element','$text')?_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid'),{'userId':_0x53c4f6}):(_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid_start'),{'userId':_0x53c4f6}),_0x445783(_0x2150cc,_0x2dfdc1,0x0,_0x2dfdc1['childCount']),_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid_end'),{'userId':_0x53c4f6}));}}(this['_touched'],_0x3e642a,_0x5edc9a,_0x5edc9a+_0x2dde4f['howMany']);}['_handleMergeOperation'](_0xa9a54){const _0x13fbfb=null===(_0xa9a54=this['_cloneOperation'](_0xa9a54,this['_idsRoots']))['_authorId']?null:_0xa9a54['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x414c24=_0xa9a54['targetPosition']['parent'],_0x307280=_0xa9a54['sourcePosition']['parent'],_0x17460f=_0x414c24['getAttribute']('vid_end'),_0x1f050b=_0x307280['getAttribute']('vid_start');_0x414c24['_setAttribute']('vid_end',_0x307280['getAttribute']('vid_end')),_0x307280['_setAttribute']('vid_end',_0x17460f),this['_touched']['set'](_0x1f050b,{'userId':_0x13fbfb}),this['_touched']['set'](_0x17460f,{'userId':_0x13fbfb}),_0xa9a54['_execute']();}['_handleSplitOperation'](_0x2df568){const _0x314c41=null===(_0x2df568=this['_cloneOperation'](_0x2df568,this['_idsRoots']))['_authorId']?null:_0x2df568['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2820d0=_0x2df568['graveyardPosition'],_0x59d88d=_0x2df568['splitPosition']['parent'];_0x2df568['_execute']();const _0x505af4=_0x59d88d['getAttribute']('vid_end'),_0x3c1467=_0x2df568['insertionPosition']['nodeAfter'];if(_0x2820d0){const _0x41231b=_0x3c1467['getAttribute']('vid_end'),_0x232c4e=_0x59d88d['getAttribute']('vid_end');_0x59d88d['_setAttribute']('vid_end',_0x41231b),_0x3c1467['_setAttribute']('vid_end',_0x232c4e),this['_touched']['set'](_0x59d88d['getAttribute']('vid_end'),{'userId':_0x314c41}),this['_touched']['set'](_0x3c1467['getAttribute']('vid_start'),{'userId':_0x314c41});}else{const _0x924f85=this['_revisionId']++,_0x2b120a=this['_revisionId']++;_0x59d88d['_setAttribute']('vid_end',_0x924f85),_0x3c1467['_setAttribute']('vid_start',_0x2b120a),_0x3c1467['_setAttribute']('vid_end',_0x505af4),this['_touched']['set'](_0x924f85,{'userId':_0x314c41}),this['_touched']['set'](_0x2b120a,{'userId':_0x314c41});}}['_handleMarkerOperation'](_0x5d11bc){if(!_0x5d11bc['affectsData'])return;const _0x4f1ce6=(_0x5d11bc=this['_cloneOperation'](_0x5d11bc,this['_diffRoots']))['oldRange']?_0x5d11bc['oldRange']['root']:null,_0x2c20dc=_0x5d11bc['newRange']?_0x5d11bc['newRange']['root']:null;_0x4f1ce6&&this['_markers']['delete'](_0x5d11bc['name']),_0x2c20dc&&this['_markers']['set'](_0x5d11bc['name'],_0x5d11bc['newRange']['clone']());const _0x2682b9=null===_0x5d11bc['_authorId']?null:_0x5d11bc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b3abb=_0x5d11bc['name'];if(!this['_touchedMarkers']['has'](_0x1b3abb))return void this['_touchedMarkers']['set'](_0x1b3abb,{'range':_0x5d11bc['oldRange'],'userId':_0x2682b9});const _0x2df066=this['_touchedMarkers']['get'](_0x1b3abb),_0x5cc844=_0x2df066['range'],_0x224090=_0x5d11bc['newRange'];null==_0x5cc844&&null==_0x224090||_0x5cc844&&_0x224090&&_0x5cc844['isEqual'](_0x224090)?this['_touchedMarkers']['delete'](_0x5d11bc['name']):_0x2df066['userId']=_0x2682b9;}['_handleRootOperation'](_0x57af68,_0xbfe616){this['_diffRoots']['has'](_0x57af68['rootName'])?this['_diffRoots']['get'](_0x57af68['rootName'])['_isAttached']=_0x57af68['isAdd']:(this['_diffRoots']['set'](_0x57af68['rootName'],F(_0x57af68['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x57af68['rootName'],{}),_0xbfe616&&this['_idsRoots']['set'](_0x57af68['rootName'],F(_0x57af68['rootName'],!0x0)));const _0xb471ab=null===_0x57af68['_authorId']?null:_0x57af68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x576027=this['_touchedRoots']['get'](_0x57af68['rootName']);_0x576027&&_0x576027['userId']===_0xb471ab?this['_touchedRoots']['delete'](_0x57af68['rootName']):this['_touchedRoots']['set'](_0x57af68['rootName'],{'userId':_0xb471ab,'isAttached':_0x57af68['isAdd']});}['_handleRootAttributeOperation'](_0x16476d){const _0xba1c88=this['_diffRootsAttributes']['get'](_0x16476d['root']['rootName']);null===_0x16476d['newValue']?delete _0xba1c88[_0x16476d['key']]:_0xba1c88[_0x16476d['key']]=_0x16476d['newValue'];}}function T(_0x21c566){const _0x4b1aaa=F(_0x21c566['rootName'],_0x21c566['isAttached']());for(const _0x2d06aa of _0x21c566['getChildren']()){const _0x14f4c2=_0x2d06aa['_clone'](!0x0);_0x4b1aaa['_appendChild'](_0x14f4c2);}return _0x4b1aaa;}function F(_0xf5844b,_0x962f4e=!0x0){const _0x2bec04=new mt();return _0x2bec04['rootName']=_0xf5844b,_0x2bec04['_isAttached']=_0x962f4e,_0x2bec04['isAttached']=()=>_0x2bec04['_isAttached'],_0x2bec04;}function B(_0x435d2f,_0x229206,_0x499ce1){const _0xd653c2='elementEnd'==_0x435d2f['type']?_0x499ce1['createPositionAt'](_0x435d2f['item'],'end'):_0x499ce1['createPositionBefore'](_0x435d2f['item']);return _0x499ce1['createPositionFromPath'](_0x229206,_0xd653c2['path'],_0xd653c2['stickiness']);}function J(_0x201764,_0x3f5b61,_0x54418a){const _0x366ae8='elementStart'==_0x201764['type']?_0x54418a['createPositionAt'](_0x201764['item'],0x0):_0x54418a['createPositionAfter'](_0x201764['item']);return _0x54418a['createPositionFromPath'](_0x3f5b61,_0x366ae8['path'],_0x366ae8['stickiness']);}class ns extends _0x571e95{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13b5fd,_0x8c9a0c){super(_0x13b5fd),this['focusTracker']=new _0x1f39a3(),this['keystrokes']=new _0x11ba63(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x8c9a0c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2af42e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e5eb9=_0xebb81d=>_0xebb81d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e5eb9),this['keystrokes']['set']('arrowleft',_0x2e5eb9),this['keystrokes']['set']('arrowup',_0x2e5eb9),this['keystrokes']['set']('arrowdown',_0x2e5eb9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d0cfc){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d0cfc['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4bb4cd){const _0x134f46=new nt(this['locale'],_0x1d2e0c),_0xcdf827=_0x134f46['fieldView'];_0xcdf827['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x307c29=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4bb4cd&&(_0x307c29+='\x20('+m(this['locale'],'optional')+')'),(_0x134f46['label']=_0x307c29,_0xcdf827['on']('input',()=>{this['revisionNameInputValue']=_0xcdf827['element']['value']['trim']();}),_0x134f46);}}class u extends _0x314a0a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2e5373=this['editor'],_0x4ef7d0=_0x2e5373['plugins']['get']('RevisionTracker');_0x2e5373['ui']['componentFactory']['add']('revisionHistory',_0x5c8aac=>{const _0x3a1d8a=_0x480339(_0x5c8aac),_0x21a6d5=_0x3a1d8a['panelView']['children'],_0x93c60f=new te(_0x5c8aac),_0xbb188f=new _0x5f552b(_0x5c8aac),_0x1dcf5b=new _0x59b23e(_0x5c8aac),_0x4a5bdd=new _0x5f552b(_0x5c8aac),_0x44a55e=new _0x59b23e(_0x5c8aac);return _0x3a1d8a['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x4ef7d0,'isEnabled',_0x2e5373,'isReadOnly',(_0x2bbe87,_0x1240dc,_0x4080a6)=>_0x2bbe87&&_0x1240dc&&!_0x4080a6),_0x3a1d8a['buttonView']['set']({'icon':_0x42aafe['history'],'label':m(_0x5c8aac,'Revision\x20history'),'tooltip':!0x0}),_0x1dcf5b['set']({'label':m(_0x5c8aac,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1dcf5b['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x4ef7d0,'isEnabled',_0x2e5373,'isReadOnly',(_0x346b35,_0x3cde31,_0xca5aff)=>_0x346b35&&_0x3cde31&&!_0xca5aff),_0x1dcf5b['on']('execute',()=>this['_showDialog']()),_0x44a55e['set']({'label':m(_0x5c8aac,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x44a55e['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x2e5373,'isReadOnly',(_0x42f00d,_0x1812d7)=>_0x42f00d&&!_0x1812d7),_0x44a55e['on']('execute',()=>{_0x2e5373['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3a1d8a['isOpen']=!0x1,_0x2e5373['editing']['view']['focus']();}),_0xbb188f['children']['add'](_0x1dcf5b),_0x4a5bdd['children']['add'](_0x44a55e),_0x93c60f['role']='menu',_0x93c60f['items']['addMany']([_0xbb188f,_0x4a5bdd]),_0x21a6d5['add'](_0x93c60f),_0x3a1d8a;}),_0x2e5373['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x25686c=this['editor'],_0xa3165c=_0x25686c['locale'],_0x5aeb93=new _0x8dd679(_0xa3165c),_0x32042e=new _0x4ac257(_0xa3165c);_0x5aeb93['buttonView']['set']({'icon':_0x42aafe['history'],'label':m(_0xa3165c,'Revision\x20history')});const _0x32e648=new _0x5053a2(_0xa3165c,_0x5aeb93),_0x21b934=new _0x1b3f57(_0xa3165c);_0x21b934['set']({'label':m(_0xa3165c,'Save\x20current\x20revision')}),_0x21b934['delegate']('execute')['to'](_0x5aeb93),_0x21b934['on']('execute',()=>{this['_showDialog']();}),_0x32e648['children']['add'](_0x21b934),_0x32042e['items']['add'](_0x32e648);const _0x38f8fb=new _0x5053a2(_0xa3165c,_0x5aeb93),_0x4cb7db=new _0x1b3f57(_0xa3165c);return _0x4cb7db['set']({'label':m(_0xa3165c,'Open\x20revision\x20history')}),_0x4cb7db['delegate']('execute')['to'](_0x5aeb93),_0x4cb7db['on']('execute',()=>{_0x25686c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x38f8fb['children']['add'](_0x4cb7db),_0x32042e['items']['add'](_0x38f8fb),_0x5aeb93['panelView']['children']['add'](_0x32042e),_0x5aeb93;}['_showDialog'](){const _0x251fc1=this['editor'],_0x966f81=_0x251fc1['locale'],_0x9ebae5=_0x251fc1['plugins']['get']('Dialog'),_0x5bb5f4=_0x251fc1['plugins']['get']('RevisionTracker');function _0x1ffdde(_0x404bae){_0x251fc1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x404bae['revisionName']?_0x404bae['revisionNameInputView']['errorText']=m(_0x966f81,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x251fc1['plugins']['get'](l)['saveRevision']({'name':_0x404bae['revisionName']}),_0x9ebae5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1ffdde(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x9ebae5['show']({'id':'revisionSave','title':m(_0x966f81,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x251fc1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x9ebae5['hide']()},{'label':m(_0x251fc1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d2905){_0x1d2905['bind']('isEnabled')['to'](_0x5bb5f4,'isReady',_0x5bb5f4,'isEnabled',_0x251fc1,'isReadOnly',(_0x53225e,_0x1d44ab,_0x5a99cb)=>_0x53225e&&_0x1d44ab&&!_0x5a99cb);},'onExecute':()=>_0x1ffdde(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40a21f=this['editor'],_0x2daed1=_0x40a21f['locale'];this['_saveRevisionFormView']=new ns(_0x2daed1,_0x40a21f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x571e95{['changeId'];['_model'];constructor(_0x176d66,_0x27015d){super(_0x176d66),this['_model']=_0x27015d,this['changeId']=_0x27015d['id'];const _0x4db1de=this['bindTemplate'],_0x21ac29=m(_0x176d66,_0x27015d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x27015d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x27015d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4db1de['to']('type',_0x2d89f6=>'ck-revision-change__'+_0x2d89f6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x21ac29}]},{'text':'\x20'+_0x27015d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3df942(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x408863){super(),this['id']=_0x408863['id']||_0x1f968a(),this['author']=_0x408863['author'],this['type']=_0x408863['type'],this['data']=_0x408863['data']||{},this['rootName']=_0x408863['rootName'],this['set']('createdAt',_0x408863['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3f44eb,_0x2b0276){this['newRevisionId']=_0x3f44eb,this['oldRevisionId']=_0x2b0276,this['changes']=new _0x45da80();}['_setChanges'](_0x47dd7d){for(const _0x49a39e of _0x47dd7d)this['changes']['add'](_0x49a39e);}}const Y={'c':_0xe6e3ea,'a':_0x10d9e1,'e':_0x597b98,'r':_0x27d44b,'u':_0xd4e326};class d extends _0x314a0a{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x7a2999,_0x10aeb9,j];}constructor(_0x477dfe){super(_0x477dfe),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x49cb6c,_0x4b3328,_0x826e24)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1d27b4=>{for(const _0x1bd30e of this['editor']['editing']['view']['document']['roots'])_0x826e24?_0x1d27b4['removeClass']('ck-editor__editable__overlay',_0x1bd30e):_0x1d27b4['addClass']('ck-editor__editable__overlay',_0x1bd30e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xda300=>null!==_0xda300),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27c582,_0x3d141f,_0x28fcf2)=>_0x27c582&&_0x28fcf2?_0x3d141f['changes']['getIndex'](_0x28fcf2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xc77459,_0x1f16d6)=>_0xc77459?_0x1f16d6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x10aeb9);}['init'](){const _0x1352a5=this['editor'],_0x3d0e9b=new yt(_0x1352a5,{'direction':'backward'}),_0x39a3e0=new yt(_0x1352a5,{'direction':'forward'});(_0x1352a5['commands']['add']('showPreviousChange',_0x3d0e9b),_0x1352a5['commands']['add']('showNextChange',_0x39a3e0),_0x1352a5['commands']['add']('restoreRevision',new _t(_0x1352a5)),this['on']('change:numberOfChanges',()=>{_0x3d0e9b['refresh'](),_0x39a3e0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1352a5['enableReadOnlyMode']('revision-viewer'),_0x1352a5['plugins']['has']('WidgetToolbarRepository'))&&_0x1352a5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x141011){await this['loadRevisionData'](_0x141011);const _0x18b712={};for(const _0x4c44c6 in _0x141011['diffData']){if(_0x141011['diffData'][_0x4c44c6]['attachChange']&&!_0x141011['diffData'][_0x4c44c6]['attachChange']['isAttached'])continue;const _0x2bfedc=this['_removeRevisionMarkers'](JSON['parse'](_0x141011['diffData'][_0x4c44c6]['insertions'])),_0x4a795d=this['editor']['editing']['view']['document'],_0x4fc94c=new _0x1ebfbf(_0x4a795d,_0x2bfedc['map'](_0x991413=>this['_getViewObj'](_0x991413)));this['editor']['data']['processor']['useFillerType']('marked'),_0x18b712[_0x4c44c6]=this['editor']['data']['processor']['toData'](_0x4fc94c),this['editor']['data']['processor']['useFillerType']('default');}return _0x18b712;}async['getRevisionRootsAttributes'](_0x58c88b){await this['loadRevisionData'](_0x58c88b);const _0x4c4952={};for(const _0x1cd808 in _0x58c88b['diffData'])_0x58c88b['diffData'][_0x1cd808]['attachChange']&&!_0x58c88b['diffData'][_0x1cd808]['attachChange']['isAttached']||(_0x4c4952[_0x1cd808]=_0x58c88b['diffData'][_0x1cd808]['attributesAfter']||{});return _0x4c4952;}['_removeRevisionMarkers'](_0x112e00){return(_0x112e00=_0x112e00['filter'](_0x13cbf6=>!_0x13cbf6['name']||'revision-start'!==_0x13cbf6['name']&&'revision-end'!==_0x13cbf6['name']))['forEach'](_0x52aad9=>{'string'!=typeof _0x52aad9&&(_0x52aad9['children']=this['_removeRevisionMarkers'](_0x52aad9['children']),_0x52aad9['attributes']=_0x52aad9['attributes']['filter'](_0x68531d=>!_0x68531d[0x0]['startsWith']('data-revision-')));}),_0x112e00;}async['compare'](_0x4cd475,_0x1931a1,_0x2c7893=!0x1){if(!this['isEnabled'])return;const _0x54bbe7=this['diff'],_0x5943a2=this['repository'],_0x1a3645='string'==typeof _0x4cd475?_0x5943a2['getRevision'](_0x4cd475):_0x4cd475,_0x2c911c='string'==typeof _0x1931a1?_0x5943a2['getRevision'](_0x1931a1):_0x1931a1,_0x315592=_0x1a3645['id'],_0x3e56d5=_0x2c911c?_0x2c911c['id']:null;if(!_0x2c7893&&this['diff']&&this['diff']['newRevisionId']===_0x315592&&this['diff']['oldRevisionId']===_0x3e56d5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x315592,_0x3e56d5);const _0xc8cd9a=this['_getRevisionsRange'](_0x1a3645,_0x2c911c,!0x0)['map'](_0x3180f=>this['loadRevisionData'](_0x3180f));return _0xc8cd9a['push'](new Promise(_0x5b87fb=>{setTimeout(_0x5b87fb,0x14);})),Promise['all'](_0xc8cd9a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x256935=this['_getDiff'](_0x315592,_0x3e56d5);for(const _0x4bdf52 of _0x256935['changes'])this['_changeIdToChange']['set'](_0x4bdf52['id'],_0x4bdf52);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x325c96=>{for(const _0x37d204 of this['editor']['model']['document']['getRootNames']())_0x325c96['detachRoot'](_0x37d204);for(const _0x51dc39 of Object['keys'](_0x256935['model'])){const _0xe82c0=_0x325c96['addRoot'](_0x51dc39);for(const _0x389af9 of Object['keys'](_0x256935['attributes'][_0x51dc39]))_0x325c96['setAttribute'](_0x389af9,_0x256935['attributes'][_0x51dc39][_0x389af9],_0xe82c0);_0x325c96['insert'](_0x256935['model'][_0x51dc39],_0xe82c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x256935['changes'])),this['isReady']=!0x0;})['catch'](_0x529e74=>{console['error'](_0x529e74),this['_cleanUp'](),_0x54bbe7&&(this['diff']=_0x54bbe7),this['isReady']=!0x0;});}['addRevisionData'](_0x231adb,_0x3f88e6){const _0x22ea2c=this['repository']['createRevision'](_0x231adb);return _0x22ea2c['on']('_update',(_0x5ac148,_0x4f4d83,_0x555ef0)=>_0x3f88e6(_0x4f4d83,_0x555ef0,_0x22ea2c)),this['repository']['addRevision'](_0x22ea2c),_0x22ea2c;}['loadRevisionData'](_0xd11d47){if(!_0xd11d47||_0xd11d47['diffData'])return Promise['resolve']();{const _0x41f853=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x41f853,'revisionId':_0xd11d47['id']})['then'](_0x13a7d3=>{_0xd11d47['_update']({'diffData':_0x13a7d3['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20dcc0=>{for(const _0x22fc71 of this['editor']['model']['document']['getRootNames']())_0x20dcc0['detachRoot'](_0x22fc71);});}['_sortAndFilterDiffChanges'](_0x621b73){const _0x52cc3f=[],_0x163649=new Map();for(const _0x5cd761 of this['editor']['model']['document']['getRootNames']()){const _0x222963=this['editor']['editing']['view']['getDomRoot'](_0x5cd761);if(!_0x222963)continue;const _0x2b87f6=_0x222963['getClientRects']()['item'](0x0);_0x2b87f6&&(_0x52cc3f['push'](_0x5cd761),_0x163649['set'](_0x5cd761,_0x2b87f6));}return _0x52cc3f['sort']((_0x15eaca,_0x1d7ad4)=>{const _0x3dcc9d=_0x163649['get'](_0x15eaca),_0x24a188=_0x163649['get'](_0x1d7ad4);return _0x3dcc9d['y']-_0x24a188['y']||_0x3dcc9d['x']-_0x24a188['x'];}),(_0x621b73=_0x621b73['filter'](_0x575dd6=>_0x52cc3f['includes'](_0x575dd6['rootName'])))['sort']((_0x51c39c,_0x5871cb)=>_0x52cc3f['indexOf'](_0x51c39c['rootName'])-_0x52cc3f['indexOf'](_0x5871cb['rootName'])),_0x621b73;}['_makeTape'](_0x19c657){const _0x1ac10c=Array['from'](_0x19c657['markers'])['filter'](([_0x13cccb,_0x183aa9])=>_0x13cccb['startsWith']('revision:')&&!_0x183aa9['isCollapsed']),_0x447594=Array['from'](this['editor']['model']['createRangeIn'](_0x19c657)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1ac10c['length'])for(const _0x3d5a3 of _0x447594){const [_0x4430e4,_0x44c6ba]=_0x1ac10c[0x0],[,_0x314cee,_0x4d5d0a]=_0x4430e4['split'](':');if(_0x44c6ba['end']['isEqual'](_0x3d5a3['nextPosition'])&&_0x1ac10c['shift'](),(_0x3d5a3['previousPosition']['isEqual'](_0x44c6ba['start'])||_0x3d5a3['previousPosition']['isAfter'](_0x44c6ba['start']))&&('insertion'==_0x314cee?_0x3d5a3['isAdded']={'userId':_0x4d5d0a}:'deletion'==_0x314cee&&(_0x3d5a3['isRemoved']={'userId':_0x4d5d0a})),0x0==_0x1ac10c['length'])break;}return _0x447594;}['_refreshStartEndIndex'](_0xeb4958){const _0x5d05a9=new Map();for(let _0x4b2780=0x0;_0x4b2780<_0xeb4958['length'];_0x4b2780++)'text'===_0xeb4958[_0x4b2780]['type']?(_0xeb4958[_0x4b2780]['item']['startIndex']=_0x4b2780,_0xeb4958[_0x4b2780]['item']['endIndex']=_0x4b2780):('elementStart'===_0xeb4958[_0x4b2780]['type']?_0xeb4958[_0x4b2780]['item']['startIndex']=_0x4b2780:'elementEnd'===_0xeb4958[_0x4b2780]['type']&&(_0xeb4958[_0x4b2780]['item']['endIndex']=_0x4b2780),_0x5d05a9['set'](_0xeb4958[_0x4b2780]['id'],_0x4b2780));for(const _0x495aa1 of _0x5d05a9['values']())'elementStart'===_0xeb4958[_0x495aa1]['type']?_0xeb4958[_0x495aa1]['item']['endIndex']=_0x5d05a9['get'](_0xeb4958[_0x495aa1]['pairId']):'elementEnd'===_0xeb4958[_0x495aa1]['type']&&(_0xeb4958[_0x495aa1]['item']['startIndex']=_0x5d05a9['get'](_0xeb4958[_0x495aa1]['pairId']));}['_processTape'](_0x33384e){for(let _0x49171a=0x0;_0x49171a<_0x33384e['length'];_0x49171a++){if('elementStart'===_0x33384e[_0x49171a]['type'])_0x33384e[_0x49171a]['item']['startIndex']=_0x49171a;else{if('elementEnd'===_0x33384e[_0x49171a]['type']){_0x33384e[_0x49171a]['item']['endIndex']=_0x49171a;const _0x37bff3=_0x33384e[_0x49171a]['item']['startIndex'];_0x33384e[_0x37bff3]['pairId']=_0x33384e[_0x49171a]['id'],_0x33384e[_0x49171a]['pairId']=_0x33384e[_0x37bff3]['id'];}else _0x33384e[_0x49171a]['item']['startIndex']=_0x49171a,_0x33384e[_0x49171a]['item']['endIndex']=_0x49171a,_0x33384e[_0x49171a]['pairId']=null;}_0x33384e[_0x49171a]['markersStart']||(_0x33384e[_0x49171a]['markersStart']=[],_0x33384e[_0x49171a]['markersEnd']=[]);}}['_markInsertions'](_0x104343,_0x146ba8){const _0x4a7a5d=_0x104343['filter'](_0x582119=>!_0x582119['isAdded']);for(let _0x45abc9=0x0;_0x45abc9<_0x146ba8['length'];_0x45abc9++)_0x146ba8[_0x45abc9]['isAdded']&&(_0x4a7a5d[_0x45abc9]['isAdded']=_0x146ba8[_0x45abc9]['isAdded']);}['_makeModelFromViewString'](_0x4b541c){const _0x374760=JSON['parse'](_0x4b541c),_0xa4d095=this['editor']['editing']['view']['document'],_0x47a6ce=new _0x1ebfbf(_0xa4d095,_0x374760['map'](_0x5b7d6e=>this['_getViewObj'](_0x5b7d6e)));return this['editor']['data']['toModel'](_0x47a6ce);}['_getViewObj'](_0x431692){const _0x551adc=this['editor']['editing']['view']['document'];if('string'==typeof _0x431692)return new _0x166355(_0x551adc,_0x431692);{const _0x2d89e3=_0x431692['children']['map'](_0x33c1a7=>this['_getViewObj'](_0x33c1a7));return new(Y[_0x431692['type']]||_0x2b1c67)(_0x551adc,_0x431692['name'],_0x431692['attributes'],_0x2d89e3);}}['_getDiff'](_0x43444a,_0x1234e5=null){const _0x29b57e=this['repository']['getRevision'](_0x43444a),_0xccab47=_0x1234e5?this['repository']['getRevision'](_0x1234e5):null,_0x1d553e=this['_getRevisionsRange'](_0x29b57e,_0xccab47),_0x432a21=_0x1d553e[_0x1d553e['length']-0x1],_0x4afb93=new Map(),_0x3440dc={'model':{},'attributes':{},'changes':[]},_0x4353aa=new Set(),_0x10a9f4=new Map();for(let _0x53cbb7=_0x1d553e['length']-0x1;_0x53cbb7>=0x0;_0x53cbb7--){const _0x528616=_0x1d553e[_0x53cbb7];for(const _0xacee59 of Object['keys'](_0x528616['diffData']))if(_0x528616['diffData'][_0xacee59]['attachChange']){const _0x185d4a=_0x528616['diffData'][_0xacee59]['attachChange'];_0x185d4a['isAttached']?(_0x4353aa['add'](_0xacee59),_0x10a9f4['has'](_0xacee59)&&_0x10a9f4['get'](_0xacee59)['userId']==_0x185d4a['userId']?_0x10a9f4['delete'](_0xacee59):_0x10a9f4['set'](_0xacee59,_0x185d4a)):_0x10a9f4['has'](_0xacee59)?(_0x4353aa['delete'](_0xacee59),_0x10a9f4['delete'](_0xacee59)):(_0x4353aa['add'](_0xacee59),_0x10a9f4['set'](_0xacee59,_0x185d4a));}else _0x4353aa['add'](_0xacee59);}for(const _0x24ae5f of _0x4353aa){const _0x8d7027=_0x10a9f4['has'](_0x24ae5f)&&!_0x10a9f4['get'](_0x24ae5f)['isAttached'];let _0xf210b7=_0x8d7027?_0x1d553e['length']-0x1:0x0;const _0x49ff17=_0x8d7027?-0x1:0x1;for(;_0x1d553e[_0xf210b7];){const _0x2bc472=_0x1d553e[_0xf210b7];if(_0x2bc472['diffData'][_0x24ae5f]){const _0x4b5866=_0x8d7027?_0x2bc472['diffData'][_0x24ae5f]['attributesBefore']:_0x2bc472['diffData'][_0x24ae5f]['attributesAfter'];_0x3440dc['attributes'][_0x24ae5f]=_0x4b5866?_0x3d1bef(_0x4b5866):{};break;}_0xf210b7+=_0x49ff17;}}for(const _0x3ac146 of _0x1d553e){_0x3ac146['model']={};for(const _0x1b616c of _0x3ac146['authors'])_0x4afb93['set'](_0x1b616c['id'],_0x1b616c);for(const _0x18849e of _0x4353aa){const _0xfd52aa=_0x3ac146['diffData'][_0x18849e]?_0x3ac146['diffData'][_0x18849e]['insertions']:'[]',_0x6e1694=_0x3ac146['diffData'][_0x18849e]?_0x3ac146['diffData'][_0x18849e]['deletions']:'[]';_0x3ac146['model'][_0x18849e]={'insertions':this['_makeModelFromViewString'](_0xfd52aa),'deletions':this['_makeModelFromViewString'](_0x6e1694)};}}for(const _0x38e873 of _0x4353aa){let _0x123943=null,_0x546545=0x0;const _0x2c2449=new Map(Array['from'](_0x29b57e['model'][_0x38e873]['insertions']['markers'])['filter'](([_0x5e5286])=>!_0x5e5286['startsWith']('revision:')));let _0x4533f3=0x0;for(const _0x302513 of _0x1d553e){const _0x49931d=this['_makeTape'](_0x302513['model'][_0x38e873]['insertions']);_0x302513==_0x29b57e?(_0x123943=_0x49931d,_0x546545=_0x123943['length'],_0x123943['forEach'](_0x1fe36b=>{_0x1fe36b['id']=_0x4533f3++;}),this['_processTape'](_0x123943)):this['_markInsertions'](_0x123943,_0x49931d);const _0x1271f1=_0x123943['filter'](_0x2561a1=>!_0x2561a1['isAdded'])['map'](_0x5076ba=>_0x5076ba['id']);let _0x4ae48b=0x0;const _0x315929=this['_makeTape'](_0x302513['model'][_0x38e873]['deletions']);_0x315929['forEach'](_0x3cbba2=>{_0x3cbba2['isRemoved']?_0x3cbba2['id']=_0x546545++:_0x3cbba2['id']=_0x1271f1[_0x4ae48b++];}),this['_processTape'](_0x315929),this['_setDistance'](_0x123943,'isAdded'),this['_setDistance'](_0x315929,'isRemoved'),_0x302513==_0x29b57e&&this['_markMarkers'](_0x123943,_0x2c2449),_0x123943=this['_joinTapes'](_0x123943,_0x315929),this['_refreshStartEndIndex'](_0x123943),this['_setDistance'](_0x123943,'isRemoved');}_0x123943=_0x123943['filter'](_0x191709=>!(_0x191709['isAdded']&&_0x191709['isRemoved']));const _0x573ed0=new Map(_0x432a21['model'][_0x38e873]['deletions']['markers']),_0x3619da=new Set(_0x2c2449['keys']());for(const _0x160ad0 of _0x573ed0['keys']())_0x3619da['delete'](_0x160ad0);this['_markSuggestions'](_0x123943,_0x3619da),this['_fixObsoleteTags'](_0x123943),_0x123943=this['_removeMissingPairs'](_0x123943),_0x123943=this['_markMismatchedRemovedTags'](_0x123943),_0x123943=this['_removeUnsupportedChanges'](_0x123943);const {root:_0x2341a0,changes:_0x297a9b}=this['_makeModelFromTape'](_0x123943,_0x4afb93,_0x38e873);_0x3440dc['model'][_0x38e873]=_0x2341a0;const _0x45c8e6=_0x10a9f4['get'](_0x38e873);if(_0x45c8e6){const _0x1291b6=_0x4afb93['get'](_0x45c8e6['userId']),_0x5c4430=new r({'author':_0x1291b6,'type':_0x45c8e6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x38e873});_0x297a9b['unshift'](_0x5c4430),_0x3440dc['attributes'][_0x38e873]['revisionHistoryAttachChange']=_0x5c4430['id'];}_0x3440dc['changes']=_0x3440dc['changes']['concat'](_0x297a9b);}return _0x3440dc;}['_markMarkers'](_0x1528eb,_0x70a327){for(let _0x558729=0x0;_0x558729<_0x1528eb['length'];_0x558729++)for(const [_0xbe752f,_0x179b37]of _0x70a327)_0x179b37['start']['isEqual'](_0x1528eb[_0x558729]['previousPosition'])&&_0x1528eb[_0x558729]['markersStart']['push'](_0xbe752f),_0x179b37['end']['isEqual'](_0x1528eb[_0x558729]['nextPosition'])&&_0x1528eb[_0x558729]['markersEnd']['push'](_0xbe752f);}['_joinTapes'](_0x432b5a,_0x1e699f){let _0x25fc44=[],_0x58da10=0x0,_0x2c69a5=0x0;for(;_0x58da10<_0x432b5a['length']||_0x2c69a5<_0x1e699f['length'];){const _0x15621a=_0x432b5a[_0x58da10]||{},_0x51d501=_0x1e699f[_0x2c69a5]||{};if(_0x15621a['id']==_0x51d501['id'])_0x58da10++,_0x2c69a5++,_0x25fc44['push'](_0x15621a);else{if(_0x51d501['isRemoved']&&_0x15621a['isAdded']){const {commonTape:_0x3fc19f,iEnd:_0x4e2fbc,jEnd:_0x5b339b}=this['_threeWayMerge'](_0x432b5a,_0x58da10,_0x1e699f,_0x2c69a5);_0x25fc44=_0x25fc44['concat'](_0x3fc19f),_0x58da10=_0x4e2fbc,_0x2c69a5=_0x5b339b;}else _0x51d501['isRemoved']?(_0x2c69a5++,_0x25fc44['push'](_0x51d501)):(_0x58da10++,_0x25fc44['push'](_0x15621a));}}return _0x25fc44;}['_markSuggestions'](_0xdc6f50,_0x13951c){const _0x5d1735=[];for(let _0x5bdc6c=0x0;_0x5bdc6c<_0xdc6f50['length'];_0x5bdc6c++){for(let _0x2ea73d=0x0;_0x2ea73d<_0xdc6f50[_0x5bdc6c]['markersStart']['length'];_0x2ea73d++){const _0x5742c4=_0xdc6f50[_0x5bdc6c]['markersStart'][_0x2ea73d];if(!_0x13951c['has'](_0x5742c4))continue;const {group:_0x592551,type:_0x5e7d5d,authorId:_0x26f303}=_0x34bd0e(_0x5742c4);'revision-suggestion'!=_0x592551||'insertion'!=_0x5e7d5d&&'deletion'!=_0x5e7d5d||(_0x5d1735['unshift']({'type':_0x5e7d5d,'name':_0x5742c4,'userId':_0x26f303}),_0xdc6f50[_0x5bdc6c]['markersStart']['splice'](_0x2ea73d,0x1),_0x2ea73d--);}_0x55a9c1(_0xdc6f50[_0x5bdc6c]);for(let _0x7ea977=0x0;_0x7ea977<_0xdc6f50[_0x5bdc6c]['markersEnd']['length'];_0x7ea977++){const _0x5f9ee2=_0xdc6f50[_0x5bdc6c]['markersEnd'][_0x7ea977];if(!_0x13951c['has'](_0x5f9ee2))continue;const {group:_0x410980,type:_0x96ded4}=_0x34bd0e(_0x5f9ee2);if('revision-suggestion'!=_0x410980||'insertion'!=_0x96ded4&&'deletion'!=_0x96ded4)continue;_0xdc6f50[_0x5bdc6c]['markersEnd']['splice'](_0x7ea977,0x1),_0x7ea977--;const _0x5496cd=_0x5d1735['findIndex'](_0x3cc39b=>_0x3cc39b['name']==_0x5f9ee2);_0x5496cd>-0x1&&_0x5d1735['splice'](_0x5496cd,0x1);}}function _0x34bd0e(_0x17e4a1){const _0x44b832=_0x17e4a1['split'](':');return{'group':_0x44b832[0x0],'type':_0x44b832[0x1],'subType':_0x44b832['length']>=0x5?_0x44b832[0x2]:null,'id':_0x44b832['length']<0x5?_0x44b832[0x2]:_0x44b832[0x3],'authorId':_0x44b832['length']<0x5?_0x44b832[0x3]:_0x44b832[0x4],'markerCount':0x6==_0x44b832['length']?_0x44b832[0x5]:null};}function _0x55a9c1(_0x19b1f4){for(let _0x20ceeb=0x0;_0x20ceeb<_0x5d1735['length'];_0x20ceeb++){if(_0x19b1f4['isAdded']&&'insertion'==_0x5d1735[_0x20ceeb]['type'])return _0x19b1f4['isAddSuggestion']=_0x5d1735[_0x20ceeb],void delete _0x19b1f4['isAdded'];if(!_0x19b1f4['isAdded']&&!_0x19b1f4['isRemoved']&&'deletion'==_0x5d1735[_0x20ceeb]['type'])return void(_0x19b1f4['isRemoveSuggestion']=_0x5d1735[_0x20ceeb]);}}}['_setDistance'](_0x421824,_0x1eb785){let _0x270061=0x0,_0x273b24=!0x1;const _0x2ace2b=new Map();for(const _0x6f9289 of _0x421824)_0x6f9289[_0x1eb785]?_0x273b24&&(_0x270061++,_0x273b24=!0x1):(_0x270061++,_0x273b24=!0x0),_0x2ace2b['set'](_0x6f9289['id'],_0x270061);for(let _0x1ffbf1=0x0;_0x1ffbf1<_0x421824['length'];_0x1ffbf1++){if('isRemoved'==_0x1eb785&&_0x421824[_0x1ffbf1]['isAdded']||'isAdded'==_0x1eb785&&_0x421824[_0x1ffbf1]['isRemoved'])continue;if('text'==_0x421824[_0x1ffbf1]['type']){_0x421824[_0x1ffbf1]['distance']=0x0;continue;}const _0x255556=_0x2ace2b['get'](_0x421824[_0x1ffbf1]['pairId']),_0xdde606=_0x2ace2b['get'](_0x421824[_0x1ffbf1]['id']);_0x421824[_0x1ffbf1]['distance']=_0x255556-_0xdde606;}}['_getRevisionsRange'](_0x2fb2c2,_0x2cea96,_0x345992=!0x1){const _0x8aff2d=[];let _0x2ba582=this['repository']['getIndex'](_0x2fb2c2),_0x3f1185=this['repository']['getIndex'](_0x2cea96);for(-0x1==_0x3f1185&&(_0x3f1185=this['repository']['_revisions']['length'],_0x345992=!0x1);_0x2ba582<_0x3f1185;)_0x8aff2d['push'](this['repository']['getRevision'](_0x2ba582)),_0x2ba582++;return _0x345992&&_0x8aff2d['push'](this['repository']['getRevision'](_0x2ba582)),_0x8aff2d;}['_threeWayMerge'](_0x39bd37,_0x45767f,_0x4d918d,_0x581ca8){const _0x32012c=this['editor']['model']['schema'];let _0x5a30c8=_0x45767f;for(;_0x39bd37[_0x5a30c8]&&_0x39bd37[_0x5a30c8]['isAdded'];)_0x5a30c8++;let _0x904a32=_0x581ca8;for(;_0x4d918d[_0x904a32]&&_0x4d918d[_0x904a32]['isRemoved'];)_0x904a32++;_0x3d2308(_0x39bd37,_0x45767f,_0x5a30c8),_0x3d2308(_0x4d918d,_0x581ca8,_0x904a32);const _0xf10653=_0x4d918d['slice'](_0x581ca8,_0x904a32)['concat'](_0x39bd37['slice'](_0x45767f,_0x5a30c8));return _0xf10653['sort']((_0x31bb77,_0x535142)=>_0x31bb77['side']!=_0x535142['side']?_0x31bb77['side']-_0x535142['side']:_0x31bb77['level']!=_0x535142['level']?_0x31bb77['level']-_0x535142['level']:_0x31bb77['distance']!=_0x535142['distance']?_0x535142['distance']-_0x31bb77['distance']:!!_0x31bb77['isAdded']!=!!_0x535142['isAdded']?-0x1==_0x31bb77['side']||0x0==_0x31bb77['side']?_0x31bb77['isAdded']?-0x1:0x1:_0x31bb77['isAdded']?0x1:-0x1:_0x31bb77['index']-_0x535142['index']),{'commonTape':_0xf10653,'iEnd':_0x5a30c8,'jEnd':_0x904a32};function _0x3d2308(_0x2fcff5,_0x58b942,_0x117029){let _0x15ced8=-0x1,_0x4962d0=Number['POSITIVE_INFINITY'],_0x562d8f=!0x0;for(let _0x35eff4=_0x58b942;_0x35eff4<_0x117029;_0x35eff4++)if(_0x32012c['isInline'](_0x2fcff5[_0x35eff4]['item'])||(_0x562d8f=!0x1),_0x2fcff5[_0x35eff4]['item']['startIndex']<_0x58b942&&(_0x15ced8=_0x35eff4),_0x2fcff5[_0x35eff4]['item']['endIndex']>=_0x117029){_0x4962d0=_0x35eff4;break;}_0x562d8f&&(_0x15ced8=_0x117029-0x1);for(let _0x123f2c=_0x58b942;_0x123f2c<_0x117029;_0x123f2c++)_0x2fcff5[_0x123f2c]['side']=_0x123f2c<=_0x15ced8?-0x1:_0x123f2c<_0x4962d0?0x0:0x1,_0x2fcff5[_0x123f2c]['index']=_0x123f2c;let _0x2a0989=0x0;for(let _0x19d026=_0x58b942;_0x19d026<=_0x15ced8;_0x19d026++)0x0==_0x2fcff5[_0x19d026]['distance']?_0x2fcff5[_0x19d026]['level']=_0x2a0989:(_0x2a0989++,_0x2fcff5[_0x19d026]['level']=_0x2a0989,_0x2a0989++);for(let _0xf20eae=_0x58b942;_0xf20eae<_0x117029;_0xf20eae++)0x0==_0x2fcff5[_0xf20eae]['side']&&(_0x2fcff5[_0xf20eae]['level']=_0x2a0989);_0x2a0989=0x0;for(let _0x10f059=_0x117029-0x1;_0x10f059>=_0x4962d0;_0x10f059--)0x0==_0x2fcff5[_0x10f059]['distance']?_0x2fcff5[_0x10f059]['level']=_0x2a0989:(_0x2a0989--,_0x2fcff5[_0x10f059]['level']=_0x2a0989,_0x2a0989--);}}['_fixObsoleteTags'](_0xe8c0b5){const _0x22ecaf=new Map(),_0x448db0=this['editor']['model']['schema'];for(let _0x51a7a6=0x1;_0x51a7a6<_0xe8c0b5['length'];_0x51a7a6++){let _0x469e49,_0x35b901,_0x4d916a;const _0x2c7115=_0xe8c0b5[_0x51a7a6],_0x1a89b9=_0xe8c0b5[_0x51a7a6-0x1];if('text'==_0x2c7115['type'])continue;if(_0x2c7115['type']!=_0x1a89b9['type'])continue;if(!_0x448db0['isBlock'](_0x1a89b9['item'])||_0x448db0['isLimit'](_0x1a89b9['item']))continue;if(!_0x448db0['isBlock'](_0x2c7115['item'])||_0x448db0['isLimit'](_0x2c7115['item']))continue;if((_0xe8c0b5[_0x51a7a6]['isAdded']||_0xe8c0b5[_0x51a7a6]['isAddSuggestion'])&&_0xe8c0b5[_0x51a7a6-0x1]['isRemoved'])_0x469e49=_0xe8c0b5[_0x51a7a6],_0x35b901=_0xe8c0b5[_0x51a7a6-0x1],_0x4d916a=_0x51a7a6-0x1;else{if(!_0xe8c0b5[_0x51a7a6]['isRemoved']||!_0xe8c0b5[_0x51a7a6-0x1]['isAdded']&&!_0xe8c0b5[_0x51a7a6-0x1]['isAddSuggestion'])continue;_0x469e49=_0xe8c0b5[_0x51a7a6-0x1],_0x35b901=_0xe8c0b5[_0x51a7a6],_0x4d916a=_0x51a7a6;}const _0x1e6aa1=_0x469e49['level']==_0x35b901['level'],_0x3aa877=Math['abs'](_0x469e49['level'])<Math['abs'](_0x35b901['level'])&&0x0==_0x35b901['distance'];(_0x1e6aa1||_0x3aa877)&&(_0x22ecaf['set'](_0x35b901['id'],_0x469e49['id']),_0xe8c0b5['splice'](_0x4d916a,0x1),_0x51a7a6--,_0x469e49['isAdded']=!0x1);}for(let _0xf8aad1=0x0;_0xf8aad1<_0xe8c0b5['length'];_0xf8aad1++)_0x22ecaf['has'](_0xe8c0b5[_0xf8aad1]['pairId'])&&(_0xe8c0b5[_0xf8aad1]['pairId']=_0x22ecaf['get'](_0xe8c0b5[_0xf8aad1]['pairId']));}['_removeMissingPairs'](_0x597e90){const _0x867724=new Set(_0x597e90['map'](_0x14776a=>_0x14776a['id']));for(let _0x22b10e=0x0;_0x22b10e<_0x597e90['length'];_0x22b10e++)_0x867724['has'](_0x597e90[_0x22b10e]['pairId'])||0x0==_0x597e90[_0x22b10e]['distance']||(_0x597e90[_0x22b10e]['isIncorrect']=!0x0);return _0x597e90['filter'](_0x43cd0a=>!_0x43cd0a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x336cb7){const _0x69b211=new Set();for(let _0x4d9910=0x0;_0x4d9910<_0x336cb7['length'];_0x4d9910++){if(_0x69b211['has'](_0x336cb7[_0x4d9910]['id'])&&_0x336cb7[_0x4d9910]['isRemoved']&&(_0x336cb7[_0x4d9910]['isIncorrect']=!0x0),_0x336cb7[_0x4d9910]['isIncorrect'])continue;if(0x0==_0x336cb7[_0x4d9910]['distance'])continue;if('elementStart'!=_0x336cb7[_0x4d9910]['type'])continue;if(null==_0x336cb7[_0x4d9910]['pairId'])continue;let _0x37dae1=_0x4d9910+0x1,_0x314fe6=0x0;for(;_0x336cb7[_0x37dae1]['id']!=_0x336cb7[_0x4d9910]['pairId'];)'elementStart'==_0x336cb7[_0x37dae1]['type']?_0x314fe6++:'elementEnd'==_0x336cb7[_0x37dae1]['type']&&_0x314fe6--,_0x37dae1++;if(0x0!=_0x314fe6){if(_0x336cb7[_0x4d9910]['isRemoved'])_0x336cb7[_0x4d9910]['isIncorrect']=!0x0;else{for(;_0x37dae1!=_0x4d9910;)_0x336cb7[_0x37dae1]['isRemoved']&&0x0!=_0x336cb7[_0x37dae1]['distance']&&(_0x336cb7[_0x37dae1]['isIncorrect']=!0x0,_0x69b211['add'](_0x336cb7[_0x37dae1]['pairId'])),_0x37dae1--;}}}return _0x336cb7['filter'](_0x280743=>!_0x280743['isIncorrect']);}['_removeUnsupportedChanges'](_0x4b4e14){const _0x437d46=this['editor']['model']['schema'];for(let _0x2add56=0x0;_0x2add56<_0x4b4e14['length'];_0x2add56++){if(!(_0x4b4e14[_0x2add56]['isAdded']||_0x4b4e14[_0x2add56]['isAddSuggestion']||_0x4b4e14[_0x2add56]['isRemoved']||_0x4b4e14[_0x2add56]['isRemoveSuggestion']))continue;if(0x0==_0x4b4e14[_0x2add56]['distance'])continue;const _0x110499=_0x4b4e14[_0x2add56]['item'];_0x437d46['isBlock'](_0x110499)||_0x437d46['isLimit'](_0x110499)||(_0x4b4e14[_0x2add56]['isAdded']&&delete _0x4b4e14[_0x2add56]['isAdded'],_0x4b4e14[_0x2add56]['isAddSuggestion']&&delete _0x4b4e14[_0x2add56]['isAddSuggestion'],_0x4b4e14[_0x2add56]['isRemoveSuggestion']&&delete _0x4b4e14[_0x2add56]['isRemoveSuggestion'],_0x4b4e14[_0x2add56]['isRemoved']&&(_0x4b4e14[_0x2add56]['isIncorrect']=!0x0));}return _0x4b4e14['filter'](_0x1bfaea=>!_0x1bfaea['isIncorrect']);}['_makeModelFromTape'](_0xb6e232,_0x14cefc,_0x20cf9f){const _0x52d700=new mt(),_0x325388=[],_0x5ae094=new Map(),_0x5511d7=this['editor']['model'],_0x11b375=_0x5511d7['schema'],_0x515cff=[_0x52d700],_0x5763d0={},_0x23f42a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f56bf=null;const _0xf451dd=[0x0];for(let _0x26d1ba=0x0;_0x26d1ba<_0xb6e232['length'];_0x26d1ba++)if('elementStart'===_0xb6e232[_0x26d1ba]['type']){_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd);const _0x496a62=new ft(_0xb6e232[_0x26d1ba]['item']['name'],_0xb6e232[_0x26d1ba]['item']['getAttributes']());_0x515cff[0x0]['_appendChild'](_0x496a62),_0xf451dd['push'](0x0),_0x515cff['unshift'](_0x496a62),_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd);}else'elementEnd'===_0xb6e232[_0x26d1ba]['type']?(_0x515cff['shift'](),_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd),_0xf451dd['pop'](),_0xf451dd[_0xf451dd['length']-0x1]++,_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd)):(_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd),_0x3f56bf?_0x3f56bf['_data']+=_0xb6e232[_0x26d1ba]['item']['data']:_0x3f56bf=new wt(_0xb6e232[_0x26d1ba]['item']['data'],_0xb6e232[_0x26d1ba]['item']['getAttributes']()),_0xb6e232[_0x26d1ba+0x1]&&'text'===_0xb6e232[_0x26d1ba+0x1]['type']&&_0x13bed1(_0x3f56bf,_0xb6e232[_0x26d1ba+0x1]['item'])||(_0x515cff[0x0]['_appendChild'](_0x3f56bf),_0x3f56bf=null),_0xf451dd[_0xf451dd['length']-0x1]+=_0xb6e232[_0x26d1ba]['item']['offsetSize'],_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd));for(let _0x55e250=0x0;_0x55e250<_0xb6e232['length'];_0x55e250++){const _0x348959=_0xb6e232[_0x55e250]['previousPosition'],_0x4b1034=_0xb6e232[_0x55e250]['nextPosition'];for(const _0x5d96cf of _0xb6e232[_0x55e250]['markersStart'])_0x5ae094['set'](_0x5d96cf,{'start':_0x348959,'end':null});_0x199615('isRemoveSuggestion',_0x55e250,_0x348959,_0x4b1034),_0x199615('isAddSuggestion',_0x55e250,_0x348959,_0x4b1034),_0x199615('isRemoved',_0x55e250,_0x348959,_0x4b1034),_0x199615('isAdded',_0x55e250,_0x348959,_0x4b1034);for(const _0x1cea7d of _0xb6e232[_0x55e250]['markersEnd']){_0x5ae094['get'](_0x1cea7d)['end']=_0x4b1034;}}for(const [_0xbd1581,_0x4bb7c6]of _0x5ae094){const _0x386212=this['editor']['model']['createRange'](_0x4bb7c6['start'],_0x4bb7c6['end']);_0x52d700['markers']['set'](_0xbd1581,_0x386212);}return _0x325388['sort']((_0x4f0b9e,_0x2f0503)=>{const _0x2df97a=_0x52d700['markers']['get']('revision:'+_0x4f0b9e['id']),_0x3cc04c=_0x52d700['markers']['get']('revision:'+_0x2f0503['id']);return _0x2df97a['start']['isBefore'](_0x3cc04c['start'])?-0x1:_0x2df97a['start']['isAfter'](_0x3cc04c['start'])?0x1:_0x2df97a['end']['isBefore'](_0x3cc04c['end'])?-0x1:_0x2df97a['end']['isAfter'](_0x3cc04c['end'])?0x1:'add'===_0x4f0b9e['type']?-0x1:0x1;}),{'root':_0x52d700,'changes':_0x325388};function _0x199615(_0x53515d,_0x3d9b01,_0xd12724,_0x79f6df){const _0x5c1ca0=!!_0xb6e232[_0x3d9b01][_0x53515d],_0x16d037=_0x5c1ca0?_0xb6e232[_0x3d9b01][_0x53515d]['userId']:null,_0x5905bd=_0x3d9b01===_0xb6e232['length']-0x1,_0x4ec27b=_0x23f42a[_0x53515d][0x0],_0x5ed382=_0x11b375['isObject'](_0xb6e232[_0x3d9b01]['item']);!_0x5763d0[_0x53515d]&&_0x5c1ca0?_0x5763d0[_0x53515d]={'start':_0xd12724,'tapeItem':_0xb6e232[_0x3d9b01],'userId':_0x16d037,'type':_0x53515d}:_0x5763d0[_0x53515d]&&!_0x5c1ca0?(_0x5763d0[_0x53515d]['end']=_0xd12724,_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]=null):_0x5763d0[_0x53515d]&&_0x5c1ca0&&_0x5763d0[_0x53515d]['userId']!==_0x16d037&&(_0x5763d0[_0x53515d]['end']=_0xd12724,_0x4ec27b&&_0x4ec27b['userId']===_0x5763d0[_0x53515d]['userId']||_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]={'start':_0xd12724,'tapeItem':_0xb6e232[_0x3d9b01],'userId':_0x16d037,'type':_0x53515d}),_0x5763d0[_0x53515d]&&_0x5ed382&&('elementStart'!==_0xb6e232[_0x3d9b01]['type']||_0x4ec27b&&_0x4ec27b['userId']===_0x16d037||_0x23f42a[_0x53515d]['unshift']({'userId':_0x16d037,'object':_0xb6e232[_0x3d9b01]['item'],'change':_0x5763d0[_0x53515d]}),'elementEnd'===_0xb6e232[_0x3d9b01]['type']&&_0x4ec27b&&_0x4ec27b['object']===_0xb6e232[_0x3d9b01]['item']&&(_0x23f42a[_0x53515d]['shift'](),_0x5763d0[_0x53515d]=_0x4ec27b['change'])),_0x5763d0[_0x53515d]&&_0x5905bd&&(_0x5763d0[_0x53515d]['end']=_0x79f6df,_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]=null);}function _0x4d3b32({start:_0x39472e,end:_0x2e67fc,tapeItem:_0x3337ec,userId:_0x5154db,type:_0x1a3c91}){const _0x5bd1ba=_0x3337ec['item'],_0x5c7775=_0x5511d7['schema']['isBlock'](_0x5bd1ba)&&!_0x5511d7['schema']['isLimit'](_0x5bd1ba),_0x2abb29=_0x39472e['nodeAfter']==_0x2e67fc['parent']&&_0x2e67fc['isAtStart'];if(_0x5c7775&&_0x2abb29)return;const _0x11ba11=_0x5511d7['createRange'](_0x39472e,_0x2e67fc),_0x418c71=_0x14cefc['get'](_0x5154db),_0x1e1cb7=new r({'author':_0x418c71,'type':'isAdded'==_0x1a3c91||'isAddSuggestion'==_0x1a3c91?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1a3c91||'isRemoveSuggestion'==_0x1a3c91},'createdAt':new Date(),'rootName':_0x20cf9f});_0x325388['push'](_0x1e1cb7),_0x52d700['markers']['set']('revision:'+_0x1e1cb7['id'],_0x11ba11);}function _0x13bed1(_0xcb6ff4,_0x3b5cb3){const _0x191532=_0xcb6ff4['getAttributes'](),_0x29c85b=_0x3b5cb3['getAttributes']();for(const _0x1b3584 of _0x191532){if(_0x1b3584[0x1]!==_0x3b5cb3['getAttribute'](_0x1b3584[0x0]))return!0x1;_0x29c85b['next']();}return _0x29c85b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39961a=>{const _0x3cb291=_0x39961a['markerName']['split'](':')[0x1],_0x32024c=this['_getChangeFromId'](_0x3cb291);if(!_0x32024c)return null;const _0x43dcb4='add'==_0x32024c['type']?'insertion':'deletion',_0x1fec07=['ck-suggestion-marker','ck-suggestion-marker-'+_0x43dcb4];return _0x32024c['data']['isSuggestion']&&_0x1fec07['push']('ck-suggestion-marker-'+_0x43dcb4+'-new'),this['activeChange']==_0x32024c&&_0x1fec07['push']('ck-suggestion-marker--active'),{'classes':_0x1fec07,'attributes':{'data-change-id':_0x3cb291}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3f5da3=>{_0x3f5da3['on']('element:pre',(_0x49a34a,_0x4a9de4,_0x98ed55)=>{const _0x18a1a5=_0x4a9de4['viewItem']['getChild'](0x0);if(!_0x18a1a5||!_0x18a1a5['is']('element','code'))return;if(!_0x98ed55['consumable']['consume'](_0x18a1a5,{'attributes':['vid_start','vid_end']}))return;const _0xa190ef=_0x4a9de4['modelRange']['start']['nodeAfter'];_0x98ed55['writer']['setAttribute']('vid_start',_0x18a1a5['getAttribute']('vid_start'),_0xa190ef),_0x98ed55['writer']['setAttribute']('vid_end',_0x18a1a5['getAttribute']('vid_end'),_0xa190ef);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x30c192=>{_0x30c192['on']('element',(_0x34b596,_0x6770f3,_0x5cabc7)=>{if(!_0x5cabc7['consumable']['consume'](_0x6770f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x6770f3['modelRange']['isCollapsed'])return;const _0x2216c0=_0x6770f3['modelRange']['start']['nodeAfter'];_0x2216c0['hasAttribute']('vid_start')||_0x2216c0['hasAttribute']('vid')||(_0x5cabc7['writer']['setAttribute']('vid_start',_0x6770f3['viewItem']['getAttribute']('vid_start'),_0x2216c0),_0x5cabc7['writer']['setAttribute']('vid_end',_0x6770f3['viewItem']['getAttribute']('vid_end'),_0x2216c0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51854a=>_0x51854a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53df3f,[,_0x5911cc])=>{['vid_start','vid_end','vid']['includes'](_0x5911cc)&&(_0x53df3f['return']=!0x0,_0x53df3f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f1adc=>{_0x4f1adc['on']('attribute:vid',(_0x42bad8,_0x59c18a,_0x50b9b0)=>{if('\x20'!=_0x59c18a['item']['data']||_0x59c18a['item']['parent']['maxOffset']>0x1)return;if(!_0x50b9b0['consumable']['consume'](_0x59c18a['item'],_0x42bad8['name']))return;const _0x93df2c=_0x50b9b0['writer'],_0x56bcbb=_0x50b9b0['mapper']['toViewRange'](_0x59c18a['range']);_0x93df2c['wrap'](_0x56bcbb,_0x93df2c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x397c7d){const _0x44ffd2=_0x397c7d['plugins']['get']('RevisionViewer');return(_0x3783b9,_0x3ffc12,_0x4c12c7)=>{const _0x3b374a=_0x3ffc12['markerName']['split'](':')[0x1],_0x9a0433=_0x44ffd2['_getChangeFromId'](_0x3b374a);if(!_0x9a0433)return null;const _0x3676f7='add'==_0x9a0433['type']?'split':'merge';if(!_0x4c12c7['consumable']['test'](_0x3ffc12['markerRange'],_0x3783b9['name']))return;const _0x1b5790=_0x3ffc12['markerRange']['getWalker'](),_0x1cd090=_0x3ffc12['markerRange']['start'],_0x26c27b=_0x397c7d['model']['schema'];let _0x699026=null,_0x4fea67=null,_0x17b310=!0x1,_0x20cb45=!0x1;for(const _0x502e68 of _0x1b5790){const _0x18b327=_0x502e68['item'];_0x17b310=_0x17b310||_0x26c27b['isContent'](_0x18b327);const _0x4f769f=_0x4c12c7['mapper']['toViewElement'](_0x18b327);if(_0x4f769f&&_0x4f769f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x502e68['type']&&(_0x26c27b['isBlock'](_0x18b327)&&!_0x26c27b['isLimit'](_0x18b327)&&(_0x18b327['nextSibling']||_0x1cd090['isAtEnd']?_0x699026&&_0x699026['parent']==_0x18b327||(_0x699026=_0x18b327,_0x54ed0b(_0x502e68['previousPosition']),_0x20cb45=!0x0):_0x4fea67=_0x4fea67||_0x502e68['previousPosition']));}function _0x54ed0b(_0xe9febc){const _0x1d49bd=_0x4c12c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3676f7}),_0x3c26d9=_0x4c12c7['mapper']['toViewPosition'](_0xe9febc);_0x9a0433['data']['isSuggestion']&&_0x4c12c7['writer']['addClass']('ck-suggestion-marker-'+_0x3676f7+'-new',_0x1d49bd),_0x44ffd2['activeChange']==_0x9a0433&&_0x4c12c7['writer']['addClass']('ck-suggestion-marker--active',_0x1d49bd),_0x4c12c7['writer']['insert'](_0x3c26d9,_0x1d49bd),_0x4c12c7['mapper']['bindElementToMarker'](_0x1d49bd,_0x3ffc12['markerName']);}_0x17b310||_0x20cb45||!_0x4fea67||_0x54ed0b(_0x4fea67);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x536594,_0x5cec99,_0x327cf7)=>{const _0x32269d=_0x327cf7['mapper']['markerNameToElements'](_0x5cec99['markerName']);if(_0x32269d){for(const _0x2049c2 of _0x32269d)(_0x2049c2['hasClass']('ck-suggestion-marker-split')||_0x2049c2['hasClass']('ck-suggestion-marker-merge'))&&(_0x327cf7['mapper']['unbindElementFromMarkerName'](_0x2049c2,_0x5cec99['markerName']),_0x327cf7['writer']['remove'](_0x2049c2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3bacc1,_0xdfb4cc,_0x29c867)=>{const _0x43ddb7=_0xdfb4cc['markerName']['split'](':')[0x1],_0x255fc7=this['_getChangeFromId'](_0x43ddb7);if(!_0x255fc7)return null;const _0x38f25c='add'==_0x255fc7['type']?'split':'merge';if(_0x29c867['consumable']['test'](_0xdfb4cc['markerRange'],_0x3bacc1['name']))for(const _0x474263 of _0xdfb4cc['markerRange']['getItems']()){if(!_0x474263['is']('element','softBreak'))continue;const _0x3d44d7=_0x29c867['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38f25c}),_0x20da42=_0x29c867['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x474263));_0x255fc7['data']['isSuggestion']&&_0x29c867['writer']['addClass']('ck-suggestion-marker-'+_0x38f25c+'-new',_0x3d44d7),this['activeChange']==_0x255fc7&&_0x29c867['writer']['addClass']('ck-suggestion-marker--active',_0x3d44d7),_0x29c867['writer']['insert'](_0x20da42,_0x3d44d7),_0x29c867['mapper']['bindElementToMarker'](_0x3d44d7,_0xdfb4cc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x264b4f=>{for(const _0x31bb78 of this['editor']['model']['document']['getRootNames']()){const _0x1e9a4a=this['editor']['model']['document']['getRoot'](_0x31bb78),_0x46033e=this['editor']['editing']['view']['document']['getRoot'](_0x31bb78);if(_0x46033e){const _0x347a49=_0x1e9a4a['getAttribute']('revisionHistoryAttachChange');if(_0x264b4f['removeAttribute']('data-change-id',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root-add',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root-remove',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root--active',_0x46033e),_0x347a49){const _0x2e8875=this['_getChangeFromId'](_0x347a49);if(!_0x2e8875)return null;_0x264b4f['setAttribute']('data-change-id',_0x347a49,_0x46033e),_0x264b4f['addClass']('ck-revision-history-root-'+_0x2e8875['type'],_0x46033e),this['activeChange']==_0x2e8875&&_0x264b4f['addClass']('ck-revision-history-root--active',_0x46033e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2669c7=>'revision-comment:'+_0x2669c7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d2eb7=>'revision-suggestion:'+_0x5d2eb7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2cfd9f=>({'name':'suggestion:'+_0x2cfd9f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15a808=>{const _0x13d8c5=_0x15a808['markerName']['split'](':')[0x1];return'insertion'!=_0x13d8c5&&'deletion'!=_0x13d8c5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13d8c5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4161ad,_0xa1a48f,_0x173cc5)=>{const _0x7b5ab2=_0x173cc5['mapper']['markerNameToElements'](_0xa1a48f['markerName']);if(_0x7b5ab2){for(const _0x449d9c of _0x7b5ab2)_0x449d9c['is']('uiElement')&&(_0x173cc5['mapper']['unbindElementFromMarkerName'](_0x449d9c,_0xa1a48f['markerName']),_0x173cc5['writer']['remove'](_0x449d9c));}},{'priority':'high'});}['_getChangeFromId'](_0x3e10f5){return this['_changeIdToChange']['get'](_0x3e10f5);}['_getViewForChange'](_0x104e75){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x104e75),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a6bb2,_0x45c7f0,_0x819c0f,_0x11c75b)=>{_0x11c75b&&this['_balloon']['remove'](_0x11c75b),_0x819c0f&&(this['_balloon']['add']({'view':_0x819c0f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5b5e5c=this['editor']['editing'],_0x2339c1=this['_getChangeFromId'](_0x819c0f['changeId']);let _0x176380;if(_0x2339c1['data']['isOnRoot']){const _0x6532ef=_0x5b5e5c['view']['getDomRoot'](_0x2339c1['rootName']);_0x176380=Array['from'](_0x6532ef['getClientRects']());}else{const _0x3e6b5f=this['editor']['model']['markers']['get']('revision:'+_0x819c0f['changeId']);_0x176380=Array['from'](_0x5b5e5c['mapper']['markerNameToElements'](_0x3e6b5f['name']))['map'](_0x2f0382=>_0x5b5e5c['view']['domConverter']['mapViewToDom'](_0x2f0382))['map'](_0x1ffeda=>Array['from'](_0x1ffeda['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x176380[0x0];return _0x176380['find'](_0x1d0485=>_0x1d0485['top']-0x3<=this['_activeViewTarget']['y']&&_0x1d0485['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1d0485['left']-0x3<=this['_activeViewTarget']['x']&&_0x1d0485['right']+0x3>=this['_activeViewTarget']['x'])||_0x176380[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x313fbd,_0x1167df,_0x2776f6,_0x22c6e0)=>{this['activeView']=_0x2776f6?this['_getViewForChange'](_0x2776f6):null,this['editor']['model']['change'](()=>{const _0x2ca90c=this['editor']['editing'];_0x22c6e0&&(_0x22c6e0['data']['isOnRoot']?_0x2ca90c['view']['change'](_0x4a63c4=>{_0x4a63c4['removeClass']('ck-revision-history-root--active',_0x2ca90c['view']['document']['getRoot'](_0x22c6e0['rootName']));}):_0x2ca90c['reconvertMarker']('revision:'+_0x22c6e0['id'])),_0x2776f6&&(_0x2776f6['data']['isOnRoot']?_0x2ca90c['view']['change'](_0x50310a=>{_0x50310a['addClass']('ck-revision-history-root--active',_0x2ca90c['view']['document']['getRoot'](_0x2776f6['rootName']));}):_0x2ca90c['reconvertMarker']('revision:'+_0x2776f6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd7d6be,_0x3183c9)=>{if(this['activeChange'])return;const _0xd19b86=this['_findChangeIdFromDomTarget'](_0x3183c9['target']),_0x32ef32=this['_changeIdToChange']['get'](_0xd19b86);_0x32ef32?(this['_activeViewTarget']={'x':_0x3183c9['domEvent']['x'],'y':_0x3183c9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x32ef32)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x430658,_0x43451f)=>{const _0x501938=this['_findChangeIdFromDomTarget'](_0x43451f['target']),_0x447671=this['_changeIdToChange']['get'](_0x501938);_0x447671?(this['_activeViewTarget']={'x':_0x43451f['domEvent']['x'],'y':_0x43451f['domEvent']['y']},_0x447671===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x447671):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2ab4d5){do{const _0x311faf=_0x2ab4d5['getAttribute']('data-change-id');if(_0x311faf)return _0x311faf;_0x2ab4d5=_0x2ab4d5['parent'];}while(_0x2ab4d5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49bbcc=>{for(const _0x17880c of this['editor']['model']['markers'])_0x49bbcc['removeMarker'](_0x17880c);});}}function Z(_0x30e40f,_0x10f402){return(_0xc57c0d,_0x5f1592,_0x51214b)=>{if(!_0x51214b['consumable']['test'](_0x5f1592['markerRange'],_0xc57c0d['name']))return;const _0x3c739d=_0x5f1592['markerRange']['getWalker'](),_0x26aa70=_0x5f1592['markerRange']['start'],_0x543a07=_0x30e40f['model']['schema'];let _0x5e5760=null,_0x1e56d5=null,_0x548e97=!0x1,_0x5400c2=!0x1;for(const _0x2f7150 of _0x3c739d){const _0x189db7=_0x2f7150['item'];_0x548e97=_0x548e97||_0x543a07['isContent'](_0x189db7);const _0x29e78d=_0x51214b['mapper']['toViewElement'](_0x189db7);if(_0x29e78d&&_0x29e78d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f7150['type']&&(_0x543a07['isBlock'](_0x189db7)&&!_0x543a07['isLimit'](_0x189db7)&&(_0x189db7['nextSibling']||_0x26aa70['isAtEnd']?_0x5e5760&&_0x5e5760['parent']==_0x189db7||(_0x5e5760=_0x189db7,_0x53685b(_0x2f7150['previousPosition']),_0x5400c2=!0x0):_0x1e56d5=_0x1e56d5||_0x2f7150['previousPosition']));}function _0x53685b(_0x2d496a){const _0x2ca58b=_0x51214b['mapper']['toViewPosition'](_0x2d496a),_0x482850=_0x51214b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x10f402});_0x51214b['writer']['insert'](_0x2ca58b,_0x482850),_0x51214b['mapper']['bindElementToMarker'](_0x482850,_0x5f1592['markerName']);}_0x548e97||_0x5400c2||!_0x1e56d5||_0x53685b(_0x1e56d5);};}class _t extends _0x33fccf{constructor(_0x3b33b5){super(_0x3b33b5);const _0x13197f=_0x3b33b5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x13197f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13197f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x252d2f=this['editor'],_0x5d73c9=_0x252d2f['plugins']['get'](d),_0xec4c1d=_0x5d73c9['isReady']?_0x5d73c9['diff']['newRevisionId']:null;_0x252d2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xec4c1d);}['refresh'](){const {isReady:_0x1b5885,isEnabled:_0xb6c653,repository:_0x3e0073,diff:_0x15cbf5}=this['editor']['plugins']['get'](d),_0x11855f=_0x15cbf5&&_0x3e0073['getLaterVisibleRevision'](_0x15cbf5['newRevisionId']);this['isEnabled']=_0x1b5885&&_0xb6c653&&Boolean(_0x11855f);}}class yt extends _0x33fccf{['_step'];constructor(_0x4f8957,{direction:_0x335168}){super(_0x4f8957);const _0x4d2dbb=_0x4f8957['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x335168?0x1:-0x1,this['listenTo'](_0x4d2dbb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d2dbb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4d2dbb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x43f33a=this['editor'],_0x36323e=_0x43f33a['plugins']['get'](d),{isNavigationMode:_0x177368,currentChangeNumber:_0x5ba8d3}=_0x36323e;let _0x2faba8;if(_0x36323e['activeChange']=_0x177368?_0x36323e['diff']['changes']['get'](_0x5ba8d3+this['_step']):_0x36323e['diff']['changes']['first'],_0x36323e['activeChange']['data']['isOnRoot'])_0x2faba8=_0x43f33a['editing']['view']['getDomRoot'](_0x36323e['activeChange']['rootName']);else{const _0x2c765d=_0x43f33a['model']['markers']['get']('revision:'+_0x36323e['activeChange']['id']);_0x2faba8=_0x4c436f(_0x43f33a['editing'],_0x2c765d);}_0x44e10f({'target':_0x2faba8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xc10b20,currentChangeNumber:_0x12902a,numberOfChanges:_0x3b2bd9,isReady:_0x4a612a,isEnabled:_0x342dbf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x342dbf&&_0x4a612a&&_0x3b2bd9)&&(!_0xc10b20||(0x1===this['_step']?_0x12902a<_0x3b2bd9-0x1:_0x12902a>0x0));}}class _i extends _0x571e95{constructor(_0xf1b066){super(_0xf1b066);const _0x27c43a=this['bindTemplate'],_0x10c4ea=new _0x59b23e(_0xf1b066),_0x1e6f70=new _0x59b23e(_0xf1b066);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',(_0x36535f,_0x339c52)=>_0x36535f&&_0x339c52>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x222976,_0x587033,_0x958324,_0x352037)=>{if(!_0x222976)return m(_0xf1b066,'Loading...');if(!_0x958324)return m(_0xf1b066,'No\x20changes');const _0x5659ea=m(_0xf1b066,'NUMBER_OF_CHANGES',_0x958324);return _0x352037?m(_0xf1b066,'X_OF_Y_CHANGES',[_0x587033+0x1,_0x958324]):_0x5659ea;}),_0x10c4ea['set']({'label':m(_0xf1b066,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x1e6f70['set']({'label':m(_0xf1b066,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x10c4ea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1e6f70['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x10c4ea['on']('execute',()=>this['fire']('execute','backward')),_0x1e6f70['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',_0x27c43a['if']('_isStatusLabelVisible','ck-hidden',_0x244052=>!_0x244052)]},'children':[{'text':_0x27c43a['to']('isNavigationMode',_0x819b72=>_0x819b72?m(_0xf1b066,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xf1b066,'Total')+':\x20')}]},{'text':_0x27c43a['to']('_statusText')}]},new _0x488774(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x10c4ea,_0x1e6f70]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x314a0a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1d9426=this['editor']['editing']['view'];_0x1d9426['change'](_0x115b21=>{for(const _0x3396ce of _0x1d9426['document']['roots'])_0x115b21['addClass'](ce,_0x3396ce);});}['hide'](){const _0x256241=this['editor']['editing']['view'];_0x256241['change'](_0x561195=>{for(const _0x2cee9c of _0x256241['document']['roots'])_0x561195['removeClass'](ce,_0x2cee9c);});}}class g extends _0x314a0a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21fa54=this['editor'],_0x568b76=_0x21fa54['plugins']['get'](d),_0x4869a7=_0x21fa54['plugins']['get'](le);_0x21fa54['ui']['componentFactory']['add']('exitToEditing',_0x45d1ac=>{const _0x48dbe7=new _0x59b23e(_0x45d1ac);return _0x48dbe7['set']({'label':m(_0x45d1ac,'Back\x20to\x20editing'),'icon':_0x42aafe['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x48dbe7,'execute',()=>{_0x21fa54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x48dbe7;}),_0x21fa54['ui']['componentFactory']['add']('restoreRevision',_0x4973eb=>{const _0x43c3b4=new _0x59b23e(_0x4973eb);return _0x43c3b4['set']({'label':m(_0x4973eb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x43c3b4['bind']('isEnabled')['to'](_0x21fa54['commands']['get']('restoreRevision')),this['listenTo'](_0x43c3b4,'execute',()=>_0x21fa54['execute']('restoreRevision')),_0x43c3b4;}),_0x21fa54['ui']['componentFactory']['add']('changesNavigation',_0x5148e4=>{const _0xd17881=new _i(_0x5148e4),_0x1c9dee=_0x21fa54['commands']['get']('showPreviousChange'),_0x428060=_0x21fa54['commands']['get']('showNextChange');return _0xd17881['bind']('isBackwardNavigationEnabled')['to'](_0x1c9dee,'isEnabled'),_0xd17881['bind']('isForwardNavigationEnabled')['to'](_0x428060,'isEnabled'),_0xd17881['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x568b76),this['listenTo'](_0xd17881,'execute',(_0x231058,_0x486ed1)=>{_0x21fa54['execute']('forward'===_0x486ed1?'showNextChange':'showPreviousChange');}),_0xd17881;}),_0x4869a7['show'](),_0x568b76['on']('change:isReady',(_0x9e11ff,_0x33898f,_0x20f4a7)=>{_0x20f4a7?_0x4869a7['hide']():_0x4869a7['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x174f37,_0x51bdf1){super(_0x174f37,_0x51bdf1);const _0x15fcab=this['bindTemplate'];this['set']({'label':m(_0x174f37,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x174f37,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x15fcab['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xae285d=this['fieldView']['element'];this['_tooltipString']=_0xae285d['scrollWidth']>_0xae285d['clientWidth']&&_0xae285d['value']||'';}}class ti extends _0x571e95{constructor(_0x4b1766,_0x3f61b0,_0x525d9a){super(_0x4b1766);const _0x2012d4=new _0xc17691();_0x2012d4['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2099d8=['ck','ck-revision-history-sidebar__revision-author'];_0x525d9a&&_0x2099d8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x209d55=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4b1766,_0x525d9a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2012d4,_0x3f61b0['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2099d8},'children':_0x209d55});}}function ni(_0x51b41b,_0x5076ce){const _0x124463=_0x51b41b['bindTemplate'],_0xc4250e=_0x51b41b['locale'],_0x1bb08e=_0x480339(_0xc4250e);_0x1bb08e['panelPosition']='sw';const _0x408b88=function(_0x2f553c,_0x5ad194){const _0x462b12=function(_0x34cdb9,_0x55edb3){const _0x192b5a=_0x34cdb9['locale'],_0x41760f={'Compare\x20against\x20selected':m(_0x192b5a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x192b5a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x192b5a,'Restore\x20this\x20revision')};return _0x55edb3['map'](_0x3dee1e=>{const _0x39426b=_0x41760f[_0x3dee1e['name']];return _0x39426b&&_0x39426b!==_0x3dee1e['name']&&(_0x3dee1e['name']=_0x39426b),_0x3dee1e;});}(_0x2f553c,_0x5ad194),_0x3973a6=new _0x45da80();for(const _0x239d28 of _0x462b12){const _0x317890={'type':'button','model':new to({'label':_0x239d28['name'],'class':_0x239d28['class'],'withText':!0x0,'role':'menuitem','_action':_0x239d28['action']})};_0x317890['model']['bind']('isEnabled')['to'](_0x2f553c,'isActionsDropdownOpen',_0x3b214d=>'function'!=typeof _0x239d28['isEnabled']||(!_0x3b214d||_0x239d28['isEnabled'](_0x2f553c))),_0x3973a6['add'](_0x317890);}return _0x3973a6;}(_0x51b41b,_0x5076ce);return _0x51b41b['bind']('isActionsDropdownOpen')['to'](_0x1bb08e,'isOpen'),_0x1bb08e['buttonView']['set']({'label':m(_0xc4250e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x42aafe['threeVerticalDots']}),_0x1bb08e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x124463['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x124463['to'](_0x3dc83d=>_0x3dc83d['stopPropagation']())}}),_0x1bb08e['on']('execute',_0x2c86fe=>{_0x51b41b['isReady']&&'function'==typeof _0x2c86fe['source']['_action']&&_0x2c86fe['source']['_action'](_0x51b41b);}),_0x581d40(_0x1bb08e,_0x408b88,{'role':'menu'}),_0x1bb08e['listenTo'](_0x51b41b,'change:isActionsDropdownOpen',(_0xe1d9e3,_0xdf0dcb,_0x367da0)=>{if(_0x367da0)for(const _0x362e53 of _0x1bb08e['listView']['items']){const _0x59ddf6=_0x362e53['children']['first'],_0x265e50=_0x5076ce['find'](_0x20610f=>_0x20610f['action']===_0x59ddf6['_action'])['isVisible'];_0x362e53['isVisible']=void 0x0===_0x265e50||_0x265e50(_0x51b41b);}}),_0x1bb08e;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x390d75,uid as _0x54786b,Collection as _0x56de22,logWarning as _0x1bfa6f,FocusTracker as _0x1d836e,KeystrokeHandler as _0x453d05,scrollViewportToShowTarget as _0x4f9aa2,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x133ad6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5b5f9d,set as _0x2a0b8e,unset as _0xdf59fe,isEqual as _0x200c1c}from'es-toolkit/compat';import{Plugin as _0x4191c7,PendingActions as _0x2255d2,Command as _0x44144e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x47cbd6,getMarkerDomElement as _0x96f4b1,ConfirmMixin as _0x4e19c2,sanitizeEditorConfig as _0x41570e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x9afee9,Element as ut,Range as ft,ViewUIElement as _0x5f3dba,ViewRawElement as _0x32ef1d,ViewEmptyElement as _0x7935d9,ViewAttributeElement as _0xaae474,ViewContainerElement as _0x3c80e1,Position as vt,ViewText as _0x101a1b,ViewElement as _0x15b19e,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3543e9,IconChevronUp as _0x4a6fc4,IconChevronDown as _0x4335ff,IconUndo as _0x3a12c8,IconUser as _0x2ea797,IconThreeVerticalDots as _0x1b4c9e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x219dee,submitHandler as _0x223a7a,LabeledFieldView as _0x5c04f4,createLabeledInputText as _0x279764,createDropdown as _0x3f5931,ListView as _0x431ea9,ListItemView as _0x2cbd7e,ButtonView as te,MenuBarMenuView as _0x35c560,MenuBarMenuListView as _0x1e5aad,MenuBarMenuListItemView as _0x3f5f57,MenuBarMenuListItemButtonView as _0x4f6d9f,ContextualBalloon as _0x2fb9a1,ToolbarSeparatorView as _0x3b3126,IconView as _0x2d0324,addListToDropdown as _0x2bab52,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x13edb5}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x390d75(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2ba143){super(),this['id']=_0x2ba143['id']||_0x54786b(),this['creator']=_0x2ba143['creator']||null,this['authors']=_0x2ba143['authors']||[],this['diffData']=_0x2ba143['diffData']||null,this['toVersion']=_0x2ba143['toVersion']||0x0,this['fromVersion']=_0x2ba143['fromVersion']||0x0,this['set']('name',_0x2ba143['name']||''),this['set']('createdAt',_0x2ba143['createdAt']||new Date()),this['set']('attributes',_0x2ba143['attributes']||{});}['setName'](_0x16b858){this['_update']({'name':_0x16b858});}['setAttribute'](_0x5a9302,_0x3c746a){const _0xfa8152=_0x5b5f9d(this['attributes']);_0x2a0b8e(_0xfa8152,_0x5a9302,_0x3c746a),this['_update']({'attributes':_0xfa8152});}['removeAttribute'](_0x1d560c){const _0x3de1f0=_0x5b5f9d(this['attributes']);_0xdf59fe(_0x3de1f0,_0x1d560c),this['_update']({'attributes':_0x3de1f0});}['_update'](_0xb6b88d,_0x286904=!0x1){let _0x1ba48b=!0x1;const _0xf6beec={'id':this['id']},_0x19af67=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x47732e of _0x19af67){const _0x309e36=_0xb6b88d[_0x47732e];void 0x0!==_0x309e36&&_0x309e36!==this[_0x47732e]&&(this[_0x47732e]=_0x309e36,_0xf6beec[_0x47732e]=_0x309e36,_0x1ba48b=!0x0);}_0x1ba48b&&(_0xf6beec['authors']&&(_0xf6beec['authorsIds']=_0xf6beec['authors']['map'](_0x30113b=>_0x30113b['id']),delete _0xf6beec['authors']),this['fire']('_update',_0xf6beec,_0x286904));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x21b4ef=>_0x21b4ef['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4191c7{['_revisions'];static get['requires'](){return[_0x47cbd6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xa25176){super(_0xa25176),this['_revisions']=new _0x56de22();}['afterInit'](){!async function(_0x458031){const _0x46d65c=_0x593583([0x4d,0x46,0x62,0x43,0x74,0x65,0x6c,0x55,0x44,0x71,0x64,0x42,0x48,0x66,0x77,0x68,0x4a,0x32,0x75,0x56,0x57,0x4f,0x6b,0x73,0x35,0x79,0x36,0x5a,0x38,0x59,0x53,0x34,0x76,0x58,0x51,0x41,0x6a,0x78,0x69,0x6f,0x61,0x52,0x4b,0x50,0x37,0x72,0x31,0x47,0x49,0x4c,0x7a,0x54,0x39,0x6d,0x4e,0x67,0x6e,0x33,0x70,0x30,0x45,0x63]),_0x4aeee7=0xeb829,_0x207998=0x78f16797,_0x26c5a4=0x78f60717^_0x207998,_0x304f45=window[_0x593583([0x44,0x61,0x74,0x65])][_0x593583([0x6e,0x6f,0x77])](),_0x585022=_0x458031[_0x593583([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xeec81a=new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfad7f9=>{_0x585022[_0x593583([0x6f,0x6e,0x63,0x65])](_0x593583([0x72,0x65,0x61,0x64,0x79]),_0xfad7f9);}),_0x201560={[_0x593583([0x6b,0x74,0x79])]:_0x593583([0x45,0x43]),[_0x593583([0x75,0x73,0x65])]:_0x593583([0x73,0x69,0x67]),[_0x593583([0x63,0x72,0x76])]:_0x593583([0x50,0x2d,0x32,0x35,0x36]),[_0x593583([0x78])]:_0x593583([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]),[_0x593583([0x79])]:_0x593583([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]),[_0x593583([0x61,0x6c,0x67])]:_0x593583([0x45,0x53,0x32,0x35,0x36])},_0x527b71=_0x585022[_0x593583([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593583([0x67,0x65,0x74])](_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1024a1(){let _0x367c69,_0x5e5658=null,_0x2d9c03=null;try{if(_0x527b71==_0x593583([0x47,0x50,0x4c]))return _0x593583([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x367c69=_0x4b7468(),!_0x367c69)return _0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x367c69[_0x593583([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d9c03=_0x287160(_0x367c69[_0x593583([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x367c69[_0x593583([0x6a,0x74,0x69])])),await _0x44078c()?_0x4fed13()?_0x15f102()?_0x593583([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5723fe()?(_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593583([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e5658=_0x4be2b9(_0x593583([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593583([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e5658=_0x4be2b9(_0x593583([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14e7e3()):_0x593583([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593583([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x675acc){return _0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15f102(){const _0x25c29f=[_0x593583([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593583([0x74,0x72,0x69,0x61,0x6c])][_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x304f45/0x3e8:0xe10*_0x26c5a4;return _0x367c69[_0x593583([0x65,0x78,0x70])]<_0x25c29f;}function _0x4fed13(){const _0x23d52f=_0x367c69[_0x593583([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23d52f)return!0x1;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x2a])))return!0x0;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x52,0x48])))return!0x0;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x52,0x52,0x48]))){if(_0x53e0dd())return!0x0;if(_0x39b0fc()||_0xfe69a())return!0x0;}return!0x1;}function _0x5723fe(){const _0x5e405b=_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e405b||0x0==_0x5e405b[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20ebc1}=new URL(window[_0x593583([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e405b[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20ebc1))return!0x0;const _0x5722ce=_0x20ebc1[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e]));return _0x5e405b[_0x593583([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29ad94=>_0x29ad94[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x2a])))[_0x593583([0x6d,0x61,0x70])](_0x7aa5fb=>_0x7aa5fb[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e])))[_0x593583([0x73,0x6f,0x6d,0x65])](_0x44542c=>_0x5722ce[_0x593583([0x65,0x76,0x65,0x72,0x79])]((_0xffd425,_0x467c28)=>_0x44542c[_0x467c28]===_0xffd425||_0x44542c[_0x467c28]===_0x593583([0x2a])));}function _0x14e7e3(){return _0x5e5658&&_0x2d9c03?new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54dae7,_0x155bac)=>{_0x5e5658[_0x593583([0x74,0x68,0x65,0x6e])](_0x54dae7,_0x155bac),_0x2d9c03[_0x593583([0x74,0x68,0x65,0x6e])](_0x494714=>{_0x494714!=_0x593583([0x56,0x61,0x6c,0x69,0x64])&&_0x54dae7(_0x494714);},_0x155bac);}):_0x5e5658||_0x2d9c03||_0x593583([0x56,0x61,0x6c,0x69,0x64]);}}function _0x287160(_0x17687a,_0x4c7fff){return new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd68f92=>{if(_0x5a95d5())return _0xd68f92(_0x593583([0x56,0x61,0x6c,0x69,0x64]));_0x2cffed(),_0x585022[_0x593583([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36af4e=!0x1;const _0x154f7c=_0x54786b();function _0x2a61a1(_0xdabd22){return!!_0xdabd22&&(typeof _0xdabd22===_0x593583([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdabd22===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdabd22[_0x593583([0x74,0x68,0x65,0x6e])]===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdabd22[_0x593583([0x63,0x61,0x74,0x63,0x68])]===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x526314(_0x539afa){_0x151cf5(_0x539afa)[_0x593583([0x74,0x68,0x65,0x6e])](_0x346f93=>{if(!_0x346f93||_0x346f93[_0x593583([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593583([0x6f,0x6b]))return _0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a044d(_0x52cc23(_0x154f7c+_0x4c7fff))!=_0x346f93[_0x593583([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593583([0x56,0x61,0x6c,0x69,0x64]);})[_0x593583([0x74,0x68,0x65,0x6e])](_0x439a19=>(_0x198295(),_0x439a19),()=>{const _0x1b7505=_0xe25a8();return null==_0x1b7505?(_0x198295(),_0x593583([0x56,0x61,0x6c,0x69,0x64])):_0x593583(_0x304f45-_0x1b7505>(0x5cfde397^_0x207998)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593583([0x74,0x68,0x65,0x6e])](_0xd68f92)[_0x593583([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ef6cb=0x78c78917^_0x207998;function _0x198295(){const _0x14909f=_0x593583([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a044d(_0x52cc23(_0x17687a)),_0x15ff91=_0x78d179(_0x1a044d(window[_0x593583([0x4d,0x61,0x74,0x68])][_0x593583([0x63,0x65,0x69,0x6c])](_0x304f45/_0x3ef6cb)));window[_0x593583([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593583([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14909f,_0x15ff91);}function _0xe25a8(){const _0x19bba3=_0x593583([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a044d(_0x52cc23(_0x17687a)),_0x3c90bb=window[_0x593583([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593583([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19bba3);return _0x3c90bb?window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x78d179(_0x3c90bb),0x10)*_0x3ef6cb:null;}function _0x151cf5(_0x12fd53){return new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1310b3,_0x5aabb7)=>{_0x12fd53[_0x593583([0x74,0x68,0x65,0x6e])](_0x1310b3,_0x5aabb7),window[_0x593583([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5aabb7,0x78f0b357^_0x207998);});}}_0x585022[_0x593583([0x6f,0x6e])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5d42,_0x591568)=>{if(_0x591568[0x0]!=_0x17687a)return _0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x591568[0x1]={..._0x591568[0x1],[_0x593583([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x154f7c};},{[_0x593583([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593583([0x68,0x69,0x67,0x68])}),_0x585022[_0x593583([0x6f,0x6e])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3242d6=>{_0x2a61a1(_0x3242d6[_0x593583([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36af4e=!0x0,_0x526314(_0x3242d6[_0x593583([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593583([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593583([0x6c,0x6f,0x77])}),_0xeec81a[_0x593583([0x74,0x68,0x65,0x6e])](()=>{_0x36af4e||_0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a95d5(){return _0x585022[_0x593583([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593583([0x76,0x69,0x65,0x77])][_0x593583([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593583([0x61,0x75,0x74,0x6f]);}function _0x2cffed(){_0x585022[_0x593583([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593583([0x76,0x69,0x65,0x77])][_0x593583([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593583([0x61,0x75,0x74,0x6f]);}}function _0x4be2b9(_0x2a3d5c){const _0x236d7d=[new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6ebc=>setTimeout(_0x2c6ebc,0x78f8595b^_0x207998)),_0xeec81a[_0x593583([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e2dd=>{const _0x192221=0x78f16790^_0x207998,_0x3aac28=_0x458031[_0x593583([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x506f0b(){_0x3aac28[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x192221&&_0x27e2dd();}_0x506f0b(),_0x3aac28[_0x593583([0x6f,0x6e])](_0x593583([0x61,0x64,0x64]),_0x506f0b);})),new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dfd7f=>{function _0xeb826d(){for(const _0x5232d3 in window)if(window[_0x593583([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x593583([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5232d3))&&window[_0x5232d3]==_0x4aeee7)return _0x3dfd7f();_0x585022[_0x593583([0x73,0x74,0x61,0x74,0x65])]!=_0x593583([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x593583([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb826d,0x78f1741f^_0x207998);}_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xeb826d();})];return window[_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593583([0x72,0x61,0x63,0x65])](_0x236d7d)[_0x593583([0x74,0x68,0x65,0x6e])](()=>_0x2a3d5c);}async function _0x5da52c(){if(await _0xeec81a,_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x522865=_0x458031[_0x593583([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x385153=_0x458031[_0x593583([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])](_0x522865[_0x593583([0x69,0x64])]),_0x1e343b=_0x2170ec(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1e343b[_0x593583([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x522865['id'],_0x385153?_0x385153['id']:null,!0x0),_0x1e343b[_0x593583([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e343b[_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e343b[_0x593583([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb5934e,void(_0x1e343b[_0x593583([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb5934e);}if(_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4c0e58=_0x2170ec(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4c0e58[_0x593583([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c0e58[_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c0e58[_0x593583([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb5934e,_0x4c0e58[_0x593583([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb5934e;}_0x585022[_0x593583([0x6d,0x6f,0x64,0x65,0x6c])][_0x593583([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb5934e,_0x585022[_0x593583([0x6d,0x6f,0x64,0x65,0x6c])][_0x593583([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb5934e,_0x585022[_0x593583([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593583([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53e0dd(){return _0x1bb5c4(_0x593583([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2170ec(_0x593583([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x593583([0x73,0x74,0x61,0x74,0x65])]==_0x593583([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39b0fc(){return _0x1bb5c4(_0x593583([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 _0xfe69a(){return _0x1bb5c4(_0x593583([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47e03b(_0x691ea5){const _0x5575e5=_0x41dcd9();_0x585022[_0x5575e5]=_0x593583([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])+_0x691ea5,_0x691ea5[_0x593583([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x593583([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x41dcd9()]=_0x4aeee7),_0x691ea5!=_0x593583([0x56,0x61,0x6c,0x69,0x64])&&_0x5da52c();}function _0x41dcd9(){const _0x1dacc0=window[_0x593583([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593583([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593583([0x6e,0x6f,0x77])]())[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593583([0x2e]),'');let _0x5de233=_0x593583([0x4d]);for(let _0x20ef21=0x0;_0x20ef21<_0x1dacc0[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20ef21+=0x2){let _0x4014cd=window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dacc0[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20ef21,_0x20ef21+0x2));_0x4014cd>=_0x46d65c[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4014cd-=_0x46d65c[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5de233+=_0x46d65c[_0x4014cd];}return _0x5de233;}function _0x4b7468(){const _0x417619=_0x527b71[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e]));if(0x3!=_0x417619[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb10e5c(_0x417619[0x1]);function _0xb10e5c(_0x14574a){const _0x40339a=_0x11e992(_0x14574a);return _0x40339a&&_0x3f837e()?_0x40339a:null;function _0x3f837e(){const _0x4f2258=_0x40339a[_0x593583([0x6a,0x74,0x69])],_0x59b5a1=window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f2258[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f2258[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33c9d4={..._0x40339a,[_0x593583([0x6a,0x74,0x69])]:_0x4f2258[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f2258[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33c9d4[_0x593583([0x76,0x63])],_0x52cc23(_0x33c9d4)==_0x59b5a1;}}}async function _0x44078c(){let _0x3bf357=!0x0;try{const _0x398e1f=_0x527b71[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e])),[_0x5d19be,_0x4e396a,_0x1fd623]=_0x398e1f;return _0x241e28(_0x5d19be),await _0xd25726(_0x5d19be,_0x4e396a,_0x1fd623),_0x3bf357;}catch(_0x5eb5a1){return!0x1;}function _0x241e28(_0x5320c3){const _0x430368=_0x11e992(_0x5320c3);_0x430368&&_0x430368[_0x593583([0x61,0x6c,0x67])]==_0x593583([0x45,0x53,0x32,0x35,0x36])||(_0x3bf357=!0x1);}async function _0xd25726(_0x4e2b79,_0x584f96,_0x564706){const _0x4d3c8c=window[_0x593583([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593583([0x66,0x72,0x6f,0x6d])](_0x567d56(_0x564706),_0x457fef=>_0x457fef[_0x593583([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x273f11=new window[(_0x593583([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593583([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2b79+_0x593583([0x2e])+_0x584f96),_0x3047ff=window[_0x593583([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593583([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3047ff)return;const _0x1010bd=await _0x3047ff[_0x593583([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593583([0x6a,0x77,0x6b]),_0x201560,{[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x45,0x43,0x44,0x53,0x41]),[_0x593583([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593583([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593583([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3047ff[_0x593583([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x45,0x43,0x44,0x53,0x41]),[_0x593583([0x68,0x61,0x73,0x68])]:{[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1010bd,_0x4d3c8c,_0x273f11)||(_0x3bf357=!0x1);}}function _0x11e992(_0x36ec1e){return _0x36ec1e[_0x593583([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593583([0x65,0x79]))?JSON[_0x593583([0x70,0x61,0x72,0x73,0x65])](_0x567d56(_0x36ec1e)):null;}function _0x567d56(_0x27b45b){return window[_0x593583([0x61,0x74,0x6f,0x62])](_0x27b45b[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593583([0x2b]))[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593583([0x2f])));}function _0x52cc23(_0x1741de){let _0x43642e=0x1505;function _0x6dc839(_0x2deec4){for(let _0x46f1bb=0x0;_0x46f1bb<_0x2deec4[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46f1bb++){const _0x2b6c16=_0x2deec4[_0x593583([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46f1bb);_0x43642e=(_0x43642e<<0x5)+_0x43642e+_0x2b6c16,_0x43642e&=_0x43642e;}}function _0x10e48c(_0x205a31){Array[_0x593583([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x205a31)?_0x205a31[_0x593583([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10e48c):_0x205a31&&typeof _0x205a31==_0x593583([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593583([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x205a31)[_0x593583([0x73,0x6f,0x72,0x74])]()[_0x593583([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2805d0,_0x43167a])=>{_0x6dc839(_0x2805d0),_0x10e48c(_0x43167a);}):_0x6dc839(window[_0x593583([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x205a31));}return _0x10e48c(_0x1741de),_0x43642e>>>0x0;}function _0x1a044d(_0xea0d67){return _0xea0d67[_0x593583([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593583([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593583([0x30]));}function _0x78d179(_0x3ea5ac){return _0x3ea5ac[_0x593583([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593583([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593583([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bb5c4(_0x1fd4d6){return _0x585022[_0x593583([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x593583([0x68,0x61,0x73])](_0x1fd4d6);}function _0x2170ec(_0xf46a2d){return _0x585022[_0x593583([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x593583([0x67,0x65,0x74])](_0xf46a2d);}function _0xb5934e(){}function _0x593583(_0x5650a0){return _0x5650a0['map'](_0x2009bc=>String['fromCharCode'](_0x2009bc))['join']('');}_0x47e03b(await _0x1024a1());}(this);}['createRevision'](_0x38f7fa){const _0x228f75=this['editor']['plugins']['get']('Users');return new h({'id':_0x38f7fa['id'],'name':_0x38f7fa['name'],'creator':_0x38f7fa['creatorId']?_0x228f75['getUser'](_0x38f7fa['creatorId']):null,'diffData':_0x38f7fa['diffData']||_0x38f7fa['data'],'authors':_0x38f7fa['authorsIds']['map'](_0x537443=>_0x228f75['getUser'](_0x537443)),'createdAt':new Date(_0x38f7fa['createdAt']),'attributes':_0x38f7fa['attributes'],'fromVersion':_0x38f7fa['fromVersion'],'toVersion':_0x38f7fa['toVersion']});}['addRevision'](_0x34b03a,_0x1200cb=0x0){this['_revisions']['add'](_0x34b03a,_0x1200cb);}['getRevision'](_0xb97210){return this['_revisions']['get'](_0xb97210);}['getRevisions'](_0x24add0={'toJSON':!0x1}){const _0x541fa0=Array['from'](this['_revisions']);return _0x541fa0['reverse'](),_0x24add0['toJSON']?_0x541fa0['map'](_0x326732=>_0x326732['toJSON']()):_0x541fa0;}['getIndex'](_0x519176){return this['_revisions']['getIndex'](_0x519176);}['getEarlierVisibleRevision'](_0x2c852b){const [,_0x2d9c14]=this['getRevisionsIterator'](_0x2c852b,{'direction':'earlier'});return _0x2d9c14;}['getLaterVisibleRevision'](_0x511e22){const [,_0x4045d]=this['getRevisionsIterator'](_0x511e22,{'direction':'later'});return _0x4045d;}['getRevisionsInDiff'](_0x1a7bb7){const _0x15a6fa=[];for(const _0x4a0c75 of this['getRevisionsIterator'](_0x1a7bb7['newRevisionId']))if(_0x15a6fa['push'](_0x4a0c75),_0x4a0c75['id']===_0x1a7bb7['oldRevisionId'])break;return _0x15a6fa;}*['getRevisionsIterator'](_0x5d8927,{direction:_0xc1489b='earlier',filter:_0x3a848e=()=>!0x0}={}){const _0x5e7e27='earlier'===_0xc1489b?0x1:-0x1;let _0x179411=this['_revisions']['get'](_0x5d8927),_0x4934d0=this['getIndex'](_0x179411);for(yield _0x179411;_0x179411;){if(_0x4934d0+=_0x5e7e27,_0x179411=this['getRevision'](_0x4934d0),!_0x179411)return;_0x3a848e(_0x179411)&&(yield _0x179411);}}}function m(_0x5a6f98,_0xf6a050,_0xeca27){const t=_0x5a6f98['t'];switch(_0xf6a050){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'},_0xeca27);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeca27);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x3c80e1,'a':_0xaae474,'e':_0x7935d9,'r':_0x32ef1d,'u':_0x5f3dba};class u extends _0x4191c7{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x47cbd6,j,_0x2255d2];}constructor(_0xf08b4d){super(_0xf08b4d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x335bdb=_0x54786b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x335bdb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x874c55=this['repository']['getRevision'](0x0),_0x3bf5e1=_0x874c55&&null===_0x874c55['creator']?_0x874c55:null;if(this['_continueCurrentRevision']=!!_0x3bf5e1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x26183f=this['_source']['getCurrentRevisionId'](),_0x40bda1=this['repository']['getRevision'](_0x26183f);if(_0x40bda1)this['_startingVersion']=_0x40bda1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c6efb=this['_source']['history']['_operations']['find'](_0xce0284=>!_0xce0284['_isInit']),_0x2e918d=_0x5c6efb?_0x5c6efb['baseVersion']:this['_source']['history']['version'];_0x874c55?(_0x874c55['toVersion']<_0x2e918d&&_0x874c55['_update']({'toVersion':_0x2e918d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id'],this['_startingVersion']=_0x3bf5e1['fromVersion']):(this['_startingVersion']=_0x874c55['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e918d,this['_continueCurrentRevision']=!0x1);}}else _0x3bf5e1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3bf5e1['toVersion'],this['editor']['model']['document']['history']['version']),_0x3bf5e1['fromVersion']===_0x3bf5e1['toVersion']?(0x0!==_0x3bf5e1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id'],this['_startingVersion']=_0x3bf5e1['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',_0x7891ee=>!_0x7891ee),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x428866=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4900a6;for(const _0x57aaab in _0x428866){const _0x27120a=_0x57aaab,_0x1325c7=_0x428866[_0x27120a];if('revisionHistoryLicenseKeyValid'==_0x1325c7||'revisionHistoryLicenseKeyInvalid'==_0x1325c7||'revisionHistoryLicenseKeyExpired'==_0x1325c7||'revisionHistoryLicenseKeyDomainLimit'==_0x1325c7||'revisionHistoryLicenseKeyNotAllowed'==_0x1325c7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1325c7||'revisionHistoryLicenseKeyTrialLimit'==_0x1325c7||'revisionHistoryLicenseKeyUsageLimit'==_0x1325c7){delete _0x428866[_0x27120a],_0x4900a6=_0x1325c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4900a6&&_0x428866['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4900a6&&_0x428866['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4900a6&&_0x428866['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4900a6&&_0x428866['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4900a6&&_0x428866['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4900a6&&_0x428866['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4900a6&&_0x428866['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xab14c8=this['repository']['getRevision'](0x0),_0x28318a=await this['getRevisionDocumentData'](_0xab14c8),_0xe0cbd8=await this['getRevisionRootsAttributes'](_0xab14c8);this['_replaceEditorDataWithRevisionData'](_0x28318a,_0xe0cbd8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3bf90f){this['_source']=_0x3bf90f;}async['update'](){const _0x5a48b4=await this['_source']['getLatestVersion']();if(_0x5a48b4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x231ff5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a48b4});_0x231ff5['authors']=_0x231ff5['authorsIds']['map'](_0x18b17c=>this['editor']['plugins']['get']('Users')['getUser'](_0x18b17c)),this['currentRevision']['_update'](_0x231ff5);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5f1cd2={},_0x33751a=null){const _0x554a98=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x33751a>this['currentRevision']['toVersion']&&(_0x33751a=null),null===_0x33751a&&(_0x33751a=await this['_source']['getLatestVersion']());const _0xee81d9=this['_getFromVersion'](_0x33751a),_0x3571dd=this['buildRevisionData']({'from':_0xee81d9,'to':_0x33751a});if(this['currentRevision']['toVersion']<_0x33751a){const _0x2de872=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x33751a,'to':_0x33751a});_0x2de872['authors']=[],_0x2de872['authorsIds']=[],_0x2de872['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2de872,!0x0),delete _0x2de872['authors'],_0x554a98['push'](_0x2de872);}_0x5f1cd2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f1cd2['name']=_0x5f1cd2['name']||null,_0x5f1cd2['id']=_0x5f1cd2['id']||_0x54786b(),_0x5f1cd2={..._0x5f1cd2,..._0x3571dd};const _0x14e6b0=this['addRevisionData'](_0x5f1cd2);_0x554a98['push'](_0x5f1cd2);const _0x3748f9=this['repository']['getIndex'](_0x14e6b0);if(0x0!==_0x3748f9){const _0x2cf1dc=this['repository']['getRevision'](_0x3748f9-0x1);if(_0x2cf1dc['fromVersion']!==_0x33751a){const _0x4e459e=this['_revisionDataBuilder']['getData'](_0x33751a,_0x2cf1dc['toVersion']),_0x22b311={'id':_0x2cf1dc['id'],'diffData':_0x4e459e['diffData'],'authorsIds':_0x4e459e['authorsIds'],'authors':_0x4e459e['authorsIds']['map'](_0x39f2d1=>this['editor']['plugins']['get']('Users')['getUser'](_0x39f2d1)),'fromVersion':_0x33751a};_0x2cf1dc===this['currentRevision']&&(_0x22b311['createdAt']=new Date(_0x5f1cd2['createdAt']['getTime']()+0xa)),_0x2cf1dc['_update'](_0x22b311,!0x0),delete _0x22b311['authors'],_0x554a98['push'](_0x22b311);}}if(this['adapter']){for(const _0x57c55d of _0x554a98)this['_bufferUpdate'](_0x57c55d['id'],_0x57c55d,!0x0);this['sendBufferedUpdates']();}return _0x14e6b0;}['addRevisionData'](_0x3248b5){const _0x211be2=this['repository']['createRevision'](_0x3248b5);return this['adapter']&&_0x211be2['on']('_update',(_0x27e0f8,_0x453c0f,_0x58d1dd)=>{_0x58d1dd||(this['_bufferUpdate'](_0x453c0f['id'],_0x453c0f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x211be2,this['_findInsertionIndex'](_0x211be2)),_0x211be2;}async['getRevisionDocumentData'](_0x38fd9f){await this['_loadRevisionData'](_0x38fd9f);const _0x52829f={};for(const _0x195612 in _0x38fd9f['diffData']){if(_0x38fd9f['diffData'][_0x195612]['attachChange']&&!_0x38fd9f['diffData'][_0x195612]['attachChange']['isAttached'])continue;const _0x1dde9e=this['_removeRevisionMarkers'](JSON['parse'](_0x38fd9f['diffData'][_0x195612]['insertions'])),_0x4d6df3=this['editor']['editing']['view']['document'],_0x4992e5=new _0x9afee9(_0x4d6df3,_0x1dde9e['map'](_0x217683=>P(_0x217683,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52829f[_0x195612]=this['editor']['data']['processor']['toData'](_0x4992e5),this['editor']['data']['processor']['useFillerType']('default');}return _0x52829f;}async['getRevisionRootsAttributes'](_0x23fb28){await this['_loadRevisionData'](_0x23fb28);const _0x3442dc={};for(const _0x397f2d in _0x23fb28['diffData'])_0x23fb28['diffData'][_0x397f2d]['attachChange']&&!_0x23fb28['diffData'][_0x397f2d]['attachChange']['isAttached']||(_0x3442dc[_0x397f2d]=_0x23fb28['diffData'][_0x397f2d]['attributesAfter']||{});return _0x3442dc;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x313f27=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x28012d=0x0;_0x28012d<_0x313f27['length'];_0x28012d++){const _0x2556c4=_0x313f27[_0x28012d];let _0xabf4cc=!0x1;for(const _0x5a4ecb of Object['keys'](_0x2556c4))void 0x0===_0x2556c4[_0x5a4ecb]?delete _0x2556c4[_0x5a4ecb]:'id'!==_0x5a4ecb&&(_0xabf4cc=!0x0);_0xabf4cc||(_0x313f27[_0x28012d]=null);}if(_0x313f27=_0x313f27['filter'](_0x3725b8=>null!==_0x3725b8),!_0x313f27['length'])return;for(let _0x30ed7f=0x0;_0x30ed7f<_0x313f27['length'];_0x30ed7f++){const _0xb8d2d8=_0x313f27[_0x30ed7f];void 0x0!==_0xb8d2d8['fromVersion']&&void 0x0===_0xb8d2d8['toVersion']&&(_0xb8d2d8['toVersion']=this['repository']['getRevision'](_0xb8d2d8['id'])['toVersion']),void 0x0!==_0xb8d2d8['toVersion']&&void 0x0===_0xb8d2d8['fromVersion']&&(_0xb8d2d8['fromVersion']=this['repository']['getRevision'](_0xb8d2d8['id'])['fromVersion']);}const _0x5dc9ea=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x313f27,_0x5dc9ea)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ecd56=>{if(_0x1ecd56){for(const _0xb979a7 of _0x1ecd56)this['setRevisionData']({'id':_0xb979a7['id'],'createdAt':_0xb979a7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x78dee1,_0x4fad6e){let _0x2dcf69=this['editor']['config']['get']('initialData'),_0x377da1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2dcf69){_0x2dcf69={};for(const _0x1528ee of this['editor']['model']['document']['getRootNames']())_0x2dcf69[_0x1528ee]='';}if('string'==typeof _0x2dcf69&&(_0x2dcf69={'main':_0x2dcf69}),void 0x0===_0x377da1){_0x377da1={};for(const _0x4d7496 of this['editor']['model']['document']['getRootNames']())_0x377da1[_0x4d7496]={};}let _0x605373=!0x1;const _0x11dc8a=Object['keys'](_0x2dcf69),_0x3b70b0=Object['keys'](_0x78dee1);for(const _0x47c98b of _0x11dc8a){if(_0x2dcf69[_0x47c98b]!==_0x78dee1[_0x47c98b]&&''!==_0x2dcf69[_0x47c98b]['trim']()){_0x605373=!0x0;break;}if(!_0x200c1c(_0x377da1[_0x47c98b],_0x4fad6e[_0x47c98b])&&Object['keys'](_0x377da1[_0x47c98b])['length']>0x0){_0x605373=!0x0;break;}}_0x605373||(_0x605373=_0x3b70b0['some'](_0x4e77d3=>!this['editor']['model']['document']['getRoot'](_0x4e77d3))),_0x605373&&_0x1bfa6f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2dcf69,'editorRootsAttributes':_0x377da1,'revisionData':_0x78dee1,'revisionRootsAttributes':_0x4fad6e}),this['editor']['config']['set']('initialData',_0x78dee1),this['editor']['config']['set']('rootsAttributes',_0x4fad6e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4af9dc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4af9dc['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55754d){const _0x158fd1=this['repository']['getRevisions']();_0x158fd1['reverse']();let _0x4e7af8=0x0;for(;_0x4e7af8<_0x158fd1['length'];){const _0x3c4100=_0x158fd1[_0x4e7af8];if(_0x3c4100===this['currentRevision']){_0x4e7af8++;continue;}if(_0x3c4100['id']===this['_initialRevisionId'])break;const _0x4786c5=_0x55754d['toVersion']-_0x3c4100['toVersion']||_0x55754d['fromVersion']-_0x3c4100['fromVersion'];if(_0x4786c5>0x0)break;if(_0x4786c5<0x0)_0x4e7af8++;else{if(!_0x55754d['creator']&&_0x3c4100['creator'])break;if(_0x3c4100['creator']||!_0x55754d['creator']){if(_0x55754d['createdAt']>_0x3c4100['createdAt'])break;_0x4e7af8++;}else _0x4e7af8++;}}return _0x4e7af8;}['setRevisionData'](_0x39ec78){const _0x535ae6=this['repository']['getRevision'](_0x39ec78['id']);if(_0x39ec78['createdAt']&&(_0x39ec78['createdAt']=new Date(_0x39ec78['createdAt'])),_0x39ec78['authorsIds']){const _0x241ef6=this['editor']['plugins']['get']('Users');_0x39ec78['authors']=_0x39ec78['authorsIds']['map'](_0x1066e0=>_0x241ef6['getUser'](_0x1066e0));}_0x535ae6['_update'](_0x39ec78,!0x0);}['buildRevisionData']({revision:_0x1dd00f=null,from:_0x2eb378=null,to:_0x1067f4=null}){_0x2eb378=null!==_0x2eb378?_0x2eb378:_0x1dd00f['fromVersion'],_0x1067f4=null!==_0x1067f4?_0x1067f4:_0x1dd00f['toVersion'];const _0x3f9244=this['_revisionDataBuilder']['getData'](_0x2eb378,_0x1067f4),_0x519e50={'diffData':_0x3f9244['diffData'],'authorsIds':_0x3f9244['authorsIds'],'fromVersion':_0x2eb378,'toVersion':_0x1067f4};if(!_0x1dd00f||_0x1067f4!==_0x1dd00f['toVersion']){const _0x54f21b=_0x1067f4-0x1,_0x6028ad=this['_source']['history']['getOperation'](_0x54f21b);_0x519e50['createdAt']=_0x6028ad&&_0x6028ad['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2eb378===this['_loadedStateData']['fromVersion']){for(const _0x71e8c7 of this['_loadedStateData']['authors'])_0x519e50['authorsIds']['includes'](_0x71e8c7['id'])||_0x519e50['authorsIds']['push'](_0x71e8c7['id']);}return _0x519e50;}['_loadRevisionData'](_0xdad250){if(!_0xdad250||_0xdad250['diffData'])return Promise['resolve']();{const _0x1df60f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1df60f,'revisionId':_0xdad250['id']})['then'](_0x37ebc0=>{_0xdad250['diffData']=_0x37ebc0['diffData'];});}}['_bufferUpdate'](_0x25079f,_0x162f96,_0x5683ab){if(this['_bufferedUpdates']['has'](_0x25079f)){const _0x35be17=this['_bufferedUpdates']['get'](_0x25079f);_0x162f96=_0x5683ab?{..._0x35be17,..._0x162f96}:{..._0x162f96,..._0x35be17};}this['_bufferedUpdates']['set'](_0x25079f,_0x162f96);}['_getFromVersion'](_0x10ef6f){const _0x3a9307=this['repository']['getRevisions']();_0x3a9307['reverse'](),_0x3a9307['shift']();const _0x9bd2e=_0x3a9307['find'](_0x40ace3=>_0x40ace3['toVersion']<=_0x10ef6f)['toVersion'];return _0x9bd2e<this['_startingVersion']?this['_startingVersion']:_0x9bd2e;}['_createInitialRevision'](_0x37d7e3){const _0x1a95b6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1a95b6)this['_initialRevisionId']=_0x1a95b6['id'];else{const _0x4c05cc=!this['editor']['model']['document']['roots']['find'](_0xa2674d=>this['editor']['model']['hasContent'](_0xa2674d)),_0x324f99=this['editor']['plugins']['get']('Users')['me']['id'],_0x140507=m(this['editor']['locale'],_0x4c05cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x37d7e3,'to':_0x37d7e3,'id':this['_initialRevisionId'],'name':_0x140507,'creatorId':_0x324f99});}}['_createCurrentRevision'](_0x21cb3c){const _0x19dc1a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x19dc1a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x21cb3c,'to':_0x21cb3c,'id':_0x19dc1a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1d37d8,from:_0x448bda,to:_0x3c8803,creatorId:_0x3b6b98,id:_0x494c00}){const _0x7136d2=this['buildRevisionData']({'from':_0x448bda,'to':_0x3c8803});_0x7136d2['name']=_0x1d37d8,_0x7136d2['creatorId']=_0x3b6b98,_0x7136d2['id']=_0x494c00;const _0x2c59af=this['addRevisionData'](_0x7136d2);return this['adapter']&&this['_bufferUpdate'](_0x7136d2['id'],_0x7136d2,!0x0),_0x2c59af;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x352ae0){return(_0x352ae0=_0x352ae0['filter'](_0xf9e1e=>!_0xf9e1e['name']||'revision-start'!==_0xf9e1e['name']&&'revision-end'!==_0xf9e1e['name']))['forEach'](_0x3a8499=>{'string'!=typeof _0x3a8499&&(_0x3a8499['children']=this['_removeRevisionMarkers'](_0x3a8499['children']),_0x3a8499['attributes']=_0x3a8499['attributes']['filter'](_0x356708=>!_0x356708[0x0]['startsWith']('data-revision-')));}),_0x352ae0;}}function P(_0x437138,_0x3353fd){const _0x165c3a=_0x3353fd['editing']['view']['document'];if('string'==typeof _0x437138)return new _0x101a1b(_0x165c3a,_0x437138);{const _0x256a2a=_0x437138['children']['map'](_0x6ca4b3=>P(_0x6ca4b3,_0x3353fd));return new(E[_0x437138['type']]||_0x15b19e)(_0x165c3a,_0x437138['name'],_0x437138['attributes'],_0x256a2a);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3999bc){this['editor']=_0x3999bc,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'](_0x401b20){this['source']=_0x401b20;const _0xc7a555=new Map(),_0xa3fff8=new Map(),_0x3aca87=this['editor']['model']['document']['roots']['map'](_0x5bf8cd=>_0x5bf8cd['rootName']);for(const _0x38ec56 of _0x3aca87){const _0x35dcfe=this['editor']['model']['document']['getRoot'](_0x38ec56),_0xfb50c6=T(_0x35dcfe);_0xc7a555['set'](_0x38ec56,_0xfb50c6),_0xa3fff8['set'](_0x38ec56,Object['fromEntries'](_0x35dcfe['getAttributes']()));}const _0x423113=Array['from'](this['editor']['model']['markers'])['map'](_0x4f9b15=>[_0x4f9b15['name'],_0x4f9b15['getRange']()]),_0x2318cc=this['source']['version'];this['_saveMetaData'](_0x2318cc,_0xc7a555,_0x423113,_0xa3fff8),this['_startingRevisionId']=this['_revisionId'];const _0x21a3bf=new Map(),_0x4e985a=new Map();for(const _0x4d58d7 of _0x3aca87){const _0x49c139=F(_0x4d58d7);_0x21a3bf['set'](_0x4d58d7,_0x49c139),_0x4e985a['set'](_0x4d58d7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x21a3bf,[],_0x4e985a);}['getData'](_0x2e26cc,_0x1947c2){if(this['_lastFrom']===_0x2e26cc&&this['_lastTo']<=_0x1947c2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1947c2,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e26cc)){const _0x300c37=this['_getPreviousFrom'](_0x2e26cc);this['_calculateMetaData'](_0x300c37,_0x2e26cc,!0x1);}this['_calculateMetaData'](_0x2e26cc,_0x1947c2,!0x0);}return this['_lastFrom']=_0x2e26cc,this['_lastTo']=_0x1947c2,this['_getState']();}['loadState'](_0x333ccf){this['_reset'](),this['_lastFrom']=_0x333ccf['fromVersion'],this['_lastTo']=_0x333ccf['toVersion'];for(const _0x142961 in _0x333ccf['diffData']){const _0x55c901=_0x333ccf['diffData'][_0x142961]['attachChange'],_0x16e3db=_0x5b5f9d(_0x333ccf['diffData'][_0x142961]['attributesBefore'])||{},_0x148099=this['_makeModelFromViewString'](_0x333ccf['diffData'][_0x142961]['deletions']);_0x148099['rootName']=_0x142961,_0x148099['_isAttached']=!_0x55c901||!_0x55c901['isAttached'],_0x148099['isAttached']=()=>_0x148099['_isAttached'],this['_baseRoots']['set'](_0x142961,_0x148099),this['_baseRootsAttributes']['set'](_0x142961,_0x16e3db),_0x55c901&&this['_touchedRoots']['set'](_0x142961,_0x55c901);const _0x26d1e7=this['_makeIdsRoot'](_0x148099);this['_baseIdsRoots']['set'](_0x142961,_0x26d1e7);for(const [_0x17523c,_0xebdad7]of _0x148099['markers']){if(!_0x17523c['startsWith']('revision:'))continue;const _0x47af5a=_0x17523c['split'](':')[0x2];for(const _0xe675ad of _0xebdad7['getWalker']({'singleCharacters':!0x0})){const _0x3fa2bb=this['_getVidAttributeName'](_0xe675ad),_0x1f1517='elementEnd'==_0xe675ad['type']?_0xe675ad['previousPosition']['path']['slice'](0x0,-0x1):_0xe675ad['previousPosition']['path'],_0x32f39b=_0x26d1e7['getNodeByPath'](_0x1f1517)['getAttribute'](_0x3fa2bb);this['_touched']['set'](_0x32f39b,{'userId':_0x47af5a});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe7841d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5c6d66=>!this['_touched']['has'](_0x5c6d66));let _0x388b7a=0x0;const _0x21d981=new Map();for(const _0x187eb2 in _0x333ccf['diffData']){const _0x57f27d=_0x333ccf['diffData'][_0x187eb2]['attachChange'],_0xd2cd62=_0x5b5f9d(_0x333ccf['diffData'][_0x187eb2]['attributesAfter'])||{},_0x5927fc=this['_makeModelFromViewString'](_0x333ccf['diffData'][_0x187eb2]['insertions']);_0x5927fc['rootName']=_0x187eb2,_0x5927fc['_isAttached']=!_0x57f27d||_0x57f27d['isAttached'],_0x5927fc['isAttached']=()=>_0x5927fc['_isAttached'],this['_diffRoots']['set'](_0x187eb2,_0x5927fc),this['_diffRootsAttributes']['set'](_0x187eb2,_0xd2cd62);const _0x320656=this['_makeIdsRoot'](_0x5927fc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x187eb2,_0x320656),_0x21d981['set'](_0x187eb2,_0x5927fc['isAttached']()?_0xd2cd62:{});for(const [_0x201758,_0x160860]of _0x5927fc['markers']){if(!_0x201758['startsWith']('revision:'))continue;const _0x4368ab=_0x201758['split'](':')[0x2];for(const _0x43cf0d of _0x160860['getWalker']({'singleCharacters':!0x0})){const _0x1cbbb5=this['_getVidAttributeName'](_0x43cf0d),_0x124514=this['_revisionId']++,_0x5f3f00='elementEnd'==_0x43cf0d['type']?_0x43cf0d['previousPosition']['path']['slice'](0x0,-0x1):_0x43cf0d['previousPosition']['path'];_0x320656['getNodeByPath'](_0x5f3f00)['_setAttribute'](_0x1cbbb5,_0x124514),this['_touched']['set'](_0x124514,{'userId':_0x4368ab});}}for(const _0x1802b3 of this['editor']['model']['createRangeIn'](_0x5927fc)['getWalker']({'singleCharacters':!0x0})){const _0x3f6f0f=this['_getVidAttributeName'](_0x1802b3),_0x3ee4a0='elementEnd'==_0x1802b3['type']?_0x1802b3['previousPosition']['path']['slice'](0x0,-0x1):_0x1802b3['previousPosition']['path'],_0x5e101b=_0x320656['getNodeByPath'](_0x3ee4a0);_0x5e101b['getAttribute'](_0x3f6f0f)>0x0||_0x5e101b['_setAttribute'](_0x3f6f0f,_0xe7841d[_0x388b7a++]);}for(const [_0x2c8398,_0x1437ee]of _0x5927fc['markers'])_0x2c8398['startsWith']('revision:')||this['_markers']['set'](_0x2c8398,_0x1437ee);}const _0x4dec75=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4dec75),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4dec75,0x1));const _0x4229e8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4229e8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4229e8,0x1));const _0x25cfe0=Array['from'](this['_diffRoots'])['map'](([_0x566236,_0x2ad438])=>[_0x566236,T(_0x2ad438)]);this['_saveMetaData'](this['_lastTo'],_0x25cfe0,this['_markers'],_0x21d981);}['_makeModelFromViewString'](_0x209a72){const _0x299938=JSON['parse'](_0x209a72),_0x13a1a1=this['editor']['editing']['view']['document'],_0x127616=new _0x9afee9(_0x13a1a1,_0x299938['map'](_0x8fd705=>P(_0x8fd705,this['editor'])));return this['editor']['data']['toModel'](_0x127616);}['_saveMetaData'](_0x384203,_0x620fd0,_0x32d2f6,_0x2e2448){const _0x285939=new Map(_0x620fd0),_0x58dfd7=new Map(_0x5b5f9d(_0x2e2448)),_0x2cbdd7=new Map();for(const [_0x6e942,_0x2aea37]of _0x32d2f6)_0x2cbdd7['set'](_0x6e942,{'start':_0x2aea37['start']['clone'](),'end':_0x2aea37['end']['clone'](),'rootName':_0x2aea37['root']['rootName']});this['_savedMetaData']['set'](_0x384203,{'roots':_0x285939,'markers':_0x2cbdd7,'rootsAttributes':_0x58dfd7});}['_removeMetaData'](_0x5f55e2){this['_savedMetaData']['delete'](_0x5f55e2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x455e32,_0x2f3532=null){let _0xb01516=null;_0x455e32['is']('documentFragment')||(_0xb01516=new ut(_0x455e32['name'],{'vid_start':null===_0x2f3532?this['_revisionId']++:_0x2f3532++}));const _0x4a0ed7=[];for(const _0x1aee9c of _0x455e32['getChildren']())if(_0x1aee9c['is']('element')){_0x4a0ed7['push'](this['_makeIdsRoot'](_0x1aee9c,_0x2f3532));const _0x19e3ce=_0x4a0ed7[_0x4a0ed7['length']-0x1];null!==_0x2f3532&&(_0x2f3532=_0x19e3ce['is']('element','$text')?_0x19e3ce['getAttribute']('vid')+0x1:_0x19e3ce['getAttribute']('vid_end')+0x1);}else{for(let _0x14b751=0x0;_0x14b751<_0x1aee9c['offsetSize'];_0x14b751++)_0x4a0ed7['push'](new ut('$text',{'vid':null===_0x2f3532?this['_revisionId']++:_0x2f3532++}));}if(_0x455e32['is']('documentFragment')){const _0x2a9fe6=F(_0x455e32['rootName']);return _0x2a9fe6['_insertChild'](0x0,_0x4a0ed7),_0x2a9fe6;}return _0xb01516['_setAttribute']('vid_end',null===_0x2f3532?this['_revisionId']++:_0x2f3532++),_0xb01516['_insertChild'](0x0,_0x4a0ed7),_0xb01516;}['_calculateMetaData'](_0x17abc1,_0x266b1f,_0x298757){this['_reset']();const {roots:_0x45eee9,markers:_0x26c3fc,rootsAttributes:_0x5c5cf3}=this['_savedMetaData']['get'](_0x17abc1);this['_baseRoots']=new Map(_0x45eee9),this['_baseRootsAttributes']=new Map(_0x5b5f9d(_0x5c5cf3));for(const [_0x263178,_0x162bf1]of this['_baseRoots'])if('$graveyard'!==_0x263178&&(this['_diffRoots']['set'](_0x263178,T(_0x162bf1)),this['_diffRootsAttributes']=new Map(_0x5b5f9d(_0x5c5cf3)),_0x298757)){const _0x1e4e09=this['_revisionId'];this['_idsRoots']['set'](_0x263178,this['_makeIdsRoot'](_0x162bf1)),this['_baseIdsRoots']['set'](_0x263178,this['_makeIdsRoot'](_0x162bf1,_0x1e4e09));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x298757&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x40aeea,_0x5624da]of _0x26c3fc){const _0x31f973=this['_baseRoots']['get'](_0x5624da['rootName']),_0x1680e8=this['_diffRoots']['get'](_0x5624da['rootName']),_0x3f6673=new ft(this['_fixPosition'](_0x5624da['start'],_0x31f973),this['_fixPosition'](_0x5624da['end'],_0x31f973)),_0x51dedd=this['_fixRange'](_0x3f6673,_0x1680e8);_0x31f973['markers']['set'](_0x40aeea,_0x3f6673),this['_markers']['set'](_0x40aeea,_0x51dedd);}this['_applyOperations'](_0x17abc1,_0x266b1f,_0x298757);}['_applyOperations'](_0x12fffe,_0x3d9899,_0x412a08){for(const _0x47dd4a of this['source']['getOperations'](_0x12fffe,_0x3d9899))this['_handleOperation'](_0x47dd4a,_0x412a08);for(const _0x280d2a of this['_diffRoots']['values']())_0x280d2a['markers']['clear']();for(const [_0x4773a8,_0x30fe76]of this['_markers']){this['_diffRoots']['get'](_0x30fe76['root']['rootName'])['markers']['set'](_0x4773a8,_0x30fe76['clone']());}const _0xc65cb0=new Map(),_0x5884cd=new Map();for(const [_0x5e5a66,_0x327f79]of this['_diffRoots'])_0xc65cb0['set'](_0x5e5a66,T(_0x327f79)),_0x5884cd['set'](_0x5e5a66,this['_diffRootsAttributes']['get'](_0x5e5a66));this['_saveMetaData'](_0x3d9899,_0xc65cb0,this['_markers'],_0x5884cd);}['_getPreviousFrom'](_0x4d52db){const _0x235d8c=Array['from'](this['_savedMetaData']['keys']());_0x235d8c['sort']((_0x4e9b0a,_0x56db97)=>_0x4e9b0a-_0x56db97),_0x235d8c['reverse']();for(const _0x2e6ad2 of _0x235d8c)if(_0x2e6ad2<_0x4d52db)return _0x2e6ad2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x527d82,_0x1b1c47){const _0x41555d=Array['from'](_0x1b1c47['markers'])['map'](([_0x474922,_0x280375])=>[_0x474922,this['_fixRange'](_0x280375,_0x527d82)]);_0x527d82['markers']=new Map(_0x41555d);}['_transformMarkers'](_0x3d896a){for(const _0x223f09 of this['_markers']['values']()){const _0xbe092d=_0x223f09['getTransformedByOperation'](_0x3d896a),_0x14e888=ft['_createFromRanges'](_0xbe092d);_0x223f09['start']=_0x14e888['start'],_0x223f09['end']=_0x14e888['end'];}}['_handleOperation'](_0x4ae053,_0x1e8a37){if('addRoot'!=_0x4ae053['type']&&'detachRoot'!=_0x4ae053['type']){if('insert'==_0x4ae053['type']){const _0x3f78be=_0x4ae053['position']['root']['rootName'];this['_diffRoots']['has'](_0x3f78be)||(this['_diffRoots']['set'](_0x3f78be,F(_0x3f78be,!0x0)),this['_diffRootsAttributes']['set'](_0x3f78be,{}),_0x1e8a37&&this['_idsRoots']['set'](_0x3f78be,F(_0x3f78be,!0x0)));}else{if('addRootAttribute'==_0x4ae053['type']||'removeRootAttribute'==_0x4ae053['type']||'changeRootAttribute'==_0x4ae053['type'])return void this['_handleRootAttributeOperation'](_0x4ae053);'marker'==_0x4ae053['type']&&this['_handleMarkerOperation'](_0x4ae053);}if('marker'!==_0x4ae053['type']){const _0x93bec0=this['_cloneOperation'](_0x4ae053,this['_diffRoots']);_0x93bec0['_execute'](),this['_transformMarkers'](_0x93bec0);}if(_0x1e8a37)switch(_0x4ae053['type']){case'insert':this['_handleInsertOperation'](_0x4ae053);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4ae053);break;case'merge':this['_handleMergeOperation'](_0x4ae053);break;case'split':this['_handleSplitOperation'](_0x4ae053);}}else this['_handleRootOperation'](_0x4ae053,_0x1e8a37);}['_cloneOperation'](_0x552f1e,_0x573594){const _0x5b6de2=_0x552f1e['clone']();return _0x5b6de2['_authorId']=_0x552f1e['_authorId'],this['_fixOperation'](_0x5b6de2,_0x573594),_0x5b6de2;}['_getBaseVids'](_0x5bc641){return _0x5bc641['map'](_0x259d81=>{const _0x1c124a=this['_getVidAttributeName'](_0x259d81);return Number(_0x259d81['item']['getAttribute'](_0x1c124a));});}['_generateTape'](_0x4727cb,_0xecf2d2){if(_0x4727cb['is']('element','$text'))_0xecf2d2['push']({'item':_0x4727cb,'type':'text'});else{_0x4727cb['is']('element')&&_0xecf2d2['push']({'item':_0x4727cb,'type':'elementStart'});for(const _0x5b480b of _0x4727cb['getChildren']())this['_generateTape'](_0x5b480b,_0xecf2d2);_0x4727cb['is']('element')&&_0xecf2d2['push']({'item':_0x4727cb,'type':'elementEnd'});}return _0xecf2d2;}['_getState'](){const _0x779c13=new Map(this['_touched']),_0x17e535=new Map(_0x779c13),_0x25bba0=new Map(),_0x574623={'insertions':{},'deletions':{}},_0xc87fde={'insertions':{},'deletions':{}},_0x27aa7b=new Map(),_0x53cb76=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53cb76['delete']('$graveyard');for(const _0x17689f of _0x53cb76){const _0x29140a=this['_diffRoots']['get'](_0x17689f)||F(_0x17689f,!0x1),_0x408d14=this['_baseRoots']['get'](_0x17689f)||F(_0x17689f,!0x1);_0x29140a['isAttached']()||_0x408d14['isAttached']()?(_0x574623['insertions'][_0x17689f]=T(_0x29140a),_0x574623['deletions'][_0x17689f]=T(_0x408d14),this['_copyMarkers'](_0x574623['deletions'][_0x17689f],_0x408d14),this['_copyMarkers'](_0x574623['insertions'][_0x17689f],_0x29140a),_0xc87fde['insertions'][_0x17689f]=this['_generateTape'](this['_idsRoots']['get'](_0x17689f),[]),_0xc87fde['deletions'][_0x17689f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x17689f)||F(_0x17689f,!0x1),[])):_0x53cb76['delete'](_0x17689f);}for(const _0x288893 of _0x53cb76){const _0x3bfbae=_0xc87fde['insertions'][_0x288893];for(const _0x538024 of _0x3bfbae){const _0x54a83a=this['_getVidAttributeName'](_0x538024),_0x263687=_0x538024['item']['getAttribute'](_0x54a83a);_0x17e535['delete'](_0x263687),_0x263687>=this['_startingRevisionId']&&_0x25bba0['set'](_0x263687,_0x779c13['get'](_0x263687));}}for(const _0x5208fd of _0x53cb76){const _0x5480cb=_0xc87fde['insertions'][_0x5208fd],_0x270690=this['_getBaseVids'](_0xc87fde['deletions'][_0x5208fd]);let _0x106831=0x0;for(const _0x2bdfa1 of _0x5480cb){const _0x2964ad=this['_getVidAttributeName'](_0x2bdfa1),_0x50496a=_0x2bdfa1['item']['getAttribute'](_0x2964ad);if(!_0x25bba0['has'](_0x50496a)&&!_0x27aa7b['has'](_0x50496a)){if(_0x17e535['has'](_0x50496a))_0x106831++;else{if(_0x50496a!=_0x270690[_0x106831]){const _0x39f3af=_0x779c13['get'](_0x50496a)||_0x779c13['get'](_0x270690[_0x106831]);for(;_0x50496a!=_0x270690[_0x106831];)_0x17e535['has'](_0x270690[_0x106831])||(_0x27aa7b['set'](_0x270690[_0x106831],_0x39f3af),_0x779c13['set'](_0x270690[_0x106831],_0x39f3af)),_0x106831++;}_0x106831++;}}}}for(const _0x2b14b8 of _0x53cb76){const _0x2c31de=_0xc87fde['insertions'][_0x2b14b8];for(const _0xaa0b9f of _0x2c31de){const _0x373a9f=this['_getVidAttributeName'](_0xaa0b9f),_0x14c662=_0xaa0b9f['item']['getAttribute'](_0x373a9f);if(_0x27aa7b['has'](_0x14c662)){const _0x1c5f51=_0x27aa7b['get'](_0x14c662);_0x17e535['has'](_0x14c662)||_0x17e535['set'](_0x14c662,{..._0x1c5f51}),_0x25bba0['set'](_0x14c662,{..._0x1c5f51});}}}for(const _0x59acf7 of _0x17e535['keys']())_0x59acf7>=this['_startingRevisionId']&&_0x17e535['delete'](_0x59acf7);const _0x5f3454=new Map();for(const _0x3c73a9 of _0x53cb76){let _0xbec8c2=_0xc87fde['insertions'][_0x3c73a9];for(const _0x1e3eec of _0xbec8c2)if(_0x1e3eec['item']['is']('element','tableCell')){const _0x5a37ae=this['_getVidAttributeName'](_0x1e3eec),_0x435e6d=_0x1e3eec['item']['getAttribute'](_0x5a37ae);if(_0x25bba0['has'](_0x435e6d)){const _0x3cb4bf=_0x1e3eec['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b3897=_0x5f3454['get'](_0x3cb4bf)||new Set();_0x5b3897['add'](_0x25bba0['get'](_0x435e6d)['userId']),_0x5f3454['set'](_0x3cb4bf,_0x5b3897);}}_0xbec8c2=_0xc87fde['deletions'][_0x3c73a9];for(const _0x85d01b of _0xbec8c2)if(_0x85d01b['item']['is']('element','tableCell')){const _0x7c467d=this['_getVidAttributeName'](_0x85d01b),_0x1021c0=_0x85d01b['item']['getAttribute'](_0x7c467d);if(_0x17e535['has'](_0x1021c0)){const _0x4e1d5e=_0x85d01b['item']['parent']['parent']['getAttribute']('vid_start'),_0x5cf802=_0x5f3454['get'](_0x4e1d5e)||new Set();_0x5cf802['add'](_0x17e535['get'](_0x1021c0)['userId']),_0x5f3454['set'](_0x4e1d5e,_0x5cf802);}}for(const _0x34c09d of _0x5f3454['keys']())(_0x25bba0['has'](_0x34c09d)||_0x17e535['has'](_0x34c09d))&&_0x5f3454['delete'](_0x34c09d);}for(const _0x4a9012 of _0x53cb76){const _0xa36cee=_0xc87fde['insertions'][_0x4a9012];let _0x11968f=null,_0x428727=null;for(const _0x4b985 of _0xa36cee){const _0x657037=this['_getVidAttributeName'](_0x4b985),_0x6b297=_0x4b985['item']['getAttribute'](_0x657037),_0x37c229=_0x5f3454['get'](_0x6b297);_0x37c229&&'elementStart'==_0x4b985['type']&&(_0x11968f=Array['from'](_0x37c229)[0x0],_0x428727=_0x4b985['item']['getAttribute']('vid_end')),_0x11968f&&(_0x17e535['set'](_0x6b297,{'userId':_0x11968f}),_0x25bba0['set'](_0x6b297,{'userId':_0x11968f})),_0x6b297==_0x428727&&(_0x11968f=null,_0x428727=null);}}const _0x2a42d1={},_0x12edc4=new Set();for(const _0x2b1896 of _0x53cb76){const _0x14d7de=_0x574623['deletions'][_0x2b1896],_0x1933fe=_0x574623['insertions'][_0x2b1896];for(const {userId:_0x269892}of this['_touchedMarkers']['values']())null!==_0x269892&&_0x12edc4['add'](_0x269892);for(const {userId:_0x41423d}of this['_touchedRoots']['values']())null!==_0x41423d&&_0x12edc4['add'](_0x41423d);this['_markChanges'](_0x1933fe,_0xc87fde['insertions'][_0x2b1896],_0x25bba0,'insertion',_0x12edc4),this['_markChanges'](_0x14d7de,_0xc87fde['deletions'][_0x2b1896],_0x17e535,'deletion',_0x12edc4),_0x2a42d1[_0x2b1896]={'insertions':this['_prepareViewToSave'](_0x1933fe),'deletions':this['_prepareViewToSave'](_0x14d7de),'attachChange':this['_touchedRoots']['get'](_0x2b1896)||null,'attributesBefore':_0x5b5f9d(this['_baseRootsAttributes']['get'](_0x2b1896))||{},'attributesAfter':_0x5b5f9d(this['_diffRootsAttributes']['get'](_0x2b1896))};}return{'diffData':_0x2a42d1,'authorsIds':Array['from'](_0x12edc4)};}['_processRootBeforeSave'](_0x17c78a){for(const [,_0xee034f]of _0x17c78a['markers']){const _0x561ca3=_0xee034f['start']['getAncestors']()['filter'](_0x505c2=>'tableCell'==_0x505c2['name']);for(const _0x11a413 of _0x561ca3)0x1==_0x11a413['childCount']&&_0x11a413['getChild'](0x0)['is']('element','paragraph')&&_0x11a413['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307f2a){this['_processRootBeforeSave'](_0x307f2a);const _0x5c6fae=this['editor']['data']['toView'](_0x307f2a,{}),_0x5f21e6=Array['from'](_0x5c6fae['getChildren']())['map'](_0x399217=>this['_getViewJson'](_0x399217));return JSON['stringify'](_0x5f21e6);}['_getViewJson'](_0x115254){if(_0x115254['is']('$text'))return _0x115254['data'];{const _0x30ab97=_0x115254;return{'type':Object['keys'](E)['find'](_0x4890e3=>_0x115254 instanceof E[_0x4890e3]),'name':_0x30ab97['name'],'attributes':Array['from'](_0x30ab97['getAttributes']()),'children':Array['from'](_0x30ab97['getChildren']())['map'](_0x5a43d1=>this['_getViewJson'](_0x5a43d1))};}}['_markChanges'](_0x3eb512,_0x2594e1,_0x6f908b,_0x7dfb57,_0x9704b7){let _0x2dc563=null,_0x38da52=null,_0x47719a=0x0;const _0x1110fe=this['editor']['model'];for(let _0x589e46=0x0;_0x589e46<_0x2594e1['length'];_0x589e46++){const _0x492f7d=this['_getVidAttributeName'](_0x2594e1[_0x589e46]),_0x180402=_0x2594e1[_0x589e46]['item']['getAttribute'](_0x492f7d),_0x499d0a=_0x6f908b['get'](_0x180402),_0xbf7018=_0x589e46==_0x2594e1['length']-0x1;(!_0x2dc563&&_0x499d0a&&(_0x2dc563=_0x499d0a,_0x38da52=_0x2594e1[_0x589e46]),_0x2dc563&&(!_0x499d0a||_0x499d0a['userId']!=_0x2dc563['userId']))&&(_0x285e56(_0x499d0a,B(_0x38da52,_0x3eb512,_0x1110fe),B(_0x2594e1[_0x589e46],_0x3eb512,_0x1110fe)),_0x2dc563=_0x499d0a||null,_0x38da52=_0x499d0a?_0x2594e1[_0x589e46]:null),_0x2dc563&&_0xbf7018&&_0x285e56(_0x499d0a,B(_0x38da52,_0x3eb512,_0x1110fe),J(_0x2594e1[_0x589e46],_0x3eb512,_0x1110fe));}function _0x285e56(_0x4eeb88,_0x5bfc18,_0x4be009){const _0x6da9b3=_0x2dc563['userId'],_0xc650c4='revision:'+_0x7dfb57+':'+_0x6da9b3+':'+_0x47719a++,_0x554c13=_0x1110fe['createRange'](_0x5bfc18,_0x4be009);_0x3eb512['markers']['set'](_0xc650c4,_0x554c13),null!==_0x6da9b3&&_0x9704b7['add'](_0x6da9b3);}}['_getVidAttributeName'](_0x58b432){switch(_0x58b432['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x498a5c,_0x2ab405){_0x498a5c['baseVersion']=null;for(const _0x2cbcb9 in _0x498a5c){const _0x38f3ec=_0x498a5c[_0x2cbcb9];if(_0x38f3ec instanceof vt){const _0x5cfe95=_0x2ab405['get'](_0x38f3ec['root']['rootName']);_0x498a5c[_0x2cbcb9]=this['_fixPosition'](_0x38f3ec,_0x5cfe95);}if(_0x38f3ec instanceof ft){const _0x14fe60=_0x2ab405['get'](_0x38f3ec['root']['rootName']);_0x498a5c[_0x2cbcb9]=this['_fixRange'](_0x38f3ec,_0x14fe60);}'root'===_0x2cbcb9&&(_0x498a5c['root']=_0x2ab405['get'](_0x498a5c['root']['rootName']));}}['_fixRange'](_0x3cd1a6,_0x251ae9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3cd1a6['start'],_0x251ae9),this['_fixPosition'](_0x3cd1a6['end'],_0x251ae9));}['_fixPosition'](_0x4f1e1f,_0x50a651){return this['editor']['model']['createPositionFromPath'](_0x50a651,_0x4f1e1f['path'],_0x4f1e1f['stickiness']);}['_handleInsertOperation'](_0x42a4fb){const _0x1cfd8f=this['_idsRoots']['get'](_0x42a4fb['position']['root']['rootName']),_0x5a5296=this['_fixPosition'](_0x42a4fb['position'],_0x1cfd8f),_0x3c0a58=null===_0x42a4fb['_authorId']?null:_0x42a4fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f884a=_0x5a5296['parent'],_0x1fbc39=this['_revisionId'],_0x4cfa5b=[];for(const _0x490135 of _0x42a4fb['nodes'])if(_0x490135['is']('element'))_0x4cfa5b['push'](this['_makeIdsRoot'](_0x490135));else{for(let _0x2c7b8f=0x0;_0x2c7b8f<_0x490135['offsetSize'];_0x2c7b8f++)_0x4cfa5b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4f7e44=this['_revisionId'];for(let _0xeadee1=_0x1fbc39;_0xeadee1<_0x4f7e44;_0xeadee1++)this['_touched']['set'](_0xeadee1,{'userId':_0x3c0a58});_0x4f884a['_insertChild'](_0x5a5296['offset'],_0x4cfa5b);}['_handleMoveOperation'](_0x499cfa){(_0x499cfa=this['_cloneOperation'](_0x499cfa,this['_idsRoots']))['_execute']();const _0x3e6029=null===_0x499cfa['_authorId']?null:_0x499cfa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3aa083=_0x499cfa['getMovedRangeStart'](),_0x30b04d=_0x3aa083['parent'],_0x354b12=_0x3aa083['offset'];!function _0x3d0f13(_0x4b4441,_0x4fedd0,_0xfb956c,_0x3490aa){for(let _0x375124=_0xfb956c;_0x375124<_0x3490aa;_0x375124++){const _0x5d79c7=_0x4fedd0['getChild'](_0x375124);_0x5d79c7['is']('element','$text')?_0x4b4441['set'](_0x5d79c7['getAttribute']('vid'),{'userId':_0x3e6029}):(_0x4b4441['set'](_0x5d79c7['getAttribute']('vid_start'),{'userId':_0x3e6029}),_0x3d0f13(_0x4b4441,_0x5d79c7,0x0,_0x5d79c7['childCount']),_0x4b4441['set'](_0x5d79c7['getAttribute']('vid_end'),{'userId':_0x3e6029}));}}(this['_touched'],_0x30b04d,_0x354b12,_0x354b12+_0x499cfa['howMany']);}['_handleMergeOperation'](_0x1d4c7b){const _0x50088d=null===(_0x1d4c7b=this['_cloneOperation'](_0x1d4c7b,this['_idsRoots']))['_authorId']?null:_0x1d4c7b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c0cff=_0x1d4c7b['targetPosition']['parent'],_0x234fb5=_0x1d4c7b['sourcePosition']['parent'],_0x2cd316=_0x3c0cff['getAttribute']('vid_end'),_0x19b6eb=_0x234fb5['getAttribute']('vid_start');_0x3c0cff['_setAttribute']('vid_end',_0x234fb5['getAttribute']('vid_end')),_0x234fb5['_setAttribute']('vid_end',_0x2cd316),this['_touched']['set'](_0x19b6eb,{'userId':_0x50088d}),this['_touched']['set'](_0x2cd316,{'userId':_0x50088d}),_0x1d4c7b['_execute']();}['_handleSplitOperation'](_0x1b5bef){const _0x22a6d6=null===(_0x1b5bef=this['_cloneOperation'](_0x1b5bef,this['_idsRoots']))['_authorId']?null:_0x1b5bef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43528f=_0x1b5bef['graveyardPosition'],_0x53efe6=_0x1b5bef['splitPosition']['parent'];_0x1b5bef['_execute']();const _0x329aa4=_0x53efe6['getAttribute']('vid_end'),_0x3859be=_0x1b5bef['insertionPosition']['nodeAfter'];if(_0x43528f){const _0x27e62f=_0x3859be['getAttribute']('vid_end'),_0x200d99=_0x53efe6['getAttribute']('vid_end');_0x53efe6['_setAttribute']('vid_end',_0x27e62f),_0x3859be['_setAttribute']('vid_end',_0x200d99),this['_touched']['set'](_0x53efe6['getAttribute']('vid_end'),{'userId':_0x22a6d6}),this['_touched']['set'](_0x3859be['getAttribute']('vid_start'),{'userId':_0x22a6d6});}else{const _0x3485eb=this['_revisionId']++,_0x2c865f=this['_revisionId']++;_0x53efe6['_setAttribute']('vid_end',_0x3485eb),_0x3859be['_setAttribute']('vid_start',_0x2c865f),_0x3859be['_setAttribute']('vid_end',_0x329aa4),this['_touched']['set'](_0x3485eb,{'userId':_0x22a6d6}),this['_touched']['set'](_0x2c865f,{'userId':_0x22a6d6});}}['_handleMarkerOperation'](_0x14789c){if(!_0x14789c['affectsData'])return;const _0x23058e=(_0x14789c=this['_cloneOperation'](_0x14789c,this['_diffRoots']))['oldRange']?_0x14789c['oldRange']['root']:null,_0x5ebca5=_0x14789c['newRange']?_0x14789c['newRange']['root']:null;_0x23058e&&this['_markers']['delete'](_0x14789c['name']),_0x5ebca5&&this['_markers']['set'](_0x14789c['name'],_0x14789c['newRange']['clone']());const _0x2ea880=null===_0x14789c['_authorId']?null:_0x14789c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x540420=_0x14789c['name'];if(!this['_touchedMarkers']['has'](_0x540420))return void this['_touchedMarkers']['set'](_0x540420,{'range':_0x14789c['oldRange'],'userId':_0x2ea880});const _0x2ff99c=this['_touchedMarkers']['get'](_0x540420),_0x1e2cee=_0x2ff99c['range'],_0x4a3788=_0x14789c['newRange'];null==_0x1e2cee&&null==_0x4a3788||_0x1e2cee&&_0x4a3788&&_0x1e2cee['isEqual'](_0x4a3788)?this['_touchedMarkers']['delete'](_0x14789c['name']):_0x2ff99c['userId']=_0x2ea880;}['_handleRootOperation'](_0x27cff5,_0xb3afaa){this['_diffRoots']['has'](_0x27cff5['rootName'])?this['_diffRoots']['get'](_0x27cff5['rootName'])['_isAttached']=_0x27cff5['isAdd']:(this['_diffRoots']['set'](_0x27cff5['rootName'],F(_0x27cff5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x27cff5['rootName'],{}),_0xb3afaa&&this['_idsRoots']['set'](_0x27cff5['rootName'],F(_0x27cff5['rootName'],!0x0)));const _0x32fca2=null===_0x27cff5['_authorId']?null:_0x27cff5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37e95e=this['_touchedRoots']['get'](_0x27cff5['rootName']);_0x37e95e&&_0x37e95e['userId']===_0x32fca2?this['_touchedRoots']['delete'](_0x27cff5['rootName']):this['_touchedRoots']['set'](_0x27cff5['rootName'],{'userId':_0x32fca2,'isAttached':_0x27cff5['isAdd']});}['_handleRootAttributeOperation'](_0x4baf6a){const _0x392dfc=this['_diffRootsAttributes']['get'](_0x4baf6a['root']['rootName']);null===_0x4baf6a['newValue']?delete _0x392dfc[_0x4baf6a['key']]:_0x392dfc[_0x4baf6a['key']]=_0x4baf6a['newValue'];}}function T(_0x9f474d){const _0x41a22e=F(_0x9f474d['rootName'],_0x9f474d['isAttached']());for(const _0x3b82dc of _0x9f474d['getChildren']()){const _0x3b4f05=_0x3b82dc['_clone'](!0x0);_0x41a22e['_appendChild'](_0x3b4f05);}return _0x41a22e;}function F(_0x38fc01,_0x5ed084=!0x0){const _0x2c0f70=new gt();return _0x2c0f70['rootName']=_0x38fc01,_0x2c0f70['_isAttached']=_0x5ed084,_0x2c0f70['isAttached']=()=>_0x2c0f70['_isAttached'],_0x2c0f70;}function B(_0x461183,_0x548554,_0x3cefa7){const _0x1c6d62='elementEnd'==_0x461183['type']?_0x3cefa7['createPositionAt'](_0x461183['item'],'end'):_0x3cefa7['createPositionBefore'](_0x461183['item']);return _0x3cefa7['createPositionFromPath'](_0x548554,_0x1c6d62['path'],_0x1c6d62['stickiness']);}function J(_0x42e0ea,_0x20d47f,_0x3e3c48){const _0x5f3b65='elementStart'==_0x42e0ea['type']?_0x3e3c48['createPositionAt'](_0x42e0ea['item'],0x0):_0x3e3c48['createPositionAfter'](_0x42e0ea['item']);return _0x3e3c48['createPositionFromPath'](_0x20d47f,_0x5f3b65['path'],_0x5f3b65['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3374f5,_0xf471fd){super(_0x3374f5),this['focusTracker']=new _0x1d836e(),this['keystrokes']=new _0x453d05(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf471fd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x219dee(this);}['render'](){super['render'](),_0x223a7a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x517328=_0x2c9b4d=>_0x2c9b4d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x517328),this['keystrokes']['set']('arrowleft',_0x517328),this['keystrokes']['set']('arrowup',_0x517328),this['keystrokes']['set']('arrowdown',_0x517328);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1156dc){this['revisionNameInputView']['fieldView']['element']['value']=_0x1156dc['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x23debb){const _0xd72a84=new _0x5c04f4(this['locale'],_0x279764),_0x9038f3=_0xd72a84['fieldView'];_0x9038f3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x372bbc=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x23debb&&(_0x372bbc+='\x20('+m(this['locale'],'optional')+')'),(_0xd72a84['label']=_0x372bbc,_0x9038f3['on']('input',()=>{this['revisionNameInputValue']=_0x9038f3['element']['value']['trim']();}),_0xd72a84);}}class f extends _0x4191c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2a8499=this['editor'],_0x3532a0=_0x2a8499['plugins']['get']('RevisionTracker');_0x2a8499['ui']['componentFactory']['add']('revisionHistory',_0x2548cd=>{const _0x15e636=_0x3f5931(_0x2548cd),_0x530eb5=_0x15e636['panelView']['children'],_0x17adea=new _0x431ea9(_0x2548cd),_0x14d41d=new _0x2cbd7e(_0x2548cd),_0x18ee92=new te(_0x2548cd),_0x361457=new _0x2cbd7e(_0x2548cd),_0x164e2a=new te(_0x2548cd);return _0x15e636['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x3532a0,'isEnabled',_0x2a8499,'isReadOnly',(_0x4e3b11,_0x3bef84,_0x459095)=>_0x4e3b11&&_0x3bef84&&!_0x459095),_0x15e636['buttonView']['set']({'icon':_0x3543e9,'label':m(_0x2548cd,'Revision\x20history'),'tooltip':!0x0}),_0x18ee92['set']({'label':m(_0x2548cd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18ee92['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x3532a0,'isEnabled',_0x2a8499,'isReadOnly',(_0x59faa3,_0x3e8463,_0x24816a)=>_0x59faa3&&_0x3e8463&&!_0x24816a),_0x18ee92['on']('execute',()=>this['_showDialog']()),_0x164e2a['set']({'label':m(_0x2548cd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x164e2a['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x2a8499,'isReadOnly',(_0x69f8a0,_0x519348)=>_0x69f8a0&&!_0x519348),_0x164e2a['on']('execute',()=>{_0x2a8499['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x15e636['isOpen']=!0x1,_0x2a8499['editing']['view']['focus']();}),_0x14d41d['children']['add'](_0x18ee92),_0x361457['children']['add'](_0x164e2a),_0x17adea['role']='menu',_0x17adea['items']['addMany']([_0x14d41d,_0x361457]),_0x530eb5['add'](_0x17adea),_0x15e636;}),_0x2a8499['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1c6ba8=this['editor'],_0x357538=_0x1c6ba8['locale'],_0x3225a7=new _0x35c560(_0x357538),_0x33ddfa=new _0x1e5aad(_0x357538);_0x3225a7['buttonView']['set']({'icon':_0x3543e9,'label':m(_0x357538,'Revision\x20history')});const _0x2b311b=new _0x3f5f57(_0x357538,_0x3225a7),_0x42176c=new _0x4f6d9f(_0x357538);_0x42176c['set']({'label':m(_0x357538,'Save\x20current\x20revision')}),_0x42176c['delegate']('execute')['to'](_0x3225a7),_0x42176c['on']('execute',()=>{this['_showDialog']();}),_0x2b311b['children']['add'](_0x42176c),_0x33ddfa['items']['add'](_0x2b311b);const _0x4f1fdc=new _0x3f5f57(_0x357538,_0x3225a7),_0x1349ed=new _0x4f6d9f(_0x357538);return _0x1349ed['set']({'label':m(_0x357538,'Open\x20revision\x20history')}),_0x1349ed['delegate']('execute')['to'](_0x3225a7),_0x1349ed['on']('execute',()=>{_0x1c6ba8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f1fdc['children']['add'](_0x1349ed),_0x33ddfa['items']['add'](_0x4f1fdc),_0x3225a7['panelView']['children']['add'](_0x33ddfa),_0x3225a7;}['_showDialog'](){const _0x45f1c8=this['editor'],_0x16a2b4=_0x45f1c8['locale'],_0x5edf76=_0x45f1c8['plugins']['get']('Dialog'),_0x57aa19=_0x45f1c8['plugins']['get']('RevisionTracker');function _0x106684(_0x25e72c){_0x45f1c8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25e72c['revisionName']?_0x25e72c['revisionNameInputView']['errorText']=m(_0x16a2b4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x45f1c8['plugins']['get'](u)['saveRevision']({'name':_0x25e72c['revisionName']}),_0x5edf76['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x106684(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5edf76['show']({'id':'revisionSave','title':m(_0x16a2b4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x45f1c8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5edf76['hide']()},{'label':m(_0x45f1c8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3028e4){_0x3028e4['bind']('isEnabled')['to'](_0x57aa19,'isReady',_0x57aa19,'isEnabled',_0x45f1c8,'isReadOnly',(_0x5f2ff6,_0x2ccaa6,_0xb89ec)=>_0x5f2ff6&&_0x2ccaa6&&!_0xb89ec);},'onExecute':()=>_0x106684(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x289083=this['editor'],_0x34005f=_0x289083['locale'];this['_saveRevisionFormView']=new hs(_0x34005f,_0x289083['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x341a82,_0x2f41ab){super(_0x341a82),this['_model']=_0x2f41ab,this['changeId']=_0x2f41ab['id'];const _0x3a9b55=this['bindTemplate'],_0x158a04=m(_0x341a82,_0x2f41ab['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2f41ab['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2f41ab['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3a9b55['to']('type',_0x3c88ce=>'ck-revision-change__'+_0x3c88ce)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x158a04}]},{'text':'\x20'+_0x2f41ab['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x390d75(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a41f6){super(),this['id']=_0x1a41f6['id']||_0x54786b(),this['author']=_0x1a41f6['author'],this['type']=_0x1a41f6['type'],this['data']=_0x1a41f6['data']||{},this['rootName']=_0x1a41f6['rootName'],this['set']('createdAt',_0x1a41f6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2acbc6,_0x298c88){this['newRevisionId']=_0x2acbc6,this['oldRevisionId']=_0x298c88,this['changes']=new _0x56de22();}['_setChanges'](_0x4321e7){for(const _0x410fce of _0x4321e7)this['changes']['add'](_0x410fce);}}const Y={'c':_0x3c80e1,'a':_0xaae474,'e':_0x7935d9,'r':_0x32ef1d,'u':_0x5f3dba};class d extends _0x4191c7{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x47cbd6,_0x2fb9a1,j];}constructor(_0x30d8a8){super(_0x30d8a8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1388f2,_0x3ba3cf,_0x4f0673)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x170487=>{for(const _0x5e7627 of this['editor']['editing']['view']['document']['roots'])_0x4f0673?_0x170487['removeClass']('ck-editor__editable__overlay',_0x5e7627):_0x170487['addClass']('ck-editor__editable__overlay',_0x5e7627);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c541a=>null!==_0x2c541a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xd815f4,_0x586616,_0x59e5ca)=>_0xd815f4&&_0x59e5ca?_0x586616['changes']['getIndex'](_0x59e5ca):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x19b9b4,_0x9c877a)=>_0x19b9b4?_0x9c877a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2fb9a1);}['init'](){const _0x8f8656=this['editor'],_0x40641d=new _t(_0x8f8656,{'direction':'backward'}),_0x43ee34=new _t(_0x8f8656,{'direction':'forward'});(_0x8f8656['commands']['add']('showPreviousChange',_0x40641d),_0x8f8656['commands']['add']('showNextChange',_0x43ee34),_0x8f8656['commands']['add']('restoreRevision',new wt(_0x8f8656)),this['on']('change:numberOfChanges',()=>{_0x40641d['refresh'](),_0x43ee34['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x8f8656['enableReadOnlyMode']('revision-viewer'),_0x8f8656['plugins']['has']('WidgetToolbarRepository'))&&_0x8f8656['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4b108c){await this['loadRevisionData'](_0x4b108c);const _0xf437f4={};for(const _0x2f1c3f in _0x4b108c['diffData']){if(_0x4b108c['diffData'][_0x2f1c3f]['attachChange']&&!_0x4b108c['diffData'][_0x2f1c3f]['attachChange']['isAttached'])continue;const _0x4c506a=this['_removeRevisionMarkers'](JSON['parse'](_0x4b108c['diffData'][_0x2f1c3f]['insertions'])),_0x2b349f=this['editor']['editing']['view']['document'],_0x1bff29=new _0x9afee9(_0x2b349f,_0x4c506a['map'](_0x5a1e8a=>this['_getViewObj'](_0x5a1e8a)));this['editor']['data']['processor']['useFillerType']('marked'),_0xf437f4[_0x2f1c3f]=this['editor']['data']['processor']['toData'](_0x1bff29),this['editor']['data']['processor']['useFillerType']('default');}return _0xf437f4;}async['getRevisionRootsAttributes'](_0x370d83){await this['loadRevisionData'](_0x370d83);const _0x1e2942={};for(const _0x36de9c in _0x370d83['diffData'])_0x370d83['diffData'][_0x36de9c]['attachChange']&&!_0x370d83['diffData'][_0x36de9c]['attachChange']['isAttached']||(_0x1e2942[_0x36de9c]=_0x370d83['diffData'][_0x36de9c]['attributesAfter']||{});return _0x1e2942;}['_removeRevisionMarkers'](_0xc84205){return(_0xc84205=_0xc84205['filter'](_0x1d90a5=>!_0x1d90a5['name']||'revision-start'!==_0x1d90a5['name']&&'revision-end'!==_0x1d90a5['name']))['forEach'](_0x28e372=>{'string'!=typeof _0x28e372&&(_0x28e372['children']=this['_removeRevisionMarkers'](_0x28e372['children']),_0x28e372['attributes']=_0x28e372['attributes']['filter'](_0x158b43=>!_0x158b43[0x0]['startsWith']('data-revision-')));}),_0xc84205;}async['compare'](_0x3a803d,_0xbc14fe,_0xa47182=!0x1){if(!this['isEnabled'])return;const _0x1b1bbe=this['diff'],_0x3f0269=this['repository'],_0x533080='string'==typeof _0x3a803d?_0x3f0269['getRevision'](_0x3a803d):_0x3a803d,_0x3a65ed='string'==typeof _0xbc14fe?_0x3f0269['getRevision'](_0xbc14fe):_0xbc14fe,_0x5abb0a=_0x533080['id'],_0x2ccda7=_0x3a65ed?_0x3a65ed['id']:null;if(!_0xa47182&&this['diff']&&this['diff']['newRevisionId']===_0x5abb0a&&this['diff']['oldRevisionId']===_0x2ccda7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5abb0a,_0x2ccda7);const _0x16012c=this['_getRevisionsRange'](_0x533080,_0x3a65ed,!0x0)['map'](_0x30fd74=>this['loadRevisionData'](_0x30fd74));return _0x16012c['push'](new Promise(_0x2be536=>{setTimeout(_0x2be536,0x14);})),Promise['all'](_0x16012c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x373b53=this['_getDiff'](_0x5abb0a,_0x2ccda7);for(const _0x54c3c5 of _0x373b53['changes'])this['_changeIdToChange']['set'](_0x54c3c5['id'],_0x54c3c5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c44a8=>{for(const _0x307281 of this['editor']['model']['document']['getRootNames']())_0x5c44a8['detachRoot'](_0x307281);for(const _0x5a537e of Object['keys'](_0x373b53['model'])){const _0x3ebe88=_0x5c44a8['addRoot'](_0x5a537e);for(const _0x19e86b of Object['keys'](_0x373b53['attributes'][_0x5a537e]))_0x5c44a8['setAttribute'](_0x19e86b,_0x373b53['attributes'][_0x5a537e][_0x19e86b],_0x3ebe88);_0x5c44a8['insert'](_0x373b53['model'][_0x5a537e],_0x3ebe88,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x373b53['changes'])),this['isReady']=!0x0;})['catch'](_0x28992a=>{console['error'](_0x28992a),this['_cleanUp'](),_0x1b1bbe&&(this['diff']=_0x1b1bbe),this['isReady']=!0x0;});}['addRevisionData'](_0x4d9157,_0x3aab47){const _0xbdfef6=this['repository']['createRevision'](_0x4d9157);return _0xbdfef6['on']('_update',(_0x4ed141,_0x51abfe,_0x1e847a)=>_0x3aab47(_0x51abfe,_0x1e847a,_0xbdfef6)),this['repository']['addRevision'](_0xbdfef6),_0xbdfef6;}['loadRevisionData'](_0x4f199f){if(!_0x4f199f||_0x4f199f['diffData'])return Promise['resolve']();{const _0x576395=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x576395,'revisionId':_0x4f199f['id']})['then'](_0xfb704b=>{_0x4f199f['_update']({'diffData':_0xfb704b['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x28eeb7=>{for(const _0xa0e1df of this['editor']['model']['document']['getRootNames']())_0x28eeb7['detachRoot'](_0xa0e1df);});}['_sortAndFilterDiffChanges'](_0x3f7db2){const _0xaf3e4=[],_0x1eda81=new Map();for(const _0x1fe5e9 of this['editor']['model']['document']['getRootNames']()){const _0x21c73a=this['editor']['editing']['view']['getDomRoot'](_0x1fe5e9);if(!_0x21c73a)continue;const _0x3828dc=_0x21c73a['getClientRects']()['item'](0x0);_0x3828dc&&(_0xaf3e4['push'](_0x1fe5e9),_0x1eda81['set'](_0x1fe5e9,_0x3828dc));}return _0xaf3e4['sort']((_0x162db3,_0x151f21)=>{const _0x15e586=_0x1eda81['get'](_0x162db3),_0x36a864=_0x1eda81['get'](_0x151f21);return _0x15e586['y']-_0x36a864['y']||_0x15e586['x']-_0x36a864['x'];}),(_0x3f7db2=_0x3f7db2['filter'](_0x255b6f=>_0xaf3e4['includes'](_0x255b6f['rootName'])))['sort']((_0x2d305a,_0x4db620)=>_0xaf3e4['indexOf'](_0x2d305a['rootName'])-_0xaf3e4['indexOf'](_0x4db620['rootName'])),_0x3f7db2;}['_makeTape'](_0x3cf3ec){const _0xa08dc=Array['from'](_0x3cf3ec['markers'])['filter'](([_0x17713b,_0xde44e7])=>_0x17713b['startsWith']('revision:')&&!_0xde44e7['isCollapsed']),_0x4b4ae7=Array['from'](this['editor']['model']['createRangeIn'](_0x3cf3ec)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa08dc['length'])for(const _0x4469fe of _0x4b4ae7){const [_0x3b023d,_0x48aab2]=_0xa08dc[0x0],[,_0x4c54f0,_0x54c583]=_0x3b023d['split'](':');if(_0x48aab2['end']['isEqual'](_0x4469fe['nextPosition'])&&_0xa08dc['shift'](),(_0x4469fe['previousPosition']['isEqual'](_0x48aab2['start'])||_0x4469fe['previousPosition']['isAfter'](_0x48aab2['start']))&&('insertion'==_0x4c54f0?_0x4469fe['isAdded']={'userId':_0x54c583}:'deletion'==_0x4c54f0&&(_0x4469fe['isRemoved']={'userId':_0x54c583})),0x0==_0xa08dc['length'])break;}return _0x4b4ae7;}['_refreshStartEndIndex'](_0x4a0b9d){const _0x54ab0f=new Map();for(let _0x43e5e3=0x0;_0x43e5e3<_0x4a0b9d['length'];_0x43e5e3++)'text'===_0x4a0b9d[_0x43e5e3]['type']?(_0x4a0b9d[_0x43e5e3]['item']['startIndex']=_0x43e5e3,_0x4a0b9d[_0x43e5e3]['item']['endIndex']=_0x43e5e3):('elementStart'===_0x4a0b9d[_0x43e5e3]['type']?_0x4a0b9d[_0x43e5e3]['item']['startIndex']=_0x43e5e3:'elementEnd'===_0x4a0b9d[_0x43e5e3]['type']&&(_0x4a0b9d[_0x43e5e3]['item']['endIndex']=_0x43e5e3),_0x54ab0f['set'](_0x4a0b9d[_0x43e5e3]['id'],_0x43e5e3));for(const _0x54ec14 of _0x54ab0f['values']())'elementStart'===_0x4a0b9d[_0x54ec14]['type']?_0x4a0b9d[_0x54ec14]['item']['endIndex']=_0x54ab0f['get'](_0x4a0b9d[_0x54ec14]['pairId']):'elementEnd'===_0x4a0b9d[_0x54ec14]['type']&&(_0x4a0b9d[_0x54ec14]['item']['startIndex']=_0x54ab0f['get'](_0x4a0b9d[_0x54ec14]['pairId']));}['_processTape'](_0x1f0ee6){for(let _0x15dee1=0x0;_0x15dee1<_0x1f0ee6['length'];_0x15dee1++){if('elementStart'===_0x1f0ee6[_0x15dee1]['type'])_0x1f0ee6[_0x15dee1]['item']['startIndex']=_0x15dee1;else{if('elementEnd'===_0x1f0ee6[_0x15dee1]['type']){_0x1f0ee6[_0x15dee1]['item']['endIndex']=_0x15dee1;const _0x5e8188=_0x1f0ee6[_0x15dee1]['item']['startIndex'];_0x1f0ee6[_0x5e8188]['pairId']=_0x1f0ee6[_0x15dee1]['id'],_0x1f0ee6[_0x15dee1]['pairId']=_0x1f0ee6[_0x5e8188]['id'];}else _0x1f0ee6[_0x15dee1]['item']['startIndex']=_0x15dee1,_0x1f0ee6[_0x15dee1]['item']['endIndex']=_0x15dee1,_0x1f0ee6[_0x15dee1]['pairId']=null;}_0x1f0ee6[_0x15dee1]['markersStart']||(_0x1f0ee6[_0x15dee1]['markersStart']=[],_0x1f0ee6[_0x15dee1]['markersEnd']=[]);}}['_markInsertions'](_0x5d44b1,_0x29f6e8){const _0x263657=_0x5d44b1['filter'](_0xb35b93=>!_0xb35b93['isAdded']);for(let _0x5b6658=0x0;_0x5b6658<_0x29f6e8['length'];_0x5b6658++)_0x29f6e8[_0x5b6658]['isAdded']&&(_0x263657[_0x5b6658]['isAdded']=_0x29f6e8[_0x5b6658]['isAdded']);}['_makeModelFromViewString'](_0x4db7d6){const _0x46b170=JSON['parse'](_0x4db7d6),_0x4565ee=this['editor']['editing']['view']['document'],_0x515bdf=new _0x9afee9(_0x4565ee,_0x46b170['map'](_0x1d1dc6=>this['_getViewObj'](_0x1d1dc6)));return this['editor']['data']['toModel'](_0x515bdf);}['_getViewObj'](_0x572958){const _0x5521e3=this['editor']['editing']['view']['document'];if('string'==typeof _0x572958)return new _0x101a1b(_0x5521e3,_0x572958);{const _0x2b01a6=_0x572958['children']['map'](_0x345ee8=>this['_getViewObj'](_0x345ee8));return new(Y[_0x572958['type']]||_0x15b19e)(_0x5521e3,_0x572958['name'],_0x572958['attributes'],_0x2b01a6);}}['_getDiff'](_0x3ba309,_0x1109ee=null){const _0x4fa401=this['repository']['getRevision'](_0x3ba309),_0x3f072e=_0x1109ee?this['repository']['getRevision'](_0x1109ee):null,_0x3d5b71=this['_getRevisionsRange'](_0x4fa401,_0x3f072e),_0x3c8fd1=_0x3d5b71[_0x3d5b71['length']-0x1],_0x1bd8f3=new Map(),_0x5ef57f={'model':{},'attributes':{},'changes':[]},_0x5dd265=new Set(),_0x2e9cbb=new Map();for(let _0x511592=_0x3d5b71['length']-0x1;_0x511592>=0x0;_0x511592--){const _0x33d478=_0x3d5b71[_0x511592];for(const _0x158824 of Object['keys'](_0x33d478['diffData']))if(_0x33d478['diffData'][_0x158824]['attachChange']){const _0x2c58f8=_0x33d478['diffData'][_0x158824]['attachChange'];_0x2c58f8['isAttached']?(_0x5dd265['add'](_0x158824),_0x2e9cbb['has'](_0x158824)&&_0x2e9cbb['get'](_0x158824)['userId']==_0x2c58f8['userId']?_0x2e9cbb['delete'](_0x158824):_0x2e9cbb['set'](_0x158824,_0x2c58f8)):_0x2e9cbb['has'](_0x158824)?(_0x5dd265['delete'](_0x158824),_0x2e9cbb['delete'](_0x158824)):(_0x5dd265['add'](_0x158824),_0x2e9cbb['set'](_0x158824,_0x2c58f8));}else _0x5dd265['add'](_0x158824);}for(const _0x4d8942 of _0x5dd265){const _0x4a224c=_0x2e9cbb['has'](_0x4d8942)&&!_0x2e9cbb['get'](_0x4d8942)['isAttached'];let _0x561b4b=_0x4a224c?_0x3d5b71['length']-0x1:0x0;const _0x462d27=_0x4a224c?-0x1:0x1;for(;_0x3d5b71[_0x561b4b];){const _0x5e27db=_0x3d5b71[_0x561b4b];if(_0x5e27db['diffData'][_0x4d8942]){const _0x7354b3=_0x4a224c?_0x5e27db['diffData'][_0x4d8942]['attributesBefore']:_0x5e27db['diffData'][_0x4d8942]['attributesAfter'];_0x5ef57f['attributes'][_0x4d8942]=_0x7354b3?_0x5b5f9d(_0x7354b3):{};break;}_0x561b4b+=_0x462d27;}}for(const _0x92306c of _0x3d5b71){_0x92306c['model']={};for(const _0x5535d0 of _0x92306c['authors'])_0x1bd8f3['set'](_0x5535d0['id'],_0x5535d0);for(const _0x343b66 of _0x5dd265){const _0x1b4dbb=_0x92306c['diffData'][_0x343b66]?_0x92306c['diffData'][_0x343b66]['insertions']:'[]',_0x56fb75=_0x92306c['diffData'][_0x343b66]?_0x92306c['diffData'][_0x343b66]['deletions']:'[]';_0x92306c['model'][_0x343b66]={'insertions':this['_makeModelFromViewString'](_0x1b4dbb),'deletions':this['_makeModelFromViewString'](_0x56fb75)};}}for(const _0x3b618a of _0x5dd265){let _0x4bedba=null,_0x33e147=0x0;const _0x18157e=new Map(Array['from'](_0x4fa401['model'][_0x3b618a]['insertions']['markers'])['filter'](([_0x4869e2])=>!_0x4869e2['startsWith']('revision:')));let _0x6dd562=0x0;for(const _0x482877 of _0x3d5b71){const _0x2e6c07=this['_makeTape'](_0x482877['model'][_0x3b618a]['insertions']);_0x482877==_0x4fa401?(_0x4bedba=_0x2e6c07,_0x33e147=_0x4bedba['length'],_0x4bedba['forEach'](_0x15b3a5=>{_0x15b3a5['id']=_0x6dd562++;}),this['_processTape'](_0x4bedba)):this['_markInsertions'](_0x4bedba,_0x2e6c07);const _0xe1116f=_0x4bedba['filter'](_0xf0071e=>!_0xf0071e['isAdded'])['map'](_0x3806d3=>_0x3806d3['id']);let _0x1468fa=0x0;const _0x31b226=this['_makeTape'](_0x482877['model'][_0x3b618a]['deletions']);_0x31b226['forEach'](_0x55f6b1=>{_0x55f6b1['isRemoved']?_0x55f6b1['id']=_0x33e147++:_0x55f6b1['id']=_0xe1116f[_0x1468fa++];}),this['_processTape'](_0x31b226),this['_setDistance'](_0x4bedba,'isAdded'),this['_setDistance'](_0x31b226,'isRemoved'),_0x482877==_0x4fa401&&this['_markMarkers'](_0x4bedba,_0x18157e),_0x4bedba=this['_joinTapes'](_0x4bedba,_0x31b226),this['_refreshStartEndIndex'](_0x4bedba),this['_setDistance'](_0x4bedba,'isRemoved');}_0x4bedba=_0x4bedba['filter'](_0x1ad1e1=>!(_0x1ad1e1['isAdded']&&_0x1ad1e1['isRemoved']));const _0x3bce00=new Map(_0x3c8fd1['model'][_0x3b618a]['deletions']['markers']),_0x519da9=new Set(_0x18157e['keys']());for(const _0x7d55ea of _0x3bce00['keys']())_0x519da9['delete'](_0x7d55ea);this['_markSuggestions'](_0x4bedba,_0x519da9),this['_fixObsoleteTags'](_0x4bedba),_0x4bedba=this['_removeMissingPairs'](_0x4bedba),_0x4bedba=this['_markMismatchedRemovedTags'](_0x4bedba),_0x4bedba=this['_removeUnsupportedChanges'](_0x4bedba);const {root:_0x464d11,changes:_0x502d07}=this['_makeModelFromTape'](_0x4bedba,_0x1bd8f3,_0x3b618a);_0x5ef57f['model'][_0x3b618a]=_0x464d11;const _0x5333a5=_0x2e9cbb['get'](_0x3b618a);if(_0x5333a5){const _0x414eca=_0x1bd8f3['get'](_0x5333a5['userId']),_0x3931cc=new r({'author':_0x414eca,'type':_0x5333a5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3b618a});_0x502d07['unshift'](_0x3931cc),_0x5ef57f['attributes'][_0x3b618a]['revisionHistoryAttachChange']=_0x3931cc['id'];}_0x5ef57f['changes']=_0x5ef57f['changes']['concat'](_0x502d07);}return _0x5ef57f;}['_markMarkers'](_0x5f266c,_0x17efbb){for(let _0x80437f=0x0;_0x80437f<_0x5f266c['length'];_0x80437f++)for(const [_0x42e280,_0x19429f]of _0x17efbb)_0x19429f['start']['isEqual'](_0x5f266c[_0x80437f]['previousPosition'])&&_0x5f266c[_0x80437f]['markersStart']['push'](_0x42e280),_0x19429f['end']['isEqual'](_0x5f266c[_0x80437f]['nextPosition'])&&_0x5f266c[_0x80437f]['markersEnd']['push'](_0x42e280);}['_joinTapes'](_0x573401,_0x3826da){let _0x57b724=[],_0x547a70=0x0,_0x21f2c7=0x0;for(;_0x547a70<_0x573401['length']||_0x21f2c7<_0x3826da['length'];){const _0x17250a=_0x573401[_0x547a70]||{},_0x3c3f65=_0x3826da[_0x21f2c7]||{};if(_0x17250a['id']==_0x3c3f65['id'])_0x547a70++,_0x21f2c7++,_0x57b724['push'](_0x17250a);else{if(_0x3c3f65['isRemoved']&&_0x17250a['isAdded']){const {commonTape:_0x1718cb,iEnd:_0x1ef61a,jEnd:_0x215eac}=this['_threeWayMerge'](_0x573401,_0x547a70,_0x3826da,_0x21f2c7);_0x57b724=_0x57b724['concat'](_0x1718cb),_0x547a70=_0x1ef61a,_0x21f2c7=_0x215eac;}else _0x3c3f65['isRemoved']?(_0x21f2c7++,_0x57b724['push'](_0x3c3f65)):(_0x547a70++,_0x57b724['push'](_0x17250a));}}return _0x57b724;}['_markSuggestions'](_0x4689a2,_0x381c28){const _0x1c8531=[];for(let _0x2fce85=0x0;_0x2fce85<_0x4689a2['length'];_0x2fce85++){for(let _0x263497=0x0;_0x263497<_0x4689a2[_0x2fce85]['markersStart']['length'];_0x263497++){const _0x38fde1=_0x4689a2[_0x2fce85]['markersStart'][_0x263497];if(!_0x381c28['has'](_0x38fde1))continue;const {group:_0x3d718f,type:_0x48778e,authorId:_0x5a200b}=_0xa7b4e7(_0x38fde1);'revision-suggestion'!=_0x3d718f||'insertion'!=_0x48778e&&'deletion'!=_0x48778e||(_0x1c8531['unshift']({'type':_0x48778e,'name':_0x38fde1,'userId':_0x5a200b}),_0x4689a2[_0x2fce85]['markersStart']['splice'](_0x263497,0x1),_0x263497--);}_0x264008(_0x4689a2[_0x2fce85]);for(let _0x35fa20=0x0;_0x35fa20<_0x4689a2[_0x2fce85]['markersEnd']['length'];_0x35fa20++){const _0x5eb5d1=_0x4689a2[_0x2fce85]['markersEnd'][_0x35fa20];if(!_0x381c28['has'](_0x5eb5d1))continue;const {group:_0x2d8d77,type:_0x19d69a}=_0xa7b4e7(_0x5eb5d1);if('revision-suggestion'!=_0x2d8d77||'insertion'!=_0x19d69a&&'deletion'!=_0x19d69a)continue;_0x4689a2[_0x2fce85]['markersEnd']['splice'](_0x35fa20,0x1),_0x35fa20--;const _0x1b01ad=_0x1c8531['findIndex'](_0x50784b=>_0x50784b['name']==_0x5eb5d1);_0x1b01ad>-0x1&&_0x1c8531['splice'](_0x1b01ad,0x1);}}function _0xa7b4e7(_0x9c2847){const _0x563490=_0x9c2847['split'](':');return{'group':_0x563490[0x0],'type':_0x563490[0x1],'subType':_0x563490['length']>=0x5?_0x563490[0x2]:null,'id':_0x563490['length']<0x5?_0x563490[0x2]:_0x563490[0x3],'authorId':_0x563490['length']<0x5?_0x563490[0x3]:_0x563490[0x4],'markerCount':0x6==_0x563490['length']?_0x563490[0x5]:null};}function _0x264008(_0x41102c){for(let _0x1d2996=0x0;_0x1d2996<_0x1c8531['length'];_0x1d2996++){if(_0x41102c['isAdded']&&'insertion'==_0x1c8531[_0x1d2996]['type'])return _0x41102c['isAddSuggestion']=_0x1c8531[_0x1d2996],void delete _0x41102c['isAdded'];if(!_0x41102c['isAdded']&&!_0x41102c['isRemoved']&&'deletion'==_0x1c8531[_0x1d2996]['type'])return void(_0x41102c['isRemoveSuggestion']=_0x1c8531[_0x1d2996]);}}}['_setDistance'](_0x4c3be1,_0x273116){let _0x3938ee=0x0,_0x46e59f=!0x1;const _0x54ff58=new Map();for(const _0x4daea1 of _0x4c3be1)_0x4daea1[_0x273116]?_0x46e59f&&(_0x3938ee++,_0x46e59f=!0x1):(_0x3938ee++,_0x46e59f=!0x0),_0x54ff58['set'](_0x4daea1['id'],_0x3938ee);for(let _0x5b6297=0x0;_0x5b6297<_0x4c3be1['length'];_0x5b6297++){if('isRemoved'==_0x273116&&_0x4c3be1[_0x5b6297]['isAdded']||'isAdded'==_0x273116&&_0x4c3be1[_0x5b6297]['isRemoved'])continue;if('text'==_0x4c3be1[_0x5b6297]['type']){_0x4c3be1[_0x5b6297]['distance']=0x0;continue;}const _0x232046=_0x54ff58['get'](_0x4c3be1[_0x5b6297]['pairId']),_0x521487=_0x54ff58['get'](_0x4c3be1[_0x5b6297]['id']);_0x4c3be1[_0x5b6297]['distance']=_0x232046-_0x521487;}}['_getRevisionsRange'](_0x120e72,_0xd1088d,_0x20635e=!0x1){const _0x36dfc6=[];let _0x1068cb=this['repository']['getIndex'](_0x120e72),_0x33ae1a=this['repository']['getIndex'](_0xd1088d);for(-0x1==_0x33ae1a&&(_0x33ae1a=this['repository']['_revisions']['length'],_0x20635e=!0x1);_0x1068cb<_0x33ae1a;)_0x36dfc6['push'](this['repository']['getRevision'](_0x1068cb)),_0x1068cb++;return _0x20635e&&_0x36dfc6['push'](this['repository']['getRevision'](_0x1068cb)),_0x36dfc6;}['_threeWayMerge'](_0x41aebb,_0xe8e253,_0x63c21b,_0x4015fa){const _0xda795=this['editor']['model']['schema'];let _0x2380c7=_0xe8e253;for(;_0x41aebb[_0x2380c7]&&_0x41aebb[_0x2380c7]['isAdded'];)_0x2380c7++;let _0x56940c=_0x4015fa;for(;_0x63c21b[_0x56940c]&&_0x63c21b[_0x56940c]['isRemoved'];)_0x56940c++;_0xaaed95(_0x41aebb,_0xe8e253,_0x2380c7),_0xaaed95(_0x63c21b,_0x4015fa,_0x56940c);const _0x69686c=_0x63c21b['slice'](_0x4015fa,_0x56940c)['concat'](_0x41aebb['slice'](_0xe8e253,_0x2380c7));return _0x69686c['sort']((_0xc2f3af,_0x5f2fc2)=>_0xc2f3af['side']!=_0x5f2fc2['side']?_0xc2f3af['side']-_0x5f2fc2['side']:_0xc2f3af['level']!=_0x5f2fc2['level']?_0xc2f3af['level']-_0x5f2fc2['level']:_0xc2f3af['distance']!=_0x5f2fc2['distance']?_0x5f2fc2['distance']-_0xc2f3af['distance']:!!_0xc2f3af['isAdded']!=!!_0x5f2fc2['isAdded']?-0x1==_0xc2f3af['side']||0x0==_0xc2f3af['side']?_0xc2f3af['isAdded']?-0x1:0x1:_0xc2f3af['isAdded']?0x1:-0x1:_0xc2f3af['index']-_0x5f2fc2['index']),{'commonTape':_0x69686c,'iEnd':_0x2380c7,'jEnd':_0x56940c};function _0xaaed95(_0x242643,_0x4cec6a,_0x3011b5){let _0x3eba50=-0x1,_0x314879=Number['POSITIVE_INFINITY'],_0x49d348=!0x0;for(let _0xaa65cd=_0x4cec6a;_0xaa65cd<_0x3011b5;_0xaa65cd++)if(_0xda795['isInline'](_0x242643[_0xaa65cd]['item'])||(_0x49d348=!0x1),_0x242643[_0xaa65cd]['item']['startIndex']<_0x4cec6a&&(_0x3eba50=_0xaa65cd),_0x242643[_0xaa65cd]['item']['endIndex']>=_0x3011b5){_0x314879=_0xaa65cd;break;}_0x49d348&&(_0x3eba50=_0x3011b5-0x1);for(let _0x5448cb=_0x4cec6a;_0x5448cb<_0x3011b5;_0x5448cb++)_0x242643[_0x5448cb]['side']=_0x5448cb<=_0x3eba50?-0x1:_0x5448cb<_0x314879?0x0:0x1,_0x242643[_0x5448cb]['index']=_0x5448cb;let _0x1add5a=0x0;for(let _0x4431ef=_0x4cec6a;_0x4431ef<=_0x3eba50;_0x4431ef++)0x0==_0x242643[_0x4431ef]['distance']?_0x242643[_0x4431ef]['level']=_0x1add5a:(_0x1add5a++,_0x242643[_0x4431ef]['level']=_0x1add5a,_0x1add5a++);for(let _0x513693=_0x4cec6a;_0x513693<_0x3011b5;_0x513693++)0x0==_0x242643[_0x513693]['side']&&(_0x242643[_0x513693]['level']=_0x1add5a);_0x1add5a=0x0;for(let _0x73bdf2=_0x3011b5-0x1;_0x73bdf2>=_0x314879;_0x73bdf2--)0x0==_0x242643[_0x73bdf2]['distance']?_0x242643[_0x73bdf2]['level']=_0x1add5a:(_0x1add5a--,_0x242643[_0x73bdf2]['level']=_0x1add5a,_0x1add5a--);}}['_fixObsoleteTags'](_0x2e1be5){const _0x66f1b1=new Map(),_0x1a0642=this['editor']['model']['schema'];for(let _0x151d74=0x1;_0x151d74<_0x2e1be5['length'];_0x151d74++){let _0x5f1ae5,_0x12d140,_0x110fc0;const _0x505d6d=_0x2e1be5[_0x151d74],_0x30743c=_0x2e1be5[_0x151d74-0x1];if('text'==_0x505d6d['type'])continue;if(_0x505d6d['type']!=_0x30743c['type'])continue;if(!_0x1a0642['isBlock'](_0x30743c['item'])||_0x1a0642['isLimit'](_0x30743c['item']))continue;if(!_0x1a0642['isBlock'](_0x505d6d['item'])||_0x1a0642['isLimit'](_0x505d6d['item']))continue;if((_0x2e1be5[_0x151d74]['isAdded']||_0x2e1be5[_0x151d74]['isAddSuggestion'])&&_0x2e1be5[_0x151d74-0x1]['isRemoved'])_0x5f1ae5=_0x2e1be5[_0x151d74],_0x12d140=_0x2e1be5[_0x151d74-0x1],_0x110fc0=_0x151d74-0x1;else{if(!_0x2e1be5[_0x151d74]['isRemoved']||!_0x2e1be5[_0x151d74-0x1]['isAdded']&&!_0x2e1be5[_0x151d74-0x1]['isAddSuggestion'])continue;_0x5f1ae5=_0x2e1be5[_0x151d74-0x1],_0x12d140=_0x2e1be5[_0x151d74],_0x110fc0=_0x151d74;}const _0x3da81d=_0x5f1ae5['level']==_0x12d140['level'],_0x4620db=Math['abs'](_0x5f1ae5['level'])<Math['abs'](_0x12d140['level'])&&0x0==_0x12d140['distance'];(_0x3da81d||_0x4620db)&&(_0x66f1b1['set'](_0x12d140['id'],_0x5f1ae5['id']),_0x2e1be5['splice'](_0x110fc0,0x1),_0x151d74--,_0x5f1ae5['isAdded']=!0x1);}for(let _0x5adf19=0x0;_0x5adf19<_0x2e1be5['length'];_0x5adf19++)_0x66f1b1['has'](_0x2e1be5[_0x5adf19]['pairId'])&&(_0x2e1be5[_0x5adf19]['pairId']=_0x66f1b1['get'](_0x2e1be5[_0x5adf19]['pairId']));}['_removeMissingPairs'](_0x28861b){const _0x53a0ac=new Set(_0x28861b['map'](_0x3a6eb7=>_0x3a6eb7['id']));for(let _0x2a536e=0x0;_0x2a536e<_0x28861b['length'];_0x2a536e++)_0x53a0ac['has'](_0x28861b[_0x2a536e]['pairId'])||0x0==_0x28861b[_0x2a536e]['distance']||(_0x28861b[_0x2a536e]['isIncorrect']=!0x0);return _0x28861b['filter'](_0x3bc853=>!_0x3bc853['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3660a4){const _0x3e38bf=new Set();for(let _0x21342b=0x0;_0x21342b<_0x3660a4['length'];_0x21342b++){if(_0x3e38bf['has'](_0x3660a4[_0x21342b]['id'])&&_0x3660a4[_0x21342b]['isRemoved']&&(_0x3660a4[_0x21342b]['isIncorrect']=!0x0),_0x3660a4[_0x21342b]['isIncorrect'])continue;if(0x0==_0x3660a4[_0x21342b]['distance'])continue;if('elementStart'!=_0x3660a4[_0x21342b]['type'])continue;if(null==_0x3660a4[_0x21342b]['pairId'])continue;let _0x167709=_0x21342b+0x1,_0x2c0b0d=0x0;for(;_0x3660a4[_0x167709]['id']!=_0x3660a4[_0x21342b]['pairId'];)'elementStart'==_0x3660a4[_0x167709]['type']?_0x2c0b0d++:'elementEnd'==_0x3660a4[_0x167709]['type']&&_0x2c0b0d--,_0x167709++;if(0x0!=_0x2c0b0d){if(_0x3660a4[_0x21342b]['isRemoved'])_0x3660a4[_0x21342b]['isIncorrect']=!0x0;else{for(;_0x167709!=_0x21342b;)_0x3660a4[_0x167709]['isRemoved']&&0x0!=_0x3660a4[_0x167709]['distance']&&(_0x3660a4[_0x167709]['isIncorrect']=!0x0,_0x3e38bf['add'](_0x3660a4[_0x167709]['pairId'])),_0x167709--;}}}return _0x3660a4['filter'](_0x45e146=>!_0x45e146['isIncorrect']);}['_removeUnsupportedChanges'](_0x1f11d5){const _0x4cff52=this['editor']['model']['schema'];for(let _0x7af6fe=0x0;_0x7af6fe<_0x1f11d5['length'];_0x7af6fe++){if(!(_0x1f11d5[_0x7af6fe]['isAdded']||_0x1f11d5[_0x7af6fe]['isAddSuggestion']||_0x1f11d5[_0x7af6fe]['isRemoved']||_0x1f11d5[_0x7af6fe]['isRemoveSuggestion']))continue;if(0x0==_0x1f11d5[_0x7af6fe]['distance'])continue;const _0x37f09f=_0x1f11d5[_0x7af6fe]['item'];_0x4cff52['isBlock'](_0x37f09f)||_0x4cff52['isLimit'](_0x37f09f)||(_0x1f11d5[_0x7af6fe]['isAdded']&&delete _0x1f11d5[_0x7af6fe]['isAdded'],_0x1f11d5[_0x7af6fe]['isAddSuggestion']&&delete _0x1f11d5[_0x7af6fe]['isAddSuggestion'],_0x1f11d5[_0x7af6fe]['isRemoveSuggestion']&&delete _0x1f11d5[_0x7af6fe]['isRemoveSuggestion'],_0x1f11d5[_0x7af6fe]['isRemoved']&&(_0x1f11d5[_0x7af6fe]['isIncorrect']=!0x0));}return _0x1f11d5['filter'](_0x19527b=>!_0x19527b['isIncorrect']);}['_makeModelFromTape'](_0x528c47,_0x5d986d,_0x1a7f23){const _0x30d880=new gt(),_0x4f191c=[],_0x462993=new Map(),_0x1da6e3=this['editor']['model'],_0x387613=_0x1da6e3['schema'],_0x1de8fe=[_0x30d880],_0xeed2eb={},_0x356f2e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4a1de2=null;const _0x4cc7f1=[0x0];for(let _0x36f889=0x0;_0x36f889<_0x528c47['length'];_0x36f889++)if('elementStart'===_0x528c47[_0x36f889]['type']){_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1);const _0x3f08e8=new ut(_0x528c47[_0x36f889]['item']['name'],_0x528c47[_0x36f889]['item']['getAttributes']());_0x1de8fe[0x0]['_appendChild'](_0x3f08e8),_0x4cc7f1['push'](0x0),_0x1de8fe['unshift'](_0x3f08e8),_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1);}else'elementEnd'===_0x528c47[_0x36f889]['type']?(_0x1de8fe['shift'](),_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1),_0x4cc7f1['pop'](),_0x4cc7f1[_0x4cc7f1['length']-0x1]++,_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1)):(_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1),_0x4a1de2?_0x4a1de2['_data']+=_0x528c47[_0x36f889]['item']['data']:_0x4a1de2=new mt(_0x528c47[_0x36f889]['item']['data'],_0x528c47[_0x36f889]['item']['getAttributes']()),_0x528c47[_0x36f889+0x1]&&'text'===_0x528c47[_0x36f889+0x1]['type']&&_0x4d9612(_0x4a1de2,_0x528c47[_0x36f889+0x1]['item'])||(_0x1de8fe[0x0]['_appendChild'](_0x4a1de2),_0x4a1de2=null),_0x4cc7f1[_0x4cc7f1['length']-0x1]+=_0x528c47[_0x36f889]['item']['offsetSize'],_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1));for(let _0x3c70ab=0x0;_0x3c70ab<_0x528c47['length'];_0x3c70ab++){const _0xf7202b=_0x528c47[_0x3c70ab]['previousPosition'],_0x32b06d=_0x528c47[_0x3c70ab]['nextPosition'];for(const _0x77e4d8 of _0x528c47[_0x3c70ab]['markersStart'])_0x462993['set'](_0x77e4d8,{'start':_0xf7202b,'end':null});_0x3d9a93('isRemoveSuggestion',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isAddSuggestion',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isRemoved',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isAdded',_0x3c70ab,_0xf7202b,_0x32b06d);for(const _0x169c9c of _0x528c47[_0x3c70ab]['markersEnd']){_0x462993['get'](_0x169c9c)['end']=_0x32b06d;}}for(const [_0x2785d1,_0x50de12]of _0x462993){const _0xf99a0e=this['editor']['model']['createRange'](_0x50de12['start'],_0x50de12['end']);_0x30d880['markers']['set'](_0x2785d1,_0xf99a0e);}return _0x4f191c['sort']((_0xa8daef,_0x4a41db)=>{const _0x4a217e=_0x30d880['markers']['get']('revision:'+_0xa8daef['id']),_0x302d0f=_0x30d880['markers']['get']('revision:'+_0x4a41db['id']);return _0x4a217e['start']['isBefore'](_0x302d0f['start'])?-0x1:_0x4a217e['start']['isAfter'](_0x302d0f['start'])?0x1:_0x4a217e['end']['isBefore'](_0x302d0f['end'])?-0x1:_0x4a217e['end']['isAfter'](_0x302d0f['end'])?0x1:'add'===_0xa8daef['type']?-0x1:0x1;}),{'root':_0x30d880,'changes':_0x4f191c};function _0x3d9a93(_0xf27cba,_0x239265,_0x5383fe,_0x11d957){const _0x3b9026=!!_0x528c47[_0x239265][_0xf27cba],_0x2b058c=_0x3b9026?_0x528c47[_0x239265][_0xf27cba]['userId']:null,_0x48ec7a=_0x239265===_0x528c47['length']-0x1,_0x3b772f=_0x356f2e[_0xf27cba][0x0],_0x5a536f=_0x387613['isObject'](_0x528c47[_0x239265]['item']);!_0xeed2eb[_0xf27cba]&&_0x3b9026?_0xeed2eb[_0xf27cba]={'start':_0x5383fe,'tapeItem':_0x528c47[_0x239265],'userId':_0x2b058c,'type':_0xf27cba}:_0xeed2eb[_0xf27cba]&&!_0x3b9026?(_0xeed2eb[_0xf27cba]['end']=_0x5383fe,_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]=null):_0xeed2eb[_0xf27cba]&&_0x3b9026&&_0xeed2eb[_0xf27cba]['userId']!==_0x2b058c&&(_0xeed2eb[_0xf27cba]['end']=_0x5383fe,_0x3b772f&&_0x3b772f['userId']===_0xeed2eb[_0xf27cba]['userId']||_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]={'start':_0x5383fe,'tapeItem':_0x528c47[_0x239265],'userId':_0x2b058c,'type':_0xf27cba}),_0xeed2eb[_0xf27cba]&&_0x5a536f&&('elementStart'!==_0x528c47[_0x239265]['type']||_0x3b772f&&_0x3b772f['userId']===_0x2b058c||_0x356f2e[_0xf27cba]['unshift']({'userId':_0x2b058c,'object':_0x528c47[_0x239265]['item'],'change':_0xeed2eb[_0xf27cba]}),'elementEnd'===_0x528c47[_0x239265]['type']&&_0x3b772f&&_0x3b772f['object']===_0x528c47[_0x239265]['item']&&(_0x356f2e[_0xf27cba]['shift'](),_0xeed2eb[_0xf27cba]=_0x3b772f['change'])),_0xeed2eb[_0xf27cba]&&_0x48ec7a&&(_0xeed2eb[_0xf27cba]['end']=_0x11d957,_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]=null);}function _0x3650a6({start:_0xac721d,end:_0x566c49,tapeItem:_0x415e44,userId:_0x131aef,type:_0x5cb9b3}){const _0x535ed1=_0x415e44['item'],_0x8a899=_0x1da6e3['schema']['isBlock'](_0x535ed1)&&!_0x1da6e3['schema']['isLimit'](_0x535ed1),_0x4cf473=_0xac721d['nodeAfter']==_0x566c49['parent']&&_0x566c49['isAtStart'];if(_0x8a899&&_0x4cf473)return;const _0x4742fa=_0x1da6e3['createRange'](_0xac721d,_0x566c49),_0x3e2db4=_0x5d986d['get'](_0x131aef),_0x1ab249=new r({'author':_0x3e2db4,'type':'isAdded'==_0x5cb9b3||'isAddSuggestion'==_0x5cb9b3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5cb9b3||'isRemoveSuggestion'==_0x5cb9b3},'createdAt':new Date(),'rootName':_0x1a7f23});_0x4f191c['push'](_0x1ab249),_0x30d880['markers']['set']('revision:'+_0x1ab249['id'],_0x4742fa);}function _0x4d9612(_0x322d3d,_0x36d1fe){const _0x77e358=_0x322d3d['getAttributes'](),_0x172275=_0x36d1fe['getAttributes']();for(const _0x48299f of _0x77e358){if(_0x48299f[0x1]!==_0x36d1fe['getAttribute'](_0x48299f[0x0]))return!0x1;_0x172275['next']();}return _0x172275['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x52659b=>{const _0xa2b3b4=_0x52659b['markerName']['split'](':')[0x1],_0x3175b8=this['_getChangeFromId'](_0xa2b3b4);if(!_0x3175b8)return null;const _0x4839ae='add'==_0x3175b8['type']?'insertion':'deletion',_0x817652=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4839ae];return _0x3175b8['data']['isSuggestion']&&_0x817652['push']('ck-suggestion-marker-'+_0x4839ae+'-new'),this['activeChange']==_0x3175b8&&_0x817652['push']('ck-suggestion-marker--active'),{'classes':_0x817652,'attributes':{'data-change-id':_0xa2b3b4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x39a84a=>{_0x39a84a['on']('element:pre',(_0x32df23,_0x44b54,_0x5deec1)=>{const _0x15ba2f=_0x44b54['viewItem']['getChild'](0x0);if(!_0x15ba2f||!_0x15ba2f['is']('element','code'))return;if(!_0x5deec1['consumable']['consume'](_0x15ba2f,{'attributes':['vid_start','vid_end']}))return;const _0x3e868b=_0x44b54['modelRange']['start']['nodeAfter'];_0x5deec1['writer']['setAttribute']('vid_start',_0x15ba2f['getAttribute']('vid_start'),_0x3e868b),_0x5deec1['writer']['setAttribute']('vid_end',_0x15ba2f['getAttribute']('vid_end'),_0x3e868b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x175739=>{_0x175739['on']('element',(_0x56591e,_0x5745d1,_0x5a504c)=>{if(!_0x5a504c['consumable']['consume'](_0x5745d1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5745d1['modelRange']['isCollapsed'])return;const _0x171cce=_0x5745d1['modelRange']['start']['nodeAfter'];_0x171cce['hasAttribute']('vid_start')||_0x171cce['hasAttribute']('vid')||(_0x5a504c['writer']['setAttribute']('vid_start',_0x5745d1['viewItem']['getAttribute']('vid_start'),_0x171cce),_0x5a504c['writer']['setAttribute']('vid_end',_0x5745d1['viewItem']['getAttribute']('vid_end'),_0x171cce));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x38bb7e=>_0x38bb7e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3743a8,[,_0x224407])=>{['vid_start','vid_end','vid']['includes'](_0x224407)&&(_0x3743a8['return']=!0x0,_0x3743a8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5814d7=>{_0x5814d7['on']('attribute:vid',(_0x29cb5d,_0x30754f,_0x3393f9)=>{if('\x20'!=_0x30754f['item']['data']||_0x30754f['item']['parent']['maxOffset']>0x1)return;if(!_0x3393f9['consumable']['consume'](_0x30754f['item'],_0x29cb5d['name']))return;const _0x5f57ee=_0x3393f9['writer'],_0x1941f7=_0x3393f9['mapper']['toViewRange'](_0x30754f['range']);_0x5f57ee['wrap'](_0x1941f7,_0x5f57ee['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1c8d16){const _0x53efe9=_0x1c8d16['plugins']['get']('RevisionViewer');return(_0x2abee7,_0x113063,_0x4c59ef)=>{const _0x18a886=_0x113063['markerName']['split'](':')[0x1],_0x2c8838=_0x53efe9['_getChangeFromId'](_0x18a886);if(!_0x2c8838)return null;const _0x457a18='add'==_0x2c8838['type']?'split':'merge';if(!_0x4c59ef['consumable']['test'](_0x113063['markerRange'],_0x2abee7['name']))return;const _0xd12964=_0x113063['markerRange']['getWalker'](),_0x547c90=_0x113063['markerRange']['start'],_0x5c597e=_0x1c8d16['model']['schema'];let _0x4a725d=null,_0x29ea34=null,_0x8647ce=!0x1,_0x3b3b=!0x1;for(const _0x54518b of _0xd12964){const _0x53ac12=_0x54518b['item'];_0x8647ce=_0x8647ce||_0x5c597e['isContent'](_0x53ac12);const _0x4f214a=_0x4c59ef['mapper']['toViewElement'](_0x53ac12);if(_0x4f214a&&_0x4f214a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54518b['type']&&(_0x5c597e['isBlock'](_0x53ac12)&&!_0x5c597e['isLimit'](_0x53ac12)&&(_0x53ac12['nextSibling']||_0x547c90['isAtEnd']?_0x4a725d&&_0x4a725d['parent']==_0x53ac12||(_0x4a725d=_0x53ac12,_0x3befd6(_0x54518b['previousPosition']),_0x3b3b=!0x0):_0x29ea34=_0x29ea34||_0x54518b['previousPosition']));}function _0x3befd6(_0x1b1094){const _0x38337d=_0x4c59ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x457a18}),_0x383c67=_0x4c59ef['mapper']['toViewPosition'](_0x1b1094);_0x2c8838['data']['isSuggestion']&&_0x4c59ef['writer']['addClass']('ck-suggestion-marker-'+_0x457a18+'-new',_0x38337d),_0x53efe9['activeChange']==_0x2c8838&&_0x4c59ef['writer']['addClass']('ck-suggestion-marker--active',_0x38337d),_0x4c59ef['writer']['insert'](_0x383c67,_0x38337d),_0x4c59ef['mapper']['bindElementToMarker'](_0x38337d,_0x113063['markerName']);}_0x8647ce||_0x3b3b||!_0x29ea34||_0x3befd6(_0x29ea34);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x53eeed,_0x2dcdd2,_0x20989b)=>{const _0x47e8e8=_0x20989b['mapper']['markerNameToElements'](_0x2dcdd2['markerName']);if(_0x47e8e8){for(const _0xee7bea of _0x47e8e8)(_0xee7bea['hasClass']('ck-suggestion-marker-split')||_0xee7bea['hasClass']('ck-suggestion-marker-merge'))&&(_0x20989b['mapper']['unbindElementFromMarkerName'](_0xee7bea,_0x2dcdd2['markerName']),_0x20989b['writer']['remove'](_0xee7bea));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x37c58c,_0xaedeec,_0x4ce456)=>{const _0x12772b=_0xaedeec['markerName']['split'](':')[0x1],_0xeb3c23=this['_getChangeFromId'](_0x12772b);if(!_0xeb3c23)return null;const _0x3d6cd9='add'==_0xeb3c23['type']?'split':'merge';if(_0x4ce456['consumable']['test'](_0xaedeec['markerRange'],_0x37c58c['name']))for(const _0x22adc4 of _0xaedeec['markerRange']['getItems']()){if(!_0x22adc4['is']('element','softBreak'))continue;const _0x514f17=_0x4ce456['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d6cd9}),_0x2396c1=_0x4ce456['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x22adc4));_0xeb3c23['data']['isSuggestion']&&_0x4ce456['writer']['addClass']('ck-suggestion-marker-'+_0x3d6cd9+'-new',_0x514f17),this['activeChange']==_0xeb3c23&&_0x4ce456['writer']['addClass']('ck-suggestion-marker--active',_0x514f17),_0x4ce456['writer']['insert'](_0x2396c1,_0x514f17),_0x4ce456['mapper']['bindElementToMarker'](_0x514f17,_0xaedeec['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3cf9aa=>{for(const _0x3fe127 of this['editor']['model']['document']['getRootNames']()){const _0x4276fa=this['editor']['model']['document']['getRoot'](_0x3fe127),_0x6cae92=this['editor']['editing']['view']['document']['getRoot'](_0x3fe127);if(_0x6cae92){const _0x36376e=_0x4276fa['getAttribute']('revisionHistoryAttachChange');if(_0x3cf9aa['removeAttribute']('data-change-id',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root-add',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root-remove',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root--active',_0x6cae92),_0x36376e){const _0x4a7120=this['_getChangeFromId'](_0x36376e);if(!_0x4a7120)return null;_0x3cf9aa['setAttribute']('data-change-id',_0x36376e,_0x6cae92),_0x3cf9aa['addClass']('ck-revision-history-root-'+_0x4a7120['type'],_0x6cae92),this['activeChange']==_0x4a7120&&_0x3cf9aa['addClass']('ck-revision-history-root--active',_0x6cae92);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8814df=>'revision-comment:'+_0x8814df,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15ab6a=>'revision-suggestion:'+_0x15ab6a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x8f36e0=>({'name':'suggestion:'+_0x8f36e0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4b25c6=>{const _0x32e457=_0x4b25c6['markerName']['split'](':')[0x1];return'insertion'!=_0x32e457&&'deletion'!=_0x32e457?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32e457]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x15de1b,_0x160d12,_0x45045a)=>{const _0xdb5ce=_0x45045a['mapper']['markerNameToElements'](_0x160d12['markerName']);if(_0xdb5ce){for(const _0x2d9b76 of _0xdb5ce)_0x2d9b76['is']('uiElement')&&(_0x45045a['mapper']['unbindElementFromMarkerName'](_0x2d9b76,_0x160d12['markerName']),_0x45045a['writer']['remove'](_0x2d9b76));}},{'priority':'high'});}['_getChangeFromId'](_0x80721e){return this['_changeIdToChange']['get'](_0x80721e);}['_getViewForChange'](_0xf8f9cf){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xf8f9cf),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2e8518,_0x55af10,_0x285580,_0x4e57aa)=>{_0x4e57aa&&this['_balloon']['remove'](_0x4e57aa),_0x285580&&(this['_balloon']['add']({'view':_0x285580,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x559232=this['editor']['editing'],_0x2d53c6=this['_getChangeFromId'](_0x285580['changeId']);let _0x5b70cd;if(_0x2d53c6['data']['isOnRoot']){const _0x4f67ff=_0x559232['view']['getDomRoot'](_0x2d53c6['rootName']);_0x5b70cd=Array['from'](_0x4f67ff['getClientRects']());}else{const _0x556211=this['editor']['model']['markers']['get']('revision:'+_0x285580['changeId']);_0x5b70cd=Array['from'](_0x559232['mapper']['markerNameToElements'](_0x556211['name']))['map'](_0x14500e=>_0x559232['view']['domConverter']['mapViewToDom'](_0x14500e))['map'](_0x92e42=>Array['from'](_0x92e42['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b70cd[0x0];return _0x5b70cd['find'](_0x26ae8e=>_0x26ae8e['top']-0x3<=this['_activeViewTarget']['y']&&_0x26ae8e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26ae8e['left']-0x3<=this['_activeViewTarget']['x']&&_0x26ae8e['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b70cd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32e912,_0x2a60ea,_0x14e0ba,_0xfbdda1)=>{this['activeView']=_0x14e0ba?this['_getViewForChange'](_0x14e0ba):null,this['editor']['model']['change'](()=>{const _0x260c39=this['editor']['editing'];_0xfbdda1&&(_0xfbdda1['data']['isOnRoot']?_0x260c39['view']['change'](_0x51cad4=>{_0x51cad4['removeClass']('ck-revision-history-root--active',_0x260c39['view']['document']['getRoot'](_0xfbdda1['rootName']));}):_0x260c39['reconvertMarker']('revision:'+_0xfbdda1['id'])),_0x14e0ba&&(_0x14e0ba['data']['isOnRoot']?_0x260c39['view']['change'](_0x5ddd68=>{_0x5ddd68['addClass']('ck-revision-history-root--active',_0x260c39['view']['document']['getRoot'](_0x14e0ba['rootName']));}):_0x260c39['reconvertMarker']('revision:'+_0x14e0ba['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x44d483,_0x3d585b)=>{if(this['activeChange'])return;const _0x528ab8=this['_findChangeIdFromDomTarget'](_0x3d585b['target']),_0x298548=this['_changeIdToChange']['get'](_0x528ab8);_0x298548?(this['_activeViewTarget']={'x':_0x3d585b['domEvent']['x'],'y':_0x3d585b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x298548)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2d987c,_0x390370)=>{const _0x315f01=this['_findChangeIdFromDomTarget'](_0x390370['target']),_0x154e01=this['_changeIdToChange']['get'](_0x315f01);_0x154e01?(this['_activeViewTarget']={'x':_0x390370['domEvent']['x'],'y':_0x390370['domEvent']['y']},_0x154e01===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x154e01):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5e9557){do{const _0x247a6f=_0x5e9557['getAttribute']('data-change-id');if(_0x247a6f)return _0x247a6f;_0x5e9557=_0x5e9557['parent'];}while(_0x5e9557);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5aa1a0=>{for(const _0x345557 of this['editor']['model']['markers'])_0x5aa1a0['removeMarker'](_0x345557);});}}function Z(_0x26c79f,_0x38eebc){return(_0x566333,_0x43624d,_0x5f1df0)=>{if(!_0x5f1df0['consumable']['test'](_0x43624d['markerRange'],_0x566333['name']))return;const _0xa11b63=_0x43624d['markerRange']['getWalker'](),_0x176bb5=_0x43624d['markerRange']['start'],_0x12852f=_0x26c79f['model']['schema'];let _0xa8f15d=null,_0x330240=null,_0x3e5596=!0x1,_0x5ee55c=!0x1;for(const _0x144a02 of _0xa11b63){const _0x35c4ae=_0x144a02['item'];_0x3e5596=_0x3e5596||_0x12852f['isContent'](_0x35c4ae);const _0x5475aa=_0x5f1df0['mapper']['toViewElement'](_0x35c4ae);if(_0x5475aa&&_0x5475aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x144a02['type']&&(_0x12852f['isBlock'](_0x35c4ae)&&!_0x12852f['isLimit'](_0x35c4ae)&&(_0x35c4ae['nextSibling']||_0x176bb5['isAtEnd']?_0xa8f15d&&_0xa8f15d['parent']==_0x35c4ae||(_0xa8f15d=_0x35c4ae,_0xf7592b(_0x144a02['previousPosition']),_0x5ee55c=!0x0):_0x330240=_0x330240||_0x144a02['previousPosition']));}function _0xf7592b(_0x30cc3b){const _0x523206=_0x5f1df0['mapper']['toViewPosition'](_0x30cc3b),_0xf5d683=_0x5f1df0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x38eebc});_0x5f1df0['writer']['insert'](_0x523206,_0xf5d683),_0x5f1df0['mapper']['bindElementToMarker'](_0xf5d683,_0x43624d['markerName']);}_0x3e5596||_0x5ee55c||!_0x330240||_0xf7592b(_0x330240);};}class wt extends _0x44144e{constructor(_0xd9925c){super(_0xd9925c);const _0x1c8b45=_0xd9925c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1c8b45,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1c8b45,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48de89=this['editor'],_0x1cb9e1=_0x48de89['plugins']['get'](d),_0x4035e9=_0x1cb9e1['isReady']?_0x1cb9e1['diff']['newRevisionId']:null;_0x48de89['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4035e9);}['refresh'](){const {isReady:_0x41f23c,isEnabled:_0x5e1978,repository:_0x579c82,diff:_0x39276e}=this['editor']['plugins']['get'](d),_0x44d7=_0x39276e&&_0x579c82['getLaterVisibleRevision'](_0x39276e['newRevisionId']);this['isEnabled']=_0x41f23c&&_0x5e1978&&Boolean(_0x44d7);}}class _t extends _0x44144e{['_step'];constructor(_0x5db15f,{direction:_0x502dc4}){super(_0x5db15f);const _0x105bd4=_0x5db15f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x502dc4?0x1:-0x1,this['listenTo'](_0x105bd4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x105bd4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x105bd4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38a957=this['editor'],_0x805cca=_0x38a957['plugins']['get'](d),{isNavigationMode:_0x125052,currentChangeNumber:_0x25f1e6}=_0x805cca;let _0x1c4171;if(_0x805cca['activeChange']=_0x125052?_0x805cca['diff']['changes']['get'](_0x25f1e6+this['_step']):_0x805cca['diff']['changes']['first'],_0x805cca['activeChange']['data']['isOnRoot'])_0x1c4171=_0x38a957['editing']['view']['getDomRoot'](_0x805cca['activeChange']['rootName']);else{const _0x166e67=_0x38a957['model']['markers']['get']('revision:'+_0x805cca['activeChange']['id']);_0x1c4171=_0x96f4b1(_0x38a957['editing'],_0x166e67);}_0x4f9aa2({'target':_0x1c4171,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ca2ec,currentChangeNumber:_0x373972,numberOfChanges:_0x4e3e75,isReady:_0x48b367,isEnabled:_0x52ad54}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x52ad54&&_0x48b367&&_0x4e3e75)&&(!_0x4ca2ec||(0x1===this['_step']?_0x373972<_0x4e3e75-0x1:_0x373972>0x0));}}class oi extends ts{constructor(_0x4379ce){super(_0x4379ce);const _0x18107f=this['bindTemplate'],_0x407232=new te(_0x4379ce),_0x2e44d0=new te(_0x4379ce);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',(_0x40b112,_0x3c0a45)=>_0x40b112&&_0x3c0a45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x94e332,_0x38fe49,_0xf13aef,_0x254751)=>{if(!_0x94e332)return m(_0x4379ce,'Loading...');if(!_0xf13aef)return m(_0x4379ce,'No\x20changes');const _0x862ef3=m(_0x4379ce,'NUMBER_OF_CHANGES',_0xf13aef);return _0x254751?m(_0x4379ce,'X_OF_Y_CHANGES',[_0x38fe49+0x1,_0xf13aef]):_0x862ef3;}),_0x407232['set']({'label':m(_0x4379ce,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a6fc4}),_0x2e44d0['set']({'label':m(_0x4379ce,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4335ff}),_0x407232['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2e44d0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x407232['on']('execute',()=>this['fire']('execute','backward')),_0x2e44d0['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',_0x18107f['if']('_isStatusLabelVisible','ck-hidden',_0x556357=>!_0x556357)]},'children':[{'text':_0x18107f['to']('isNavigationMode',_0xf6312c=>_0xf6312c?m(_0x4379ce,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4379ce,'Total')+':\x20')}]},{'text':_0x18107f['to']('_statusText')}]},new _0x3b3126(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x407232,_0x2e44d0]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4191c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4b3c05=this['editor']['editing']['view'];_0x4b3c05['change'](_0x3a2a82=>{for(const _0x4241ff of _0x4b3c05['document']['roots'])_0x3a2a82['addClass'](le,_0x4241ff);});}['hide'](){const _0xea6c8b=this['editor']['editing']['view'];_0xea6c8b['change'](_0x10a717=>{for(const _0xa63fe2 of _0xea6c8b['document']['roots'])_0x10a717['removeClass'](le,_0xa63fe2);});}}class w extends _0x4191c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x18fd1a=this['editor'],_0x54251c=_0x18fd1a['plugins']['get'](d),_0x2b41e4=_0x18fd1a['plugins']['get'](ge);_0x18fd1a['ui']['componentFactory']['add']('exitToEditing',_0x17b72d=>{const _0x1b2112=new te(_0x17b72d);return _0x1b2112['set']({'label':m(_0x17b72d,'Back\x20to\x20editing'),'icon':_0x3a12c8,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1b2112,'execute',()=>{_0x18fd1a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1b2112;}),_0x18fd1a['ui']['componentFactory']['add']('restoreRevision',_0x31a27e=>{const _0x2a1fea=new te(_0x31a27e);return _0x2a1fea['set']({'label':m(_0x31a27e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2a1fea['bind']('isEnabled')['to'](_0x18fd1a['commands']['get']('restoreRevision')),this['listenTo'](_0x2a1fea,'execute',()=>_0x18fd1a['execute']('restoreRevision')),_0x2a1fea;}),_0x18fd1a['ui']['componentFactory']['add']('changesNavigation',_0x1528f8=>{const _0x33ec15=new oi(_0x1528f8),_0x47ff37=_0x18fd1a['commands']['get']('showPreviousChange'),_0x329408=_0x18fd1a['commands']['get']('showNextChange');return _0x33ec15['bind']('isBackwardNavigationEnabled')['to'](_0x47ff37,'isEnabled'),_0x33ec15['bind']('isForwardNavigationEnabled')['to'](_0x329408,'isEnabled'),_0x33ec15['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x54251c),this['listenTo'](_0x33ec15,'execute',(_0x128c39,_0x14ce99)=>{_0x18fd1a['execute']('forward'===_0x14ce99?'showNextChange':'showPreviousChange');}),_0x33ec15;}),_0x2b41e4['show'](),_0x54251c['on']('change:isReady',(_0x375d92,_0x3eaf0b,_0x3a64db)=>{_0x3a64db?_0x2b41e4['hide']():_0x2b41e4['show']();});}}class pt extends _0x5c04f4{['_resizeObserver']=null;constructor(_0x5aac83,_0x5d645c){super(_0x5aac83,_0x5d645c);const _0x43d9c0=this['bindTemplate'];this['set']({'label':m(_0x5aac83,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5aac83,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x43d9c0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x405c36=this['fieldView']['element'];this['_tooltipString']=_0x405c36['scrollWidth']>_0x405c36['clientWidth']&&_0x405c36['value']||'';}}class hi extends ts{constructor(_0x38a19e,_0x3762d7,_0x332ad8){super(_0x38a19e);const _0x388ce1=new _0x2d0324();_0x388ce1['set']({'content':_0x2ea797,'viewBox':'0\x200\x2011\x2010'});const _0x51ef4d=['ck','ck-revision-history-sidebar__revision-author'];_0x332ad8&&_0x51ef4d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x7eacbd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x38a19e,_0x332ad8?'Revision\x20creator':'Revision\x20author')},'children':[_0x388ce1,_0x3762d7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x51ef4d},'children':_0x7eacbd});}}function vi(_0xfc5b96,_0x466b98){const _0x543954=_0xfc5b96['bindTemplate'],_0x588c75=_0xfc5b96['locale'],_0x475780=_0x3f5931(_0x588c75);_0x475780['panelPosition']='sw';const _0x4f8096=function(_0x54a665,_0x3f3be1){const _0x12438c=function(_0x556525,_0x3a82b4){const _0x36fbd6=_0x556525['locale'],_0x55ab09={'Compare\x20against\x20selected':m(_0x36fbd6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x36fbd6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x36fbd6,'Restore\x20this\x20revision')};return _0x3a82b4['map'](_0x38f947=>{const _0x445f23=_0x55ab09[_0x38f947['name']];return _0x445f23&&_0x445f23!==_0x38f947['name']&&(_0x38f947['name']=_0x445f23),_0x38f947;});}(_0x54a665,_0x3f3be1),_0x13c4c0=new _0x56de22();for(const _0x1efead of _0x12438c){const _0x3cc10a={'type':'button','model':new to({'label':_0x1efead['name'],'class':_0x1efead['class'],'withText':!0x0,'role':'menuitem','_action':_0x1efead['action']})};_0x3cc10a['model']['bind']('isEnabled')['to'](_0x54a665,'isActionsDropdownOpen',_0x5245e8=>'function'!=typeof _0x1efead['isEnabled']||(!_0x5245e8||_0x1efead['isEnabled'](_0x54a665))),_0x13c4c0['add'](_0x3cc10a);}return _0x13c4c0;}(_0xfc5b96,_0x466b98);return _0xfc5b96['bind']('isActionsDropdownOpen')['to'](_0x475780,'isOpen'),_0x475780['buttonView']['set']({'label':m(_0x588c75,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1b4c9e}),_0x475780['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x543954['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x543954['to'](_0x1b8865=>_0x1b8865['stopPropagation']())}}),_0x475780['on']('execute',_0x47bd4e=>{_0xfc5b96['isReady']&&'function'==typeof _0x47bd4e['source']['_action']&&_0x47bd4e['source']['_action'](_0xfc5b96);}),_0x2bab52(_0x475780,_0x4f8096,{'role':'menu'}),_0x475780['listenTo'](_0xfc5b96,'change:isActionsDropdownOpen',(_0x2a7563,_0x4988f8,_0x413680)=>{if(_0x413680)for(const _0x279621 of _0x475780['listView']['items']){const _0x7e336c=_0x279621['children']['first'],_0x12de5e=_0x466b98['find'](_0x563eae=>_0x563eae['action']===_0x7e336c['_action'])['isVisible'];_0x279621['isVisible']=void 0x0===_0x12de5e||_0x12de5e(_0xfc5b96);}}),_0x475780;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4e19c2(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52a563,_0xf95f6d,_0x2a66fb,_0x144ec6){super(_0x52a563);const _0x14910d=this['bindTemplate'],_0x557fb3=function(_0xae3cbf,_0x45bae0){const _0x13ba2e=Array['from'](_0x45bae0['authors'])['filter'](_0x3170e0=>_0x3170e0!=_0x45bae0['creator']);return _0x45bae0['creator']&&_0x13ba2e['unshift'](_0x45bae0['creator']),_0x13ba2e['map'](_0x47bec5=>new hi(_0xae3cbf,_0x47bec5,_0x47bec5==_0x45bae0['creator']));}(_0x52a563,_0xf95f6d);this['id']=_0xf95f6d['id'],this['_revision']=_0xf95f6d,this['_requireRevisionName']=_0x144ec6,this['bind']('name','createdAt')['to'](_0xf95f6d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5ce8c3=>{return _0x3e05b9=_0x52a563['uiLanguage'],(_0x2c2285=_0x5ce8c3)['toLocaleDateString'](_0x3e05b9,{'month':'long','day':'numeric'})+',\x20'+_0x2c2285['toLocaleTimeString'](_0x3e05b9,{'hour':'numeric','minute':'numeric'});var _0x3e05b9,_0x2c2285;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x52a563,_0x279764),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3cfa43=>_0x3cfa43||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2adecb,_0x349131)=>_0x2adecb&&_0x349131),this['revisionActionsView']=_0x2a66fb&&_0x2a66fb['length']?vi(this,_0x2a66fb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x14910d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x14910d['if']('isEnabled','ck-disabled',_0x4de6f0=>!_0x4de6f0),_0x14910d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x14910d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x14910d['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':_0x14910d['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':_0x557fb3}]},this['revisionActionsView']],'on':{'click':_0x14910d['to'](_0x35a86c=>{_0x35a86c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x543301=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x543301,'change',()=>{this['_requireRevisionName']&&!_0x543301['value']||this['fire']('setName',{'id':this['id'],'name':_0x543301['value']}),_0x543301['value']||(_0x543301['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x283dc2,_0x1d2038){const _0x571eac=_0x13edb5['fromJSDate'](_0x283dc2)['setLocale'](_0x1d2038),_0x28028f=_0x13edb5['local'](),_0x30d8fd=_0x28028f['minus']({'days':0x1})['startOf']('day');let _0x3e25ea,_0x3b0d38;return _0x571eac['hasSame'](_0x28028f,'day')?(_0x3e25ea=_0x571eac['startOf']('day')['toJSDate'](),_0x3b0d38=_0x571eac['toRelativeCalendar']()):_0x571eac['hasSame'](_0x30d8fd,'day')?(_0x3e25ea=_0x30d8fd['toJSDate'](),_0x3b0d38=_0x571eac['toRelativeCalendar']()):_0x571eac['hasSame'](_0x28028f,'week')?(_0x3e25ea=_0x571eac['startOf']('week')['toJSDate'](),_0x3b0d38=_0x571eac['weekdayLong']||''):_0x571eac['hasSame'](_0x28028f,'year')?(_0x3e25ea=_0x571eac['startOf']('month')['toJSDate'](),_0x3b0d38=_0x571eac['monthLong']||''):(_0x3e25ea=_0x571eac['startOf']('year')['toJSDate'](),_0x3b0d38=String(_0x571eac['year'])),{'startDate':_0x3e25ea,'localizedPeriodName':_0x3b0d38};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4dc2db,_0x4d2540,_0x268e73,_0x2dd975){super(_0x4dc2db);const _0x38f080=ti(_0x4d2540,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4d2540,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x268e73,this['_requireRevisionName']=_0x2dd975,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':_0x38f080}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x563fab){const _0x4da9aa=new si(this['locale'],_0x563fab,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4da9aa);}['removeRevision'](_0x4ca2d6){const _0x1ee9e3=this['revisionViews']['find'](_0x57808f=>_0x57808f['id']===_0x4ca2d6['id']);this['revisionViews']['remove'](_0x1ee9e3);}}class cs extends ts{constructor(_0x35d91a){super(_0x35d91a);const _0x159185=new _0x2d0324();_0x159185['content']=_0x3543e9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x159185,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x35d91a,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4cd5a7,_0x2720b5,_0x43603d,_0x341a39){super(_0x4cd5a7);const _0x16756d=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2720b5,this['_revisionActions']=_0x43603d,this['_requireRevisionName']=_0x341a39,this['on']('select',(_0x3fac65,_0x400e06)=>{this['fire']('revisionSelected',_0x400e06);}),this['on']('setName',(_0x2d3cf2,_0x115a07)=>{this['fire']('revisionSetName',_0x115a07);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x4cd5a7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x16756d['if']('isEnabled','ck-disabled',_0x587f70=>!_0x587f70)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x12f5bb of this['_revisions'])this['_addRevision'](_0x12f5bb);this['_revisions']['on']('add',(_0x171573,_0x4018d3)=>{this['_addRevision'](_0x4018d3);}),this['_revisions']['on']('remove',(_0x883eaf,_0x34281b)=>{this['_removeRevision'](_0x34281b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3309f1=>_0x3309f1['revisionViews']['map'](_0x304061=>_0x304061))['flat']();}['selectRevision'](_0x1890e1){for(const _0x223cee of this['revisionViews'])_0x1890e1&&_0x1890e1['id']===_0x223cee['id']?_0x223cee['select']():_0x223cee['deselect']();}['highlightRevisions'](_0x210f95){for(const _0x229982 of this['revisionViews'])_0x210f95['some'](({id:_0x181270})=>_0x181270===_0x229982['id'])?_0x229982['highlight']():_0x229982['unhighlight']();}['_addRevision'](_0x513c66){const _0x44f89e=ti(_0x513c66['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x568393=this['timePeriodViews']['get'](0x0);_0x568393&&_0x568393['startDate']['getTime']()===_0x44f89e['getTime']()||(_0x568393=new ei(this['locale'],_0x44f89e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x568393)),_0x568393['addRevision'](_0x513c66);}['_removeRevision'](_0x20eeee){const _0x15c22c=ti(_0x20eeee['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x15c22c)['removeRevision'](_0x20eeee);}['_getTimePeriodViewByStartDate'](_0xa85745){return this['timePeriodViews']['find'](_0x4c6bd4=>_0x4c6bd4['startDate']['getTime']()===_0xa85745['getTime']());}}class g extends _0x4191c7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5782e2,_0x1082ce){super(_0x1082ce),this['sourceElement']=_0x5782e2,this['model']['document']['createRoot']();const _0x5dba3f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5dba3f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xfaad6e,_0x25da75){const _0x310a8b=new this(_0xfaad6e,_0x25da75);return await _0x310a8b['initPlugins'](),await _0x310a8b['ui']['init'](_0xfaad6e),await _0x310a8b['data']['init'](_0x310a8b['config']['get']('initialData')||''),_0x310a8b['fire']('ready'),_0x310a8b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x314a0a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbe2552){function _0x36f806(_0x3d1309){return _0x3d1309['map'](_0x39e3b7=>String['fromCharCode'](_0x39e3b7))['join']('');}super(_0xbe2552),this['result']='end',_0xbe2552[_0x36f806([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f806([0x76,0x69,0x65,0x77])][_0x36f806([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36f806([0x61,0x75,0x74,0x6f]),_0xbe2552[_0x36f806([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36f806([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36f806([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36f806([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36f806([0x6f,0x6b])});}}class k extends _0x314a0a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x358b13){if(super(_0x358b13),!this['editor']['config']['get']('revisionHistory'))throw new _0x2eb646('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x47cfe0=>this['_showRevisionViewer']({..._0x47cfe0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1214f=>this['_closeRevisionViewer'](_0x1214f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x140b17=>this['_restoreRevision'](_0x140b17)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x46484e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x46484e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x292c70){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x292c70);}['getRevision'](_0x3c9b9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3c9b9b);}['getRevisions'](_0x102f03){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x102f03||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e22f6=this['editor'],_0x2b3525=_0x292d07(_0x3e22f6,p),_0x58d315=_0x3e22f6['plugins']['get']('RevisionTracker'),_0x47e2b8=_0x3e22f6['plugins']['get']('Users')['users'];return _0x2b3525['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2b3525['lazyRoots'],(_0x2b3525['plugins']['push'](Rt,d,g,class extends _0x314a0a{static get['requires'](){return[d,'Users'];}['init'](){const _0x78f6dc=this['editor']['plugins']['get']('Users');for(const _0xb6499b of _0x47e2b8)_0xb6499b['isAnonymous']||_0x78f6dc['getUser'](_0xb6499b['id'])||_0x78f6dc['addUser'](_0xb6499b);const _0x42aef3=_0x58d315['repository']['getRevisions']();let _0x51eb36=null;const _0xb7f3b=this['editor']['plugins']['get']('RevisionViewer');_0xb7f3b['adapter']=_0x58d315['adapter'],_0xb7f3b['bind']('isEnabled')['to'](_0x58d315),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e22f6,'isReadOnly',_0x51b711=>!_0x51b711);for(const _0x20bd7e of _0x42aef3){const _0x48a2ad=null===_0x20bd7e['creator'];if(_0x48a2ad&&_0x20bd7e['toVersion']===_0x20bd7e['fromVersion'])continue;const _0x430d66=_0x20bd7e['toJSON']();_0xb7f3b['addRevisionData'](_0x430d66,(_0x1c9489,_0x36b752,_0x5bbb99)=>{if(_0x48a2ad){if(_0x51eb36)_0x51eb36['_update'](_0x1c9489,_0x36b752);else{if(!_0x36b752){const _0x42af20=_0x5bbb99['toJSON']();_0x42af20['id']=_0x1f968a(),_0x58d315['saveRevision'](_0x42af20,_0x5bbb99['toVersion'])['then'](_0x4b442c=>{_0x51eb36=_0x4b442c;});}}}else _0x20bd7e['_update'](_0x1c9489,_0x36b752);});}}},w),_0x2b3525);}['_enhanceShowRevisionViewerCallback'](){const _0x336e1a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17d5a6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a19bf=this['editor']['plugins']['get']('Autosave');await _0x4a19bf['save']();}else await _0x17d5a6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x247a03=this['editor']['plugins']['get']('Dialog');_0x247a03['isOpen']&&_0x247a03['hide']();}const _0x49f534=this['_getRevisionViewerEditorConfig']();return _0x336e1a(_0x49f534)['then'](_0x3e9321=>{return(this['_viewerEditor']=_0x3e9321,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3e9321;})['catch'](_0x3a5390=>(console['error'](_0x3a5390),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40e029=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x40e029(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51c788=this['editor']['plugins']['get']('Annotations');_0x51c788['refreshVisibility'](),_0x51c788['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5df809){const _0x33f43e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x38c8d5=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2fc98e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2fc98e,_0x5df809)['then'](_0x4b3a5d=>(_0x38c8d5['style']['display']='block',_0x33f43e['style']['display']='none',_0x4b3a5d));}['_closeRevisionViewer'](_0x5725b5){const _0x2d3ebf=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2d3ebf['style']['display']='',_0x5725b5['destroy']();}async['_restoreRevision'](_0x22362e){const _0x1681e1=this['editor'],_0x2fbf00=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ac4a4=_0x1681e1['plugins']['get']('RevisionTracker'),_0x52975c=_0x2fbf00['repository']['getRevision'](_0x22362e);let _0x5c3c4a,_0x10fa21,_0x308307;try{_0x5c3c4a=await _0x2fbf00['getRevisionData'](_0x52975c),_0x10fa21=await _0x2fbf00['getRevisionRootsAttributes'](_0x52975c);}catch(_0x3a4d3f){return void console['error'](_0x3a4d3f);}_0x1681e1['model']['change'](_0x564354=>{for(const _0x26d34d of Array['from'](_0x1681e1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x564354['removeMarker'](_0x26d34d);}),_0x2fbf00['isReady']=!0x1,_0x1681e1['model']['enqueueChange'](_0x3091a9=>{_0x3091a9['setSelection'](null),_0x3091a9['removeSelectionAttribute'](_0x1681e1['model']['document']['selection']['getAttributeKeys']());const _0xf68cff=Object['keys'](_0x5c3c4a);for(const _0x2921fe of _0x1681e1['model']['document']['roots'])'$graveyard'!=_0x2921fe['rootName']&&_0x2921fe['isAttached']()&&!_0xf68cff['includes'](_0x2921fe['rootName'])&&_0x3091a9['detachRoot'](_0x2921fe);for(const _0x4a8228 of _0xf68cff){let _0x503b30=_0x1681e1['model']['document']['getRoot'](_0x4a8228);_0x503b30&&_0x503b30['isAttached']()||(_0x503b30=_0x3091a9['addRoot'](_0x4a8228));const _0x3b0b1f=_0x10fa21[_0x4a8228],_0x200661=Object['keys'](_0x3b0b1f),_0x15b634=_0x5c3c4a[_0x4a8228];for(const _0xd5502 of _0x503b30['getAttributeKeys']())_0x200661['includes'](_0xd5502)||_0x3091a9['removeAttribute'](_0xd5502,_0x503b30);for(const _0x23792f of _0x200661)_0x3091a9['setAttribute'](_0x23792f,_0x10fa21[_0x4a8228][_0x23792f],_0x503b30);_0x3091a9['remove'](_0x3091a9['createRangeIn'](_0x503b30)),_0x3091a9['insert'](_0x1681e1['data']['parse'](_0x15b634,_0x503b30),_0x503b30,0x0);}});const _0x3c9880=m(_0x1681e1['locale'],'Restored');if(_0x52975c['name'])_0x308307=-0x1==_0x52975c['name']['indexOf'](_0x3c9880)?_0x3c9880+':\x20'+_0x52975c['name']:_0x52975c['name'];else _0x308307=_0x3c9880+':\x20'+(_0x52975c['createdAt']['toLocaleDateString'](_0x1681e1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x52975c['createdAt']['toLocaleTimeString'](_0x1681e1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ac4a4['saveRevision']({'name':_0x308307}),_0x2fbf00['isReady']=!0x0,_0x1681e1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x294b2f){super(_0x294b2f),this['_revisionViewer']=_0x294b2f['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4313d7=this['_revisionsRepository']['_revisions'],_0x559144=this['_createRevisionActions'](),_0x30d0de=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x4313d7,_0x559144,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',(_0x30f3fc,_0x8a549f)=>{_0x8a549f['revisionViews']['on']('add',(_0x4a3261,_0x40ab94)=>{_0x40ab94['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)),_0x30d0de['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x188055=this['_revisionsRepository']['getRevision'](0x0);if(_0x188055){const _0x4f7894=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x188055['id']);this['_revisionViewer']['compare'](_0x188055,_0x4f7894);}}['_handleRevisionSelected'](_0x1252ae,_0x34fdf4){const _0x322471=this['_revisionsRepository']['getRevision'](_0x34fdf4['id']),_0x433bc4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x322471['id']);this['_revisionViewer']['compare'](_0x322471,_0x433bc4);}['_handleRevisionSetName'](_0x4d93d5,_0x404597){this['_revisionsRepository']['getRevision'](_0x404597['id'])['setName'](_0x404597['name']);}['_handleDiffChange'](_0x5ede94,_0x16c1e1,_0x4b17fe){const _0x1be188=this['_revisionsRepository']['getRevisionsInDiff'](_0x4b17fe);_0x1be188['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1be188),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1be188[0x0]));}['_createRevisionActions'](){const _0x48e418=this['editor'],_0x323865=g['availableRevisionActions'],_0x1e5b47=_0x48e418['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1e5b47['length'])return _0x1e5b47['map'](_0x388a01=>{const _0x3158c9='string'==typeof _0x388a01?Object['assign']({},_0x323865[_0x388a01]):_0x388a01;return _0x3158c9['action']=_0x3158c9['action']['bind'](this,_0x48e418),_0x3158c9['isVisible']&&(_0x3158c9['isVisible']=_0x3158c9['isVisible']['bind'](this,_0x48e418)),_0x3158c9;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ea5f4},_0x1aa24d)=>{const _0xd826dd=_0x5ea5f4['get'](d),_0x3916c6=_0xd826dd['repository'];let _0x5d0d7e=_0xd826dd['diff']['newRevisionId'],_0x22e516=_0x1aa24d['id'];_0x3916c6['getIndex'](_0x5d0d7e)>_0x3916c6['getIndex'](_0x22e516)&&([_0x5d0d7e,_0x22e516]=[_0x22e516,_0x5d0d7e]),_0xd826dd['compare'](_0x5d0d7e,_0x22e516);},'isVisible':({plugins:_0x2d05f2},_0x30647d)=>{const _0x1a2975=_0x2d05f2['get'](d);return!(_0x1a2975['repository']['getRevisionsInDiff'](_0x1a2975['diff'])['length']>0x2)&&!_0x30647d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x13eb55,{id:_0x4b0790})=>{_0x13eb55['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4b0790);},'isVisible':({plugins:_0x35cd8c},_0x13c4b1)=>!!_0x35cd8c['get'](d)['repository']['getLaterVisibleRevision'](_0x13c4b1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x10c463},{id:_0x34a9bd,revisionNameView:_0x358c17})=>{const _0x4ec7c3=_0x10c463['get'](d),_0x54abdb=_0x4ec7c3['repository']['getEarlierVisibleRevision'](_0x34a9bd);_0x4ec7c3['compare'](_0x34a9bd,_0x54abdb),_0x358c17['focus'](),_0x358c17['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4f15bb,_0x447bd4){super(_0x4f15bb),this['_view']=_0x447bd4,this['_toolbarConfig']=ot(_0x4f15bb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2c095d){const _0x27954f=this['editor'],_0x3fd3f6=this['view'],_0x21ea4c=_0x27954f['editing']['view'],_0x3f33ca=_0x3fd3f6['editable'],_0x37328c=_0x21ea4c['document']['getRoot']();_0x3f33ca['name']=_0x37328c['rootName'],_0x3fd3f6['render']();const _0x5272ce=_0x3f33ca['element'];this['setEditableElement'](_0x3f33ca['name'],_0x5272ce),_0x3fd3f6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x21ea4c['attachDomRoot'](_0x5272ce),this['_elementReplacer']['replace'](_0x2c095d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1b047c=this['view'],_0x521119=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x521119['detachDomRoot'](_0x1b047c['editable']['name']),_0x1b047c['destroy']();}['_initToolbar'](){const _0x232f14=this['view'];_0x232f14['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x232f14['stickyPanel']['limiterElement']=_0x232f14['element'],_0x232f14['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x367346})=>_0x367346),_0x232f14['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x232f14['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x15979f,_0x2c20ed,_0x30be69={}){super(_0x15979f),this['stickyPanel']=new lt(_0x15979f),this['toolbar']=new nt(_0x15979f,{'shouldGroupWhenFull':_0x30be69['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x15979f,_0x2c20ed);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x42d5d0,_0x4b5645){super(_0x4b5645),this['sourceElement']=_0x42d5d0,this['model']['document']['createRoot']();const _0x11aa0b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x11aa0b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4f6c4e,_0x18afcb){const _0xa95651=new this(_0x4f6c4e,_0x18afcb);return await _0xa95651['initPlugins'](),await _0xa95651['ui']['init'](_0x4f6c4e),await _0xa95651['data']['init'](_0xa95651['config']['get']('initialData')||''),_0xa95651['fire']('ready'),_0xa95651;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x4191c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x324be5){function _0x4090fc(_0x4a5574){return _0x4a5574['map'](_0x4310e9=>String['fromCharCode'](_0x4310e9))['join']('');}super(_0x324be5),this['result']='end',_0x324be5[_0x4090fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4090fc([0x76,0x69,0x65,0x77])][_0x4090fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4090fc([0x61,0x75,0x74,0x6f]),_0x324be5[_0x4090fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4090fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4090fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4090fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4090fc([0x6f,0x6b])});}}class k extends _0x4191c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x40f489){if(super(_0x40f489),!this['editor']['config']['get']('revisionHistory'))throw new _0x133ad6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5cf561=>this['_showRevisionViewer']({..._0x5cf561,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x175c97=>this['_closeRevisionViewer'](_0x175c97)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2e5f10=>this['_restoreRevision'](_0x2e5f10)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x371196){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x371196;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3c9805){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3c9805);}['getRevision'](_0x45ab62){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x45ab62);}['getRevisions'](_0x5148d4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5148d4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1119a6=this['editor'],_0x92c3b3=_0x41570e(_0x1119a6,p),_0xae7bbf=_0x1119a6['plugins']['get']('RevisionTracker'),_0x5a93f7=_0x1119a6['plugins']['get']('Users')['users'];return _0x92c3b3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x92c3b3['lazyRoots'],(_0x92c3b3['plugins']['push'](bt,d,w,class extends _0x4191c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x2a9a19=this['editor']['plugins']['get']('Users');for(const _0x319670 of _0x5a93f7)_0x319670['isAnonymous']||_0x2a9a19['getUser'](_0x319670['id'])||_0x2a9a19['addUser'](_0x319670);const _0x7f212=_0xae7bbf['repository']['getRevisions']();let _0xb82483=null;const _0x13c217=this['editor']['plugins']['get']('RevisionViewer');_0x13c217['adapter']=_0xae7bbf['adapter'],_0x13c217['bind']('isEnabled')['to'](_0xae7bbf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1119a6,'isReadOnly',_0x3da970=>!_0x3da970);for(const _0xba7ee1 of _0x7f212){const _0x1dbed4=null===_0xba7ee1['creator'];if(_0x1dbed4&&_0xba7ee1['toVersion']===_0xba7ee1['fromVersion'])continue;const _0x38c9d5=_0xba7ee1['toJSON']();_0x13c217['addRevisionData'](_0x38c9d5,(_0x1a0858,_0x268255,_0x2311f3)=>{if(_0x1dbed4){if(_0xb82483)_0xb82483['_update'](_0x1a0858,_0x268255);else{if(!_0x268255){const _0x2db7b0=_0x2311f3['toJSON']();_0x2db7b0['id']=_0x54786b(),_0xae7bbf['saveRevision'](_0x2db7b0,_0x2311f3['toVersion'])['then'](_0x2a0148=>{_0xb82483=_0x2a0148;});}}}else _0xba7ee1['_update'](_0x1a0858,_0x268255);});}}},g),_0x92c3b3);}['_enhanceShowRevisionViewerCallback'](){const _0x241efa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5303b8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x43b677=this['editor']['plugins']['get']('Autosave');await _0x43b677['save']();}else await _0x5303b8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x37912a=this['editor']['plugins']['get']('Dialog');_0x37912a['isOpen']&&_0x37912a['hide']();}const _0x3cdc93=this['_getRevisionViewerEditorConfig']();return _0x241efa(_0x3cdc93)['then'](_0x44cc94=>{return(this['_viewerEditor']=_0x44cc94,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x44cc94;})['catch'](_0x561982=>(console['error'](_0x561982),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5d676f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5d676f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23ba85=this['editor']['plugins']['get']('Annotations');_0x23ba85['refreshVisibility'](),_0x23ba85['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4655d8){const _0x36029e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d623e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3d849e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3d849e,_0x4655d8)['then'](_0x2e4714=>(_0x4d623e['style']['display']='block',_0x36029e['style']['display']='none',_0x2e4714));}['_closeRevisionViewer'](_0x42b7a6){const _0xcd180d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xcd180d['style']['display']='',_0x42b7a6['destroy']();}async['_restoreRevision'](_0x272402){const _0x341190=this['editor'],_0x4d19f3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1612e7=_0x341190['plugins']['get']('RevisionTracker'),_0x2d11e2=_0x4d19f3['repository']['getRevision'](_0x272402);let _0x4739af,_0x156508,_0x26c344;try{_0x4739af=await _0x4d19f3['getRevisionData'](_0x2d11e2),_0x156508=await _0x4d19f3['getRevisionRootsAttributes'](_0x2d11e2);}catch(_0x5b139d){return void console['error'](_0x5b139d);}_0x341190['model']['change'](_0x2b3f1f=>{for(const _0x22250e of Array['from'](_0x341190['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2b3f1f['removeMarker'](_0x22250e);}),_0x4d19f3['isReady']=!0x1,_0x341190['model']['enqueueChange'](_0x360d07=>{_0x360d07['setSelection'](null),_0x360d07['removeSelectionAttribute'](_0x341190['model']['document']['selection']['getAttributeKeys']());const _0x533099=Object['keys'](_0x4739af);for(const _0x4ee580 of _0x341190['model']['document']['roots'])'$graveyard'!=_0x4ee580['rootName']&&_0x4ee580['isAttached']()&&!_0x533099['includes'](_0x4ee580['rootName'])&&_0x360d07['detachRoot'](_0x4ee580);for(const _0x325df8 of _0x533099){let _0x58fe26=_0x341190['model']['document']['getRoot'](_0x325df8);_0x58fe26&&_0x58fe26['isAttached']()||(_0x58fe26=_0x360d07['addRoot'](_0x325df8));const _0x4ad53e=_0x156508[_0x325df8],_0x37ef10=Object['keys'](_0x4ad53e),_0xc141d1=_0x4739af[_0x325df8];for(const _0xb7440c of _0x58fe26['getAttributeKeys']())_0x37ef10['includes'](_0xb7440c)||_0x360d07['removeAttribute'](_0xb7440c,_0x58fe26);for(const _0x529d0f of _0x37ef10)_0x360d07['setAttribute'](_0x529d0f,_0x156508[_0x325df8][_0x529d0f],_0x58fe26);_0x360d07['remove'](_0x360d07['createRangeIn'](_0x58fe26)),_0x360d07['insert'](_0x341190['data']['parse'](_0xc141d1,_0x58fe26),_0x58fe26,0x0);}});const _0x261895=m(_0x341190['locale'],'Restored');if(_0x2d11e2['name'])_0x26c344=-0x1==_0x2d11e2['name']['indexOf'](_0x261895)?_0x261895+':\x20'+_0x2d11e2['name']:_0x2d11e2['name'];else _0x26c344=_0x261895+':\x20'+(_0x2d11e2['createdAt']['toLocaleDateString'](_0x341190['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2d11e2['createdAt']['toLocaleTimeString'](_0x341190['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1612e7['saveRevision']({'name':_0x26c344}),_0x4d19f3['isReady']=!0x0,_0x341190['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|