@ckeditor/ckeditor5-revision-history 47.0.0-alpha.4 → 47.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xcaaf5a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x55e588){super(),this['id']=_0x55e588['id']||_0x549feb(),this['creator']=_0x55e588['creator']||null,this['authors']=_0x55e588['authors']||[],this['diffData']=_0x55e588['diffData']||null,this['toVersion']=_0x55e588['toVersion']||0x0,this['fromVersion']=_0x55e588['fromVersion']||0x0,this['set']('name',_0x55e588['name']||''),this['set']('createdAt',_0x55e588['createdAt']||new Date()),this['set']('attributes',_0x55e588['attributes']||{});}['setName'](_0x2c51b0){this['_update']({'name':_0x2c51b0});}['setAttribute'](_0x46d436,_0x4b4169){const _0x567abe=_0x8fd207(this['attributes']);_0x496e69(_0x567abe,_0x46d436,_0x4b4169),this['_update']({'attributes':_0x567abe});}['removeAttribute'](_0x361798){const _0x54ecc3=_0x8fd207(this['attributes']);_0x1725f0(_0x54ecc3,_0x361798),this['_update']({'attributes':_0x54ecc3});}['_update'](_0x1b8837,_0x45622e=!0x1){let _0x2aff65=!0x1;const _0x5405e5={'id':this['id']},_0xfa9c59=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5005a3 of _0xfa9c59){const _0x2bfcad=_0x1b8837[_0x5005a3];void 0x0!==_0x2bfcad&&_0x2bfcad!==this[_0x5005a3]&&(this[_0x5005a3]=_0x2bfcad,_0x5405e5[_0x5005a3]=_0x2bfcad,_0x2aff65=!0x0);}_0x2aff65&&(_0x5405e5['authors']&&(_0x5405e5['authorsIds']=_0x5405e5['authors']['map'](_0x4434ff=>_0x4434ff['id']),delete _0x5405e5['authors']),this['fire']('_update',_0x5405e5,_0x45622e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4fc0fb=>_0x4fc0fb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x38daca{['_revisions'];static get['requires'](){return[_0x19dd7a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2c55bf){super(_0x2c55bf),this['_revisions']=new _0x305a29();}['afterInit'](){!async function(_0x2be60c){const _0x4ff3d4=_0x164f7b([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x10b557=0xeb829,_0x31a085=0x7374585f,_0x18ea0f=0x73732cf7^_0x31a085,_0x2ccb9e=window[_0x164f7b([0x44,0x61,0x74,0x65])][_0x164f7b([0x6e,0x6f,0x77])](),_0x73d58d=_0x2be60c[_0x164f7b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c293a=new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490e33=>{_0x73d58d[_0x164f7b([0x6f,0x6e,0x63,0x65])](_0x164f7b([0x72,0x65,0x61,0x64,0x79]),_0x490e33);}),_0x52c250={[_0x164f7b([0x6b,0x74,0x79])]:_0x164f7b([0x45,0x43]),[_0x164f7b([0x75,0x73,0x65])]:_0x164f7b([0x73,0x69,0x67]),[_0x164f7b([0x63,0x72,0x76])]:_0x164f7b([0x50,0x2d,0x32,0x35,0x36]),[_0x164f7b([0x78])]:_0x164f7b([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]),[_0x164f7b([0x79])]:_0x164f7b([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]),[_0x164f7b([0x61,0x6c,0x67])]:_0x164f7b([0x45,0x53,0x32,0x35,0x36])},_0x47640e=_0x73d58d[_0x164f7b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x164f7b([0x67,0x65,0x74])](_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8fe15a(){let _0x24b062,_0x1b81fb=null,_0x453282=null;try{if(_0x47640e==_0x164f7b([0x47,0x50,0x4c]))return _0x164f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24b062=_0x331571(),!_0x24b062)return _0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24b062[_0x164f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x453282=_0x28c5f5(_0x24b062[_0x164f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24b062[_0x164f7b([0x6a,0x74,0x69])])),await _0x42eb26()?_0x14be06()?_0x2aca08()?_0x164f7b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1636()?(_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x164f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b81fb=_0xa8b00(_0x164f7b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x164f7b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b81fb=_0xa8b00(_0x164f7b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb2d82e()):_0x164f7b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x164f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aca08(){const _0x1f50fb=[_0x164f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x164f7b([0x74,0x72,0x69,0x61,0x6c])][_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ccb9e/0x3e8:0xe10*_0x18ea0f;return _0x24b062[_0x164f7b([0x65,0x78,0x70])]<_0x1f50fb;}function _0x14be06(){const _0x2008ee=_0x24b062[_0x164f7b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2008ee)return!0x1;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x2a])))return!0x0;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x52,0x48])))return!0x0;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x52,0x52,0x48]))){if(_0x117d6e())return!0x0;if(_0x20c2ac()||_0x3631af())return!0x0;}return!0x1;}function _0x3a1636(){const _0x5a683e=_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a683e||0x0==_0x5a683e[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x329b03}=new URL(window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a683e[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329b03))return!0x0;const _0x25e013=_0x329b03[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e]));return _0x5a683e[_0x164f7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x421574=>_0x421574[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x2a])))[_0x164f7b([0x6d,0x61,0x70])](_0x20f22b=>_0x20f22b[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e])))[_0x164f7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cae19=>_0x5cae19[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25e013[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164f7b([0x6d,0x61,0x70])](_0x290a5e=>Array(_0x25e013[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x290a5e[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164f7b([0x66,0x69,0x6c,0x6c])](_0x290a5e[0x0]===_0x164f7b([0x2a])?_0x164f7b([0x2a]):'')[_0x164f7b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x290a5e))[_0x164f7b([0x73,0x6f,0x6d,0x65])](_0x549c2b=>_0x25e013[_0x164f7b([0x65,0x76,0x65,0x72,0x79])]((_0x787d17,_0x543210)=>_0x549c2b[_0x543210]===_0x787d17||_0x549c2b[_0x543210]===_0x164f7b([0x2a])));}function _0xb2d82e(){return _0x1b81fb&&_0x453282?new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa54fb7,_0x1d2da5)=>{_0x1b81fb[_0x164f7b([0x74,0x68,0x65,0x6e])](_0xa54fb7,_0x1d2da5),_0x453282[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x2452c5=>{_0x2452c5!=_0x164f7b([0x56,0x61,0x6c,0x69,0x64])&&_0xa54fb7(_0x2452c5);},_0x1d2da5);}):_0x1b81fb||_0x453282||_0x164f7b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c5f5(_0x3b476e,_0x44e376){return new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x228fcc=>{if(_0x4b1b7d())return _0x228fcc(_0x164f7b([0x56,0x61,0x6c,0x69,0x64]));_0x14232d(),_0x73d58d[_0x164f7b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a08ef=!0x1;const _0x3f8cea=_0x549feb();function _0x20bed2(_0x235bcb){return!!_0x235bcb&&(typeof _0x235bcb===_0x164f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x235bcb===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x235bcb[_0x164f7b([0x74,0x68,0x65,0x6e])]===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x235bcb[_0x164f7b([0x63,0x61,0x74,0x63,0x68])]===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e3fc(_0x2eb054){_0x46bd25(_0x2eb054)[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x5b9371=>{if(!_0x5b9371||_0x5b9371[_0x164f7b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x164f7b([0x6f,0x6b]))return _0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x223fab(_0x5db129(_0x3f8cea+_0x44e376))!=_0x5b9371[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x164f7b([0x56,0x61,0x6c,0x69,0x64]);})[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x282fe2=>(_0x487170(),_0x282fe2),()=>{const _0x1a3077=_0x1b8e72();return null==_0x1a3077?(_0x487170(),_0x164f7b([0x56,0x61,0x6c,0x69,0x64])):_0x164f7b(_0x2ccb9e-_0x1a3077>(0x5778dc5f^_0x31a085)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x228fcc)[_0x164f7b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4cdaf5=0x7342b6df^_0x31a085;function _0x487170(){const _0x35ecc3=_0x164f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x223fab(_0x5db129(_0x3b476e)),_0x46912b=_0x443920(_0x223fab(window[_0x164f7b([0x4d,0x61,0x74,0x68])][_0x164f7b([0x63,0x65,0x69,0x6c])](_0x2ccb9e/_0x4cdaf5)));window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164f7b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35ecc3,_0x46912b);}function _0x1b8e72(){const _0x43fe5c=_0x164f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x223fab(_0x5db129(_0x3b476e)),_0xcf3584=window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164f7b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43fe5c);return _0xcf3584?window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443920(_0xcf3584),0x10)*_0x4cdaf5:null;}function _0x46bd25(_0x433533){return new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc5fb80,_0x1e62b1)=>{_0x433533[_0x164f7b([0x74,0x68,0x65,0x6e])](_0xc5fb80,_0x1e62b1),window[_0x164f7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e62b1,0x73758c9f^_0x31a085);});}}_0x73d58d[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8dac29,_0x2d732d)=>{if(_0x2d732d[0x0]!=_0x3b476e)return _0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d732d[0x1]={..._0x2d732d[0x1],[_0x164f7b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f8cea};},{[_0x164f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164f7b([0x68,0x69,0x67,0x68])}),_0x73d58d[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46eeee=>{_0x20bed2(_0x46eeee[_0x164f7b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a08ef=!0x0,_0x13e3fc(_0x46eeee[_0x164f7b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x164f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164f7b([0x6c,0x6f,0x77])}),_0x5c293a[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>{_0x5a08ef||_0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b1b7d(){return _0x73d58d[_0x164f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164f7b([0x76,0x69,0x65,0x77])][_0x164f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x164f7b([0x61,0x75,0x74,0x6f]);}function _0x14232d(){_0x73d58d[_0x164f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164f7b([0x76,0x69,0x65,0x77])][_0x164f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x164f7b([0x61,0x75,0x74,0x6f]);}}function _0xa8b00(_0x25d02b){const _0xf914d9=[new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ff3ba=>setTimeout(_0x3ff3ba,0x737d6693^_0x31a085)),_0x5c293a[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38c5fe=>{const _0x55bc1e=0x73745858^_0x31a085,_0x1a531a=_0x2be60c[_0x164f7b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51e051(){_0x1a531a[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x55bc1e&&_0x38c5fe();}_0x51e051(),_0x1a531a[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x61,0x64,0x64]),_0x51e051);})),new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458167=>{function _0x21e4be(){for(const _0x2a55cd in window)if(window[_0x164f7b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x164f7b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a55cd))&&window[_0x2a55cd]==_0x10b557)return _0x458167();_0x73d58d[_0x164f7b([0x73,0x74,0x61,0x74,0x65])]!=_0x164f7b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x164f7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e4be,0x73744bd7^_0x31a085);}_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21e4be();})];return window[_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x164f7b([0x72,0x61,0x63,0x65])](_0xf914d9)[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>_0x25d02b);}async function _0x5ac861(){if(await _0x5c293a,_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2f286b=_0x2be60c[_0x164f7b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167144=_0x2be60c[_0x164f7b([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])](_0x2f286b[_0x164f7b([0x69,0x64])]),_0x11251e=_0x412b95(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x11251e[_0x164f7b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2f286b['id'],_0x167144?_0x167144['id']:null,!0x0),_0x11251e[_0x164f7b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11251e[_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11251e[_0x164f7b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4346a0,void(_0x11251e[_0x164f7b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4346a0);}if(_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1b235c=_0x412b95(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1b235c[_0x164f7b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b235c[_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b235c[_0x164f7b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4346a0,_0x1b235c[_0x164f7b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4346a0;}_0x73d58d[_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x164f7b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4346a0,_0x73d58d[_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x164f7b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4346a0,_0x73d58d[_0x164f7b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x117d6e(){return _0x5deee5(_0x164f7b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x412b95(_0x164f7b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x164f7b([0x73,0x74,0x61,0x74,0x65])]==_0x164f7b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x20c2ac(){return _0x5deee5(_0x164f7b([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 _0x3631af(){return _0x5deee5(_0x164f7b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f6337(_0x2c664b){const _0xf379dc=_0x437876();_0x73d58d[_0xf379dc]=_0x164f7b([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])+_0x2c664b,_0x2c664b[_0x164f7b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x164f7b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x437876()]=_0x10b557),_0x2c664b!=_0x164f7b([0x56,0x61,0x6c,0x69,0x64])&&_0x5ac861();}function _0x437876(){const _0xe56984=window[_0x164f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x164f7b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x164f7b([0x6e,0x6f,0x77])]())[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x164f7b([0x2e]),'');let _0x568a94=_0x164f7b([0x73]);for(let _0x1edd0b=0x0;_0x1edd0b<_0xe56984[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1edd0b+=0x2){let _0x54a3b3=window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe56984[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1edd0b,_0x1edd0b+0x2));_0x54a3b3>=_0x4ff3d4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54a3b3-=_0x4ff3d4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568a94+=_0x4ff3d4[_0x54a3b3];}return _0x568a94;}function _0x331571(){const _0x293d9a=_0x47640e[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e]));if(0x3!=_0x293d9a[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c4e47(_0x293d9a[0x1]);function _0x3c4e47(_0x272b34){const _0xec0e78=_0x51f66a(_0x272b34);return _0xec0e78&&_0x1d4349()?_0xec0e78:null;function _0x1d4349(){const _0x112e72=_0xec0e78[_0x164f7b([0x6a,0x74,0x69])],_0x5c92ca=window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112e72[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x112e72[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x388aa3={..._0xec0e78,[_0x164f7b([0x6a,0x74,0x69])]:_0x112e72[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x112e72[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x388aa3[_0x164f7b([0x76,0x63])],_0x5db129(_0x388aa3)==_0x5c92ca;}}}async function _0x42eb26(){let _0xbd11cd=!0x0;try{const _0x2f796a=_0x47640e[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e])),[_0x292b40,_0xfeda44,_0x1483d3]=_0x2f796a;return _0x5001a5(_0x292b40),await _0x33eb25(_0x292b40,_0xfeda44,_0x1483d3),_0xbd11cd;}catch{return!0x1;}function _0x5001a5(_0x1ce604){const _0x3f885e=_0x51f66a(_0x1ce604);_0x3f885e&&_0x3f885e[_0x164f7b([0x61,0x6c,0x67])]==_0x164f7b([0x45,0x53,0x32,0x35,0x36])||(_0xbd11cd=!0x1);}async function _0x33eb25(_0x3799b7,_0x155c95,_0x324a2e){const _0x3dcb68=window[_0x164f7b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x164f7b([0x66,0x72,0x6f,0x6d])](_0x3feede(_0x324a2e),_0x1fef2b=>_0x1fef2b[_0x164f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x558356=new window[(_0x164f7b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x164f7b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3799b7+_0x164f7b([0x2e])+_0x155c95),_0x42c594=window[_0x164f7b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x164f7b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42c594)return;const _0x4cb5ec=await _0x42c594[_0x164f7b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x164f7b([0x6a,0x77,0x6b]),_0x52c250,{[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x45,0x43,0x44,0x53,0x41]),[_0x164f7b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x164f7b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42c594[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x45,0x43,0x44,0x53,0x41]),[_0x164f7b([0x68,0x61,0x73,0x68])]:{[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cb5ec,_0x3dcb68,_0x558356)||(_0xbd11cd=!0x1);}}function _0x51f66a(_0x2e48ab){return _0x2e48ab[_0x164f7b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x164f7b([0x65,0x79]))?JSON[_0x164f7b([0x70,0x61,0x72,0x73,0x65])](_0x3feede(_0x2e48ab)):null;}function _0x3feede(_0x414587){return window[_0x164f7b([0x61,0x74,0x6f,0x62])](_0x414587[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x164f7b([0x2b]))[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x164f7b([0x2f])));}function _0x5db129(_0x2b4d82){let _0x216233=0x1505;function _0xb0afa9(_0x241bf4){for(let _0x29d49d=0x0;_0x29d49d<_0x241bf4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d49d++){const _0x3c4b7a=_0x241bf4[_0x164f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29d49d);_0x216233=(_0x216233<<0x5)+_0x216233+_0x3c4b7a,_0x216233&=_0x216233;}}function _0x93ac1(_0x20ded7){Array[_0x164f7b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ded7)?_0x20ded7[_0x164f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x93ac1):_0x20ded7&&typeof _0x20ded7==_0x164f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x164f7b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ded7)[_0x164f7b([0x73,0x6f,0x72,0x74])]()[_0x164f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43ebde,_0x1d4801])=>{_0xb0afa9(_0x43ebde),_0x93ac1(_0x1d4801);}):_0xb0afa9(window[_0x164f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ded7));}return _0x93ac1(_0x2b4d82),_0x216233>>>0x0;}function _0x223fab(_0x2f6a81){return _0x2f6a81[_0x164f7b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x164f7b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x164f7b([0x30]));}function _0x443920(_0x1cbdbc){return _0x1cbdbc[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x164f7b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x164f7b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5deee5(_0x8f6d99){return _0x73d58d[_0x164f7b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164f7b([0x68,0x61,0x73])](_0x8f6d99);}function _0x412b95(_0x324959){return _0x73d58d[_0x164f7b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164f7b([0x67,0x65,0x74])](_0x324959);}function _0x4346a0(){}function _0x164f7b(_0x58c01e){return _0x58c01e['map'](_0x24f00a=>String['fromCharCode'](_0x24f00a))['join']('');}_0x1f6337(await _0x8fe15a());}(this);}['createRevision'](_0x5e5fbe){const _0x384eee=this['editor']['plugins']['get']('Users');return new I({'id':_0x5e5fbe['id'],'name':_0x5e5fbe['name'],'creator':_0x5e5fbe['creatorId']?_0x384eee['getUser'](_0x5e5fbe['creatorId']):null,'diffData':_0x5e5fbe['diffData']||_0x5e5fbe['data'],'authors':_0x5e5fbe['authorsIds']['map'](_0x26dae1=>_0x384eee['getUser'](_0x26dae1)),'createdAt':new Date(_0x5e5fbe['createdAt']),'attributes':_0x5e5fbe['attributes'],'fromVersion':_0x5e5fbe['fromVersion'],'toVersion':_0x5e5fbe['toVersion']});}['addRevision'](_0x15a256,_0x28df91=0x0){this['_revisions']['add'](_0x15a256,_0x28df91);}['getRevision'](_0xa6febb){return this['_revisions']['get'](_0xa6febb);}['getRevisions'](_0x3cd709={'toJSON':!0x1}){const _0x353c67=Array['from'](this['_revisions']);return _0x353c67['reverse'](),_0x3cd709['toJSON']?_0x353c67['map'](_0x4d1296=>_0x4d1296['toJSON']()):_0x353c67;}['getIndex'](_0xcc13f5){return this['_revisions']['getIndex'](_0xcc13f5);}['getEarlierVisibleRevision'](_0x5f52b0){const [,_0x3daf83]=this['getRevisionsIterator'](_0x5f52b0,{'direction':'earlier'});return _0x3daf83;}['getLaterVisibleRevision'](_0x15542){const [,_0x2faef9]=this['getRevisionsIterator'](_0x15542,{'direction':'later'});return _0x2faef9;}['getRevisionsInDiff'](_0x36250b){const _0x31f98e=[];for(const _0x55d781 of this['getRevisionsIterator'](_0x36250b['newRevisionId']))if(_0x31f98e['push'](_0x55d781),_0x55d781['id']===_0x36250b['oldRevisionId'])break;return _0x31f98e;}*['getRevisionsIterator'](_0x16da86,{direction:_0x1c5ed7='earlier',filter:_0x46d4a6=()=>!0x0}={}){const _0x40e2ed='earlier'===_0x1c5ed7?0x1:-0x1;let _0x14b7d9=this['_revisions']['get'](_0x16da86),_0x276a08=this['getIndex'](_0x14b7d9);for(yield _0x14b7d9;_0x14b7d9;){if(_0x276a08+=_0x40e2ed,_0x14b7d9=this['getRevision'](_0x276a08),!_0x14b7d9)return;_0x46d4a6(_0x14b7d9)&&(yield _0x14b7d9);}}}class $ extends _0x38daca{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1d56ce,'c'],[_0xc57422,'a'],[_0x28a0c8,'e'],[_0x441a03,'r'],[_0x2c0032,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1d56ce],['a',_0xc57422],['e',_0x28a0c8],['r',_0x441a03],['u',_0x2c0032]]);async['loadRevisionData'](_0x50a72a,_0x5dcc7f){if(_0x50a72a['diffData']||!_0x5dcc7f)return;const _0x37535f=this['editor']['config']['get']('collaboration.channelId'),_0x261ff3=await _0x5dcc7f['getRevision']({'channelId':_0x37535f,'revisionId':_0x50a72a['id']});_0x50a72a['diffData']=_0x261ff3['diffData'];}['getRevisionDocumentData'](_0x12e8e5){const _0x25ca74={};for(const _0x5879d4 in _0x12e8e5['diffData']){if(_0x12e8e5['diffData'][_0x5879d4]['attachChange']&&!_0x12e8e5['diffData'][_0x5879d4]['attachChange']['isAttached'])continue;const _0x243821=this['_removeRevisionMarkers'](JSON['parse'](_0x12e8e5['diffData'][_0x5879d4]['insertions'])),_0x4b1830=this['editor']['editing']['view']['document'],_0x25f155=new _0x30865c(_0x4b1830,_0x243821['map'](_0x197945=>this['_getViewFromDiffObj'](_0x197945,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x25ca74[_0x5879d4]=this['editor']['data']['processor']['toData'](_0x25f155),this['editor']['data']['processor']['useFillerType']('default');}return _0x25ca74;}['getRevisionRootsAttributes'](_0x1e977b){const _0x2c3309={};for(const _0x5621ba in _0x1e977b['diffData'])_0x1e977b['diffData'][_0x5621ba]['attachChange']&&!_0x1e977b['diffData'][_0x5621ba]['attachChange']['isAttached']||(_0x2c3309[_0x5621ba]=_0x1e977b['diffData'][_0x5621ba]['attributesAfter']||{});return _0x2c3309;}['_getTypeCharForViewElement'](_0xa58b3f){return this['_viewClassToTypeChar']['get'](_0xa58b3f['constructor']);}['_getViewFromDiffObj'](_0x14118f,_0xe8b259){const _0x3f5e5e=this['editor']['editing']['view']['document'];if('string'==typeof _0x14118f)return new _0x40b0ee(_0x3f5e5e,_0x14118f);{let _0x55af00,_0x5032df;_0x5032df='u'==_0x14118f['type']||'r'==_0x14118f['type']?[]:_0x14118f['children']['map'](_0x711ade=>this['_getViewFromDiffObj'](_0x711ade,_0xe8b259));const _0x171096=this['_typeCharToViewClass']['get'](_0x14118f['type'])||_0x5067f2,_0x575605=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x55af00=new _0x171096(_0x3f5e5e,_0x14118f['name'],_0x14118f['attributes'],_0x5032df),'u'==_0x14118f['type']&&_0x14118f['children'][0x0]){const _0x4a089b=_0x14118f['children'][0x0];if(_0x55af00['render']=function(_0xc05684){const _0x11528f=_0xc05684['createElement']('div');return _0x11528f['innerHTML']=_0x4a089b,_0x11528f['childNodes'][0x0];},_0xe8b259){const _0x22a657=new _0x30865c(_0x3f5e5e);_0x22a657['_appendChild'](_0x55af00);const _0x2a9ce3=Array['from'](_0x575605['viewChildrenToDom'](_0x22a657,{'bind':!0x1})),_0x3c4a80=_0x575605['domDocument']['createElement']('div');_0x3c4a80['append'](..._0x2a9ce3),_0x55af00=Array['from'](_0x575605['domChildrenToView'](_0x3c4a80))[0x0];}}else{if('r'==_0x14118f['type']&&_0x14118f['children'][0x0]){const _0x4b6b63=_0x14118f['children'][0x0];if(_0x55af00['render']=function(_0x27db59){_0x27db59['innerHTML']=_0x4b6b63;},_0xe8b259){const _0x5539b6=new _0x30865c(_0x3f5e5e);_0x5539b6['_appendChild'](_0x55af00);const _0x59b585=Array['from'](_0x575605['viewChildrenToDom'](_0x5539b6,{'bind':!0x1})),_0x4968de=_0x575605['domDocument']['createElement']('div');_0x4968de['append'](..._0x59b585);const _0x5385d5=Array['from'](_0x575605['domChildrenToView'](_0x4968de));_0x5385d5['length']>0x1?_0x55af00['_appendChild'](_0x5385d5):_0x55af00=_0x5385d5[0x0];}}}if(_0x14118f['customProperties']){for(const [_0x58a6bb,_0x150fdc]of _0x14118f['customProperties'])_0x55af00['_setCustomProperty'](_0x58a6bb,_0x150fdc);}const _0x549d31=void 0x0===_0x14118f['fillerOffset']?null:_0x14118f['fillerOffset'];return null!==_0x549d31&&(_0x55af00['getFillerOffset']=()=>_0x549d31),_0x55af00;}}['_makeModelFromViewString'](_0x2a4cd2){const _0x24e61e=JSON['parse'](_0x2a4cd2),_0x5480b2=this['editor']['editing']['view']['document'],_0x45f67a=new _0x30865c(_0x5480b2,_0x24e61e['map'](_0x3e64b9=>this['_getViewFromDiffObj'](_0x3e64b9,!0x0)));return this['editor']['data']['toModel'](_0x45f67a);}['_removeRevisionMarkers'](_0x58ad58){return(_0x58ad58=_0x58ad58['filter'](_0xee15ab=>!_0xee15ab['name']||'revision-start'!==_0xee15ab['name']&&'revision-end'!==_0xee15ab['name']))['forEach'](_0x4bd947=>{'string'!=typeof _0x4bd947&&(_0x4bd947['children']=this['_removeRevisionMarkers'](_0x4bd947['children']),_0x4bd947['attributes']=_0x4bd947['attributes']['filter'](_0x3f46fe=>!_0x3f46fe[0x0]['startsWith']('data-revision-')));}),_0x58ad58;}}function R(_0x1a94c0,_0x1fa66c,_0x4f1fec){const t=_0x1a94c0['t'];switch(_0x1fa66c){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'},_0x4f1fec);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f1fec);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x38daca{['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[_0x19dd7a,S,$,_0x1d34c4];}constructor(_0xafd66b){super(_0xafd66b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2505e1=_0x549feb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2505e1},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 _0x24c140=this['repository']['getRevision'](0x0),_0x429922=_0x24c140&&null===_0x24c140['creator']?_0x24c140:null;if(this['_continueCurrentRevision']=!!_0x429922&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4e8bcd=this['_source']['getCurrentRevisionId'](),_0x19ab31=this['repository']['getRevision'](_0x4e8bcd);if(_0x19ab31)this['_startingVersion']=_0x19ab31['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5b453f=this['_source']['history']['_operations']['find'](_0x5ce5bb=>!_0x5ce5bb['_isInit']),_0x12e649=_0x5b453f?_0x5b453f['baseVersion']:this['_source']['history']['version'];_0x24c140?(_0x24c140['toVersion']<_0x12e649&&_0x24c140['_update']({'toVersion':_0x12e649}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x429922['id'],this['_startingVersion']=_0x429922['fromVersion']):(this['_startingVersion']=_0x24c140['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x12e649,this['_continueCurrentRevision']=!0x1);}}else _0x429922&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x429922['toVersion'],this['editor']['model']['document']['history']['version']),_0x429922['fromVersion']===_0x429922['toVersion']?(0x0!==_0x429922['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x429922['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x429922['id'],this['_startingVersion']=_0x429922['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',_0x36e472=>!_0x36e472),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31bfbb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3208e5;for(const _0x3eb814 in _0x31bfbb){const _0x166311=_0x3eb814,_0x30904d=_0x31bfbb[_0x166311];if('revisionHistoryLicenseKeyValid'==_0x30904d||'revisionHistoryLicenseKeyInvalid'==_0x30904d||'revisionHistoryLicenseKeyExpired'==_0x30904d||'revisionHistoryLicenseKeyDomainLimit'==_0x30904d||'revisionHistoryLicenseKeyNotAllowed'==_0x30904d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x30904d||'revisionHistoryLicenseKeyTrialLimit'==_0x30904d||'revisionHistoryLicenseKeyUsageLimit'==_0x30904d){delete _0x31bfbb[_0x166311],_0x3208e5=_0x30904d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3208e5&&_0x31bfbb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3208e5&&_0x31bfbb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3208e5&&_0x31bfbb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x29999c=this['repository']['getRevision'](0x0),_0x3b6f2d=await this['getRevisionDocumentData'](_0x29999c),_0x40ab11=await this['getRevisionRootsAttributes'](_0x29999c);this['_replaceEditorDataWithRevisionData'](_0x3b6f2d,_0x40ab11);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x452d23){this['_source']=_0x452d23;}async['update'](){const _0x278fec=await this['_source']['getLatestVersion']();if(_0x278fec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x154897=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x278fec});_0x154897['authors']=_0x154897['authorsIds']['map'](_0x4c65d5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c65d5)),this['currentRevision']['_update'](_0x154897);}}async['saveRevision'](_0x44c677={},_0x4c33c2=null){const _0x3d0a62=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c33c2>this['currentRevision']['toVersion']&&(_0x4c33c2=null),null===_0x4c33c2&&(_0x4c33c2=await this['_source']['getLatestVersion']());const _0x3a10d4=this['_getFromVersion'](_0x4c33c2),_0x2855fa=this['buildRevisionData']({'from':_0x3a10d4,'to':_0x4c33c2});if(this['currentRevision']['toVersion']<_0x4c33c2){const _0x34ac5a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c33c2,'to':_0x4c33c2});_0x34ac5a['authors']=[],_0x34ac5a['authorsIds']=[],_0x34ac5a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x34ac5a,!0x0),delete _0x34ac5a['authors'],_0x3d0a62['push'](_0x34ac5a);}_0x44c677['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x44c677['name']=_0x44c677['name']||null,_0x44c677['id']=_0x44c677['id']||_0x549feb(),_0x44c677={..._0x44c677,..._0x2855fa};const _0x22802a=this['addRevisionData'](_0x44c677);_0x3d0a62['push'](_0x44c677);const _0x2a3fee=this['repository']['getIndex'](_0x22802a);if(0x0!==_0x2a3fee){const _0x3ba16b=this['repository']['getRevision'](_0x2a3fee-0x1);if(_0x3ba16b['fromVersion']!==_0x4c33c2){const _0x3df8a7=this['_revisionDataBuilder']['getData'](_0x4c33c2,_0x3ba16b['toVersion']),_0x19ba4f={'id':_0x3ba16b['id'],'diffData':_0x3df8a7['diffData'],'authorsIds':_0x3df8a7['authorsIds'],'authors':_0x3df8a7['authorsIds']['map'](_0x34f974=>this['editor']['plugins']['get']('Users')['getUser'](_0x34f974)),'fromVersion':_0x4c33c2};_0x3ba16b===this['currentRevision']&&(_0x19ba4f['createdAt']=new Date(_0x44c677['createdAt']['getTime']()+0xa)),_0x3ba16b['_update'](_0x19ba4f,!0x0),delete _0x19ba4f['authors'],_0x3d0a62['push'](_0x19ba4f);}}if(this['adapter']){for(const _0x5f2bdf of _0x3d0a62)this['_bufferUpdate'](_0x5f2bdf['id'],_0x5f2bdf,!0x0);this['sendBufferedUpdates']();}return _0x22802a;}['addRevisionData'](_0x85b7db){const _0x5e4469=this['repository']['createRevision'](_0x85b7db);return this['adapter']&&_0x5e4469['on']('_update',(_0x51b3c7,_0x56647d,_0x599bc5)=>{_0x599bc5||(this['_bufferUpdate'](_0x56647d['id'],_0x56647d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5e4469,this['_findInsertionIndex'](_0x5e4469)),_0x5e4469;}async['getRevisionDocumentData'](_0xc6c383){return await this['_utils']['loadRevisionData'](_0xc6c383,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xc6c383);}async['getRevisionRootsAttributes'](_0x4b967c){return await this['_utils']['loadRevisionData'](_0x4b967c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4b967c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x231e80=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x23e5ee=0x0;_0x23e5ee<_0x231e80['length'];_0x23e5ee++){const _0x325183=_0x231e80[_0x23e5ee];let _0x56a388=!0x1;for(const _0x3e2051 of Object['keys'](_0x325183))void 0x0===_0x325183[_0x3e2051]?delete _0x325183[_0x3e2051]:'id'!==_0x3e2051&&(_0x56a388=!0x0);_0x56a388||(_0x231e80[_0x23e5ee]=null);}if(_0x231e80=_0x231e80['filter'](_0x2ad654=>null!==_0x2ad654),!_0x231e80['length'])return;for(let _0x4a8f0c=0x0;_0x4a8f0c<_0x231e80['length'];_0x4a8f0c++){const _0x28bb2c=_0x231e80[_0x4a8f0c];void 0x0!==_0x28bb2c['fromVersion']&&void 0x0===_0x28bb2c['toVersion']&&(_0x28bb2c['toVersion']=this['repository']['getRevision'](_0x28bb2c['id'])['toVersion']),void 0x0!==_0x28bb2c['toVersion']&&void 0x0===_0x28bb2c['fromVersion']&&(_0x28bb2c['fromVersion']=this['repository']['getRevision'](_0x28bb2c['id'])['fromVersion']);}const _0x2cb6ee=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x231e80,_0x2cb6ee)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ec38a=>{if(_0x3ec38a){for(const _0xf4ecc7 of _0x3ec38a)this['setRevisionData']({'id':_0xf4ecc7['id'],'createdAt':_0xf4ecc7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4d4e14=null,from:_0x5ee79a=null,to:_0x33a94d=null}){_0x5ee79a=null!==_0x5ee79a?_0x5ee79a:_0x4d4e14['fromVersion'],_0x33a94d=null!==_0x33a94d?_0x33a94d:_0x4d4e14['toVersion'];const _0x5d5954=this['_revisionDataBuilder']['getData'](_0x5ee79a,_0x33a94d),_0x45bc7d={'diffData':_0x5d5954['diffData'],'authorsIds':_0x5d5954['authorsIds'],'fromVersion':_0x5ee79a,'toVersion':_0x33a94d};if(!_0x4d4e14||_0x33a94d!==_0x4d4e14['toVersion']){const _0x5202bf=_0x33a94d-0x1,_0x5470dd=this['_source']['history']['getOperation'](_0x5202bf);_0x45bc7d['createdAt']=_0x5470dd&&_0x5470dd['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5ee79a===this['_loadedStateData']['fromVersion']){for(const _0x19e0c5 of this['_loadedStateData']['authors'])_0x45bc7d['authorsIds']['includes'](_0x19e0c5['id'])||_0x45bc7d['authorsIds']['push'](_0x19e0c5['id']);}return _0x45bc7d;}['_bufferUpdate'](_0x28a1a6,_0x1add79,_0x34430e){if(this['_bufferedUpdates']['has'](_0x28a1a6)){const _0x566338=this['_bufferedUpdates']['get'](_0x28a1a6);_0x1add79=_0x34430e?{..._0x566338,..._0x1add79}:{..._0x1add79,..._0x566338};}this['_bufferedUpdates']['set'](_0x28a1a6,_0x1add79);}['setRevisionData'](_0x48dfd1){const _0x3bb9a6=this['repository']['getRevision'](_0x48dfd1['id']);if(_0x48dfd1['createdAt']&&(_0x48dfd1['createdAt']=new Date(_0x48dfd1['createdAt'])),_0x48dfd1['authorsIds']){const _0x2e8ea4=this['editor']['plugins']['get']('Users');_0x48dfd1['authors']=_0x48dfd1['authorsIds']['map'](_0x4f6e79=>_0x2e8ea4['getUser'](_0x4f6e79));}_0x3bb9a6['_update'](_0x48dfd1,!0x0);}['_createInitialRevision'](_0x43f729){const _0x1e7774=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e7774)this['_initialRevisionId']=_0x1e7774['id'];else{const _0x25c276=!this['editor']['model']['document']['roots']['find'](_0xa4af38=>this['editor']['model']['hasContent'](_0xa4af38)),_0x13df9f=this['editor']['plugins']['get']('Users')['me']['id'],_0x4059c6=R(this['editor']['locale'],_0x25c276?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43f729,'to':_0x43f729,'id':this['_initialRevisionId'],'name':_0x4059c6,'creatorId':_0x13df9f});}}['_createCurrentRevision'](_0x189873){const _0x5da1fd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5da1fd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x189873,'to':_0x189873,'id':_0x5da1fd,'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'](_0x5970a3,_0x4479df){let _0x2c1c72=this['editor']['config']['get']('initialData'),_0x25945d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2c1c72){_0x2c1c72={};for(const _0x2c1092 of this['editor']['model']['document']['getRootNames']())_0x2c1c72[_0x2c1092]='';}if('string'==typeof _0x2c1c72&&(_0x2c1c72={'main':_0x2c1c72}),void 0x0===_0x25945d){_0x25945d={};for(const _0x12ee6b of this['editor']['model']['document']['getRootNames']())_0x25945d[_0x12ee6b]={};}let _0x2a728f=!0x1;const _0x27a7b8=Object['keys'](_0x2c1c72),_0xaa0a06=Object['keys'](_0x5970a3);for(const _0x550d25 of _0x27a7b8){if(_0x2c1c72[_0x550d25]!==_0x5970a3[_0x550d25]&&''!==_0x2c1c72[_0x550d25]['trim']()){_0x2a728f=!0x0;break;}if(!_0x1c23ea(_0x25945d[_0x550d25],_0x4479df[_0x550d25])&&Object['keys'](_0x25945d[_0x550d25])['length']>0x0){_0x2a728f=!0x0;break;}}_0x2a728f||(_0x2a728f=_0xaa0a06['some'](_0x2f7fb5=>!this['editor']['model']['document']['getRoot'](_0x2f7fb5))),_0x2a728f&&_0x318b89('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2c1c72,'editorRootsAttributes':_0x25945d,'revisionData':_0x5970a3,'revisionRootsAttributes':_0x4479df}),this['editor']['config']['set']('initialData',_0x5970a3),this['editor']['config']['set']('rootsAttributes',_0x4479df);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2828c1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2828c1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55c9a6){const _0x351dce=this['repository']['getRevisions']();_0x351dce['reverse']();let _0x545eaf=0x0;for(;_0x545eaf<_0x351dce['length'];){const _0x30522c=_0x351dce[_0x545eaf];if(_0x30522c===this['currentRevision']){_0x545eaf++;continue;}if(_0x30522c['id']===this['_initialRevisionId'])break;const _0x3881e4=_0x55c9a6['toVersion']-_0x30522c['toVersion']||_0x55c9a6['fromVersion']-_0x30522c['fromVersion'];if(_0x3881e4>0x0)break;if(_0x3881e4<0x0)_0x545eaf++;else{if(!_0x55c9a6['creator']&&_0x30522c['creator'])break;if(_0x30522c['creator']||!_0x55c9a6['creator']){if(_0x55c9a6['createdAt']>_0x30522c['createdAt'])break;_0x545eaf++;}else _0x545eaf++;}}return _0x545eaf;}['_getFromVersion'](_0x21b3fb){const _0x2c5fde=this['repository']['getRevisions']();_0x2c5fde['reverse'](),_0x2c5fde['shift']();const _0x3313ab=_0x2c5fde['find'](_0x5052f3=>_0x5052f3['toVersion']<=_0x21b3fb)['toVersion'];return _0x3313ab<this['_startingVersion']?this['_startingVersion']:_0x3313ab;}['_makeRevision']({name:_0x5916c0,from:_0x317f2f,to:_0x4d26a8,creatorId:_0x24ec8b,id:_0x33b771}){const _0x51fc0c=this['buildRevisionData']({'from':_0x317f2f,'to':_0x4d26a8});_0x51fc0c['name']=_0x5916c0,_0x51fc0c['creatorId']=_0x24ec8b,_0x51fc0c['id']=_0x33b771;const _0x5be562=this['addRevisionData'](_0x51fc0c);return this['adapter']&&this['_bufferUpdate'](_0x51fc0c['id'],_0x51fc0c,!0x0),_0x5be562;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc42668){this['editor']=_0xc42668,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'](_0x51eae9){this['source']=_0x51eae9;const _0x4c4c2c=new Map(),_0x586644=new Map(),_0x139079=this['editor']['model']['document']['roots']['map'](_0x51f596=>_0x51f596['rootName']);for(const _0x131444 of _0x139079){const _0x4a4809=this['editor']['model']['document']['getRoot'](_0x131444),_0x50bb53=x(_0x4a4809);_0x4c4c2c['set'](_0x131444,_0x50bb53),_0x586644['set'](_0x131444,Object['fromEntries'](_0x4a4809['getAttributes']()));}const _0x180ba3=Array['from'](this['editor']['model']['markers'])['map'](_0xa275bf=>[_0xa275bf['name'],_0xa275bf['getRange']()]),_0x121622=this['source']['version'];this['_saveMetaData'](_0x121622,_0x4c4c2c,_0x180ba3,_0x586644),this['_startingRevisionId']=this['_revisionId'];const _0x33f96c=new Map(),_0x5890bb=new Map();for(const _0x5537f3 of _0x139079){const _0x18a751=N(_0x5537f3);_0x33f96c['set'](_0x5537f3,_0x18a751),_0x5890bb['set'](_0x5537f3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x33f96c,[],_0x5890bb);}['getData'](_0x3e6701,_0x2ffda3){if(this['_lastFrom']===_0x3e6701&&this['_lastTo']<=_0x2ffda3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2ffda3,!0x0);else{if(!this['_savedMetaData']['has'](_0x3e6701)){const _0x551cdd=this['_getPreviousFrom'](_0x3e6701);this['_calculateMetaData'](_0x551cdd,_0x3e6701,!0x1);}this['_calculateMetaData'](_0x3e6701,_0x2ffda3,!0x0);}return this['_lastFrom']=_0x3e6701,this['_lastTo']=_0x2ffda3,this['_getState']();}['loadState'](_0x39e0bd){if(!this['_savedMetaData']['has'](_0x39e0bd['fromVersion'])){const _0x45d439=this['_getPreviousFrom'](_0x39e0bd['fromVersion']);this['_calculateMetaData'](_0x45d439,_0x39e0bd['fromVersion'],!0x1);}this['_calculateMetaData'](_0x39e0bd['fromVersion'],_0x39e0bd['toVersion'],!0x1);const _0x1c3b66=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x39e0bd['fromVersion'],this['_lastTo']=_0x39e0bd['toVersion'];for(const _0x5e40b4 in _0x39e0bd['diffData']){const _0x45d539=_0x39e0bd['diffData'][_0x5e40b4]['attachChange'],_0x37efac=_0x8fd207(_0x39e0bd['diffData'][_0x5e40b4]['attributesBefore'])||{},_0x2f7ee9=_0x1c3b66['_makeModelFromViewString'](_0x39e0bd['diffData'][_0x5e40b4]['deletions']);_0x2f7ee9['rootName']=_0x5e40b4,_0x2f7ee9['_isAttached']=!_0x45d539||!_0x45d539['isAttached'],_0x2f7ee9['isAttached']=()=>_0x2f7ee9['_isAttached'],this['_baseRoots']['set'](_0x5e40b4,_0x2f7ee9),this['_baseRootsAttributes']['set'](_0x5e40b4,_0x37efac),_0x45d539&&this['_touchedRoots']['set'](_0x5e40b4,_0x45d539);const _0x52ffa=this['_makeIdsRoot'](_0x2f7ee9);this['_baseIdsRoots']['set'](_0x5e40b4,_0x52ffa);for(const [_0x418fbf,_0x4a2b56]of _0x2f7ee9['markers']){if(!_0x418fbf['startsWith']('revision:'))continue;const _0x50f726=_0x418fbf['split'](':')[0x2];for(const _0x51914c of _0x4a2b56['getWalker']({'singleCharacters':!0x0})){const _0x65dcb9=this['_getVidAttributeName'](_0x51914c),_0x2ee3b5='elementEnd'==_0x51914c['type']?_0x51914c['previousPosition']['path']['slice'](0x0,-0x1):_0x51914c['previousPosition']['path'],_0x19a79e=_0x52ffa['getNodeByPath'](_0x2ee3b5)['getAttribute'](_0x65dcb9);this['_touched']['set'](_0x19a79e,{'userId':_0x50f726});}}}this['_startingRevisionId']=this['_revisionId'];const _0x58a989=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x33b2d4=>!this['_touched']['has'](_0x33b2d4));let _0x3ca994=0x0;const _0x18e8fc=new Map();for(const _0x28a358 in _0x39e0bd['diffData']){const _0x35ad0c=_0x39e0bd['diffData'][_0x28a358]['attachChange'],_0x5a2a76=_0x8fd207(_0x39e0bd['diffData'][_0x28a358]['attributesAfter'])||{},_0x2d994e=_0x1c3b66['_makeModelFromViewString'](_0x39e0bd['diffData'][_0x28a358]['insertions']);_0x2d994e['rootName']=_0x28a358,_0x2d994e['_isAttached']=!_0x35ad0c||_0x35ad0c['isAttached'],_0x2d994e['isAttached']=()=>_0x2d994e['_isAttached'],this['_diffRoots']['set'](_0x28a358,_0x2d994e),this['_diffRootsAttributes']['set'](_0x28a358,_0x5a2a76);const _0x49cc18=this['_makeIdsRoot'](_0x2d994e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x28a358,_0x49cc18),_0x18e8fc['set'](_0x28a358,_0x2d994e['isAttached']()?_0x5a2a76:{});for(const [_0x469294,_0x32c5a2]of _0x2d994e['markers']){if(!_0x469294['startsWith']('revision:'))continue;const _0x2aaf19=_0x469294['split'](':')[0x2];for(const _0x139873 of _0x32c5a2['getWalker']({'singleCharacters':!0x0})){const _0x1e58e7=this['_getVidAttributeName'](_0x139873),_0x2a0ccd=this['_revisionId']++,_0x40b651='elementEnd'==_0x139873['type']?_0x139873['previousPosition']['path']['slice'](0x0,-0x1):_0x139873['previousPosition']['path'];_0x49cc18['getNodeByPath'](_0x40b651)['_setAttribute'](_0x1e58e7,_0x2a0ccd),this['_touched']['set'](_0x2a0ccd,{'userId':_0x2aaf19});}}for(const _0xd9de14 of this['editor']['model']['createRangeIn'](_0x2d994e)['getWalker']({'singleCharacters':!0x0})){const _0x49d4b0=this['_getVidAttributeName'](_0xd9de14),_0x540ba4='elementEnd'==_0xd9de14['type']?_0xd9de14['previousPosition']['path']['slice'](0x0,-0x1):_0xd9de14['previousPosition']['path'],_0x24edbe=_0x49cc18['getNodeByPath'](_0x540ba4);_0x24edbe['getAttribute'](_0x49d4b0)>0x0||_0x24edbe['_setAttribute'](_0x49d4b0,_0x58a989[_0x3ca994++]);}for(const [_0x2a059e,_0x5a893d]of _0x2d994e['markers'])_0x2a059e['startsWith']('revision:')||this['_markers']['set'](_0x2a059e,_0x5a893d);}const {roots:_0x3456c6}=this['_savedMetaData']['get'](_0x39e0bd['fromVersion']),{roots:_0x155bb9}=this['_savedMetaData']['get'](_0x39e0bd['toVersion']),_0xd834f8=x(_0x3456c6['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0xd834f8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xd834f8,Number['NEGATIVE_INFINITY']));const _0x18fb6c=x(_0x155bb9['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x18fb6c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18fb6c));const _0x4ce270=Array['from'](this['_diffRoots'])['map'](([_0x2d4581,_0x2793b4])=>[_0x2d4581,x(_0x2793b4)]);this['_saveMetaData'](this['_lastTo'],_0x4ce270,this['_markers'],_0x18e8fc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x416e13,_0x2b1a70,_0x62c908,_0x87faa0){const _0x2fef32=new Map(_0x2b1a70),_0x1a969b=new Map(_0x8fd207(_0x87faa0)),_0x160152=new Map();for(const [_0x30b4a7,_0x3d5d2f]of _0x62c908)_0x160152['set'](_0x30b4a7,{'start':_0x3d5d2f['start']['clone'](),'end':_0x3d5d2f['end']['clone'](),'rootName':_0x3d5d2f['root']['rootName']});this['_savedMetaData']['set'](_0x416e13,{'roots':_0x2fef32,'markers':_0x160152,'rootsAttributes':_0x1a969b});}['_removeMetaData'](_0x162f8c){this['_savedMetaData']['delete'](_0x162f8c);}['_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'](_0x13f2cb,_0x358b87=null){let _0x3eddca=null;_0x13f2cb['is']('documentFragment')||(_0x3eddca=new _0x41a41f(_0x13f2cb['name'],{'vid_start':null===_0x358b87?this['_revisionId']++:_0x358b87++}));const _0x5293de=[];for(const _0x37f7f9 of _0x13f2cb['getChildren']())if(_0x37f7f9['is']('element')){_0x5293de['push'](this['_makeIdsRoot'](_0x37f7f9,_0x358b87));const _0x2e8120=_0x5293de[_0x5293de['length']-0x1];null!==_0x358b87&&(_0x358b87=_0x2e8120['is']('element','$text')?_0x2e8120['getAttribute']('vid')+0x1:_0x2e8120['getAttribute']('vid_end')+0x1);}else{for(let _0x45e319=0x0;_0x45e319<_0x37f7f9['offsetSize'];_0x45e319++)_0x5293de['push'](new _0x41a41f('$text',{'vid':null===_0x358b87?this['_revisionId']++:_0x358b87++}));}if(_0x13f2cb['is']('documentFragment')){const _0x337583=N(_0x13f2cb['rootName']);return _0x337583['_insertChild'](0x0,_0x5293de),_0x337583;}return _0x3eddca['_setAttribute']('vid_end',null===_0x358b87?this['_revisionId']++:_0x358b87++),_0x3eddca['_insertChild'](0x0,_0x5293de),_0x3eddca;}['_calculateMetaData'](_0x58d1f8,_0x42cd60,_0x3f64b9){this['_reset']();const {roots:_0x1c288d,markers:_0x2ad4c7,rootsAttributes:_0x2c0aea}=this['_savedMetaData']['get'](_0x58d1f8);this['_baseRoots']=new Map(_0x1c288d),this['_baseRootsAttributes']=new Map(_0x8fd207(_0x2c0aea));for(const [_0xd4c87a,_0x406216]of this['_baseRoots'])if('$graveyard'!==_0xd4c87a&&(this['_diffRoots']['set'](_0xd4c87a,x(_0x406216)),this['_diffRootsAttributes']=new Map(_0x8fd207(_0x2c0aea)),_0x3f64b9)){const _0x463e86=this['_revisionId'];this['_idsRoots']['set'](_0xd4c87a,this['_makeIdsRoot'](_0x406216)),this['_baseIdsRoots']['set'](_0xd4c87a,this['_makeIdsRoot'](_0x406216,_0x463e86));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3f64b9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15b1a6,_0x1af42a]of _0x2ad4c7){const _0x394a3a=this['_baseRoots']['get'](_0x1af42a['rootName']),_0x277d67=this['_diffRoots']['get'](_0x1af42a['rootName']),_0x4531ee=new _0x112776(this['_fixPosition'](_0x1af42a['start'],_0x394a3a),this['_fixPosition'](_0x1af42a['end'],_0x394a3a)),_0x2c2fe2=this['_fixRange'](_0x4531ee,_0x277d67);_0x394a3a['markers']['set'](_0x15b1a6,_0x4531ee),this['_markers']['set'](_0x15b1a6,_0x2c2fe2);}this['_applyOperations'](_0x58d1f8,_0x42cd60,_0x3f64b9);}['_applyOperations'](_0x1f09b6,_0xcd8846,_0xb1e36c){for(const _0x28983d of this['source']['getOperations'](_0x1f09b6,_0xcd8846))this['_handleOperation'](_0x28983d,_0xb1e36c);for(const _0x56f84c of this['_diffRoots']['values']())_0x56f84c['markers']['clear']();for(const [_0x4a171b,_0x2da813]of this['_markers']){this['_diffRoots']['get'](_0x2da813['root']['rootName'])['markers']['set'](_0x4a171b,_0x2da813['clone']());}const _0x10eb45=new Map(),_0x35cf18=new Map();for(const [_0x58cff9,_0x3aff31]of this['_diffRoots'])_0x10eb45['set'](_0x58cff9,x(_0x3aff31)),_0x35cf18['set'](_0x58cff9,this['_diffRootsAttributes']['get'](_0x58cff9));this['_saveMetaData'](_0xcd8846,_0x10eb45,this['_markers'],_0x35cf18);}['_getPreviousFrom'](_0x1129fb){const _0x368a37=Array['from'](this['_savedMetaData']['keys']());_0x368a37['sort']((_0x458808,_0xdb8c5)=>_0x458808-_0xdb8c5),_0x368a37['reverse']();for(const _0x285ade of _0x368a37)if(_0x285ade<_0x1129fb)return _0x285ade;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2da8af,_0x11043d){const _0x481042=Array['from'](_0x11043d['markers'])['map'](([_0x4e6c08,_0x5e3fec])=>[_0x4e6c08,this['_fixRange'](_0x5e3fec,_0x2da8af)]);_0x2da8af['markers']=new Map(_0x481042);}['_transformMarkers'](_0x27735c){for(const _0x254798 of this['_markers']['values']()){const _0x3b776b=_0x254798['getTransformedByOperation'](_0x27735c),_0x539e51=_0x112776['_createFromRanges'](_0x3b776b);_0x254798['start']=_0x539e51['start'],_0x254798['end']=_0x539e51['end'];}}['_handleOperation'](_0x522d0a,_0x4fba2d){if('addRoot'!=_0x522d0a['type']&&'detachRoot'!=_0x522d0a['type']){if('insert'==_0x522d0a['type']){const _0x4e2e62=_0x522d0a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4e2e62)||(this['_diffRoots']['set'](_0x4e2e62,N(_0x4e2e62,!0x0)),this['_diffRootsAttributes']['set'](_0x4e2e62,{}),_0x4fba2d&&this['_idsRoots']['set'](_0x4e2e62,N(_0x4e2e62,!0x0)));}else{if('addRootAttribute'==_0x522d0a['type']||'removeRootAttribute'==_0x522d0a['type']||'changeRootAttribute'==_0x522d0a['type'])return void this['_handleRootAttributeOperation'](_0x522d0a);'marker'==_0x522d0a['type']&&this['_handleMarkerOperation'](_0x522d0a);}if('marker'!==_0x522d0a['type']){const _0x6339fb=this['_cloneOperation'](_0x522d0a,this['_diffRoots']);_0x6339fb['_execute'](),this['_transformMarkers'](_0x6339fb);}if(_0x4fba2d)switch(_0x522d0a['type']){case'insert':this['_handleInsertOperation'](_0x522d0a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x522d0a);break;case'merge':this['_handleMergeOperation'](_0x522d0a);break;case'split':this['_handleSplitOperation'](_0x522d0a);}}else this['_handleRootOperation'](_0x522d0a,_0x4fba2d);}['_cloneOperation'](_0x4dee29,_0x207afa){const _0xbee775=_0x4dee29['clone']();return _0xbee775['_authorId']=_0x4dee29['_authorId'],this['_fixOperation'](_0xbee775,_0x207afa),_0xbee775;}['_getBaseVids'](_0x4f519d){return _0x4f519d['map'](_0x54585a=>{const _0x52991a=this['_getVidAttributeName'](_0x54585a);return Number(_0x54585a['item']['getAttribute'](_0x52991a));});}['_generateTape'](_0x3e6332,_0x1392c4){if(_0x3e6332['is']('element','$text'))_0x1392c4['push']({'item':_0x3e6332,'type':'text'});else{_0x3e6332['is']('element')&&_0x1392c4['push']({'item':_0x3e6332,'type':'elementStart'});for(const _0x56c4e9 of _0x3e6332['getChildren']())this['_generateTape'](_0x56c4e9,_0x1392c4);_0x3e6332['is']('element')&&_0x1392c4['push']({'item':_0x3e6332,'type':'elementEnd'});}return _0x1392c4;}['_getState'](){const _0x43278b=new Map(this['_touched']),_0x1caf16=new Map(_0x43278b),_0x3247d4=new Map(),_0x58bf7f={'insertions':{},'deletions':{}},_0x1bfa60={'insertions':{},'deletions':{}},_0x29e215=new Map(),_0x4f8d3d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4f8d3d['delete']('$graveyard');for(const _0x340026 of _0x4f8d3d){const _0x33b0a1=this['_diffRoots']['get'](_0x340026)||N(_0x340026,!0x1),_0x5a75ea=this['_baseRoots']['get'](_0x340026)||N(_0x340026,!0x1);_0x33b0a1['isAttached']()||_0x5a75ea['isAttached']()?(_0x58bf7f['insertions'][_0x340026]=x(_0x33b0a1),_0x58bf7f['deletions'][_0x340026]=x(_0x5a75ea),this['_copyMarkers'](_0x58bf7f['deletions'][_0x340026],_0x5a75ea),this['_copyMarkers'](_0x58bf7f['insertions'][_0x340026],_0x33b0a1),_0x1bfa60['insertions'][_0x340026]=this['_generateTape'](this['_idsRoots']['get'](_0x340026),[]),_0x1bfa60['deletions'][_0x340026]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x340026)||N(_0x340026,!0x1),[])):_0x4f8d3d['delete'](_0x340026);}for(const _0x3dd5e4 of _0x4f8d3d){const _0x167ffb=_0x1bfa60['insertions'][_0x3dd5e4];for(const _0xe52c83 of _0x167ffb){const _0x2bbf00=this['_getVidAttributeName'](_0xe52c83),_0x10dad5=_0xe52c83['item']['getAttribute'](_0x2bbf00);_0x1caf16['delete'](_0x10dad5),_0x10dad5>=this['_startingRevisionId']&&_0x3247d4['set'](_0x10dad5,_0x43278b['get'](_0x10dad5));}}for(const _0x585918 of _0x4f8d3d){const _0xe35439=_0x1bfa60['insertions'][_0x585918],_0x3bf072=this['_getBaseVids'](_0x1bfa60['deletions'][_0x585918]);let _0x476d6c=0x0;for(const _0x50c540 of _0xe35439){const _0x21b324=this['_getVidAttributeName'](_0x50c540),_0x5be25c=_0x50c540['item']['getAttribute'](_0x21b324);if(!_0x3247d4['has'](_0x5be25c)&&!_0x29e215['has'](_0x5be25c)){if(_0x1caf16['has'](_0x5be25c))_0x476d6c++;else{if(_0x5be25c!=_0x3bf072[_0x476d6c]){const _0x2fbb85=_0x43278b['get'](_0x5be25c)||_0x43278b['get'](_0x3bf072[_0x476d6c]);for(;_0x5be25c!=_0x3bf072[_0x476d6c];)_0x1caf16['has'](_0x3bf072[_0x476d6c])||(_0x29e215['set'](_0x3bf072[_0x476d6c],_0x2fbb85),_0x43278b['set'](_0x3bf072[_0x476d6c],_0x2fbb85)),_0x476d6c++;}_0x476d6c++;}}}}for(const _0x48296b of _0x4f8d3d){const _0x3a4c79=_0x1bfa60['insertions'][_0x48296b];for(const _0x5c573c of _0x3a4c79){const _0x5d3fa8=this['_getVidAttributeName'](_0x5c573c),_0x3f4bac=_0x5c573c['item']['getAttribute'](_0x5d3fa8);if(_0x29e215['has'](_0x3f4bac)){const _0x3cc4a0=_0x29e215['get'](_0x3f4bac);_0x1caf16['has'](_0x3f4bac)||_0x1caf16['set'](_0x3f4bac,{..._0x3cc4a0}),_0x3247d4['set'](_0x3f4bac,{..._0x3cc4a0});}}}for(const _0x2d006a of _0x1caf16['keys']())_0x2d006a>=this['_startingRevisionId']&&_0x1caf16['delete'](_0x2d006a);const _0x4e30bf=new Map();for(const _0x211684 of _0x4f8d3d){let _0x3a5611=_0x1bfa60['insertions'][_0x211684];for(const _0x37b3ac of _0x3a5611)if(_0x37b3ac['item']['is']('element','tableCell')){const _0x142b70=this['_getVidAttributeName'](_0x37b3ac),_0x55c493=_0x37b3ac['item']['getAttribute'](_0x142b70);if(_0x3247d4['has'](_0x55c493)){const _0x1aedfe=_0x37b3ac['item']['parent']['parent']['getAttribute']('vid_start'),_0x42670a=_0x4e30bf['get'](_0x1aedfe)||new Set();_0x42670a['add'](_0x3247d4['get'](_0x55c493)['userId']),_0x4e30bf['set'](_0x1aedfe,_0x42670a);}}_0x3a5611=_0x1bfa60['deletions'][_0x211684];for(const _0x2abcce of _0x3a5611)if(_0x2abcce['item']['is']('element','tableCell')){const _0x1d5d3e=this['_getVidAttributeName'](_0x2abcce),_0x59bf15=_0x2abcce['item']['getAttribute'](_0x1d5d3e);if(_0x1caf16['has'](_0x59bf15)){const _0x1b76d9=_0x2abcce['item']['parent']['parent']['getAttribute']('vid_start'),_0x2942fb=_0x4e30bf['get'](_0x1b76d9)||new Set();_0x2942fb['add'](_0x1caf16['get'](_0x59bf15)['userId']),_0x4e30bf['set'](_0x1b76d9,_0x2942fb);}}for(const _0x4c575d of _0x4e30bf['keys']())(_0x3247d4['has'](_0x4c575d)||_0x1caf16['has'](_0x4c575d))&&_0x4e30bf['delete'](_0x4c575d);}for(const _0x3ae175 of _0x4f8d3d){const _0x7e0b7b=_0x1bfa60['insertions'][_0x3ae175];let _0xed4d03=null,_0x3dab6e=null;for(const _0x2f253f of _0x7e0b7b){const _0x199adc=this['_getVidAttributeName'](_0x2f253f),_0x3a3d56=_0x2f253f['item']['getAttribute'](_0x199adc),_0x4779d8=_0x4e30bf['get'](_0x3a3d56);_0x4779d8&&'elementStart'==_0x2f253f['type']&&(_0xed4d03=Array['from'](_0x4779d8)[0x0],_0x3dab6e=_0x2f253f['item']['getAttribute']('vid_end')),_0xed4d03&&(_0x1caf16['set'](_0x3a3d56,{'userId':_0xed4d03}),_0x3247d4['set'](_0x3a3d56,{'userId':_0xed4d03})),_0x3a3d56==_0x3dab6e&&(_0xed4d03=null,_0x3dab6e=null);}}const _0x3a29dd={},_0x1f5fbb=new Set();for(const _0x129ac2 of _0x4f8d3d){const _0x37546c=_0x58bf7f['deletions'][_0x129ac2],_0x43039f=_0x58bf7f['insertions'][_0x129ac2];for(const {userId:_0x5446b2}of this['_touchedMarkers']['values']())null!==_0x5446b2&&_0x1f5fbb['add'](_0x5446b2);for(const {userId:_0x516c5d}of this['_touchedRoots']['values']())null!==_0x516c5d&&_0x1f5fbb['add'](_0x516c5d);this['_markChanges'](_0x43039f,_0x1bfa60['insertions'][_0x129ac2],_0x3247d4,'insertion',_0x1f5fbb),this['_markChanges'](_0x37546c,_0x1bfa60['deletions'][_0x129ac2],_0x1caf16,'deletion',_0x1f5fbb),_0x3a29dd[_0x129ac2]={'insertions':this['_prepareViewToSave'](_0x43039f),'deletions':this['_prepareViewToSave'](_0x37546c),'attachChange':this['_touchedRoots']['get'](_0x129ac2)||null,'attributesBefore':_0x8fd207(this['_baseRootsAttributes']['get'](_0x129ac2))||{},'attributesAfter':_0x8fd207(this['_diffRootsAttributes']['get'](_0x129ac2))};}return{'diffData':_0x3a29dd,'authorsIds':Array['from'](_0x1f5fbb)};}['_processRootBeforeSave'](_0x4821eb){for(const [,_0x2f4857]of _0x4821eb['markers']){const _0x1db836=_0x2f4857['start']['getAncestors']()['filter'](_0x2716dd=>'tableCell'==_0x2716dd['name']);for(const _0x26e1a9 of _0x1db836)0x1==_0x26e1a9['childCount']&&_0x26e1a9['getChild'](0x0)['is']('element','paragraph')&&_0x26e1a9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x78d25){this['_processRootBeforeSave'](_0x78d25);const _0xf76f95=this['editor']['data']['toView'](_0x78d25,{}),_0xd6b8aa=Array['from'](_0xf76f95['getChildren']())['map'](_0xf12cb8=>this['_getViewJson'](_0xf12cb8));return JSON['stringify'](_0xd6b8aa);}['_getViewJson'](_0x1c709f){if(_0x1c709f['is']('$text'))return _0x1c709f['data'];{const _0x128921=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xed63b1=_0x1c709f,_0x762a9c=this['editor']['data']['htmlProcessor']['domConverter'],_0x26b34a={'type':_0x128921['_getTypeCharForViewElement'](_0xed63b1),'name':_0xed63b1['name'],'attributes':Array['from'](_0xed63b1['getAttributes']()),'children':Array['from'](_0xed63b1['getChildren']())['map'](_0x2688e6=>this['_getViewJson'](_0x2688e6))};if(_0x1c709f['is']('uiElement')&&'$comment'!=_0x1c709f['name']){const _0x509545=_0x1c709f['render'](_0x762a9c['domDocument'],_0x762a9c);_0x26b34a['children']['push'](_0x509545['outerHTML']);}else{if(_0x1c709f['is']('rawElement')){const _0x30078f=_0x762a9c['domDocument']['createElement'](_0xed63b1['name']);_0x1c709f['render'](_0x30078f,_0x762a9c),_0x26b34a['children']['push'](_0x30078f['innerHTML']);}}const _0x3c5135=Array['from'](_0xed63b1['getCustomProperties']());_0x3c5135['length']>0x0&&(_0x26b34a['customProperties']=_0x3c5135);const _0x4f1023=_0xed63b1['getFillerOffset']();return null!==_0x4f1023&&(_0x26b34a['fillerOffset']=_0x4f1023),_0x26b34a;}}['_markChanges'](_0x466489,_0x46cf30,_0x2d37eb,_0x2d7c5c,_0xed176b){let _0x110a82=null,_0x5a93d6=null,_0x33820f=0x0;const _0x4d00da=this['editor']['model'];for(let _0xe14fcc=0x0;_0xe14fcc<_0x46cf30['length'];_0xe14fcc++){const _0x3f9ddc=this['_getVidAttributeName'](_0x46cf30[_0xe14fcc]),_0x520c30=_0x46cf30[_0xe14fcc]['item']['getAttribute'](_0x3f9ddc),_0x754871=_0x2d37eb['get'](_0x520c30),_0x1908b9=_0xe14fcc==_0x46cf30['length']-0x1;(!_0x110a82&&_0x754871&&(_0x110a82=_0x754871,_0x5a93d6=_0x46cf30[_0xe14fcc]),_0x110a82&&(!_0x754871||_0x754871['userId']!=_0x110a82['userId']))&&(_0xe414ba(_0x754871,P(_0x5a93d6,_0x466489,_0x4d00da),P(_0x46cf30[_0xe14fcc],_0x466489,_0x4d00da)),_0x110a82=_0x754871||null,_0x5a93d6=_0x754871?_0x46cf30[_0xe14fcc]:null),_0x110a82&&_0x1908b9&&_0xe414ba(_0x754871,P(_0x5a93d6,_0x466489,_0x4d00da),V(_0x46cf30[_0xe14fcc],_0x466489,_0x4d00da));}function _0xe414ba(_0x6c89a5,_0x229724,_0xd84da7){const _0x4bcdc0=_0x110a82['userId'],_0x249c13='revision:'+_0x2d7c5c+':'+_0x4bcdc0+':'+_0x33820f++,_0x3249e4=_0x4d00da['createRange'](_0x229724,_0xd84da7);_0x466489['markers']['set'](_0x249c13,_0x3249e4),null!==_0x4bcdc0&&_0xed176b['add'](_0x4bcdc0);}}['_getVidAttributeName'](_0x200aca){switch(_0x200aca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28411a,_0x329879){_0x28411a['baseVersion']=null;for(const _0x22226e in _0x28411a){const _0x2c0e08=_0x28411a[_0x22226e];if(_0x2c0e08 instanceof _0x29d0f4){const _0x469544=_0x329879['get'](_0x2c0e08['root']['rootName']);_0x28411a[_0x22226e]=this['_fixPosition'](_0x2c0e08,_0x469544);}if(_0x2c0e08 instanceof _0x112776){const _0x50a449=_0x329879['get'](_0x2c0e08['root']['rootName']);_0x28411a[_0x22226e]=this['_fixRange'](_0x2c0e08,_0x50a449);}'root'===_0x22226e&&(_0x28411a['root']=_0x329879['get'](_0x28411a['root']['rootName']));}}['_fixRange'](_0x5ddd28,_0x2fc8ae){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ddd28['start'],_0x2fc8ae),this['_fixPosition'](_0x5ddd28['end'],_0x2fc8ae));}['_fixPosition'](_0x47c0a5,_0xc43067){return this['editor']['model']['createPositionFromPath'](_0xc43067,_0x47c0a5['path'],_0x47c0a5['stickiness']);}['_handleInsertOperation'](_0x216fa5){const _0x549419=this['_idsRoots']['get'](_0x216fa5['position']['root']['rootName']),_0x1d35b1=this['_fixPosition'](_0x216fa5['position'],_0x549419),_0x3bf9af=null===_0x216fa5['_authorId']?null:_0x216fa5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x281de8=_0x1d35b1['parent'],_0x35d24d=this['_revisionId'],_0x218919=[];for(const _0x4d315f of _0x216fa5['nodes'])if(_0x4d315f['is']('element'))_0x218919['push'](this['_makeIdsRoot'](_0x4d315f));else{for(let _0xb21966=0x0;_0xb21966<_0x4d315f['offsetSize'];_0xb21966++)_0x218919['push'](new _0x41a41f('$text',{'vid':this['_revisionId']++}));}const _0x189afa=this['_revisionId'];for(let _0x264673=_0x35d24d;_0x264673<_0x189afa;_0x264673++)this['_touched']['set'](_0x264673,{'userId':_0x3bf9af});_0x281de8['_insertChild'](_0x1d35b1['offset'],_0x218919);}['_handleMoveOperation'](_0x7d4453){(_0x7d4453=this['_cloneOperation'](_0x7d4453,this['_idsRoots']))['_execute']();const _0x3eab7a=null===_0x7d4453['_authorId']?null:_0x7d4453['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2481be=_0x7d4453['getMovedRangeStart'](),_0x20df5a=_0x2481be['parent'],_0x5e61df=_0x2481be['offset'];!function _0x96bd70(_0x5a9a74,_0x42f52f,_0x3fbbb7,_0x3cdd7c){for(let _0x36f854=_0x3fbbb7;_0x36f854<_0x3cdd7c;_0x36f854++){const _0x24ee32=_0x42f52f['getChild'](_0x36f854);_0x24ee32['is']('element','$text')?_0x5a9a74['set'](_0x24ee32['getAttribute']('vid'),{'userId':_0x3eab7a}):(_0x5a9a74['set'](_0x24ee32['getAttribute']('vid_start'),{'userId':_0x3eab7a}),_0x96bd70(_0x5a9a74,_0x24ee32,0x0,_0x24ee32['childCount']),_0x5a9a74['set'](_0x24ee32['getAttribute']('vid_end'),{'userId':_0x3eab7a}));}}(this['_touched'],_0x20df5a,_0x5e61df,_0x5e61df+_0x7d4453['howMany']);}['_handleMergeOperation'](_0x165d9e){const _0xa03067=null===(_0x165d9e=this['_cloneOperation'](_0x165d9e,this['_idsRoots']))['_authorId']?null:_0x165d9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8d2b0d=_0x165d9e['targetPosition']['parent'],_0x304c02=_0x165d9e['sourcePosition']['parent'],_0x5d4626=_0x8d2b0d['getAttribute']('vid_end'),_0x41d4bf=_0x304c02['getAttribute']('vid_start');_0x8d2b0d['_setAttribute']('vid_end',_0x304c02['getAttribute']('vid_end')),_0x304c02['_setAttribute']('vid_end',_0x5d4626),this['_touched']['set'](_0x41d4bf,{'userId':_0xa03067}),this['_touched']['set'](_0x5d4626,{'userId':_0xa03067}),_0x165d9e['_execute']();}['_handleSplitOperation'](_0xd50183){const _0x302adb=null===(_0xd50183=this['_cloneOperation'](_0xd50183,this['_idsRoots']))['_authorId']?null:_0xd50183['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12fc75=_0xd50183['graveyardPosition'],_0x3694a7=_0xd50183['splitPosition']['parent'];_0xd50183['_execute']();const _0x39e7c0=_0x3694a7['getAttribute']('vid_end'),_0x17894d=_0xd50183['insertionPosition']['nodeAfter'];if(_0x12fc75){const _0xa35e5f=_0x17894d['getAttribute']('vid_end'),_0xf32404=_0x3694a7['getAttribute']('vid_end');_0x3694a7['_setAttribute']('vid_end',_0xa35e5f),_0x17894d['_setAttribute']('vid_end',_0xf32404),this['_touched']['set'](_0x3694a7['getAttribute']('vid_end'),{'userId':_0x302adb}),this['_touched']['set'](_0x17894d['getAttribute']('vid_start'),{'userId':_0x302adb});}else{const _0x2d6857=this['_revisionId']++,_0x329a9d=this['_revisionId']++;_0x3694a7['_setAttribute']('vid_end',_0x2d6857),_0x17894d['_setAttribute']('vid_start',_0x329a9d),_0x17894d['_setAttribute']('vid_end',_0x39e7c0),this['_touched']['set'](_0x2d6857,{'userId':_0x302adb}),this['_touched']['set'](_0x329a9d,{'userId':_0x302adb});}}['_handleMarkerOperation'](_0x4a8abd){if(!_0x4a8abd['affectsData'])return;const _0x4a004a=(_0x4a8abd=this['_cloneOperation'](_0x4a8abd,this['_diffRoots']))['oldRange']?_0x4a8abd['oldRange']['root']:null,_0x2f39ba=_0x4a8abd['newRange']?_0x4a8abd['newRange']['root']:null;_0x4a004a&&this['_markers']['delete'](_0x4a8abd['name']),_0x2f39ba&&this['_markers']['set'](_0x4a8abd['name'],_0x4a8abd['newRange']['clone']());const _0x15359b=null===_0x4a8abd['_authorId']?null:_0x4a8abd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56a328=_0x4a8abd['name'];if(!this['_touchedMarkers']['has'](_0x56a328))return void this['_touchedMarkers']['set'](_0x56a328,{'range':_0x4a8abd['oldRange'],'userId':_0x15359b});const _0x301bf7=this['_touchedMarkers']['get'](_0x56a328),_0x51bed2=_0x301bf7['range'],_0x109245=_0x4a8abd['newRange'];null==_0x51bed2&&null==_0x109245||_0x51bed2&&_0x109245&&_0x51bed2['isEqual'](_0x109245)?this['_touchedMarkers']['delete'](_0x4a8abd['name']):_0x301bf7['userId']=_0x15359b;}['_handleRootOperation'](_0xf4d902,_0x133851){this['_diffRoots']['has'](_0xf4d902['rootName'])?this['_diffRoots']['get'](_0xf4d902['rootName'])['_isAttached']=_0xf4d902['isAdd']:(this['_diffRoots']['set'](_0xf4d902['rootName'],N(_0xf4d902['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xf4d902['rootName'],{}),_0x133851&&this['_idsRoots']['set'](_0xf4d902['rootName'],N(_0xf4d902['rootName'],!0x0)));const _0x5df727=null===_0xf4d902['_authorId']?null:_0xf4d902['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e6df4=this['_touchedRoots']['get'](_0xf4d902['rootName']);_0x4e6df4&&_0x4e6df4['userId']===_0x5df727?this['_touchedRoots']['delete'](_0xf4d902['rootName']):this['_touchedRoots']['set'](_0xf4d902['rootName'],{'userId':_0x5df727,'isAttached':_0xf4d902['isAdd']});}['_handleRootAttributeOperation'](_0x1cbb1c){const _0x5d9e65=this['_diffRootsAttributes']['get'](_0x1cbb1c['root']['rootName']);null===_0x1cbb1c['newValue']?delete _0x5d9e65[_0x1cbb1c['key']]:_0x5d9e65[_0x1cbb1c['key']]=_0x1cbb1c['newValue'];}}function x(_0x3b1f6d){const _0x82d190=N(_0x3b1f6d['rootName'],_0x3b1f6d['isAttached']());for(const _0x45b388 of _0x3b1f6d['getChildren']()){const _0x4107ae=_0x45b388['_clone'](!0x0);_0x82d190['_appendChild'](_0x4107ae);}return _0x82d190;}function N(_0x1c724e,_0x440797=!0x0){const _0x27484b=new _0xc50dea();return _0x27484b['rootName']=_0x1c724e,_0x27484b['_isAttached']=_0x440797,_0x27484b['isAttached']=()=>_0x27484b['_isAttached'],_0x27484b;}function P(_0x302952,_0x3d798f,_0x43c32c){const _0x4f7bc6='elementEnd'==_0x302952['type']?_0x43c32c['createPositionAt'](_0x302952['item'],'end'):_0x43c32c['createPositionBefore'](_0x302952['item']);return _0x43c32c['createPositionFromPath'](_0x3d798f,_0x4f7bc6['path'],_0x4f7bc6['stickiness']);}function V(_0x295f40,_0x1f45ef,_0xd62e6){const _0xf4aff8='elementStart'==_0x295f40['type']?_0xd62e6['createPositionAt'](_0x295f40['item'],0x0):_0xd62e6['createPositionAfter'](_0x295f40['item']);return _0xd62e6['createPositionFromPath'](_0x1f45ef,_0xf4aff8['path'],_0xf4aff8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0xcaaf5a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2453f1){super(),this['id']=_0x2453f1['id']||_0x549feb(),this['author']=_0x2453f1['author'],this['type']=_0x2453f1['type'],this['data']=_0x2453f1['data']||{},this['rootName']=_0x2453f1['rootName'],this['set']('createdAt',_0x2453f1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x153466,_0x2f7f23){this['newRevisionId']=_0x153466,this['oldRevisionId']=_0x2f7f23,this['changes']=new _0x305a29();}['_setChanges'](_0xcaf3e6){for(const _0x154f71 of _0xcaf3e6)this['changes']['add'](_0x154f71);}}class l extends _0x38daca{['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[_0x19dd7a,_0x4b341c,S,$];}constructor(_0x272cda){super(_0x272cda),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',(_0x2105c8,_0x1a0bb8,_0x321a4e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x11b625=>{for(const _0x377206 of this['editor']['editing']['view']['document']['roots'])_0x321a4e?_0x11b625['removeClass']('ck-editor__editable__overlay',_0x377206):_0x11b625['addClass']('ck-editor__editable__overlay',_0x377206);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1eb02f=>null!==_0x1eb02f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x18eace,_0x3d85e5,_0x4b7adc)=>_0x18eace&&_0x4b7adc?_0x3d85e5['changes']['getIndex'](_0x4b7adc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x21c574,_0x15da29)=>_0x21c574?_0x15da29['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4b341c);}['init'](){const _0x2dcca9=this['editor'],_0x43300f=new rt(_0x2dcca9,{'direction':'backward'}),_0xab416d=new rt(_0x2dcca9,{'direction':'forward'});(_0x2dcca9['commands']['add']('showPreviousChange',_0x43300f),_0x2dcca9['commands']['add']('showNextChange',_0xab416d),_0x2dcca9['commands']['add']('restoreRevision',new nt(_0x2dcca9)),this['on']('change:numberOfChanges',()=>{_0x43300f['refresh'](),_0xab416d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dcca9['enableReadOnlyMode']('revision-viewer'),_0x2dcca9['plugins']['has']('WidgetToolbarRepository'))&&_0x2dcca9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x371f5f){return await this['_utils']['loadRevisionData'](_0x371f5f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x371f5f);}async['getRevisionRootsAttributes'](_0x456918){return await this['_utils']['loadRevisionData'](_0x456918,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x456918);}async['compare'](_0x4903d2,_0x1be4f8,_0x1ab2c2=!0x1){if(!this['isEnabled'])return;const _0x5a9e3a=this['diff'],_0x5cefe0=this['repository'],_0x528613='string'==typeof _0x4903d2?_0x5cefe0['getRevision'](_0x4903d2):_0x4903d2,_0x3b5d26='string'==typeof _0x1be4f8?_0x5cefe0['getRevision'](_0x1be4f8):_0x1be4f8,_0x54744d=_0x528613['id'],_0x470083=_0x3b5d26?_0x3b5d26['id']:null;if(!_0x1ab2c2&&this['diff']&&this['diff']['newRevisionId']===_0x54744d&&this['diff']['oldRevisionId']===_0x470083)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x54744d,_0x470083);const _0x8eab07=this['_getRevisionsRange'](_0x528613,_0x3b5d26,!0x0)['map'](_0x33ff07=>this['_utils']['loadRevisionData'](_0x33ff07,this['adapter']));return _0x8eab07['push'](new Promise(_0xbbc209=>{setTimeout(_0xbbc209,0x14);})),Promise['all'](_0x8eab07)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf42459=this['_getDiff'](_0x54744d,_0x470083);for(const _0x7e36ee of _0xf42459['changes'])this['_changeIdToChange']['set'](_0x7e36ee['id'],_0x7e36ee);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1b7a34=>{for(const _0x5ace21 of this['editor']['model']['document']['getRootNames']())_0x1b7a34['detachRoot'](_0x5ace21);for(const _0xd9b63b of Object['keys'](_0xf42459['model'])){const _0x5d295b=_0x1b7a34['addRoot'](_0xd9b63b);for(const _0x5a45f6 of Object['keys'](_0xf42459['attributes'][_0xd9b63b]))_0x1b7a34['setAttribute'](_0x5a45f6,_0xf42459['attributes'][_0xd9b63b][_0x5a45f6],_0x5d295b);_0x1b7a34['insert'](_0xf42459['model'][_0xd9b63b],_0x5d295b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf42459['changes'])),this['isReady']=!0x0;})['catch'](_0x1eb59e=>{console['error'](_0x1eb59e),this['_cleanUp'](),_0x5a9e3a&&(this['diff']=_0x5a9e3a),this['isReady']=!0x0;});}['addRevisionData'](_0x245f20,_0x379bc9){const _0x69ce03=this['repository']['createRevision'](_0x245f20);return _0x69ce03['on']('_update',(_0x931152,_0x5028dc,_0x335561)=>_0x379bc9(_0x5028dc,_0x335561,_0x69ce03)),this['repository']['addRevision'](_0x69ce03),_0x69ce03;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x411035=>{for(const _0x298ade of this['editor']['model']['document']['getRootNames']())_0x411035['detachRoot'](_0x298ade);});}['_sortAndFilterDiffChanges'](_0x2b178d){const _0x514169=[],_0x36814c=new Map();for(const _0x488880 of this['editor']['model']['document']['getRootNames']()){const _0x1d12db=this['editor']['editing']['view']['getDomRoot'](_0x488880);if(!_0x1d12db)continue;const _0x332bbf=_0x1d12db['getClientRects']()['item'](0x0);_0x332bbf&&(_0x514169['push'](_0x488880),_0x36814c['set'](_0x488880,_0x332bbf));}return _0x514169['sort']((_0x5e44d1,_0x743851)=>{const _0x26f582=_0x36814c['get'](_0x5e44d1),_0x3feef6=_0x36814c['get'](_0x743851);return _0x26f582['y']-_0x3feef6['y']||_0x26f582['x']-_0x3feef6['x'];}),(_0x2b178d=_0x2b178d['filter'](_0x190fd4=>_0x514169['includes'](_0x190fd4['rootName'])))['sort']((_0x51d127,_0x264c7e)=>_0x514169['indexOf'](_0x51d127['rootName'])-_0x514169['indexOf'](_0x264c7e['rootName'])),_0x2b178d;}['_makeTape'](_0x2c5523){const _0x28ad60=Array['from'](_0x2c5523['markers'])['filter'](([_0x281e87,_0x526013])=>_0x281e87['startsWith']('revision:')&&!_0x526013['isCollapsed']),_0x2cb46e=Array['from'](this['editor']['model']['createRangeIn'](_0x2c5523)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x28ad60['length'])for(const _0x46ebb7 of _0x2cb46e){const [_0x24e68d,_0x323200]=_0x28ad60[0x0],[,_0x2799a8,_0x3d8748]=_0x24e68d['split'](':');if(_0x323200['end']['isEqual'](_0x46ebb7['nextPosition'])&&_0x28ad60['shift'](),(_0x46ebb7['previousPosition']['isEqual'](_0x323200['start'])||_0x46ebb7['previousPosition']['isAfter'](_0x323200['start']))&&('insertion'==_0x2799a8?_0x46ebb7['isAdded']={'userId':_0x3d8748}:'deletion'==_0x2799a8&&(_0x46ebb7['isRemoved']={'userId':_0x3d8748})),0x0==_0x28ad60['length'])break;}return _0x2cb46e;}['_refreshStartEndIndex'](_0x29a816){const _0x5c258c=new Map();for(let _0xa05420=0x0;_0xa05420<_0x29a816['length'];_0xa05420++)'text'===_0x29a816[_0xa05420]['type']?(_0x29a816[_0xa05420]['item']['startIndex']=_0xa05420,_0x29a816[_0xa05420]['item']['endIndex']=_0xa05420):('elementStart'===_0x29a816[_0xa05420]['type']?_0x29a816[_0xa05420]['item']['startIndex']=_0xa05420:'elementEnd'===_0x29a816[_0xa05420]['type']&&(_0x29a816[_0xa05420]['item']['endIndex']=_0xa05420),_0x5c258c['set'](_0x29a816[_0xa05420]['id'],_0xa05420));for(const _0x1699ae of _0x5c258c['values']())'elementStart'===_0x29a816[_0x1699ae]['type']?_0x29a816[_0x1699ae]['item']['endIndex']=_0x5c258c['get'](_0x29a816[_0x1699ae]['pairId']):'elementEnd'===_0x29a816[_0x1699ae]['type']&&(_0x29a816[_0x1699ae]['item']['startIndex']=_0x5c258c['get'](_0x29a816[_0x1699ae]['pairId']));}['_processTape'](_0x2f4935){for(let _0xa7d7b4=0x0;_0xa7d7b4<_0x2f4935['length'];_0xa7d7b4++){if('elementStart'===_0x2f4935[_0xa7d7b4]['type'])_0x2f4935[_0xa7d7b4]['item']['startIndex']=_0xa7d7b4;else{if('elementEnd'===_0x2f4935[_0xa7d7b4]['type']){_0x2f4935[_0xa7d7b4]['item']['endIndex']=_0xa7d7b4;const _0x27716d=_0x2f4935[_0xa7d7b4]['item']['startIndex'];_0x2f4935[_0x27716d]['pairId']=_0x2f4935[_0xa7d7b4]['id'],_0x2f4935[_0xa7d7b4]['pairId']=_0x2f4935[_0x27716d]['id'];}else _0x2f4935[_0xa7d7b4]['item']['startIndex']=_0xa7d7b4,_0x2f4935[_0xa7d7b4]['item']['endIndex']=_0xa7d7b4,_0x2f4935[_0xa7d7b4]['pairId']=null;}_0x2f4935[_0xa7d7b4]['markersStart']||(_0x2f4935[_0xa7d7b4]['markersStart']=[],_0x2f4935[_0xa7d7b4]['markersEnd']=[]);}}['_markInsertions'](_0x4cd426,_0x86e3ce){const _0x283b4a=_0x4cd426['filter'](_0x3143d1=>!_0x3143d1['isAdded']);for(let _0x26d933=0x0;_0x26d933<_0x86e3ce['length'];_0x26d933++)_0x86e3ce[_0x26d933]['isAdded']&&(_0x283b4a[_0x26d933]['isAdded']=_0x86e3ce[_0x26d933]['isAdded']);}['_getDiff'](_0x2073ac,_0x39385b=null){const _0x1d6732=this['repository']['getRevision'](_0x2073ac),_0x3554e7=_0x39385b?this['repository']['getRevision'](_0x39385b):null,_0x46cc05=this['_getRevisionsRange'](_0x1d6732,_0x3554e7),_0x3142c3=_0x46cc05[_0x46cc05['length']-0x1],_0x2186f7=new Map(),_0x58a57b={'model':{},'attributes':{},'changes':[]},_0x4082af=new Set(),_0x56bfbe=new Map();for(let _0x5e49bd=_0x46cc05['length']-0x1;_0x5e49bd>=0x0;_0x5e49bd--){const _0x2877c3=_0x46cc05[_0x5e49bd];for(const _0x2bc2bd of Object['keys'](_0x2877c3['diffData']))if(_0x2877c3['diffData'][_0x2bc2bd]['attachChange']){const _0x239be1=_0x2877c3['diffData'][_0x2bc2bd]['attachChange'];_0x239be1['isAttached']?(_0x4082af['add'](_0x2bc2bd),_0x56bfbe['has'](_0x2bc2bd)&&_0x56bfbe['get'](_0x2bc2bd)['userId']==_0x239be1['userId']?_0x56bfbe['delete'](_0x2bc2bd):_0x56bfbe['set'](_0x2bc2bd,_0x239be1)):_0x56bfbe['has'](_0x2bc2bd)?(_0x4082af['delete'](_0x2bc2bd),_0x56bfbe['delete'](_0x2bc2bd)):(_0x4082af['add'](_0x2bc2bd),_0x56bfbe['set'](_0x2bc2bd,_0x239be1));}else _0x4082af['add'](_0x2bc2bd);}for(const _0x2a41d8 of _0x4082af){const _0x6f51df=_0x56bfbe['has'](_0x2a41d8)&&!_0x56bfbe['get'](_0x2a41d8)['isAttached'];let _0x4f0557=_0x6f51df?_0x46cc05['length']-0x1:0x0;const _0x8429b5=_0x6f51df?-0x1:0x1;for(;_0x46cc05[_0x4f0557];){const _0xf3da25=_0x46cc05[_0x4f0557];if(_0xf3da25['diffData'][_0x2a41d8]){const _0x35f430=_0x6f51df?_0xf3da25['diffData'][_0x2a41d8]['attributesBefore']:_0xf3da25['diffData'][_0x2a41d8]['attributesAfter'];_0x58a57b['attributes'][_0x2a41d8]=_0x35f430?_0x8fd207(_0x35f430):{};break;}_0x4f0557+=_0x8429b5;}}for(const _0x3a201b of _0x46cc05){_0x3a201b['model']={};for(const _0x21c366 of _0x3a201b['authors'])_0x2186f7['set'](_0x21c366['id'],_0x21c366);for(const _0x2d1844 of _0x4082af){const _0x2ae764=_0x3a201b['diffData'][_0x2d1844]?_0x3a201b['diffData'][_0x2d1844]['insertions']:'[]',_0x459d41=_0x3a201b['diffData'][_0x2d1844]?_0x3a201b['diffData'][_0x2d1844]['deletions']:'[]';_0x3a201b['model'][_0x2d1844]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2ae764),'deletions':this['_utils']['_makeModelFromViewString'](_0x459d41)};}}for(const _0x54d112 of _0x4082af){let _0x45f083=null,_0x5bd3f3=0x0;const _0x322df2=new Map(Array['from'](_0x1d6732['model'][_0x54d112]['insertions']['markers'])['filter'](([_0xa69481])=>!_0xa69481['startsWith']('revision:')));let _0x206c00=0x0;for(const _0x3677d0 of _0x46cc05){const _0x6ba826=this['_makeTape'](_0x3677d0['model'][_0x54d112]['insertions']);_0x3677d0==_0x1d6732?(_0x45f083=_0x6ba826,_0x5bd3f3=_0x45f083['length'],_0x45f083['forEach'](_0xc6209e=>{_0xc6209e['id']=_0x206c00++;}),this['_processTape'](_0x45f083)):this['_markInsertions'](_0x45f083,_0x6ba826);const _0x131e53=_0x45f083['filter'](_0x1f054d=>!_0x1f054d['isAdded'])['map'](_0x755786=>_0x755786['id']);let _0x172eb6=0x0;const _0xae7da0=this['_makeTape'](_0x3677d0['model'][_0x54d112]['deletions']);_0xae7da0['forEach'](_0x4439c6=>{_0x4439c6['isRemoved']?_0x4439c6['id']=_0x5bd3f3++:_0x4439c6['id']=_0x131e53[_0x172eb6++];}),this['_processTape'](_0xae7da0),this['_setDistance'](_0x45f083,'isAdded'),this['_setDistance'](_0xae7da0,'isRemoved'),_0x3677d0==_0x1d6732&&this['_markMarkers'](_0x45f083,_0x322df2),_0x45f083=this['_joinTapes'](_0x45f083,_0xae7da0),this['_refreshStartEndIndex'](_0x45f083),this['_setDistance'](_0x45f083,'isRemoved');}_0x45f083=_0x45f083['filter'](_0x56f510=>!(_0x56f510['isAdded']&&_0x56f510['isRemoved']));const _0x47f1ef=new Map(_0x3142c3['model'][_0x54d112]['deletions']['markers']),_0x2db303=new Set(_0x322df2['keys']());for(const _0x4c4cd5 of _0x47f1ef['keys']())_0x2db303['delete'](_0x4c4cd5);this['_markSuggestions'](_0x45f083,_0x2db303),this['_fixObsoleteTags'](_0x45f083),_0x45f083=this['_removeMissingPairs'](_0x45f083),_0x45f083=this['_markMismatchedRemovedTags'](_0x45f083),_0x45f083=this['_removeUnsupportedChanges'](_0x45f083);const {root:_0x4182fa,changes:_0x2d9c16}=this['_makeModelFromTape'](_0x45f083,_0x2186f7,_0x54d112);_0x58a57b['model'][_0x54d112]=_0x4182fa;const _0x179a94=_0x56bfbe['get'](_0x54d112);if(_0x179a94){const _0x2976b5=_0x2186f7['get'](_0x179a94['userId']),_0x4aacac=new G({'author':_0x2976b5,'type':_0x179a94['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54d112});_0x2d9c16['unshift'](_0x4aacac),_0x58a57b['attributes'][_0x54d112]['revisionHistoryAttachChange']=_0x4aacac['id'];}_0x58a57b['changes']=_0x58a57b['changes']['concat'](_0x2d9c16);}return _0x58a57b;}['_markMarkers'](_0x10231e,_0x25fb78){for(let _0x2b19ec=0x0;_0x2b19ec<_0x10231e['length'];_0x2b19ec++)for(const [_0x5e8826,_0x18089c]of _0x25fb78)!_0x18089c['isCollapsed']&&_0x18089c['start']['isEqual'](_0x10231e[_0x2b19ec]['previousPosition'])&&_0x10231e[_0x2b19ec]['markersStart']['push'](_0x5e8826),_0x18089c['end']['isEqual'](_0x10231e[_0x2b19ec]['nextPosition'])&&_0x10231e[_0x2b19ec]['markersEnd']['push'](_0x5e8826);}['_joinTapes'](_0x12ad31,_0x3f3632){let _0x1c0947=[],_0x53ae77=0x0,_0x5b5ad4=0x0;for(;_0x53ae77<_0x12ad31['length']||_0x5b5ad4<_0x3f3632['length'];){const _0x293c21=_0x12ad31[_0x53ae77]||{},_0x183148=_0x3f3632[_0x5b5ad4]||{};if(_0x293c21['id']==_0x183148['id'])_0x53ae77++,_0x5b5ad4++,_0x1c0947['push'](_0x293c21);else{if(_0x183148['isRemoved']&&_0x293c21['isAdded']){const {commonTape:_0x411e2f,iEnd:_0xe714a8,jEnd:_0x1feb9b}=this['_threeWayMerge'](_0x12ad31,_0x53ae77,_0x3f3632,_0x5b5ad4);_0x1c0947=_0x1c0947['concat'](_0x411e2f),_0x53ae77=_0xe714a8,_0x5b5ad4=_0x1feb9b;}else _0x183148['isRemoved']?(_0x5b5ad4++,_0x1c0947['push'](_0x183148)):(_0x53ae77++,_0x1c0947['push'](_0x293c21));}}return _0x1c0947;}['_markSuggestions'](_0x19c6f1,_0x4fe1b6){const _0x1e8d52=[];for(let _0x4d2ea0=0x0;_0x4d2ea0<_0x19c6f1['length'];_0x4d2ea0++){for(let _0x2ba9a6=0x0;_0x2ba9a6<_0x19c6f1[_0x4d2ea0]['markersStart']['length'];_0x2ba9a6++){const _0x3e6558=_0x19c6f1[_0x4d2ea0]['markersStart'][_0x2ba9a6];if(!_0x4fe1b6['has'](_0x3e6558))continue;const {group:_0xafbd47,type:_0x36f88d,authorId:_0x1a377e}=_0x26ec3e(_0x3e6558);'revision-suggestion'!=_0xafbd47||'insertion'!=_0x36f88d&&'deletion'!=_0x36f88d||(_0x1e8d52['unshift']({'type':_0x36f88d,'name':_0x3e6558,'userId':_0x1a377e}),_0x19c6f1[_0x4d2ea0]['markersStart']['splice'](_0x2ba9a6,0x1),_0x2ba9a6--);}_0x29a842(_0x19c6f1[_0x4d2ea0]);for(let _0x137d6c=0x0;_0x137d6c<_0x19c6f1[_0x4d2ea0]['markersEnd']['length'];_0x137d6c++){const _0x5d8e31=_0x19c6f1[_0x4d2ea0]['markersEnd'][_0x137d6c];if(!_0x4fe1b6['has'](_0x5d8e31))continue;const {group:_0x2f2825,type:_0x53fb3e}=_0x26ec3e(_0x5d8e31);if('revision-suggestion'!=_0x2f2825||'insertion'!=_0x53fb3e&&'deletion'!=_0x53fb3e)continue;_0x19c6f1[_0x4d2ea0]['markersEnd']['splice'](_0x137d6c,0x1),_0x137d6c--;const _0x48a090=_0x1e8d52['findIndex'](_0x34a34d=>_0x34a34d['name']==_0x5d8e31);_0x48a090>-0x1&&_0x1e8d52['splice'](_0x48a090,0x1);}}function _0x26ec3e(_0x55acc7){const _0x10c21a=_0x55acc7['split'](':');return{'group':_0x10c21a[0x0],'type':_0x10c21a[0x1],'subType':_0x10c21a['length']>=0x5?_0x10c21a[0x2]:null,'id':_0x10c21a['length']<0x5?_0x10c21a[0x2]:_0x10c21a[0x3],'authorId':_0x10c21a['length']<0x5?_0x10c21a[0x3]:_0x10c21a[0x4],'markerCount':0x6==_0x10c21a['length']?_0x10c21a[0x5]:null};}function _0x29a842(_0x45cccb){for(let _0x1800fd=0x0;_0x1800fd<_0x1e8d52['length'];_0x1800fd++){if(_0x45cccb['isAdded']&&'insertion'==_0x1e8d52[_0x1800fd]['type']&&_0x45cccb['isAdded']['userId']==_0x1e8d52[_0x1800fd]['userId'])return _0x45cccb['isAddSuggestion']=_0x1e8d52[_0x1800fd],void delete _0x45cccb['isAdded'];if(!_0x45cccb['isAdded']&&!_0x45cccb['isRemoved']&&'deletion'==_0x1e8d52[_0x1800fd]['type'])return void(_0x45cccb['isRemoveSuggestion']=_0x1e8d52[_0x1800fd]);}}}['_setDistance'](_0x38f6ca,_0x1e47ae){let _0x52ec64=0x0,_0x2e34d2=!0x1;const _0x464132=new Map();for(const _0x54568e of _0x38f6ca)_0x54568e[_0x1e47ae]?_0x2e34d2&&(_0x52ec64++,_0x2e34d2=!0x1):(_0x52ec64++,_0x2e34d2=!0x0),_0x464132['set'](_0x54568e['id'],_0x52ec64);for(let _0x1b7328=0x0;_0x1b7328<_0x38f6ca['length'];_0x1b7328++){if('isRemoved'==_0x1e47ae&&_0x38f6ca[_0x1b7328]['isAdded']||'isAdded'==_0x1e47ae&&_0x38f6ca[_0x1b7328]['isRemoved'])continue;if('text'==_0x38f6ca[_0x1b7328]['type']){_0x38f6ca[_0x1b7328]['distance']=0x0;continue;}const _0x653de8=_0x464132['get'](_0x38f6ca[_0x1b7328]['pairId']),_0x12095e=_0x464132['get'](_0x38f6ca[_0x1b7328]['id']);_0x38f6ca[_0x1b7328]['distance']=_0x653de8-_0x12095e;}}['_getRevisionsRange'](_0x4a0ce0,_0x30b26f,_0xbff4f3=!0x1){const _0x506405=[];let _0x524d30=this['repository']['getIndex'](_0x4a0ce0),_0xb42dd0=this['repository']['getIndex'](_0x30b26f);for(-0x1==_0xb42dd0&&(_0xb42dd0=this['repository']['_revisions']['length'],_0xbff4f3=!0x1);_0x524d30<_0xb42dd0;)_0x506405['push'](this['repository']['getRevision'](_0x524d30)),_0x524d30++;return _0xbff4f3&&_0x506405['push'](this['repository']['getRevision'](_0x524d30)),_0x506405;}['_threeWayMerge'](_0xfb6243,_0x2544b0,_0x1a8d2b,_0x237356){const _0x38d672=this['editor']['model']['schema'];let _0xd4dd30=_0x2544b0;for(;_0xfb6243[_0xd4dd30]&&_0xfb6243[_0xd4dd30]['isAdded'];)_0xd4dd30++;let _0x167d25=_0x237356;for(;_0x1a8d2b[_0x167d25]&&_0x1a8d2b[_0x167d25]['isRemoved'];)_0x167d25++;_0x59ceea(_0xfb6243,_0x2544b0,_0xd4dd30),_0x59ceea(_0x1a8d2b,_0x237356,_0x167d25);const _0x18d8f2=_0x1a8d2b['slice'](_0x237356,_0x167d25)['concat'](_0xfb6243['slice'](_0x2544b0,_0xd4dd30));return _0x18d8f2['sort']((_0x52f53b,_0x4e63d6)=>_0x52f53b['side']!=_0x4e63d6['side']?_0x52f53b['side']-_0x4e63d6['side']:_0x52f53b['level']!=_0x4e63d6['level']?_0x52f53b['level']-_0x4e63d6['level']:_0x52f53b['distance']!=_0x4e63d6['distance']?_0x4e63d6['distance']-_0x52f53b['distance']:!!_0x52f53b['isAdded']!=!!_0x4e63d6['isAdded']?-0x1==_0x52f53b['side']||0x0==_0x52f53b['side']?_0x52f53b['isAdded']?-0x1:0x1:_0x52f53b['isAdded']?0x1:-0x1:_0x52f53b['index']-_0x4e63d6['index']),{'commonTape':_0x18d8f2,'iEnd':_0xd4dd30,'jEnd':_0x167d25};function _0x59ceea(_0x4df5b9,_0x36c632,_0xba7ff){let _0x17b50d=-0x1,_0x35bd1e=Number['POSITIVE_INFINITY'],_0x824bf8=!0x0;for(let _0x4035b0=_0x36c632;_0x4035b0<_0xba7ff;_0x4035b0++)if(_0x38d672['isInline'](_0x4df5b9[_0x4035b0]['item'])||(_0x824bf8=!0x1),_0x4df5b9[_0x4035b0]['item']['startIndex']<_0x36c632&&(_0x17b50d=_0x4035b0),_0x4df5b9[_0x4035b0]['item']['endIndex']>=_0xba7ff){_0x35bd1e=_0x4035b0;break;}_0x824bf8&&(_0x17b50d=_0xba7ff-0x1);for(let _0x4896f0=_0x36c632;_0x4896f0<_0xba7ff;_0x4896f0++)_0x4df5b9[_0x4896f0]['side']=_0x4896f0<=_0x17b50d?-0x1:_0x4896f0<_0x35bd1e?0x0:0x1,_0x4df5b9[_0x4896f0]['index']=_0x4896f0;let _0x25d313=0x0;for(let _0x57bf44=_0x36c632;_0x57bf44<=_0x17b50d;_0x57bf44++)0x0==_0x4df5b9[_0x57bf44]['distance']?_0x4df5b9[_0x57bf44]['level']=_0x25d313:(_0x25d313++,_0x4df5b9[_0x57bf44]['level']=_0x25d313,_0x25d313++);for(let _0x19be79=_0x36c632;_0x19be79<_0xba7ff;_0x19be79++)0x0==_0x4df5b9[_0x19be79]['side']&&(_0x4df5b9[_0x19be79]['level']=_0x25d313);_0x25d313=0x0;for(let _0x4f1c2f=_0xba7ff-0x1;_0x4f1c2f>=_0x35bd1e;_0x4f1c2f--)0x0==_0x4df5b9[_0x4f1c2f]['distance']?_0x4df5b9[_0x4f1c2f]['level']=_0x25d313:(_0x25d313--,_0x4df5b9[_0x4f1c2f]['level']=_0x25d313,_0x25d313--);}}['_fixObsoleteTags'](_0x5c1dc8){const _0x395f1b=new Map(),_0x2837bb=this['editor']['model']['schema'];for(let _0x4e75c8=0x1;_0x4e75c8<_0x5c1dc8['length'];_0x4e75c8++){let _0x48fe27,_0x2539f6,_0x4564c8;const _0x36d154=_0x5c1dc8[_0x4e75c8],_0x630bc9=_0x5c1dc8[_0x4e75c8-0x1];if('text'==_0x36d154['type'])continue;if(_0x36d154['type']!=_0x630bc9['type'])continue;if(!_0x2837bb['isBlock'](_0x630bc9['item'])||_0x2837bb['isLimit'](_0x630bc9['item']))continue;if(!_0x2837bb['isBlock'](_0x36d154['item'])||_0x2837bb['isLimit'](_0x36d154['item']))continue;if((_0x5c1dc8[_0x4e75c8]['isAdded']||_0x5c1dc8[_0x4e75c8]['isAddSuggestion'])&&_0x5c1dc8[_0x4e75c8-0x1]['isRemoved'])_0x48fe27=_0x5c1dc8[_0x4e75c8],_0x2539f6=_0x5c1dc8[_0x4e75c8-0x1],_0x4564c8=_0x4e75c8-0x1;else{if(!_0x5c1dc8[_0x4e75c8]['isRemoved']||!_0x5c1dc8[_0x4e75c8-0x1]['isAdded']&&!_0x5c1dc8[_0x4e75c8-0x1]['isAddSuggestion'])continue;_0x48fe27=_0x5c1dc8[_0x4e75c8-0x1],_0x2539f6=_0x5c1dc8[_0x4e75c8],_0x4564c8=_0x4e75c8;}const _0x2e25e9=_0x48fe27['level']==_0x2539f6['level'],_0x5612ed=Math['abs'](_0x48fe27['level'])<Math['abs'](_0x2539f6['level'])&&0x0==_0x2539f6['distance'];(_0x2e25e9||_0x5612ed)&&(_0x395f1b['set'](_0x2539f6['id'],_0x48fe27['id']),_0x5c1dc8['splice'](_0x4564c8,0x1),_0x4e75c8--,_0x48fe27['isAdded']=!0x1);}for(let _0x3b04dd=0x0;_0x3b04dd<_0x5c1dc8['length'];_0x3b04dd++)_0x395f1b['has'](_0x5c1dc8[_0x3b04dd]['pairId'])&&(_0x5c1dc8[_0x3b04dd]['pairId']=_0x395f1b['get'](_0x5c1dc8[_0x3b04dd]['pairId']));}['_removeMissingPairs'](_0x2c2f7e){const _0x49662f=new Set(_0x2c2f7e['map'](_0x3f794b=>_0x3f794b['id']));for(let _0x47ff69=0x0;_0x47ff69<_0x2c2f7e['length'];_0x47ff69++)_0x49662f['has'](_0x2c2f7e[_0x47ff69]['pairId'])||0x0==_0x2c2f7e[_0x47ff69]['distance']||(_0x2c2f7e[_0x47ff69]['isIncorrect']=!0x0);return _0x2c2f7e['filter'](_0x3f96b3=>!_0x3f96b3['isIncorrect']);}['_markMismatchedRemovedTags'](_0xf7921c){const _0x26c1bc=new Set();for(let _0x46f69a=0x0;_0x46f69a<_0xf7921c['length'];_0x46f69a++){if(_0x26c1bc['has'](_0xf7921c[_0x46f69a]['id'])&&_0xf7921c[_0x46f69a]['isRemoved']&&(_0xf7921c[_0x46f69a]['isIncorrect']=!0x0),_0xf7921c[_0x46f69a]['isIncorrect'])continue;if(0x0==_0xf7921c[_0x46f69a]['distance'])continue;if('elementStart'!=_0xf7921c[_0x46f69a]['type'])continue;if(null==_0xf7921c[_0x46f69a]['pairId'])continue;let _0x2cc6b7=_0x46f69a+0x1,_0x1a19cd=0x0;for(;_0xf7921c[_0x2cc6b7]['id']!=_0xf7921c[_0x46f69a]['pairId'];)'elementStart'==_0xf7921c[_0x2cc6b7]['type']?_0x1a19cd++:'elementEnd'==_0xf7921c[_0x2cc6b7]['type']&&_0x1a19cd--,_0x2cc6b7++;if(0x0!=_0x1a19cd){if(_0xf7921c[_0x46f69a]['isRemoved'])_0xf7921c[_0x46f69a]['isIncorrect']=!0x0;else{for(;_0x2cc6b7!=_0x46f69a;)_0xf7921c[_0x2cc6b7]['isRemoved']&&0x0!=_0xf7921c[_0x2cc6b7]['distance']&&(_0xf7921c[_0x2cc6b7]['isIncorrect']=!0x0,_0x26c1bc['add'](_0xf7921c[_0x2cc6b7]['pairId'])),_0x2cc6b7--;}}}return _0xf7921c['filter'](_0x12c122=>!_0x12c122['isIncorrect']);}['_removeUnsupportedChanges'](_0x46e79f){const _0x87afd5=this['editor']['model']['schema'];for(let _0x1656bf=0x0;_0x1656bf<_0x46e79f['length'];_0x1656bf++){if(!(_0x46e79f[_0x1656bf]['isAdded']||_0x46e79f[_0x1656bf]['isAddSuggestion']||_0x46e79f[_0x1656bf]['isRemoved']||_0x46e79f[_0x1656bf]['isRemoveSuggestion']))continue;if(0x0==_0x46e79f[_0x1656bf]['distance'])continue;const _0x2d38b0=_0x46e79f[_0x1656bf]['item'];_0x87afd5['isBlock'](_0x2d38b0)||_0x87afd5['isLimit'](_0x2d38b0)||(_0x46e79f[_0x1656bf]['isAdded']&&delete _0x46e79f[_0x1656bf]['isAdded'],_0x46e79f[_0x1656bf]['isAddSuggestion']&&delete _0x46e79f[_0x1656bf]['isAddSuggestion'],_0x46e79f[_0x1656bf]['isRemoveSuggestion']&&delete _0x46e79f[_0x1656bf]['isRemoveSuggestion'],_0x46e79f[_0x1656bf]['isRemoved']&&(_0x46e79f[_0x1656bf]['isIncorrect']=!0x0));}return _0x46e79f['filter'](_0x2098ef=>!_0x2098ef['isIncorrect']);}['_makeModelFromTape'](_0x45f64f,_0x2cd887,_0x301fef){const _0x218075=new _0xc50dea(),_0x5cc771=[],_0x330665=new Map(),_0x46f266=this['editor']['model'],_0x15c1cc=_0x46f266['schema'],_0x4f525d=[_0x218075],_0x41e3c6={},_0x19d3b8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45901a=null;const _0xf83c02=[0x0];for(let _0x32ac1e=0x0;_0x32ac1e<_0x45f64f['length'];_0x32ac1e++)if('elementStart'===_0x45f64f[_0x32ac1e]['type']){_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02);const _0x5e4020=new _0x41a41f(_0x45f64f[_0x32ac1e]['item']['name'],_0x45f64f[_0x32ac1e]['item']['getAttributes']());_0x4f525d[0x0]['_appendChild'](_0x5e4020),_0xf83c02['push'](0x0),_0x4f525d['unshift'](_0x5e4020),_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02);}else'elementEnd'===_0x45f64f[_0x32ac1e]['type']?(_0x4f525d['shift'](),_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02),_0xf83c02['pop'](),_0xf83c02[_0xf83c02['length']-0x1]++,_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02)):(_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02),_0x45901a?_0x45901a['_data']+=_0x45f64f[_0x32ac1e]['item']['data']:_0x45901a=new _0x3ce3e7(_0x45f64f[_0x32ac1e]['item']['data'],_0x45f64f[_0x32ac1e]['item']['getAttributes']()),_0x45f64f[_0x32ac1e+0x1]&&'text'===_0x45f64f[_0x32ac1e+0x1]['type']&&_0x5be0e5(_0x45901a,_0x45f64f[_0x32ac1e+0x1]['item'])||(_0x4f525d[0x0]['_appendChild'](_0x45901a),_0x45901a=null),_0xf83c02[_0xf83c02['length']-0x1]+=_0x45f64f[_0x32ac1e]['item']['offsetSize'],_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02));for(let _0x243e11=0x0;_0x243e11<_0x45f64f['length'];_0x243e11++){const _0x5be892=_0x45f64f[_0x243e11]['previousPosition'],_0x43c6dd=_0x45f64f[_0x243e11]['nextPosition'];for(const _0x483d57 of _0x45f64f[_0x243e11]['markersStart'])_0x330665['set'](_0x483d57,{'start':_0x5be892,'end':null});_0x4b8167('isRemoveSuggestion',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isAddSuggestion',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isRemoved',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isAdded',_0x243e11,_0x5be892,_0x43c6dd);for(const _0x245b60 of _0x45f64f[_0x243e11]['markersEnd']){const _0xda8e9f=_0x330665['get'](_0x245b60);_0xda8e9f?_0xda8e9f['end']=_0x43c6dd:_0x330665['set'](_0x245b60,{'start':_0x43c6dd,'end':_0x43c6dd});}}for(const [_0x1687dd,_0x462033]of _0x330665){const _0x5c02ae=this['editor']['model']['createRange'](_0x462033['start'],_0x462033['end']);_0x218075['markers']['set'](_0x1687dd,_0x5c02ae);}return _0x5cc771['sort']((_0xa7321d,_0x54b04e)=>{const _0x173fcc=_0x218075['markers']['get']('revision:'+_0xa7321d['id']),_0x3bc6d8=_0x218075['markers']['get']('revision:'+_0x54b04e['id']);return _0x173fcc['start']['isBefore'](_0x3bc6d8['start'])?-0x1:_0x173fcc['start']['isAfter'](_0x3bc6d8['start'])?0x1:_0x173fcc['end']['isBefore'](_0x3bc6d8['end'])?-0x1:_0x173fcc['end']['isAfter'](_0x3bc6d8['end'])?0x1:'add'===_0xa7321d['type']?-0x1:0x1;}),{'root':_0x218075,'changes':_0x5cc771};function _0x4b8167(_0x5ac274,_0x5e79a1,_0x833552,_0x38e472){const _0x156e80=!!_0x45f64f[_0x5e79a1][_0x5ac274],_0x544ba2=_0x156e80?_0x45f64f[_0x5e79a1][_0x5ac274]['userId']:null,_0x69a4d4=_0x5e79a1===_0x45f64f['length']-0x1,_0xae8aca=_0x19d3b8[_0x5ac274][0x0],_0x49ec66=_0x15c1cc['isObject'](_0x45f64f[_0x5e79a1]['item']);!_0x41e3c6[_0x5ac274]&&_0x156e80?_0x41e3c6[_0x5ac274]={'start':_0x833552,'tapeItem':_0x45f64f[_0x5e79a1],'userId':_0x544ba2,'type':_0x5ac274}:_0x41e3c6[_0x5ac274]&&!_0x156e80?(_0x41e3c6[_0x5ac274]['end']=_0x833552,_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]=null):_0x41e3c6[_0x5ac274]&&_0x156e80&&_0x41e3c6[_0x5ac274]['userId']!==_0x544ba2&&(_0x41e3c6[_0x5ac274]['end']=_0x833552,_0xae8aca&&_0xae8aca['userId']===_0x41e3c6[_0x5ac274]['userId']||_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]={'start':_0x833552,'tapeItem':_0x45f64f[_0x5e79a1],'userId':_0x544ba2,'type':_0x5ac274}),_0x41e3c6[_0x5ac274]&&_0x49ec66&&('elementStart'!==_0x45f64f[_0x5e79a1]['type']||_0xae8aca&&_0xae8aca['userId']===_0x544ba2||_0x19d3b8[_0x5ac274]['unshift']({'userId':_0x544ba2,'object':_0x45f64f[_0x5e79a1]['item'],'change':_0x41e3c6[_0x5ac274]}),'elementEnd'===_0x45f64f[_0x5e79a1]['type']&&_0xae8aca&&_0xae8aca['object']===_0x45f64f[_0x5e79a1]['item']&&(_0x19d3b8[_0x5ac274]['shift'](),_0x41e3c6[_0x5ac274]=_0xae8aca['change'])),_0x41e3c6[_0x5ac274]&&_0x69a4d4&&(_0x41e3c6[_0x5ac274]['end']=_0x38e472,_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]=null);}function _0x3f2ad2({start:_0x5689bd,end:_0x4ab3a7,tapeItem:_0x227568,userId:_0xc64816,type:_0xe3f1d0}){const _0x19d3e7=_0x227568['item'],_0x6ce376=_0x46f266['schema']['isBlock'](_0x19d3e7)&&!_0x46f266['schema']['isLimit'](_0x19d3e7),_0x5a0b99=_0x5689bd['nodeAfter']==_0x4ab3a7['parent']&&_0x4ab3a7['isAtStart'];if(_0x6ce376&&_0x5a0b99)return;const _0x1b4f28=_0x46f266['createRange'](_0x5689bd,_0x4ab3a7),_0x1fa2e7=_0x2cd887['get'](_0xc64816),_0x362c7e=new G({'author':_0x1fa2e7,'type':'isAdded'==_0xe3f1d0||'isAddSuggestion'==_0xe3f1d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xe3f1d0||'isRemoveSuggestion'==_0xe3f1d0},'createdAt':new Date(),'rootName':_0x301fef});_0x5cc771['push'](_0x362c7e),_0x218075['markers']['set']('revision:'+_0x362c7e['id'],_0x1b4f28);}function _0x5be0e5(_0xd968fa,_0x486a78){const _0x5082f2=_0xd968fa['getAttributes'](),_0x3854d9=_0x486a78['getAttributes']();for(const _0x1c264c of _0x5082f2){if(_0x1c264c[0x1]!==_0x486a78['getAttribute'](_0x1c264c[0x0]))return!0x1;_0x3854d9['next']();}return _0x3854d9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1ed336=>{const _0x4d7f89=_0x1ed336['markerName']['split'](':')[0x1],_0x10c634=this['_getChangeFromId'](_0x4d7f89);if(!_0x10c634)return null;const _0x781120='add'==_0x10c634['type']?'insertion':'deletion',_0x415f84=['ck-suggestion-marker','ck-suggestion-marker-'+_0x781120];return _0x10c634['data']['isSuggestion']&&_0x415f84['push']('ck-suggestion-marker-'+_0x781120+'-new'),this['activeChange']==_0x10c634&&_0x415f84['push']('ck-suggestion-marker--active'),{'classes':_0x415f84,'attributes':{'data-change-id':_0x4d7f89}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5706c5=>{_0x5706c5['on']('element:pre',(_0xed75d9,_0x574a30,_0x8fe0ed)=>{const _0x37700e=_0x574a30['viewItem']['getChild'](0x0);if(!_0x37700e||!_0x37700e['is']('element','code'))return;if(!_0x8fe0ed['consumable']['consume'](_0x37700e,{'attributes':['vid_start','vid_end']}))return;const _0x5aede5=_0x574a30['modelRange']['start']['nodeAfter'];_0x8fe0ed['writer']['setAttribute']('vid_start',_0x37700e['getAttribute']('vid_start'),_0x5aede5),_0x8fe0ed['writer']['setAttribute']('vid_end',_0x37700e['getAttribute']('vid_end'),_0x5aede5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3b6f1c=>{_0x3b6f1c['on']('element',(_0x35ba9b,_0x24078a,_0x2948a2)=>{if(!_0x2948a2['consumable']['consume'](_0x24078a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x24078a['modelRange']['isCollapsed'])return;const _0x1a5e26=_0x24078a['modelRange']['start']['nodeAfter'];_0x1a5e26['hasAttribute']('vid_start')||_0x1a5e26['hasAttribute']('vid')||(_0x2948a2['writer']['setAttribute']('vid_start',_0x24078a['viewItem']['getAttribute']('vid_start'),_0x1a5e26),_0x2948a2['writer']['setAttribute']('vid_end',_0x24078a['viewItem']['getAttribute']('vid_end'),_0x1a5e26));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x52f4f6=>_0x52f4f6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x405006,[,_0x47fced])=>{['vid_start','vid_end','vid']['includes'](_0x47fced)&&(_0x405006['return']=!0x0,_0x405006['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ff101=>{_0x2ff101['on']('attribute:vid',(_0x515d5a,_0x454d97,_0x4370a5)=>{if('\x20'!=_0x454d97['item']['data']||_0x454d97['item']['parent']['maxOffset']>0x1)return;if(!_0x4370a5['consumable']['consume'](_0x454d97['item'],_0x515d5a['name']))return;const _0x449cb0=_0x4370a5['writer'],_0x45135b=_0x4370a5['mapper']['toViewRange'](_0x454d97['range']);_0x449cb0['wrap'](_0x45135b,_0x449cb0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21279a){const _0x2a7acd=_0x21279a['plugins']['get']('RevisionViewer');return(_0x149635,_0x339447,_0x5177c7)=>{const _0x4c16b0=_0x339447['markerName']['split'](':')[0x1],_0x5776b7=_0x2a7acd['_getChangeFromId'](_0x4c16b0);if(!_0x5776b7)return null;const _0x1b232a='add'==_0x5776b7['type']?'split':'merge';if(!_0x5177c7['consumable']['test'](_0x339447['markerRange'],_0x149635['name']))return;const _0x1b10d0=_0x339447['markerRange']['getWalker'](),_0x3de2bd=_0x339447['markerRange']['start'],_0x67fa81=_0x21279a['model']['schema'];let _0x38be01=null,_0x1b98d6=null,_0x1b2593=!0x1,_0x139177=!0x1;for(const _0x55391c of _0x1b10d0){const _0x1b67ed=_0x55391c['item'];_0x1b2593=_0x1b2593||_0x67fa81['isContent'](_0x1b67ed);const _0x35895b=_0x5177c7['mapper']['toViewElement'](_0x1b67ed);if(_0x35895b&&_0x35895b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55391c['type']&&(_0x67fa81['isBlock'](_0x1b67ed)&&!_0x67fa81['isLimit'](_0x1b67ed)&&(_0x1b67ed['nextSibling']||_0x3de2bd['isAtEnd']?_0x38be01&&_0x38be01['parent']==_0x1b67ed||(_0x38be01=_0x1b67ed,_0x90cd9f(_0x55391c['previousPosition']),_0x139177=!0x0):_0x1b98d6=_0x1b98d6||_0x55391c['previousPosition']));}function _0x90cd9f(_0x43477b){const _0x2de592=_0x5177c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b232a}),_0x412569=_0x5177c7['mapper']['toViewPosition'](_0x43477b);_0x5776b7['data']['isSuggestion']&&_0x5177c7['writer']['addClass']('ck-suggestion-marker-'+_0x1b232a+'-new',_0x2de592),_0x2a7acd['activeChange']==_0x5776b7&&_0x5177c7['writer']['addClass']('ck-suggestion-marker--active',_0x2de592),_0x5177c7['writer']['insert'](_0x412569,_0x2de592),_0x5177c7['mapper']['bindElementToMarker'](_0x2de592,_0x339447['markerName']);}_0x1b2593||_0x139177||!_0x1b98d6||_0x90cd9f(_0x1b98d6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b2a15,_0x361159,_0x38e13d)=>{const _0x1b94d0=_0x38e13d['mapper']['markerNameToElements'](_0x361159['markerName']);if(_0x1b94d0){for(const _0x3b26ed of _0x1b94d0)(_0x3b26ed['hasClass']('ck-suggestion-marker-split')||_0x3b26ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x38e13d['mapper']['unbindElementFromMarkerName'](_0x3b26ed,_0x361159['markerName']),_0x38e13d['writer']['remove'](_0x3b26ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47bf53,_0x1c1770,_0x2ddf7a)=>{const _0x2b978a=_0x1c1770['markerName']['split'](':')[0x1],_0x729d9e=this['_getChangeFromId'](_0x2b978a);if(!_0x729d9e)return null;const _0x15bd45='add'==_0x729d9e['type']?'split':'merge';if(_0x2ddf7a['consumable']['test'](_0x1c1770['markerRange'],_0x47bf53['name']))for(const _0x3a7907 of _0x1c1770['markerRange']['getItems']()){if(!_0x3a7907['is']('element','softBreak'))continue;const _0xb50b17=_0x2ddf7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15bd45}),_0xe68b28=_0x2ddf7a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3a7907));_0x729d9e['data']['isSuggestion']&&_0x2ddf7a['writer']['addClass']('ck-suggestion-marker-'+_0x15bd45+'-new',_0xb50b17),this['activeChange']==_0x729d9e&&_0x2ddf7a['writer']['addClass']('ck-suggestion-marker--active',_0xb50b17),_0x2ddf7a['writer']['insert'](_0xe68b28,_0xb50b17),_0x2ddf7a['mapper']['bindElementToMarker'](_0xb50b17,_0x1c1770['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x310ec2=>{for(const _0x5b9b5f of this['editor']['model']['document']['getRootNames']()){const _0x41d318=this['editor']['model']['document']['getRoot'](_0x5b9b5f),_0x44f170=this['editor']['editing']['view']['document']['getRoot'](_0x5b9b5f);if(_0x44f170){const _0x538d6f=_0x41d318['getAttribute']('revisionHistoryAttachChange');if(_0x310ec2['removeAttribute']('data-change-id',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root-add',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root-remove',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root--active',_0x44f170),_0x538d6f){const _0x3dda35=this['_getChangeFromId'](_0x538d6f);if(!_0x3dda35)return null;_0x310ec2['setAttribute']('data-change-id',_0x538d6f,_0x44f170),_0x310ec2['addClass']('ck-revision-history-root-'+_0x3dda35['type'],_0x44f170),this['activeChange']==_0x3dda35&&_0x310ec2['addClass']('ck-revision-history-root--active',_0x44f170);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3e7bab=>'revision-comment:'+_0x3e7bab,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2cb6d5=>'revision-suggestion:'+_0x2cb6d5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x36004e=>({'name':'suggestion:'+_0x36004e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x223948=>{const _0x5bb9ff=_0x223948['markerName']['split'](':')[0x1];return'insertion'!=_0x5bb9ff&&'deletion'!=_0x5bb9ff?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5bb9ff]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1b8d86,_0x4e2dd9,_0x2c34b0)=>{const _0x4c35aa=_0x2c34b0['mapper']['markerNameToElements'](_0x4e2dd9['markerName']);if(_0x4c35aa){for(const _0x580c70 of _0x4c35aa)_0x580c70['is']('uiElement')&&(_0x2c34b0['mapper']['unbindElementFromMarkerName'](_0x580c70,_0x4e2dd9['markerName']),_0x2c34b0['writer']['remove'](_0x580c70));}},{'priority':'high'});}['_getChangeFromId'](_0x30e0c5){return this['_changeIdToChange']['get'](_0x30e0c5);}['_getViewForChange'](_0x51e6e0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x51e6e0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4308aa,_0x5dd5ca,_0x2f3e0b,_0x57c0b3)=>{_0x57c0b3&&this['_balloon']['remove'](_0x57c0b3),_0x2f3e0b&&(this['_balloon']['add']({'view':_0x2f3e0b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x44754=this['editor']['editing'],_0x3a3f87=this['_getChangeFromId'](_0x2f3e0b['changeId']);let _0x493472;if(_0x3a3f87['data']['isOnRoot']){const _0x2e80ef=_0x44754['view']['getDomRoot'](_0x3a3f87['rootName']);_0x493472=Array['from'](_0x2e80ef['getClientRects']());}else{const _0x37c7e1=this['editor']['model']['markers']['get']('revision:'+_0x2f3e0b['changeId']);_0x493472=Array['from'](_0x44754['mapper']['markerNameToElements'](_0x37c7e1['name']))['map'](_0x4f13ec=>_0x44754['view']['domConverter']['mapViewToDom'](_0x4f13ec))['map'](_0x32a41b=>Array['from'](_0x32a41b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x493472[0x0];return _0x493472['find'](_0x29ca0c=>_0x29ca0c['top']-0x3<=this['_activeViewTarget']['y']&&_0x29ca0c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x29ca0c['left']-0x3<=this['_activeViewTarget']['x']&&_0x29ca0c['right']+0x3>=this['_activeViewTarget']['x'])||_0x493472[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x366855,_0x1cea18,_0x5c02d8,_0x1493ec)=>{this['activeView']=_0x5c02d8?this['_getViewForChange'](_0x5c02d8):null,this['editor']['model']['change'](()=>{const _0x47b983=this['editor']['editing'];_0x1493ec&&(_0x1493ec['data']['isOnRoot']?_0x47b983['view']['change'](_0xddbb31=>{_0xddbb31['removeClass']('ck-revision-history-root--active',_0x47b983['view']['document']['getRoot'](_0x1493ec['rootName']));}):_0x47b983['reconvertMarker']('revision:'+_0x1493ec['id'])),_0x5c02d8&&(_0x5c02d8['data']['isOnRoot']?_0x47b983['view']['change'](_0x4ec28b=>{_0x4ec28b['addClass']('ck-revision-history-root--active',_0x47b983['view']['document']['getRoot'](_0x5c02d8['rootName']));}):_0x47b983['reconvertMarker']('revision:'+_0x5c02d8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x542cff,_0x23b301)=>{if(this['activeChange'])return;const _0x23ed45=this['_findChangeIdFromDomTarget'](_0x23b301['target']),_0x1966d5=this['_changeIdToChange']['get'](_0x23ed45);_0x1966d5?(this['_activeViewTarget']={'x':_0x23b301['domEvent']['x'],'y':_0x23b301['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1966d5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4f1cc7,_0x5b7962)=>{const _0x23b438=this['_findChangeIdFromDomTarget'](_0x5b7962['target']),_0x38fc5e=this['_changeIdToChange']['get'](_0x23b438);_0x38fc5e?(this['_activeViewTarget']={'x':_0x5b7962['domEvent']['x'],'y':_0x5b7962['domEvent']['y']},_0x38fc5e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x38fc5e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x136967){do{const _0x147c5c=_0x136967['getAttribute']('data-change-id');if(_0x147c5c)return _0x147c5c;_0x136967=_0x136967['parent'];}while(_0x136967);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1f658c=>{for(const _0x583c07 of this['editor']['model']['markers'])_0x1f658c['removeMarker'](_0x583c07);});}}function Q(_0x3c204a,_0x2ffe44){return(_0x422603,_0x1cea3b,_0x49ad49)=>{if(!_0x49ad49['consumable']['test'](_0x1cea3b['markerRange'],_0x422603['name']))return;const _0xc17d29=_0x1cea3b['markerRange']['getWalker'](),_0x444fb8=_0x1cea3b['markerRange']['start'],_0x572e56=_0x3c204a['model']['schema'];let _0x2b8cf7=null,_0x5751a4=null,_0x2300e4=!0x1,_0x47c03c=!0x1;for(const _0xdc5c80 of _0xc17d29){const _0x55381b=_0xdc5c80['item'];_0x2300e4=_0x2300e4||_0x572e56['isContent'](_0x55381b);const _0x18794c=_0x49ad49['mapper']['toViewElement'](_0x55381b);if(_0x18794c&&_0x18794c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdc5c80['type']&&(_0x572e56['isBlock'](_0x55381b)&&!_0x572e56['isLimit'](_0x55381b)&&(_0x55381b['nextSibling']||_0x444fb8['isAtEnd']?_0x2b8cf7&&_0x2b8cf7['parent']==_0x55381b||(_0x2b8cf7=_0x55381b,_0x7d564a(_0xdc5c80['previousPosition']),_0x47c03c=!0x0):_0x5751a4=_0x5751a4||_0xdc5c80['previousPosition']));}function _0x7d564a(_0x4e9b42){const _0x2889be=_0x49ad49['mapper']['toViewPosition'](_0x4e9b42),_0x301c53=_0x49ad49['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2ffe44});_0x49ad49['writer']['insert'](_0x2889be,_0x301c53),_0x49ad49['mapper']['bindElementToMarker'](_0x301c53,_0x1cea3b['markerName']);}_0x2300e4||_0x47c03c||!_0x5751a4||_0x7d564a(_0x5751a4);};}class nt extends _0x1ba99d{constructor(_0x729ba7){super(_0x729ba7);const _0x13276c=_0x729ba7['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x13276c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13276c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2bd14b=this['editor'],_0x505d1c=_0x2bd14b['plugins']['get'](l),_0x182fba=_0x505d1c['isReady']?_0x505d1c['diff']['newRevisionId']:null;_0x2bd14b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x182fba);}['refresh'](){const {isReady:_0x119b40,isEnabled:_0x585316,repository:_0x31c460,diff:_0x590296}=this['editor']['plugins']['get'](l),_0x5c2797=_0x590296&&_0x31c460['getLaterVisibleRevision'](_0x590296['newRevisionId']);this['isEnabled']=_0x119b40&&_0x585316&&Boolean(_0x5c2797);}}class rt extends _0x1ba99d{['_step'];constructor(_0x4a38ec,{direction:_0x3c2876}){super(_0x4a38ec);const _0x19f520=_0x4a38ec['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3c2876?0x1:-0x1,this['listenTo'](_0x19f520,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x19f520,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x19f520,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x327cc7=this['editor'],_0x30717f=_0x327cc7['plugins']['get'](l),{isNavigationMode:_0x5cc2c9,currentChangeNumber:_0x21bf44}=_0x30717f;let _0x167d1e;if(_0x30717f['activeChange']=_0x5cc2c9?_0x30717f['diff']['changes']['get'](_0x21bf44+this['_step']):_0x30717f['diff']['changes']['first'],_0x30717f['activeChange']['data']['isOnRoot'])_0x167d1e=_0x327cc7['editing']['view']['getDomRoot'](_0x30717f['activeChange']['rootName']);else{const _0x5c1231=_0x327cc7['model']['markers']['get']('revision:'+_0x30717f['activeChange']['id']);_0x167d1e=_0x1fa1ef(_0x327cc7['editing'],_0x5c1231);}_0x560f73({'target':_0x167d1e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5227a2,currentChangeNumber:_0x1d0044,numberOfChanges:_0x2ab62b,isReady:_0x17b075,isEnabled:_0x34fc7f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x34fc7f&&_0x17b075&&_0x2ab62b)&&(!_0x5227a2||(0x1===this['_step']?_0x1d0044<_0x2ab62b-0x1:_0x1d0044>0x0));}}class Ri extends _0x299af1{constructor(_0xa7f404){super(_0xa7f404);const _0x37ed20=this['bindTemplate'],_0x1748c5=new _0xb62761(_0xa7f404),_0x5e4d73=new _0xb62761(_0xa7f404);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',(_0x5ae91a,_0x31e7cc)=>_0x5ae91a&&_0x31e7cc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3e6ad3,_0x4b77ef,_0x1c82a4,_0x1661d5)=>{if(!_0x3e6ad3)return R(_0xa7f404,'Loading...');if(!_0x1c82a4)return R(_0xa7f404,'No\x20changes');const _0x4f2006=R(_0xa7f404,'NUMBER_OF_CHANGES',_0x1c82a4);return _0x1661d5?R(_0xa7f404,'X_OF_Y_CHANGES',[_0x4b77ef+0x1,_0x1c82a4]):_0x4f2006;}),_0x1748c5['set']({'label':R(_0xa7f404,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5c74cd}),_0x5e4d73['set']({'label':R(_0xa7f404,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3d35bd}),_0x1748c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e4d73['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1748c5['on']('execute',()=>this['fire']('execute','backward')),_0x5e4d73['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',_0x37ed20['if']('_isStatusLabelVisible','ck-hidden',_0x2eb564=>!_0x2eb564)]},'children':[{'text':_0x37ed20['to']('isNavigationMode',_0x3d588e=>_0x3d588e?R(_0xa7f404,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xa7f404,'Total')+':\x20')}]},{'text':_0x37ed20['to']('_statusText')}]},new _0x422ac3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1748c5,_0x5e4d73]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x38daca{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3f25c9=this['editor']['editing']['view'];_0x3f25c9['change'](_0x1f5121=>{for(const _0x335f09 of _0x3f25c9['document']['roots'])_0x1f5121['addClass'](ge,_0x335f09);});}['hide'](){const _0x1cf9a1=this['editor']['editing']['view'];_0x1cf9a1['change'](_0x230a21=>{for(const _0x2272fa of _0x1cf9a1['document']['roots'])_0x230a21['removeClass'](ge,_0x2272fa);});}}class u extends _0x38daca{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x149125=this['editor'],_0x4a3aca=_0x149125['plugins']['get'](l),_0x58f22a=_0x149125['plugins']['get'](ji);_0x149125['ui']['componentFactory']['add']('exitToEditing',_0xcd9cd2=>{const _0x57e2b4=new _0xb62761(_0xcd9cd2);return _0x57e2b4['set']({'label':R(_0xcd9cd2,'Back\x20to\x20editing'),'icon':_0xac4242,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x57e2b4,'execute',()=>{_0x149125['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x57e2b4;}),_0x149125['ui']['componentFactory']['add']('restoreRevision',_0x427f03=>{const _0x29069b=new _0xb62761(_0x427f03);return _0x29069b['set']({'label':R(_0x427f03,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29069b['bind']('isEnabled')['to'](_0x149125['commands']['get']('restoreRevision')),this['listenTo'](_0x29069b,'execute',()=>_0x149125['execute']('restoreRevision')),_0x29069b;}),_0x149125['ui']['componentFactory']['add']('changesNavigation',_0x25b429=>{const _0x5d157f=new Ri(_0x25b429),_0x176393=_0x149125['commands']['get']('showPreviousChange'),_0x2c0857=_0x149125['commands']['get']('showNextChange');return _0x5d157f['bind']('isBackwardNavigationEnabled')['to'](_0x176393,'isEnabled'),_0x5d157f['bind']('isForwardNavigationEnabled')['to'](_0x2c0857,'isEnabled'),_0x5d157f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4a3aca),this['listenTo'](_0x5d157f,'execute',(_0x575baf,_0x12401e)=>{_0x149125['execute']('forward'===_0x12401e?'showNextChange':'showPreviousChange');}),_0x5d157f;}),_0x58f22a['show'](),_0x4a3aca['on']('change:isReady',(_0x4e916a,_0x3bac3b,_0x483665)=>{_0x483665?_0x58f22a['hide']():_0x58f22a['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x2bcb45,_0x21b0a4){super(_0x2bcb45,_0x21b0a4);const _0x228d86=this['bindTemplate'];this['set']({'label':R(_0x2bcb45,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2bcb45,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x228d86['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x64c65e=this['fieldView']['element'];this['_tooltipString']=_0x64c65e['scrollWidth']>_0x64c65e['clientWidth']&&_0x64c65e['value']||'';}}class ni extends _0x299af1{constructor(_0x490d95,_0x4e528c,_0x5d100c){super(_0x490d95);const _0x10f182=new _0x2168e8();_0x10f182['set']({'content':_0x5cb480,'viewBox':'0\x200\x2011\x2010'});const _0x3e2e79=['ck','ck-revision-history-sidebar__revision-author'];_0x5d100c&&_0x3e2e79['push']('ck-revision-history-sidebar__revision-author_creator');const _0x26246d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x490d95,_0x5d100c?'Revision\x20creator':'Revision\x20author')},'children':[_0x10f182,_0x4e528c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e2e79},'children':_0x26246d});}}function ai(_0x126e7e,_0x1a929b){const _0x1b51f2=_0x126e7e['bindTemplate'],_0x479693=_0x126e7e['locale'],_0x427973=_0xaf28b8(_0x479693);_0x427973['panelPosition']='sw';const _0xbadb0a=function(_0x5630c7,_0x2f4bdb){const _0x3193eb=function(_0x177ed8,_0x4a5ae7){const _0x1c8727=_0x177ed8['locale'],_0x3f465b={'Compare\x20against\x20selected':R(_0x1c8727,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1c8727,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1c8727,'Restore\x20this\x20revision')};return _0x4a5ae7['map'](_0x59a57b=>{const _0x22eb96=_0x3f465b[_0x59a57b['name']];return _0x22eb96&&_0x22eb96!==_0x59a57b['name']&&(_0x59a57b['name']=_0x22eb96),_0x59a57b;});}(_0x5630c7,_0x2f4bdb),_0xd28838=new _0x305a29();for(const _0x9924e8 of _0x3193eb){const _0x136f5e={'type':'button','model':new to({'label':_0x9924e8['name'],'class':_0x9924e8['class'],'withText':!0x0,'role':'menuitem','_action':_0x9924e8['action']})};_0x136f5e['model']['bind']('isEnabled')['to'](_0x5630c7,'isActionsDropdownOpen',_0x18db91=>'function'!=typeof _0x9924e8['isEnabled']||(!_0x18db91||_0x9924e8['isEnabled'](_0x5630c7))),_0xd28838['add'](_0x136f5e);}return _0xd28838;}(_0x126e7e,_0x1a929b);return _0x126e7e['bind']('isActionsDropdownOpen')['to'](_0x427973,'isOpen'),_0x427973['buttonView']['set']({'label':R(_0x479693,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3ac663}),_0x427973['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b51f2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b51f2['to'](_0x140f96=>_0x140f96['stopPropagation']())}}),_0x427973['on']('execute',_0x2352e8=>{_0x126e7e['isReady']&&'function'==typeof _0x2352e8['source']['_action']&&_0x2352e8['source']['_action'](_0x126e7e);}),_0x29459b(_0x427973,_0xbadb0a,{'role':'menu'}),_0x427973['listenTo'](_0x126e7e,'change:isActionsDropdownOpen',(_0x9be82b,_0x585264,_0x18d297)=>{if(_0x18d297)for(const _0x295c89 of _0x427973['listView']['items']){const _0x5767fa=_0x295c89['children']['first'],_0x3dbeee=_0x1a929b['find'](_0x3de5cb=>_0x3de5cb['action']===_0x5767fa['_action'])['isVisible'];_0x295c89['isVisible']=void 0x0===_0x3dbeee||_0x3dbeee(_0x126e7e);}}),_0x427973;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x517a0c,uid as _0x1ea4a3,Collection as _0x22f980,logWarning as _0x56f6c5,FocusTracker as _0xb8c7db,KeystrokeHandler as _0xcbc00a,scrollViewportToShowTarget as _0x4afd52,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x5abf2f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3a6c76,set as _0x851f88,unset as _0x38c92b,isEqual as _0x429990}from'es-toolkit/compat';import{Plugin as _0xe82639,PendingActions as _0x5b1f37,Command as _0x31c870,ElementApiMixin as _0x12f321,Editor as _0x3eb0fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x475835,getMarkerDomElement as _0x54b865,ConfirmMixin as _0x2b13fc,sanitizeEditorConfig as _0x199b93}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x6581e6,ViewAttributeElement as _0x1c296a,ViewEmptyElement as _0x133830,ViewRawElement as _0x1ea83e,ViewUIElement as _0x5b4fb8,ViewDocumentFragment as _0x274924,ViewText as _0x217ea8,ViewElement as _0x43e7b2,ModelElement as _0x2fac84,ModelRange as _0x25bc26,ModelPosition as _0x5dd5df,ModelDocumentFragment as _0x541f15,ModelText as _0x303cd6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x43beba,IconChevronUp as _0x1b2cde,IconChevronDown as _0x1ef223,IconUndo as _0x11a896,IconUser as _0x356834,IconThreeVerticalDots as _0x3d695d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x506625,View as _0x2a30ec,submitHandler as _0x5c49bd,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x23327c,ListView as _0x42114b,ListItemView as _0x3c8f79,ButtonView as _0x54c149,MenuBarMenuView as _0x6a49da,MenuBarMenuListView as _0xe0fadb,MenuBarMenuListItemView as _0x12b25a,MenuBarMenuListItemButtonView as _0x56e8a5,ContextualBalloon as _0x1d4685,ToolbarSeparatorView as _0x1ea54b,IconView as _0x3e6369,addListToDropdown as _0x4f859d,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x23356b,StickyPanelView as _0xf22efc,ToolbarView as _0x2f7875,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x396e09}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x517a0c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xeb7708){super(),this['id']=_0xeb7708['id']||_0x1ea4a3(),this['creator']=_0xeb7708['creator']||null,this['authors']=_0xeb7708['authors']||[],this['diffData']=_0xeb7708['diffData']||null,this['toVersion']=_0xeb7708['toVersion']||0x0,this['fromVersion']=_0xeb7708['fromVersion']||0x0,this['set']('name',_0xeb7708['name']||''),this['set']('createdAt',_0xeb7708['createdAt']||new Date()),this['set']('attributes',_0xeb7708['attributes']||{});}['setName'](_0x507550){this['_update']({'name':_0x507550});}['setAttribute'](_0xf6a0a,_0x11b8af){const _0x17c6c4=_0x3a6c76(this['attributes']);_0x851f88(_0x17c6c4,_0xf6a0a,_0x11b8af),this['_update']({'attributes':_0x17c6c4});}['removeAttribute'](_0x163055){const _0x415673=_0x3a6c76(this['attributes']);_0x38c92b(_0x415673,_0x163055),this['_update']({'attributes':_0x415673});}['_update'](_0x17fbf8,_0x290302=!0x1){let _0x1bd4a1=!0x1;const _0x125fa4={'id':this['id']},_0x2b5034=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3faf10 of _0x2b5034){const _0x221924=_0x17fbf8[_0x3faf10];void 0x0!==_0x221924&&_0x221924!==this[_0x3faf10]&&(this[_0x3faf10]=_0x221924,_0x125fa4[_0x3faf10]=_0x221924,_0x1bd4a1=!0x0);}_0x1bd4a1&&(_0x125fa4['authors']&&(_0x125fa4['authorsIds']=_0x125fa4['authors']['map'](_0x540981=>_0x540981['id']),delete _0x125fa4['authors']),this['fire']('_update',_0x125fa4,_0x290302));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x253cdf=>_0x253cdf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xe82639{['_revisions'];static get['requires'](){return[_0x475835];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2abe26){super(_0x2abe26),this['_revisions']=new _0x22f980();}['afterInit'](){!async function(_0x320779){const _0x3ed3f8=_0x3922ed([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2773aa=0xeb829,_0x13eb31=0x7374585f,_0x3872fe=0x73732c9f^_0x13eb31,_0xd2eaf4=window[_0x3922ed([0x44,0x61,0x74,0x65])][_0x3922ed([0x6e,0x6f,0x77])](),_0x59de2a=_0x320779[_0x3922ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x522b15=new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac5c3=>{_0x59de2a[_0x3922ed([0x6f,0x6e,0x63,0x65])](_0x3922ed([0x72,0x65,0x61,0x64,0x79]),_0x5ac5c3);}),_0x2d4d3d={[_0x3922ed([0x6b,0x74,0x79])]:_0x3922ed([0x45,0x43]),[_0x3922ed([0x75,0x73,0x65])]:_0x3922ed([0x73,0x69,0x67]),[_0x3922ed([0x63,0x72,0x76])]:_0x3922ed([0x50,0x2d,0x32,0x35,0x36]),[_0x3922ed([0x78])]:_0x3922ed([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]),[_0x3922ed([0x79])]:_0x3922ed([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]),[_0x3922ed([0x61,0x6c,0x67])]:_0x3922ed([0x45,0x53,0x32,0x35,0x36])},_0x47fcf0=_0x59de2a[_0x3922ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3922ed([0x67,0x65,0x74])](_0x3922ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f95d1(){let _0x321cb3,_0x1a2576=null,_0x4d8679=null;try{if(_0x47fcf0==_0x3922ed([0x47,0x50,0x4c]))return _0x3922ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x321cb3=_0x79e5f0(),!_0x321cb3)return _0x3922ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x321cb3[_0x3922ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d8679=_0x550e3d(_0x321cb3[_0x3922ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x321cb3[_0x3922ed([0x6a,0x74,0x69])])),await _0xd2eca5()?_0x14e11()?_0x245eac()?_0x3922ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x223347()?(_0x321cb3[_0x3922ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3922ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a2576=_0x2f8e08(_0x3922ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x321cb3[_0x3922ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3922ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a2576=_0x2f8e08(_0x3922ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c0660()):_0x3922ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3922ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3922ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3922ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245eac(){const _0x3bce56=[_0x3922ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3922ed([0x74,0x72,0x69,0x61,0x6c])][_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x321cb3[_0x3922ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd2eaf4/0x3e8:0xe10*_0x3872fe;return _0x321cb3[_0x3922ed([0x65,0x78,0x70])]<_0x3bce56;}function _0x14e11(){const _0x568487=_0x321cb3[_0x3922ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x568487)return!0x1;if(_0x568487[_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3922ed([0x2a])))return!0x0;if(_0x568487[_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3922ed([0x52,0x48])))return!0x0;if(_0x568487[_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3922ed([0x52,0x52,0x48]))){if(_0x45cf82())return!0x0;if(_0x41e458()||_0x5ec959())return!0x0;}return!0x1;}function _0x223347(){const _0x258d65=_0x321cb3[_0x3922ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x258d65||0x0==_0x258d65[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x405fd2}=new URL(window[_0x3922ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x258d65[_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405fd2))return!0x0;const _0x4c2164=_0x405fd2[_0x3922ed([0x73,0x70,0x6c,0x69,0x74])](_0x3922ed([0x2e]));return _0x258d65[_0x3922ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b5cc8=>_0x3b5cc8[_0x3922ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3922ed([0x2a])))[_0x3922ed([0x6d,0x61,0x70])](_0x29a8de=>_0x29a8de[_0x3922ed([0x73,0x70,0x6c,0x69,0x74])](_0x3922ed([0x2e])))[_0x3922ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ea18=>_0x11ea18[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c2164[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3922ed([0x6d,0x61,0x70])](_0x32449b=>Array(_0x4c2164[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32449b[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3922ed([0x66,0x69,0x6c,0x6c])](_0x32449b[0x0]===_0x3922ed([0x2a])?_0x3922ed([0x2a]):'')[_0x3922ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32449b))[_0x3922ed([0x73,0x6f,0x6d,0x65])](_0x31d4ae=>_0x4c2164[_0x3922ed([0x65,0x76,0x65,0x72,0x79])]((_0x58cec3,_0x29ab4b)=>_0x31d4ae[_0x29ab4b]===_0x58cec3||_0x31d4ae[_0x29ab4b]===_0x3922ed([0x2a])));}function _0x3c0660(){return _0x1a2576&&_0x4d8679?new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x475b9d,_0x412565)=>{_0x1a2576[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x475b9d,_0x412565),_0x4d8679[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x590a09=>{_0x590a09!=_0x3922ed([0x56,0x61,0x6c,0x69,0x64])&&_0x475b9d(_0x590a09);},_0x412565);}):_0x1a2576||_0x4d8679||_0x3922ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x550e3d(_0x248969,_0x5324c1){return new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0581=>{if(_0x380983())return _0x4e0581(_0x3922ed([0x56,0x61,0x6c,0x69,0x64]));_0x2b7d23(),_0x59de2a[_0x3922ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3922ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf97cd9=!0x1;const _0x5430d6=_0x1ea4a3();function _0x1353e6(_0x5af1){return!!_0x5af1&&(typeof _0x5af1===_0x3922ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af1===_0x3922ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af1[_0x3922ed([0x74,0x68,0x65,0x6e])]===_0x3922ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af1[_0x3922ed([0x63,0x61,0x74,0x63,0x68])]===_0x3922ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17557b(_0x67238b){_0x44ac8e(_0x67238b)[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x52b2cb=>{if(!_0x52b2cb||_0x52b2cb[_0x3922ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3922ed([0x6f,0x6b]))return _0x3922ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d89ab(_0x342a59(_0x5430d6+_0x5324c1))!=_0x52b2cb[_0x3922ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3922ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3922ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x4e0f62=>(_0x5080dc(),_0x4e0f62),()=>{const _0x2b4a6b=_0x2e1583();return null==_0x2b4a6b?(_0x5080dc(),_0x3922ed([0x56,0x61,0x6c,0x69,0x64])):_0x3922ed(_0xd2eaf4-_0x2b4a6b>(0x5778dc5f^_0x13eb31)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x4e0581)[_0x3922ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e0581(_0x3922ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x293320=0x7342b6df^_0x13eb31;function _0x5080dc(){const _0x2b45c4=_0x3922ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d89ab(_0x342a59(_0x248969)),_0x304bd3=_0x4acc65(_0x3d89ab(window[_0x3922ed([0x4d,0x61,0x74,0x68])][_0x3922ed([0x63,0x65,0x69,0x6c])](_0xd2eaf4/_0x293320)));window[_0x3922ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3922ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b45c4,_0x304bd3);}function _0x2e1583(){const _0x37f6b0=_0x3922ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d89ab(_0x342a59(_0x248969)),_0x382d71=window[_0x3922ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3922ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37f6b0);return _0x382d71?window[_0x3922ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4acc65(_0x382d71),0x10)*_0x293320:null;}function _0x44ac8e(_0x5f11cb){return new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c853,_0x510292)=>{_0x5f11cb[_0x3922ed([0x74,0x68,0x65,0x6e])](_0x54c853,_0x510292),window[_0x3922ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x510292,0x73758c9f^_0x13eb31);});}}_0x59de2a[_0x3922ed([0x6f,0x6e])](_0x3922ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c9b23,_0x28ed1b)=>{if(_0x28ed1b[0x0]!=_0x248969)return _0x4e0581(_0x3922ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28ed1b[0x1]={..._0x28ed1b[0x1],[_0x3922ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5430d6};},{[_0x3922ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3922ed([0x68,0x69,0x67,0x68])}),_0x59de2a[_0x3922ed([0x6f,0x6e])](_0x3922ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49e64c=>{_0x1353e6(_0x49e64c[_0x3922ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf97cd9=!0x0,_0x17557b(_0x49e64c[_0x3922ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3922ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3922ed([0x6c,0x6f,0x77])}),_0x522b15[_0x3922ed([0x74,0x68,0x65,0x6e])](()=>{_0xf97cd9||_0x4e0581(_0x3922ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380983(){return _0x59de2a[_0x3922ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3922ed([0x76,0x69,0x65,0x77])][_0x3922ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3922ed([0x61,0x75,0x74,0x6f]);}function _0x2b7d23(){_0x59de2a[_0x3922ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3922ed([0x76,0x69,0x65,0x77])][_0x3922ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3922ed([0x61,0x75,0x74,0x6f]);}}function _0x2f8e08(_0x1d829e){const _0x4f1a8e=[new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeea77=>setTimeout(_0xeea77,0x737d6693^_0x13eb31)),_0x522b15[_0x3922ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e1bb1=>{const _0x577539=0x73745858^_0x13eb31,_0x5e44c6=_0x320779[_0x3922ed([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x58a805(){_0x5e44c6[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x577539&&_0x3e1bb1();}_0x58a805(),_0x5e44c6[_0x3922ed([0x6f,0x6e])](_0x3922ed([0x61,0x64,0x64]),_0x58a805);})),new window[(_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56df6e=>{function _0x2250bc(){for(const _0x293877 in window)if(window[_0x3922ed([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3922ed([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x293877))&&window[_0x293877]==_0x2773aa)return _0x56df6e();_0x59de2a[_0x3922ed([0x73,0x74,0x61,0x74,0x65])]!=_0x3922ed([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3922ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2250bc,0x73744bd7^_0x13eb31);}_0x15ca15(_0x3922ed([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2250bc();})];return window[_0x3922ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3922ed([0x72,0x61,0x63,0x65])](_0x4f1a8e)[_0x3922ed([0x74,0x68,0x65,0x6e])](()=>_0x1d829e);}async function _0x4033dc(){if(await _0x522b15,_0x15ca15(_0x3922ed([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x416725=_0x320779[_0x3922ed([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a1f12=_0x320779[_0x3922ed([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])](_0x416725[_0x3922ed([0x69,0x64])]),_0xc4dea4=_0x118d73(_0x3922ed([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xc4dea4[_0x3922ed([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x416725['id'],_0x3a1f12?_0x3a1f12['id']:null,!0x0),_0xc4dea4[_0x3922ed([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3922ed([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xc4dea4[_0x3922ed([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xc4dea4[_0x3922ed([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1c650b,void(_0xc4dea4[_0x3922ed([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1c650b);}if(_0x15ca15(_0x3922ed([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xf75852=_0x118d73(_0x3922ed([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xf75852[_0x3922ed([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3922ed([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xf75852[_0x3922ed([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xf75852[_0x3922ed([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1c650b,_0xf75852[_0x3922ed([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1c650b;}_0x59de2a[_0x3922ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x3922ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c650b,_0x59de2a[_0x3922ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x3922ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c650b,_0x59de2a[_0x3922ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3922ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45cf82(){return _0x15ca15(_0x3922ed([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x118d73(_0x3922ed([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3922ed([0x73,0x74,0x61,0x74,0x65])]==_0x3922ed([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41e458(){return _0x15ca15(_0x3922ed([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 _0x5ec959(){return _0x15ca15(_0x3922ed([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2d1917(_0x164dc8){const _0x560314=_0x5f25ec();_0x59de2a[_0x560314]=_0x3922ed([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])+_0x164dc8,_0x164dc8[_0x3922ed([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3922ed([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5f25ec()]=_0x2773aa),_0x164dc8!=_0x3922ed([0x56,0x61,0x6c,0x69,0x64])&&_0x4033dc();}function _0x5f25ec(){const _0x14d6f7=window[_0x3922ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3922ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3922ed([0x6e,0x6f,0x77])]())[_0x3922ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3922ed([0x2e]),'');let _0x2f4869=_0x3922ed([0x73]);for(let _0x2f626f=0x0;_0x2f626f<_0x14d6f7[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f626f+=0x2){let _0xa86c5c=window[_0x3922ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14d6f7[_0x3922ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f626f,_0x2f626f+0x2));_0xa86c5c>=_0x3ed3f8[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa86c5c-=_0x3ed3f8[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f4869+=_0x3ed3f8[_0xa86c5c];}return _0x2f4869;}function _0x79e5f0(){const _0x421d1b=_0x47fcf0[_0x3922ed([0x73,0x70,0x6c,0x69,0x74])](_0x3922ed([0x2e]));if(0x3!=_0x421d1b[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57e740(_0x421d1b[0x1]);function _0x57e740(_0x3b5b8a){const _0x2121a9=_0x142583(_0x3b5b8a);return _0x2121a9&&_0x2a1931()?_0x2121a9:null;function _0x2a1931(){const _0x1d54a7=_0x2121a9[_0x3922ed([0x6a,0x74,0x69])],_0x1b6ccf=window[_0x3922ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d54a7[_0x3922ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d54a7[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e5d21={..._0x2121a9,[_0x3922ed([0x6a,0x74,0x69])]:_0x1d54a7[_0x3922ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d54a7[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e5d21[_0x3922ed([0x76,0x63])],_0x342a59(_0x2e5d21)==_0x1b6ccf;}}}async function _0xd2eca5(){let _0x322057=!0x0;try{const _0x4e59fb=_0x47fcf0[_0x3922ed([0x73,0x70,0x6c,0x69,0x74])](_0x3922ed([0x2e])),[_0x1e3a9e,_0x734a9f,_0x553fc3]=_0x4e59fb;return _0x382c58(_0x1e3a9e),await _0x2d7781(_0x1e3a9e,_0x734a9f,_0x553fc3),_0x322057;}catch{return!0x1;}function _0x382c58(_0x200e22){const _0x2b8786=_0x142583(_0x200e22);_0x2b8786&&_0x2b8786[_0x3922ed([0x61,0x6c,0x67])]==_0x3922ed([0x45,0x53,0x32,0x35,0x36])||(_0x322057=!0x1);}async function _0x2d7781(_0x1c399b,_0x438905,_0x5a8e59){const _0x5398de=window[_0x3922ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3922ed([0x66,0x72,0x6f,0x6d])](_0x25902c(_0x5a8e59),_0x3424f5=>_0x3424f5[_0x3922ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4fab73=new window[(_0x3922ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3922ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c399b+_0x3922ed([0x2e])+_0x438905),_0x6fed3c=window[_0x3922ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3922ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6fed3c)return;const _0x3b641f=await _0x6fed3c[_0x3922ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3922ed([0x6a,0x77,0x6b]),_0x2d4d3d,{[_0x3922ed([0x6e,0x61,0x6d,0x65])]:_0x3922ed([0x45,0x43,0x44,0x53,0x41]),[_0x3922ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3922ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3922ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6fed3c[_0x3922ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3922ed([0x6e,0x61,0x6d,0x65])]:_0x3922ed([0x45,0x43,0x44,0x53,0x41]),[_0x3922ed([0x68,0x61,0x73,0x68])]:{[_0x3922ed([0x6e,0x61,0x6d,0x65])]:_0x3922ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b641f,_0x5398de,_0x4fab73)||(_0x322057=!0x1);}}function _0x142583(_0x800a8c){return _0x800a8c[_0x3922ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3922ed([0x65,0x79]))?JSON[_0x3922ed([0x70,0x61,0x72,0x73,0x65])](_0x25902c(_0x800a8c)):null;}function _0x25902c(_0x34d4c6){return window[_0x3922ed([0x61,0x74,0x6f,0x62])](_0x34d4c6[_0x3922ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3922ed([0x2b]))[_0x3922ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3922ed([0x2f])));}function _0x342a59(_0x12ed39){let _0x179836=0x1505;function _0x1cbf81(_0x40cc47){for(let _0x214849=0x0;_0x214849<_0x40cc47[_0x3922ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x214849++){const _0x1cf78e=_0x40cc47[_0x3922ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x214849);_0x179836=(_0x179836<<0x5)+_0x179836+_0x1cf78e,_0x179836&=_0x179836;}}function _0x54bf17(_0x381017){Array[_0x3922ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x381017)?_0x381017[_0x3922ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54bf17):_0x381017&&typeof _0x381017==_0x3922ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3922ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x381017)[_0x3922ed([0x73,0x6f,0x72,0x74])]()[_0x3922ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x521bd6,_0xc48aca])=>{_0x1cbf81(_0x521bd6),_0x54bf17(_0xc48aca);}):_0x1cbf81(window[_0x3922ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x381017));}return _0x54bf17(_0x12ed39),_0x179836>>>0x0;}function _0x3d89ab(_0x4da117){return _0x4da117[_0x3922ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3922ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3922ed([0x30]));}function _0x4acc65(_0x2e814f){return _0x2e814f[_0x3922ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3922ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3922ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x15ca15(_0x30193f){return _0x59de2a[_0x3922ed([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3922ed([0x68,0x61,0x73])](_0x30193f);}function _0x118d73(_0x1d9fec){return _0x59de2a[_0x3922ed([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3922ed([0x67,0x65,0x74])](_0x1d9fec);}function _0x1c650b(){}function _0x3922ed(_0x41a49d){return _0x41a49d['map'](_0x55806e=>String['fromCharCode'](_0x55806e))['join']('');}_0x2d1917(await _0x3f95d1());}(this);}['createRevision'](_0x16d715){const _0x44ad1f=this['editor']['plugins']['get']('Users');return new I({'id':_0x16d715['id'],'name':_0x16d715['name'],'creator':_0x16d715['creatorId']?_0x44ad1f['getUser'](_0x16d715['creatorId']):null,'diffData':_0x16d715['diffData']||_0x16d715['data'],'authors':_0x16d715['authorsIds']['map'](_0x4a441f=>_0x44ad1f['getUser'](_0x4a441f)),'createdAt':new Date(_0x16d715['createdAt']),'attributes':_0x16d715['attributes'],'fromVersion':_0x16d715['fromVersion'],'toVersion':_0x16d715['toVersion']});}['addRevision'](_0x5cf23d,_0x3557e4=0x0){this['_revisions']['add'](_0x5cf23d,_0x3557e4);}['getRevision'](_0x417a99){return this['_revisions']['get'](_0x417a99);}['getRevisions'](_0xa77457={'toJSON':!0x1}){const _0x369adb=Array['from'](this['_revisions']);return _0x369adb['reverse'](),_0xa77457['toJSON']?_0x369adb['map'](_0x4d2462=>_0x4d2462['toJSON']()):_0x369adb;}['getIndex'](_0x21c093){return this['_revisions']['getIndex'](_0x21c093);}['getEarlierVisibleRevision'](_0x258af1){const [,_0x232ce9]=this['getRevisionsIterator'](_0x258af1,{'direction':'earlier'});return _0x232ce9;}['getLaterVisibleRevision'](_0x4634be){const [,_0x45b58e]=this['getRevisionsIterator'](_0x4634be,{'direction':'later'});return _0x45b58e;}['getRevisionsInDiff'](_0x5034e3){const _0x511dc4=[];for(const _0x182249 of this['getRevisionsIterator'](_0x5034e3['newRevisionId']))if(_0x511dc4['push'](_0x182249),_0x182249['id']===_0x5034e3['oldRevisionId'])break;return _0x511dc4;}*['getRevisionsIterator'](_0x1b6498,{direction:_0x785d19='earlier',filter:_0x2d6492=()=>!0x0}={}){const _0x2db76d='earlier'===_0x785d19?0x1:-0x1;let _0x398907=this['_revisions']['get'](_0x1b6498),_0x2330c8=this['getIndex'](_0x398907);for(yield _0x398907;_0x398907;){if(_0x2330c8+=_0x2db76d,_0x398907=this['getRevision'](_0x2330c8),!_0x398907)return;_0x2d6492(_0x398907)&&(yield _0x398907);}}}class $ extends _0xe82639{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x6581e6,'c'],[_0x1c296a,'a'],[_0x133830,'e'],[_0x1ea83e,'r'],[_0x5b4fb8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x6581e6],['a',_0x1c296a],['e',_0x133830],['r',_0x1ea83e],['u',_0x5b4fb8]]);async['loadRevisionData'](_0x509930,_0x11a6ef){if(_0x509930['diffData']||!_0x11a6ef)return;const _0x52bec8=this['editor']['config']['get']('collaboration.channelId'),_0xe6f654=await _0x11a6ef['getRevision']({'channelId':_0x52bec8,'revisionId':_0x509930['id']});_0x509930['diffData']=_0xe6f654['diffData'];}['getRevisionDocumentData'](_0x205ee5){const _0x55d858={};for(const _0x45e647 in _0x205ee5['diffData']){if(_0x205ee5['diffData'][_0x45e647]['attachChange']&&!_0x205ee5['diffData'][_0x45e647]['attachChange']['isAttached'])continue;const _0x1c90ed=this['_removeRevisionMarkers'](JSON['parse'](_0x205ee5['diffData'][_0x45e647]['insertions'])),_0x12c7fc=this['editor']['editing']['view']['document'],_0x165776=new _0x274924(_0x12c7fc,_0x1c90ed['map'](_0x341d37=>this['_getViewFromDiffObj'](_0x341d37,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x55d858[_0x45e647]=this['editor']['data']['processor']['toData'](_0x165776),this['editor']['data']['processor']['useFillerType']('default');}return _0x55d858;}['getRevisionRootsAttributes'](_0x3b4dc0){const _0x2371ea={};for(const _0x4cb525 in _0x3b4dc0['diffData'])_0x3b4dc0['diffData'][_0x4cb525]['attachChange']&&!_0x3b4dc0['diffData'][_0x4cb525]['attachChange']['isAttached']||(_0x2371ea[_0x4cb525]=_0x3b4dc0['diffData'][_0x4cb525]['attributesAfter']||{});return _0x2371ea;}['_getTypeCharForViewElement'](_0x1602fb){return this['_viewClassToTypeChar']['get'](_0x1602fb['constructor']);}['_getViewFromDiffObj'](_0x155f57,_0x54fbce){const _0x3c74c9=this['editor']['editing']['view']['document'];if('string'==typeof _0x155f57)return new _0x217ea8(_0x3c74c9,_0x155f57);{let _0x28b840,_0x388a0a;_0x388a0a='u'==_0x155f57['type']||'r'==_0x155f57['type']?[]:_0x155f57['children']['map'](_0x385df3=>this['_getViewFromDiffObj'](_0x385df3,_0x54fbce));const _0xf0fc81=this['_typeCharToViewClass']['get'](_0x155f57['type'])||_0x43e7b2,_0x2cd6ac=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x28b840=new _0xf0fc81(_0x3c74c9,_0x155f57['name'],_0x155f57['attributes'],_0x388a0a),'u'==_0x155f57['type']&&_0x155f57['children'][0x0]){const _0x2d6739=_0x155f57['children'][0x0];if(_0x28b840['render']=function(_0x5a75f2){const _0xbea804=_0x5a75f2['createElement']('div');return _0xbea804['innerHTML']=_0x2d6739,_0xbea804['childNodes'][0x0];},_0x54fbce){const _0x54ead0=new _0x274924(_0x3c74c9);_0x54ead0['_appendChild'](_0x28b840);const _0x46a7dc=Array['from'](_0x2cd6ac['viewChildrenToDom'](_0x54ead0,{'bind':!0x1})),_0x19ff72=_0x2cd6ac['domDocument']['createElement']('div');_0x19ff72['append'](..._0x46a7dc),_0x28b840=Array['from'](_0x2cd6ac['domChildrenToView'](_0x19ff72))[0x0];}}else{if('r'==_0x155f57['type']&&_0x155f57['children'][0x0]){const _0x595ef0=_0x155f57['children'][0x0];if(_0x28b840['render']=function(_0x568b85){_0x568b85['innerHTML']=_0x595ef0;},_0x54fbce){const _0x1f05a7=new _0x274924(_0x3c74c9);_0x1f05a7['_appendChild'](_0x28b840);const _0xb1b532=Array['from'](_0x2cd6ac['viewChildrenToDom'](_0x1f05a7,{'bind':!0x1})),_0x583cfa=_0x2cd6ac['domDocument']['createElement']('div');_0x583cfa['append'](..._0xb1b532);const _0xf57a6a=Array['from'](_0x2cd6ac['domChildrenToView'](_0x583cfa));_0xf57a6a['length']>0x1?_0x28b840['_appendChild'](_0xf57a6a):_0x28b840=_0xf57a6a[0x0];}}}if(_0x155f57['customProperties']){for(const [_0x125c2b,_0x31ae3e]of _0x155f57['customProperties'])_0x28b840['_setCustomProperty'](_0x125c2b,_0x31ae3e);}const _0x3daec5=void 0x0===_0x155f57['fillerOffset']?null:_0x155f57['fillerOffset'];return null!==_0x3daec5&&(_0x28b840['getFillerOffset']=()=>_0x3daec5),_0x28b840;}}['_makeModelFromViewString'](_0x428deb){const _0x1b8f7c=JSON['parse'](_0x428deb),_0x54f549=this['editor']['editing']['view']['document'],_0x2ec409=new _0x274924(_0x54f549,_0x1b8f7c['map'](_0x44e330=>this['_getViewFromDiffObj'](_0x44e330,!0x0)));return this['editor']['data']['toModel'](_0x2ec409);}['_removeRevisionMarkers'](_0x576ed0){return(_0x576ed0=_0x576ed0['filter'](_0x1a290e=>!_0x1a290e['name']||'revision-start'!==_0x1a290e['name']&&'revision-end'!==_0x1a290e['name']))['forEach'](_0x3a0c1b=>{'string'!=typeof _0x3a0c1b&&(_0x3a0c1b['children']=this['_removeRevisionMarkers'](_0x3a0c1b['children']),_0x3a0c1b['attributes']=_0x3a0c1b['attributes']['filter'](_0x38c59e=>!_0x38c59e[0x0]['startsWith']('data-revision-')));}),_0x576ed0;}}function R(_0x1065d0,_0x2f6fd1,_0x29a982){const t=_0x1065d0['t'];switch(_0x2f6fd1){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'},_0x29a982);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29a982);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0xe82639{['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[_0x475835,S,$,_0x5b1f37];}constructor(_0xd9c296){super(_0xd9c296),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x412557=_0x1ea4a3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x412557},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 _0x4418ab=this['repository']['getRevision'](0x0),_0x12db73=_0x4418ab&&null===_0x4418ab['creator']?_0x4418ab:null;if(this['_continueCurrentRevision']=!!_0x12db73&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2f3817=this['_source']['getCurrentRevisionId'](),_0x5a15b0=this['repository']['getRevision'](_0x2f3817);if(_0x5a15b0)this['_startingVersion']=_0x5a15b0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3eca6d=this['_source']['history']['_operations']['find'](_0x8f02cc=>!_0x8f02cc['_isInit']),_0x302b1a=_0x3eca6d?_0x3eca6d['baseVersion']:this['_source']['history']['version'];_0x4418ab?(_0x4418ab['toVersion']<_0x302b1a&&_0x4418ab['_update']({'toVersion':_0x302b1a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x12db73['id'],this['_startingVersion']=_0x12db73['fromVersion']):(this['_startingVersion']=_0x4418ab['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x302b1a,this['_continueCurrentRevision']=!0x1);}}else _0x12db73&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x12db73['toVersion'],this['editor']['model']['document']['history']['version']),_0x12db73['fromVersion']===_0x12db73['toVersion']?(0x0!==_0x12db73['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x12db73['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x12db73['id'],this['_startingVersion']=_0x12db73['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',_0x25b931=>!_0x25b931),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x338620=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfe098a;for(const _0x3a0a72 in _0x338620){const _0x3046ad=_0x3a0a72,_0x55d2de=_0x338620[_0x3046ad];if('revisionHistoryLicenseKeyValid'==_0x55d2de||'revisionHistoryLicenseKeyInvalid'==_0x55d2de||'revisionHistoryLicenseKeyExpired'==_0x55d2de||'revisionHistoryLicenseKeyDomainLimit'==_0x55d2de||'revisionHistoryLicenseKeyNotAllowed'==_0x55d2de||'revisionHistoryLicenseKeyEvaluationLimit'==_0x55d2de||'revisionHistoryLicenseKeyTrialLimit'==_0x55d2de||'revisionHistoryLicenseKeyUsageLimit'==_0x55d2de){delete _0x338620[_0x3046ad],_0xfe098a=_0x55d2de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xfe098a&&_0x338620['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xfe098a&&_0x338620['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xfe098a&&_0x338620['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xfe098a&&_0x338620['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xfe098a&&_0x338620['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xfe098a&&_0x338620['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xfe098a&&_0x338620['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5ab4eb=this['repository']['getRevision'](0x0),_0x5aa50c=await this['getRevisionDocumentData'](_0x5ab4eb),_0x30c64d=await this['getRevisionRootsAttributes'](_0x5ab4eb);this['_replaceEditorDataWithRevisionData'](_0x5aa50c,_0x30c64d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3b0ba7){this['_source']=_0x3b0ba7;}async['update'](){const _0x57183e=await this['_source']['getLatestVersion']();if(_0x57183e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x502542=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x57183e});_0x502542['authors']=_0x502542['authorsIds']['map'](_0x128914=>this['editor']['plugins']['get']('Users')['getUser'](_0x128914)),this['currentRevision']['_update'](_0x502542);}}async['saveRevision'](_0x1d6313={},_0x2c622e=null){const _0x3c938e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2c622e>this['currentRevision']['toVersion']&&(_0x2c622e=null),null===_0x2c622e&&(_0x2c622e=await this['_source']['getLatestVersion']());const _0x5edef7=this['_getFromVersion'](_0x2c622e),_0x566b0f=this['buildRevisionData']({'from':_0x5edef7,'to':_0x2c622e});if(this['currentRevision']['toVersion']<_0x2c622e){const _0x444ab7=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2c622e,'to':_0x2c622e});_0x444ab7['authors']=[],_0x444ab7['authorsIds']=[],_0x444ab7['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x444ab7,!0x0),delete _0x444ab7['authors'],_0x3c938e['push'](_0x444ab7);}_0x1d6313['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1d6313['name']=_0x1d6313['name']||null,_0x1d6313['id']=_0x1d6313['id']||_0x1ea4a3(),_0x1d6313={..._0x1d6313,..._0x566b0f};const _0x4d6b65=this['addRevisionData'](_0x1d6313);_0x3c938e['push'](_0x1d6313);const _0x2030a9=this['repository']['getIndex'](_0x4d6b65);if(0x0!==_0x2030a9){const _0x525967=this['repository']['getRevision'](_0x2030a9-0x1);if(_0x525967['fromVersion']!==_0x2c622e){const _0xbb7339=this['_revisionDataBuilder']['getData'](_0x2c622e,_0x525967['toVersion']),_0x5178ba={'id':_0x525967['id'],'diffData':_0xbb7339['diffData'],'authorsIds':_0xbb7339['authorsIds'],'authors':_0xbb7339['authorsIds']['map'](_0x3fee3b=>this['editor']['plugins']['get']('Users')['getUser'](_0x3fee3b)),'fromVersion':_0x2c622e};_0x525967===this['currentRevision']&&(_0x5178ba['createdAt']=new Date(_0x1d6313['createdAt']['getTime']()+0xa)),_0x525967['_update'](_0x5178ba,!0x0),delete _0x5178ba['authors'],_0x3c938e['push'](_0x5178ba);}}if(this['adapter']){for(const _0x5f1fc2 of _0x3c938e)this['_bufferUpdate'](_0x5f1fc2['id'],_0x5f1fc2,!0x0);this['sendBufferedUpdates']();}return _0x4d6b65;}['addRevisionData'](_0x5ce6fc){const _0x1c02b2=this['repository']['createRevision'](_0x5ce6fc);return this['adapter']&&_0x1c02b2['on']('_update',(_0x22bcb6,_0x49687c,_0x2438c3)=>{_0x2438c3||(this['_bufferUpdate'](_0x49687c['id'],_0x49687c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c02b2,this['_findInsertionIndex'](_0x1c02b2)),_0x1c02b2;}async['getRevisionDocumentData'](_0x3a5cb2){return await this['_utils']['loadRevisionData'](_0x3a5cb2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3a5cb2);}async['getRevisionRootsAttributes'](_0x54d190){return await this['_utils']['loadRevisionData'](_0x54d190,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x54d190);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x429b02=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x41ea27=0x0;_0x41ea27<_0x429b02['length'];_0x41ea27++){const _0x2efee0=_0x429b02[_0x41ea27];let _0x2e167a=!0x1;for(const _0x117039 of Object['keys'](_0x2efee0))void 0x0===_0x2efee0[_0x117039]?delete _0x2efee0[_0x117039]:'id'!==_0x117039&&(_0x2e167a=!0x0);_0x2e167a||(_0x429b02[_0x41ea27]=null);}if(_0x429b02=_0x429b02['filter'](_0x5b59b5=>null!==_0x5b59b5),!_0x429b02['length'])return;for(let _0x4e9368=0x0;_0x4e9368<_0x429b02['length'];_0x4e9368++){const _0x11b771=_0x429b02[_0x4e9368];void 0x0!==_0x11b771['fromVersion']&&void 0x0===_0x11b771['toVersion']&&(_0x11b771['toVersion']=this['repository']['getRevision'](_0x11b771['id'])['toVersion']),void 0x0!==_0x11b771['toVersion']&&void 0x0===_0x11b771['fromVersion']&&(_0x11b771['fromVersion']=this['repository']['getRevision'](_0x11b771['id'])['fromVersion']);}const _0x22142a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x429b02,_0x22142a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x78eec=>{if(_0x78eec){for(const _0x583b5e of _0x78eec)this['setRevisionData']({'id':_0x583b5e['id'],'createdAt':_0x583b5e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x50b419=null,from:_0x36a931=null,to:_0x5046b7=null}){_0x36a931=null!==_0x36a931?_0x36a931:_0x50b419['fromVersion'],_0x5046b7=null!==_0x5046b7?_0x5046b7:_0x50b419['toVersion'];const _0x461e3e=this['_revisionDataBuilder']['getData'](_0x36a931,_0x5046b7),_0x50f67c={'diffData':_0x461e3e['diffData'],'authorsIds':_0x461e3e['authorsIds'],'fromVersion':_0x36a931,'toVersion':_0x5046b7};if(!_0x50b419||_0x5046b7!==_0x50b419['toVersion']){const _0x4ec614=_0x5046b7-0x1,_0x4b5ac3=this['_source']['history']['getOperation'](_0x4ec614);_0x50f67c['createdAt']=_0x4b5ac3&&_0x4b5ac3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x36a931===this['_loadedStateData']['fromVersion']){for(const _0x24ea4f of this['_loadedStateData']['authors'])_0x50f67c['authorsIds']['includes'](_0x24ea4f['id'])||_0x50f67c['authorsIds']['push'](_0x24ea4f['id']);}return _0x50f67c;}['_bufferUpdate'](_0x14c97a,_0x4e72b2,_0x1873cf){if(this['_bufferedUpdates']['has'](_0x14c97a)){const _0x107bb5=this['_bufferedUpdates']['get'](_0x14c97a);_0x4e72b2=_0x1873cf?{..._0x107bb5,..._0x4e72b2}:{..._0x4e72b2,..._0x107bb5};}this['_bufferedUpdates']['set'](_0x14c97a,_0x4e72b2);}['setRevisionData'](_0x2dece5){const _0x19baed=this['repository']['getRevision'](_0x2dece5['id']);if(_0x2dece5['createdAt']&&(_0x2dece5['createdAt']=new Date(_0x2dece5['createdAt'])),_0x2dece5['authorsIds']){const _0xdf0df3=this['editor']['plugins']['get']('Users');_0x2dece5['authors']=_0x2dece5['authorsIds']['map'](_0x883d6a=>_0xdf0df3['getUser'](_0x883d6a));}_0x19baed['_update'](_0x2dece5,!0x0);}['_createInitialRevision'](_0x4158f0){const _0x411528=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x411528)this['_initialRevisionId']=_0x411528['id'];else{const _0x28f707=!this['editor']['model']['document']['roots']['find'](_0x1ebaff=>this['editor']['model']['hasContent'](_0x1ebaff)),_0x433ae8=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c90cf=R(this['editor']['locale'],_0x28f707?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4158f0,'to':_0x4158f0,'id':this['_initialRevisionId'],'name':_0x2c90cf,'creatorId':_0x433ae8});}}['_createCurrentRevision'](_0x1e3a20){const _0x5bf389=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5bf389),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e3a20,'to':_0x1e3a20,'id':_0x5bf389,'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'](_0x42f516,_0x3d6425){let _0x459de5=this['editor']['config']['get']('initialData'),_0x4c84c0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x459de5){_0x459de5={};for(const _0x19eb0a of this['editor']['model']['document']['getRootNames']())_0x459de5[_0x19eb0a]='';}if('string'==typeof _0x459de5&&(_0x459de5={'main':_0x459de5}),void 0x0===_0x4c84c0){_0x4c84c0={};for(const _0x417372 of this['editor']['model']['document']['getRootNames']())_0x4c84c0[_0x417372]={};}let _0x56465c=!0x1;const _0x53e9e8=Object['keys'](_0x459de5),_0x4c5f5b=Object['keys'](_0x42f516);for(const _0x441725 of _0x53e9e8){if(_0x459de5[_0x441725]!==_0x42f516[_0x441725]&&''!==_0x459de5[_0x441725]['trim']()){_0x56465c=!0x0;break;}if(!_0x429990(_0x4c84c0[_0x441725],_0x3d6425[_0x441725])&&Object['keys'](_0x4c84c0[_0x441725])['length']>0x0){_0x56465c=!0x0;break;}}_0x56465c||(_0x56465c=_0x4c5f5b['some'](_0x500187=>!this['editor']['model']['document']['getRoot'](_0x500187))),_0x56465c&&_0x56f6c5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x459de5,'editorRootsAttributes':_0x4c84c0,'revisionData':_0x42f516,'revisionRootsAttributes':_0x3d6425}),this['editor']['config']['set']('initialData',_0x42f516),this['editor']['config']['set']('rootsAttributes',_0x3d6425);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x27e81a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x27e81a['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4c3884){const _0x84e860=this['repository']['getRevisions']();_0x84e860['reverse']();let _0x25d7a8=0x0;for(;_0x25d7a8<_0x84e860['length'];){const _0xa7f305=_0x84e860[_0x25d7a8];if(_0xa7f305===this['currentRevision']){_0x25d7a8++;continue;}if(_0xa7f305['id']===this['_initialRevisionId'])break;const _0x5513ae=_0x4c3884['toVersion']-_0xa7f305['toVersion']||_0x4c3884['fromVersion']-_0xa7f305['fromVersion'];if(_0x5513ae>0x0)break;if(_0x5513ae<0x0)_0x25d7a8++;else{if(!_0x4c3884['creator']&&_0xa7f305['creator'])break;if(_0xa7f305['creator']||!_0x4c3884['creator']){if(_0x4c3884['createdAt']>_0xa7f305['createdAt'])break;_0x25d7a8++;}else _0x25d7a8++;}}return _0x25d7a8;}['_getFromVersion'](_0x58a25d){const _0x2d4078=this['repository']['getRevisions']();_0x2d4078['reverse'](),_0x2d4078['shift']();const _0x107e48=_0x2d4078['find'](_0x1fa9b1=>_0x1fa9b1['toVersion']<=_0x58a25d)['toVersion'];return _0x107e48<this['_startingVersion']?this['_startingVersion']:_0x107e48;}['_makeRevision']({name:_0x31a205,from:_0x483668,to:_0x25a43b,creatorId:_0x2ac194,id:_0x2ebf21}){const _0x43218a=this['buildRevisionData']({'from':_0x483668,'to':_0x25a43b});_0x43218a['name']=_0x31a205,_0x43218a['creatorId']=_0x2ac194,_0x43218a['id']=_0x2ebf21;const _0x2ad203=this['addRevisionData'](_0x43218a);return this['adapter']&&this['_bufferUpdate'](_0x43218a['id'],_0x43218a,!0x0),_0x2ad203;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xfa7718){this['editor']=_0xfa7718,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'](_0x6ae3fa){this['source']=_0x6ae3fa;const _0x2a5c7a=new Map(),_0x1b8398=new Map(),_0x52b723=this['editor']['model']['document']['roots']['map'](_0xf73b28=>_0xf73b28['rootName']);for(const _0x31a9df of _0x52b723){const _0x32e69d=this['editor']['model']['document']['getRoot'](_0x31a9df),_0x5a8d29=x(_0x32e69d);_0x2a5c7a['set'](_0x31a9df,_0x5a8d29),_0x1b8398['set'](_0x31a9df,Object['fromEntries'](_0x32e69d['getAttributes']()));}const _0x153688=Array['from'](this['editor']['model']['markers'])['map'](_0xd2ca2f=>[_0xd2ca2f['name'],_0xd2ca2f['getRange']()]),_0x440274=this['source']['version'];this['_saveMetaData'](_0x440274,_0x2a5c7a,_0x153688,_0x1b8398),this['_startingRevisionId']=this['_revisionId'];const _0x5caa4f=new Map(),_0x2648aa=new Map();for(const _0x1eaef5 of _0x52b723){const _0x56f33c=N(_0x1eaef5);_0x5caa4f['set'](_0x1eaef5,_0x56f33c),_0x2648aa['set'](_0x1eaef5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5caa4f,[],_0x2648aa);}['getData'](_0x2d0991,_0x278aee){if(this['_lastFrom']===_0x2d0991&&this['_lastTo']<=_0x278aee)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x278aee,!0x0);else{if(!this['_savedMetaData']['has'](_0x2d0991)){const _0x44acf9=this['_getPreviousFrom'](_0x2d0991);this['_calculateMetaData'](_0x44acf9,_0x2d0991,!0x1);}this['_calculateMetaData'](_0x2d0991,_0x278aee,!0x0);}return this['_lastFrom']=_0x2d0991,this['_lastTo']=_0x278aee,this['_getState']();}['loadState'](_0x3a32a4){if(!this['_savedMetaData']['has'](_0x3a32a4['fromVersion'])){const _0x501087=this['_getPreviousFrom'](_0x3a32a4['fromVersion']);this['_calculateMetaData'](_0x501087,_0x3a32a4['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3a32a4['fromVersion'],_0x3a32a4['toVersion'],!0x1);const _0x2ad5b2=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3a32a4['fromVersion'],this['_lastTo']=_0x3a32a4['toVersion'];for(const _0x5cfa09 in _0x3a32a4['diffData']){const _0x3a2e56=_0x3a32a4['diffData'][_0x5cfa09]['attachChange'],_0x264aed=_0x3a6c76(_0x3a32a4['diffData'][_0x5cfa09]['attributesBefore'])||{},_0x2dce09=_0x2ad5b2['_makeModelFromViewString'](_0x3a32a4['diffData'][_0x5cfa09]['deletions']);_0x2dce09['rootName']=_0x5cfa09,_0x2dce09['_isAttached']=!_0x3a2e56||!_0x3a2e56['isAttached'],_0x2dce09['isAttached']=()=>_0x2dce09['_isAttached'],this['_baseRoots']['set'](_0x5cfa09,_0x2dce09),this['_baseRootsAttributes']['set'](_0x5cfa09,_0x264aed),_0x3a2e56&&this['_touchedRoots']['set'](_0x5cfa09,_0x3a2e56);const _0x208d1c=this['_makeIdsRoot'](_0x2dce09);this['_baseIdsRoots']['set'](_0x5cfa09,_0x208d1c);for(const [_0x1e7078,_0x4f971f]of _0x2dce09['markers']){if(!_0x1e7078['startsWith']('revision:'))continue;const _0x57601b=_0x1e7078['split'](':')[0x2];for(const _0x2e7514 of _0x4f971f['getWalker']({'singleCharacters':!0x0})){const _0x32b625=this['_getVidAttributeName'](_0x2e7514),_0x5447e7='elementEnd'==_0x2e7514['type']?_0x2e7514['previousPosition']['path']['slice'](0x0,-0x1):_0x2e7514['previousPosition']['path'],_0x5e15b3=_0x208d1c['getNodeByPath'](_0x5447e7)['getAttribute'](_0x32b625);this['_touched']['set'](_0x5e15b3,{'userId':_0x57601b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4dd842=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x484715=>!this['_touched']['has'](_0x484715));let _0x44e9b8=0x0;const _0x511dca=new Map();for(const _0x413930 in _0x3a32a4['diffData']){const _0x4e7233=_0x3a32a4['diffData'][_0x413930]['attachChange'],_0x182668=_0x3a6c76(_0x3a32a4['diffData'][_0x413930]['attributesAfter'])||{},_0x6906b7=_0x2ad5b2['_makeModelFromViewString'](_0x3a32a4['diffData'][_0x413930]['insertions']);_0x6906b7['rootName']=_0x413930,_0x6906b7['_isAttached']=!_0x4e7233||_0x4e7233['isAttached'],_0x6906b7['isAttached']=()=>_0x6906b7['_isAttached'],this['_diffRoots']['set'](_0x413930,_0x6906b7),this['_diffRootsAttributes']['set'](_0x413930,_0x182668);const _0x307ab2=this['_makeIdsRoot'](_0x6906b7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x413930,_0x307ab2),_0x511dca['set'](_0x413930,_0x6906b7['isAttached']()?_0x182668:{});for(const [_0x42d506,_0x257898]of _0x6906b7['markers']){if(!_0x42d506['startsWith']('revision:'))continue;const _0x3f1ac9=_0x42d506['split'](':')[0x2];for(const _0xf133f0 of _0x257898['getWalker']({'singleCharacters':!0x0})){const _0x2305c3=this['_getVidAttributeName'](_0xf133f0),_0x4791cd=this['_revisionId']++,_0x31f465='elementEnd'==_0xf133f0['type']?_0xf133f0['previousPosition']['path']['slice'](0x0,-0x1):_0xf133f0['previousPosition']['path'];_0x307ab2['getNodeByPath'](_0x31f465)['_setAttribute'](_0x2305c3,_0x4791cd),this['_touched']['set'](_0x4791cd,{'userId':_0x3f1ac9});}}for(const _0x4d4bbd of this['editor']['model']['createRangeIn'](_0x6906b7)['getWalker']({'singleCharacters':!0x0})){const _0x3479ee=this['_getVidAttributeName'](_0x4d4bbd),_0x2d59af='elementEnd'==_0x4d4bbd['type']?_0x4d4bbd['previousPosition']['path']['slice'](0x0,-0x1):_0x4d4bbd['previousPosition']['path'],_0x243b50=_0x307ab2['getNodeByPath'](_0x2d59af);_0x243b50['getAttribute'](_0x3479ee)>0x0||_0x243b50['_setAttribute'](_0x3479ee,_0x4dd842[_0x44e9b8++]);}for(const [_0x1cfb61,_0x5d9844]of _0x6906b7['markers'])_0x1cfb61['startsWith']('revision:')||this['_markers']['set'](_0x1cfb61,_0x5d9844);}const {roots:_0x5650f4}=this['_savedMetaData']['get'](_0x3a32a4['fromVersion']),{roots:_0x13d1fc}=this['_savedMetaData']['get'](_0x3a32a4['toVersion']),_0x13b87f=x(_0x5650f4['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x13b87f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13b87f,Number['NEGATIVE_INFINITY']));const _0x237641=x(_0x13d1fc['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x237641),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x237641));const _0x357eb7=Array['from'](this['_diffRoots'])['map'](([_0x2018cf,_0x55df26])=>[_0x2018cf,x(_0x55df26)]);this['_saveMetaData'](this['_lastTo'],_0x357eb7,this['_markers'],_0x511dca);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x200121,_0xef802e,_0x430096,_0x454b36){const _0x14bb78=new Map(_0xef802e),_0x522f8a=new Map(_0x3a6c76(_0x454b36)),_0x11fcd9=new Map();for(const [_0x25e73c,_0x41cf67]of _0x430096)_0x11fcd9['set'](_0x25e73c,{'start':_0x41cf67['start']['clone'](),'end':_0x41cf67['end']['clone'](),'rootName':_0x41cf67['root']['rootName']});this['_savedMetaData']['set'](_0x200121,{'roots':_0x14bb78,'markers':_0x11fcd9,'rootsAttributes':_0x522f8a});}['_removeMetaData'](_0x28a78d){this['_savedMetaData']['delete'](_0x28a78d);}['_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'](_0x4eed96,_0x513da4=null){let _0x3400f6=null;_0x4eed96['is']('documentFragment')||(_0x3400f6=new _0x2fac84(_0x4eed96['name'],{'vid_start':null===_0x513da4?this['_revisionId']++:_0x513da4++}));const _0x3264be=[];for(const _0x3311bf of _0x4eed96['getChildren']())if(_0x3311bf['is']('element')){_0x3264be['push'](this['_makeIdsRoot'](_0x3311bf,_0x513da4));const _0x335d71=_0x3264be[_0x3264be['length']-0x1];null!==_0x513da4&&(_0x513da4=_0x335d71['is']('element','$text')?_0x335d71['getAttribute']('vid')+0x1:_0x335d71['getAttribute']('vid_end')+0x1);}else{for(let _0x86f70e=0x0;_0x86f70e<_0x3311bf['offsetSize'];_0x86f70e++)_0x3264be['push'](new _0x2fac84('$text',{'vid':null===_0x513da4?this['_revisionId']++:_0x513da4++}));}if(_0x4eed96['is']('documentFragment')){const _0x32bd30=N(_0x4eed96['rootName']);return _0x32bd30['_insertChild'](0x0,_0x3264be),_0x32bd30;}return _0x3400f6['_setAttribute']('vid_end',null===_0x513da4?this['_revisionId']++:_0x513da4++),_0x3400f6['_insertChild'](0x0,_0x3264be),_0x3400f6;}['_calculateMetaData'](_0x3fa41b,_0x11b9c3,_0x1f8c13){this['_reset']();const {roots:_0x44f241,markers:_0x3ecfd1,rootsAttributes:_0x17aeb2}=this['_savedMetaData']['get'](_0x3fa41b);this['_baseRoots']=new Map(_0x44f241),this['_baseRootsAttributes']=new Map(_0x3a6c76(_0x17aeb2));for(const [_0x183d5b,_0x2c7c38]of this['_baseRoots'])if('$graveyard'!==_0x183d5b&&(this['_diffRoots']['set'](_0x183d5b,x(_0x2c7c38)),this['_diffRootsAttributes']=new Map(_0x3a6c76(_0x17aeb2)),_0x1f8c13)){const _0x31d636=this['_revisionId'];this['_idsRoots']['set'](_0x183d5b,this['_makeIdsRoot'](_0x2c7c38)),this['_baseIdsRoots']['set'](_0x183d5b,this['_makeIdsRoot'](_0x2c7c38,_0x31d636));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1f8c13&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2b8d61,_0x5e029a]of _0x3ecfd1){const _0x5ed3c2=this['_baseRoots']['get'](_0x5e029a['rootName']),_0x2adc7f=this['_diffRoots']['get'](_0x5e029a['rootName']),_0x3d1dfa=new _0x25bc26(this['_fixPosition'](_0x5e029a['start'],_0x5ed3c2),this['_fixPosition'](_0x5e029a['end'],_0x5ed3c2)),_0x5ceac0=this['_fixRange'](_0x3d1dfa,_0x2adc7f);_0x5ed3c2['markers']['set'](_0x2b8d61,_0x3d1dfa),this['_markers']['set'](_0x2b8d61,_0x5ceac0);}this['_applyOperations'](_0x3fa41b,_0x11b9c3,_0x1f8c13);}['_applyOperations'](_0x98568f,_0x4e2cd7,_0x5ae287){for(const _0x4fa72a of this['source']['getOperations'](_0x98568f,_0x4e2cd7))this['_handleOperation'](_0x4fa72a,_0x5ae287);for(const _0x50bb07 of this['_diffRoots']['values']())_0x50bb07['markers']['clear']();for(const [_0x86fe23,_0x1d2977]of this['_markers']){this['_diffRoots']['get'](_0x1d2977['root']['rootName'])['markers']['set'](_0x86fe23,_0x1d2977['clone']());}const _0x432bee=new Map(),_0x19112f=new Map();for(const [_0x269c8d,_0x2a9542]of this['_diffRoots'])_0x432bee['set'](_0x269c8d,x(_0x2a9542)),_0x19112f['set'](_0x269c8d,this['_diffRootsAttributes']['get'](_0x269c8d));this['_saveMetaData'](_0x4e2cd7,_0x432bee,this['_markers'],_0x19112f);}['_getPreviousFrom'](_0x4f6e9d){const _0x346a5c=Array['from'](this['_savedMetaData']['keys']());_0x346a5c['sort']((_0x495b0f,_0x2f4aca)=>_0x495b0f-_0x2f4aca),_0x346a5c['reverse']();for(const _0x32136a of _0x346a5c)if(_0x32136a<_0x4f6e9d)return _0x32136a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2fff8f,_0x4c7caa){const _0x3cd6ba=Array['from'](_0x4c7caa['markers'])['map'](([_0x590ba2,_0x328ee4])=>[_0x590ba2,this['_fixRange'](_0x328ee4,_0x2fff8f)]);_0x2fff8f['markers']=new Map(_0x3cd6ba);}['_transformMarkers'](_0x48dac1){for(const _0x439d98 of this['_markers']['values']()){const _0x2de386=_0x439d98['getTransformedByOperation'](_0x48dac1),_0x1f1dda=_0x25bc26['_createFromRanges'](_0x2de386);_0x439d98['start']=_0x1f1dda['start'],_0x439d98['end']=_0x1f1dda['end'];}}['_handleOperation'](_0x1d5b03,_0x1379a0){if('addRoot'!=_0x1d5b03['type']&&'detachRoot'!=_0x1d5b03['type']){if('insert'==_0x1d5b03['type']){const _0xb2e879=_0x1d5b03['position']['root']['rootName'];this['_diffRoots']['has'](_0xb2e879)||(this['_diffRoots']['set'](_0xb2e879,N(_0xb2e879,!0x0)),this['_diffRootsAttributes']['set'](_0xb2e879,{}),_0x1379a0&&this['_idsRoots']['set'](_0xb2e879,N(_0xb2e879,!0x0)));}else{if('addRootAttribute'==_0x1d5b03['type']||'removeRootAttribute'==_0x1d5b03['type']||'changeRootAttribute'==_0x1d5b03['type'])return void this['_handleRootAttributeOperation'](_0x1d5b03);'marker'==_0x1d5b03['type']&&this['_handleMarkerOperation'](_0x1d5b03);}if('marker'!==_0x1d5b03['type']){const _0x553849=this['_cloneOperation'](_0x1d5b03,this['_diffRoots']);_0x553849['_execute'](),this['_transformMarkers'](_0x553849);}if(_0x1379a0)switch(_0x1d5b03['type']){case'insert':this['_handleInsertOperation'](_0x1d5b03);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1d5b03);break;case'merge':this['_handleMergeOperation'](_0x1d5b03);break;case'split':this['_handleSplitOperation'](_0x1d5b03);}}else this['_handleRootOperation'](_0x1d5b03,_0x1379a0);}['_cloneOperation'](_0x274f65,_0x16a9df){const _0x249a70=_0x274f65['clone']();return _0x249a70['_authorId']=_0x274f65['_authorId'],this['_fixOperation'](_0x249a70,_0x16a9df),_0x249a70;}['_getBaseVids'](_0x4614ae){return _0x4614ae['map'](_0x59c923=>{const _0x27b100=this['_getVidAttributeName'](_0x59c923);return Number(_0x59c923['item']['getAttribute'](_0x27b100));});}['_generateTape'](_0x1a63a5,_0x212fff){if(_0x1a63a5['is']('element','$text'))_0x212fff['push']({'item':_0x1a63a5,'type':'text'});else{_0x1a63a5['is']('element')&&_0x212fff['push']({'item':_0x1a63a5,'type':'elementStart'});for(const _0x4eb3e2 of _0x1a63a5['getChildren']())this['_generateTape'](_0x4eb3e2,_0x212fff);_0x1a63a5['is']('element')&&_0x212fff['push']({'item':_0x1a63a5,'type':'elementEnd'});}return _0x212fff;}['_getState'](){const _0x4b53e9=new Map(this['_touched']),_0x4015ed=new Map(_0x4b53e9),_0x560333=new Map(),_0x517ed9={'insertions':{},'deletions':{}},_0x1295fd={'insertions':{},'deletions':{}},_0x47d6ac=new Map(),_0x31f169=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31f169['delete']('$graveyard');for(const _0x1370c9 of _0x31f169){const _0x44b1ba=this['_diffRoots']['get'](_0x1370c9)||N(_0x1370c9,!0x1),_0x421cb8=this['_baseRoots']['get'](_0x1370c9)||N(_0x1370c9,!0x1);_0x44b1ba['isAttached']()||_0x421cb8['isAttached']()?(_0x517ed9['insertions'][_0x1370c9]=x(_0x44b1ba),_0x517ed9['deletions'][_0x1370c9]=x(_0x421cb8),this['_copyMarkers'](_0x517ed9['deletions'][_0x1370c9],_0x421cb8),this['_copyMarkers'](_0x517ed9['insertions'][_0x1370c9],_0x44b1ba),_0x1295fd['insertions'][_0x1370c9]=this['_generateTape'](this['_idsRoots']['get'](_0x1370c9),[]),_0x1295fd['deletions'][_0x1370c9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1370c9)||N(_0x1370c9,!0x1),[])):_0x31f169['delete'](_0x1370c9);}for(const _0x25b6b1 of _0x31f169){const _0x2152e1=_0x1295fd['insertions'][_0x25b6b1];for(const _0x5e4a4f of _0x2152e1){const _0x296445=this['_getVidAttributeName'](_0x5e4a4f),_0x5e30cb=_0x5e4a4f['item']['getAttribute'](_0x296445);_0x4015ed['delete'](_0x5e30cb),_0x5e30cb>=this['_startingRevisionId']&&_0x560333['set'](_0x5e30cb,_0x4b53e9['get'](_0x5e30cb));}}for(const _0x4a5b0a of _0x31f169){const _0x30c7c9=_0x1295fd['insertions'][_0x4a5b0a],_0x125b15=this['_getBaseVids'](_0x1295fd['deletions'][_0x4a5b0a]);let _0x458077=0x0;for(const _0x186c91 of _0x30c7c9){const _0x87b34b=this['_getVidAttributeName'](_0x186c91),_0x3a5f97=_0x186c91['item']['getAttribute'](_0x87b34b);if(!_0x560333['has'](_0x3a5f97)&&!_0x47d6ac['has'](_0x3a5f97)){if(_0x4015ed['has'](_0x3a5f97))_0x458077++;else{if(_0x3a5f97!=_0x125b15[_0x458077]){const _0x191559=_0x4b53e9['get'](_0x3a5f97)||_0x4b53e9['get'](_0x125b15[_0x458077]);for(;_0x3a5f97!=_0x125b15[_0x458077];)_0x4015ed['has'](_0x125b15[_0x458077])||(_0x47d6ac['set'](_0x125b15[_0x458077],_0x191559),_0x4b53e9['set'](_0x125b15[_0x458077],_0x191559)),_0x458077++;}_0x458077++;}}}}for(const _0x305597 of _0x31f169){const _0x3e38fb=_0x1295fd['insertions'][_0x305597];for(const _0x1a87e5 of _0x3e38fb){const _0x539e60=this['_getVidAttributeName'](_0x1a87e5),_0x5a559b=_0x1a87e5['item']['getAttribute'](_0x539e60);if(_0x47d6ac['has'](_0x5a559b)){const _0x2e3522=_0x47d6ac['get'](_0x5a559b);_0x4015ed['has'](_0x5a559b)||_0x4015ed['set'](_0x5a559b,{..._0x2e3522}),_0x560333['set'](_0x5a559b,{..._0x2e3522});}}}for(const _0x3e7782 of _0x4015ed['keys']())_0x3e7782>=this['_startingRevisionId']&&_0x4015ed['delete'](_0x3e7782);const _0x57a1b7=new Map();for(const _0x111348 of _0x31f169){let _0x40c826=_0x1295fd['insertions'][_0x111348];for(const _0x5ea153 of _0x40c826)if(_0x5ea153['item']['is']('element','tableCell')){const _0x360598=this['_getVidAttributeName'](_0x5ea153),_0x1ba2a9=_0x5ea153['item']['getAttribute'](_0x360598);if(_0x560333['has'](_0x1ba2a9)){const _0x3ba5a7=_0x5ea153['item']['parent']['parent']['getAttribute']('vid_start'),_0x20ef48=_0x57a1b7['get'](_0x3ba5a7)||new Set();_0x20ef48['add'](_0x560333['get'](_0x1ba2a9)['userId']),_0x57a1b7['set'](_0x3ba5a7,_0x20ef48);}}_0x40c826=_0x1295fd['deletions'][_0x111348];for(const _0x40e562 of _0x40c826)if(_0x40e562['item']['is']('element','tableCell')){const _0x45ccd5=this['_getVidAttributeName'](_0x40e562),_0x3cbb24=_0x40e562['item']['getAttribute'](_0x45ccd5);if(_0x4015ed['has'](_0x3cbb24)){const _0x38bab2=_0x40e562['item']['parent']['parent']['getAttribute']('vid_start'),_0x17942c=_0x57a1b7['get'](_0x38bab2)||new Set();_0x17942c['add'](_0x4015ed['get'](_0x3cbb24)['userId']),_0x57a1b7['set'](_0x38bab2,_0x17942c);}}for(const _0x2d63f3 of _0x57a1b7['keys']())(_0x560333['has'](_0x2d63f3)||_0x4015ed['has'](_0x2d63f3))&&_0x57a1b7['delete'](_0x2d63f3);}for(const _0x4e9076 of _0x31f169){const _0x46f406=_0x1295fd['insertions'][_0x4e9076];let _0x215ac2=null,_0xcf667e=null;for(const _0x247ee4 of _0x46f406){const _0x1d6328=this['_getVidAttributeName'](_0x247ee4),_0x49bc38=_0x247ee4['item']['getAttribute'](_0x1d6328),_0x1e96a9=_0x57a1b7['get'](_0x49bc38);_0x1e96a9&&'elementStart'==_0x247ee4['type']&&(_0x215ac2=Array['from'](_0x1e96a9)[0x0],_0xcf667e=_0x247ee4['item']['getAttribute']('vid_end')),_0x215ac2&&(_0x4015ed['set'](_0x49bc38,{'userId':_0x215ac2}),_0x560333['set'](_0x49bc38,{'userId':_0x215ac2})),_0x49bc38==_0xcf667e&&(_0x215ac2=null,_0xcf667e=null);}}const _0x323e4b={},_0xef672=new Set();for(const _0xd85647 of _0x31f169){const _0x5c4aef=_0x517ed9['deletions'][_0xd85647],_0x56946f=_0x517ed9['insertions'][_0xd85647];for(const {userId:_0x37b217}of this['_touchedMarkers']['values']())null!==_0x37b217&&_0xef672['add'](_0x37b217);for(const {userId:_0x88568e}of this['_touchedRoots']['values']())null!==_0x88568e&&_0xef672['add'](_0x88568e);this['_markChanges'](_0x56946f,_0x1295fd['insertions'][_0xd85647],_0x560333,'insertion',_0xef672),this['_markChanges'](_0x5c4aef,_0x1295fd['deletions'][_0xd85647],_0x4015ed,'deletion',_0xef672),_0x323e4b[_0xd85647]={'insertions':this['_prepareViewToSave'](_0x56946f),'deletions':this['_prepareViewToSave'](_0x5c4aef),'attachChange':this['_touchedRoots']['get'](_0xd85647)||null,'attributesBefore':_0x3a6c76(this['_baseRootsAttributes']['get'](_0xd85647))||{},'attributesAfter':_0x3a6c76(this['_diffRootsAttributes']['get'](_0xd85647))};}return{'diffData':_0x323e4b,'authorsIds':Array['from'](_0xef672)};}['_processRootBeforeSave'](_0xf9e05e){for(const [,_0x3b105c]of _0xf9e05e['markers']){const _0x213e12=_0x3b105c['start']['getAncestors']()['filter'](_0x693a47=>'tableCell'==_0x693a47['name']);for(const _0x2e9d53 of _0x213e12)0x1==_0x2e9d53['childCount']&&_0x2e9d53['getChild'](0x0)['is']('element','paragraph')&&_0x2e9d53['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1001b3){this['_processRootBeforeSave'](_0x1001b3);const _0x106793=this['editor']['data']['toView'](_0x1001b3,{}),_0xd36494=Array['from'](_0x106793['getChildren']())['map'](_0x306461=>this['_getViewJson'](_0x306461));return JSON['stringify'](_0xd36494);}['_getViewJson'](_0x2d989e){if(_0x2d989e['is']('$text'))return _0x2d989e['data'];{const _0x5db0ab=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x24c184=_0x2d989e,_0x208151=this['editor']['data']['htmlProcessor']['domConverter'],_0x1c5f82={'type':_0x5db0ab['_getTypeCharForViewElement'](_0x24c184),'name':_0x24c184['name'],'attributes':Array['from'](_0x24c184['getAttributes']()),'children':Array['from'](_0x24c184['getChildren']())['map'](_0x1f3b9b=>this['_getViewJson'](_0x1f3b9b))};if(_0x2d989e['is']('uiElement')&&'$comment'!=_0x2d989e['name']){const _0x35625b=_0x2d989e['render'](_0x208151['domDocument'],_0x208151);_0x1c5f82['children']['push'](_0x35625b['outerHTML']);}else{if(_0x2d989e['is']('rawElement')){const _0xc174fc=_0x208151['domDocument']['createElement'](_0x24c184['name']);_0x2d989e['render'](_0xc174fc,_0x208151),_0x1c5f82['children']['push'](_0xc174fc['innerHTML']);}}const _0x5f5161=Array['from'](_0x24c184['getCustomProperties']());_0x5f5161['length']>0x0&&(_0x1c5f82['customProperties']=_0x5f5161);const _0x11c5f5=_0x24c184['getFillerOffset']();return null!==_0x11c5f5&&(_0x1c5f82['fillerOffset']=_0x11c5f5),_0x1c5f82;}}['_markChanges'](_0x4ef967,_0x29cb52,_0x45eb16,_0x1e0cf6,_0x101111){let _0x911206=null,_0x310d36=null,_0x1452af=0x0;const _0x5793b5=this['editor']['model'];for(let _0x508146=0x0;_0x508146<_0x29cb52['length'];_0x508146++){const _0x52ac66=this['_getVidAttributeName'](_0x29cb52[_0x508146]),_0xb46cf=_0x29cb52[_0x508146]['item']['getAttribute'](_0x52ac66),_0x1d3c36=_0x45eb16['get'](_0xb46cf),_0x4a22a3=_0x508146==_0x29cb52['length']-0x1;(!_0x911206&&_0x1d3c36&&(_0x911206=_0x1d3c36,_0x310d36=_0x29cb52[_0x508146]),_0x911206&&(!_0x1d3c36||_0x1d3c36['userId']!=_0x911206['userId']))&&(_0x52572d(_0x1d3c36,P(_0x310d36,_0x4ef967,_0x5793b5),P(_0x29cb52[_0x508146],_0x4ef967,_0x5793b5)),_0x911206=_0x1d3c36||null,_0x310d36=_0x1d3c36?_0x29cb52[_0x508146]:null),_0x911206&&_0x4a22a3&&_0x52572d(_0x1d3c36,P(_0x310d36,_0x4ef967,_0x5793b5),V(_0x29cb52[_0x508146],_0x4ef967,_0x5793b5));}function _0x52572d(_0x5d4c0e,_0x50e3b4,_0x4dfcf4){const _0x466a07=_0x911206['userId'],_0x31e076='revision:'+_0x1e0cf6+':'+_0x466a07+':'+_0x1452af++,_0x20a32f=_0x5793b5['createRange'](_0x50e3b4,_0x4dfcf4);_0x4ef967['markers']['set'](_0x31e076,_0x20a32f),null!==_0x466a07&&_0x101111['add'](_0x466a07);}}['_getVidAttributeName'](_0x2555fc){switch(_0x2555fc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5da1c3,_0x195539){_0x5da1c3['baseVersion']=null;for(const _0x2ba916 in _0x5da1c3){const _0x2f6cb2=_0x5da1c3[_0x2ba916];if(_0x2f6cb2 instanceof _0x5dd5df){const _0x27a62d=_0x195539['get'](_0x2f6cb2['root']['rootName']);_0x5da1c3[_0x2ba916]=this['_fixPosition'](_0x2f6cb2,_0x27a62d);}if(_0x2f6cb2 instanceof _0x25bc26){const _0x1ddfc8=_0x195539['get'](_0x2f6cb2['root']['rootName']);_0x5da1c3[_0x2ba916]=this['_fixRange'](_0x2f6cb2,_0x1ddfc8);}'root'===_0x2ba916&&(_0x5da1c3['root']=_0x195539['get'](_0x5da1c3['root']['rootName']));}}['_fixRange'](_0x57f908,_0x4dfa53){return this['editor']['model']['createRange'](this['_fixPosition'](_0x57f908['start'],_0x4dfa53),this['_fixPosition'](_0x57f908['end'],_0x4dfa53));}['_fixPosition'](_0x7cca17,_0x32f45e){return this['editor']['model']['createPositionFromPath'](_0x32f45e,_0x7cca17['path'],_0x7cca17['stickiness']);}['_handleInsertOperation'](_0x1931c9){const _0x242997=this['_idsRoots']['get'](_0x1931c9['position']['root']['rootName']),_0x287fca=this['_fixPosition'](_0x1931c9['position'],_0x242997),_0x5eb391=null===_0x1931c9['_authorId']?null:_0x1931c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14e2d9=_0x287fca['parent'],_0x3f4da7=this['_revisionId'],_0x214049=[];for(const _0x135cb4 of _0x1931c9['nodes'])if(_0x135cb4['is']('element'))_0x214049['push'](this['_makeIdsRoot'](_0x135cb4));else{for(let _0x358185=0x0;_0x358185<_0x135cb4['offsetSize'];_0x358185++)_0x214049['push'](new _0x2fac84('$text',{'vid':this['_revisionId']++}));}const _0x594711=this['_revisionId'];for(let _0x1e4dc1=_0x3f4da7;_0x1e4dc1<_0x594711;_0x1e4dc1++)this['_touched']['set'](_0x1e4dc1,{'userId':_0x5eb391});_0x14e2d9['_insertChild'](_0x287fca['offset'],_0x214049);}['_handleMoveOperation'](_0x334397){(_0x334397=this['_cloneOperation'](_0x334397,this['_idsRoots']))['_execute']();const _0x3b2d2d=null===_0x334397['_authorId']?null:_0x334397['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe61361=_0x334397['getMovedRangeStart'](),_0x1df811=_0xe61361['parent'],_0x250735=_0xe61361['offset'];!function _0x3d7fa7(_0x1bdeac,_0xf615df,_0x5c424e,_0x4ba8dc){for(let _0x2059d4=_0x5c424e;_0x2059d4<_0x4ba8dc;_0x2059d4++){const _0xf8716f=_0xf615df['getChild'](_0x2059d4);_0xf8716f['is']('element','$text')?_0x1bdeac['set'](_0xf8716f['getAttribute']('vid'),{'userId':_0x3b2d2d}):(_0x1bdeac['set'](_0xf8716f['getAttribute']('vid_start'),{'userId':_0x3b2d2d}),_0x3d7fa7(_0x1bdeac,_0xf8716f,0x0,_0xf8716f['childCount']),_0x1bdeac['set'](_0xf8716f['getAttribute']('vid_end'),{'userId':_0x3b2d2d}));}}(this['_touched'],_0x1df811,_0x250735,_0x250735+_0x334397['howMany']);}['_handleMergeOperation'](_0x54cb5b){const _0x4af08f=null===(_0x54cb5b=this['_cloneOperation'](_0x54cb5b,this['_idsRoots']))['_authorId']?null:_0x54cb5b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d8bc3=_0x54cb5b['targetPosition']['parent'],_0x43abbf=_0x54cb5b['sourcePosition']['parent'],_0x3aed82=_0x2d8bc3['getAttribute']('vid_end'),_0x51aed5=_0x43abbf['getAttribute']('vid_start');_0x2d8bc3['_setAttribute']('vid_end',_0x43abbf['getAttribute']('vid_end')),_0x43abbf['_setAttribute']('vid_end',_0x3aed82),this['_touched']['set'](_0x51aed5,{'userId':_0x4af08f}),this['_touched']['set'](_0x3aed82,{'userId':_0x4af08f}),_0x54cb5b['_execute']();}['_handleSplitOperation'](_0x55a5c5){const _0x4c207c=null===(_0x55a5c5=this['_cloneOperation'](_0x55a5c5,this['_idsRoots']))['_authorId']?null:_0x55a5c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2094a3=_0x55a5c5['graveyardPosition'],_0x2f3308=_0x55a5c5['splitPosition']['parent'];_0x55a5c5['_execute']();const _0x5a3aa4=_0x2f3308['getAttribute']('vid_end'),_0x224f40=_0x55a5c5['insertionPosition']['nodeAfter'];if(_0x2094a3){const _0x178e65=_0x224f40['getAttribute']('vid_end'),_0x2268e0=_0x2f3308['getAttribute']('vid_end');_0x2f3308['_setAttribute']('vid_end',_0x178e65),_0x224f40['_setAttribute']('vid_end',_0x2268e0),this['_touched']['set'](_0x2f3308['getAttribute']('vid_end'),{'userId':_0x4c207c}),this['_touched']['set'](_0x224f40['getAttribute']('vid_start'),{'userId':_0x4c207c});}else{const _0x19c7af=this['_revisionId']++,_0x33268c=this['_revisionId']++;_0x2f3308['_setAttribute']('vid_end',_0x19c7af),_0x224f40['_setAttribute']('vid_start',_0x33268c),_0x224f40['_setAttribute']('vid_end',_0x5a3aa4),this['_touched']['set'](_0x19c7af,{'userId':_0x4c207c}),this['_touched']['set'](_0x33268c,{'userId':_0x4c207c});}}['_handleMarkerOperation'](_0x2235a3){if(!_0x2235a3['affectsData'])return;const _0x2fe8d=(_0x2235a3=this['_cloneOperation'](_0x2235a3,this['_diffRoots']))['oldRange']?_0x2235a3['oldRange']['root']:null,_0x35fa5b=_0x2235a3['newRange']?_0x2235a3['newRange']['root']:null;_0x2fe8d&&this['_markers']['delete'](_0x2235a3['name']),_0x35fa5b&&this['_markers']['set'](_0x2235a3['name'],_0x2235a3['newRange']['clone']());const _0x29aac2=null===_0x2235a3['_authorId']?null:_0x2235a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x378c1e=_0x2235a3['name'];if(!this['_touchedMarkers']['has'](_0x378c1e))return void this['_touchedMarkers']['set'](_0x378c1e,{'range':_0x2235a3['oldRange'],'userId':_0x29aac2});const _0x2bf63f=this['_touchedMarkers']['get'](_0x378c1e),_0x445775=_0x2bf63f['range'],_0x26dc7a=_0x2235a3['newRange'];null==_0x445775&&null==_0x26dc7a||_0x445775&&_0x26dc7a&&_0x445775['isEqual'](_0x26dc7a)?this['_touchedMarkers']['delete'](_0x2235a3['name']):_0x2bf63f['userId']=_0x29aac2;}['_handleRootOperation'](_0x1e2702,_0x1ffa37){this['_diffRoots']['has'](_0x1e2702['rootName'])?this['_diffRoots']['get'](_0x1e2702['rootName'])['_isAttached']=_0x1e2702['isAdd']:(this['_diffRoots']['set'](_0x1e2702['rootName'],N(_0x1e2702['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e2702['rootName'],{}),_0x1ffa37&&this['_idsRoots']['set'](_0x1e2702['rootName'],N(_0x1e2702['rootName'],!0x0)));const _0x399716=null===_0x1e2702['_authorId']?null:_0x1e2702['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b6296=this['_touchedRoots']['get'](_0x1e2702['rootName']);_0x1b6296&&_0x1b6296['userId']===_0x399716?this['_touchedRoots']['delete'](_0x1e2702['rootName']):this['_touchedRoots']['set'](_0x1e2702['rootName'],{'userId':_0x399716,'isAttached':_0x1e2702['isAdd']});}['_handleRootAttributeOperation'](_0x3260eb){const _0x2c4576=this['_diffRootsAttributes']['get'](_0x3260eb['root']['rootName']);null===_0x3260eb['newValue']?delete _0x2c4576[_0x3260eb['key']]:_0x2c4576[_0x3260eb['key']]=_0x3260eb['newValue'];}}function x(_0x3d7750){const _0x16b208=N(_0x3d7750['rootName'],_0x3d7750['isAttached']());for(const _0x46663a of _0x3d7750['getChildren']()){const _0x389cb8=_0x46663a['_clone'](!0x0);_0x16b208['_appendChild'](_0x389cb8);}return _0x16b208;}function N(_0x509dce,_0x54aaca=!0x0){const _0x332f52=new _0x541f15();return _0x332f52['rootName']=_0x509dce,_0x332f52['_isAttached']=_0x54aaca,_0x332f52['isAttached']=()=>_0x332f52['_isAttached'],_0x332f52;}function P(_0x36dceb,_0x4a2cae,_0x427f33){const _0x10cb43='elementEnd'==_0x36dceb['type']?_0x427f33['createPositionAt'](_0x36dceb['item'],'end'):_0x427f33['createPositionBefore'](_0x36dceb['item']);return _0x427f33['createPositionFromPath'](_0x4a2cae,_0x10cb43['path'],_0x10cb43['stickiness']);}function V(_0x1a50fa,_0xf77e01,_0xb8e779){const _0x158dac='elementStart'==_0x1a50fa['type']?_0xb8e779['createPositionAt'](_0x1a50fa['item'],0x0):_0xb8e779['createPositionAfter'](_0x1a50fa['item']);return _0xb8e779['createPositionFromPath'](_0xf77e01,_0x158dac['path'],_0x158dac['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x506625(_0x2a30ec){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4f4bf6,_0x53a1a1){super(_0x4f4bf6),this['focusTracker']=new _0xb8c7db(),this['keystrokes']=new _0xcbc00a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x53a1a1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x5c49bd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2fbc09=_0x86165e=>_0x86165e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2fbc09),this['keystrokes']['set']('arrowleft',_0x2fbc09),this['keystrokes']['set']('arrowup',_0x2fbc09),this['keystrokes']['set']('arrowdown',_0x2fbc09);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x11ca95){this['revisionNameInputView']['fieldView']['element']['value']=_0x11ca95['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1dc5d9){const _0x23ff5f=new et(this['locale'],ti),_0x455ad9=_0x23ff5f['fieldView'];_0x455ad9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2a2d94=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1dc5d9&&(_0x2a2d94+='\x20('+R(this['locale'],'optional')+')'),(_0x23ff5f['label']=_0x2a2d94,_0x455ad9['on']('input',()=>{this['revisionNameInputValue']=_0x455ad9['element']['value']['trim']();}),_0x23ff5f);}}class v extends _0xe82639{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4e9fa1=this['editor'],_0x49b5e7=_0x4e9fa1['plugins']['get']('RevisionTracker');_0x4e9fa1['ui']['componentFactory']['add']('revisionHistory',_0x1fef53=>{const _0x4478af=_0x23327c(_0x1fef53),_0x5a56d8=_0x4478af['panelView']['children'],_0x4044a4=new _0x42114b(_0x1fef53),_0x51bdb3=new _0x3c8f79(_0x1fef53),_0x462f44=new _0x54c149(_0x1fef53),_0x3c3091=new _0x3c8f79(_0x1fef53),_0x1d5e24=new _0x54c149(_0x1fef53);return _0x4478af['bind']('isEnabled')['to'](_0x49b5e7,'isReady',_0x49b5e7,'isEnabled',_0x4e9fa1,'isReadOnly',(_0x227ea4,_0x3cfa6e,_0x3173d0)=>_0x227ea4&&_0x3cfa6e&&!_0x3173d0),_0x4478af['buttonView']['set']({'icon':_0x43beba,'label':R(_0x1fef53,'Revision\x20history'),'tooltip':!0x0}),_0x462f44['set']({'label':R(_0x1fef53,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x462f44['bind']('isEnabled')['to'](_0x49b5e7,'isReady',_0x49b5e7,'isEnabled',_0x4e9fa1,'isReadOnly',(_0x116ce9,_0x1028c1,_0x366c8b)=>_0x116ce9&&_0x1028c1&&!_0x366c8b),_0x462f44['on']('execute',()=>this['_showDialog']()),_0x1d5e24['set']({'label':R(_0x1fef53,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1d5e24['bind']('isEnabled')['to'](_0x49b5e7,'isReady',_0x4e9fa1,'isReadOnly',(_0x107b8d,_0x3e437c)=>_0x107b8d&&!_0x3e437c),_0x1d5e24['on']('execute',()=>{_0x4e9fa1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4478af['isOpen']=!0x1,_0x4e9fa1['editing']['view']['focus']();}),_0x51bdb3['children']['add'](_0x462f44),_0x3c3091['children']['add'](_0x1d5e24),_0x4044a4['role']='menu',_0x4044a4['items']['addMany']([_0x51bdb3,_0x3c3091]),_0x5a56d8['add'](_0x4044a4),_0x4478af;}),_0x4e9fa1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x405f3d=this['editor'],_0x13b564=_0x405f3d['locale'],_0x212c63=new _0x6a49da(_0x13b564),_0x4a4df2=new _0xe0fadb(_0x13b564);_0x212c63['buttonView']['set']({'icon':_0x43beba,'label':R(_0x13b564,'Revision\x20history')});const _0x5c68df=new _0x12b25a(_0x13b564,_0x212c63),_0x88aaef=new _0x56e8a5(_0x13b564);_0x88aaef['set']({'label':R(_0x13b564,'Save\x20current\x20revision')}),_0x88aaef['delegate']('execute')['to'](_0x212c63),_0x88aaef['on']('execute',()=>{this['_showDialog']();}),_0x5c68df['children']['add'](_0x88aaef),_0x4a4df2['items']['add'](_0x5c68df);const _0x34bb6e=new _0x12b25a(_0x13b564,_0x212c63),_0x2d9b0b=new _0x56e8a5(_0x13b564);return _0x2d9b0b['set']({'label':R(_0x13b564,'Open\x20revision\x20history')}),_0x2d9b0b['delegate']('execute')['to'](_0x212c63),_0x2d9b0b['on']('execute',()=>{_0x405f3d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x34bb6e['children']['add'](_0x2d9b0b),_0x4a4df2['items']['add'](_0x34bb6e),_0x212c63['panelView']['children']['add'](_0x4a4df2),_0x212c63;}['_showDialog'](){const _0x244090=this['editor'],_0x2c9594=_0x244090['locale'],_0x668ec5=_0x244090['plugins']['get']('Dialog'),_0x10bbd3=_0x244090['plugins']['get']('RevisionTracker');function _0xfd0239(_0x35d24a){_0x244090['config']['get']('revisionHistory.requireRevisionName')&&''===_0x35d24a['revisionName']?_0x35d24a['revisionNameInputView']['errorText']=R(_0x2c9594,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x244090['plugins']['get'](h)['saveRevision']({'name':_0x35d24a['revisionName']}),_0x668ec5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xfd0239(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x668ec5['show']({'id':'revisionSave','title':R(_0x2c9594,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x244090['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x668ec5['hide']()},{'label':R(_0x244090['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x170108){_0x170108['bind']('isEnabled')['to'](_0x10bbd3,'isReady',_0x10bbd3,'isEnabled',_0x244090,'isReadOnly',(_0x5c0abb,_0x4bac13,_0x77eff0)=>_0x5c0abb&&_0x4bac13&&!_0x77eff0);},'onExecute':()=>_0xfd0239(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x15e421=this['editor'],_0x15f4f3=_0x15e421['locale'];this['_saveRevisionFormView']=new me(_0x15f4f3,_0x15e421['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2a30ec{['changeId'];['_model'];constructor(_0x23a951,_0x5357eb){super(_0x23a951),this['_model']=_0x5357eb,this['changeId']=_0x5357eb['id'];const _0x94148a=this['bindTemplate'],_0xe56b4f=R(_0x23a951,_0x5357eb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5357eb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5357eb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x94148a['to']('type',_0x151b25=>'ck-revision-change__'+_0x151b25)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe56b4f}]},{'text':'\x20'+_0x5357eb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x517a0c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2263af){super(),this['id']=_0x2263af['id']||_0x1ea4a3(),this['author']=_0x2263af['author'],this['type']=_0x2263af['type'],this['data']=_0x2263af['data']||{},this['rootName']=_0x2263af['rootName'],this['set']('createdAt',_0x2263af['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4d1f16,_0x117b8c){this['newRevisionId']=_0x4d1f16,this['oldRevisionId']=_0x117b8c,this['changes']=new _0x22f980();}['_setChanges'](_0x2a9734){for(const _0x39f051 of _0x2a9734)this['changes']['add'](_0x39f051);}}class l extends _0xe82639{['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[_0x475835,_0x1d4685,S,$];}constructor(_0x9fe551){super(_0x9fe551),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',(_0x4ffd7b,_0x2ba553,_0x2b55b2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x348785=>{for(const _0x2678bc of this['editor']['editing']['view']['document']['roots'])_0x2b55b2?_0x348785['removeClass']('ck-editor__editable__overlay',_0x2678bc):_0x348785['addClass']('ck-editor__editable__overlay',_0x2678bc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x309d30=>null!==_0x309d30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3488b8,_0x4b076f,_0x27c13f)=>_0x3488b8&&_0x27c13f?_0x4b076f['changes']['getIndex'](_0x27c13f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3e1485,_0x5a6bd7)=>_0x3e1485?_0x5a6bd7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d4685);}['init'](){const _0x32588f=this['editor'],_0x394bc7=new rt(_0x32588f,{'direction':'backward'}),_0x4a0b11=new rt(_0x32588f,{'direction':'forward'});(_0x32588f['commands']['add']('showPreviousChange',_0x394bc7),_0x32588f['commands']['add']('showNextChange',_0x4a0b11),_0x32588f['commands']['add']('restoreRevision',new nt(_0x32588f)),this['on']('change:numberOfChanges',()=>{_0x394bc7['refresh'](),_0x4a0b11['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32588f['enableReadOnlyMode']('revision-viewer'),_0x32588f['plugins']['has']('WidgetToolbarRepository'))&&_0x32588f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x27c027){return await this['_utils']['loadRevisionData'](_0x27c027,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x27c027);}async['getRevisionRootsAttributes'](_0x153e10){return await this['_utils']['loadRevisionData'](_0x153e10,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x153e10);}async['compare'](_0x135f84,_0x57dfbb,_0x7ab6dc=!0x1){if(!this['isEnabled'])return;const _0x361f6c=this['diff'],_0x5898e6=this['repository'],_0x36721e='string'==typeof _0x135f84?_0x5898e6['getRevision'](_0x135f84):_0x135f84,_0x3d476a='string'==typeof _0x57dfbb?_0x5898e6['getRevision'](_0x57dfbb):_0x57dfbb,_0x125b6e=_0x36721e['id'],_0x8fd2ce=_0x3d476a?_0x3d476a['id']:null;if(!_0x7ab6dc&&this['diff']&&this['diff']['newRevisionId']===_0x125b6e&&this['diff']['oldRevisionId']===_0x8fd2ce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x125b6e,_0x8fd2ce);const _0x2151f7=this['_getRevisionsRange'](_0x36721e,_0x3d476a,!0x0)['map'](_0x5c3f01=>this['_utils']['loadRevisionData'](_0x5c3f01,this['adapter']));return _0x2151f7['push'](new Promise(_0xb43d3e=>{setTimeout(_0xb43d3e,0x14);})),Promise['all'](_0x2151f7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x11efbb=this['_getDiff'](_0x125b6e,_0x8fd2ce);for(const _0x2473cf of _0x11efbb['changes'])this['_changeIdToChange']['set'](_0x2473cf['id'],_0x2473cf);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x139e48=>{for(const _0x5dab1e of this['editor']['model']['document']['getRootNames']())_0x139e48['detachRoot'](_0x5dab1e);for(const _0x4bd667 of Object['keys'](_0x11efbb['model'])){const _0xa6c73f=_0x139e48['addRoot'](_0x4bd667);for(const _0x509f7a of Object['keys'](_0x11efbb['attributes'][_0x4bd667]))_0x139e48['setAttribute'](_0x509f7a,_0x11efbb['attributes'][_0x4bd667][_0x509f7a],_0xa6c73f);_0x139e48['insert'](_0x11efbb['model'][_0x4bd667],_0xa6c73f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x11efbb['changes'])),this['isReady']=!0x0;})['catch'](_0x4f9ab7=>{console['error'](_0x4f9ab7),this['_cleanUp'](),_0x361f6c&&(this['diff']=_0x361f6c),this['isReady']=!0x0;});}['addRevisionData'](_0x425e3f,_0x3dcac5){const _0x3f9053=this['repository']['createRevision'](_0x425e3f);return _0x3f9053['on']('_update',(_0x35d1de,_0x52d73b,_0x52e242)=>_0x3dcac5(_0x52d73b,_0x52e242,_0x3f9053)),this['repository']['addRevision'](_0x3f9053),_0x3f9053;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x445674=>{for(const _0x53369f of this['editor']['model']['document']['getRootNames']())_0x445674['detachRoot'](_0x53369f);});}['_sortAndFilterDiffChanges'](_0x3eae15){const _0x3aec9d=[],_0x1be4fc=new Map();for(const _0x4fab0f of this['editor']['model']['document']['getRootNames']()){const _0x26fc2d=this['editor']['editing']['view']['getDomRoot'](_0x4fab0f);if(!_0x26fc2d)continue;const _0x8d3eb3=_0x26fc2d['getClientRects']()['item'](0x0);_0x8d3eb3&&(_0x3aec9d['push'](_0x4fab0f),_0x1be4fc['set'](_0x4fab0f,_0x8d3eb3));}return _0x3aec9d['sort']((_0x2bb874,_0x47f463)=>{const _0x1ae4c1=_0x1be4fc['get'](_0x2bb874),_0x528720=_0x1be4fc['get'](_0x47f463);return _0x1ae4c1['y']-_0x528720['y']||_0x1ae4c1['x']-_0x528720['x'];}),(_0x3eae15=_0x3eae15['filter'](_0x1bc816=>_0x3aec9d['includes'](_0x1bc816['rootName'])))['sort']((_0x54ec1a,_0x263113)=>_0x3aec9d['indexOf'](_0x54ec1a['rootName'])-_0x3aec9d['indexOf'](_0x263113['rootName'])),_0x3eae15;}['_makeTape'](_0xbfb8a5){const _0xeb5265=Array['from'](_0xbfb8a5['markers'])['filter'](([_0x57ab96,_0x189a8e])=>_0x57ab96['startsWith']('revision:')&&!_0x189a8e['isCollapsed']),_0x972c4c=Array['from'](this['editor']['model']['createRangeIn'](_0xbfb8a5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xeb5265['length'])for(const _0x26a84f of _0x972c4c){const [_0x26fabd,_0x46b0a1]=_0xeb5265[0x0],[,_0x15652d,_0x5c5031]=_0x26fabd['split'](':');if(_0x46b0a1['end']['isEqual'](_0x26a84f['nextPosition'])&&_0xeb5265['shift'](),(_0x26a84f['previousPosition']['isEqual'](_0x46b0a1['start'])||_0x26a84f['previousPosition']['isAfter'](_0x46b0a1['start']))&&('insertion'==_0x15652d?_0x26a84f['isAdded']={'userId':_0x5c5031}:'deletion'==_0x15652d&&(_0x26a84f['isRemoved']={'userId':_0x5c5031})),0x0==_0xeb5265['length'])break;}return _0x972c4c;}['_refreshStartEndIndex'](_0x356f5e){const _0x1fbffe=new Map();for(let _0xb11e1a=0x0;_0xb11e1a<_0x356f5e['length'];_0xb11e1a++)'text'===_0x356f5e[_0xb11e1a]['type']?(_0x356f5e[_0xb11e1a]['item']['startIndex']=_0xb11e1a,_0x356f5e[_0xb11e1a]['item']['endIndex']=_0xb11e1a):('elementStart'===_0x356f5e[_0xb11e1a]['type']?_0x356f5e[_0xb11e1a]['item']['startIndex']=_0xb11e1a:'elementEnd'===_0x356f5e[_0xb11e1a]['type']&&(_0x356f5e[_0xb11e1a]['item']['endIndex']=_0xb11e1a),_0x1fbffe['set'](_0x356f5e[_0xb11e1a]['id'],_0xb11e1a));for(const _0x4549e4 of _0x1fbffe['values']())'elementStart'===_0x356f5e[_0x4549e4]['type']?_0x356f5e[_0x4549e4]['item']['endIndex']=_0x1fbffe['get'](_0x356f5e[_0x4549e4]['pairId']):'elementEnd'===_0x356f5e[_0x4549e4]['type']&&(_0x356f5e[_0x4549e4]['item']['startIndex']=_0x1fbffe['get'](_0x356f5e[_0x4549e4]['pairId']));}['_processTape'](_0x26fed4){for(let _0x4d7f0a=0x0;_0x4d7f0a<_0x26fed4['length'];_0x4d7f0a++){if('elementStart'===_0x26fed4[_0x4d7f0a]['type'])_0x26fed4[_0x4d7f0a]['item']['startIndex']=_0x4d7f0a;else{if('elementEnd'===_0x26fed4[_0x4d7f0a]['type']){_0x26fed4[_0x4d7f0a]['item']['endIndex']=_0x4d7f0a;const _0x2a7379=_0x26fed4[_0x4d7f0a]['item']['startIndex'];_0x26fed4[_0x2a7379]['pairId']=_0x26fed4[_0x4d7f0a]['id'],_0x26fed4[_0x4d7f0a]['pairId']=_0x26fed4[_0x2a7379]['id'];}else _0x26fed4[_0x4d7f0a]['item']['startIndex']=_0x4d7f0a,_0x26fed4[_0x4d7f0a]['item']['endIndex']=_0x4d7f0a,_0x26fed4[_0x4d7f0a]['pairId']=null;}_0x26fed4[_0x4d7f0a]['markersStart']||(_0x26fed4[_0x4d7f0a]['markersStart']=[],_0x26fed4[_0x4d7f0a]['markersEnd']=[]);}}['_markInsertions'](_0x5896e3,_0xd064b8){const _0x3e82a6=_0x5896e3['filter'](_0x14cb96=>!_0x14cb96['isAdded']);for(let _0x501f67=0x0;_0x501f67<_0xd064b8['length'];_0x501f67++)_0xd064b8[_0x501f67]['isAdded']&&(_0x3e82a6[_0x501f67]['isAdded']=_0xd064b8[_0x501f67]['isAdded']);}['_getDiff'](_0x1df48e,_0x210917=null){const _0x5adc2c=this['repository']['getRevision'](_0x1df48e),_0x138f02=_0x210917?this['repository']['getRevision'](_0x210917):null,_0x41f91c=this['_getRevisionsRange'](_0x5adc2c,_0x138f02),_0x251dd5=_0x41f91c[_0x41f91c['length']-0x1],_0x3207d8=new Map(),_0x46c8ba={'model':{},'attributes':{},'changes':[]},_0x4be27f=new Set(),_0x16e5d1=new Map();for(let _0x121779=_0x41f91c['length']-0x1;_0x121779>=0x0;_0x121779--){const _0x4528a2=_0x41f91c[_0x121779];for(const _0xef1c1b of Object['keys'](_0x4528a2['diffData']))if(_0x4528a2['diffData'][_0xef1c1b]['attachChange']){const _0x13b48c=_0x4528a2['diffData'][_0xef1c1b]['attachChange'];_0x13b48c['isAttached']?(_0x4be27f['add'](_0xef1c1b),_0x16e5d1['has'](_0xef1c1b)&&_0x16e5d1['get'](_0xef1c1b)['userId']==_0x13b48c['userId']?_0x16e5d1['delete'](_0xef1c1b):_0x16e5d1['set'](_0xef1c1b,_0x13b48c)):_0x16e5d1['has'](_0xef1c1b)?(_0x4be27f['delete'](_0xef1c1b),_0x16e5d1['delete'](_0xef1c1b)):(_0x4be27f['add'](_0xef1c1b),_0x16e5d1['set'](_0xef1c1b,_0x13b48c));}else _0x4be27f['add'](_0xef1c1b);}for(const _0x46f097 of _0x4be27f){const _0xced32=_0x16e5d1['has'](_0x46f097)&&!_0x16e5d1['get'](_0x46f097)['isAttached'];let _0x2a6135=_0xced32?_0x41f91c['length']-0x1:0x0;const _0x846ef3=_0xced32?-0x1:0x1;for(;_0x41f91c[_0x2a6135];){const _0x4c6ee5=_0x41f91c[_0x2a6135];if(_0x4c6ee5['diffData'][_0x46f097]){const _0xfbcc93=_0xced32?_0x4c6ee5['diffData'][_0x46f097]['attributesBefore']:_0x4c6ee5['diffData'][_0x46f097]['attributesAfter'];_0x46c8ba['attributes'][_0x46f097]=_0xfbcc93?_0x3a6c76(_0xfbcc93):{};break;}_0x2a6135+=_0x846ef3;}}for(const _0x18cd8f of _0x41f91c){_0x18cd8f['model']={};for(const _0x12ae13 of _0x18cd8f['authors'])_0x3207d8['set'](_0x12ae13['id'],_0x12ae13);for(const _0x2cd618 of _0x4be27f){const _0x53a2b5=_0x18cd8f['diffData'][_0x2cd618]?_0x18cd8f['diffData'][_0x2cd618]['insertions']:'[]',_0x4ef29=_0x18cd8f['diffData'][_0x2cd618]?_0x18cd8f['diffData'][_0x2cd618]['deletions']:'[]';_0x18cd8f['model'][_0x2cd618]={'insertions':this['_utils']['_makeModelFromViewString'](_0x53a2b5),'deletions':this['_utils']['_makeModelFromViewString'](_0x4ef29)};}}for(const _0x5b2f28 of _0x4be27f){let _0x2c36ff=null,_0x1aab66=0x0;const _0x33f7f1=new Map(Array['from'](_0x5adc2c['model'][_0x5b2f28]['insertions']['markers'])['filter'](([_0xbda409])=>!_0xbda409['startsWith']('revision:')));let _0x4761ae=0x0;for(const _0x20dc20 of _0x41f91c){const _0x5e1f3f=this['_makeTape'](_0x20dc20['model'][_0x5b2f28]['insertions']);_0x20dc20==_0x5adc2c?(_0x2c36ff=_0x5e1f3f,_0x1aab66=_0x2c36ff['length'],_0x2c36ff['forEach'](_0x149185=>{_0x149185['id']=_0x4761ae++;}),this['_processTape'](_0x2c36ff)):this['_markInsertions'](_0x2c36ff,_0x5e1f3f);const _0x49dd0b=_0x2c36ff['filter'](_0x19708a=>!_0x19708a['isAdded'])['map'](_0x3f70b6=>_0x3f70b6['id']);let _0x253b4f=0x0;const _0x12fcd7=this['_makeTape'](_0x20dc20['model'][_0x5b2f28]['deletions']);_0x12fcd7['forEach'](_0x57e76e=>{_0x57e76e['isRemoved']?_0x57e76e['id']=_0x1aab66++:_0x57e76e['id']=_0x49dd0b[_0x253b4f++];}),this['_processTape'](_0x12fcd7),this['_setDistance'](_0x2c36ff,'isAdded'),this['_setDistance'](_0x12fcd7,'isRemoved'),_0x20dc20==_0x5adc2c&&this['_markMarkers'](_0x2c36ff,_0x33f7f1),_0x2c36ff=this['_joinTapes'](_0x2c36ff,_0x12fcd7),this['_refreshStartEndIndex'](_0x2c36ff),this['_setDistance'](_0x2c36ff,'isRemoved');}_0x2c36ff=_0x2c36ff['filter'](_0x931826=>!(_0x931826['isAdded']&&_0x931826['isRemoved']));const _0x1cd153=new Map(_0x251dd5['model'][_0x5b2f28]['deletions']['markers']),_0x4e40ce=new Set(_0x33f7f1['keys']());for(const _0x16b862 of _0x1cd153['keys']())_0x4e40ce['delete'](_0x16b862);this['_markSuggestions'](_0x2c36ff,_0x4e40ce),this['_fixObsoleteTags'](_0x2c36ff),_0x2c36ff=this['_removeMissingPairs'](_0x2c36ff),_0x2c36ff=this['_markMismatchedRemovedTags'](_0x2c36ff),_0x2c36ff=this['_removeUnsupportedChanges'](_0x2c36ff);const {root:_0x122435,changes:_0x33e865}=this['_makeModelFromTape'](_0x2c36ff,_0x3207d8,_0x5b2f28);_0x46c8ba['model'][_0x5b2f28]=_0x122435;const _0xa8714a=_0x16e5d1['get'](_0x5b2f28);if(_0xa8714a){const _0x4f66d=_0x3207d8['get'](_0xa8714a['userId']),_0x3c4038=new G({'author':_0x4f66d,'type':_0xa8714a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5b2f28});_0x33e865['unshift'](_0x3c4038),_0x46c8ba['attributes'][_0x5b2f28]['revisionHistoryAttachChange']=_0x3c4038['id'];}_0x46c8ba['changes']=_0x46c8ba['changes']['concat'](_0x33e865);}return _0x46c8ba;}['_markMarkers'](_0x18c939,_0x485a67){for(let _0x7bb13e=0x0;_0x7bb13e<_0x18c939['length'];_0x7bb13e++)for(const [_0xe5c003,_0x45f2bc]of _0x485a67)!_0x45f2bc['isCollapsed']&&_0x45f2bc['start']['isEqual'](_0x18c939[_0x7bb13e]['previousPosition'])&&_0x18c939[_0x7bb13e]['markersStart']['push'](_0xe5c003),_0x45f2bc['end']['isEqual'](_0x18c939[_0x7bb13e]['nextPosition'])&&_0x18c939[_0x7bb13e]['markersEnd']['push'](_0xe5c003);}['_joinTapes'](_0x33ce23,_0x2c8225){let _0x37cc05=[],_0x37e481=0x0,_0x46485f=0x0;for(;_0x37e481<_0x33ce23['length']||_0x46485f<_0x2c8225['length'];){const _0x5aef59=_0x33ce23[_0x37e481]||{},_0x473ee9=_0x2c8225[_0x46485f]||{};if(_0x5aef59['id']==_0x473ee9['id'])_0x37e481++,_0x46485f++,_0x37cc05['push'](_0x5aef59);else{if(_0x473ee9['isRemoved']&&_0x5aef59['isAdded']){const {commonTape:_0xffffce,iEnd:_0x286721,jEnd:_0x483569}=this['_threeWayMerge'](_0x33ce23,_0x37e481,_0x2c8225,_0x46485f);_0x37cc05=_0x37cc05['concat'](_0xffffce),_0x37e481=_0x286721,_0x46485f=_0x483569;}else _0x473ee9['isRemoved']?(_0x46485f++,_0x37cc05['push'](_0x473ee9)):(_0x37e481++,_0x37cc05['push'](_0x5aef59));}}return _0x37cc05;}['_markSuggestions'](_0x244f31,_0x5d3a61){const _0x477172=[];for(let _0x33d73b=0x0;_0x33d73b<_0x244f31['length'];_0x33d73b++){for(let _0x14e0fb=0x0;_0x14e0fb<_0x244f31[_0x33d73b]['markersStart']['length'];_0x14e0fb++){const _0x1bdaf0=_0x244f31[_0x33d73b]['markersStart'][_0x14e0fb];if(!_0x5d3a61['has'](_0x1bdaf0))continue;const {group:_0x24f43a,type:_0x3b3b38,authorId:_0x14f1c9}=_0x3b38ff(_0x1bdaf0);'revision-suggestion'!=_0x24f43a||'insertion'!=_0x3b3b38&&'deletion'!=_0x3b3b38||(_0x477172['unshift']({'type':_0x3b3b38,'name':_0x1bdaf0,'userId':_0x14f1c9}),_0x244f31[_0x33d73b]['markersStart']['splice'](_0x14e0fb,0x1),_0x14e0fb--);}_0x3a9535(_0x244f31[_0x33d73b]);for(let _0x1345e1=0x0;_0x1345e1<_0x244f31[_0x33d73b]['markersEnd']['length'];_0x1345e1++){const _0x7d7e8c=_0x244f31[_0x33d73b]['markersEnd'][_0x1345e1];if(!_0x5d3a61['has'](_0x7d7e8c))continue;const {group:_0x4df9eb,type:_0x313d4d}=_0x3b38ff(_0x7d7e8c);if('revision-suggestion'!=_0x4df9eb||'insertion'!=_0x313d4d&&'deletion'!=_0x313d4d)continue;_0x244f31[_0x33d73b]['markersEnd']['splice'](_0x1345e1,0x1),_0x1345e1--;const _0xa1d622=_0x477172['findIndex'](_0x387c14=>_0x387c14['name']==_0x7d7e8c);_0xa1d622>-0x1&&_0x477172['splice'](_0xa1d622,0x1);}}function _0x3b38ff(_0x1cd72f){const _0x383d97=_0x1cd72f['split'](':');return{'group':_0x383d97[0x0],'type':_0x383d97[0x1],'subType':_0x383d97['length']>=0x5?_0x383d97[0x2]:null,'id':_0x383d97['length']<0x5?_0x383d97[0x2]:_0x383d97[0x3],'authorId':_0x383d97['length']<0x5?_0x383d97[0x3]:_0x383d97[0x4],'markerCount':0x6==_0x383d97['length']?_0x383d97[0x5]:null};}function _0x3a9535(_0x25cd09){for(let _0x4e702a=0x0;_0x4e702a<_0x477172['length'];_0x4e702a++){if(_0x25cd09['isAdded']&&'insertion'==_0x477172[_0x4e702a]['type']&&_0x25cd09['isAdded']['userId']==_0x477172[_0x4e702a]['userId'])return _0x25cd09['isAddSuggestion']=_0x477172[_0x4e702a],void delete _0x25cd09['isAdded'];if(!_0x25cd09['isAdded']&&!_0x25cd09['isRemoved']&&'deletion'==_0x477172[_0x4e702a]['type'])return void(_0x25cd09['isRemoveSuggestion']=_0x477172[_0x4e702a]);}}}['_setDistance'](_0x298a2c,_0x587385){let _0x3af202=0x0,_0x391db6=!0x1;const _0x4f3d5e=new Map();for(const _0x371349 of _0x298a2c)_0x371349[_0x587385]?_0x391db6&&(_0x3af202++,_0x391db6=!0x1):(_0x3af202++,_0x391db6=!0x0),_0x4f3d5e['set'](_0x371349['id'],_0x3af202);for(let _0x5b8c8a=0x0;_0x5b8c8a<_0x298a2c['length'];_0x5b8c8a++){if('isRemoved'==_0x587385&&_0x298a2c[_0x5b8c8a]['isAdded']||'isAdded'==_0x587385&&_0x298a2c[_0x5b8c8a]['isRemoved'])continue;if('text'==_0x298a2c[_0x5b8c8a]['type']){_0x298a2c[_0x5b8c8a]['distance']=0x0;continue;}const _0x54ddc2=_0x4f3d5e['get'](_0x298a2c[_0x5b8c8a]['pairId']),_0x548f51=_0x4f3d5e['get'](_0x298a2c[_0x5b8c8a]['id']);_0x298a2c[_0x5b8c8a]['distance']=_0x54ddc2-_0x548f51;}}['_getRevisionsRange'](_0x5d5d48,_0x5a499d,_0x461caa=!0x1){const _0x20ca9b=[];let _0x5f3ba0=this['repository']['getIndex'](_0x5d5d48),_0x238c7a=this['repository']['getIndex'](_0x5a499d);for(-0x1==_0x238c7a&&(_0x238c7a=this['repository']['_revisions']['length'],_0x461caa=!0x1);_0x5f3ba0<_0x238c7a;)_0x20ca9b['push'](this['repository']['getRevision'](_0x5f3ba0)),_0x5f3ba0++;return _0x461caa&&_0x20ca9b['push'](this['repository']['getRevision'](_0x5f3ba0)),_0x20ca9b;}['_threeWayMerge'](_0x1fd1c1,_0x49490b,_0xf9f549,_0x545b30){const _0x4e217e=this['editor']['model']['schema'];let _0x290afc=_0x49490b;for(;_0x1fd1c1[_0x290afc]&&_0x1fd1c1[_0x290afc]['isAdded'];)_0x290afc++;let _0x2d05ab=_0x545b30;for(;_0xf9f549[_0x2d05ab]&&_0xf9f549[_0x2d05ab]['isRemoved'];)_0x2d05ab++;_0x3e4491(_0x1fd1c1,_0x49490b,_0x290afc),_0x3e4491(_0xf9f549,_0x545b30,_0x2d05ab);const _0x4d787a=_0xf9f549['slice'](_0x545b30,_0x2d05ab)['concat'](_0x1fd1c1['slice'](_0x49490b,_0x290afc));return _0x4d787a['sort']((_0xcb0b20,_0x5d0a82)=>_0xcb0b20['side']!=_0x5d0a82['side']?_0xcb0b20['side']-_0x5d0a82['side']:_0xcb0b20['level']!=_0x5d0a82['level']?_0xcb0b20['level']-_0x5d0a82['level']:_0xcb0b20['distance']!=_0x5d0a82['distance']?_0x5d0a82['distance']-_0xcb0b20['distance']:!!_0xcb0b20['isAdded']!=!!_0x5d0a82['isAdded']?-0x1==_0xcb0b20['side']||0x0==_0xcb0b20['side']?_0xcb0b20['isAdded']?-0x1:0x1:_0xcb0b20['isAdded']?0x1:-0x1:_0xcb0b20['index']-_0x5d0a82['index']),{'commonTape':_0x4d787a,'iEnd':_0x290afc,'jEnd':_0x2d05ab};function _0x3e4491(_0x5699ca,_0x5b7f69,_0x5305f5){let _0x165297=-0x1,_0x542dc0=Number['POSITIVE_INFINITY'],_0x32dbcb=!0x0;for(let _0x525146=_0x5b7f69;_0x525146<_0x5305f5;_0x525146++)if(_0x4e217e['isInline'](_0x5699ca[_0x525146]['item'])||(_0x32dbcb=!0x1),_0x5699ca[_0x525146]['item']['startIndex']<_0x5b7f69&&(_0x165297=_0x525146),_0x5699ca[_0x525146]['item']['endIndex']>=_0x5305f5){_0x542dc0=_0x525146;break;}_0x32dbcb&&(_0x165297=_0x5305f5-0x1);for(let _0x503a35=_0x5b7f69;_0x503a35<_0x5305f5;_0x503a35++)_0x5699ca[_0x503a35]['side']=_0x503a35<=_0x165297?-0x1:_0x503a35<_0x542dc0?0x0:0x1,_0x5699ca[_0x503a35]['index']=_0x503a35;let _0x34d884=0x0;for(let _0x36ca07=_0x5b7f69;_0x36ca07<=_0x165297;_0x36ca07++)0x0==_0x5699ca[_0x36ca07]['distance']?_0x5699ca[_0x36ca07]['level']=_0x34d884:(_0x34d884++,_0x5699ca[_0x36ca07]['level']=_0x34d884,_0x34d884++);for(let _0x3cc375=_0x5b7f69;_0x3cc375<_0x5305f5;_0x3cc375++)0x0==_0x5699ca[_0x3cc375]['side']&&(_0x5699ca[_0x3cc375]['level']=_0x34d884);_0x34d884=0x0;for(let _0x1955be=_0x5305f5-0x1;_0x1955be>=_0x542dc0;_0x1955be--)0x0==_0x5699ca[_0x1955be]['distance']?_0x5699ca[_0x1955be]['level']=_0x34d884:(_0x34d884--,_0x5699ca[_0x1955be]['level']=_0x34d884,_0x34d884--);}}['_fixObsoleteTags'](_0x4f8287){const _0x5c7009=new Map(),_0x11c1b5=this['editor']['model']['schema'];for(let _0x33924f=0x1;_0x33924f<_0x4f8287['length'];_0x33924f++){let _0x542bb9,_0x57cec5,_0xc7183;const _0xbf108d=_0x4f8287[_0x33924f],_0x9a40c0=_0x4f8287[_0x33924f-0x1];if('text'==_0xbf108d['type'])continue;if(_0xbf108d['type']!=_0x9a40c0['type'])continue;if(!_0x11c1b5['isBlock'](_0x9a40c0['item'])||_0x11c1b5['isLimit'](_0x9a40c0['item']))continue;if(!_0x11c1b5['isBlock'](_0xbf108d['item'])||_0x11c1b5['isLimit'](_0xbf108d['item']))continue;if((_0x4f8287[_0x33924f]['isAdded']||_0x4f8287[_0x33924f]['isAddSuggestion'])&&_0x4f8287[_0x33924f-0x1]['isRemoved'])_0x542bb9=_0x4f8287[_0x33924f],_0x57cec5=_0x4f8287[_0x33924f-0x1],_0xc7183=_0x33924f-0x1;else{if(!_0x4f8287[_0x33924f]['isRemoved']||!_0x4f8287[_0x33924f-0x1]['isAdded']&&!_0x4f8287[_0x33924f-0x1]['isAddSuggestion'])continue;_0x542bb9=_0x4f8287[_0x33924f-0x1],_0x57cec5=_0x4f8287[_0x33924f],_0xc7183=_0x33924f;}const _0x1e0361=_0x542bb9['level']==_0x57cec5['level'],_0xfc3c42=Math['abs'](_0x542bb9['level'])<Math['abs'](_0x57cec5['level'])&&0x0==_0x57cec5['distance'];(_0x1e0361||_0xfc3c42)&&(_0x5c7009['set'](_0x57cec5['id'],_0x542bb9['id']),_0x4f8287['splice'](_0xc7183,0x1),_0x33924f--,_0x542bb9['isAdded']=!0x1);}for(let _0x472460=0x0;_0x472460<_0x4f8287['length'];_0x472460++)_0x5c7009['has'](_0x4f8287[_0x472460]['pairId'])&&(_0x4f8287[_0x472460]['pairId']=_0x5c7009['get'](_0x4f8287[_0x472460]['pairId']));}['_removeMissingPairs'](_0xf6ba7f){const _0x3e6fc8=new Set(_0xf6ba7f['map'](_0x156225=>_0x156225['id']));for(let _0x55aa7c=0x0;_0x55aa7c<_0xf6ba7f['length'];_0x55aa7c++)_0x3e6fc8['has'](_0xf6ba7f[_0x55aa7c]['pairId'])||0x0==_0xf6ba7f[_0x55aa7c]['distance']||(_0xf6ba7f[_0x55aa7c]['isIncorrect']=!0x0);return _0xf6ba7f['filter'](_0x8e8772=>!_0x8e8772['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1dfa09){const _0x613419=new Set();for(let _0x32673f=0x0;_0x32673f<_0x1dfa09['length'];_0x32673f++){if(_0x613419['has'](_0x1dfa09[_0x32673f]['id'])&&_0x1dfa09[_0x32673f]['isRemoved']&&(_0x1dfa09[_0x32673f]['isIncorrect']=!0x0),_0x1dfa09[_0x32673f]['isIncorrect'])continue;if(0x0==_0x1dfa09[_0x32673f]['distance'])continue;if('elementStart'!=_0x1dfa09[_0x32673f]['type'])continue;if(null==_0x1dfa09[_0x32673f]['pairId'])continue;let _0x14253d=_0x32673f+0x1,_0x5312ec=0x0;for(;_0x1dfa09[_0x14253d]['id']!=_0x1dfa09[_0x32673f]['pairId'];)'elementStart'==_0x1dfa09[_0x14253d]['type']?_0x5312ec++:'elementEnd'==_0x1dfa09[_0x14253d]['type']&&_0x5312ec--,_0x14253d++;if(0x0!=_0x5312ec){if(_0x1dfa09[_0x32673f]['isRemoved'])_0x1dfa09[_0x32673f]['isIncorrect']=!0x0;else{for(;_0x14253d!=_0x32673f;)_0x1dfa09[_0x14253d]['isRemoved']&&0x0!=_0x1dfa09[_0x14253d]['distance']&&(_0x1dfa09[_0x14253d]['isIncorrect']=!0x0,_0x613419['add'](_0x1dfa09[_0x14253d]['pairId'])),_0x14253d--;}}}return _0x1dfa09['filter'](_0x3ed735=>!_0x3ed735['isIncorrect']);}['_removeUnsupportedChanges'](_0xf1d2a2){const _0x8079ed=this['editor']['model']['schema'];for(let _0x7c7efe=0x0;_0x7c7efe<_0xf1d2a2['length'];_0x7c7efe++){if(!(_0xf1d2a2[_0x7c7efe]['isAdded']||_0xf1d2a2[_0x7c7efe]['isAddSuggestion']||_0xf1d2a2[_0x7c7efe]['isRemoved']||_0xf1d2a2[_0x7c7efe]['isRemoveSuggestion']))continue;if(0x0==_0xf1d2a2[_0x7c7efe]['distance'])continue;const _0x3da039=_0xf1d2a2[_0x7c7efe]['item'];_0x8079ed['isBlock'](_0x3da039)||_0x8079ed['isLimit'](_0x3da039)||(_0xf1d2a2[_0x7c7efe]['isAdded']&&delete _0xf1d2a2[_0x7c7efe]['isAdded'],_0xf1d2a2[_0x7c7efe]['isAddSuggestion']&&delete _0xf1d2a2[_0x7c7efe]['isAddSuggestion'],_0xf1d2a2[_0x7c7efe]['isRemoveSuggestion']&&delete _0xf1d2a2[_0x7c7efe]['isRemoveSuggestion'],_0xf1d2a2[_0x7c7efe]['isRemoved']&&(_0xf1d2a2[_0x7c7efe]['isIncorrect']=!0x0));}return _0xf1d2a2['filter'](_0xbba655=>!_0xbba655['isIncorrect']);}['_makeModelFromTape'](_0x230951,_0x3f94c7,_0x22bf13){const _0x592222=new _0x541f15(),_0x10ab91=[],_0x26dbdd=new Map(),_0x371a89=this['editor']['model'],_0x21e276=_0x371a89['schema'],_0x5e9c0d=[_0x592222],_0x312e83={},_0x12a3e1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3846d3=null;const _0xd8ada4=[0x0];for(let _0xc1fe9d=0x0;_0xc1fe9d<_0x230951['length'];_0xc1fe9d++)if('elementStart'===_0x230951[_0xc1fe9d]['type']){_0x230951[_0xc1fe9d]['previousPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4);const _0x4c3d60=new _0x2fac84(_0x230951[_0xc1fe9d]['item']['name'],_0x230951[_0xc1fe9d]['item']['getAttributes']());_0x5e9c0d[0x0]['_appendChild'](_0x4c3d60),_0xd8ada4['push'](0x0),_0x5e9c0d['unshift'](_0x4c3d60),_0x230951[_0xc1fe9d]['nextPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4);}else'elementEnd'===_0x230951[_0xc1fe9d]['type']?(_0x5e9c0d['shift'](),_0x230951[_0xc1fe9d]['previousPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4),_0xd8ada4['pop'](),_0xd8ada4[_0xd8ada4['length']-0x1]++,_0x230951[_0xc1fe9d]['nextPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4)):(_0x230951[_0xc1fe9d]['previousPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4),_0x3846d3?_0x3846d3['_data']+=_0x230951[_0xc1fe9d]['item']['data']:_0x3846d3=new _0x303cd6(_0x230951[_0xc1fe9d]['item']['data'],_0x230951[_0xc1fe9d]['item']['getAttributes']()),_0x230951[_0xc1fe9d+0x1]&&'text'===_0x230951[_0xc1fe9d+0x1]['type']&&_0x383a8b(_0x3846d3,_0x230951[_0xc1fe9d+0x1]['item'])||(_0x5e9c0d[0x0]['_appendChild'](_0x3846d3),_0x3846d3=null),_0xd8ada4[_0xd8ada4['length']-0x1]+=_0x230951[_0xc1fe9d]['item']['offsetSize'],_0x230951[_0xc1fe9d]['nextPosition']=_0x371a89['createPositionFromPath'](_0x592222,_0xd8ada4));for(let _0x1602bb=0x0;_0x1602bb<_0x230951['length'];_0x1602bb++){const _0x49fa23=_0x230951[_0x1602bb]['previousPosition'],_0x390cf5=_0x230951[_0x1602bb]['nextPosition'];for(const _0x40403d of _0x230951[_0x1602bb]['markersStart'])_0x26dbdd['set'](_0x40403d,{'start':_0x49fa23,'end':null});_0x1e45a2('isRemoveSuggestion',_0x1602bb,_0x49fa23,_0x390cf5),_0x1e45a2('isAddSuggestion',_0x1602bb,_0x49fa23,_0x390cf5),_0x1e45a2('isRemoved',_0x1602bb,_0x49fa23,_0x390cf5),_0x1e45a2('isAdded',_0x1602bb,_0x49fa23,_0x390cf5);for(const _0x27a7f7 of _0x230951[_0x1602bb]['markersEnd']){const _0xeae7a2=_0x26dbdd['get'](_0x27a7f7);_0xeae7a2?_0xeae7a2['end']=_0x390cf5:_0x26dbdd['set'](_0x27a7f7,{'start':_0x390cf5,'end':_0x390cf5});}}for(const [_0x4fd301,_0x4387c7]of _0x26dbdd){const _0xc96f66=this['editor']['model']['createRange'](_0x4387c7['start'],_0x4387c7['end']);_0x592222['markers']['set'](_0x4fd301,_0xc96f66);}return _0x10ab91['sort']((_0x3db732,_0x43dadd)=>{const _0x5b0e29=_0x592222['markers']['get']('revision:'+_0x3db732['id']),_0x1e3822=_0x592222['markers']['get']('revision:'+_0x43dadd['id']);return _0x5b0e29['start']['isBefore'](_0x1e3822['start'])?-0x1:_0x5b0e29['start']['isAfter'](_0x1e3822['start'])?0x1:_0x5b0e29['end']['isBefore'](_0x1e3822['end'])?-0x1:_0x5b0e29['end']['isAfter'](_0x1e3822['end'])?0x1:'add'===_0x3db732['type']?-0x1:0x1;}),{'root':_0x592222,'changes':_0x10ab91};function _0x1e45a2(_0x3677e3,_0x5b8887,_0x588b35,_0x5348da){const _0xdf017a=!!_0x230951[_0x5b8887][_0x3677e3],_0x2fa26b=_0xdf017a?_0x230951[_0x5b8887][_0x3677e3]['userId']:null,_0x3082b8=_0x5b8887===_0x230951['length']-0x1,_0x3f8305=_0x12a3e1[_0x3677e3][0x0],_0x603899=_0x21e276['isObject'](_0x230951[_0x5b8887]['item']);!_0x312e83[_0x3677e3]&&_0xdf017a?_0x312e83[_0x3677e3]={'start':_0x588b35,'tapeItem':_0x230951[_0x5b8887],'userId':_0x2fa26b,'type':_0x3677e3}:_0x312e83[_0x3677e3]&&!_0xdf017a?(_0x312e83[_0x3677e3]['end']=_0x588b35,_0x4b364f(_0x312e83[_0x3677e3]),_0x312e83[_0x3677e3]=null):_0x312e83[_0x3677e3]&&_0xdf017a&&_0x312e83[_0x3677e3]['userId']!==_0x2fa26b&&(_0x312e83[_0x3677e3]['end']=_0x588b35,_0x3f8305&&_0x3f8305['userId']===_0x312e83[_0x3677e3]['userId']||_0x4b364f(_0x312e83[_0x3677e3]),_0x312e83[_0x3677e3]={'start':_0x588b35,'tapeItem':_0x230951[_0x5b8887],'userId':_0x2fa26b,'type':_0x3677e3}),_0x312e83[_0x3677e3]&&_0x603899&&('elementStart'!==_0x230951[_0x5b8887]['type']||_0x3f8305&&_0x3f8305['userId']===_0x2fa26b||_0x12a3e1[_0x3677e3]['unshift']({'userId':_0x2fa26b,'object':_0x230951[_0x5b8887]['item'],'change':_0x312e83[_0x3677e3]}),'elementEnd'===_0x230951[_0x5b8887]['type']&&_0x3f8305&&_0x3f8305['object']===_0x230951[_0x5b8887]['item']&&(_0x12a3e1[_0x3677e3]['shift'](),_0x312e83[_0x3677e3]=_0x3f8305['change'])),_0x312e83[_0x3677e3]&&_0x3082b8&&(_0x312e83[_0x3677e3]['end']=_0x5348da,_0x4b364f(_0x312e83[_0x3677e3]),_0x312e83[_0x3677e3]=null);}function _0x4b364f({start:_0x3a9d67,end:_0x1bcec7,tapeItem:_0x15ceb6,userId:_0x53b213,type:_0x4f7a82}){const _0x1c0d93=_0x15ceb6['item'],_0x2be3c4=_0x371a89['schema']['isBlock'](_0x1c0d93)&&!_0x371a89['schema']['isLimit'](_0x1c0d93),_0x5154cc=_0x3a9d67['nodeAfter']==_0x1bcec7['parent']&&_0x1bcec7['isAtStart'];if(_0x2be3c4&&_0x5154cc)return;const _0x52e387=_0x371a89['createRange'](_0x3a9d67,_0x1bcec7),_0x581b7f=_0x3f94c7['get'](_0x53b213),_0x122813=new G({'author':_0x581b7f,'type':'isAdded'==_0x4f7a82||'isAddSuggestion'==_0x4f7a82?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4f7a82||'isRemoveSuggestion'==_0x4f7a82},'createdAt':new Date(),'rootName':_0x22bf13});_0x10ab91['push'](_0x122813),_0x592222['markers']['set']('revision:'+_0x122813['id'],_0x52e387);}function _0x383a8b(_0x21057a,_0x3ad209){const _0xd54723=_0x21057a['getAttributes'](),_0x17e0b7=_0x3ad209['getAttributes']();for(const _0x449bde of _0xd54723){if(_0x449bde[0x1]!==_0x3ad209['getAttribute'](_0x449bde[0x0]))return!0x1;_0x17e0b7['next']();}return _0x17e0b7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2b9ee2=>{const _0xa7ef63=_0x2b9ee2['markerName']['split'](':')[0x1],_0x20972f=this['_getChangeFromId'](_0xa7ef63);if(!_0x20972f)return null;const _0xb5a6a9='add'==_0x20972f['type']?'insertion':'deletion',_0x3cb957=['ck-suggestion-marker','ck-suggestion-marker-'+_0xb5a6a9];return _0x20972f['data']['isSuggestion']&&_0x3cb957['push']('ck-suggestion-marker-'+_0xb5a6a9+'-new'),this['activeChange']==_0x20972f&&_0x3cb957['push']('ck-suggestion-marker--active'),{'classes':_0x3cb957,'attributes':{'data-change-id':_0xa7ef63}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x377fbc=>{_0x377fbc['on']('element:pre',(_0x51f211,_0x2d681a,_0xc948ce)=>{const _0x3f4ec5=_0x2d681a['viewItem']['getChild'](0x0);if(!_0x3f4ec5||!_0x3f4ec5['is']('element','code'))return;if(!_0xc948ce['consumable']['consume'](_0x3f4ec5,{'attributes':['vid_start','vid_end']}))return;const _0x1896e4=_0x2d681a['modelRange']['start']['nodeAfter'];_0xc948ce['writer']['setAttribute']('vid_start',_0x3f4ec5['getAttribute']('vid_start'),_0x1896e4),_0xc948ce['writer']['setAttribute']('vid_end',_0x3f4ec5['getAttribute']('vid_end'),_0x1896e4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27f304=>{_0x27f304['on']('element',(_0x15bad2,_0x5085f3,_0x2af7e4)=>{if(!_0x2af7e4['consumable']['consume'](_0x5085f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5085f3['modelRange']['isCollapsed'])return;const _0x5746ef=_0x5085f3['modelRange']['start']['nodeAfter'];_0x5746ef['hasAttribute']('vid_start')||_0x5746ef['hasAttribute']('vid')||(_0x2af7e4['writer']['setAttribute']('vid_start',_0x5085f3['viewItem']['getAttribute']('vid_start'),_0x5746ef),_0x2af7e4['writer']['setAttribute']('vid_end',_0x5085f3['viewItem']['getAttribute']('vid_end'),_0x5746ef));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xd5855d=>_0xd5855d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x20b58f,[,_0x24b804])=>{['vid_start','vid_end','vid']['includes'](_0x24b804)&&(_0x20b58f['return']=!0x0,_0x20b58f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3b8350=>{_0x3b8350['on']('attribute:vid',(_0x226039,_0x2bd15b,_0x538f6e)=>{if('\x20'!=_0x2bd15b['item']['data']||_0x2bd15b['item']['parent']['maxOffset']>0x1)return;if(!_0x538f6e['consumable']['consume'](_0x2bd15b['item'],_0x226039['name']))return;const _0x457af6=_0x538f6e['writer'],_0x4a12fe=_0x538f6e['mapper']['toViewRange'](_0x2bd15b['range']);_0x457af6['wrap'](_0x4a12fe,_0x457af6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2488fb){const _0x136605=_0x2488fb['plugins']['get']('RevisionViewer');return(_0x49a7c6,_0x32f6bb,_0x252dd0)=>{const _0xc5e642=_0x32f6bb['markerName']['split'](':')[0x1],_0x193dad=_0x136605['_getChangeFromId'](_0xc5e642);if(!_0x193dad)return null;const _0x36e356='add'==_0x193dad['type']?'split':'merge';if(!_0x252dd0['consumable']['test'](_0x32f6bb['markerRange'],_0x49a7c6['name']))return;const _0x520fe2=_0x32f6bb['markerRange']['getWalker'](),_0x323688=_0x32f6bb['markerRange']['start'],_0x4e2c5b=_0x2488fb['model']['schema'];let _0x2d3978=null,_0x5a4518=null,_0xc947db=!0x1,_0x358f9b=!0x1;for(const _0x2fd91c of _0x520fe2){const _0x5dfd8f=_0x2fd91c['item'];_0xc947db=_0xc947db||_0x4e2c5b['isContent'](_0x5dfd8f);const _0x5c86a8=_0x252dd0['mapper']['toViewElement'](_0x5dfd8f);if(_0x5c86a8&&_0x5c86a8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fd91c['type']&&(_0x4e2c5b['isBlock'](_0x5dfd8f)&&!_0x4e2c5b['isLimit'](_0x5dfd8f)&&(_0x5dfd8f['nextSibling']||_0x323688['isAtEnd']?_0x2d3978&&_0x2d3978['parent']==_0x5dfd8f||(_0x2d3978=_0x5dfd8f,_0x21f3f4(_0x2fd91c['previousPosition']),_0x358f9b=!0x0):_0x5a4518=_0x5a4518||_0x2fd91c['previousPosition']));}function _0x21f3f4(_0x2b24f1){const _0x4156e8=_0x252dd0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36e356}),_0xc048eb=_0x252dd0['mapper']['toViewPosition'](_0x2b24f1);_0x193dad['data']['isSuggestion']&&_0x252dd0['writer']['addClass']('ck-suggestion-marker-'+_0x36e356+'-new',_0x4156e8),_0x136605['activeChange']==_0x193dad&&_0x252dd0['writer']['addClass']('ck-suggestion-marker--active',_0x4156e8),_0x252dd0['writer']['insert'](_0xc048eb,_0x4156e8),_0x252dd0['mapper']['bindElementToMarker'](_0x4156e8,_0x32f6bb['markerName']);}_0xc947db||_0x358f9b||!_0x5a4518||_0x21f3f4(_0x5a4518);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ca26c,_0x3a52f2,_0x4d1f32)=>{const _0x161340=_0x4d1f32['mapper']['markerNameToElements'](_0x3a52f2['markerName']);if(_0x161340){for(const _0x13aa90 of _0x161340)(_0x13aa90['hasClass']('ck-suggestion-marker-split')||_0x13aa90['hasClass']('ck-suggestion-marker-merge'))&&(_0x4d1f32['mapper']['unbindElementFromMarkerName'](_0x13aa90,_0x3a52f2['markerName']),_0x4d1f32['writer']['remove'](_0x13aa90));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x546c72,_0x5ea478,_0x1842e1)=>{const _0x132d28=_0x5ea478['markerName']['split'](':')[0x1],_0x4b2047=this['_getChangeFromId'](_0x132d28);if(!_0x4b2047)return null;const _0x350bcb='add'==_0x4b2047['type']?'split':'merge';if(_0x1842e1['consumable']['test'](_0x5ea478['markerRange'],_0x546c72['name']))for(const _0x48017b of _0x5ea478['markerRange']['getItems']()){if(!_0x48017b['is']('element','softBreak'))continue;const _0x42dc1c=_0x1842e1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x350bcb}),_0x4b8b34=_0x1842e1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x48017b));_0x4b2047['data']['isSuggestion']&&_0x1842e1['writer']['addClass']('ck-suggestion-marker-'+_0x350bcb+'-new',_0x42dc1c),this['activeChange']==_0x4b2047&&_0x1842e1['writer']['addClass']('ck-suggestion-marker--active',_0x42dc1c),_0x1842e1['writer']['insert'](_0x4b8b34,_0x42dc1c),_0x1842e1['mapper']['bindElementToMarker'](_0x42dc1c,_0x5ea478['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3f0309=>{for(const _0x67a0b3 of this['editor']['model']['document']['getRootNames']()){const _0x358aa8=this['editor']['model']['document']['getRoot'](_0x67a0b3),_0x1bf0dd=this['editor']['editing']['view']['document']['getRoot'](_0x67a0b3);if(_0x1bf0dd){const _0x25550d=_0x358aa8['getAttribute']('revisionHistoryAttachChange');if(_0x3f0309['removeAttribute']('data-change-id',_0x1bf0dd),_0x3f0309['removeClass']('ck-revision-history-root-add',_0x1bf0dd),_0x3f0309['removeClass']('ck-revision-history-root-remove',_0x1bf0dd),_0x3f0309['removeClass']('ck-revision-history-root--active',_0x1bf0dd),_0x25550d){const _0x24938e=this['_getChangeFromId'](_0x25550d);if(!_0x24938e)return null;_0x3f0309['setAttribute']('data-change-id',_0x25550d,_0x1bf0dd),_0x3f0309['addClass']('ck-revision-history-root-'+_0x24938e['type'],_0x1bf0dd),this['activeChange']==_0x24938e&&_0x3f0309['addClass']('ck-revision-history-root--active',_0x1bf0dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x36f40c=>'revision-comment:'+_0x36f40c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15e2a3=>'revision-suggestion:'+_0x15e2a3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5165f0=>({'name':'suggestion:'+_0x5165f0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x138dcc=>{const _0x605d1f=_0x138dcc['markerName']['split'](':')[0x1];return'insertion'!=_0x605d1f&&'deletion'!=_0x605d1f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x605d1f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2096d2,_0x89fec6,_0x22c226)=>{const _0x257515=_0x22c226['mapper']['markerNameToElements'](_0x89fec6['markerName']);if(_0x257515){for(const _0x3a2b7b of _0x257515)_0x3a2b7b['is']('uiElement')&&(_0x22c226['mapper']['unbindElementFromMarkerName'](_0x3a2b7b,_0x89fec6['markerName']),_0x22c226['writer']['remove'](_0x3a2b7b));}},{'priority':'high'});}['_getChangeFromId'](_0x21f64c){return this['_changeIdToChange']['get'](_0x21f64c);}['_getViewForChange'](_0x2ca931){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x2ca931),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4dd186,_0x569e71,_0x441100,_0x28f139)=>{_0x28f139&&this['_balloon']['remove'](_0x28f139),_0x441100&&(this['_balloon']['add']({'view':_0x441100,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f5723=this['editor']['editing'],_0x26df15=this['_getChangeFromId'](_0x441100['changeId']);let _0x2e0654;if(_0x26df15['data']['isOnRoot']){const _0x577cd3=_0x2f5723['view']['getDomRoot'](_0x26df15['rootName']);_0x2e0654=Array['from'](_0x577cd3['getClientRects']());}else{const _0xf55e1f=this['editor']['model']['markers']['get']('revision:'+_0x441100['changeId']);_0x2e0654=Array['from'](_0x2f5723['mapper']['markerNameToElements'](_0xf55e1f['name']))['map'](_0x46a90f=>_0x2f5723['view']['domConverter']['mapViewToDom'](_0x46a90f))['map'](_0x3b6d0d=>Array['from'](_0x3b6d0d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e0654[0x0];return _0x2e0654['find'](_0x4df2e0=>_0x4df2e0['top']-0x3<=this['_activeViewTarget']['y']&&_0x4df2e0['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4df2e0['left']-0x3<=this['_activeViewTarget']['x']&&_0x4df2e0['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e0654[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xeea48,_0xf1491f,_0x41b093,_0x2f1568)=>{this['activeView']=_0x41b093?this['_getViewForChange'](_0x41b093):null,this['editor']['model']['change'](()=>{const _0x3f0849=this['editor']['editing'];_0x2f1568&&(_0x2f1568['data']['isOnRoot']?_0x3f0849['view']['change'](_0x271411=>{_0x271411['removeClass']('ck-revision-history-root--active',_0x3f0849['view']['document']['getRoot'](_0x2f1568['rootName']));}):_0x3f0849['reconvertMarker']('revision:'+_0x2f1568['id'])),_0x41b093&&(_0x41b093['data']['isOnRoot']?_0x3f0849['view']['change'](_0x116eff=>{_0x116eff['addClass']('ck-revision-history-root--active',_0x3f0849['view']['document']['getRoot'](_0x41b093['rootName']));}):_0x3f0849['reconvertMarker']('revision:'+_0x41b093['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3a894e,_0x2ee7f1)=>{if(this['activeChange'])return;const _0x19b7f5=this['_findChangeIdFromDomTarget'](_0x2ee7f1['target']),_0x32d8e1=this['_changeIdToChange']['get'](_0x19b7f5);_0x32d8e1?(this['_activeViewTarget']={'x':_0x2ee7f1['domEvent']['x'],'y':_0x2ee7f1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x32d8e1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3faf8c,_0x2d836a)=>{const _0x3a0a7c=this['_findChangeIdFromDomTarget'](_0x2d836a['target']),_0x51cc72=this['_changeIdToChange']['get'](_0x3a0a7c);_0x51cc72?(this['_activeViewTarget']={'x':_0x2d836a['domEvent']['x'],'y':_0x2d836a['domEvent']['y']},_0x51cc72===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x51cc72):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x827a05){do{const _0x465eb7=_0x827a05['getAttribute']('data-change-id');if(_0x465eb7)return _0x465eb7;_0x827a05=_0x827a05['parent'];}while(_0x827a05);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x315323=>{for(const _0x53ef34 of this['editor']['model']['markers'])_0x315323['removeMarker'](_0x53ef34);});}}function Q(_0x2e84c4,_0xac8883){return(_0x32fbd5,_0x448551,_0x165cca)=>{if(!_0x165cca['consumable']['test'](_0x448551['markerRange'],_0x32fbd5['name']))return;const _0x2a6b13=_0x448551['markerRange']['getWalker'](),_0x2e1c76=_0x448551['markerRange']['start'],_0x2c8f5f=_0x2e84c4['model']['schema'];let _0x2f6c9f=null,_0x32fd8f=null,_0x386ba2=!0x1,_0x3dc26c=!0x1;for(const _0xac87b6 of _0x2a6b13){const _0x4ffc9d=_0xac87b6['item'];_0x386ba2=_0x386ba2||_0x2c8f5f['isContent'](_0x4ffc9d);const _0xe598d1=_0x165cca['mapper']['toViewElement'](_0x4ffc9d);if(_0xe598d1&&_0xe598d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xac87b6['type']&&(_0x2c8f5f['isBlock'](_0x4ffc9d)&&!_0x2c8f5f['isLimit'](_0x4ffc9d)&&(_0x4ffc9d['nextSibling']||_0x2e1c76['isAtEnd']?_0x2f6c9f&&_0x2f6c9f['parent']==_0x4ffc9d||(_0x2f6c9f=_0x4ffc9d,_0x2c5041(_0xac87b6['previousPosition']),_0x3dc26c=!0x0):_0x32fd8f=_0x32fd8f||_0xac87b6['previousPosition']));}function _0x2c5041(_0x15cdbe){const _0x301311=_0x165cca['mapper']['toViewPosition'](_0x15cdbe),_0x3ffe9a=_0x165cca['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xac8883});_0x165cca['writer']['insert'](_0x301311,_0x3ffe9a),_0x165cca['mapper']['bindElementToMarker'](_0x3ffe9a,_0x448551['markerName']);}_0x386ba2||_0x3dc26c||!_0x32fd8f||_0x2c5041(_0x32fd8f);};}class nt extends _0x31c870{constructor(_0x277671){super(_0x277671);const _0x16f258=_0x277671['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x16f258,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x16f258,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x368a90=this['editor'],_0x3f33fe=_0x368a90['plugins']['get'](l),_0xcdff6b=_0x3f33fe['isReady']?_0x3f33fe['diff']['newRevisionId']:null;_0x368a90['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xcdff6b);}['refresh'](){const {isReady:_0x4538d5,isEnabled:_0x201ce3,repository:_0x5cb382,diff:_0x19310a}=this['editor']['plugins']['get'](l),_0x207c9c=_0x19310a&&_0x5cb382['getLaterVisibleRevision'](_0x19310a['newRevisionId']);this['isEnabled']=_0x4538d5&&_0x201ce3&&Boolean(_0x207c9c);}}class rt extends _0x31c870{['_step'];constructor(_0x1ad982,{direction:_0x379468}){super(_0x1ad982);const _0x3d7a64=_0x1ad982['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x379468?0x1:-0x1,this['listenTo'](_0x3d7a64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d7a64,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d7a64,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2f4772=this['editor'],_0x185284=_0x2f4772['plugins']['get'](l),{isNavigationMode:_0x433287,currentChangeNumber:_0x32ab89}=_0x185284;let _0x52894a;if(_0x185284['activeChange']=_0x433287?_0x185284['diff']['changes']['get'](_0x32ab89+this['_step']):_0x185284['diff']['changes']['first'],_0x185284['activeChange']['data']['isOnRoot'])_0x52894a=_0x2f4772['editing']['view']['getDomRoot'](_0x185284['activeChange']['rootName']);else{const _0x1cd4cd=_0x2f4772['model']['markers']['get']('revision:'+_0x185284['activeChange']['id']);_0x52894a=_0x54b865(_0x2f4772['editing'],_0x1cd4cd);}_0x4afd52({'target':_0x52894a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x440df9,currentChangeNumber:_0x3b3ce6,numberOfChanges:_0xb6a109,isReady:_0x83051,isEnabled:_0x48ec34}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x48ec34&&_0x83051&&_0xb6a109)&&(!_0x440df9||(0x1===this['_step']?_0x3b3ce6<_0xb6a109-0x1:_0x3b3ce6>0x0));}}class Ri extends _0x2a30ec{constructor(_0x537ea7){super(_0x537ea7);const _0x2a4c87=this['bindTemplate'],_0x4427ca=new _0x54c149(_0x537ea7),_0x381c72=new _0x54c149(_0x537ea7);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',(_0x8224fc,_0x50a907)=>_0x8224fc&&_0x50a907>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3b7342,_0x47dc4d,_0x4ce4a0,_0x46decd)=>{if(!_0x3b7342)return R(_0x537ea7,'Loading...');if(!_0x4ce4a0)return R(_0x537ea7,'No\x20changes');const _0x593cd4=R(_0x537ea7,'NUMBER_OF_CHANGES',_0x4ce4a0);return _0x46decd?R(_0x537ea7,'X_OF_Y_CHANGES',[_0x47dc4d+0x1,_0x4ce4a0]):_0x593cd4;}),_0x4427ca['set']({'label':R(_0x537ea7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1b2cde}),_0x381c72['set']({'label':R(_0x537ea7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1ef223}),_0x4427ca['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x381c72['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4427ca['on']('execute',()=>this['fire']('execute','backward')),_0x381c72['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',_0x2a4c87['if']('_isStatusLabelVisible','ck-hidden',_0x5d3ef0=>!_0x5d3ef0)]},'children':[{'text':_0x2a4c87['to']('isNavigationMode',_0x1d1584=>_0x1d1584?R(_0x537ea7,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x537ea7,'Total')+':\x20')}]},{'text':_0x2a4c87['to']('_statusText')}]},new _0x1ea54b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4427ca,_0x381c72]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xe82639{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x24624f=this['editor']['editing']['view'];_0x24624f['change'](_0x3436a5=>{for(const _0x508313 of _0x24624f['document']['roots'])_0x3436a5['addClass'](ge,_0x508313);});}['hide'](){const _0x5460bc=this['editor']['editing']['view'];_0x5460bc['change'](_0x4dfe4b=>{for(const _0xfb30f7 of _0x5460bc['document']['roots'])_0x4dfe4b['removeClass'](ge,_0xfb30f7);});}}class u extends _0xe82639{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1a9326=this['editor'],_0x2e7421=_0x1a9326['plugins']['get'](l),_0x2e5ea8=_0x1a9326['plugins']['get'](ji);_0x1a9326['ui']['componentFactory']['add']('exitToEditing',_0x23c9a6=>{const _0x5b3f31=new _0x54c149(_0x23c9a6);return _0x5b3f31['set']({'label':R(_0x23c9a6,'Back\x20to\x20editing'),'icon':_0x11a896,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b3f31,'execute',()=>{_0x1a9326['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b3f31;}),_0x1a9326['ui']['componentFactory']['add']('restoreRevision',_0x51bc05=>{const _0x1b430f=new _0x54c149(_0x51bc05);return _0x1b430f['set']({'label':R(_0x51bc05,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1b430f['bind']('isEnabled')['to'](_0x1a9326['commands']['get']('restoreRevision')),this['listenTo'](_0x1b430f,'execute',()=>_0x1a9326['execute']('restoreRevision')),_0x1b430f;}),_0x1a9326['ui']['componentFactory']['add']('changesNavigation',_0x25674c=>{const _0x1030c7=new Ri(_0x25674c),_0x15e095=_0x1a9326['commands']['get']('showPreviousChange'),_0x59f57e=_0x1a9326['commands']['get']('showNextChange');return _0x1030c7['bind']('isBackwardNavigationEnabled')['to'](_0x15e095,'isEnabled'),_0x1030c7['bind']('isForwardNavigationEnabled')['to'](_0x59f57e,'isEnabled'),_0x1030c7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2e7421),this['listenTo'](_0x1030c7,'execute',(_0x455a5c,_0x75f13d)=>{_0x1a9326['execute']('forward'===_0x75f13d?'showNextChange':'showPreviousChange');}),_0x1030c7;}),_0x2e5ea8['show'](),_0x2e7421['on']('change:isReady',(_0x24eed4,_0xdf7ba1,_0x20d4fb)=>{_0x20d4fb?_0x2e5ea8['hide']():_0x2e5ea8['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4f6974,_0x365739){super(_0x4f6974,_0x365739);const _0x3cc8cb=this['bindTemplate'];this['set']({'label':R(_0x4f6974,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4f6974,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3cc8cb['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x500cad=this['fieldView']['element'];this['_tooltipString']=_0x500cad['scrollWidth']>_0x500cad['clientWidth']&&_0x500cad['value']||'';}}class ni extends _0x2a30ec{constructor(_0xd26952,_0x40d46e,_0x500bed){super(_0xd26952);const _0x112651=new _0x3e6369();_0x112651['set']({'content':_0x356834,'viewBox':'0\x200\x2011\x2010'});const _0x557749=['ck','ck-revision-history-sidebar__revision-author'];_0x500bed&&_0x557749['push']('ck-revision-history-sidebar__revision-author_creator');const _0x8af5aa=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xd26952,_0x500bed?'Revision\x20creator':'Revision\x20author')},'children':[_0x112651,_0x40d46e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x557749},'children':_0x8af5aa});}}function ai(_0x3e1763,_0x26dd75){const _0x10f392=_0x3e1763['bindTemplate'],_0x127369=_0x3e1763['locale'],_0x22d699=_0x23327c(_0x127369);_0x22d699['panelPosition']='sw';const _0x3708a0=function(_0x535dc3,_0xae79aa){const _0xc9d494=function(_0x48502b,_0x1ec42a){const _0x31e866=_0x48502b['locale'],_0x4ebd8f={'Compare\x20against\x20selected':R(_0x31e866,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x31e866,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x31e866,'Restore\x20this\x20revision')};return _0x1ec42a['map'](_0x2e60ca=>{const _0x2aede4=_0x4ebd8f[_0x2e60ca['name']];return _0x2aede4&&_0x2aede4!==_0x2e60ca['name']&&(_0x2e60ca['name']=_0x2aede4),_0x2e60ca;});}(_0x535dc3,_0xae79aa),_0xa303ad=new _0x22f980();for(const _0x31c247 of _0xc9d494){const _0x464479={'type':'button','model':new to({'label':_0x31c247['name'],'class':_0x31c247['class'],'withText':!0x0,'role':'menuitem','_action':_0x31c247['action']})};_0x464479['model']['bind']('isEnabled')['to'](_0x535dc3,'isActionsDropdownOpen',_0xe8693f=>'function'!=typeof _0x31c247['isEnabled']||(!_0xe8693f||_0x31c247['isEnabled'](_0x535dc3))),_0xa303ad['add'](_0x464479);}return _0xa303ad;}(_0x3e1763,_0x26dd75);return _0x3e1763['bind']('isActionsDropdownOpen')['to'](_0x22d699,'isOpen'),_0x22d699['buttonView']['set']({'label':R(_0x127369,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d695d}),_0x22d699['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x10f392['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x10f392['to'](_0x2eda83=>_0x2eda83['stopPropagation']())}}),_0x22d699['on']('execute',_0x100a97=>{_0x3e1763['isReady']&&'function'==typeof _0x100a97['source']['_action']&&_0x100a97['source']['_action'](_0x3e1763);}),_0x4f859d(_0x22d699,_0x3708a0,{'role':'menu'}),_0x22d699['listenTo'](_0x3e1763,'change:isActionsDropdownOpen',(_0x280c56,_0x838510,_0x3ef621)=>{if(_0x3ef621)for(const _0x2601be of _0x22d699['listView']['items']){const _0x5e2c64=_0x2601be['children']['first'],_0x17a18a=_0x26dd75['find'](_0x1e9137=>_0x1e9137['action']===_0x5e2c64['_action'])['isVisible'];_0x2601be['isVisible']=void 0x0===_0x17a18a||_0x17a18a(_0x3e1763);}}),_0x22d699;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x2b13fc(_0x2a30ec){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x792ed5,_0x2298a3,_0x3fd4f7,_0x386491){super(_0x792ed5);const _0x4b3d74=this['bindTemplate'],_0xab146d=function(_0x47ca1b,_0x25088d){const _0xf6ea58=Array['from'](_0x25088d['authors'])['filter'](_0x2afc1a=>_0x2afc1a!=_0x25088d['creator']);return _0x25088d['creator']&&_0xf6ea58['unshift'](_0x25088d['creator']),_0xf6ea58['map'](_0x1a3b9d=>new ni(_0x47ca1b,_0x1a3b9d,_0x1a3b9d==_0x25088d['creator']));}(_0x792ed5,_0x2298a3);this['id']=_0x2298a3['id'],this['_revision']=_0x2298a3,this['_requireRevisionName']=_0x386491,this['bind']('name','createdAt')['to'](_0x2298a3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4daf36=>{return _0x14ef4e=_0x792ed5['uiLanguage'],(_0x5aecf6=_0x4daf36)['toLocaleDateString'](_0x14ef4e,{'month':'long','day':'numeric'})+',\x20'+_0x5aecf6['toLocaleTimeString'](_0x14ef4e,{'hour':'numeric','minute':'numeric'});var _0x14ef4e,_0x5aecf6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x792ed5,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x193b4c=>_0x193b4c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x45da6b,_0x2b9833)=>_0x45da6b&&_0x2b9833),this['revisionActionsView']=_0x3fd4f7&&_0x3fd4f7['length']?ai(this,_0x3fd4f7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4b3d74['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4b3d74['if']('isEnabled','ck-disabled',_0x3bafb5=>!_0x3bafb5),_0x4b3d74['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4b3d74['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4b3d74['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':_0x4b3d74['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':_0xab146d}]},this['revisionActionsView']],'on':{'click':_0x4b3d74['to'](_0x1476e1=>{_0x1476e1['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b8606=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b8606,'change',()=>{this['_requireRevisionName']&&!_0x1b8606['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b8606['value']}),_0x1b8606['value']||(_0x1b8606['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x264615,_0x1f06e4){const _0x30393d=_0x396e09['fromJSDate'](_0x264615)['setLocale'](_0x1f06e4),_0x61a44a=_0x396e09['local'](),_0x237315=_0x61a44a['minus']({'days':0x1})['startOf']('day');let _0x2d4b27,_0x53013d;return _0x30393d['hasSame'](_0x61a44a,'day')?(_0x2d4b27=_0x30393d['startOf']('day')['toJSDate'](),_0x53013d=_0x30393d['toRelativeCalendar']()):_0x30393d['hasSame'](_0x237315,'day')?(_0x2d4b27=_0x237315['toJSDate'](),_0x53013d=_0x30393d['toRelativeCalendar']()):_0x30393d['hasSame'](_0x61a44a,'week')?(_0x2d4b27=_0x30393d['startOf']('week')['toJSDate'](),_0x53013d=_0x30393d['weekdayLong']||''):_0x30393d['hasSame'](_0x61a44a,'year')?(_0x2d4b27=_0x30393d['startOf']('month')['toJSDate'](),_0x53013d=_0x30393d['monthLong']||''):(_0x2d4b27=_0x30393d['startOf']('year')['toJSDate'](),_0x53013d=String(_0x30393d['year'])),{'startDate':_0x2d4b27,'localizedPeriodName':_0x53013d};}class bi extends _0x2a30ec{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x11e393,_0x2bb26b,_0x533df4,_0x5e2b34){super(_0x11e393);const _0xb921ea=li(_0x2bb26b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2bb26b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x533df4,this['_requireRevisionName']=_0x5e2b34,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':_0xb921ea}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xecd738){const _0x2e9242=new _i(this['locale'],_0xecd738,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2e9242);}['removeRevision'](_0x4e3d1c){const _0x513d24=this['revisionViews']['find'](_0x3823fb=>_0x3823fb['id']===_0x4e3d1c['id']);this['revisionViews']['remove'](_0x513d24);}}class fi extends _0x2a30ec{constructor(_0x561f78){super(_0x561f78);const _0x11f957=new _0x3e6369();_0x11f957['content']=_0x43beba,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x11f957,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x561f78,'Revision\x20history')]}]});}}class di extends _0x2a30ec{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a75c9,_0x21ebdf,_0x50385c,_0x191a9d){super(_0x1a75c9);const _0x174e35=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x21ebdf,this['_revisionActions']=_0x50385c,this['_requireRevisionName']=_0x191a9d,this['on']('select',(_0x1ed225,_0x376d4f)=>{this['fire']('revisionSelected',_0x376d4f);}),this['on']('setName',(_0x5ca4ed,_0x484379)=>{this['fire']('revisionSetName',_0x484379);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x1a75c9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x174e35['if']('isEnabled','ck-disabled',_0x5d2cd3=>!_0x5d2cd3)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1e3bc2 of this['_revisions'])this['_addRevision'](_0x1e3bc2);this['_revisions']['on']('add',(_0xc34bfd,_0x414635)=>{this['_addRevision'](_0x414635);}),this['_revisions']['on']('remove',(_0x5729ae,_0x4ba13c)=>{this['_removeRevision'](_0x4ba13c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c402e=>_0x3c402e['revisionViews']['map'](_0x8e5d18=>_0x8e5d18))['flat']();}['selectRevision'](_0x211a5f){for(const _0x515bd6 of this['revisionViews'])_0x211a5f&&_0x211a5f['id']===_0x515bd6['id']?_0x515bd6['select']():_0x515bd6['deselect']();}['highlightRevisions'](_0x394669){for(const _0x3960ed of this['revisionViews'])_0x394669['some'](({id:_0x39ca32})=>_0x39ca32===_0x3960ed['id'])?_0x3960ed['highlight']():_0x3960ed['unhighlight']();}['_addRevision'](_0x1a0720){const _0x38fb19=li(_0x1a0720['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1187b4=this['timePeriodViews']['get'](0x0);_0x1187b4&&_0x1187b4['startDate']['getTime']()===_0x38fb19['getTime']()||(_0x1187b4=new bi(this['locale'],_0x38fb19,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1187b4)),_0x1187b4['addRevision'](_0x1a0720);}['_removeRevision'](_0xf09e1){const _0x516e2a=li(_0xf09e1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x516e2a)['removeRevision'](_0xf09e1);}['_getTimePeriodViewByStartDate'](_0xd1dd20){return this['timePeriodViews']['find'](_0x56ef17=>_0x56ef17['startDate']['getTime']()===_0xd1dd20['getTime']());}}class f extends _0xe82639{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0xfbbd9f(_0x30d67e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4584ca,_0x3d35d1){super(_0x3d35d1),this['sourceElement']=_0x4584ca,this['model']['document']['createRoot']();const _0x3661a0=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3661a0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ae66a,_0x227045){const _0x4a3597=new this(_0x5ae66a,_0x227045);return await _0x4a3597['initPlugins'](),await _0x4a3597['ui']['init'](_0x5ae66a),await _0x4a3597['data']['init'](_0x4a3597['config']['get']('initialData')||''),_0x4a3597['fire']('ready'),_0x4a3597;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x38daca{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be803){function _0x17c51c(_0x521e8c){return _0x521e8c['map'](_0x40b27b=>String['fromCharCode'](_0x40b27b))['join']('');}super(_0x2be803),this['result']='end',_0x2be803[_0x17c51c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c51c([0x76,0x69,0x65,0x77])][_0x17c51c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17c51c([0x61,0x75,0x74,0x6f]),_0x2be803[_0x17c51c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17c51c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17c51c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17c51c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17c51c([0x6f,0x6b])});}}class ct extends _0x38daca{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x586cc5){if(super(_0x586cc5),!this['editor']['config']['get']('revisionHistory'))throw new _0x4c83d9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5bff52=>this['_showRevisionViewer']({..._0x5bff52,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xdf933a=>this['_closeRevisionViewer'](_0xdf933a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3645d5=>this['_restoreRevision'](_0x3645d5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f8ed3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f8ed3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x8f96e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x8f96e2);}['getRevision'](_0x3bda0c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3bda0c);}['getRevisions'](_0x37734b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x37734b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1075de=this['editor'],_0x3c4970=_0x1e3f31(_0x1075de,d),_0x553571=_0x1075de['plugins']['get']('RevisionTracker'),_0x11107d=_0x1075de['plugins']['get']('Users')['users'];return _0x3c4970['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3c4970['lazyRoots'],(_0x3c4970['plugins']['push'](ht,l,u,class extends _0x38daca{static get['requires'](){return[l,'Users'];}['init'](){const _0x45e659=this['editor']['plugins']['get']('Users');for(const _0x1adbe1 of _0x11107d)_0x1adbe1['isAnonymous']||_0x45e659['getUser'](_0x1adbe1['id'])||_0x45e659['addUser'](_0x1adbe1);const _0x5c64af=_0x553571['repository']['getRevisions']();let _0x208fb1=null;const _0x563b6a=this['editor']['plugins']['get']('RevisionViewer');_0x563b6a['adapter']=_0x553571['adapter'],_0x563b6a['bind']('isEnabled')['to'](_0x553571),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1075de,'isReadOnly',_0x163217=>!_0x163217);for(const _0x4d3014 of _0x5c64af){const _0x3e0be7=null===_0x4d3014['creator'];if(_0x3e0be7&&_0x4d3014['toVersion']===_0x4d3014['fromVersion'])continue;const _0x4f3449=_0x4d3014['toJSON']();_0x563b6a['addRevisionData'](_0x4f3449,(_0x568815,_0x311102,_0x115527)=>{if(_0x3e0be7){if(_0x208fb1)_0x208fb1['_update'](_0x568815,_0x311102);else{if(!_0x311102){const _0xd49caa=_0x115527['toJSON']();_0xd49caa['id']=_0x549feb(),_0x553571['saveRevision'](_0xd49caa,_0x115527['toVersion'])['then'](_0x42930d=>{_0x208fb1=_0x42930d;});}}}else _0x4d3014['_update'](_0x568815,_0x311102);});}}},f),_0x3c4970);}['_enhanceShowRevisionViewerCallback'](){const _0x30eb0f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4d036b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x278f2b=this['editor']['plugins']['get']('Autosave');await _0x278f2b['save']();}else await _0x4d036b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x226a6f=this['editor']['plugins']['get']('Dialog');_0x226a6f['isOpen']&&_0x226a6f['hide']();}const _0x526d18=this['_getRevisionViewerEditorConfig']();return _0x30eb0f(_0x526d18)['then'](_0x125d41=>{return(this['_viewerEditor']=_0x125d41,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'),_0x125d41);})['catch'](_0x3ad661=>(console['error'](_0x3ad661),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2297a8=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'](),_0x2297a8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x493019=this['editor']['plugins']['get']('Annotations');_0x493019['refreshVisibility'](),_0x493019['refreshPositioning']();}})));}['_showRevisionViewer'](_0x8cec45){const _0xb88b87=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33e1bc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4116f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4116f5,_0x8cec45)['then'](_0x3e2d9b=>(_0x33e1bc['style']['display']='block',_0xb88b87['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3e2d9b));}['_closeRevisionViewer'](_0x42e231){const _0x253d7c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x253d7c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x42e231['destroy']();}async['_restoreRevision'](_0x2541e2){const _0x56381d=this['editor'],_0x3e3030=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x29928e=_0x56381d['plugins']['get']('RevisionTracker'),_0x1c0304=_0x56381d['plugins']['get']('RevisionHistoryUtils'),_0x2fe4d3=_0x3e3030['repository']['getRevision'](_0x2541e2);let _0x31e157,_0x9f246d,_0xc0a6e0;try{await _0x1c0304['loadRevisionData'](_0x2fe4d3,this['adapter']),_0x31e157=_0x1c0304['getRevisionDocumentData'](_0x2fe4d3),_0x9f246d=_0x1c0304['getRevisionRootsAttributes'](_0x2fe4d3);}catch(_0x27e5a0){return void console['error'](_0x27e5a0);}_0x56381d['model']['change'](_0x111c75=>{for(const _0x4b6935 of Array['from'](_0x56381d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x111c75['removeMarker'](_0x4b6935);}),_0x3e3030['isReady']=!0x1,_0x56381d['model']['enqueueChange'](_0x4d2c85=>{_0x4d2c85['setSelection'](null),_0x4d2c85['removeSelectionAttribute'](_0x56381d['model']['document']['selection']['getAttributeKeys']());const _0x3728b5=Object['keys'](_0x31e157);for(const _0xd69acd of _0x56381d['model']['document']['roots'])'$graveyard'!=_0xd69acd['rootName']&&_0xd69acd['isAttached']()&&!_0x3728b5['includes'](_0xd69acd['rootName'])&&_0x4d2c85['detachRoot'](_0xd69acd);for(const _0x3b5710 of _0x3728b5){let _0x23e4d2=_0x56381d['model']['document']['getRoot'](_0x3b5710);_0x23e4d2&&_0x23e4d2['isAttached']()||(_0x23e4d2=_0x4d2c85['addRoot'](_0x3b5710));const _0x3aa21e=_0x9f246d[_0x3b5710],_0x12db4e=Object['keys'](_0x3aa21e),_0x46719b=_0x31e157[_0x3b5710];for(const _0x27a693 of _0x23e4d2['getAttributeKeys']())_0x12db4e['includes'](_0x27a693)||_0x4d2c85['removeAttribute'](_0x27a693,_0x23e4d2);for(const _0x11070a of _0x12db4e)_0x4d2c85['setAttribute'](_0x11070a,_0x9f246d[_0x3b5710][_0x11070a],_0x23e4d2);_0x4d2c85['remove'](_0x4d2c85['createRangeIn'](_0x23e4d2)),_0x4d2c85['insert'](_0x56381d['data']['parse'](_0x46719b,_0x23e4d2),_0x23e4d2,0x0);}});const _0x5c0775=R(_0x56381d['locale'],'Restored');if(_0x2fe4d3['name'])_0xc0a6e0=-0x1==_0x2fe4d3['name']['indexOf'](_0x5c0775)?_0x5c0775+':\x20'+_0x2fe4d3['name']:_0x2fe4d3['name'];else _0xc0a6e0=_0x5c0775+':\x20'+(_0x2fe4d3['createdAt']['toLocaleDateString'](_0x56381d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2fe4d3['createdAt']['toLocaleTimeString'](_0x56381d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x29928e['saveRevision']({'name':_0xc0a6e0}),_0x3e3030['isReady']=!0x0,_0x56381d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x1f1d3e){super(_0x1f1d3e),this['_revisionViewer']=_0x1f1d3e['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x18d437=this['_revisionsRepository']['_revisions'],_0x25bf58=this['_createRevisionActions'](),_0x3818d2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x18d437,_0x25bf58,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',(_0x56fc64,_0x1237f9)=>{_0x1237f9['revisionViews']['on']('add',(_0xb32179,_0x2e8c25)=>{_0x2e8c25['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)),_0x3818d2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4da5c5=this['_revisionsRepository']['getRevision'](0x0);if(_0x4da5c5){const _0x784cfd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4da5c5['id']);this['_revisionViewer']['compare'](_0x4da5c5,_0x784cfd);}}['_handleRevisionSelected'](_0x1f989a,_0x191137){const _0x37a99b=this['_revisionsRepository']['getRevision'](_0x191137['id']),_0x543b2e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x37a99b['id']);this['_revisionViewer']['compare'](_0x37a99b,_0x543b2e);}['_handleRevisionSetName'](_0x476b4a,_0x5de0f3){this['_revisionsRepository']['getRevision'](_0x5de0f3['id'])['setName'](_0x5de0f3['name']);}['_handleDiffChange'](_0x58834f,_0x6768a3,_0x9519a4){const _0x42e975=this['_revisionsRepository']['getRevisionsInDiff'](_0x9519a4);_0x42e975['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x42e975),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x42e975[0x0]));}['_createRevisionActions'](){const _0x1d0da8=this['editor'],_0xa0c2a1=f['availableRevisionActions'],_0x1c41e0=_0x1d0da8['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x1c41e0['length'])return _0x1c41e0['map'](_0x4bda0f=>{const _0x270394='string'==typeof _0x4bda0f?Object['assign']({},_0xa0c2a1[_0x4bda0f]):_0x4bda0f;return _0x270394['action']=_0x270394['action']['bind'](this,_0x1d0da8),_0x270394['isVisible']&&(_0x270394['isVisible']=_0x270394['isVisible']['bind'](this,_0x1d0da8)),_0x270394;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xfc2d23},_0x39bf6a)=>{const _0x29e524=_0xfc2d23['get'](l),_0x4cf9cc=_0x29e524['repository'];let _0x4cbb4c=_0x29e524['diff']['newRevisionId'],_0x3ce20a=_0x39bf6a['id'];_0x4cf9cc['getIndex'](_0x4cbb4c)>_0x4cf9cc['getIndex'](_0x3ce20a)&&([_0x4cbb4c,_0x3ce20a]=[_0x3ce20a,_0x4cbb4c]),_0x29e524['compare'](_0x4cbb4c,_0x3ce20a);},'isVisible':({plugins:_0xe1edbb},_0x2c3324)=>{const _0x10841d=_0xe1edbb['get'](l);return!(_0x10841d['repository']['getRevisionsInDiff'](_0x10841d['diff'])['length']>0x2)&&!_0x2c3324['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x24a03f,{id:_0x53c8bd})=>{_0x24a03f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53c8bd);},'isVisible':({plugins:_0x20f01f},_0x51c354)=>!!_0x20f01f['get'](l)['repository']['getLaterVisibleRevision'](_0x51c354['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4f18d8},{id:_0x1f7b83,revisionNameView:_0x54a2ec})=>{const _0x139e0c=_0x4f18d8['get'](l),_0x10532e=_0x139e0c['repository']['getEarlierVisibleRevision'](_0x1f7b83);_0x139e0c['compare'](_0x1f7b83,_0x10532e),_0x54a2ec['focus'](),_0x54a2ec['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x321aa8,_0x528126){super(_0x321aa8),this['_view']=_0x528126,this['_toolbarConfig']=st(_0x321aa8['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x19403e){const _0x15661a=this['editor'],_0x51bf96=this['view'],_0x2a8baa=_0x15661a['editing']['view'],_0x5db383=_0x51bf96['editable'],_0x3f5915=_0x2a8baa['document']['getRoot']();_0x5db383['name']=_0x3f5915['rootName'],_0x51bf96['render']();const _0xb76e79=_0x5db383['element'];this['setEditableElement'](_0x5db383['name'],_0xb76e79),_0x51bf96['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2a8baa['attachDomRoot'](_0xb76e79),this['_elementReplacer']['replace'](_0x19403e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4e2096=this['view'],_0xfa9736=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xfa9736['detachDomRoot'](_0x4e2096['editable']['name']),_0x4e2096['destroy']();}['_initToolbar'](){const _0x138f3c=this['view'];_0x138f3c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x138f3c['stickyPanel']['limiterElement']=_0x138f3c['element'],_0x138f3c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x186378})=>_0x186378),_0x138f3c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x138f3c['toolbar']);}}class ii extends _0x23356b{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x330ac4,_0x36cdb4,_0x5bd802={}){super(_0x330ac4),this['stickyPanel']=new _0xf22efc(_0x330ac4),this['toolbar']=new _0x2f7875(_0x330ac4,{'shouldGroupWhenFull':_0x5bd802['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x330ac4,_0x36cdb4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x12f321(_0x3eb0fb){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b50ee,_0x3e663d){super(_0x3e663d),this['sourceElement']=_0x4b50ee,this['model']['document']['createRoot']();const _0xa94437=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xa94437);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x59c498,_0x21a3c0){const _0x119dec=new this(_0x59c498,_0x21a3c0);return await _0x119dec['initPlugins'](),await _0x119dec['ui']['init'](_0x59c498),await _0x119dec['data']['init'](_0x119dec['config']['get']('initialData')||''),_0x119dec['fire']('ready'),_0x119dec;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0xe82639{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cdebd){function _0x41c5c7(_0x2e2e02){return _0x2e2e02['map'](_0x25b2e7=>String['fromCharCode'](_0x25b2e7))['join']('');}super(_0x3cdebd),this['result']='end',_0x3cdebd[_0x41c5c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41c5c7([0x76,0x69,0x65,0x77])][_0x41c5c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41c5c7([0x61,0x75,0x74,0x6f]),_0x3cdebd[_0x41c5c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41c5c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41c5c7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41c5c7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41c5c7([0x6f,0x6b])});}}class ct extends _0xe82639{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x49a24d){if(super(_0x49a24d),!this['editor']['config']['get']('revisionHistory'))throw new _0x5abf2f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x10fa59=>this['_showRevisionViewer']({..._0x10fa59,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1ec413=>this['_closeRevisionViewer'](_0x1ec413)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xa8443b=>this['_restoreRevision'](_0xa8443b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x365327){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x365327;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x42a434){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x42a434);}['getRevision'](_0x1a56a0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1a56a0);}['getRevisions'](_0x493af4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x493af4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b077f=this['editor'],_0x151e1e=_0x199b93(_0x1b077f,d),_0x2aa2ba=_0x1b077f['plugins']['get']('RevisionTracker'),_0x267799=_0x1b077f['plugins']['get']('Users')['users'];return _0x151e1e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x151e1e['lazyRoots'],(_0x151e1e['plugins']['push'](ht,l,u,class extends _0xe82639{static get['requires'](){return[l,'Users'];}['init'](){const _0x73e9f7=this['editor']['plugins']['get']('Users');for(const _0x42dcdb of _0x267799)_0x42dcdb['isAnonymous']||_0x73e9f7['getUser'](_0x42dcdb['id'])||_0x73e9f7['addUser'](_0x42dcdb);const _0x677c93=_0x2aa2ba['repository']['getRevisions']();let _0x19655a=null;const _0x216f4d=this['editor']['plugins']['get']('RevisionViewer');_0x216f4d['adapter']=_0x2aa2ba['adapter'],_0x216f4d['bind']('isEnabled')['to'](_0x2aa2ba),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b077f,'isReadOnly',_0x4c491b=>!_0x4c491b);for(const _0x431bae of _0x677c93){const _0x5ea5d7=null===_0x431bae['creator'];if(_0x5ea5d7&&_0x431bae['toVersion']===_0x431bae['fromVersion'])continue;const _0x2b7896=_0x431bae['toJSON']();_0x216f4d['addRevisionData'](_0x2b7896,(_0x3e2894,_0x529834,_0x2a61aa)=>{if(_0x5ea5d7){if(_0x19655a)_0x19655a['_update'](_0x3e2894,_0x529834);else{if(!_0x529834){const _0x522ad9=_0x2a61aa['toJSON']();_0x522ad9['id']=_0x1ea4a3(),_0x2aa2ba['saveRevision'](_0x522ad9,_0x2a61aa['toVersion'])['then'](_0x35d1bc=>{_0x19655a=_0x35d1bc;});}}}else _0x431bae['_update'](_0x3e2894,_0x529834);});}}},f),_0x151e1e);}['_enhanceShowRevisionViewerCallback'](){const _0x393cc8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x11b09d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x14c666=this['editor']['plugins']['get']('Autosave');await _0x14c666['save']();}else await _0x11b09d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5a80da=this['editor']['plugins']['get']('Dialog');_0x5a80da['isOpen']&&_0x5a80da['hide']();}const _0x410ba4=this['_getRevisionViewerEditorConfig']();return _0x393cc8(_0x410ba4)['then'](_0x2ad0b8=>{return(this['_viewerEditor']=_0x2ad0b8,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'),_0x2ad0b8);})['catch'](_0x4a2a49=>(console['error'](_0x4a2a49),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x39d987=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'](),_0x39d987(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x123173=this['editor']['plugins']['get']('Annotations');_0x123173['refreshVisibility'](),_0x123173['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1f3dbb){const _0x47deb3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x388e6d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x13b27d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x13b27d,_0x1f3dbb)['then'](_0x501188=>(_0x388e6d['style']['display']='block',_0x47deb3['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x501188));}['_closeRevisionViewer'](_0x362401){const _0x4be4a5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4be4a5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x362401['destroy']();}async['_restoreRevision'](_0x50786a){const _0x466395=this['editor'],_0x5196df=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x16b627=_0x466395['plugins']['get']('RevisionTracker'),_0x346c28=_0x466395['plugins']['get']('RevisionHistoryUtils'),_0x234cfc=_0x5196df['repository']['getRevision'](_0x50786a);let _0x697d5f,_0x2a4cd9,_0x557d6f;try{await _0x346c28['loadRevisionData'](_0x234cfc,this['adapter']),_0x697d5f=_0x346c28['getRevisionDocumentData'](_0x234cfc),_0x2a4cd9=_0x346c28['getRevisionRootsAttributes'](_0x234cfc);}catch(_0xae7064){return void console['error'](_0xae7064);}_0x466395['model']['change'](_0x58e100=>{for(const _0x25f593 of Array['from'](_0x466395['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x58e100['removeMarker'](_0x25f593);}),_0x5196df['isReady']=!0x1,_0x466395['model']['enqueueChange'](_0x3d4093=>{_0x3d4093['setSelection'](null),_0x3d4093['removeSelectionAttribute'](_0x466395['model']['document']['selection']['getAttributeKeys']());const _0x12602e=Object['keys'](_0x697d5f);for(const _0x2eb98f of _0x466395['model']['document']['roots'])'$graveyard'!=_0x2eb98f['rootName']&&_0x2eb98f['isAttached']()&&!_0x12602e['includes'](_0x2eb98f['rootName'])&&_0x3d4093['detachRoot'](_0x2eb98f);for(const _0x1995a6 of _0x12602e){let _0x5ae069=_0x466395['model']['document']['getRoot'](_0x1995a6);_0x5ae069&&_0x5ae069['isAttached']()||(_0x5ae069=_0x3d4093['addRoot'](_0x1995a6));const _0x306f02=_0x2a4cd9[_0x1995a6],_0x279b99=Object['keys'](_0x306f02),_0x55883d=_0x697d5f[_0x1995a6];for(const _0x3e9f15 of _0x5ae069['getAttributeKeys']())_0x279b99['includes'](_0x3e9f15)||_0x3d4093['removeAttribute'](_0x3e9f15,_0x5ae069);for(const _0xa79d59 of _0x279b99)_0x3d4093['setAttribute'](_0xa79d59,_0x2a4cd9[_0x1995a6][_0xa79d59],_0x5ae069);_0x3d4093['remove'](_0x3d4093['createRangeIn'](_0x5ae069)),_0x3d4093['insert'](_0x466395['data']['parse'](_0x55883d,_0x5ae069),_0x5ae069,0x0);}});const _0x5bb0a2=R(_0x466395['locale'],'Restored');if(_0x234cfc['name'])_0x557d6f=-0x1==_0x234cfc['name']['indexOf'](_0x5bb0a2)?_0x5bb0a2+':\x20'+_0x234cfc['name']:_0x234cfc['name'];else _0x557d6f=_0x5bb0a2+':\x20'+(_0x234cfc['createdAt']['toLocaleDateString'](_0x466395['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x234cfc['createdAt']['toLocaleTimeString'](_0x466395['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x16b627['saveRevision']({'name':_0x557d6f}),_0x5196df['isReady']=!0x0,_0x466395['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|