@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250604.0 → 0.0.0-nightly-20250605.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +14 -14
- 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
|
-
_0x29f8d2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x32048c){super(),this['id']=_0x32048c['id']||_0x3affb0(),this['creator']=_0x32048c['creator']||null,this['authors']=_0x32048c['authors']||[],this['diffData']=_0x32048c['diffData']||null,this['toVersion']=_0x32048c['toVersion']||0x0,this['fromVersion']=_0x32048c['fromVersion']||0x0,this['set']('name',_0x32048c['name']||''),this['set']('createdAt',_0x32048c['createdAt']||new Date()),this['set']('attributes',_0x32048c['attributes']||{});}['setName'](_0x5eae77){this['_update']({'name':_0x5eae77});}['setAttribute'](_0x2357be,_0x2476fb){const _0x5168d5=_0x14f7a4(this['attributes']);_0xa854f3(_0x5168d5,_0x2357be,_0x2476fb),this['_update']({'attributes':_0x5168d5});}['removeAttribute'](_0x55cecc){const _0x55a7bd=_0x14f7a4(this['attributes']);_0x2b493e(_0x55a7bd,_0x55cecc),this['_update']({'attributes':_0x55a7bd});}['_update'](_0x3b2b02,_0x31dcf5=!0x1){let _0x9ccd65=!0x1;const _0x59b402={'id':this['id']},_0x1abd68=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x356b5a of _0x1abd68){const _0x557f27=_0x3b2b02[_0x356b5a];void 0x0!==_0x557f27&&_0x557f27!==this[_0x356b5a]&&(this[_0x356b5a]=_0x557f27,_0x59b402[_0x356b5a]=_0x557f27,_0x9ccd65=!0x0);}_0x9ccd65&&(_0x59b402['authors']&&(_0x59b402['authorsIds']=_0x59b402['authors']['map'](_0x42be87=>_0x42be87['id']),delete _0x59b402['authors']),this['fire']('_update',_0x59b402,_0x31dcf5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x377efc=>_0x377efc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4d12af{['_revisions'];static get['requires'](){return[_0x18dc9d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xaca4c4){super(_0xaca4c4),this['_revisions']=new _0x4916d9();}['afterInit'](){!async function(_0x4d37f0){const _0x2a9346=_0x1a5275([0x43,0x68,0x47,0x64,0x62,0x6e,0x73,0x52,0x6c,0x70,0x4d,0x65,0x49,0x55,0x61,0x57,0x33,0x42,0x4a,0x76,0x4e,0x50,0x66,0x31,0x41,0x69,0x6d,0x58,0x67,0x74,0x71,0x53,0x6f,0x6b,0x46,0x6a,0x35,0x7a,0x59,0x63,0x77,0x37,0x5a,0x78,0x48,0x72,0x39,0x56,0x51,0x45,0x54,0x4c,0x34,0x30,0x44,0x75,0x38,0x4f,0x4b,0x79,0x32,0x36]),_0xdb1060=0xeb829,_0x53f41c=0x144c641b,_0x1afa68=0x144b0dd3^_0x53f41c,_0x4b657b=window[_0x1a5275([0x44,0x61,0x74,0x65])][_0x1a5275([0x6e,0x6f,0x77])](),_0x259660=_0x4d37f0[_0x1a5275([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe80aed=new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a8a1=>{_0x259660[_0x1a5275([0x6f,0x6e,0x63,0x65])](_0x1a5275([0x72,0x65,0x61,0x64,0x79]),_0x15a8a1);}),_0x3e51ae={[_0x1a5275([0x6b,0x74,0x79])]:_0x1a5275([0x45,0x43]),[_0x1a5275([0x75,0x73,0x65])]:_0x1a5275([0x73,0x69,0x67]),[_0x1a5275([0x63,0x72,0x76])]:_0x1a5275([0x50,0x2d,0x32,0x35,0x36]),[_0x1a5275([0x78])]:_0x1a5275([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]),[_0x1a5275([0x79])]:_0x1a5275([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]),[_0x1a5275([0x61,0x6c,0x67])]:_0x1a5275([0x45,0x53,0x32,0x35,0x36])},_0x476278=_0x259660[_0x1a5275([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a5275([0x67,0x65,0x74])](_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42ed49(){let _0x2b5a49,_0x16b4b0=null,_0x5a2de0=null;try{if(_0x476278==_0x1a5275([0x47,0x50,0x4c]))return _0x1a5275([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b5a49=_0x4c857a(),!_0x2b5a49)return _0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b5a49[_0x1a5275([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a2de0=_0x21040a(_0x2b5a49[_0x1a5275([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b5a49[_0x1a5275([0x6a,0x74,0x69])])),await _0x12e7b5()?_0x2fb27a()?_0x2f6b24()?_0x1a5275([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x427cc2()?(_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5275([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16b4b0=_0x7e370b(_0x1a5275([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5275([0x74,0x72,0x69,0x61,0x6c])&&(_0x16b4b0=_0x7e370b(_0x1a5275([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x330825()):_0x1a5275([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5275([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a5275([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f6b24(){const _0x38e553=[_0x1a5275([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a5275([0x74,0x72,0x69,0x61,0x6c])][_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b657b/0x3e8:0xe10*_0x1afa68;return _0x2b5a49[_0x1a5275([0x65,0x78,0x70])]<_0x38e553;}function _0x2fb27a(){const _0x267b88=_0x2b5a49[_0x1a5275([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x267b88)return!0x1;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x2a])))return!0x0;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x52,0x48])))return!0x0;if(_0x267b88[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x52,0x52,0x48]))){if(_0x35d607())return!0x0;if(_0x855892()||_0x58c520())return!0x0;}return!0x1;}function _0x427cc2(){const _0x56dd07=_0x2b5a49[_0x1a5275([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56dd07||0x0==_0x56dd07[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36b926}=new URL(window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56dd07[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b926))return!0x0;const _0x3c7d7a=_0x36b926[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e]));return _0x56dd07[_0x1a5275([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23abda=>_0x23abda[_0x1a5275([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5275([0x2a])))[_0x1a5275([0x6d,0x61,0x70])](_0x90385d=>_0x90385d[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e])))[_0x1a5275([0x73,0x6f,0x6d,0x65])](_0x116de4=>_0x3c7d7a[_0x1a5275([0x65,0x76,0x65,0x72,0x79])]((_0xf9429c,_0x1e9c5c)=>_0x116de4[_0x1e9c5c]===_0xf9429c||_0x116de4[_0x1e9c5c]===_0x1a5275([0x2a])));}function _0x330825(){return _0x16b4b0&&_0x5a2de0?new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x297025,_0x10e80a)=>{_0x16b4b0[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x297025,_0x10e80a),_0x5a2de0[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x5d6041=>{_0x5d6041!=_0x1a5275([0x56,0x61,0x6c,0x69,0x64])&&_0x297025(_0x5d6041);},_0x10e80a);}):_0x16b4b0||_0x5a2de0||_0x1a5275([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21040a(_0x258203,_0x2eaa95){return new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262a9f=>{if(_0x3d2195())return _0x262a9f(_0x1a5275([0x56,0x61,0x6c,0x69,0x64]));_0x2869d8(),_0x259660[_0x1a5275([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d7ab3=!0x1;const _0x9157eb=_0x3affb0();function _0x3aafb6(_0x145063){return!!_0x145063&&(typeof _0x145063===_0x1a5275([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x145063===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x145063[_0x1a5275([0x74,0x68,0x65,0x6e])]===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x145063[_0x1a5275([0x63,0x61,0x74,0x63,0x68])]===_0x1a5275([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x238ed4(_0x3c9a23){_0x2a9522(_0x3c9a23)[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x65048c=>{if(!_0x65048c||_0x65048c[_0x1a5275([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a5275([0x6f,0x6b]))return _0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b8d1a(_0x50d23b(_0x9157eb+_0x2eaa95))!=_0x65048c[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5275([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x352fd3=>(_0x2d297e(),_0x352fd3),()=>{const _0x4d185b=_0x3e2a88();return null==_0x4d185b?(_0x2d297e(),_0x1a5275([0x56,0x61,0x6c,0x69,0x64])):_0x1a5275(_0x4b657b-_0x4d185b>(0x3040e01b^_0x53f41c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x262a9f)[_0x1a5275([0x63,0x61,0x74,0x63,0x68])](()=>{_0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8cc6d0=0x147a8a9b^_0x53f41c;function _0x2d297e(){const _0x53275d=_0x1a5275([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b8d1a(_0x50d23b(_0x258203)),_0x4b7912=_0x682ea5(_0x2b8d1a(window[_0x1a5275([0x4d,0x61,0x74,0x68])][_0x1a5275([0x63,0x65,0x69,0x6c])](_0x4b657b/_0x8cc6d0)));window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5275([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53275d,_0x4b7912);}function _0x3e2a88(){const _0x1823b7=_0x1a5275([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b8d1a(_0x50d23b(_0x258203)),_0x2211a1=window[_0x1a5275([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5275([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1823b7);return _0x2211a1?window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x682ea5(_0x2211a1),0x10)*_0x8cc6d0:null;}function _0x2a9522(_0x5cfc78){return new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x521b9a,_0x5b6502)=>{_0x5cfc78[_0x1a5275([0x74,0x68,0x65,0x6e])](_0x521b9a,_0x5b6502),window[_0x1a5275([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b6502,0x144db0db^_0x53f41c);});}}_0x259660[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2518cd,_0x420179)=>{if(_0x420179[0x0]!=_0x258203)return _0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x420179[0x1]={..._0x420179[0x1],[_0x1a5275([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9157eb};},{[_0x1a5275([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5275([0x68,0x69,0x67,0x68])}),_0x259660[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bb978=>{_0x3aafb6(_0x3bb978[_0x1a5275([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d7ab3=!0x0,_0x238ed4(_0x3bb978[_0x1a5275([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a5275([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5275([0x6c,0x6f,0x77])}),_0xe80aed[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>{_0x1d7ab3||_0x262a9f(_0x1a5275([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d2195(){return _0x259660[_0x1a5275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5275([0x76,0x69,0x65,0x77])][_0x1a5275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a5275([0x61,0x75,0x74,0x6f]);}function _0x2869d8(){_0x259660[_0x1a5275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5275([0x76,0x69,0x65,0x77])][_0x1a5275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5275([0x61,0x75,0x74,0x6f]);}}function _0x7e370b(_0x26a38c){const _0x47bd45=[new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217d14=>setTimeout(_0x217d14,0x14455ad7^_0x53f41c)),_0xe80aed[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3ca3=>{const _0x10ce05=0x144c641c^_0x53f41c,_0x1f9a94=_0x4d37f0[_0x1a5275([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x198aeb(){_0x1f9a94[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10ce05&&_0x5e3ca3();}_0x198aeb(),_0x1f9a94[_0x1a5275([0x6f,0x6e])](_0x1a5275([0x61,0x64,0x64]),_0x198aeb);})),new window[(_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3785ce=>{function _0x598dcf(){for(const _0x556164 in window)if(window[_0x1a5275([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1a5275([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x556164))&&window[_0x556164]==_0xdb1060)return _0x3785ce();_0x259660[_0x1a5275([0x73,0x74,0x61,0x74,0x65])]!=_0x1a5275([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1a5275([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x598dcf,0x144c7793^_0x53f41c);}_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x598dcf();})];return window[_0x1a5275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5275([0x72,0x61,0x63,0x65])](_0x47bd45)[_0x1a5275([0x74,0x68,0x65,0x6e])](()=>_0x26a38c);}async function _0x35d25d(){if(await _0xe80aed,_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4dac0d=_0x4d37f0[_0x1a5275([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5c3763=_0x4d37f0[_0x1a5275([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])](_0x4dac0d[_0x1a5275([0x69,0x64])]),_0x474e6f=_0x43ace6(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x474e6f[_0x1a5275([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4dac0d['id'],_0x5c3763?_0x5c3763['id']:null,!0x0),_0x474e6f[_0x1a5275([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x474e6f[_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x474e6f[_0x1a5275([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x345855,void(_0x474e6f[_0x1a5275([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x345855);}if(_0x2cec89(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bb2af=_0x43ace6(_0x1a5275([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bb2af[_0x1a5275([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bb2af[_0x1a5275([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bb2af[_0x1a5275([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x345855,_0x5bb2af[_0x1a5275([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x345855;}_0x259660[_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5275([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x345855,_0x259660[_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5275([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x345855,_0x259660[_0x1a5275([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a5275([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35d607(){return _0x2cec89(_0x1a5275([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43ace6(_0x1a5275([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a5275([0x73,0x74,0x61,0x74,0x65])]==_0x1a5275([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x855892(){return _0x2cec89(_0x1a5275([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 _0x58c520(){return _0x2cec89(_0x1a5275([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb79594(_0x2b4f7e){const _0x443b86=_0x2499b3();_0x259660[_0x443b86]=_0x1a5275([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])+_0x2b4f7e,_0x2b4f7e[_0x1a5275([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1a5275([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2499b3()]=_0xdb1060),_0x2b4f7e!=_0x1a5275([0x56,0x61,0x6c,0x69,0x64])&&_0x35d25d();}function _0x2499b3(){const _0x14b8de=window[_0x1a5275([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a5275([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a5275([0x6e,0x6f,0x77])]())[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a5275([0x2e]),'');let _0x246ccb=_0x1a5275([0x43]);for(let _0x17a144=0x0;_0x17a144<_0x14b8de[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17a144+=0x2){let _0x4ee0aa=window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14b8de[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17a144,_0x17a144+0x2));_0x4ee0aa>=_0x2a9346[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee0aa-=_0x2a9346[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x246ccb+=_0x2a9346[_0x4ee0aa];}return _0x246ccb;}function _0x4c857a(){const _0xf2aef8=_0x476278[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e]));if(0x3!=_0xf2aef8[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380196(_0xf2aef8[0x1]);function _0x380196(_0x5387b2){const _0x1321ff=_0xa4b12(_0x5387b2);return _0x1321ff&&_0x3f88d()?_0x1321ff:null;function _0x3f88d(){const _0x57a7b6=_0x1321ff[_0x1a5275([0x6a,0x74,0x69])],_0x3c8e84=window[_0x1a5275([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a7b6[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57a7b6[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x427d1c={..._0x1321ff,[_0x1a5275([0x6a,0x74,0x69])]:_0x57a7b6[_0x1a5275([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57a7b6[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x427d1c[_0x1a5275([0x76,0x63])],_0x50d23b(_0x427d1c)==_0x3c8e84;}}}async function _0x12e7b5(){let _0x16df13=!0x0;try{const _0x280274=_0x476278[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])](_0x1a5275([0x2e])),[_0x2fea2c,_0x3a5b0c,_0x16a868]=_0x280274;return _0x548fce(_0x2fea2c),await _0x426f83(_0x2fea2c,_0x3a5b0c,_0x16a868),_0x16df13;}catch{return!0x1;}function _0x548fce(_0x602013){const _0x362eea=_0xa4b12(_0x602013);_0x362eea&&_0x362eea[_0x1a5275([0x61,0x6c,0x67])]==_0x1a5275([0x45,0x53,0x32,0x35,0x36])||(_0x16df13=!0x1);}async function _0x426f83(_0x36ed34,_0x34e392,_0x3a21d3){const _0x1a9c44=window[_0x1a5275([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a5275([0x66,0x72,0x6f,0x6d])](_0x3ada41(_0x3a21d3),_0x92ae4f=>_0x92ae4f[_0x1a5275([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e2517=new window[(_0x1a5275([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a5275([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36ed34+_0x1a5275([0x2e])+_0x34e392),_0x576c9d=window[_0x1a5275([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a5275([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x576c9d)return;const _0xcba8f4=await _0x576c9d[_0x1a5275([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a5275([0x6a,0x77,0x6b]),_0x3e51ae,{[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x45,0x43,0x44,0x53,0x41]),[_0x1a5275([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a5275([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x576c9d[_0x1a5275([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x45,0x43,0x44,0x53,0x41]),[_0x1a5275([0x68,0x61,0x73,0x68])]:{[_0x1a5275([0x6e,0x61,0x6d,0x65])]:_0x1a5275([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcba8f4,_0x1a9c44,_0x4e2517)||(_0x16df13=!0x1);}}function _0xa4b12(_0x421bfd){return _0x421bfd[_0x1a5275([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a5275([0x65,0x79]))?JSON[_0x1a5275([0x70,0x61,0x72,0x73,0x65])](_0x3ada41(_0x421bfd)):null;}function _0x3ada41(_0x48110e){return window[_0x1a5275([0x61,0x74,0x6f,0x62])](_0x48110e[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a5275([0x2b]))[_0x1a5275([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a5275([0x2f])));}function _0x50d23b(_0x319768){let _0x21de34=0x1505;function _0x10fb5a(_0x237837){for(let _0x4bd0e1=0x0;_0x4bd0e1<_0x237837[_0x1a5275([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd0e1++){const _0x4c33d9=_0x237837[_0x1a5275([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd0e1);_0x21de34=(_0x21de34<<0x5)+_0x21de34+_0x4c33d9,_0x21de34&=_0x21de34;}}function _0x48b8fc(_0x3aa67c){Array[_0x1a5275([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3aa67c)?_0x3aa67c[_0x1a5275([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48b8fc):_0x3aa67c&&typeof _0x3aa67c==_0x1a5275([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a5275([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3aa67c)[_0x1a5275([0x73,0x6f,0x72,0x74])]()[_0x1a5275([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cec11,_0x12f3eb])=>{_0x10fb5a(_0x1cec11),_0x48b8fc(_0x12f3eb);}):_0x10fb5a(window[_0x1a5275([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3aa67c));}return _0x48b8fc(_0x319768),_0x21de34>>>0x0;}function _0x2b8d1a(_0x2da2ae){return _0x2da2ae[_0x1a5275([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a5275([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a5275([0x30]));}function _0x682ea5(_0x45239c){return _0x45239c[_0x1a5275([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a5275([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a5275([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cec89(_0x31be6c){return _0x259660[_0x1a5275([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a5275([0x68,0x61,0x73])](_0x31be6c);}function _0x43ace6(_0x12a12e){return _0x259660[_0x1a5275([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a5275([0x67,0x65,0x74])](_0x12a12e);}function _0x345855(){}function _0x1a5275(_0x21c13f){return _0x21c13f['map'](_0x5d2bf7=>String['fromCharCode'](_0x5d2bf7))['join']('');}_0xb79594(await _0x42ed49());}(this);}['createRevision'](_0x3b620e){const _0x5f5577=this['editor']['plugins']['get']('Users');return new h({'id':_0x3b620e['id'],'name':_0x3b620e['name'],'creator':_0x3b620e['creatorId']?_0x5f5577['getUser'](_0x3b620e['creatorId']):null,'diffData':_0x3b620e['diffData']||_0x3b620e['data'],'authors':_0x3b620e['authorsIds']['map'](_0x5814b6=>_0x5f5577['getUser'](_0x5814b6)),'createdAt':new Date(_0x3b620e['createdAt']),'attributes':_0x3b620e['attributes'],'fromVersion':_0x3b620e['fromVersion'],'toVersion':_0x3b620e['toVersion']});}['addRevision'](_0x268de0,_0x2c0f8c=0x0){this['_revisions']['add'](_0x268de0,_0x2c0f8c);}['getRevision'](_0x4c42db){return this['_revisions']['get'](_0x4c42db);}['getRevisions'](_0x4dda9d={'toJSON':!0x1}){const _0x2e5712=Array['from'](this['_revisions']);return _0x2e5712['reverse'](),_0x4dda9d['toJSON']?_0x2e5712['map'](_0x8f62d1=>_0x8f62d1['toJSON']()):_0x2e5712;}['getIndex'](_0x5d3242){return this['_revisions']['getIndex'](_0x5d3242);}['getEarlierVisibleRevision'](_0x29fe88){const [,_0x4f2d42]=this['getRevisionsIterator'](_0x29fe88,{'direction':'earlier'});return _0x4f2d42;}['getLaterVisibleRevision'](_0x2e415e){const [,_0x111302]=this['getRevisionsIterator'](_0x2e415e,{'direction':'later'});return _0x111302;}['getRevisionsInDiff'](_0x8c815a){const _0x5baaf6=[];for(const _0x16ad93 of this['getRevisionsIterator'](_0x8c815a['newRevisionId']))if(_0x5baaf6['push'](_0x16ad93),_0x16ad93['id']===_0x8c815a['oldRevisionId'])break;return _0x5baaf6;}*['getRevisionsIterator'](_0x84a552,{direction:_0x13fbd6='earlier',filter:_0x4c803e=()=>!0x0}={}){const _0x4dd175='earlier'===_0x13fbd6?0x1:-0x1;let _0x3cb4e1=this['_revisions']['get'](_0x84a552),_0x436611=this['getIndex'](_0x3cb4e1);for(yield _0x3cb4e1;_0x3cb4e1;){if(_0x436611+=_0x4dd175,_0x3cb4e1=this['getRevision'](_0x436611),!_0x3cb4e1)return;_0x4c803e(_0x3cb4e1)&&(yield _0x3cb4e1);}}}class V extends _0x4d12af{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4a75db,'c'],[_0x2d4d28,'a'],[_0x2e7eea,'e'],[_0x3fe28c,'r'],[_0x3d716e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4a75db],['a',_0x2d4d28],['e',_0x2e7eea],['r',_0x3fe28c],['u',_0x3d716e]]);async['loadRevisionData'](_0xc6dfc2,_0x1b1a8a){if(_0xc6dfc2['diffData']||!_0x1b1a8a)return;const _0x2b4069=this['editor']['config']['get']('collaboration.channelId'),_0x5ace61=await _0x1b1a8a['getRevision']({'channelId':_0x2b4069,'revisionId':_0xc6dfc2['id']});_0xc6dfc2['diffData']=_0x5ace61['diffData'];}['getRevisionDocumentData'](_0x3b7923){const _0x3aba2c={};for(const _0x4d3d96 in _0x3b7923['diffData']){if(_0x3b7923['diffData'][_0x4d3d96]['attachChange']&&!_0x3b7923['diffData'][_0x4d3d96]['attachChange']['isAttached'])continue;const _0x1d55ac=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7923['diffData'][_0x4d3d96]['insertions'])),_0x2ca3fb=this['editor']['editing']['view']['document'],_0x5a6c80=new _0x42a41c(_0x2ca3fb,_0x1d55ac['map'](_0x4c6dd6=>this['_getViewFromDiffObj'](_0x4c6dd6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3aba2c[_0x4d3d96]=this['editor']['data']['processor']['toData'](_0x5a6c80),this['editor']['data']['processor']['useFillerType']('default');}return _0x3aba2c;}['getRevisionRootsAttributes'](_0x3091b8){const _0x4da255={};for(const _0x1b837e in _0x3091b8['diffData'])_0x3091b8['diffData'][_0x1b837e]['attachChange']&&!_0x3091b8['diffData'][_0x1b837e]['attachChange']['isAttached']||(_0x4da255[_0x1b837e]=_0x3091b8['diffData'][_0x1b837e]['attributesAfter']||{});return _0x4da255;}['_getTypeCharForViewElement'](_0x113c6e){return this['_viewClassToTypeChar']['get'](_0x113c6e['constructor']);}['_getViewFromDiffObj'](_0x17d0d5,_0x3fea6e){const _0x504a9d=this['editor']['editing']['view']['document'];if('string'==typeof _0x17d0d5)return new _0x53bc7c(_0x504a9d,_0x17d0d5);{let _0x434a0e,_0x100b8e;_0x100b8e='u'==_0x17d0d5['type']||'r'==_0x17d0d5['type']?[]:_0x17d0d5['children']['map'](_0x182361=>this['_getViewFromDiffObj'](_0x182361,_0x3fea6e));const _0x11199a=this['_typeCharToViewClass']['get'](_0x17d0d5['type'])||_0x549a0d,_0xd1f0b3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x434a0e=new _0x11199a(_0x504a9d,_0x17d0d5['name'],_0x17d0d5['attributes'],_0x100b8e),'u'==_0x17d0d5['type']&&_0x17d0d5['children'][0x0]){const _0x2cfb8e=_0x17d0d5['children'][0x0];if(_0x434a0e['render']=function(_0x9d86be){const _0x1631de=_0x9d86be['createElement']('div');return _0x1631de['innerHTML']=_0x2cfb8e,_0x1631de['childNodes'][0x0];},_0x3fea6e){const _0x30ca8d=new _0x42a41c(_0x504a9d);_0x30ca8d['_appendChild'](_0x434a0e);const _0x2320f0=Array['from'](_0xd1f0b3['viewChildrenToDom'](_0x30ca8d,{'bind':!0x1})),_0x39f9a3=_0xd1f0b3['domDocument']['createElement']('div');_0x39f9a3['append'](..._0x2320f0),_0x434a0e=Array['from'](_0xd1f0b3['domChildrenToView'](_0x39f9a3))[0x0];}}else{if('r'==_0x17d0d5['type']&&_0x17d0d5['children'][0x0]){const _0x5ca4fb=_0x17d0d5['children'][0x0];if(_0x434a0e['render']=function(_0x221dda){_0x221dda['innerHTML']=_0x5ca4fb;},_0x3fea6e){const _0x52e345=new _0x42a41c(_0x504a9d);_0x52e345['_appendChild'](_0x434a0e);const _0x3753f2=Array['from'](_0xd1f0b3['viewChildrenToDom'](_0x52e345,{'bind':!0x1})),_0x279883=_0xd1f0b3['domDocument']['createElement']('div');_0x279883['append'](..._0x3753f2);const _0x2bc066=Array['from'](_0xd1f0b3['domChildrenToView'](_0x279883));_0x2bc066['length']>0x1?_0x434a0e['_appendChild'](_0x2bc066):_0x434a0e=_0x2bc066[0x0];}}}if(_0x17d0d5['customProperties']){for(const [_0x1d6db3,_0x57a5fc]of _0x17d0d5['customProperties'])_0x434a0e['_setCustomProperty'](_0x1d6db3,_0x57a5fc);}const _0x55f204=void 0x0===_0x17d0d5['fillerOffset']?null:_0x17d0d5['fillerOffset'];return null!==_0x55f204&&(_0x434a0e['getFillerOffset']=()=>_0x55f204),_0x434a0e;}}['_makeModelFromViewString'](_0x3e2ea7){const _0x251231=JSON['parse'](_0x3e2ea7),_0x260ac8=this['editor']['editing']['view']['document'],_0x1836d5=new _0x42a41c(_0x260ac8,_0x251231['map'](_0x53ed64=>this['_getViewFromDiffObj'](_0x53ed64,!0x0)));return this['editor']['data']['toModel'](_0x1836d5);}['_removeRevisionMarkers'](_0x29f2fe){return(_0x29f2fe=_0x29f2fe['filter'](_0x269350=>!_0x269350['name']||'revision-start'!==_0x269350['name']&&'revision-end'!==_0x269350['name']))['forEach'](_0x1c1243=>{'string'!=typeof _0x1c1243&&(_0x1c1243['children']=this['_removeRevisionMarkers'](_0x1c1243['children']),_0x1c1243['attributes']=_0x1c1243['attributes']['filter'](_0x1e6b2d=>!_0x1e6b2d[0x0]['startsWith']('data-revision-')));}),_0x29f2fe;}}function g(_0x170ff1,_0xdf24bc,_0x2403a7){const t=_0x170ff1['t'];switch(_0xdf24bc){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'},_0x2403a7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2403a7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x4d12af{['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[_0x18dc9d,I,V,_0xa03ea6];}constructor(_0x5a1bf9){super(_0x5a1bf9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5bd14a=_0x3affb0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5bd14a},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 _0x5ec8d4=this['repository']['getRevision'](0x0),_0x209e05=_0x5ec8d4&&null===_0x5ec8d4['creator']?_0x5ec8d4:null;if(this['_continueCurrentRevision']=!!_0x209e05&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x19faf4=this['_source']['getCurrentRevisionId'](),_0x226e74=this['repository']['getRevision'](_0x19faf4);if(_0x226e74)this['_startingVersion']=_0x226e74['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x52515d=this['_source']['history']['_operations']['find'](_0x4e831c=>!_0x4e831c['_isInit']),_0x3b5536=_0x52515d?_0x52515d['baseVersion']:this['_source']['history']['version'];_0x5ec8d4?(_0x5ec8d4['toVersion']<_0x3b5536&&_0x5ec8d4['_update']({'toVersion':_0x3b5536}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id'],this['_startingVersion']=_0x209e05['fromVersion']):(this['_startingVersion']=_0x5ec8d4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3b5536,this['_continueCurrentRevision']=!0x1);}}else _0x209e05&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x209e05['toVersion'],this['editor']['model']['document']['history']['version']),_0x209e05['fromVersion']===_0x209e05['toVersion']?(0x0!==_0x209e05['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x209e05['id'],this['_startingVersion']=_0x209e05['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',_0x122b04=>!_0x122b04),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x73cbbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e35dc;for(const _0x4ce539 in _0x73cbbf){const _0x22eebb=_0x4ce539,_0x5ec5c6=_0x73cbbf[_0x22eebb];if('revisionHistoryLicenseKeyValid'==_0x5ec5c6||'revisionHistoryLicenseKeyInvalid'==_0x5ec5c6||'revisionHistoryLicenseKeyExpired'==_0x5ec5c6||'revisionHistoryLicenseKeyDomainLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyNotAllowed'==_0x5ec5c6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyTrialLimit'==_0x5ec5c6||'revisionHistoryLicenseKeyUsageLimit'==_0x5ec5c6){delete _0x73cbbf[_0x22eebb],_0x5e35dc=_0x5ec5c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5e35dc&&_0x73cbbf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xf53d85=this['repository']['getRevision'](0x0),_0x585edd=await this['getRevisionDocumentData'](_0xf53d85),_0x48825a=await this['getRevisionRootsAttributes'](_0xf53d85);this['_replaceEditorDataWithRevisionData'](_0x585edd,_0x48825a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x526fda){this['_source']=_0x526fda;}async['update'](){const _0x2d7701=await this['_source']['getLatestVersion']();if(_0x2d7701>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4476d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2d7701});_0x4476d8['authors']=_0x4476d8['authorsIds']['map'](_0x394bbb=>this['editor']['plugins']['get']('Users')['getUser'](_0x394bbb)),this['currentRevision']['_update'](_0x4476d8);}}async['saveRevision'](_0x1daa4a={},_0x37b646=null){const _0x5397dd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x37b646>this['currentRevision']['toVersion']&&(_0x37b646=null),null===_0x37b646&&(_0x37b646=await this['_source']['getLatestVersion']());const _0x2fc660=this['_getFromVersion'](_0x37b646),_0x426e6c=this['buildRevisionData']({'from':_0x2fc660,'to':_0x37b646});if(this['currentRevision']['toVersion']<_0x37b646){const _0x36d290=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x37b646,'to':_0x37b646});_0x36d290['authors']=[],_0x36d290['authorsIds']=[],_0x36d290['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36d290,!0x0),delete _0x36d290['authors'],_0x5397dd['push'](_0x36d290);}_0x1daa4a['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1daa4a['name']=_0x1daa4a['name']||null,_0x1daa4a['id']=_0x1daa4a['id']||_0x3affb0(),_0x1daa4a={..._0x1daa4a,..._0x426e6c};const _0x581622=this['addRevisionData'](_0x1daa4a);_0x5397dd['push'](_0x1daa4a);const _0x212432=this['repository']['getIndex'](_0x581622);if(0x0!==_0x212432){const _0x20863e=this['repository']['getRevision'](_0x212432-0x1);if(_0x20863e['fromVersion']!==_0x37b646){const _0x52388b=this['_revisionDataBuilder']['getData'](_0x37b646,_0x20863e['toVersion']),_0xb12126={'id':_0x20863e['id'],'diffData':_0x52388b['diffData'],'authorsIds':_0x52388b['authorsIds'],'authors':_0x52388b['authorsIds']['map'](_0x5a0f8f=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a0f8f)),'fromVersion':_0x37b646};_0x20863e===this['currentRevision']&&(_0xb12126['createdAt']=new Date(_0x1daa4a['createdAt']['getTime']()+0xa)),_0x20863e['_update'](_0xb12126,!0x0),delete _0xb12126['authors'],_0x5397dd['push'](_0xb12126);}}if(this['adapter']){for(const _0x1aa2b5 of _0x5397dd)this['_bufferUpdate'](_0x1aa2b5['id'],_0x1aa2b5,!0x0);this['sendBufferedUpdates']();}return _0x581622;}['addRevisionData'](_0x4c8b1e){const _0x2c68fe=this['repository']['createRevision'](_0x4c8b1e);return this['adapter']&&_0x2c68fe['on']('_update',(_0x572c4d,_0x123aeb,_0x50466b)=>{_0x50466b||(this['_bufferUpdate'](_0x123aeb['id'],_0x123aeb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c68fe,this['_findInsertionIndex'](_0x2c68fe)),_0x2c68fe;}async['getRevisionDocumentData'](_0x1652a6){return await this['_utils']['loadRevisionData'](_0x1652a6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1652a6);}async['getRevisionRootsAttributes'](_0x2c97e9){return await this['_utils']['loadRevisionData'](_0x2c97e9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c97e9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x61627=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1cb7f5=0x0;_0x1cb7f5<_0x61627['length'];_0x1cb7f5++){const _0x6d16a8=_0x61627[_0x1cb7f5];let _0x297437=!0x1;for(const _0xd802da of Object['keys'](_0x6d16a8))void 0x0===_0x6d16a8[_0xd802da]?delete _0x6d16a8[_0xd802da]:'id'!==_0xd802da&&(_0x297437=!0x0);_0x297437||(_0x61627[_0x1cb7f5]=null);}if(_0x61627=_0x61627['filter'](_0x30e492=>null!==_0x30e492),!_0x61627['length'])return;for(let _0x677804=0x0;_0x677804<_0x61627['length'];_0x677804++){const _0x511427=_0x61627[_0x677804];void 0x0!==_0x511427['fromVersion']&&void 0x0===_0x511427['toVersion']&&(_0x511427['toVersion']=this['repository']['getRevision'](_0x511427['id'])['toVersion']),void 0x0!==_0x511427['toVersion']&&void 0x0===_0x511427['fromVersion']&&(_0x511427['fromVersion']=this['repository']['getRevision'](_0x511427['id'])['fromVersion']);}const _0x315107=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x61627,_0x315107)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3b10e4=>{if(_0x3b10e4){for(const _0x43dc1e of _0x3b10e4)this['setRevisionData']({'id':_0x43dc1e['id'],'createdAt':_0x43dc1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4568bf=null,from:_0x17da18=null,to:_0x1dbe97=null}){_0x17da18=null!==_0x17da18?_0x17da18:_0x4568bf['fromVersion'],_0x1dbe97=null!==_0x1dbe97?_0x1dbe97:_0x4568bf['toVersion'];const _0xf180aa=this['_revisionDataBuilder']['getData'](_0x17da18,_0x1dbe97),_0x313ce5={'diffData':_0xf180aa['diffData'],'authorsIds':_0xf180aa['authorsIds'],'fromVersion':_0x17da18,'toVersion':_0x1dbe97};if(!_0x4568bf||_0x1dbe97!==_0x4568bf['toVersion']){const _0x4ebf8b=_0x1dbe97-0x1,_0x2467a9=this['_source']['history']['getOperation'](_0x4ebf8b);_0x313ce5['createdAt']=_0x2467a9&&_0x2467a9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17da18===this['_loadedStateData']['fromVersion']){for(const _0x548870 of this['_loadedStateData']['authors'])_0x313ce5['authorsIds']['includes'](_0x548870['id'])||_0x313ce5['authorsIds']['push'](_0x548870['id']);}return _0x313ce5;}['_bufferUpdate'](_0x1944e6,_0x5b9b80,_0x5557ac){if(this['_bufferedUpdates']['has'](_0x1944e6)){const _0x2f7e74=this['_bufferedUpdates']['get'](_0x1944e6);_0x5b9b80=_0x5557ac?{..._0x2f7e74,..._0x5b9b80}:{..._0x5b9b80,..._0x2f7e74};}this['_bufferedUpdates']['set'](_0x1944e6,_0x5b9b80);}['setRevisionData'](_0x1bacce){const _0x55bf11=this['repository']['getRevision'](_0x1bacce['id']);if(_0x1bacce['createdAt']&&(_0x1bacce['createdAt']=new Date(_0x1bacce['createdAt'])),_0x1bacce['authorsIds']){const _0x3cecd6=this['editor']['plugins']['get']('Users');_0x1bacce['authors']=_0x1bacce['authorsIds']['map'](_0x4e0d31=>_0x3cecd6['getUser'](_0x4e0d31));}_0x55bf11['_update'](_0x1bacce,!0x0);}['_createInitialRevision'](_0x225581){const _0x2adf12=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2adf12)this['_initialRevisionId']=_0x2adf12['id'];else{const _0x9b78b1=!this['editor']['model']['document']['roots']['find'](_0x5a087d=>this['editor']['model']['hasContent'](_0x5a087d)),_0x5505c4=this['editor']['plugins']['get']('Users')['me']['id'],_0xab70f2=g(this['editor']['locale'],_0x9b78b1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x225581,'to':_0x225581,'id':this['_initialRevisionId'],'name':_0xab70f2,'creatorId':_0x5505c4});}}['_createCurrentRevision'](_0x1c3491){const _0x8cf55d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x8cf55d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c3491,'to':_0x1c3491,'id':_0x8cf55d,'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'](_0x109d5d,_0x2e491c){let _0x28852e=this['editor']['config']['get']('initialData'),_0x3b9da5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x28852e){_0x28852e={};for(const _0x5aa1bc of this['editor']['model']['document']['getRootNames']())_0x28852e[_0x5aa1bc]='';}if('string'==typeof _0x28852e&&(_0x28852e={'main':_0x28852e}),void 0x0===_0x3b9da5){_0x3b9da5={};for(const _0x312fff of this['editor']['model']['document']['getRootNames']())_0x3b9da5[_0x312fff]={};}let _0x36e295=!0x1;const _0x1e049f=Object['keys'](_0x28852e),_0x5e7412=Object['keys'](_0x109d5d);for(const _0x1422d1 of _0x1e049f){if(_0x28852e[_0x1422d1]!==_0x109d5d[_0x1422d1]&&''!==_0x28852e[_0x1422d1]['trim']()){_0x36e295=!0x0;break;}if(!_0x168c66(_0x3b9da5[_0x1422d1],_0x2e491c[_0x1422d1])&&Object['keys'](_0x3b9da5[_0x1422d1])['length']>0x0){_0x36e295=!0x0;break;}}_0x36e295||(_0x36e295=_0x5e7412['some'](_0x2093a3=>!this['editor']['model']['document']['getRoot'](_0x2093a3))),_0x36e295&&_0x5bccb9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x28852e,'editorRootsAttributes':_0x3b9da5,'revisionData':_0x109d5d,'revisionRootsAttributes':_0x2e491c}),this['editor']['config']['set']('initialData',_0x109d5d),this['editor']['config']['set']('rootsAttributes',_0x2e491c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x41263b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x41263b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55f159){const _0x138fa1=this['repository']['getRevisions']();_0x138fa1['reverse']();let _0x506fe2=0x0;for(;_0x506fe2<_0x138fa1['length'];){const _0x145cb2=_0x138fa1[_0x506fe2];if(_0x145cb2===this['currentRevision']){_0x506fe2++;continue;}if(_0x145cb2['id']===this['_initialRevisionId'])break;const _0x203438=_0x55f159['toVersion']-_0x145cb2['toVersion']||_0x55f159['fromVersion']-_0x145cb2['fromVersion'];if(_0x203438>0x0)break;if(_0x203438<0x0)_0x506fe2++;else{if(!_0x55f159['creator']&&_0x145cb2['creator'])break;if(_0x145cb2['creator']||!_0x55f159['creator']){if(_0x55f159['createdAt']>_0x145cb2['createdAt'])break;_0x506fe2++;}else _0x506fe2++;}}return _0x506fe2;}['_getFromVersion'](_0x5c3694){const _0x335cde=this['repository']['getRevisions']();_0x335cde['reverse'](),_0x335cde['shift']();const _0x5b2083=_0x335cde['find'](_0x7bc184=>_0x7bc184['toVersion']<=_0x5c3694)['toVersion'];return _0x5b2083<this['_startingVersion']?this['_startingVersion']:_0x5b2083;}['_makeRevision']({name:_0x1b0321,from:_0x5df649,to:_0x4daffe,creatorId:_0x11af02,id:_0xc41afb}){const _0x5d0f89=this['buildRevisionData']({'from':_0x5df649,'to':_0x4daffe});_0x5d0f89['name']=_0x1b0321,_0x5d0f89['creatorId']=_0x11af02,_0x5d0f89['id']=_0xc41afb;const _0x4ad2bb=this['addRevisionData'](_0x5d0f89);return this['adapter']&&this['_bufferUpdate'](_0x5d0f89['id'],_0x5d0f89,!0x0),_0x4ad2bb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a282c){this['editor']=_0x5a282c,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'](_0x296469){this['source']=_0x296469;const _0x384d77=new Map(),_0x48442d=new Map(),_0x46ca0d=this['editor']['model']['document']['roots']['map'](_0x1268d7=>_0x1268d7['rootName']);for(const _0x16ba29 of _0x46ca0d){const _0x4198a6=this['editor']['model']['document']['getRoot'](_0x16ba29),_0x11b8b3=N(_0x4198a6);_0x384d77['set'](_0x16ba29,_0x11b8b3),_0x48442d['set'](_0x16ba29,Object['fromEntries'](_0x4198a6['getAttributes']()));}const _0x1502c0=Array['from'](this['editor']['model']['markers'])['map'](_0x31ab93=>[_0x31ab93['name'],_0x31ab93['getRange']()]),_0x4e42ee=this['source']['version'];this['_saveMetaData'](_0x4e42ee,_0x384d77,_0x1502c0,_0x48442d),this['_startingRevisionId']=this['_revisionId'];const _0x1943b9=new Map(),_0x2bb167=new Map();for(const _0x3534f2 of _0x46ca0d){const _0x3dbefa=P(_0x3534f2);_0x1943b9['set'](_0x3534f2,_0x3dbefa),_0x2bb167['set'](_0x3534f2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1943b9,[],_0x2bb167);}['getData'](_0x5ee2cc,_0x340e70){if(this['_lastFrom']===_0x5ee2cc&&this['_lastTo']<=_0x340e70)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x340e70,!0x0);else{if(!this['_savedMetaData']['has'](_0x5ee2cc)){const _0x5a6142=this['_getPreviousFrom'](_0x5ee2cc);this['_calculateMetaData'](_0x5a6142,_0x5ee2cc,!0x1);}this['_calculateMetaData'](_0x5ee2cc,_0x340e70,!0x0);}return this['_lastFrom']=_0x5ee2cc,this['_lastTo']=_0x340e70,this['_getState']();}['loadState'](_0x3a4c47){const _0x41e2b3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3a4c47['fromVersion'],this['_lastTo']=_0x3a4c47['toVersion'];for(const _0x45c703 in _0x3a4c47['diffData']){const _0x359c94=_0x3a4c47['diffData'][_0x45c703]['attachChange'],_0xaf29d0=_0x14f7a4(_0x3a4c47['diffData'][_0x45c703]['attributesBefore'])||{},_0x296a1e=_0x41e2b3['_makeModelFromViewString'](_0x3a4c47['diffData'][_0x45c703]['deletions']);_0x296a1e['rootName']=_0x45c703,_0x296a1e['_isAttached']=!_0x359c94||!_0x359c94['isAttached'],_0x296a1e['isAttached']=()=>_0x296a1e['_isAttached'],this['_baseRoots']['set'](_0x45c703,_0x296a1e),this['_baseRootsAttributes']['set'](_0x45c703,_0xaf29d0),_0x359c94&&this['_touchedRoots']['set'](_0x45c703,_0x359c94);const _0x3ed366=this['_makeIdsRoot'](_0x296a1e);this['_baseIdsRoots']['set'](_0x45c703,_0x3ed366);for(const [_0x30d071,_0x41e460]of _0x296a1e['markers']){if(!_0x30d071['startsWith']('revision:'))continue;const _0x219abf=_0x30d071['split'](':')[0x2];for(const _0x55183b of _0x41e460['getWalker']({'singleCharacters':!0x0})){const _0x574b9e=this['_getVidAttributeName'](_0x55183b),_0x4dde2c='elementEnd'==_0x55183b['type']?_0x55183b['previousPosition']['path']['slice'](0x0,-0x1):_0x55183b['previousPosition']['path'],_0x36089f=_0x3ed366['getNodeByPath'](_0x4dde2c)['getAttribute'](_0x574b9e);this['_touched']['set'](_0x36089f,{'userId':_0x219abf});}}}this['_startingRevisionId']=this['_revisionId'];const _0x484c1f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x158a8f=>!this['_touched']['has'](_0x158a8f));let _0x3dce23=0x0;const _0x68629e=new Map();for(const _0x25506d in _0x3a4c47['diffData']){const _0x4ee22c=_0x3a4c47['diffData'][_0x25506d]['attachChange'],_0x41c334=_0x14f7a4(_0x3a4c47['diffData'][_0x25506d]['attributesAfter'])||{},_0x15eddc=_0x41e2b3['_makeModelFromViewString'](_0x3a4c47['diffData'][_0x25506d]['insertions']);_0x15eddc['rootName']=_0x25506d,_0x15eddc['_isAttached']=!_0x4ee22c||_0x4ee22c['isAttached'],_0x15eddc['isAttached']=()=>_0x15eddc['_isAttached'],this['_diffRoots']['set'](_0x25506d,_0x15eddc),this['_diffRootsAttributes']['set'](_0x25506d,_0x41c334);const _0x5b565e=this['_makeIdsRoot'](_0x15eddc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x25506d,_0x5b565e),_0x68629e['set'](_0x25506d,_0x15eddc['isAttached']()?_0x41c334:{});for(const [_0x3293ce,_0x26b17d]of _0x15eddc['markers']){if(!_0x3293ce['startsWith']('revision:'))continue;const _0x3b5e72=_0x3293ce['split'](':')[0x2];for(const _0x4ea820 of _0x26b17d['getWalker']({'singleCharacters':!0x0})){const _0x45acee=this['_getVidAttributeName'](_0x4ea820),_0x1040b7=this['_revisionId']++,_0x376283='elementEnd'==_0x4ea820['type']?_0x4ea820['previousPosition']['path']['slice'](0x0,-0x1):_0x4ea820['previousPosition']['path'];_0x5b565e['getNodeByPath'](_0x376283)['_setAttribute'](_0x45acee,_0x1040b7),this['_touched']['set'](_0x1040b7,{'userId':_0x3b5e72});}}for(const _0x1768fb of this['editor']['model']['createRangeIn'](_0x15eddc)['getWalker']({'singleCharacters':!0x0})){const _0x39c409=this['_getVidAttributeName'](_0x1768fb),_0x3eb0ca='elementEnd'==_0x1768fb['type']?_0x1768fb['previousPosition']['path']['slice'](0x0,-0x1):_0x1768fb['previousPosition']['path'],_0x3cfa2d=_0x5b565e['getNodeByPath'](_0x3eb0ca);_0x3cfa2d['getAttribute'](_0x39c409)>0x0||_0x3cfa2d['_setAttribute'](_0x39c409,_0x484c1f[_0x3dce23++]);}for(const [_0x1185f0,_0x2663cd]of _0x15eddc['markers'])_0x1185f0['startsWith']('revision:')||this['_markers']['set'](_0x1185f0,_0x2663cd);}const _0xa16f8e=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xa16f8e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa16f8e,0x1));const _0x2bda1a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2bda1a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2bda1a,0x1));const _0x586ff9=Array['from'](this['_diffRoots'])['map'](([_0x579558,_0x505005])=>[_0x579558,N(_0x505005)]);this['_saveMetaData'](this['_lastTo'],_0x586ff9,this['_markers'],_0x68629e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4580a4,_0x2f9e95,_0x29bb3f,_0x249f34){const _0x31f7c4=new Map(_0x2f9e95),_0x71439f=new Map(_0x14f7a4(_0x249f34)),_0x1f8ae4=new Map();for(const [_0x397fc0,_0x4a39bc]of _0x29bb3f)_0x1f8ae4['set'](_0x397fc0,{'start':_0x4a39bc['start']['clone'](),'end':_0x4a39bc['end']['clone'](),'rootName':_0x4a39bc['root']['rootName']});this['_savedMetaData']['set'](_0x4580a4,{'roots':_0x31f7c4,'markers':_0x1f8ae4,'rootsAttributes':_0x71439f});}['_removeMetaData'](_0x4638a1){this['_savedMetaData']['delete'](_0x4638a1);}['_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'](_0x2a64eb,_0x4c6a77=null){let _0x4114af=null;_0x2a64eb['is']('documentFragment')||(_0x4114af=new ut(_0x2a64eb['name'],{'vid_start':null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++}));const _0x33f848=[];for(const _0x4ad402 of _0x2a64eb['getChildren']())if(_0x4ad402['is']('element')){_0x33f848['push'](this['_makeIdsRoot'](_0x4ad402,_0x4c6a77));const _0x221aad=_0x33f848[_0x33f848['length']-0x1];null!==_0x4c6a77&&(_0x4c6a77=_0x221aad['is']('element','$text')?_0x221aad['getAttribute']('vid')+0x1:_0x221aad['getAttribute']('vid_end')+0x1);}else{for(let _0x111360=0x0;_0x111360<_0x4ad402['offsetSize'];_0x111360++)_0x33f848['push'](new ut('$text',{'vid':null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++}));}if(_0x2a64eb['is']('documentFragment')){const _0x5e25ee=P(_0x2a64eb['rootName']);return _0x5e25ee['_insertChild'](0x0,_0x33f848),_0x5e25ee;}return _0x4114af['_setAttribute']('vid_end',null===_0x4c6a77?this['_revisionId']++:_0x4c6a77++),_0x4114af['_insertChild'](0x0,_0x33f848),_0x4114af;}['_calculateMetaData'](_0x922bb7,_0x4e5609,_0x281a73){this['_reset']();const {roots:_0x22f127,markers:_0x3504be,rootsAttributes:_0x50dcc5}=this['_savedMetaData']['get'](_0x922bb7);this['_baseRoots']=new Map(_0x22f127),this['_baseRootsAttributes']=new Map(_0x14f7a4(_0x50dcc5));for(const [_0x18e57b,_0x3d3d74]of this['_baseRoots'])if('$graveyard'!==_0x18e57b&&(this['_diffRoots']['set'](_0x18e57b,N(_0x3d3d74)),this['_diffRootsAttributes']=new Map(_0x14f7a4(_0x50dcc5)),_0x281a73)){const _0x448fb4=this['_revisionId'];this['_idsRoots']['set'](_0x18e57b,this['_makeIdsRoot'](_0x3d3d74)),this['_baseIdsRoots']['set'](_0x18e57b,this['_makeIdsRoot'](_0x3d3d74,_0x448fb4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x281a73&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cbcd3,_0x295ce5]of _0x3504be){const _0x410e7a=this['_baseRoots']['get'](_0x295ce5['rootName']),_0x238625=this['_diffRoots']['get'](_0x295ce5['rootName']),_0x3419e0=new lt(this['_fixPosition'](_0x295ce5['start'],_0x410e7a),this['_fixPosition'](_0x295ce5['end'],_0x410e7a)),_0x4ca357=this['_fixRange'](_0x3419e0,_0x238625);_0x410e7a['markers']['set'](_0x1cbcd3,_0x3419e0),this['_markers']['set'](_0x1cbcd3,_0x4ca357);}this['_applyOperations'](_0x922bb7,_0x4e5609,_0x281a73);}['_applyOperations'](_0x378be5,_0x275214,_0x12980e){for(const _0x106f68 of this['source']['getOperations'](_0x378be5,_0x275214))this['_handleOperation'](_0x106f68,_0x12980e);for(const _0x13b7fb of this['_diffRoots']['values']())_0x13b7fb['markers']['clear']();for(const [_0x2b1996,_0x2f491a]of this['_markers']){this['_diffRoots']['get'](_0x2f491a['root']['rootName'])['markers']['set'](_0x2b1996,_0x2f491a['clone']());}const _0x1ae6a4=new Map(),_0x9206cb=new Map();for(const [_0x31e9ba,_0x2d2218]of this['_diffRoots'])_0x1ae6a4['set'](_0x31e9ba,N(_0x2d2218)),_0x9206cb['set'](_0x31e9ba,this['_diffRootsAttributes']['get'](_0x31e9ba));this['_saveMetaData'](_0x275214,_0x1ae6a4,this['_markers'],_0x9206cb);}['_getPreviousFrom'](_0x2a5f1a){const _0x1a8c70=Array['from'](this['_savedMetaData']['keys']());_0x1a8c70['sort']((_0x13ac4b,_0x439f68)=>_0x13ac4b-_0x439f68),_0x1a8c70['reverse']();for(const _0x1d792a of _0x1a8c70)if(_0x1d792a<_0x2a5f1a)return _0x1d792a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4f4789,_0x74ce0f){const _0x406f02=Array['from'](_0x74ce0f['markers'])['map'](([_0x1829b7,_0x417476])=>[_0x1829b7,this['_fixRange'](_0x417476,_0x4f4789)]);_0x4f4789['markers']=new Map(_0x406f02);}['_transformMarkers'](_0x203563){for(const _0x5a3ca3 of this['_markers']['values']()){const _0x39d3d4=_0x5a3ca3['getTransformedByOperation'](_0x203563),_0x32d2a1=lt['_createFromRanges'](_0x39d3d4);_0x5a3ca3['start']=_0x32d2a1['start'],_0x5a3ca3['end']=_0x32d2a1['end'];}}['_handleOperation'](_0x227e8d,_0xd927e8){if('addRoot'!=_0x227e8d['type']&&'detachRoot'!=_0x227e8d['type']){if('insert'==_0x227e8d['type']){const _0x2ccdd4=_0x227e8d['position']['root']['rootName'];this['_diffRoots']['has'](_0x2ccdd4)||(this['_diffRoots']['set'](_0x2ccdd4,P(_0x2ccdd4,!0x0)),this['_diffRootsAttributes']['set'](_0x2ccdd4,{}),_0xd927e8&&this['_idsRoots']['set'](_0x2ccdd4,P(_0x2ccdd4,!0x0)));}else{if('addRootAttribute'==_0x227e8d['type']||'removeRootAttribute'==_0x227e8d['type']||'changeRootAttribute'==_0x227e8d['type'])return void this['_handleRootAttributeOperation'](_0x227e8d);'marker'==_0x227e8d['type']&&this['_handleMarkerOperation'](_0x227e8d);}if('marker'!==_0x227e8d['type']){const _0x4bc02b=this['_cloneOperation'](_0x227e8d,this['_diffRoots']);_0x4bc02b['_execute'](),this['_transformMarkers'](_0x4bc02b);}if(_0xd927e8)switch(_0x227e8d['type']){case'insert':this['_handleInsertOperation'](_0x227e8d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x227e8d);break;case'merge':this['_handleMergeOperation'](_0x227e8d);break;case'split':this['_handleSplitOperation'](_0x227e8d);}}else this['_handleRootOperation'](_0x227e8d,_0xd927e8);}['_cloneOperation'](_0x184466,_0x34996e){const _0x3ccba1=_0x184466['clone']();return _0x3ccba1['_authorId']=_0x184466['_authorId'],this['_fixOperation'](_0x3ccba1,_0x34996e),_0x3ccba1;}['_getBaseVids'](_0x49d93){return _0x49d93['map'](_0x45b930=>{const _0x142379=this['_getVidAttributeName'](_0x45b930);return Number(_0x45b930['item']['getAttribute'](_0x142379));});}['_generateTape'](_0x31ad49,_0x54dc2f){if(_0x31ad49['is']('element','$text'))_0x54dc2f['push']({'item':_0x31ad49,'type':'text'});else{_0x31ad49['is']('element')&&_0x54dc2f['push']({'item':_0x31ad49,'type':'elementStart'});for(const _0x111998 of _0x31ad49['getChildren']())this['_generateTape'](_0x111998,_0x54dc2f);_0x31ad49['is']('element')&&_0x54dc2f['push']({'item':_0x31ad49,'type':'elementEnd'});}return _0x54dc2f;}['_getState'](){const _0x2c3da6=new Map(this['_touched']),_0x1dfbdd=new Map(_0x2c3da6),_0x57b654=new Map(),_0x12e684={'insertions':{},'deletions':{}},_0x2d24fc={'insertions':{},'deletions':{}},_0x5431e3=new Map(),_0x2706dc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2706dc['delete']('$graveyard');for(const _0x5b0306 of _0x2706dc){const _0x960b41=this['_diffRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1),_0x2f66f7=this['_baseRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1);_0x960b41['isAttached']()||_0x2f66f7['isAttached']()?(_0x12e684['insertions'][_0x5b0306]=N(_0x960b41),_0x12e684['deletions'][_0x5b0306]=N(_0x2f66f7),this['_copyMarkers'](_0x12e684['deletions'][_0x5b0306],_0x2f66f7),this['_copyMarkers'](_0x12e684['insertions'][_0x5b0306],_0x960b41),_0x2d24fc['insertions'][_0x5b0306]=this['_generateTape'](this['_idsRoots']['get'](_0x5b0306),[]),_0x2d24fc['deletions'][_0x5b0306]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5b0306)||P(_0x5b0306,!0x1),[])):_0x2706dc['delete'](_0x5b0306);}for(const _0x52d000 of _0x2706dc){const _0x1d999e=_0x2d24fc['insertions'][_0x52d000];for(const _0xb6e6fb of _0x1d999e){const _0x8d6660=this['_getVidAttributeName'](_0xb6e6fb),_0x201e64=_0xb6e6fb['item']['getAttribute'](_0x8d6660);_0x1dfbdd['delete'](_0x201e64),_0x201e64>=this['_startingRevisionId']&&_0x57b654['set'](_0x201e64,_0x2c3da6['get'](_0x201e64));}}for(const _0x2ab528 of _0x2706dc){const _0x1ad7b0=_0x2d24fc['insertions'][_0x2ab528],_0x1240e4=this['_getBaseVids'](_0x2d24fc['deletions'][_0x2ab528]);let _0x56cb82=0x0;for(const _0x2a3d55 of _0x1ad7b0){const _0x3796dd=this['_getVidAttributeName'](_0x2a3d55),_0x203ec0=_0x2a3d55['item']['getAttribute'](_0x3796dd);if(!_0x57b654['has'](_0x203ec0)&&!_0x5431e3['has'](_0x203ec0)){if(_0x1dfbdd['has'](_0x203ec0))_0x56cb82++;else{if(_0x203ec0!=_0x1240e4[_0x56cb82]){const _0x152df4=_0x2c3da6['get'](_0x203ec0)||_0x2c3da6['get'](_0x1240e4[_0x56cb82]);for(;_0x203ec0!=_0x1240e4[_0x56cb82];)_0x1dfbdd['has'](_0x1240e4[_0x56cb82])||(_0x5431e3['set'](_0x1240e4[_0x56cb82],_0x152df4),_0x2c3da6['set'](_0x1240e4[_0x56cb82],_0x152df4)),_0x56cb82++;}_0x56cb82++;}}}}for(const _0x4ce249 of _0x2706dc){const _0x202dd3=_0x2d24fc['insertions'][_0x4ce249];for(const _0x1829f5 of _0x202dd3){const _0x540704=this['_getVidAttributeName'](_0x1829f5),_0x16f562=_0x1829f5['item']['getAttribute'](_0x540704);if(_0x5431e3['has'](_0x16f562)){const _0x3fb161=_0x5431e3['get'](_0x16f562);_0x1dfbdd['has'](_0x16f562)||_0x1dfbdd['set'](_0x16f562,{..._0x3fb161}),_0x57b654['set'](_0x16f562,{..._0x3fb161});}}}for(const _0x9f8d57 of _0x1dfbdd['keys']())_0x9f8d57>=this['_startingRevisionId']&&_0x1dfbdd['delete'](_0x9f8d57);const _0x4cf006=new Map();for(const _0x1ef6f2 of _0x2706dc){let _0xb1f325=_0x2d24fc['insertions'][_0x1ef6f2];for(const _0x57c2db of _0xb1f325)if(_0x57c2db['item']['is']('element','tableCell')){const _0x4142e2=this['_getVidAttributeName'](_0x57c2db),_0x311fd3=_0x57c2db['item']['getAttribute'](_0x4142e2);if(_0x57b654['has'](_0x311fd3)){const _0x46251e=_0x57c2db['item']['parent']['parent']['getAttribute']('vid_start'),_0x215e15=_0x4cf006['get'](_0x46251e)||new Set();_0x215e15['add'](_0x57b654['get'](_0x311fd3)['userId']),_0x4cf006['set'](_0x46251e,_0x215e15);}}_0xb1f325=_0x2d24fc['deletions'][_0x1ef6f2];for(const _0x3f0655 of _0xb1f325)if(_0x3f0655['item']['is']('element','tableCell')){const _0x18cfdc=this['_getVidAttributeName'](_0x3f0655),_0x4b9d74=_0x3f0655['item']['getAttribute'](_0x18cfdc);if(_0x1dfbdd['has'](_0x4b9d74)){const _0x512ccf=_0x3f0655['item']['parent']['parent']['getAttribute']('vid_start'),_0xdae2f4=_0x4cf006['get'](_0x512ccf)||new Set();_0xdae2f4['add'](_0x1dfbdd['get'](_0x4b9d74)['userId']),_0x4cf006['set'](_0x512ccf,_0xdae2f4);}}for(const _0x5b016b of _0x4cf006['keys']())(_0x57b654['has'](_0x5b016b)||_0x1dfbdd['has'](_0x5b016b))&&_0x4cf006['delete'](_0x5b016b);}for(const _0x204feb of _0x2706dc){const _0x584ee0=_0x2d24fc['insertions'][_0x204feb];let _0x1ae47e=null,_0x78c731=null;for(const _0x5a71c5 of _0x584ee0){const _0x282345=this['_getVidAttributeName'](_0x5a71c5),_0x2e3f17=_0x5a71c5['item']['getAttribute'](_0x282345),_0x52046f=_0x4cf006['get'](_0x2e3f17);_0x52046f&&'elementStart'==_0x5a71c5['type']&&(_0x1ae47e=Array['from'](_0x52046f)[0x0],_0x78c731=_0x5a71c5['item']['getAttribute']('vid_end')),_0x1ae47e&&(_0x1dfbdd['set'](_0x2e3f17,{'userId':_0x1ae47e}),_0x57b654['set'](_0x2e3f17,{'userId':_0x1ae47e})),_0x2e3f17==_0x78c731&&(_0x1ae47e=null,_0x78c731=null);}}const _0x3c7035={},_0x5266f9=new Set();for(const _0x1ecf1a of _0x2706dc){const _0x2ccc33=_0x12e684['deletions'][_0x1ecf1a],_0x23c9ce=_0x12e684['insertions'][_0x1ecf1a];for(const {userId:_0x1161ad}of this['_touchedMarkers']['values']())null!==_0x1161ad&&_0x5266f9['add'](_0x1161ad);for(const {userId:_0x52a57a}of this['_touchedRoots']['values']())null!==_0x52a57a&&_0x5266f9['add'](_0x52a57a);this['_markChanges'](_0x23c9ce,_0x2d24fc['insertions'][_0x1ecf1a],_0x57b654,'insertion',_0x5266f9),this['_markChanges'](_0x2ccc33,_0x2d24fc['deletions'][_0x1ecf1a],_0x1dfbdd,'deletion',_0x5266f9),_0x3c7035[_0x1ecf1a]={'insertions':this['_prepareViewToSave'](_0x23c9ce),'deletions':this['_prepareViewToSave'](_0x2ccc33),'attachChange':this['_touchedRoots']['get'](_0x1ecf1a)||null,'attributesBefore':_0x14f7a4(this['_baseRootsAttributes']['get'](_0x1ecf1a))||{},'attributesAfter':_0x14f7a4(this['_diffRootsAttributes']['get'](_0x1ecf1a))};}return{'diffData':_0x3c7035,'authorsIds':Array['from'](_0x5266f9)};}['_processRootBeforeSave'](_0x505122){for(const [,_0x2a5846]of _0x505122['markers']){const _0x1b0851=_0x2a5846['start']['getAncestors']()['filter'](_0x38e5e8=>'tableCell'==_0x38e5e8['name']);for(const _0x83e827 of _0x1b0851)0x1==_0x83e827['childCount']&&_0x83e827['getChild'](0x0)['is']('element','paragraph')&&_0x83e827['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2687a3){this['_processRootBeforeSave'](_0x2687a3);const _0x28444b=this['editor']['data']['toView'](_0x2687a3,{}),_0x285f40=Array['from'](_0x28444b['getChildren']())['map'](_0x17ff6f=>this['_getViewJson'](_0x17ff6f));return JSON['stringify'](_0x285f40);}['_getViewJson'](_0x1ee118){if(_0x1ee118['is']('$text'))return _0x1ee118['data'];{const _0x53d880=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x148019=_0x1ee118,_0x253f05=this['editor']['data']['htmlProcessor']['domConverter'],_0x95a09b={'type':_0x53d880['_getTypeCharForViewElement'](_0x148019),'name':_0x148019['name'],'attributes':Array['from'](_0x148019['getAttributes']()),'children':Array['from'](_0x148019['getChildren']())['map'](_0x32c484=>this['_getViewJson'](_0x32c484))};if(_0x1ee118['is']('uiElement')&&'$comment'!=_0x1ee118['name']){const _0x286e9c=_0x1ee118['render'](_0x253f05['domDocument'],_0x253f05);_0x95a09b['children']['push'](_0x286e9c['outerHTML']);}else{if(_0x1ee118['is']('rawElement')){const _0x971851=_0x253f05['domDocument']['createElement'](_0x148019['name']);_0x1ee118['render'](_0x971851,_0x253f05),_0x95a09b['children']['push'](_0x971851['innerHTML']);}}const _0x4dfa70=Array['from'](_0x148019['getCustomProperties']());_0x4dfa70['length']>0x0&&(_0x95a09b['customProperties']=_0x4dfa70);const _0x372bfd=_0x148019['getFillerOffset']();return null!==_0x372bfd&&(_0x95a09b['fillerOffset']=_0x372bfd),_0x95a09b;}}['_markChanges'](_0x5b1feb,_0x64d7fb,_0x24be8f,_0xd8f080,_0x3923a0){let _0x2501bb=null,_0x43946c=null,_0x49b142=0x0;const _0x2db56=this['editor']['model'];for(let _0x11a3fd=0x0;_0x11a3fd<_0x64d7fb['length'];_0x11a3fd++){const _0x37834e=this['_getVidAttributeName'](_0x64d7fb[_0x11a3fd]),_0x3035b1=_0x64d7fb[_0x11a3fd]['item']['getAttribute'](_0x37834e),_0x17dd9e=_0x24be8f['get'](_0x3035b1),_0x37eca0=_0x11a3fd==_0x64d7fb['length']-0x1;(!_0x2501bb&&_0x17dd9e&&(_0x2501bb=_0x17dd9e,_0x43946c=_0x64d7fb[_0x11a3fd]),_0x2501bb&&(!_0x17dd9e||_0x17dd9e['userId']!=_0x2501bb['userId']))&&(_0x14903f(_0x17dd9e,F(_0x43946c,_0x5b1feb,_0x2db56),F(_0x64d7fb[_0x11a3fd],_0x5b1feb,_0x2db56)),_0x2501bb=_0x17dd9e||null,_0x43946c=_0x17dd9e?_0x64d7fb[_0x11a3fd]:null),_0x2501bb&&_0x37eca0&&_0x14903f(_0x17dd9e,F(_0x43946c,_0x5b1feb,_0x2db56),B(_0x64d7fb[_0x11a3fd],_0x5b1feb,_0x2db56));}function _0x14903f(_0x44842f,_0x3d2091,_0x504c84){const _0x494823=_0x2501bb['userId'],_0x5c7671='revision:'+_0xd8f080+':'+_0x494823+':'+_0x49b142++,_0xe0d48d=_0x2db56['createRange'](_0x3d2091,_0x504c84);_0x5b1feb['markers']['set'](_0x5c7671,_0xe0d48d),null!==_0x494823&&_0x3923a0['add'](_0x494823);}}['_getVidAttributeName'](_0x253ad2){switch(_0x253ad2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x16ab04,_0x3152fc){_0x16ab04['baseVersion']=null;for(const _0x2b21da in _0x16ab04){const _0x1e14ce=_0x16ab04[_0x2b21da];if(_0x1e14ce instanceof ft){const _0x768fe3=_0x3152fc['get'](_0x1e14ce['root']['rootName']);_0x16ab04[_0x2b21da]=this['_fixPosition'](_0x1e14ce,_0x768fe3);}if(_0x1e14ce instanceof lt){const _0x516fdc=_0x3152fc['get'](_0x1e14ce['root']['rootName']);_0x16ab04[_0x2b21da]=this['_fixRange'](_0x1e14ce,_0x516fdc);}'root'===_0x2b21da&&(_0x16ab04['root']=_0x3152fc['get'](_0x16ab04['root']['rootName']));}}['_fixRange'](_0x20b14c,_0x217ec1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x20b14c['start'],_0x217ec1),this['_fixPosition'](_0x20b14c['end'],_0x217ec1));}['_fixPosition'](_0x10810c,_0x3e2429){return this['editor']['model']['createPositionFromPath'](_0x3e2429,_0x10810c['path'],_0x10810c['stickiness']);}['_handleInsertOperation'](_0x1a60b1){const _0x1ea1b9=this['_idsRoots']['get'](_0x1a60b1['position']['root']['rootName']),_0x359200=this['_fixPosition'](_0x1a60b1['position'],_0x1ea1b9),_0x2dd875=null===_0x1a60b1['_authorId']?null:_0x1a60b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e12ac=_0x359200['parent'],_0x5a1df7=this['_revisionId'],_0x29e500=[];for(const _0x7d4f12 of _0x1a60b1['nodes'])if(_0x7d4f12['is']('element'))_0x29e500['push'](this['_makeIdsRoot'](_0x7d4f12));else{for(let _0x8e1918=0x0;_0x8e1918<_0x7d4f12['offsetSize'];_0x8e1918++)_0x29e500['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xac7955=this['_revisionId'];for(let _0x5ca956=_0x5a1df7;_0x5ca956<_0xac7955;_0x5ca956++)this['_touched']['set'](_0x5ca956,{'userId':_0x2dd875});_0x1e12ac['_insertChild'](_0x359200['offset'],_0x29e500);}['_handleMoveOperation'](_0x399bfb){(_0x399bfb=this['_cloneOperation'](_0x399bfb,this['_idsRoots']))['_execute']();const _0x46a504=null===_0x399bfb['_authorId']?null:_0x399bfb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x583e3c=_0x399bfb['getMovedRangeStart'](),_0x3d54bc=_0x583e3c['parent'],_0x62a2b8=_0x583e3c['offset'];!function _0x4367ae(_0x2fb5cd,_0x110f9e,_0x291080,_0x1513be){for(let _0x15501a=_0x291080;_0x15501a<_0x1513be;_0x15501a++){const _0x2de43b=_0x110f9e['getChild'](_0x15501a);_0x2de43b['is']('element','$text')?_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid'),{'userId':_0x46a504}):(_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid_start'),{'userId':_0x46a504}),_0x4367ae(_0x2fb5cd,_0x2de43b,0x0,_0x2de43b['childCount']),_0x2fb5cd['set'](_0x2de43b['getAttribute']('vid_end'),{'userId':_0x46a504}));}}(this['_touched'],_0x3d54bc,_0x62a2b8,_0x62a2b8+_0x399bfb['howMany']);}['_handleMergeOperation'](_0x5258d1){const _0x3046e2=null===(_0x5258d1=this['_cloneOperation'](_0x5258d1,this['_idsRoots']))['_authorId']?null:_0x5258d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42ce40=_0x5258d1['targetPosition']['parent'],_0x5c52e6=_0x5258d1['sourcePosition']['parent'],_0x15091f=_0x42ce40['getAttribute']('vid_end'),_0x3e4785=_0x5c52e6['getAttribute']('vid_start');_0x42ce40['_setAttribute']('vid_end',_0x5c52e6['getAttribute']('vid_end')),_0x5c52e6['_setAttribute']('vid_end',_0x15091f),this['_touched']['set'](_0x3e4785,{'userId':_0x3046e2}),this['_touched']['set'](_0x15091f,{'userId':_0x3046e2}),_0x5258d1['_execute']();}['_handleSplitOperation'](_0x10e7d3){const _0x26d0f9=null===(_0x10e7d3=this['_cloneOperation'](_0x10e7d3,this['_idsRoots']))['_authorId']?null:_0x10e7d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f43e3=_0x10e7d3['graveyardPosition'],_0x371893=_0x10e7d3['splitPosition']['parent'];_0x10e7d3['_execute']();const _0x3d1c8a=_0x371893['getAttribute']('vid_end'),_0x2fe706=_0x10e7d3['insertionPosition']['nodeAfter'];if(_0x1f43e3){const _0xb98b90=_0x2fe706['getAttribute']('vid_end'),_0x49fd36=_0x371893['getAttribute']('vid_end');_0x371893['_setAttribute']('vid_end',_0xb98b90),_0x2fe706['_setAttribute']('vid_end',_0x49fd36),this['_touched']['set'](_0x371893['getAttribute']('vid_end'),{'userId':_0x26d0f9}),this['_touched']['set'](_0x2fe706['getAttribute']('vid_start'),{'userId':_0x26d0f9});}else{const _0x9d4ca2=this['_revisionId']++,_0x463ce4=this['_revisionId']++;_0x371893['_setAttribute']('vid_end',_0x9d4ca2),_0x2fe706['_setAttribute']('vid_start',_0x463ce4),_0x2fe706['_setAttribute']('vid_end',_0x3d1c8a),this['_touched']['set'](_0x9d4ca2,{'userId':_0x26d0f9}),this['_touched']['set'](_0x463ce4,{'userId':_0x26d0f9});}}['_handleMarkerOperation'](_0x1b537e){if(!_0x1b537e['affectsData'])return;const _0x3d80fd=(_0x1b537e=this['_cloneOperation'](_0x1b537e,this['_diffRoots']))['oldRange']?_0x1b537e['oldRange']['root']:null,_0x1f0936=_0x1b537e['newRange']?_0x1b537e['newRange']['root']:null;_0x3d80fd&&this['_markers']['delete'](_0x1b537e['name']),_0x1f0936&&this['_markers']['set'](_0x1b537e['name'],_0x1b537e['newRange']['clone']());const _0x2c4f8e=null===_0x1b537e['_authorId']?null:_0x1b537e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4bc45d=_0x1b537e['name'];if(!this['_touchedMarkers']['has'](_0x4bc45d))return void this['_touchedMarkers']['set'](_0x4bc45d,{'range':_0x1b537e['oldRange'],'userId':_0x2c4f8e});const _0x147e16=this['_touchedMarkers']['get'](_0x4bc45d),_0x380eaf=_0x147e16['range'],_0x6937=_0x1b537e['newRange'];null==_0x380eaf&&null==_0x6937||_0x380eaf&&_0x6937&&_0x380eaf['isEqual'](_0x6937)?this['_touchedMarkers']['delete'](_0x1b537e['name']):_0x147e16['userId']=_0x2c4f8e;}['_handleRootOperation'](_0x279ac4,_0x1c9b26){this['_diffRoots']['has'](_0x279ac4['rootName'])?this['_diffRoots']['get'](_0x279ac4['rootName'])['_isAttached']=_0x279ac4['isAdd']:(this['_diffRoots']['set'](_0x279ac4['rootName'],P(_0x279ac4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x279ac4['rootName'],{}),_0x1c9b26&&this['_idsRoots']['set'](_0x279ac4['rootName'],P(_0x279ac4['rootName'],!0x0)));const _0x21e178=null===_0x279ac4['_authorId']?null:_0x279ac4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f5ee3=this['_touchedRoots']['get'](_0x279ac4['rootName']);_0x1f5ee3&&_0x1f5ee3['userId']===_0x21e178?this['_touchedRoots']['delete'](_0x279ac4['rootName']):this['_touchedRoots']['set'](_0x279ac4['rootName'],{'userId':_0x21e178,'isAttached':_0x279ac4['isAdd']});}['_handleRootAttributeOperation'](_0x59ae3d){const _0x564f7e=this['_diffRootsAttributes']['get'](_0x59ae3d['root']['rootName']);null===_0x59ae3d['newValue']?delete _0x564f7e[_0x59ae3d['key']]:_0x564f7e[_0x59ae3d['key']]=_0x59ae3d['newValue'];}}function N(_0x202d42){const _0x3314c6=P(_0x202d42['rootName'],_0x202d42['isAttached']());for(const _0x2ca8c2 of _0x202d42['getChildren']()){const _0x195610=_0x2ca8c2['_clone'](!0x0);_0x3314c6['_appendChild'](_0x195610);}return _0x3314c6;}function P(_0x2e9253,_0x3b9f96=!0x0){const _0x3f0f18=new vt();return _0x3f0f18['rootName']=_0x2e9253,_0x3f0f18['_isAttached']=_0x3b9f96,_0x3f0f18['isAttached']=()=>_0x3f0f18['_isAttached'],_0x3f0f18;}function F(_0x95ac1c,_0x55a7f1,_0x529136){const _0x2580a2='elementEnd'==_0x95ac1c['type']?_0x529136['createPositionAt'](_0x95ac1c['item'],'end'):_0x529136['createPositionBefore'](_0x95ac1c['item']);return _0x529136['createPositionFromPath'](_0x55a7f1,_0x2580a2['path'],_0x2580a2['stickiness']);}function B(_0x1433d5,_0x39c73e,_0x4ca36e){const _0x1a64c2='elementStart'==_0x1433d5['type']?_0x4ca36e['createPositionAt'](_0x1433d5['item'],0x0):_0x4ca36e['createPositionAfter'](_0x1433d5['item']);return _0x4ca36e['createPositionFromPath'](_0x39c73e,_0x1a64c2['path'],_0x1a64c2['stickiness']);}class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x29f8d2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x31e09c){super(),this['id']=_0x31e09c['id']||_0x3affb0(),this['author']=_0x31e09c['author'],this['type']=_0x31e09c['type'],this['data']=_0x31e09c['data']||{},this['rootName']=_0x31e09c['rootName'],this['set']('createdAt',_0x31e09c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2bcecb,_0x3604d5){this['newRevisionId']=_0x2bcecb,this['oldRevisionId']=_0x3604d5,this['changes']=new _0x4916d9();}['_setChanges'](_0x47df40){for(const _0x1136ae of _0x47df40)this['changes']['add'](_0x1136ae);}}class m extends _0x4d12af{['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[_0x18dc9d,_0xc5db98,I,V];}constructor(_0x28ed02){super(_0x28ed02),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',(_0xe5db28,_0x51569b,_0x83186c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x36e172=>{for(const _0x5cd34c of this['editor']['editing']['view']['document']['roots'])_0x83186c?_0x36e172['removeClass']('ck-editor__editable__overlay',_0x5cd34c):_0x36e172['addClass']('ck-editor__editable__overlay',_0x5cd34c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3fa8f2=>null!==_0x3fa8f2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3c7854,_0x1a0406,_0x5f5595)=>_0x3c7854&&_0x5f5595?_0x1a0406['changes']['getIndex'](_0x5f5595):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x25bdcc,_0x5aea67)=>_0x25bdcc?_0x5aea67['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xc5db98);}['init'](){const _0x642609=this['editor'],_0x149edd=new wt(_0x642609,{'direction':'backward'}),_0x48dfce=new wt(_0x642609,{'direction':'forward'});(_0x642609['commands']['add']('showPreviousChange',_0x149edd),_0x642609['commands']['add']('showNextChange',_0x48dfce),_0x642609['commands']['add']('restoreRevision',new mt(_0x642609)),this['on']('change:numberOfChanges',()=>{_0x149edd['refresh'](),_0x48dfce['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x642609['enableReadOnlyMode']('revision-viewer'),_0x642609['plugins']['has']('WidgetToolbarRepository'))&&_0x642609['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3292fc){return await this['_utils']['loadRevisionData'](_0x3292fc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3292fc);}async['getRevisionRootsAttributes'](_0x56d9de){return await this['_utils']['loadRevisionData'](_0x56d9de,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56d9de);}async['compare'](_0x5bef01,_0x37f2ab,_0x24abb0=!0x1){if(!this['isEnabled'])return;const _0x1c4d3d=this['diff'],_0x2d98bf=this['repository'],_0xdba625='string'==typeof _0x5bef01?_0x2d98bf['getRevision'](_0x5bef01):_0x5bef01,_0x144d0b='string'==typeof _0x37f2ab?_0x2d98bf['getRevision'](_0x37f2ab):_0x37f2ab,_0x3f8c9c=_0xdba625['id'],_0x3794e2=_0x144d0b?_0x144d0b['id']:null;if(!_0x24abb0&&this['diff']&&this['diff']['newRevisionId']===_0x3f8c9c&&this['diff']['oldRevisionId']===_0x3794e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3f8c9c,_0x3794e2);const _0x334e24=this['_getRevisionsRange'](_0xdba625,_0x144d0b,!0x0)['map'](_0x798940=>this['_utils']['loadRevisionData'](_0x798940,this['adapter']));return _0x334e24['push'](new Promise(_0x3ea566=>{setTimeout(_0x3ea566,0x14);})),Promise['all'](_0x334e24)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4a8c2a=this['_getDiff'](_0x3f8c9c,_0x3794e2);for(const _0x2f8e74 of _0x4a8c2a['changes'])this['_changeIdToChange']['set'](_0x2f8e74['id'],_0x2f8e74);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x12616f=>{for(const _0x549b01 of this['editor']['model']['document']['getRootNames']())_0x12616f['detachRoot'](_0x549b01);for(const _0x38580f of Object['keys'](_0x4a8c2a['model'])){const _0x437673=_0x12616f['addRoot'](_0x38580f);for(const _0x41d747 of Object['keys'](_0x4a8c2a['attributes'][_0x38580f]))_0x12616f['setAttribute'](_0x41d747,_0x4a8c2a['attributes'][_0x38580f][_0x41d747],_0x437673);_0x12616f['insert'](_0x4a8c2a['model'][_0x38580f],_0x437673,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4a8c2a['changes'])),this['isReady']=!0x0;})['catch'](_0x7ba15=>{console['error'](_0x7ba15),this['_cleanUp'](),_0x1c4d3d&&(this['diff']=_0x1c4d3d),this['isReady']=!0x0;});}['addRevisionData'](_0x2f6f77,_0x168963){const _0x555798=this['repository']['createRevision'](_0x2f6f77);return _0x555798['on']('_update',(_0x4e98c7,_0x40d5e3,_0x373738)=>_0x168963(_0x40d5e3,_0x373738,_0x555798)),this['repository']['addRevision'](_0x555798),_0x555798;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x56c139=>{for(const _0x27bbc2 of this['editor']['model']['document']['getRootNames']())_0x56c139['detachRoot'](_0x27bbc2);});}['_sortAndFilterDiffChanges'](_0x18950d){const _0x188e78=[],_0x5d2efe=new Map();for(const _0x5c500d of this['editor']['model']['document']['getRootNames']()){const _0x222482=this['editor']['editing']['view']['getDomRoot'](_0x5c500d);if(!_0x222482)continue;const _0x227e7a=_0x222482['getClientRects']()['item'](0x0);_0x227e7a&&(_0x188e78['push'](_0x5c500d),_0x5d2efe['set'](_0x5c500d,_0x227e7a));}return _0x188e78['sort']((_0x2038d2,_0x2c7f0d)=>{const _0x3b25f8=_0x5d2efe['get'](_0x2038d2),_0x349686=_0x5d2efe['get'](_0x2c7f0d);return _0x3b25f8['y']-_0x349686['y']||_0x3b25f8['x']-_0x349686['x'];}),(_0x18950d=_0x18950d['filter'](_0x53d721=>_0x188e78['includes'](_0x53d721['rootName'])))['sort']((_0x1fe1b6,_0x14df95)=>_0x188e78['indexOf'](_0x1fe1b6['rootName'])-_0x188e78['indexOf'](_0x14df95['rootName'])),_0x18950d;}['_makeTape'](_0x2db318){const _0x156b3e=Array['from'](_0x2db318['markers'])['filter'](([_0x2508ad,_0x2d5551])=>_0x2508ad['startsWith']('revision:')&&!_0x2d5551['isCollapsed']),_0x233f9a=Array['from'](this['editor']['model']['createRangeIn'](_0x2db318)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x156b3e['length'])for(const _0x19bac4 of _0x233f9a){const [_0x3efa8f,_0x50edaf]=_0x156b3e[0x0],[,_0x49c0f7,_0x43ab35]=_0x3efa8f['split'](':');if(_0x50edaf['end']['isEqual'](_0x19bac4['nextPosition'])&&_0x156b3e['shift'](),(_0x19bac4['previousPosition']['isEqual'](_0x50edaf['start'])||_0x19bac4['previousPosition']['isAfter'](_0x50edaf['start']))&&('insertion'==_0x49c0f7?_0x19bac4['isAdded']={'userId':_0x43ab35}:'deletion'==_0x49c0f7&&(_0x19bac4['isRemoved']={'userId':_0x43ab35})),0x0==_0x156b3e['length'])break;}return _0x233f9a;}['_refreshStartEndIndex'](_0x2d7794){const _0x263d0d=new Map();for(let _0x213835=0x0;_0x213835<_0x2d7794['length'];_0x213835++)'text'===_0x2d7794[_0x213835]['type']?(_0x2d7794[_0x213835]['item']['startIndex']=_0x213835,_0x2d7794[_0x213835]['item']['endIndex']=_0x213835):('elementStart'===_0x2d7794[_0x213835]['type']?_0x2d7794[_0x213835]['item']['startIndex']=_0x213835:'elementEnd'===_0x2d7794[_0x213835]['type']&&(_0x2d7794[_0x213835]['item']['endIndex']=_0x213835),_0x263d0d['set'](_0x2d7794[_0x213835]['id'],_0x213835));for(const _0x46fddc of _0x263d0d['values']())'elementStart'===_0x2d7794[_0x46fddc]['type']?_0x2d7794[_0x46fddc]['item']['endIndex']=_0x263d0d['get'](_0x2d7794[_0x46fddc]['pairId']):'elementEnd'===_0x2d7794[_0x46fddc]['type']&&(_0x2d7794[_0x46fddc]['item']['startIndex']=_0x263d0d['get'](_0x2d7794[_0x46fddc]['pairId']));}['_processTape'](_0x224757){for(let _0x12c20b=0x0;_0x12c20b<_0x224757['length'];_0x12c20b++){if('elementStart'===_0x224757[_0x12c20b]['type'])_0x224757[_0x12c20b]['item']['startIndex']=_0x12c20b;else{if('elementEnd'===_0x224757[_0x12c20b]['type']){_0x224757[_0x12c20b]['item']['endIndex']=_0x12c20b;const _0x23f6e2=_0x224757[_0x12c20b]['item']['startIndex'];_0x224757[_0x23f6e2]['pairId']=_0x224757[_0x12c20b]['id'],_0x224757[_0x12c20b]['pairId']=_0x224757[_0x23f6e2]['id'];}else _0x224757[_0x12c20b]['item']['startIndex']=_0x12c20b,_0x224757[_0x12c20b]['item']['endIndex']=_0x12c20b,_0x224757[_0x12c20b]['pairId']=null;}_0x224757[_0x12c20b]['markersStart']||(_0x224757[_0x12c20b]['markersStart']=[],_0x224757[_0x12c20b]['markersEnd']=[]);}}['_markInsertions'](_0x4b85fd,_0x52daa7){const _0x2d8911=_0x4b85fd['filter'](_0xd1a7e9=>!_0xd1a7e9['isAdded']);for(let _0x1afdf8=0x0;_0x1afdf8<_0x52daa7['length'];_0x1afdf8++)_0x52daa7[_0x1afdf8]['isAdded']&&(_0x2d8911[_0x1afdf8]['isAdded']=_0x52daa7[_0x1afdf8]['isAdded']);}['_getDiff'](_0x325030,_0x1c2f37=null){const _0x57f6da=this['repository']['getRevision'](_0x325030),_0x21d5f1=_0x1c2f37?this['repository']['getRevision'](_0x1c2f37):null,_0x5a6acd=this['_getRevisionsRange'](_0x57f6da,_0x21d5f1),_0x48ca6a=_0x5a6acd[_0x5a6acd['length']-0x1],_0x56386a=new Map(),_0x1cdfaf={'model':{},'attributes':{},'changes':[]},_0x2b6e6c=new Set(),_0x3ae31c=new Map();for(let _0x48fb7b=_0x5a6acd['length']-0x1;_0x48fb7b>=0x0;_0x48fb7b--){const _0x5e1b3e=_0x5a6acd[_0x48fb7b];for(const _0x1aa545 of Object['keys'](_0x5e1b3e['diffData']))if(_0x5e1b3e['diffData'][_0x1aa545]['attachChange']){const _0x5f8846=_0x5e1b3e['diffData'][_0x1aa545]['attachChange'];_0x5f8846['isAttached']?(_0x2b6e6c['add'](_0x1aa545),_0x3ae31c['has'](_0x1aa545)&&_0x3ae31c['get'](_0x1aa545)['userId']==_0x5f8846['userId']?_0x3ae31c['delete'](_0x1aa545):_0x3ae31c['set'](_0x1aa545,_0x5f8846)):_0x3ae31c['has'](_0x1aa545)?(_0x2b6e6c['delete'](_0x1aa545),_0x3ae31c['delete'](_0x1aa545)):(_0x2b6e6c['add'](_0x1aa545),_0x3ae31c['set'](_0x1aa545,_0x5f8846));}else _0x2b6e6c['add'](_0x1aa545);}for(const _0x40b44d of _0x2b6e6c){const _0xcd46a1=_0x3ae31c['has'](_0x40b44d)&&!_0x3ae31c['get'](_0x40b44d)['isAttached'];let _0x4f7b11=_0xcd46a1?_0x5a6acd['length']-0x1:0x0;const _0xdd1639=_0xcd46a1?-0x1:0x1;for(;_0x5a6acd[_0x4f7b11];){const _0x580d3a=_0x5a6acd[_0x4f7b11];if(_0x580d3a['diffData'][_0x40b44d]){const _0x195e16=_0xcd46a1?_0x580d3a['diffData'][_0x40b44d]['attributesBefore']:_0x580d3a['diffData'][_0x40b44d]['attributesAfter'];_0x1cdfaf['attributes'][_0x40b44d]=_0x195e16?_0x14f7a4(_0x195e16):{};break;}_0x4f7b11+=_0xdd1639;}}for(const _0xb68349 of _0x5a6acd){_0xb68349['model']={};for(const _0x13798b of _0xb68349['authors'])_0x56386a['set'](_0x13798b['id'],_0x13798b);for(const _0x63131d of _0x2b6e6c){const _0x2b0543=_0xb68349['diffData'][_0x63131d]?_0xb68349['diffData'][_0x63131d]['insertions']:'[]',_0x377608=_0xb68349['diffData'][_0x63131d]?_0xb68349['diffData'][_0x63131d]['deletions']:'[]';_0xb68349['model'][_0x63131d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2b0543),'deletions':this['_utils']['_makeModelFromViewString'](_0x377608)};}}for(const _0x30953d of _0x2b6e6c){let _0x41dec5=null,_0x3b02fc=0x0;const _0x1f3a71=new Map(Array['from'](_0x57f6da['model'][_0x30953d]['insertions']['markers'])['filter'](([_0x2e58d7])=>!_0x2e58d7['startsWith']('revision:')));let _0xea96b6=0x0;for(const _0x5c8f43 of _0x5a6acd){const _0x8846ba=this['_makeTape'](_0x5c8f43['model'][_0x30953d]['insertions']);_0x5c8f43==_0x57f6da?(_0x41dec5=_0x8846ba,_0x3b02fc=_0x41dec5['length'],_0x41dec5['forEach'](_0x33720d=>{_0x33720d['id']=_0xea96b6++;}),this['_processTape'](_0x41dec5)):this['_markInsertions'](_0x41dec5,_0x8846ba);const _0x561844=_0x41dec5['filter'](_0xa29d1d=>!_0xa29d1d['isAdded'])['map'](_0x4436d8=>_0x4436d8['id']);let _0x5e931f=0x0;const _0x49d57a=this['_makeTape'](_0x5c8f43['model'][_0x30953d]['deletions']);_0x49d57a['forEach'](_0x5ceb29=>{_0x5ceb29['isRemoved']?_0x5ceb29['id']=_0x3b02fc++:_0x5ceb29['id']=_0x561844[_0x5e931f++];}),this['_processTape'](_0x49d57a),this['_setDistance'](_0x41dec5,'isAdded'),this['_setDistance'](_0x49d57a,'isRemoved'),_0x5c8f43==_0x57f6da&&this['_markMarkers'](_0x41dec5,_0x1f3a71),_0x41dec5=this['_joinTapes'](_0x41dec5,_0x49d57a),this['_refreshStartEndIndex'](_0x41dec5),this['_setDistance'](_0x41dec5,'isRemoved');}_0x41dec5=_0x41dec5['filter'](_0x3aa447=>!(_0x3aa447['isAdded']&&_0x3aa447['isRemoved']));const _0x5b5312=new Map(_0x48ca6a['model'][_0x30953d]['deletions']['markers']),_0x592234=new Set(_0x1f3a71['keys']());for(const _0x245570 of _0x5b5312['keys']())_0x592234['delete'](_0x245570);this['_markSuggestions'](_0x41dec5,_0x592234),this['_fixObsoleteTags'](_0x41dec5),_0x41dec5=this['_removeMissingPairs'](_0x41dec5),_0x41dec5=this['_markMismatchedRemovedTags'](_0x41dec5),_0x41dec5=this['_removeUnsupportedChanges'](_0x41dec5);const {root:_0x5b4fff,changes:_0xf2ce6e}=this['_makeModelFromTape'](_0x41dec5,_0x56386a,_0x30953d);_0x1cdfaf['model'][_0x30953d]=_0x5b4fff;const _0x4ca572=_0x3ae31c['get'](_0x30953d);if(_0x4ca572){const _0x53ef5c=_0x56386a['get'](_0x4ca572['userId']),_0x4a3505=new r({'author':_0x53ef5c,'type':_0x4ca572['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x30953d});_0xf2ce6e['unshift'](_0x4a3505),_0x1cdfaf['attributes'][_0x30953d]['revisionHistoryAttachChange']=_0x4a3505['id'];}_0x1cdfaf['changes']=_0x1cdfaf['changes']['concat'](_0xf2ce6e);}return _0x1cdfaf;}['_markMarkers'](_0x215706,_0x3e7feb){for(let _0x256a81=0x0;_0x256a81<_0x215706['length'];_0x256a81++)for(const [_0x8fbad7,_0x5876a1]of _0x3e7feb)!_0x5876a1['isCollapsed']&&_0x5876a1['start']['isEqual'](_0x215706[_0x256a81]['previousPosition'])&&_0x215706[_0x256a81]['markersStart']['push'](_0x8fbad7),_0x5876a1['end']['isEqual'](_0x215706[_0x256a81]['nextPosition'])&&_0x215706[_0x256a81]['markersEnd']['push'](_0x8fbad7);}['_joinTapes'](_0x2800de,_0x28fd93){let _0x102b01=[],_0x1d1fa7=0x0,_0x676389=0x0;for(;_0x1d1fa7<_0x2800de['length']||_0x676389<_0x28fd93['length'];){const _0x42a321=_0x2800de[_0x1d1fa7]||{},_0x4af6ac=_0x28fd93[_0x676389]||{};if(_0x42a321['id']==_0x4af6ac['id'])_0x1d1fa7++,_0x676389++,_0x102b01['push'](_0x42a321);else{if(_0x4af6ac['isRemoved']&&_0x42a321['isAdded']){const {commonTape:_0x26a093,iEnd:_0x4544ed,jEnd:_0x538e72}=this['_threeWayMerge'](_0x2800de,_0x1d1fa7,_0x28fd93,_0x676389);_0x102b01=_0x102b01['concat'](_0x26a093),_0x1d1fa7=_0x4544ed,_0x676389=_0x538e72;}else _0x4af6ac['isRemoved']?(_0x676389++,_0x102b01['push'](_0x4af6ac)):(_0x1d1fa7++,_0x102b01['push'](_0x42a321));}}return _0x102b01;}['_markSuggestions'](_0x50e50b,_0x39f2a2){const _0x28ee9c=[];for(let _0x1ba38d=0x0;_0x1ba38d<_0x50e50b['length'];_0x1ba38d++){for(let _0x135cfb=0x0;_0x135cfb<_0x50e50b[_0x1ba38d]['markersStart']['length'];_0x135cfb++){const _0x424af8=_0x50e50b[_0x1ba38d]['markersStart'][_0x135cfb];if(!_0x39f2a2['has'](_0x424af8))continue;const {group:_0x516e3c,type:_0xc11cb9,authorId:_0x251d6d}=_0x446c5a(_0x424af8);'revision-suggestion'!=_0x516e3c||'insertion'!=_0xc11cb9&&'deletion'!=_0xc11cb9||(_0x28ee9c['unshift']({'type':_0xc11cb9,'name':_0x424af8,'userId':_0x251d6d}),_0x50e50b[_0x1ba38d]['markersStart']['splice'](_0x135cfb,0x1),_0x135cfb--);}_0x30f1af(_0x50e50b[_0x1ba38d]);for(let _0x2d44c5=0x0;_0x2d44c5<_0x50e50b[_0x1ba38d]['markersEnd']['length'];_0x2d44c5++){const _0x1cffe4=_0x50e50b[_0x1ba38d]['markersEnd'][_0x2d44c5];if(!_0x39f2a2['has'](_0x1cffe4))continue;const {group:_0x19e541,type:_0x58aceb}=_0x446c5a(_0x1cffe4);if('revision-suggestion'!=_0x19e541||'insertion'!=_0x58aceb&&'deletion'!=_0x58aceb)continue;_0x50e50b[_0x1ba38d]['markersEnd']['splice'](_0x2d44c5,0x1),_0x2d44c5--;const _0x22053b=_0x28ee9c['findIndex'](_0x47ef32=>_0x47ef32['name']==_0x1cffe4);_0x22053b>-0x1&&_0x28ee9c['splice'](_0x22053b,0x1);}}function _0x446c5a(_0x5e5ffc){const _0x183dec=_0x5e5ffc['split'](':');return{'group':_0x183dec[0x0],'type':_0x183dec[0x1],'subType':_0x183dec['length']>=0x5?_0x183dec[0x2]:null,'id':_0x183dec['length']<0x5?_0x183dec[0x2]:_0x183dec[0x3],'authorId':_0x183dec['length']<0x5?_0x183dec[0x3]:_0x183dec[0x4],'markerCount':0x6==_0x183dec['length']?_0x183dec[0x5]:null};}function _0x30f1af(_0x49fd60){for(let _0x515b1b=0x0;_0x515b1b<_0x28ee9c['length'];_0x515b1b++){if(_0x49fd60['isAdded']&&'insertion'==_0x28ee9c[_0x515b1b]['type']&&_0x49fd60['isAdded']['userId']==_0x28ee9c[_0x515b1b]['userId'])return _0x49fd60['isAddSuggestion']=_0x28ee9c[_0x515b1b],void delete _0x49fd60['isAdded'];if(!_0x49fd60['isAdded']&&!_0x49fd60['isRemoved']&&'deletion'==_0x28ee9c[_0x515b1b]['type'])return void(_0x49fd60['isRemoveSuggestion']=_0x28ee9c[_0x515b1b]);}}}['_setDistance'](_0x4b94bc,_0x72d42c){let _0x204ab6=0x0,_0x4f260c=!0x1;const _0x55f9bd=new Map();for(const _0x1a012c of _0x4b94bc)_0x1a012c[_0x72d42c]?_0x4f260c&&(_0x204ab6++,_0x4f260c=!0x1):(_0x204ab6++,_0x4f260c=!0x0),_0x55f9bd['set'](_0x1a012c['id'],_0x204ab6);for(let _0x593ed9=0x0;_0x593ed9<_0x4b94bc['length'];_0x593ed9++){if('isRemoved'==_0x72d42c&&_0x4b94bc[_0x593ed9]['isAdded']||'isAdded'==_0x72d42c&&_0x4b94bc[_0x593ed9]['isRemoved'])continue;if('text'==_0x4b94bc[_0x593ed9]['type']){_0x4b94bc[_0x593ed9]['distance']=0x0;continue;}const _0x1ccb6e=_0x55f9bd['get'](_0x4b94bc[_0x593ed9]['pairId']),_0x37b907=_0x55f9bd['get'](_0x4b94bc[_0x593ed9]['id']);_0x4b94bc[_0x593ed9]['distance']=_0x1ccb6e-_0x37b907;}}['_getRevisionsRange'](_0x244f69,_0x5c2b9e,_0x48f5cc=!0x1){const _0x4b52f7=[];let _0x42f173=this['repository']['getIndex'](_0x244f69),_0xd3b695=this['repository']['getIndex'](_0x5c2b9e);for(-0x1==_0xd3b695&&(_0xd3b695=this['repository']['_revisions']['length'],_0x48f5cc=!0x1);_0x42f173<_0xd3b695;)_0x4b52f7['push'](this['repository']['getRevision'](_0x42f173)),_0x42f173++;return _0x48f5cc&&_0x4b52f7['push'](this['repository']['getRevision'](_0x42f173)),_0x4b52f7;}['_threeWayMerge'](_0x5ea399,_0x38b484,_0x50b78,_0x1eaf60){const _0x5a522c=this['editor']['model']['schema'];let _0x210594=_0x38b484;for(;_0x5ea399[_0x210594]&&_0x5ea399[_0x210594]['isAdded'];)_0x210594++;let _0x2b0e4a=_0x1eaf60;for(;_0x50b78[_0x2b0e4a]&&_0x50b78[_0x2b0e4a]['isRemoved'];)_0x2b0e4a++;_0x41167c(_0x5ea399,_0x38b484,_0x210594),_0x41167c(_0x50b78,_0x1eaf60,_0x2b0e4a);const _0x520a1d=_0x50b78['slice'](_0x1eaf60,_0x2b0e4a)['concat'](_0x5ea399['slice'](_0x38b484,_0x210594));return _0x520a1d['sort']((_0x2004eb,_0xee0516)=>_0x2004eb['side']!=_0xee0516['side']?_0x2004eb['side']-_0xee0516['side']:_0x2004eb['level']!=_0xee0516['level']?_0x2004eb['level']-_0xee0516['level']:_0x2004eb['distance']!=_0xee0516['distance']?_0xee0516['distance']-_0x2004eb['distance']:!!_0x2004eb['isAdded']!=!!_0xee0516['isAdded']?-0x1==_0x2004eb['side']||0x0==_0x2004eb['side']?_0x2004eb['isAdded']?-0x1:0x1:_0x2004eb['isAdded']?0x1:-0x1:_0x2004eb['index']-_0xee0516['index']),{'commonTape':_0x520a1d,'iEnd':_0x210594,'jEnd':_0x2b0e4a};function _0x41167c(_0x4f41cf,_0x413fc7,_0x4b8fdf){let _0x3a684d=-0x1,_0x1c138e=Number['POSITIVE_INFINITY'],_0x340cba=!0x0;for(let _0x512df8=_0x413fc7;_0x512df8<_0x4b8fdf;_0x512df8++)if(_0x5a522c['isInline'](_0x4f41cf[_0x512df8]['item'])||(_0x340cba=!0x1),_0x4f41cf[_0x512df8]['item']['startIndex']<_0x413fc7&&(_0x3a684d=_0x512df8),_0x4f41cf[_0x512df8]['item']['endIndex']>=_0x4b8fdf){_0x1c138e=_0x512df8;break;}_0x340cba&&(_0x3a684d=_0x4b8fdf-0x1);for(let _0x11cb05=_0x413fc7;_0x11cb05<_0x4b8fdf;_0x11cb05++)_0x4f41cf[_0x11cb05]['side']=_0x11cb05<=_0x3a684d?-0x1:_0x11cb05<_0x1c138e?0x0:0x1,_0x4f41cf[_0x11cb05]['index']=_0x11cb05;let _0x174305=0x0;for(let _0x54f041=_0x413fc7;_0x54f041<=_0x3a684d;_0x54f041++)0x0==_0x4f41cf[_0x54f041]['distance']?_0x4f41cf[_0x54f041]['level']=_0x174305:(_0x174305++,_0x4f41cf[_0x54f041]['level']=_0x174305,_0x174305++);for(let _0x2003bf=_0x413fc7;_0x2003bf<_0x4b8fdf;_0x2003bf++)0x0==_0x4f41cf[_0x2003bf]['side']&&(_0x4f41cf[_0x2003bf]['level']=_0x174305);_0x174305=0x0;for(let _0x25d4a6=_0x4b8fdf-0x1;_0x25d4a6>=_0x1c138e;_0x25d4a6--)0x0==_0x4f41cf[_0x25d4a6]['distance']?_0x4f41cf[_0x25d4a6]['level']=_0x174305:(_0x174305--,_0x4f41cf[_0x25d4a6]['level']=_0x174305,_0x174305--);}}['_fixObsoleteTags'](_0x28926d){const _0x596085=new Map(),_0x56dc11=this['editor']['model']['schema'];for(let _0x44e567=0x1;_0x44e567<_0x28926d['length'];_0x44e567++){let _0xe7aa7e,_0x4e490a,_0x3c5034;const _0x4c5b23=_0x28926d[_0x44e567],_0x2f289f=_0x28926d[_0x44e567-0x1];if('text'==_0x4c5b23['type'])continue;if(_0x4c5b23['type']!=_0x2f289f['type'])continue;if(!_0x56dc11['isBlock'](_0x2f289f['item'])||_0x56dc11['isLimit'](_0x2f289f['item']))continue;if(!_0x56dc11['isBlock'](_0x4c5b23['item'])||_0x56dc11['isLimit'](_0x4c5b23['item']))continue;if((_0x28926d[_0x44e567]['isAdded']||_0x28926d[_0x44e567]['isAddSuggestion'])&&_0x28926d[_0x44e567-0x1]['isRemoved'])_0xe7aa7e=_0x28926d[_0x44e567],_0x4e490a=_0x28926d[_0x44e567-0x1],_0x3c5034=_0x44e567-0x1;else{if(!_0x28926d[_0x44e567]['isRemoved']||!_0x28926d[_0x44e567-0x1]['isAdded']&&!_0x28926d[_0x44e567-0x1]['isAddSuggestion'])continue;_0xe7aa7e=_0x28926d[_0x44e567-0x1],_0x4e490a=_0x28926d[_0x44e567],_0x3c5034=_0x44e567;}const _0x22bb02=_0xe7aa7e['level']==_0x4e490a['level'],_0x72d5d1=Math['abs'](_0xe7aa7e['level'])<Math['abs'](_0x4e490a['level'])&&0x0==_0x4e490a['distance'];(_0x22bb02||_0x72d5d1)&&(_0x596085['set'](_0x4e490a['id'],_0xe7aa7e['id']),_0x28926d['splice'](_0x3c5034,0x1),_0x44e567--,_0xe7aa7e['isAdded']=!0x1);}for(let _0x16cc6d=0x0;_0x16cc6d<_0x28926d['length'];_0x16cc6d++)_0x596085['has'](_0x28926d[_0x16cc6d]['pairId'])&&(_0x28926d[_0x16cc6d]['pairId']=_0x596085['get'](_0x28926d[_0x16cc6d]['pairId']));}['_removeMissingPairs'](_0x21ffd4){const _0x197e8f=new Set(_0x21ffd4['map'](_0x31c3c5=>_0x31c3c5['id']));for(let _0x1864ab=0x0;_0x1864ab<_0x21ffd4['length'];_0x1864ab++)_0x197e8f['has'](_0x21ffd4[_0x1864ab]['pairId'])||0x0==_0x21ffd4[_0x1864ab]['distance']||(_0x21ffd4[_0x1864ab]['isIncorrect']=!0x0);return _0x21ffd4['filter'](_0x297fc1=>!_0x297fc1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x571fa4){const _0x113dea=new Set();for(let _0xdb3514=0x0;_0xdb3514<_0x571fa4['length'];_0xdb3514++){if(_0x113dea['has'](_0x571fa4[_0xdb3514]['id'])&&_0x571fa4[_0xdb3514]['isRemoved']&&(_0x571fa4[_0xdb3514]['isIncorrect']=!0x0),_0x571fa4[_0xdb3514]['isIncorrect'])continue;if(0x0==_0x571fa4[_0xdb3514]['distance'])continue;if('elementStart'!=_0x571fa4[_0xdb3514]['type'])continue;if(null==_0x571fa4[_0xdb3514]['pairId'])continue;let _0x5828f4=_0xdb3514+0x1,_0x350272=0x0;for(;_0x571fa4[_0x5828f4]['id']!=_0x571fa4[_0xdb3514]['pairId'];)'elementStart'==_0x571fa4[_0x5828f4]['type']?_0x350272++:'elementEnd'==_0x571fa4[_0x5828f4]['type']&&_0x350272--,_0x5828f4++;if(0x0!=_0x350272){if(_0x571fa4[_0xdb3514]['isRemoved'])_0x571fa4[_0xdb3514]['isIncorrect']=!0x0;else{for(;_0x5828f4!=_0xdb3514;)_0x571fa4[_0x5828f4]['isRemoved']&&0x0!=_0x571fa4[_0x5828f4]['distance']&&(_0x571fa4[_0x5828f4]['isIncorrect']=!0x0,_0x113dea['add'](_0x571fa4[_0x5828f4]['pairId'])),_0x5828f4--;}}}return _0x571fa4['filter'](_0x159a25=>!_0x159a25['isIncorrect']);}['_removeUnsupportedChanges'](_0x5dc6f3){const _0x420473=this['editor']['model']['schema'];for(let _0x267b50=0x0;_0x267b50<_0x5dc6f3['length'];_0x267b50++){if(!(_0x5dc6f3[_0x267b50]['isAdded']||_0x5dc6f3[_0x267b50]['isAddSuggestion']||_0x5dc6f3[_0x267b50]['isRemoved']||_0x5dc6f3[_0x267b50]['isRemoveSuggestion']))continue;if(0x0==_0x5dc6f3[_0x267b50]['distance'])continue;const _0x34c3d0=_0x5dc6f3[_0x267b50]['item'];_0x420473['isBlock'](_0x34c3d0)||_0x420473['isLimit'](_0x34c3d0)||(_0x5dc6f3[_0x267b50]['isAdded']&&delete _0x5dc6f3[_0x267b50]['isAdded'],_0x5dc6f3[_0x267b50]['isAddSuggestion']&&delete _0x5dc6f3[_0x267b50]['isAddSuggestion'],_0x5dc6f3[_0x267b50]['isRemoveSuggestion']&&delete _0x5dc6f3[_0x267b50]['isRemoveSuggestion'],_0x5dc6f3[_0x267b50]['isRemoved']&&(_0x5dc6f3[_0x267b50]['isIncorrect']=!0x0));}return _0x5dc6f3['filter'](_0x41d890=>!_0x41d890['isIncorrect']);}['_makeModelFromTape'](_0x5ef72b,_0x2fdd5a,_0x2d1eec){const _0x5d041d=new vt(),_0x4e2f8d=[],_0x1571c7=new Map(),_0x333282=this['editor']['model'],_0x284751=_0x333282['schema'],_0x5f3816=[_0x5d041d],_0x867aad={},_0x339b96={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x464d73=null;const _0x5dc7f3=[0x0];for(let _0x2121ed=0x0;_0x2121ed<_0x5ef72b['length'];_0x2121ed++)if('elementStart'===_0x5ef72b[_0x2121ed]['type']){_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3);const _0x29f04e=new ut(_0x5ef72b[_0x2121ed]['item']['name'],_0x5ef72b[_0x2121ed]['item']['getAttributes']());_0x5f3816[0x0]['_appendChild'](_0x29f04e),_0x5dc7f3['push'](0x0),_0x5f3816['unshift'](_0x29f04e),_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3);}else'elementEnd'===_0x5ef72b[_0x2121ed]['type']?(_0x5f3816['shift'](),_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3),_0x5dc7f3['pop'](),_0x5dc7f3[_0x5dc7f3['length']-0x1]++,_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3)):(_0x5ef72b[_0x2121ed]['previousPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3),_0x464d73?_0x464d73['_data']+=_0x5ef72b[_0x2121ed]['item']['data']:_0x464d73=new gt(_0x5ef72b[_0x2121ed]['item']['data'],_0x5ef72b[_0x2121ed]['item']['getAttributes']()),_0x5ef72b[_0x2121ed+0x1]&&'text'===_0x5ef72b[_0x2121ed+0x1]['type']&&_0x357613(_0x464d73,_0x5ef72b[_0x2121ed+0x1]['item'])||(_0x5f3816[0x0]['_appendChild'](_0x464d73),_0x464d73=null),_0x5dc7f3[_0x5dc7f3['length']-0x1]+=_0x5ef72b[_0x2121ed]['item']['offsetSize'],_0x5ef72b[_0x2121ed]['nextPosition']=_0x333282['createPositionFromPath'](_0x5d041d,_0x5dc7f3));for(let _0x5df286=0x0;_0x5df286<_0x5ef72b['length'];_0x5df286++){const _0x531f1f=_0x5ef72b[_0x5df286]['previousPosition'],_0x37c92d=_0x5ef72b[_0x5df286]['nextPosition'];for(const _0x2ee407 of _0x5ef72b[_0x5df286]['markersStart'])_0x1571c7['set'](_0x2ee407,{'start':_0x531f1f,'end':null});_0x235cd2('isRemoveSuggestion',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isAddSuggestion',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isRemoved',_0x5df286,_0x531f1f,_0x37c92d),_0x235cd2('isAdded',_0x5df286,_0x531f1f,_0x37c92d);for(const _0x454a77 of _0x5ef72b[_0x5df286]['markersEnd']){const _0x3d7f87=_0x1571c7['get'](_0x454a77);_0x3d7f87?_0x3d7f87['end']=_0x37c92d:_0x1571c7['set'](_0x454a77,{'start':_0x37c92d,'end':_0x37c92d});}}for(const [_0xf5a362,_0xfecea8]of _0x1571c7){const _0x1b26a8=this['editor']['model']['createRange'](_0xfecea8['start'],_0xfecea8['end']);_0x5d041d['markers']['set'](_0xf5a362,_0x1b26a8);}return _0x4e2f8d['sort']((_0xc85694,_0x1fd901)=>{const _0x5834ef=_0x5d041d['markers']['get']('revision:'+_0xc85694['id']),_0x2ae142=_0x5d041d['markers']['get']('revision:'+_0x1fd901['id']);return _0x5834ef['start']['isBefore'](_0x2ae142['start'])?-0x1:_0x5834ef['start']['isAfter'](_0x2ae142['start'])?0x1:_0x5834ef['end']['isBefore'](_0x2ae142['end'])?-0x1:_0x5834ef['end']['isAfter'](_0x2ae142['end'])?0x1:'add'===_0xc85694['type']?-0x1:0x1;}),{'root':_0x5d041d,'changes':_0x4e2f8d};function _0x235cd2(_0x349605,_0x4d37b1,_0x2bd94c,_0x467d26){const _0x5a1f2e=!!_0x5ef72b[_0x4d37b1][_0x349605],_0x3ef60e=_0x5a1f2e?_0x5ef72b[_0x4d37b1][_0x349605]['userId']:null,_0xf78a01=_0x4d37b1===_0x5ef72b['length']-0x1,_0x32b57e=_0x339b96[_0x349605][0x0],_0xeb73dc=_0x284751['isObject'](_0x5ef72b[_0x4d37b1]['item']);!_0x867aad[_0x349605]&&_0x5a1f2e?_0x867aad[_0x349605]={'start':_0x2bd94c,'tapeItem':_0x5ef72b[_0x4d37b1],'userId':_0x3ef60e,'type':_0x349605}:_0x867aad[_0x349605]&&!_0x5a1f2e?(_0x867aad[_0x349605]['end']=_0x2bd94c,_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]=null):_0x867aad[_0x349605]&&_0x5a1f2e&&_0x867aad[_0x349605]['userId']!==_0x3ef60e&&(_0x867aad[_0x349605]['end']=_0x2bd94c,_0x32b57e&&_0x32b57e['userId']===_0x867aad[_0x349605]['userId']||_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]={'start':_0x2bd94c,'tapeItem':_0x5ef72b[_0x4d37b1],'userId':_0x3ef60e,'type':_0x349605}),_0x867aad[_0x349605]&&_0xeb73dc&&('elementStart'!==_0x5ef72b[_0x4d37b1]['type']||_0x32b57e&&_0x32b57e['userId']===_0x3ef60e||_0x339b96[_0x349605]['unshift']({'userId':_0x3ef60e,'object':_0x5ef72b[_0x4d37b1]['item'],'change':_0x867aad[_0x349605]}),'elementEnd'===_0x5ef72b[_0x4d37b1]['type']&&_0x32b57e&&_0x32b57e['object']===_0x5ef72b[_0x4d37b1]['item']&&(_0x339b96[_0x349605]['shift'](),_0x867aad[_0x349605]=_0x32b57e['change'])),_0x867aad[_0x349605]&&_0xf78a01&&(_0x867aad[_0x349605]['end']=_0x467d26,_0x3d3ebd(_0x867aad[_0x349605]),_0x867aad[_0x349605]=null);}function _0x3d3ebd({start:_0xad4754,end:_0x58ca7,tapeItem:_0xf333e0,userId:_0x1f5513,type:_0x8c69b7}){const _0x58143e=_0xf333e0['item'],_0x304ccf=_0x333282['schema']['isBlock'](_0x58143e)&&!_0x333282['schema']['isLimit'](_0x58143e),_0x4c5393=_0xad4754['nodeAfter']==_0x58ca7['parent']&&_0x58ca7['isAtStart'];if(_0x304ccf&&_0x4c5393)return;const _0x170deb=_0x333282['createRange'](_0xad4754,_0x58ca7),_0x4e9b75=_0x2fdd5a['get'](_0x1f5513),_0xd38c4d=new r({'author':_0x4e9b75,'type':'isAdded'==_0x8c69b7||'isAddSuggestion'==_0x8c69b7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x8c69b7||'isRemoveSuggestion'==_0x8c69b7},'createdAt':new Date(),'rootName':_0x2d1eec});_0x4e2f8d['push'](_0xd38c4d),_0x5d041d['markers']['set']('revision:'+_0xd38c4d['id'],_0x170deb);}function _0x357613(_0x4425f9,_0x1f1b39){const _0x525d9b=_0x4425f9['getAttributes'](),_0x4c9572=_0x1f1b39['getAttributes']();for(const _0x401362 of _0x525d9b){if(_0x401362[0x1]!==_0x1f1b39['getAttribute'](_0x401362[0x0]))return!0x1;_0x4c9572['next']();}return _0x4c9572['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2fb820=>{const _0xe2c6f4=_0x2fb820['markerName']['split'](':')[0x1],_0xe41059=this['_getChangeFromId'](_0xe2c6f4);if(!_0xe41059)return null;const _0x3eaa9d='add'==_0xe41059['type']?'insertion':'deletion',_0x511c9a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3eaa9d];return _0xe41059['data']['isSuggestion']&&_0x511c9a['push']('ck-suggestion-marker-'+_0x3eaa9d+'-new'),this['activeChange']==_0xe41059&&_0x511c9a['push']('ck-suggestion-marker--active'),{'classes':_0x511c9a,'attributes':{'data-change-id':_0xe2c6f4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x728535=>{_0x728535['on']('element:pre',(_0x17417f,_0x46d782,_0x2bce85)=>{const _0x3cbff7=_0x46d782['viewItem']['getChild'](0x0);if(!_0x3cbff7||!_0x3cbff7['is']('element','code'))return;if(!_0x2bce85['consumable']['consume'](_0x3cbff7,{'attributes':['vid_start','vid_end']}))return;const _0x27fc26=_0x46d782['modelRange']['start']['nodeAfter'];_0x2bce85['writer']['setAttribute']('vid_start',_0x3cbff7['getAttribute']('vid_start'),_0x27fc26),_0x2bce85['writer']['setAttribute']('vid_end',_0x3cbff7['getAttribute']('vid_end'),_0x27fc26);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7a32f1=>{_0x7a32f1['on']('element',(_0xc7ce0e,_0x1ee8c7,_0x41955e)=>{if(!_0x41955e['consumable']['consume'](_0x1ee8c7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1ee8c7['modelRange']['isCollapsed'])return;const _0x2c2694=_0x1ee8c7['modelRange']['start']['nodeAfter'];_0x2c2694['hasAttribute']('vid_start')||_0x2c2694['hasAttribute']('vid')||(_0x41955e['writer']['setAttribute']('vid_start',_0x1ee8c7['viewItem']['getAttribute']('vid_start'),_0x2c2694),_0x41955e['writer']['setAttribute']('vid_end',_0x1ee8c7['viewItem']['getAttribute']('vid_end'),_0x2c2694));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x257e24=>_0x257e24['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x14860f,[,_0xa0b6])=>{['vid_start','vid_end','vid']['includes'](_0xa0b6)&&(_0x14860f['return']=!0x0,_0x14860f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x14ba39=>{_0x14ba39['on']('attribute:vid',(_0x34a1c5,_0x122549,_0x59b87f)=>{if('\x20'!=_0x122549['item']['data']||_0x122549['item']['parent']['maxOffset']>0x1)return;if(!_0x59b87f['consumable']['consume'](_0x122549['item'],_0x34a1c5['name']))return;const _0x33a337=_0x59b87f['writer'],_0x4cd7b8=_0x59b87f['mapper']['toViewRange'](_0x122549['range']);_0x33a337['wrap'](_0x4cd7b8,_0x33a337['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x50d391){const _0x50ac29=_0x50d391['plugins']['get']('RevisionViewer');return(_0x19b417,_0x2e84ef,_0x2192c1)=>{const _0x53651b=_0x2e84ef['markerName']['split'](':')[0x1],_0x5d54e4=_0x50ac29['_getChangeFromId'](_0x53651b);if(!_0x5d54e4)return null;const _0x55b8a2='add'==_0x5d54e4['type']?'split':'merge';if(!_0x2192c1['consumable']['test'](_0x2e84ef['markerRange'],_0x19b417['name']))return;const _0x411fbc=_0x2e84ef['markerRange']['getWalker'](),_0x34e764=_0x2e84ef['markerRange']['start'],_0x1480fd=_0x50d391['model']['schema'];let _0x1619df=null,_0x2d9b70=null,_0x109cd7=!0x1,_0x3ea6ff=!0x1;for(const _0x1b7399 of _0x411fbc){const _0x245422=_0x1b7399['item'];_0x109cd7=_0x109cd7||_0x1480fd['isContent'](_0x245422);const _0xf5b67e=_0x2192c1['mapper']['toViewElement'](_0x245422);if(_0xf5b67e&&_0xf5b67e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b7399['type']&&(_0x1480fd['isBlock'](_0x245422)&&!_0x1480fd['isLimit'](_0x245422)&&(_0x245422['nextSibling']||_0x34e764['isAtEnd']?_0x1619df&&_0x1619df['parent']==_0x245422||(_0x1619df=_0x245422,_0x26e8e5(_0x1b7399['previousPosition']),_0x3ea6ff=!0x0):_0x2d9b70=_0x2d9b70||_0x1b7399['previousPosition']));}function _0x26e8e5(_0x4462e6){const _0xee787f=_0x2192c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55b8a2}),_0x58d45e=_0x2192c1['mapper']['toViewPosition'](_0x4462e6);_0x5d54e4['data']['isSuggestion']&&_0x2192c1['writer']['addClass']('ck-suggestion-marker-'+_0x55b8a2+'-new',_0xee787f),_0x50ac29['activeChange']==_0x5d54e4&&_0x2192c1['writer']['addClass']('ck-suggestion-marker--active',_0xee787f),_0x2192c1['writer']['insert'](_0x58d45e,_0xee787f),_0x2192c1['mapper']['bindElementToMarker'](_0xee787f,_0x2e84ef['markerName']);}_0x109cd7||_0x3ea6ff||!_0x2d9b70||_0x26e8e5(_0x2d9b70);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x526b98,_0x441fd4,_0x3f6510)=>{const _0x5980af=_0x3f6510['mapper']['markerNameToElements'](_0x441fd4['markerName']);if(_0x5980af){for(const _0x1885f8 of _0x5980af)(_0x1885f8['hasClass']('ck-suggestion-marker-split')||_0x1885f8['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f6510['mapper']['unbindElementFromMarkerName'](_0x1885f8,_0x441fd4['markerName']),_0x3f6510['writer']['remove'](_0x1885f8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16c8b9,_0x8bfef6,_0xdeef61)=>{const _0x14594e=_0x8bfef6['markerName']['split'](':')[0x1],_0x2e3b62=this['_getChangeFromId'](_0x14594e);if(!_0x2e3b62)return null;const _0x2b3b11='add'==_0x2e3b62['type']?'split':'merge';if(_0xdeef61['consumable']['test'](_0x8bfef6['markerRange'],_0x16c8b9['name']))for(const _0x11fc2e of _0x8bfef6['markerRange']['getItems']()){if(!_0x11fc2e['is']('element','softBreak'))continue;const _0x30d3dc=_0xdeef61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b3b11}),_0x2d6c24=_0xdeef61['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x11fc2e));_0x2e3b62['data']['isSuggestion']&&_0xdeef61['writer']['addClass']('ck-suggestion-marker-'+_0x2b3b11+'-new',_0x30d3dc),this['activeChange']==_0x2e3b62&&_0xdeef61['writer']['addClass']('ck-suggestion-marker--active',_0x30d3dc),_0xdeef61['writer']['insert'](_0x2d6c24,_0x30d3dc),_0xdeef61['mapper']['bindElementToMarker'](_0x30d3dc,_0x8bfef6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x38342d=>{for(const _0x5c6042 of this['editor']['model']['document']['getRootNames']()){const _0x5a0f24=this['editor']['model']['document']['getRoot'](_0x5c6042),_0x8a59e4=this['editor']['editing']['view']['document']['getRoot'](_0x5c6042);if(_0x8a59e4){const _0x34a3e=_0x5a0f24['getAttribute']('revisionHistoryAttachChange');if(_0x38342d['removeAttribute']('data-change-id',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root-add',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root-remove',_0x8a59e4),_0x38342d['removeClass']('ck-revision-history-root--active',_0x8a59e4),_0x34a3e){const _0x3e3eae=this['_getChangeFromId'](_0x34a3e);if(!_0x3e3eae)return null;_0x38342d['setAttribute']('data-change-id',_0x34a3e,_0x8a59e4),_0x38342d['addClass']('ck-revision-history-root-'+_0x3e3eae['type'],_0x8a59e4),this['activeChange']==_0x3e3eae&&_0x38342d['addClass']('ck-revision-history-root--active',_0x8a59e4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x49c668=>'revision-comment:'+_0x49c668,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5447c5=>'revision-suggestion:'+_0x5447c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x29cfd0=>({'name':'suggestion:'+_0x29cfd0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1cc4fe=>{const _0x2416ab=_0x1cc4fe['markerName']['split'](':')[0x1];return'insertion'!=_0x2416ab&&'deletion'!=_0x2416ab?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2416ab]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x13e7b9,_0x1e1b00,_0x5b76aa)=>{const _0x485711=_0x5b76aa['mapper']['markerNameToElements'](_0x1e1b00['markerName']);if(_0x485711){for(const _0x3d93ad of _0x485711)_0x3d93ad['is']('uiElement')&&(_0x5b76aa['mapper']['unbindElementFromMarkerName'](_0x3d93ad,_0x1e1b00['markerName']),_0x5b76aa['writer']['remove'](_0x3d93ad));}},{'priority':'high'});}['_getChangeFromId'](_0x1cd858){return this['_changeIdToChange']['get'](_0x1cd858);}['_getViewForChange'](_0x37455f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x37455f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x74fe9d,_0x28db9f,_0x4cc3ef,_0x3089f4)=>{_0x3089f4&&this['_balloon']['remove'](_0x3089f4),_0x4cc3ef&&(this['_balloon']['add']({'view':_0x4cc3ef,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x448659=this['editor']['editing'],_0x5122ce=this['_getChangeFromId'](_0x4cc3ef['changeId']);let _0x40c0db;if(_0x5122ce['data']['isOnRoot']){const _0x5300b8=_0x448659['view']['getDomRoot'](_0x5122ce['rootName']);_0x40c0db=Array['from'](_0x5300b8['getClientRects']());}else{const _0x4c3b9c=this['editor']['model']['markers']['get']('revision:'+_0x4cc3ef['changeId']);_0x40c0db=Array['from'](_0x448659['mapper']['markerNameToElements'](_0x4c3b9c['name']))['map'](_0x1ee0e6=>_0x448659['view']['domConverter']['mapViewToDom'](_0x1ee0e6))['map'](_0x5f3924=>Array['from'](_0x5f3924['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x40c0db[0x0];return _0x40c0db['find'](_0x50f44c=>_0x50f44c['top']-0x3<=this['_activeViewTarget']['y']&&_0x50f44c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x50f44c['left']-0x3<=this['_activeViewTarget']['x']&&_0x50f44c['right']+0x3>=this['_activeViewTarget']['x'])||_0x40c0db[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2d6463,_0x5d3b82,_0x43ada8,_0x28468c)=>{this['activeView']=_0x43ada8?this['_getViewForChange'](_0x43ada8):null,this['editor']['model']['change'](()=>{const _0x91f2b1=this['editor']['editing'];_0x28468c&&(_0x28468c['data']['isOnRoot']?_0x91f2b1['view']['change'](_0x37eb12=>{_0x37eb12['removeClass']('ck-revision-history-root--active',_0x91f2b1['view']['document']['getRoot'](_0x28468c['rootName']));}):_0x91f2b1['reconvertMarker']('revision:'+_0x28468c['id'])),_0x43ada8&&(_0x43ada8['data']['isOnRoot']?_0x91f2b1['view']['change'](_0x34f245=>{_0x34f245['addClass']('ck-revision-history-root--active',_0x91f2b1['view']['document']['getRoot'](_0x43ada8['rootName']));}):_0x91f2b1['reconvertMarker']('revision:'+_0x43ada8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x781783,_0x22875e)=>{if(this['activeChange'])return;const _0x4663d7=this['_findChangeIdFromDomTarget'](_0x22875e['target']),_0x352731=this['_changeIdToChange']['get'](_0x4663d7);_0x352731?(this['_activeViewTarget']={'x':_0x22875e['domEvent']['x'],'y':_0x22875e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x352731)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x506a46,_0x4c5ef2)=>{const _0x5df348=this['_findChangeIdFromDomTarget'](_0x4c5ef2['target']),_0x4452dc=this['_changeIdToChange']['get'](_0x5df348);_0x4452dc?(this['_activeViewTarget']={'x':_0x4c5ef2['domEvent']['x'],'y':_0x4c5ef2['domEvent']['y']},_0x4452dc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4452dc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x49bb19){do{const _0x27c908=_0x49bb19['getAttribute']('data-change-id');if(_0x27c908)return _0x27c908;_0x49bb19=_0x49bb19['parent'];}while(_0x49bb19);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x28992f=>{for(const _0x2e073c of this['editor']['model']['markers'])_0x28992f['removeMarker'](_0x2e073c);});}}function X(_0xfb999e,_0x4279b5){return(_0xefba4f,_0x440038,_0x1b6cc6)=>{if(!_0x1b6cc6['consumable']['test'](_0x440038['markerRange'],_0xefba4f['name']))return;const _0x4750c9=_0x440038['markerRange']['getWalker'](),_0x147ccf=_0x440038['markerRange']['start'],_0x137ac1=_0xfb999e['model']['schema'];let _0xc872c7=null,_0x825fb8=null,_0x451f74=!0x1,_0x1a4f82=!0x1;for(const _0x5a9771 of _0x4750c9){const _0x31b7cd=_0x5a9771['item'];_0x451f74=_0x451f74||_0x137ac1['isContent'](_0x31b7cd);const _0x2200b4=_0x1b6cc6['mapper']['toViewElement'](_0x31b7cd);if(_0x2200b4&&_0x2200b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a9771['type']&&(_0x137ac1['isBlock'](_0x31b7cd)&&!_0x137ac1['isLimit'](_0x31b7cd)&&(_0x31b7cd['nextSibling']||_0x147ccf['isAtEnd']?_0xc872c7&&_0xc872c7['parent']==_0x31b7cd||(_0xc872c7=_0x31b7cd,_0x4eb973(_0x5a9771['previousPosition']),_0x1a4f82=!0x0):_0x825fb8=_0x825fb8||_0x5a9771['previousPosition']));}function _0x4eb973(_0x42275f){const _0x154a3b=_0x1b6cc6['mapper']['toViewPosition'](_0x42275f),_0x5449dd=_0x1b6cc6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4279b5});_0x1b6cc6['writer']['insert'](_0x154a3b,_0x5449dd),_0x1b6cc6['mapper']['bindElementToMarker'](_0x5449dd,_0x440038['markerName']);}_0x451f74||_0x1a4f82||!_0x825fb8||_0x4eb973(_0x825fb8);};}class mt extends _0x325761{constructor(_0x2701a6){super(_0x2701a6);const _0x3e40c7=_0x2701a6['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3e40c7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e40c7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30f4a2=this['editor'],_0x2921cb=_0x30f4a2['plugins']['get'](m),_0x5a5203=_0x2921cb['isReady']?_0x2921cb['diff']['newRevisionId']:null;_0x30f4a2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a5203);}['refresh'](){const {isReady:_0xee5c8,isEnabled:_0x2a77f6,repository:_0x5b2626,diff:_0x485dcb}=this['editor']['plugins']['get'](m),_0x5ee4a8=_0x485dcb&&_0x5b2626['getLaterVisibleRevision'](_0x485dcb['newRevisionId']);this['isEnabled']=_0xee5c8&&_0x2a77f6&&Boolean(_0x5ee4a8);}}class wt extends _0x325761{['_step'];constructor(_0x5a5727,{direction:_0x441e7f}){super(_0x5a5727);const _0x5f0959=_0x5a5727['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x441e7f?0x1:-0x1,this['listenTo'](_0x5f0959,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f0959,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f0959,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x540662=this['editor'],_0x55ee74=_0x540662['plugins']['get'](m),{isNavigationMode:_0x4fa19d,currentChangeNumber:_0x15cd10}=_0x55ee74;let _0x481457;if(_0x55ee74['activeChange']=_0x4fa19d?_0x55ee74['diff']['changes']['get'](_0x15cd10+this['_step']):_0x55ee74['diff']['changes']['first'],_0x55ee74['activeChange']['data']['isOnRoot'])_0x481457=_0x540662['editing']['view']['getDomRoot'](_0x55ee74['activeChange']['rootName']);else{const _0x35ca19=_0x540662['model']['markers']['get']('revision:'+_0x55ee74['activeChange']['id']);_0x481457=_0xe751c8(_0x540662['editing'],_0x35ca19);}_0x4d3bcb({'target':_0x481457,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b9054,currentChangeNumber:_0x3c9ef0,numberOfChanges:_0x5bfade,isReady:_0x2524c3,isEnabled:_0x55fdcd}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x55fdcd&&_0x2524c3&&_0x5bfade)&&(!_0x2b9054||(0x1===this['_step']?_0x3c9ef0<_0x5bfade-0x1:_0x3c9ef0>0x0));}}class _i extends _0x54e22e{constructor(_0x500eee){super(_0x500eee);const _0x1a6940=this['bindTemplate'],_0x4e2608=new te(_0x500eee),_0x365a40=new te(_0x500eee);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',(_0x5e9bc8,_0x5939c0)=>_0x5e9bc8&&_0x5939c0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x42360c,_0x1d5f3d,_0x4d3899,_0x2e39a4)=>{if(!_0x42360c)return g(_0x500eee,'Loading...');if(!_0x4d3899)return g(_0x500eee,'No\x20changes');const _0x573bb1=g(_0x500eee,'NUMBER_OF_CHANGES',_0x4d3899);return _0x2e39a4?g(_0x500eee,'X_OF_Y_CHANGES',[_0x1d5f3d+0x1,_0x4d3899]):_0x573bb1;}),_0x4e2608['set']({'label':g(_0x500eee,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x382c6d}),_0x365a40['set']({'label':g(_0x500eee,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x413fb0}),_0x4e2608['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x365a40['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e2608['on']('execute',()=>this['fire']('execute','backward')),_0x365a40['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',_0x1a6940['if']('_isStatusLabelVisible','ck-hidden',_0x79e2fd=>!_0x79e2fd)]},'children':[{'text':_0x1a6940['to']('isNavigationMode',_0x2b7259=>_0x2b7259?g(_0x500eee,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x500eee,'Total')+':\x20')}]},{'text':_0x1a6940['to']('_statusText')}]},new _0x261b8e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e2608,_0x365a40]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4d12af{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x59b6b4=this['editor']['editing']['view'];_0x59b6b4['change'](_0x5b8c64=>{for(const _0x401c65 of _0x59b6b4['document']['roots'])_0x5b8c64['addClass'](le,_0x401c65);});}['hide'](){const _0x5d121c=this['editor']['editing']['view'];_0x5d121c['change'](_0x5006b4=>{for(const _0x45abe8 of _0x5d121c['document']['roots'])_0x5006b4['removeClass'](le,_0x45abe8);});}}class R extends _0x4d12af{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2c5438=this['editor'],_0x543f5e=_0x2c5438['plugins']['get'](m),_0x3dbec5=_0x2c5438['plugins']['get'](ge);_0x2c5438['ui']['componentFactory']['add']('exitToEditing',_0x453f71=>{const _0x36f9bd=new te(_0x453f71);return _0x36f9bd['set']({'label':g(_0x453f71,'Back\x20to\x20editing'),'icon':_0x11bc88,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x36f9bd,'execute',()=>{_0x2c5438['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x36f9bd;}),_0x2c5438['ui']['componentFactory']['add']('restoreRevision',_0x50259c=>{const _0x416229=new te(_0x50259c);return _0x416229['set']({'label':g(_0x50259c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x416229['bind']('isEnabled')['to'](_0x2c5438['commands']['get']('restoreRevision')),this['listenTo'](_0x416229,'execute',()=>_0x2c5438['execute']('restoreRevision')),_0x416229;}),_0x2c5438['ui']['componentFactory']['add']('changesNavigation',_0x652032=>{const _0x576b83=new _i(_0x652032),_0x456038=_0x2c5438['commands']['get']('showPreviousChange'),_0x284fc5=_0x2c5438['commands']['get']('showNextChange');return _0x576b83['bind']('isBackwardNavigationEnabled')['to'](_0x456038,'isEnabled'),_0x576b83['bind']('isForwardNavigationEnabled')['to'](_0x284fc5,'isEnabled'),_0x576b83['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x543f5e),this['listenTo'](_0x576b83,'execute',(_0x32dabd,_0x22ff26)=>{_0x2c5438['execute']('forward'===_0x22ff26?'showNextChange':'showPreviousChange');}),_0x576b83;}),_0x3dbec5['show'](),_0x543f5e['on']('change:isReady',(_0x32d70e,_0x3eb6da,_0x31075d)=>{_0x31075d?_0x3dbec5['hide']():_0x3dbec5['show']();});}}class at extends ts{['_resizeObserver']=null;constructor(_0x869af7,_0x13cfbb){super(_0x869af7,_0x13cfbb);const _0x557364=this['bindTemplate'];this['set']({'label':g(_0x869af7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x869af7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x557364['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x15fdfe=this['fieldView']['element'];this['_tooltipString']=_0x15fdfe['scrollWidth']>_0x15fdfe['clientWidth']&&_0x15fdfe['value']||'';}}class si extends _0x54e22e{constructor(_0x4bdf47,_0x1d6188,_0x4f3ee6){super(_0x4bdf47);const _0x43c0ef=new _0x463d4d();_0x43c0ef['set']({'content':_0x54590f,'viewBox':'0\x200\x2011\x2010'});const _0x59ca7=['ck','ck-revision-history-sidebar__revision-author'];_0x4f3ee6&&_0x59ca7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5bef4f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4bdf47,_0x4f3ee6?'Revision\x20creator':'Revision\x20author')},'children':[_0x43c0ef,_0x1d6188['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59ca7},'children':_0x5bef4f});}}function oi(_0x8593c7,_0x52d23b){const _0x23f731=_0x8593c7['bindTemplate'],_0x373869=_0x8593c7['locale'],_0x49eb15=_0x2b57b5(_0x373869);_0x49eb15['panelPosition']='sw';const _0x1bcd87=function(_0x55eb48,_0x46f74a){const _0x5d74a5=function(_0x5edb70,_0x148070){const _0x567814=_0x5edb70['locale'],_0x200bf4={'Compare\x20against\x20selected':g(_0x567814,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x567814,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x567814,'Restore\x20this\x20revision')};return _0x148070['map'](_0x419d2e=>{const _0x3e1cbb=_0x200bf4[_0x419d2e['name']];return _0x3e1cbb&&_0x3e1cbb!==_0x419d2e['name']&&(_0x419d2e['name']=_0x3e1cbb),_0x419d2e;});}(_0x55eb48,_0x46f74a),_0x1a42f1=new _0x4916d9();for(const _0x1fba83 of _0x5d74a5){const _0x20d0ec={'type':'button','model':new to({'label':_0x1fba83['name'],'class':_0x1fba83['class'],'withText':!0x0,'role':'menuitem','_action':_0x1fba83['action']})};_0x20d0ec['model']['bind']('isEnabled')['to'](_0x55eb48,'isActionsDropdownOpen',_0xe367d0=>'function'!=typeof _0x1fba83['isEnabled']||(!_0xe367d0||_0x1fba83['isEnabled'](_0x55eb48))),_0x1a42f1['add'](_0x20d0ec);}return _0x1a42f1;}(_0x8593c7,_0x52d23b);return _0x8593c7['bind']('isActionsDropdownOpen')['to'](_0x49eb15,'isOpen'),_0x49eb15['buttonView']['set']({'label':g(_0x373869,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x399647}),_0x49eb15['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23f731['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23f731['to'](_0x36197d=>_0x36197d['stopPropagation']())}}),_0x49eb15['on']('execute',_0x13d3b2=>{_0x8593c7['isReady']&&'function'==typeof _0x13d3b2['source']['_action']&&_0x13d3b2['source']['_action'](_0x8593c7);}),_0x56f70b(_0x49eb15,_0x1bcd87,{'role':'menu'}),_0x49eb15['listenTo'](_0x8593c7,'change:isActionsDropdownOpen',(_0x7ccaf8,_0x51a1e9,_0x3dc69e)=>{if(_0x3dc69e)for(const _0x21d4e6 of _0x49eb15['listView']['items']){const _0x22d8a1=_0x21d4e6['children']['first'],_0x4035f5=_0x52d23b['find'](_0x4985b8=>_0x4985b8['action']===_0x22d8a1['_action'])['isVisible'];_0x21d4e6['isVisible']=void 0x0===_0x4035f5||_0x4035f5(_0x8593c7);}}),_0x49eb15;}class hi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(
|
|
23
|
+
import{ObservableMixin as _0x5f5b63,uid as _0x235c9b,Collection as _0x481a5e,logWarning as _0x48800a,FocusTracker as _0x4f7138,KeystrokeHandler as _0x57dc80,scrollViewportToShowTarget as _0x17044c,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x1ddba0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3db99c,set as _0x207ad7,unset as _0x18f589,isEqual as _0x36a9f0}from'es-toolkit/compat';import{Plugin as _0x4af0c1,PendingActions as _0x471bff,Command as _0x1f8cb8,ElementApiMixin as _0x557801,Editor as _0x39acb8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xdf44e4,getMarkerDomElement as _0x4c8852,ConfirmMixin as ti,sanitizeEditorConfig as _0x55ed1f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x334b3e,ViewAttributeElement as _0x1c4965,ViewEmptyElement as _0x3be868,ViewRawElement as _0x1bfa9d,ViewUIElement as _0x526ec4,ViewDocumentFragment as _0x305b6a,ViewText as _0x96c6bd,ViewElement as _0x429408,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x43b690,IconChevronUp as _0x4716c,IconChevronDown as _0xbcd431,IconUndo as _0xf13ab6,IconUser as _0x2044fd,IconThreeVerticalDots as _0x8c16b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x45fa9a,View as _0x65ffd8,submitHandler as _0x2d6dcb,LabeledFieldView as ts,createLabeledInputText as _0x27b255,createDropdown as _0x328c25,ListView as _0x1e2c18,ListItemView as _0x53062b,ButtonView as te,MenuBarMenuView as _0xc3f7a9,MenuBarMenuListView as _0x5ed2d7,MenuBarMenuListItemView as _0x3b7a91,MenuBarMenuListItemButtonView as _0xe6b912,ContextualBalloon as _0xa68a23,ToolbarSeparatorView as _0x5f583d,IconView as _0x4e1780,addListToDropdown as _0x3b7d0a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4a3d54}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5f5b63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x285855){super(),this['id']=_0x285855['id']||_0x235c9b(),this['creator']=_0x285855['creator']||null,this['authors']=_0x285855['authors']||[],this['diffData']=_0x285855['diffData']||null,this['toVersion']=_0x285855['toVersion']||0x0,this['fromVersion']=_0x285855['fromVersion']||0x0,this['set']('name',_0x285855['name']||''),this['set']('createdAt',_0x285855['createdAt']||new Date()),this['set']('attributes',_0x285855['attributes']||{});}['setName'](_0x35af1c){this['_update']({'name':_0x35af1c});}['setAttribute'](_0x2d6d77,_0x26b487){const _0x42a0b2=_0x3db99c(this['attributes']);_0x207ad7(_0x42a0b2,_0x2d6d77,_0x26b487),this['_update']({'attributes':_0x42a0b2});}['removeAttribute'](_0x142883){const _0x51602d=_0x3db99c(this['attributes']);_0x18f589(_0x51602d,_0x142883),this['_update']({'attributes':_0x51602d});}['_update'](_0x35e1a7,_0x5edd26=!0x1){let _0x402172=!0x1;const _0x4f425a={'id':this['id']},_0x3071de=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x29ff41 of _0x3071de){const _0x192349=_0x35e1a7[_0x29ff41];void 0x0!==_0x192349&&_0x192349!==this[_0x29ff41]&&(this[_0x29ff41]=_0x192349,_0x4f425a[_0x29ff41]=_0x192349,_0x402172=!0x0);}_0x402172&&(_0x4f425a['authors']&&(_0x4f425a['authorsIds']=_0x4f425a['authors']['map'](_0x497f78=>_0x497f78['id']),delete _0x4f425a['authors']),this['fire']('_update',_0x4f425a,_0x5edd26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfed070=>_0xfed070['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4af0c1{['_revisions'];static get['requires'](){return[_0xdf44e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x282b1c){super(_0x282b1c),this['_revisions']=new _0x481a5e();}['afterInit'](){!async function(_0x1a3058){const _0x50cb12=_0x55a13c([0x43,0x6f,0x38,0x4f,0x48,0x41,0x72,0x30,0x78,0x69,0x73,0x33,0x31,0x39,0x6d,0x66,0x77,0x4e,0x71,0x4a,0x6b,0x6a,0x32,0x46,0x4c,0x74,0x54,0x6e,0x57,0x49,0x62,0x35,0x42,0x7a,0x55,0x56,0x53,0x47,0x4d,0x67,0x37,0x61,0x70,0x59,0x64,0x5a,0x63,0x51,0x75,0x4b,0x76,0x52,0x50,0x79,0x6c,0x58,0x34,0x65,0x45,0x68,0x36,0x44]),_0x390c85=0xeb829,_0x2d7ef0=0x4ec3a0df,_0x417c96=0x4ec4c93f^_0x2d7ef0,_0x447011=window[_0x55a13c([0x44,0x61,0x74,0x65])][_0x55a13c([0x6e,0x6f,0x77])](),_0x2a79be=_0x1a3058[_0x55a13c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22e032=new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369f75=>{_0x2a79be[_0x55a13c([0x6f,0x6e,0x63,0x65])](_0x55a13c([0x72,0x65,0x61,0x64,0x79]),_0x369f75);}),_0x4ef082={[_0x55a13c([0x6b,0x74,0x79])]:_0x55a13c([0x45,0x43]),[_0x55a13c([0x75,0x73,0x65])]:_0x55a13c([0x73,0x69,0x67]),[_0x55a13c([0x63,0x72,0x76])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36]),[_0x55a13c([0x78])]:_0x55a13c([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]),[_0x55a13c([0x79])]:_0x55a13c([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]),[_0x55a13c([0x61,0x6c,0x67])]:_0x55a13c([0x45,0x53,0x32,0x35,0x36])},_0x1c1111=_0x2a79be[_0x55a13c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55a13c([0x67,0x65,0x74])](_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15576f(){let _0xa4efac,_0x4176a7=null,_0x9fa44a=null;try{if(_0x1c1111==_0x55a13c([0x47,0x50,0x4c]))return _0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa4efac=_0x4fc377(),!_0xa4efac)return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9fa44a=_0x5edc2c(_0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa4efac[_0x55a13c([0x6a,0x74,0x69])])),await _0x12126e()?_0x40ef2b()?_0x268619()?_0x55a13c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f80ad()?(_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x201c59()):_0x55a13c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x268619(){const _0x3550eb=[_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55a13c([0x74,0x72,0x69,0x61,0x6c])][_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x447011/0x3e8:0xe10*_0x417c96;return _0xa4efac[_0x55a13c([0x65,0x78,0x70])]<_0x3550eb;}function _0x40ef2b(){const _0x496e3b=_0xa4efac[_0x55a13c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x496e3b)return!0x1;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x48])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x52,0x48]))){if(_0x23fc40())return!0x0;if(_0x34f05f()||_0x18aaec())return!0x0;}return!0x1;}function _0x4f80ad(){const _0x358bca=_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x358bca||0x0==_0x358bca[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ffb5d}=new URL(window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x358bca[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ffb5d))return!0x0;const _0x31dae9=_0x4ffb5d[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));return _0x358bca[_0x55a13c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e4412=>_0x5e4412[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))[_0x55a13c([0x6d,0x61,0x70])](_0xf83aa3=>_0xf83aa3[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])))[_0x55a13c([0x73,0x6f,0x6d,0x65])](_0x39a9b9=>_0x31dae9[_0x55a13c([0x65,0x76,0x65,0x72,0x79])]((_0xf44e26,_0x1ad7fa)=>_0x39a9b9[_0x1ad7fa]===_0xf44e26||_0x39a9b9[_0x1ad7fa]===_0x55a13c([0x2a])));}function _0x201c59(){return _0x4176a7&&_0x9fa44a?new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e3c06,_0x3503a6)=>{_0x4176a7[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5e3c06,_0x3503a6),_0x9fa44a[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5807c5=>{_0x5807c5!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x5e3c06(_0x5807c5);},_0x3503a6);}):_0x4176a7||_0x9fa44a||_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5edc2c(_0x391361,_0x13b9b0){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba085=>{if(_0x240290())return _0x4ba085(_0x55a13c([0x56,0x61,0x6c,0x69,0x64]));_0x2f9bd1(),_0x2a79be[_0x55a13c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3005d9=!0x1;const _0x2344b0=_0x235c9b();function _0x38fc6a(_0x1ff073){return!!_0x1ff073&&(typeof _0x1ff073===_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ff073===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ff073[_0x55a13c([0x74,0x68,0x65,0x6e])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ff073[_0x55a13c([0x63,0x61,0x74,0x63,0x68])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x389226(_0x5c5271){_0x2a8f61(_0x5c5271)[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x49862d=>{if(!_0x49862d||_0x49862d[_0x55a13c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55a13c([0x6f,0x6b]))return _0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaeddb0(_0x18db19(_0x2344b0+_0x13b9b0))!=_0x49862d[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x484ea6=>(_0x8f1c90(),_0x484ea6),()=>{const _0xb048b0=_0xce3001();return null==_0xb048b0?(_0x8f1c90(),_0x55a13c([0x56,0x61,0x6c,0x69,0x64])):_0x55a13c(_0x447011-_0xb048b0>(0x6acf24df^_0x2d7ef0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x4ba085)[_0x55a13c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fade2=0x4ef54e5f^_0x2d7ef0;function _0x8f1c90(){const _0x3433c2=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x59f04e=_0x5719d1(_0xaeddb0(window[_0x55a13c([0x4d,0x61,0x74,0x68])][_0x55a13c([0x63,0x65,0x69,0x6c])](_0x447011/_0x2fade2)));window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3433c2,_0x59f04e);}function _0xce3001(){const _0x567a1d=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x358062=window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x567a1d);return _0x358062?window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5719d1(_0x358062),0x10)*_0x2fade2:null;}function _0x2a8f61(_0x2d9673){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10ff38,_0x3db6a8)=>{_0x2d9673[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x10ff38,_0x3db6a8),window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db6a8,0x4ec2741f^_0x2d7ef0);});}}_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39e29f,_0x54893e)=>{if(_0x54893e[0x0]!=_0x391361)return _0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54893e[0x1]={..._0x54893e[0x1],[_0x55a13c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2344b0};},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x68,0x69,0x67,0x68])}),_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x381f13=>{_0x38fc6a(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3005d9=!0x0,_0x389226(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x6c,0x6f,0x77])}),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>{_0x3005d9||_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x240290(){return _0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55a13c([0x61,0x75,0x74,0x6f]);}function _0x2f9bd1(){_0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55a13c([0x61,0x75,0x74,0x6f]);}}function _0x19e6de(_0xe181c4){const _0x26ed59=[new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367414=>setTimeout(_0x367414,0x4eca9e13^_0x2d7ef0)),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd633=>{const _0x906345=0x4ec3a0d8^_0x2d7ef0,_0xf4c35f=_0x1a3058[_0x55a13c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7fcd4d(){_0xf4c35f[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x906345&&_0x4dd633();}_0x7fcd4d(),_0xf4c35f[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x61,0x64,0x64]),_0x7fcd4d);})),new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119ba6=>{function _0x493aeb(){for(const _0x235c54 in window)if(window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x235c54))&&window[_0x235c54]==_0x390c85)return _0x119ba6();_0x2a79be[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]!=_0x55a13c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x493aeb,0x4ec3b357^_0x2d7ef0);}_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x493aeb();})];return window[_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55a13c([0x72,0x61,0x63,0x65])](_0x26ed59)[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>_0xe181c4);}async function _0x15aeac(){if(await _0x22e032,_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1f5f1b=_0x1a3058[_0x55a13c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x574030=_0x1a3058[_0x55a13c([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])](_0x1f5f1b[_0x55a13c([0x69,0x64])]),_0x378e81=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1f5f1b['id'],_0x574030?_0x574030['id']:null,!0x0),_0x378e81[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x378e81[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2efdb6,void(_0x378e81[_0x55a13c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2efdb6);}if(_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4b1809=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4b1809[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b1809[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b1809[_0x55a13c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2efdb6,_0x4b1809[_0x55a13c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2efdb6;}_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23fc40(){return _0x535ed4(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8d4c1b(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]==_0x55a13c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34f05f(){return _0x535ed4(_0x55a13c([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 _0x18aaec(){return _0x535ed4(_0x55a13c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb2155b(_0x2720a2){const _0x54bcb0=_0xd7b369();_0x2a79be[_0x54bcb0]=_0x55a13c([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])+_0x2720a2,_0x2720a2[_0x55a13c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd7b369()]=_0x390c85),_0x2720a2!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x15aeac();}function _0xd7b369(){const _0x562d0a=window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55a13c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55a13c([0x6e,0x6f,0x77])]())[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55a13c([0x2e]),'');let _0x4ebbd8=_0x55a13c([0x43]);for(let _0x3a6a84=0x0;_0x3a6a84<_0x562d0a[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6a84+=0x2){let _0xa18245=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x562d0a[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6a84,_0x3a6a84+0x2));_0xa18245>=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa18245-=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ebbd8+=_0x50cb12[_0xa18245];}return _0x4ebbd8;}function _0x4fc377(){const _0x9326c1=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));if(0x3!=_0x9326c1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20f59e(_0x9326c1[0x1]);function _0x20f59e(_0x2857a7){const _0xea0f80=_0x290448(_0x2857a7);return _0xea0f80&&_0x139704()?_0xea0f80:null;function _0x139704(){const _0x2942a1=_0xea0f80[_0x55a13c([0x6a,0x74,0x69])],_0x17a86c=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e8516={..._0xea0f80,[_0x55a13c([0x6a,0x74,0x69])]:_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e8516[_0x55a13c([0x76,0x63])],_0x18db19(_0x4e8516)==_0x17a86c;}}}async function _0x12126e(){let _0x1ba445=!0x0;try{const _0x275689=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])),[_0x38231c,_0x53282c,_0x547ddc]=_0x275689;return _0x383217(_0x38231c),await _0x5a28b6(_0x38231c,_0x53282c,_0x547ddc),_0x1ba445;}catch{return!0x1;}function _0x383217(_0x4c7467){const _0x2d74cb=_0x290448(_0x4c7467);_0x2d74cb&&_0x2d74cb[_0x55a13c([0x61,0x6c,0x67])]==_0x55a13c([0x45,0x53,0x32,0x35,0x36])||(_0x1ba445=!0x1);}async function _0x5a28b6(_0x420b80,_0xb36305,_0x49f972){const _0x117bf3=window[_0x55a13c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55a13c([0x66,0x72,0x6f,0x6d])](_0x17c8bd(_0x49f972),_0xb2ddb6=>_0xb2ddb6[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1afcce=new window[(_0x55a13c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55a13c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x420b80+_0x55a13c([0x2e])+_0xb36305),_0x27e776=window[_0x55a13c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55a13c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27e776)return;const _0x39d4e1=await _0x27e776[_0x55a13c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55a13c([0x6a,0x77,0x6b]),_0x4ef082,{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27e776[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x68,0x61,0x73,0x68])]:{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39d4e1,_0x117bf3,_0x1afcce)||(_0x1ba445=!0x1);}}function _0x290448(_0x3bc61f){return _0x3bc61f[_0x55a13c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x65,0x79]))?JSON[_0x55a13c([0x70,0x61,0x72,0x73,0x65])](_0x17c8bd(_0x3bc61f)):null;}function _0x17c8bd(_0x15b66e){return window[_0x55a13c([0x61,0x74,0x6f,0x62])](_0x15b66e[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55a13c([0x2b]))[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55a13c([0x2f])));}function _0x18db19(_0x182704){let _0x1703a5=0x1505;function _0x381d53(_0x18ef66){for(let _0x33dc68=0x0;_0x33dc68<_0x18ef66[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33dc68++){const _0xf68cf1=_0x18ef66[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33dc68);_0x1703a5=(_0x1703a5<<0x5)+_0x1703a5+_0xf68cf1,_0x1703a5&=_0x1703a5;}}function _0x566da4(_0x2e5965){Array[_0x55a13c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e5965)?_0x2e5965[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x566da4):_0x2e5965&&typeof _0x2e5965==_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55a13c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e5965)[_0x55a13c([0x73,0x6f,0x72,0x74])]()[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f447f,_0x1a9e2f])=>{_0x381d53(_0x1f447f),_0x566da4(_0x1a9e2f);}):_0x381d53(window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e5965));}return _0x566da4(_0x182704),_0x1703a5>>>0x0;}function _0xaeddb0(_0x450321){return _0x450321[_0x55a13c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55a13c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55a13c([0x30]));}function _0x5719d1(_0xe7e94c){return _0xe7e94c[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55a13c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55a13c([0x6a,0x6f,0x69,0x6e])]('');}function _0x535ed4(_0xfc0bc){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x68,0x61,0x73])](_0xfc0bc);}function _0x8d4c1b(_0x4db8fd){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x67,0x65,0x74])](_0x4db8fd);}function _0x2efdb6(){}function _0x55a13c(_0x55b9a4){return _0x55b9a4['map'](_0x35bff9=>String['fromCharCode'](_0x35bff9))['join']('');}_0xb2155b(await _0x15576f());}(this);}['createRevision'](_0x499c16){const _0x4e242c=this['editor']['plugins']['get']('Users');return new h({'id':_0x499c16['id'],'name':_0x499c16['name'],'creator':_0x499c16['creatorId']?_0x4e242c['getUser'](_0x499c16['creatorId']):null,'diffData':_0x499c16['diffData']||_0x499c16['data'],'authors':_0x499c16['authorsIds']['map'](_0x4adb45=>_0x4e242c['getUser'](_0x4adb45)),'createdAt':new Date(_0x499c16['createdAt']),'attributes':_0x499c16['attributes'],'fromVersion':_0x499c16['fromVersion'],'toVersion':_0x499c16['toVersion']});}['addRevision'](_0x4aac11,_0x775920=0x0){this['_revisions']['add'](_0x4aac11,_0x775920);}['getRevision'](_0x4aa847){return this['_revisions']['get'](_0x4aa847);}['getRevisions'](_0x5bfa7c={'toJSON':!0x1}){const _0x26160d=Array['from'](this['_revisions']);return _0x26160d['reverse'](),_0x5bfa7c['toJSON']?_0x26160d['map'](_0x2c6c81=>_0x2c6c81['toJSON']()):_0x26160d;}['getIndex'](_0x1788c8){return this['_revisions']['getIndex'](_0x1788c8);}['getEarlierVisibleRevision'](_0x1639ac){const [,_0x18af0f]=this['getRevisionsIterator'](_0x1639ac,{'direction':'earlier'});return _0x18af0f;}['getLaterVisibleRevision'](_0x25f793){const [,_0xedbf82]=this['getRevisionsIterator'](_0x25f793,{'direction':'later'});return _0xedbf82;}['getRevisionsInDiff'](_0x24e55b){const _0x5d73f1=[];for(const _0x55cf7e of this['getRevisionsIterator'](_0x24e55b['newRevisionId']))if(_0x5d73f1['push'](_0x55cf7e),_0x55cf7e['id']===_0x24e55b['oldRevisionId'])break;return _0x5d73f1;}*['getRevisionsIterator'](_0x3b9c66,{direction:_0x13e69d='earlier',filter:_0x111365=()=>!0x0}={}){const _0x30b82d='earlier'===_0x13e69d?0x1:-0x1;let _0x28770b=this['_revisions']['get'](_0x3b9c66),_0x4cdb2d=this['getIndex'](_0x28770b);for(yield _0x28770b;_0x28770b;){if(_0x4cdb2d+=_0x30b82d,_0x28770b=this['getRevision'](_0x4cdb2d),!_0x28770b)return;_0x111365(_0x28770b)&&(yield _0x28770b);}}}class V extends _0x4af0c1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x334b3e,'c'],[_0x1c4965,'a'],[_0x3be868,'e'],[_0x1bfa9d,'r'],[_0x526ec4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x334b3e],['a',_0x1c4965],['e',_0x3be868],['r',_0x1bfa9d],['u',_0x526ec4]]);async['loadRevisionData'](_0x54ff67,_0x29608a){if(_0x54ff67['diffData']||!_0x29608a)return;const _0x54e5a9=this['editor']['config']['get']('collaboration.channelId'),_0x2f7d34=await _0x29608a['getRevision']({'channelId':_0x54e5a9,'revisionId':_0x54ff67['id']});_0x54ff67['diffData']=_0x2f7d34['diffData'];}['getRevisionDocumentData'](_0x415a79){const _0x1c020d={};for(const _0x1686e9 in _0x415a79['diffData']){if(_0x415a79['diffData'][_0x1686e9]['attachChange']&&!_0x415a79['diffData'][_0x1686e9]['attachChange']['isAttached'])continue;const _0x2ef989=this['_removeRevisionMarkers'](JSON['parse'](_0x415a79['diffData'][_0x1686e9]['insertions'])),_0x502ab4=this['editor']['editing']['view']['document'],_0x3cda25=new _0x305b6a(_0x502ab4,_0x2ef989['map'](_0x2a2e43=>this['_getViewFromDiffObj'](_0x2a2e43,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c020d[_0x1686e9]=this['editor']['data']['processor']['toData'](_0x3cda25),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c020d;}['getRevisionRootsAttributes'](_0x8f789d){const _0x21a5f2={};for(const _0x4f464a in _0x8f789d['diffData'])_0x8f789d['diffData'][_0x4f464a]['attachChange']&&!_0x8f789d['diffData'][_0x4f464a]['attachChange']['isAttached']||(_0x21a5f2[_0x4f464a]=_0x8f789d['diffData'][_0x4f464a]['attributesAfter']||{});return _0x21a5f2;}['_getTypeCharForViewElement'](_0x5915da){return this['_viewClassToTypeChar']['get'](_0x5915da['constructor']);}['_getViewFromDiffObj'](_0x58e751,_0x430f50){const _0x1cb61b=this['editor']['editing']['view']['document'];if('string'==typeof _0x58e751)return new _0x96c6bd(_0x1cb61b,_0x58e751);{let _0x312076,_0x48fa12;_0x48fa12='u'==_0x58e751['type']||'r'==_0x58e751['type']?[]:_0x58e751['children']['map'](_0x5d82d4=>this['_getViewFromDiffObj'](_0x5d82d4,_0x430f50));const _0x306ce9=this['_typeCharToViewClass']['get'](_0x58e751['type'])||_0x429408,_0xeb99e1=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x312076=new _0x306ce9(_0x1cb61b,_0x58e751['name'],_0x58e751['attributes'],_0x48fa12),'u'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x419737=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x4b587e){const _0x37fbae=_0x4b587e['createElement']('div');return _0x37fbae['innerHTML']=_0x419737,_0x37fbae['childNodes'][0x0];},_0x430f50){const _0x5194af=new _0x305b6a(_0x1cb61b);_0x5194af['_appendChild'](_0x312076);const _0x14dcdb=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x5194af,{'bind':!0x1})),_0x6f85a9=_0xeb99e1['domDocument']['createElement']('div');_0x6f85a9['append'](..._0x14dcdb),_0x312076=Array['from'](_0xeb99e1['domChildrenToView'](_0x6f85a9))[0x0];}}else{if('r'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x388700=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x50c17a){_0x50c17a['innerHTML']=_0x388700;},_0x430f50){const _0x490d10=new _0x305b6a(_0x1cb61b);_0x490d10['_appendChild'](_0x312076);const _0x377d34=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x490d10,{'bind':!0x1})),_0x151c37=_0xeb99e1['domDocument']['createElement']('div');_0x151c37['append'](..._0x377d34);const _0x5809a3=Array['from'](_0xeb99e1['domChildrenToView'](_0x151c37));_0x5809a3['length']>0x1?_0x312076['_appendChild'](_0x5809a3):_0x312076=_0x5809a3[0x0];}}}if(_0x58e751['customProperties']){for(const [_0x15e811,_0x2fb672]of _0x58e751['customProperties'])_0x312076['_setCustomProperty'](_0x15e811,_0x2fb672);}const _0x354e27=void 0x0===_0x58e751['fillerOffset']?null:_0x58e751['fillerOffset'];return null!==_0x354e27&&(_0x312076['getFillerOffset']=()=>_0x354e27),_0x312076;}}['_makeModelFromViewString'](_0x304126){const _0x118216=JSON['parse'](_0x304126),_0x19c696=this['editor']['editing']['view']['document'],_0x262e3a=new _0x305b6a(_0x19c696,_0x118216['map'](_0x270632=>this['_getViewFromDiffObj'](_0x270632,!0x0)));return this['editor']['data']['toModel'](_0x262e3a);}['_removeRevisionMarkers'](_0x414d2e){return(_0x414d2e=_0x414d2e['filter'](_0x1f1c12=>!_0x1f1c12['name']||'revision-start'!==_0x1f1c12['name']&&'revision-end'!==_0x1f1c12['name']))['forEach'](_0xf66190=>{'string'!=typeof _0xf66190&&(_0xf66190['children']=this['_removeRevisionMarkers'](_0xf66190['children']),_0xf66190['attributes']=_0xf66190['attributes']['filter'](_0x32d567=>!_0x32d567[0x0]['startsWith']('data-revision-')));}),_0x414d2e;}}function g(_0x3cbb08,_0x10fbcd,_0x303a11){const t=_0x3cbb08['t'];switch(_0x10fbcd){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'},_0x303a11);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x303a11);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x4af0c1{['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[_0xdf44e4,I,V,_0x471bff];}constructor(_0x22cc8d){super(_0x22cc8d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x521928=_0x235c9b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x521928},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 _0x19528a=this['repository']['getRevision'](0x0),_0x4cfe25=_0x19528a&&null===_0x19528a['creator']?_0x19528a:null;if(this['_continueCurrentRevision']=!!_0x4cfe25&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x518f74=this['_source']['getCurrentRevisionId'](),_0x3ad4cc=this['repository']['getRevision'](_0x518f74);if(_0x3ad4cc)this['_startingVersion']=_0x3ad4cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1afe41=this['_source']['history']['_operations']['find'](_0x312a7e=>!_0x312a7e['_isInit']),_0x469d65=_0x1afe41?_0x1afe41['baseVersion']:this['_source']['history']['version'];_0x19528a?(_0x19528a['toVersion']<_0x469d65&&_0x19528a['_update']({'toVersion':_0x469d65}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['fromVersion']):(this['_startingVersion']=_0x19528a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x469d65,this['_continueCurrentRevision']=!0x1);}}else _0x4cfe25&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cfe25['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cfe25['fromVersion']===_0x4cfe25['toVersion']?(0x0!==_0x4cfe25['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['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',_0x253827=>!_0x253827),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f0819=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bab1a;for(const _0x5ac71d in _0x2f0819){const _0x219a26=_0x5ac71d,_0x4c709b=_0x2f0819[_0x219a26];if('revisionHistoryLicenseKeyValid'==_0x4c709b||'revisionHistoryLicenseKeyInvalid'==_0x4c709b||'revisionHistoryLicenseKeyExpired'==_0x4c709b||'revisionHistoryLicenseKeyDomainLimit'==_0x4c709b||'revisionHistoryLicenseKeyNotAllowed'==_0x4c709b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c709b||'revisionHistoryLicenseKeyTrialLimit'==_0x4c709b||'revisionHistoryLicenseKeyUsageLimit'==_0x4c709b){delete _0x2f0819[_0x219a26],_0x2bab1a=_0x4c709b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2bab1a&&_0x2f0819['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2bab1a&&_0x2f0819['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2bab1a&&_0x2f0819['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x280abe=this['repository']['getRevision'](0x0),_0x18fb9a=await this['getRevisionDocumentData'](_0x280abe),_0x421d49=await this['getRevisionRootsAttributes'](_0x280abe);this['_replaceEditorDataWithRevisionData'](_0x18fb9a,_0x421d49);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5d87e3){this['_source']=_0x5d87e3;}async['update'](){const _0x2816f6=await this['_source']['getLatestVersion']();if(_0x2816f6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3331c0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2816f6});_0x3331c0['authors']=_0x3331c0['authorsIds']['map'](_0x252c6e=>this['editor']['plugins']['get']('Users')['getUser'](_0x252c6e)),this['currentRevision']['_update'](_0x3331c0);}}async['saveRevision'](_0x197faf={},_0x31926c=null){const _0x5b2332=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31926c>this['currentRevision']['toVersion']&&(_0x31926c=null),null===_0x31926c&&(_0x31926c=await this['_source']['getLatestVersion']());const _0x5f367d=this['_getFromVersion'](_0x31926c),_0x402432=this['buildRevisionData']({'from':_0x5f367d,'to':_0x31926c});if(this['currentRevision']['toVersion']<_0x31926c){const _0x544088=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31926c,'to':_0x31926c});_0x544088['authors']=[],_0x544088['authorsIds']=[],_0x544088['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x544088,!0x0),delete _0x544088['authors'],_0x5b2332['push'](_0x544088);}_0x197faf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x197faf['name']=_0x197faf['name']||null,_0x197faf['id']=_0x197faf['id']||_0x235c9b(),_0x197faf={..._0x197faf,..._0x402432};const _0xf2d06d=this['addRevisionData'](_0x197faf);_0x5b2332['push'](_0x197faf);const _0x1b0c40=this['repository']['getIndex'](_0xf2d06d);if(0x0!==_0x1b0c40){const _0x2483bb=this['repository']['getRevision'](_0x1b0c40-0x1);if(_0x2483bb['fromVersion']!==_0x31926c){const _0x21d23a=this['_revisionDataBuilder']['getData'](_0x31926c,_0x2483bb['toVersion']),_0x267ad3={'id':_0x2483bb['id'],'diffData':_0x21d23a['diffData'],'authorsIds':_0x21d23a['authorsIds'],'authors':_0x21d23a['authorsIds']['map'](_0x15e0c2=>this['editor']['plugins']['get']('Users')['getUser'](_0x15e0c2)),'fromVersion':_0x31926c};_0x2483bb===this['currentRevision']&&(_0x267ad3['createdAt']=new Date(_0x197faf['createdAt']['getTime']()+0xa)),_0x2483bb['_update'](_0x267ad3,!0x0),delete _0x267ad3['authors'],_0x5b2332['push'](_0x267ad3);}}if(this['adapter']){for(const _0x378b76 of _0x5b2332)this['_bufferUpdate'](_0x378b76['id'],_0x378b76,!0x0);this['sendBufferedUpdates']();}return _0xf2d06d;}['addRevisionData'](_0x864bdc){const _0x297f4d=this['repository']['createRevision'](_0x864bdc);return this['adapter']&&_0x297f4d['on']('_update',(_0xe3973e,_0x277c78,_0x3b5ee9)=>{_0x3b5ee9||(this['_bufferUpdate'](_0x277c78['id'],_0x277c78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x297f4d,this['_findInsertionIndex'](_0x297f4d)),_0x297f4d;}async['getRevisionDocumentData'](_0x5fe603){return await this['_utils']['loadRevisionData'](_0x5fe603,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5fe603);}async['getRevisionRootsAttributes'](_0x18cb5f){return await this['_utils']['loadRevisionData'](_0x18cb5f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x18cb5f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x190d4d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x439df3=0x0;_0x439df3<_0x190d4d['length'];_0x439df3++){const _0x3c48c7=_0x190d4d[_0x439df3];let _0x663548=!0x1;for(const _0x196f3c of Object['keys'](_0x3c48c7))void 0x0===_0x3c48c7[_0x196f3c]?delete _0x3c48c7[_0x196f3c]:'id'!==_0x196f3c&&(_0x663548=!0x0);_0x663548||(_0x190d4d[_0x439df3]=null);}if(_0x190d4d=_0x190d4d['filter'](_0x4f7c7b=>null!==_0x4f7c7b),!_0x190d4d['length'])return;for(let _0x178e16=0x0;_0x178e16<_0x190d4d['length'];_0x178e16++){const _0x3744fa=_0x190d4d[_0x178e16];void 0x0!==_0x3744fa['fromVersion']&&void 0x0===_0x3744fa['toVersion']&&(_0x3744fa['toVersion']=this['repository']['getRevision'](_0x3744fa['id'])['toVersion']),void 0x0!==_0x3744fa['toVersion']&&void 0x0===_0x3744fa['fromVersion']&&(_0x3744fa['fromVersion']=this['repository']['getRevision'](_0x3744fa['id'])['fromVersion']);}const _0x1b221f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x190d4d,_0x1b221f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3a5809=>{if(_0x3a5809){for(const _0x5e8cfe of _0x3a5809)this['setRevisionData']({'id':_0x5e8cfe['id'],'createdAt':_0x5e8cfe['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2e1e6a=null,from:_0x4c6b58=null,to:_0x52825c=null}){_0x4c6b58=null!==_0x4c6b58?_0x4c6b58:_0x2e1e6a['fromVersion'],_0x52825c=null!==_0x52825c?_0x52825c:_0x2e1e6a['toVersion'];const _0x2ac316=this['_revisionDataBuilder']['getData'](_0x4c6b58,_0x52825c),_0x1e3fe7={'diffData':_0x2ac316['diffData'],'authorsIds':_0x2ac316['authorsIds'],'fromVersion':_0x4c6b58,'toVersion':_0x52825c};if(!_0x2e1e6a||_0x52825c!==_0x2e1e6a['toVersion']){const _0x39cd87=_0x52825c-0x1,_0x1a2389=this['_source']['history']['getOperation'](_0x39cd87);_0x1e3fe7['createdAt']=_0x1a2389&&_0x1a2389['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c6b58===this['_loadedStateData']['fromVersion']){for(const _0x29d0dc of this['_loadedStateData']['authors'])_0x1e3fe7['authorsIds']['includes'](_0x29d0dc['id'])||_0x1e3fe7['authorsIds']['push'](_0x29d0dc['id']);}return _0x1e3fe7;}['_bufferUpdate'](_0x563950,_0x40edf6,_0x27cc74){if(this['_bufferedUpdates']['has'](_0x563950)){const _0x1806bf=this['_bufferedUpdates']['get'](_0x563950);_0x40edf6=_0x27cc74?{..._0x1806bf,..._0x40edf6}:{..._0x40edf6,..._0x1806bf};}this['_bufferedUpdates']['set'](_0x563950,_0x40edf6);}['setRevisionData'](_0x244291){const _0x521ea7=this['repository']['getRevision'](_0x244291['id']);if(_0x244291['createdAt']&&(_0x244291['createdAt']=new Date(_0x244291['createdAt'])),_0x244291['authorsIds']){const _0x306021=this['editor']['plugins']['get']('Users');_0x244291['authors']=_0x244291['authorsIds']['map'](_0x54f6ba=>_0x306021['getUser'](_0x54f6ba));}_0x521ea7['_update'](_0x244291,!0x0);}['_createInitialRevision'](_0x2fc025){const _0x3a50b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3a50b0)this['_initialRevisionId']=_0x3a50b0['id'];else{const _0x4df01b=!this['editor']['model']['document']['roots']['find'](_0x538224=>this['editor']['model']['hasContent'](_0x538224)),_0x396333=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ae0=g(this['editor']['locale'],_0x4df01b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2fc025,'to':_0x2fc025,'id':this['_initialRevisionId'],'name':_0x4d1ae0,'creatorId':_0x396333});}}['_createCurrentRevision'](_0x5e1eb9){const _0x33896c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x33896c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5e1eb9,'to':_0x5e1eb9,'id':_0x33896c,'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'](_0x3441c,_0x96dac9){let _0x247649=this['editor']['config']['get']('initialData'),_0xf440fc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x247649){_0x247649={};for(const _0x2d611d of this['editor']['model']['document']['getRootNames']())_0x247649[_0x2d611d]='';}if('string'==typeof _0x247649&&(_0x247649={'main':_0x247649}),void 0x0===_0xf440fc){_0xf440fc={};for(const _0x25bd7a of this['editor']['model']['document']['getRootNames']())_0xf440fc[_0x25bd7a]={};}let _0xcda8bf=!0x1;const _0xffde56=Object['keys'](_0x247649),_0x39ec22=Object['keys'](_0x3441c);for(const _0x47dd5e of _0xffde56){if(_0x247649[_0x47dd5e]!==_0x3441c[_0x47dd5e]&&''!==_0x247649[_0x47dd5e]['trim']()){_0xcda8bf=!0x0;break;}if(!_0x36a9f0(_0xf440fc[_0x47dd5e],_0x96dac9[_0x47dd5e])&&Object['keys'](_0xf440fc[_0x47dd5e])['length']>0x0){_0xcda8bf=!0x0;break;}}_0xcda8bf||(_0xcda8bf=_0x39ec22['some'](_0x71ea5d=>!this['editor']['model']['document']['getRoot'](_0x71ea5d))),_0xcda8bf&&_0x48800a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x247649,'editorRootsAttributes':_0xf440fc,'revisionData':_0x3441c,'revisionRootsAttributes':_0x96dac9}),this['editor']['config']['set']('initialData',_0x3441c),this['editor']['config']['set']('rootsAttributes',_0x96dac9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f74e7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f74e7['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58285d){const _0x521a74=this['repository']['getRevisions']();_0x521a74['reverse']();let _0x4a3a0e=0x0;for(;_0x4a3a0e<_0x521a74['length'];){const _0x4936c8=_0x521a74[_0x4a3a0e];if(_0x4936c8===this['currentRevision']){_0x4a3a0e++;continue;}if(_0x4936c8['id']===this['_initialRevisionId'])break;const _0x186876=_0x58285d['toVersion']-_0x4936c8['toVersion']||_0x58285d['fromVersion']-_0x4936c8['fromVersion'];if(_0x186876>0x0)break;if(_0x186876<0x0)_0x4a3a0e++;else{if(!_0x58285d['creator']&&_0x4936c8['creator'])break;if(_0x4936c8['creator']||!_0x58285d['creator']){if(_0x58285d['createdAt']>_0x4936c8['createdAt'])break;_0x4a3a0e++;}else _0x4a3a0e++;}}return _0x4a3a0e;}['_getFromVersion'](_0x520cae){const _0x3d2a62=this['repository']['getRevisions']();_0x3d2a62['reverse'](),_0x3d2a62['shift']();const _0x40611a=_0x3d2a62['find'](_0x2449c7=>_0x2449c7['toVersion']<=_0x520cae)['toVersion'];return _0x40611a<this['_startingVersion']?this['_startingVersion']:_0x40611a;}['_makeRevision']({name:_0x3da033,from:_0xf74b0,to:_0x416ae7,creatorId:_0x46aa17,id:_0x3e79f9}){const _0x1246c6=this['buildRevisionData']({'from':_0xf74b0,'to':_0x416ae7});_0x1246c6['name']=_0x3da033,_0x1246c6['creatorId']=_0x46aa17,_0x1246c6['id']=_0x3e79f9;const _0x42923c=this['addRevisionData'](_0x1246c6);return this['adapter']&&this['_bufferUpdate'](_0x1246c6['id'],_0x1246c6,!0x0),_0x42923c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x566f9b){this['editor']=_0x566f9b,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'](_0x44167c){this['source']=_0x44167c;const _0x55cb4d=new Map(),_0x1e0595=new Map(),_0x12e7e0=this['editor']['model']['document']['roots']['map'](_0xbeefeb=>_0xbeefeb['rootName']);for(const _0x310fc6 of _0x12e7e0){const _0x546537=this['editor']['model']['document']['getRoot'](_0x310fc6),_0x322e44=N(_0x546537);_0x55cb4d['set'](_0x310fc6,_0x322e44),_0x1e0595['set'](_0x310fc6,Object['fromEntries'](_0x546537['getAttributes']()));}const _0x336469=Array['from'](this['editor']['model']['markers'])['map'](_0x397929=>[_0x397929['name'],_0x397929['getRange']()]),_0xf8ea1a=this['source']['version'];this['_saveMetaData'](_0xf8ea1a,_0x55cb4d,_0x336469,_0x1e0595),this['_startingRevisionId']=this['_revisionId'];const _0xa38a5f=new Map(),_0x30a7e3=new Map();for(const _0x2eb911 of _0x12e7e0){const _0x3ed0b4=P(_0x2eb911);_0xa38a5f['set'](_0x2eb911,_0x3ed0b4),_0x30a7e3['set'](_0x2eb911,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa38a5f,[],_0x30a7e3);}['getData'](_0x21eea1,_0x599c2d){if(this['_lastFrom']===_0x21eea1&&this['_lastTo']<=_0x599c2d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x599c2d,!0x0);else{if(!this['_savedMetaData']['has'](_0x21eea1)){const _0x9bbab=this['_getPreviousFrom'](_0x21eea1);this['_calculateMetaData'](_0x9bbab,_0x21eea1,!0x1);}this['_calculateMetaData'](_0x21eea1,_0x599c2d,!0x0);}return this['_lastFrom']=_0x21eea1,this['_lastTo']=_0x599c2d,this['_getState']();}['loadState'](_0x2b91bf){const _0x35f29c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2b91bf['fromVersion'],this['_lastTo']=_0x2b91bf['toVersion'];for(const _0x40da55 in _0x2b91bf['diffData']){const _0x5045e1=_0x2b91bf['diffData'][_0x40da55]['attachChange'],_0x5e1698=_0x3db99c(_0x2b91bf['diffData'][_0x40da55]['attributesBefore'])||{},_0x1e6921=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x40da55]['deletions']);_0x1e6921['rootName']=_0x40da55,_0x1e6921['_isAttached']=!_0x5045e1||!_0x5045e1['isAttached'],_0x1e6921['isAttached']=()=>_0x1e6921['_isAttached'],this['_baseRoots']['set'](_0x40da55,_0x1e6921),this['_baseRootsAttributes']['set'](_0x40da55,_0x5e1698),_0x5045e1&&this['_touchedRoots']['set'](_0x40da55,_0x5045e1);const _0x17429a=this['_makeIdsRoot'](_0x1e6921);this['_baseIdsRoots']['set'](_0x40da55,_0x17429a);for(const [_0x3af856,_0x314619]of _0x1e6921['markers']){if(!_0x3af856['startsWith']('revision:'))continue;const _0x838bef=_0x3af856['split'](':')[0x2];for(const _0x25d528 of _0x314619['getWalker']({'singleCharacters':!0x0})){const _0x163a13=this['_getVidAttributeName'](_0x25d528),_0x4e8835='elementEnd'==_0x25d528['type']?_0x25d528['previousPosition']['path']['slice'](0x0,-0x1):_0x25d528['previousPosition']['path'],_0x32fd93=_0x17429a['getNodeByPath'](_0x4e8835)['getAttribute'](_0x163a13);this['_touched']['set'](_0x32fd93,{'userId':_0x838bef});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1a3d2a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12a397=>!this['_touched']['has'](_0x12a397));let _0x3717c2=0x0;const _0x13c563=new Map();for(const _0x20d047 in _0x2b91bf['diffData']){const _0x3f1d2a=_0x2b91bf['diffData'][_0x20d047]['attachChange'],_0xadf632=_0x3db99c(_0x2b91bf['diffData'][_0x20d047]['attributesAfter'])||{},_0x5585ca=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x20d047]['insertions']);_0x5585ca['rootName']=_0x20d047,_0x5585ca['_isAttached']=!_0x3f1d2a||_0x3f1d2a['isAttached'],_0x5585ca['isAttached']=()=>_0x5585ca['_isAttached'],this['_diffRoots']['set'](_0x20d047,_0x5585ca),this['_diffRootsAttributes']['set'](_0x20d047,_0xadf632);const _0xac3910=this['_makeIdsRoot'](_0x5585ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20d047,_0xac3910),_0x13c563['set'](_0x20d047,_0x5585ca['isAttached']()?_0xadf632:{});for(const [_0xd3c601,_0xea0377]of _0x5585ca['markers']){if(!_0xd3c601['startsWith']('revision:'))continue;const _0x79b46f=_0xd3c601['split'](':')[0x2];for(const _0x39d84a of _0xea0377['getWalker']({'singleCharacters':!0x0})){const _0x22b758=this['_getVidAttributeName'](_0x39d84a),_0x43199a=this['_revisionId']++,_0x6bdff3='elementEnd'==_0x39d84a['type']?_0x39d84a['previousPosition']['path']['slice'](0x0,-0x1):_0x39d84a['previousPosition']['path'];_0xac3910['getNodeByPath'](_0x6bdff3)['_setAttribute'](_0x22b758,_0x43199a),this['_touched']['set'](_0x43199a,{'userId':_0x79b46f});}}for(const _0x9adf28 of this['editor']['model']['createRangeIn'](_0x5585ca)['getWalker']({'singleCharacters':!0x0})){const _0x7f8b9d=this['_getVidAttributeName'](_0x9adf28),_0x13eeef='elementEnd'==_0x9adf28['type']?_0x9adf28['previousPosition']['path']['slice'](0x0,-0x1):_0x9adf28['previousPosition']['path'],_0x5307d2=_0xac3910['getNodeByPath'](_0x13eeef);_0x5307d2['getAttribute'](_0x7f8b9d)>0x0||_0x5307d2['_setAttribute'](_0x7f8b9d,_0x1a3d2a[_0x3717c2++]);}for(const [_0x10f4cb,_0x5dedc2]of _0x5585ca['markers'])_0x10f4cb['startsWith']('revision:')||this['_markers']['set'](_0x10f4cb,_0x5dedc2);}const _0xf63793=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf63793),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf63793,0x1));const _0x43f990=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x43f990),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f990,0x1));const _0x4ac32b=Array['from'](this['_diffRoots'])['map'](([_0x241cf3,_0x47d181])=>[_0x241cf3,N(_0x47d181)]);this['_saveMetaData'](this['_lastTo'],_0x4ac32b,this['_markers'],_0x13c563);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x247e18,_0x4c2ace,_0x41d762,_0x44038a){const _0x52eff0=new Map(_0x4c2ace),_0x4a067d=new Map(_0x3db99c(_0x44038a)),_0x37e355=new Map();for(const [_0x655328,_0x3e485a]of _0x41d762)_0x37e355['set'](_0x655328,{'start':_0x3e485a['start']['clone'](),'end':_0x3e485a['end']['clone'](),'rootName':_0x3e485a['root']['rootName']});this['_savedMetaData']['set'](_0x247e18,{'roots':_0x52eff0,'markers':_0x37e355,'rootsAttributes':_0x4a067d});}['_removeMetaData'](_0x78196e){this['_savedMetaData']['delete'](_0x78196e);}['_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'](_0x21ce6c,_0x3751d8=null){let _0x49333d=null;_0x21ce6c['is']('documentFragment')||(_0x49333d=new ut(_0x21ce6c['name'],{'vid_start':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));const _0x65ea16=[];for(const _0x224086 of _0x21ce6c['getChildren']())if(_0x224086['is']('element')){_0x65ea16['push'](this['_makeIdsRoot'](_0x224086,_0x3751d8));const _0x45ad53=_0x65ea16[_0x65ea16['length']-0x1];null!==_0x3751d8&&(_0x3751d8=_0x45ad53['is']('element','$text')?_0x45ad53['getAttribute']('vid')+0x1:_0x45ad53['getAttribute']('vid_end')+0x1);}else{for(let _0x3fbabe=0x0;_0x3fbabe<_0x224086['offsetSize'];_0x3fbabe++)_0x65ea16['push'](new ut('$text',{'vid':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));}if(_0x21ce6c['is']('documentFragment')){const _0x7a3c7e=P(_0x21ce6c['rootName']);return _0x7a3c7e['_insertChild'](0x0,_0x65ea16),_0x7a3c7e;}return _0x49333d['_setAttribute']('vid_end',null===_0x3751d8?this['_revisionId']++:_0x3751d8++),_0x49333d['_insertChild'](0x0,_0x65ea16),_0x49333d;}['_calculateMetaData'](_0x79264e,_0x34642c,_0x39af04){this['_reset']();const {roots:_0x1d8a72,markers:_0x2cca77,rootsAttributes:_0x101216}=this['_savedMetaData']['get'](_0x79264e);this['_baseRoots']=new Map(_0x1d8a72),this['_baseRootsAttributes']=new Map(_0x3db99c(_0x101216));for(const [_0x4c7e45,_0x4ed4ef]of this['_baseRoots'])if('$graveyard'!==_0x4c7e45&&(this['_diffRoots']['set'](_0x4c7e45,N(_0x4ed4ef)),this['_diffRootsAttributes']=new Map(_0x3db99c(_0x101216)),_0x39af04)){const _0x3cf99d=this['_revisionId'];this['_idsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef)),this['_baseIdsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef,_0x3cf99d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x39af04&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12e6bd,_0x14f209]of _0x2cca77){const _0x3e5267=this['_baseRoots']['get'](_0x14f209['rootName']),_0x399403=this['_diffRoots']['get'](_0x14f209['rootName']),_0x429003=new lt(this['_fixPosition'](_0x14f209['start'],_0x3e5267),this['_fixPosition'](_0x14f209['end'],_0x3e5267)),_0x1ac659=this['_fixRange'](_0x429003,_0x399403);_0x3e5267['markers']['set'](_0x12e6bd,_0x429003),this['_markers']['set'](_0x12e6bd,_0x1ac659);}this['_applyOperations'](_0x79264e,_0x34642c,_0x39af04);}['_applyOperations'](_0x40b8d2,_0x11b595,_0x132274){for(const _0x53b8e4 of this['source']['getOperations'](_0x40b8d2,_0x11b595))this['_handleOperation'](_0x53b8e4,_0x132274);for(const _0x3835e1 of this['_diffRoots']['values']())_0x3835e1['markers']['clear']();for(const [_0x384449,_0x504862]of this['_markers']){this['_diffRoots']['get'](_0x504862['root']['rootName'])['markers']['set'](_0x384449,_0x504862['clone']());}const _0x2df3e6=new Map(),_0x310c26=new Map();for(const [_0x43b371,_0x5ae875]of this['_diffRoots'])_0x2df3e6['set'](_0x43b371,N(_0x5ae875)),_0x310c26['set'](_0x43b371,this['_diffRootsAttributes']['get'](_0x43b371));this['_saveMetaData'](_0x11b595,_0x2df3e6,this['_markers'],_0x310c26);}['_getPreviousFrom'](_0x36a427){const _0x13385c=Array['from'](this['_savedMetaData']['keys']());_0x13385c['sort']((_0x3feda0,_0x241416)=>_0x3feda0-_0x241416),_0x13385c['reverse']();for(const _0x521350 of _0x13385c)if(_0x521350<_0x36a427)return _0x521350;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x528274,_0x3f8213){const _0xdca58f=Array['from'](_0x3f8213['markers'])['map'](([_0x5d3e24,_0x3f209c])=>[_0x5d3e24,this['_fixRange'](_0x3f209c,_0x528274)]);_0x528274['markers']=new Map(_0xdca58f);}['_transformMarkers'](_0x13f1b7){for(const _0x2df586 of this['_markers']['values']()){const _0x51d233=_0x2df586['getTransformedByOperation'](_0x13f1b7),_0x1aeec2=lt['_createFromRanges'](_0x51d233);_0x2df586['start']=_0x1aeec2['start'],_0x2df586['end']=_0x1aeec2['end'];}}['_handleOperation'](_0x10c968,_0x4078fb){if('addRoot'!=_0x10c968['type']&&'detachRoot'!=_0x10c968['type']){if('insert'==_0x10c968['type']){const _0x570728=_0x10c968['position']['root']['rootName'];this['_diffRoots']['has'](_0x570728)||(this['_diffRoots']['set'](_0x570728,P(_0x570728,!0x0)),this['_diffRootsAttributes']['set'](_0x570728,{}),_0x4078fb&&this['_idsRoots']['set'](_0x570728,P(_0x570728,!0x0)));}else{if('addRootAttribute'==_0x10c968['type']||'removeRootAttribute'==_0x10c968['type']||'changeRootAttribute'==_0x10c968['type'])return void this['_handleRootAttributeOperation'](_0x10c968);'marker'==_0x10c968['type']&&this['_handleMarkerOperation'](_0x10c968);}if('marker'!==_0x10c968['type']){const _0x2a27a1=this['_cloneOperation'](_0x10c968,this['_diffRoots']);_0x2a27a1['_execute'](),this['_transformMarkers'](_0x2a27a1);}if(_0x4078fb)switch(_0x10c968['type']){case'insert':this['_handleInsertOperation'](_0x10c968);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x10c968);break;case'merge':this['_handleMergeOperation'](_0x10c968);break;case'split':this['_handleSplitOperation'](_0x10c968);}}else this['_handleRootOperation'](_0x10c968,_0x4078fb);}['_cloneOperation'](_0x1ea183,_0x55dbef){const _0x363f40=_0x1ea183['clone']();return _0x363f40['_authorId']=_0x1ea183['_authorId'],this['_fixOperation'](_0x363f40,_0x55dbef),_0x363f40;}['_getBaseVids'](_0x2d6a33){return _0x2d6a33['map'](_0x295db7=>{const _0x549e79=this['_getVidAttributeName'](_0x295db7);return Number(_0x295db7['item']['getAttribute'](_0x549e79));});}['_generateTape'](_0x1dc84e,_0x359568){if(_0x1dc84e['is']('element','$text'))_0x359568['push']({'item':_0x1dc84e,'type':'text'});else{_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementStart'});for(const _0x587ae0 of _0x1dc84e['getChildren']())this['_generateTape'](_0x587ae0,_0x359568);_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementEnd'});}return _0x359568;}['_getState'](){const _0x9b7e2a=new Map(this['_touched']),_0x163c14=new Map(_0x9b7e2a),_0x4c6a6c=new Map(),_0x4e95cc={'insertions':{},'deletions':{}},_0x2b86e2={'insertions':{},'deletions':{}},_0x964347=new Map(),_0x2aa5bf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2aa5bf['delete']('$graveyard');for(const _0x43da0 of _0x2aa5bf){const _0x55b922=this['_diffRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),_0x58cdb5=this['_baseRoots']['get'](_0x43da0)||P(_0x43da0,!0x1);_0x55b922['isAttached']()||_0x58cdb5['isAttached']()?(_0x4e95cc['insertions'][_0x43da0]=N(_0x55b922),_0x4e95cc['deletions'][_0x43da0]=N(_0x58cdb5),this['_copyMarkers'](_0x4e95cc['deletions'][_0x43da0],_0x58cdb5),this['_copyMarkers'](_0x4e95cc['insertions'][_0x43da0],_0x55b922),_0x2b86e2['insertions'][_0x43da0]=this['_generateTape'](this['_idsRoots']['get'](_0x43da0),[]),_0x2b86e2['deletions'][_0x43da0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),[])):_0x2aa5bf['delete'](_0x43da0);}for(const _0x543fcd of _0x2aa5bf){const _0xa5a2a6=_0x2b86e2['insertions'][_0x543fcd];for(const _0x40401e of _0xa5a2a6){const _0x5f0070=this['_getVidAttributeName'](_0x40401e),_0x48756d=_0x40401e['item']['getAttribute'](_0x5f0070);_0x163c14['delete'](_0x48756d),_0x48756d>=this['_startingRevisionId']&&_0x4c6a6c['set'](_0x48756d,_0x9b7e2a['get'](_0x48756d));}}for(const _0x2aea3f of _0x2aa5bf){const _0x38ca3d=_0x2b86e2['insertions'][_0x2aea3f],_0x2855a6=this['_getBaseVids'](_0x2b86e2['deletions'][_0x2aea3f]);let _0x8eff21=0x0;for(const _0xe00e33 of _0x38ca3d){const _0x5f59d9=this['_getVidAttributeName'](_0xe00e33),_0x5ccceb=_0xe00e33['item']['getAttribute'](_0x5f59d9);if(!_0x4c6a6c['has'](_0x5ccceb)&&!_0x964347['has'](_0x5ccceb)){if(_0x163c14['has'](_0x5ccceb))_0x8eff21++;else{if(_0x5ccceb!=_0x2855a6[_0x8eff21]){const _0x3e49f4=_0x9b7e2a['get'](_0x5ccceb)||_0x9b7e2a['get'](_0x2855a6[_0x8eff21]);for(;_0x5ccceb!=_0x2855a6[_0x8eff21];)_0x163c14['has'](_0x2855a6[_0x8eff21])||(_0x964347['set'](_0x2855a6[_0x8eff21],_0x3e49f4),_0x9b7e2a['set'](_0x2855a6[_0x8eff21],_0x3e49f4)),_0x8eff21++;}_0x8eff21++;}}}}for(const _0x13f85a of _0x2aa5bf){const _0x5311c9=_0x2b86e2['insertions'][_0x13f85a];for(const _0x3d8bef of _0x5311c9){const _0x3a61b6=this['_getVidAttributeName'](_0x3d8bef),_0x4f2ed0=_0x3d8bef['item']['getAttribute'](_0x3a61b6);if(_0x964347['has'](_0x4f2ed0)){const _0x268913=_0x964347['get'](_0x4f2ed0);_0x163c14['has'](_0x4f2ed0)||_0x163c14['set'](_0x4f2ed0,{..._0x268913}),_0x4c6a6c['set'](_0x4f2ed0,{..._0x268913});}}}for(const _0x8341be of _0x163c14['keys']())_0x8341be>=this['_startingRevisionId']&&_0x163c14['delete'](_0x8341be);const _0x3781cb=new Map();for(const _0x5d6846 of _0x2aa5bf){let _0x5c12a1=_0x2b86e2['insertions'][_0x5d6846];for(const _0xb9f8fd of _0x5c12a1)if(_0xb9f8fd['item']['is']('element','tableCell')){const _0x16bd6f=this['_getVidAttributeName'](_0xb9f8fd),_0x42df57=_0xb9f8fd['item']['getAttribute'](_0x16bd6f);if(_0x4c6a6c['has'](_0x42df57)){const _0x39de6c=_0xb9f8fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x4053ac=_0x3781cb['get'](_0x39de6c)||new Set();_0x4053ac['add'](_0x4c6a6c['get'](_0x42df57)['userId']),_0x3781cb['set'](_0x39de6c,_0x4053ac);}}_0x5c12a1=_0x2b86e2['deletions'][_0x5d6846];for(const _0x155352 of _0x5c12a1)if(_0x155352['item']['is']('element','tableCell')){const _0x2e0a74=this['_getVidAttributeName'](_0x155352),_0x3c9f25=_0x155352['item']['getAttribute'](_0x2e0a74);if(_0x163c14['has'](_0x3c9f25)){const _0x432055=_0x155352['item']['parent']['parent']['getAttribute']('vid_start'),_0xa49190=_0x3781cb['get'](_0x432055)||new Set();_0xa49190['add'](_0x163c14['get'](_0x3c9f25)['userId']),_0x3781cb['set'](_0x432055,_0xa49190);}}for(const _0x27dc43 of _0x3781cb['keys']())(_0x4c6a6c['has'](_0x27dc43)||_0x163c14['has'](_0x27dc43))&&_0x3781cb['delete'](_0x27dc43);}for(const _0x1fde69 of _0x2aa5bf){const _0x4d69e7=_0x2b86e2['insertions'][_0x1fde69];let _0x321780=null,_0x42d145=null;for(const _0x4c7e80 of _0x4d69e7){const _0x220b58=this['_getVidAttributeName'](_0x4c7e80),_0x2fa052=_0x4c7e80['item']['getAttribute'](_0x220b58),_0x1150e4=_0x3781cb['get'](_0x2fa052);_0x1150e4&&'elementStart'==_0x4c7e80['type']&&(_0x321780=Array['from'](_0x1150e4)[0x0],_0x42d145=_0x4c7e80['item']['getAttribute']('vid_end')),_0x321780&&(_0x163c14['set'](_0x2fa052,{'userId':_0x321780}),_0x4c6a6c['set'](_0x2fa052,{'userId':_0x321780})),_0x2fa052==_0x42d145&&(_0x321780=null,_0x42d145=null);}}const _0x10de4f={},_0x437081=new Set();for(const _0x4f5452 of _0x2aa5bf){const _0x11c400=_0x4e95cc['deletions'][_0x4f5452],_0x2aaabc=_0x4e95cc['insertions'][_0x4f5452];for(const {userId:_0x5816f4}of this['_touchedMarkers']['values']())null!==_0x5816f4&&_0x437081['add'](_0x5816f4);for(const {userId:_0x373a17}of this['_touchedRoots']['values']())null!==_0x373a17&&_0x437081['add'](_0x373a17);this['_markChanges'](_0x2aaabc,_0x2b86e2['insertions'][_0x4f5452],_0x4c6a6c,'insertion',_0x437081),this['_markChanges'](_0x11c400,_0x2b86e2['deletions'][_0x4f5452],_0x163c14,'deletion',_0x437081),_0x10de4f[_0x4f5452]={'insertions':this['_prepareViewToSave'](_0x2aaabc),'deletions':this['_prepareViewToSave'](_0x11c400),'attachChange':this['_touchedRoots']['get'](_0x4f5452)||null,'attributesBefore':_0x3db99c(this['_baseRootsAttributes']['get'](_0x4f5452))||{},'attributesAfter':_0x3db99c(this['_diffRootsAttributes']['get'](_0x4f5452))};}return{'diffData':_0x10de4f,'authorsIds':Array['from'](_0x437081)};}['_processRootBeforeSave'](_0x3daaec){for(const [,_0x10d996]of _0x3daaec['markers']){const _0x327629=_0x10d996['start']['getAncestors']()['filter'](_0x4e98a0=>'tableCell'==_0x4e98a0['name']);for(const _0x34f967 of _0x327629)0x1==_0x34f967['childCount']&&_0x34f967['getChild'](0x0)['is']('element','paragraph')&&_0x34f967['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3ec5fb){this['_processRootBeforeSave'](_0x3ec5fb);const _0x380785=this['editor']['data']['toView'](_0x3ec5fb,{}),_0x44d063=Array['from'](_0x380785['getChildren']())['map'](_0x40ea7c=>this['_getViewJson'](_0x40ea7c));return JSON['stringify'](_0x44d063);}['_getViewJson'](_0x454a32){if(_0x454a32['is']('$text'))return _0x454a32['data'];{const _0x5613dc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x32fd49=_0x454a32,_0x40ea52=this['editor']['data']['htmlProcessor']['domConverter'],_0x16fa3b={'type':_0x5613dc['_getTypeCharForViewElement'](_0x32fd49),'name':_0x32fd49['name'],'attributes':Array['from'](_0x32fd49['getAttributes']()),'children':Array['from'](_0x32fd49['getChildren']())['map'](_0x531c5c=>this['_getViewJson'](_0x531c5c))};if(_0x454a32['is']('uiElement')&&'$comment'!=_0x454a32['name']){const _0xb1e417=_0x454a32['render'](_0x40ea52['domDocument'],_0x40ea52);_0x16fa3b['children']['push'](_0xb1e417['outerHTML']);}else{if(_0x454a32['is']('rawElement')){const _0x30516b=_0x40ea52['domDocument']['createElement'](_0x32fd49['name']);_0x454a32['render'](_0x30516b,_0x40ea52),_0x16fa3b['children']['push'](_0x30516b['innerHTML']);}}const _0xc11dad=Array['from'](_0x32fd49['getCustomProperties']());_0xc11dad['length']>0x0&&(_0x16fa3b['customProperties']=_0xc11dad);const _0x255800=_0x32fd49['getFillerOffset']();return null!==_0x255800&&(_0x16fa3b['fillerOffset']=_0x255800),_0x16fa3b;}}['_markChanges'](_0x556982,_0x2f6b4f,_0x49e398,_0x5a73a4,_0x36a610){let _0x722de6=null,_0x20b211=null,_0x123722=0x0;const _0x541ef1=this['editor']['model'];for(let _0x3bf955=0x0;_0x3bf955<_0x2f6b4f['length'];_0x3bf955++){const _0x1b80d6=this['_getVidAttributeName'](_0x2f6b4f[_0x3bf955]),_0x21cb11=_0x2f6b4f[_0x3bf955]['item']['getAttribute'](_0x1b80d6),_0xaec7b=_0x49e398['get'](_0x21cb11),_0x34ab5e=_0x3bf955==_0x2f6b4f['length']-0x1;(!_0x722de6&&_0xaec7b&&(_0x722de6=_0xaec7b,_0x20b211=_0x2f6b4f[_0x3bf955]),_0x722de6&&(!_0xaec7b||_0xaec7b['userId']!=_0x722de6['userId']))&&(_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),F(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1)),_0x722de6=_0xaec7b||null,_0x20b211=_0xaec7b?_0x2f6b4f[_0x3bf955]:null),_0x722de6&&_0x34ab5e&&_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),B(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1));}function _0x4aed80(_0x460d99,_0x47af46,_0x500ca1){const _0x9c5f3f=_0x722de6['userId'],_0x1a49e5='revision:'+_0x5a73a4+':'+_0x9c5f3f+':'+_0x123722++,_0x848fcb=_0x541ef1['createRange'](_0x47af46,_0x500ca1);_0x556982['markers']['set'](_0x1a49e5,_0x848fcb),null!==_0x9c5f3f&&_0x36a610['add'](_0x9c5f3f);}}['_getVidAttributeName'](_0x508b92){switch(_0x508b92['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x157542,_0x154975){_0x157542['baseVersion']=null;for(const _0x1d8600 in _0x157542){const _0x37f5ff=_0x157542[_0x1d8600];if(_0x37f5ff instanceof ft){const _0xedadf0=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixPosition'](_0x37f5ff,_0xedadf0);}if(_0x37f5ff instanceof lt){const _0x352382=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixRange'](_0x37f5ff,_0x352382);}'root'===_0x1d8600&&(_0x157542['root']=_0x154975['get'](_0x157542['root']['rootName']));}}['_fixRange'](_0x1d3c18,_0x5292ab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1d3c18['start'],_0x5292ab),this['_fixPosition'](_0x1d3c18['end'],_0x5292ab));}['_fixPosition'](_0x2a470e,_0x383d52){return this['editor']['model']['createPositionFromPath'](_0x383d52,_0x2a470e['path'],_0x2a470e['stickiness']);}['_handleInsertOperation'](_0xd1f65e){const _0x4491f2=this['_idsRoots']['get'](_0xd1f65e['position']['root']['rootName']),_0x221da4=this['_fixPosition'](_0xd1f65e['position'],_0x4491f2),_0x3c2870=null===_0xd1f65e['_authorId']?null:_0xd1f65e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545037=_0x221da4['parent'],_0x2538cb=this['_revisionId'],_0x3f330c=[];for(const _0x3332c8 of _0xd1f65e['nodes'])if(_0x3332c8['is']('element'))_0x3f330c['push'](this['_makeIdsRoot'](_0x3332c8));else{for(let _0x388ad1=0x0;_0x388ad1<_0x3332c8['offsetSize'];_0x388ad1++)_0x3f330c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x517a0f=this['_revisionId'];for(let _0x3a36f3=_0x2538cb;_0x3a36f3<_0x517a0f;_0x3a36f3++)this['_touched']['set'](_0x3a36f3,{'userId':_0x3c2870});_0x545037['_insertChild'](_0x221da4['offset'],_0x3f330c);}['_handleMoveOperation'](_0x4eda44){(_0x4eda44=this['_cloneOperation'](_0x4eda44,this['_idsRoots']))['_execute']();const _0x5108aa=null===_0x4eda44['_authorId']?null:_0x4eda44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24ee85=_0x4eda44['getMovedRangeStart'](),_0x8915a0=_0x24ee85['parent'],_0x160532=_0x24ee85['offset'];!function _0x536ce2(_0x58958a,_0x1f74c0,_0x53aa7c,_0x422837){for(let _0x3546e7=_0x53aa7c;_0x3546e7<_0x422837;_0x3546e7++){const _0x4e7de1=_0x1f74c0['getChild'](_0x3546e7);_0x4e7de1['is']('element','$text')?_0x58958a['set'](_0x4e7de1['getAttribute']('vid'),{'userId':_0x5108aa}):(_0x58958a['set'](_0x4e7de1['getAttribute']('vid_start'),{'userId':_0x5108aa}),_0x536ce2(_0x58958a,_0x4e7de1,0x0,_0x4e7de1['childCount']),_0x58958a['set'](_0x4e7de1['getAttribute']('vid_end'),{'userId':_0x5108aa}));}}(this['_touched'],_0x8915a0,_0x160532,_0x160532+_0x4eda44['howMany']);}['_handleMergeOperation'](_0x15f752){const _0x5ec3b3=null===(_0x15f752=this['_cloneOperation'](_0x15f752,this['_idsRoots']))['_authorId']?null:_0x15f752['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18c081=_0x15f752['targetPosition']['parent'],_0x37d90c=_0x15f752['sourcePosition']['parent'],_0x3d334b=_0x18c081['getAttribute']('vid_end'),_0x2e0351=_0x37d90c['getAttribute']('vid_start');_0x18c081['_setAttribute']('vid_end',_0x37d90c['getAttribute']('vid_end')),_0x37d90c['_setAttribute']('vid_end',_0x3d334b),this['_touched']['set'](_0x2e0351,{'userId':_0x5ec3b3}),this['_touched']['set'](_0x3d334b,{'userId':_0x5ec3b3}),_0x15f752['_execute']();}['_handleSplitOperation'](_0x520efa){const _0x3a36d0=null===(_0x520efa=this['_cloneOperation'](_0x520efa,this['_idsRoots']))['_authorId']?null:_0x520efa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b1288=_0x520efa['graveyardPosition'],_0x23ad4c=_0x520efa['splitPosition']['parent'];_0x520efa['_execute']();const _0x317b43=_0x23ad4c['getAttribute']('vid_end'),_0x2fb790=_0x520efa['insertionPosition']['nodeAfter'];if(_0x1b1288){const _0x34ea24=_0x2fb790['getAttribute']('vid_end'),_0x485cd3=_0x23ad4c['getAttribute']('vid_end');_0x23ad4c['_setAttribute']('vid_end',_0x34ea24),_0x2fb790['_setAttribute']('vid_end',_0x485cd3),this['_touched']['set'](_0x23ad4c['getAttribute']('vid_end'),{'userId':_0x3a36d0}),this['_touched']['set'](_0x2fb790['getAttribute']('vid_start'),{'userId':_0x3a36d0});}else{const _0x7cfdaf=this['_revisionId']++,_0x44b026=this['_revisionId']++;_0x23ad4c['_setAttribute']('vid_end',_0x7cfdaf),_0x2fb790['_setAttribute']('vid_start',_0x44b026),_0x2fb790['_setAttribute']('vid_end',_0x317b43),this['_touched']['set'](_0x7cfdaf,{'userId':_0x3a36d0}),this['_touched']['set'](_0x44b026,{'userId':_0x3a36d0});}}['_handleMarkerOperation'](_0x47c54c){if(!_0x47c54c['affectsData'])return;const _0x2330db=(_0x47c54c=this['_cloneOperation'](_0x47c54c,this['_diffRoots']))['oldRange']?_0x47c54c['oldRange']['root']:null,_0x1beda5=_0x47c54c['newRange']?_0x47c54c['newRange']['root']:null;_0x2330db&&this['_markers']['delete'](_0x47c54c['name']),_0x1beda5&&this['_markers']['set'](_0x47c54c['name'],_0x47c54c['newRange']['clone']());const _0x419ad2=null===_0x47c54c['_authorId']?null:_0x47c54c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46ec62=_0x47c54c['name'];if(!this['_touchedMarkers']['has'](_0x46ec62))return void this['_touchedMarkers']['set'](_0x46ec62,{'range':_0x47c54c['oldRange'],'userId':_0x419ad2});const _0x36e17a=this['_touchedMarkers']['get'](_0x46ec62),_0x48c00a=_0x36e17a['range'],_0x573f16=_0x47c54c['newRange'];null==_0x48c00a&&null==_0x573f16||_0x48c00a&&_0x573f16&&_0x48c00a['isEqual'](_0x573f16)?this['_touchedMarkers']['delete'](_0x47c54c['name']):_0x36e17a['userId']=_0x419ad2;}['_handleRootOperation'](_0x1fe50f,_0x17a724){this['_diffRoots']['has'](_0x1fe50f['rootName'])?this['_diffRoots']['get'](_0x1fe50f['rootName'])['_isAttached']=_0x1fe50f['isAdd']:(this['_diffRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1fe50f['rootName'],{}),_0x17a724&&this['_idsRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)));const _0x1bdc21=null===_0x1fe50f['_authorId']?null:_0x1fe50f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x247f2a=this['_touchedRoots']['get'](_0x1fe50f['rootName']);_0x247f2a&&_0x247f2a['userId']===_0x1bdc21?this['_touchedRoots']['delete'](_0x1fe50f['rootName']):this['_touchedRoots']['set'](_0x1fe50f['rootName'],{'userId':_0x1bdc21,'isAttached':_0x1fe50f['isAdd']});}['_handleRootAttributeOperation'](_0x4316f4){const _0x5d65a1=this['_diffRootsAttributes']['get'](_0x4316f4['root']['rootName']);null===_0x4316f4['newValue']?delete _0x5d65a1[_0x4316f4['key']]:_0x5d65a1[_0x4316f4['key']]=_0x4316f4['newValue'];}}function N(_0xa3b798){const _0x3e9491=P(_0xa3b798['rootName'],_0xa3b798['isAttached']());for(const _0x3edf48 of _0xa3b798['getChildren']()){const _0x332b26=_0x3edf48['_clone'](!0x0);_0x3e9491['_appendChild'](_0x332b26);}return _0x3e9491;}function P(_0x1ace43,_0x152a0c=!0x0){const _0x3f50c5=new vt();return _0x3f50c5['rootName']=_0x1ace43,_0x3f50c5['_isAttached']=_0x152a0c,_0x3f50c5['isAttached']=()=>_0x3f50c5['_isAttached'],_0x3f50c5;}function F(_0x57e918,_0xb996d1,_0x5a9552){const _0x36f68e='elementEnd'==_0x57e918['type']?_0x5a9552['createPositionAt'](_0x57e918['item'],'end'):_0x5a9552['createPositionBefore'](_0x57e918['item']);return _0x5a9552['createPositionFromPath'](_0xb996d1,_0x36f68e['path'],_0x36f68e['stickiness']);}function B(_0x418bb7,_0x469270,_0x2fc9b8){const _0x25c50a='elementStart'==_0x418bb7['type']?_0x2fc9b8['createPositionAt'](_0x418bb7['item'],0x0):_0x2fc9b8['createPositionAfter'](_0x418bb7['item']);return _0x2fc9b8['createPositionFromPath'](_0x469270,_0x25c50a['path'],_0x25c50a['stickiness']);}class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x45fa9a(_0x65ffd8){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c26e0,_0x2c5f7e){super(_0x1c26e0),this['focusTracker']=new _0x4f7138(),this['keystrokes']=new _0x57dc80(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c5f7e),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'](),_0x2d6dcb({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2376bc=_0x2e4ac8=>_0x2e4ac8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2376bc),this['keystrokes']['set']('arrowleft',_0x2376bc),this['keystrokes']['set']('arrowup',_0x2376bc),this['keystrokes']['set']('arrowdown',_0x2376bc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x529252){this['revisionNameInputView']['fieldView']['element']['value']=_0x529252['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x20e170){const _0x253be4=new ts(this['locale'],_0x27b255),_0x271575=_0x253be4['fieldView'];_0x271575['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2eedff=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x20e170&&(_0x2eedff+='\x20('+g(this['locale'],'optional')+')'),(_0x253be4['label']=_0x2eedff,_0x271575['on']('input',()=>{this['revisionNameInputValue']=_0x271575['element']['value']['trim']();}),_0x253be4);}}class f extends _0x4af0c1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x44b18e=this['editor'],_0x5230e6=_0x44b18e['plugins']['get']('RevisionTracker');_0x44b18e['ui']['componentFactory']['add']('revisionHistory',_0x4b4b7c=>{const _0x347dc1=_0x328c25(_0x4b4b7c),_0x230573=_0x347dc1['panelView']['children'],_0x5a3050=new _0x1e2c18(_0x4b4b7c),_0xc49aec=new _0x53062b(_0x4b4b7c),_0x59359f=new te(_0x4b4b7c),_0x9d7788=new _0x53062b(_0x4b4b7c),_0x27b55d=new te(_0x4b4b7c);return _0x347dc1['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x5230e6,'isEnabled',_0x44b18e,'isReadOnly',(_0x39afff,_0x130a60,_0x5c89af)=>_0x39afff&&_0x130a60&&!_0x5c89af),_0x347dc1['buttonView']['set']({'icon':_0x43b690,'label':g(_0x4b4b7c,'Revision\x20history'),'tooltip':!0x0}),_0x59359f['set']({'label':g(_0x4b4b7c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x59359f['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x5230e6,'isEnabled',_0x44b18e,'isReadOnly',(_0x542096,_0x3307f4,_0x38826f)=>_0x542096&&_0x3307f4&&!_0x38826f),_0x59359f['on']('execute',()=>this['_showDialog']()),_0x27b55d['set']({'label':g(_0x4b4b7c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x27b55d['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x44b18e,'isReadOnly',(_0x44e8f5,_0x1880e6)=>_0x44e8f5&&!_0x1880e6),_0x27b55d['on']('execute',()=>{_0x44b18e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x347dc1['isOpen']=!0x1,_0x44b18e['editing']['view']['focus']();}),_0xc49aec['children']['add'](_0x59359f),_0x9d7788['children']['add'](_0x27b55d),_0x5a3050['role']='menu',_0x5a3050['items']['addMany']([_0xc49aec,_0x9d7788]),_0x230573['add'](_0x5a3050),_0x347dc1;}),_0x44b18e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b9260=this['editor'],_0x527d4d=_0x5b9260['locale'],_0x139605=new _0xc3f7a9(_0x527d4d),_0x4d5015=new _0x5ed2d7(_0x527d4d);_0x139605['buttonView']['set']({'icon':_0x43b690,'label':g(_0x527d4d,'Revision\x20history')});const _0x5a67bb=new _0x3b7a91(_0x527d4d,_0x139605),_0x54b88a=new _0xe6b912(_0x527d4d);_0x54b88a['set']({'label':g(_0x527d4d,'Save\x20current\x20revision')}),_0x54b88a['delegate']('execute')['to'](_0x139605),_0x54b88a['on']('execute',()=>{this['_showDialog']();}),_0x5a67bb['children']['add'](_0x54b88a),_0x4d5015['items']['add'](_0x5a67bb);const _0x93fd21=new _0x3b7a91(_0x527d4d,_0x139605),_0x58e5eb=new _0xe6b912(_0x527d4d);return _0x58e5eb['set']({'label':g(_0x527d4d,'Open\x20revision\x20history')}),_0x58e5eb['delegate']('execute')['to'](_0x139605),_0x58e5eb['on']('execute',()=>{_0x5b9260['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x93fd21['children']['add'](_0x58e5eb),_0x4d5015['items']['add'](_0x93fd21),_0x139605['panelView']['children']['add'](_0x4d5015),_0x139605;}['_showDialog'](){const _0x4dbf9c=this['editor'],_0x351047=_0x4dbf9c['locale'],_0xc13371=_0x4dbf9c['plugins']['get']('Dialog'),_0x663b3a=_0x4dbf9c['plugins']['get']('RevisionTracker');function _0x307bdf(_0x4ce94d){_0x4dbf9c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ce94d['revisionName']?_0x4ce94d['revisionNameInputView']['errorText']=g(_0x351047,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4dbf9c['plugins']['get'](u)['saveRevision']({'name':_0x4ce94d['revisionName']}),_0xc13371['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x307bdf(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc13371['show']({'id':'revisionSave','title':g(_0x351047,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4dbf9c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc13371['hide']()},{'label':g(_0x4dbf9c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x13acb3){_0x13acb3['bind']('isEnabled')['to'](_0x663b3a,'isReady',_0x663b3a,'isEnabled',_0x4dbf9c,'isReadOnly',(_0x41dc44,_0x46c4e3,_0x45f193)=>_0x41dc44&&_0x46c4e3&&!_0x45f193);},'onExecute':()=>_0x307bdf(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x14b4c7=this['editor'],_0x284bec=_0x14b4c7['locale'];this['_saveRevisionFormView']=new hs(_0x284bec,_0x14b4c7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x65ffd8{['changeId'];['_model'];constructor(_0x576c05,_0x3e6606){super(_0x576c05),this['_model']=_0x3e6606,this['changeId']=_0x3e6606['id'];const _0x52deca=this['bindTemplate'],_0x23ed54=g(_0x576c05,_0x3e6606['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e6606['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e6606['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52deca['to']('type',_0x590ba8=>'ck-revision-change__'+_0x590ba8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x23ed54}]},{'text':'\x20'+_0x3e6606['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5f5b63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b3df2){super(),this['id']=_0x5b3df2['id']||_0x235c9b(),this['author']=_0x5b3df2['author'],this['type']=_0x5b3df2['type'],this['data']=_0x5b3df2['data']||{},this['rootName']=_0x5b3df2['rootName'],this['set']('createdAt',_0x5b3df2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x490e36,_0x25f196){this['newRevisionId']=_0x490e36,this['oldRevisionId']=_0x25f196,this['changes']=new _0x481a5e();}['_setChanges'](_0x15440a){for(const _0x47883b of _0x15440a)this['changes']['add'](_0x47883b);}}class m extends _0x4af0c1{['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[_0xdf44e4,_0xa68a23,I,V];}constructor(_0x2a265c){super(_0x2a265c),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',(_0xc2571f,_0x166133,_0x1c12be)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1ce467=>{for(const _0x56fedf of this['editor']['editing']['view']['document']['roots'])_0x1c12be?_0x1ce467['removeClass']('ck-editor__editable__overlay',_0x56fedf):_0x1ce467['addClass']('ck-editor__editable__overlay',_0x56fedf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ce40d=>null!==_0x3ce40d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x28e6ca,_0x2e1b60,_0x2c0253)=>_0x28e6ca&&_0x2c0253?_0x2e1b60['changes']['getIndex'](_0x2c0253):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2bd321,_0x4d513e)=>_0x2bd321?_0x4d513e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xa68a23);}['init'](){const _0x2871f9=this['editor'],_0xf32896=new wt(_0x2871f9,{'direction':'backward'}),_0x5664e7=new wt(_0x2871f9,{'direction':'forward'});(_0x2871f9['commands']['add']('showPreviousChange',_0xf32896),_0x2871f9['commands']['add']('showNextChange',_0x5664e7),_0x2871f9['commands']['add']('restoreRevision',new mt(_0x2871f9)),this['on']('change:numberOfChanges',()=>{_0xf32896['refresh'](),_0x5664e7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2871f9['enableReadOnlyMode']('revision-viewer'),_0x2871f9['plugins']['has']('WidgetToolbarRepository'))&&_0x2871f9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x434b81){return await this['_utils']['loadRevisionData'](_0x434b81,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x434b81);}async['getRevisionRootsAttributes'](_0x1fbe43){return await this['_utils']['loadRevisionData'](_0x1fbe43,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fbe43);}async['compare'](_0xf24838,_0x5248e8,_0x57345b=!0x1){if(!this['isEnabled'])return;const _0x54b954=this['diff'],_0x2d2683=this['repository'],_0xe26b88='string'==typeof _0xf24838?_0x2d2683['getRevision'](_0xf24838):_0xf24838,_0x59499f='string'==typeof _0x5248e8?_0x2d2683['getRevision'](_0x5248e8):_0x5248e8,_0x4c981d=_0xe26b88['id'],_0x119521=_0x59499f?_0x59499f['id']:null;if(!_0x57345b&&this['diff']&&this['diff']['newRevisionId']===_0x4c981d&&this['diff']['oldRevisionId']===_0x119521)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4c981d,_0x119521);const _0x66937b=this['_getRevisionsRange'](_0xe26b88,_0x59499f,!0x0)['map'](_0x2a26d9=>this['_utils']['loadRevisionData'](_0x2a26d9,this['adapter']));return _0x66937b['push'](new Promise(_0x747bda=>{setTimeout(_0x747bda,0x14);})),Promise['all'](_0x66937b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xdba11a=this['_getDiff'](_0x4c981d,_0x119521);for(const _0xe901be of _0xdba11a['changes'])this['_changeIdToChange']['set'](_0xe901be['id'],_0xe901be);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d5ede=>{for(const _0x329af9 of this['editor']['model']['document']['getRootNames']())_0x1d5ede['detachRoot'](_0x329af9);for(const _0x4ae1a5 of Object['keys'](_0xdba11a['model'])){const _0x497b18=_0x1d5ede['addRoot'](_0x4ae1a5);for(const _0x500a04 of Object['keys'](_0xdba11a['attributes'][_0x4ae1a5]))_0x1d5ede['setAttribute'](_0x500a04,_0xdba11a['attributes'][_0x4ae1a5][_0x500a04],_0x497b18);_0x1d5ede['insert'](_0xdba11a['model'][_0x4ae1a5],_0x497b18,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xdba11a['changes'])),this['isReady']=!0x0;})['catch'](_0x506efd=>{console['error'](_0x506efd),this['_cleanUp'](),_0x54b954&&(this['diff']=_0x54b954),this['isReady']=!0x0;});}['addRevisionData'](_0x486a05,_0x5581f1){const _0x49efb5=this['repository']['createRevision'](_0x486a05);return _0x49efb5['on']('_update',(_0x21c28c,_0xb94871,_0xc3426d)=>_0x5581f1(_0xb94871,_0xc3426d,_0x49efb5)),this['repository']['addRevision'](_0x49efb5),_0x49efb5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20f17c=>{for(const _0x592b6 of this['editor']['model']['document']['getRootNames']())_0x20f17c['detachRoot'](_0x592b6);});}['_sortAndFilterDiffChanges'](_0xcd88d9){const _0x540ada=[],_0xc4b4e=new Map();for(const _0x289f6d of this['editor']['model']['document']['getRootNames']()){const _0x2117eb=this['editor']['editing']['view']['getDomRoot'](_0x289f6d);if(!_0x2117eb)continue;const _0x799caf=_0x2117eb['getClientRects']()['item'](0x0);_0x799caf&&(_0x540ada['push'](_0x289f6d),_0xc4b4e['set'](_0x289f6d,_0x799caf));}return _0x540ada['sort']((_0x3a0f0b,_0x58e64e)=>{const _0x1602b2=_0xc4b4e['get'](_0x3a0f0b),_0x489a91=_0xc4b4e['get'](_0x58e64e);return _0x1602b2['y']-_0x489a91['y']||_0x1602b2['x']-_0x489a91['x'];}),(_0xcd88d9=_0xcd88d9['filter'](_0xd720c4=>_0x540ada['includes'](_0xd720c4['rootName'])))['sort']((_0x32b752,_0x48a55d)=>_0x540ada['indexOf'](_0x32b752['rootName'])-_0x540ada['indexOf'](_0x48a55d['rootName'])),_0xcd88d9;}['_makeTape'](_0x348771){const _0x5b240a=Array['from'](_0x348771['markers'])['filter'](([_0x5c66c6,_0x3f4f24])=>_0x5c66c6['startsWith']('revision:')&&!_0x3f4f24['isCollapsed']),_0x836d36=Array['from'](this['editor']['model']['createRangeIn'](_0x348771)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5b240a['length'])for(const _0x1f150c of _0x836d36){const [_0x5aeb31,_0xd4b3c7]=_0x5b240a[0x0],[,_0xb4c5a,_0x29fcf8]=_0x5aeb31['split'](':');if(_0xd4b3c7['end']['isEqual'](_0x1f150c['nextPosition'])&&_0x5b240a['shift'](),(_0x1f150c['previousPosition']['isEqual'](_0xd4b3c7['start'])||_0x1f150c['previousPosition']['isAfter'](_0xd4b3c7['start']))&&('insertion'==_0xb4c5a?_0x1f150c['isAdded']={'userId':_0x29fcf8}:'deletion'==_0xb4c5a&&(_0x1f150c['isRemoved']={'userId':_0x29fcf8})),0x0==_0x5b240a['length'])break;}return _0x836d36;}['_refreshStartEndIndex'](_0x5ac800){const _0x2bd47d=new Map();for(let _0x351055=0x0;_0x351055<_0x5ac800['length'];_0x351055++)'text'===_0x5ac800[_0x351055]['type']?(_0x5ac800[_0x351055]['item']['startIndex']=_0x351055,_0x5ac800[_0x351055]['item']['endIndex']=_0x351055):('elementStart'===_0x5ac800[_0x351055]['type']?_0x5ac800[_0x351055]['item']['startIndex']=_0x351055:'elementEnd'===_0x5ac800[_0x351055]['type']&&(_0x5ac800[_0x351055]['item']['endIndex']=_0x351055),_0x2bd47d['set'](_0x5ac800[_0x351055]['id'],_0x351055));for(const _0x7bd30d of _0x2bd47d['values']())'elementStart'===_0x5ac800[_0x7bd30d]['type']?_0x5ac800[_0x7bd30d]['item']['endIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']):'elementEnd'===_0x5ac800[_0x7bd30d]['type']&&(_0x5ac800[_0x7bd30d]['item']['startIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']));}['_processTape'](_0x23324b){for(let _0x2f93a6=0x0;_0x2f93a6<_0x23324b['length'];_0x2f93a6++){if('elementStart'===_0x23324b[_0x2f93a6]['type'])_0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6;else{if('elementEnd'===_0x23324b[_0x2f93a6]['type']){_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6;const _0x3a7f82=_0x23324b[_0x2f93a6]['item']['startIndex'];_0x23324b[_0x3a7f82]['pairId']=_0x23324b[_0x2f93a6]['id'],_0x23324b[_0x2f93a6]['pairId']=_0x23324b[_0x3a7f82]['id'];}else _0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['pairId']=null;}_0x23324b[_0x2f93a6]['markersStart']||(_0x23324b[_0x2f93a6]['markersStart']=[],_0x23324b[_0x2f93a6]['markersEnd']=[]);}}['_markInsertions'](_0x310927,_0x4ae25f){const _0x33c941=_0x310927['filter'](_0x160454=>!_0x160454['isAdded']);for(let _0x3dd940=0x0;_0x3dd940<_0x4ae25f['length'];_0x3dd940++)_0x4ae25f[_0x3dd940]['isAdded']&&(_0x33c941[_0x3dd940]['isAdded']=_0x4ae25f[_0x3dd940]['isAdded']);}['_getDiff'](_0x3c913c,_0x1faad8=null){const _0x17fef6=this['repository']['getRevision'](_0x3c913c),_0xddbb4d=_0x1faad8?this['repository']['getRevision'](_0x1faad8):null,_0x12d9fa=this['_getRevisionsRange'](_0x17fef6,_0xddbb4d),_0x3f1d08=_0x12d9fa[_0x12d9fa['length']-0x1],_0x4212a4=new Map(),_0xe34932={'model':{},'attributes':{},'changes':[]},_0x25e394=new Set(),_0x1c7773=new Map();for(let _0x51da0f=_0x12d9fa['length']-0x1;_0x51da0f>=0x0;_0x51da0f--){const _0x24cb60=_0x12d9fa[_0x51da0f];for(const _0x3c689d of Object['keys'](_0x24cb60['diffData']))if(_0x24cb60['diffData'][_0x3c689d]['attachChange']){const _0x1bb070=_0x24cb60['diffData'][_0x3c689d]['attachChange'];_0x1bb070['isAttached']?(_0x25e394['add'](_0x3c689d),_0x1c7773['has'](_0x3c689d)&&_0x1c7773['get'](_0x3c689d)['userId']==_0x1bb070['userId']?_0x1c7773['delete'](_0x3c689d):_0x1c7773['set'](_0x3c689d,_0x1bb070)):_0x1c7773['has'](_0x3c689d)?(_0x25e394['delete'](_0x3c689d),_0x1c7773['delete'](_0x3c689d)):(_0x25e394['add'](_0x3c689d),_0x1c7773['set'](_0x3c689d,_0x1bb070));}else _0x25e394['add'](_0x3c689d);}for(const _0x173240 of _0x25e394){const _0x2c8645=_0x1c7773['has'](_0x173240)&&!_0x1c7773['get'](_0x173240)['isAttached'];let _0x4110b2=_0x2c8645?_0x12d9fa['length']-0x1:0x0;const _0x3632ea=_0x2c8645?-0x1:0x1;for(;_0x12d9fa[_0x4110b2];){const _0x5d20e5=_0x12d9fa[_0x4110b2];if(_0x5d20e5['diffData'][_0x173240]){const _0x42fce7=_0x2c8645?_0x5d20e5['diffData'][_0x173240]['attributesBefore']:_0x5d20e5['diffData'][_0x173240]['attributesAfter'];_0xe34932['attributes'][_0x173240]=_0x42fce7?_0x3db99c(_0x42fce7):{};break;}_0x4110b2+=_0x3632ea;}}for(const _0x59a96e of _0x12d9fa){_0x59a96e['model']={};for(const _0x1249ab of _0x59a96e['authors'])_0x4212a4['set'](_0x1249ab['id'],_0x1249ab);for(const _0x3b2554 of _0x25e394){const _0x12c348=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['insertions']:'[]',_0x42dda2=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['deletions']:'[]';_0x59a96e['model'][_0x3b2554]={'insertions':this['_utils']['_makeModelFromViewString'](_0x12c348),'deletions':this['_utils']['_makeModelFromViewString'](_0x42dda2)};}}for(const _0x17e139 of _0x25e394){let _0x1a8a1a=null,_0x1fe866=0x0;const _0x2eb517=new Map(Array['from'](_0x17fef6['model'][_0x17e139]['insertions']['markers'])['filter'](([_0x869b6c])=>!_0x869b6c['startsWith']('revision:')));let _0x192b18=0x0;for(const _0x38036e of _0x12d9fa){const _0x1e386b=this['_makeTape'](_0x38036e['model'][_0x17e139]['insertions']);_0x38036e==_0x17fef6?(_0x1a8a1a=_0x1e386b,_0x1fe866=_0x1a8a1a['length'],_0x1a8a1a['forEach'](_0x39c08d=>{_0x39c08d['id']=_0x192b18++;}),this['_processTape'](_0x1a8a1a)):this['_markInsertions'](_0x1a8a1a,_0x1e386b);const _0x564a8e=_0x1a8a1a['filter'](_0x476bf3=>!_0x476bf3['isAdded'])['map'](_0x1f4e4b=>_0x1f4e4b['id']);let _0x3d4b81=0x0;const _0x2ce42a=this['_makeTape'](_0x38036e['model'][_0x17e139]['deletions']);_0x2ce42a['forEach'](_0x145091=>{_0x145091['isRemoved']?_0x145091['id']=_0x1fe866++:_0x145091['id']=_0x564a8e[_0x3d4b81++];}),this['_processTape'](_0x2ce42a),this['_setDistance'](_0x1a8a1a,'isAdded'),this['_setDistance'](_0x2ce42a,'isRemoved'),_0x38036e==_0x17fef6&&this['_markMarkers'](_0x1a8a1a,_0x2eb517),_0x1a8a1a=this['_joinTapes'](_0x1a8a1a,_0x2ce42a),this['_refreshStartEndIndex'](_0x1a8a1a),this['_setDistance'](_0x1a8a1a,'isRemoved');}_0x1a8a1a=_0x1a8a1a['filter'](_0x16b6cf=>!(_0x16b6cf['isAdded']&&_0x16b6cf['isRemoved']));const _0x9769da=new Map(_0x3f1d08['model'][_0x17e139]['deletions']['markers']),_0x2f5b0b=new Set(_0x2eb517['keys']());for(const _0x1cf9b2 of _0x9769da['keys']())_0x2f5b0b['delete'](_0x1cf9b2);this['_markSuggestions'](_0x1a8a1a,_0x2f5b0b),this['_fixObsoleteTags'](_0x1a8a1a),_0x1a8a1a=this['_removeMissingPairs'](_0x1a8a1a),_0x1a8a1a=this['_markMismatchedRemovedTags'](_0x1a8a1a),_0x1a8a1a=this['_removeUnsupportedChanges'](_0x1a8a1a);const {root:_0x37b439,changes:_0x3bd18e}=this['_makeModelFromTape'](_0x1a8a1a,_0x4212a4,_0x17e139);_0xe34932['model'][_0x17e139]=_0x37b439;const _0x21fc85=_0x1c7773['get'](_0x17e139);if(_0x21fc85){const _0xfa5008=_0x4212a4['get'](_0x21fc85['userId']),_0x531f4d=new r({'author':_0xfa5008,'type':_0x21fc85['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x17e139});_0x3bd18e['unshift'](_0x531f4d),_0xe34932['attributes'][_0x17e139]['revisionHistoryAttachChange']=_0x531f4d['id'];}_0xe34932['changes']=_0xe34932['changes']['concat'](_0x3bd18e);}return _0xe34932;}['_markMarkers'](_0x3dbb5c,_0x3189fb){for(let _0x1956d8=0x0;_0x1956d8<_0x3dbb5c['length'];_0x1956d8++)for(const [_0x1b1693,_0x5ecfa9]of _0x3189fb)!_0x5ecfa9['isCollapsed']&&_0x5ecfa9['start']['isEqual'](_0x3dbb5c[_0x1956d8]['previousPosition'])&&_0x3dbb5c[_0x1956d8]['markersStart']['push'](_0x1b1693),_0x5ecfa9['end']['isEqual'](_0x3dbb5c[_0x1956d8]['nextPosition'])&&_0x3dbb5c[_0x1956d8]['markersEnd']['push'](_0x1b1693);}['_joinTapes'](_0x4092e7,_0xfd4fb2){let _0x5ed476=[],_0x36c9a6=0x0,_0x25889d=0x0;for(;_0x36c9a6<_0x4092e7['length']||_0x25889d<_0xfd4fb2['length'];){const _0x3e1f24=_0x4092e7[_0x36c9a6]||{},_0x4d5f3a=_0xfd4fb2[_0x25889d]||{};if(_0x3e1f24['id']==_0x4d5f3a['id'])_0x36c9a6++,_0x25889d++,_0x5ed476['push'](_0x3e1f24);else{if(_0x4d5f3a['isRemoved']&&_0x3e1f24['isAdded']){const {commonTape:_0x376e61,iEnd:_0x503b14,jEnd:_0x2761d6}=this['_threeWayMerge'](_0x4092e7,_0x36c9a6,_0xfd4fb2,_0x25889d);_0x5ed476=_0x5ed476['concat'](_0x376e61),_0x36c9a6=_0x503b14,_0x25889d=_0x2761d6;}else _0x4d5f3a['isRemoved']?(_0x25889d++,_0x5ed476['push'](_0x4d5f3a)):(_0x36c9a6++,_0x5ed476['push'](_0x3e1f24));}}return _0x5ed476;}['_markSuggestions'](_0x458e93,_0x17fc50){const _0x1a0f53=[];for(let _0x4b8408=0x0;_0x4b8408<_0x458e93['length'];_0x4b8408++){for(let _0x603bc8=0x0;_0x603bc8<_0x458e93[_0x4b8408]['markersStart']['length'];_0x603bc8++){const _0x2f9a76=_0x458e93[_0x4b8408]['markersStart'][_0x603bc8];if(!_0x17fc50['has'](_0x2f9a76))continue;const {group:_0x5eb075,type:_0xde84d5,authorId:_0x160666}=_0x27087e(_0x2f9a76);'revision-suggestion'!=_0x5eb075||'insertion'!=_0xde84d5&&'deletion'!=_0xde84d5||(_0x1a0f53['unshift']({'type':_0xde84d5,'name':_0x2f9a76,'userId':_0x160666}),_0x458e93[_0x4b8408]['markersStart']['splice'](_0x603bc8,0x1),_0x603bc8--);}_0x423a2f(_0x458e93[_0x4b8408]);for(let _0x11dce7=0x0;_0x11dce7<_0x458e93[_0x4b8408]['markersEnd']['length'];_0x11dce7++){const _0x2e5169=_0x458e93[_0x4b8408]['markersEnd'][_0x11dce7];if(!_0x17fc50['has'](_0x2e5169))continue;const {group:_0xade1f8,type:_0x43e0e5}=_0x27087e(_0x2e5169);if('revision-suggestion'!=_0xade1f8||'insertion'!=_0x43e0e5&&'deletion'!=_0x43e0e5)continue;_0x458e93[_0x4b8408]['markersEnd']['splice'](_0x11dce7,0x1),_0x11dce7--;const _0x310d5c=_0x1a0f53['findIndex'](_0x1248e1=>_0x1248e1['name']==_0x2e5169);_0x310d5c>-0x1&&_0x1a0f53['splice'](_0x310d5c,0x1);}}function _0x27087e(_0x1bc963){const _0xdee206=_0x1bc963['split'](':');return{'group':_0xdee206[0x0],'type':_0xdee206[0x1],'subType':_0xdee206['length']>=0x5?_0xdee206[0x2]:null,'id':_0xdee206['length']<0x5?_0xdee206[0x2]:_0xdee206[0x3],'authorId':_0xdee206['length']<0x5?_0xdee206[0x3]:_0xdee206[0x4],'markerCount':0x6==_0xdee206['length']?_0xdee206[0x5]:null};}function _0x423a2f(_0x3e4630){for(let _0x107769=0x0;_0x107769<_0x1a0f53['length'];_0x107769++){if(_0x3e4630['isAdded']&&'insertion'==_0x1a0f53[_0x107769]['type']&&_0x3e4630['isAdded']['userId']==_0x1a0f53[_0x107769]['userId'])return _0x3e4630['isAddSuggestion']=_0x1a0f53[_0x107769],void delete _0x3e4630['isAdded'];if(!_0x3e4630['isAdded']&&!_0x3e4630['isRemoved']&&'deletion'==_0x1a0f53[_0x107769]['type'])return void(_0x3e4630['isRemoveSuggestion']=_0x1a0f53[_0x107769]);}}}['_setDistance'](_0x382719,_0x34cc2c){let _0x3eba99=0x0,_0x2a8db6=!0x1;const _0xdb04a2=new Map();for(const _0x2fd7ec of _0x382719)_0x2fd7ec[_0x34cc2c]?_0x2a8db6&&(_0x3eba99++,_0x2a8db6=!0x1):(_0x3eba99++,_0x2a8db6=!0x0),_0xdb04a2['set'](_0x2fd7ec['id'],_0x3eba99);for(let _0x4bbc11=0x0;_0x4bbc11<_0x382719['length'];_0x4bbc11++){if('isRemoved'==_0x34cc2c&&_0x382719[_0x4bbc11]['isAdded']||'isAdded'==_0x34cc2c&&_0x382719[_0x4bbc11]['isRemoved'])continue;if('text'==_0x382719[_0x4bbc11]['type']){_0x382719[_0x4bbc11]['distance']=0x0;continue;}const _0x39b111=_0xdb04a2['get'](_0x382719[_0x4bbc11]['pairId']),_0x4a9cf8=_0xdb04a2['get'](_0x382719[_0x4bbc11]['id']);_0x382719[_0x4bbc11]['distance']=_0x39b111-_0x4a9cf8;}}['_getRevisionsRange'](_0x6b4d4b,_0x143c9e,_0x537f60=!0x1){const _0x5c4ed9=[];let _0x4058cd=this['repository']['getIndex'](_0x6b4d4b),_0x371545=this['repository']['getIndex'](_0x143c9e);for(-0x1==_0x371545&&(_0x371545=this['repository']['_revisions']['length'],_0x537f60=!0x1);_0x4058cd<_0x371545;)_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x4058cd++;return _0x537f60&&_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x5c4ed9;}['_threeWayMerge'](_0x3bd4a4,_0x39019d,_0x920428,_0x340515){const _0x297905=this['editor']['model']['schema'];let _0x203916=_0x39019d;for(;_0x3bd4a4[_0x203916]&&_0x3bd4a4[_0x203916]['isAdded'];)_0x203916++;let _0x10577f=_0x340515;for(;_0x920428[_0x10577f]&&_0x920428[_0x10577f]['isRemoved'];)_0x10577f++;_0x51f720(_0x3bd4a4,_0x39019d,_0x203916),_0x51f720(_0x920428,_0x340515,_0x10577f);const _0x290d8c=_0x920428['slice'](_0x340515,_0x10577f)['concat'](_0x3bd4a4['slice'](_0x39019d,_0x203916));return _0x290d8c['sort']((_0x38dc31,_0x3fbdb4)=>_0x38dc31['side']!=_0x3fbdb4['side']?_0x38dc31['side']-_0x3fbdb4['side']:_0x38dc31['level']!=_0x3fbdb4['level']?_0x38dc31['level']-_0x3fbdb4['level']:_0x38dc31['distance']!=_0x3fbdb4['distance']?_0x3fbdb4['distance']-_0x38dc31['distance']:!!_0x38dc31['isAdded']!=!!_0x3fbdb4['isAdded']?-0x1==_0x38dc31['side']||0x0==_0x38dc31['side']?_0x38dc31['isAdded']?-0x1:0x1:_0x38dc31['isAdded']?0x1:-0x1:_0x38dc31['index']-_0x3fbdb4['index']),{'commonTape':_0x290d8c,'iEnd':_0x203916,'jEnd':_0x10577f};function _0x51f720(_0x28eca5,_0x13335c,_0x3b1e67){let _0xbdb034=-0x1,_0x132bab=Number['POSITIVE_INFINITY'],_0x430ad8=!0x0;for(let _0x41cea1=_0x13335c;_0x41cea1<_0x3b1e67;_0x41cea1++)if(_0x297905['isInline'](_0x28eca5[_0x41cea1]['item'])||(_0x430ad8=!0x1),_0x28eca5[_0x41cea1]['item']['startIndex']<_0x13335c&&(_0xbdb034=_0x41cea1),_0x28eca5[_0x41cea1]['item']['endIndex']>=_0x3b1e67){_0x132bab=_0x41cea1;break;}_0x430ad8&&(_0xbdb034=_0x3b1e67-0x1);for(let _0x547ae6=_0x13335c;_0x547ae6<_0x3b1e67;_0x547ae6++)_0x28eca5[_0x547ae6]['side']=_0x547ae6<=_0xbdb034?-0x1:_0x547ae6<_0x132bab?0x0:0x1,_0x28eca5[_0x547ae6]['index']=_0x547ae6;let _0x4e56f2=0x0;for(let _0x11e6fe=_0x13335c;_0x11e6fe<=_0xbdb034;_0x11e6fe++)0x0==_0x28eca5[_0x11e6fe]['distance']?_0x28eca5[_0x11e6fe]['level']=_0x4e56f2:(_0x4e56f2++,_0x28eca5[_0x11e6fe]['level']=_0x4e56f2,_0x4e56f2++);for(let _0x35706d=_0x13335c;_0x35706d<_0x3b1e67;_0x35706d++)0x0==_0x28eca5[_0x35706d]['side']&&(_0x28eca5[_0x35706d]['level']=_0x4e56f2);_0x4e56f2=0x0;for(let _0x5671cf=_0x3b1e67-0x1;_0x5671cf>=_0x132bab;_0x5671cf--)0x0==_0x28eca5[_0x5671cf]['distance']?_0x28eca5[_0x5671cf]['level']=_0x4e56f2:(_0x4e56f2--,_0x28eca5[_0x5671cf]['level']=_0x4e56f2,_0x4e56f2--);}}['_fixObsoleteTags'](_0x5f3eec){const _0x21fa4a=new Map(),_0x2a7bc0=this['editor']['model']['schema'];for(let _0x77e8ba=0x1;_0x77e8ba<_0x5f3eec['length'];_0x77e8ba++){let _0xb288bd,_0x44b60d,_0x2e7785;const _0x1da8b2=_0x5f3eec[_0x77e8ba],_0x5097e9=_0x5f3eec[_0x77e8ba-0x1];if('text'==_0x1da8b2['type'])continue;if(_0x1da8b2['type']!=_0x5097e9['type'])continue;if(!_0x2a7bc0['isBlock'](_0x5097e9['item'])||_0x2a7bc0['isLimit'](_0x5097e9['item']))continue;if(!_0x2a7bc0['isBlock'](_0x1da8b2['item'])||_0x2a7bc0['isLimit'](_0x1da8b2['item']))continue;if((_0x5f3eec[_0x77e8ba]['isAdded']||_0x5f3eec[_0x77e8ba]['isAddSuggestion'])&&_0x5f3eec[_0x77e8ba-0x1]['isRemoved'])_0xb288bd=_0x5f3eec[_0x77e8ba],_0x44b60d=_0x5f3eec[_0x77e8ba-0x1],_0x2e7785=_0x77e8ba-0x1;else{if(!_0x5f3eec[_0x77e8ba]['isRemoved']||!_0x5f3eec[_0x77e8ba-0x1]['isAdded']&&!_0x5f3eec[_0x77e8ba-0x1]['isAddSuggestion'])continue;_0xb288bd=_0x5f3eec[_0x77e8ba-0x1],_0x44b60d=_0x5f3eec[_0x77e8ba],_0x2e7785=_0x77e8ba;}const _0x524460=_0xb288bd['level']==_0x44b60d['level'],_0x52a066=Math['abs'](_0xb288bd['level'])<Math['abs'](_0x44b60d['level'])&&0x0==_0x44b60d['distance'];(_0x524460||_0x52a066)&&(_0x21fa4a['set'](_0x44b60d['id'],_0xb288bd['id']),_0x5f3eec['splice'](_0x2e7785,0x1),_0x77e8ba--,_0xb288bd['isAdded']=!0x1);}for(let _0x5883b6=0x0;_0x5883b6<_0x5f3eec['length'];_0x5883b6++)_0x21fa4a['has'](_0x5f3eec[_0x5883b6]['pairId'])&&(_0x5f3eec[_0x5883b6]['pairId']=_0x21fa4a['get'](_0x5f3eec[_0x5883b6]['pairId']));}['_removeMissingPairs'](_0x43b8e8){const _0x31c5dd=new Set(_0x43b8e8['map'](_0x71b5ae=>_0x71b5ae['id']));for(let _0xfbc3fe=0x0;_0xfbc3fe<_0x43b8e8['length'];_0xfbc3fe++)_0x31c5dd['has'](_0x43b8e8[_0xfbc3fe]['pairId'])||0x0==_0x43b8e8[_0xfbc3fe]['distance']||(_0x43b8e8[_0xfbc3fe]['isIncorrect']=!0x0);return _0x43b8e8['filter'](_0x308527=>!_0x308527['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3c13d3){const _0xc66265=new Set();for(let _0x26a8ce=0x0;_0x26a8ce<_0x3c13d3['length'];_0x26a8ce++){if(_0xc66265['has'](_0x3c13d3[_0x26a8ce]['id'])&&_0x3c13d3[_0x26a8ce]['isRemoved']&&(_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0),_0x3c13d3[_0x26a8ce]['isIncorrect'])continue;if(0x0==_0x3c13d3[_0x26a8ce]['distance'])continue;if('elementStart'!=_0x3c13d3[_0x26a8ce]['type'])continue;if(null==_0x3c13d3[_0x26a8ce]['pairId'])continue;let _0x2d9e8c=_0x26a8ce+0x1,_0x4fb51c=0x0;for(;_0x3c13d3[_0x2d9e8c]['id']!=_0x3c13d3[_0x26a8ce]['pairId'];)'elementStart'==_0x3c13d3[_0x2d9e8c]['type']?_0x4fb51c++:'elementEnd'==_0x3c13d3[_0x2d9e8c]['type']&&_0x4fb51c--,_0x2d9e8c++;if(0x0!=_0x4fb51c){if(_0x3c13d3[_0x26a8ce]['isRemoved'])_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0;else{for(;_0x2d9e8c!=_0x26a8ce;)_0x3c13d3[_0x2d9e8c]['isRemoved']&&0x0!=_0x3c13d3[_0x2d9e8c]['distance']&&(_0x3c13d3[_0x2d9e8c]['isIncorrect']=!0x0,_0xc66265['add'](_0x3c13d3[_0x2d9e8c]['pairId'])),_0x2d9e8c--;}}}return _0x3c13d3['filter'](_0x211fbe=>!_0x211fbe['isIncorrect']);}['_removeUnsupportedChanges'](_0x1ccae1){const _0x2224a6=this['editor']['model']['schema'];for(let _0x5cc695=0x0;_0x5cc695<_0x1ccae1['length'];_0x5cc695++){if(!(_0x1ccae1[_0x5cc695]['isAdded']||_0x1ccae1[_0x5cc695]['isAddSuggestion']||_0x1ccae1[_0x5cc695]['isRemoved']||_0x1ccae1[_0x5cc695]['isRemoveSuggestion']))continue;if(0x0==_0x1ccae1[_0x5cc695]['distance'])continue;const _0x473c48=_0x1ccae1[_0x5cc695]['item'];_0x2224a6['isBlock'](_0x473c48)||_0x2224a6['isLimit'](_0x473c48)||(_0x1ccae1[_0x5cc695]['isAdded']&&delete _0x1ccae1[_0x5cc695]['isAdded'],_0x1ccae1[_0x5cc695]['isAddSuggestion']&&delete _0x1ccae1[_0x5cc695]['isAddSuggestion'],_0x1ccae1[_0x5cc695]['isRemoveSuggestion']&&delete _0x1ccae1[_0x5cc695]['isRemoveSuggestion'],_0x1ccae1[_0x5cc695]['isRemoved']&&(_0x1ccae1[_0x5cc695]['isIncorrect']=!0x0));}return _0x1ccae1['filter'](_0x193e6d=>!_0x193e6d['isIncorrect']);}['_makeModelFromTape'](_0x1160e6,_0x5e0ec,_0x59b859){const _0x6ecd7a=new vt(),_0x4e6fb3=[],_0x212937=new Map(),_0xfa6fe4=this['editor']['model'],_0x476a6f=_0xfa6fe4['schema'],_0x4335ab=[_0x6ecd7a],_0x2d047c={},_0x4bd58c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3e247a=null;const _0x58669d=[0x0];for(let _0x1767ba=0x0;_0x1767ba<_0x1160e6['length'];_0x1767ba++)if('elementStart'===_0x1160e6[_0x1767ba]['type']){_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);const _0x2d47c1=new ut(_0x1160e6[_0x1767ba]['item']['name'],_0x1160e6[_0x1767ba]['item']['getAttributes']());_0x4335ab[0x0]['_appendChild'](_0x2d47c1),_0x58669d['push'](0x0),_0x4335ab['unshift'](_0x2d47c1),_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);}else'elementEnd'===_0x1160e6[_0x1767ba]['type']?(_0x4335ab['shift'](),_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x58669d['pop'](),_0x58669d[_0x58669d['length']-0x1]++,_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d)):(_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x3e247a?_0x3e247a['_data']+=_0x1160e6[_0x1767ba]['item']['data']:_0x3e247a=new gt(_0x1160e6[_0x1767ba]['item']['data'],_0x1160e6[_0x1767ba]['item']['getAttributes']()),_0x1160e6[_0x1767ba+0x1]&&'text'===_0x1160e6[_0x1767ba+0x1]['type']&&_0x33a112(_0x3e247a,_0x1160e6[_0x1767ba+0x1]['item'])||(_0x4335ab[0x0]['_appendChild'](_0x3e247a),_0x3e247a=null),_0x58669d[_0x58669d['length']-0x1]+=_0x1160e6[_0x1767ba]['item']['offsetSize'],_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d));for(let _0x880c0f=0x0;_0x880c0f<_0x1160e6['length'];_0x880c0f++){const _0x316e5d=_0x1160e6[_0x880c0f]['previousPosition'],_0x47a1e6=_0x1160e6[_0x880c0f]['nextPosition'];for(const _0x4286f0 of _0x1160e6[_0x880c0f]['markersStart'])_0x212937['set'](_0x4286f0,{'start':_0x316e5d,'end':null});_0x5b50d5('isRemoveSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAddSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isRemoved',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAdded',_0x880c0f,_0x316e5d,_0x47a1e6);for(const _0x3a09a0 of _0x1160e6[_0x880c0f]['markersEnd']){const _0x17ee6e=_0x212937['get'](_0x3a09a0);_0x17ee6e?_0x17ee6e['end']=_0x47a1e6:_0x212937['set'](_0x3a09a0,{'start':_0x47a1e6,'end':_0x47a1e6});}}for(const [_0x39dcd4,_0x3e4b12]of _0x212937){const _0x4e73f7=this['editor']['model']['createRange'](_0x3e4b12['start'],_0x3e4b12['end']);_0x6ecd7a['markers']['set'](_0x39dcd4,_0x4e73f7);}return _0x4e6fb3['sort']((_0x429cdf,_0x15002a)=>{const _0x1060dd=_0x6ecd7a['markers']['get']('revision:'+_0x429cdf['id']),_0x2c8c22=_0x6ecd7a['markers']['get']('revision:'+_0x15002a['id']);return _0x1060dd['start']['isBefore'](_0x2c8c22['start'])?-0x1:_0x1060dd['start']['isAfter'](_0x2c8c22['start'])?0x1:_0x1060dd['end']['isBefore'](_0x2c8c22['end'])?-0x1:_0x1060dd['end']['isAfter'](_0x2c8c22['end'])?0x1:'add'===_0x429cdf['type']?-0x1:0x1;}),{'root':_0x6ecd7a,'changes':_0x4e6fb3};function _0x5b50d5(_0x586438,_0x417917,_0x69dc10,_0x5bf8a5){const _0x536e49=!!_0x1160e6[_0x417917][_0x586438],_0x19a369=_0x536e49?_0x1160e6[_0x417917][_0x586438]['userId']:null,_0xd6b262=_0x417917===_0x1160e6['length']-0x1,_0x5f4cdd=_0x4bd58c[_0x586438][0x0],_0x42447d=_0x476a6f['isObject'](_0x1160e6[_0x417917]['item']);!_0x2d047c[_0x586438]&&_0x536e49?_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}:_0x2d047c[_0x586438]&&!_0x536e49?(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null):_0x2d047c[_0x586438]&&_0x536e49&&_0x2d047c[_0x586438]['userId']!==_0x19a369&&(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x5f4cdd&&_0x5f4cdd['userId']===_0x2d047c[_0x586438]['userId']||_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}),_0x2d047c[_0x586438]&&_0x42447d&&('elementStart'!==_0x1160e6[_0x417917]['type']||_0x5f4cdd&&_0x5f4cdd['userId']===_0x19a369||_0x4bd58c[_0x586438]['unshift']({'userId':_0x19a369,'object':_0x1160e6[_0x417917]['item'],'change':_0x2d047c[_0x586438]}),'elementEnd'===_0x1160e6[_0x417917]['type']&&_0x5f4cdd&&_0x5f4cdd['object']===_0x1160e6[_0x417917]['item']&&(_0x4bd58c[_0x586438]['shift'](),_0x2d047c[_0x586438]=_0x5f4cdd['change'])),_0x2d047c[_0x586438]&&_0xd6b262&&(_0x2d047c[_0x586438]['end']=_0x5bf8a5,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null);}function _0x324c54({start:_0x50396f,end:_0xe470a2,tapeItem:_0x3a53e1,userId:_0x24631c,type:_0x333271}){const _0x17311d=_0x3a53e1['item'],_0x42468d=_0xfa6fe4['schema']['isBlock'](_0x17311d)&&!_0xfa6fe4['schema']['isLimit'](_0x17311d),_0x1143f0=_0x50396f['nodeAfter']==_0xe470a2['parent']&&_0xe470a2['isAtStart'];if(_0x42468d&&_0x1143f0)return;const _0x543bfe=_0xfa6fe4['createRange'](_0x50396f,_0xe470a2),_0xfe8940=_0x5e0ec['get'](_0x24631c),_0x5f42f1=new r({'author':_0xfe8940,'type':'isAdded'==_0x333271||'isAddSuggestion'==_0x333271?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x333271||'isRemoveSuggestion'==_0x333271},'createdAt':new Date(),'rootName':_0x59b859});_0x4e6fb3['push'](_0x5f42f1),_0x6ecd7a['markers']['set']('revision:'+_0x5f42f1['id'],_0x543bfe);}function _0x33a112(_0x4d157f,_0x207821){const _0x3ed32b=_0x4d157f['getAttributes'](),_0x30749c=_0x207821['getAttributes']();for(const _0x58630c of _0x3ed32b){if(_0x58630c[0x1]!==_0x207821['getAttribute'](_0x58630c[0x0]))return!0x1;_0x30749c['next']();}return _0x30749c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xbfc587=>{const _0xb427cf=_0xbfc587['markerName']['split'](':')[0x1],_0x360e31=this['_getChangeFromId'](_0xb427cf);if(!_0x360e31)return null;const _0x1f4ead='add'==_0x360e31['type']?'insertion':'deletion',_0x5b2127=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f4ead];return _0x360e31['data']['isSuggestion']&&_0x5b2127['push']('ck-suggestion-marker-'+_0x1f4ead+'-new'),this['activeChange']==_0x360e31&&_0x5b2127['push']('ck-suggestion-marker--active'),{'classes':_0x5b2127,'attributes':{'data-change-id':_0xb427cf}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x52c16b=>{_0x52c16b['on']('element:pre',(_0x16eabd,_0x3ab43d,_0xc93295)=>{const _0x52a5df=_0x3ab43d['viewItem']['getChild'](0x0);if(!_0x52a5df||!_0x52a5df['is']('element','code'))return;if(!_0xc93295['consumable']['consume'](_0x52a5df,{'attributes':['vid_start','vid_end']}))return;const _0x4d113d=_0x3ab43d['modelRange']['start']['nodeAfter'];_0xc93295['writer']['setAttribute']('vid_start',_0x52a5df['getAttribute']('vid_start'),_0x4d113d),_0xc93295['writer']['setAttribute']('vid_end',_0x52a5df['getAttribute']('vid_end'),_0x4d113d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3f2fd0=>{_0x3f2fd0['on']('element',(_0x17b8fc,_0x58042b,_0x3f49ab)=>{if(!_0x3f49ab['consumable']['consume'](_0x58042b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58042b['modelRange']['isCollapsed'])return;const _0x448b76=_0x58042b['modelRange']['start']['nodeAfter'];_0x448b76['hasAttribute']('vid_start')||_0x448b76['hasAttribute']('vid')||(_0x3f49ab['writer']['setAttribute']('vid_start',_0x58042b['viewItem']['getAttribute']('vid_start'),_0x448b76),_0x3f49ab['writer']['setAttribute']('vid_end',_0x58042b['viewItem']['getAttribute']('vid_end'),_0x448b76));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x16c60e=>_0x16c60e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x209aa7,[,_0x68b30e])=>{['vid_start','vid_end','vid']['includes'](_0x68b30e)&&(_0x209aa7['return']=!0x0,_0x209aa7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b1865=>{_0x5b1865['on']('attribute:vid',(_0x4576e0,_0x3db5a5,_0xbef01d)=>{if('\x20'!=_0x3db5a5['item']['data']||_0x3db5a5['item']['parent']['maxOffset']>0x1)return;if(!_0xbef01d['consumable']['consume'](_0x3db5a5['item'],_0x4576e0['name']))return;const _0x5c8aae=_0xbef01d['writer'],_0x53aed6=_0xbef01d['mapper']['toViewRange'](_0x3db5a5['range']);_0x5c8aae['wrap'](_0x53aed6,_0x5c8aae['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x26c606){const _0x613e=_0x26c606['plugins']['get']('RevisionViewer');return(_0x3ed73f,_0x4da218,_0xab0edc)=>{const _0x1bf1a9=_0x4da218['markerName']['split'](':')[0x1],_0x53f4aa=_0x613e['_getChangeFromId'](_0x1bf1a9);if(!_0x53f4aa)return null;const _0x249416='add'==_0x53f4aa['type']?'split':'merge';if(!_0xab0edc['consumable']['test'](_0x4da218['markerRange'],_0x3ed73f['name']))return;const _0x232eb8=_0x4da218['markerRange']['getWalker'](),_0x47a00f=_0x4da218['markerRange']['start'],_0xa6b129=_0x26c606['model']['schema'];let _0x3bc791=null,_0x4564a5=null,_0x420592=!0x1,_0x562d8d=!0x1;for(const _0x50642f of _0x232eb8){const _0x5186e0=_0x50642f['item'];_0x420592=_0x420592||_0xa6b129['isContent'](_0x5186e0);const _0x113bfe=_0xab0edc['mapper']['toViewElement'](_0x5186e0);if(_0x113bfe&&_0x113bfe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50642f['type']&&(_0xa6b129['isBlock'](_0x5186e0)&&!_0xa6b129['isLimit'](_0x5186e0)&&(_0x5186e0['nextSibling']||_0x47a00f['isAtEnd']?_0x3bc791&&_0x3bc791['parent']==_0x5186e0||(_0x3bc791=_0x5186e0,_0x194772(_0x50642f['previousPosition']),_0x562d8d=!0x0):_0x4564a5=_0x4564a5||_0x50642f['previousPosition']));}function _0x194772(_0x743ed7){const _0x1df054=_0xab0edc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x249416}),_0x4599c1=_0xab0edc['mapper']['toViewPosition'](_0x743ed7);_0x53f4aa['data']['isSuggestion']&&_0xab0edc['writer']['addClass']('ck-suggestion-marker-'+_0x249416+'-new',_0x1df054),_0x613e['activeChange']==_0x53f4aa&&_0xab0edc['writer']['addClass']('ck-suggestion-marker--active',_0x1df054),_0xab0edc['writer']['insert'](_0x4599c1,_0x1df054),_0xab0edc['mapper']['bindElementToMarker'](_0x1df054,_0x4da218['markerName']);}_0x420592||_0x562d8d||!_0x4564a5||_0x194772(_0x4564a5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2796a6,_0x25459e,_0x2910c6)=>{const _0xb28491=_0x2910c6['mapper']['markerNameToElements'](_0x25459e['markerName']);if(_0xb28491){for(const _0x1aa3a3 of _0xb28491)(_0x1aa3a3['hasClass']('ck-suggestion-marker-split')||_0x1aa3a3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2910c6['mapper']['unbindElementFromMarkerName'](_0x1aa3a3,_0x25459e['markerName']),_0x2910c6['writer']['remove'](_0x1aa3a3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2a62b5,_0x23e0c9,_0xdb1653)=>{const _0x2a1b77=_0x23e0c9['markerName']['split'](':')[0x1],_0x16d8eb=this['_getChangeFromId'](_0x2a1b77);if(!_0x16d8eb)return null;const _0x32b1af='add'==_0x16d8eb['type']?'split':'merge';if(_0xdb1653['consumable']['test'](_0x23e0c9['markerRange'],_0x2a62b5['name']))for(const _0x1dabb3 of _0x23e0c9['markerRange']['getItems']()){if(!_0x1dabb3['is']('element','softBreak'))continue;const _0x3e6aa7=_0xdb1653['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b1af}),_0x9e350c=_0xdb1653['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1dabb3));_0x16d8eb['data']['isSuggestion']&&_0xdb1653['writer']['addClass']('ck-suggestion-marker-'+_0x32b1af+'-new',_0x3e6aa7),this['activeChange']==_0x16d8eb&&_0xdb1653['writer']['addClass']('ck-suggestion-marker--active',_0x3e6aa7),_0xdb1653['writer']['insert'](_0x9e350c,_0x3e6aa7),_0xdb1653['mapper']['bindElementToMarker'](_0x3e6aa7,_0x23e0c9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3382c1=>{for(const _0xf57e5f of this['editor']['model']['document']['getRootNames']()){const _0x46cd19=this['editor']['model']['document']['getRoot'](_0xf57e5f),_0x123df5=this['editor']['editing']['view']['document']['getRoot'](_0xf57e5f);if(_0x123df5){const _0x31912f=_0x46cd19['getAttribute']('revisionHistoryAttachChange');if(_0x3382c1['removeAttribute']('data-change-id',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-add',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-remove',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root--active',_0x123df5),_0x31912f){const _0x46d4cb=this['_getChangeFromId'](_0x31912f);if(!_0x46d4cb)return null;_0x3382c1['setAttribute']('data-change-id',_0x31912f,_0x123df5),_0x3382c1['addClass']('ck-revision-history-root-'+_0x46d4cb['type'],_0x123df5),this['activeChange']==_0x46d4cb&&_0x3382c1['addClass']('ck-revision-history-root--active',_0x123df5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x43a3f9=>'revision-comment:'+_0x43a3f9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x374fde=>'revision-suggestion:'+_0x374fde,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38f36a=>({'name':'suggestion:'+_0x38f36a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x408aca=>{const _0x57188e=_0x408aca['markerName']['split'](':')[0x1];return'insertion'!=_0x57188e&&'deletion'!=_0x57188e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x57188e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xea17f2,_0xa95624,_0x346893)=>{const _0x30d925=_0x346893['mapper']['markerNameToElements'](_0xa95624['markerName']);if(_0x30d925){for(const _0x253dea of _0x30d925)_0x253dea['is']('uiElement')&&(_0x346893['mapper']['unbindElementFromMarkerName'](_0x253dea,_0xa95624['markerName']),_0x346893['writer']['remove'](_0x253dea));}},{'priority':'high'});}['_getChangeFromId'](_0x4fdd33){return this['_changeIdToChange']['get'](_0x4fdd33);}['_getViewForChange'](_0x226e92){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x226e92),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x45c590,_0x55c0b7,_0x5901e7,_0x5e419e)=>{_0x5e419e&&this['_balloon']['remove'](_0x5e419e),_0x5901e7&&(this['_balloon']['add']({'view':_0x5901e7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5dd109=this['editor']['editing'],_0x2bc750=this['_getChangeFromId'](_0x5901e7['changeId']);let _0x1ca8a5;if(_0x2bc750['data']['isOnRoot']){const _0x3dd40b=_0x5dd109['view']['getDomRoot'](_0x2bc750['rootName']);_0x1ca8a5=Array['from'](_0x3dd40b['getClientRects']());}else{const _0x4fb979=this['editor']['model']['markers']['get']('revision:'+_0x5901e7['changeId']);_0x1ca8a5=Array['from'](_0x5dd109['mapper']['markerNameToElements'](_0x4fb979['name']))['map'](_0x4b872e=>_0x5dd109['view']['domConverter']['mapViewToDom'](_0x4b872e))['map'](_0x1de8cc=>Array['from'](_0x1de8cc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ca8a5[0x0];return _0x1ca8a5['find'](_0x3a0797=>_0x3a0797['top']-0x3<=this['_activeViewTarget']['y']&&_0x3a0797['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3a0797['left']-0x3<=this['_activeViewTarget']['x']&&_0x3a0797['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ca8a5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32c758,_0x3ba196,_0x42056e,_0x1c13ac)=>{this['activeView']=_0x42056e?this['_getViewForChange'](_0x42056e):null,this['editor']['model']['change'](()=>{const _0x180f45=this['editor']['editing'];_0x1c13ac&&(_0x1c13ac['data']['isOnRoot']?_0x180f45['view']['change'](_0x42d7cc=>{_0x42d7cc['removeClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x1c13ac['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x1c13ac['id'])),_0x42056e&&(_0x42056e['data']['isOnRoot']?_0x180f45['view']['change'](_0xf03b86=>{_0xf03b86['addClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x42056e['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x42056e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x397d39,_0x54a7d5)=>{if(this['activeChange'])return;const _0x424556=this['_findChangeIdFromDomTarget'](_0x54a7d5['target']),_0x1028ac=this['_changeIdToChange']['get'](_0x424556);_0x1028ac?(this['_activeViewTarget']={'x':_0x54a7d5['domEvent']['x'],'y':_0x54a7d5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1028ac)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xc4501d,_0x16d967)=>{const _0x308884=this['_findChangeIdFromDomTarget'](_0x16d967['target']),_0x494da6=this['_changeIdToChange']['get'](_0x308884);_0x494da6?(this['_activeViewTarget']={'x':_0x16d967['domEvent']['x'],'y':_0x16d967['domEvent']['y']},_0x494da6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x494da6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fe335){do{const _0x3929d1=_0x1fe335['getAttribute']('data-change-id');if(_0x3929d1)return _0x3929d1;_0x1fe335=_0x1fe335['parent'];}while(_0x1fe335);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c5bb5=>{for(const _0x580e86 of this['editor']['model']['markers'])_0x5c5bb5['removeMarker'](_0x580e86);});}}function X(_0x1adb24,_0x1cb4e3){return(_0x57a8aa,_0x5bbd7d,_0x1afe0e)=>{if(!_0x1afe0e['consumable']['test'](_0x5bbd7d['markerRange'],_0x57a8aa['name']))return;const _0x2378e=_0x5bbd7d['markerRange']['getWalker'](),_0x30ce8c=_0x5bbd7d['markerRange']['start'],_0x101aad=_0x1adb24['model']['schema'];let _0x2ba4c4=null,_0x59f851=null,_0x46a3e0=!0x1,_0x12fc6b=!0x1;for(const _0xb2af1d of _0x2378e){const _0x214234=_0xb2af1d['item'];_0x46a3e0=_0x46a3e0||_0x101aad['isContent'](_0x214234);const _0x115372=_0x1afe0e['mapper']['toViewElement'](_0x214234);if(_0x115372&&_0x115372['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb2af1d['type']&&(_0x101aad['isBlock'](_0x214234)&&!_0x101aad['isLimit'](_0x214234)&&(_0x214234['nextSibling']||_0x30ce8c['isAtEnd']?_0x2ba4c4&&_0x2ba4c4['parent']==_0x214234||(_0x2ba4c4=_0x214234,_0x45322b(_0xb2af1d['previousPosition']),_0x12fc6b=!0x0):_0x59f851=_0x59f851||_0xb2af1d['previousPosition']));}function _0x45322b(_0x3a5cd1){const _0x2dae4c=_0x1afe0e['mapper']['toViewPosition'](_0x3a5cd1),_0x3c6a75=_0x1afe0e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1cb4e3});_0x1afe0e['writer']['insert'](_0x2dae4c,_0x3c6a75),_0x1afe0e['mapper']['bindElementToMarker'](_0x3c6a75,_0x5bbd7d['markerName']);}_0x46a3e0||_0x12fc6b||!_0x59f851||_0x45322b(_0x59f851);};}class mt extends _0x1f8cb8{constructor(_0x4c5c7b){super(_0x4c5c7b);const _0x344992=_0x4c5c7b['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x344992,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x344992,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x8ae0e6=this['editor'],_0x161683=_0x8ae0e6['plugins']['get'](m),_0x83e91=_0x161683['isReady']?_0x161683['diff']['newRevisionId']:null;_0x8ae0e6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x83e91);}['refresh'](){const {isReady:_0x3b7f93,isEnabled:_0x98c7ee,repository:_0x403a59,diff:_0x5e5e4c}=this['editor']['plugins']['get'](m),_0x3b70f1=_0x5e5e4c&&_0x403a59['getLaterVisibleRevision'](_0x5e5e4c['newRevisionId']);this['isEnabled']=_0x3b7f93&&_0x98c7ee&&Boolean(_0x3b70f1);}}class wt extends _0x1f8cb8{['_step'];constructor(_0x2a7551,{direction:_0x36e20b}){super(_0x2a7551);const _0x5f3200=_0x2a7551['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x36e20b?0x1:-0x1,this['listenTo'](_0x5f3200,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x543c21=this['editor'],_0x8d4a13=_0x543c21['plugins']['get'](m),{isNavigationMode:_0x226c93,currentChangeNumber:_0x4d64cb}=_0x8d4a13;let _0x27fc55;if(_0x8d4a13['activeChange']=_0x226c93?_0x8d4a13['diff']['changes']['get'](_0x4d64cb+this['_step']):_0x8d4a13['diff']['changes']['first'],_0x8d4a13['activeChange']['data']['isOnRoot'])_0x27fc55=_0x543c21['editing']['view']['getDomRoot'](_0x8d4a13['activeChange']['rootName']);else{const _0x52c579=_0x543c21['model']['markers']['get']('revision:'+_0x8d4a13['activeChange']['id']);_0x27fc55=_0x4c8852(_0x543c21['editing'],_0x52c579);}_0x17044c({'target':_0x27fc55,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x251aba,currentChangeNumber:_0x3767b6,numberOfChanges:_0xbd5f16,isReady:_0x1f14b0,isEnabled:_0x21f4bc}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x21f4bc&&_0x1f14b0&&_0xbd5f16)&&(!_0x251aba||(0x1===this['_step']?_0x3767b6<_0xbd5f16-0x1:_0x3767b6>0x0));}}class _i extends _0x65ffd8{constructor(_0x40dd87){super(_0x40dd87);const _0x4ccb00=this['bindTemplate'],_0x11ad7b=new te(_0x40dd87),_0x484860=new te(_0x40dd87);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',(_0x594f7a,_0x37170e)=>_0x594f7a&&_0x37170e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c81a2,_0x156481,_0x44d6ce,_0x203a39)=>{if(!_0x5c81a2)return g(_0x40dd87,'Loading...');if(!_0x44d6ce)return g(_0x40dd87,'No\x20changes');const _0x5c1dbb=g(_0x40dd87,'NUMBER_OF_CHANGES',_0x44d6ce);return _0x203a39?g(_0x40dd87,'X_OF_Y_CHANGES',[_0x156481+0x1,_0x44d6ce]):_0x5c1dbb;}),_0x11ad7b['set']({'label':g(_0x40dd87,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4716c}),_0x484860['set']({'label':g(_0x40dd87,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xbcd431}),_0x11ad7b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x484860['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x11ad7b['on']('execute',()=>this['fire']('execute','backward')),_0x484860['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',_0x4ccb00['if']('_isStatusLabelVisible','ck-hidden',_0x4b217f=>!_0x4b217f)]},'children':[{'text':_0x4ccb00['to']('isNavigationMode',_0x12b76a=>_0x12b76a?g(_0x40dd87,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x40dd87,'Total')+':\x20')}]},{'text':_0x4ccb00['to']('_statusText')}]},new _0x5f583d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x11ad7b,_0x484860]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x300af=this['editor']['editing']['view'];_0x300af['change'](_0x8722e3=>{for(const _0x4cc1e7 of _0x300af['document']['roots'])_0x8722e3['addClass'](le,_0x4cc1e7);});}['hide'](){const _0x5b1c8a=this['editor']['editing']['view'];_0x5b1c8a['change'](_0x3c51ed=>{for(const _0x49d3c3 of _0x5b1c8a['document']['roots'])_0x3c51ed['removeClass'](le,_0x49d3c3);});}}class R extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2db64b=this['editor'],_0xaa8fb9=_0x2db64b['plugins']['get'](m),_0x161241=_0x2db64b['plugins']['get'](ge);_0x2db64b['ui']['componentFactory']['add']('exitToEditing',_0x5ea903=>{const _0x545a95=new te(_0x5ea903);return _0x545a95['set']({'label':g(_0x5ea903,'Back\x20to\x20editing'),'icon':_0xf13ab6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x545a95,'execute',()=>{_0x2db64b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x545a95;}),_0x2db64b['ui']['componentFactory']['add']('restoreRevision',_0xa1601f=>{const _0x2fc3f0=new te(_0xa1601f);return _0x2fc3f0['set']({'label':g(_0xa1601f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2fc3f0['bind']('isEnabled')['to'](_0x2db64b['commands']['get']('restoreRevision')),this['listenTo'](_0x2fc3f0,'execute',()=>_0x2db64b['execute']('restoreRevision')),_0x2fc3f0;}),_0x2db64b['ui']['componentFactory']['add']('changesNavigation',_0x3b7fa9=>{const _0x329be5=new _i(_0x3b7fa9),_0x4811fb=_0x2db64b['commands']['get']('showPreviousChange'),_0x4d0dfc=_0x2db64b['commands']['get']('showNextChange');return _0x329be5['bind']('isBackwardNavigationEnabled')['to'](_0x4811fb,'isEnabled'),_0x329be5['bind']('isForwardNavigationEnabled')['to'](_0x4d0dfc,'isEnabled'),_0x329be5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xaa8fb9),this['listenTo'](_0x329be5,'execute',(_0x419088,_0x446385)=>{_0x2db64b['execute']('forward'===_0x446385?'showNextChange':'showPreviousChange');}),_0x329be5;}),_0x161241['show'](),_0xaa8fb9['on']('change:isReady',(_0x1b39fb,_0x23e035,_0x537740)=>{_0x537740?_0x161241['hide']():_0x161241['show']();});}}class at extends ts{['_resizeObserver']=null;constructor(_0x17da4b,_0x5387c3){super(_0x17da4b,_0x5387c3);const _0x3436a2=this['bindTemplate'];this['set']({'label':g(_0x17da4b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x17da4b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3436a2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x26beea=this['fieldView']['element'];this['_tooltipString']=_0x26beea['scrollWidth']>_0x26beea['clientWidth']&&_0x26beea['value']||'';}}class si extends _0x65ffd8{constructor(_0x3cac22,_0x4a69e2,_0x3291ae){super(_0x3cac22);const _0x2fe7be=new _0x4e1780();_0x2fe7be['set']({'content':_0x2044fd,'viewBox':'0\x200\x2011\x2010'});const _0x49234c=['ck','ck-revision-history-sidebar__revision-author'];_0x3291ae&&_0x49234c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd21fa8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x3cac22,_0x3291ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x2fe7be,_0x4a69e2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x49234c},'children':_0xd21fa8});}}function oi(_0x105620,_0xe8473){const _0x2d6556=_0x105620['bindTemplate'],_0x5e502e=_0x105620['locale'],_0x49b700=_0x328c25(_0x5e502e);_0x49b700['panelPosition']='sw';const _0x30b163=function(_0x53237a,_0x35ec49){const _0x3b2fe8=function(_0x74bd20,_0x4ebd0a){const _0xd7ed7=_0x74bd20['locale'],_0x26f1df={'Compare\x20against\x20selected':g(_0xd7ed7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xd7ed7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xd7ed7,'Restore\x20this\x20revision')};return _0x4ebd0a['map'](_0x562abe=>{const _0x566e0b=_0x26f1df[_0x562abe['name']];return _0x566e0b&&_0x566e0b!==_0x562abe['name']&&(_0x562abe['name']=_0x566e0b),_0x562abe;});}(_0x53237a,_0x35ec49),_0x30705e=new _0x481a5e();for(const _0x21b0c5 of _0x3b2fe8){const _0x35533f={'type':'button','model':new to({'label':_0x21b0c5['name'],'class':_0x21b0c5['class'],'withText':!0x0,'role':'menuitem','_action':_0x21b0c5['action']})};_0x35533f['model']['bind']('isEnabled')['to'](_0x53237a,'isActionsDropdownOpen',_0x3a2624=>'function'!=typeof _0x21b0c5['isEnabled']||(!_0x3a2624||_0x21b0c5['isEnabled'](_0x53237a))),_0x30705e['add'](_0x35533f);}return _0x30705e;}(_0x105620,_0xe8473);return _0x105620['bind']('isActionsDropdownOpen')['to'](_0x49b700,'isOpen'),_0x49b700['buttonView']['set']({'label':g(_0x5e502e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8c16b}),_0x49b700['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2d6556['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2d6556['to'](_0x3e6903=>_0x3e6903['stopPropagation']())}}),_0x49b700['on']('execute',_0x3d05cd=>{_0x105620['isReady']&&'function'==typeof _0x3d05cd['source']['_action']&&_0x3d05cd['source']['_action'](_0x105620);}),_0x3b7d0a(_0x49b700,_0x30b163,{'role':'menu'}),_0x49b700['listenTo'](_0x105620,'change:isActionsDropdownOpen',(_0x455464,_0x1e8446,_0x4c5fd3)=>{if(_0x4c5fd3)for(const _0x465f1d of _0x49b700['listView']['items']){const _0xfe067e=_0x465f1d['children']['first'],_0x38e7d7=_0xe8473['find'](_0x4f90e7=>_0x4f90e7['action']===_0xfe067e['_action'])['isVisible'];_0x465f1d['isVisible']=void 0x0===_0x38e7d7||_0x38e7d7(_0x105620);}}),_0x49b700;}class hi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(_0x65ffd8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x470eac,_0x1965ae,_0x161aaa,_0x2d8d6a){super(_0x470eac);const _0x1c2019=this['bindTemplate'],_0x3c98dd=function(_0x4c89de,_0x173b3f){const _0x1d4007=Array['from'](_0x173b3f['authors'])['filter'](_0x3856a5=>_0x3856a5!=_0x173b3f['creator']);return _0x173b3f['creator']&&_0x1d4007['unshift'](_0x173b3f['creator']),_0x1d4007['map'](_0x1ba5e7=>new si(_0x4c89de,_0x1ba5e7,_0x1ba5e7==_0x173b3f['creator']));}(_0x470eac,_0x1965ae);this['id']=_0x1965ae['id'],this['_revision']=_0x1965ae,this['_requireRevisionName']=_0x2d8d6a,this['bind']('name','createdAt')['to'](_0x1965ae),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x297ea2=>{return _0x1eb3ca=_0x470eac['uiLanguage'],(_0x5c8e8f=_0x297ea2)['toLocaleDateString'](_0x1eb3ca,{'month':'long','day':'numeric'})+',\x20'+_0x5c8e8f['toLocaleTimeString'](_0x1eb3ca,{'hour':'numeric','minute':'numeric'});var _0x1eb3ca,_0x5c8e8f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x470eac,_0x27b255),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2247e2=>_0x2247e2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x344652,_0x48321f)=>_0x344652&&_0x48321f),this['revisionActionsView']=_0x161aaa&&_0x161aaa['length']?oi(this,_0x161aaa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1c2019['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c2019['if']('isEnabled','ck-disabled',_0x11a349=>!_0x11a349),_0x1c2019['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1c2019['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1c2019['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':_0x1c2019['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':_0x3c98dd}]},this['revisionActionsView']],'on':{'click':_0x1c2019['to'](_0x58bb6b=>{_0x58bb6b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x59f10d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x59f10d,'change',()=>{this['_requireRevisionName']&&!_0x59f10d['value']||this['fire']('setName',{'id':this['id'],'name':_0x59f10d['value']}),_0x59f10d['value']||(_0x59f10d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x16ab14,_0x5a1cf6){const _0x4a00b8=_0x4a3d54['fromJSDate'](_0x16ab14)['setLocale'](_0x5a1cf6),_0x2521b1=_0x4a3d54['local'](),_0x399e4c=_0x2521b1['minus']({'days':0x1})['startOf']('day');let _0x4fda29,_0x3bd9d0;return _0x4a00b8['hasSame'](_0x2521b1,'day')?(_0x4fda29=_0x4a00b8['startOf']('day')['toJSDate'](),_0x3bd9d0=_0x4a00b8['toRelativeCalendar']()):_0x4a00b8['hasSame'](_0x399e4c,'day')?(_0x4fda29=_0x399e4c['toJSDate'](),_0x3bd9d0=_0x4a00b8['toRelativeCalendar']()):_0x4a00b8['hasSame'](_0x2521b1,'week')?(_0x4fda29=_0x4a00b8['startOf']('week')['toJSDate'](),_0x3bd9d0=_0x4a00b8['weekdayLong']||''):_0x4a00b8['hasSame'](_0x2521b1,'year')?(_0x4fda29=_0x4a00b8['startOf']('month')['toJSDate'](),_0x3bd9d0=_0x4a00b8['monthLong']||''):(_0x4fda29=_0x4a00b8['startOf']('year')['toJSDate'](),_0x3bd9d0=String(_0x4a00b8['year'])),{'startDate':_0x4fda29,'localizedPeriodName':_0x3bd9d0};}class di extends _0x65ffd8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5a2158,_0x245cfb,_0x435f7b,_0x1b0325){super(_0x5a2158);const _0x5b3cc2=ai(_0x245cfb,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x245cfb,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x435f7b,this['_requireRevisionName']=_0x1b0325,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':_0x5b3cc2}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x39a880){const _0x592f76=new hi(this['locale'],_0x39a880,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x592f76);}['removeRevision'](_0x11e3bd){const _0xfcec3d=this['revisionViews']['find'](_0x33943d=>_0x33943d['id']===_0x11e3bd['id']);this['revisionViews']['remove'](_0xfcec3d);}}class as extends _0x65ffd8{constructor(_0x36db98){super(_0x36db98);const _0x167e64=new _0x4e1780();_0x167e64['content']=_0x43b690,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x167e64,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x36db98,'Revision\x20history')]}]});}}class ni extends _0x65ffd8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x22cfac,_0x3c3878,_0x534b8d,_0x50e197){super(_0x22cfac);const _0x26bb58=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3c3878,this['_revisionActions']=_0x534b8d,this['_requireRevisionName']=_0x50e197,this['on']('select',(_0x4265cd,_0x38965f)=>{this['fire']('revisionSelected',_0x38965f);}),this['on']('setName',(_0x1ddd59,_0x295ee6)=>{this['fire']('revisionSetName',_0x295ee6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x22cfac),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x26bb58['if']('isEnabled','ck-disabled',_0x2686a2=>!_0x2686a2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xa91e26 of this['_revisions'])this['_addRevision'](_0xa91e26);this['_revisions']['on']('add',(_0x926fb7,_0x562637)=>{this['_addRevision'](_0x562637);}),this['_revisions']['on']('remove',(_0xb787df,_0x14245b)=>{this['_removeRevision'](_0x14245b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3fe4ff=>_0x3fe4ff['revisionViews']['map'](_0x362296=>_0x362296))['flat']();}['selectRevision'](_0x115ade){for(const _0xba29ec of this['revisionViews'])_0x115ade&&_0x115ade['id']===_0xba29ec['id']?_0xba29ec['select']():_0xba29ec['deselect']();}['highlightRevisions'](_0xb398ed){for(const _0x2361b9 of this['revisionViews'])_0xb398ed['some'](({id:_0x9f9def})=>_0x9f9def===_0x2361b9['id'])?_0x2361b9['highlight']():_0x2361b9['unhighlight']();}['_addRevision'](_0x24a6dc){const _0x215bcd=ai(_0x24a6dc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1a7a38=this['timePeriodViews']['get'](0x0);_0x1a7a38&&_0x1a7a38['startDate']['getTime']()===_0x215bcd['getTime']()||(_0x1a7a38=new di(this['locale'],_0x215bcd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1a7a38)),_0x1a7a38['addRevision'](_0x24a6dc);}['_removeRevision'](_0x438ac0){const _0x58b6c1=ai(_0x438ac0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x58b6c1)['removeRevision'](_0x438ac0);}['_getTimePeriodViewByStartDate'](_0x12e29d){return this['timePeriodViews']['find'](_0x5dc3d4=>_0x5dc3d4['startDate']['getTime']()===_0x12e29d['getTime']());}}class d extends _0x4af0c1{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
30
|
-
_0x22f4bc(_0x10b719){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2af855,_0x52b1da){super(_0x52b1da),this['sourceElement']=_0x2af855,this['model']['document']['createRoot']();const _0x3aefd0=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3aefd0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5c4616,_0x1dc2a4){const _0x1ec451=new this(_0x5c4616,_0x1dc2a4);return await _0x1ec451['initPlugins'](),await _0x1ec451['ui']['init'](_0x5c4616),await _0x1ec451['data']['init'](_0x1ec451['config']['get']('initialData')||''),_0x1ec451['fire']('ready'),_0x1ec451;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4d12af{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52fa8){function _0x545221(_0x1fea7b){return _0x1fea7b['map'](_0xf171cb=>String['fromCharCode'](_0xf171cb))['join']('');}super(_0x52fa8),this['result']='end',_0x52fa8[_0x545221([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545221([0x76,0x69,0x65,0x77])][_0x545221([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545221([0x61,0x75,0x74,0x6f]),_0x52fa8[_0x545221([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x545221([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545221([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x545221([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x545221([0x6f,0x6b])});}}class k extends _0x4d12af{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x28d04c){if(super(_0x28d04c),!this['editor']['config']['get']('revisionHistory'))throw new _0x17594f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4db2df=>this['_showRevisionViewer']({..._0x4db2df,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x24b40b=>this['_closeRevisionViewer'](_0x24b40b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ed08b=>this['_restoreRevision'](_0x1ed08b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x26dd0f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x26dd0f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x9472f3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x9472f3);}['getRevision'](_0x2e146a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2e146a);}['getRevisions'](_0x555dd5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x555dd5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x333128=this['editor'],_0x399657=_0xafe200(_0x333128,p),_0x2a9948=_0x333128['plugins']['get']('RevisionTracker'),_0x16d231=_0x333128['plugins']['get']('Users')['users'];return _0x399657['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399657['lazyRoots'],(_0x399657['plugins']['push'](_t,m,R,class extends _0x4d12af{static get['requires'](){return[m,'Users'];}['init'](){const _0x24202f=this['editor']['plugins']['get']('Users');for(const _0x429ec1 of _0x16d231)_0x429ec1['isAnonymous']||_0x24202f['getUser'](_0x429ec1['id'])||_0x24202f['addUser'](_0x429ec1);const _0x1bbf98=_0x2a9948['repository']['getRevisions']();let _0x4a15ec=null;const _0xd061d1=this['editor']['plugins']['get']('RevisionViewer');_0xd061d1['adapter']=_0x2a9948['adapter'],_0xd061d1['bind']('isEnabled')['to'](_0x2a9948),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x333128,'isReadOnly',_0x48f94e=>!_0x48f94e);for(const _0x4239cd of _0x1bbf98){const _0x2a73bf=null===_0x4239cd['creator'];if(_0x2a73bf&&_0x4239cd['toVersion']===_0x4239cd['fromVersion'])continue;const _0x330b53=_0x4239cd['toJSON']();_0xd061d1['addRevisionData'](_0x330b53,(_0x1bacb4,_0x381b15,_0x7fda14)=>{if(_0x2a73bf){if(_0x4a15ec)_0x4a15ec['_update'](_0x1bacb4,_0x381b15);else{if(!_0x381b15){const _0x462acc=_0x7fda14['toJSON']();_0x462acc['id']=_0x3affb0(),_0x2a9948['saveRevision'](_0x462acc,_0x7fda14['toVersion'])['then'](_0x54bda3=>{_0x4a15ec=_0x54bda3;});}}}else _0x4239cd['_update'](_0x1bacb4,_0x381b15);});}}},d),_0x399657);}['_enhanceShowRevisionViewerCallback'](){const _0x25d380=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2901a7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2740fd=this['editor']['plugins']['get']('Autosave');await _0x2740fd['save']();}else await _0x2901a7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3643a9=this['editor']['plugins']['get']('Dialog');_0x3643a9['isOpen']&&_0x3643a9['hide']();}const _0x2023ab=this['_getRevisionViewerEditorConfig']();return _0x25d380(_0x2023ab)['then'](_0x5af695=>{return(this['_viewerEditor']=_0x5af695,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'),_0x5af695);})['catch'](_0x5c3ca2=>(console['error'](_0x5c3ca2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x495e11=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'](),_0x495e11(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1e4905=this['editor']['plugins']['get']('Annotations');_0x1e4905['refreshVisibility'](),_0x1e4905['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dca33){const _0x710805=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe8d2f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48a9a7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x48a9a7,_0x5dca33)['then'](_0x227b88=>(_0xe8d2f6['style']['display']='block',_0x710805['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x227b88));}['_closeRevisionViewer'](_0x4ba454){const _0x56c1c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56c1c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ba454['destroy']();}async['_restoreRevision'](_0x2b73e0){const _0x35065d=this['editor'],_0x5cc058=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x22d206=_0x35065d['plugins']['get']('RevisionTracker'),_0x2baa2e=_0x35065d['plugins']['get']('RevisionHistoryUtils'),_0x355120=_0x5cc058['repository']['getRevision'](_0x2b73e0);let _0x27a81c,_0x210a76,_0x199334;try{await _0x2baa2e['loadRevisionData'](_0x355120,this['adapter']),_0x27a81c=_0x2baa2e['getRevisionDocumentData'](_0x355120),_0x210a76=_0x2baa2e['getRevisionRootsAttributes'](_0x355120);}catch(_0x53da79){return void console['error'](_0x53da79);}_0x35065d['model']['change'](_0x244421=>{for(const _0x2b4d45 of Array['from'](_0x35065d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x244421['removeMarker'](_0x2b4d45);}),_0x5cc058['isReady']=!0x1,_0x35065d['model']['enqueueChange'](_0x374a6e=>{_0x374a6e['setSelection'](null),_0x374a6e['removeSelectionAttribute'](_0x35065d['model']['document']['selection']['getAttributeKeys']());const _0x14adb4=Object['keys'](_0x27a81c);for(const _0x3dd8da of _0x35065d['model']['document']['roots'])'$graveyard'!=_0x3dd8da['rootName']&&_0x3dd8da['isAttached']()&&!_0x14adb4['includes'](_0x3dd8da['rootName'])&&_0x374a6e['detachRoot'](_0x3dd8da);for(const _0x17335b of _0x14adb4){let _0x83eaa7=_0x35065d['model']['document']['getRoot'](_0x17335b);_0x83eaa7&&_0x83eaa7['isAttached']()||(_0x83eaa7=_0x374a6e['addRoot'](_0x17335b));const _0x58ef1b=_0x210a76[_0x17335b],_0x1ec7dc=Object['keys'](_0x58ef1b),_0x6b06ba=_0x27a81c[_0x17335b];for(const _0x4a82bb of _0x83eaa7['getAttributeKeys']())_0x1ec7dc['includes'](_0x4a82bb)||_0x374a6e['removeAttribute'](_0x4a82bb,_0x83eaa7);for(const _0xa1aed9 of _0x1ec7dc)_0x374a6e['setAttribute'](_0xa1aed9,_0x210a76[_0x17335b][_0xa1aed9],_0x83eaa7);_0x374a6e['remove'](_0x374a6e['createRangeIn'](_0x83eaa7)),_0x374a6e['insert'](_0x35065d['data']['parse'](_0x6b06ba,_0x83eaa7),_0x83eaa7,0x0);}});const _0x58a7d9=g(_0x35065d['locale'],'Restored');if(_0x355120['name'])_0x199334=-0x1==_0x355120['name']['indexOf'](_0x58a7d9)?_0x58a7d9+':\x20'+_0x355120['name']:_0x355120['name'];else _0x199334=_0x58a7d9+':\x20'+(_0x355120['createdAt']['toLocaleDateString'](_0x35065d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x355120['createdAt']['toLocaleTimeString'](_0x35065d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x22d206['saveRevision']({'name':_0x199334}),_0x5cc058['isReady']=!0x0,_0x35065d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
29
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x345190){super(_0x345190),this['_revisionViewer']=_0x345190['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4b195e=this['_revisionsRepository']['_revisions'],_0x4b8d85=this['_createRevisionActions'](),_0x1ec48c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4b195e,_0x4b8d85,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',(_0x20fbfa,_0x533f59)=>{_0x533f59['revisionViews']['on']('add',(_0xa0641a,_0x38a522)=>{_0x38a522['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)),_0x1ec48c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x41294f=this['_revisionsRepository']['getRevision'](0x0);if(_0x41294f){const _0x1c61dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41294f['id']);this['_revisionViewer']['compare'](_0x41294f,_0x1c61dc);}}['_handleRevisionSelected'](_0x4e9130,_0x1a45c7){const _0x43b51b=this['_revisionsRepository']['getRevision'](_0x1a45c7['id']),_0x5e7391=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x43b51b['id']);this['_revisionViewer']['compare'](_0x43b51b,_0x5e7391);}['_handleRevisionSetName'](_0x12da7c,_0x3135b2){this['_revisionsRepository']['getRevision'](_0x3135b2['id'])['setName'](_0x3135b2['name']);}['_handleDiffChange'](_0x2334c5,_0xb99b21,_0x31b931){const _0x206fa6=this['_revisionsRepository']['getRevisionsInDiff'](_0x31b931);_0x206fa6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x206fa6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x206fa6[0x0]));}['_createRevisionActions'](){const _0x146d78=this['editor'],_0x2809ad=d['availableRevisionActions'],_0x26c91a=_0x146d78['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x26c91a['length'])return _0x26c91a['map'](_0x38ce61=>{const _0x5bd32f='string'==typeof _0x38ce61?Object['assign']({},_0x2809ad[_0x38ce61]):_0x38ce61;return _0x5bd32f['action']=_0x5bd32f['action']['bind'](this,_0x146d78),_0x5bd32f['isVisible']&&(_0x5bd32f['isVisible']=_0x5bd32f['isVisible']['bind'](this,_0x146d78)),_0x5bd32f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2b30a5},_0x4b9ac6)=>{const _0x4e5b8f=_0x2b30a5['get'](m),_0x42f49e=_0x4e5b8f['repository'];let _0x336822=_0x4e5b8f['diff']['newRevisionId'],_0x174d75=_0x4b9ac6['id'];_0x42f49e['getIndex'](_0x336822)>_0x42f49e['getIndex'](_0x174d75)&&([_0x336822,_0x174d75]=[_0x174d75,_0x336822]),_0x4e5b8f['compare'](_0x336822,_0x174d75);},'isVisible':({plugins:_0x2a7aa7},_0xa7bb2)=>{const _0x4e468f=_0x2a7aa7['get'](m);return!(_0x4e468f['repository']['getRevisionsInDiff'](_0x4e468f['diff'])['length']>0x2)&&!_0xa7bb2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5fac62,{id:_0x112960})=>{_0x5fac62['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x112960);},'isVisible':({plugins:_0x19bb17},_0x4ba174)=>!!_0x19bb17['get'](m)['repository']['getLaterVisibleRevision'](_0x4ba174['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4e9a08},{id:_0x1aa826,revisionNameView:_0x28f6a7})=>{const _0x163724=_0x4e9a08['get'](m),_0x29398e=_0x163724['repository']['getEarlierVisibleRevision'](_0x1aa826);_0x163724['compare'](_0x1aa826,_0x29398e),_0x28f6a7['focus'](),_0x28f6a7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xb2ffa5,_0x2f9f83){super(_0xb2ffa5),this['_view']=_0x2f9f83,this['_toolbarConfig']=et(_0xb2ffa5['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4d6458){const _0x29236c=this['editor'],_0x20cfd6=this['view'],_0x81514e=_0x29236c['editing']['view'],_0x5f0dbc=_0x20cfd6['editable'],_0x34c3d8=_0x81514e['document']['getRoot']();_0x5f0dbc['name']=_0x34c3d8['rootName'],_0x20cfd6['render']();const _0x15bc98=_0x5f0dbc['element'];this['setEditableElement'](_0x5f0dbc['name'],_0x15bc98),_0x20cfd6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x81514e['attachDomRoot'](_0x15bc98),this['_elementReplacer']['replace'](_0x4d6458,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x814cff=this['view'],_0x3a8f98=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a8f98['detachDomRoot'](_0x814cff['editable']['name']),_0x814cff['destroy']();}['_initToolbar'](){const _0xa00bae=this['view'];_0xa00bae['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xa00bae['stickyPanel']['limiterElement']=_0xa00bae['element'],_0xa00bae['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5d2064})=>_0x5d2064),_0xa00bae['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xa00bae['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x29722,_0x5aa344,_0x3f8cd8={}){super(_0x29722),this['stickyPanel']=new ht(_0x29722),this['toolbar']=new dt(_0x29722,{'shouldGroupWhenFull':_0x3f8cd8['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x29722,_0x5aa344);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x557801(_0x39acb8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb8414f,_0x33a912){super(_0x33a912),this['sourceElement']=_0xb8414f,this['model']['document']['createRoot']();const _0x2b29e3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2b29e3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1b2dda,_0x3248a7){const _0x17f85f=new this(_0x1b2dda,_0x3248a7);return await _0x17f85f['initPlugins'](),await _0x17f85f['ui']['init'](_0x1b2dda),await _0x17f85f['data']['init'](_0x17f85f['config']['get']('initialData')||''),_0x17f85f['fire']('ready'),_0x17f85f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4af0c1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3715c0){function _0x5de2dd(_0x597d09){return _0x597d09['map'](_0x38bd7b=>String['fromCharCode'](_0x38bd7b))['join']('');}super(_0x3715c0),this['result']='end',_0x3715c0[_0x5de2dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5de2dd([0x76,0x69,0x65,0x77])][_0x5de2dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5de2dd([0x61,0x75,0x74,0x6f]),_0x3715c0[_0x5de2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5de2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5de2dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5de2dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5de2dd([0x6f,0x6b])});}}class k extends _0x4af0c1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x7e5090){if(super(_0x7e5090),!this['editor']['config']['get']('revisionHistory'))throw new _0x1ddba0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x500640=>this['_showRevisionViewer']({..._0x500640,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x485652=>this['_closeRevisionViewer'](_0x485652)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1b33cf=>this['_restoreRevision'](_0x1b33cf)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49e665){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49e665;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x298cef){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x298cef);}['getRevision'](_0x19c1f6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x19c1f6);}['getRevisions'](_0x4dc175){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4dc175||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d4a5b=this['editor'],_0x5a3594=_0x55ed1f(_0x1d4a5b,p),_0x41866b=_0x1d4a5b['plugins']['get']('RevisionTracker'),_0x499893=_0x1d4a5b['plugins']['get']('Users')['users'];return _0x5a3594['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a3594['lazyRoots'],(_0x5a3594['plugins']['push'](_t,m,R,class extends _0x4af0c1{static get['requires'](){return[m,'Users'];}['init'](){const _0x35dd67=this['editor']['plugins']['get']('Users');for(const _0x4605a6 of _0x499893)_0x4605a6['isAnonymous']||_0x35dd67['getUser'](_0x4605a6['id'])||_0x35dd67['addUser'](_0x4605a6);const _0x1574a8=_0x41866b['repository']['getRevisions']();let _0x8ab097=null;const _0x4b9b3d=this['editor']['plugins']['get']('RevisionViewer');_0x4b9b3d['adapter']=_0x41866b['adapter'],_0x4b9b3d['bind']('isEnabled')['to'](_0x41866b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d4a5b,'isReadOnly',_0x35481f=>!_0x35481f);for(const _0x3ef12e of _0x1574a8){const _0x51c6f0=null===_0x3ef12e['creator'];if(_0x51c6f0&&_0x3ef12e['toVersion']===_0x3ef12e['fromVersion'])continue;const _0x22bedf=_0x3ef12e['toJSON']();_0x4b9b3d['addRevisionData'](_0x22bedf,(_0x1a9910,_0x20a933,_0xdb7eba)=>{if(_0x51c6f0){if(_0x8ab097)_0x8ab097['_update'](_0x1a9910,_0x20a933);else{if(!_0x20a933){const _0x26a0b9=_0xdb7eba['toJSON']();_0x26a0b9['id']=_0x235c9b(),_0x41866b['saveRevision'](_0x26a0b9,_0xdb7eba['toVersion'])['then'](_0x227c9e=>{_0x8ab097=_0x227c9e;});}}}else _0x3ef12e['_update'](_0x1a9910,_0x20a933);});}}},d),_0x5a3594);}['_enhanceShowRevisionViewerCallback'](){const _0x4d6a51=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f1fbc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a3dac=this['editor']['plugins']['get']('Autosave');await _0x5a3dac['save']();}else await _0x3f1fbc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31bc96=this['editor']['plugins']['get']('Dialog');_0x31bc96['isOpen']&&_0x31bc96['hide']();}const _0x1742fe=this['_getRevisionViewerEditorConfig']();return _0x4d6a51(_0x1742fe)['then'](_0x46337f=>{return(this['_viewerEditor']=_0x46337f,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'),_0x46337f);})['catch'](_0x3f9e10=>(console['error'](_0x3f9e10),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x131051=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'](),_0x131051(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1e00ec=this['editor']['plugins']['get']('Annotations');_0x1e00ec['refreshVisibility'](),_0x1e00ec['refreshPositioning']();}})));}['_showRevisionViewer'](_0xe3c7c8){const _0x2f6d80=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1474dd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x265eae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x265eae,_0xe3c7c8)['then'](_0x59d379=>(_0x1474dd['style']['display']='block',_0x2f6d80['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59d379));}['_closeRevisionViewer'](_0x1d9156){const _0x2b14fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b14fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1d9156['destroy']();}async['_restoreRevision'](_0x3b32e3){const _0x104e84=this['editor'],_0x122082=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x165344=_0x104e84['plugins']['get']('RevisionTracker'),_0xe6d6a6=_0x104e84['plugins']['get']('RevisionHistoryUtils'),_0x47ac8f=_0x122082['repository']['getRevision'](_0x3b32e3);let _0x1289ad,_0x64f3b3,_0x4295a2;try{await _0xe6d6a6['loadRevisionData'](_0x47ac8f,this['adapter']),_0x1289ad=_0xe6d6a6['getRevisionDocumentData'](_0x47ac8f),_0x64f3b3=_0xe6d6a6['getRevisionRootsAttributes'](_0x47ac8f);}catch(_0x2937cf){return void console['error'](_0x2937cf);}_0x104e84['model']['change'](_0x23d46b=>{for(const _0x366662 of Array['from'](_0x104e84['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23d46b['removeMarker'](_0x366662);}),_0x122082['isReady']=!0x1,_0x104e84['model']['enqueueChange'](_0x533b62=>{_0x533b62['setSelection'](null),_0x533b62['removeSelectionAttribute'](_0x104e84['model']['document']['selection']['getAttributeKeys']());const _0x43817c=Object['keys'](_0x1289ad);for(const _0x5b970b of _0x104e84['model']['document']['roots'])'$graveyard'!=_0x5b970b['rootName']&&_0x5b970b['isAttached']()&&!_0x43817c['includes'](_0x5b970b['rootName'])&&_0x533b62['detachRoot'](_0x5b970b);for(const _0x3cf6e8 of _0x43817c){let _0x590afd=_0x104e84['model']['document']['getRoot'](_0x3cf6e8);_0x590afd&&_0x590afd['isAttached']()||(_0x590afd=_0x533b62['addRoot'](_0x3cf6e8));const _0x295a4a=_0x64f3b3[_0x3cf6e8],_0x3bd0f6=Object['keys'](_0x295a4a),_0xc4b27b=_0x1289ad[_0x3cf6e8];for(const _0x1b03d3 of _0x590afd['getAttributeKeys']())_0x3bd0f6['includes'](_0x1b03d3)||_0x533b62['removeAttribute'](_0x1b03d3,_0x590afd);for(const _0x3e865c of _0x3bd0f6)_0x533b62['setAttribute'](_0x3e865c,_0x64f3b3[_0x3cf6e8][_0x3e865c],_0x590afd);_0x533b62['remove'](_0x533b62['createRangeIn'](_0x590afd)),_0x533b62['insert'](_0x104e84['data']['parse'](_0xc4b27b,_0x590afd),_0x590afd,0x0);}});const _0x4e6782=g(_0x104e84['locale'],'Restored');if(_0x47ac8f['name'])_0x4295a2=-0x1==_0x47ac8f['name']['indexOf'](_0x4e6782)?_0x4e6782+':\x20'+_0x47ac8f['name']:_0x47ac8f['name'];else _0x4295a2=_0x4e6782+':\x20'+(_0x47ac8f['createdAt']['toLocaleDateString'](_0x104e84['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x47ac8f['createdAt']['toLocaleTimeString'](_0x104e84['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x165344['saveRevision']({'name':_0x4295a2}),_0x122082['isReady']=!0x0,_0x104e84['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|