@ckeditor/ckeditor5-revision-history 45.0.0-alpha.1 → 45.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x1af5d3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x504e98){super(),this['id']=_0x504e98['id']||_0x4339db(),this['creator']=_0x504e98['creator']||null,this['authors']=_0x504e98['authors']||[],this['diffData']=_0x504e98['diffData']||null,this['toVersion']=_0x504e98['toVersion']||0x0,this['fromVersion']=_0x504e98['fromVersion']||0x0,this['set']('name',_0x504e98['name']||''),this['set']('createdAt',_0x504e98['createdAt']||new Date()),this['set']('attributes',_0x504e98['attributes']||{});}['setName'](_0x330fd5){this['_update']({'name':_0x330fd5});}['setAttribute'](_0x2c900a,_0x4f1153){const _0x573a26=_0x5dbaa0(this['attributes']);_0xb13fb2(_0x573a26,_0x2c900a,_0x4f1153),this['_update']({'attributes':_0x573a26});}['removeAttribute'](_0x2a56cf){const _0x8f1ebe=_0x5dbaa0(this['attributes']);_0x36ccf3(_0x8f1ebe,_0x2a56cf),this['_update']({'attributes':_0x8f1ebe});}['_update'](_0x54df82,_0x4da34f=!0x1){let _0x4574a3=!0x1;const _0x3c03ba={'id':this['id']},_0x4f3de4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfe8f95 of _0x4f3de4){const _0x5f74bb=_0x54df82[_0xfe8f95];void 0x0!==_0x5f74bb&&_0x5f74bb!==this[_0xfe8f95]&&(this[_0xfe8f95]=_0x5f74bb,_0x3c03ba[_0xfe8f95]=_0x5f74bb,_0x4574a3=!0x0);}_0x4574a3&&(_0x3c03ba['authors']&&(_0x3c03ba['authorsIds']=_0x3c03ba['authors']['map'](_0x3527ac=>_0x3527ac['id']),delete _0x3c03ba['authors']),this['fire']('_update',_0x3c03ba,_0x4da34f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4a6086=>_0x4a6086['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x47ebf6{['_revisions'];static get['requires'](){return[_0x181a91];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xc5b4ac){super(_0xc5b4ac),this['_revisions']=new _0xe2334c();}['afterInit'](){!async function(_0x3593c3){const _0xe85ed3=_0x150e76([0x48,0x4e,0x4f,0x46,0x45,0x7a,0x34,0x33,0x61,0x68,0x67,0x74,0x6a,0x49,0x53,0x30,0x71,0x47,0x75,0x77,0x56,0x4d,0x63,0x31,0x69,0x6e,0x70,0x44,0x72,0x41,0x62,0x73,0x51,0x42,0x76,0x55,0x58,0x54,0x4c,0x66,0x4a,0x59,0x6f,0x6d,0x52,0x5a,0x79,0x65,0x36,0x64,0x4b,0x37,0x32,0x50,0x35,0x57,0x38,0x39,0x78,0x6b,0x6c,0x43]),_0x3ee1b2=0xeb829,_0x3ca11e=0x57ff0a18,_0x43a575=0x57f86948^_0x3ca11e,_0x7d4b0e=window[_0x150e76([0x44,0x61,0x74,0x65])][_0x150e76([0x6e,0x6f,0x77])](),_0x29506b=_0x3593c3[_0x150e76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x346143=new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3efb=>{_0x29506b[_0x150e76([0x6f,0x6e,0x63,0x65])](_0x150e76([0x72,0x65,0x61,0x64,0x79]),_0x3b3efb);}),_0x9b1e09={[_0x150e76([0x6b,0x74,0x79])]:_0x150e76([0x45,0x43]),[_0x150e76([0x75,0x73,0x65])]:_0x150e76([0x73,0x69,0x67]),[_0x150e76([0x63,0x72,0x76])]:_0x150e76([0x50,0x2d,0x32,0x35,0x36]),[_0x150e76([0x78])]:_0x150e76([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]),[_0x150e76([0x79])]:_0x150e76([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]),[_0x150e76([0x61,0x6c,0x67])]:_0x150e76([0x45,0x53,0x32,0x35,0x36])},_0x3a8fd9=_0x29506b[_0x150e76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x150e76([0x67,0x65,0x74])](_0x150e76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31a924(){let _0x1e7afc,_0x17b314=null,_0xf2913e=null;try{if(_0x3a8fd9==_0x150e76([0x47,0x50,0x4c]))return _0x150e76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e7afc=_0x4f637d(),!_0x1e7afc)return _0x150e76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e7afc[_0x150e76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf2913e=_0xadd64(_0x1e7afc[_0x150e76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e7afc[_0x150e76([0x6a,0x74,0x69])])),await _0x3a4a64()?_0x12f2ff()?_0x3640c4()?_0x150e76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c91aa()?(_0x1e7afc[_0x150e76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150e76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17b314=_0x91214e(_0x150e76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e7afc[_0x150e76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150e76([0x74,0x72,0x69,0x61,0x6c])&&(_0x17b314=_0x91214e(_0x150e76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1dc355()):_0x150e76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x150e76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x150e76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55f6a7){return _0x150e76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3640c4(){const _0x441ea6=[_0x150e76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x150e76([0x74,0x72,0x69,0x61,0x6c])][_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7afc[_0x150e76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d4b0e/0x3e8:0xe10*_0x43a575;return _0x1e7afc[_0x150e76([0x65,0x78,0x70])]<_0x441ea6;}function _0x12f2ff(){const _0x2f320a=_0x1e7afc[_0x150e76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2f320a)return!0x1;if(_0x2f320a[_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150e76([0x2a])))return!0x0;if(_0x2f320a[_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150e76([0x52,0x48])))return!0x0;if(_0x2f320a[_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150e76([0x52,0x52,0x48]))){if(_0x1993fb())return!0x0;if(_0x287c6b()||_0x124584())return!0x0;}return!0x1;}function _0x3c91aa(){const _0x1bafcf=_0x1e7afc[_0x150e76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bafcf||0x0==_0x1bafcf[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24d8a1}=new URL(window[_0x150e76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bafcf[_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d8a1))return!0x0;const _0x490f3c=_0x24d8a1[_0x150e76([0x73,0x70,0x6c,0x69,0x74])](_0x150e76([0x2e]));return _0x1bafcf[_0x150e76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49ef87=>_0x49ef87[_0x150e76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150e76([0x2a])))[_0x150e76([0x6d,0x61,0x70])](_0xbdb2ff=>_0xbdb2ff[_0x150e76([0x73,0x70,0x6c,0x69,0x74])](_0x150e76([0x2e])))[_0x150e76([0x73,0x6f,0x6d,0x65])](_0xd5298c=>_0x490f3c[_0x150e76([0x65,0x76,0x65,0x72,0x79])]((_0x3974f8,_0x1e0065)=>_0xd5298c[_0x1e0065]===_0x3974f8||_0xd5298c[_0x1e0065]===_0x150e76([0x2a])));}function _0x1dc355(){return _0x17b314&&_0xf2913e?new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f71ad,_0x218e4c)=>{_0x17b314[_0x150e76([0x74,0x68,0x65,0x6e])](_0x2f71ad,_0x218e4c),_0xf2913e[_0x150e76([0x74,0x68,0x65,0x6e])](_0x3ba16c=>{_0x3ba16c!=_0x150e76([0x56,0x61,0x6c,0x69,0x64])&&_0x2f71ad(_0x3ba16c);},_0x218e4c);}):_0x17b314||_0xf2913e||_0x150e76([0x56,0x61,0x6c,0x69,0x64]);}}function _0xadd64(_0x93480f,_0x3ef2c6){return new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde6cf3=>{if(_0x385e10())return _0xde6cf3(_0x150e76([0x56,0x61,0x6c,0x69,0x64]));_0x57adf6(),_0x29506b[_0x150e76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x150e76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41ded1=!0x1;const _0x54a4e6=_0x4339db();function _0x1af293(_0x3c5cf4){return!!_0x3c5cf4&&(typeof _0x3c5cf4===_0x150e76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c5cf4===_0x150e76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c5cf4[_0x150e76([0x74,0x68,0x65,0x6e])]===_0x150e76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c5cf4[_0x150e76([0x63,0x61,0x74,0x63,0x68])]===_0x150e76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54f5de(_0x4e91ad){_0x21b43c(_0x4e91ad)[_0x150e76([0x74,0x68,0x65,0x6e])](_0x245b02=>{if(!_0x245b02||_0x245b02[_0x150e76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x150e76([0x6f,0x6b]))return _0x150e76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ef557(_0x5b3af1(_0x54a4e6+_0x3ef2c6))!=_0x245b02[_0x150e76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x150e76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x150e76([0x56,0x61,0x6c,0x69,0x64]);})[_0x150e76([0x74,0x68,0x65,0x6e])](_0x44d04a=>(_0x2ed3b5(),_0x44d04a),()=>{const _0x445eaf=_0xc23afa();return null==_0x445eaf?(_0x2ed3b5(),_0x150e76([0x56,0x61,0x6c,0x69,0x64])):_0x150e76(_0x7d4b0e-_0x445eaf>(0x73f38e18^_0x3ca11e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x150e76([0x74,0x68,0x65,0x6e])](_0xde6cf3)[_0x150e76([0x63,0x61,0x74,0x63,0x68])](()=>{_0xde6cf3(_0x150e76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cf46f=0x57c9e498^_0x3ca11e;function _0x2ed3b5(){const _0x2eb515=_0x150e76([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ef557(_0x5b3af1(_0x93480f)),_0x2d4142=_0x1e960b(_0x2ef557(window[_0x150e76([0x4d,0x61,0x74,0x68])][_0x150e76([0x63,0x65,0x69,0x6c])](_0x7d4b0e/_0x3cf46f)));window[_0x150e76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150e76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eb515,_0x2d4142);}function _0xc23afa(){const _0x2578a7=_0x150e76([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ef557(_0x5b3af1(_0x93480f)),_0x25abc4=window[_0x150e76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150e76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2578a7);return _0x25abc4?window[_0x150e76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e960b(_0x25abc4),0x10)*_0x3cf46f:null;}function _0x21b43c(_0x4ada66){return new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23aca9,_0x324538)=>{_0x4ada66[_0x150e76([0x74,0x68,0x65,0x6e])](_0x23aca9,_0x324538),window[_0x150e76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x324538,0x57feded8^_0x3ca11e);});}}_0x29506b[_0x150e76([0x6f,0x6e])](_0x150e76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ea52,_0x35e561)=>{if(_0x35e561[0x0]!=_0x93480f)return _0xde6cf3(_0x150e76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35e561[0x1]={..._0x35e561[0x1],[_0x150e76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54a4e6};},{[_0x150e76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150e76([0x68,0x69,0x67,0x68])}),_0x29506b[_0x150e76([0x6f,0x6e])](_0x150e76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4962c5=>{_0x1af293(_0x4962c5[_0x150e76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41ded1=!0x0,_0x54f5de(_0x4962c5[_0x150e76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x150e76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150e76([0x6c,0x6f,0x77])}),_0x346143[_0x150e76([0x74,0x68,0x65,0x6e])](()=>{_0x41ded1||_0xde6cf3(_0x150e76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x385e10(){return _0x29506b[_0x150e76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150e76([0x76,0x69,0x65,0x77])][_0x150e76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x150e76([0x61,0x75,0x74,0x6f]);}function _0x57adf6(){_0x29506b[_0x150e76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150e76([0x76,0x69,0x65,0x77])][_0x150e76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x150e76([0x61,0x75,0x74,0x6f]);}}function _0x91214e(_0x566226){const _0x3e40f1=[new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41c432=>setTimeout(_0x41c432,0x57f634d4^_0x3ca11e)),_0x346143[_0x150e76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38fb6b=>{const _0x4facdd=0x57ff0a1f^_0x3ca11e,_0x4e0613=_0x3593c3[_0x150e76([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x25c78e(){_0x4e0613[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4facdd&&_0x38fb6b();}_0x25c78e(),_0x4e0613[_0x150e76([0x6f,0x6e])](_0x150e76([0x61,0x64,0x64]),_0x25c78e);})),new window[(_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1baca6=>{function _0x1b25fa(){for(const _0x2d0d49 in window)if(window[_0x150e76([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x150e76([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d0d49))&&window[_0x2d0d49]==_0x3ee1b2)return _0x1baca6();_0x29506b[_0x150e76([0x73,0x74,0x61,0x74,0x65])]!=_0x150e76([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x150e76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b25fa,0x57ff1990^_0x3ca11e);}_0xf2ddf9(_0x150e76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1b25fa();})];return window[_0x150e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x150e76([0x72,0x61,0x63,0x65])](_0x3e40f1)[_0x150e76([0x74,0x68,0x65,0x6e])](()=>_0x566226);}async function _0x550a7c(){if(await _0x346143,_0xf2ddf9(_0x150e76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x19104e=_0x3593c3[_0x150e76([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x529bc7=_0x3593c3[_0x150e76([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])](_0x19104e[_0x150e76([0x69,0x64])]),_0x1cb50e=_0x9a8dfb(_0x150e76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1cb50e[_0x150e76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x19104e['id'],_0x529bc7?_0x529bc7['id']:null,!0x0),_0x1cb50e[_0x150e76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x150e76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1cb50e[_0x150e76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1cb50e[_0x150e76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x46dfba,void(_0x1cb50e[_0x150e76([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x46dfba);}if(_0xf2ddf9(_0x150e76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17f894=_0x9a8dfb(_0x150e76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17f894[_0x150e76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x150e76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17f894[_0x150e76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17f894[_0x150e76([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x46dfba,_0x17f894[_0x150e76([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x46dfba;}_0x29506b[_0x150e76([0x6d,0x6f,0x64,0x65,0x6c])][_0x150e76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46dfba,_0x29506b[_0x150e76([0x6d,0x6f,0x64,0x65,0x6c])][_0x150e76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46dfba,_0x29506b[_0x150e76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x150e76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1993fb(){return _0xf2ddf9(_0x150e76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9a8dfb(_0x150e76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x150e76([0x73,0x74,0x61,0x74,0x65])]==_0x150e76([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287c6b(){return _0xf2ddf9(_0x150e76([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 _0x124584(){return _0xf2ddf9(_0x150e76([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17870b(_0xf8130b){const _0x282def=_0x31c28d();_0x29506b[_0x282def]=_0x150e76([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])+_0xf8130b,_0xf8130b[_0x150e76([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x150e76([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31c28d()]=_0x3ee1b2),_0xf8130b!=_0x150e76([0x56,0x61,0x6c,0x69,0x64])&&_0x550a7c();}function _0x31c28d(){const _0x5255e1=window[_0x150e76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x150e76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x150e76([0x6e,0x6f,0x77])]())[_0x150e76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x150e76([0x2e]),'');let _0x5d8fa2=_0x150e76([0x48]);for(let _0x467e53=0x0;_0x467e53<_0x5255e1[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x467e53+=0x2){let _0x368db5=window[_0x150e76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5255e1[_0x150e76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x467e53,_0x467e53+0x2));_0x368db5>=_0xe85ed3[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x368db5-=_0xe85ed3[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d8fa2+=_0xe85ed3[_0x368db5];}return _0x5d8fa2;}function _0x4f637d(){const _0x2709f9=_0x3a8fd9[_0x150e76([0x73,0x70,0x6c,0x69,0x74])](_0x150e76([0x2e]));if(0x3!=_0x2709f9[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1dcf79(_0x2709f9[0x1]);function _0x1dcf79(_0x2e9c17){const _0x14e73f=_0x4c6e97(_0x2e9c17);return _0x14e73f&&_0x357733()?_0x14e73f:null;function _0x357733(){const _0x3ae5c1=_0x14e73f[_0x150e76([0x6a,0x74,0x69])],_0x2e3e89=window[_0x150e76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae5c1[_0x150e76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae5c1[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5753f9={..._0x14e73f,[_0x150e76([0x6a,0x74,0x69])]:_0x3ae5c1[_0x150e76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae5c1[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5753f9[_0x150e76([0x76,0x63])],_0x5b3af1(_0x5753f9)==_0x2e3e89;}}}async function _0x3a4a64(){let _0x7d9910=!0x0;try{const _0x3978fb=_0x3a8fd9[_0x150e76([0x73,0x70,0x6c,0x69,0x74])](_0x150e76([0x2e])),[_0x250b83,_0x2eeae5,_0xd79b8]=_0x3978fb;return _0x93f3b3(_0x250b83),await _0x145da6(_0x250b83,_0x2eeae5,_0xd79b8),_0x7d9910;}catch(_0x35d4d8){return!0x1;}function _0x93f3b3(_0x29fd6d){const _0x15a4a2=_0x4c6e97(_0x29fd6d);_0x15a4a2&&_0x15a4a2[_0x150e76([0x61,0x6c,0x67])]==_0x150e76([0x45,0x53,0x32,0x35,0x36])||(_0x7d9910=!0x1);}async function _0x145da6(_0x54725c,_0x40a770,_0x1868fc){const _0x3569d4=window[_0x150e76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x150e76([0x66,0x72,0x6f,0x6d])](_0x2a17ff(_0x1868fc),_0x3e83f4=>_0x3e83f4[_0x150e76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a3b96=new window[(_0x150e76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x150e76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54725c+_0x150e76([0x2e])+_0x40a770),_0x4665e0=window[_0x150e76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x150e76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4665e0)return;const _0x221719=await _0x4665e0[_0x150e76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x150e76([0x6a,0x77,0x6b]),_0x9b1e09,{[_0x150e76([0x6e,0x61,0x6d,0x65])]:_0x150e76([0x45,0x43,0x44,0x53,0x41]),[_0x150e76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x150e76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x150e76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4665e0[_0x150e76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x150e76([0x6e,0x61,0x6d,0x65])]:_0x150e76([0x45,0x43,0x44,0x53,0x41]),[_0x150e76([0x68,0x61,0x73,0x68])]:{[_0x150e76([0x6e,0x61,0x6d,0x65])]:_0x150e76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x221719,_0x3569d4,_0x5a3b96)||(_0x7d9910=!0x1);}}function _0x4c6e97(_0x34ef72){return _0x34ef72[_0x150e76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x150e76([0x65,0x79]))?JSON[_0x150e76([0x70,0x61,0x72,0x73,0x65])](_0x2a17ff(_0x34ef72)):null;}function _0x2a17ff(_0x386848){return window[_0x150e76([0x61,0x74,0x6f,0x62])](_0x386848[_0x150e76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x150e76([0x2b]))[_0x150e76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x150e76([0x2f])));}function _0x5b3af1(_0xedb4f3){let _0x6d2ac6=0x1505;function _0x1892ce(_0x3824a7){for(let _0x1003eb=0x0;_0x1003eb<_0x3824a7[_0x150e76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1003eb++){const _0x128da=_0x3824a7[_0x150e76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1003eb);_0x6d2ac6=(_0x6d2ac6<<0x5)+_0x6d2ac6+_0x128da,_0x6d2ac6&=_0x6d2ac6;}}function _0x3dd55e(_0x3a8a02){Array[_0x150e76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a8a02)?_0x3a8a02[_0x150e76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dd55e):_0x3a8a02&&typeof _0x3a8a02==_0x150e76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x150e76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a8a02)[_0x150e76([0x73,0x6f,0x72,0x74])]()[_0x150e76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c3643,_0x40d2ad])=>{_0x1892ce(_0x2c3643),_0x3dd55e(_0x40d2ad);}):_0x1892ce(window[_0x150e76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a8a02));}return _0x3dd55e(_0xedb4f3),_0x6d2ac6>>>0x0;}function _0x2ef557(_0x51841e){return _0x51841e[_0x150e76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x150e76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x150e76([0x30]));}function _0x1e960b(_0x2d287e){return _0x2d287e[_0x150e76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x150e76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x150e76([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2ddf9(_0x538e0f){return _0x29506b[_0x150e76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x150e76([0x68,0x61,0x73])](_0x538e0f);}function _0x9a8dfb(_0x9029da){return _0x29506b[_0x150e76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x150e76([0x67,0x65,0x74])](_0x9029da);}function _0x46dfba(){}function _0x150e76(_0x1fb3cb){return _0x1fb3cb['map'](_0x295d0e=>String['fromCharCode'](_0x295d0e))['join']('');}_0x17870b(await _0x31a924());}(this);}['createRevision'](_0x4a5883){const _0x3233e4=this['editor']['plugins']['get']('Users');return new h({'id':_0x4a5883['id'],'name':_0x4a5883['name'],'creator':_0x4a5883['creatorId']?_0x3233e4['getUser'](_0x4a5883['creatorId']):null,'diffData':_0x4a5883['diffData']||_0x4a5883['data'],'authors':_0x4a5883['authorsIds']['map'](_0x34c791=>_0x3233e4['getUser'](_0x34c791)),'createdAt':new Date(_0x4a5883['createdAt']),'attributes':_0x4a5883['attributes'],'fromVersion':_0x4a5883['fromVersion'],'toVersion':_0x4a5883['toVersion']});}['addRevision'](_0x67f873,_0x541c52=0x0){this['_revisions']['add'](_0x67f873,_0x541c52);}['getRevision'](_0x518ff0){return this['_revisions']['get'](_0x518ff0);}['getRevisions'](_0x28307f={'toJSON':!0x1}){const _0x460240=Array['from'](this['_revisions']);return _0x460240['reverse'](),_0x28307f['toJSON']?_0x460240['map'](_0x1398b7=>_0x1398b7['toJSON']()):_0x460240;}['getIndex'](_0xc94654){return this['_revisions']['getIndex'](_0xc94654);}['getEarlierVisibleRevision'](_0x45869d){const [,_0x94cabe]=this['getRevisionsIterator'](_0x45869d,{'direction':'earlier'});return _0x94cabe;}['getLaterVisibleRevision'](_0x4f8219){const [,_0x2664ca]=this['getRevisionsIterator'](_0x4f8219,{'direction':'later'});return _0x2664ca;}['getRevisionsInDiff'](_0x3ea62a){const _0x54966e=[];for(const _0x2b2916 of this['getRevisionsIterator'](_0x3ea62a['newRevisionId']))if(_0x54966e['push'](_0x2b2916),_0x2b2916['id']===_0x3ea62a['oldRevisionId'])break;return _0x54966e;}*['getRevisionsIterator'](_0xb0f20a,{direction:_0x5b93ec='earlier',filter:_0x3f8f20=()=>!0x0}={}){const _0x286634='earlier'===_0x5b93ec?0x1:-0x1;let _0x4b4436=this['_revisions']['get'](_0xb0f20a),_0x166281=this['getIndex'](_0x4b4436);for(yield _0x4b4436;_0x4b4436;){if(_0x166281+=_0x286634,_0x4b4436=this['getRevision'](_0x166281),!_0x4b4436)return;_0x3f8f20(_0x4b4436)&&(yield _0x4b4436);}}}class V extends _0x47ebf6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5cb939,'c'],[_0x1e96d3,'a'],[_0xb2d956,'e'],[_0x4bacf8,'r'],[_0x457f5e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5cb939],['a',_0x1e96d3],['e',_0xb2d956],['r',_0x4bacf8],['u',_0x457f5e]]);async['loadRevisionData'](_0x1030b0,_0x591318){if(_0x1030b0['diffData']||!_0x591318)return;const _0x6cde46=this['editor']['config']['get']('collaboration.channelId'),_0x15b253=await _0x591318['getRevision']({'channelId':_0x6cde46,'revisionId':_0x1030b0['id']});_0x1030b0['diffData']=_0x15b253['diffData'];}['getRevisionDocumentData'](_0x3c4efa){const _0x391740={};for(const _0x21b2d8 in _0x3c4efa['diffData']){if(_0x3c4efa['diffData'][_0x21b2d8]['attachChange']&&!_0x3c4efa['diffData'][_0x21b2d8]['attachChange']['isAttached'])continue;const _0xe512d7=this['_removeRevisionMarkers'](JSON['parse'](_0x3c4efa['diffData'][_0x21b2d8]['insertions'])),_0x42c456=this['editor']['editing']['view']['document'],_0x22abe5=new _0x4915e2(_0x42c456,_0xe512d7['map'](_0x4ae673=>this['_getViewFromDiffObj'](_0x4ae673,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x391740[_0x21b2d8]=this['editor']['data']['processor']['toData'](_0x22abe5),this['editor']['data']['processor']['useFillerType']('default');}return _0x391740;}['getRevisionRootsAttributes'](_0x2df786){const _0x4b1852={};for(const _0x2eb5f8 in _0x2df786['diffData'])_0x2df786['diffData'][_0x2eb5f8]['attachChange']&&!_0x2df786['diffData'][_0x2eb5f8]['attachChange']['isAttached']||(_0x4b1852[_0x2eb5f8]=_0x2df786['diffData'][_0x2eb5f8]['attributesAfter']||{});return _0x4b1852;}['_getTypeCharForViewElement'](_0x119366){return this['_viewClassToTypeChar']['get'](_0x119366['constructor']);}['_getViewFromDiffObj'](_0x48aaad,_0x2e13e3){const _0x5a5eaa=this['editor']['editing']['view']['document'];if('string'==typeof _0x48aaad)return new _0x3184b0(_0x5a5eaa,_0x48aaad);{let _0x4fe9ce,_0x1784dd;_0x1784dd='u'==_0x48aaad['type']||'r'==_0x48aaad['type']?[]:_0x48aaad['children']['map'](_0xa1a1f3=>this['_getViewFromDiffObj'](_0xa1a1f3,_0x2e13e3));const _0x25a75f=this['_typeCharToViewClass']['get'](_0x48aaad['type'])||_0x33a722,_0x5166d2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4fe9ce=new _0x25a75f(_0x5a5eaa,_0x48aaad['name'],_0x48aaad['attributes'],_0x1784dd),'u'==_0x48aaad['type']){const _0x1c9c7c=_0x48aaad['children'][0x0];if(_0x4fe9ce['render']=function(_0x5c85e6){const _0x54bde5=_0x5c85e6['createElement']('div');return _0x54bde5['innerHTML']=_0x1c9c7c,_0x54bde5['childNodes'][0x0];},_0x2e13e3){const _0x118e72=new _0x4915e2(_0x5a5eaa);_0x118e72['_appendChild'](_0x4fe9ce);const _0x575eff=Array['from'](_0x5166d2['viewChildrenToDom'](_0x118e72,{'bind':!0x1})),_0xa37553=_0x5166d2['domDocument']['createElement']('div');_0xa37553['append'](..._0x575eff),_0x4fe9ce=Array['from'](_0x5166d2['domChildrenToView'](_0xa37553))[0x0];}}else{if('r'==_0x48aaad['type']){const _0x212809=_0x48aaad['children'][0x0];if(_0x4fe9ce['render']=function(_0x2da914){_0x2da914['innerHTML']=_0x212809;},_0x2e13e3){const _0x13a93d=new _0x4915e2(_0x5a5eaa);_0x13a93d['_appendChild'](_0x4fe9ce);const _0x33fb7e=Array['from'](_0x5166d2['viewChildrenToDom'](_0x13a93d,{'bind':!0x1})),_0x410a78=_0x5166d2['domDocument']['createElement']('div');_0x410a78['append'](..._0x33fb7e);const _0x51b6d0=Array['from'](_0x5166d2['domChildrenToView'](_0x410a78));_0x51b6d0['length']>0x1?_0x4fe9ce['_appendChild'](_0x51b6d0):_0x4fe9ce=_0x51b6d0[0x0];}}}if(_0x48aaad['customProperties']){for(const [_0x36be6e,_0xffc816]of _0x48aaad['customProperties'])_0x4fe9ce['_setCustomProperty'](_0x36be6e,_0xffc816);}const _0x184f67=_0x48aaad['fillerOffset']||null;return _0x4fe9ce['getFillerOffset']=()=>_0x184f67,_0x4fe9ce;}}['_makeModelFromViewString'](_0x544743){const _0x5a30e1=JSON['parse'](_0x544743),_0x51b57d=this['editor']['editing']['view']['document'],_0x3caf83=new _0x4915e2(_0x51b57d,_0x5a30e1['map'](_0x558727=>this['_getViewFromDiffObj'](_0x558727,!0x0)));return this['editor']['data']['toModel'](_0x3caf83);}['_removeRevisionMarkers'](_0x1096d5){return(_0x1096d5=_0x1096d5['filter'](_0x1d3b51=>!_0x1d3b51['name']||'revision-start'!==_0x1d3b51['name']&&'revision-end'!==_0x1d3b51['name']))['forEach'](_0x40023a=>{'string'!=typeof _0x40023a&&(_0x40023a['children']=this['_removeRevisionMarkers'](_0x40023a['children']),_0x40023a['attributes']=_0x40023a['attributes']['filter'](_0x5f4cda=>!_0x5f4cda[0x0]['startsWith']('data-revision-')));}),_0x1096d5;}}function g(_0x26f839,_0x16e6e8,_0x35661e){const t=_0x26f839['t'];switch(_0x16e6e8){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'},_0x35661e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x35661e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x47ebf6{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x181a91,I,V,_0x5a98bd];}constructor(_0x477d53){super(_0x477d53),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3ed42f=_0x4339db();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3ed42f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4309c7=this['repository']['getRevision'](0x0),_0x3fece0=_0x4309c7&&null===_0x4309c7['creator']?_0x4309c7:null;if(this['_continueCurrentRevision']=!!_0x3fece0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x984671=this['_source']['getCurrentRevisionId'](),_0x5c5222=this['repository']['getRevision'](_0x984671);if(_0x5c5222)this['_startingVersion']=_0x5c5222['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x69d069=this['_source']['history']['_operations']['find'](_0x44d89a=>!_0x44d89a['_isInit']),_0x8d0145=_0x69d069?_0x69d069['baseVersion']:this['_source']['history']['version'];_0x4309c7?(_0x4309c7['toVersion']<_0x8d0145&&_0x4309c7['_update']({'toVersion':_0x8d0145}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3fece0['id'],this['_startingVersion']=_0x3fece0['fromVersion']):(this['_startingVersion']=_0x4309c7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x8d0145,this['_continueCurrentRevision']=!0x1);}}else _0x3fece0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3fece0['toVersion'],this['editor']['model']['document']['history']['version']),_0x3fece0['fromVersion']===_0x3fece0['toVersion']?(0x0!==_0x3fece0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fece0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fece0['id'],this['_startingVersion']=_0x3fece0['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',_0x513a96=>!_0x513a96),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42a3e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4538d9;for(const _0x4f9e69 in _0x42a3e8){const _0x161883=_0x4f9e69,_0x5a5cb3=_0x42a3e8[_0x161883];if('revisionHistoryLicenseKeyValid'==_0x5a5cb3||'revisionHistoryLicenseKeyInvalid'==_0x5a5cb3||'revisionHistoryLicenseKeyExpired'==_0x5a5cb3||'revisionHistoryLicenseKeyDomainLimit'==_0x5a5cb3||'revisionHistoryLicenseKeyNotAllowed'==_0x5a5cb3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a5cb3||'revisionHistoryLicenseKeyTrialLimit'==_0x5a5cb3||'revisionHistoryLicenseKeyUsageLimit'==_0x5a5cb3){delete _0x42a3e8[_0x161883],_0x4538d9=_0x5a5cb3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4538d9&&_0x42a3e8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4538d9&&_0x42a3e8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4538d9&&_0x42a3e8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4538d9&&_0x42a3e8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4538d9&&_0x42a3e8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4538d9&&_0x42a3e8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4538d9&&_0x42a3e8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1e1830=this['repository']['getRevision'](0x0),_0x26e98e=await this['getRevisionDocumentData'](_0x1e1830),_0x45f8d8=await this['getRevisionRootsAttributes'](_0x1e1830);this['_replaceEditorDataWithRevisionData'](_0x26e98e,_0x45f8d8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x24b492){this['_source']=_0x24b492;}async['update'](){const _0x2c97d0=await this['_source']['getLatestVersion']();if(_0x2c97d0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x591f82=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2c97d0});_0x591f82['authors']=_0x591f82['authorsIds']['map'](_0x510393=>this['editor']['plugins']['get']('Users')['getUser'](_0x510393)),this['currentRevision']['_update'](_0x591f82);}}async['saveRevision'](_0x5eeab2={},_0x32afec=null){const _0x4f43b6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x32afec>this['currentRevision']['toVersion']&&(_0x32afec=null),null===_0x32afec&&(_0x32afec=await this['_source']['getLatestVersion']());const _0x399282=this['_getFromVersion'](_0x32afec),_0x459198=this['buildRevisionData']({'from':_0x399282,'to':_0x32afec});if(this['currentRevision']['toVersion']<_0x32afec){const _0x1bb993=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x32afec,'to':_0x32afec});_0x1bb993['authors']=[],_0x1bb993['authorsIds']=[],_0x1bb993['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1bb993,!0x0),delete _0x1bb993['authors'],_0x4f43b6['push'](_0x1bb993);}_0x5eeab2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eeab2['name']=_0x5eeab2['name']||null,_0x5eeab2['id']=_0x5eeab2['id']||_0x4339db(),_0x5eeab2={..._0x5eeab2,..._0x459198};const _0x4954cf=this['addRevisionData'](_0x5eeab2);_0x4f43b6['push'](_0x5eeab2);const _0x196455=this['repository']['getIndex'](_0x4954cf);if(0x0!==_0x196455){const _0x12246d=this['repository']['getRevision'](_0x196455-0x1);if(_0x12246d['fromVersion']!==_0x32afec){const _0x274ed5=this['_revisionDataBuilder']['getData'](_0x32afec,_0x12246d['toVersion']),_0xaea6d1={'id':_0x12246d['id'],'diffData':_0x274ed5['diffData'],'authorsIds':_0x274ed5['authorsIds'],'authors':_0x274ed5['authorsIds']['map'](_0xe200de=>this['editor']['plugins']['get']('Users')['getUser'](_0xe200de)),'fromVersion':_0x32afec};_0x12246d===this['currentRevision']&&(_0xaea6d1['createdAt']=new Date(_0x5eeab2['createdAt']['getTime']()+0xa)),_0x12246d['_update'](_0xaea6d1,!0x0),delete _0xaea6d1['authors'],_0x4f43b6['push'](_0xaea6d1);}}if(this['adapter']){for(const _0x5aa62c of _0x4f43b6)this['_bufferUpdate'](_0x5aa62c['id'],_0x5aa62c,!0x0);this['sendBufferedUpdates']();}return _0x4954cf;}['addRevisionData'](_0x4a9673){const _0x560fd2=this['repository']['createRevision'](_0x4a9673);return this['adapter']&&_0x560fd2['on']('_update',(_0x4cc883,_0x4c0376,_0x40c8cc)=>{_0x40c8cc||(this['_bufferUpdate'](_0x4c0376['id'],_0x4c0376,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x560fd2,this['_findInsertionIndex'](_0x560fd2)),_0x560fd2;}async['getRevisionDocumentData'](_0x1591a8){return await this['_utils']['loadRevisionData'](_0x1591a8,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1591a8);}async['getRevisionRootsAttributes'](_0x505373){return await this['_utils']['loadRevisionData'](_0x505373,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x505373);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x260b16=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x24e622=0x0;_0x24e622<_0x260b16['length'];_0x24e622++){const _0x168010=_0x260b16[_0x24e622];let _0x3551f6=!0x1;for(const _0x1bcc5d of Object['keys'](_0x168010))void 0x0===_0x168010[_0x1bcc5d]?delete _0x168010[_0x1bcc5d]:'id'!==_0x1bcc5d&&(_0x3551f6=!0x0);_0x3551f6||(_0x260b16[_0x24e622]=null);}if(_0x260b16=_0x260b16['filter'](_0x38c01b=>null!==_0x38c01b),!_0x260b16['length'])return;for(let _0x5bc4b6=0x0;_0x5bc4b6<_0x260b16['length'];_0x5bc4b6++){const _0x2d52ef=_0x260b16[_0x5bc4b6];void 0x0!==_0x2d52ef['fromVersion']&&void 0x0===_0x2d52ef['toVersion']&&(_0x2d52ef['toVersion']=this['repository']['getRevision'](_0x2d52ef['id'])['toVersion']),void 0x0!==_0x2d52ef['toVersion']&&void 0x0===_0x2d52ef['fromVersion']&&(_0x2d52ef['fromVersion']=this['repository']['getRevision'](_0x2d52ef['id'])['fromVersion']);}const _0x2c4b89=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x260b16,_0x2c4b89)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2e653c=>{if(_0x2e653c){for(const _0x4cd917 of _0x2e653c)this['setRevisionData']({'id':_0x4cd917['id'],'createdAt':_0x4cd917['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3448b1=null,from:_0x280bec=null,to:_0x1927a5=null}){_0x280bec=null!==_0x280bec?_0x280bec:_0x3448b1['fromVersion'],_0x1927a5=null!==_0x1927a5?_0x1927a5:_0x3448b1['toVersion'];const _0x3763da=this['_revisionDataBuilder']['getData'](_0x280bec,_0x1927a5),_0x2a1337={'diffData':_0x3763da['diffData'],'authorsIds':_0x3763da['authorsIds'],'fromVersion':_0x280bec,'toVersion':_0x1927a5};if(!_0x3448b1||_0x1927a5!==_0x3448b1['toVersion']){const _0x26002d=_0x1927a5-0x1,_0x331c8a=this['_source']['history']['getOperation'](_0x26002d);_0x2a1337['createdAt']=_0x331c8a&&_0x331c8a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x280bec===this['_loadedStateData']['fromVersion']){for(const _0xedae57 of this['_loadedStateData']['authors'])_0x2a1337['authorsIds']['includes'](_0xedae57['id'])||_0x2a1337['authorsIds']['push'](_0xedae57['id']);}return _0x2a1337;}['_bufferUpdate'](_0xb4d80b,_0x3de8c6,_0xfdf1bf){if(this['_bufferedUpdates']['has'](_0xb4d80b)){const _0x1a7b86=this['_bufferedUpdates']['get'](_0xb4d80b);_0x3de8c6=_0xfdf1bf?{..._0x1a7b86,..._0x3de8c6}:{..._0x3de8c6,..._0x1a7b86};}this['_bufferedUpdates']['set'](_0xb4d80b,_0x3de8c6);}['setRevisionData'](_0x20d7ba){const _0x19be7e=this['repository']['getRevision'](_0x20d7ba['id']);if(_0x20d7ba['createdAt']&&(_0x20d7ba['createdAt']=new Date(_0x20d7ba['createdAt'])),_0x20d7ba['authorsIds']){const _0x503760=this['editor']['plugins']['get']('Users');_0x20d7ba['authors']=_0x20d7ba['authorsIds']['map'](_0x29f026=>_0x503760['getUser'](_0x29f026));}_0x19be7e['_update'](_0x20d7ba,!0x0);}['_createInitialRevision'](_0x3408b9){const _0x42ea18=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x42ea18)this['_initialRevisionId']=_0x42ea18['id'];else{const _0x5c2334=!this['editor']['model']['document']['roots']['find'](_0x1f72fa=>this['editor']['model']['hasContent'](_0x1f72fa)),_0x466d20=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b0e8a=g(this['editor']['locale'],_0x5c2334?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3408b9,'to':_0x3408b9,'id':this['_initialRevisionId'],'name':_0x5b0e8a,'creatorId':_0x466d20});}}['_createCurrentRevision'](_0x53c344){const _0x1c1000=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1c1000),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x53c344,'to':_0x53c344,'id':_0x1c1000,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x127da2,_0x53ef63){let _0x4c7ec1=this['editor']['config']['get']('initialData'),_0x2d2a46=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4c7ec1){_0x4c7ec1={};for(const _0x29c681 of this['editor']['model']['document']['getRootNames']())_0x4c7ec1[_0x29c681]='';}if('string'==typeof _0x4c7ec1&&(_0x4c7ec1={'main':_0x4c7ec1}),void 0x0===_0x2d2a46){_0x2d2a46={};for(const _0x4b51c8 of this['editor']['model']['document']['getRootNames']())_0x2d2a46[_0x4b51c8]={};}let _0xc01ece=!0x1;const _0x29b31a=Object['keys'](_0x4c7ec1),_0x58f37c=Object['keys'](_0x127da2);for(const _0x2b3a48 of _0x29b31a){if(_0x4c7ec1[_0x2b3a48]!==_0x127da2[_0x2b3a48]&&''!==_0x4c7ec1[_0x2b3a48]['trim']()){_0xc01ece=!0x0;break;}if(!_0xe19125(_0x2d2a46[_0x2b3a48],_0x53ef63[_0x2b3a48])&&Object['keys'](_0x2d2a46[_0x2b3a48])['length']>0x0){_0xc01ece=!0x0;break;}}_0xc01ece||(_0xc01ece=_0x58f37c['some'](_0x24231a=>!this['editor']['model']['document']['getRoot'](_0x24231a))),_0xc01ece&&_0x2c9793('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4c7ec1,'editorRootsAttributes':_0x2d2a46,'revisionData':_0x127da2,'revisionRootsAttributes':_0x53ef63}),this['editor']['config']['set']('initialData',_0x127da2),this['editor']['config']['set']('rootsAttributes',_0x53ef63);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1061b8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1061b8['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4bc774){const _0x1123c=this['repository']['getRevisions']();_0x1123c['reverse']();let _0x222e52=0x0;for(;_0x222e52<_0x1123c['length'];){const _0x21c8a9=_0x1123c[_0x222e52];if(_0x21c8a9===this['currentRevision']){_0x222e52++;continue;}if(_0x21c8a9['id']===this['_initialRevisionId'])break;const _0x1d55bf=_0x4bc774['toVersion']-_0x21c8a9['toVersion']||_0x4bc774['fromVersion']-_0x21c8a9['fromVersion'];if(_0x1d55bf>0x0)break;if(_0x1d55bf<0x0)_0x222e52++;else{if(!_0x4bc774['creator']&&_0x21c8a9['creator'])break;if(_0x21c8a9['creator']||!_0x4bc774['creator']){if(_0x4bc774['createdAt']>_0x21c8a9['createdAt'])break;_0x222e52++;}else _0x222e52++;}}return _0x222e52;}['_getFromVersion'](_0x4accfb){const _0x5419e9=this['repository']['getRevisions']();_0x5419e9['reverse'](),_0x5419e9['shift']();const _0x3ec1bc=_0x5419e9['find'](_0x292c8a=>_0x292c8a['toVersion']<=_0x4accfb)['toVersion'];return _0x3ec1bc<this['_startingVersion']?this['_startingVersion']:_0x3ec1bc;}['_makeRevision']({name:_0x55265d,from:_0x3f03fb,to:_0x2c151e,creatorId:_0x8ee008,id:_0x30a210}){const _0x31eb71=this['buildRevisionData']({'from':_0x3f03fb,'to':_0x2c151e});_0x31eb71['name']=_0x55265d,_0x31eb71['creatorId']=_0x8ee008,_0x31eb71['id']=_0x30a210;const _0x448a8f=this['addRevisionData'](_0x31eb71);return this['adapter']&&this['_bufferUpdate'](_0x31eb71['id'],_0x31eb71,!0x0),_0x448a8f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x26110f){this['editor']=_0x26110f,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'](_0x6da20c){this['source']=_0x6da20c;const _0x635891=new Map(),_0x3cbf46=new Map(),_0x194cb3=this['editor']['model']['document']['roots']['map'](_0x1aad52=>_0x1aad52['rootName']);for(const _0x426239 of _0x194cb3){const _0x3d0f98=this['editor']['model']['document']['getRoot'](_0x426239),_0xdeb1e6=N(_0x3d0f98);_0x635891['set'](_0x426239,_0xdeb1e6),_0x3cbf46['set'](_0x426239,Object['fromEntries'](_0x3d0f98['getAttributes']()));}const _0x18cdef=Array['from'](this['editor']['model']['markers'])['map'](_0x57e5c6=>[_0x57e5c6['name'],_0x57e5c6['getRange']()]),_0x458b59=this['source']['version'];this['_saveMetaData'](_0x458b59,_0x635891,_0x18cdef,_0x3cbf46),this['_startingRevisionId']=this['_revisionId'];const _0x29b84e=new Map(),_0x4d52eb=new Map();for(const _0xc0315a of _0x194cb3){const _0x230ad5=P(_0xc0315a);_0x29b84e['set'](_0xc0315a,_0x230ad5),_0x4d52eb['set'](_0xc0315a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29b84e,[],_0x4d52eb);}['getData'](_0x25adfd,_0x4e8b4a){if(this['_lastFrom']===_0x25adfd&&this['_lastTo']<=_0x4e8b4a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4e8b4a,!0x0);else{if(!this['_savedMetaData']['has'](_0x25adfd)){const _0x413131=this['_getPreviousFrom'](_0x25adfd);this['_calculateMetaData'](_0x413131,_0x25adfd,!0x1);}this['_calculateMetaData'](_0x25adfd,_0x4e8b4a,!0x0);}return this['_lastFrom']=_0x25adfd,this['_lastTo']=_0x4e8b4a,this['_getState']();}['loadState'](_0xf6ef69){const _0x1d56d9=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xf6ef69['fromVersion'],this['_lastTo']=_0xf6ef69['toVersion'];for(const _0xf88203 in _0xf6ef69['diffData']){const _0x5a9c09=_0xf6ef69['diffData'][_0xf88203]['attachChange'],_0x22b9e7=_0x5dbaa0(_0xf6ef69['diffData'][_0xf88203]['attributesBefore'])||{},_0x125ec4=_0x1d56d9['_makeModelFromViewString'](_0xf6ef69['diffData'][_0xf88203]['deletions']);_0x125ec4['rootName']=_0xf88203,_0x125ec4['_isAttached']=!_0x5a9c09||!_0x5a9c09['isAttached'],_0x125ec4['isAttached']=()=>_0x125ec4['_isAttached'],this['_baseRoots']['set'](_0xf88203,_0x125ec4),this['_baseRootsAttributes']['set'](_0xf88203,_0x22b9e7),_0x5a9c09&&this['_touchedRoots']['set'](_0xf88203,_0x5a9c09);const _0xb83c3c=this['_makeIdsRoot'](_0x125ec4);this['_baseIdsRoots']['set'](_0xf88203,_0xb83c3c);for(const [_0x3baafd,_0x4a935d]of _0x125ec4['markers']){if(!_0x3baafd['startsWith']('revision:'))continue;const _0x2bb4c9=_0x3baafd['split'](':')[0x2];for(const _0x14f94e of _0x4a935d['getWalker']({'singleCharacters':!0x0})){const _0x27dde8=this['_getVidAttributeName'](_0x14f94e),_0x1f5af7='elementEnd'==_0x14f94e['type']?_0x14f94e['previousPosition']['path']['slice'](0x0,-0x1):_0x14f94e['previousPosition']['path'],_0xd5a786=_0xb83c3c['getNodeByPath'](_0x1f5af7)['getAttribute'](_0x27dde8);this['_touched']['set'](_0xd5a786,{'userId':_0x2bb4c9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x509959=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xa4599=>!this['_touched']['has'](_0xa4599));let _0xb82caa=0x0;const _0x15bc3d=new Map();for(const _0x5462d6 in _0xf6ef69['diffData']){const _0x48de94=_0xf6ef69['diffData'][_0x5462d6]['attachChange'],_0x2dc17d=_0x5dbaa0(_0xf6ef69['diffData'][_0x5462d6]['attributesAfter'])||{},_0x3ca1da=_0x1d56d9['_makeModelFromViewString'](_0xf6ef69['diffData'][_0x5462d6]['insertions']);_0x3ca1da['rootName']=_0x5462d6,_0x3ca1da['_isAttached']=!_0x48de94||_0x48de94['isAttached'],_0x3ca1da['isAttached']=()=>_0x3ca1da['_isAttached'],this['_diffRoots']['set'](_0x5462d6,_0x3ca1da),this['_diffRootsAttributes']['set'](_0x5462d6,_0x2dc17d);const _0x71677f=this['_makeIdsRoot'](_0x3ca1da,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5462d6,_0x71677f),_0x15bc3d['set'](_0x5462d6,_0x3ca1da['isAttached']()?_0x2dc17d:{});for(const [_0x255d0c,_0x9f1f50]of _0x3ca1da['markers']){if(!_0x255d0c['startsWith']('revision:'))continue;const _0x2e7f2e=_0x255d0c['split'](':')[0x2];for(const _0x5cdd97 of _0x9f1f50['getWalker']({'singleCharacters':!0x0})){const _0x5b50a9=this['_getVidAttributeName'](_0x5cdd97),_0x100173=this['_revisionId']++,_0x2747b4='elementEnd'==_0x5cdd97['type']?_0x5cdd97['previousPosition']['path']['slice'](0x0,-0x1):_0x5cdd97['previousPosition']['path'];_0x71677f['getNodeByPath'](_0x2747b4)['_setAttribute'](_0x5b50a9,_0x100173),this['_touched']['set'](_0x100173,{'userId':_0x2e7f2e});}}for(const _0x1bd007 of this['editor']['model']['createRangeIn'](_0x3ca1da)['getWalker']({'singleCharacters':!0x0})){const _0x5239bb=this['_getVidAttributeName'](_0x1bd007),_0x4d211b='elementEnd'==_0x1bd007['type']?_0x1bd007['previousPosition']['path']['slice'](0x0,-0x1):_0x1bd007['previousPosition']['path'],_0x3a0745=_0x71677f['getNodeByPath'](_0x4d211b);_0x3a0745['getAttribute'](_0x5239bb)>0x0||_0x3a0745['_setAttribute'](_0x5239bb,_0x509959[_0xb82caa++]);}for(const [_0xe96f10,_0x1fe3d]of _0x3ca1da['markers'])_0xe96f10['startsWith']('revision:')||this['_markers']['set'](_0xe96f10,_0x1fe3d);}const _0x439660=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x439660),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x439660,0x1));const _0x3374f5=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3374f5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3374f5,0x1));const _0x5dcfdf=Array['from'](this['_diffRoots'])['map'](([_0x48db0d,_0x44b046])=>[_0x48db0d,N(_0x44b046)]);this['_saveMetaData'](this['_lastTo'],_0x5dcfdf,this['_markers'],_0x15bc3d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5db557,_0x5b7bf3,_0x51b71f,_0x163929){const _0x2279db=new Map(_0x5b7bf3),_0x27b6c2=new Map(_0x5dbaa0(_0x163929)),_0x44e89=new Map();for(const [_0x48f00c,_0xa7a0c1]of _0x51b71f)_0x44e89['set'](_0x48f00c,{'start':_0xa7a0c1['start']['clone'](),'end':_0xa7a0c1['end']['clone'](),'rootName':_0xa7a0c1['root']['rootName']});this['_savedMetaData']['set'](_0x5db557,{'roots':_0x2279db,'markers':_0x44e89,'rootsAttributes':_0x27b6c2});}['_removeMetaData'](_0x294054){this['_savedMetaData']['delete'](_0x294054);}['_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'](_0x10653d,_0x50ad52=null){let _0x1dc8e5=null;_0x10653d['is']('documentFragment')||(_0x1dc8e5=new ut(_0x10653d['name'],{'vid_start':null===_0x50ad52?this['_revisionId']++:_0x50ad52++}));const _0x178882=[];for(const _0x7580a4 of _0x10653d['getChildren']())if(_0x7580a4['is']('element')){_0x178882['push'](this['_makeIdsRoot'](_0x7580a4,_0x50ad52));const _0x1b0ab4=_0x178882[_0x178882['length']-0x1];null!==_0x50ad52&&(_0x50ad52=_0x1b0ab4['is']('element','$text')?_0x1b0ab4['getAttribute']('vid')+0x1:_0x1b0ab4['getAttribute']('vid_end')+0x1);}else{for(let _0x262388=0x0;_0x262388<_0x7580a4['offsetSize'];_0x262388++)_0x178882['push'](new ut('$text',{'vid':null===_0x50ad52?this['_revisionId']++:_0x50ad52++}));}if(_0x10653d['is']('documentFragment')){const _0x562541=P(_0x10653d['rootName']);return _0x562541['_insertChild'](0x0,_0x178882),_0x562541;}return _0x1dc8e5['_setAttribute']('vid_end',null===_0x50ad52?this['_revisionId']++:_0x50ad52++),_0x1dc8e5['_insertChild'](0x0,_0x178882),_0x1dc8e5;}['_calculateMetaData'](_0x2487d9,_0x5351b6,_0x2fd2e9){this['_reset']();const {roots:_0x169359,markers:_0x462ba7,rootsAttributes:_0x59837d}=this['_savedMetaData']['get'](_0x2487d9);this['_baseRoots']=new Map(_0x169359),this['_baseRootsAttributes']=new Map(_0x5dbaa0(_0x59837d));for(const [_0x201782,_0x1da2b0]of this['_baseRoots'])if('$graveyard'!==_0x201782&&(this['_diffRoots']['set'](_0x201782,N(_0x1da2b0)),this['_diffRootsAttributes']=new Map(_0x5dbaa0(_0x59837d)),_0x2fd2e9)){const _0x12a280=this['_revisionId'];this['_idsRoots']['set'](_0x201782,this['_makeIdsRoot'](_0x1da2b0)),this['_baseIdsRoots']['set'](_0x201782,this['_makeIdsRoot'](_0x1da2b0,_0x12a280));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x2fd2e9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x229cd3,_0x1c5c93]of _0x462ba7){const _0x1f07f8=this['_baseRoots']['get'](_0x1c5c93['rootName']),_0x4bb69b=this['_diffRoots']['get'](_0x1c5c93['rootName']),_0x5d6682=new ft(this['_fixPosition'](_0x1c5c93['start'],_0x1f07f8),this['_fixPosition'](_0x1c5c93['end'],_0x1f07f8)),_0x4c57d1=this['_fixRange'](_0x5d6682,_0x4bb69b);_0x1f07f8['markers']['set'](_0x229cd3,_0x5d6682),this['_markers']['set'](_0x229cd3,_0x4c57d1);}this['_applyOperations'](_0x2487d9,_0x5351b6,_0x2fd2e9);}['_applyOperations'](_0x235fcd,_0x34c34b,_0x2557ef){for(const _0x1b9538 of this['source']['getOperations'](_0x235fcd,_0x34c34b))this['_handleOperation'](_0x1b9538,_0x2557ef);for(const _0x530308 of this['_diffRoots']['values']())_0x530308['markers']['clear']();for(const [_0x2b3f2e,_0x37f40b]of this['_markers']){this['_diffRoots']['get'](_0x37f40b['root']['rootName'])['markers']['set'](_0x2b3f2e,_0x37f40b['clone']());}const _0x5735e5=new Map(),_0x43241a=new Map();for(const [_0x42bb26,_0x533820]of this['_diffRoots'])_0x5735e5['set'](_0x42bb26,N(_0x533820)),_0x43241a['set'](_0x42bb26,this['_diffRootsAttributes']['get'](_0x42bb26));this['_saveMetaData'](_0x34c34b,_0x5735e5,this['_markers'],_0x43241a);}['_getPreviousFrom'](_0x44b7d1){const _0x261502=Array['from'](this['_savedMetaData']['keys']());_0x261502['sort']((_0x3b298f,_0x3a32c8)=>_0x3b298f-_0x3a32c8),_0x261502['reverse']();for(const _0x38a386 of _0x261502)if(_0x38a386<_0x44b7d1)return _0x38a386;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x583e7e,_0x3b2772){const _0x27bc25=Array['from'](_0x3b2772['markers'])['map'](([_0x2a0e0d,_0x4338ff])=>[_0x2a0e0d,this['_fixRange'](_0x4338ff,_0x583e7e)]);_0x583e7e['markers']=new Map(_0x27bc25);}['_transformMarkers'](_0x362595){for(const _0x489602 of this['_markers']['values']()){const _0x55de0c=_0x489602['getTransformedByOperation'](_0x362595),_0x4b5d2d=ft['_createFromRanges'](_0x55de0c);_0x489602['start']=_0x4b5d2d['start'],_0x489602['end']=_0x4b5d2d['end'];}}['_handleOperation'](_0x2e558a,_0xde5024){if('addRoot'!=_0x2e558a['type']&&'detachRoot'!=_0x2e558a['type']){if('insert'==_0x2e558a['type']){const _0x20df01=_0x2e558a['position']['root']['rootName'];this['_diffRoots']['has'](_0x20df01)||(this['_diffRoots']['set'](_0x20df01,P(_0x20df01,!0x0)),this['_diffRootsAttributes']['set'](_0x20df01,{}),_0xde5024&&this['_idsRoots']['set'](_0x20df01,P(_0x20df01,!0x0)));}else{if('addRootAttribute'==_0x2e558a['type']||'removeRootAttribute'==_0x2e558a['type']||'changeRootAttribute'==_0x2e558a['type'])return void this['_handleRootAttributeOperation'](_0x2e558a);'marker'==_0x2e558a['type']&&this['_handleMarkerOperation'](_0x2e558a);}if('marker'!==_0x2e558a['type']){const _0x222acd=this['_cloneOperation'](_0x2e558a,this['_diffRoots']);_0x222acd['_execute'](),this['_transformMarkers'](_0x222acd);}if(_0xde5024)switch(_0x2e558a['type']){case'insert':this['_handleInsertOperation'](_0x2e558a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e558a);break;case'merge':this['_handleMergeOperation'](_0x2e558a);break;case'split':this['_handleSplitOperation'](_0x2e558a);}}else this['_handleRootOperation'](_0x2e558a,_0xde5024);}['_cloneOperation'](_0x588bd0,_0x57b387){const _0x47f212=_0x588bd0['clone']();return _0x47f212['_authorId']=_0x588bd0['_authorId'],this['_fixOperation'](_0x47f212,_0x57b387),_0x47f212;}['_getBaseVids'](_0x46aff2){return _0x46aff2['map'](_0x2830db=>{const _0x329696=this['_getVidAttributeName'](_0x2830db);return Number(_0x2830db['item']['getAttribute'](_0x329696));});}['_generateTape'](_0xe381ed,_0x3e9397){if(_0xe381ed['is']('element','$text'))_0x3e9397['push']({'item':_0xe381ed,'type':'text'});else{_0xe381ed['is']('element')&&_0x3e9397['push']({'item':_0xe381ed,'type':'elementStart'});for(const _0x13fd17 of _0xe381ed['getChildren']())this['_generateTape'](_0x13fd17,_0x3e9397);_0xe381ed['is']('element')&&_0x3e9397['push']({'item':_0xe381ed,'type':'elementEnd'});}return _0x3e9397;}['_getState'](){const _0xde9cd5=new Map(this['_touched']),_0x1ab7b3=new Map(_0xde9cd5),_0x1e832a=new Map(),_0x44c2d8={'insertions':{},'deletions':{}},_0x3605ee={'insertions':{},'deletions':{}},_0x86d14e=new Map(),_0x38c4f5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x38c4f5['delete']('$graveyard');for(const _0x2355b5 of _0x38c4f5){const _0x1534a4=this['_diffRoots']['get'](_0x2355b5)||P(_0x2355b5,!0x1),_0x37484d=this['_baseRoots']['get'](_0x2355b5)||P(_0x2355b5,!0x1);_0x1534a4['isAttached']()||_0x37484d['isAttached']()?(_0x44c2d8['insertions'][_0x2355b5]=N(_0x1534a4),_0x44c2d8['deletions'][_0x2355b5]=N(_0x37484d),this['_copyMarkers'](_0x44c2d8['deletions'][_0x2355b5],_0x37484d),this['_copyMarkers'](_0x44c2d8['insertions'][_0x2355b5],_0x1534a4),_0x3605ee['insertions'][_0x2355b5]=this['_generateTape'](this['_idsRoots']['get'](_0x2355b5),[]),_0x3605ee['deletions'][_0x2355b5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2355b5)||P(_0x2355b5,!0x1),[])):_0x38c4f5['delete'](_0x2355b5);}for(const _0x3ed896 of _0x38c4f5){const _0x3673a3=_0x3605ee['insertions'][_0x3ed896];for(const _0x50bb7c of _0x3673a3){const _0xc3684b=this['_getVidAttributeName'](_0x50bb7c),_0x46412b=_0x50bb7c['item']['getAttribute'](_0xc3684b);_0x1ab7b3['delete'](_0x46412b),_0x46412b>=this['_startingRevisionId']&&_0x1e832a['set'](_0x46412b,_0xde9cd5['get'](_0x46412b));}}for(const _0x174619 of _0x38c4f5){const _0x4368b6=_0x3605ee['insertions'][_0x174619],_0x19bd4c=this['_getBaseVids'](_0x3605ee['deletions'][_0x174619]);let _0x3b44a7=0x0;for(const _0x5570da of _0x4368b6){const _0x525762=this['_getVidAttributeName'](_0x5570da),_0x5b369e=_0x5570da['item']['getAttribute'](_0x525762);if(!_0x1e832a['has'](_0x5b369e)&&!_0x86d14e['has'](_0x5b369e)){if(_0x1ab7b3['has'](_0x5b369e))_0x3b44a7++;else{if(_0x5b369e!=_0x19bd4c[_0x3b44a7]){const _0x55623f=_0xde9cd5['get'](_0x5b369e)||_0xde9cd5['get'](_0x19bd4c[_0x3b44a7]);for(;_0x5b369e!=_0x19bd4c[_0x3b44a7];)_0x1ab7b3['has'](_0x19bd4c[_0x3b44a7])||(_0x86d14e['set'](_0x19bd4c[_0x3b44a7],_0x55623f),_0xde9cd5['set'](_0x19bd4c[_0x3b44a7],_0x55623f)),_0x3b44a7++;}_0x3b44a7++;}}}}for(const _0x23e6c6 of _0x38c4f5){const _0xb9e413=_0x3605ee['insertions'][_0x23e6c6];for(const _0x40b127 of _0xb9e413){const _0x530991=this['_getVidAttributeName'](_0x40b127),_0x5752b6=_0x40b127['item']['getAttribute'](_0x530991);if(_0x86d14e['has'](_0x5752b6)){const _0x1f2d11=_0x86d14e['get'](_0x5752b6);_0x1ab7b3['has'](_0x5752b6)||_0x1ab7b3['set'](_0x5752b6,{..._0x1f2d11}),_0x1e832a['set'](_0x5752b6,{..._0x1f2d11});}}}for(const _0x1a18bb of _0x1ab7b3['keys']())_0x1a18bb>=this['_startingRevisionId']&&_0x1ab7b3['delete'](_0x1a18bb);const _0x1ad12b=new Map();for(const _0xa16117 of _0x38c4f5){let _0x3a94c2=_0x3605ee['insertions'][_0xa16117];for(const _0x4e5071 of _0x3a94c2)if(_0x4e5071['item']['is']('element','tableCell')){const _0x30a3f4=this['_getVidAttributeName'](_0x4e5071),_0x186561=_0x4e5071['item']['getAttribute'](_0x30a3f4);if(_0x1e832a['has'](_0x186561)){const _0x2da764=_0x4e5071['item']['parent']['parent']['getAttribute']('vid_start'),_0xc3594f=_0x1ad12b['get'](_0x2da764)||new Set();_0xc3594f['add'](_0x1e832a['get'](_0x186561)['userId']),_0x1ad12b['set'](_0x2da764,_0xc3594f);}}_0x3a94c2=_0x3605ee['deletions'][_0xa16117];for(const _0x428c76 of _0x3a94c2)if(_0x428c76['item']['is']('element','tableCell')){const _0x205d28=this['_getVidAttributeName'](_0x428c76),_0x1f81dc=_0x428c76['item']['getAttribute'](_0x205d28);if(_0x1ab7b3['has'](_0x1f81dc)){const _0x34feb2=_0x428c76['item']['parent']['parent']['getAttribute']('vid_start'),_0x3203e2=_0x1ad12b['get'](_0x34feb2)||new Set();_0x3203e2['add'](_0x1ab7b3['get'](_0x1f81dc)['userId']),_0x1ad12b['set'](_0x34feb2,_0x3203e2);}}for(const _0x29a571 of _0x1ad12b['keys']())(_0x1e832a['has'](_0x29a571)||_0x1ab7b3['has'](_0x29a571))&&_0x1ad12b['delete'](_0x29a571);}for(const _0x1b980a of _0x38c4f5){const _0x392f3f=_0x3605ee['insertions'][_0x1b980a];let _0x5c5df8=null,_0x5f44bb=null;for(const _0x52a083 of _0x392f3f){const _0x34727a=this['_getVidAttributeName'](_0x52a083),_0x1935e6=_0x52a083['item']['getAttribute'](_0x34727a),_0x4deec7=_0x1ad12b['get'](_0x1935e6);_0x4deec7&&'elementStart'==_0x52a083['type']&&(_0x5c5df8=Array['from'](_0x4deec7)[0x0],_0x5f44bb=_0x52a083['item']['getAttribute']('vid_end')),_0x5c5df8&&(_0x1ab7b3['set'](_0x1935e6,{'userId':_0x5c5df8}),_0x1e832a['set'](_0x1935e6,{'userId':_0x5c5df8})),_0x1935e6==_0x5f44bb&&(_0x5c5df8=null,_0x5f44bb=null);}}const _0x4f9a26={},_0x214570=new Set();for(const _0x275681 of _0x38c4f5){const _0x3fe24a=_0x44c2d8['deletions'][_0x275681],_0x11f921=_0x44c2d8['insertions'][_0x275681];for(const {userId:_0x430461}of this['_touchedMarkers']['values']())null!==_0x430461&&_0x214570['add'](_0x430461);for(const {userId:_0x38e0e9}of this['_touchedRoots']['values']())null!==_0x38e0e9&&_0x214570['add'](_0x38e0e9);this['_markChanges'](_0x11f921,_0x3605ee['insertions'][_0x275681],_0x1e832a,'insertion',_0x214570),this['_markChanges'](_0x3fe24a,_0x3605ee['deletions'][_0x275681],_0x1ab7b3,'deletion',_0x214570),_0x4f9a26[_0x275681]={'insertions':this['_prepareViewToSave'](_0x11f921),'deletions':this['_prepareViewToSave'](_0x3fe24a),'attachChange':this['_touchedRoots']['get'](_0x275681)||null,'attributesBefore':_0x5dbaa0(this['_baseRootsAttributes']['get'](_0x275681))||{},'attributesAfter':_0x5dbaa0(this['_diffRootsAttributes']['get'](_0x275681))};}return{'diffData':_0x4f9a26,'authorsIds':Array['from'](_0x214570)};}['_processRootBeforeSave'](_0x1d380f){for(const [,_0xeb2c46]of _0x1d380f['markers']){const _0xcd9689=_0xeb2c46['start']['getAncestors']()['filter'](_0x1e19ad=>'tableCell'==_0x1e19ad['name']);for(const _0x40111a of _0xcd9689)0x1==_0x40111a['childCount']&&_0x40111a['getChild'](0x0)['is']('element','paragraph')&&_0x40111a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1849e6){this['_processRootBeforeSave'](_0x1849e6);const _0xace33=this['editor']['data']['toView'](_0x1849e6,{}),_0x3646e6=Array['from'](_0xace33['getChildren']())['map'](_0x548329=>this['_getViewJson'](_0x548329));return JSON['stringify'](_0x3646e6);}['_getViewJson'](_0x2cdb09){if(_0x2cdb09['is']('$text'))return _0x2cdb09['data'];{const _0x46a8f7=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x592f34=_0x2cdb09,_0x125ae3=this['editor']['data']['htmlProcessor']['domConverter'],_0x271361={'type':_0x46a8f7['_getTypeCharForViewElement'](_0x592f34),'name':_0x592f34['name'],'attributes':Array['from'](_0x592f34['getAttributes']()),'children':Array['from'](_0x592f34['getChildren']())['map'](_0x24000a=>this['_getViewJson'](_0x24000a))};if(_0x2cdb09['is']('uiElement')&&'$comment'!=_0x2cdb09['name']){const _0x5ca559=_0x2cdb09['render'](_0x125ae3['domDocument'],_0x125ae3);_0x271361['children']['push'](_0x5ca559['outerHTML']);}else{if(_0x2cdb09['is']('rawElement')){const _0x513dca=_0x125ae3['domDocument']['createElement'](_0x592f34['name']);_0x2cdb09['render'](_0x513dca,_0x125ae3),_0x271361['children']['push'](_0x513dca['innerHTML']);}}const _0x9fdbae=Array['from'](_0x592f34['getCustomProperties']());_0x9fdbae['length']>0x0&&(_0x271361['customProperties']=_0x9fdbae);const _0x15912f=_0x592f34['getFillerOffset']();return null!==_0x15912f&&(_0x271361['fillerOffset']=_0x15912f),_0x271361;}}['_markChanges'](_0x537db7,_0x306e37,_0x43ae65,_0x13d030,_0x1e8f24){let _0x5b484e=null,_0x2e8345=null,_0xdb065a=0x0;const _0x4b7f0d=this['editor']['model'];for(let _0x53238e=0x0;_0x53238e<_0x306e37['length'];_0x53238e++){const _0x2f7f51=this['_getVidAttributeName'](_0x306e37[_0x53238e]),_0x51d0b1=_0x306e37[_0x53238e]['item']['getAttribute'](_0x2f7f51),_0x26b855=_0x43ae65['get'](_0x51d0b1),_0x55846e=_0x53238e==_0x306e37['length']-0x1;(!_0x5b484e&&_0x26b855&&(_0x5b484e=_0x26b855,_0x2e8345=_0x306e37[_0x53238e]),_0x5b484e&&(!_0x26b855||_0x26b855['userId']!=_0x5b484e['userId']))&&(_0x3845e2(_0x26b855,F(_0x2e8345,_0x537db7,_0x4b7f0d),F(_0x306e37[_0x53238e],_0x537db7,_0x4b7f0d)),_0x5b484e=_0x26b855||null,_0x2e8345=_0x26b855?_0x306e37[_0x53238e]:null),_0x5b484e&&_0x55846e&&_0x3845e2(_0x26b855,F(_0x2e8345,_0x537db7,_0x4b7f0d),B(_0x306e37[_0x53238e],_0x537db7,_0x4b7f0d));}function _0x3845e2(_0x1c54e1,_0xfcb66f,_0x41504e){const _0x19a027=_0x5b484e['userId'],_0x546e3a='revision:'+_0x13d030+':'+_0x19a027+':'+_0xdb065a++,_0x3d5ac2=_0x4b7f0d['createRange'](_0xfcb66f,_0x41504e);_0x537db7['markers']['set'](_0x546e3a,_0x3d5ac2),null!==_0x19a027&&_0x1e8f24['add'](_0x19a027);}}['_getVidAttributeName'](_0x15d24e){switch(_0x15d24e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3aeb08,_0x5a2c09){_0x3aeb08['baseVersion']=null;for(const _0x310af5 in _0x3aeb08){const _0x993bf4=_0x3aeb08[_0x310af5];if(_0x993bf4 instanceof vt){const _0x5e12ea=_0x5a2c09['get'](_0x993bf4['root']['rootName']);_0x3aeb08[_0x310af5]=this['_fixPosition'](_0x993bf4,_0x5e12ea);}if(_0x993bf4 instanceof ft){const _0x3265e7=_0x5a2c09['get'](_0x993bf4['root']['rootName']);_0x3aeb08[_0x310af5]=this['_fixRange'](_0x993bf4,_0x3265e7);}'root'===_0x310af5&&(_0x3aeb08['root']=_0x5a2c09['get'](_0x3aeb08['root']['rootName']));}}['_fixRange'](_0x39b366,_0x198eda){return this['editor']['model']['createRange'](this['_fixPosition'](_0x39b366['start'],_0x198eda),this['_fixPosition'](_0x39b366['end'],_0x198eda));}['_fixPosition'](_0x4b7926,_0x5b7e0b){return this['editor']['model']['createPositionFromPath'](_0x5b7e0b,_0x4b7926['path'],_0x4b7926['stickiness']);}['_handleInsertOperation'](_0x5b7786){const _0x4e5117=this['_idsRoots']['get'](_0x5b7786['position']['root']['rootName']),_0x1fcc4f=this['_fixPosition'](_0x5b7786['position'],_0x4e5117),_0x30028f=null===_0x5b7786['_authorId']?null:_0x5b7786['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x144433=_0x1fcc4f['parent'],_0x4cf472=this['_revisionId'],_0x43ccf8=[];for(const _0x5be506 of _0x5b7786['nodes'])if(_0x5be506['is']('element'))_0x43ccf8['push'](this['_makeIdsRoot'](_0x5be506));else{for(let _0x73e43c=0x0;_0x73e43c<_0x5be506['offsetSize'];_0x73e43c++)_0x43ccf8['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3966d0=this['_revisionId'];for(let _0x5483f5=_0x4cf472;_0x5483f5<_0x3966d0;_0x5483f5++)this['_touched']['set'](_0x5483f5,{'userId':_0x30028f});_0x144433['_insertChild'](_0x1fcc4f['offset'],_0x43ccf8);}['_handleMoveOperation'](_0x305aec){(_0x305aec=this['_cloneOperation'](_0x305aec,this['_idsRoots']))['_execute']();const _0x11bf7d=null===_0x305aec['_authorId']?null:_0x305aec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545fd6=_0x305aec['getMovedRangeStart'](),_0x352215=_0x545fd6['parent'],_0x514d7b=_0x545fd6['offset'];!function _0x27c189(_0xa9e0e5,_0x1cb779,_0x392216,_0xfd4881){for(let _0x642552=_0x392216;_0x642552<_0xfd4881;_0x642552++){const _0x17f0f7=_0x1cb779['getChild'](_0x642552);_0x17f0f7['is']('element','$text')?_0xa9e0e5['set'](_0x17f0f7['getAttribute']('vid'),{'userId':_0x11bf7d}):(_0xa9e0e5['set'](_0x17f0f7['getAttribute']('vid_start'),{'userId':_0x11bf7d}),_0x27c189(_0xa9e0e5,_0x17f0f7,0x0,_0x17f0f7['childCount']),_0xa9e0e5['set'](_0x17f0f7['getAttribute']('vid_end'),{'userId':_0x11bf7d}));}}(this['_touched'],_0x352215,_0x514d7b,_0x514d7b+_0x305aec['howMany']);}['_handleMergeOperation'](_0x3c4962){const _0x43179c=null===(_0x3c4962=this['_cloneOperation'](_0x3c4962,this['_idsRoots']))['_authorId']?null:_0x3c4962['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x474eb5=_0x3c4962['targetPosition']['parent'],_0x4019ac=_0x3c4962['sourcePosition']['parent'],_0x10fc07=_0x474eb5['getAttribute']('vid_end'),_0x3ee9bc=_0x4019ac['getAttribute']('vid_start');_0x474eb5['_setAttribute']('vid_end',_0x4019ac['getAttribute']('vid_end')),_0x4019ac['_setAttribute']('vid_end',_0x10fc07),this['_touched']['set'](_0x3ee9bc,{'userId':_0x43179c}),this['_touched']['set'](_0x10fc07,{'userId':_0x43179c}),_0x3c4962['_execute']();}['_handleSplitOperation'](_0x2ad623){const _0x44af91=null===(_0x2ad623=this['_cloneOperation'](_0x2ad623,this['_idsRoots']))['_authorId']?null:_0x2ad623['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24f602=_0x2ad623['graveyardPosition'],_0xc9757d=_0x2ad623['splitPosition']['parent'];_0x2ad623['_execute']();const _0x5ac1f1=_0xc9757d['getAttribute']('vid_end'),_0x1d77be=_0x2ad623['insertionPosition']['nodeAfter'];if(_0x24f602){const _0x4e081a=_0x1d77be['getAttribute']('vid_end'),_0x35a9b4=_0xc9757d['getAttribute']('vid_end');_0xc9757d['_setAttribute']('vid_end',_0x4e081a),_0x1d77be['_setAttribute']('vid_end',_0x35a9b4),this['_touched']['set'](_0xc9757d['getAttribute']('vid_end'),{'userId':_0x44af91}),this['_touched']['set'](_0x1d77be['getAttribute']('vid_start'),{'userId':_0x44af91});}else{const _0x18be95=this['_revisionId']++,_0x58b9ee=this['_revisionId']++;_0xc9757d['_setAttribute']('vid_end',_0x18be95),_0x1d77be['_setAttribute']('vid_start',_0x58b9ee),_0x1d77be['_setAttribute']('vid_end',_0x5ac1f1),this['_touched']['set'](_0x18be95,{'userId':_0x44af91}),this['_touched']['set'](_0x58b9ee,{'userId':_0x44af91});}}['_handleMarkerOperation'](_0x1eb4c){if(!_0x1eb4c['affectsData'])return;const _0x48c25d=(_0x1eb4c=this['_cloneOperation'](_0x1eb4c,this['_diffRoots']))['oldRange']?_0x1eb4c['oldRange']['root']:null,_0x2583f9=_0x1eb4c['newRange']?_0x1eb4c['newRange']['root']:null;_0x48c25d&&this['_markers']['delete'](_0x1eb4c['name']),_0x2583f9&&this['_markers']['set'](_0x1eb4c['name'],_0x1eb4c['newRange']['clone']());const _0x4cf840=null===_0x1eb4c['_authorId']?null:_0x1eb4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24e307=_0x1eb4c['name'];if(!this['_touchedMarkers']['has'](_0x24e307))return void this['_touchedMarkers']['set'](_0x24e307,{'range':_0x1eb4c['oldRange'],'userId':_0x4cf840});const _0xdcae21=this['_touchedMarkers']['get'](_0x24e307),_0x27f5a8=_0xdcae21['range'],_0x255b28=_0x1eb4c['newRange'];null==_0x27f5a8&&null==_0x255b28||_0x27f5a8&&_0x255b28&&_0x27f5a8['isEqual'](_0x255b28)?this['_touchedMarkers']['delete'](_0x1eb4c['name']):_0xdcae21['userId']=_0x4cf840;}['_handleRootOperation'](_0x14f310,_0x1ba79c){this['_diffRoots']['has'](_0x14f310['rootName'])?this['_diffRoots']['get'](_0x14f310['rootName'])['_isAttached']=_0x14f310['isAdd']:(this['_diffRoots']['set'](_0x14f310['rootName'],P(_0x14f310['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x14f310['rootName'],{}),_0x1ba79c&&this['_idsRoots']['set'](_0x14f310['rootName'],P(_0x14f310['rootName'],!0x0)));const _0xf03f51=null===_0x14f310['_authorId']?null:_0x14f310['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc0dd86=this['_touchedRoots']['get'](_0x14f310['rootName']);_0xc0dd86&&_0xc0dd86['userId']===_0xf03f51?this['_touchedRoots']['delete'](_0x14f310['rootName']):this['_touchedRoots']['set'](_0x14f310['rootName'],{'userId':_0xf03f51,'isAttached':_0x14f310['isAdd']});}['_handleRootAttributeOperation'](_0x4f1f8a){const _0x16e909=this['_diffRootsAttributes']['get'](_0x4f1f8a['root']['rootName']);null===_0x4f1f8a['newValue']?delete _0x16e909[_0x4f1f8a['key']]:_0x16e909[_0x4f1f8a['key']]=_0x4f1f8a['newValue'];}}function N(_0x546289){const _0x3ef93a=P(_0x546289['rootName'],_0x546289['isAttached']());for(const _0x3484d7 of _0x546289['getChildren']()){const _0x57e1a7=_0x3484d7['_clone'](!0x0);_0x3ef93a['_appendChild'](_0x57e1a7);}return _0x3ef93a;}function P(_0x16d218,_0x2d6261=!0x0){const _0x4431fb=new gt();return _0x4431fb['rootName']=_0x16d218,_0x4431fb['_isAttached']=_0x2d6261,_0x4431fb['isAttached']=()=>_0x4431fb['_isAttached'],_0x4431fb;}function F(_0x380560,_0x51042f,_0xee4894){const _0x565209='elementEnd'==_0x380560['type']?_0xee4894['createPositionAt'](_0x380560['item'],'end'):_0xee4894['createPositionBefore'](_0x380560['item']);return _0xee4894['createPositionFromPath'](_0x51042f,_0x565209['path'],_0x565209['stickiness']);}function B(_0x317ff7,_0x4f7242,_0x26b937){const _0xd1d326='elementStart'==_0x317ff7['type']?_0x26b937['createPositionAt'](_0x317ff7['item'],0x0):_0x26b937['createPositionAfter'](_0x317ff7['item']);return _0x26b937['createPositionFromPath'](_0x4f7242,_0xd1d326['path'],_0xd1d326['stickiness']);}class os extends _0x225fc7{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2ac7a9,_0x103710){super(_0x2ac7a9),this['focusTracker']=new _0x1b3856(),this['keystrokes']=new _0xeb5fa6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x103710),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'](),_0x5a7c23({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4cebc1=_0x3b1622=>_0x3b1622['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4cebc1),this['keystrokes']['set']('arrowleft',_0x4cebc1),this['keystrokes']['set']('arrowup',_0x4cebc1),this['keystrokes']['set']('arrowdown',_0x4cebc1);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x165881){this['revisionNameInputView']['fieldView']['element']['value']=_0x165881['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5afebf){const _0xe18d75=new nt(this['locale'],ti),_0xbce031=_0xe18d75['fieldView'];_0xbce031['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2d4cf3=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5afebf&&(_0x2d4cf3+='\x20('+g(this['locale'],'optional')+')'),(_0xe18d75['label']=_0x2d4cf3,_0xbce031['on']('input',()=>{this['revisionNameInputValue']=_0xbce031['element']['value']['trim']();}),_0xe18d75);}}class f extends _0x47ebf6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4ba154=this['editor'],_0x4494ed=_0x4ba154['plugins']['get']('RevisionTracker');_0x4ba154['ui']['componentFactory']['add']('revisionHistory',_0xfb0f73=>{const _0x123871=_0xc59451(_0xfb0f73),_0x59fbb8=_0x123871['panelView']['children'],_0x441ffa=new _0x20bfa9(_0xfb0f73),_0x24a56a=new te(_0xfb0f73),_0x420f1d=new _0x5bb06b(_0xfb0f73),_0x44495a=new te(_0xfb0f73),_0x10f30=new _0x5bb06b(_0xfb0f73);return _0x123871['bind']('isEnabled')['to'](_0x4494ed,'isReady',_0x4494ed,'isEnabled',_0x4ba154,'isReadOnly',(_0x4d0ae7,_0x413838,_0x22055c)=>_0x4d0ae7&&_0x413838&&!_0x22055c),_0x123871['buttonView']['set']({'icon':_0x3c6f9c,'label':g(_0xfb0f73,'Revision\x20history'),'tooltip':!0x0}),_0x420f1d['set']({'label':g(_0xfb0f73,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x420f1d['bind']('isEnabled')['to'](_0x4494ed,'isReady',_0x4494ed,'isEnabled',_0x4ba154,'isReadOnly',(_0x2f8b51,_0x593987,_0x41f49e)=>_0x2f8b51&&_0x593987&&!_0x41f49e),_0x420f1d['on']('execute',()=>this['_showDialog']()),_0x10f30['set']({'label':g(_0xfb0f73,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x10f30['bind']('isEnabled')['to'](_0x4494ed,'isReady',_0x4ba154,'isReadOnly',(_0x22f41f,_0x2c157d)=>_0x22f41f&&!_0x2c157d),_0x10f30['on']('execute',()=>{_0x4ba154['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x123871['isOpen']=!0x1,_0x4ba154['editing']['view']['focus']();}),_0x24a56a['children']['add'](_0x420f1d),_0x44495a['children']['add'](_0x10f30),_0x441ffa['role']='menu',_0x441ffa['items']['addMany']([_0x24a56a,_0x44495a]),_0x59fbb8['add'](_0x441ffa),_0x123871;}),_0x4ba154['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1f1c5f=this['editor'],_0x35b386=_0x1f1c5f['locale'],_0x368e58=new _0x4e87b1(_0x35b386),_0x44a91f=new _0xcb41ea(_0x35b386);_0x368e58['buttonView']['set']({'icon':_0x3c6f9c,'label':g(_0x35b386,'Revision\x20history')});const _0x450190=new _0x43d7d9(_0x35b386,_0x368e58),_0x5c4c5c=new _0x53a40c(_0x35b386);_0x5c4c5c['set']({'label':g(_0x35b386,'Save\x20current\x20revision')}),_0x5c4c5c['delegate']('execute')['to'](_0x368e58),_0x5c4c5c['on']('execute',()=>{this['_showDialog']();}),_0x450190['children']['add'](_0x5c4c5c),_0x44a91f['items']['add'](_0x450190);const _0x135393=new _0x43d7d9(_0x35b386,_0x368e58),_0x15fd9e=new _0x53a40c(_0x35b386);return _0x15fd9e['set']({'label':g(_0x35b386,'Open\x20revision\x20history')}),_0x15fd9e['delegate']('execute')['to'](_0x368e58),_0x15fd9e['on']('execute',()=>{_0x1f1c5f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x135393['children']['add'](_0x15fd9e),_0x44a91f['items']['add'](_0x135393),_0x368e58['panelView']['children']['add'](_0x44a91f),_0x368e58;}['_showDialog'](){const _0x351923=this['editor'],_0x35fce8=_0x351923['locale'],_0x252de3=_0x351923['plugins']['get']('Dialog'),_0x12a411=_0x351923['plugins']['get']('RevisionTracker');function _0x302a27(_0x614fe5){_0x351923['config']['get']('revisionHistory.requireRevisionName')&&''===_0x614fe5['revisionName']?_0x614fe5['revisionNameInputView']['errorText']=g(_0x35fce8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x351923['plugins']['get'](u)['saveRevision']({'name':_0x614fe5['revisionName']}),_0x252de3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x302a27(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x252de3['show']({'id':'revisionSave','title':g(_0x35fce8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x351923['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x252de3['hide']()},{'label':g(_0x351923['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x10516a){_0x10516a['bind']('isEnabled')['to'](_0x12a411,'isReady',_0x12a411,'isEnabled',_0x351923,'isReadOnly',(_0x1bb856,_0x5f25a6,_0xf8deb0)=>_0x1bb856&&_0x5f25a6&&!_0xf8deb0);},'onExecute':()=>_0x302a27(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44b568=this['editor'],_0x36e510=_0x44b568['locale'];this['_saveRevisionFormView']=new os(_0x36e510,_0x44b568['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x225fc7{['changeId'];['_model'];constructor(_0x32a11d,_0x55e34d){super(_0x32a11d),this['_model']=_0x55e34d,this['changeId']=_0x55e34d['id'];const _0x12ee0d=this['bindTemplate'],_0x4b20b7=g(_0x32a11d,_0x55e34d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x55e34d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x55e34d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x12ee0d['to']('type',_0x57ce7a=>'ck-revision-change__'+_0x57ce7a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4b20b7}]},{'text':'\x20'+_0x55e34d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1af5d3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2a32d5){super(),this['id']=_0x2a32d5['id']||_0x4339db(),this['author']=_0x2a32d5['author'],this['type']=_0x2a32d5['type'],this['data']=_0x2a32d5['data']||{},this['rootName']=_0x2a32d5['rootName'],this['set']('createdAt',_0x2a32d5['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(_0x232888,_0x1fb49d){this['newRevisionId']=_0x232888,this['oldRevisionId']=_0x1fb49d,this['changes']=new _0xe2334c();}['_setChanges'](_0x10f3f2){for(const _0x5281a1 of _0x10f3f2)this['changes']['add'](_0x5281a1);}}class m extends _0x47ebf6{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x181a91,_0x1020ef,I,V];}constructor(_0x1d3b11){super(_0x1d3b11),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x22fb9a,_0x3f9c3c,_0x51cc7d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3b4399=>{for(const _0x20b000 of this['editor']['editing']['view']['document']['roots'])_0x51cc7d?_0x3b4399['removeClass']('ck-editor__editable__overlay',_0x20b000):_0x3b4399['addClass']('ck-editor__editable__overlay',_0x20b000);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x26e0ca=>null!==_0x26e0ca),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x455618,_0x4d2de5,_0x19647e)=>_0x455618&&_0x19647e?_0x4d2de5['changes']['getIndex'](_0x19647e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x33df26,_0x46a83b)=>_0x33df26?_0x46a83b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1020ef);}['init'](){const _0x42d3a0=this['editor'],_0x1d1284=new pt(_0x42d3a0,{'direction':'backward'}),_0x661639=new pt(_0x42d3a0,{'direction':'forward'});(_0x42d3a0['commands']['add']('showPreviousChange',_0x1d1284),_0x42d3a0['commands']['add']('showNextChange',_0x661639),_0x42d3a0['commands']['add']('restoreRevision',new wt(_0x42d3a0)),this['on']('change:numberOfChanges',()=>{_0x1d1284['refresh'](),_0x661639['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x42d3a0['enableReadOnlyMode']('revision-viewer'),_0x42d3a0['plugins']['has']('WidgetToolbarRepository'))&&_0x42d3a0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x85a223){return await this['_utils']['loadRevisionData'](_0x85a223,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x85a223);}async['getRevisionRootsAttributes'](_0x587dbd){return await this['_utils']['loadRevisionData'](_0x587dbd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x587dbd);}async['compare'](_0x19869b,_0x38de95,_0x278c10=!0x1){if(!this['isEnabled'])return;const _0x1a3872=this['diff'],_0x6d66ae=this['repository'],_0x17b388='string'==typeof _0x19869b?_0x6d66ae['getRevision'](_0x19869b):_0x19869b,_0x2a7399='string'==typeof _0x38de95?_0x6d66ae['getRevision'](_0x38de95):_0x38de95,_0xbdf69f=_0x17b388['id'],_0x2baf32=_0x2a7399?_0x2a7399['id']:null;if(!_0x278c10&&this['diff']&&this['diff']['newRevisionId']===_0xbdf69f&&this['diff']['oldRevisionId']===_0x2baf32)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xbdf69f,_0x2baf32);const _0x2d9519=this['_getRevisionsRange'](_0x17b388,_0x2a7399,!0x0)['map'](_0x5551dd=>this['_utils']['loadRevisionData'](_0x5551dd,this['adapter']));return _0x2d9519['push'](new Promise(_0x1dcd5d=>{setTimeout(_0x1dcd5d,0x14);})),Promise['all'](_0x2d9519)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f6c78=this['_getDiff'](_0xbdf69f,_0x2baf32);for(const _0xc0c226 of _0x1f6c78['changes'])this['_changeIdToChange']['set'](_0xc0c226['id'],_0xc0c226);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2e9b18=>{for(const _0x141e36 of this['editor']['model']['document']['getRootNames']())_0x2e9b18['detachRoot'](_0x141e36);for(const _0x21c2c1 of Object['keys'](_0x1f6c78['model'])){const _0x598a57=_0x2e9b18['addRoot'](_0x21c2c1);for(const _0x447b40 of Object['keys'](_0x1f6c78['attributes'][_0x21c2c1]))_0x2e9b18['setAttribute'](_0x447b40,_0x1f6c78['attributes'][_0x21c2c1][_0x447b40],_0x598a57);_0x2e9b18['insert'](_0x1f6c78['model'][_0x21c2c1],_0x598a57,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f6c78['changes'])),this['isReady']=!0x0;})['catch'](_0x4f79fe=>{console['error'](_0x4f79fe),this['_cleanUp'](),_0x1a3872&&(this['diff']=_0x1a3872),this['isReady']=!0x0;});}['addRevisionData'](_0x4c6f78,_0x720a17){const _0x4b32f1=this['repository']['createRevision'](_0x4c6f78);return _0x4b32f1['on']('_update',(_0x33d713,_0x22f64,_0x1330d6)=>_0x720a17(_0x22f64,_0x1330d6,_0x4b32f1)),this['repository']['addRevision'](_0x4b32f1),_0x4b32f1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ede26=>{for(const _0x22c571 of this['editor']['model']['document']['getRootNames']())_0x5ede26['detachRoot'](_0x22c571);});}['_sortAndFilterDiffChanges'](_0x12f17f){const _0x85e0d3=[],_0x346019=new Map();for(const _0x678215 of this['editor']['model']['document']['getRootNames']()){const _0x25becc=this['editor']['editing']['view']['getDomRoot'](_0x678215);if(!_0x25becc)continue;const _0x2cf96f=_0x25becc['getClientRects']()['item'](0x0);_0x2cf96f&&(_0x85e0d3['push'](_0x678215),_0x346019['set'](_0x678215,_0x2cf96f));}return _0x85e0d3['sort']((_0x40f24f,_0x17e90c)=>{const _0x783a0c=_0x346019['get'](_0x40f24f),_0x3859ba=_0x346019['get'](_0x17e90c);return _0x783a0c['y']-_0x3859ba['y']||_0x783a0c['x']-_0x3859ba['x'];}),(_0x12f17f=_0x12f17f['filter'](_0x2c1ccc=>_0x85e0d3['includes'](_0x2c1ccc['rootName'])))['sort']((_0x573417,_0x356bfd)=>_0x85e0d3['indexOf'](_0x573417['rootName'])-_0x85e0d3['indexOf'](_0x356bfd['rootName'])),_0x12f17f;}['_makeTape'](_0x3856fa){const _0x1d312c=Array['from'](_0x3856fa['markers'])['filter'](([_0x14814e,_0x217d0f])=>_0x14814e['startsWith']('revision:')&&!_0x217d0f['isCollapsed']),_0x1c3cc7=Array['from'](this['editor']['model']['createRangeIn'](_0x3856fa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1d312c['length'])for(const _0x691ae9 of _0x1c3cc7){const [_0x5e1236,_0x22a28d]=_0x1d312c[0x0],[,_0x3d548d,_0x46b035]=_0x5e1236['split'](':');if(_0x22a28d['end']['isEqual'](_0x691ae9['nextPosition'])&&_0x1d312c['shift'](),(_0x691ae9['previousPosition']['isEqual'](_0x22a28d['start'])||_0x691ae9['previousPosition']['isAfter'](_0x22a28d['start']))&&('insertion'==_0x3d548d?_0x691ae9['isAdded']={'userId':_0x46b035}:'deletion'==_0x3d548d&&(_0x691ae9['isRemoved']={'userId':_0x46b035})),0x0==_0x1d312c['length'])break;}return _0x1c3cc7;}['_refreshStartEndIndex'](_0x3b53ec){const _0x294d29=new Map();for(let _0x5e88bb=0x0;_0x5e88bb<_0x3b53ec['length'];_0x5e88bb++)'text'===_0x3b53ec[_0x5e88bb]['type']?(_0x3b53ec[_0x5e88bb]['item']['startIndex']=_0x5e88bb,_0x3b53ec[_0x5e88bb]['item']['endIndex']=_0x5e88bb):('elementStart'===_0x3b53ec[_0x5e88bb]['type']?_0x3b53ec[_0x5e88bb]['item']['startIndex']=_0x5e88bb:'elementEnd'===_0x3b53ec[_0x5e88bb]['type']&&(_0x3b53ec[_0x5e88bb]['item']['endIndex']=_0x5e88bb),_0x294d29['set'](_0x3b53ec[_0x5e88bb]['id'],_0x5e88bb));for(const _0x519fcb of _0x294d29['values']())'elementStart'===_0x3b53ec[_0x519fcb]['type']?_0x3b53ec[_0x519fcb]['item']['endIndex']=_0x294d29['get'](_0x3b53ec[_0x519fcb]['pairId']):'elementEnd'===_0x3b53ec[_0x519fcb]['type']&&(_0x3b53ec[_0x519fcb]['item']['startIndex']=_0x294d29['get'](_0x3b53ec[_0x519fcb]['pairId']));}['_processTape'](_0x39e3ed){for(let _0x101bc4=0x0;_0x101bc4<_0x39e3ed['length'];_0x101bc4++){if('elementStart'===_0x39e3ed[_0x101bc4]['type'])_0x39e3ed[_0x101bc4]['item']['startIndex']=_0x101bc4;else{if('elementEnd'===_0x39e3ed[_0x101bc4]['type']){_0x39e3ed[_0x101bc4]['item']['endIndex']=_0x101bc4;const _0x5a6555=_0x39e3ed[_0x101bc4]['item']['startIndex'];_0x39e3ed[_0x5a6555]['pairId']=_0x39e3ed[_0x101bc4]['id'],_0x39e3ed[_0x101bc4]['pairId']=_0x39e3ed[_0x5a6555]['id'];}else _0x39e3ed[_0x101bc4]['item']['startIndex']=_0x101bc4,_0x39e3ed[_0x101bc4]['item']['endIndex']=_0x101bc4,_0x39e3ed[_0x101bc4]['pairId']=null;}_0x39e3ed[_0x101bc4]['markersStart']||(_0x39e3ed[_0x101bc4]['markersStart']=[],_0x39e3ed[_0x101bc4]['markersEnd']=[]);}}['_markInsertions'](_0x5d0167,_0x465985){const _0x8e6dee=_0x5d0167['filter'](_0x352a58=>!_0x352a58['isAdded']);for(let _0xd93f34=0x0;_0xd93f34<_0x465985['length'];_0xd93f34++)_0x465985[_0xd93f34]['isAdded']&&(_0x8e6dee[_0xd93f34]['isAdded']=_0x465985[_0xd93f34]['isAdded']);}['_getDiff'](_0x35c8de,_0x562bdd=null){const _0x38f53a=this['repository']['getRevision'](_0x35c8de),_0x459e61=_0x562bdd?this['repository']['getRevision'](_0x562bdd):null,_0xe12f9a=this['_getRevisionsRange'](_0x38f53a,_0x459e61),_0x35c53e=_0xe12f9a[_0xe12f9a['length']-0x1],_0x29161c=new Map(),_0x3dd71c={'model':{},'attributes':{},'changes':[]},_0x5ef10a=new Set(),_0xd540db=new Map();for(let _0x3be951=_0xe12f9a['length']-0x1;_0x3be951>=0x0;_0x3be951--){const _0x1f9957=_0xe12f9a[_0x3be951];for(const _0x4a22c8 of Object['keys'](_0x1f9957['diffData']))if(_0x1f9957['diffData'][_0x4a22c8]['attachChange']){const _0x14f5c6=_0x1f9957['diffData'][_0x4a22c8]['attachChange'];_0x14f5c6['isAttached']?(_0x5ef10a['add'](_0x4a22c8),_0xd540db['has'](_0x4a22c8)&&_0xd540db['get'](_0x4a22c8)['userId']==_0x14f5c6['userId']?_0xd540db['delete'](_0x4a22c8):_0xd540db['set'](_0x4a22c8,_0x14f5c6)):_0xd540db['has'](_0x4a22c8)?(_0x5ef10a['delete'](_0x4a22c8),_0xd540db['delete'](_0x4a22c8)):(_0x5ef10a['add'](_0x4a22c8),_0xd540db['set'](_0x4a22c8,_0x14f5c6));}else _0x5ef10a['add'](_0x4a22c8);}for(const _0x4e8aa6 of _0x5ef10a){const _0x895405=_0xd540db['has'](_0x4e8aa6)&&!_0xd540db['get'](_0x4e8aa6)['isAttached'];let _0x593be0=_0x895405?_0xe12f9a['length']-0x1:0x0;const _0x2aa888=_0x895405?-0x1:0x1;for(;_0xe12f9a[_0x593be0];){const _0xf6699a=_0xe12f9a[_0x593be0];if(_0xf6699a['diffData'][_0x4e8aa6]){const _0x2836d7=_0x895405?_0xf6699a['diffData'][_0x4e8aa6]['attributesBefore']:_0xf6699a['diffData'][_0x4e8aa6]['attributesAfter'];_0x3dd71c['attributes'][_0x4e8aa6]=_0x2836d7?_0x5dbaa0(_0x2836d7):{};break;}_0x593be0+=_0x2aa888;}}for(const _0x1df5d2 of _0xe12f9a){_0x1df5d2['model']={};for(const _0x11db78 of _0x1df5d2['authors'])_0x29161c['set'](_0x11db78['id'],_0x11db78);for(const _0x33b3ca of _0x5ef10a){const _0x58e32c=_0x1df5d2['diffData'][_0x33b3ca]?_0x1df5d2['diffData'][_0x33b3ca]['insertions']:'[]',_0x2cd4f0=_0x1df5d2['diffData'][_0x33b3ca]?_0x1df5d2['diffData'][_0x33b3ca]['deletions']:'[]';_0x1df5d2['model'][_0x33b3ca]={'insertions':this['_utils']['_makeModelFromViewString'](_0x58e32c),'deletions':this['_utils']['_makeModelFromViewString'](_0x2cd4f0)};}}for(const _0x2507ee of _0x5ef10a){let _0x654f06=null,_0xf43e00=0x0;const _0x443c44=new Map(Array['from'](_0x38f53a['model'][_0x2507ee]['insertions']['markers'])['filter'](([_0x579906])=>!_0x579906['startsWith']('revision:')));let _0x4bde09=0x0;for(const _0x3b50a7 of _0xe12f9a){const _0xdffa37=this['_makeTape'](_0x3b50a7['model'][_0x2507ee]['insertions']);_0x3b50a7==_0x38f53a?(_0x654f06=_0xdffa37,_0xf43e00=_0x654f06['length'],_0x654f06['forEach'](_0x21662c=>{_0x21662c['id']=_0x4bde09++;}),this['_processTape'](_0x654f06)):this['_markInsertions'](_0x654f06,_0xdffa37);const _0x38b14a=_0x654f06['filter'](_0x472c70=>!_0x472c70['isAdded'])['map'](_0x56143d=>_0x56143d['id']);let _0x30e669=0x0;const _0x4e2fd7=this['_makeTape'](_0x3b50a7['model'][_0x2507ee]['deletions']);_0x4e2fd7['forEach'](_0x326c1a=>{_0x326c1a['isRemoved']?_0x326c1a['id']=_0xf43e00++:_0x326c1a['id']=_0x38b14a[_0x30e669++];}),this['_processTape'](_0x4e2fd7),this['_setDistance'](_0x654f06,'isAdded'),this['_setDistance'](_0x4e2fd7,'isRemoved'),_0x3b50a7==_0x38f53a&&this['_markMarkers'](_0x654f06,_0x443c44),_0x654f06=this['_joinTapes'](_0x654f06,_0x4e2fd7),this['_refreshStartEndIndex'](_0x654f06),this['_setDistance'](_0x654f06,'isRemoved');}_0x654f06=_0x654f06['filter'](_0x1e5d6b=>!(_0x1e5d6b['isAdded']&&_0x1e5d6b['isRemoved']));const _0x2a2f13=new Map(_0x35c53e['model'][_0x2507ee]['deletions']['markers']),_0x679321=new Set(_0x443c44['keys']());for(const _0x499916 of _0x2a2f13['keys']())_0x679321['delete'](_0x499916);this['_markSuggestions'](_0x654f06,_0x679321),this['_fixObsoleteTags'](_0x654f06),_0x654f06=this['_removeMissingPairs'](_0x654f06),_0x654f06=this['_markMismatchedRemovedTags'](_0x654f06),_0x654f06=this['_removeUnsupportedChanges'](_0x654f06);const {root:_0x2b97cf,changes:_0x1ae508}=this['_makeModelFromTape'](_0x654f06,_0x29161c,_0x2507ee);_0x3dd71c['model'][_0x2507ee]=_0x2b97cf;const _0x46ba85=_0xd540db['get'](_0x2507ee);if(_0x46ba85){const _0x14da0e=_0x29161c['get'](_0x46ba85['userId']),_0x46e5ab=new r({'author':_0x14da0e,'type':_0x46ba85['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2507ee});_0x1ae508['unshift'](_0x46e5ab),_0x3dd71c['attributes'][_0x2507ee]['revisionHistoryAttachChange']=_0x46e5ab['id'];}_0x3dd71c['changes']=_0x3dd71c['changes']['concat'](_0x1ae508);}return _0x3dd71c;}['_markMarkers'](_0xf202b8,_0x1f48a7){for(let _0x24df8e=0x0;_0x24df8e<_0xf202b8['length'];_0x24df8e++)for(const [_0x13d0a7,_0x32e264]of _0x1f48a7)!_0x32e264['isCollapsed']&&_0x32e264['start']['isEqual'](_0xf202b8[_0x24df8e]['previousPosition'])&&_0xf202b8[_0x24df8e]['markersStart']['push'](_0x13d0a7),_0x32e264['end']['isEqual'](_0xf202b8[_0x24df8e]['nextPosition'])&&_0xf202b8[_0x24df8e]['markersEnd']['push'](_0x13d0a7);}['_joinTapes'](_0x39e77a,_0x4e2791){let _0xafc46e=[],_0x52024b=0x0,_0x5c03e6=0x0;for(;_0x52024b<_0x39e77a['length']||_0x5c03e6<_0x4e2791['length'];){const _0x4563a9=_0x39e77a[_0x52024b]||{},_0x296de6=_0x4e2791[_0x5c03e6]||{};if(_0x4563a9['id']==_0x296de6['id'])_0x52024b++,_0x5c03e6++,_0xafc46e['push'](_0x4563a9);else{if(_0x296de6['isRemoved']&&_0x4563a9['isAdded']){const {commonTape:_0x33d8e4,iEnd:_0x281fb2,jEnd:_0x1af130}=this['_threeWayMerge'](_0x39e77a,_0x52024b,_0x4e2791,_0x5c03e6);_0xafc46e=_0xafc46e['concat'](_0x33d8e4),_0x52024b=_0x281fb2,_0x5c03e6=_0x1af130;}else _0x296de6['isRemoved']?(_0x5c03e6++,_0xafc46e['push'](_0x296de6)):(_0x52024b++,_0xafc46e['push'](_0x4563a9));}}return _0xafc46e;}['_markSuggestions'](_0x265eb8,_0x1afbff){const _0x3914e5=[];for(let _0x449d91=0x0;_0x449d91<_0x265eb8['length'];_0x449d91++){for(let _0x129c0e=0x0;_0x129c0e<_0x265eb8[_0x449d91]['markersStart']['length'];_0x129c0e++){const _0x1bc88f=_0x265eb8[_0x449d91]['markersStart'][_0x129c0e];if(!_0x1afbff['has'](_0x1bc88f))continue;const {group:_0x5a8f9a,type:_0x127694,authorId:_0x1b7d21}=_0xf45ac(_0x1bc88f);'revision-suggestion'!=_0x5a8f9a||'insertion'!=_0x127694&&'deletion'!=_0x127694||(_0x3914e5['unshift']({'type':_0x127694,'name':_0x1bc88f,'userId':_0x1b7d21}),_0x265eb8[_0x449d91]['markersStart']['splice'](_0x129c0e,0x1),_0x129c0e--);}_0x196f37(_0x265eb8[_0x449d91]);for(let _0x302296=0x0;_0x302296<_0x265eb8[_0x449d91]['markersEnd']['length'];_0x302296++){const _0xde07e7=_0x265eb8[_0x449d91]['markersEnd'][_0x302296];if(!_0x1afbff['has'](_0xde07e7))continue;const {group:_0x16bf14,type:_0x22ef0e}=_0xf45ac(_0xde07e7);if('revision-suggestion'!=_0x16bf14||'insertion'!=_0x22ef0e&&'deletion'!=_0x22ef0e)continue;_0x265eb8[_0x449d91]['markersEnd']['splice'](_0x302296,0x1),_0x302296--;const _0x23a280=_0x3914e5['findIndex'](_0xa3b106=>_0xa3b106['name']==_0xde07e7);_0x23a280>-0x1&&_0x3914e5['splice'](_0x23a280,0x1);}}function _0xf45ac(_0x807a58){const _0x386ede=_0x807a58['split'](':');return{'group':_0x386ede[0x0],'type':_0x386ede[0x1],'subType':_0x386ede['length']>=0x5?_0x386ede[0x2]:null,'id':_0x386ede['length']<0x5?_0x386ede[0x2]:_0x386ede[0x3],'authorId':_0x386ede['length']<0x5?_0x386ede[0x3]:_0x386ede[0x4],'markerCount':0x6==_0x386ede['length']?_0x386ede[0x5]:null};}function _0x196f37(_0x2ea023){for(let _0x4a8c13=0x0;_0x4a8c13<_0x3914e5['length'];_0x4a8c13++){if(_0x2ea023['isAdded']&&'insertion'==_0x3914e5[_0x4a8c13]['type'])return _0x2ea023['isAddSuggestion']=_0x3914e5[_0x4a8c13],void delete _0x2ea023['isAdded'];if(!_0x2ea023['isAdded']&&!_0x2ea023['isRemoved']&&'deletion'==_0x3914e5[_0x4a8c13]['type'])return void(_0x2ea023['isRemoveSuggestion']=_0x3914e5[_0x4a8c13]);}}}['_setDistance'](_0x1e3176,_0x51c856){let _0x4d3392=0x0,_0x111e27=!0x1;const _0x481412=new Map();for(const _0xd19d3f of _0x1e3176)_0xd19d3f[_0x51c856]?_0x111e27&&(_0x4d3392++,_0x111e27=!0x1):(_0x4d3392++,_0x111e27=!0x0),_0x481412['set'](_0xd19d3f['id'],_0x4d3392);for(let _0x34131d=0x0;_0x34131d<_0x1e3176['length'];_0x34131d++){if('isRemoved'==_0x51c856&&_0x1e3176[_0x34131d]['isAdded']||'isAdded'==_0x51c856&&_0x1e3176[_0x34131d]['isRemoved'])continue;if('text'==_0x1e3176[_0x34131d]['type']){_0x1e3176[_0x34131d]['distance']=0x0;continue;}const _0x8a9da2=_0x481412['get'](_0x1e3176[_0x34131d]['pairId']),_0x3dc475=_0x481412['get'](_0x1e3176[_0x34131d]['id']);_0x1e3176[_0x34131d]['distance']=_0x8a9da2-_0x3dc475;}}['_getRevisionsRange'](_0x5c3cd8,_0xed9d20,_0x181395=!0x1){const _0x157b1a=[];let _0x158bcc=this['repository']['getIndex'](_0x5c3cd8),_0x42d957=this['repository']['getIndex'](_0xed9d20);for(-0x1==_0x42d957&&(_0x42d957=this['repository']['_revisions']['length'],_0x181395=!0x1);_0x158bcc<_0x42d957;)_0x157b1a['push'](this['repository']['getRevision'](_0x158bcc)),_0x158bcc++;return _0x181395&&_0x157b1a['push'](this['repository']['getRevision'](_0x158bcc)),_0x157b1a;}['_threeWayMerge'](_0x189fee,_0x427537,_0x2c19fb,_0x2cfa6f){const _0x1c77bf=this['editor']['model']['schema'];let _0x11effc=_0x427537;for(;_0x189fee[_0x11effc]&&_0x189fee[_0x11effc]['isAdded'];)_0x11effc++;let _0x17c39e=_0x2cfa6f;for(;_0x2c19fb[_0x17c39e]&&_0x2c19fb[_0x17c39e]['isRemoved'];)_0x17c39e++;_0x514bd5(_0x189fee,_0x427537,_0x11effc),_0x514bd5(_0x2c19fb,_0x2cfa6f,_0x17c39e);const _0x193970=_0x2c19fb['slice'](_0x2cfa6f,_0x17c39e)['concat'](_0x189fee['slice'](_0x427537,_0x11effc));return _0x193970['sort']((_0x43812d,_0x10ee95)=>_0x43812d['side']!=_0x10ee95['side']?_0x43812d['side']-_0x10ee95['side']:_0x43812d['level']!=_0x10ee95['level']?_0x43812d['level']-_0x10ee95['level']:_0x43812d['distance']!=_0x10ee95['distance']?_0x10ee95['distance']-_0x43812d['distance']:!!_0x43812d['isAdded']!=!!_0x10ee95['isAdded']?-0x1==_0x43812d['side']||0x0==_0x43812d['side']?_0x43812d['isAdded']?-0x1:0x1:_0x43812d['isAdded']?0x1:-0x1:_0x43812d['index']-_0x10ee95['index']),{'commonTape':_0x193970,'iEnd':_0x11effc,'jEnd':_0x17c39e};function _0x514bd5(_0x554917,_0x38ed6d,_0x15d532){let _0x4c0be6=-0x1,_0xb3fb64=Number['POSITIVE_INFINITY'],_0x2c5233=!0x0;for(let _0x4fffb9=_0x38ed6d;_0x4fffb9<_0x15d532;_0x4fffb9++)if(_0x1c77bf['isInline'](_0x554917[_0x4fffb9]['item'])||(_0x2c5233=!0x1),_0x554917[_0x4fffb9]['item']['startIndex']<_0x38ed6d&&(_0x4c0be6=_0x4fffb9),_0x554917[_0x4fffb9]['item']['endIndex']>=_0x15d532){_0xb3fb64=_0x4fffb9;break;}_0x2c5233&&(_0x4c0be6=_0x15d532-0x1);for(let _0x993d3f=_0x38ed6d;_0x993d3f<_0x15d532;_0x993d3f++)_0x554917[_0x993d3f]['side']=_0x993d3f<=_0x4c0be6?-0x1:_0x993d3f<_0xb3fb64?0x0:0x1,_0x554917[_0x993d3f]['index']=_0x993d3f;let _0x594352=0x0;for(let _0x2c29ea=_0x38ed6d;_0x2c29ea<=_0x4c0be6;_0x2c29ea++)0x0==_0x554917[_0x2c29ea]['distance']?_0x554917[_0x2c29ea]['level']=_0x594352:(_0x594352++,_0x554917[_0x2c29ea]['level']=_0x594352,_0x594352++);for(let _0x327081=_0x38ed6d;_0x327081<_0x15d532;_0x327081++)0x0==_0x554917[_0x327081]['side']&&(_0x554917[_0x327081]['level']=_0x594352);_0x594352=0x0;for(let _0x3bc6f1=_0x15d532-0x1;_0x3bc6f1>=_0xb3fb64;_0x3bc6f1--)0x0==_0x554917[_0x3bc6f1]['distance']?_0x554917[_0x3bc6f1]['level']=_0x594352:(_0x594352--,_0x554917[_0x3bc6f1]['level']=_0x594352,_0x594352--);}}['_fixObsoleteTags'](_0x2f948c){const _0x59b044=new Map(),_0x3a6237=this['editor']['model']['schema'];for(let _0x51c54f=0x1;_0x51c54f<_0x2f948c['length'];_0x51c54f++){let _0x13ddec,_0xef260,_0x904c64;const _0x4e19b2=_0x2f948c[_0x51c54f],_0x4bca31=_0x2f948c[_0x51c54f-0x1];if('text'==_0x4e19b2['type'])continue;if(_0x4e19b2['type']!=_0x4bca31['type'])continue;if(!_0x3a6237['isBlock'](_0x4bca31['item'])||_0x3a6237['isLimit'](_0x4bca31['item']))continue;if(!_0x3a6237['isBlock'](_0x4e19b2['item'])||_0x3a6237['isLimit'](_0x4e19b2['item']))continue;if((_0x2f948c[_0x51c54f]['isAdded']||_0x2f948c[_0x51c54f]['isAddSuggestion'])&&_0x2f948c[_0x51c54f-0x1]['isRemoved'])_0x13ddec=_0x2f948c[_0x51c54f],_0xef260=_0x2f948c[_0x51c54f-0x1],_0x904c64=_0x51c54f-0x1;else{if(!_0x2f948c[_0x51c54f]['isRemoved']||!_0x2f948c[_0x51c54f-0x1]['isAdded']&&!_0x2f948c[_0x51c54f-0x1]['isAddSuggestion'])continue;_0x13ddec=_0x2f948c[_0x51c54f-0x1],_0xef260=_0x2f948c[_0x51c54f],_0x904c64=_0x51c54f;}const _0xce99d0=_0x13ddec['level']==_0xef260['level'],_0x3f8e18=Math['abs'](_0x13ddec['level'])<Math['abs'](_0xef260['level'])&&0x0==_0xef260['distance'];(_0xce99d0||_0x3f8e18)&&(_0x59b044['set'](_0xef260['id'],_0x13ddec['id']),_0x2f948c['splice'](_0x904c64,0x1),_0x51c54f--,_0x13ddec['isAdded']=!0x1);}for(let _0xc30243=0x0;_0xc30243<_0x2f948c['length'];_0xc30243++)_0x59b044['has'](_0x2f948c[_0xc30243]['pairId'])&&(_0x2f948c[_0xc30243]['pairId']=_0x59b044['get'](_0x2f948c[_0xc30243]['pairId']));}['_removeMissingPairs'](_0x597c13){const _0x1bd1df=new Set(_0x597c13['map'](_0x4ed20a=>_0x4ed20a['id']));for(let _0xc0c09c=0x0;_0xc0c09c<_0x597c13['length'];_0xc0c09c++)_0x1bd1df['has'](_0x597c13[_0xc0c09c]['pairId'])||0x0==_0x597c13[_0xc0c09c]['distance']||(_0x597c13[_0xc0c09c]['isIncorrect']=!0x0);return _0x597c13['filter'](_0x1b535a=>!_0x1b535a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x33479e){const _0xb7096e=new Set();for(let _0x547489=0x0;_0x547489<_0x33479e['length'];_0x547489++){if(_0xb7096e['has'](_0x33479e[_0x547489]['id'])&&_0x33479e[_0x547489]['isRemoved']&&(_0x33479e[_0x547489]['isIncorrect']=!0x0),_0x33479e[_0x547489]['isIncorrect'])continue;if(0x0==_0x33479e[_0x547489]['distance'])continue;if('elementStart'!=_0x33479e[_0x547489]['type'])continue;if(null==_0x33479e[_0x547489]['pairId'])continue;let _0x5bad69=_0x547489+0x1,_0x3f581c=0x0;for(;_0x33479e[_0x5bad69]['id']!=_0x33479e[_0x547489]['pairId'];)'elementStart'==_0x33479e[_0x5bad69]['type']?_0x3f581c++:'elementEnd'==_0x33479e[_0x5bad69]['type']&&_0x3f581c--,_0x5bad69++;if(0x0!=_0x3f581c){if(_0x33479e[_0x547489]['isRemoved'])_0x33479e[_0x547489]['isIncorrect']=!0x0;else{for(;_0x5bad69!=_0x547489;)_0x33479e[_0x5bad69]['isRemoved']&&0x0!=_0x33479e[_0x5bad69]['distance']&&(_0x33479e[_0x5bad69]['isIncorrect']=!0x0,_0xb7096e['add'](_0x33479e[_0x5bad69]['pairId'])),_0x5bad69--;}}}return _0x33479e['filter'](_0x329673=>!_0x329673['isIncorrect']);}['_removeUnsupportedChanges'](_0x619245){const _0x8d3cb4=this['editor']['model']['schema'];for(let _0x2cb338=0x0;_0x2cb338<_0x619245['length'];_0x2cb338++){if(!(_0x619245[_0x2cb338]['isAdded']||_0x619245[_0x2cb338]['isAddSuggestion']||_0x619245[_0x2cb338]['isRemoved']||_0x619245[_0x2cb338]['isRemoveSuggestion']))continue;if(0x0==_0x619245[_0x2cb338]['distance'])continue;const _0x1ae4df=_0x619245[_0x2cb338]['item'];_0x8d3cb4['isBlock'](_0x1ae4df)||_0x8d3cb4['isLimit'](_0x1ae4df)||(_0x619245[_0x2cb338]['isAdded']&&delete _0x619245[_0x2cb338]['isAdded'],_0x619245[_0x2cb338]['isAddSuggestion']&&delete _0x619245[_0x2cb338]['isAddSuggestion'],_0x619245[_0x2cb338]['isRemoveSuggestion']&&delete _0x619245[_0x2cb338]['isRemoveSuggestion'],_0x619245[_0x2cb338]['isRemoved']&&(_0x619245[_0x2cb338]['isIncorrect']=!0x0));}return _0x619245['filter'](_0x216d0b=>!_0x216d0b['isIncorrect']);}['_makeModelFromTape'](_0x534c92,_0x175fa1,_0x4b75f6){const _0x53a3f8=new gt(),_0x3a8da7=[],_0xcb4bc6=new Map(),_0x15028b=this['editor']['model'],_0x5b991a=_0x15028b['schema'],_0x2e4e76=[_0x53a3f8],_0x1a3436={},_0x7189c9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x168c84=null;const _0x21acec=[0x0];for(let _0x380c6a=0x0;_0x380c6a<_0x534c92['length'];_0x380c6a++)if('elementStart'===_0x534c92[_0x380c6a]['type']){_0x534c92[_0x380c6a]['previousPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec);const _0xa2fa0d=new ut(_0x534c92[_0x380c6a]['item']['name'],_0x534c92[_0x380c6a]['item']['getAttributes']());_0x2e4e76[0x0]['_appendChild'](_0xa2fa0d),_0x21acec['push'](0x0),_0x2e4e76['unshift'](_0xa2fa0d),_0x534c92[_0x380c6a]['nextPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec);}else'elementEnd'===_0x534c92[_0x380c6a]['type']?(_0x2e4e76['shift'](),_0x534c92[_0x380c6a]['previousPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec),_0x21acec['pop'](),_0x21acec[_0x21acec['length']-0x1]++,_0x534c92[_0x380c6a]['nextPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec)):(_0x534c92[_0x380c6a]['previousPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec),_0x168c84?_0x168c84['_data']+=_0x534c92[_0x380c6a]['item']['data']:_0x168c84=new mt(_0x534c92[_0x380c6a]['item']['data'],_0x534c92[_0x380c6a]['item']['getAttributes']()),_0x534c92[_0x380c6a+0x1]&&'text'===_0x534c92[_0x380c6a+0x1]['type']&&_0x1eee55(_0x168c84,_0x534c92[_0x380c6a+0x1]['item'])||(_0x2e4e76[0x0]['_appendChild'](_0x168c84),_0x168c84=null),_0x21acec[_0x21acec['length']-0x1]+=_0x534c92[_0x380c6a]['item']['offsetSize'],_0x534c92[_0x380c6a]['nextPosition']=_0x15028b['createPositionFromPath'](_0x53a3f8,_0x21acec));for(let _0x38356d=0x0;_0x38356d<_0x534c92['length'];_0x38356d++){const _0x13d5f9=_0x534c92[_0x38356d]['previousPosition'],_0x3d4ac2=_0x534c92[_0x38356d]['nextPosition'];for(const _0x3f2f57 of _0x534c92[_0x38356d]['markersStart'])_0xcb4bc6['set'](_0x3f2f57,{'start':_0x13d5f9,'end':null});_0x44b4c7('isRemoveSuggestion',_0x38356d,_0x13d5f9,_0x3d4ac2),_0x44b4c7('isAddSuggestion',_0x38356d,_0x13d5f9,_0x3d4ac2),_0x44b4c7('isRemoved',_0x38356d,_0x13d5f9,_0x3d4ac2),_0x44b4c7('isAdded',_0x38356d,_0x13d5f9,_0x3d4ac2);for(const _0x2ea6ea of _0x534c92[_0x38356d]['markersEnd']){const _0x32307d=_0xcb4bc6['get'](_0x2ea6ea);_0x32307d?_0x32307d['end']=_0x3d4ac2:_0xcb4bc6['set'](_0x2ea6ea,{'start':_0x3d4ac2,'end':_0x3d4ac2});}}for(const [_0x2826a9,_0x37fa25]of _0xcb4bc6){const _0x4dd1aa=this['editor']['model']['createRange'](_0x37fa25['start'],_0x37fa25['end']);_0x53a3f8['markers']['set'](_0x2826a9,_0x4dd1aa);}return _0x3a8da7['sort']((_0x349ece,_0x29ce4e)=>{const _0x472e47=_0x53a3f8['markers']['get']('revision:'+_0x349ece['id']),_0x39e821=_0x53a3f8['markers']['get']('revision:'+_0x29ce4e['id']);return _0x472e47['start']['isBefore'](_0x39e821['start'])?-0x1:_0x472e47['start']['isAfter'](_0x39e821['start'])?0x1:_0x472e47['end']['isBefore'](_0x39e821['end'])?-0x1:_0x472e47['end']['isAfter'](_0x39e821['end'])?0x1:'add'===_0x349ece['type']?-0x1:0x1;}),{'root':_0x53a3f8,'changes':_0x3a8da7};function _0x44b4c7(_0x16043d,_0x3cb8d2,_0x2c7d05,_0x5787cb){const _0x14ef11=!!_0x534c92[_0x3cb8d2][_0x16043d],_0x10ec0c=_0x14ef11?_0x534c92[_0x3cb8d2][_0x16043d]['userId']:null,_0x8bfc68=_0x3cb8d2===_0x534c92['length']-0x1,_0x364a8d=_0x7189c9[_0x16043d][0x0],_0x359c2b=_0x5b991a['isObject'](_0x534c92[_0x3cb8d2]['item']);!_0x1a3436[_0x16043d]&&_0x14ef11?_0x1a3436[_0x16043d]={'start':_0x2c7d05,'tapeItem':_0x534c92[_0x3cb8d2],'userId':_0x10ec0c,'type':_0x16043d}:_0x1a3436[_0x16043d]&&!_0x14ef11?(_0x1a3436[_0x16043d]['end']=_0x2c7d05,_0x44d276(_0x1a3436[_0x16043d]),_0x1a3436[_0x16043d]=null):_0x1a3436[_0x16043d]&&_0x14ef11&&_0x1a3436[_0x16043d]['userId']!==_0x10ec0c&&(_0x1a3436[_0x16043d]['end']=_0x2c7d05,_0x364a8d&&_0x364a8d['userId']===_0x1a3436[_0x16043d]['userId']||_0x44d276(_0x1a3436[_0x16043d]),_0x1a3436[_0x16043d]={'start':_0x2c7d05,'tapeItem':_0x534c92[_0x3cb8d2],'userId':_0x10ec0c,'type':_0x16043d}),_0x1a3436[_0x16043d]&&_0x359c2b&&('elementStart'!==_0x534c92[_0x3cb8d2]['type']||_0x364a8d&&_0x364a8d['userId']===_0x10ec0c||_0x7189c9[_0x16043d]['unshift']({'userId':_0x10ec0c,'object':_0x534c92[_0x3cb8d2]['item'],'change':_0x1a3436[_0x16043d]}),'elementEnd'===_0x534c92[_0x3cb8d2]['type']&&_0x364a8d&&_0x364a8d['object']===_0x534c92[_0x3cb8d2]['item']&&(_0x7189c9[_0x16043d]['shift'](),_0x1a3436[_0x16043d]=_0x364a8d['change'])),_0x1a3436[_0x16043d]&&_0x8bfc68&&(_0x1a3436[_0x16043d]['end']=_0x5787cb,_0x44d276(_0x1a3436[_0x16043d]),_0x1a3436[_0x16043d]=null);}function _0x44d276({start:_0x494307,end:_0x50c3ac,tapeItem:_0x209cd7,userId:_0x1150f7,type:_0x512dce}){const _0x3bea6c=_0x209cd7['item'],_0x24f69b=_0x15028b['schema']['isBlock'](_0x3bea6c)&&!_0x15028b['schema']['isLimit'](_0x3bea6c),_0x2cce6c=_0x494307['nodeAfter']==_0x50c3ac['parent']&&_0x50c3ac['isAtStart'];if(_0x24f69b&&_0x2cce6c)return;const _0x4573c7=_0x15028b['createRange'](_0x494307,_0x50c3ac),_0xc63f3d=_0x175fa1['get'](_0x1150f7),_0x25c123=new r({'author':_0xc63f3d,'type':'isAdded'==_0x512dce||'isAddSuggestion'==_0x512dce?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x512dce||'isRemoveSuggestion'==_0x512dce},'createdAt':new Date(),'rootName':_0x4b75f6});_0x3a8da7['push'](_0x25c123),_0x53a3f8['markers']['set']('revision:'+_0x25c123['id'],_0x4573c7);}function _0x1eee55(_0x26df8e,_0x6d71ff){const _0x49212b=_0x26df8e['getAttributes'](),_0x2bba99=_0x6d71ff['getAttributes']();for(const _0x3e0c60 of _0x49212b){if(_0x3e0c60[0x1]!==_0x6d71ff['getAttribute'](_0x3e0c60[0x0]))return!0x1;_0x2bba99['next']();}return _0x2bba99['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x190ae0=>{const _0x469c3c=_0x190ae0['markerName']['split'](':')[0x1],_0x2ebe52=this['_getChangeFromId'](_0x469c3c);if(!_0x2ebe52)return null;const _0x11624d='add'==_0x2ebe52['type']?'insertion':'deletion',_0x4ad25a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11624d];return _0x2ebe52['data']['isSuggestion']&&_0x4ad25a['push']('ck-suggestion-marker-'+_0x11624d+'-new'),this['activeChange']==_0x2ebe52&&_0x4ad25a['push']('ck-suggestion-marker--active'),{'classes':_0x4ad25a,'attributes':{'data-change-id':_0x469c3c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4d239d=>{_0x4d239d['on']('element:pre',(_0x54fb27,_0x36f157,_0x3664c6)=>{const _0xef4324=_0x36f157['viewItem']['getChild'](0x0);if(!_0xef4324||!_0xef4324['is']('element','code'))return;if(!_0x3664c6['consumable']['consume'](_0xef4324,{'attributes':['vid_start','vid_end']}))return;const _0x434089=_0x36f157['modelRange']['start']['nodeAfter'];_0x3664c6['writer']['setAttribute']('vid_start',_0xef4324['getAttribute']('vid_start'),_0x434089),_0x3664c6['writer']['setAttribute']('vid_end',_0xef4324['getAttribute']('vid_end'),_0x434089);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xce958f=>{_0xce958f['on']('element',(_0x2c8f96,_0x220513,_0x3c100c)=>{if(!_0x3c100c['consumable']['consume'](_0x220513['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x220513['modelRange']['isCollapsed'])return;const _0x39dc81=_0x220513['modelRange']['start']['nodeAfter'];_0x39dc81['hasAttribute']('vid_start')||_0x39dc81['hasAttribute']('vid')||(_0x3c100c['writer']['setAttribute']('vid_start',_0x220513['viewItem']['getAttribute']('vid_start'),_0x39dc81),_0x3c100c['writer']['setAttribute']('vid_end',_0x220513['viewItem']['getAttribute']('vid_end'),_0x39dc81));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4e225f=>_0x4e225f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5152dc,[,_0x81a159])=>{['vid_start','vid_end','vid']['includes'](_0x81a159)&&(_0x5152dc['return']=!0x0,_0x5152dc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x52c2f9=>{_0x52c2f9['on']('attribute:vid',(_0x3f2b90,_0x2aea03,_0x46814b)=>{if('\x20'!=_0x2aea03['item']['data']||_0x2aea03['item']['parent']['maxOffset']>0x1)return;if(!_0x46814b['consumable']['consume'](_0x2aea03['item'],_0x3f2b90['name']))return;const _0xe4a8a5=_0x46814b['writer'],_0x63d92f=_0x46814b['mapper']['toViewRange'](_0x2aea03['range']);_0xe4a8a5['wrap'](_0x63d92f,_0xe4a8a5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x44f657){const _0x42476b=_0x44f657['plugins']['get']('RevisionViewer');return(_0x593582,_0x32ea8f,_0x12a334)=>{const _0x10c9d2=_0x32ea8f['markerName']['split'](':')[0x1],_0x29820f=_0x42476b['_getChangeFromId'](_0x10c9d2);if(!_0x29820f)return null;const _0x40183e='add'==_0x29820f['type']?'split':'merge';if(!_0x12a334['consumable']['test'](_0x32ea8f['markerRange'],_0x593582['name']))return;const _0x33c58b=_0x32ea8f['markerRange']['getWalker'](),_0x1bf3ac=_0x32ea8f['markerRange']['start'],_0x19b5ac=_0x44f657['model']['schema'];let _0x5ebbdb=null,_0x1ee2f2=null,_0x280251=!0x1,_0x4949a5=!0x1;for(const _0xddcd24 of _0x33c58b){const _0x46b4c4=_0xddcd24['item'];_0x280251=_0x280251||_0x19b5ac['isContent'](_0x46b4c4);const _0x45f830=_0x12a334['mapper']['toViewElement'](_0x46b4c4);if(_0x45f830&&_0x45f830['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xddcd24['type']&&(_0x19b5ac['isBlock'](_0x46b4c4)&&!_0x19b5ac['isLimit'](_0x46b4c4)&&(_0x46b4c4['nextSibling']||_0x1bf3ac['isAtEnd']?_0x5ebbdb&&_0x5ebbdb['parent']==_0x46b4c4||(_0x5ebbdb=_0x46b4c4,_0x49e7de(_0xddcd24['previousPosition']),_0x4949a5=!0x0):_0x1ee2f2=_0x1ee2f2||_0xddcd24['previousPosition']));}function _0x49e7de(_0x35b55){const _0x5c9ecf=_0x12a334['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x40183e}),_0x3cdb38=_0x12a334['mapper']['toViewPosition'](_0x35b55);_0x29820f['data']['isSuggestion']&&_0x12a334['writer']['addClass']('ck-suggestion-marker-'+_0x40183e+'-new',_0x5c9ecf),_0x42476b['activeChange']==_0x29820f&&_0x12a334['writer']['addClass']('ck-suggestion-marker--active',_0x5c9ecf),_0x12a334['writer']['insert'](_0x3cdb38,_0x5c9ecf),_0x12a334['mapper']['bindElementToMarker'](_0x5c9ecf,_0x32ea8f['markerName']);}_0x280251||_0x4949a5||!_0x1ee2f2||_0x49e7de(_0x1ee2f2);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x21e811,_0x263af5,_0x559847)=>{const _0x2b6868=_0x559847['mapper']['markerNameToElements'](_0x263af5['markerName']);if(_0x2b6868){for(const _0x559446 of _0x2b6868)(_0x559446['hasClass']('ck-suggestion-marker-split')||_0x559446['hasClass']('ck-suggestion-marker-merge'))&&(_0x559847['mapper']['unbindElementFromMarkerName'](_0x559446,_0x263af5['markerName']),_0x559847['writer']['remove'](_0x559446));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3198fc,_0x10e493,_0x1e9aa3)=>{const _0x5d0fbd=_0x10e493['markerName']['split'](':')[0x1],_0x21b2ff=this['_getChangeFromId'](_0x5d0fbd);if(!_0x21b2ff)return null;const _0x588bcd='add'==_0x21b2ff['type']?'split':'merge';if(_0x1e9aa3['consumable']['test'](_0x10e493['markerRange'],_0x3198fc['name']))for(const _0x350d3b of _0x10e493['markerRange']['getItems']()){if(!_0x350d3b['is']('element','softBreak'))continue;const _0x18cfe4=_0x1e9aa3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x588bcd}),_0x1fff80=_0x1e9aa3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x350d3b));_0x21b2ff['data']['isSuggestion']&&_0x1e9aa3['writer']['addClass']('ck-suggestion-marker-'+_0x588bcd+'-new',_0x18cfe4),this['activeChange']==_0x21b2ff&&_0x1e9aa3['writer']['addClass']('ck-suggestion-marker--active',_0x18cfe4),_0x1e9aa3['writer']['insert'](_0x1fff80,_0x18cfe4),_0x1e9aa3['mapper']['bindElementToMarker'](_0x18cfe4,_0x10e493['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4215f5=>{for(const _0x2758d2 of this['editor']['model']['document']['getRootNames']()){const _0x2a4fcd=this['editor']['model']['document']['getRoot'](_0x2758d2),_0x477c2e=this['editor']['editing']['view']['document']['getRoot'](_0x2758d2);if(_0x477c2e){const _0x244db0=_0x2a4fcd['getAttribute']('revisionHistoryAttachChange');if(_0x4215f5['removeAttribute']('data-change-id',_0x477c2e),_0x4215f5['removeClass']('ck-revision-history-root-add',_0x477c2e),_0x4215f5['removeClass']('ck-revision-history-root-remove',_0x477c2e),_0x4215f5['removeClass']('ck-revision-history-root--active',_0x477c2e),_0x244db0){const _0x5d3ac3=this['_getChangeFromId'](_0x244db0);if(!_0x5d3ac3)return null;_0x4215f5['setAttribute']('data-change-id',_0x244db0,_0x477c2e),_0x4215f5['addClass']('ck-revision-history-root-'+_0x5d3ac3['type'],_0x477c2e),this['activeChange']==_0x5d3ac3&&_0x4215f5['addClass']('ck-revision-history-root--active',_0x477c2e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x242d20=>'revision-comment:'+_0x242d20,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x885aa8=>'revision-suggestion:'+_0x885aa8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9664dd=>({'name':'suggestion:'+_0x9664dd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e1535=>{const _0x50ed14=_0x4e1535['markerName']['split'](':')[0x1];return'insertion'!=_0x50ed14&&'deletion'!=_0x50ed14?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x50ed14]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4ae243,_0x59261e,_0x4c8e5d)=>{const _0x4bcffa=_0x4c8e5d['mapper']['markerNameToElements'](_0x59261e['markerName']);if(_0x4bcffa){for(const _0x8f786 of _0x4bcffa)_0x8f786['is']('uiElement')&&(_0x4c8e5d['mapper']['unbindElementFromMarkerName'](_0x8f786,_0x59261e['markerName']),_0x4c8e5d['writer']['remove'](_0x8f786));}},{'priority':'high'});}['_getChangeFromId'](_0x276d26){return this['_changeIdToChange']['get'](_0x276d26);}['_getViewForChange'](_0x174055){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x174055),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x347637,_0x55aae6,_0x27d971,_0x262006)=>{_0x262006&&this['_balloon']['remove'](_0x262006),_0x27d971&&(this['_balloon']['add']({'view':_0x27d971,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x18849d=this['editor']['editing'],_0x5232e8=this['_getChangeFromId'](_0x27d971['changeId']);let _0xd8c0b3;if(_0x5232e8['data']['isOnRoot']){const _0x1a72d6=_0x18849d['view']['getDomRoot'](_0x5232e8['rootName']);_0xd8c0b3=Array['from'](_0x1a72d6['getClientRects']());}else{const _0x48a133=this['editor']['model']['markers']['get']('revision:'+_0x27d971['changeId']);_0xd8c0b3=Array['from'](_0x18849d['mapper']['markerNameToElements'](_0x48a133['name']))['map'](_0x33fce2=>_0x18849d['view']['domConverter']['mapViewToDom'](_0x33fce2))['map'](_0x584a2b=>Array['from'](_0x584a2b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xd8c0b3[0x0];return _0xd8c0b3['find'](_0x8b8eb5=>_0x8b8eb5['top']-0x3<=this['_activeViewTarget']['y']&&_0x8b8eb5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x8b8eb5['left']-0x3<=this['_activeViewTarget']['x']&&_0x8b8eb5['right']+0x3>=this['_activeViewTarget']['x'])||_0xd8c0b3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x16e2be,_0x802efe,_0x4dc8d2,_0x3fe739)=>{this['activeView']=_0x4dc8d2?this['_getViewForChange'](_0x4dc8d2):null,this['editor']['model']['change'](()=>{const _0xd25dc1=this['editor']['editing'];_0x3fe739&&(_0x3fe739['data']['isOnRoot']?_0xd25dc1['view']['change'](_0x4be6ae=>{_0x4be6ae['removeClass']('ck-revision-history-root--active',_0xd25dc1['view']['document']['getRoot'](_0x3fe739['rootName']));}):_0xd25dc1['reconvertMarker']('revision:'+_0x3fe739['id'])),_0x4dc8d2&&(_0x4dc8d2['data']['isOnRoot']?_0xd25dc1['view']['change'](_0x3611dd=>{_0x3611dd['addClass']('ck-revision-history-root--active',_0xd25dc1['view']['document']['getRoot'](_0x4dc8d2['rootName']));}):_0xd25dc1['reconvertMarker']('revision:'+_0x4dc8d2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x410306,_0x109e1a)=>{if(this['activeChange'])return;const _0x29a9d0=this['_findChangeIdFromDomTarget'](_0x109e1a['target']),_0x117e8c=this['_changeIdToChange']['get'](_0x29a9d0);_0x117e8c?(this['_activeViewTarget']={'x':_0x109e1a['domEvent']['x'],'y':_0x109e1a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x117e8c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4437e9,_0x46faa0)=>{const _0xff6a8c=this['_findChangeIdFromDomTarget'](_0x46faa0['target']),_0x4496c1=this['_changeIdToChange']['get'](_0xff6a8c);_0x4496c1?(this['_activeViewTarget']={'x':_0x46faa0['domEvent']['x'],'y':_0x46faa0['domEvent']['y']},_0x4496c1===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4496c1):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1da828){do{const _0x266e7e=_0x1da828['getAttribute']('data-change-id');if(_0x266e7e)return _0x266e7e;_0x1da828=_0x1da828['parent'];}while(_0x1da828);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xdc5f39=>{for(const _0x490479 of this['editor']['model']['markers'])_0xdc5f39['removeMarker'](_0x490479);});}}function X(_0x16a850,_0x3762ba){return(_0x327b86,_0x332472,_0x35c1b8)=>{if(!_0x35c1b8['consumable']['test'](_0x332472['markerRange'],_0x327b86['name']))return;const _0x585ee2=_0x332472['markerRange']['getWalker'](),_0x429aea=_0x332472['markerRange']['start'],_0x21c6c6=_0x16a850['model']['schema'];let _0x50cde4=null,_0x13f5e1=null,_0x593d47=!0x1,_0xe79058=!0x1;for(const _0x3d6ad5 of _0x585ee2){const _0x5c29b3=_0x3d6ad5['item'];_0x593d47=_0x593d47||_0x21c6c6['isContent'](_0x5c29b3);const _0x4902e6=_0x35c1b8['mapper']['toViewElement'](_0x5c29b3);if(_0x4902e6&&_0x4902e6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d6ad5['type']&&(_0x21c6c6['isBlock'](_0x5c29b3)&&!_0x21c6c6['isLimit'](_0x5c29b3)&&(_0x5c29b3['nextSibling']||_0x429aea['isAtEnd']?_0x50cde4&&_0x50cde4['parent']==_0x5c29b3||(_0x50cde4=_0x5c29b3,_0x5b1217(_0x3d6ad5['previousPosition']),_0xe79058=!0x0):_0x13f5e1=_0x13f5e1||_0x3d6ad5['previousPosition']));}function _0x5b1217(_0x58b1e4){const _0x2f8b05=_0x35c1b8['mapper']['toViewPosition'](_0x58b1e4),_0x156629=_0x35c1b8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3762ba});_0x35c1b8['writer']['insert'](_0x2f8b05,_0x156629),_0x35c1b8['mapper']['bindElementToMarker'](_0x156629,_0x332472['markerName']);}_0x593d47||_0xe79058||!_0x13f5e1||_0x5b1217(_0x13f5e1);};}class wt extends _0x5eb553{constructor(_0x3d1cb2){super(_0x3d1cb2);const _0x2fe4fe=_0x3d1cb2['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2fe4fe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2fe4fe,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5c8446=this['editor'],_0x4dddf0=_0x5c8446['plugins']['get'](m),_0x39470e=_0x4dddf0['isReady']?_0x4dddf0['diff']['newRevisionId']:null;_0x5c8446['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x39470e);}['refresh'](){const {isReady:_0x5275dc,isEnabled:_0x207edf,repository:_0x2fa19f,diff:_0x357b53}=this['editor']['plugins']['get'](m),_0x3dff3b=_0x357b53&&_0x2fa19f['getLaterVisibleRevision'](_0x357b53['newRevisionId']);this['isEnabled']=_0x5275dc&&_0x207edf&&Boolean(_0x3dff3b);}}class pt extends _0x5eb553{['_step'];constructor(_0x309fc6,{direction:_0x3cb99c}){super(_0x309fc6);const _0x2729af=_0x309fc6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3cb99c?0x1:-0x1,this['listenTo'](_0x2729af,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2729af,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2729af,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5e1001=this['editor'],_0x29983c=_0x5e1001['plugins']['get'](m),{isNavigationMode:_0x16d99e,currentChangeNumber:_0x3dd555}=_0x29983c;let _0x10bcb6;if(_0x29983c['activeChange']=_0x16d99e?_0x29983c['diff']['changes']['get'](_0x3dd555+this['_step']):_0x29983c['diff']['changes']['first'],_0x29983c['activeChange']['data']['isOnRoot'])_0x10bcb6=_0x5e1001['editing']['view']['getDomRoot'](_0x29983c['activeChange']['rootName']);else{const _0x2d40ee=_0x5e1001['model']['markers']['get']('revision:'+_0x29983c['activeChange']['id']);_0x10bcb6=_0x7a3ec1(_0x5e1001['editing'],_0x2d40ee);}_0x2da720({'target':_0x10bcb6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3c7b1f,currentChangeNumber:_0x2c85d3,numberOfChanges:_0x2ba8a8,isReady:_0x23469a,isEnabled:_0x4fe82f}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4fe82f&&_0x23469a&&_0x2ba8a8)&&(!_0x3c7b1f||(0x1===this['_step']?_0x2c85d3<_0x2ba8a8-0x1:_0x2c85d3>0x0));}}class _i extends _0x225fc7{constructor(_0x332dca){super(_0x332dca);const _0x4b90b1=this['bindTemplate'],_0x5855ec=new _0x5bb06b(_0x332dca),_0x2b0890=new _0x5bb06b(_0x332dca);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',(_0x241cdc,_0xe138c9)=>_0x241cdc&&_0xe138c9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9dadbb,_0x38d5fc,_0x5b6727,_0x27c138)=>{if(!_0x9dadbb)return g(_0x332dca,'Loading...');if(!_0x5b6727)return g(_0x332dca,'No\x20changes');const _0x3ddf31=g(_0x332dca,'NUMBER_OF_CHANGES',_0x5b6727);return _0x27c138?g(_0x332dca,'X_OF_Y_CHANGES',[_0x38d5fc+0x1,_0x5b6727]):_0x3ddf31;}),_0x5855ec['set']({'label':g(_0x332dca,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3aaf5a}),_0x2b0890['set']({'label':g(_0x332dca,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x503175}),_0x5855ec['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b0890['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5855ec['on']('execute',()=>this['fire']('execute','backward')),_0x2b0890['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',_0x4b90b1['if']('_isStatusLabelVisible','ck-hidden',_0x785057=>!_0x785057)]},'children':[{'text':_0x4b90b1['to']('isNavigationMode',_0x6751a0=>_0x6751a0?g(_0x332dca,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x332dca,'Total')+':\x20')}]},{'text':_0x4b90b1['to']('_statusText')}]},new _0x51c520(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5855ec,_0x2b0890]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x47ebf6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xa8e363=this['editor']['editing']['view'];_0xa8e363['change'](_0x4a08d7=>{for(const _0x42653d of _0xa8e363['document']['roots'])_0x4a08d7['addClass'](ce,_0x42653d);});}['hide'](){const _0x1574d3=this['editor']['editing']['view'];_0x1574d3['change'](_0x5934e1=>{for(const _0x4b5257 of _0x1574d3['document']['roots'])_0x5934e1['removeClass'](ce,_0x4b5257);});}}class R extends _0x47ebf6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x5bfa59=this['editor'],_0x3d7c49=_0x5bfa59['plugins']['get'](m),_0xe4d29d=_0x5bfa59['plugins']['get'](le);_0x5bfa59['ui']['componentFactory']['add']('exitToEditing',_0x12f519=>{const _0x137391=new _0x5bb06b(_0x12f519);return _0x137391['set']({'label':g(_0x12f519,'Back\x20to\x20editing'),'icon':_0x14d522,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x137391,'execute',()=>{_0x5bfa59['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x137391;}),_0x5bfa59['ui']['componentFactory']['add']('restoreRevision',_0x4cfed8=>{const _0x392366=new _0x5bb06b(_0x4cfed8);return _0x392366['set']({'label':g(_0x4cfed8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x392366['bind']('isEnabled')['to'](_0x5bfa59['commands']['get']('restoreRevision')),this['listenTo'](_0x392366,'execute',()=>_0x5bfa59['execute']('restoreRevision')),_0x392366;}),_0x5bfa59['ui']['componentFactory']['add']('changesNavigation',_0x28195e=>{const _0x4821a0=new _i(_0x28195e),_0x403151=_0x5bfa59['commands']['get']('showPreviousChange'),_0x2cff46=_0x5bfa59['commands']['get']('showNextChange');return _0x4821a0['bind']('isBackwardNavigationEnabled')['to'](_0x403151,'isEnabled'),_0x4821a0['bind']('isForwardNavigationEnabled')['to'](_0x2cff46,'isEnabled'),_0x4821a0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3d7c49),this['listenTo'](_0x4821a0,'execute',(_0x166a76,_0x498bea)=>{_0x5bfa59['execute']('forward'===_0x498bea?'showNextChange':'showPreviousChange');}),_0x4821a0;}),_0xe4d29d['show'](),_0x3d7c49['on']('change:isReady',(_0x4f405f,_0x5aa2af,_0x1ab3fa)=>{_0x1ab3fa?_0xe4d29d['hide']():_0xe4d29d['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x491c12,_0x10254c){super(_0x491c12,_0x10254c);const _0x5e5bbc=this['bindTemplate'];this['set']({'label':g(_0x491c12,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x491c12,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5e5bbc['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 _0x56e2c5=this['fieldView']['element'];this['_tooltipString']=_0x56e2c5['scrollWidth']>_0x56e2c5['clientWidth']&&_0x56e2c5['value']||'';}}class oi extends _0x225fc7{constructor(_0x59f6b9,_0x55184b,_0x4932f4){super(_0x59f6b9);const _0x30f2e4=new _0x2cc422();_0x30f2e4['set']({'content':_0x4e437e,'viewBox':'0\x200\x2011\x2010'});const _0x2436ca=['ck','ck-revision-history-sidebar__revision-author'];_0x4932f4&&_0x2436ca['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2a01f9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x59f6b9,_0x4932f4?'Revision\x20creator':'Revision\x20author')},'children':[_0x30f2e4,_0x55184b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2436ca},'children':_0x2a01f9});}}function ni(_0x2497d6,_0x569e79){const _0x4437c6=_0x2497d6['bindTemplate'],_0x499f7b=_0x2497d6['locale'],_0x34b67f=_0xc59451(_0x499f7b);_0x34b67f['panelPosition']='sw';const _0x715d6=function(_0xb847a2,_0xf06287){const _0x547767=function(_0x1a18d3,_0x933b9c){const _0x17c857=_0x1a18d3['locale'],_0x32532e={'Compare\x20against\x20selected':g(_0x17c857,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x17c857,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x17c857,'Restore\x20this\x20revision')};return _0x933b9c['map'](_0x2673e5=>{const _0x15e068=_0x32532e[_0x2673e5['name']];return _0x15e068&&_0x15e068!==_0x2673e5['name']&&(_0x2673e5['name']=_0x15e068),_0x2673e5;});}(_0xb847a2,_0xf06287),_0xc818a1=new _0xe2334c();for(const _0x1580c5 of _0x547767){const _0x1c4802={'type':'button','model':new to({'label':_0x1580c5['name'],'class':_0x1580c5['class'],'withText':!0x0,'role':'menuitem','_action':_0x1580c5['action']})};_0x1c4802['model']['bind']('isEnabled')['to'](_0xb847a2,'isActionsDropdownOpen',_0x205b2b=>'function'!=typeof _0x1580c5['isEnabled']||(!_0x205b2b||_0x1580c5['isEnabled'](_0xb847a2))),_0xc818a1['add'](_0x1c4802);}return _0xc818a1;}(_0x2497d6,_0x569e79);return _0x2497d6['bind']('isActionsDropdownOpen')['to'](_0x34b67f,'isOpen'),_0x34b67f['buttonView']['set']({'label':g(_0x499f7b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7b9774}),_0x34b67f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4437c6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4437c6['to'](_0x4f9a29=>_0x4f9a29['stopPropagation']())}}),_0x34b67f['on']('execute',_0x584add=>{_0x2497d6['isReady']&&'function'==typeof _0x584add['source']['_action']&&_0x584add['source']['_action'](_0x2497d6);}),_0x569ebe(_0x34b67f,_0x715d6,{'role':'menu'}),_0x34b67f['listenTo'](_0x2497d6,'change:isActionsDropdownOpen',(_0x76978e,_0x5062c6,_0x64fa8a)=>{if(_0x64fa8a)for(const _0x189a3d of _0x34b67f['listView']['items']){const _0x36f6f5=_0x189a3d['children']['first'],_0x5d4545=_0x569e79['find'](_0x1202b3=>_0x1202b3['action']===_0x36f6f5['_action'])['isVisible'];_0x189a3d['isVisible']=void 0x0===_0x5d4545||_0x5d4545(_0x2497d6);}}),_0x34b67f;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x14857d,uid as _0x451426,Collection as _0x3fcc51,logWarning as _0x572bf6,FocusTracker as _0x5a36b0,KeystrokeHandler as _0x37dc31,scrollViewportToShowTarget as _0x5d9a0a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4676dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x36f289,set as _0x268604,unset as _0x3f51ab,isEqual as _0x4ffb34}from'es-toolkit/compat';import{Plugin as _0x149b28,PendingActions as _0x18e594,Command as _0x2a06ae,ElementApiMixin as _0x5055df,Editor as _0x5c1f04}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x43b4df,getMarkerDomElement as _0x5dbfca,ConfirmMixin as ti,sanitizeEditorConfig as _0x38849b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x373619,ViewAttributeElement as _0x4df112,ViewEmptyElement as _0x553de7,ViewRawElement as _0x57c601,ViewUIElement as _0x316267,ViewDocumentFragment as _0x118cac,ViewText as _0x589e56,ViewElement as _0x3827c1,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2f11fa,IconChevronUp as _0x19d9b9,IconChevronDown as _0x44f056,IconUndo as _0x58cf49,IconUser as _0xe5b4b4,IconThreeVerticalDots as _0x28c0d7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1d874c,submitHandler as _0x5b119f,LabeledFieldView as _0x256e64,createLabeledInputText as _0xb8ce7b,createDropdown as _0x3c0c02,ListView as _0x5b1655,ListItemView as _0x3f34f5,ButtonView as te,MenuBarMenuView as _0x505352,MenuBarMenuListView as _0x222b9c,MenuBarMenuListItemView as _0x1d2298,MenuBarMenuListItemButtonView as _0x11e198,ContextualBalloon as _0x1663f0,ToolbarSeparatorView as _0x114a41,IconView as _0x418e0a,addListToDropdown as _0x2ce9a1,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x9f88ff}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14857d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x55918e){super(),this['id']=_0x55918e['id']||_0x451426(),this['creator']=_0x55918e['creator']||null,this['authors']=_0x55918e['authors']||[],this['diffData']=_0x55918e['diffData']||null,this['toVersion']=_0x55918e['toVersion']||0x0,this['fromVersion']=_0x55918e['fromVersion']||0x0,this['set']('name',_0x55918e['name']||''),this['set']('createdAt',_0x55918e['createdAt']||new Date()),this['set']('attributes',_0x55918e['attributes']||{});}['setName'](_0x1d3cdf){this['_update']({'name':_0x1d3cdf});}['setAttribute'](_0x2174e7,_0xc7aa57){const _0x1c6d15=_0x36f289(this['attributes']);_0x268604(_0x1c6d15,_0x2174e7,_0xc7aa57),this['_update']({'attributes':_0x1c6d15});}['removeAttribute'](_0x2ff3f3){const _0x4ee813=_0x36f289(this['attributes']);_0x3f51ab(_0x4ee813,_0x2ff3f3),this['_update']({'attributes':_0x4ee813});}['_update'](_0x425289,_0x34b4dc=!0x1){let _0x2c3459=!0x1;const _0x1656f8={'id':this['id']},_0x3b11c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5ab7d9 of _0x3b11c8){const _0x2ac261=_0x425289[_0x5ab7d9];void 0x0!==_0x2ac261&&_0x2ac261!==this[_0x5ab7d9]&&(this[_0x5ab7d9]=_0x2ac261,_0x1656f8[_0x5ab7d9]=_0x2ac261,_0x2c3459=!0x0);}_0x2c3459&&(_0x1656f8['authors']&&(_0x1656f8['authorsIds']=_0x1656f8['authors']['map'](_0x3cb8f7=>_0x3cb8f7['id']),delete _0x1656f8['authors']),this['fire']('_update',_0x1656f8,_0x34b4dc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3eeb54=>_0x3eeb54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x149b28{['_revisions'];static get['requires'](){return[_0x43b4df];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x302136){super(_0x302136),this['_revisions']=new _0x3fcc51();}['afterInit'](){!async function(_0x1f9b42){const _0x347073=_0xa8d78f([0x70,0x74,0x78,0x4e,0x41,0x31,0x36,0x42,0x6b,0x73,0x52,0x45,0x79,0x69,0x59,0x6f,0x43,0x55,0x4f,0x71,0x30,0x6e,0x44,0x76,0x50,0x65,0x37,0x75,0x32,0x54,0x68,0x51,0x67,0x62,0x6c,0x4a,0x58,0x4c,0x77,0x34,0x35,0x7a,0x47,0x61,0x6d,0x38,0x5a,0x33,0x64,0x57,0x4b,0x39,0x66,0x53,0x4d,0x46,0x48,0x56,0x63,0x72,0x49,0x6a]),_0x36d9e6=0xeb829,_0x2d9955=0x66e9f56b,_0x305a12=0x66ee9143^_0x2d9955,_0x196f4d=window[_0xa8d78f([0x44,0x61,0x74,0x65])][_0xa8d78f([0x6e,0x6f,0x77])](),_0x236736=_0x1f9b42[_0xa8d78f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206d07=new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0009=>{_0x236736[_0xa8d78f([0x6f,0x6e,0x63,0x65])](_0xa8d78f([0x72,0x65,0x61,0x64,0x79]),_0x1b0009);}),_0x56f1af={[_0xa8d78f([0x6b,0x74,0x79])]:_0xa8d78f([0x45,0x43]),[_0xa8d78f([0x75,0x73,0x65])]:_0xa8d78f([0x73,0x69,0x67]),[_0xa8d78f([0x63,0x72,0x76])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36]),[_0xa8d78f([0x78])]:_0xa8d78f([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]),[_0xa8d78f([0x79])]:_0xa8d78f([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]),[_0xa8d78f([0x61,0x6c,0x67])]:_0xa8d78f([0x45,0x53,0x32,0x35,0x36])},_0x14ca01=_0x236736[_0xa8d78f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8d78f([0x67,0x65,0x74])](_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11c174(){let _0x339f7d,_0x1270a8=null,_0x497d62=null;try{if(_0x14ca01==_0xa8d78f([0x47,0x50,0x4c]))return _0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x339f7d=_0x2262ca(),!_0x339f7d)return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x497d62=_0x456cf3(_0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x339f7d[_0xa8d78f([0x6a,0x74,0x69])])),await _0x35a016()?_0x5de48f()?_0x55cbae()?_0xa8d78f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b902()?(_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1270a8=_0x401032(_0xa8d78f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1270a8=_0x401032(_0xa8d78f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4de499()):_0xa8d78f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x366ff1){return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55cbae(){const _0x3209fc=[_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])][_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x196f4d/0x3e8:0xe10*_0x305a12;return _0x339f7d[_0xa8d78f([0x65,0x78,0x70])]<_0x3209fc;}function _0x5de48f(){const _0x1d1106=_0x339f7d[_0xa8d78f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d1106)return!0x1;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x48])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x52,0x48]))){if(_0x21aad4())return!0x0;if(_0x3a8a2a()||_0x29abb9())return!0x0;}return!0x1;}function _0x26b902(){const _0x448abd=_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448abd||0x0==_0x448abd[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x314b64}=new URL(window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x448abd[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x314b64))return!0x0;const _0x991367=_0x314b64[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));return _0x448abd[_0xa8d78f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1da43f=>_0x1da43f[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))[_0xa8d78f([0x6d,0x61,0x70])](_0x10648d=>_0x10648d[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])))[_0xa8d78f([0x73,0x6f,0x6d,0x65])](_0x2cd346=>_0x991367[_0xa8d78f([0x65,0x76,0x65,0x72,0x79])]((_0x416f68,_0x5b0377)=>_0x2cd346[_0x5b0377]===_0x416f68||_0x2cd346[_0x5b0377]===_0xa8d78f([0x2a])));}function _0x4de499(){return _0x1270a8&&_0x497d62?new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b0ca0,_0x214e88)=>{_0x1270a8[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x1b0ca0,_0x214e88),_0x497d62[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x2db954=>{_0x2db954!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x1b0ca0(_0x2db954);},_0x214e88);}):_0x1270a8||_0x497d62||_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456cf3(_0x419085,_0x27db51){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487d78=>{if(_0x49d4a3())return _0x487d78(_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]));_0xd2640e(),_0x236736[_0xa8d78f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b4e0c=!0x1;const _0x2b335e=_0x451426();function _0x270293(_0x48f5c9){return!!_0x48f5c9&&(typeof _0x48f5c9===_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48f5c9===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48f5c9[_0xa8d78f([0x74,0x68,0x65,0x6e])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48f5c9[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e4dd1(_0x5e5cf8){_0x4cd65c(_0x5e5cf8)[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3eb908=>{if(!_0x3eb908||_0x3eb908[_0xa8d78f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8d78f([0x6f,0x6b]))return _0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cad42(_0x4fd66f(_0x2b335e+_0x27db51))!=_0x3eb908[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3445b0=>(_0x2aa3c5(),_0x3445b0),()=>{const _0x29e380=_0xe2b20c();return null==_0x29e380?(_0x2aa3c5(),_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])):_0xa8d78f(_0x196f4d-_0x29e380>(0x42e5716b^_0x2d9955)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x487d78)[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bcadd=0x66df1beb^_0x2d9955;function _0x2aa3c5(){const _0x4567f4=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x579ac5=_0x3bf081(_0x3cad42(window[_0xa8d78f([0x4d,0x61,0x74,0x68])][_0xa8d78f([0x63,0x65,0x69,0x6c])](_0x196f4d/_0x1bcadd)));window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4567f4,_0x579ac5);}function _0xe2b20c(){const _0x47d2bb=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x20c4fd=window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47d2bb);return _0x20c4fd?window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf081(_0x20c4fd),0x10)*_0x1bcadd:null;}function _0x4cd65c(_0x385178){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21ef7e,_0x11ffdb)=>{_0x385178[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x21ef7e,_0x11ffdb),window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11ffdb,0x66e821ab^_0x2d9955);});}}_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x331f4b,_0x28db59)=>{if(_0x28db59[0x0]!=_0x419085)return _0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28db59[0x1]={..._0x28db59[0x1],[_0xa8d78f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b335e};},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x68,0x69,0x67,0x68])}),_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44de77=>{_0x270293(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b4e0c=!0x0,_0x2e4dd1(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x6c,0x6f,0x77])}),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>{_0x5b4e0c||_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49d4a3(){return _0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8d78f([0x61,0x75,0x74,0x6f]);}function _0xd2640e(){_0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8d78f([0x61,0x75,0x74,0x6f]);}}function _0x401032(_0x5e56f8){const _0x4f61d2=[new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440ab5=>setTimeout(_0x440ab5,0x66e0cba7^_0x2d9955)),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bdade=>{const _0x8dc8bb=0x66e9f56c^_0x2d9955,_0x3b6f32=_0x1f9b42[_0xa8d78f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x184691(){_0x3b6f32[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8dc8bb&&_0x1bdade();}_0x184691(),_0x3b6f32[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x61,0x64,0x64]),_0x184691);})),new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba48f=>{function _0x164fad(){for(const _0x464cd5 in window)if(window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x464cd5))&&window[_0x464cd5]==_0x36d9e6)return _0x2ba48f();_0x236736[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]!=_0xa8d78f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164fad,0x66e9e6e3^_0x2d9955);}_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x164fad();})];return window[_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8d78f([0x72,0x61,0x63,0x65])](_0x4f61d2)[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>_0x5e56f8);}async function _0x3d5a4d(){if(await _0x206d07,_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2cfbaa=_0x1f9b42[_0xa8d78f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e0b96=_0x1f9b42[_0xa8d78f([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])](_0x2cfbaa[_0xa8d78f([0x69,0x64])]),_0x1ba8a7=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2cfbaa['id'],_0x3e0b96?_0x3e0b96['id']:null,!0x0),_0x1ba8a7[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ba8a7[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x135e00,void(_0x1ba8a7[_0xa8d78f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x135e00);}if(_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x196e65=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x196e65[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x196e65[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x196e65[_0xa8d78f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x135e00,_0x196e65[_0xa8d78f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x135e00;}_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21aad4(){return _0x12a518(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x53f4be(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]==_0xa8d78f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3a8a2a(){return _0x12a518(_0xa8d78f([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 _0x29abb9(){return _0x12a518(_0xa8d78f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x316ff8(_0x64181f){const _0x150b23=_0x11db1a();_0x236736[_0x150b23]=_0xa8d78f([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])+_0x64181f,_0x64181f[_0xa8d78f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x11db1a()]=_0x36d9e6),_0x64181f!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5a4d();}function _0x11db1a(){const _0x466e1f=window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8d78f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8d78f([0x6e,0x6f,0x77])]())[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8d78f([0x2e]),'');let _0x50b794=_0xa8d78f([0x70]);for(let _0x201758=0x0;_0x201758<_0x466e1f[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x201758+=0x2){let _0x18caa4=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466e1f[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x201758,_0x201758+0x2));_0x18caa4>=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18caa4-=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50b794+=_0x347073[_0x18caa4];}return _0x50b794;}function _0x2262ca(){const _0x3e16de=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));if(0x3!=_0x3e16de[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fa5a8(_0x3e16de[0x1]);function _0x1fa5a8(_0x1c1419){const _0x2f894c=_0x148a54(_0x1c1419);return _0x2f894c&&_0x20cad5()?_0x2f894c:null;function _0x20cad5(){const _0x5e96fb=_0x2f894c[_0xa8d78f([0x6a,0x74,0x69])],_0x261452=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c9767={..._0x2f894c,[_0xa8d78f([0x6a,0x74,0x69])]:_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c9767[_0xa8d78f([0x76,0x63])],_0x4fd66f(_0x1c9767)==_0x261452;}}}async function _0x35a016(){let _0x212007=!0x0;try{const _0x2a882c=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])),[_0x10cd9e,_0x21d6c3,_0x4f3875]=_0x2a882c;return _0x3efafe(_0x10cd9e),await _0x15950c(_0x10cd9e,_0x21d6c3,_0x4f3875),_0x212007;}catch(_0x88faf){return!0x1;}function _0x3efafe(_0x389c54){const _0x394254=_0x148a54(_0x389c54);_0x394254&&_0x394254[_0xa8d78f([0x61,0x6c,0x67])]==_0xa8d78f([0x45,0x53,0x32,0x35,0x36])||(_0x212007=!0x1);}async function _0x15950c(_0x5b762e,_0x3baf8f,_0x215255){const _0x4ce583=window[_0xa8d78f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8d78f([0x66,0x72,0x6f,0x6d])](_0x400e4b(_0x215255),_0x11b918=>_0x11b918[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x111db6=new window[(_0xa8d78f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8d78f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b762e+_0xa8d78f([0x2e])+_0x3baf8f),_0x1b8009=window[_0xa8d78f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8d78f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b8009)return;const _0x2eb3b0=await _0x1b8009[_0xa8d78f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8d78f([0x6a,0x77,0x6b]),_0x56f1af,{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b8009[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x68,0x61,0x73,0x68])]:{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2eb3b0,_0x4ce583,_0x111db6)||(_0x212007=!0x1);}}function _0x148a54(_0x33b8df){return _0x33b8df[_0xa8d78f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x65,0x79]))?JSON[_0xa8d78f([0x70,0x61,0x72,0x73,0x65])](_0x400e4b(_0x33b8df)):null;}function _0x400e4b(_0x53c359){return window[_0xa8d78f([0x61,0x74,0x6f,0x62])](_0x53c359[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8d78f([0x2b]))[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8d78f([0x2f])));}function _0x4fd66f(_0x533ba5){let _0x13d8ba=0x1505;function _0xf3ce3e(_0x8115df){for(let _0x7c0f92=0x0;_0x7c0f92<_0x8115df[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7c0f92++){const _0x56c6e7=_0x8115df[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7c0f92);_0x13d8ba=(_0x13d8ba<<0x5)+_0x13d8ba+_0x56c6e7,_0x13d8ba&=_0x13d8ba;}}function _0x5c3f4b(_0x8d610d){Array[_0xa8d78f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8d610d)?_0x8d610d[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3f4b):_0x8d610d&&typeof _0x8d610d==_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8d78f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8d610d)[_0xa8d78f([0x73,0x6f,0x72,0x74])]()[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52cd71,_0x2143ec])=>{_0xf3ce3e(_0x52cd71),_0x5c3f4b(_0x2143ec);}):_0xf3ce3e(window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8d610d));}return _0x5c3f4b(_0x533ba5),_0x13d8ba>>>0x0;}function _0x3cad42(_0x2a8418){return _0x2a8418[_0xa8d78f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8d78f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8d78f([0x30]));}function _0x3bf081(_0xaf7d77){return _0xaf7d77[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8d78f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8d78f([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a518(_0x4bae2f){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x68,0x61,0x73])](_0x4bae2f);}function _0x53f4be(_0x258fdb){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x67,0x65,0x74])](_0x258fdb);}function _0x135e00(){}function _0xa8d78f(_0x2e4db4){return _0x2e4db4['map'](_0x1528d8=>String['fromCharCode'](_0x1528d8))['join']('');}_0x316ff8(await _0x11c174());}(this);}['createRevision'](_0x347a98){const _0x2a456d=this['editor']['plugins']['get']('Users');return new h({'id':_0x347a98['id'],'name':_0x347a98['name'],'creator':_0x347a98['creatorId']?_0x2a456d['getUser'](_0x347a98['creatorId']):null,'diffData':_0x347a98['diffData']||_0x347a98['data'],'authors':_0x347a98['authorsIds']['map'](_0x3b95c1=>_0x2a456d['getUser'](_0x3b95c1)),'createdAt':new Date(_0x347a98['createdAt']),'attributes':_0x347a98['attributes'],'fromVersion':_0x347a98['fromVersion'],'toVersion':_0x347a98['toVersion']});}['addRevision'](_0x3c5286,_0x45932a=0x0){this['_revisions']['add'](_0x3c5286,_0x45932a);}['getRevision'](_0x3ef819){return this['_revisions']['get'](_0x3ef819);}['getRevisions'](_0x1d79eb={'toJSON':!0x1}){const _0x3cb076=Array['from'](this['_revisions']);return _0x3cb076['reverse'](),_0x1d79eb['toJSON']?_0x3cb076['map'](_0x36845f=>_0x36845f['toJSON']()):_0x3cb076;}['getIndex'](_0x10d027){return this['_revisions']['getIndex'](_0x10d027);}['getEarlierVisibleRevision'](_0x2a2eb7){const [,_0x414d89]=this['getRevisionsIterator'](_0x2a2eb7,{'direction':'earlier'});return _0x414d89;}['getLaterVisibleRevision'](_0x34330c){const [,_0x13786e]=this['getRevisionsIterator'](_0x34330c,{'direction':'later'});return _0x13786e;}['getRevisionsInDiff'](_0xd1542f){const _0xf8adca=[];for(const _0x28cc40 of this['getRevisionsIterator'](_0xd1542f['newRevisionId']))if(_0xf8adca['push'](_0x28cc40),_0x28cc40['id']===_0xd1542f['oldRevisionId'])break;return _0xf8adca;}*['getRevisionsIterator'](_0x1b41b8,{direction:_0x27fd0a='earlier',filter:_0x3a733c=()=>!0x0}={}){const _0x471e19='earlier'===_0x27fd0a?0x1:-0x1;let _0x2543f0=this['_revisions']['get'](_0x1b41b8),_0x5333f5=this['getIndex'](_0x2543f0);for(yield _0x2543f0;_0x2543f0;){if(_0x5333f5+=_0x471e19,_0x2543f0=this['getRevision'](_0x5333f5),!_0x2543f0)return;_0x3a733c(_0x2543f0)&&(yield _0x2543f0);}}}class V extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x373619,'c'],[_0x4df112,'a'],[_0x553de7,'e'],[_0x57c601,'r'],[_0x316267,'u']]);['_typeCharToViewClass']=new Map([['c',_0x373619],['a',_0x4df112],['e',_0x553de7],['r',_0x57c601],['u',_0x316267]]);async['loadRevisionData'](_0x558f16,_0x23cd18){if(_0x558f16['diffData']||!_0x23cd18)return;const _0x747bd7=this['editor']['config']['get']('collaboration.channelId'),_0x37da63=await _0x23cd18['getRevision']({'channelId':_0x747bd7,'revisionId':_0x558f16['id']});_0x558f16['diffData']=_0x37da63['diffData'];}['getRevisionDocumentData'](_0x1fba23){const _0x5db67f={};for(const _0x382771 in _0x1fba23['diffData']){if(_0x1fba23['diffData'][_0x382771]['attachChange']&&!_0x1fba23['diffData'][_0x382771]['attachChange']['isAttached'])continue;const _0x285b72=this['_removeRevisionMarkers'](JSON['parse'](_0x1fba23['diffData'][_0x382771]['insertions'])),_0x305341=this['editor']['editing']['view']['document'],_0x6934a9=new _0x118cac(_0x305341,_0x285b72['map'](_0x12b8d5=>this['_getViewFromDiffObj'](_0x12b8d5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5db67f[_0x382771]=this['editor']['data']['processor']['toData'](_0x6934a9),this['editor']['data']['processor']['useFillerType']('default');}return _0x5db67f;}['getRevisionRootsAttributes'](_0x46286b){const _0x19650f={};for(const _0x285c0d in _0x46286b['diffData'])_0x46286b['diffData'][_0x285c0d]['attachChange']&&!_0x46286b['diffData'][_0x285c0d]['attachChange']['isAttached']||(_0x19650f[_0x285c0d]=_0x46286b['diffData'][_0x285c0d]['attributesAfter']||{});return _0x19650f;}['_getTypeCharForViewElement'](_0x5b9bb7){return this['_viewClassToTypeChar']['get'](_0x5b9bb7['constructor']);}['_getViewFromDiffObj'](_0x3fbc43,_0x260761){const _0x3d6c81=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fbc43)return new _0x589e56(_0x3d6c81,_0x3fbc43);{let _0xb38308,_0x3305a7;_0x3305a7='u'==_0x3fbc43['type']||'r'==_0x3fbc43['type']?[]:_0x3fbc43['children']['map'](_0x2c6c01=>this['_getViewFromDiffObj'](_0x2c6c01,_0x260761));const _0x4780ef=this['_typeCharToViewClass']['get'](_0x3fbc43['type'])||_0x3827c1,_0x3cb807=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xb38308=new _0x4780ef(_0x3d6c81,_0x3fbc43['name'],_0x3fbc43['attributes'],_0x3305a7),'u'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x2fbde2=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x119e40){const _0x139c54=_0x119e40['createElement']('div');return _0x139c54['innerHTML']=_0x2fbde2,_0x139c54['childNodes'][0x0];},_0x260761){const _0x4d6efc=new _0x118cac(_0x3d6c81);_0x4d6efc['_appendChild'](_0xb38308);const _0x5562a2=Array['from'](_0x3cb807['viewChildrenToDom'](_0x4d6efc,{'bind':!0x1})),_0x2afb72=_0x3cb807['domDocument']['createElement']('div');_0x2afb72['append'](..._0x5562a2),_0xb38308=Array['from'](_0x3cb807['domChildrenToView'](_0x2afb72))[0x0];}}else{if('r'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x4122db=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x44ce16){_0x44ce16['innerHTML']=_0x4122db;},_0x260761){const _0x2e7652=new _0x118cac(_0x3d6c81);_0x2e7652['_appendChild'](_0xb38308);const _0x393add=Array['from'](_0x3cb807['viewChildrenToDom'](_0x2e7652,{'bind':!0x1})),_0x18c271=_0x3cb807['domDocument']['createElement']('div');_0x18c271['append'](..._0x393add);const _0x529792=Array['from'](_0x3cb807['domChildrenToView'](_0x18c271));_0x529792['length']>0x1?_0xb38308['_appendChild'](_0x529792):_0xb38308=_0x529792[0x0];}}}if(_0x3fbc43['customProperties']){for(const [_0x3ee65b,_0x6692fe]of _0x3fbc43['customProperties'])_0xb38308['_setCustomProperty'](_0x3ee65b,_0x6692fe);}const _0x1fb870=void 0x0===_0x3fbc43['fillerOffset']?null:_0x3fbc43['fillerOffset'];return null!==_0x1fb870&&(_0xb38308['getFillerOffset']=()=>_0x1fb870),_0xb38308;}}['_makeModelFromViewString'](_0x29ea40){const _0x546a43=JSON['parse'](_0x29ea40),_0x1256b2=this['editor']['editing']['view']['document'],_0x1c964f=new _0x118cac(_0x1256b2,_0x546a43['map'](_0x490e56=>this['_getViewFromDiffObj'](_0x490e56,!0x0)));return this['editor']['data']['toModel'](_0x1c964f);}['_removeRevisionMarkers'](_0x2bc5ac){return(_0x2bc5ac=_0x2bc5ac['filter'](_0x13ac06=>!_0x13ac06['name']||'revision-start'!==_0x13ac06['name']&&'revision-end'!==_0x13ac06['name']))['forEach'](_0xb860ff=>{'string'!=typeof _0xb860ff&&(_0xb860ff['children']=this['_removeRevisionMarkers'](_0xb860ff['children']),_0xb860ff['attributes']=_0xb860ff['attributes']['filter'](_0x200778=>!_0x200778[0x0]['startsWith']('data-revision-')));}),_0x2bc5ac;}}function g(_0xd19fa1,_0x51c3fb,_0x57903f){const t=_0xd19fa1['t'];switch(_0x51c3fb){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'},_0x57903f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57903f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x149b28{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43b4df,I,V,_0x18e594];}constructor(_0x54e999){super(_0x54e999),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x13222a=_0x451426();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x13222a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x16acdc=this['repository']['getRevision'](0x0),_0xf0880d=_0x16acdc&&null===_0x16acdc['creator']?_0x16acdc:null;if(this['_continueCurrentRevision']=!!_0xf0880d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x460da4=this['_source']['getCurrentRevisionId'](),_0x570f5f=this['repository']['getRevision'](_0x460da4);if(_0x570f5f)this['_startingVersion']=_0x570f5f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2eefb8=this['_source']['history']['_operations']['find'](_0x2cd0a3=>!_0x2cd0a3['_isInit']),_0x158d59=_0x2eefb8?_0x2eefb8['baseVersion']:this['_source']['history']['version'];_0x16acdc?(_0x16acdc['toVersion']<_0x158d59&&_0x16acdc['_update']({'toVersion':_0x158d59}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['fromVersion']):(this['_startingVersion']=_0x16acdc['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x158d59,this['_continueCurrentRevision']=!0x1);}}else _0xf0880d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf0880d['toVersion'],this['editor']['model']['document']['history']['version']),_0xf0880d['fromVersion']===_0xf0880d['toVersion']?(0x0!==_0xf0880d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['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',_0x43e0cb=>!_0x43e0cb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c7b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cd912;for(const _0x311acb in _0x32c7b9){const _0x1a8a80=_0x311acb,_0x271f34=_0x32c7b9[_0x1a8a80];if('revisionHistoryLicenseKeyValid'==_0x271f34||'revisionHistoryLicenseKeyInvalid'==_0x271f34||'revisionHistoryLicenseKeyExpired'==_0x271f34||'revisionHistoryLicenseKeyDomainLimit'==_0x271f34||'revisionHistoryLicenseKeyNotAllowed'==_0x271f34||'revisionHistoryLicenseKeyEvaluationLimit'==_0x271f34||'revisionHistoryLicenseKeyTrialLimit'==_0x271f34||'revisionHistoryLicenseKeyUsageLimit'==_0x271f34){delete _0x32c7b9[_0x1a8a80],_0x5cd912=_0x271f34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5cd912&&_0x32c7b9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5cd912&&_0x32c7b9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5cd912&&_0x32c7b9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4bf71e=this['repository']['getRevision'](0x0),_0x4093d2=await this['getRevisionDocumentData'](_0x4bf71e),_0x324c95=await this['getRevisionRootsAttributes'](_0x4bf71e);this['_replaceEditorDataWithRevisionData'](_0x4093d2,_0x324c95);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x328ba0){this['_source']=_0x328ba0;}async['update'](){const _0x1f678e=await this['_source']['getLatestVersion']();if(_0x1f678e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21f281=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1f678e});_0x21f281['authors']=_0x21f281['authorsIds']['map'](_0x37477b=>this['editor']['plugins']['get']('Users')['getUser'](_0x37477b)),this['currentRevision']['_update'](_0x21f281);}}async['saveRevision'](_0x4a58b8={},_0x2bf369=null){const _0x14f008=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2bf369>this['currentRevision']['toVersion']&&(_0x2bf369=null),null===_0x2bf369&&(_0x2bf369=await this['_source']['getLatestVersion']());const _0x377dad=this['_getFromVersion'](_0x2bf369),_0x5a0060=this['buildRevisionData']({'from':_0x377dad,'to':_0x2bf369});if(this['currentRevision']['toVersion']<_0x2bf369){const _0x377ecd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2bf369,'to':_0x2bf369});_0x377ecd['authors']=[],_0x377ecd['authorsIds']=[],_0x377ecd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x377ecd,!0x0),delete _0x377ecd['authors'],_0x14f008['push'](_0x377ecd);}_0x4a58b8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a58b8['name']=_0x4a58b8['name']||null,_0x4a58b8['id']=_0x4a58b8['id']||_0x451426(),_0x4a58b8={..._0x4a58b8,..._0x5a0060};const _0x282264=this['addRevisionData'](_0x4a58b8);_0x14f008['push'](_0x4a58b8);const _0x509f59=this['repository']['getIndex'](_0x282264);if(0x0!==_0x509f59){const _0x264460=this['repository']['getRevision'](_0x509f59-0x1);if(_0x264460['fromVersion']!==_0x2bf369){const _0x3f1d0b=this['_revisionDataBuilder']['getData'](_0x2bf369,_0x264460['toVersion']),_0x1458a8={'id':_0x264460['id'],'diffData':_0x3f1d0b['diffData'],'authorsIds':_0x3f1d0b['authorsIds'],'authors':_0x3f1d0b['authorsIds']['map'](_0x586774=>this['editor']['plugins']['get']('Users')['getUser'](_0x586774)),'fromVersion':_0x2bf369};_0x264460===this['currentRevision']&&(_0x1458a8['createdAt']=new Date(_0x4a58b8['createdAt']['getTime']()+0xa)),_0x264460['_update'](_0x1458a8,!0x0),delete _0x1458a8['authors'],_0x14f008['push'](_0x1458a8);}}if(this['adapter']){for(const _0x35c9f8 of _0x14f008)this['_bufferUpdate'](_0x35c9f8['id'],_0x35c9f8,!0x0);this['sendBufferedUpdates']();}return _0x282264;}['addRevisionData'](_0x540bbb){const _0x4de68f=this['repository']['createRevision'](_0x540bbb);return this['adapter']&&_0x4de68f['on']('_update',(_0xa094bf,_0x1f299d,_0x54c272)=>{_0x54c272||(this['_bufferUpdate'](_0x1f299d['id'],_0x1f299d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4de68f,this['_findInsertionIndex'](_0x4de68f)),_0x4de68f;}async['getRevisionDocumentData'](_0x2f22a4){return await this['_utils']['loadRevisionData'](_0x2f22a4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f22a4);}async['getRevisionRootsAttributes'](_0x52ee05){return await this['_utils']['loadRevisionData'](_0x52ee05,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x52ee05);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1183d7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x7ed4b1=0x0;_0x7ed4b1<_0x1183d7['length'];_0x7ed4b1++){const _0xb8cdda=_0x1183d7[_0x7ed4b1];let _0x2a3710=!0x1;for(const _0x238d8c of Object['keys'](_0xb8cdda))void 0x0===_0xb8cdda[_0x238d8c]?delete _0xb8cdda[_0x238d8c]:'id'!==_0x238d8c&&(_0x2a3710=!0x0);_0x2a3710||(_0x1183d7[_0x7ed4b1]=null);}if(_0x1183d7=_0x1183d7['filter'](_0x4469cc=>null!==_0x4469cc),!_0x1183d7['length'])return;for(let _0x54a08c=0x0;_0x54a08c<_0x1183d7['length'];_0x54a08c++){const _0x32d175=_0x1183d7[_0x54a08c];void 0x0!==_0x32d175['fromVersion']&&void 0x0===_0x32d175['toVersion']&&(_0x32d175['toVersion']=this['repository']['getRevision'](_0x32d175['id'])['toVersion']),void 0x0!==_0x32d175['toVersion']&&void 0x0===_0x32d175['fromVersion']&&(_0x32d175['fromVersion']=this['repository']['getRevision'](_0x32d175['id'])['fromVersion']);}const _0x3215ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1183d7,_0x3215ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3e8bce=>{if(_0x3e8bce){for(const _0x4dbcd5 of _0x3e8bce)this['setRevisionData']({'id':_0x4dbcd5['id'],'createdAt':_0x4dbcd5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2526bd=null,from:_0x2d2817=null,to:_0x318d4c=null}){_0x2d2817=null!==_0x2d2817?_0x2d2817:_0x2526bd['fromVersion'],_0x318d4c=null!==_0x318d4c?_0x318d4c:_0x2526bd['toVersion'];const _0x43fc84=this['_revisionDataBuilder']['getData'](_0x2d2817,_0x318d4c),_0x1fc533={'diffData':_0x43fc84['diffData'],'authorsIds':_0x43fc84['authorsIds'],'fromVersion':_0x2d2817,'toVersion':_0x318d4c};if(!_0x2526bd||_0x318d4c!==_0x2526bd['toVersion']){const _0x13ec8d=_0x318d4c-0x1,_0x562e75=this['_source']['history']['getOperation'](_0x13ec8d);_0x1fc533['createdAt']=_0x562e75&&_0x562e75['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2d2817===this['_loadedStateData']['fromVersion']){for(const _0x244c7c of this['_loadedStateData']['authors'])_0x1fc533['authorsIds']['includes'](_0x244c7c['id'])||_0x1fc533['authorsIds']['push'](_0x244c7c['id']);}return _0x1fc533;}['_bufferUpdate'](_0x58f6dc,_0x26524b,_0x3e8605){if(this['_bufferedUpdates']['has'](_0x58f6dc)){const _0x43bf64=this['_bufferedUpdates']['get'](_0x58f6dc);_0x26524b=_0x3e8605?{..._0x43bf64,..._0x26524b}:{..._0x26524b,..._0x43bf64};}this['_bufferedUpdates']['set'](_0x58f6dc,_0x26524b);}['setRevisionData'](_0x161333){const _0x461474=this['repository']['getRevision'](_0x161333['id']);if(_0x161333['createdAt']&&(_0x161333['createdAt']=new Date(_0x161333['createdAt'])),_0x161333['authorsIds']){const _0x4d68e8=this['editor']['plugins']['get']('Users');_0x161333['authors']=_0x161333['authorsIds']['map'](_0x5366ed=>_0x4d68e8['getUser'](_0x5366ed));}_0x461474['_update'](_0x161333,!0x0);}['_createInitialRevision'](_0x572449){const _0x395e09=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x395e09)this['_initialRevisionId']=_0x395e09['id'];else{const _0x2b4b45=!this['editor']['model']['document']['roots']['find'](_0x5a8849=>this['editor']['model']['hasContent'](_0x5a8849)),_0x6bee8=this['editor']['plugins']['get']('Users')['me']['id'],_0x40643c=g(this['editor']['locale'],_0x2b4b45?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x572449,'to':_0x572449,'id':this['_initialRevisionId'],'name':_0x40643c,'creatorId':_0x6bee8});}}['_createCurrentRevision'](_0x4a9136){const _0x1baef0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1baef0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a9136,'to':_0x4a9136,'id':_0x1baef0,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x561c82,_0x3bd6d8){let _0x11781b=this['editor']['config']['get']('initialData'),_0x3b1630=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x11781b){_0x11781b={};for(const _0x32fc67 of this['editor']['model']['document']['getRootNames']())_0x11781b[_0x32fc67]='';}if('string'==typeof _0x11781b&&(_0x11781b={'main':_0x11781b}),void 0x0===_0x3b1630){_0x3b1630={};for(const _0x17d02c of this['editor']['model']['document']['getRootNames']())_0x3b1630[_0x17d02c]={};}let _0xec287b=!0x1;const _0x5e03de=Object['keys'](_0x11781b),_0x1b5986=Object['keys'](_0x561c82);for(const _0xf0c2be of _0x5e03de){if(_0x11781b[_0xf0c2be]!==_0x561c82[_0xf0c2be]&&''!==_0x11781b[_0xf0c2be]['trim']()){_0xec287b=!0x0;break;}if(!_0x4ffb34(_0x3b1630[_0xf0c2be],_0x3bd6d8[_0xf0c2be])&&Object['keys'](_0x3b1630[_0xf0c2be])['length']>0x0){_0xec287b=!0x0;break;}}_0xec287b||(_0xec287b=_0x1b5986['some'](_0x52a48e=>!this['editor']['model']['document']['getRoot'](_0x52a48e))),_0xec287b&&_0x572bf6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11781b,'editorRootsAttributes':_0x3b1630,'revisionData':_0x561c82,'revisionRootsAttributes':_0x3bd6d8}),this['editor']['config']['set']('initialData',_0x561c82),this['editor']['config']['set']('rootsAttributes',_0x3bd6d8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x45698a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x45698a['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1d4c71){const _0x5467f4=this['repository']['getRevisions']();_0x5467f4['reverse']();let _0x20c40a=0x0;for(;_0x20c40a<_0x5467f4['length'];){const _0x40aff5=_0x5467f4[_0x20c40a];if(_0x40aff5===this['currentRevision']){_0x20c40a++;continue;}if(_0x40aff5['id']===this['_initialRevisionId'])break;const _0x24dbdf=_0x1d4c71['toVersion']-_0x40aff5['toVersion']||_0x1d4c71['fromVersion']-_0x40aff5['fromVersion'];if(_0x24dbdf>0x0)break;if(_0x24dbdf<0x0)_0x20c40a++;else{if(!_0x1d4c71['creator']&&_0x40aff5['creator'])break;if(_0x40aff5['creator']||!_0x1d4c71['creator']){if(_0x1d4c71['createdAt']>_0x40aff5['createdAt'])break;_0x20c40a++;}else _0x20c40a++;}}return _0x20c40a;}['_getFromVersion'](_0x236540){const _0x25b101=this['repository']['getRevisions']();_0x25b101['reverse'](),_0x25b101['shift']();const _0x56e59c=_0x25b101['find'](_0x1ed966=>_0x1ed966['toVersion']<=_0x236540)['toVersion'];return _0x56e59c<this['_startingVersion']?this['_startingVersion']:_0x56e59c;}['_makeRevision']({name:_0x39367d,from:_0x1be0fd,to:_0x580b0f,creatorId:_0x177918,id:_0x4fc596}){const _0x418815=this['buildRevisionData']({'from':_0x1be0fd,'to':_0x580b0f});_0x418815['name']=_0x39367d,_0x418815['creatorId']=_0x177918,_0x418815['id']=_0x4fc596;const _0x2261de=this['addRevisionData'](_0x418815);return this['adapter']&&this['_bufferUpdate'](_0x418815['id'],_0x418815,!0x0),_0x2261de;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x41a494){this['editor']=_0x41a494,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'](_0x4ee7a2){this['source']=_0x4ee7a2;const _0x421bd3=new Map(),_0x450256=new Map(),_0x1fc223=this['editor']['model']['document']['roots']['map'](_0x5e3c64=>_0x5e3c64['rootName']);for(const _0x41ad47 of _0x1fc223){const _0x597e27=this['editor']['model']['document']['getRoot'](_0x41ad47),_0x3250ce=N(_0x597e27);_0x421bd3['set'](_0x41ad47,_0x3250ce),_0x450256['set'](_0x41ad47,Object['fromEntries'](_0x597e27['getAttributes']()));}const _0xaa2a68=Array['from'](this['editor']['model']['markers'])['map'](_0x103c5f=>[_0x103c5f['name'],_0x103c5f['getRange']()]),_0xd36af7=this['source']['version'];this['_saveMetaData'](_0xd36af7,_0x421bd3,_0xaa2a68,_0x450256),this['_startingRevisionId']=this['_revisionId'];const _0x23538a=new Map(),_0x5b00f5=new Map();for(const _0xa0b432 of _0x1fc223){const _0x5d9d2a=P(_0xa0b432);_0x23538a['set'](_0xa0b432,_0x5d9d2a),_0x5b00f5['set'](_0xa0b432,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x23538a,[],_0x5b00f5);}['getData'](_0xc5184b,_0x3173){if(this['_lastFrom']===_0xc5184b&&this['_lastTo']<=_0x3173)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3173,!0x0);else{if(!this['_savedMetaData']['has'](_0xc5184b)){const _0x54e40c=this['_getPreviousFrom'](_0xc5184b);this['_calculateMetaData'](_0x54e40c,_0xc5184b,!0x1);}this['_calculateMetaData'](_0xc5184b,_0x3173,!0x0);}return this['_lastFrom']=_0xc5184b,this['_lastTo']=_0x3173,this['_getState']();}['loadState'](_0x17af4a){const _0x1d18a0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x17af4a['fromVersion'],this['_lastTo']=_0x17af4a['toVersion'];for(const _0x514625 in _0x17af4a['diffData']){const _0x523468=_0x17af4a['diffData'][_0x514625]['attachChange'],_0x44983b=_0x36f289(_0x17af4a['diffData'][_0x514625]['attributesBefore'])||{},_0x47ebc7=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x514625]['deletions']);_0x47ebc7['rootName']=_0x514625,_0x47ebc7['_isAttached']=!_0x523468||!_0x523468['isAttached'],_0x47ebc7['isAttached']=()=>_0x47ebc7['_isAttached'],this['_baseRoots']['set'](_0x514625,_0x47ebc7),this['_baseRootsAttributes']['set'](_0x514625,_0x44983b),_0x523468&&this['_touchedRoots']['set'](_0x514625,_0x523468);const _0x141fbd=this['_makeIdsRoot'](_0x47ebc7);this['_baseIdsRoots']['set'](_0x514625,_0x141fbd);for(const [_0x14541f,_0x3d0d9c]of _0x47ebc7['markers']){if(!_0x14541f['startsWith']('revision:'))continue;const _0xf46957=_0x14541f['split'](':')[0x2];for(const _0x4f81bd of _0x3d0d9c['getWalker']({'singleCharacters':!0x0})){const _0x36734e=this['_getVidAttributeName'](_0x4f81bd),_0xf92552='elementEnd'==_0x4f81bd['type']?_0x4f81bd['previousPosition']['path']['slice'](0x0,-0x1):_0x4f81bd['previousPosition']['path'],_0x69c053=_0x141fbd['getNodeByPath'](_0xf92552)['getAttribute'](_0x36734e);this['_touched']['set'](_0x69c053,{'userId':_0xf46957});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19d1a8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x202001=>!this['_touched']['has'](_0x202001));let _0x5877dd=0x0;const _0x5021e2=new Map();for(const _0x47494c in _0x17af4a['diffData']){const _0x472d6f=_0x17af4a['diffData'][_0x47494c]['attachChange'],_0x522ef9=_0x36f289(_0x17af4a['diffData'][_0x47494c]['attributesAfter'])||{},_0x2a1758=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x47494c]['insertions']);_0x2a1758['rootName']=_0x47494c,_0x2a1758['_isAttached']=!_0x472d6f||_0x472d6f['isAttached'],_0x2a1758['isAttached']=()=>_0x2a1758['_isAttached'],this['_diffRoots']['set'](_0x47494c,_0x2a1758),this['_diffRootsAttributes']['set'](_0x47494c,_0x522ef9);const _0x19b57a=this['_makeIdsRoot'](_0x2a1758,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x47494c,_0x19b57a),_0x5021e2['set'](_0x47494c,_0x2a1758['isAttached']()?_0x522ef9:{});for(const [_0xf2c72f,_0xa5e36d]of _0x2a1758['markers']){if(!_0xf2c72f['startsWith']('revision:'))continue;const _0x1ef01=_0xf2c72f['split'](':')[0x2];for(const _0x13ae1e of _0xa5e36d['getWalker']({'singleCharacters':!0x0})){const _0xc59763=this['_getVidAttributeName'](_0x13ae1e),_0x2dafdf=this['_revisionId']++,_0x13dcd5='elementEnd'==_0x13ae1e['type']?_0x13ae1e['previousPosition']['path']['slice'](0x0,-0x1):_0x13ae1e['previousPosition']['path'];_0x19b57a['getNodeByPath'](_0x13dcd5)['_setAttribute'](_0xc59763,_0x2dafdf),this['_touched']['set'](_0x2dafdf,{'userId':_0x1ef01});}}for(const _0x26cdfa of this['editor']['model']['createRangeIn'](_0x2a1758)['getWalker']({'singleCharacters':!0x0})){const _0x3dbecd=this['_getVidAttributeName'](_0x26cdfa),_0x4a1e29='elementEnd'==_0x26cdfa['type']?_0x26cdfa['previousPosition']['path']['slice'](0x0,-0x1):_0x26cdfa['previousPosition']['path'],_0x5b8902=_0x19b57a['getNodeByPath'](_0x4a1e29);_0x5b8902['getAttribute'](_0x3dbecd)>0x0||_0x5b8902['_setAttribute'](_0x3dbecd,_0x19d1a8[_0x5877dd++]);}for(const [_0x9059b8,_0x17f4e4]of _0x2a1758['markers'])_0x9059b8['startsWith']('revision:')||this['_markers']['set'](_0x9059b8,_0x17f4e4);}const _0x188c17=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x188c17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188c17,0x1));const _0x249b1f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x249b1f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x249b1f,0x1));const _0xc924f2=Array['from'](this['_diffRoots'])['map'](([_0x5294f3,_0x38f96a])=>[_0x5294f3,N(_0x38f96a)]);this['_saveMetaData'](this['_lastTo'],_0xc924f2,this['_markers'],_0x5021e2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35419d,_0x26e088,_0x59e77f,_0x454ddc){const _0x55efe2=new Map(_0x26e088),_0x268a09=new Map(_0x36f289(_0x454ddc)),_0x1542d7=new Map();for(const [_0x324a82,_0x2ae49f]of _0x59e77f)_0x1542d7['set'](_0x324a82,{'start':_0x2ae49f['start']['clone'](),'end':_0x2ae49f['end']['clone'](),'rootName':_0x2ae49f['root']['rootName']});this['_savedMetaData']['set'](_0x35419d,{'roots':_0x55efe2,'markers':_0x1542d7,'rootsAttributes':_0x268a09});}['_removeMetaData'](_0x394398){this['_savedMetaData']['delete'](_0x394398);}['_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'](_0x1edfbe,_0x3d580b=null){let _0x2fe6d0=null;_0x1edfbe['is']('documentFragment')||(_0x2fe6d0=new ut(_0x1edfbe['name'],{'vid_start':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));const _0xe2ed05=[];for(const _0x48fac0 of _0x1edfbe['getChildren']())if(_0x48fac0['is']('element')){_0xe2ed05['push'](this['_makeIdsRoot'](_0x48fac0,_0x3d580b));const _0x7ed459=_0xe2ed05[_0xe2ed05['length']-0x1];null!==_0x3d580b&&(_0x3d580b=_0x7ed459['is']('element','$text')?_0x7ed459['getAttribute']('vid')+0x1:_0x7ed459['getAttribute']('vid_end')+0x1);}else{for(let _0x12c997=0x0;_0x12c997<_0x48fac0['offsetSize'];_0x12c997++)_0xe2ed05['push'](new ut('$text',{'vid':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));}if(_0x1edfbe['is']('documentFragment')){const _0x5595ee=P(_0x1edfbe['rootName']);return _0x5595ee['_insertChild'](0x0,_0xe2ed05),_0x5595ee;}return _0x2fe6d0['_setAttribute']('vid_end',null===_0x3d580b?this['_revisionId']++:_0x3d580b++),_0x2fe6d0['_insertChild'](0x0,_0xe2ed05),_0x2fe6d0;}['_calculateMetaData'](_0x293a32,_0x124794,_0x1d99e5){this['_reset']();const {roots:_0xaa6d33,markers:_0x407c58,rootsAttributes:_0x668982}=this['_savedMetaData']['get'](_0x293a32);this['_baseRoots']=new Map(_0xaa6d33),this['_baseRootsAttributes']=new Map(_0x36f289(_0x668982));for(const [_0x578190,_0x3279a0]of this['_baseRoots'])if('$graveyard'!==_0x578190&&(this['_diffRoots']['set'](_0x578190,N(_0x3279a0)),this['_diffRootsAttributes']=new Map(_0x36f289(_0x668982)),_0x1d99e5)){const _0x36f251=this['_revisionId'];this['_idsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0)),this['_baseIdsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0,_0x36f251));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1d99e5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4a479b,_0x51e6c3]of _0x407c58){const _0x3ee25c=this['_baseRoots']['get'](_0x51e6c3['rootName']),_0x410cb6=this['_diffRoots']['get'](_0x51e6c3['rootName']),_0x3e9434=new lt(this['_fixPosition'](_0x51e6c3['start'],_0x3ee25c),this['_fixPosition'](_0x51e6c3['end'],_0x3ee25c)),_0x257492=this['_fixRange'](_0x3e9434,_0x410cb6);_0x3ee25c['markers']['set'](_0x4a479b,_0x3e9434),this['_markers']['set'](_0x4a479b,_0x257492);}this['_applyOperations'](_0x293a32,_0x124794,_0x1d99e5);}['_applyOperations'](_0x5189cc,_0x3ad93f,_0x2c482a){for(const _0x40980d of this['source']['getOperations'](_0x5189cc,_0x3ad93f))this['_handleOperation'](_0x40980d,_0x2c482a);for(const _0x19b8d4 of this['_diffRoots']['values']())_0x19b8d4['markers']['clear']();for(const [_0x25fe9a,_0x2a8524]of this['_markers']){this['_diffRoots']['get'](_0x2a8524['root']['rootName'])['markers']['set'](_0x25fe9a,_0x2a8524['clone']());}const _0x905fb=new Map(),_0x1e9a2c=new Map();for(const [_0x1b24b9,_0x5a8c53]of this['_diffRoots'])_0x905fb['set'](_0x1b24b9,N(_0x5a8c53)),_0x1e9a2c['set'](_0x1b24b9,this['_diffRootsAttributes']['get'](_0x1b24b9));this['_saveMetaData'](_0x3ad93f,_0x905fb,this['_markers'],_0x1e9a2c);}['_getPreviousFrom'](_0x12f73d){const _0x434711=Array['from'](this['_savedMetaData']['keys']());_0x434711['sort']((_0x1702b4,_0x22e4c0)=>_0x1702b4-_0x22e4c0),_0x434711['reverse']();for(const _0x270d1f of _0x434711)if(_0x270d1f<_0x12f73d)return _0x270d1f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18d30a,_0x44ab4f){const _0x85bc62=Array['from'](_0x44ab4f['markers'])['map'](([_0x356ed8,_0x423499])=>[_0x356ed8,this['_fixRange'](_0x423499,_0x18d30a)]);_0x18d30a['markers']=new Map(_0x85bc62);}['_transformMarkers'](_0x5c1ce1){for(const _0x23117c of this['_markers']['values']()){const _0x419e5b=_0x23117c['getTransformedByOperation'](_0x5c1ce1),_0x953940=lt['_createFromRanges'](_0x419e5b);_0x23117c['start']=_0x953940['start'],_0x23117c['end']=_0x953940['end'];}}['_handleOperation'](_0x43fcfa,_0x352f4a){if('addRoot'!=_0x43fcfa['type']&&'detachRoot'!=_0x43fcfa['type']){if('insert'==_0x43fcfa['type']){const _0xa06b31=_0x43fcfa['position']['root']['rootName'];this['_diffRoots']['has'](_0xa06b31)||(this['_diffRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)),this['_diffRootsAttributes']['set'](_0xa06b31,{}),_0x352f4a&&this['_idsRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)));}else{if('addRootAttribute'==_0x43fcfa['type']||'removeRootAttribute'==_0x43fcfa['type']||'changeRootAttribute'==_0x43fcfa['type'])return void this['_handleRootAttributeOperation'](_0x43fcfa);'marker'==_0x43fcfa['type']&&this['_handleMarkerOperation'](_0x43fcfa);}if('marker'!==_0x43fcfa['type']){const _0x1c3211=this['_cloneOperation'](_0x43fcfa,this['_diffRoots']);_0x1c3211['_execute'](),this['_transformMarkers'](_0x1c3211);}if(_0x352f4a)switch(_0x43fcfa['type']){case'insert':this['_handleInsertOperation'](_0x43fcfa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x43fcfa);break;case'merge':this['_handleMergeOperation'](_0x43fcfa);break;case'split':this['_handleSplitOperation'](_0x43fcfa);}}else this['_handleRootOperation'](_0x43fcfa,_0x352f4a);}['_cloneOperation'](_0x3daeb4,_0x50d8ce){const _0xcdbcaf=_0x3daeb4['clone']();return _0xcdbcaf['_authorId']=_0x3daeb4['_authorId'],this['_fixOperation'](_0xcdbcaf,_0x50d8ce),_0xcdbcaf;}['_getBaseVids'](_0x50ff87){return _0x50ff87['map'](_0x550a7a=>{const _0xb91be0=this['_getVidAttributeName'](_0x550a7a);return Number(_0x550a7a['item']['getAttribute'](_0xb91be0));});}['_generateTape'](_0x37ec04,_0x637c4e){if(_0x37ec04['is']('element','$text'))_0x637c4e['push']({'item':_0x37ec04,'type':'text'});else{_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementStart'});for(const _0x5da0ee of _0x37ec04['getChildren']())this['_generateTape'](_0x5da0ee,_0x637c4e);_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementEnd'});}return _0x637c4e;}['_getState'](){const _0x5f49f3=new Map(this['_touched']),_0x6326b5=new Map(_0x5f49f3),_0x29d491=new Map(),_0x31d825={'insertions':{},'deletions':{}},_0x2c8887={'insertions':{},'deletions':{}},_0x1428ae=new Map(),_0x5ce9b7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ce9b7['delete']('$graveyard');for(const _0x46e723 of _0x5ce9b7){const _0x302b56=this['_diffRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),_0x450054=this['_baseRoots']['get'](_0x46e723)||P(_0x46e723,!0x1);_0x302b56['isAttached']()||_0x450054['isAttached']()?(_0x31d825['insertions'][_0x46e723]=N(_0x302b56),_0x31d825['deletions'][_0x46e723]=N(_0x450054),this['_copyMarkers'](_0x31d825['deletions'][_0x46e723],_0x450054),this['_copyMarkers'](_0x31d825['insertions'][_0x46e723],_0x302b56),_0x2c8887['insertions'][_0x46e723]=this['_generateTape'](this['_idsRoots']['get'](_0x46e723),[]),_0x2c8887['deletions'][_0x46e723]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),[])):_0x5ce9b7['delete'](_0x46e723);}for(const _0x51b728 of _0x5ce9b7){const _0xc70d0f=_0x2c8887['insertions'][_0x51b728];for(const _0x9e2301 of _0xc70d0f){const _0x5e27b3=this['_getVidAttributeName'](_0x9e2301),_0x4b5a3b=_0x9e2301['item']['getAttribute'](_0x5e27b3);_0x6326b5['delete'](_0x4b5a3b),_0x4b5a3b>=this['_startingRevisionId']&&_0x29d491['set'](_0x4b5a3b,_0x5f49f3['get'](_0x4b5a3b));}}for(const _0x4a0f19 of _0x5ce9b7){const _0x3f1332=_0x2c8887['insertions'][_0x4a0f19],_0xc71957=this['_getBaseVids'](_0x2c8887['deletions'][_0x4a0f19]);let _0x52f8e3=0x0;for(const _0x3a62b2 of _0x3f1332){const _0x479ac3=this['_getVidAttributeName'](_0x3a62b2),_0x51353b=_0x3a62b2['item']['getAttribute'](_0x479ac3);if(!_0x29d491['has'](_0x51353b)&&!_0x1428ae['has'](_0x51353b)){if(_0x6326b5['has'](_0x51353b))_0x52f8e3++;else{if(_0x51353b!=_0xc71957[_0x52f8e3]){const _0x55d8f2=_0x5f49f3['get'](_0x51353b)||_0x5f49f3['get'](_0xc71957[_0x52f8e3]);for(;_0x51353b!=_0xc71957[_0x52f8e3];)_0x6326b5['has'](_0xc71957[_0x52f8e3])||(_0x1428ae['set'](_0xc71957[_0x52f8e3],_0x55d8f2),_0x5f49f3['set'](_0xc71957[_0x52f8e3],_0x55d8f2)),_0x52f8e3++;}_0x52f8e3++;}}}}for(const _0x9633b3 of _0x5ce9b7){const _0x11f0af=_0x2c8887['insertions'][_0x9633b3];for(const _0x86215e of _0x11f0af){const _0x41e8a2=this['_getVidAttributeName'](_0x86215e),_0x1f8438=_0x86215e['item']['getAttribute'](_0x41e8a2);if(_0x1428ae['has'](_0x1f8438)){const _0x519d2d=_0x1428ae['get'](_0x1f8438);_0x6326b5['has'](_0x1f8438)||_0x6326b5['set'](_0x1f8438,{..._0x519d2d}),_0x29d491['set'](_0x1f8438,{..._0x519d2d});}}}for(const _0x406473 of _0x6326b5['keys']())_0x406473>=this['_startingRevisionId']&&_0x6326b5['delete'](_0x406473);const _0x386dca=new Map();for(const _0x17fda8 of _0x5ce9b7){let _0x3b82b9=_0x2c8887['insertions'][_0x17fda8];for(const _0x545a17 of _0x3b82b9)if(_0x545a17['item']['is']('element','tableCell')){const _0x5a252a=this['_getVidAttributeName'](_0x545a17),_0x1904cd=_0x545a17['item']['getAttribute'](_0x5a252a);if(_0x29d491['has'](_0x1904cd)){const _0x11a1af=_0x545a17['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b6dc1=_0x386dca['get'](_0x11a1af)||new Set();_0x5b6dc1['add'](_0x29d491['get'](_0x1904cd)['userId']),_0x386dca['set'](_0x11a1af,_0x5b6dc1);}}_0x3b82b9=_0x2c8887['deletions'][_0x17fda8];for(const _0x59f51b of _0x3b82b9)if(_0x59f51b['item']['is']('element','tableCell')){const _0x402f43=this['_getVidAttributeName'](_0x59f51b),_0x5c00f8=_0x59f51b['item']['getAttribute'](_0x402f43);if(_0x6326b5['has'](_0x5c00f8)){const _0x2955b0=_0x59f51b['item']['parent']['parent']['getAttribute']('vid_start'),_0x59326e=_0x386dca['get'](_0x2955b0)||new Set();_0x59326e['add'](_0x6326b5['get'](_0x5c00f8)['userId']),_0x386dca['set'](_0x2955b0,_0x59326e);}}for(const _0x218855 of _0x386dca['keys']())(_0x29d491['has'](_0x218855)||_0x6326b5['has'](_0x218855))&&_0x386dca['delete'](_0x218855);}for(const _0x42b2b2 of _0x5ce9b7){const _0x425c25=_0x2c8887['insertions'][_0x42b2b2];let _0x3f1039=null,_0x3c4b72=null;for(const _0x3801df of _0x425c25){const _0x203601=this['_getVidAttributeName'](_0x3801df),_0x71b32f=_0x3801df['item']['getAttribute'](_0x203601),_0x15f38c=_0x386dca['get'](_0x71b32f);_0x15f38c&&'elementStart'==_0x3801df['type']&&(_0x3f1039=Array['from'](_0x15f38c)[0x0],_0x3c4b72=_0x3801df['item']['getAttribute']('vid_end')),_0x3f1039&&(_0x6326b5['set'](_0x71b32f,{'userId':_0x3f1039}),_0x29d491['set'](_0x71b32f,{'userId':_0x3f1039})),_0x71b32f==_0x3c4b72&&(_0x3f1039=null,_0x3c4b72=null);}}const _0x17ff1e={},_0x3b6054=new Set();for(const _0x5c269c of _0x5ce9b7){const _0x232cfa=_0x31d825['deletions'][_0x5c269c],_0x273365=_0x31d825['insertions'][_0x5c269c];for(const {userId:_0x5b5bb0}of this['_touchedMarkers']['values']())null!==_0x5b5bb0&&_0x3b6054['add'](_0x5b5bb0);for(const {userId:_0x165e5f}of this['_touchedRoots']['values']())null!==_0x165e5f&&_0x3b6054['add'](_0x165e5f);this['_markChanges'](_0x273365,_0x2c8887['insertions'][_0x5c269c],_0x29d491,'insertion',_0x3b6054),this['_markChanges'](_0x232cfa,_0x2c8887['deletions'][_0x5c269c],_0x6326b5,'deletion',_0x3b6054),_0x17ff1e[_0x5c269c]={'insertions':this['_prepareViewToSave'](_0x273365),'deletions':this['_prepareViewToSave'](_0x232cfa),'attachChange':this['_touchedRoots']['get'](_0x5c269c)||null,'attributesBefore':_0x36f289(this['_baseRootsAttributes']['get'](_0x5c269c))||{},'attributesAfter':_0x36f289(this['_diffRootsAttributes']['get'](_0x5c269c))};}return{'diffData':_0x17ff1e,'authorsIds':Array['from'](_0x3b6054)};}['_processRootBeforeSave'](_0x41a7f1){for(const [,_0x19bbe0]of _0x41a7f1['markers']){const _0x400877=_0x19bbe0['start']['getAncestors']()['filter'](_0x7264c0=>'tableCell'==_0x7264c0['name']);for(const _0x26e858 of _0x400877)0x1==_0x26e858['childCount']&&_0x26e858['getChild'](0x0)['is']('element','paragraph')&&_0x26e858['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1e1ff6){this['_processRootBeforeSave'](_0x1e1ff6);const _0x4d0099=this['editor']['data']['toView'](_0x1e1ff6,{}),_0x3a2686=Array['from'](_0x4d0099['getChildren']())['map'](_0x310bb6=>this['_getViewJson'](_0x310bb6));return JSON['stringify'](_0x3a2686);}['_getViewJson'](_0x5d9103){if(_0x5d9103['is']('$text'))return _0x5d9103['data'];{const _0x3df6e4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xcd1216=_0x5d9103,_0x4c03ad=this['editor']['data']['htmlProcessor']['domConverter'],_0x278afa={'type':_0x3df6e4['_getTypeCharForViewElement'](_0xcd1216),'name':_0xcd1216['name'],'attributes':Array['from'](_0xcd1216['getAttributes']()),'children':Array['from'](_0xcd1216['getChildren']())['map'](_0x3fc44a=>this['_getViewJson'](_0x3fc44a))};if(_0x5d9103['is']('uiElement')&&'$comment'!=_0x5d9103['name']){const _0x2d469c=_0x5d9103['render'](_0x4c03ad['domDocument'],_0x4c03ad);_0x278afa['children']['push'](_0x2d469c['outerHTML']);}else{if(_0x5d9103['is']('rawElement')){const _0x4753b9=_0x4c03ad['domDocument']['createElement'](_0xcd1216['name']);_0x5d9103['render'](_0x4753b9,_0x4c03ad),_0x278afa['children']['push'](_0x4753b9['innerHTML']);}}const _0x4ae966=Array['from'](_0xcd1216['getCustomProperties']());_0x4ae966['length']>0x0&&(_0x278afa['customProperties']=_0x4ae966);const _0x5ec59b=_0xcd1216['getFillerOffset']();return null!==_0x5ec59b&&(_0x278afa['fillerOffset']=_0x5ec59b),_0x278afa;}}['_markChanges'](_0x3f4a16,_0x58a16b,_0x1e1b2c,_0x24b61e,_0x114d07){let _0x182ec3=null,_0x1f137b=null,_0x1e189b=0x0;const _0x19f232=this['editor']['model'];for(let _0xde32d2=0x0;_0xde32d2<_0x58a16b['length'];_0xde32d2++){const _0x3d5b88=this['_getVidAttributeName'](_0x58a16b[_0xde32d2]),_0x33b786=_0x58a16b[_0xde32d2]['item']['getAttribute'](_0x3d5b88),_0x364f27=_0x1e1b2c['get'](_0x33b786),_0x38fec3=_0xde32d2==_0x58a16b['length']-0x1;(!_0x182ec3&&_0x364f27&&(_0x182ec3=_0x364f27,_0x1f137b=_0x58a16b[_0xde32d2]),_0x182ec3&&(!_0x364f27||_0x364f27['userId']!=_0x182ec3['userId']))&&(_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),F(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232)),_0x182ec3=_0x364f27||null,_0x1f137b=_0x364f27?_0x58a16b[_0xde32d2]:null),_0x182ec3&&_0x38fec3&&_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),B(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232));}function _0x5b7aca(_0x3f45c6,_0x41f18d,_0xfe9161){const _0x21516d=_0x182ec3['userId'],_0x559f2d='revision:'+_0x24b61e+':'+_0x21516d+':'+_0x1e189b++,_0x5b0541=_0x19f232['createRange'](_0x41f18d,_0xfe9161);_0x3f4a16['markers']['set'](_0x559f2d,_0x5b0541),null!==_0x21516d&&_0x114d07['add'](_0x21516d);}}['_getVidAttributeName'](_0x55008f){switch(_0x55008f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xf84edd,_0x5d4e60){_0xf84edd['baseVersion']=null;for(const _0x4439ae in _0xf84edd){const _0xd8d9be=_0xf84edd[_0x4439ae];if(_0xd8d9be instanceof ft){const _0x299d34=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixPosition'](_0xd8d9be,_0x299d34);}if(_0xd8d9be instanceof lt){const _0x3d5321=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixRange'](_0xd8d9be,_0x3d5321);}'root'===_0x4439ae&&(_0xf84edd['root']=_0x5d4e60['get'](_0xf84edd['root']['rootName']));}}['_fixRange'](_0x3d8714,_0x5c6d3a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d8714['start'],_0x5c6d3a),this['_fixPosition'](_0x3d8714['end'],_0x5c6d3a));}['_fixPosition'](_0x5cb701,_0x525976){return this['editor']['model']['createPositionFromPath'](_0x525976,_0x5cb701['path'],_0x5cb701['stickiness']);}['_handleInsertOperation'](_0x262b45){const _0x5307a9=this['_idsRoots']['get'](_0x262b45['position']['root']['rootName']),_0x3b0610=this['_fixPosition'](_0x262b45['position'],_0x5307a9),_0x27e9a2=null===_0x262b45['_authorId']?null:_0x262b45['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x68cd7f=_0x3b0610['parent'],_0x4161ea=this['_revisionId'],_0x2906b4=[];for(const _0xf24ed1 of _0x262b45['nodes'])if(_0xf24ed1['is']('element'))_0x2906b4['push'](this['_makeIdsRoot'](_0xf24ed1));else{for(let _0x438acd=0x0;_0x438acd<_0xf24ed1['offsetSize'];_0x438acd++)_0x2906b4['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4e139a=this['_revisionId'];for(let _0x450f8e=_0x4161ea;_0x450f8e<_0x4e139a;_0x450f8e++)this['_touched']['set'](_0x450f8e,{'userId':_0x27e9a2});_0x68cd7f['_insertChild'](_0x3b0610['offset'],_0x2906b4);}['_handleMoveOperation'](_0x3bd06d){(_0x3bd06d=this['_cloneOperation'](_0x3bd06d,this['_idsRoots']))['_execute']();const _0x1e2495=null===_0x3bd06d['_authorId']?null:_0x3bd06d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x171eb8=_0x3bd06d['getMovedRangeStart'](),_0x1b0eb1=_0x171eb8['parent'],_0x370494=_0x171eb8['offset'];!function _0x4da2b3(_0x2781f9,_0x7c4ce4,_0x562275,_0xdd6d93){for(let _0x539633=_0x562275;_0x539633<_0xdd6d93;_0x539633++){const _0x148328=_0x7c4ce4['getChild'](_0x539633);_0x148328['is']('element','$text')?_0x2781f9['set'](_0x148328['getAttribute']('vid'),{'userId':_0x1e2495}):(_0x2781f9['set'](_0x148328['getAttribute']('vid_start'),{'userId':_0x1e2495}),_0x4da2b3(_0x2781f9,_0x148328,0x0,_0x148328['childCount']),_0x2781f9['set'](_0x148328['getAttribute']('vid_end'),{'userId':_0x1e2495}));}}(this['_touched'],_0x1b0eb1,_0x370494,_0x370494+_0x3bd06d['howMany']);}['_handleMergeOperation'](_0x32ab64){const _0xe4acb8=null===(_0x32ab64=this['_cloneOperation'](_0x32ab64,this['_idsRoots']))['_authorId']?null:_0x32ab64['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c01fb=_0x32ab64['targetPosition']['parent'],_0x56d082=_0x32ab64['sourcePosition']['parent'],_0x21fdd8=_0x5c01fb['getAttribute']('vid_end'),_0x401b3c=_0x56d082['getAttribute']('vid_start');_0x5c01fb['_setAttribute']('vid_end',_0x56d082['getAttribute']('vid_end')),_0x56d082['_setAttribute']('vid_end',_0x21fdd8),this['_touched']['set'](_0x401b3c,{'userId':_0xe4acb8}),this['_touched']['set'](_0x21fdd8,{'userId':_0xe4acb8}),_0x32ab64['_execute']();}['_handleSplitOperation'](_0x5404af){const _0x1b9821=null===(_0x5404af=this['_cloneOperation'](_0x5404af,this['_idsRoots']))['_authorId']?null:_0x5404af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x568084=_0x5404af['graveyardPosition'],_0x5f4015=_0x5404af['splitPosition']['parent'];_0x5404af['_execute']();const _0x271da5=_0x5f4015['getAttribute']('vid_end'),_0x3c58d2=_0x5404af['insertionPosition']['nodeAfter'];if(_0x568084){const _0x5973b6=_0x3c58d2['getAttribute']('vid_end'),_0x39d990=_0x5f4015['getAttribute']('vid_end');_0x5f4015['_setAttribute']('vid_end',_0x5973b6),_0x3c58d2['_setAttribute']('vid_end',_0x39d990),this['_touched']['set'](_0x5f4015['getAttribute']('vid_end'),{'userId':_0x1b9821}),this['_touched']['set'](_0x3c58d2['getAttribute']('vid_start'),{'userId':_0x1b9821});}else{const _0x5a350b=this['_revisionId']++,_0x171fb8=this['_revisionId']++;_0x5f4015['_setAttribute']('vid_end',_0x5a350b),_0x3c58d2['_setAttribute']('vid_start',_0x171fb8),_0x3c58d2['_setAttribute']('vid_end',_0x271da5),this['_touched']['set'](_0x5a350b,{'userId':_0x1b9821}),this['_touched']['set'](_0x171fb8,{'userId':_0x1b9821});}}['_handleMarkerOperation'](_0x375dc1){if(!_0x375dc1['affectsData'])return;const _0x438f89=(_0x375dc1=this['_cloneOperation'](_0x375dc1,this['_diffRoots']))['oldRange']?_0x375dc1['oldRange']['root']:null,_0x4272e3=_0x375dc1['newRange']?_0x375dc1['newRange']['root']:null;_0x438f89&&this['_markers']['delete'](_0x375dc1['name']),_0x4272e3&&this['_markers']['set'](_0x375dc1['name'],_0x375dc1['newRange']['clone']());const _0xcfed27=null===_0x375dc1['_authorId']?null:_0x375dc1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575bbd=_0x375dc1['name'];if(!this['_touchedMarkers']['has'](_0x575bbd))return void this['_touchedMarkers']['set'](_0x575bbd,{'range':_0x375dc1['oldRange'],'userId':_0xcfed27});const _0x12bf72=this['_touchedMarkers']['get'](_0x575bbd),_0x9bc576=_0x12bf72['range'],_0x279a03=_0x375dc1['newRange'];null==_0x9bc576&&null==_0x279a03||_0x9bc576&&_0x279a03&&_0x9bc576['isEqual'](_0x279a03)?this['_touchedMarkers']['delete'](_0x375dc1['name']):_0x12bf72['userId']=_0xcfed27;}['_handleRootOperation'](_0xa93cfc,_0x4bf02c){this['_diffRoots']['has'](_0xa93cfc['rootName'])?this['_diffRoots']['get'](_0xa93cfc['rootName'])['_isAttached']=_0xa93cfc['isAdd']:(this['_diffRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xa93cfc['rootName'],{}),_0x4bf02c&&this['_idsRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)));const _0x5b5fbc=null===_0xa93cfc['_authorId']?null:_0xa93cfc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x403f89=this['_touchedRoots']['get'](_0xa93cfc['rootName']);_0x403f89&&_0x403f89['userId']===_0x5b5fbc?this['_touchedRoots']['delete'](_0xa93cfc['rootName']):this['_touchedRoots']['set'](_0xa93cfc['rootName'],{'userId':_0x5b5fbc,'isAttached':_0xa93cfc['isAdd']});}['_handleRootAttributeOperation'](_0x55fa24){const _0x3593c0=this['_diffRootsAttributes']['get'](_0x55fa24['root']['rootName']);null===_0x55fa24['newValue']?delete _0x3593c0[_0x55fa24['key']]:_0x3593c0[_0x55fa24['key']]=_0x55fa24['newValue'];}}function N(_0x57bb9f){const _0xcfb389=P(_0x57bb9f['rootName'],_0x57bb9f['isAttached']());for(const _0x2332b2 of _0x57bb9f['getChildren']()){const _0x2729ae=_0x2332b2['_clone'](!0x0);_0xcfb389['_appendChild'](_0x2729ae);}return _0xcfb389;}function P(_0x434ad7,_0x44c56f=!0x0){const _0x581458=new vt();return _0x581458['rootName']=_0x434ad7,_0x581458['_isAttached']=_0x44c56f,_0x581458['isAttached']=()=>_0x581458['_isAttached'],_0x581458;}function F(_0x1b523b,_0x49b00e,_0xcfc8e2){const _0x35e07b='elementEnd'==_0x1b523b['type']?_0xcfc8e2['createPositionAt'](_0x1b523b['item'],'end'):_0xcfc8e2['createPositionBefore'](_0x1b523b['item']);return _0xcfc8e2['createPositionFromPath'](_0x49b00e,_0x35e07b['path'],_0x35e07b['stickiness']);}function B(_0x27987f,_0x517c85,_0x5263a3){const _0x23275b='elementStart'==_0x27987f['type']?_0x5263a3['createPositionAt'](_0x27987f['item'],0x0):_0x5263a3['createPositionAfter'](_0x27987f['item']);return _0x5263a3['createPositionFromPath'](_0x517c85,_0x23275b['path'],_0x23275b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13a62c,_0xb7a8e4){super(_0x13a62c),this['focusTracker']=new _0x5a36b0(),this['keystrokes']=new _0x37dc31(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb7a8e4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1d874c(this);}['render'](){super['render'](),_0x5b119f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2578dd=_0x1f4fdf=>_0x1f4fdf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2578dd),this['keystrokes']['set']('arrowleft',_0x2578dd),this['keystrokes']['set']('arrowup',_0x2578dd),this['keystrokes']['set']('arrowdown',_0x2578dd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x25b97e){this['revisionNameInputView']['fieldView']['element']['value']=_0x25b97e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1ed1b2){const _0x395e3f=new _0x256e64(this['locale'],_0xb8ce7b),_0x5bc6a1=_0x395e3f['fieldView'];_0x5bc6a1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x542acd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1ed1b2&&(_0x542acd+='\x20('+g(this['locale'],'optional')+')'),(_0x395e3f['label']=_0x542acd,_0x5bc6a1['on']('input',()=>{this['revisionNameInputValue']=_0x5bc6a1['element']['value']['trim']();}),_0x395e3f);}}class f extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4cc819=this['editor'],_0x59c2e7=_0x4cc819['plugins']['get']('RevisionTracker');_0x4cc819['ui']['componentFactory']['add']('revisionHistory',_0x288aad=>{const _0x578182=_0x3c0c02(_0x288aad),_0x585acf=_0x578182['panelView']['children'],_0x35d9e6=new _0x5b1655(_0x288aad),_0x2f0cf7=new _0x3f34f5(_0x288aad),_0x479034=new te(_0x288aad),_0x15cafd=new _0x3f34f5(_0x288aad),_0x5a84cc=new te(_0x288aad);return _0x578182['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x3cda6d,_0x2fbe9b,_0xe3657e)=>_0x3cda6d&&_0x2fbe9b&&!_0xe3657e),_0x578182['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x288aad,'Revision\x20history'),'tooltip':!0x0}),_0x479034['set']({'label':g(_0x288aad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x479034['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x46f285,_0x246e5c,_0x4290d6)=>_0x46f285&&_0x246e5c&&!_0x4290d6),_0x479034['on']('execute',()=>this['_showDialog']()),_0x5a84cc['set']({'label':g(_0x288aad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a84cc['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x4cc819,'isReadOnly',(_0xb2c515,_0x5c650f)=>_0xb2c515&&!_0x5c650f),_0x5a84cc['on']('execute',()=>{_0x4cc819['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x578182['isOpen']=!0x1,_0x4cc819['editing']['view']['focus']();}),_0x2f0cf7['children']['add'](_0x479034),_0x15cafd['children']['add'](_0x5a84cc),_0x35d9e6['role']='menu',_0x35d9e6['items']['addMany']([_0x2f0cf7,_0x15cafd]),_0x585acf['add'](_0x35d9e6),_0x578182;}),_0x4cc819['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1cace1=this['editor'],_0x304b90=_0x1cace1['locale'],_0xfd533a=new _0x505352(_0x304b90),_0x59b376=new _0x222b9c(_0x304b90);_0xfd533a['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x304b90,'Revision\x20history')});const _0x7525ec=new _0x1d2298(_0x304b90,_0xfd533a),_0x1c3c2f=new _0x11e198(_0x304b90);_0x1c3c2f['set']({'label':g(_0x304b90,'Save\x20current\x20revision')}),_0x1c3c2f['delegate']('execute')['to'](_0xfd533a),_0x1c3c2f['on']('execute',()=>{this['_showDialog']();}),_0x7525ec['children']['add'](_0x1c3c2f),_0x59b376['items']['add'](_0x7525ec);const _0x1ec4dc=new _0x1d2298(_0x304b90,_0xfd533a),_0x5ebb38=new _0x11e198(_0x304b90);return _0x5ebb38['set']({'label':g(_0x304b90,'Open\x20revision\x20history')}),_0x5ebb38['delegate']('execute')['to'](_0xfd533a),_0x5ebb38['on']('execute',()=>{_0x1cace1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ec4dc['children']['add'](_0x5ebb38),_0x59b376['items']['add'](_0x1ec4dc),_0xfd533a['panelView']['children']['add'](_0x59b376),_0xfd533a;}['_showDialog'](){const _0x18e2ac=this['editor'],_0x1eef08=_0x18e2ac['locale'],_0x47b89a=_0x18e2ac['plugins']['get']('Dialog'),_0x5848ce=_0x18e2ac['plugins']['get']('RevisionTracker');function _0x3b98b2(_0x3c7613){_0x18e2ac['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c7613['revisionName']?_0x3c7613['revisionNameInputView']['errorText']=g(_0x1eef08,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x18e2ac['plugins']['get'](u)['saveRevision']({'name':_0x3c7613['revisionName']}),_0x47b89a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b98b2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x47b89a['show']({'id':'revisionSave','title':g(_0x1eef08,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x18e2ac['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x47b89a['hide']()},{'label':g(_0x18e2ac['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5de72e){_0x5de72e['bind']('isEnabled')['to'](_0x5848ce,'isReady',_0x5848ce,'isEnabled',_0x18e2ac,'isReadOnly',(_0x8f302a,_0x54520c,_0x466030)=>_0x8f302a&&_0x54520c&&!_0x466030);},'onExecute':()=>_0x3b98b2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x553dd7=this['editor'],_0x160e8d=_0x553dd7['locale'];this['_saveRevisionFormView']=new hs(_0x160e8d,_0x553dd7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x541ee7,_0x356984){super(_0x541ee7),this['_model']=_0x356984,this['changeId']=_0x356984['id'];const _0x33f012=this['bindTemplate'],_0x407b91=g(_0x541ee7,_0x356984['data']['isSuggestion']?'Suggested\x20by':'add'==_0x356984['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x356984['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33f012['to']('type',_0x379064=>'ck-revision-change__'+_0x379064)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x407b91}]},{'text':'\x20'+_0x356984['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x14857d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ee65e){super(),this['id']=_0x1ee65e['id']||_0x451426(),this['author']=_0x1ee65e['author'],this['type']=_0x1ee65e['type'],this['data']=_0x1ee65e['data']||{},this['rootName']=_0x1ee65e['rootName'],this['set']('createdAt',_0x1ee65e['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(_0xf27823,_0x280bdf){this['newRevisionId']=_0xf27823,this['oldRevisionId']=_0x280bdf,this['changes']=new _0x3fcc51();}['_setChanges'](_0x4cd166){for(const _0x528328 of _0x4cd166)this['changes']['add'](_0x528328);}}class m extends _0x149b28{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43b4df,_0x1663f0,I,V];}constructor(_0xda1191){super(_0xda1191),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x181734,_0x143b0d,_0x3259dd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x9fc213=>{for(const _0x529733 of this['editor']['editing']['view']['document']['roots'])_0x3259dd?_0x9fc213['removeClass']('ck-editor__editable__overlay',_0x529733):_0x9fc213['addClass']('ck-editor__editable__overlay',_0x529733);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x320d63=>null!==_0x320d63),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x466cf7,_0x544a0c,_0x64a5b6)=>_0x466cf7&&_0x64a5b6?_0x544a0c['changes']['getIndex'](_0x64a5b6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x11863c,_0x572c8b)=>_0x11863c?_0x572c8b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1663f0);}['init'](){const _0x1f4ed3=this['editor'],_0x5587fe=new wt(_0x1f4ed3,{'direction':'backward'}),_0x586276=new wt(_0x1f4ed3,{'direction':'forward'});(_0x1f4ed3['commands']['add']('showPreviousChange',_0x5587fe),_0x1f4ed3['commands']['add']('showNextChange',_0x586276),_0x1f4ed3['commands']['add']('restoreRevision',new mt(_0x1f4ed3)),this['on']('change:numberOfChanges',()=>{_0x5587fe['refresh'](),_0x586276['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f4ed3['enableReadOnlyMode']('revision-viewer'),_0x1f4ed3['plugins']['has']('WidgetToolbarRepository'))&&_0x1f4ed3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x34345d){return await this['_utils']['loadRevisionData'](_0x34345d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x34345d);}async['getRevisionRootsAttributes'](_0x68be0a){return await this['_utils']['loadRevisionData'](_0x68be0a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x68be0a);}async['compare'](_0x412686,_0x247e60,_0x2cd7c6=!0x1){if(!this['isEnabled'])return;const _0x313833=this['diff'],_0xb72f1=this['repository'],_0x5f1182='string'==typeof _0x412686?_0xb72f1['getRevision'](_0x412686):_0x412686,_0x4012d5='string'==typeof _0x247e60?_0xb72f1['getRevision'](_0x247e60):_0x247e60,_0x10ad4a=_0x5f1182['id'],_0x35386d=_0x4012d5?_0x4012d5['id']:null;if(!_0x2cd7c6&&this['diff']&&this['diff']['newRevisionId']===_0x10ad4a&&this['diff']['oldRevisionId']===_0x35386d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x10ad4a,_0x35386d);const _0x442776=this['_getRevisionsRange'](_0x5f1182,_0x4012d5,!0x0)['map'](_0x2af5bb=>this['_utils']['loadRevisionData'](_0x2af5bb,this['adapter']));return _0x442776['push'](new Promise(_0x51d4b1=>{setTimeout(_0x51d4b1,0x14);})),Promise['all'](_0x442776)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x316303=this['_getDiff'](_0x10ad4a,_0x35386d);for(const _0x17444c of _0x316303['changes'])this['_changeIdToChange']['set'](_0x17444c['id'],_0x17444c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x323efd=>{for(const _0x2f24f1 of this['editor']['model']['document']['getRootNames']())_0x323efd['detachRoot'](_0x2f24f1);for(const _0x32ec56 of Object['keys'](_0x316303['model'])){const _0x5bde61=_0x323efd['addRoot'](_0x32ec56);for(const _0x40423e of Object['keys'](_0x316303['attributes'][_0x32ec56]))_0x323efd['setAttribute'](_0x40423e,_0x316303['attributes'][_0x32ec56][_0x40423e],_0x5bde61);_0x323efd['insert'](_0x316303['model'][_0x32ec56],_0x5bde61,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x316303['changes'])),this['isReady']=!0x0;})['catch'](_0x22aa41=>{console['error'](_0x22aa41),this['_cleanUp'](),_0x313833&&(this['diff']=_0x313833),this['isReady']=!0x0;});}['addRevisionData'](_0x173394,_0x1e4e7f){const _0xde2de4=this['repository']['createRevision'](_0x173394);return _0xde2de4['on']('_update',(_0x599007,_0x27f085,_0x411686)=>_0x1e4e7f(_0x27f085,_0x411686,_0xde2de4)),this['repository']['addRevision'](_0xde2de4),_0xde2de4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x551c54=>{for(const _0x50e483 of this['editor']['model']['document']['getRootNames']())_0x551c54['detachRoot'](_0x50e483);});}['_sortAndFilterDiffChanges'](_0x283421){const _0x4bfe46=[],_0x46239b=new Map();for(const _0x34e831 of this['editor']['model']['document']['getRootNames']()){const _0x2c3b07=this['editor']['editing']['view']['getDomRoot'](_0x34e831);if(!_0x2c3b07)continue;const _0x528a56=_0x2c3b07['getClientRects']()['item'](0x0);_0x528a56&&(_0x4bfe46['push'](_0x34e831),_0x46239b['set'](_0x34e831,_0x528a56));}return _0x4bfe46['sort']((_0x1bd447,_0x1a194e)=>{const _0x211d4d=_0x46239b['get'](_0x1bd447),_0x19e167=_0x46239b['get'](_0x1a194e);return _0x211d4d['y']-_0x19e167['y']||_0x211d4d['x']-_0x19e167['x'];}),(_0x283421=_0x283421['filter'](_0x296dd2=>_0x4bfe46['includes'](_0x296dd2['rootName'])))['sort']((_0xbe5028,_0x315da0)=>_0x4bfe46['indexOf'](_0xbe5028['rootName'])-_0x4bfe46['indexOf'](_0x315da0['rootName'])),_0x283421;}['_makeTape'](_0xb0e5dd){const _0xcb5390=Array['from'](_0xb0e5dd['markers'])['filter'](([_0x1a0de9,_0x5cfb0c])=>_0x1a0de9['startsWith']('revision:')&&!_0x5cfb0c['isCollapsed']),_0x594700=Array['from'](this['editor']['model']['createRangeIn'](_0xb0e5dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcb5390['length'])for(const _0x44b8fa of _0x594700){const [_0x144796,_0xfcbaf9]=_0xcb5390[0x0],[,_0xc0a35d,_0x2a7ca1]=_0x144796['split'](':');if(_0xfcbaf9['end']['isEqual'](_0x44b8fa['nextPosition'])&&_0xcb5390['shift'](),(_0x44b8fa['previousPosition']['isEqual'](_0xfcbaf9['start'])||_0x44b8fa['previousPosition']['isAfter'](_0xfcbaf9['start']))&&('insertion'==_0xc0a35d?_0x44b8fa['isAdded']={'userId':_0x2a7ca1}:'deletion'==_0xc0a35d&&(_0x44b8fa['isRemoved']={'userId':_0x2a7ca1})),0x0==_0xcb5390['length'])break;}return _0x594700;}['_refreshStartEndIndex'](_0x580a1e){const _0x55838e=new Map();for(let _0x5dccd1=0x0;_0x5dccd1<_0x580a1e['length'];_0x5dccd1++)'text'===_0x580a1e[_0x5dccd1]['type']?(_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1,_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1):('elementStart'===_0x580a1e[_0x5dccd1]['type']?_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1:'elementEnd'===_0x580a1e[_0x5dccd1]['type']&&(_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1),_0x55838e['set'](_0x580a1e[_0x5dccd1]['id'],_0x5dccd1));for(const _0x4eeade of _0x55838e['values']())'elementStart'===_0x580a1e[_0x4eeade]['type']?_0x580a1e[_0x4eeade]['item']['endIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']):'elementEnd'===_0x580a1e[_0x4eeade]['type']&&(_0x580a1e[_0x4eeade]['item']['startIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']));}['_processTape'](_0x19a606){for(let _0x1b7905=0x0;_0x1b7905<_0x19a606['length'];_0x1b7905++){if('elementStart'===_0x19a606[_0x1b7905]['type'])_0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905;else{if('elementEnd'===_0x19a606[_0x1b7905]['type']){_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905;const _0x37ba9f=_0x19a606[_0x1b7905]['item']['startIndex'];_0x19a606[_0x37ba9f]['pairId']=_0x19a606[_0x1b7905]['id'],_0x19a606[_0x1b7905]['pairId']=_0x19a606[_0x37ba9f]['id'];}else _0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905,_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905,_0x19a606[_0x1b7905]['pairId']=null;}_0x19a606[_0x1b7905]['markersStart']||(_0x19a606[_0x1b7905]['markersStart']=[],_0x19a606[_0x1b7905]['markersEnd']=[]);}}['_markInsertions'](_0xeb1826,_0x202223){const _0x503ba1=_0xeb1826['filter'](_0x27a267=>!_0x27a267['isAdded']);for(let _0x5b2cf0=0x0;_0x5b2cf0<_0x202223['length'];_0x5b2cf0++)_0x202223[_0x5b2cf0]['isAdded']&&(_0x503ba1[_0x5b2cf0]['isAdded']=_0x202223[_0x5b2cf0]['isAdded']);}['_getDiff'](_0x37abd1,_0x1c2b2c=null){const _0x4fa35b=this['repository']['getRevision'](_0x37abd1),_0x408dd0=_0x1c2b2c?this['repository']['getRevision'](_0x1c2b2c):null,_0x34baec=this['_getRevisionsRange'](_0x4fa35b,_0x408dd0),_0x5a91dc=_0x34baec[_0x34baec['length']-0x1],_0x548368=new Map(),_0x4be1f2={'model':{},'attributes':{},'changes':[]},_0x142885=new Set(),_0x380cbc=new Map();for(let _0x166c45=_0x34baec['length']-0x1;_0x166c45>=0x0;_0x166c45--){const _0x480e0b=_0x34baec[_0x166c45];for(const _0x4a8d5b of Object['keys'](_0x480e0b['diffData']))if(_0x480e0b['diffData'][_0x4a8d5b]['attachChange']){const _0x5f5d5=_0x480e0b['diffData'][_0x4a8d5b]['attachChange'];_0x5f5d5['isAttached']?(_0x142885['add'](_0x4a8d5b),_0x380cbc['has'](_0x4a8d5b)&&_0x380cbc['get'](_0x4a8d5b)['userId']==_0x5f5d5['userId']?_0x380cbc['delete'](_0x4a8d5b):_0x380cbc['set'](_0x4a8d5b,_0x5f5d5)):_0x380cbc['has'](_0x4a8d5b)?(_0x142885['delete'](_0x4a8d5b),_0x380cbc['delete'](_0x4a8d5b)):(_0x142885['add'](_0x4a8d5b),_0x380cbc['set'](_0x4a8d5b,_0x5f5d5));}else _0x142885['add'](_0x4a8d5b);}for(const _0x5b6023 of _0x142885){const _0x5cbf59=_0x380cbc['has'](_0x5b6023)&&!_0x380cbc['get'](_0x5b6023)['isAttached'];let _0x153e25=_0x5cbf59?_0x34baec['length']-0x1:0x0;const _0x522b2c=_0x5cbf59?-0x1:0x1;for(;_0x34baec[_0x153e25];){const _0x1194b7=_0x34baec[_0x153e25];if(_0x1194b7['diffData'][_0x5b6023]){const _0x4d036e=_0x5cbf59?_0x1194b7['diffData'][_0x5b6023]['attributesBefore']:_0x1194b7['diffData'][_0x5b6023]['attributesAfter'];_0x4be1f2['attributes'][_0x5b6023]=_0x4d036e?_0x36f289(_0x4d036e):{};break;}_0x153e25+=_0x522b2c;}}for(const _0x3f0912 of _0x34baec){_0x3f0912['model']={};for(const _0xe547b4 of _0x3f0912['authors'])_0x548368['set'](_0xe547b4['id'],_0xe547b4);for(const _0x1bd8c1 of _0x142885){const _0x2dcc24=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['insertions']:'[]',_0x15aff5=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['deletions']:'[]';_0x3f0912['model'][_0x1bd8c1]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2dcc24),'deletions':this['_utils']['_makeModelFromViewString'](_0x15aff5)};}}for(const _0x393141 of _0x142885){let _0x2146b6=null,_0x52d2f6=0x0;const _0x2b15c4=new Map(Array['from'](_0x4fa35b['model'][_0x393141]['insertions']['markers'])['filter'](([_0x51d9c2])=>!_0x51d9c2['startsWith']('revision:')));let _0x905f91=0x0;for(const _0x59ce36 of _0x34baec){const _0x47eb6a=this['_makeTape'](_0x59ce36['model'][_0x393141]['insertions']);_0x59ce36==_0x4fa35b?(_0x2146b6=_0x47eb6a,_0x52d2f6=_0x2146b6['length'],_0x2146b6['forEach'](_0x3cc919=>{_0x3cc919['id']=_0x905f91++;}),this['_processTape'](_0x2146b6)):this['_markInsertions'](_0x2146b6,_0x47eb6a);const _0x2e1fac=_0x2146b6['filter'](_0x4abb61=>!_0x4abb61['isAdded'])['map'](_0x43d134=>_0x43d134['id']);let _0x3d55f2=0x0;const _0x179132=this['_makeTape'](_0x59ce36['model'][_0x393141]['deletions']);_0x179132['forEach'](_0x4656f7=>{_0x4656f7['isRemoved']?_0x4656f7['id']=_0x52d2f6++:_0x4656f7['id']=_0x2e1fac[_0x3d55f2++];}),this['_processTape'](_0x179132),this['_setDistance'](_0x2146b6,'isAdded'),this['_setDistance'](_0x179132,'isRemoved'),_0x59ce36==_0x4fa35b&&this['_markMarkers'](_0x2146b6,_0x2b15c4),_0x2146b6=this['_joinTapes'](_0x2146b6,_0x179132),this['_refreshStartEndIndex'](_0x2146b6),this['_setDistance'](_0x2146b6,'isRemoved');}_0x2146b6=_0x2146b6['filter'](_0x4abb8=>!(_0x4abb8['isAdded']&&_0x4abb8['isRemoved']));const _0x14a66b=new Map(_0x5a91dc['model'][_0x393141]['deletions']['markers']),_0x128050=new Set(_0x2b15c4['keys']());for(const _0x46ada8 of _0x14a66b['keys']())_0x128050['delete'](_0x46ada8);this['_markSuggestions'](_0x2146b6,_0x128050),this['_fixObsoleteTags'](_0x2146b6),_0x2146b6=this['_removeMissingPairs'](_0x2146b6),_0x2146b6=this['_markMismatchedRemovedTags'](_0x2146b6),_0x2146b6=this['_removeUnsupportedChanges'](_0x2146b6);const {root:_0x421b05,changes:_0x50dfb7}=this['_makeModelFromTape'](_0x2146b6,_0x548368,_0x393141);_0x4be1f2['model'][_0x393141]=_0x421b05;const _0x5b85a1=_0x380cbc['get'](_0x393141);if(_0x5b85a1){const _0x2e933c=_0x548368['get'](_0x5b85a1['userId']),_0x184188=new r({'author':_0x2e933c,'type':_0x5b85a1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x393141});_0x50dfb7['unshift'](_0x184188),_0x4be1f2['attributes'][_0x393141]['revisionHistoryAttachChange']=_0x184188['id'];}_0x4be1f2['changes']=_0x4be1f2['changes']['concat'](_0x50dfb7);}return _0x4be1f2;}['_markMarkers'](_0x4e3434,_0x5b5a46){for(let _0x559a19=0x0;_0x559a19<_0x4e3434['length'];_0x559a19++)for(const [_0x15ecee,_0x51b527]of _0x5b5a46)!_0x51b527['isCollapsed']&&_0x51b527['start']['isEqual'](_0x4e3434[_0x559a19]['previousPosition'])&&_0x4e3434[_0x559a19]['markersStart']['push'](_0x15ecee),_0x51b527['end']['isEqual'](_0x4e3434[_0x559a19]['nextPosition'])&&_0x4e3434[_0x559a19]['markersEnd']['push'](_0x15ecee);}['_joinTapes'](_0x9e13fc,_0x4ec9c3){let _0x917218=[],_0x7dc234=0x0,_0x260d5a=0x0;for(;_0x7dc234<_0x9e13fc['length']||_0x260d5a<_0x4ec9c3['length'];){const _0x29111f=_0x9e13fc[_0x7dc234]||{},_0x363cdb=_0x4ec9c3[_0x260d5a]||{};if(_0x29111f['id']==_0x363cdb['id'])_0x7dc234++,_0x260d5a++,_0x917218['push'](_0x29111f);else{if(_0x363cdb['isRemoved']&&_0x29111f['isAdded']){const {commonTape:_0x102e73,iEnd:_0x519295,jEnd:_0x228435}=this['_threeWayMerge'](_0x9e13fc,_0x7dc234,_0x4ec9c3,_0x260d5a);_0x917218=_0x917218['concat'](_0x102e73),_0x7dc234=_0x519295,_0x260d5a=_0x228435;}else _0x363cdb['isRemoved']?(_0x260d5a++,_0x917218['push'](_0x363cdb)):(_0x7dc234++,_0x917218['push'](_0x29111f));}}return _0x917218;}['_markSuggestions'](_0x1b8a6e,_0x2609fb){const _0xcc0343=[];for(let _0x3f1231=0x0;_0x3f1231<_0x1b8a6e['length'];_0x3f1231++){for(let _0x39d393=0x0;_0x39d393<_0x1b8a6e[_0x3f1231]['markersStart']['length'];_0x39d393++){const _0x47ead5=_0x1b8a6e[_0x3f1231]['markersStart'][_0x39d393];if(!_0x2609fb['has'](_0x47ead5))continue;const {group:_0xff4bc5,type:_0x284563,authorId:_0x3a3c60}=_0x549143(_0x47ead5);'revision-suggestion'!=_0xff4bc5||'insertion'!=_0x284563&&'deletion'!=_0x284563||(_0xcc0343['unshift']({'type':_0x284563,'name':_0x47ead5,'userId':_0x3a3c60}),_0x1b8a6e[_0x3f1231]['markersStart']['splice'](_0x39d393,0x1),_0x39d393--);}_0xad8822(_0x1b8a6e[_0x3f1231]);for(let _0x3e14a1=0x0;_0x3e14a1<_0x1b8a6e[_0x3f1231]['markersEnd']['length'];_0x3e14a1++){const _0x408d85=_0x1b8a6e[_0x3f1231]['markersEnd'][_0x3e14a1];if(!_0x2609fb['has'](_0x408d85))continue;const {group:_0x4f37f7,type:_0x5bdea0}=_0x549143(_0x408d85);if('revision-suggestion'!=_0x4f37f7||'insertion'!=_0x5bdea0&&'deletion'!=_0x5bdea0)continue;_0x1b8a6e[_0x3f1231]['markersEnd']['splice'](_0x3e14a1,0x1),_0x3e14a1--;const _0x4e73a9=_0xcc0343['findIndex'](_0x525933=>_0x525933['name']==_0x408d85);_0x4e73a9>-0x1&&_0xcc0343['splice'](_0x4e73a9,0x1);}}function _0x549143(_0x558c2e){const _0x1d85b3=_0x558c2e['split'](':');return{'group':_0x1d85b3[0x0],'type':_0x1d85b3[0x1],'subType':_0x1d85b3['length']>=0x5?_0x1d85b3[0x2]:null,'id':_0x1d85b3['length']<0x5?_0x1d85b3[0x2]:_0x1d85b3[0x3],'authorId':_0x1d85b3['length']<0x5?_0x1d85b3[0x3]:_0x1d85b3[0x4],'markerCount':0x6==_0x1d85b3['length']?_0x1d85b3[0x5]:null};}function _0xad8822(_0x44a026){for(let _0x547a96=0x0;_0x547a96<_0xcc0343['length'];_0x547a96++){if(_0x44a026['isAdded']&&'insertion'==_0xcc0343[_0x547a96]['type'])return _0x44a026['isAddSuggestion']=_0xcc0343[_0x547a96],void delete _0x44a026['isAdded'];if(!_0x44a026['isAdded']&&!_0x44a026['isRemoved']&&'deletion'==_0xcc0343[_0x547a96]['type'])return void(_0x44a026['isRemoveSuggestion']=_0xcc0343[_0x547a96]);}}}['_setDistance'](_0x1f5eb8,_0x11528b){let _0x46d956=0x0,_0x52f550=!0x1;const _0x20471e=new Map();for(const _0x144c52 of _0x1f5eb8)_0x144c52[_0x11528b]?_0x52f550&&(_0x46d956++,_0x52f550=!0x1):(_0x46d956++,_0x52f550=!0x0),_0x20471e['set'](_0x144c52['id'],_0x46d956);for(let _0x58345f=0x0;_0x58345f<_0x1f5eb8['length'];_0x58345f++){if('isRemoved'==_0x11528b&&_0x1f5eb8[_0x58345f]['isAdded']||'isAdded'==_0x11528b&&_0x1f5eb8[_0x58345f]['isRemoved'])continue;if('text'==_0x1f5eb8[_0x58345f]['type']){_0x1f5eb8[_0x58345f]['distance']=0x0;continue;}const _0xb5aa3=_0x20471e['get'](_0x1f5eb8[_0x58345f]['pairId']),_0x23eade=_0x20471e['get'](_0x1f5eb8[_0x58345f]['id']);_0x1f5eb8[_0x58345f]['distance']=_0xb5aa3-_0x23eade;}}['_getRevisionsRange'](_0x650b66,_0x4464bc,_0x9dbec9=!0x1){const _0x2812d6=[];let _0x1df885=this['repository']['getIndex'](_0x650b66),_0x309f5c=this['repository']['getIndex'](_0x4464bc);for(-0x1==_0x309f5c&&(_0x309f5c=this['repository']['_revisions']['length'],_0x9dbec9=!0x1);_0x1df885<_0x309f5c;)_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x1df885++;return _0x9dbec9&&_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x2812d6;}['_threeWayMerge'](_0x36de31,_0x23e84a,_0x456594,_0x5503eb){const _0x3302b7=this['editor']['model']['schema'];let _0x1e91c5=_0x23e84a;for(;_0x36de31[_0x1e91c5]&&_0x36de31[_0x1e91c5]['isAdded'];)_0x1e91c5++;let _0x548337=_0x5503eb;for(;_0x456594[_0x548337]&&_0x456594[_0x548337]['isRemoved'];)_0x548337++;_0x195629(_0x36de31,_0x23e84a,_0x1e91c5),_0x195629(_0x456594,_0x5503eb,_0x548337);const _0x23ef1d=_0x456594['slice'](_0x5503eb,_0x548337)['concat'](_0x36de31['slice'](_0x23e84a,_0x1e91c5));return _0x23ef1d['sort']((_0x71a524,_0x122faf)=>_0x71a524['side']!=_0x122faf['side']?_0x71a524['side']-_0x122faf['side']:_0x71a524['level']!=_0x122faf['level']?_0x71a524['level']-_0x122faf['level']:_0x71a524['distance']!=_0x122faf['distance']?_0x122faf['distance']-_0x71a524['distance']:!!_0x71a524['isAdded']!=!!_0x122faf['isAdded']?-0x1==_0x71a524['side']||0x0==_0x71a524['side']?_0x71a524['isAdded']?-0x1:0x1:_0x71a524['isAdded']?0x1:-0x1:_0x71a524['index']-_0x122faf['index']),{'commonTape':_0x23ef1d,'iEnd':_0x1e91c5,'jEnd':_0x548337};function _0x195629(_0x32b679,_0x517049,_0x22f594){let _0x4486d2=-0x1,_0x484f38=Number['POSITIVE_INFINITY'],_0x41e682=!0x0;for(let _0x4ae4bb=_0x517049;_0x4ae4bb<_0x22f594;_0x4ae4bb++)if(_0x3302b7['isInline'](_0x32b679[_0x4ae4bb]['item'])||(_0x41e682=!0x1),_0x32b679[_0x4ae4bb]['item']['startIndex']<_0x517049&&(_0x4486d2=_0x4ae4bb),_0x32b679[_0x4ae4bb]['item']['endIndex']>=_0x22f594){_0x484f38=_0x4ae4bb;break;}_0x41e682&&(_0x4486d2=_0x22f594-0x1);for(let _0x2b219a=_0x517049;_0x2b219a<_0x22f594;_0x2b219a++)_0x32b679[_0x2b219a]['side']=_0x2b219a<=_0x4486d2?-0x1:_0x2b219a<_0x484f38?0x0:0x1,_0x32b679[_0x2b219a]['index']=_0x2b219a;let _0x2221ff=0x0;for(let _0x13eabd=_0x517049;_0x13eabd<=_0x4486d2;_0x13eabd++)0x0==_0x32b679[_0x13eabd]['distance']?_0x32b679[_0x13eabd]['level']=_0x2221ff:(_0x2221ff++,_0x32b679[_0x13eabd]['level']=_0x2221ff,_0x2221ff++);for(let _0x3ffff4=_0x517049;_0x3ffff4<_0x22f594;_0x3ffff4++)0x0==_0x32b679[_0x3ffff4]['side']&&(_0x32b679[_0x3ffff4]['level']=_0x2221ff);_0x2221ff=0x0;for(let _0x5924b1=_0x22f594-0x1;_0x5924b1>=_0x484f38;_0x5924b1--)0x0==_0x32b679[_0x5924b1]['distance']?_0x32b679[_0x5924b1]['level']=_0x2221ff:(_0x2221ff--,_0x32b679[_0x5924b1]['level']=_0x2221ff,_0x2221ff--);}}['_fixObsoleteTags'](_0x4a7102){const _0x3fe779=new Map(),_0x2c3eb5=this['editor']['model']['schema'];for(let _0x2fefa4=0x1;_0x2fefa4<_0x4a7102['length'];_0x2fefa4++){let _0x70e90e,_0x374920,_0x1e0403;const _0x1bfbfb=_0x4a7102[_0x2fefa4],_0xb00624=_0x4a7102[_0x2fefa4-0x1];if('text'==_0x1bfbfb['type'])continue;if(_0x1bfbfb['type']!=_0xb00624['type'])continue;if(!_0x2c3eb5['isBlock'](_0xb00624['item'])||_0x2c3eb5['isLimit'](_0xb00624['item']))continue;if(!_0x2c3eb5['isBlock'](_0x1bfbfb['item'])||_0x2c3eb5['isLimit'](_0x1bfbfb['item']))continue;if((_0x4a7102[_0x2fefa4]['isAdded']||_0x4a7102[_0x2fefa4]['isAddSuggestion'])&&_0x4a7102[_0x2fefa4-0x1]['isRemoved'])_0x70e90e=_0x4a7102[_0x2fefa4],_0x374920=_0x4a7102[_0x2fefa4-0x1],_0x1e0403=_0x2fefa4-0x1;else{if(!_0x4a7102[_0x2fefa4]['isRemoved']||!_0x4a7102[_0x2fefa4-0x1]['isAdded']&&!_0x4a7102[_0x2fefa4-0x1]['isAddSuggestion'])continue;_0x70e90e=_0x4a7102[_0x2fefa4-0x1],_0x374920=_0x4a7102[_0x2fefa4],_0x1e0403=_0x2fefa4;}const _0x3677f7=_0x70e90e['level']==_0x374920['level'],_0x546bd6=Math['abs'](_0x70e90e['level'])<Math['abs'](_0x374920['level'])&&0x0==_0x374920['distance'];(_0x3677f7||_0x546bd6)&&(_0x3fe779['set'](_0x374920['id'],_0x70e90e['id']),_0x4a7102['splice'](_0x1e0403,0x1),_0x2fefa4--,_0x70e90e['isAdded']=!0x1);}for(let _0x375e14=0x0;_0x375e14<_0x4a7102['length'];_0x375e14++)_0x3fe779['has'](_0x4a7102[_0x375e14]['pairId'])&&(_0x4a7102[_0x375e14]['pairId']=_0x3fe779['get'](_0x4a7102[_0x375e14]['pairId']));}['_removeMissingPairs'](_0x46eaf8){const _0xa3d99b=new Set(_0x46eaf8['map'](_0x39d884=>_0x39d884['id']));for(let _0x9a8ed6=0x0;_0x9a8ed6<_0x46eaf8['length'];_0x9a8ed6++)_0xa3d99b['has'](_0x46eaf8[_0x9a8ed6]['pairId'])||0x0==_0x46eaf8[_0x9a8ed6]['distance']||(_0x46eaf8[_0x9a8ed6]['isIncorrect']=!0x0);return _0x46eaf8['filter'](_0x632dfc=>!_0x632dfc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x51c2d2){const _0x2f5911=new Set();for(let _0x26d0b7=0x0;_0x26d0b7<_0x51c2d2['length'];_0x26d0b7++){if(_0x2f5911['has'](_0x51c2d2[_0x26d0b7]['id'])&&_0x51c2d2[_0x26d0b7]['isRemoved']&&(_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0),_0x51c2d2[_0x26d0b7]['isIncorrect'])continue;if(0x0==_0x51c2d2[_0x26d0b7]['distance'])continue;if('elementStart'!=_0x51c2d2[_0x26d0b7]['type'])continue;if(null==_0x51c2d2[_0x26d0b7]['pairId'])continue;let _0x5e2a82=_0x26d0b7+0x1,_0x3c4d53=0x0;for(;_0x51c2d2[_0x5e2a82]['id']!=_0x51c2d2[_0x26d0b7]['pairId'];)'elementStart'==_0x51c2d2[_0x5e2a82]['type']?_0x3c4d53++:'elementEnd'==_0x51c2d2[_0x5e2a82]['type']&&_0x3c4d53--,_0x5e2a82++;if(0x0!=_0x3c4d53){if(_0x51c2d2[_0x26d0b7]['isRemoved'])_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0;else{for(;_0x5e2a82!=_0x26d0b7;)_0x51c2d2[_0x5e2a82]['isRemoved']&&0x0!=_0x51c2d2[_0x5e2a82]['distance']&&(_0x51c2d2[_0x5e2a82]['isIncorrect']=!0x0,_0x2f5911['add'](_0x51c2d2[_0x5e2a82]['pairId'])),_0x5e2a82--;}}}return _0x51c2d2['filter'](_0x27599e=>!_0x27599e['isIncorrect']);}['_removeUnsupportedChanges'](_0x56ef81){const _0x4ef10d=this['editor']['model']['schema'];for(let _0x492302=0x0;_0x492302<_0x56ef81['length'];_0x492302++){if(!(_0x56ef81[_0x492302]['isAdded']||_0x56ef81[_0x492302]['isAddSuggestion']||_0x56ef81[_0x492302]['isRemoved']||_0x56ef81[_0x492302]['isRemoveSuggestion']))continue;if(0x0==_0x56ef81[_0x492302]['distance'])continue;const _0x5b9c7d=_0x56ef81[_0x492302]['item'];_0x4ef10d['isBlock'](_0x5b9c7d)||_0x4ef10d['isLimit'](_0x5b9c7d)||(_0x56ef81[_0x492302]['isAdded']&&delete _0x56ef81[_0x492302]['isAdded'],_0x56ef81[_0x492302]['isAddSuggestion']&&delete _0x56ef81[_0x492302]['isAddSuggestion'],_0x56ef81[_0x492302]['isRemoveSuggestion']&&delete _0x56ef81[_0x492302]['isRemoveSuggestion'],_0x56ef81[_0x492302]['isRemoved']&&(_0x56ef81[_0x492302]['isIncorrect']=!0x0));}return _0x56ef81['filter'](_0x58b676=>!_0x58b676['isIncorrect']);}['_makeModelFromTape'](_0x538320,_0x1cb4eb,_0x315ef0){const _0x3a4dd8=new vt(),_0x37a1b7=[],_0x8f7e7=new Map(),_0x26a505=this['editor']['model'],_0x4d3951=_0x26a505['schema'],_0x64e6c7=[_0x3a4dd8],_0x1707b8={},_0x36ef85={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x83f2b8=null;const _0x210d28=[0x0];for(let _0x40f7f9=0x0;_0x40f7f9<_0x538320['length'];_0x40f7f9++)if('elementStart'===_0x538320[_0x40f7f9]['type']){_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);const _0x3523fd=new ut(_0x538320[_0x40f7f9]['item']['name'],_0x538320[_0x40f7f9]['item']['getAttributes']());_0x64e6c7[0x0]['_appendChild'](_0x3523fd),_0x210d28['push'](0x0),_0x64e6c7['unshift'](_0x3523fd),_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);}else'elementEnd'===_0x538320[_0x40f7f9]['type']?(_0x64e6c7['shift'](),_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x210d28['pop'](),_0x210d28[_0x210d28['length']-0x1]++,_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28)):(_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x83f2b8?_0x83f2b8['_data']+=_0x538320[_0x40f7f9]['item']['data']:_0x83f2b8=new gt(_0x538320[_0x40f7f9]['item']['data'],_0x538320[_0x40f7f9]['item']['getAttributes']()),_0x538320[_0x40f7f9+0x1]&&'text'===_0x538320[_0x40f7f9+0x1]['type']&&_0x5a1477(_0x83f2b8,_0x538320[_0x40f7f9+0x1]['item'])||(_0x64e6c7[0x0]['_appendChild'](_0x83f2b8),_0x83f2b8=null),_0x210d28[_0x210d28['length']-0x1]+=_0x538320[_0x40f7f9]['item']['offsetSize'],_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28));for(let _0x5aa9ee=0x0;_0x5aa9ee<_0x538320['length'];_0x5aa9ee++){const _0x439e1e=_0x538320[_0x5aa9ee]['previousPosition'],_0x240f05=_0x538320[_0x5aa9ee]['nextPosition'];for(const _0x27bcb8 of _0x538320[_0x5aa9ee]['markersStart'])_0x8f7e7['set'](_0x27bcb8,{'start':_0x439e1e,'end':null});_0xbf2be1('isRemoveSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAddSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isRemoved',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAdded',_0x5aa9ee,_0x439e1e,_0x240f05);for(const _0x3888fc of _0x538320[_0x5aa9ee]['markersEnd']){const _0xf2c2da=_0x8f7e7['get'](_0x3888fc);_0xf2c2da?_0xf2c2da['end']=_0x240f05:_0x8f7e7['set'](_0x3888fc,{'start':_0x240f05,'end':_0x240f05});}}for(const [_0x178a30,_0x3f507f]of _0x8f7e7){const _0x55e126=this['editor']['model']['createRange'](_0x3f507f['start'],_0x3f507f['end']);_0x3a4dd8['markers']['set'](_0x178a30,_0x55e126);}return _0x37a1b7['sort']((_0x4d09e8,_0x58c1a2)=>{const _0x43575a=_0x3a4dd8['markers']['get']('revision:'+_0x4d09e8['id']),_0x59023e=_0x3a4dd8['markers']['get']('revision:'+_0x58c1a2['id']);return _0x43575a['start']['isBefore'](_0x59023e['start'])?-0x1:_0x43575a['start']['isAfter'](_0x59023e['start'])?0x1:_0x43575a['end']['isBefore'](_0x59023e['end'])?-0x1:_0x43575a['end']['isAfter'](_0x59023e['end'])?0x1:'add'===_0x4d09e8['type']?-0x1:0x1;}),{'root':_0x3a4dd8,'changes':_0x37a1b7};function _0xbf2be1(_0x2245a1,_0x197de9,_0x5c4ed0,_0x702007){const _0x4745a8=!!_0x538320[_0x197de9][_0x2245a1],_0x52e1bc=_0x4745a8?_0x538320[_0x197de9][_0x2245a1]['userId']:null,_0x5a7a28=_0x197de9===_0x538320['length']-0x1,_0x5e517e=_0x36ef85[_0x2245a1][0x0],_0x35c574=_0x4d3951['isObject'](_0x538320[_0x197de9]['item']);!_0x1707b8[_0x2245a1]&&_0x4745a8?_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}:_0x1707b8[_0x2245a1]&&!_0x4745a8?(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null):_0x1707b8[_0x2245a1]&&_0x4745a8&&_0x1707b8[_0x2245a1]['userId']!==_0x52e1bc&&(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x5e517e&&_0x5e517e['userId']===_0x1707b8[_0x2245a1]['userId']||_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}),_0x1707b8[_0x2245a1]&&_0x35c574&&('elementStart'!==_0x538320[_0x197de9]['type']||_0x5e517e&&_0x5e517e['userId']===_0x52e1bc||_0x36ef85[_0x2245a1]['unshift']({'userId':_0x52e1bc,'object':_0x538320[_0x197de9]['item'],'change':_0x1707b8[_0x2245a1]}),'elementEnd'===_0x538320[_0x197de9]['type']&&_0x5e517e&&_0x5e517e['object']===_0x538320[_0x197de9]['item']&&(_0x36ef85[_0x2245a1]['shift'](),_0x1707b8[_0x2245a1]=_0x5e517e['change'])),_0x1707b8[_0x2245a1]&&_0x5a7a28&&(_0x1707b8[_0x2245a1]['end']=_0x702007,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null);}function _0x2d1954({start:_0x26b22c,end:_0x5b08eb,tapeItem:_0x2bac61,userId:_0x4b2493,type:_0x6f53be}){const _0x54b3eb=_0x2bac61['item'],_0x212393=_0x26a505['schema']['isBlock'](_0x54b3eb)&&!_0x26a505['schema']['isLimit'](_0x54b3eb),_0x5dd370=_0x26b22c['nodeAfter']==_0x5b08eb['parent']&&_0x5b08eb['isAtStart'];if(_0x212393&&_0x5dd370)return;const _0x31d06a=_0x26a505['createRange'](_0x26b22c,_0x5b08eb),_0x4be777=_0x1cb4eb['get'](_0x4b2493),_0x26cf41=new r({'author':_0x4be777,'type':'isAdded'==_0x6f53be||'isAddSuggestion'==_0x6f53be?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6f53be||'isRemoveSuggestion'==_0x6f53be},'createdAt':new Date(),'rootName':_0x315ef0});_0x37a1b7['push'](_0x26cf41),_0x3a4dd8['markers']['set']('revision:'+_0x26cf41['id'],_0x31d06a);}function _0x5a1477(_0x5c9578,_0x366f70){const _0x2de1bc=_0x5c9578['getAttributes'](),_0x24e443=_0x366f70['getAttributes']();for(const _0x581272 of _0x2de1bc){if(_0x581272[0x1]!==_0x366f70['getAttribute'](_0x581272[0x0]))return!0x1;_0x24e443['next']();}return _0x24e443['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e276=>{const _0x298634=_0x42e276['markerName']['split'](':')[0x1],_0x4868e3=this['_getChangeFromId'](_0x298634);if(!_0x4868e3)return null;const _0x21c094='add'==_0x4868e3['type']?'insertion':'deletion',_0x3b0d35=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21c094];return _0x4868e3['data']['isSuggestion']&&_0x3b0d35['push']('ck-suggestion-marker-'+_0x21c094+'-new'),this['activeChange']==_0x4868e3&&_0x3b0d35['push']('ck-suggestion-marker--active'),{'classes':_0x3b0d35,'attributes':{'data-change-id':_0x298634}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5ce872=>{_0x5ce872['on']('element:pre',(_0x75234a,_0x1e04d8,_0x32cc0b)=>{const _0x24a491=_0x1e04d8['viewItem']['getChild'](0x0);if(!_0x24a491||!_0x24a491['is']('element','code'))return;if(!_0x32cc0b['consumable']['consume'](_0x24a491,{'attributes':['vid_start','vid_end']}))return;const _0x172a5d=_0x1e04d8['modelRange']['start']['nodeAfter'];_0x32cc0b['writer']['setAttribute']('vid_start',_0x24a491['getAttribute']('vid_start'),_0x172a5d),_0x32cc0b['writer']['setAttribute']('vid_end',_0x24a491['getAttribute']('vid_end'),_0x172a5d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xeb0d71=>{_0xeb0d71['on']('element',(_0x55a306,_0x28e4b1,_0x3bc32e)=>{if(!_0x3bc32e['consumable']['consume'](_0x28e4b1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x28e4b1['modelRange']['isCollapsed'])return;const _0x4a1645=_0x28e4b1['modelRange']['start']['nodeAfter'];_0x4a1645['hasAttribute']('vid_start')||_0x4a1645['hasAttribute']('vid')||(_0x3bc32e['writer']['setAttribute']('vid_start',_0x28e4b1['viewItem']['getAttribute']('vid_start'),_0x4a1645),_0x3bc32e['writer']['setAttribute']('vid_end',_0x28e4b1['viewItem']['getAttribute']('vid_end'),_0x4a1645));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x457c8a=>_0x457c8a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4da576,[,_0x582141])=>{['vid_start','vid_end','vid']['includes'](_0x582141)&&(_0x4da576['return']=!0x0,_0x4da576['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6cf283=>{_0x6cf283['on']('attribute:vid',(_0x518853,_0xa23fd2,_0x18016d)=>{if('\x20'!=_0xa23fd2['item']['data']||_0xa23fd2['item']['parent']['maxOffset']>0x1)return;if(!_0x18016d['consumable']['consume'](_0xa23fd2['item'],_0x518853['name']))return;const _0x428709=_0x18016d['writer'],_0x8e271c=_0x18016d['mapper']['toViewRange'](_0xa23fd2['range']);_0x428709['wrap'](_0x8e271c,_0x428709['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3a2ee6){const _0x21ecfa=_0x3a2ee6['plugins']['get']('RevisionViewer');return(_0x5348ff,_0x33bf8a,_0x4bc233)=>{const _0x5c1801=_0x33bf8a['markerName']['split'](':')[0x1],_0x301b4e=_0x21ecfa['_getChangeFromId'](_0x5c1801);if(!_0x301b4e)return null;const _0x56b66e='add'==_0x301b4e['type']?'split':'merge';if(!_0x4bc233['consumable']['test'](_0x33bf8a['markerRange'],_0x5348ff['name']))return;const _0x59ad0d=_0x33bf8a['markerRange']['getWalker'](),_0x41d2e1=_0x33bf8a['markerRange']['start'],_0xacf022=_0x3a2ee6['model']['schema'];let _0x22f6e1=null,_0xf22d45=null,_0xbf4848=!0x1,_0x26f10f=!0x1;for(const _0x431bba of _0x59ad0d){const _0x42fe00=_0x431bba['item'];_0xbf4848=_0xbf4848||_0xacf022['isContent'](_0x42fe00);const _0x5c3f14=_0x4bc233['mapper']['toViewElement'](_0x42fe00);if(_0x5c3f14&&_0x5c3f14['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x431bba['type']&&(_0xacf022['isBlock'](_0x42fe00)&&!_0xacf022['isLimit'](_0x42fe00)&&(_0x42fe00['nextSibling']||_0x41d2e1['isAtEnd']?_0x22f6e1&&_0x22f6e1['parent']==_0x42fe00||(_0x22f6e1=_0x42fe00,_0x5e98e3(_0x431bba['previousPosition']),_0x26f10f=!0x0):_0xf22d45=_0xf22d45||_0x431bba['previousPosition']));}function _0x5e98e3(_0x561f3e){const _0x1e7631=_0x4bc233['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56b66e}),_0x531541=_0x4bc233['mapper']['toViewPosition'](_0x561f3e);_0x301b4e['data']['isSuggestion']&&_0x4bc233['writer']['addClass']('ck-suggestion-marker-'+_0x56b66e+'-new',_0x1e7631),_0x21ecfa['activeChange']==_0x301b4e&&_0x4bc233['writer']['addClass']('ck-suggestion-marker--active',_0x1e7631),_0x4bc233['writer']['insert'](_0x531541,_0x1e7631),_0x4bc233['mapper']['bindElementToMarker'](_0x1e7631,_0x33bf8a['markerName']);}_0xbf4848||_0x26f10f||!_0xf22d45||_0x5e98e3(_0xf22d45);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xcce3bf,_0x100c5c,_0x54240d)=>{const _0x1c88c0=_0x54240d['mapper']['markerNameToElements'](_0x100c5c['markerName']);if(_0x1c88c0){for(const _0x4eb9b5 of _0x1c88c0)(_0x4eb9b5['hasClass']('ck-suggestion-marker-split')||_0x4eb9b5['hasClass']('ck-suggestion-marker-merge'))&&(_0x54240d['mapper']['unbindElementFromMarkerName'](_0x4eb9b5,_0x100c5c['markerName']),_0x54240d['writer']['remove'](_0x4eb9b5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd6d18d,_0xa02e5f,_0x1f83d2)=>{const _0x279ca5=_0xa02e5f['markerName']['split'](':')[0x1],_0x332b7e=this['_getChangeFromId'](_0x279ca5);if(!_0x332b7e)return null;const _0x1b30c2='add'==_0x332b7e['type']?'split':'merge';if(_0x1f83d2['consumable']['test'](_0xa02e5f['markerRange'],_0xd6d18d['name']))for(const _0x41ede1 of _0xa02e5f['markerRange']['getItems']()){if(!_0x41ede1['is']('element','softBreak'))continue;const _0x3a15c6=_0x1f83d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b30c2}),_0x44d433=_0x1f83d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x41ede1));_0x332b7e['data']['isSuggestion']&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker-'+_0x1b30c2+'-new',_0x3a15c6),this['activeChange']==_0x332b7e&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker--active',_0x3a15c6),_0x1f83d2['writer']['insert'](_0x44d433,_0x3a15c6),_0x1f83d2['mapper']['bindElementToMarker'](_0x3a15c6,_0xa02e5f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x19743b=>{for(const _0xfceba8 of this['editor']['model']['document']['getRootNames']()){const _0xf1b70e=this['editor']['model']['document']['getRoot'](_0xfceba8),_0xf9274=this['editor']['editing']['view']['document']['getRoot'](_0xfceba8);if(_0xf9274){const _0x2bf3a3=_0xf1b70e['getAttribute']('revisionHistoryAttachChange');if(_0x19743b['removeAttribute']('data-change-id',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-add',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-remove',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root--active',_0xf9274),_0x2bf3a3){const _0x1986ba=this['_getChangeFromId'](_0x2bf3a3);if(!_0x1986ba)return null;_0x19743b['setAttribute']('data-change-id',_0x2bf3a3,_0xf9274),_0x19743b['addClass']('ck-revision-history-root-'+_0x1986ba['type'],_0xf9274),this['activeChange']==_0x1986ba&&_0x19743b['addClass']('ck-revision-history-root--active',_0xf9274);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x128dac=>'revision-comment:'+_0x128dac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b87c5=>'revision-suggestion:'+_0x3b87c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x103e96=>({'name':'suggestion:'+_0x103e96,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x24a910=>{const _0x1a3de5=_0x24a910['markerName']['split'](':')[0x1];return'insertion'!=_0x1a3de5&&'deletion'!=_0x1a3de5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a3de5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x85ba7e,_0x4ca2a6,_0x2ec598)=>{const _0x145893=_0x2ec598['mapper']['markerNameToElements'](_0x4ca2a6['markerName']);if(_0x145893){for(const _0x454688 of _0x145893)_0x454688['is']('uiElement')&&(_0x2ec598['mapper']['unbindElementFromMarkerName'](_0x454688,_0x4ca2a6['markerName']),_0x2ec598['writer']['remove'](_0x454688));}},{'priority':'high'});}['_getChangeFromId'](_0x24e5dd){return this['_changeIdToChange']['get'](_0x24e5dd);}['_getViewForChange'](_0x1ce054){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1ce054),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8af1f5,_0x1bdae6,_0x26eec,_0x53c24d)=>{_0x53c24d&&this['_balloon']['remove'](_0x53c24d),_0x26eec&&(this['_balloon']['add']({'view':_0x26eec,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x98b21c=this['editor']['editing'],_0x3166a4=this['_getChangeFromId'](_0x26eec['changeId']);let _0x1d4c60;if(_0x3166a4['data']['isOnRoot']){const _0x23e2bb=_0x98b21c['view']['getDomRoot'](_0x3166a4['rootName']);_0x1d4c60=Array['from'](_0x23e2bb['getClientRects']());}else{const _0x30720c=this['editor']['model']['markers']['get']('revision:'+_0x26eec['changeId']);_0x1d4c60=Array['from'](_0x98b21c['mapper']['markerNameToElements'](_0x30720c['name']))['map'](_0x419d0d=>_0x98b21c['view']['domConverter']['mapViewToDom'](_0x419d0d))['map'](_0x3bef20=>Array['from'](_0x3bef20['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1d4c60[0x0];return _0x1d4c60['find'](_0x440793=>_0x440793['top']-0x3<=this['_activeViewTarget']['y']&&_0x440793['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x440793['left']-0x3<=this['_activeViewTarget']['x']&&_0x440793['right']+0x3>=this['_activeViewTarget']['x'])||_0x1d4c60[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3cbeae,_0x36732b,_0x205d8b,_0x22ba27)=>{this['activeView']=_0x205d8b?this['_getViewForChange'](_0x205d8b):null,this['editor']['model']['change'](()=>{const _0x4e6be1=this['editor']['editing'];_0x22ba27&&(_0x22ba27['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x16311d=>{_0x16311d['removeClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x22ba27['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x22ba27['id'])),_0x205d8b&&(_0x205d8b['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x355b75=>{_0x355b75['addClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x205d8b['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x205d8b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x113518,_0x140f13)=>{if(this['activeChange'])return;const _0x5affa1=this['_findChangeIdFromDomTarget'](_0x140f13['target']),_0x3e0989=this['_changeIdToChange']['get'](_0x5affa1);_0x3e0989?(this['_activeViewTarget']={'x':_0x140f13['domEvent']['x'],'y':_0x140f13['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3e0989)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3c5475,_0x32e0d8)=>{const _0x5519dd=this['_findChangeIdFromDomTarget'](_0x32e0d8['target']),_0xbd8a92=this['_changeIdToChange']['get'](_0x5519dd);_0xbd8a92?(this['_activeViewTarget']={'x':_0x32e0d8['domEvent']['x'],'y':_0x32e0d8['domEvent']['y']},_0xbd8a92===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xbd8a92):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x405e9f){do{const _0x4408a9=_0x405e9f['getAttribute']('data-change-id');if(_0x4408a9)return _0x4408a9;_0x405e9f=_0x405e9f['parent'];}while(_0x405e9f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45ec8d=>{for(const _0x4459f2 of this['editor']['model']['markers'])_0x45ec8d['removeMarker'](_0x4459f2);});}}function X(_0x36252d,_0xf4b222){return(_0x3a2243,_0x55e88d,_0x5d4158)=>{if(!_0x5d4158['consumable']['test'](_0x55e88d['markerRange'],_0x3a2243['name']))return;const _0x3dd49a=_0x55e88d['markerRange']['getWalker'](),_0x301eb9=_0x55e88d['markerRange']['start'],_0xf1b48=_0x36252d['model']['schema'];let _0x17936b=null,_0x2ae2d7=null,_0x256b3e=!0x1,_0xe9eaca=!0x1;for(const _0x4b6e4 of _0x3dd49a){const _0x4bdaa8=_0x4b6e4['item'];_0x256b3e=_0x256b3e||_0xf1b48['isContent'](_0x4bdaa8);const _0x1ac16c=_0x5d4158['mapper']['toViewElement'](_0x4bdaa8);if(_0x1ac16c&&_0x1ac16c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b6e4['type']&&(_0xf1b48['isBlock'](_0x4bdaa8)&&!_0xf1b48['isLimit'](_0x4bdaa8)&&(_0x4bdaa8['nextSibling']||_0x301eb9['isAtEnd']?_0x17936b&&_0x17936b['parent']==_0x4bdaa8||(_0x17936b=_0x4bdaa8,_0x15b53a(_0x4b6e4['previousPosition']),_0xe9eaca=!0x0):_0x2ae2d7=_0x2ae2d7||_0x4b6e4['previousPosition']));}function _0x15b53a(_0x38c30a){const _0x1cedd7=_0x5d4158['mapper']['toViewPosition'](_0x38c30a),_0x456012=_0x5d4158['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf4b222});_0x5d4158['writer']['insert'](_0x1cedd7,_0x456012),_0x5d4158['mapper']['bindElementToMarker'](_0x456012,_0x55e88d['markerName']);}_0x256b3e||_0xe9eaca||!_0x2ae2d7||_0x15b53a(_0x2ae2d7);};}class mt extends _0x2a06ae{constructor(_0x4f86d1){super(_0x4f86d1);const _0x15c3f8=_0x4f86d1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x15c3f8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x15c3f8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ae506=this['editor'],_0x2fe020=_0x5ae506['plugins']['get'](m),_0x544551=_0x2fe020['isReady']?_0x2fe020['diff']['newRevisionId']:null;_0x5ae506['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x544551);}['refresh'](){const {isReady:_0x19763c,isEnabled:_0x466f9f,repository:_0x2b4c59,diff:_0x491918}=this['editor']['plugins']['get'](m),_0x4a44c9=_0x491918&&_0x2b4c59['getLaterVisibleRevision'](_0x491918['newRevisionId']);this['isEnabled']=_0x19763c&&_0x466f9f&&Boolean(_0x4a44c9);}}class wt extends _0x2a06ae{['_step'];constructor(_0x379e79,{direction:_0x2a040e}){super(_0x379e79);const _0x4bf289=_0x379e79['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2a040e?0x1:-0x1,this['listenTo'](_0x4bf289,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38598e=this['editor'],_0x5a86bf=_0x38598e['plugins']['get'](m),{isNavigationMode:_0x23871b,currentChangeNumber:_0x3b77df}=_0x5a86bf;let _0x5cf56e;if(_0x5a86bf['activeChange']=_0x23871b?_0x5a86bf['diff']['changes']['get'](_0x3b77df+this['_step']):_0x5a86bf['diff']['changes']['first'],_0x5a86bf['activeChange']['data']['isOnRoot'])_0x5cf56e=_0x38598e['editing']['view']['getDomRoot'](_0x5a86bf['activeChange']['rootName']);else{const _0x5b8046=_0x38598e['model']['markers']['get']('revision:'+_0x5a86bf['activeChange']['id']);_0x5cf56e=_0x5dbfca(_0x38598e['editing'],_0x5b8046);}_0x5d9a0a({'target':_0x5cf56e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11cc68,currentChangeNumber:_0x5f3a45,numberOfChanges:_0x330ba9,isReady:_0x44d526,isEnabled:_0x5bc334}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x5bc334&&_0x44d526&&_0x330ba9)&&(!_0x11cc68||(0x1===this['_step']?_0x5f3a45<_0x330ba9-0x1:_0x5f3a45>0x0));}}class _i extends ts{constructor(_0x19cd30){super(_0x19cd30);const _0x3c60d8=this['bindTemplate'],_0x3f187a=new te(_0x19cd30),_0x42133d=new te(_0x19cd30);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',(_0x37fd22,_0x1164ce)=>_0x37fd22&&_0x1164ce>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x47fcda,_0x4f4965,_0x4cc8b9,_0x26a802)=>{if(!_0x47fcda)return g(_0x19cd30,'Loading...');if(!_0x4cc8b9)return g(_0x19cd30,'No\x20changes');const _0x392937=g(_0x19cd30,'NUMBER_OF_CHANGES',_0x4cc8b9);return _0x26a802?g(_0x19cd30,'X_OF_Y_CHANGES',[_0x4f4965+0x1,_0x4cc8b9]):_0x392937;}),_0x3f187a['set']({'label':g(_0x19cd30,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x19d9b9}),_0x42133d['set']({'label':g(_0x19cd30,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x44f056}),_0x3f187a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x42133d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f187a['on']('execute',()=>this['fire']('execute','backward')),_0x42133d['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',_0x3c60d8['if']('_isStatusLabelVisible','ck-hidden',_0x2c0600=>!_0x2c0600)]},'children':[{'text':_0x3c60d8['to']('isNavigationMode',_0x2acd4c=>_0x2acd4c?g(_0x19cd30,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x19cd30,'Total')+':\x20')}]},{'text':_0x3c60d8['to']('_statusText')}]},new _0x114a41(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f187a,_0x42133d]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x149b28{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46deb7=this['editor']['editing']['view'];_0x46deb7['change'](_0x39f7cb=>{for(const _0x5a9757 of _0x46deb7['document']['roots'])_0x39f7cb['addClass'](le,_0x5a9757);});}['hide'](){const _0x1e3589=this['editor']['editing']['view'];_0x1e3589['change'](_0x253e79=>{for(const _0x8eb99a of _0x1e3589['document']['roots'])_0x253e79['removeClass'](le,_0x8eb99a);});}}class R extends _0x149b28{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x556deb=this['editor'],_0x2d0749=_0x556deb['plugins']['get'](m),_0x220d75=_0x556deb['plugins']['get'](ge);_0x556deb['ui']['componentFactory']['add']('exitToEditing',_0x33be0b=>{const _0x1c95db=new te(_0x33be0b);return _0x1c95db['set']({'label':g(_0x33be0b,'Back\x20to\x20editing'),'icon':_0x58cf49,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1c95db,'execute',()=>{_0x556deb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1c95db;}),_0x556deb['ui']['componentFactory']['add']('restoreRevision',_0x3dd955=>{const _0x305cd8=new te(_0x3dd955);return _0x305cd8['set']({'label':g(_0x3dd955,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x305cd8['bind']('isEnabled')['to'](_0x556deb['commands']['get']('restoreRevision')),this['listenTo'](_0x305cd8,'execute',()=>_0x556deb['execute']('restoreRevision')),_0x305cd8;}),_0x556deb['ui']['componentFactory']['add']('changesNavigation',_0x190cc9=>{const _0x30cb1e=new _i(_0x190cc9),_0x3044aa=_0x556deb['commands']['get']('showPreviousChange'),_0x59566c=_0x556deb['commands']['get']('showNextChange');return _0x30cb1e['bind']('isBackwardNavigationEnabled')['to'](_0x3044aa,'isEnabled'),_0x30cb1e['bind']('isForwardNavigationEnabled')['to'](_0x59566c,'isEnabled'),_0x30cb1e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d0749),this['listenTo'](_0x30cb1e,'execute',(_0x25f81f,_0x4f639e)=>{_0x556deb['execute']('forward'===_0x4f639e?'showNextChange':'showPreviousChange');}),_0x30cb1e;}),_0x220d75['show'](),_0x2d0749['on']('change:isReady',(_0x70b489,_0x1968b9,_0x18f0e8)=>{_0x18f0e8?_0x220d75['hide']():_0x220d75['show']();});}}class at extends _0x256e64{['_resizeObserver']=null;constructor(_0x5713ce,_0x58f1c2){super(_0x5713ce,_0x58f1c2);const _0x2cfa55=this['bindTemplate'];this['set']({'label':g(_0x5713ce,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5713ce,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2cfa55['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2e3c8e=this['fieldView']['element'];this['_tooltipString']=_0x2e3c8e['scrollWidth']>_0x2e3c8e['clientWidth']&&_0x2e3c8e['value']||'';}}class si extends ts{constructor(_0x349ff5,_0xb417c,_0x3d3a84){super(_0x349ff5);const _0xd1c2a4=new _0x418e0a();_0xd1c2a4['set']({'content':_0xe5b4b4,'viewBox':'0\x200\x2011\x2010'});const _0x1e2b9c=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3a84&&_0x1e2b9c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x400eb9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x349ff5,_0x3d3a84?'Revision\x20creator':'Revision\x20author')},'children':[_0xd1c2a4,_0xb417c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1e2b9c},'children':_0x400eb9});}}function oi(_0x2abfeb,_0x25a06b){const _0x30c9b2=_0x2abfeb['bindTemplate'],_0x1c986d=_0x2abfeb['locale'],_0x1c69ae=_0x3c0c02(_0x1c986d);_0x1c69ae['panelPosition']='sw';const _0x3a595b=function(_0xbac91e,_0x14d689){const _0x2d3d79=function(_0x273c79,_0x5ee27f){const _0x431d8c=_0x273c79['locale'],_0x260df1={'Compare\x20against\x20selected':g(_0x431d8c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x431d8c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x431d8c,'Restore\x20this\x20revision')};return _0x5ee27f['map'](_0x2c79a3=>{const _0x5b1317=_0x260df1[_0x2c79a3['name']];return _0x5b1317&&_0x5b1317!==_0x2c79a3['name']&&(_0x2c79a3['name']=_0x5b1317),_0x2c79a3;});}(_0xbac91e,_0x14d689),_0x2f09b9=new _0x3fcc51();for(const _0x34010f of _0x2d3d79){const _0x298e17={'type':'button','model':new to({'label':_0x34010f['name'],'class':_0x34010f['class'],'withText':!0x0,'role':'menuitem','_action':_0x34010f['action']})};_0x298e17['model']['bind']('isEnabled')['to'](_0xbac91e,'isActionsDropdownOpen',_0x48f951=>'function'!=typeof _0x34010f['isEnabled']||(!_0x48f951||_0x34010f['isEnabled'](_0xbac91e))),_0x2f09b9['add'](_0x298e17);}return _0x2f09b9;}(_0x2abfeb,_0x25a06b);return _0x2abfeb['bind']('isActionsDropdownOpen')['to'](_0x1c69ae,'isOpen'),_0x1c69ae['buttonView']['set']({'label':g(_0x1c986d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28c0d7}),_0x1c69ae['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x30c9b2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x30c9b2['to'](_0x3b684b=>_0x3b684b['stopPropagation']())}}),_0x1c69ae['on']('execute',_0x193747=>{_0x2abfeb['isReady']&&'function'==typeof _0x193747['source']['_action']&&_0x193747['source']['_action'](_0x2abfeb);}),_0x2ce9a1(_0x1c69ae,_0x3a595b,{'role':'menu'}),_0x1c69ae['listenTo'](_0x2abfeb,'change:isActionsDropdownOpen',(_0x40baa3,_0x525df7,_0x3bb58d)=>{if(_0x3bb58d)for(const _0x27be87 of _0x1c69ae['listView']['items']){const _0x369ca1=_0x27be87['children']['first'],_0x594d7f=_0x25a06b['find'](_0x1d6699=>_0x1d6699['action']===_0x369ca1['_action'])['isVisible'];_0x27be87['isVisible']=void 0x0===_0x594d7f||_0x594d7f(_0x2abfeb);}}),_0x1c69ae;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xda9d0,_0x2ab90d,_0x7cbed7,_0x16b4d8){super(_0xda9d0);const _0x5d6e60=this['bindTemplate'],_0x2cbb75=function(_0x117331,_0xedfc63){const _0x24b777=Array['from'](_0xedfc63['authors'])['filter'](_0x1e5a11=>_0x1e5a11!=_0xedfc63['creator']);return _0xedfc63['creator']&&_0x24b777['unshift'](_0xedfc63['creator']),_0x24b777['map'](_0x16ed55=>new si(_0x117331,_0x16ed55,_0x16ed55==_0xedfc63['creator']));}(_0xda9d0,_0x2ab90d);this['id']=_0x2ab90d['id'],this['_revision']=_0x2ab90d,this['_requireRevisionName']=_0x16b4d8,this['bind']('name','createdAt')['to'](_0x2ab90d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x15186f=>{return _0x58fd8c=_0xda9d0['uiLanguage'],(_0x506e35=_0x15186f)['toLocaleDateString'](_0x58fd8c,{'month':'long','day':'numeric'})+',\x20'+_0x506e35['toLocaleTimeString'](_0x58fd8c,{'hour':'numeric','minute':'numeric'});var _0x58fd8c,_0x506e35;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0xda9d0,_0xb8ce7b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x94b560=>_0x94b560||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x11d1b6,_0x4de3cf)=>_0x11d1b6&&_0x4de3cf),this['revisionActionsView']=_0x7cbed7&&_0x7cbed7['length']?oi(this,_0x7cbed7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d6e60['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d6e60['if']('isEnabled','ck-disabled',_0x18fcd6=>!_0x18fcd6),_0x5d6e60['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d6e60['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d6e60['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':_0x5d6e60['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':_0x2cbb75}]},this['revisionActionsView']],'on':{'click':_0x5d6e60['to'](_0x58f01d=>{_0x58f01d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1c183d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1c183d,'change',()=>{this['_requireRevisionName']&&!_0x1c183d['value']||this['fire']('setName',{'id':this['id'],'name':_0x1c183d['value']}),_0x1c183d['value']||(_0x1c183d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x2edc19,_0x2e18eb){const _0x1c7333=_0x9f88ff['fromJSDate'](_0x2edc19)['setLocale'](_0x2e18eb),_0x309b2e=_0x9f88ff['local'](),_0x177773=_0x309b2e['minus']({'days':0x1})['startOf']('day');let _0x2368b3,_0x39ba07;return _0x1c7333['hasSame'](_0x309b2e,'day')?(_0x2368b3=_0x1c7333['startOf']('day')['toJSDate'](),_0x39ba07=_0x1c7333['toRelativeCalendar']()):_0x1c7333['hasSame'](_0x177773,'day')?(_0x2368b3=_0x177773['toJSDate'](),_0x39ba07=_0x1c7333['toRelativeCalendar']()):_0x1c7333['hasSame'](_0x309b2e,'week')?(_0x2368b3=_0x1c7333['startOf']('week')['toJSDate'](),_0x39ba07=_0x1c7333['weekdayLong']||''):_0x1c7333['hasSame'](_0x309b2e,'year')?(_0x2368b3=_0x1c7333['startOf']('month')['toJSDate'](),_0x39ba07=_0x1c7333['monthLong']||''):(_0x2368b3=_0x1c7333['startOf']('year')['toJSDate'](),_0x39ba07=String(_0x1c7333['year'])),{'startDate':_0x2368b3,'localizedPeriodName':_0x39ba07};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1bc873,_0x46019b,_0x5175ef,_0xa655ce){super(_0x1bc873);const _0x112387=ai(_0x46019b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x46019b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5175ef,this['_requireRevisionName']=_0xa655ce,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':_0x112387}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x294de3){const _0x1ba59f=new hi(this['locale'],_0x294de3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1ba59f);}['removeRevision'](_0x10383d){const _0x5122f3=this['revisionViews']['find'](_0x37f258=>_0x37f258['id']===_0x10383d['id']);this['revisionViews']['remove'](_0x5122f3);}}class as extends ts{constructor(_0x484b76){super(_0x484b76);const _0x5d000b=new _0x418e0a();_0x5d000b['content']=_0x2f11fa,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5d000b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x484b76,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5100b2,_0x41a3a0,_0x43a569,_0x3d847c){super(_0x5100b2);const _0x2ac722=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x41a3a0,this['_revisionActions']=_0x43a569,this['_requireRevisionName']=_0x3d847c,this['on']('select',(_0x2afa68,_0x5ceb65)=>{this['fire']('revisionSelected',_0x5ceb65);}),this['on']('setName',(_0x2f99f0,_0x31ae6d)=>{this['fire']('revisionSetName',_0x31ae6d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5100b2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2ac722['if']('isEnabled','ck-disabled',_0x300a6c=>!_0x300a6c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x15537c of this['_revisions'])this['_addRevision'](_0x15537c);this['_revisions']['on']('add',(_0x466741,_0x462828)=>{this['_addRevision'](_0x462828);}),this['_revisions']['on']('remove',(_0x50c88c,_0x53ec0e)=>{this['_removeRevision'](_0x53ec0e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5671c7=>_0x5671c7['revisionViews']['map'](_0x89a3bb=>_0x89a3bb))['flat']();}['selectRevision'](_0x56dfc1){for(const _0x2654a3 of this['revisionViews'])_0x56dfc1&&_0x56dfc1['id']===_0x2654a3['id']?_0x2654a3['select']():_0x2654a3['deselect']();}['highlightRevisions'](_0x15c5fa){for(const _0x37ecaa of this['revisionViews'])_0x15c5fa['some'](({id:_0x2f9f9c})=>_0x2f9f9c===_0x37ecaa['id'])?_0x37ecaa['highlight']():_0x37ecaa['unhighlight']();}['_addRevision'](_0x17574){const _0x21daa7=ai(_0x17574['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5b6779=this['timePeriodViews']['get'](0x0);_0x5b6779&&_0x5b6779['startDate']['getTime']()===_0x21daa7['getTime']()||(_0x5b6779=new di(this['locale'],_0x21daa7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5b6779)),_0x5b6779['addRevision'](_0x17574);}['_removeRevision'](_0x25093c){const _0x5abcb6=ai(_0x25093c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5abcb6)['removeRevision'](_0x25093c);}['_getTimePeriodViewByStartDate'](_0x5ac037){return this['timePeriodViews']['find'](_0x4dcd7d=>_0x4dcd7d['startDate']['getTime']()===_0x5ac037['getTime']());}}class d extends _0x149b28{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0xb0c17c(_0x344b4b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1de7b6,_0x5b1ded){super(_0x5b1ded),this['sourceElement']=_0x1de7b6,this['model']['document']['createRoot']();const _0x215861=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x215861);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x359dc3,_0x1220bb){const _0x19eb75=new this(_0x359dc3,_0x1220bb);return await _0x19eb75['initPlugins'](),await _0x19eb75['ui']['init'](_0x359dc3),await _0x19eb75['data']['init'](_0x19eb75['config']['get']('initialData')||''),_0x19eb75['fire']('ready'),_0x19eb75;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x47ebf6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a23b2){function _0x16e1fc(_0x51d1ce){return _0x51d1ce['map'](_0x14aac8=>String['fromCharCode'](_0x14aac8))['join']('');}super(_0x2a23b2),this['result']='end',_0x2a23b2[_0x16e1fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e1fc([0x76,0x69,0x65,0x77])][_0x16e1fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16e1fc([0x61,0x75,0x74,0x6f]),_0x2a23b2[_0x16e1fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16e1fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16e1fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16e1fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16e1fc([0x6f,0x6b])});}}class k extends _0x47ebf6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x35cfdc){if(super(_0x35cfdc),!this['editor']['config']['get']('revisionHistory'))throw new _0x49f01a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1edb26=>this['_showRevisionViewer']({..._0x1edb26,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x14d32e=>this['_closeRevisionViewer'](_0x14d32e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x60ef40=>this['_restoreRevision'](_0x60ef40)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4bb550){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4bb550;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x38bb5){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x38bb5);}['getRevision'](_0x14e897){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14e897);}['getRevisions'](_0x5b4647){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5b4647||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x27f734=this['editor'],_0x593b87=_0x22939f(_0x27f734,p),_0x5ceb49=_0x27f734['plugins']['get']('RevisionTracker'),_0x33bf09=_0x27f734['plugins']['get']('Users')['users'];return _0x593b87['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x593b87['lazyRoots'],(_0x593b87['plugins']['push'](yt,m,R,class extends _0x47ebf6{static get['requires'](){return[m,'Users'];}['init'](){const _0x283d87=this['editor']['plugins']['get']('Users');for(const _0x1e7653 of _0x33bf09)_0x1e7653['isAnonymous']||_0x283d87['getUser'](_0x1e7653['id'])||_0x283d87['addUser'](_0x1e7653);const _0x4f0df4=_0x5ceb49['repository']['getRevisions']();let _0x17e174=null;const _0x3d8fd3=this['editor']['plugins']['get']('RevisionViewer');_0x3d8fd3['adapter']=_0x5ceb49['adapter'],_0x3d8fd3['bind']('isEnabled')['to'](_0x5ceb49),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27f734,'isReadOnly',_0x1a3978=>!_0x1a3978);for(const _0x21e31d of _0x4f0df4){const _0x2e0612=null===_0x21e31d['creator'];if(_0x2e0612&&_0x21e31d['toVersion']===_0x21e31d['fromVersion'])continue;const _0xbf1997=_0x21e31d['toJSON']();_0x3d8fd3['addRevisionData'](_0xbf1997,(_0x410214,_0x5d2740,_0x2cd431)=>{if(_0x2e0612){if(_0x17e174)_0x17e174['_update'](_0x410214,_0x5d2740);else{if(!_0x5d2740){const _0x210f96=_0x2cd431['toJSON']();_0x210f96['id']=_0x4339db(),_0x5ceb49['saveRevision'](_0x210f96,_0x2cd431['toVersion'])['then'](_0x10309f=>{_0x17e174=_0x10309f;});}}}else _0x21e31d['_update'](_0x410214,_0x5d2740);});}}},d),_0x593b87);}['_enhanceShowRevisionViewerCallback'](){const _0x3a3e0e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x198c35=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2d3fdf=this['editor']['plugins']['get']('Autosave');await _0x2d3fdf['save']();}else await _0x198c35['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3f2d53=this['editor']['plugins']['get']('Dialog');_0x3f2d53['isOpen']&&_0x3f2d53['hide']();}const _0x17f042=this['_getRevisionViewerEditorConfig']();return _0x3a3e0e(_0x17f042)['then'](_0x1be6b0=>{return(this['_viewerEditor']=_0x1be6b0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1be6b0);})['catch'](_0x144c16=>(console['error'](_0x144c16),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5602f8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5602f8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x192c72=this['editor']['plugins']['get']('Annotations');_0x192c72['refreshVisibility'](),_0x192c72['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3567be){const _0x529ecf=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x27c84c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x34c9b6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x34c9b6,_0x3567be)['then'](_0x506f35=>(_0x27c84c['style']['display']='block',_0x529ecf['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x506f35));}['_closeRevisionViewer'](_0x4bc46d){const _0x4721fe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4721fe['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4bc46d['destroy']();}async['_restoreRevision'](_0x240274){const _0x33e272=this['editor'],_0x2a1cf6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x489c84=_0x33e272['plugins']['get']('RevisionTracker'),_0x57efe1=_0x33e272['plugins']['get']('RevisionHistoryUtils'),_0x4225fa=_0x2a1cf6['repository']['getRevision'](_0x240274);let _0x59661d,_0xd56d13,_0x527f5f;try{await _0x57efe1['loadRevisionData'](_0x4225fa,this['adapter']),_0x59661d=_0x57efe1['getRevisionDocumentData'](_0x4225fa),_0xd56d13=_0x57efe1['getRevisionRootsAttributes'](_0x4225fa);}catch(_0x50edb7){return void console['error'](_0x50edb7);}_0x33e272['model']['change'](_0x24759f=>{for(const _0x584d9a of Array['from'](_0x33e272['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x24759f['removeMarker'](_0x584d9a);}),_0x2a1cf6['isReady']=!0x1,_0x33e272['model']['enqueueChange'](_0x1ee65c=>{_0x1ee65c['setSelection'](null),_0x1ee65c['removeSelectionAttribute'](_0x33e272['model']['document']['selection']['getAttributeKeys']());const _0x39cf6c=Object['keys'](_0x59661d);for(const _0x440ca2 of _0x33e272['model']['document']['roots'])'$graveyard'!=_0x440ca2['rootName']&&_0x440ca2['isAttached']()&&!_0x39cf6c['includes'](_0x440ca2['rootName'])&&_0x1ee65c['detachRoot'](_0x440ca2);for(const _0x5d95e4 of _0x39cf6c){let _0x45e4f7=_0x33e272['model']['document']['getRoot'](_0x5d95e4);_0x45e4f7&&_0x45e4f7['isAttached']()||(_0x45e4f7=_0x1ee65c['addRoot'](_0x5d95e4));const _0x3bce07=_0xd56d13[_0x5d95e4],_0x3d9926=Object['keys'](_0x3bce07),_0x5408b6=_0x59661d[_0x5d95e4];for(const _0x351afb of _0x45e4f7['getAttributeKeys']())_0x3d9926['includes'](_0x351afb)||_0x1ee65c['removeAttribute'](_0x351afb,_0x45e4f7);for(const _0x47aedd of _0x3d9926)_0x1ee65c['setAttribute'](_0x47aedd,_0xd56d13[_0x5d95e4][_0x47aedd],_0x45e4f7);_0x1ee65c['remove'](_0x1ee65c['createRangeIn'](_0x45e4f7)),_0x1ee65c['insert'](_0x33e272['data']['parse'](_0x5408b6,_0x45e4f7),_0x45e4f7,0x0);}});const _0xfa7302=g(_0x33e272['locale'],'Restored');if(_0x4225fa['name'])_0x527f5f=-0x1==_0x4225fa['name']['indexOf'](_0xfa7302)?_0xfa7302+':\x20'+_0x4225fa['name']:_0x4225fa['name'];else _0x527f5f=_0xfa7302+':\x20'+(_0x4225fa['createdAt']['toLocaleDateString'](_0x33e272['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4225fa['createdAt']['toLocaleTimeString'](_0x33e272['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x489c84['saveRevision']({'name':_0x527f5f}),_0x2a1cf6['isReady']=!0x0,_0x33e272['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4ae1ae){super(_0x4ae1ae),this['_revisionViewer']=_0x4ae1ae['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x37e60f=this['_revisionsRepository']['_revisions'],_0x5c34bd=this['_createRevisionActions'](),_0x50481a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x37e60f,_0x5c34bd,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',(_0xb30eef,_0x1f59a2)=>{_0x1f59a2['revisionViews']['on']('add',(_0x1aff0c,_0x3eaa9a)=>{_0x3eaa9a['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)),_0x50481a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x36cf6b=this['_revisionsRepository']['getRevision'](0x0);if(_0x36cf6b){const _0x422c79=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36cf6b['id']);this['_revisionViewer']['compare'](_0x36cf6b,_0x422c79);}}['_handleRevisionSelected'](_0x306928,_0x3a450c){const _0x3bd186=this['_revisionsRepository']['getRevision'](_0x3a450c['id']),_0xc8b594=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3bd186['id']);this['_revisionViewer']['compare'](_0x3bd186,_0xc8b594);}['_handleRevisionSetName'](_0x159251,_0x5598e1){this['_revisionsRepository']['getRevision'](_0x5598e1['id'])['setName'](_0x5598e1['name']);}['_handleDiffChange'](_0xaf67c9,_0x20a30c,_0x59cbb3){const _0xaa5684=this['_revisionsRepository']['getRevisionsInDiff'](_0x59cbb3);_0xaa5684['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xaa5684),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xaa5684[0x0]));}['_createRevisionActions'](){const _0x4c1225=this['editor'],_0x3263a8=d['availableRevisionActions'],_0x2b248b=_0x4c1225['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2b248b['length'])return _0x2b248b['map'](_0x529126=>{const _0x34dc26='string'==typeof _0x529126?Object['assign']({},_0x3263a8[_0x529126]):_0x529126;return _0x34dc26['action']=_0x34dc26['action']['bind'](this,_0x4c1225),_0x34dc26['isVisible']&&(_0x34dc26['isVisible']=_0x34dc26['isVisible']['bind'](this,_0x4c1225)),_0x34dc26;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x399645},_0x267a1f)=>{const _0xd00175=_0x399645['get'](m),_0x2cdbe5=_0xd00175['repository'];let _0x1986fd=_0xd00175['diff']['newRevisionId'],_0x4f6fa3=_0x267a1f['id'];_0x2cdbe5['getIndex'](_0x1986fd)>_0x2cdbe5['getIndex'](_0x4f6fa3)&&([_0x1986fd,_0x4f6fa3]=[_0x4f6fa3,_0x1986fd]),_0xd00175['compare'](_0x1986fd,_0x4f6fa3);},'isVisible':({plugins:_0x38ec81},_0x247afe)=>{const _0x45657a=_0x38ec81['get'](m);return!(_0x45657a['repository']['getRevisionsInDiff'](_0x45657a['diff'])['length']>0x2)&&!_0x247afe['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x182b30,{id:_0x3f1d84})=>{_0x182b30['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f1d84);},'isVisible':({plugins:_0x58cfb2},_0x31ba5d)=>!!_0x58cfb2['get'](m)['repository']['getLaterVisibleRevision'](_0x31ba5d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4947f2},{id:_0x246611,revisionNameView:_0x28fca5})=>{const _0x17f491=_0x4947f2['get'](m),_0x2351c6=_0x17f491['repository']['getEarlierVisibleRevision'](_0x246611);_0x17f491['compare'](_0x246611,_0x2351c6),_0x28fca5['focus'](),_0x28fca5['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x24d2ed,_0x2e9bc0){super(_0x24d2ed),this['_view']=_0x2e9bc0,this['_toolbarConfig']=et(_0x24d2ed['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5d357a){const _0x6b2f19=this['editor'],_0x53176f=this['view'],_0x31bf19=_0x6b2f19['editing']['view'],_0x973c38=_0x53176f['editable'],_0xea7bf2=_0x31bf19['document']['getRoot']();_0x973c38['name']=_0xea7bf2['rootName'],_0x53176f['render']();const _0x38b6f4=_0x973c38['element'];this['setEditableElement'](_0x973c38['name'],_0x38b6f4),_0x53176f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x31bf19['attachDomRoot'](_0x38b6f4),this['_elementReplacer']['replace'](_0x5d357a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b23c7=this['view'],_0x572314=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x572314['detachDomRoot'](_0x2b23c7['editable']['name']),_0x2b23c7['destroy']();}['_initToolbar'](){const _0x3a0b4c=this['view'];_0x3a0b4c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3a0b4c['stickyPanel']['limiterElement']=_0x3a0b4c['element'],_0x3a0b4c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d626b})=>_0x4d626b),_0x3a0b4c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3a0b4c['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3f2fcd,_0x197adf,_0x1dbf8b={}){super(_0x3f2fcd),this['stickyPanel']=new ht(_0x3f2fcd),this['toolbar']=new dt(_0x3f2fcd,{'shouldGroupWhenFull':_0x1dbf8b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3f2fcd,_0x197adf);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x5055df(_0x5c1f04){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x668e62,_0x5accf7){super(_0x5accf7),this['sourceElement']=_0x668e62,this['model']['document']['createRoot']();const _0x540847=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x540847);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3bf4b2,_0x5936ce){const _0x5a1ac4=new this(_0x3bf4b2,_0x5936ce);return await _0x5a1ac4['initPlugins'](),await _0x5a1ac4['ui']['init'](_0x3bf4b2),await _0x5a1ac4['data']['init'](_0x5a1ac4['config']['get']('initialData')||''),_0x5a1ac4['fire']('ready'),_0x5a1ac4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x149b28{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4085){function _0x434caf(_0x59818d){return _0x59818d['map'](_0x565821=>String['fromCharCode'](_0x565821))['join']('');}super(_0x4f4085),this['result']='end',_0x4f4085[_0x434caf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x434caf([0x76,0x69,0x65,0x77])][_0x434caf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x434caf([0x61,0x75,0x74,0x6f]),_0x4f4085[_0x434caf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x434caf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x434caf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x434caf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x434caf([0x6f,0x6b])});}}class k extends _0x149b28{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x22a2a8){if(super(_0x22a2a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4676dd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4a61a6=>this['_showRevisionViewer']({..._0x4a61a6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a5c8e=>this['_closeRevisionViewer'](_0x3a5c8e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x238889=>this['_restoreRevision'](_0x238889)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3d8a16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3d8a16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1131b4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1131b4);}['getRevision'](_0x2ce890){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2ce890);}['getRevisions'](_0x2aefea){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2aefea||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d64bc=this['editor'],_0x4bc25d=_0x38849b(_0x4d64bc,p),_0x78221b=_0x4d64bc['plugins']['get']('RevisionTracker'),_0x5ead80=_0x4d64bc['plugins']['get']('Users')['users'];return _0x4bc25d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4bc25d['lazyRoots'],(_0x4bc25d['plugins']['push'](_t,m,R,class extends _0x149b28{static get['requires'](){return[m,'Users'];}['init'](){const _0x29d2b4=this['editor']['plugins']['get']('Users');for(const _0x19c9bc of _0x5ead80)_0x19c9bc['isAnonymous']||_0x29d2b4['getUser'](_0x19c9bc['id'])||_0x29d2b4['addUser'](_0x19c9bc);const _0x417eeb=_0x78221b['repository']['getRevisions']();let _0x158710=null;const _0x3cb49c=this['editor']['plugins']['get']('RevisionViewer');_0x3cb49c['adapter']=_0x78221b['adapter'],_0x3cb49c['bind']('isEnabled')['to'](_0x78221b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d64bc,'isReadOnly',_0x384f54=>!_0x384f54);for(const _0x4d4a87 of _0x417eeb){const _0x5d82f0=null===_0x4d4a87['creator'];if(_0x5d82f0&&_0x4d4a87['toVersion']===_0x4d4a87['fromVersion'])continue;const _0x30fd7e=_0x4d4a87['toJSON']();_0x3cb49c['addRevisionData'](_0x30fd7e,(_0x4d0b18,_0x40df68,_0x1cd910)=>{if(_0x5d82f0){if(_0x158710)_0x158710['_update'](_0x4d0b18,_0x40df68);else{if(!_0x40df68){const _0x574cf7=_0x1cd910['toJSON']();_0x574cf7['id']=_0x451426(),_0x78221b['saveRevision'](_0x574cf7,_0x1cd910['toVersion'])['then'](_0x5463c2=>{_0x158710=_0x5463c2;});}}}else _0x4d4a87['_update'](_0x4d0b18,_0x40df68);});}}},d),_0x4bc25d);}['_enhanceShowRevisionViewerCallback'](){const _0x4d18b6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4a1622=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1eb4d9=this['editor']['plugins']['get']('Autosave');await _0x1eb4d9['save']();}else await _0x4a1622['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5c4573=this['editor']['plugins']['get']('Dialog');_0x5c4573['isOpen']&&_0x5c4573['hide']();}const _0x4cf10b=this['_getRevisionViewerEditorConfig']();return _0x4d18b6(_0x4cf10b)['then'](_0x36b139=>{return(this['_viewerEditor']=_0x36b139,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x36b139);})['catch'](_0x9e6de9=>(console['error'](_0x9e6de9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5be9c4=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5be9c4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4ffc83=this['editor']['plugins']['get']('Annotations');_0x4ffc83['refreshVisibility'](),_0x4ffc83['refreshPositioning']();}})));}['_showRevisionViewer'](_0x518ae6){const _0x50c373=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xae1a2d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x194825=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x194825,_0x518ae6)['then'](_0x53de9d=>(_0xae1a2d['style']['display']='block',_0x50c373['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x53de9d));}['_closeRevisionViewer'](_0x323aed){const _0x401746=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401746['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x323aed['destroy']();}async['_restoreRevision'](_0x5b7759){const _0x41522d=this['editor'],_0x4d9fd3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59473c=_0x41522d['plugins']['get']('RevisionTracker'),_0x259b85=_0x41522d['plugins']['get']('RevisionHistoryUtils'),_0x10f51f=_0x4d9fd3['repository']['getRevision'](_0x5b7759);let _0x280b9e,_0x5cb54b,_0x1fc12b;try{await _0x259b85['loadRevisionData'](_0x10f51f,this['adapter']),_0x280b9e=_0x259b85['getRevisionDocumentData'](_0x10f51f),_0x5cb54b=_0x259b85['getRevisionRootsAttributes'](_0x10f51f);}catch(_0x1f3c5b){return void console['error'](_0x1f3c5b);}_0x41522d['model']['change'](_0x4fd2e0=>{for(const _0x143870 of Array['from'](_0x41522d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4fd2e0['removeMarker'](_0x143870);}),_0x4d9fd3['isReady']=!0x1,_0x41522d['model']['enqueueChange'](_0x23f048=>{_0x23f048['setSelection'](null),_0x23f048['removeSelectionAttribute'](_0x41522d['model']['document']['selection']['getAttributeKeys']());const _0x2a92bc=Object['keys'](_0x280b9e);for(const _0x3ca3d0 of _0x41522d['model']['document']['roots'])'$graveyard'!=_0x3ca3d0['rootName']&&_0x3ca3d0['isAttached']()&&!_0x2a92bc['includes'](_0x3ca3d0['rootName'])&&_0x23f048['detachRoot'](_0x3ca3d0);for(const _0x397281 of _0x2a92bc){let _0x53a4c4=_0x41522d['model']['document']['getRoot'](_0x397281);_0x53a4c4&&_0x53a4c4['isAttached']()||(_0x53a4c4=_0x23f048['addRoot'](_0x397281));const _0x55a493=_0x5cb54b[_0x397281],_0x3ad2c1=Object['keys'](_0x55a493),_0x1eed79=_0x280b9e[_0x397281];for(const _0x17a89c of _0x53a4c4['getAttributeKeys']())_0x3ad2c1['includes'](_0x17a89c)||_0x23f048['removeAttribute'](_0x17a89c,_0x53a4c4);for(const _0x247cb0 of _0x3ad2c1)_0x23f048['setAttribute'](_0x247cb0,_0x5cb54b[_0x397281][_0x247cb0],_0x53a4c4);_0x23f048['remove'](_0x23f048['createRangeIn'](_0x53a4c4)),_0x23f048['insert'](_0x41522d['data']['parse'](_0x1eed79,_0x53a4c4),_0x53a4c4,0x0);}});const _0x49c7d3=g(_0x41522d['locale'],'Restored');if(_0x10f51f['name'])_0x1fc12b=-0x1==_0x10f51f['name']['indexOf'](_0x49c7d3)?_0x49c7d3+':\x20'+_0x10f51f['name']:_0x10f51f['name'];else _0x1fc12b=_0x49c7d3+':\x20'+(_0x10f51f['createdAt']['toLocaleDateString'](_0x41522d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x10f51f['createdAt']['toLocaleTimeString'](_0x41522d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59473c['saveRevision']({'name':_0x1fc12b}),_0x4d9fd3['isReady']=!0x0,_0x41522d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|