@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250221.0 → 0.0.0-nightly-20250222.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 +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x353b46(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4f23c6){super(),this['id']=_0x4f23c6['id']||_0x5c2e0e(),this['creator']=_0x4f23c6['creator']||null,this['authors']=_0x4f23c6['authors']||[],this['diffData']=_0x4f23c6['diffData']||null,this['toVersion']=_0x4f23c6['toVersion']||0x0,this['fromVersion']=_0x4f23c6['fromVersion']||0x0,this['set']('name',_0x4f23c6['name']||''),this['set']('createdAt',_0x4f23c6['createdAt']||new Date()),this['set']('attributes',_0x4f23c6['attributes']||{});}['setName'](_0x53aa4a){this['_update']({'name':_0x53aa4a});}['setAttribute'](_0x2f0983,_0x550afb){const _0x24b0d2=_0x4ec4bc(this['attributes']);_0x2dc84d(_0x24b0d2,_0x2f0983,_0x550afb),this['_update']({'attributes':_0x24b0d2});}['removeAttribute'](_0x36c5fe){const _0x1ee97f=_0x4ec4bc(this['attributes']);_0x3375a6(_0x1ee97f,_0x36c5fe),this['_update']({'attributes':_0x1ee97f});}['_update'](_0x53fb1e,_0x323220=!0x1){let _0x3756a2=!0x1;const _0x48768f={'id':this['id']},_0x34c343=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x9e24ae of _0x34c343){const _0x1a2f97=_0x53fb1e[_0x9e24ae];void 0x0!==_0x1a2f97&&_0x1a2f97!==this[_0x9e24ae]&&(this[_0x9e24ae]=_0x1a2f97,_0x48768f[_0x9e24ae]=_0x1a2f97,_0x3756a2=!0x0);}_0x3756a2&&(_0x48768f['authors']&&(_0x48768f['authorsIds']=_0x48768f['authors']['map'](_0x3a3159=>_0x3a3159['id']),delete _0x48768f['authors']),this['fire']('_update',_0x48768f,_0x323220));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x161f92=>_0x161f92['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3c3b4e{['_revisions'];static get['requires'](){return[_0x2fd09d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x434f81){super(_0x434f81),this['_revisions']=new _0x106ab5();}['afterInit'](){!async function(_0x5e71f2){const _0x439e95=_0x2bc910([0x76,0x35,0x70,0x38,0x51,0x64,0x62,0x47,0x73,0x58,0x71,0x52,0x6f,0x5a,0x77,0x55,0x63,0x6d,0x50,0x36,0x4c,0x57,0x31,0x4b,0x4d,0x4e,0x45,0x41,0x46,0x6c,0x6b,0x72,0x59,0x44,0x30,0x6a,0x68,0x49,0x42,0x34,0x6e,0x7a,0x4a,0x61,0x74,0x78,0x67,0x4f,0x32,0x48,0x69,0x65,0x53,0x66,0x37,0x54,0x39,0x43,0x75,0x79,0x56,0x33]),_0x438afa=0xeb829,_0x4577c4=0x270be95c,_0x50a133=0x270c897c^_0x4577c4,_0x1c11d8=window[_0x2bc910([0x44,0x61,0x74,0x65])][_0x2bc910([0x6e,0x6f,0x77])](),_0x5d3219=_0x5e71f2[_0x2bc910([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44cb69=new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28b4fb=>{_0x5d3219[_0x2bc910([0x6f,0x6e,0x63,0x65])](_0x2bc910([0x72,0x65,0x61,0x64,0x79]),_0x28b4fb);}),_0x26aa2c={[_0x2bc910([0x6b,0x74,0x79])]:_0x2bc910([0x45,0x43]),[_0x2bc910([0x75,0x73,0x65])]:_0x2bc910([0x73,0x69,0x67]),[_0x2bc910([0x63,0x72,0x76])]:_0x2bc910([0x50,0x2d,0x32,0x35,0x36]),[_0x2bc910([0x78])]:_0x2bc910([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]),[_0x2bc910([0x79])]:_0x2bc910([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]),[_0x2bc910([0x61,0x6c,0x67])]:_0x2bc910([0x45,0x53,0x32,0x35,0x36])},_0x505d69=_0x5d3219[_0x2bc910([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bc910([0x67,0x65,0x74])](_0x2bc910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe8d384(){let _0x26eb43,_0xe6a2a5=null,_0x9d114d=null;try{if(_0x505d69==_0x2bc910([0x47,0x50,0x4c]))return _0x2bc910([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26eb43=_0x418d9a(),!_0x26eb43)return _0x2bc910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26eb43[_0x2bc910([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9d114d=_0xb8e0c7(_0x26eb43[_0x2bc910([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26eb43[_0x2bc910([0x6a,0x74,0x69])])),await _0x833a3c()?_0x169ff9()?_0x55314d()?_0x2bc910([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x105e79()?(_0x26eb43[_0x2bc910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bc910([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe6a2a5=_0x2c2374(_0x2bc910([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26eb43[_0x2bc910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bc910([0x74,0x72,0x69,0x61,0x6c])&&(_0xe6a2a5=_0x2c2374(_0x2bc910([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d4852()):_0x2bc910([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc910([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bc910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x441160){return _0x2bc910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55314d(){const _0x5c79a6=[_0x2bc910([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bc910([0x74,0x72,0x69,0x61,0x6c])][_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26eb43[_0x2bc910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c11d8/0x3e8:0xe10*_0x50a133;return _0x26eb43[_0x2bc910([0x65,0x78,0x70])]<_0x5c79a6;}function _0x169ff9(){const _0x57a82b=_0x26eb43[_0x2bc910([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x57a82b)return!0x1;if(_0x57a82b[_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc910([0x2a])))return!0x0;if(_0x57a82b[_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc910([0x52,0x48])))return!0x0;if(_0x57a82b[_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc910([0x52,0x52,0x48]))){if(_0x1d223b())return!0x0;if(_0x227599()||_0x4962ba())return!0x0;}return!0x1;}function _0x105e79(){const _0x5166dd=_0x26eb43[_0x2bc910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5166dd||0x0==_0x5166dd[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x284439}=new URL(window[_0x2bc910([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5166dd[_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x284439))return!0x0;const _0x54583b=_0x284439[_0x2bc910([0x73,0x70,0x6c,0x69,0x74])](_0x2bc910([0x2e]));return _0x5166dd[_0x2bc910([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x428af1=>_0x428af1[_0x2bc910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc910([0x2a])))[_0x2bc910([0x6d,0x61,0x70])](_0x8b094a=>_0x8b094a[_0x2bc910([0x73,0x70,0x6c,0x69,0x74])](_0x2bc910([0x2e])))[_0x2bc910([0x73,0x6f,0x6d,0x65])](_0x17b862=>_0x54583b[_0x2bc910([0x65,0x76,0x65,0x72,0x79])]((_0xf17910,_0x5df966)=>_0x17b862[_0x5df966]===_0xf17910||_0x17b862[_0x5df966]===_0x2bc910([0x2a])));}function _0x1d4852(){return _0xe6a2a5&&_0x9d114d?new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1689ef,_0x4c9fe9)=>{_0xe6a2a5[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x1689ef,_0x4c9fe9),_0x9d114d[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x4f43df=>{_0x4f43df!=_0x2bc910([0x56,0x61,0x6c,0x69,0x64])&&_0x1689ef(_0x4f43df);},_0x4c9fe9);}):_0xe6a2a5||_0x9d114d||_0x2bc910([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb8e0c7(_0x8ef436,_0x117b3a){return new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2c32=>{if(_0x335d3e())return _0x4b2c32(_0x2bc910([0x56,0x61,0x6c,0x69,0x64]));_0x4efaa9(),_0x5d3219[_0x2bc910([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bc910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x178f89=!0x1;const _0x31442c=_0x5c2e0e();function _0x106065(_0x1fbead){return!!_0x1fbead&&(typeof _0x1fbead===_0x2bc910([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fbead===_0x2bc910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fbead[_0x2bc910([0x74,0x68,0x65,0x6e])]===_0x2bc910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fbead[_0x2bc910([0x63,0x61,0x74,0x63,0x68])]===_0x2bc910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fb985(_0x7d6e6d){_0x35d17f(_0x7d6e6d)[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x249478=>{if(!_0x249478||_0x249478[_0x2bc910([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bc910([0x6f,0x6b]))return _0x2bc910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb62a5b(_0x4861c3(_0x31442c+_0x117b3a))!=_0x249478[_0x2bc910([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bc910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc910([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x8e2d6e=>(_0x4f38b0(),_0x8e2d6e),()=>{const _0x39f187=_0x1a6841();return null==_0x39f187?(_0x4f38b0(),_0x2bc910([0x56,0x61,0x6c,0x69,0x64])):_0x2bc910(_0x1c11d8-_0x39f187>(0x3076d5c^_0x4577c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x4b2c32)[_0x2bc910([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b2c32(_0x2bc910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x415f5d=0x273d07dc^_0x4577c4;function _0x4f38b0(){const _0x13f901=_0x2bc910([0x6c,0x6c,0x63,0x74,0x2d])+_0xb62a5b(_0x4861c3(_0x8ef436)),_0x55ec58=_0x26d55d(_0xb62a5b(window[_0x2bc910([0x4d,0x61,0x74,0x68])][_0x2bc910([0x63,0x65,0x69,0x6c])](_0x1c11d8/_0x415f5d)));window[_0x2bc910([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc910([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13f901,_0x55ec58);}function _0x1a6841(){const _0x1ec632=_0x2bc910([0x6c,0x6c,0x63,0x74,0x2d])+_0xb62a5b(_0x4861c3(_0x8ef436)),_0x4acf95=window[_0x2bc910([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc910([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ec632);return _0x4acf95?window[_0x2bc910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26d55d(_0x4acf95),0x10)*_0x415f5d:null;}function _0x35d17f(_0x4e1c4a){return new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x515997,_0x1aed24)=>{_0x4e1c4a[_0x2bc910([0x74,0x68,0x65,0x6e])](_0x515997,_0x1aed24),window[_0x2bc910([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aed24,0x270a3d9c^_0x4577c4);});}}_0x5d3219[_0x2bc910([0x6f,0x6e])](_0x2bc910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f849c,_0xce93f5)=>{if(_0xce93f5[0x0]!=_0x8ef436)return _0x4b2c32(_0x2bc910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xce93f5[0x1]={..._0xce93f5[0x1],[_0x2bc910([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31442c};},{[_0x2bc910([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc910([0x68,0x69,0x67,0x68])}),_0x5d3219[_0x2bc910([0x6f,0x6e])](_0x2bc910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ee5a4=>{_0x106065(_0x3ee5a4[_0x2bc910([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x178f89=!0x0,_0x1fb985(_0x3ee5a4[_0x2bc910([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bc910([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc910([0x6c,0x6f,0x77])}),_0x44cb69[_0x2bc910([0x74,0x68,0x65,0x6e])](()=>{_0x178f89||_0x4b2c32(_0x2bc910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x335d3e(){return _0x5d3219[_0x2bc910([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc910([0x76,0x69,0x65,0x77])][_0x2bc910([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bc910([0x61,0x75,0x74,0x6f]);}function _0x4efaa9(){_0x5d3219[_0x2bc910([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc910([0x76,0x69,0x65,0x77])][_0x2bc910([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bc910([0x61,0x75,0x74,0x6f]);}}function _0x2c2374(_0x5f23b4){const _0x36d0d8=[new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c02b2=>setTimeout(_0x7c02b2,0x2702d790^_0x4577c4)),_0x44cb69[_0x2bc910([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ddd45=>{const _0x2e4936=0x270be95b^_0x4577c4,_0x5dfeac=_0x5e71f2[_0x2bc910([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x969156(){_0x5dfeac[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2e4936&&_0x1ddd45();}_0x969156(),_0x5dfeac[_0x2bc910([0x6f,0x6e])](_0x2bc910([0x61,0x64,0x64]),_0x969156);})),new window[(_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433a7c=>{function _0x693da0(){for(const _0xe0777d in window)if(window[_0x2bc910([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2bc910([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xe0777d))&&window[_0xe0777d]==_0x438afa)return _0x433a7c();_0x5d3219[_0x2bc910([0x73,0x74,0x61,0x74,0x65])]!=_0x2bc910([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2bc910([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x693da0,0x270bfad4^_0x4577c4);}_0x14902d(_0x2bc910([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x693da0();})];return window[_0x2bc910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bc910([0x72,0x61,0x63,0x65])](_0x36d0d8)[_0x2bc910([0x74,0x68,0x65,0x6e])](()=>_0x5f23b4);}async function _0x59b46d(){if(await _0x44cb69,_0x14902d(_0x2bc910([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x24d145=_0x5e71f2[_0x2bc910([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x338f9a=_0x5e71f2[_0x2bc910([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])](_0x24d145[_0x2bc910([0x69,0x64])]),_0x45a820=_0x3a3147(_0x2bc910([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x45a820[_0x2bc910([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x24d145['id'],_0x338f9a?_0x338f9a['id']:null,!0x0),_0x45a820[_0x2bc910([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2bc910([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x45a820[_0x2bc910([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x45a820[_0x2bc910([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x31ddd2,void(_0x45a820[_0x2bc910([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x31ddd2);}if(_0x14902d(_0x2bc910([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x509eca=_0x3a3147(_0x2bc910([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x509eca[_0x2bc910([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2bc910([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x509eca[_0x2bc910([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x509eca[_0x2bc910([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x31ddd2,_0x509eca[_0x2bc910([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x31ddd2;}_0x5d3219[_0x2bc910([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc910([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31ddd2,_0x5d3219[_0x2bc910([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc910([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31ddd2,_0x5d3219[_0x2bc910([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bc910([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d223b(){return _0x14902d(_0x2bc910([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3a3147(_0x2bc910([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2bc910([0x73,0x74,0x61,0x74,0x65])]==_0x2bc910([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x227599(){return _0x14902d(_0x2bc910([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 _0x4962ba(){return _0x14902d(_0x2bc910([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x869e62(_0x786ef9){const _0x454f99=_0x4b944c();_0x5d3219[_0x454f99]=_0x2bc910([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])+_0x786ef9,_0x786ef9[_0x2bc910([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2bc910([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b944c()]=_0x438afa),_0x786ef9!=_0x2bc910([0x56,0x61,0x6c,0x69,0x64])&&_0x59b46d();}function _0x4b944c(){const _0x16d4a6=window[_0x2bc910([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bc910([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bc910([0x6e,0x6f,0x77])]())[_0x2bc910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bc910([0x2e]),'');let _0x392a27=_0x2bc910([0x76]);for(let _0x3053e8=0x0;_0x3053e8<_0x16d4a6[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3053e8+=0x2){let _0x47a997=window[_0x2bc910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16d4a6[_0x2bc910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3053e8,_0x3053e8+0x2));_0x47a997>=_0x439e95[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47a997-=_0x439e95[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x392a27+=_0x439e95[_0x47a997];}return _0x392a27;}function _0x418d9a(){const _0x1fbe09=_0x505d69[_0x2bc910([0x73,0x70,0x6c,0x69,0x74])](_0x2bc910([0x2e]));if(0x3!=_0x1fbe09[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x60fefe(_0x1fbe09[0x1]);function _0x60fefe(_0x337b5a){const _0x39e0d5=_0x5ee989(_0x337b5a);return _0x39e0d5&&_0x3b9f2e()?_0x39e0d5:null;function _0x3b9f2e(){const _0x5b319f=_0x39e0d5[_0x2bc910([0x6a,0x74,0x69])],_0x5aeaa8=window[_0x2bc910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b319f[_0x2bc910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b319f[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a8c41={..._0x39e0d5,[_0x2bc910([0x6a,0x74,0x69])]:_0x5b319f[_0x2bc910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b319f[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a8c41[_0x2bc910([0x76,0x63])],_0x4861c3(_0x2a8c41)==_0x5aeaa8;}}}async function _0x833a3c(){let _0x669ab4=!0x0;try{const _0x7cabe4=_0x505d69[_0x2bc910([0x73,0x70,0x6c,0x69,0x74])](_0x2bc910([0x2e])),[_0x139b3a,_0xd6d0ab,_0x337ca8]=_0x7cabe4;return _0x1fcec1(_0x139b3a),await _0x7a85fb(_0x139b3a,_0xd6d0ab,_0x337ca8),_0x669ab4;}catch(_0x3597df){return!0x1;}function _0x1fcec1(_0x3d5f73){const _0x122566=_0x5ee989(_0x3d5f73);_0x122566&&_0x122566[_0x2bc910([0x61,0x6c,0x67])]==_0x2bc910([0x45,0x53,0x32,0x35,0x36])||(_0x669ab4=!0x1);}async function _0x7a85fb(_0x1c9c05,_0x381831,_0x132659){const _0x12e25c=window[_0x2bc910([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bc910([0x66,0x72,0x6f,0x6d])](_0x54459d(_0x132659),_0x1f1c8b=>_0x1f1c8b[_0x2bc910([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ab041=new window[(_0x2bc910([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bc910([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c9c05+_0x2bc910([0x2e])+_0x381831),_0x18fdbc=window[_0x2bc910([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bc910([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18fdbc)return;const _0x51c98a=await _0x18fdbc[_0x2bc910([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bc910([0x6a,0x77,0x6b]),_0x26aa2c,{[_0x2bc910([0x6e,0x61,0x6d,0x65])]:_0x2bc910([0x45,0x43,0x44,0x53,0x41]),[_0x2bc910([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bc910([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bc910([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18fdbc[_0x2bc910([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bc910([0x6e,0x61,0x6d,0x65])]:_0x2bc910([0x45,0x43,0x44,0x53,0x41]),[_0x2bc910([0x68,0x61,0x73,0x68])]:{[_0x2bc910([0x6e,0x61,0x6d,0x65])]:_0x2bc910([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51c98a,_0x12e25c,_0x4ab041)||(_0x669ab4=!0x1);}}function _0x5ee989(_0x11ae16){return _0x11ae16[_0x2bc910([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bc910([0x65,0x79]))?JSON[_0x2bc910([0x70,0x61,0x72,0x73,0x65])](_0x54459d(_0x11ae16)):null;}function _0x54459d(_0x545876){return window[_0x2bc910([0x61,0x74,0x6f,0x62])](_0x545876[_0x2bc910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bc910([0x2b]))[_0x2bc910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bc910([0x2f])));}function _0x4861c3(_0x2006ea){let _0x3a84d6=0x1505;function _0x2dff17(_0x5c84b5){for(let _0x251d48=0x0;_0x251d48<_0x5c84b5[_0x2bc910([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x251d48++){const _0x5332a5=_0x5c84b5[_0x2bc910([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x251d48);_0x3a84d6=(_0x3a84d6<<0x5)+_0x3a84d6+_0x5332a5,_0x3a84d6&=_0x3a84d6;}}function _0x2b3eb4(_0x79f751){Array[_0x2bc910([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x79f751)?_0x79f751[_0x2bc910([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b3eb4):_0x79f751&&typeof _0x79f751==_0x2bc910([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bc910([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x79f751)[_0x2bc910([0x73,0x6f,0x72,0x74])]()[_0x2bc910([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x576e2f,_0x4db36c])=>{_0x2dff17(_0x576e2f),_0x2b3eb4(_0x4db36c);}):_0x2dff17(window[_0x2bc910([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x79f751));}return _0x2b3eb4(_0x2006ea),_0x3a84d6>>>0x0;}function _0xb62a5b(_0x1c83d9){return _0x1c83d9[_0x2bc910([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bc910([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bc910([0x30]));}function _0x26d55d(_0x65c82c){return _0x65c82c[_0x2bc910([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bc910([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bc910([0x6a,0x6f,0x69,0x6e])]('');}function _0x14902d(_0x174773){return _0x5d3219[_0x2bc910([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bc910([0x68,0x61,0x73])](_0x174773);}function _0x3a3147(_0x5984b3){return _0x5d3219[_0x2bc910([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bc910([0x67,0x65,0x74])](_0x5984b3);}function _0x31ddd2(){}function _0x2bc910(_0x153120){return _0x153120['map'](_0x273b91=>String['fromCharCode'](_0x273b91))['join']('');}_0x869e62(await _0xe8d384());}(this);}['createRevision'](_0x54e211){const _0x13a707=this['editor']['plugins']['get']('Users');return new a({'id':_0x54e211['id'],'name':_0x54e211['name'],'creator':_0x54e211['creatorId']?_0x13a707['getUser'](_0x54e211['creatorId']):null,'diffData':_0x54e211['diffData']||_0x54e211['data'],'authors':_0x54e211['authorsIds']['map'](_0x4ca016=>_0x13a707['getUser'](_0x4ca016)),'createdAt':new Date(_0x54e211['createdAt']),'attributes':_0x54e211['attributes'],'fromVersion':_0x54e211['fromVersion'],'toVersion':_0x54e211['toVersion']});}['addRevision'](_0x31acc6,_0x930cf6=0x0){this['_revisions']['add'](_0x31acc6,_0x930cf6);}['getRevision'](_0x3e25a9){return this['_revisions']['get'](_0x3e25a9);}['getRevisions'](_0x2dafaa={'toJSON':!0x1}){const _0x1b04cc=Array['from'](this['_revisions']);return _0x1b04cc['reverse'](),_0x2dafaa['toJSON']?_0x1b04cc['map'](_0x3e7e34=>_0x3e7e34['toJSON']()):_0x1b04cc;}['getIndex'](_0x3afe82){return this['_revisions']['getIndex'](_0x3afe82);}['getEarlierVisibleRevision'](_0x2f733b){const [,_0x4b182a]=this['getRevisionsIterator'](_0x2f733b,{'direction':'earlier'});return _0x4b182a;}['getLaterVisibleRevision'](_0x28a708){const [,_0x483cc8]=this['getRevisionsIterator'](_0x28a708,{'direction':'later'});return _0x483cc8;}['getRevisionsInDiff'](_0xb8f352){const _0x2ffcc2=[];for(const _0xf668b9 of this['getRevisionsIterator'](_0xb8f352['newRevisionId']))if(_0x2ffcc2['push'](_0xf668b9),_0xf668b9['id']===_0xb8f352['oldRevisionId'])break;return _0x2ffcc2;}*['getRevisionsIterator'](_0x16f5f6,{direction:_0x4fec29='earlier',filter:_0x3c79af=()=>!0x0}={}){const _0x456cf5='earlier'===_0x4fec29?0x1:-0x1;let _0x157a14=this['_revisions']['get'](_0x16f5f6),_0x3dad96=this['getIndex'](_0x157a14);for(yield _0x157a14;_0x157a14;){if(_0x3dad96+=_0x456cf5,_0x157a14=this['getRevision'](_0x3dad96),!_0x157a14)return;_0x3c79af(_0x157a14)&&(yield _0x157a14);}}}function m(_0x45f909,_0x4f4b20,_0x32b547){const t=_0x45f909['t'];switch(_0x4f4b20){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'},_0x32b547);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x32b547);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x1c2464,'a':_0x3cd23b,'e':_0xdf6c64,'r':_0x2bc33d,'u':_0x222704};class l extends _0x3c3b4e{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2fd09d,j,_0x224d31];}constructor(_0x387cc0){super(_0x387cc0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1a68f9=_0x5c2e0e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1a68f9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xc59805=this['repository']['getRevision'](0x0),_0x59c09c=_0xc59805&&null===_0xc59805['creator']?_0xc59805:null;if(this['_continueCurrentRevision']=!!_0x59c09c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x14dd6f=this['_source']['getCurrentRevisionId'](),_0x5f2a40=this['repository']['getRevision'](_0x14dd6f);if(_0x5f2a40)this['_startingVersion']=_0x5f2a40['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x510e1b=this['_source']['history']['_operations']['find'](_0x1cf5fd=>!_0x1cf5fd['_isInit']),_0x342ec7=_0x510e1b?_0x510e1b['baseVersion']:this['_source']['history']['version'];_0xc59805?(_0xc59805['toVersion']<_0x342ec7&&_0xc59805['_update']({'toVersion':_0x342ec7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x59c09c['id'],this['_startingVersion']=_0x59c09c['fromVersion']):(this['_startingVersion']=_0xc59805['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x342ec7,this['_continueCurrentRevision']=!0x1);}}else _0x59c09c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x59c09c['toVersion'],this['editor']['model']['document']['history']['version']),_0x59c09c['fromVersion']===_0x59c09c['toVersion']?(0x0!==_0x59c09c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x59c09c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x59c09c['id'],this['_startingVersion']=_0x59c09c['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',_0x1abe09=>!_0x1abe09),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7142bc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56b346;for(const _0x1e3671 in _0x7142bc){const _0x213960=_0x1e3671,_0x30562f=_0x7142bc[_0x213960];if('revisionHistoryLicenseKeyValid'==_0x30562f||'revisionHistoryLicenseKeyInvalid'==_0x30562f||'revisionHistoryLicenseKeyExpired'==_0x30562f||'revisionHistoryLicenseKeyDomainLimit'==_0x30562f||'revisionHistoryLicenseKeyNotAllowed'==_0x30562f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x30562f||'revisionHistoryLicenseKeyTrialLimit'==_0x30562f||'revisionHistoryLicenseKeyUsageLimit'==_0x30562f){delete _0x7142bc[_0x213960],_0x56b346=_0x30562f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x56b346&&_0x7142bc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x56b346&&_0x7142bc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x56b346&&_0x7142bc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x56b346&&_0x7142bc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x56b346&&_0x7142bc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x56b346&&_0x7142bc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x56b346&&_0x7142bc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x30742e=this['repository']['getRevision'](0x0),_0x593fc8=await this['getRevisionDocumentData'](_0x30742e),_0x46ebda=await this['getRevisionRootsAttributes'](_0x30742e);this['_replaceEditorDataWithRevisionData'](_0x593fc8,_0x46ebda);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x6d612d){this['_source']=_0x6d612d;}async['update'](){const _0x47fa17=await this['_source']['getLatestVersion']();if(_0x47fa17>this['currentRevision']['toVersion']){await this['_loadState']();const _0xc811b3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x47fa17});_0xc811b3['authors']=_0xc811b3['authorsIds']['map'](_0x827aed=>this['editor']['plugins']['get']('Users')['getUser'](_0x827aed)),this['currentRevision']['_update'](_0xc811b3);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4d3154={},_0xd406d8=null){const _0x46c251=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd406d8>this['currentRevision']['toVersion']&&(_0xd406d8=null),null===_0xd406d8&&(_0xd406d8=await this['_source']['getLatestVersion']());const _0x4a56ea=this['_getFromVersion'](_0xd406d8),_0x57dceb=this['buildRevisionData']({'from':_0x4a56ea,'to':_0xd406d8});if(this['currentRevision']['toVersion']<_0xd406d8){const _0x58be70=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd406d8,'to':_0xd406d8});_0x58be70['authors']=[],_0x58be70['authorsIds']=[],_0x58be70['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x58be70,!0x0),delete _0x58be70['authors'],_0x46c251['push'](_0x58be70);}_0x4d3154['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d3154['name']=_0x4d3154['name']||null,_0x4d3154['id']=_0x4d3154['id']||_0x5c2e0e(),_0x4d3154={..._0x4d3154,..._0x57dceb};const _0x9080fd=this['addRevisionData'](_0x4d3154);_0x46c251['push'](_0x4d3154);const _0x30d48d=this['repository']['getIndex'](_0x9080fd);if(0x0!==_0x30d48d){const _0x463ad2=this['repository']['getRevision'](_0x30d48d-0x1);if(_0x463ad2['fromVersion']!==_0xd406d8){const _0x5d4acf=this['_revisionDataBuilder']['getData'](_0xd406d8,_0x463ad2['toVersion']),_0x2f97e2={'id':_0x463ad2['id'],'diffData':_0x5d4acf['diffData'],'authorsIds':_0x5d4acf['authorsIds'],'authors':_0x5d4acf['authorsIds']['map'](_0x1bade5=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bade5)),'fromVersion':_0xd406d8};_0x463ad2===this['currentRevision']&&(_0x2f97e2['createdAt']=new Date(_0x4d3154['createdAt']['getTime']()+0xa)),_0x463ad2['_update'](_0x2f97e2,!0x0),delete _0x2f97e2['authors'],_0x46c251['push'](_0x2f97e2);}}if(this['adapter']){for(const _0x3f6a08 of _0x46c251)this['_bufferUpdate'](_0x3f6a08['id'],_0x3f6a08,!0x0);this['sendBufferedUpdates']();}return _0x9080fd;}['addRevisionData'](_0x4eb683){const _0x26975e=this['repository']['createRevision'](_0x4eb683);return this['adapter']&&_0x26975e['on']('_update',(_0x33f7f5,_0x2129cd,_0x49cb0c)=>{_0x49cb0c||(this['_bufferUpdate'](_0x2129cd['id'],_0x2129cd,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x26975e,this['_findInsertionIndex'](_0x26975e)),_0x26975e;}async['getRevisionDocumentData'](_0x363ddf){await this['_loadRevisionData'](_0x363ddf);const _0x4e0237={};for(const _0x5a2d40 in _0x363ddf['diffData']){if(_0x363ddf['diffData'][_0x5a2d40]['attachChange']&&!_0x363ddf['diffData'][_0x5a2d40]['attachChange']['isAttached'])continue;const _0x216041=this['_removeRevisionMarkers'](JSON['parse'](_0x363ddf['diffData'][_0x5a2d40]['insertions'])),_0x1cf19a=this['editor']['editing']['view']['document'],_0x2f47b4=new _0x5aa646(_0x1cf19a,_0x216041['map'](_0x6ca9fd=>C(_0x6ca9fd,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4e0237[_0x5a2d40]=this['editor']['data']['processor']['toData'](_0x2f47b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x4e0237;}async['getRevisionRootsAttributes'](_0x147b19){await this['_loadRevisionData'](_0x147b19);const _0x19da12={};for(const _0x3fd7da in _0x147b19['diffData'])_0x147b19['diffData'][_0x3fd7da]['attachChange']&&!_0x147b19['diffData'][_0x3fd7da]['attachChange']['isAttached']||(_0x19da12[_0x3fd7da]=_0x147b19['diffData'][_0x3fd7da]['attributesAfter']||{});return _0x19da12;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xf1333b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4fb3f1=0x0;_0x4fb3f1<_0xf1333b['length'];_0x4fb3f1++){const _0x476621=_0xf1333b[_0x4fb3f1];let _0x5ceb58=!0x1;for(const _0x451506 of Object['keys'](_0x476621))void 0x0===_0x476621[_0x451506]?delete _0x476621[_0x451506]:'id'!==_0x451506&&(_0x5ceb58=!0x0);_0x5ceb58||(_0xf1333b[_0x4fb3f1]=null);}if(_0xf1333b=_0xf1333b['filter'](_0x17d1d7=>null!==_0x17d1d7),!_0xf1333b['length'])return;for(let _0x53aa36=0x0;_0x53aa36<_0xf1333b['length'];_0x53aa36++){const _0x48313f=_0xf1333b[_0x53aa36];void 0x0!==_0x48313f['fromVersion']&&void 0x0===_0x48313f['toVersion']&&(_0x48313f['toVersion']=this['repository']['getRevision'](_0x48313f['id'])['toVersion']),void 0x0!==_0x48313f['toVersion']&&void 0x0===_0x48313f['fromVersion']&&(_0x48313f['fromVersion']=this['repository']['getRevision'](_0x48313f['id'])['fromVersion']);}const _0x2f55ec=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xf1333b,_0x2f55ec)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x55b7c9=>{if(_0x55b7c9){for(const _0x4fcc1b of _0x55b7c9)this['setRevisionData']({'id':_0x4fcc1b['id'],'createdAt':_0x4fcc1b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x47410e,_0x4fba0c){let _0x64da21=this['editor']['config']['get']('initialData'),_0x494251=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x64da21){_0x64da21={};for(const _0x4adbaa of this['editor']['model']['document']['getRootNames']())_0x64da21[_0x4adbaa]='';}if('string'==typeof _0x64da21&&(_0x64da21={'main':_0x64da21}),void 0x0===_0x494251){_0x494251={};for(const _0x3a3e22 of this['editor']['model']['document']['getRootNames']())_0x494251[_0x3a3e22]={};}let _0x5a5cc8=!0x1;const _0x3a565a=Object['keys'](_0x64da21),_0x3e3fa0=Object['keys'](_0x47410e);for(const _0x122c3b of _0x3a565a){if(_0x64da21[_0x122c3b]!==_0x47410e[_0x122c3b]&&''!==_0x64da21[_0x122c3b]['trim']()){_0x5a5cc8=!0x0;break;}if(!_0x5d0785(_0x494251[_0x122c3b],_0x4fba0c[_0x122c3b])&&Object['keys'](_0x494251[_0x122c3b])['length']>0x0){_0x5a5cc8=!0x0;break;}}_0x5a5cc8||(_0x5a5cc8=_0x3e3fa0['some'](_0x15d66c=>!this['editor']['model']['document']['getRoot'](_0x15d66c))),_0x5a5cc8&&_0x26883c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x64da21,'editorRootsAttributes':_0x494251,'revisionData':_0x47410e,'revisionRootsAttributes':_0x4fba0c}),this['editor']['config']['set']('initialData',_0x47410e),this['editor']['config']['set']('rootsAttributes',_0x4fba0c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x57cbc0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x57cbc0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x7ccd71){const _0x4b79f9=this['repository']['getRevisions']();_0x4b79f9['reverse']();let _0x3a500f=0x0;for(;_0x3a500f<_0x4b79f9['length'];){const _0x54a402=_0x4b79f9[_0x3a500f];if(_0x54a402===this['currentRevision']){_0x3a500f++;continue;}if(_0x54a402['id']===this['_initialRevisionId'])break;const _0x16aa9b=_0x7ccd71['toVersion']-_0x54a402['toVersion']||_0x7ccd71['fromVersion']-_0x54a402['fromVersion'];if(_0x16aa9b>0x0)break;if(_0x16aa9b<0x0)_0x3a500f++;else{if(!_0x7ccd71['creator']&&_0x54a402['creator'])break;if(_0x54a402['creator']||!_0x7ccd71['creator']){if(_0x7ccd71['createdAt']>_0x54a402['createdAt'])break;_0x3a500f++;}else _0x3a500f++;}}return _0x3a500f;}['setRevisionData'](_0x292b90){const _0x502c4a=this['repository']['getRevision'](_0x292b90['id']);if(_0x292b90['createdAt']&&(_0x292b90['createdAt']=new Date(_0x292b90['createdAt'])),_0x292b90['authorsIds']){const _0x213ce5=this['editor']['plugins']['get']('Users');_0x292b90['authors']=_0x292b90['authorsIds']['map'](_0x4ccd1c=>_0x213ce5['getUser'](_0x4ccd1c));}_0x502c4a['_update'](_0x292b90,!0x0);}['buildRevisionData']({revision:_0x5d94b1=null,from:_0x3cc9d3=null,to:_0x58c81e=null}){_0x3cc9d3=null!==_0x3cc9d3?_0x3cc9d3:_0x5d94b1['fromVersion'],_0x58c81e=null!==_0x58c81e?_0x58c81e:_0x5d94b1['toVersion'];const _0x1a280e=this['_revisionDataBuilder']['getData'](_0x3cc9d3,_0x58c81e),_0x20ee19={'diffData':_0x1a280e['diffData'],'authorsIds':_0x1a280e['authorsIds'],'fromVersion':_0x3cc9d3,'toVersion':_0x58c81e};if(!_0x5d94b1||_0x58c81e!==_0x5d94b1['toVersion']){const _0x33c606=_0x58c81e-0x1,_0x496249=this['_source']['history']['getOperation'](_0x33c606);_0x20ee19['createdAt']=_0x496249&&_0x496249['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3cc9d3===this['_loadedStateData']['fromVersion']){for(const _0xbc8673 of this['_loadedStateData']['authors'])_0x20ee19['authorsIds']['includes'](_0xbc8673['id'])||_0x20ee19['authorsIds']['push'](_0xbc8673['id']);}return _0x20ee19;}['_loadRevisionData'](_0x5bb556){if(!_0x5bb556||_0x5bb556['diffData'])return Promise['resolve']();{const _0x2358ab=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2358ab,'revisionId':_0x5bb556['id']})['then'](_0x40ec4c=>{_0x5bb556['diffData']=_0x40ec4c['diffData'];});}}['_bufferUpdate'](_0x196078,_0x538164,_0x55e777){if(this['_bufferedUpdates']['has'](_0x196078)){const _0x330d31=this['_bufferedUpdates']['get'](_0x196078);_0x538164=_0x55e777?{..._0x330d31,..._0x538164}:{..._0x538164,..._0x330d31};}this['_bufferedUpdates']['set'](_0x196078,_0x538164);}['_getFromVersion'](_0x2f14b4){const _0x45738a=this['repository']['getRevisions']();_0x45738a['reverse'](),_0x45738a['shift']();const _0x329794=_0x45738a['find'](_0x527973=>_0x527973['toVersion']<=_0x2f14b4)['toVersion'];return _0x329794<this['_startingVersion']?this['_startingVersion']:_0x329794;}['_createInitialRevision'](_0x48aa47){const _0x285773=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x285773)this['_initialRevisionId']=_0x285773['id'];else{const _0x3c5c84=!this['editor']['model']['document']['roots']['find'](_0x339a44=>this['editor']['model']['hasContent'](_0x339a44)),_0x429345=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e7831=m(this['editor']['locale'],_0x3c5c84?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48aa47,'to':_0x48aa47,'id':this['_initialRevisionId'],'name':_0x1e7831,'creatorId':_0x429345});}}['_createCurrentRevision'](_0x11cbaf){const _0x34b30c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x34b30c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x11cbaf,'to':_0x11cbaf,'id':_0x34b30c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x291b80,from:_0x35c1f0,to:_0x5121d9,creatorId:_0x51ced2,id:_0x2f5ce4}){const _0x6d09bb=this['buildRevisionData']({'from':_0x35c1f0,'to':_0x5121d9});_0x6d09bb['name']=_0x291b80,_0x6d09bb['creatorId']=_0x51ced2,_0x6d09bb['id']=_0x2f5ce4;const _0x2a70ab=this['addRevisionData'](_0x6d09bb);return this['adapter']&&this['_bufferUpdate'](_0x6d09bb['id'],_0x6d09bb,!0x0),_0x2a70ab;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x16d92f){return(_0x16d92f=_0x16d92f['filter'](_0x51393a=>!_0x51393a['name']||'revision-start'!==_0x51393a['name']&&'revision-end'!==_0x51393a['name']))['forEach'](_0x1f115a=>{'string'!=typeof _0x1f115a&&(_0x1f115a['children']=this['_removeRevisionMarkers'](_0x1f115a['children']),_0x1f115a['attributes']=_0x1f115a['attributes']['filter'](_0x2ed7df=>!_0x2ed7df[0x0]['startsWith']('data-revision-')));}),_0x16d92f;}}function C(_0x1db60a,_0x574259){const _0x32edd8=_0x574259['editing']['view']['document'];if('string'==typeof _0x1db60a)return new _0x3f38e1(_0x32edd8,_0x1db60a);{const _0x45d7b0=_0x1db60a['children']['map'](_0x96b0bd=>C(_0x96b0bd,_0x574259));return new(P[_0x1db60a['type']]||_0x3ce25a)(_0x32edd8,_0x1db60a['name'],_0x1db60a['attributes'],_0x45d7b0);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x16a950){this['editor']=_0x16a950,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'](_0x4f63ae){this['source']=_0x4f63ae;const _0x512c78=new Map(),_0x2c98ce=new Map(),_0x3d3347=this['editor']['model']['document']['roots']['map'](_0x172b00=>_0x172b00['rootName']);for(const _0x56e084 of _0x3d3347){const _0x1efbdd=this['editor']['model']['document']['getRoot'](_0x56e084),_0x316c7f=T(_0x1efbdd);_0x512c78['set'](_0x56e084,_0x316c7f),_0x2c98ce['set'](_0x56e084,Object['fromEntries'](_0x1efbdd['getAttributes']()));}const _0xdb7c14=Array['from'](this['editor']['model']['markers'])['map'](_0x1c350f=>[_0x1c350f['name'],_0x1c350f['getRange']()]),_0x438693=this['source']['version'];this['_saveMetaData'](_0x438693,_0x512c78,_0xdb7c14,_0x2c98ce),this['_startingRevisionId']=this['_revisionId'];const _0x5eb9bb=new Map(),_0x9370a4=new Map();for(const _0x244f77 of _0x3d3347){const _0x14b558=F(_0x244f77);_0x5eb9bb['set'](_0x244f77,_0x14b558),_0x9370a4['set'](_0x244f77,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5eb9bb,[],_0x9370a4);}['getData'](_0x2c1279,_0x784273){if(this['_lastFrom']===_0x2c1279&&this['_lastTo']<=_0x784273)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x784273,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c1279)){const _0x5f767b=this['_getPreviousFrom'](_0x2c1279);this['_calculateMetaData'](_0x5f767b,_0x2c1279,!0x1);}this['_calculateMetaData'](_0x2c1279,_0x784273,!0x0);}return this['_lastFrom']=_0x2c1279,this['_lastTo']=_0x784273,this['_getState']();}['loadState'](_0x2a20c9){this['_reset'](),this['_lastFrom']=_0x2a20c9['fromVersion'],this['_lastTo']=_0x2a20c9['toVersion'];for(const _0x54ba41 in _0x2a20c9['diffData']){const _0x165477=_0x2a20c9['diffData'][_0x54ba41]['attachChange'],_0x31cda6=_0x4ec4bc(_0x2a20c9['diffData'][_0x54ba41]['attributesBefore'])||{},_0x39886a=this['_makeModelFromViewString'](_0x2a20c9['diffData'][_0x54ba41]['deletions']);_0x39886a['rootName']=_0x54ba41,_0x39886a['_isAttached']=!_0x165477||!_0x165477['isAttached'],_0x39886a['isAttached']=()=>_0x39886a['_isAttached'],this['_baseRoots']['set'](_0x54ba41,_0x39886a),this['_baseRootsAttributes']['set'](_0x54ba41,_0x31cda6),_0x165477&&this['_touchedRoots']['set'](_0x54ba41,_0x165477);const _0x2fe43f=this['_makeIdsRoot'](_0x39886a);this['_baseIdsRoots']['set'](_0x54ba41,_0x2fe43f);for(const [_0x9dd118,_0x3cbb46]of _0x39886a['markers']){if(!_0x9dd118['startsWith']('revision:'))continue;const _0x548636=_0x9dd118['split'](':')[0x2];for(const _0x27a97d of _0x3cbb46['getWalker']({'singleCharacters':!0x0})){const _0x8a7dcd=this['_getVidAttributeName'](_0x27a97d),_0x270e96='elementEnd'==_0x27a97d['type']?_0x27a97d['previousPosition']['path']['slice'](0x0,-0x1):_0x27a97d['previousPosition']['path'],_0x11f300=_0x2fe43f['getNodeByPath'](_0x270e96)['getAttribute'](_0x8a7dcd);this['_touched']['set'](_0x11f300,{'userId':_0x548636});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5b49c3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x225ac6=>!this['_touched']['has'](_0x225ac6));let _0x60c3fe=0x0;const _0x44fe4b=new Map();for(const _0x3354b8 in _0x2a20c9['diffData']){const _0x13b215=_0x2a20c9['diffData'][_0x3354b8]['attachChange'],_0x40232e=_0x4ec4bc(_0x2a20c9['diffData'][_0x3354b8]['attributesAfter'])||{},_0x5c221b=this['_makeModelFromViewString'](_0x2a20c9['diffData'][_0x3354b8]['insertions']);_0x5c221b['rootName']=_0x3354b8,_0x5c221b['_isAttached']=!_0x13b215||_0x13b215['isAttached'],_0x5c221b['isAttached']=()=>_0x5c221b['_isAttached'],this['_diffRoots']['set'](_0x3354b8,_0x5c221b),this['_diffRootsAttributes']['set'](_0x3354b8,_0x40232e);const _0x59ddbe=this['_makeIdsRoot'](_0x5c221b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3354b8,_0x59ddbe),_0x44fe4b['set'](_0x3354b8,_0x5c221b['isAttached']()?_0x40232e:{});for(const [_0x34b325,_0x1ee639]of _0x5c221b['markers']){if(!_0x34b325['startsWith']('revision:'))continue;const _0x469a08=_0x34b325['split'](':')[0x2];for(const _0x23ce4d of _0x1ee639['getWalker']({'singleCharacters':!0x0})){const _0x3cb00f=this['_getVidAttributeName'](_0x23ce4d),_0x2c9264=this['_revisionId']++,_0x47a314='elementEnd'==_0x23ce4d['type']?_0x23ce4d['previousPosition']['path']['slice'](0x0,-0x1):_0x23ce4d['previousPosition']['path'];_0x59ddbe['getNodeByPath'](_0x47a314)['_setAttribute'](_0x3cb00f,_0x2c9264),this['_touched']['set'](_0x2c9264,{'userId':_0x469a08});}}for(const _0x1614a0 of this['editor']['model']['createRangeIn'](_0x5c221b)['getWalker']({'singleCharacters':!0x0})){const _0x522d17=this['_getVidAttributeName'](_0x1614a0),_0x12ff40='elementEnd'==_0x1614a0['type']?_0x1614a0['previousPosition']['path']['slice'](0x0,-0x1):_0x1614a0['previousPosition']['path'],_0xe1f991=_0x59ddbe['getNodeByPath'](_0x12ff40);_0xe1f991['getAttribute'](_0x522d17)>0x0||_0xe1f991['_setAttribute'](_0x522d17,_0x5b49c3[_0x60c3fe++]);}for(const [_0x3f0fda,_0x1c2fe0]of _0x5c221b['markers'])_0x3f0fda['startsWith']('revision:')||this['_markers']['set'](_0x3f0fda,_0x1c2fe0);}const _0x1f1cde=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1f1cde),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1f1cde,0x1));const _0x2d1459=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2d1459),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d1459,0x1));const _0x2ed5ba=Array['from'](this['_diffRoots'])['map'](([_0x1a7fc9,_0x71cd7d])=>[_0x1a7fc9,T(_0x71cd7d)]);this['_saveMetaData'](this['_lastTo'],_0x2ed5ba,this['_markers'],_0x44fe4b);}['_makeModelFromViewString'](_0xc3634b){const _0x136a3d=JSON['parse'](_0xc3634b),_0x5d20f1=this['editor']['editing']['view']['document'],_0x21ae56=new _0x5aa646(_0x5d20f1,_0x136a3d['map'](_0x1b68a3=>C(_0x1b68a3,this['editor'])));return this['editor']['data']['toModel'](_0x21ae56);}['_saveMetaData'](_0x4b8ffd,_0x3c43d0,_0x5ea2a5,_0x2d593e){const _0x430397=new Map(_0x3c43d0),_0x110c2c=new Map(_0x4ec4bc(_0x2d593e)),_0x3e020f=new Map();for(const [_0x12b2be,_0x37e27e]of _0x5ea2a5)_0x3e020f['set'](_0x12b2be,{'start':_0x37e27e['start']['clone'](),'end':_0x37e27e['end']['clone'](),'rootName':_0x37e27e['root']['rootName']});this['_savedMetaData']['set'](_0x4b8ffd,{'roots':_0x430397,'markers':_0x3e020f,'rootsAttributes':_0x110c2c});}['_removeMetaData'](_0x4731c7){this['_savedMetaData']['delete'](_0x4731c7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x599b63,_0x35b14f=null){let _0x99cca8=null;_0x599b63['is']('documentFragment')||(_0x99cca8=new ft(_0x599b63['name'],{'vid_start':null===_0x35b14f?this['_revisionId']++:_0x35b14f++}));const _0x3ef2c5=[];for(const _0x5bca38 of _0x599b63['getChildren']())if(_0x5bca38['is']('element')){_0x3ef2c5['push'](this['_makeIdsRoot'](_0x5bca38,_0x35b14f));const _0x389f9b=_0x3ef2c5[_0x3ef2c5['length']-0x1];null!==_0x35b14f&&(_0x35b14f=_0x389f9b['is']('element','$text')?_0x389f9b['getAttribute']('vid')+0x1:_0x389f9b['getAttribute']('vid_end')+0x1);}else{for(let _0x4f7af2=0x0;_0x4f7af2<_0x5bca38['offsetSize'];_0x4f7af2++)_0x3ef2c5['push'](new ft('$text',{'vid':null===_0x35b14f?this['_revisionId']++:_0x35b14f++}));}if(_0x599b63['is']('documentFragment')){const _0x2cd616=F(_0x599b63['rootName']);return _0x2cd616['_insertChild'](0x0,_0x3ef2c5),_0x2cd616;}return _0x99cca8['_setAttribute']('vid_end',null===_0x35b14f?this['_revisionId']++:_0x35b14f++),_0x99cca8['_insertChild'](0x0,_0x3ef2c5),_0x99cca8;}['_calculateMetaData'](_0x3e4e20,_0x275b68,_0xf255ec){this['_reset']();const {roots:_0x51f580,markers:_0x63be98,rootsAttributes:_0x43ae42}=this['_savedMetaData']['get'](_0x3e4e20);this['_baseRoots']=new Map(_0x51f580),this['_baseRootsAttributes']=new Map(_0x4ec4bc(_0x43ae42));for(const [_0x46ff44,_0x2b0e98]of this['_baseRoots'])if('$graveyard'!==_0x46ff44&&(this['_diffRoots']['set'](_0x46ff44,T(_0x2b0e98)),this['_diffRootsAttributes']=new Map(_0x4ec4bc(_0x43ae42)),_0xf255ec)){const _0x52c7eb=this['_revisionId'];this['_idsRoots']['set'](_0x46ff44,this['_makeIdsRoot'](_0x2b0e98)),this['_baseIdsRoots']['set'](_0x46ff44,this['_makeIdsRoot'](_0x2b0e98,_0x52c7eb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xf255ec&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x206663,_0x1c1a65]of _0x63be98){const _0x8856ee=this['_baseRoots']['get'](_0x1c1a65['rootName']),_0x443cca=this['_diffRoots']['get'](_0x1c1a65['rootName']),_0x5265bb=new vt(this['_fixPosition'](_0x1c1a65['start'],_0x8856ee),this['_fixPosition'](_0x1c1a65['end'],_0x8856ee)),_0xa17b7d=this['_fixRange'](_0x5265bb,_0x443cca);_0x8856ee['markers']['set'](_0x206663,_0x5265bb),this['_markers']['set'](_0x206663,_0xa17b7d);}this['_applyOperations'](_0x3e4e20,_0x275b68,_0xf255ec);}['_applyOperations'](_0x2dd1b7,_0x315ca1,_0xb7387a){for(const _0x535cbf of this['source']['getOperations'](_0x2dd1b7,_0x315ca1))this['_handleOperation'](_0x535cbf,_0xb7387a);for(const _0x35b7b8 of this['_diffRoots']['values']())_0x35b7b8['markers']['clear']();for(const [_0x4b51be,_0x329a32]of this['_markers']){this['_diffRoots']['get'](_0x329a32['root']['rootName'])['markers']['set'](_0x4b51be,_0x329a32['clone']());}const _0x5ae03f=new Map(),_0x574fff=new Map();for(const [_0x271195,_0x10b6c0]of this['_diffRoots'])_0x5ae03f['set'](_0x271195,T(_0x10b6c0)),_0x574fff['set'](_0x271195,this['_diffRootsAttributes']['get'](_0x271195));this['_saveMetaData'](_0x315ca1,_0x5ae03f,this['_markers'],_0x574fff);}['_getPreviousFrom'](_0x29532a){const _0x26d9c3=Array['from'](this['_savedMetaData']['keys']());_0x26d9c3['sort']((_0x32795e,_0x2fc389)=>_0x32795e-_0x2fc389),_0x26d9c3['reverse']();for(const _0xf44ec2 of _0x26d9c3)if(_0xf44ec2<_0x29532a)return _0xf44ec2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x67bf15,_0x3bf11e){const _0x170238=Array['from'](_0x3bf11e['markers'])['map'](([_0x239d1b,_0x106a6a])=>[_0x239d1b,this['_fixRange'](_0x106a6a,_0x67bf15)]);_0x67bf15['markers']=new Map(_0x170238);}['_transformMarkers'](_0x447ac8){for(const _0x29e2ae of this['_markers']['values']()){const _0x1310ae=_0x29e2ae['getTransformedByOperation'](_0x447ac8),_0x5c7ff1=vt['_createFromRanges'](_0x1310ae);_0x29e2ae['start']=_0x5c7ff1['start'],_0x29e2ae['end']=_0x5c7ff1['end'];}}['_handleOperation'](_0x258cf8,_0x488e02){if('addRoot'!=_0x258cf8['type']&&'detachRoot'!=_0x258cf8['type']){if('insert'==_0x258cf8['type']){const _0x3bc5b2=_0x258cf8['position']['root']['rootName'];this['_diffRoots']['has'](_0x3bc5b2)||(this['_diffRoots']['set'](_0x3bc5b2,F(_0x3bc5b2,!0x0)),this['_diffRootsAttributes']['set'](_0x3bc5b2,{}),_0x488e02&&this['_idsRoots']['set'](_0x3bc5b2,F(_0x3bc5b2,!0x0)));}else{if('addRootAttribute'==_0x258cf8['type']||'removeRootAttribute'==_0x258cf8['type']||'changeRootAttribute'==_0x258cf8['type'])return void this['_handleRootAttributeOperation'](_0x258cf8);'marker'==_0x258cf8['type']&&this['_handleMarkerOperation'](_0x258cf8);}if('marker'!==_0x258cf8['type']){const _0x320c73=this['_cloneOperation'](_0x258cf8,this['_diffRoots']);_0x320c73['_execute'](),this['_transformMarkers'](_0x320c73);}if(_0x488e02)switch(_0x258cf8['type']){case'insert':this['_handleInsertOperation'](_0x258cf8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x258cf8);break;case'merge':this['_handleMergeOperation'](_0x258cf8);break;case'split':this['_handleSplitOperation'](_0x258cf8);}}else this['_handleRootOperation'](_0x258cf8,_0x488e02);}['_cloneOperation'](_0x552a78,_0x2fc482){const _0xbda450=_0x552a78['clone']();return _0xbda450['_authorId']=_0x552a78['_authorId'],this['_fixOperation'](_0xbda450,_0x2fc482),_0xbda450;}['_getBaseVids'](_0x19f0ab){return _0x19f0ab['map'](_0x3a8957=>{const _0x32cdd6=this['_getVidAttributeName'](_0x3a8957);return Number(_0x3a8957['item']['getAttribute'](_0x32cdd6));});}['_generateTape'](_0x9f3524,_0x5ea6cf){if(_0x9f3524['is']('element','$text'))_0x5ea6cf['push']({'item':_0x9f3524,'type':'text'});else{_0x9f3524['is']('element')&&_0x5ea6cf['push']({'item':_0x9f3524,'type':'elementStart'});for(const _0x241535 of _0x9f3524['getChildren']())this['_generateTape'](_0x241535,_0x5ea6cf);_0x9f3524['is']('element')&&_0x5ea6cf['push']({'item':_0x9f3524,'type':'elementEnd'});}return _0x5ea6cf;}['_getState'](){const _0x32f6b7=new Map(this['_touched']),_0x5d3eef=new Map(_0x32f6b7),_0x50ef0a=new Map(),_0x2ec42b={'insertions':{},'deletions':{}},_0x320e27={'insertions':{},'deletions':{}},_0xb69aab=new Map(),_0x5ca507=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ca507['delete']('$graveyard');for(const _0x4c95d5 of _0x5ca507){const _0x84cf01=this['_diffRoots']['get'](_0x4c95d5)||F(_0x4c95d5,!0x1),_0x1bdf99=this['_baseRoots']['get'](_0x4c95d5)||F(_0x4c95d5,!0x1);_0x84cf01['isAttached']()||_0x1bdf99['isAttached']()?(_0x2ec42b['insertions'][_0x4c95d5]=T(_0x84cf01),_0x2ec42b['deletions'][_0x4c95d5]=T(_0x1bdf99),this['_copyMarkers'](_0x2ec42b['deletions'][_0x4c95d5],_0x1bdf99),this['_copyMarkers'](_0x2ec42b['insertions'][_0x4c95d5],_0x84cf01),_0x320e27['insertions'][_0x4c95d5]=this['_generateTape'](this['_idsRoots']['get'](_0x4c95d5),[]),_0x320e27['deletions'][_0x4c95d5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c95d5)||F(_0x4c95d5,!0x1),[])):_0x5ca507['delete'](_0x4c95d5);}for(const _0xe2a4b8 of _0x5ca507){const _0x253702=_0x320e27['insertions'][_0xe2a4b8];for(const _0x51a786 of _0x253702){const _0x4e80cc=this['_getVidAttributeName'](_0x51a786),_0x1105a4=_0x51a786['item']['getAttribute'](_0x4e80cc);_0x5d3eef['delete'](_0x1105a4),_0x1105a4>=this['_startingRevisionId']&&_0x50ef0a['set'](_0x1105a4,_0x32f6b7['get'](_0x1105a4));}}for(const _0xcc3d74 of _0x5ca507){const _0x53aac4=_0x320e27['insertions'][_0xcc3d74],_0x405249=this['_getBaseVids'](_0x320e27['deletions'][_0xcc3d74]);let _0x999f86=0x0;for(const _0x36d8f0 of _0x53aac4){const _0x49c4be=this['_getVidAttributeName'](_0x36d8f0),_0x1e8566=_0x36d8f0['item']['getAttribute'](_0x49c4be);if(!_0x50ef0a['has'](_0x1e8566)&&!_0xb69aab['has'](_0x1e8566)){if(_0x5d3eef['has'](_0x1e8566))_0x999f86++;else{if(_0x1e8566!=_0x405249[_0x999f86]){const _0x12dc11=_0x32f6b7['get'](_0x1e8566)||_0x32f6b7['get'](_0x405249[_0x999f86]);for(;_0x1e8566!=_0x405249[_0x999f86];)_0x5d3eef['has'](_0x405249[_0x999f86])||(_0xb69aab['set'](_0x405249[_0x999f86],_0x12dc11),_0x32f6b7['set'](_0x405249[_0x999f86],_0x12dc11)),_0x999f86++;}_0x999f86++;}}}}for(const _0x90cec0 of _0x5ca507){const _0x36647d=_0x320e27['insertions'][_0x90cec0];for(const _0x4f1a49 of _0x36647d){const _0x488a74=this['_getVidAttributeName'](_0x4f1a49),_0x171ce0=_0x4f1a49['item']['getAttribute'](_0x488a74);if(_0xb69aab['has'](_0x171ce0)){const _0x3fcd7d=_0xb69aab['get'](_0x171ce0);_0x5d3eef['has'](_0x171ce0)||_0x5d3eef['set'](_0x171ce0,{..._0x3fcd7d}),_0x50ef0a['set'](_0x171ce0,{..._0x3fcd7d});}}}for(const _0x3081d3 of _0x5d3eef['keys']())_0x3081d3>=this['_startingRevisionId']&&_0x5d3eef['delete'](_0x3081d3);const _0xee61df=new Map();for(const _0x53325e of _0x5ca507){let _0x5b114a=_0x320e27['insertions'][_0x53325e];for(const _0x5ac269 of _0x5b114a)if(_0x5ac269['item']['is']('element','tableCell')){const _0x51573f=this['_getVidAttributeName'](_0x5ac269),_0x2cd826=_0x5ac269['item']['getAttribute'](_0x51573f);if(_0x50ef0a['has'](_0x2cd826)){const _0x5eb0a0=_0x5ac269['item']['parent']['parent']['getAttribute']('vid_start'),_0x262afd=_0xee61df['get'](_0x5eb0a0)||new Set();_0x262afd['add'](_0x50ef0a['get'](_0x2cd826)['userId']),_0xee61df['set'](_0x5eb0a0,_0x262afd);}}_0x5b114a=_0x320e27['deletions'][_0x53325e];for(const _0x492998 of _0x5b114a)if(_0x492998['item']['is']('element','tableCell')){const _0x1a787f=this['_getVidAttributeName'](_0x492998),_0x5ec457=_0x492998['item']['getAttribute'](_0x1a787f);if(_0x5d3eef['has'](_0x5ec457)){const _0x226a21=_0x492998['item']['parent']['parent']['getAttribute']('vid_start'),_0x4125a4=_0xee61df['get'](_0x226a21)||new Set();_0x4125a4['add'](_0x5d3eef['get'](_0x5ec457)['userId']),_0xee61df['set'](_0x226a21,_0x4125a4);}}for(const _0x19c393 of _0xee61df['keys']())(_0x50ef0a['has'](_0x19c393)||_0x5d3eef['has'](_0x19c393))&&_0xee61df['delete'](_0x19c393);}for(const _0x1d11e8 of _0x5ca507){const _0x1d3cbc=_0x320e27['insertions'][_0x1d11e8];let _0x1dfdac=null,_0x2659c8=null;for(const _0x1c18f8 of _0x1d3cbc){const _0x30ff15=this['_getVidAttributeName'](_0x1c18f8),_0x1800cc=_0x1c18f8['item']['getAttribute'](_0x30ff15),_0x39b48c=_0xee61df['get'](_0x1800cc);_0x39b48c&&'elementStart'==_0x1c18f8['type']&&(_0x1dfdac=Array['from'](_0x39b48c)[0x0],_0x2659c8=_0x1c18f8['item']['getAttribute']('vid_end')),_0x1dfdac&&(_0x5d3eef['set'](_0x1800cc,{'userId':_0x1dfdac}),_0x50ef0a['set'](_0x1800cc,{'userId':_0x1dfdac})),_0x1800cc==_0x2659c8&&(_0x1dfdac=null,_0x2659c8=null);}}const _0x2dd606={},_0x44c7c3=new Set();for(const _0x2f3502 of _0x5ca507){const _0x5503a8=_0x2ec42b['deletions'][_0x2f3502],_0x36b7ce=_0x2ec42b['insertions'][_0x2f3502];for(const {userId:_0x41fc04}of this['_touchedMarkers']['values']())null!==_0x41fc04&&_0x44c7c3['add'](_0x41fc04);for(const {userId:_0x5186b7}of this['_touchedRoots']['values']())null!==_0x5186b7&&_0x44c7c3['add'](_0x5186b7);this['_markChanges'](_0x36b7ce,_0x320e27['insertions'][_0x2f3502],_0x50ef0a,'insertion',_0x44c7c3),this['_markChanges'](_0x5503a8,_0x320e27['deletions'][_0x2f3502],_0x5d3eef,'deletion',_0x44c7c3),_0x2dd606[_0x2f3502]={'insertions':this['_prepareViewToSave'](_0x36b7ce),'deletions':this['_prepareViewToSave'](_0x5503a8),'attachChange':this['_touchedRoots']['get'](_0x2f3502)||null,'attributesBefore':_0x4ec4bc(this['_baseRootsAttributes']['get'](_0x2f3502))||{},'attributesAfter':_0x4ec4bc(this['_diffRootsAttributes']['get'](_0x2f3502))};}return{'diffData':_0x2dd606,'authorsIds':Array['from'](_0x44c7c3)};}['_processRootBeforeSave'](_0x3e2e58){for(const [,_0x5f29b8]of _0x3e2e58['markers']){const _0x578e02=_0x5f29b8['start']['getAncestors']()['filter'](_0x11823c=>'tableCell'==_0x11823c['name']);for(const _0x3dd427 of _0x578e02)0x1==_0x3dd427['childCount']&&_0x3dd427['getChild'](0x0)['is']('element','paragraph')&&_0x3dd427['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1a35b8){this['_processRootBeforeSave'](_0x1a35b8);const _0x295102=this['editor']['data']['toView'](_0x1a35b8,{}),_0x365ab9=Array['from'](_0x295102['getChildren']())['map'](_0x28ba28=>this['_getViewJson'](_0x28ba28));return JSON['stringify'](_0x365ab9);}['_getViewJson'](_0xd4b286){if(_0xd4b286['is']('$text'))return _0xd4b286['data'];{const _0x3ff99b=_0xd4b286;return{'type':Object['keys'](P)['find'](_0x45f29f=>_0xd4b286 instanceof P[_0x45f29f]),'name':_0x3ff99b['name'],'attributes':Array['from'](_0x3ff99b['getAttributes']()),'children':Array['from'](_0x3ff99b['getChildren']())['map'](_0x2017dd=>this['_getViewJson'](_0x2017dd))};}}['_markChanges'](_0x6a1d15,_0x157cb7,_0x14fca3,_0xfd29ac,_0x56460d){let _0x3edaaa=null,_0x499c57=null,_0x50c1fb=0x0;const _0x35d6c1=this['editor']['model'];for(let _0x1c0395=0x0;_0x1c0395<_0x157cb7['length'];_0x1c0395++){const _0x1931f8=this['_getVidAttributeName'](_0x157cb7[_0x1c0395]),_0x3e34a5=_0x157cb7[_0x1c0395]['item']['getAttribute'](_0x1931f8),_0x2a12c9=_0x14fca3['get'](_0x3e34a5),_0x57c001=_0x1c0395==_0x157cb7['length']-0x1;(!_0x3edaaa&&_0x2a12c9&&(_0x3edaaa=_0x2a12c9,_0x499c57=_0x157cb7[_0x1c0395]),_0x3edaaa&&(!_0x2a12c9||_0x2a12c9['userId']!=_0x3edaaa['userId']))&&(_0x150e1b(_0x2a12c9,B(_0x499c57,_0x6a1d15,_0x35d6c1),B(_0x157cb7[_0x1c0395],_0x6a1d15,_0x35d6c1)),_0x3edaaa=_0x2a12c9||null,_0x499c57=_0x2a12c9?_0x157cb7[_0x1c0395]:null),_0x3edaaa&&_0x57c001&&_0x150e1b(_0x2a12c9,B(_0x499c57,_0x6a1d15,_0x35d6c1),J(_0x157cb7[_0x1c0395],_0x6a1d15,_0x35d6c1));}function _0x150e1b(_0x588bc8,_0x292c7e,_0x12b41f){const _0x5ccf5b=_0x3edaaa['userId'],_0x49ee09='revision:'+_0xfd29ac+':'+_0x5ccf5b+':'+_0x50c1fb++,_0x9f8d5=_0x35d6c1['createRange'](_0x292c7e,_0x12b41f);_0x6a1d15['markers']['set'](_0x49ee09,_0x9f8d5),null!==_0x5ccf5b&&_0x56460d['add'](_0x5ccf5b);}}['_getVidAttributeName'](_0x224de2){switch(_0x224de2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4f4e38,_0x1267bc){_0x4f4e38['baseVersion']=null;for(const _0x26ac25 in _0x4f4e38){const _0xd28845=_0x4f4e38[_0x26ac25];if(_0xd28845 instanceof gt){const _0x10664e=_0x1267bc['get'](_0xd28845['root']['rootName']);_0x4f4e38[_0x26ac25]=this['_fixPosition'](_0xd28845,_0x10664e);}if(_0xd28845 instanceof vt){const _0x3938e2=_0x1267bc['get'](_0xd28845['root']['rootName']);_0x4f4e38[_0x26ac25]=this['_fixRange'](_0xd28845,_0x3938e2);}'root'===_0x26ac25&&(_0x4f4e38['root']=_0x1267bc['get'](_0x4f4e38['root']['rootName']));}}['_fixRange'](_0xbd1367,_0x15679c){return this['editor']['model']['createRange'](this['_fixPosition'](_0xbd1367['start'],_0x15679c),this['_fixPosition'](_0xbd1367['end'],_0x15679c));}['_fixPosition'](_0x1f5cc2,_0x55adb5){return this['editor']['model']['createPositionFromPath'](_0x55adb5,_0x1f5cc2['path'],_0x1f5cc2['stickiness']);}['_handleInsertOperation'](_0x4f1837){const _0x3daa96=this['_idsRoots']['get'](_0x4f1837['position']['root']['rootName']),_0x34c295=this['_fixPosition'](_0x4f1837['position'],_0x3daa96),_0xa5943=null===_0x4f1837['_authorId']?null:_0x4f1837['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467e07=_0x34c295['parent'],_0x58a6db=this['_revisionId'],_0x190e94=[];for(const _0x49f3ed of _0x4f1837['nodes'])if(_0x49f3ed['is']('element'))_0x190e94['push'](this['_makeIdsRoot'](_0x49f3ed));else{for(let _0xe4173c=0x0;_0xe4173c<_0x49f3ed['offsetSize'];_0xe4173c++)_0x190e94['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x195a6b=this['_revisionId'];for(let _0x432f54=_0x58a6db;_0x432f54<_0x195a6b;_0x432f54++)this['_touched']['set'](_0x432f54,{'userId':_0xa5943});_0x467e07['_insertChild'](_0x34c295['offset'],_0x190e94);}['_handleMoveOperation'](_0x3b0ba2){(_0x3b0ba2=this['_cloneOperation'](_0x3b0ba2,this['_idsRoots']))['_execute']();const _0x453d37=null===_0x3b0ba2['_authorId']?null:_0x3b0ba2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d4185=_0x3b0ba2['getMovedRangeStart'](),_0x41c989=_0x2d4185['parent'],_0x550d9e=_0x2d4185['offset'];!function _0x4844ff(_0x39d8e6,_0x3a8288,_0x4246a1,_0x3b9bba){for(let _0x2c6ef8=_0x4246a1;_0x2c6ef8<_0x3b9bba;_0x2c6ef8++){const _0x80d94d=_0x3a8288['getChild'](_0x2c6ef8);_0x80d94d['is']('element','$text')?_0x39d8e6['set'](_0x80d94d['getAttribute']('vid'),{'userId':_0x453d37}):(_0x39d8e6['set'](_0x80d94d['getAttribute']('vid_start'),{'userId':_0x453d37}),_0x4844ff(_0x39d8e6,_0x80d94d,0x0,_0x80d94d['childCount']),_0x39d8e6['set'](_0x80d94d['getAttribute']('vid_end'),{'userId':_0x453d37}));}}(this['_touched'],_0x41c989,_0x550d9e,_0x550d9e+_0x3b0ba2['howMany']);}['_handleMergeOperation'](_0x18a58b){const _0x2ee5a1=null===(_0x18a58b=this['_cloneOperation'](_0x18a58b,this['_idsRoots']))['_authorId']?null:_0x18a58b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3553c4=_0x18a58b['targetPosition']['parent'],_0x3339fc=_0x18a58b['sourcePosition']['parent'],_0x35611c=_0x3553c4['getAttribute']('vid_end'),_0x15de77=_0x3339fc['getAttribute']('vid_start');_0x3553c4['_setAttribute']('vid_end',_0x3339fc['getAttribute']('vid_end')),_0x3339fc['_setAttribute']('vid_end',_0x35611c),this['_touched']['set'](_0x15de77,{'userId':_0x2ee5a1}),this['_touched']['set'](_0x35611c,{'userId':_0x2ee5a1}),_0x18a58b['_execute']();}['_handleSplitOperation'](_0x29f05d){const _0x2e819c=null===(_0x29f05d=this['_cloneOperation'](_0x29f05d,this['_idsRoots']))['_authorId']?null:_0x29f05d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28b388=_0x29f05d['graveyardPosition'],_0x51a5c3=_0x29f05d['splitPosition']['parent'];_0x29f05d['_execute']();const _0x11c0ea=_0x51a5c3['getAttribute']('vid_end'),_0x57c8a1=_0x29f05d['insertionPosition']['nodeAfter'];if(_0x28b388){const _0x26a54e=_0x57c8a1['getAttribute']('vid_end'),_0x4da0bd=_0x51a5c3['getAttribute']('vid_end');_0x51a5c3['_setAttribute']('vid_end',_0x26a54e),_0x57c8a1['_setAttribute']('vid_end',_0x4da0bd),this['_touched']['set'](_0x51a5c3['getAttribute']('vid_end'),{'userId':_0x2e819c}),this['_touched']['set'](_0x57c8a1['getAttribute']('vid_start'),{'userId':_0x2e819c});}else{const _0x231c73=this['_revisionId']++,_0x3748bf=this['_revisionId']++;_0x51a5c3['_setAttribute']('vid_end',_0x231c73),_0x57c8a1['_setAttribute']('vid_start',_0x3748bf),_0x57c8a1['_setAttribute']('vid_end',_0x11c0ea),this['_touched']['set'](_0x231c73,{'userId':_0x2e819c}),this['_touched']['set'](_0x3748bf,{'userId':_0x2e819c});}}['_handleMarkerOperation'](_0x3823b0){if(!_0x3823b0['affectsData'])return;const _0x3d3ba4=(_0x3823b0=this['_cloneOperation'](_0x3823b0,this['_diffRoots']))['oldRange']?_0x3823b0['oldRange']['root']:null,_0x5dd20a=_0x3823b0['newRange']?_0x3823b0['newRange']['root']:null;_0x3d3ba4&&this['_markers']['delete'](_0x3823b0['name']),_0x5dd20a&&this['_markers']['set'](_0x3823b0['name'],_0x3823b0['newRange']['clone']());const _0x81ee8a=null===_0x3823b0['_authorId']?null:_0x3823b0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x82e7bf=_0x3823b0['name'];if(!this['_touchedMarkers']['has'](_0x82e7bf))return void this['_touchedMarkers']['set'](_0x82e7bf,{'range':_0x3823b0['oldRange'],'userId':_0x81ee8a});const _0x38ad90=this['_touchedMarkers']['get'](_0x82e7bf),_0x3c298c=_0x38ad90['range'],_0x16d0f8=_0x3823b0['newRange'];null==_0x3c298c&&null==_0x16d0f8||_0x3c298c&&_0x16d0f8&&_0x3c298c['isEqual'](_0x16d0f8)?this['_touchedMarkers']['delete'](_0x3823b0['name']):_0x38ad90['userId']=_0x81ee8a;}['_handleRootOperation'](_0x1da226,_0x151d6c){this['_diffRoots']['has'](_0x1da226['rootName'])?this['_diffRoots']['get'](_0x1da226['rootName'])['_isAttached']=_0x1da226['isAdd']:(this['_diffRoots']['set'](_0x1da226['rootName'],F(_0x1da226['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1da226['rootName'],{}),_0x151d6c&&this['_idsRoots']['set'](_0x1da226['rootName'],F(_0x1da226['rootName'],!0x0)));const _0x281e89=null===_0x1da226['_authorId']?null:_0x1da226['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54c08c=this['_touchedRoots']['get'](_0x1da226['rootName']);_0x54c08c&&_0x54c08c['userId']===_0x281e89?this['_touchedRoots']['delete'](_0x1da226['rootName']):this['_touchedRoots']['set'](_0x1da226['rootName'],{'userId':_0x281e89,'isAttached':_0x1da226['isAdd']});}['_handleRootAttributeOperation'](_0x40fcaa){const _0x442550=this['_diffRootsAttributes']['get'](_0x40fcaa['root']['rootName']);null===_0x40fcaa['newValue']?delete _0x442550[_0x40fcaa['key']]:_0x442550[_0x40fcaa['key']]=_0x40fcaa['newValue'];}}function T(_0x34a1ee){const _0x901cbc=F(_0x34a1ee['rootName'],_0x34a1ee['isAttached']());for(const _0xcea216 of _0x34a1ee['getChildren']()){const _0x7397be=_0xcea216['_clone'](!0x0);_0x901cbc['_appendChild'](_0x7397be);}return _0x901cbc;}function F(_0x284e8e,_0x5c0aad=!0x0){const _0x306132=new mt();return _0x306132['rootName']=_0x284e8e,_0x306132['_isAttached']=_0x5c0aad,_0x306132['isAttached']=()=>_0x306132['_isAttached'],_0x306132;}function B(_0x3b4b13,_0x5a54fd,_0x3bca45){const _0x2ef9ab='elementEnd'==_0x3b4b13['type']?_0x3bca45['createPositionAt'](_0x3b4b13['item'],'end'):_0x3bca45['createPositionBefore'](_0x3b4b13['item']);return _0x3bca45['createPositionFromPath'](_0x5a54fd,_0x2ef9ab['path'],_0x2ef9ab['stickiness']);}function J(_0x53b8a5,_0x1f4091,_0x40a8df){const _0x2201dc='elementStart'==_0x53b8a5['type']?_0x40a8df['createPositionAt'](_0x53b8a5['item'],0x0):_0x40a8df['createPositionAfter'](_0x53b8a5['item']);return _0x40a8df['createPositionFromPath'](_0x1f4091,_0x2201dc['path'],_0x2201dc['stickiness']);}class ns extends _0x4d5ed7{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c4329,_0x372eb8){super(_0x1c4329),this['focusTracker']=new _0x8efe5d(),this['keystrokes']=new _0x930a6c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x372eb8),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2aa75b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x512a8b=_0x48eb68=>_0x48eb68['stopPropagation']();this['keystrokes']['set']('arrowright',_0x512a8b),this['keystrokes']['set']('arrowleft',_0x512a8b),this['keystrokes']['set']('arrowup',_0x512a8b),this['keystrokes']['set']('arrowdown',_0x512a8b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x249c35){this['revisionNameInputView']['fieldView']['element']['value']=_0x249c35['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x46aaee){const _0x22b078=new nt(this['locale'],_0x1d43cd),_0x2b931d=_0x22b078['fieldView'];_0x2b931d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3b3bfe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x46aaee&&(_0x3b3bfe+='\x20('+m(this['locale'],'optional')+')'),(_0x22b078['label']=_0x3b3bfe,_0x2b931d['on']('input',()=>{this['revisionNameInputValue']=_0x2b931d['element']['value']['trim']();}),_0x22b078);}}class u extends _0x3c3b4e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4433c4=this['editor'],_0x5e3f98=_0x4433c4['plugins']['get']('RevisionTracker');_0x4433c4['ui']['componentFactory']['add']('revisionHistory',_0x5e4432=>{const _0x25e4d6=_0x492887(_0x5e4432),_0x3282f5=_0x25e4d6['panelView']['children'],_0xdce09c=new te(_0x5e4432),_0x260ded=new _0x2171e0(_0x5e4432),_0x3f28ce=new _0x1efaec(_0x5e4432),_0x5451de=new _0x2171e0(_0x5e4432),_0x1528f4=new _0x1efaec(_0x5e4432);return _0x25e4d6['bind']('isEnabled')['to'](_0x5e3f98,'isReady',_0x5e3f98,'isEnabled',_0x4433c4,'isReadOnly',(_0x36d7ca,_0x365cbc,_0x521cc0)=>_0x36d7ca&&_0x365cbc&&!_0x521cc0),_0x25e4d6['buttonView']['set']({'icon':_0x41e7ec['history'],'label':m(_0x5e4432,'Revision\x20history'),'tooltip':!0x0}),_0x3f28ce['set']({'label':m(_0x5e4432,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3f28ce['bind']('isEnabled')['to'](_0x5e3f98,'isReady',_0x5e3f98,'isEnabled',_0x4433c4,'isReadOnly',(_0x10c81e,_0x310e1a,_0x160fd8)=>_0x10c81e&&_0x310e1a&&!_0x160fd8),_0x3f28ce['on']('execute',()=>this['_showDialog']()),_0x1528f4['set']({'label':m(_0x5e4432,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1528f4['bind']('isEnabled')['to'](_0x5e3f98,'isReady',_0x4433c4,'isReadOnly',(_0x780e04,_0x9d20ab)=>_0x780e04&&!_0x9d20ab),_0x1528f4['on']('execute',()=>{_0x4433c4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x25e4d6['isOpen']=!0x1,_0x4433c4['editing']['view']['focus']();}),_0x260ded['children']['add'](_0x3f28ce),_0x5451de['children']['add'](_0x1528f4),_0xdce09c['role']='menu',_0xdce09c['items']['addMany']([_0x260ded,_0x5451de]),_0x3282f5['add'](_0xdce09c),_0x25e4d6;}),_0x4433c4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49c644=this['editor'],_0xba1e05=_0x49c644['locale'],_0x3e2cba=new _0x2ca639(_0xba1e05),_0xb4c4dd=new _0x38b365(_0xba1e05);_0x3e2cba['buttonView']['set']({'icon':_0x41e7ec['history'],'label':m(_0xba1e05,'Revision\x20history')});const _0x5b42f6=new _0x21647c(_0xba1e05,_0x3e2cba),_0x10ad98=new _0x268d7f(_0xba1e05);_0x10ad98['set']({'label':m(_0xba1e05,'Save\x20current\x20revision')}),_0x10ad98['delegate']('execute')['to'](_0x3e2cba),_0x10ad98['on']('execute',()=>{this['_showDialog']();}),_0x5b42f6['children']['add'](_0x10ad98),_0xb4c4dd['items']['add'](_0x5b42f6);const _0x47d505=new _0x21647c(_0xba1e05,_0x3e2cba),_0xb6669f=new _0x268d7f(_0xba1e05);return _0xb6669f['set']({'label':m(_0xba1e05,'Open\x20revision\x20history')}),_0xb6669f['delegate']('execute')['to'](_0x3e2cba),_0xb6669f['on']('execute',()=>{_0x49c644['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x47d505['children']['add'](_0xb6669f),_0xb4c4dd['items']['add'](_0x47d505),_0x3e2cba['panelView']['children']['add'](_0xb4c4dd),_0x3e2cba;}['_showDialog'](){const _0x54d14b=this['editor'],_0x26db0a=_0x54d14b['locale'],_0x34fe72=_0x54d14b['plugins']['get']('Dialog'),_0x6becdf=_0x54d14b['plugins']['get']('RevisionTracker');function _0xb4fde8(_0x4f4786){_0x54d14b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4f4786['revisionName']?_0x4f4786['revisionNameInputView']['errorText']=m(_0x26db0a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x54d14b['plugins']['get'](l)['saveRevision']({'name':_0x4f4786['revisionName']}),_0x34fe72['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xb4fde8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x34fe72['show']({'id':'revisionSave','title':m(_0x26db0a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x54d14b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x34fe72['hide']()},{'label':m(_0x54d14b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x46e82a){_0x46e82a['bind']('isEnabled')['to'](_0x6becdf,'isReady',_0x6becdf,'isEnabled',_0x54d14b,'isReadOnly',(_0x595d0c,_0x11a6bb,_0x9cdb0e)=>_0x595d0c&&_0x11a6bb&&!_0x9cdb0e);},'onExecute':()=>_0xb4fde8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x84ea7c=this['editor'],_0x359d34=_0x84ea7c['locale'];this['_saveRevisionFormView']=new ns(_0x359d34,_0x84ea7c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4d5ed7{['changeId'];['_model'];constructor(_0x3f1174,_0x59567c){super(_0x3f1174),this['_model']=_0x59567c,this['changeId']=_0x59567c['id'];const _0x459499=this['bindTemplate'],_0x1a3435=m(_0x3f1174,_0x59567c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x59567c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x59567c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x459499['to']('type',_0x58f7f9=>'ck-revision-change__'+_0x58f7f9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1a3435}]},{'text':'\x20'+_0x59567c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x353b46(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x49f3f){super(),this['id']=_0x49f3f['id']||_0x5c2e0e(),this['author']=_0x49f3f['author'],this['type']=_0x49f3f['type'],this['data']=_0x49f3f['data']||{},this['rootName']=_0x49f3f['rootName'],this['set']('createdAt',_0x49f3f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x361a5a,_0x2af68d){this['newRevisionId']=_0x361a5a,this['oldRevisionId']=_0x2af68d,this['changes']=new _0x106ab5();}['_setChanges'](_0x3fe983){for(const _0x51c927 of _0x3fe983)this['changes']['add'](_0x51c927);}}const Y={'c':_0x1c2464,'a':_0x3cd23b,'e':_0xdf6c64,'r':_0x2bc33d,'u':_0x222704};class d extends _0x3c3b4e{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2fd09d,_0x31f833,j];}constructor(_0x188b88){super(_0x188b88),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x270eff,_0x252879,_0x516946)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4cabb8=>{for(const _0x134c54 of this['editor']['editing']['view']['document']['roots'])_0x516946?_0x4cabb8['removeClass']('ck-editor__editable__overlay',_0x134c54):_0x4cabb8['addClass']('ck-editor__editable__overlay',_0x134c54);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1e2a78=>null!==_0x1e2a78),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x957a2b,_0x1183ed,_0x57f734)=>_0x957a2b&&_0x57f734?_0x1183ed['changes']['getIndex'](_0x57f734):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x18c831,_0x3992cd)=>_0x18c831?_0x3992cd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x31f833);}['init'](){const _0x19ea0f=this['editor'],_0x184672=new yt(_0x19ea0f,{'direction':'backward'}),_0x13246c=new yt(_0x19ea0f,{'direction':'forward'});(_0x19ea0f['commands']['add']('showPreviousChange',_0x184672),_0x19ea0f['commands']['add']('showNextChange',_0x13246c),_0x19ea0f['commands']['add']('restoreRevision',new _t(_0x19ea0f)),this['on']('change:numberOfChanges',()=>{_0x184672['refresh'](),_0x13246c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x19ea0f['enableReadOnlyMode']('revision-viewer'),_0x19ea0f['plugins']['has']('WidgetToolbarRepository'))&&_0x19ea0f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x427bf8){await this['loadRevisionData'](_0x427bf8);const _0x5af750={};for(const _0x100539 in _0x427bf8['diffData']){if(_0x427bf8['diffData'][_0x100539]['attachChange']&&!_0x427bf8['diffData'][_0x100539]['attachChange']['isAttached'])continue;const _0x1745b2=this['_removeRevisionMarkers'](JSON['parse'](_0x427bf8['diffData'][_0x100539]['insertions'])),_0x2ebab1=this['editor']['editing']['view']['document'],_0x58960b=new _0x5aa646(_0x2ebab1,_0x1745b2['map'](_0x134b91=>this['_getViewObj'](_0x134b91)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5af750[_0x100539]=this['editor']['data']['processor']['toData'](_0x58960b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5af750;}async['getRevisionRootsAttributes'](_0x1510cb){await this['loadRevisionData'](_0x1510cb);const _0x3e870a={};for(const _0xb0d2fc in _0x1510cb['diffData'])_0x1510cb['diffData'][_0xb0d2fc]['attachChange']&&!_0x1510cb['diffData'][_0xb0d2fc]['attachChange']['isAttached']||(_0x3e870a[_0xb0d2fc]=_0x1510cb['diffData'][_0xb0d2fc]['attributesAfter']||{});return _0x3e870a;}['_removeRevisionMarkers'](_0x7e3141){return(_0x7e3141=_0x7e3141['filter'](_0x33cbb5=>!_0x33cbb5['name']||'revision-start'!==_0x33cbb5['name']&&'revision-end'!==_0x33cbb5['name']))['forEach'](_0x3fc729=>{'string'!=typeof _0x3fc729&&(_0x3fc729['children']=this['_removeRevisionMarkers'](_0x3fc729['children']),_0x3fc729['attributes']=_0x3fc729['attributes']['filter'](_0x1fc4d8=>!_0x1fc4d8[0x0]['startsWith']('data-revision-')));}),_0x7e3141;}async['compare'](_0xc59b1c,_0x2141d4,_0x53fe75=!0x1){if(!this['isEnabled'])return;const _0x9d6ee7=this['diff'],_0x2f0b5a=this['repository'],_0x156c46='string'==typeof _0xc59b1c?_0x2f0b5a['getRevision'](_0xc59b1c):_0xc59b1c,_0x3ec197='string'==typeof _0x2141d4?_0x2f0b5a['getRevision'](_0x2141d4):_0x2141d4,_0x454f09=_0x156c46['id'],_0x36a6ba=_0x3ec197?_0x3ec197['id']:null;if(!_0x53fe75&&this['diff']&&this['diff']['newRevisionId']===_0x454f09&&this['diff']['oldRevisionId']===_0x36a6ba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x454f09,_0x36a6ba);const _0xf78386=this['_getRevisionsRange'](_0x156c46,_0x3ec197,!0x0)['map'](_0x14a09b=>this['loadRevisionData'](_0x14a09b));return _0xf78386['push'](new Promise(_0x1539d6=>{setTimeout(_0x1539d6,0x14);})),Promise['all'](_0xf78386)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1c7bdd=this['_getDiff'](_0x454f09,_0x36a6ba);for(const _0x5e015b of _0x1c7bdd['changes'])this['_changeIdToChange']['set'](_0x5e015b['id'],_0x5e015b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4244e3=>{for(const _0x552ba7 of this['editor']['model']['document']['getRootNames']())_0x4244e3['detachRoot'](_0x552ba7);for(const _0x193751 of Object['keys'](_0x1c7bdd['model'])){const _0x483b52=_0x4244e3['addRoot'](_0x193751);for(const _0x38a219 of Object['keys'](_0x1c7bdd['attributes'][_0x193751]))_0x4244e3['setAttribute'](_0x38a219,_0x1c7bdd['attributes'][_0x193751][_0x38a219],_0x483b52);_0x4244e3['insert'](_0x1c7bdd['model'][_0x193751],_0x483b52,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1c7bdd['changes'])),this['isReady']=!0x0;})['catch'](_0x20dde2=>{console['error'](_0x20dde2),this['_cleanUp'](),_0x9d6ee7&&(this['diff']=_0x9d6ee7),this['isReady']=!0x0;});}['addRevisionData'](_0x4bc619,_0x5a157b){const _0x21b141=this['repository']['createRevision'](_0x4bc619);return _0x21b141['on']('_update',(_0x265b3f,_0x5b6acd,_0x4eaa81)=>_0x5a157b(_0x5b6acd,_0x4eaa81,_0x21b141)),this['repository']['addRevision'](_0x21b141),_0x21b141;}['loadRevisionData'](_0xb088fd){if(!_0xb088fd||_0xb088fd['diffData'])return Promise['resolve']();{const _0x53d197=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x53d197,'revisionId':_0xb088fd['id']})['then'](_0x55b60c=>{_0xb088fd['_update']({'diffData':_0x55b60c['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1bf20f=>{for(const _0x474f80 of this['editor']['model']['document']['getRootNames']())_0x1bf20f['detachRoot'](_0x474f80);});}['_sortAndFilterDiffChanges'](_0x4ce184){const _0x1436f9=[],_0x10ed25=new Map();for(const _0x5b45a8 of this['editor']['model']['document']['getRootNames']()){const _0x5a794e=this['editor']['editing']['view']['getDomRoot'](_0x5b45a8);if(!_0x5a794e)continue;const _0x24a22e=_0x5a794e['getClientRects']()['item'](0x0);_0x24a22e&&(_0x1436f9['push'](_0x5b45a8),_0x10ed25['set'](_0x5b45a8,_0x24a22e));}return _0x1436f9['sort']((_0x4a4b6d,_0x346b35)=>{const _0x154a7b=_0x10ed25['get'](_0x4a4b6d),_0x234770=_0x10ed25['get'](_0x346b35);return _0x154a7b['y']-_0x234770['y']||_0x154a7b['x']-_0x234770['x'];}),(_0x4ce184=_0x4ce184['filter'](_0x30dc87=>_0x1436f9['includes'](_0x30dc87['rootName'])))['sort']((_0x5a2685,_0x25c798)=>_0x1436f9['indexOf'](_0x5a2685['rootName'])-_0x1436f9['indexOf'](_0x25c798['rootName'])),_0x4ce184;}['_makeTape'](_0x192e36){const _0x2f87f7=Array['from'](_0x192e36['markers'])['filter'](([_0x17a933,_0x5435c9])=>_0x17a933['startsWith']('revision:')&&!_0x5435c9['isCollapsed']),_0x256e9e=Array['from'](this['editor']['model']['createRangeIn'](_0x192e36)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2f87f7['length'])for(const _0x3d9106 of _0x256e9e){const [_0x378fff,_0xbc63f3]=_0x2f87f7[0x0],[,_0x15d8e4,_0x205e61]=_0x378fff['split'](':');if(_0xbc63f3['end']['isEqual'](_0x3d9106['nextPosition'])&&_0x2f87f7['shift'](),(_0x3d9106['previousPosition']['isEqual'](_0xbc63f3['start'])||_0x3d9106['previousPosition']['isAfter'](_0xbc63f3['start']))&&('insertion'==_0x15d8e4?_0x3d9106['isAdded']={'userId':_0x205e61}:'deletion'==_0x15d8e4&&(_0x3d9106['isRemoved']={'userId':_0x205e61})),0x0==_0x2f87f7['length'])break;}return _0x256e9e;}['_refreshStartEndIndex'](_0x22e6b4){const _0x412081=new Map();for(let _0x5325af=0x0;_0x5325af<_0x22e6b4['length'];_0x5325af++)'text'===_0x22e6b4[_0x5325af]['type']?(_0x22e6b4[_0x5325af]['item']['startIndex']=_0x5325af,_0x22e6b4[_0x5325af]['item']['endIndex']=_0x5325af):('elementStart'===_0x22e6b4[_0x5325af]['type']?_0x22e6b4[_0x5325af]['item']['startIndex']=_0x5325af:'elementEnd'===_0x22e6b4[_0x5325af]['type']&&(_0x22e6b4[_0x5325af]['item']['endIndex']=_0x5325af),_0x412081['set'](_0x22e6b4[_0x5325af]['id'],_0x5325af));for(const _0x3ebe89 of _0x412081['values']())'elementStart'===_0x22e6b4[_0x3ebe89]['type']?_0x22e6b4[_0x3ebe89]['item']['endIndex']=_0x412081['get'](_0x22e6b4[_0x3ebe89]['pairId']):'elementEnd'===_0x22e6b4[_0x3ebe89]['type']&&(_0x22e6b4[_0x3ebe89]['item']['startIndex']=_0x412081['get'](_0x22e6b4[_0x3ebe89]['pairId']));}['_processTape'](_0x5ebd4e){for(let _0x9c11c9=0x0;_0x9c11c9<_0x5ebd4e['length'];_0x9c11c9++){if('elementStart'===_0x5ebd4e[_0x9c11c9]['type'])_0x5ebd4e[_0x9c11c9]['item']['startIndex']=_0x9c11c9;else{if('elementEnd'===_0x5ebd4e[_0x9c11c9]['type']){_0x5ebd4e[_0x9c11c9]['item']['endIndex']=_0x9c11c9;const _0x2c0775=_0x5ebd4e[_0x9c11c9]['item']['startIndex'];_0x5ebd4e[_0x2c0775]['pairId']=_0x5ebd4e[_0x9c11c9]['id'],_0x5ebd4e[_0x9c11c9]['pairId']=_0x5ebd4e[_0x2c0775]['id'];}else _0x5ebd4e[_0x9c11c9]['item']['startIndex']=_0x9c11c9,_0x5ebd4e[_0x9c11c9]['item']['endIndex']=_0x9c11c9,_0x5ebd4e[_0x9c11c9]['pairId']=null;}_0x5ebd4e[_0x9c11c9]['markersStart']||(_0x5ebd4e[_0x9c11c9]['markersStart']=[],_0x5ebd4e[_0x9c11c9]['markersEnd']=[]);}}['_markInsertions'](_0x1f0e3a,_0x5a96ba){const _0xed8b7=_0x1f0e3a['filter'](_0x5a651f=>!_0x5a651f['isAdded']);for(let _0x5a4dd2=0x0;_0x5a4dd2<_0x5a96ba['length'];_0x5a4dd2++)_0x5a96ba[_0x5a4dd2]['isAdded']&&(_0xed8b7[_0x5a4dd2]['isAdded']=_0x5a96ba[_0x5a4dd2]['isAdded']);}['_makeModelFromViewString'](_0x315e4f){const _0x5d1c7f=JSON['parse'](_0x315e4f),_0x43cd98=this['editor']['editing']['view']['document'],_0x411a7e=new _0x5aa646(_0x43cd98,_0x5d1c7f['map'](_0x23da70=>this['_getViewObj'](_0x23da70)));return this['editor']['data']['toModel'](_0x411a7e);}['_getViewObj'](_0x511e3b){const _0x46f48c=this['editor']['editing']['view']['document'];if('string'==typeof _0x511e3b)return new _0x3f38e1(_0x46f48c,_0x511e3b);{const _0x203951=_0x511e3b['children']['map'](_0x30a747=>this['_getViewObj'](_0x30a747));return new(Y[_0x511e3b['type']]||_0x3ce25a)(_0x46f48c,_0x511e3b['name'],_0x511e3b['attributes'],_0x203951);}}['_getDiff'](_0x10da94,_0x33ba7f=null){const _0x1aaedc=this['repository']['getRevision'](_0x10da94),_0x1383f8=_0x33ba7f?this['repository']['getRevision'](_0x33ba7f):null,_0x21a93e=this['_getRevisionsRange'](_0x1aaedc,_0x1383f8),_0x376fdb=_0x21a93e[_0x21a93e['length']-0x1],_0x25c599=new Map(),_0x2835cf={'model':{},'attributes':{},'changes':[]},_0x16174a=new Set(),_0x3591db=new Map();for(let _0x57336f=_0x21a93e['length']-0x1;_0x57336f>=0x0;_0x57336f--){const _0x2ae716=_0x21a93e[_0x57336f];for(const _0x3c7686 of Object['keys'](_0x2ae716['diffData']))if(_0x2ae716['diffData'][_0x3c7686]['attachChange']){const _0x289a97=_0x2ae716['diffData'][_0x3c7686]['attachChange'];_0x289a97['isAttached']?(_0x16174a['add'](_0x3c7686),_0x3591db['has'](_0x3c7686)&&_0x3591db['get'](_0x3c7686)['userId']==_0x289a97['userId']?_0x3591db['delete'](_0x3c7686):_0x3591db['set'](_0x3c7686,_0x289a97)):_0x3591db['has'](_0x3c7686)?(_0x16174a['delete'](_0x3c7686),_0x3591db['delete'](_0x3c7686)):(_0x16174a['add'](_0x3c7686),_0x3591db['set'](_0x3c7686,_0x289a97));}else _0x16174a['add'](_0x3c7686);}for(const _0x59071e of _0x16174a){const _0x1e0bfb=_0x3591db['has'](_0x59071e)&&!_0x3591db['get'](_0x59071e)['isAttached'];let _0x3c1c7a=_0x1e0bfb?_0x21a93e['length']-0x1:0x0;const _0x463d0f=_0x1e0bfb?-0x1:0x1;for(;_0x21a93e[_0x3c1c7a];){const _0x501a50=_0x21a93e[_0x3c1c7a];if(_0x501a50['diffData'][_0x59071e]){const _0x3a4ef4=_0x1e0bfb?_0x501a50['diffData'][_0x59071e]['attributesBefore']:_0x501a50['diffData'][_0x59071e]['attributesAfter'];_0x2835cf['attributes'][_0x59071e]=_0x3a4ef4?_0x4ec4bc(_0x3a4ef4):{};break;}_0x3c1c7a+=_0x463d0f;}}for(const _0x2124fa of _0x21a93e){_0x2124fa['model']={};for(const _0x10bf18 of _0x2124fa['authors'])_0x25c599['set'](_0x10bf18['id'],_0x10bf18);for(const _0x297cd2 of _0x16174a){const _0x4830d7=_0x2124fa['diffData'][_0x297cd2]?_0x2124fa['diffData'][_0x297cd2]['insertions']:'[]',_0x36c117=_0x2124fa['diffData'][_0x297cd2]?_0x2124fa['diffData'][_0x297cd2]['deletions']:'[]';_0x2124fa['model'][_0x297cd2]={'insertions':this['_makeModelFromViewString'](_0x4830d7),'deletions':this['_makeModelFromViewString'](_0x36c117)};}}for(const _0x5b3ccb of _0x16174a){let _0x3040c8=null,_0x27f2d5=0x0;const _0x1b19cd=new Map(Array['from'](_0x1aaedc['model'][_0x5b3ccb]['insertions']['markers'])['filter'](([_0x5df5ab])=>!_0x5df5ab['startsWith']('revision:')));let _0x4f7c30=0x0;for(const _0x1a8f27 of _0x21a93e){const _0xc2d879=this['_makeTape'](_0x1a8f27['model'][_0x5b3ccb]['insertions']);_0x1a8f27==_0x1aaedc?(_0x3040c8=_0xc2d879,_0x27f2d5=_0x3040c8['length'],_0x3040c8['forEach'](_0x4336b2=>{_0x4336b2['id']=_0x4f7c30++;}),this['_processTape'](_0x3040c8)):this['_markInsertions'](_0x3040c8,_0xc2d879);const _0x1c1be1=_0x3040c8['filter'](_0x9d6d3d=>!_0x9d6d3d['isAdded'])['map'](_0x122a4a=>_0x122a4a['id']);let _0x4098fd=0x0;const _0x30584e=this['_makeTape'](_0x1a8f27['model'][_0x5b3ccb]['deletions']);_0x30584e['forEach'](_0x17c80d=>{_0x17c80d['isRemoved']?_0x17c80d['id']=_0x27f2d5++:_0x17c80d['id']=_0x1c1be1[_0x4098fd++];}),this['_processTape'](_0x30584e),this['_setDistance'](_0x3040c8,'isAdded'),this['_setDistance'](_0x30584e,'isRemoved'),_0x1a8f27==_0x1aaedc&&this['_markMarkers'](_0x3040c8,_0x1b19cd),_0x3040c8=this['_joinTapes'](_0x3040c8,_0x30584e),this['_refreshStartEndIndex'](_0x3040c8),this['_setDistance'](_0x3040c8,'isRemoved');}_0x3040c8=_0x3040c8['filter'](_0x3aa4dc=>!(_0x3aa4dc['isAdded']&&_0x3aa4dc['isRemoved']));const _0x2160c5=new Map(_0x376fdb['model'][_0x5b3ccb]['deletions']['markers']),_0x30d87c=new Set(_0x1b19cd['keys']());for(const _0xc91709 of _0x2160c5['keys']())_0x30d87c['delete'](_0xc91709);this['_markSuggestions'](_0x3040c8,_0x30d87c),this['_fixObsoleteTags'](_0x3040c8),_0x3040c8=this['_removeMissingPairs'](_0x3040c8),_0x3040c8=this['_markMismatchedRemovedTags'](_0x3040c8),_0x3040c8=this['_removeUnsupportedChanges'](_0x3040c8);const {root:_0xe6d3c6,changes:_0x5d7f97}=this['_makeModelFromTape'](_0x3040c8,_0x25c599,_0x5b3ccb);_0x2835cf['model'][_0x5b3ccb]=_0xe6d3c6;const _0x499e6d=_0x3591db['get'](_0x5b3ccb);if(_0x499e6d){const _0x866ca9=_0x25c599['get'](_0x499e6d['userId']),_0x32bd45=new r({'author':_0x866ca9,'type':_0x499e6d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5b3ccb});_0x5d7f97['unshift'](_0x32bd45),_0x2835cf['attributes'][_0x5b3ccb]['revisionHistoryAttachChange']=_0x32bd45['id'];}_0x2835cf['changes']=_0x2835cf['changes']['concat'](_0x5d7f97);}return _0x2835cf;}['_markMarkers'](_0x5e61e4,_0x768ac9){for(let _0x4c42fe=0x0;_0x4c42fe<_0x5e61e4['length'];_0x4c42fe++)for(const [_0x28de53,_0x2f3a74]of _0x768ac9)_0x2f3a74['start']['isEqual'](_0x5e61e4[_0x4c42fe]['previousPosition'])&&_0x5e61e4[_0x4c42fe]['markersStart']['push'](_0x28de53),_0x2f3a74['end']['isEqual'](_0x5e61e4[_0x4c42fe]['nextPosition'])&&_0x5e61e4[_0x4c42fe]['markersEnd']['push'](_0x28de53);}['_joinTapes'](_0x5b45f4,_0x119874){let _0x5ae2f3=[],_0x594ed1=0x0,_0x4c45d6=0x0;for(;_0x594ed1<_0x5b45f4['length']||_0x4c45d6<_0x119874['length'];){const _0xa260dd=_0x5b45f4[_0x594ed1]||{},_0x5ea097=_0x119874[_0x4c45d6]||{};if(_0xa260dd['id']==_0x5ea097['id'])_0x594ed1++,_0x4c45d6++,_0x5ae2f3['push'](_0xa260dd);else{if(_0x5ea097['isRemoved']&&_0xa260dd['isAdded']){const {commonTape:_0x41c2e4,iEnd:_0x3d39c0,jEnd:_0x508401}=this['_threeWayMerge'](_0x5b45f4,_0x594ed1,_0x119874,_0x4c45d6);_0x5ae2f3=_0x5ae2f3['concat'](_0x41c2e4),_0x594ed1=_0x3d39c0,_0x4c45d6=_0x508401;}else _0x5ea097['isRemoved']?(_0x4c45d6++,_0x5ae2f3['push'](_0x5ea097)):(_0x594ed1++,_0x5ae2f3['push'](_0xa260dd));}}return _0x5ae2f3;}['_markSuggestions'](_0x56ac67,_0x31882b){const _0x51865f=[];for(let _0x4f864a=0x0;_0x4f864a<_0x56ac67['length'];_0x4f864a++){for(let _0x439772=0x0;_0x439772<_0x56ac67[_0x4f864a]['markersStart']['length'];_0x439772++){const _0x4fa4d2=_0x56ac67[_0x4f864a]['markersStart'][_0x439772];if(!_0x31882b['has'](_0x4fa4d2))continue;const {group:_0x58d205,type:_0x181b67,authorId:_0x4f087c}=_0x5c64db(_0x4fa4d2);'revision-suggestion'!=_0x58d205||'insertion'!=_0x181b67&&'deletion'!=_0x181b67||(_0x51865f['unshift']({'type':_0x181b67,'name':_0x4fa4d2,'userId':_0x4f087c}),_0x56ac67[_0x4f864a]['markersStart']['splice'](_0x439772,0x1),_0x439772--);}_0x3a3b9e(_0x56ac67[_0x4f864a]);for(let _0x1a7052=0x0;_0x1a7052<_0x56ac67[_0x4f864a]['markersEnd']['length'];_0x1a7052++){const _0x5118a3=_0x56ac67[_0x4f864a]['markersEnd'][_0x1a7052];if(!_0x31882b['has'](_0x5118a3))continue;const {group:_0x2e6dc7,type:_0x2de7f0}=_0x5c64db(_0x5118a3);if('revision-suggestion'!=_0x2e6dc7||'insertion'!=_0x2de7f0&&'deletion'!=_0x2de7f0)continue;_0x56ac67[_0x4f864a]['markersEnd']['splice'](_0x1a7052,0x1),_0x1a7052--;const _0x83ebc8=_0x51865f['findIndex'](_0x54414a=>_0x54414a['name']==_0x5118a3);_0x83ebc8>-0x1&&_0x51865f['splice'](_0x83ebc8,0x1);}}function _0x5c64db(_0x52e2b6){const _0x50b216=_0x52e2b6['split'](':');return{'group':_0x50b216[0x0],'type':_0x50b216[0x1],'subType':_0x50b216['length']>=0x5?_0x50b216[0x2]:null,'id':_0x50b216['length']<0x5?_0x50b216[0x2]:_0x50b216[0x3],'authorId':_0x50b216['length']<0x5?_0x50b216[0x3]:_0x50b216[0x4],'markerCount':0x6==_0x50b216['length']?_0x50b216[0x5]:null};}function _0x3a3b9e(_0x79be68){for(let _0x3c2600=0x0;_0x3c2600<_0x51865f['length'];_0x3c2600++){if(_0x79be68['isAdded']&&'insertion'==_0x51865f[_0x3c2600]['type'])return _0x79be68['isAddSuggestion']=_0x51865f[_0x3c2600],void delete _0x79be68['isAdded'];if(!_0x79be68['isAdded']&&!_0x79be68['isRemoved']&&'deletion'==_0x51865f[_0x3c2600]['type'])return void(_0x79be68['isRemoveSuggestion']=_0x51865f[_0x3c2600]);}}}['_setDistance'](_0x5b4a0e,_0x2821ef){let _0x41fc22=0x0,_0x41e35e=!0x1;const _0x40207b=new Map();for(const _0x23d0ff of _0x5b4a0e)_0x23d0ff[_0x2821ef]?_0x41e35e&&(_0x41fc22++,_0x41e35e=!0x1):(_0x41fc22++,_0x41e35e=!0x0),_0x40207b['set'](_0x23d0ff['id'],_0x41fc22);for(let _0x45e496=0x0;_0x45e496<_0x5b4a0e['length'];_0x45e496++){if('isRemoved'==_0x2821ef&&_0x5b4a0e[_0x45e496]['isAdded']||'isAdded'==_0x2821ef&&_0x5b4a0e[_0x45e496]['isRemoved'])continue;if('text'==_0x5b4a0e[_0x45e496]['type']){_0x5b4a0e[_0x45e496]['distance']=0x0;continue;}const _0x46cdc2=_0x40207b['get'](_0x5b4a0e[_0x45e496]['pairId']),_0x10904a=_0x40207b['get'](_0x5b4a0e[_0x45e496]['id']);_0x5b4a0e[_0x45e496]['distance']=_0x46cdc2-_0x10904a;}}['_getRevisionsRange'](_0x95c8f4,_0x5c28cf,_0x4f7824=!0x1){const _0x1f6fcb=[];let _0x379ff9=this['repository']['getIndex'](_0x95c8f4),_0x3e3172=this['repository']['getIndex'](_0x5c28cf);for(-0x1==_0x3e3172&&(_0x3e3172=this['repository']['_revisions']['length'],_0x4f7824=!0x1);_0x379ff9<_0x3e3172;)_0x1f6fcb['push'](this['repository']['getRevision'](_0x379ff9)),_0x379ff9++;return _0x4f7824&&_0x1f6fcb['push'](this['repository']['getRevision'](_0x379ff9)),_0x1f6fcb;}['_threeWayMerge'](_0x50c805,_0x14332a,_0x27b3f9,_0x4e8e4d){const _0x2347fa=this['editor']['model']['schema'];let _0x16c819=_0x14332a;for(;_0x50c805[_0x16c819]&&_0x50c805[_0x16c819]['isAdded'];)_0x16c819++;let _0x5a22c9=_0x4e8e4d;for(;_0x27b3f9[_0x5a22c9]&&_0x27b3f9[_0x5a22c9]['isRemoved'];)_0x5a22c9++;_0x41fbc5(_0x50c805,_0x14332a,_0x16c819),_0x41fbc5(_0x27b3f9,_0x4e8e4d,_0x5a22c9);const _0x128bda=_0x27b3f9['slice'](_0x4e8e4d,_0x5a22c9)['concat'](_0x50c805['slice'](_0x14332a,_0x16c819));return _0x128bda['sort']((_0x41fdbd,_0x2ef3af)=>_0x41fdbd['side']!=_0x2ef3af['side']?_0x41fdbd['side']-_0x2ef3af['side']:_0x41fdbd['level']!=_0x2ef3af['level']?_0x41fdbd['level']-_0x2ef3af['level']:_0x41fdbd['distance']!=_0x2ef3af['distance']?_0x2ef3af['distance']-_0x41fdbd['distance']:!!_0x41fdbd['isAdded']!=!!_0x2ef3af['isAdded']?-0x1==_0x41fdbd['side']||0x0==_0x41fdbd['side']?_0x41fdbd['isAdded']?-0x1:0x1:_0x41fdbd['isAdded']?0x1:-0x1:_0x41fdbd['index']-_0x2ef3af['index']),{'commonTape':_0x128bda,'iEnd':_0x16c819,'jEnd':_0x5a22c9};function _0x41fbc5(_0x529162,_0x20d650,_0x47bbea){let _0x760503=-0x1,_0x162dbb=Number['POSITIVE_INFINITY'],_0x43e26c=!0x0;for(let _0x1e5257=_0x20d650;_0x1e5257<_0x47bbea;_0x1e5257++)if(_0x2347fa['isInline'](_0x529162[_0x1e5257]['item'])||(_0x43e26c=!0x1),_0x529162[_0x1e5257]['item']['startIndex']<_0x20d650&&(_0x760503=_0x1e5257),_0x529162[_0x1e5257]['item']['endIndex']>=_0x47bbea){_0x162dbb=_0x1e5257;break;}_0x43e26c&&(_0x760503=_0x47bbea-0x1);for(let _0x5678fb=_0x20d650;_0x5678fb<_0x47bbea;_0x5678fb++)_0x529162[_0x5678fb]['side']=_0x5678fb<=_0x760503?-0x1:_0x5678fb<_0x162dbb?0x0:0x1,_0x529162[_0x5678fb]['index']=_0x5678fb;let _0x2bf301=0x0;for(let _0x4f9b0a=_0x20d650;_0x4f9b0a<=_0x760503;_0x4f9b0a++)0x0==_0x529162[_0x4f9b0a]['distance']?_0x529162[_0x4f9b0a]['level']=_0x2bf301:(_0x2bf301++,_0x529162[_0x4f9b0a]['level']=_0x2bf301,_0x2bf301++);for(let _0x54175c=_0x20d650;_0x54175c<_0x47bbea;_0x54175c++)0x0==_0x529162[_0x54175c]['side']&&(_0x529162[_0x54175c]['level']=_0x2bf301);_0x2bf301=0x0;for(let _0x293b1c=_0x47bbea-0x1;_0x293b1c>=_0x162dbb;_0x293b1c--)0x0==_0x529162[_0x293b1c]['distance']?_0x529162[_0x293b1c]['level']=_0x2bf301:(_0x2bf301--,_0x529162[_0x293b1c]['level']=_0x2bf301,_0x2bf301--);}}['_fixObsoleteTags'](_0x401157){const _0x254678=new Map(),_0x136b89=this['editor']['model']['schema'];for(let _0x4bf5ad=0x1;_0x4bf5ad<_0x401157['length'];_0x4bf5ad++){let _0x3ac61f,_0x402a91,_0x341aef;const _0x8b5253=_0x401157[_0x4bf5ad],_0x440049=_0x401157[_0x4bf5ad-0x1];if('text'==_0x8b5253['type'])continue;if(_0x8b5253['type']!=_0x440049['type'])continue;if(!_0x136b89['isBlock'](_0x440049['item'])||_0x136b89['isLimit'](_0x440049['item']))continue;if(!_0x136b89['isBlock'](_0x8b5253['item'])||_0x136b89['isLimit'](_0x8b5253['item']))continue;if((_0x401157[_0x4bf5ad]['isAdded']||_0x401157[_0x4bf5ad]['isAddSuggestion'])&&_0x401157[_0x4bf5ad-0x1]['isRemoved'])_0x3ac61f=_0x401157[_0x4bf5ad],_0x402a91=_0x401157[_0x4bf5ad-0x1],_0x341aef=_0x4bf5ad-0x1;else{if(!_0x401157[_0x4bf5ad]['isRemoved']||!_0x401157[_0x4bf5ad-0x1]['isAdded']&&!_0x401157[_0x4bf5ad-0x1]['isAddSuggestion'])continue;_0x3ac61f=_0x401157[_0x4bf5ad-0x1],_0x402a91=_0x401157[_0x4bf5ad],_0x341aef=_0x4bf5ad;}const _0x5ec170=_0x3ac61f['level']==_0x402a91['level'],_0xb28d5=Math['abs'](_0x3ac61f['level'])<Math['abs'](_0x402a91['level'])&&0x0==_0x402a91['distance'];(_0x5ec170||_0xb28d5)&&(_0x254678['set'](_0x402a91['id'],_0x3ac61f['id']),_0x401157['splice'](_0x341aef,0x1),_0x4bf5ad--,_0x3ac61f['isAdded']=!0x1);}for(let _0x2ecff6=0x0;_0x2ecff6<_0x401157['length'];_0x2ecff6++)_0x254678['has'](_0x401157[_0x2ecff6]['pairId'])&&(_0x401157[_0x2ecff6]['pairId']=_0x254678['get'](_0x401157[_0x2ecff6]['pairId']));}['_removeMissingPairs'](_0x2ef8f1){const _0x2ab032=new Set(_0x2ef8f1['map'](_0x396379=>_0x396379['id']));for(let _0x318872=0x0;_0x318872<_0x2ef8f1['length'];_0x318872++)_0x2ab032['has'](_0x2ef8f1[_0x318872]['pairId'])||0x0==_0x2ef8f1[_0x318872]['distance']||(_0x2ef8f1[_0x318872]['isIncorrect']=!0x0);return _0x2ef8f1['filter'](_0x6bb3b0=>!_0x6bb3b0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x245713){const _0x14ccd5=new Set();for(let _0x1281f7=0x0;_0x1281f7<_0x245713['length'];_0x1281f7++){if(_0x14ccd5['has'](_0x245713[_0x1281f7]['id'])&&_0x245713[_0x1281f7]['isRemoved']&&(_0x245713[_0x1281f7]['isIncorrect']=!0x0),_0x245713[_0x1281f7]['isIncorrect'])continue;if(0x0==_0x245713[_0x1281f7]['distance'])continue;if('elementStart'!=_0x245713[_0x1281f7]['type'])continue;if(null==_0x245713[_0x1281f7]['pairId'])continue;let _0x4bc3f7=_0x1281f7+0x1,_0x120967=0x0;for(;_0x245713[_0x4bc3f7]['id']!=_0x245713[_0x1281f7]['pairId'];)'elementStart'==_0x245713[_0x4bc3f7]['type']?_0x120967++:'elementEnd'==_0x245713[_0x4bc3f7]['type']&&_0x120967--,_0x4bc3f7++;if(0x0!=_0x120967){if(_0x245713[_0x1281f7]['isRemoved'])_0x245713[_0x1281f7]['isIncorrect']=!0x0;else{for(;_0x4bc3f7!=_0x1281f7;)_0x245713[_0x4bc3f7]['isRemoved']&&0x0!=_0x245713[_0x4bc3f7]['distance']&&(_0x245713[_0x4bc3f7]['isIncorrect']=!0x0,_0x14ccd5['add'](_0x245713[_0x4bc3f7]['pairId'])),_0x4bc3f7--;}}}return _0x245713['filter'](_0x1ad1f2=>!_0x1ad1f2['isIncorrect']);}['_removeUnsupportedChanges'](_0xd8bdf6){const _0x4951aa=this['editor']['model']['schema'];for(let _0x51769a=0x0;_0x51769a<_0xd8bdf6['length'];_0x51769a++){if(!(_0xd8bdf6[_0x51769a]['isAdded']||_0xd8bdf6[_0x51769a]['isAddSuggestion']||_0xd8bdf6[_0x51769a]['isRemoved']||_0xd8bdf6[_0x51769a]['isRemoveSuggestion']))continue;if(0x0==_0xd8bdf6[_0x51769a]['distance'])continue;const _0x11ba39=_0xd8bdf6[_0x51769a]['item'];_0x4951aa['isBlock'](_0x11ba39)||_0x4951aa['isLimit'](_0x11ba39)||(_0xd8bdf6[_0x51769a]['isAdded']&&delete _0xd8bdf6[_0x51769a]['isAdded'],_0xd8bdf6[_0x51769a]['isAddSuggestion']&&delete _0xd8bdf6[_0x51769a]['isAddSuggestion'],_0xd8bdf6[_0x51769a]['isRemoveSuggestion']&&delete _0xd8bdf6[_0x51769a]['isRemoveSuggestion'],_0xd8bdf6[_0x51769a]['isRemoved']&&(_0xd8bdf6[_0x51769a]['isIncorrect']=!0x0));}return _0xd8bdf6['filter'](_0xe4d966=>!_0xe4d966['isIncorrect']);}['_makeModelFromTape'](_0x2c7a31,_0x34e4e2,_0x2fb43b){const _0x4623e6=new mt(),_0x36eaa1=[],_0x446bd4=new Map(),_0x2610e5=this['editor']['model'],_0xc422ad=_0x2610e5['schema'],_0x5bc7fe=[_0x4623e6],_0x3cbcc3={},_0x2a908e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x27c7b2=null;const _0x2d1a55=[0x0];for(let _0x4d9ea7=0x0;_0x4d9ea7<_0x2c7a31['length'];_0x4d9ea7++)if('elementStart'===_0x2c7a31[_0x4d9ea7]['type']){_0x2c7a31[_0x4d9ea7]['previousPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55);const _0x5e433f=new ft(_0x2c7a31[_0x4d9ea7]['item']['name'],_0x2c7a31[_0x4d9ea7]['item']['getAttributes']());_0x5bc7fe[0x0]['_appendChild'](_0x5e433f),_0x2d1a55['push'](0x0),_0x5bc7fe['unshift'](_0x5e433f),_0x2c7a31[_0x4d9ea7]['nextPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55);}else'elementEnd'===_0x2c7a31[_0x4d9ea7]['type']?(_0x5bc7fe['shift'](),_0x2c7a31[_0x4d9ea7]['previousPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55),_0x2d1a55['pop'](),_0x2d1a55[_0x2d1a55['length']-0x1]++,_0x2c7a31[_0x4d9ea7]['nextPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55)):(_0x2c7a31[_0x4d9ea7]['previousPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55),_0x27c7b2?_0x27c7b2['_data']+=_0x2c7a31[_0x4d9ea7]['item']['data']:_0x27c7b2=new wt(_0x2c7a31[_0x4d9ea7]['item']['data'],_0x2c7a31[_0x4d9ea7]['item']['getAttributes']()),_0x2c7a31[_0x4d9ea7+0x1]&&'text'===_0x2c7a31[_0x4d9ea7+0x1]['type']&&_0x4f4d02(_0x27c7b2,_0x2c7a31[_0x4d9ea7+0x1]['item'])||(_0x5bc7fe[0x0]['_appendChild'](_0x27c7b2),_0x27c7b2=null),_0x2d1a55[_0x2d1a55['length']-0x1]+=_0x2c7a31[_0x4d9ea7]['item']['offsetSize'],_0x2c7a31[_0x4d9ea7]['nextPosition']=_0x2610e5['createPositionFromPath'](_0x4623e6,_0x2d1a55));for(let _0x13656a=0x0;_0x13656a<_0x2c7a31['length'];_0x13656a++){const _0x1783f1=_0x2c7a31[_0x13656a]['previousPosition'],_0x5c8419=_0x2c7a31[_0x13656a]['nextPosition'];for(const _0x6c98a7 of _0x2c7a31[_0x13656a]['markersStart'])_0x446bd4['set'](_0x6c98a7,{'start':_0x1783f1,'end':null});_0xc718a4('isRemoveSuggestion',_0x13656a,_0x1783f1,_0x5c8419),_0xc718a4('isAddSuggestion',_0x13656a,_0x1783f1,_0x5c8419),_0xc718a4('isRemoved',_0x13656a,_0x1783f1,_0x5c8419),_0xc718a4('isAdded',_0x13656a,_0x1783f1,_0x5c8419);for(const _0x5cc52c of _0x2c7a31[_0x13656a]['markersEnd']){_0x446bd4['get'](_0x5cc52c)['end']=_0x5c8419;}}for(const [_0x3c72cc,_0x5a9ff0]of _0x446bd4){const _0x863104=this['editor']['model']['createRange'](_0x5a9ff0['start'],_0x5a9ff0['end']);_0x4623e6['markers']['set'](_0x3c72cc,_0x863104);}return _0x36eaa1['sort']((_0x2cfc53,_0x567a45)=>{const _0x279e19=_0x4623e6['markers']['get']('revision:'+_0x2cfc53['id']),_0x22ff74=_0x4623e6['markers']['get']('revision:'+_0x567a45['id']);return _0x279e19['start']['isBefore'](_0x22ff74['start'])?-0x1:_0x279e19['start']['isAfter'](_0x22ff74['start'])?0x1:_0x279e19['end']['isBefore'](_0x22ff74['end'])?-0x1:_0x279e19['end']['isAfter'](_0x22ff74['end'])?0x1:'add'===_0x2cfc53['type']?-0x1:0x1;}),{'root':_0x4623e6,'changes':_0x36eaa1};function _0xc718a4(_0x2d0370,_0x403652,_0x5f345a,_0x26726c){const _0x1d7dab=!!_0x2c7a31[_0x403652][_0x2d0370],_0x558f17=_0x1d7dab?_0x2c7a31[_0x403652][_0x2d0370]['userId']:null,_0xc06646=_0x403652===_0x2c7a31['length']-0x1,_0x3693af=_0x2a908e[_0x2d0370][0x0],_0xb788ae=_0xc422ad['isObject'](_0x2c7a31[_0x403652]['item']);!_0x3cbcc3[_0x2d0370]&&_0x1d7dab?_0x3cbcc3[_0x2d0370]={'start':_0x5f345a,'tapeItem':_0x2c7a31[_0x403652],'userId':_0x558f17,'type':_0x2d0370}:_0x3cbcc3[_0x2d0370]&&!_0x1d7dab?(_0x3cbcc3[_0x2d0370]['end']=_0x5f345a,_0x2b79cc(_0x3cbcc3[_0x2d0370]),_0x3cbcc3[_0x2d0370]=null):_0x3cbcc3[_0x2d0370]&&_0x1d7dab&&_0x3cbcc3[_0x2d0370]['userId']!==_0x558f17&&(_0x3cbcc3[_0x2d0370]['end']=_0x5f345a,_0x3693af&&_0x3693af['userId']===_0x3cbcc3[_0x2d0370]['userId']||_0x2b79cc(_0x3cbcc3[_0x2d0370]),_0x3cbcc3[_0x2d0370]={'start':_0x5f345a,'tapeItem':_0x2c7a31[_0x403652],'userId':_0x558f17,'type':_0x2d0370}),_0x3cbcc3[_0x2d0370]&&_0xb788ae&&('elementStart'!==_0x2c7a31[_0x403652]['type']||_0x3693af&&_0x3693af['userId']===_0x558f17||_0x2a908e[_0x2d0370]['unshift']({'userId':_0x558f17,'object':_0x2c7a31[_0x403652]['item'],'change':_0x3cbcc3[_0x2d0370]}),'elementEnd'===_0x2c7a31[_0x403652]['type']&&_0x3693af&&_0x3693af['object']===_0x2c7a31[_0x403652]['item']&&(_0x2a908e[_0x2d0370]['shift'](),_0x3cbcc3[_0x2d0370]=_0x3693af['change'])),_0x3cbcc3[_0x2d0370]&&_0xc06646&&(_0x3cbcc3[_0x2d0370]['end']=_0x26726c,_0x2b79cc(_0x3cbcc3[_0x2d0370]),_0x3cbcc3[_0x2d0370]=null);}function _0x2b79cc({start:_0x1683d2,end:_0x32cc1d,tapeItem:_0x2d55c0,userId:_0x575591,type:_0x2acb45}){const _0x523b43=_0x2d55c0['item'],_0x42794e=_0x2610e5['schema']['isBlock'](_0x523b43)&&!_0x2610e5['schema']['isLimit'](_0x523b43),_0x3f62bc=_0x1683d2['nodeAfter']==_0x32cc1d['parent']&&_0x32cc1d['isAtStart'];if(_0x42794e&&_0x3f62bc)return;const _0xb0e3ba=_0x2610e5['createRange'](_0x1683d2,_0x32cc1d),_0x341b7f=_0x34e4e2['get'](_0x575591),_0x14df48=new r({'author':_0x341b7f,'type':'isAdded'==_0x2acb45||'isAddSuggestion'==_0x2acb45?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2acb45||'isRemoveSuggestion'==_0x2acb45},'createdAt':new Date(),'rootName':_0x2fb43b});_0x36eaa1['push'](_0x14df48),_0x4623e6['markers']['set']('revision:'+_0x14df48['id'],_0xb0e3ba);}function _0x4f4d02(_0xb5ded9,_0x5571d4){const _0xad1a53=_0xb5ded9['getAttributes'](),_0x2504ae=_0x5571d4['getAttributes']();for(const _0x2e74a5 of _0xad1a53){if(_0x2e74a5[0x1]!==_0x5571d4['getAttribute'](_0x2e74a5[0x0]))return!0x1;_0x2504ae['next']();}return _0x2504ae['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4cdd50=>{const _0x370c72=_0x4cdd50['markerName']['split'](':')[0x1],_0x4bdebe=this['_getChangeFromId'](_0x370c72);if(!_0x4bdebe)return null;const _0x4fde9e='add'==_0x4bdebe['type']?'insertion':'deletion',_0x478bcc=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4fde9e];return _0x4bdebe['data']['isSuggestion']&&_0x478bcc['push']('ck-suggestion-marker-'+_0x4fde9e+'-new'),this['activeChange']==_0x4bdebe&&_0x478bcc['push']('ck-suggestion-marker--active'),{'classes':_0x478bcc,'attributes':{'data-change-id':_0x370c72}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x548fca=>{_0x548fca['on']('element:pre',(_0x1d8bbb,_0x373d5f,_0x4f2a91)=>{const _0x32d78e=_0x373d5f['viewItem']['getChild'](0x0);if(!_0x32d78e||!_0x32d78e['is']('element','code'))return;if(!_0x4f2a91['consumable']['consume'](_0x32d78e,{'attributes':['vid_start','vid_end']}))return;const _0x217cff=_0x373d5f['modelRange']['start']['nodeAfter'];_0x4f2a91['writer']['setAttribute']('vid_start',_0x32d78e['getAttribute']('vid_start'),_0x217cff),_0x4f2a91['writer']['setAttribute']('vid_end',_0x32d78e['getAttribute']('vid_end'),_0x217cff);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27c9a4=>{_0x27c9a4['on']('element',(_0x45e688,_0x2fafff,_0x5f3b7c)=>{if(!_0x5f3b7c['consumable']['consume'](_0x2fafff['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2fafff['modelRange']['isCollapsed'])return;const _0x42405b=_0x2fafff['modelRange']['start']['nodeAfter'];_0x42405b['hasAttribute']('vid_start')||_0x42405b['hasAttribute']('vid')||(_0x5f3b7c['writer']['setAttribute']('vid_start',_0x2fafff['viewItem']['getAttribute']('vid_start'),_0x42405b),_0x5f3b7c['writer']['setAttribute']('vid_end',_0x2fafff['viewItem']['getAttribute']('vid_end'),_0x42405b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1178c4=>_0x1178c4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x465baa,[,_0x46bcc1])=>{['vid_start','vid_end','vid']['includes'](_0x46bcc1)&&(_0x465baa['return']=!0x0,_0x465baa['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38b223=>{_0x38b223['on']('attribute:vid',(_0x50867c,_0x1bc941,_0x1447b1)=>{if('\x20'!=_0x1bc941['item']['data']||_0x1bc941['item']['parent']['maxOffset']>0x1)return;if(!_0x1447b1['consumable']['consume'](_0x1bc941['item'],_0x50867c['name']))return;const _0x2fba14=_0x1447b1['writer'],_0x5e3d32=_0x1447b1['mapper']['toViewRange'](_0x1bc941['range']);_0x2fba14['wrap'](_0x5e3d32,_0x2fba14['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4a04ef){const _0x3c6f8a=_0x4a04ef['plugins']['get']('RevisionViewer');return(_0x4f1be0,_0x3f5b47,_0x44e38b)=>{const _0x45300d=_0x3f5b47['markerName']['split'](':')[0x1],_0x2d9298=_0x3c6f8a['_getChangeFromId'](_0x45300d);if(!_0x2d9298)return null;const _0x450d5d='add'==_0x2d9298['type']?'split':'merge';if(!_0x44e38b['consumable']['test'](_0x3f5b47['markerRange'],_0x4f1be0['name']))return;const _0x3a0633=_0x3f5b47['markerRange']['getWalker'](),_0x3be055=_0x3f5b47['markerRange']['start'],_0x1aec14=_0x4a04ef['model']['schema'];let _0x1ddbae=null,_0x301819=null,_0x46790b=!0x1,_0x9cd967=!0x1;for(const _0x28a511 of _0x3a0633){const _0xdaca7b=_0x28a511['item'];_0x46790b=_0x46790b||_0x1aec14['isContent'](_0xdaca7b);const _0x355f29=_0x44e38b['mapper']['toViewElement'](_0xdaca7b);if(_0x355f29&&_0x355f29['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x28a511['type']&&(_0x1aec14['isBlock'](_0xdaca7b)&&!_0x1aec14['isLimit'](_0xdaca7b)&&(_0xdaca7b['nextSibling']||_0x3be055['isAtEnd']?_0x1ddbae&&_0x1ddbae['parent']==_0xdaca7b||(_0x1ddbae=_0xdaca7b,_0x4b840e(_0x28a511['previousPosition']),_0x9cd967=!0x0):_0x301819=_0x301819||_0x28a511['previousPosition']));}function _0x4b840e(_0x15929b){const _0x1d05b8=_0x44e38b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x450d5d}),_0x59dcb9=_0x44e38b['mapper']['toViewPosition'](_0x15929b);_0x2d9298['data']['isSuggestion']&&_0x44e38b['writer']['addClass']('ck-suggestion-marker-'+_0x450d5d+'-new',_0x1d05b8),_0x3c6f8a['activeChange']==_0x2d9298&&_0x44e38b['writer']['addClass']('ck-suggestion-marker--active',_0x1d05b8),_0x44e38b['writer']['insert'](_0x59dcb9,_0x1d05b8),_0x44e38b['mapper']['bindElementToMarker'](_0x1d05b8,_0x3f5b47['markerName']);}_0x46790b||_0x9cd967||!_0x301819||_0x4b840e(_0x301819);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1e71e0,_0x464554,_0x17fb52)=>{const _0x3d5821=_0x17fb52['mapper']['markerNameToElements'](_0x464554['markerName']);if(_0x3d5821){for(const _0x3cd1c4 of _0x3d5821)(_0x3cd1c4['hasClass']('ck-suggestion-marker-split')||_0x3cd1c4['hasClass']('ck-suggestion-marker-merge'))&&(_0x17fb52['mapper']['unbindElementFromMarkerName'](_0x3cd1c4,_0x464554['markerName']),_0x17fb52['writer']['remove'](_0x3cd1c4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x58ac07,_0x391ec9,_0x1ba783)=>{const _0x25b7f6=_0x391ec9['markerName']['split'](':')[0x1],_0xa3faea=this['_getChangeFromId'](_0x25b7f6);if(!_0xa3faea)return null;const _0x13c746='add'==_0xa3faea['type']?'split':'merge';if(_0x1ba783['consumable']['test'](_0x391ec9['markerRange'],_0x58ac07['name']))for(const _0x51c5fe of _0x391ec9['markerRange']['getItems']()){if(!_0x51c5fe['is']('element','softBreak'))continue;const _0x3077ba=_0x1ba783['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13c746}),_0x590cd7=_0x1ba783['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x51c5fe));_0xa3faea['data']['isSuggestion']&&_0x1ba783['writer']['addClass']('ck-suggestion-marker-'+_0x13c746+'-new',_0x3077ba),this['activeChange']==_0xa3faea&&_0x1ba783['writer']['addClass']('ck-suggestion-marker--active',_0x3077ba),_0x1ba783['writer']['insert'](_0x590cd7,_0x3077ba),_0x1ba783['mapper']['bindElementToMarker'](_0x3077ba,_0x391ec9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xb217c4=>{for(const _0x12e801 of this['editor']['model']['document']['getRootNames']()){const _0xa3c513=this['editor']['model']['document']['getRoot'](_0x12e801),_0x498a1f=this['editor']['editing']['view']['document']['getRoot'](_0x12e801);if(_0x498a1f){const _0x2a47e9=_0xa3c513['getAttribute']('revisionHistoryAttachChange');if(_0xb217c4['removeAttribute']('data-change-id',_0x498a1f),_0xb217c4['removeClass']('ck-revision-history-root-add',_0x498a1f),_0xb217c4['removeClass']('ck-revision-history-root-remove',_0x498a1f),_0xb217c4['removeClass']('ck-revision-history-root--active',_0x498a1f),_0x2a47e9){const _0x41451b=this['_getChangeFromId'](_0x2a47e9);if(!_0x41451b)return null;_0xb217c4['setAttribute']('data-change-id',_0x2a47e9,_0x498a1f),_0xb217c4['addClass']('ck-revision-history-root-'+_0x41451b['type'],_0x498a1f),this['activeChange']==_0x41451b&&_0xb217c4['addClass']('ck-revision-history-root--active',_0x498a1f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x37d550=>'revision-comment:'+_0x37d550,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5009b1=>'revision-suggestion:'+_0x5009b1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xd3d733=>({'name':'suggestion:'+_0xd3d733,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3b26c3=>{const _0x3112a2=_0x3b26c3['markerName']['split'](':')[0x1];return'insertion'!=_0x3112a2&&'deletion'!=_0x3112a2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3112a2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xb23e2,_0x3dc278,_0x5e1e33)=>{const _0x3cc31a=_0x5e1e33['mapper']['markerNameToElements'](_0x3dc278['markerName']);if(_0x3cc31a){for(const _0x356b4e of _0x3cc31a)_0x356b4e['is']('uiElement')&&(_0x5e1e33['mapper']['unbindElementFromMarkerName'](_0x356b4e,_0x3dc278['markerName']),_0x5e1e33['writer']['remove'](_0x356b4e));}},{'priority':'high'});}['_getChangeFromId'](_0x21024b){return this['_changeIdToChange']['get'](_0x21024b);}['_getViewForChange'](_0x26ae93){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x26ae93),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x119906,_0x387471,_0x5e221c,_0x23a286)=>{_0x23a286&&this['_balloon']['remove'](_0x23a286),_0x5e221c&&(this['_balloon']['add']({'view':_0x5e221c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x40128a=this['editor']['editing'],_0x159197=this['_getChangeFromId'](_0x5e221c['changeId']);let _0x360589;if(_0x159197['data']['isOnRoot']){const _0x438314=_0x40128a['view']['getDomRoot'](_0x159197['rootName']);_0x360589=Array['from'](_0x438314['getClientRects']());}else{const _0x5739a1=this['editor']['model']['markers']['get']('revision:'+_0x5e221c['changeId']);_0x360589=Array['from'](_0x40128a['mapper']['markerNameToElements'](_0x5739a1['name']))['map'](_0x280e93=>_0x40128a['view']['domConverter']['mapViewToDom'](_0x280e93))['map'](_0x171427=>Array['from'](_0x171427['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x360589[0x0];return _0x360589['find'](_0x5c946f=>_0x5c946f['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c946f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c946f['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c946f['right']+0x3>=this['_activeViewTarget']['x'])||_0x360589[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5148bc,_0x521127,_0x5c4931,_0x5cdbea)=>{this['activeView']=_0x5c4931?this['_getViewForChange'](_0x5c4931):null,this['editor']['model']['change'](()=>{const _0x12f949=this['editor']['editing'];_0x5cdbea&&(_0x5cdbea['data']['isOnRoot']?_0x12f949['view']['change'](_0x1d771f=>{_0x1d771f['removeClass']('ck-revision-history-root--active',_0x12f949['view']['document']['getRoot'](_0x5cdbea['rootName']));}):_0x12f949['reconvertMarker']('revision:'+_0x5cdbea['id'])),_0x5c4931&&(_0x5c4931['data']['isOnRoot']?_0x12f949['view']['change'](_0x2c92b1=>{_0x2c92b1['addClass']('ck-revision-history-root--active',_0x12f949['view']['document']['getRoot'](_0x5c4931['rootName']));}):_0x12f949['reconvertMarker']('revision:'+_0x5c4931['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x35f1da,_0x2eaa8c)=>{if(this['activeChange'])return;const _0x51c22=this['_findChangeIdFromDomTarget'](_0x2eaa8c['target']),_0x695efc=this['_changeIdToChange']['get'](_0x51c22);_0x695efc?(this['_activeViewTarget']={'x':_0x2eaa8c['domEvent']['x'],'y':_0x2eaa8c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x695efc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x59ab4e,_0x42e78e)=>{const _0x2e48b3=this['_findChangeIdFromDomTarget'](_0x42e78e['target']),_0x2860ce=this['_changeIdToChange']['get'](_0x2e48b3);_0x2860ce?(this['_activeViewTarget']={'x':_0x42e78e['domEvent']['x'],'y':_0x42e78e['domEvent']['y']},_0x2860ce===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2860ce):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xb4401a){do{const _0x173bf4=_0xb4401a['getAttribute']('data-change-id');if(_0x173bf4)return _0x173bf4;_0xb4401a=_0xb4401a['parent'];}while(_0xb4401a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x476ceb=>{for(const _0x30717d of this['editor']['model']['markers'])_0x476ceb['removeMarker'](_0x30717d);});}}function Z(_0x2a0a3b,_0x14577d){return(_0x30ec2e,_0x38e075,_0x2f8e09)=>{if(!_0x2f8e09['consumable']['test'](_0x38e075['markerRange'],_0x30ec2e['name']))return;const _0xe659f0=_0x38e075['markerRange']['getWalker'](),_0x4c7fc9=_0x38e075['markerRange']['start'],_0x306b36=_0x2a0a3b['model']['schema'];let _0x39ee1f=null,_0x5ebef8=null,_0x4dc504=!0x1,_0x3d7a36=!0x1;for(const _0x54d34c of _0xe659f0){const _0x49c12e=_0x54d34c['item'];_0x4dc504=_0x4dc504||_0x306b36['isContent'](_0x49c12e);const _0x2867b=_0x2f8e09['mapper']['toViewElement'](_0x49c12e);if(_0x2867b&&_0x2867b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54d34c['type']&&(_0x306b36['isBlock'](_0x49c12e)&&!_0x306b36['isLimit'](_0x49c12e)&&(_0x49c12e['nextSibling']||_0x4c7fc9['isAtEnd']?_0x39ee1f&&_0x39ee1f['parent']==_0x49c12e||(_0x39ee1f=_0x49c12e,_0x18a55f(_0x54d34c['previousPosition']),_0x3d7a36=!0x0):_0x5ebef8=_0x5ebef8||_0x54d34c['previousPosition']));}function _0x18a55f(_0x294807){const _0x12f295=_0x2f8e09['mapper']['toViewPosition'](_0x294807),_0x58d047=_0x2f8e09['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14577d});_0x2f8e09['writer']['insert'](_0x12f295,_0x58d047),_0x2f8e09['mapper']['bindElementToMarker'](_0x58d047,_0x38e075['markerName']);}_0x4dc504||_0x3d7a36||!_0x5ebef8||_0x18a55f(_0x5ebef8);};}class _t extends _0x48bcc9{constructor(_0x485f7c){super(_0x485f7c);const _0x5bd411=_0x485f7c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5bd411,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bd411,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1b8c5f=this['editor'],_0x448760=_0x1b8c5f['plugins']['get'](d),_0x1c7c0a=_0x448760['isReady']?_0x448760['diff']['newRevisionId']:null;_0x1b8c5f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c7c0a);}['refresh'](){const {isReady:_0x4a4c42,isEnabled:_0x46cd7a,repository:_0x287b32,diff:_0x174bf6}=this['editor']['plugins']['get'](d),_0x39ea28=_0x174bf6&&_0x287b32['getLaterVisibleRevision'](_0x174bf6['newRevisionId']);this['isEnabled']=_0x4a4c42&&_0x46cd7a&&Boolean(_0x39ea28);}}class yt extends _0x48bcc9{['_step'];constructor(_0x47e5bc,{direction:_0x2cc41c}){super(_0x47e5bc);const _0x34254a=_0x47e5bc['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2cc41c?0x1:-0x1,this['listenTo'](_0x34254a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34254a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34254a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x750169=this['editor'],_0x4cb1b9=_0x750169['plugins']['get'](d),{isNavigationMode:_0x29b02d,currentChangeNumber:_0x87eaa5}=_0x4cb1b9;let _0x5f23bf;if(_0x4cb1b9['activeChange']=_0x29b02d?_0x4cb1b9['diff']['changes']['get'](_0x87eaa5+this['_step']):_0x4cb1b9['diff']['changes']['first'],_0x4cb1b9['activeChange']['data']['isOnRoot'])_0x5f23bf=_0x750169['editing']['view']['getDomRoot'](_0x4cb1b9['activeChange']['rootName']);else{const _0x3d3410=_0x750169['model']['markers']['get']('revision:'+_0x4cb1b9['activeChange']['id']);_0x5f23bf=_0x2de28c(_0x750169['editing'],_0x3d3410);}_0x365099({'target':_0x5f23bf,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5a529f,currentChangeNumber:_0x616ff0,numberOfChanges:_0x5e2720,isReady:_0x4a4078,isEnabled:_0x4993b4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4993b4&&_0x4a4078&&_0x5e2720)&&(!_0x5a529f||(0x1===this['_step']?_0x616ff0<_0x5e2720-0x1:_0x616ff0>0x0));}}class _i extends _0x4d5ed7{constructor(_0x38a83a){super(_0x38a83a);const _0x24bbb8=this['bindTemplate'],_0x22012b=new _0x1efaec(_0x38a83a),_0x5cd967=new _0x1efaec(_0x38a83a);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',(_0x578a35,_0x4d6349)=>_0x578a35&&_0x4d6349>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3eb586,_0x4c58dd,_0x4b1833,_0x1a034e)=>{if(!_0x3eb586)return m(_0x38a83a,'Loading...');if(!_0x4b1833)return m(_0x38a83a,'No\x20changes');const _0x42369b=m(_0x38a83a,'NUMBER_OF_CHANGES',_0x4b1833);return _0x1a034e?m(_0x38a83a,'X_OF_Y_CHANGES',[_0x4c58dd+0x1,_0x4b1833]):_0x42369b;}),_0x22012b['set']({'label':m(_0x38a83a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5cd967['set']({'label':m(_0x38a83a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x22012b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5cd967['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x22012b['on']('execute',()=>this['fire']('execute','backward')),_0x5cd967['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',_0x24bbb8['if']('_isStatusLabelVisible','ck-hidden',_0x57af40=>!_0x57af40)]},'children':[{'text':_0x24bbb8['to']('isNavigationMode',_0x42c1d8=>_0x42c1d8?m(_0x38a83a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x38a83a,'Total')+':\x20')}]},{'text':_0x24bbb8['to']('_statusText')}]},new _0x587a08(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x22012b,_0x5cd967]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3c3b4e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x7709da=this['editor']['editing']['view'];_0x7709da['change'](_0x2ffbd5=>{for(const _0x435727 of _0x7709da['document']['roots'])_0x2ffbd5['addClass'](ce,_0x435727);});}['hide'](){const _0x47e965=this['editor']['editing']['view'];_0x47e965['change'](_0x1240e3=>{for(const _0x3f1e16 of _0x47e965['document']['roots'])_0x1240e3['removeClass'](ce,_0x3f1e16);});}}class g extends _0x3c3b4e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0xb3293=this['editor'],_0x221d39=_0xb3293['plugins']['get'](d),_0x412aab=_0xb3293['plugins']['get'](le);_0xb3293['ui']['componentFactory']['add']('exitToEditing',_0x34618d=>{const _0x3ded59=new _0x1efaec(_0x34618d);return _0x3ded59['set']({'label':m(_0x34618d,'Back\x20to\x20editing'),'icon':_0x41e7ec['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3ded59,'execute',()=>{_0xb3293['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3ded59;}),_0xb3293['ui']['componentFactory']['add']('restoreRevision',_0xa46899=>{const _0x50a6d8=new _0x1efaec(_0xa46899);return _0x50a6d8['set']({'label':m(_0xa46899,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50a6d8['bind']('isEnabled')['to'](_0xb3293['commands']['get']('restoreRevision')),this['listenTo'](_0x50a6d8,'execute',()=>_0xb3293['execute']('restoreRevision')),_0x50a6d8;}),_0xb3293['ui']['componentFactory']['add']('changesNavigation',_0x478c38=>{const _0x4ef049=new _i(_0x478c38),_0x5715ee=_0xb3293['commands']['get']('showPreviousChange'),_0x24fe2=_0xb3293['commands']['get']('showNextChange');return _0x4ef049['bind']('isBackwardNavigationEnabled')['to'](_0x5715ee,'isEnabled'),_0x4ef049['bind']('isForwardNavigationEnabled')['to'](_0x24fe2,'isEnabled'),_0x4ef049['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x221d39),this['listenTo'](_0x4ef049,'execute',(_0x131153,_0x17c070)=>{_0xb3293['execute']('forward'===_0x17c070?'showNextChange':'showPreviousChange');}),_0x4ef049;}),_0x412aab['show'](),_0x221d39['on']('change:isReady',(_0x1d8647,_0x56798c,_0x28db71)=>{_0x28db71?_0x412aab['hide']():_0x412aab['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x3a909c,_0xc3ce88){super(_0x3a909c,_0xc3ce88);const _0x5aec07=this['bindTemplate'];this['set']({'label':m(_0x3a909c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3a909c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5aec07['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x16b1d2=this['fieldView']['element'];this['_tooltipString']=_0x16b1d2['scrollWidth']>_0x16b1d2['clientWidth']&&_0x16b1d2['value']||'';}}class ti extends _0x4d5ed7{constructor(_0x58468e,_0x329656,_0x432975){super(_0x58468e);const _0x3b67c3=new _0x35a868();_0x3b67c3['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x280422=['ck','ck-revision-history-sidebar__revision-author'];_0x432975&&_0x280422['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d9b38=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x58468e,_0x432975?'Revision\x20creator':'Revision\x20author')},'children':[_0x3b67c3,_0x329656['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x280422},'children':_0x4d9b38});}}function ni(_0x33f9a4,_0x1c7fb6){const _0x1930fc=_0x33f9a4['bindTemplate'],_0xb35ad4=_0x33f9a4['locale'],_0x5200a0=_0x492887(_0xb35ad4);_0x5200a0['panelPosition']='sw';const _0x7b5ed3=function(_0x5bb7c1,_0x36b4c7){const _0x5536b7=function(_0x2f91da,_0x2a0eff){const _0x2b1850=_0x2f91da['locale'],_0x39ed7f={'Compare\x20against\x20selected':m(_0x2b1850,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2b1850,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2b1850,'Restore\x20this\x20revision')};return _0x2a0eff['map'](_0x401f8e=>{const _0x40f64f=_0x39ed7f[_0x401f8e['name']];return _0x40f64f&&_0x40f64f!==_0x401f8e['name']&&(_0x401f8e['name']=_0x40f64f),_0x401f8e;});}(_0x5bb7c1,_0x36b4c7),_0x11f421=new _0x106ab5();for(const _0x6e37b2 of _0x5536b7){const _0x140a88={'type':'button','model':new to({'label':_0x6e37b2['name'],'class':_0x6e37b2['class'],'withText':!0x0,'role':'menuitem','_action':_0x6e37b2['action']})};_0x140a88['model']['bind']('isEnabled')['to'](_0x5bb7c1,'isActionsDropdownOpen',_0x5e4413=>'function'!=typeof _0x6e37b2['isEnabled']||(!_0x5e4413||_0x6e37b2['isEnabled'](_0x5bb7c1))),_0x11f421['add'](_0x140a88);}return _0x11f421;}(_0x33f9a4,_0x1c7fb6);return _0x33f9a4['bind']('isActionsDropdownOpen')['to'](_0x5200a0,'isOpen'),_0x5200a0['buttonView']['set']({'label':m(_0xb35ad4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41e7ec['threeVerticalDots']}),_0x5200a0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1930fc['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1930fc['to'](_0x3c194b=>_0x3c194b['stopPropagation']())}}),_0x5200a0['on']('execute',_0x4cd7ad=>{_0x33f9a4['isReady']&&'function'==typeof _0x4cd7ad['source']['_action']&&_0x4cd7ad['source']['_action'](_0x33f9a4);}),_0x35561a(_0x5200a0,_0x7b5ed3,{'role':'menu'}),_0x5200a0['listenTo'](_0x33f9a4,'change:isActionsDropdownOpen',(_0x10b400,_0x1c5dbe,_0x166e52)=>{if(_0x166e52)for(const _0x1d8508 of _0x5200a0['listView']['items']){const _0x5449f3=_0x1d8508['children']['first'],_0x5e53a8=_0x1c7fb6['find'](_0x4ec915=>_0x4ec915['action']===_0x5449f3['_action'])['isVisible'];_0x1d8508['isVisible']=void 0x0===_0x5e53a8||_0x5e53a8(_0x33f9a4);}}),_0x5200a0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x38fbd7,uid as _0x3e6a21,Collection as _0x2f5228,logWarning as _0x254282,FocusTracker as _0x4d70f1,KeystrokeHandler as _0x274fd1,scrollViewportToShowTarget as _0x121837,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3c4052}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x30e949,set as _0x47be66,unset as _0xac7d12,isEqual as _0x468159}from'lodash-es';import{Plugin as _0x56b833,PendingActions as _0x57d8f6,icons as _0x530a55,Command as _0x205cee,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x185edb,getMarkerDomElement as _0x5bc31a,ConfirmMixin as _0x1f4564,sanitizeEditorConfig as _0x3d69c0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x38502d,Element as ft,Range as vt,ViewUIElement as _0x53ba30,ViewRawElement as _0xd1e852,ViewEmptyElement as _0x127d40,ViewAttributeElement as _0x3f4771,ViewContainerElement as _0x1aeae3,Position as gt,ViewText as _0x3d3dae,ViewElement as _0x473b03,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x477074,injectCssTransitionDisabler as ts,submitHandler as _0x1eebec,LabeledFieldView as nt,createLabeledInputText as _0x21209c,createDropdown as _0x1f9b8d,ListView as te,ListItemView as _0x4ef16d,ButtonView as _0x3a8e36,MenuBarMenuView as _0x38087b,MenuBarMenuListView as _0x545de7,MenuBarMenuListItemView as _0x149278,MenuBarMenuListItemButtonView as _0x37e6a1,ContextualBalloon as _0x3031c7,ToolbarSeparatorView as _0x43a1be,IconView as _0x4abb36,addListToDropdown as _0x213961,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x36401b}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38fbd7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37f2ce){super(),this['id']=_0x37f2ce['id']||_0x3e6a21(),this['creator']=_0x37f2ce['creator']||null,this['authors']=_0x37f2ce['authors']||[],this['diffData']=_0x37f2ce['diffData']||null,this['toVersion']=_0x37f2ce['toVersion']||0x0,this['fromVersion']=_0x37f2ce['fromVersion']||0x0,this['set']('name',_0x37f2ce['name']||''),this['set']('createdAt',_0x37f2ce['createdAt']||new Date()),this['set']('attributes',_0x37f2ce['attributes']||{});}['setName'](_0x345420){this['_update']({'name':_0x345420});}['setAttribute'](_0x23fec8,_0x1498cb){const _0x23e828=_0x30e949(this['attributes']);_0x47be66(_0x23e828,_0x23fec8,_0x1498cb),this['_update']({'attributes':_0x23e828});}['removeAttribute'](_0x115490){const _0x469543=_0x30e949(this['attributes']);_0xac7d12(_0x469543,_0x115490),this['_update']({'attributes':_0x469543});}['_update'](_0x44a7e2,_0x299972=!0x1){let _0x25314c=!0x1;const _0x31dd19={'id':this['id']},_0x399327=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x27c339 of _0x399327){const _0x5e6b59=_0x44a7e2[_0x27c339];void 0x0!==_0x5e6b59&&_0x5e6b59!==this[_0x27c339]&&(this[_0x27c339]=_0x5e6b59,_0x31dd19[_0x27c339]=_0x5e6b59,_0x25314c=!0x0);}_0x25314c&&(_0x31dd19['authors']&&(_0x31dd19['authorsIds']=_0x31dd19['authors']['map'](_0x9de65e=>_0x9de65e['id']),delete _0x31dd19['authors']),this['fire']('_update',_0x31dd19,_0x299972));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfedcc0=>_0xfedcc0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x56b833{['_revisions'];static get['requires'](){return[_0x185edb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x338c42){super(_0x338c42),this['_revisions']=new _0x2f5228();}['afterInit'](){!async function(_0x4f6f20){const _0x45a08c=_0x2c43d2([0x6a,0x77,0x4d,0x4c,0x6b,0x53,0x4b,0x68,0x39,0x79,0x75,0x74,0x56,0x42,0x71,0x66,0x45,0x50,0x43,0x49,0x6c,0x76,0x5a,0x70,0x72,0x34,0x59,0x46,0x73,0x4f,0x30,0x44,0x58,0x61,0x6f,0x31,0x63,0x69,0x64,0x6d,0x41,0x51,0x57,0x4e,0x7a,0x67,0x37,0x4a,0x48,0x35,0x52,0x55,0x65,0x38,0x62,0x78,0x33,0x54,0x47,0x6e,0x36,0x32]),_0x340795=0xeb829,_0x4bf928=0x2ae395fd,_0xf5e584=0x2ae4f5c5^_0x4bf928,_0xcacf0d=window[_0x2c43d2([0x44,0x61,0x74,0x65])][_0x2c43d2([0x6e,0x6f,0x77])](),_0x4ea932=_0x4f6f20[_0x2c43d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fed7b=new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a5319=>{_0x4ea932[_0x2c43d2([0x6f,0x6e,0x63,0x65])](_0x2c43d2([0x72,0x65,0x61,0x64,0x79]),_0x5a5319);}),_0x241cdb={[_0x2c43d2([0x6b,0x74,0x79])]:_0x2c43d2([0x45,0x43]),[_0x2c43d2([0x75,0x73,0x65])]:_0x2c43d2([0x73,0x69,0x67]),[_0x2c43d2([0x63,0x72,0x76])]:_0x2c43d2([0x50,0x2d,0x32,0x35,0x36]),[_0x2c43d2([0x78])]:_0x2c43d2([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]),[_0x2c43d2([0x79])]:_0x2c43d2([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]),[_0x2c43d2([0x61,0x6c,0x67])]:_0x2c43d2([0x45,0x53,0x32,0x35,0x36])},_0x419d24=_0x4ea932[_0x2c43d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c43d2([0x67,0x65,0x74])](_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x410e90(){let _0xcff65a,_0x4e2eb9=null,_0x50d6ce=null;try{if(_0x419d24==_0x2c43d2([0x47,0x50,0x4c]))return _0x2c43d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcff65a=_0x27dd64(),!_0xcff65a)return _0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcff65a[_0x2c43d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50d6ce=_0x430644(_0xcff65a[_0x2c43d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcff65a[_0x2c43d2([0x6a,0x74,0x69])])),await _0x4875d1()?_0x59e0fb()?_0x2e97cb()?_0x2c43d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39176e()?(_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c43d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e2eb9=_0x55cb94(_0x2c43d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c43d2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e2eb9=_0x55cb94(_0x2c43d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50b0f2()):_0x2c43d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c43d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb5e266){return _0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e97cb(){const _0x434926=[_0x2c43d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c43d2([0x74,0x72,0x69,0x61,0x6c])][_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcacf0d/0x3e8:0xe10*_0xf5e584;return _0xcff65a[_0x2c43d2([0x65,0x78,0x70])]<_0x434926;}function _0x59e0fb(){const _0xf9c8a6=_0xcff65a[_0x2c43d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf9c8a6)return!0x1;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x2a])))return!0x0;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x52,0x48])))return!0x0;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x52,0x52,0x48]))){if(_0x1e04bb())return!0x0;if(_0x54ebfb()||_0x1bc21a())return!0x0;}return!0x1;}function _0x39176e(){const _0x5bd44f=_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bd44f||0x0==_0x5bd44f[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12bc7b}=new URL(window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bd44f[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12bc7b))return!0x0;const _0x214482=_0x12bc7b[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e]));return _0x5bd44f[_0x2c43d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21622f=>_0x21622f[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x2a])))[_0x2c43d2([0x6d,0x61,0x70])](_0x16dcf7=>_0x16dcf7[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e])))[_0x2c43d2([0x73,0x6f,0x6d,0x65])](_0x2a3788=>_0x214482[_0x2c43d2([0x65,0x76,0x65,0x72,0x79])]((_0x39a794,_0x1ae860)=>_0x2a3788[_0x1ae860]===_0x39a794||_0x2a3788[_0x1ae860]===_0x2c43d2([0x2a])));}function _0x50b0f2(){return _0x4e2eb9&&_0x50d6ce?new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x493db6,_0x2b9ddb)=>{_0x4e2eb9[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x493db6,_0x2b9ddb),_0x50d6ce[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x3f152a=>{_0x3f152a!=_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])&&_0x493db6(_0x3f152a);},_0x2b9ddb);}):_0x4e2eb9||_0x50d6ce||_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x430644(_0x43d601,_0x478215){return new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ea80=>{if(_0x25fbfe())return _0x46ea80(_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]));_0x4bc229(),_0x4ea932[_0x2c43d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ccc7=!0x1;const _0x590488=_0x3e6a21();function _0x2f96bc(_0x57e1a7){return!!_0x57e1a7&&(typeof _0x57e1a7===_0x2c43d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57e1a7===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57e1a7[_0x2c43d2([0x74,0x68,0x65,0x6e])]===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57e1a7[_0x2c43d2([0x63,0x61,0x74,0x63,0x68])]===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3666e2(_0x2af4a1){_0x3b509e(_0x2af4a1)[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0xa83f72=>{if(!_0xa83f72||_0xa83f72[_0x2c43d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c43d2([0x6f,0x6b]))return _0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b6259(_0x45e84c(_0x590488+_0x478215))!=_0xa83f72[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x2322e2=>(_0x28d86f(),_0x2322e2),()=>{const _0x272635=_0x1eff7d();return null==_0x272635?(_0x28d86f(),_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])):_0x2c43d2(_0xcacf0d-_0x272635>(0xeef11fd^_0x4bf928)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x46ea80)[_0x2c43d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13e501=0x2ad57b7d^_0x4bf928;function _0x28d86f(){const _0x508df8=_0x2c43d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b6259(_0x45e84c(_0x43d601)),_0x2212db=_0x1204f6(_0x4b6259(window[_0x2c43d2([0x4d,0x61,0x74,0x68])][_0x2c43d2([0x63,0x65,0x69,0x6c])](_0xcacf0d/_0x13e501)));window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c43d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x508df8,_0x2212db);}function _0x1eff7d(){const _0x18e992=_0x2c43d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b6259(_0x45e84c(_0x43d601)),_0x2db672=window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c43d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18e992);return _0x2db672?window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1204f6(_0x2db672),0x10)*_0x13e501:null;}function _0x3b509e(_0x436642){return new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e094,_0x5cf841)=>{_0x436642[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x22e094,_0x5cf841),window[_0x2c43d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5cf841,0x2ae2413d^_0x4bf928);});}}_0x4ea932[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31420d,_0x31b4d0)=>{if(_0x31b4d0[0x0]!=_0x43d601)return _0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31b4d0[0x1]={..._0x31b4d0[0x1],[_0x2c43d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x590488};},{[_0x2c43d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c43d2([0x68,0x69,0x67,0x68])}),_0x4ea932[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b6bc5=>{_0x2f96bc(_0x5b6bc5[_0x2c43d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ccc7=!0x0,_0x3666e2(_0x5b6bc5[_0x2c43d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c43d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c43d2([0x6c,0x6f,0x77])}),_0x4fed7b[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>{_0x18ccc7||_0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25fbfe(){return _0x4ea932[_0x2c43d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c43d2([0x76,0x69,0x65,0x77])][_0x2c43d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c43d2([0x61,0x75,0x74,0x6f]);}function _0x4bc229(){_0x4ea932[_0x2c43d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c43d2([0x76,0x69,0x65,0x77])][_0x2c43d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c43d2([0x61,0x75,0x74,0x6f]);}}function _0x55cb94(_0x1df4d9){const _0x5e9351=[new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd5c97=>setTimeout(_0xfd5c97,0x2aeaab31^_0x4bf928)),_0x4fed7b[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c3118=>{const _0x3936c4=0x2ae395fa^_0x4bf928,_0x20cb94=_0x4f6f20[_0x2c43d2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x426931(){_0x20cb94[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3936c4&&_0x3c3118();}_0x426931(),_0x20cb94[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x61,0x64,0x64]),_0x426931);})),new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x208995=>{function _0x5e776f(){for(const _0x10dd46 in window)if(window[_0x2c43d2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c43d2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x10dd46))&&window[_0x10dd46]==_0x340795)return _0x208995();_0x4ea932[_0x2c43d2([0x73,0x74,0x61,0x74,0x65])]!=_0x2c43d2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c43d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e776f,0x2ae38675^_0x4bf928);}_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5e776f();})];return window[_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c43d2([0x72,0x61,0x63,0x65])](_0x5e9351)[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>_0x1df4d9);}async function _0x235f36(){if(await _0x4fed7b,_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x243e65=_0x4f6f20[_0x2c43d2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xb44349=_0x4f6f20[_0x2c43d2([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])](_0x243e65[_0x2c43d2([0x69,0x64])]),_0x2b781b=_0x2b4a80(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2b781b[_0x2c43d2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x243e65['id'],_0xb44349?_0xb44349['id']:null,!0x0),_0x2b781b[_0x2c43d2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b781b[_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b781b[_0x2c43d2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x36b6d5,void(_0x2b781b[_0x2c43d2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x36b6d5);}if(_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x409dee=_0x2b4a80(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x409dee[_0x2c43d2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x409dee[_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x409dee[_0x2c43d2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x36b6d5,_0x409dee[_0x2c43d2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x36b6d5;}_0x4ea932[_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c43d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36b6d5,_0x4ea932[_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c43d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36b6d5,_0x4ea932[_0x2c43d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e04bb(){return _0x1add6f(_0x2c43d2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b4a80(_0x2c43d2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c43d2([0x73,0x74,0x61,0x74,0x65])]==_0x2c43d2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x54ebfb(){return _0x1add6f(_0x2c43d2([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 _0x1bc21a(){return _0x1add6f(_0x2c43d2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ab22b(_0x3d46ab){const _0x3a26a1=_0x98bf8b();_0x4ea932[_0x3a26a1]=_0x2c43d2([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])+_0x3d46ab,_0x3d46ab[_0x2c43d2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c43d2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x98bf8b()]=_0x340795),_0x3d46ab!=_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])&&_0x235f36();}function _0x98bf8b(){const _0x173105=window[_0x2c43d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c43d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c43d2([0x6e,0x6f,0x77])]())[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c43d2([0x2e]),'');let _0x196aed=_0x2c43d2([0x6a]);for(let _0x42afd7=0x0;_0x42afd7<_0x173105[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42afd7+=0x2){let _0x1623d0=window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173105[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42afd7,_0x42afd7+0x2));_0x1623d0>=_0x45a08c[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1623d0-=_0x45a08c[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x196aed+=_0x45a08c[_0x1623d0];}return _0x196aed;}function _0x27dd64(){const _0x46d2b4=_0x419d24[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e]));if(0x3!=_0x46d2b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3807aa(_0x46d2b4[0x1]);function _0x3807aa(_0x5b3b37){const _0x22c7e5=_0x36f16d(_0x5b3b37);return _0x22c7e5&&_0x3f06ec()?_0x22c7e5:null;function _0x3f06ec(){const _0x5812b4=_0x22c7e5[_0x2c43d2([0x6a,0x74,0x69])],_0x14c084=window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5812b4[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5812b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x464fd4={..._0x22c7e5,[_0x2c43d2([0x6a,0x74,0x69])]:_0x5812b4[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5812b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x464fd4[_0x2c43d2([0x76,0x63])],_0x45e84c(_0x464fd4)==_0x14c084;}}}async function _0x4875d1(){let _0x53b7ee=!0x0;try{const _0x46e8ec=_0x419d24[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e])),[_0x2a8c3c,_0x39b61c,_0x3f0dda]=_0x46e8ec;return _0x23a7f6(_0x2a8c3c),await _0x2400ca(_0x2a8c3c,_0x39b61c,_0x3f0dda),_0x53b7ee;}catch(_0x2b8f05){return!0x1;}function _0x23a7f6(_0x3f07e2){const _0x45c00e=_0x36f16d(_0x3f07e2);_0x45c00e&&_0x45c00e[_0x2c43d2([0x61,0x6c,0x67])]==_0x2c43d2([0x45,0x53,0x32,0x35,0x36])||(_0x53b7ee=!0x1);}async function _0x2400ca(_0x11f137,_0x3a625b,_0x29d9db){const _0x14c877=window[_0x2c43d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c43d2([0x66,0x72,0x6f,0x6d])](_0x4039ce(_0x29d9db),_0x5850d8=>_0x5850d8[_0x2c43d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18d65e=new window[(_0x2c43d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c43d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11f137+_0x2c43d2([0x2e])+_0x3a625b),_0x4083f6=window[_0x2c43d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c43d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4083f6)return;const _0x2ce6e9=await _0x4083f6[_0x2c43d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c43d2([0x6a,0x77,0x6b]),_0x241cdb,{[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x45,0x43,0x44,0x53,0x41]),[_0x2c43d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c43d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4083f6[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x45,0x43,0x44,0x53,0x41]),[_0x2c43d2([0x68,0x61,0x73,0x68])]:{[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ce6e9,_0x14c877,_0x18d65e)||(_0x53b7ee=!0x1);}}function _0x36f16d(_0x3cee19){return _0x3cee19[_0x2c43d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c43d2([0x65,0x79]))?JSON[_0x2c43d2([0x70,0x61,0x72,0x73,0x65])](_0x4039ce(_0x3cee19)):null;}function _0x4039ce(_0x419f07){return window[_0x2c43d2([0x61,0x74,0x6f,0x62])](_0x419f07[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c43d2([0x2b]))[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c43d2([0x2f])));}function _0x45e84c(_0x17bdc5){let _0x32b59c=0x1505;function _0x227b24(_0x1ff041){for(let _0x490bd1=0x0;_0x490bd1<_0x1ff041[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x490bd1++){const _0x3bb876=_0x1ff041[_0x2c43d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x490bd1);_0x32b59c=(_0x32b59c<<0x5)+_0x32b59c+_0x3bb876,_0x32b59c&=_0x32b59c;}}function _0x1360a3(_0x110c51){Array[_0x2c43d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x110c51)?_0x110c51[_0x2c43d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1360a3):_0x110c51&&typeof _0x110c51==_0x2c43d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c43d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x110c51)[_0x2c43d2([0x73,0x6f,0x72,0x74])]()[_0x2c43d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16e9e4,_0x2bec38])=>{_0x227b24(_0x16e9e4),_0x1360a3(_0x2bec38);}):_0x227b24(window[_0x2c43d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x110c51));}return _0x1360a3(_0x17bdc5),_0x32b59c>>>0x0;}function _0x4b6259(_0x24d24f){return _0x24d24f[_0x2c43d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c43d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c43d2([0x30]));}function _0x1204f6(_0x177a82){return _0x177a82[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c43d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c43d2([0x6a,0x6f,0x69,0x6e])]('');}function _0x1add6f(_0xd55cda){return _0x4ea932[_0x2c43d2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c43d2([0x68,0x61,0x73])](_0xd55cda);}function _0x2b4a80(_0xfc35d2){return _0x4ea932[_0x2c43d2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c43d2([0x67,0x65,0x74])](_0xfc35d2);}function _0x36b6d5(){}function _0x2c43d2(_0x13b53f){return _0x13b53f['map'](_0x34abb7=>String['fromCharCode'](_0x34abb7))['join']('');}_0x1ab22b(await _0x410e90());}(this);}['createRevision'](_0x5a515c){const _0x918b39=this['editor']['plugins']['get']('Users');return new a({'id':_0x5a515c['id'],'name':_0x5a515c['name'],'creator':_0x5a515c['creatorId']?_0x918b39['getUser'](_0x5a515c['creatorId']):null,'diffData':_0x5a515c['diffData']||_0x5a515c['data'],'authors':_0x5a515c['authorsIds']['map'](_0x5c386b=>_0x918b39['getUser'](_0x5c386b)),'createdAt':new Date(_0x5a515c['createdAt']),'attributes':_0x5a515c['attributes'],'fromVersion':_0x5a515c['fromVersion'],'toVersion':_0x5a515c['toVersion']});}['addRevision'](_0x432951,_0x590044=0x0){this['_revisions']['add'](_0x432951,_0x590044);}['getRevision'](_0x38150e){return this['_revisions']['get'](_0x38150e);}['getRevisions'](_0x1f0404={'toJSON':!0x1}){const _0x525008=Array['from'](this['_revisions']);return _0x525008['reverse'](),_0x1f0404['toJSON']?_0x525008['map'](_0xa94f32=>_0xa94f32['toJSON']()):_0x525008;}['getIndex'](_0x408aa9){return this['_revisions']['getIndex'](_0x408aa9);}['getEarlierVisibleRevision'](_0x4a58c0){const [,_0x1f8be0]=this['getRevisionsIterator'](_0x4a58c0,{'direction':'earlier'});return _0x1f8be0;}['getLaterVisibleRevision'](_0x42b1e6){const [,_0x176da5]=this['getRevisionsIterator'](_0x42b1e6,{'direction':'later'});return _0x176da5;}['getRevisionsInDiff'](_0x253b21){const _0xbf6ae4=[];for(const _0x33fa0a of this['getRevisionsIterator'](_0x253b21['newRevisionId']))if(_0xbf6ae4['push'](_0x33fa0a),_0x33fa0a['id']===_0x253b21['oldRevisionId'])break;return _0xbf6ae4;}*['getRevisionsIterator'](_0x5f1edd,{direction:_0x409756='earlier',filter:_0x3189b3=()=>!0x0}={}){const _0x6382bb='earlier'===_0x409756?0x1:-0x1;let _0x30f51c=this['_revisions']['get'](_0x5f1edd),_0x12b257=this['getIndex'](_0x30f51c);for(yield _0x30f51c;_0x30f51c;){if(_0x12b257+=_0x6382bb,_0x30f51c=this['getRevision'](_0x12b257),!_0x30f51c)return;_0x3189b3(_0x30f51c)&&(yield _0x30f51c);}}}function m(_0x357ec9,_0x235812,_0x2d97a2){const t=_0x357ec9['t'];switch(_0x235812){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'},_0x2d97a2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2d97a2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x1aeae3,'a':_0x3f4771,'e':_0x127d40,'r':_0xd1e852,'u':_0x53ba30};class l extends _0x56b833{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x185edb,j,_0x57d8f6];}constructor(_0x3c001c){super(_0x3c001c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5acb9b=_0x3e6a21();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5acb9b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5acbb6=this['repository']['getRevision'](0x0),_0xe1cb2b=_0x5acbb6&&null===_0x5acbb6['creator']?_0x5acbb6:null;if(this['_continueCurrentRevision']=!!_0xe1cb2b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x394281=this['_source']['getCurrentRevisionId'](),_0x365352=this['repository']['getRevision'](_0x394281);if(_0x365352)this['_startingVersion']=_0x365352['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x10f275=this['_source']['history']['_operations']['find'](_0xf622b5=>!_0xf622b5['_isInit']),_0x2cf3dc=_0x10f275?_0x10f275['baseVersion']:this['_source']['history']['version'];_0x5acbb6?(_0x5acbb6['toVersion']<_0x2cf3dc&&_0x5acbb6['_update']({'toVersion':_0x2cf3dc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id'],this['_startingVersion']=_0xe1cb2b['fromVersion']):(this['_startingVersion']=_0x5acbb6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2cf3dc,this['_continueCurrentRevision']=!0x1);}}else _0xe1cb2b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xe1cb2b['toVersion'],this['editor']['model']['document']['history']['version']),_0xe1cb2b['fromVersion']===_0xe1cb2b['toVersion']?(0x0!==_0xe1cb2b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id'],this['_startingVersion']=_0xe1cb2b['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',_0x849324=>!_0x849324),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54b281=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18160a;for(const _0x4356b4 in _0x54b281){const _0x5716f6=_0x4356b4,_0x59344c=_0x54b281[_0x5716f6];if('revisionHistoryLicenseKeyValid'==_0x59344c||'revisionHistoryLicenseKeyInvalid'==_0x59344c||'revisionHistoryLicenseKeyExpired'==_0x59344c||'revisionHistoryLicenseKeyDomainLimit'==_0x59344c||'revisionHistoryLicenseKeyNotAllowed'==_0x59344c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x59344c||'revisionHistoryLicenseKeyTrialLimit'==_0x59344c||'revisionHistoryLicenseKeyUsageLimit'==_0x59344c){delete _0x54b281[_0x5716f6],_0x18160a=_0x59344c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x18160a&&_0x54b281['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x18160a&&_0x54b281['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x18160a&&_0x54b281['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x18160a&&_0x54b281['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x18160a&&_0x54b281['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x18160a&&_0x54b281['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x18160a&&_0x54b281['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x40b532=this['repository']['getRevision'](0x0),_0x583350=await this['getRevisionDocumentData'](_0x40b532),_0xc802b2=await this['getRevisionRootsAttributes'](_0x40b532);this['_replaceEditorDataWithRevisionData'](_0x583350,_0xc802b2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x79aae8){this['_source']=_0x79aae8;}async['update'](){const _0x396bd2=await this['_source']['getLatestVersion']();if(_0x396bd2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x9457e8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x396bd2});_0x9457e8['authors']=_0x9457e8['authorsIds']['map'](_0x50e7f2=>this['editor']['plugins']['get']('Users')['getUser'](_0x50e7f2)),this['currentRevision']['_update'](_0x9457e8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x374dec={},_0x3def0f=null){const _0x20303f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3def0f>this['currentRevision']['toVersion']&&(_0x3def0f=null),null===_0x3def0f&&(_0x3def0f=await this['_source']['getLatestVersion']());const _0x5377f7=this['_getFromVersion'](_0x3def0f),_0x1710e5=this['buildRevisionData']({'from':_0x5377f7,'to':_0x3def0f});if(this['currentRevision']['toVersion']<_0x3def0f){const _0x524a7e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3def0f,'to':_0x3def0f});_0x524a7e['authors']=[],_0x524a7e['authorsIds']=[],_0x524a7e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x524a7e,!0x0),delete _0x524a7e['authors'],_0x20303f['push'](_0x524a7e);}_0x374dec['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x374dec['name']=_0x374dec['name']||null,_0x374dec['id']=_0x374dec['id']||_0x3e6a21(),_0x374dec={..._0x374dec,..._0x1710e5};const _0x394def=this['addRevisionData'](_0x374dec);_0x20303f['push'](_0x374dec);const _0x515b85=this['repository']['getIndex'](_0x394def);if(0x0!==_0x515b85){const _0x270ad9=this['repository']['getRevision'](_0x515b85-0x1);if(_0x270ad9['fromVersion']!==_0x3def0f){const _0x111a2d=this['_revisionDataBuilder']['getData'](_0x3def0f,_0x270ad9['toVersion']),_0x57d3c8={'id':_0x270ad9['id'],'diffData':_0x111a2d['diffData'],'authorsIds':_0x111a2d['authorsIds'],'authors':_0x111a2d['authorsIds']['map'](_0x69427e=>this['editor']['plugins']['get']('Users')['getUser'](_0x69427e)),'fromVersion':_0x3def0f};_0x270ad9===this['currentRevision']&&(_0x57d3c8['createdAt']=new Date(_0x374dec['createdAt']['getTime']()+0xa)),_0x270ad9['_update'](_0x57d3c8,!0x0),delete _0x57d3c8['authors'],_0x20303f['push'](_0x57d3c8);}}if(this['adapter']){for(const _0x2ca395 of _0x20303f)this['_bufferUpdate'](_0x2ca395['id'],_0x2ca395,!0x0);this['sendBufferedUpdates']();}return _0x394def;}['addRevisionData'](_0x1471b2){const _0x4e99a3=this['repository']['createRevision'](_0x1471b2);return this['adapter']&&_0x4e99a3['on']('_update',(_0x20074c,_0x52784c,_0xcc54b0)=>{_0xcc54b0||(this['_bufferUpdate'](_0x52784c['id'],_0x52784c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e99a3,this['_findInsertionIndex'](_0x4e99a3)),_0x4e99a3;}async['getRevisionDocumentData'](_0x1373f5){await this['_loadRevisionData'](_0x1373f5);const _0x2c5126={};for(const _0x4a7ea8 in _0x1373f5['diffData']){if(_0x1373f5['diffData'][_0x4a7ea8]['attachChange']&&!_0x1373f5['diffData'][_0x4a7ea8]['attachChange']['isAttached'])continue;const _0x5328b1=this['_removeRevisionMarkers'](JSON['parse'](_0x1373f5['diffData'][_0x4a7ea8]['insertions'])),_0x51f64d=this['editor']['editing']['view']['document'],_0x245771=new _0x38502d(_0x51f64d,_0x5328b1['map'](_0x278b00=>C(_0x278b00,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2c5126[_0x4a7ea8]=this['editor']['data']['processor']['toData'](_0x245771),this['editor']['data']['processor']['useFillerType']('default');}return _0x2c5126;}async['getRevisionRootsAttributes'](_0x8f2649){await this['_loadRevisionData'](_0x8f2649);const _0xaab680={};for(const _0x56d616 in _0x8f2649['diffData'])_0x8f2649['diffData'][_0x56d616]['attachChange']&&!_0x8f2649['diffData'][_0x56d616]['attachChange']['isAttached']||(_0xaab680[_0x56d616]=_0x8f2649['diffData'][_0x56d616]['attributesAfter']||{});return _0xaab680;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5deb83=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x247c70=0x0;_0x247c70<_0x5deb83['length'];_0x247c70++){const _0x15c732=_0x5deb83[_0x247c70];let _0x5f3818=!0x1;for(const _0x1499fd of Object['keys'](_0x15c732))void 0x0===_0x15c732[_0x1499fd]?delete _0x15c732[_0x1499fd]:'id'!==_0x1499fd&&(_0x5f3818=!0x0);_0x5f3818||(_0x5deb83[_0x247c70]=null);}if(_0x5deb83=_0x5deb83['filter'](_0x3415fd=>null!==_0x3415fd),!_0x5deb83['length'])return;for(let _0x275679=0x0;_0x275679<_0x5deb83['length'];_0x275679++){const _0x3cc71f=_0x5deb83[_0x275679];void 0x0!==_0x3cc71f['fromVersion']&&void 0x0===_0x3cc71f['toVersion']&&(_0x3cc71f['toVersion']=this['repository']['getRevision'](_0x3cc71f['id'])['toVersion']),void 0x0!==_0x3cc71f['toVersion']&&void 0x0===_0x3cc71f['fromVersion']&&(_0x3cc71f['fromVersion']=this['repository']['getRevision'](_0x3cc71f['id'])['fromVersion']);}const _0x2b35fa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5deb83,_0x2b35fa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x220d30=>{if(_0x220d30){for(const _0x473744 of _0x220d30)this['setRevisionData']({'id':_0x473744['id'],'createdAt':_0x473744['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xdfd2fe,_0x598a9f){let _0x32afd1=this['editor']['config']['get']('initialData'),_0x26fdf5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32afd1){_0x32afd1={};for(const _0x355c11 of this['editor']['model']['document']['getRootNames']())_0x32afd1[_0x355c11]='';}if('string'==typeof _0x32afd1&&(_0x32afd1={'main':_0x32afd1}),void 0x0===_0x26fdf5){_0x26fdf5={};for(const _0x1348bf of this['editor']['model']['document']['getRootNames']())_0x26fdf5[_0x1348bf]={};}let _0x1a36cf=!0x1;const _0x380092=Object['keys'](_0x32afd1),_0x1bbcbc=Object['keys'](_0xdfd2fe);for(const _0x939c00 of _0x380092){if(_0x32afd1[_0x939c00]!==_0xdfd2fe[_0x939c00]&&''!==_0x32afd1[_0x939c00]['trim']()){_0x1a36cf=!0x0;break;}if(!_0x468159(_0x26fdf5[_0x939c00],_0x598a9f[_0x939c00])&&Object['keys'](_0x26fdf5[_0x939c00])['length']>0x0){_0x1a36cf=!0x0;break;}}_0x1a36cf||(_0x1a36cf=_0x1bbcbc['some'](_0x3ee9ed=>!this['editor']['model']['document']['getRoot'](_0x3ee9ed))),_0x1a36cf&&_0x254282('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32afd1,'editorRootsAttributes':_0x26fdf5,'revisionData':_0xdfd2fe,'revisionRootsAttributes':_0x598a9f}),this['editor']['config']['set']('initialData',_0xdfd2fe),this['editor']['config']['set']('rootsAttributes',_0x598a9f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x82f872=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x82f872['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x508fc8){const _0x45f140=this['repository']['getRevisions']();_0x45f140['reverse']();let _0x20174e=0x0;for(;_0x20174e<_0x45f140['length'];){const _0x265b1d=_0x45f140[_0x20174e];if(_0x265b1d===this['currentRevision']){_0x20174e++;continue;}if(_0x265b1d['id']===this['_initialRevisionId'])break;const _0x414308=_0x508fc8['toVersion']-_0x265b1d['toVersion']||_0x508fc8['fromVersion']-_0x265b1d['fromVersion'];if(_0x414308>0x0)break;if(_0x414308<0x0)_0x20174e++;else{if(!_0x508fc8['creator']&&_0x265b1d['creator'])break;if(_0x265b1d['creator']||!_0x508fc8['creator']){if(_0x508fc8['createdAt']>_0x265b1d['createdAt'])break;_0x20174e++;}else _0x20174e++;}}return _0x20174e;}['setRevisionData'](_0x2dacde){const _0xa09e75=this['repository']['getRevision'](_0x2dacde['id']);if(_0x2dacde['createdAt']&&(_0x2dacde['createdAt']=new Date(_0x2dacde['createdAt'])),_0x2dacde['authorsIds']){const _0x37ed8d=this['editor']['plugins']['get']('Users');_0x2dacde['authors']=_0x2dacde['authorsIds']['map'](_0x25fb91=>_0x37ed8d['getUser'](_0x25fb91));}_0xa09e75['_update'](_0x2dacde,!0x0);}['buildRevisionData']({revision:_0x4320f0=null,from:_0xffd4fb=null,to:_0x2f7cad=null}){_0xffd4fb=null!==_0xffd4fb?_0xffd4fb:_0x4320f0['fromVersion'],_0x2f7cad=null!==_0x2f7cad?_0x2f7cad:_0x4320f0['toVersion'];const _0x3e491b=this['_revisionDataBuilder']['getData'](_0xffd4fb,_0x2f7cad),_0x31d5a3={'diffData':_0x3e491b['diffData'],'authorsIds':_0x3e491b['authorsIds'],'fromVersion':_0xffd4fb,'toVersion':_0x2f7cad};if(!_0x4320f0||_0x2f7cad!==_0x4320f0['toVersion']){const _0xe0e14=_0x2f7cad-0x1,_0x33eaf6=this['_source']['history']['getOperation'](_0xe0e14);_0x31d5a3['createdAt']=_0x33eaf6&&_0x33eaf6['createdAt']||new Date();}if(this['_loadedStateData']&&_0xffd4fb===this['_loadedStateData']['fromVersion']){for(const _0x134b15 of this['_loadedStateData']['authors'])_0x31d5a3['authorsIds']['includes'](_0x134b15['id'])||_0x31d5a3['authorsIds']['push'](_0x134b15['id']);}return _0x31d5a3;}['_loadRevisionData'](_0xe556cf){if(!_0xe556cf||_0xe556cf['diffData'])return Promise['resolve']();{const _0x2b8dec=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8dec,'revisionId':_0xe556cf['id']})['then'](_0x29e8e1=>{_0xe556cf['diffData']=_0x29e8e1['diffData'];});}}['_bufferUpdate'](_0x15a4c0,_0x3e5177,_0x327fa2){if(this['_bufferedUpdates']['has'](_0x15a4c0)){const _0x19e65e=this['_bufferedUpdates']['get'](_0x15a4c0);_0x3e5177=_0x327fa2?{..._0x19e65e,..._0x3e5177}:{..._0x3e5177,..._0x19e65e};}this['_bufferedUpdates']['set'](_0x15a4c0,_0x3e5177);}['_getFromVersion'](_0x5544df){const _0xd46df7=this['repository']['getRevisions']();_0xd46df7['reverse'](),_0xd46df7['shift']();const _0x3769fa=_0xd46df7['find'](_0xb987f8=>_0xb987f8['toVersion']<=_0x5544df)['toVersion'];return _0x3769fa<this['_startingVersion']?this['_startingVersion']:_0x3769fa;}['_createInitialRevision'](_0x10bffe){const _0x1013b9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1013b9)this['_initialRevisionId']=_0x1013b9['id'];else{const _0x101024=!this['editor']['model']['document']['roots']['find'](_0x28f0cc=>this['editor']['model']['hasContent'](_0x28f0cc)),_0x1ecc9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cce19=m(this['editor']['locale'],_0x101024?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x10bffe,'to':_0x10bffe,'id':this['_initialRevisionId'],'name':_0x3cce19,'creatorId':_0x1ecc9b});}}['_createCurrentRevision'](_0x3d8311){const _0x595f81=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x595f81),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3d8311,'to':_0x3d8311,'id':_0x595f81,'name':'','creatorId':null}));}['_makeRevision']({name:_0x54dcd9,from:_0x56cf09,to:_0x53f686,creatorId:_0x3d861d,id:_0x39ce42}){const _0x167a34=this['buildRevisionData']({'from':_0x56cf09,'to':_0x53f686});_0x167a34['name']=_0x54dcd9,_0x167a34['creatorId']=_0x3d861d,_0x167a34['id']=_0x39ce42;const _0x44293f=this['addRevisionData'](_0x167a34);return this['adapter']&&this['_bufferUpdate'](_0x167a34['id'],_0x167a34,!0x0),_0x44293f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4445c2){return(_0x4445c2=_0x4445c2['filter'](_0x417276=>!_0x417276['name']||'revision-start'!==_0x417276['name']&&'revision-end'!==_0x417276['name']))['forEach'](_0xb1ae3e=>{'string'!=typeof _0xb1ae3e&&(_0xb1ae3e['children']=this['_removeRevisionMarkers'](_0xb1ae3e['children']),_0xb1ae3e['attributes']=_0xb1ae3e['attributes']['filter'](_0x29d294=>!_0x29d294[0x0]['startsWith']('data-revision-')));}),_0x4445c2;}}function C(_0x35d6d1,_0x4cd088){const _0x3dca74=_0x4cd088['editing']['view']['document'];if('string'==typeof _0x35d6d1)return new _0x3d3dae(_0x3dca74,_0x35d6d1);{const _0x121d64=_0x35d6d1['children']['map'](_0x140dfa=>C(_0x140dfa,_0x4cd088));return new(P[_0x35d6d1['type']]||_0x473b03)(_0x3dca74,_0x35d6d1['name'],_0x35d6d1['attributes'],_0x121d64);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4fe2ff){this['editor']=_0x4fe2ff,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'](_0x2bfb2c){this['source']=_0x2bfb2c;const _0x36587b=new Map(),_0x561f12=new Map(),_0x4b36d4=this['editor']['model']['document']['roots']['map'](_0x254b19=>_0x254b19['rootName']);for(const _0x48e9b of _0x4b36d4){const _0x59adf3=this['editor']['model']['document']['getRoot'](_0x48e9b),_0x3cf875=T(_0x59adf3);_0x36587b['set'](_0x48e9b,_0x3cf875),_0x561f12['set'](_0x48e9b,Object['fromEntries'](_0x59adf3['getAttributes']()));}const _0x236124=Array['from'](this['editor']['model']['markers'])['map'](_0x39eac7=>[_0x39eac7['name'],_0x39eac7['getRange']()]),_0x5a385a=this['source']['version'];this['_saveMetaData'](_0x5a385a,_0x36587b,_0x236124,_0x561f12),this['_startingRevisionId']=this['_revisionId'];const _0x4b7c66=new Map(),_0x3f1680=new Map();for(const _0x3947a7 of _0x4b36d4){const _0x7771bd=F(_0x3947a7);_0x4b7c66['set'](_0x3947a7,_0x7771bd),_0x3f1680['set'](_0x3947a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b7c66,[],_0x3f1680);}['getData'](_0xa41ce3,_0x254446){if(this['_lastFrom']===_0xa41ce3&&this['_lastTo']<=_0x254446)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x254446,!0x0);else{if(!this['_savedMetaData']['has'](_0xa41ce3)){const _0x48f63c=this['_getPreviousFrom'](_0xa41ce3);this['_calculateMetaData'](_0x48f63c,_0xa41ce3,!0x1);}this['_calculateMetaData'](_0xa41ce3,_0x254446,!0x0);}return this['_lastFrom']=_0xa41ce3,this['_lastTo']=_0x254446,this['_getState']();}['loadState'](_0x1d28a7){this['_reset'](),this['_lastFrom']=_0x1d28a7['fromVersion'],this['_lastTo']=_0x1d28a7['toVersion'];for(const _0x56b1b9 in _0x1d28a7['diffData']){const _0x56808c=_0x1d28a7['diffData'][_0x56b1b9]['attachChange'],_0x4d6392=_0x30e949(_0x1d28a7['diffData'][_0x56b1b9]['attributesBefore'])||{},_0x5ae89b=this['_makeModelFromViewString'](_0x1d28a7['diffData'][_0x56b1b9]['deletions']);_0x5ae89b['rootName']=_0x56b1b9,_0x5ae89b['_isAttached']=!_0x56808c||!_0x56808c['isAttached'],_0x5ae89b['isAttached']=()=>_0x5ae89b['_isAttached'],this['_baseRoots']['set'](_0x56b1b9,_0x5ae89b),this['_baseRootsAttributes']['set'](_0x56b1b9,_0x4d6392),_0x56808c&&this['_touchedRoots']['set'](_0x56b1b9,_0x56808c);const _0x37048e=this['_makeIdsRoot'](_0x5ae89b);this['_baseIdsRoots']['set'](_0x56b1b9,_0x37048e);for(const [_0x468599,_0x2d16ec]of _0x5ae89b['markers']){if(!_0x468599['startsWith']('revision:'))continue;const _0x47bee8=_0x468599['split'](':')[0x2];for(const _0x15f701 of _0x2d16ec['getWalker']({'singleCharacters':!0x0})){const _0x109a68=this['_getVidAttributeName'](_0x15f701),_0x272af1='elementEnd'==_0x15f701['type']?_0x15f701['previousPosition']['path']['slice'](0x0,-0x1):_0x15f701['previousPosition']['path'],_0x576956=_0x37048e['getNodeByPath'](_0x272af1)['getAttribute'](_0x109a68);this['_touched']['set'](_0x576956,{'userId':_0x47bee8});}}}this['_startingRevisionId']=this['_revisionId'];const _0x904dcc=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe3ea=>!this['_touched']['has'](_0xe3ea));let _0xc7a8=0x0;const _0xc050b=new Map();for(const _0x50a665 in _0x1d28a7['diffData']){const _0x7a8045=_0x1d28a7['diffData'][_0x50a665]['attachChange'],_0x425028=_0x30e949(_0x1d28a7['diffData'][_0x50a665]['attributesAfter'])||{},_0x5d00f7=this['_makeModelFromViewString'](_0x1d28a7['diffData'][_0x50a665]['insertions']);_0x5d00f7['rootName']=_0x50a665,_0x5d00f7['_isAttached']=!_0x7a8045||_0x7a8045['isAttached'],_0x5d00f7['isAttached']=()=>_0x5d00f7['_isAttached'],this['_diffRoots']['set'](_0x50a665,_0x5d00f7),this['_diffRootsAttributes']['set'](_0x50a665,_0x425028);const _0x2c45ce=this['_makeIdsRoot'](_0x5d00f7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x50a665,_0x2c45ce),_0xc050b['set'](_0x50a665,_0x5d00f7['isAttached']()?_0x425028:{});for(const [_0x1d582f,_0x5e1a20]of _0x5d00f7['markers']){if(!_0x1d582f['startsWith']('revision:'))continue;const _0x168db2=_0x1d582f['split'](':')[0x2];for(const _0x5cfb39 of _0x5e1a20['getWalker']({'singleCharacters':!0x0})){const _0x1148a7=this['_getVidAttributeName'](_0x5cfb39),_0x35c99e=this['_revisionId']++,_0x58ec4b='elementEnd'==_0x5cfb39['type']?_0x5cfb39['previousPosition']['path']['slice'](0x0,-0x1):_0x5cfb39['previousPosition']['path'];_0x2c45ce['getNodeByPath'](_0x58ec4b)['_setAttribute'](_0x1148a7,_0x35c99e),this['_touched']['set'](_0x35c99e,{'userId':_0x168db2});}}for(const _0x592e1a of this['editor']['model']['createRangeIn'](_0x5d00f7)['getWalker']({'singleCharacters':!0x0})){const _0x16d846=this['_getVidAttributeName'](_0x592e1a),_0x45b995='elementEnd'==_0x592e1a['type']?_0x592e1a['previousPosition']['path']['slice'](0x0,-0x1):_0x592e1a['previousPosition']['path'],_0x52cda4=_0x2c45ce['getNodeByPath'](_0x45b995);_0x52cda4['getAttribute'](_0x16d846)>0x0||_0x52cda4['_setAttribute'](_0x16d846,_0x904dcc[_0xc7a8++]);}for(const [_0x509e6f,_0x572df6]of _0x5d00f7['markers'])_0x509e6f['startsWith']('revision:')||this['_markers']['set'](_0x509e6f,_0x572df6);}const _0x1ac3c9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1ac3c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ac3c9,0x1));const _0x177fa1=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x177fa1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x177fa1,0x1));const _0x6f188e=Array['from'](this['_diffRoots'])['map'](([_0x27a6b1,_0x46ffa1])=>[_0x27a6b1,T(_0x46ffa1)]);this['_saveMetaData'](this['_lastTo'],_0x6f188e,this['_markers'],_0xc050b);}['_makeModelFromViewString'](_0x4d3f6c){const _0x10674d=JSON['parse'](_0x4d3f6c),_0x48d524=this['editor']['editing']['view']['document'],_0x147255=new _0x38502d(_0x48d524,_0x10674d['map'](_0x27f4d7=>C(_0x27f4d7,this['editor'])));return this['editor']['data']['toModel'](_0x147255);}['_saveMetaData'](_0x317347,_0x3f6ed0,_0x1a4be7,_0x2dca26){const _0xc04c44=new Map(_0x3f6ed0),_0x5093d1=new Map(_0x30e949(_0x2dca26)),_0x39d5f8=new Map();for(const [_0x54158f,_0x51ae77]of _0x1a4be7)_0x39d5f8['set'](_0x54158f,{'start':_0x51ae77['start']['clone'](),'end':_0x51ae77['end']['clone'](),'rootName':_0x51ae77['root']['rootName']});this['_savedMetaData']['set'](_0x317347,{'roots':_0xc04c44,'markers':_0x39d5f8,'rootsAttributes':_0x5093d1});}['_removeMetaData'](_0x54b902){this['_savedMetaData']['delete'](_0x54b902);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x442c98,_0x3f97aa=null){let _0x5bc747=null;_0x442c98['is']('documentFragment')||(_0x5bc747=new ft(_0x442c98['name'],{'vid_start':null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++}));const _0x108057=[];for(const _0x140db0 of _0x442c98['getChildren']())if(_0x140db0['is']('element')){_0x108057['push'](this['_makeIdsRoot'](_0x140db0,_0x3f97aa));const _0x3eac33=_0x108057[_0x108057['length']-0x1];null!==_0x3f97aa&&(_0x3f97aa=_0x3eac33['is']('element','$text')?_0x3eac33['getAttribute']('vid')+0x1:_0x3eac33['getAttribute']('vid_end')+0x1);}else{for(let _0x15f0a5=0x0;_0x15f0a5<_0x140db0['offsetSize'];_0x15f0a5++)_0x108057['push'](new ft('$text',{'vid':null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++}));}if(_0x442c98['is']('documentFragment')){const _0x1b9c49=F(_0x442c98['rootName']);return _0x1b9c49['_insertChild'](0x0,_0x108057),_0x1b9c49;}return _0x5bc747['_setAttribute']('vid_end',null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++),_0x5bc747['_insertChild'](0x0,_0x108057),_0x5bc747;}['_calculateMetaData'](_0x1e323b,_0x5c25d3,_0x2466c5){this['_reset']();const {roots:_0x240cc7,markers:_0x17a588,rootsAttributes:_0xdd7e23}=this['_savedMetaData']['get'](_0x1e323b);this['_baseRoots']=new Map(_0x240cc7),this['_baseRootsAttributes']=new Map(_0x30e949(_0xdd7e23));for(const [_0x59f7c6,_0x16fa0f]of this['_baseRoots'])if('$graveyard'!==_0x59f7c6&&(this['_diffRoots']['set'](_0x59f7c6,T(_0x16fa0f)),this['_diffRootsAttributes']=new Map(_0x30e949(_0xdd7e23)),_0x2466c5)){const _0x5f3a26=this['_revisionId'];this['_idsRoots']['set'](_0x59f7c6,this['_makeIdsRoot'](_0x16fa0f)),this['_baseIdsRoots']['set'](_0x59f7c6,this['_makeIdsRoot'](_0x16fa0f,_0x5f3a26));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2466c5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4dcf83,_0x31fb27]of _0x17a588){const _0x239d95=this['_baseRoots']['get'](_0x31fb27['rootName']),_0x2edbb5=this['_diffRoots']['get'](_0x31fb27['rootName']),_0x266025=new vt(this['_fixPosition'](_0x31fb27['start'],_0x239d95),this['_fixPosition'](_0x31fb27['end'],_0x239d95)),_0x338497=this['_fixRange'](_0x266025,_0x2edbb5);_0x239d95['markers']['set'](_0x4dcf83,_0x266025),this['_markers']['set'](_0x4dcf83,_0x338497);}this['_applyOperations'](_0x1e323b,_0x5c25d3,_0x2466c5);}['_applyOperations'](_0x483a7c,_0x3d4713,_0x38101b){for(const _0x1de7bd of this['source']['getOperations'](_0x483a7c,_0x3d4713))this['_handleOperation'](_0x1de7bd,_0x38101b);for(const _0x409a49 of this['_diffRoots']['values']())_0x409a49['markers']['clear']();for(const [_0x5c347c,_0x15a4fe]of this['_markers']){this['_diffRoots']['get'](_0x15a4fe['root']['rootName'])['markers']['set'](_0x5c347c,_0x15a4fe['clone']());}const _0x132af9=new Map(),_0x161a48=new Map();for(const [_0x240b4c,_0x1a6241]of this['_diffRoots'])_0x132af9['set'](_0x240b4c,T(_0x1a6241)),_0x161a48['set'](_0x240b4c,this['_diffRootsAttributes']['get'](_0x240b4c));this['_saveMetaData'](_0x3d4713,_0x132af9,this['_markers'],_0x161a48);}['_getPreviousFrom'](_0xbe2e0d){const _0x2f25cf=Array['from'](this['_savedMetaData']['keys']());_0x2f25cf['sort']((_0x301641,_0x43fc20)=>_0x301641-_0x43fc20),_0x2f25cf['reverse']();for(const _0x106d66 of _0x2f25cf)if(_0x106d66<_0xbe2e0d)return _0x106d66;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4057dc,_0x4e9813){const _0x2d8373=Array['from'](_0x4e9813['markers'])['map'](([_0xd2cd4,_0x16a2ed])=>[_0xd2cd4,this['_fixRange'](_0x16a2ed,_0x4057dc)]);_0x4057dc['markers']=new Map(_0x2d8373);}['_transformMarkers'](_0x2cf583){for(const _0x1606e4 of this['_markers']['values']()){const _0x4bbba5=_0x1606e4['getTransformedByOperation'](_0x2cf583),_0x53e7ea=vt['_createFromRanges'](_0x4bbba5);_0x1606e4['start']=_0x53e7ea['start'],_0x1606e4['end']=_0x53e7ea['end'];}}['_handleOperation'](_0x1ebf38,_0x5dfe40){if('addRoot'!=_0x1ebf38['type']&&'detachRoot'!=_0x1ebf38['type']){if('insert'==_0x1ebf38['type']){const _0x3421e2=_0x1ebf38['position']['root']['rootName'];this['_diffRoots']['has'](_0x3421e2)||(this['_diffRoots']['set'](_0x3421e2,F(_0x3421e2,!0x0)),this['_diffRootsAttributes']['set'](_0x3421e2,{}),_0x5dfe40&&this['_idsRoots']['set'](_0x3421e2,F(_0x3421e2,!0x0)));}else{if('addRootAttribute'==_0x1ebf38['type']||'removeRootAttribute'==_0x1ebf38['type']||'changeRootAttribute'==_0x1ebf38['type'])return void this['_handleRootAttributeOperation'](_0x1ebf38);'marker'==_0x1ebf38['type']&&this['_handleMarkerOperation'](_0x1ebf38);}if('marker'!==_0x1ebf38['type']){const _0x5e8269=this['_cloneOperation'](_0x1ebf38,this['_diffRoots']);_0x5e8269['_execute'](),this['_transformMarkers'](_0x5e8269);}if(_0x5dfe40)switch(_0x1ebf38['type']){case'insert':this['_handleInsertOperation'](_0x1ebf38);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1ebf38);break;case'merge':this['_handleMergeOperation'](_0x1ebf38);break;case'split':this['_handleSplitOperation'](_0x1ebf38);}}else this['_handleRootOperation'](_0x1ebf38,_0x5dfe40);}['_cloneOperation'](_0x409557,_0x38887a){const _0x166bd5=_0x409557['clone']();return _0x166bd5['_authorId']=_0x409557['_authorId'],this['_fixOperation'](_0x166bd5,_0x38887a),_0x166bd5;}['_getBaseVids'](_0x4b2775){return _0x4b2775['map'](_0x3da8eb=>{const _0x260592=this['_getVidAttributeName'](_0x3da8eb);return Number(_0x3da8eb['item']['getAttribute'](_0x260592));});}['_generateTape'](_0xddcf9e,_0x40c01b){if(_0xddcf9e['is']('element','$text'))_0x40c01b['push']({'item':_0xddcf9e,'type':'text'});else{_0xddcf9e['is']('element')&&_0x40c01b['push']({'item':_0xddcf9e,'type':'elementStart'});for(const _0x5c10bf of _0xddcf9e['getChildren']())this['_generateTape'](_0x5c10bf,_0x40c01b);_0xddcf9e['is']('element')&&_0x40c01b['push']({'item':_0xddcf9e,'type':'elementEnd'});}return _0x40c01b;}['_getState'](){const _0x4c53af=new Map(this['_touched']),_0x1831b0=new Map(_0x4c53af),_0x30bd0d=new Map(),_0x43354c={'insertions':{},'deletions':{}},_0x3ff027={'insertions':{},'deletions':{}},_0x5a53ac=new Map(),_0x548461=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x548461['delete']('$graveyard');for(const _0x44fe3f of _0x548461){const _0x4d43f4=this['_diffRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1),_0x1a4bbb=this['_baseRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1);_0x4d43f4['isAttached']()||_0x1a4bbb['isAttached']()?(_0x43354c['insertions'][_0x44fe3f]=T(_0x4d43f4),_0x43354c['deletions'][_0x44fe3f]=T(_0x1a4bbb),this['_copyMarkers'](_0x43354c['deletions'][_0x44fe3f],_0x1a4bbb),this['_copyMarkers'](_0x43354c['insertions'][_0x44fe3f],_0x4d43f4),_0x3ff027['insertions'][_0x44fe3f]=this['_generateTape'](this['_idsRoots']['get'](_0x44fe3f),[]),_0x3ff027['deletions'][_0x44fe3f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1),[])):_0x548461['delete'](_0x44fe3f);}for(const _0x8acb87 of _0x548461){const _0x47e227=_0x3ff027['insertions'][_0x8acb87];for(const _0x5ebdc6 of _0x47e227){const _0x491db6=this['_getVidAttributeName'](_0x5ebdc6),_0x1df5ca=_0x5ebdc6['item']['getAttribute'](_0x491db6);_0x1831b0['delete'](_0x1df5ca),_0x1df5ca>=this['_startingRevisionId']&&_0x30bd0d['set'](_0x1df5ca,_0x4c53af['get'](_0x1df5ca));}}for(const _0x5a58e2 of _0x548461){const _0x37f871=_0x3ff027['insertions'][_0x5a58e2],_0x42087d=this['_getBaseVids'](_0x3ff027['deletions'][_0x5a58e2]);let _0x9559b9=0x0;for(const _0x224858 of _0x37f871){const _0x1d0e42=this['_getVidAttributeName'](_0x224858),_0x46c079=_0x224858['item']['getAttribute'](_0x1d0e42);if(!_0x30bd0d['has'](_0x46c079)&&!_0x5a53ac['has'](_0x46c079)){if(_0x1831b0['has'](_0x46c079))_0x9559b9++;else{if(_0x46c079!=_0x42087d[_0x9559b9]){const _0x109f88=_0x4c53af['get'](_0x46c079)||_0x4c53af['get'](_0x42087d[_0x9559b9]);for(;_0x46c079!=_0x42087d[_0x9559b9];)_0x1831b0['has'](_0x42087d[_0x9559b9])||(_0x5a53ac['set'](_0x42087d[_0x9559b9],_0x109f88),_0x4c53af['set'](_0x42087d[_0x9559b9],_0x109f88)),_0x9559b9++;}_0x9559b9++;}}}}for(const _0x5f56fb of _0x548461){const _0x46fbf1=_0x3ff027['insertions'][_0x5f56fb];for(const _0x317f3d of _0x46fbf1){const _0x525db3=this['_getVidAttributeName'](_0x317f3d),_0x1c410f=_0x317f3d['item']['getAttribute'](_0x525db3);if(_0x5a53ac['has'](_0x1c410f)){const _0xdf294b=_0x5a53ac['get'](_0x1c410f);_0x1831b0['has'](_0x1c410f)||_0x1831b0['set'](_0x1c410f,{..._0xdf294b}),_0x30bd0d['set'](_0x1c410f,{..._0xdf294b});}}}for(const _0x3e1fef of _0x1831b0['keys']())_0x3e1fef>=this['_startingRevisionId']&&_0x1831b0['delete'](_0x3e1fef);const _0x4cb6f5=new Map();for(const _0x2eddf9 of _0x548461){let _0x4a9954=_0x3ff027['insertions'][_0x2eddf9];for(const _0x1017b3 of _0x4a9954)if(_0x1017b3['item']['is']('element','tableCell')){const _0x35e135=this['_getVidAttributeName'](_0x1017b3),_0x372753=_0x1017b3['item']['getAttribute'](_0x35e135);if(_0x30bd0d['has'](_0x372753)){const _0x33baf2=_0x1017b3['item']['parent']['parent']['getAttribute']('vid_start'),_0x23f9dd=_0x4cb6f5['get'](_0x33baf2)||new Set();_0x23f9dd['add'](_0x30bd0d['get'](_0x372753)['userId']),_0x4cb6f5['set'](_0x33baf2,_0x23f9dd);}}_0x4a9954=_0x3ff027['deletions'][_0x2eddf9];for(const _0x798863 of _0x4a9954)if(_0x798863['item']['is']('element','tableCell')){const _0x4514e0=this['_getVidAttributeName'](_0x798863),_0x35d65d=_0x798863['item']['getAttribute'](_0x4514e0);if(_0x1831b0['has'](_0x35d65d)){const _0x1bf1d5=_0x798863['item']['parent']['parent']['getAttribute']('vid_start'),_0x307414=_0x4cb6f5['get'](_0x1bf1d5)||new Set();_0x307414['add'](_0x1831b0['get'](_0x35d65d)['userId']),_0x4cb6f5['set'](_0x1bf1d5,_0x307414);}}for(const _0x4a7c20 of _0x4cb6f5['keys']())(_0x30bd0d['has'](_0x4a7c20)||_0x1831b0['has'](_0x4a7c20))&&_0x4cb6f5['delete'](_0x4a7c20);}for(const _0x101f71 of _0x548461){const _0x5d1fe7=_0x3ff027['insertions'][_0x101f71];let _0x7ecc43=null,_0x5d9408=null;for(const _0x271e3e of _0x5d1fe7){const _0x1214aa=this['_getVidAttributeName'](_0x271e3e),_0x53aca1=_0x271e3e['item']['getAttribute'](_0x1214aa),_0x401e1f=_0x4cb6f5['get'](_0x53aca1);_0x401e1f&&'elementStart'==_0x271e3e['type']&&(_0x7ecc43=Array['from'](_0x401e1f)[0x0],_0x5d9408=_0x271e3e['item']['getAttribute']('vid_end')),_0x7ecc43&&(_0x1831b0['set'](_0x53aca1,{'userId':_0x7ecc43}),_0x30bd0d['set'](_0x53aca1,{'userId':_0x7ecc43})),_0x53aca1==_0x5d9408&&(_0x7ecc43=null,_0x5d9408=null);}}const _0x3ad68c={},_0x453254=new Set();for(const _0x58ba8e of _0x548461){const _0x35be0d=_0x43354c['deletions'][_0x58ba8e],_0x5e3115=_0x43354c['insertions'][_0x58ba8e];for(const {userId:_0x1c2f3e}of this['_touchedMarkers']['values']())null!==_0x1c2f3e&&_0x453254['add'](_0x1c2f3e);for(const {userId:_0x5edb2b}of this['_touchedRoots']['values']())null!==_0x5edb2b&&_0x453254['add'](_0x5edb2b);this['_markChanges'](_0x5e3115,_0x3ff027['insertions'][_0x58ba8e],_0x30bd0d,'insertion',_0x453254),this['_markChanges'](_0x35be0d,_0x3ff027['deletions'][_0x58ba8e],_0x1831b0,'deletion',_0x453254),_0x3ad68c[_0x58ba8e]={'insertions':this['_prepareViewToSave'](_0x5e3115),'deletions':this['_prepareViewToSave'](_0x35be0d),'attachChange':this['_touchedRoots']['get'](_0x58ba8e)||null,'attributesBefore':_0x30e949(this['_baseRootsAttributes']['get'](_0x58ba8e))||{},'attributesAfter':_0x30e949(this['_diffRootsAttributes']['get'](_0x58ba8e))};}return{'diffData':_0x3ad68c,'authorsIds':Array['from'](_0x453254)};}['_processRootBeforeSave'](_0x363279){for(const [,_0x1e9983]of _0x363279['markers']){const _0x44d49d=_0x1e9983['start']['getAncestors']()['filter'](_0x296a50=>'tableCell'==_0x296a50['name']);for(const _0x363020 of _0x44d49d)0x1==_0x363020['childCount']&&_0x363020['getChild'](0x0)['is']('element','paragraph')&&_0x363020['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x68f435){this['_processRootBeforeSave'](_0x68f435);const _0x27d82f=this['editor']['data']['toView'](_0x68f435,{}),_0x16996b=Array['from'](_0x27d82f['getChildren']())['map'](_0x5c59e1=>this['_getViewJson'](_0x5c59e1));return JSON['stringify'](_0x16996b);}['_getViewJson'](_0xc0065d){if(_0xc0065d['is']('$text'))return _0xc0065d['data'];{const _0x36d50e=_0xc0065d;return{'type':Object['keys'](P)['find'](_0x389482=>_0xc0065d instanceof P[_0x389482]),'name':_0x36d50e['name'],'attributes':Array['from'](_0x36d50e['getAttributes']()),'children':Array['from'](_0x36d50e['getChildren']())['map'](_0x504f28=>this['_getViewJson'](_0x504f28))};}}['_markChanges'](_0x2f1f9f,_0x49151a,_0x2aca78,_0x2d42e5,_0x538426){let _0x191b96=null,_0x27f4fc=null,_0x28de68=0x0;const _0x1bc120=this['editor']['model'];for(let _0x19ebdd=0x0;_0x19ebdd<_0x49151a['length'];_0x19ebdd++){const _0x188490=this['_getVidAttributeName'](_0x49151a[_0x19ebdd]),_0xa798c7=_0x49151a[_0x19ebdd]['item']['getAttribute'](_0x188490),_0x2deae3=_0x2aca78['get'](_0xa798c7),_0x3ae670=_0x19ebdd==_0x49151a['length']-0x1;(!_0x191b96&&_0x2deae3&&(_0x191b96=_0x2deae3,_0x27f4fc=_0x49151a[_0x19ebdd]),_0x191b96&&(!_0x2deae3||_0x2deae3['userId']!=_0x191b96['userId']))&&(_0x1c0876(_0x2deae3,B(_0x27f4fc,_0x2f1f9f,_0x1bc120),B(_0x49151a[_0x19ebdd],_0x2f1f9f,_0x1bc120)),_0x191b96=_0x2deae3||null,_0x27f4fc=_0x2deae3?_0x49151a[_0x19ebdd]:null),_0x191b96&&_0x3ae670&&_0x1c0876(_0x2deae3,B(_0x27f4fc,_0x2f1f9f,_0x1bc120),J(_0x49151a[_0x19ebdd],_0x2f1f9f,_0x1bc120));}function _0x1c0876(_0x582342,_0x558cd4,_0x987a39){const _0xa127c4=_0x191b96['userId'],_0x108467='revision:'+_0x2d42e5+':'+_0xa127c4+':'+_0x28de68++,_0x3472ad=_0x1bc120['createRange'](_0x558cd4,_0x987a39);_0x2f1f9f['markers']['set'](_0x108467,_0x3472ad),null!==_0xa127c4&&_0x538426['add'](_0xa127c4);}}['_getVidAttributeName'](_0x4c0b76){switch(_0x4c0b76['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x6a4157,_0x56c729){_0x6a4157['baseVersion']=null;for(const _0x64d267 in _0x6a4157){const _0x31777b=_0x6a4157[_0x64d267];if(_0x31777b instanceof gt){const _0x464f5a=_0x56c729['get'](_0x31777b['root']['rootName']);_0x6a4157[_0x64d267]=this['_fixPosition'](_0x31777b,_0x464f5a);}if(_0x31777b instanceof vt){const _0x4cbd02=_0x56c729['get'](_0x31777b['root']['rootName']);_0x6a4157[_0x64d267]=this['_fixRange'](_0x31777b,_0x4cbd02);}'root'===_0x64d267&&(_0x6a4157['root']=_0x56c729['get'](_0x6a4157['root']['rootName']));}}['_fixRange'](_0x44edce,_0x3ab27e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44edce['start'],_0x3ab27e),this['_fixPosition'](_0x44edce['end'],_0x3ab27e));}['_fixPosition'](_0x267e70,_0x54a69f){return this['editor']['model']['createPositionFromPath'](_0x54a69f,_0x267e70['path'],_0x267e70['stickiness']);}['_handleInsertOperation'](_0x558a93){const _0xa631e2=this['_idsRoots']['get'](_0x558a93['position']['root']['rootName']),_0x2f286a=this['_fixPosition'](_0x558a93['position'],_0xa631e2),_0xde7b0=null===_0x558a93['_authorId']?null:_0x558a93['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd5e859=_0x2f286a['parent'],_0x2c134f=this['_revisionId'],_0x34e263=[];for(const _0x15e1fc of _0x558a93['nodes'])if(_0x15e1fc['is']('element'))_0x34e263['push'](this['_makeIdsRoot'](_0x15e1fc));else{for(let _0x588e20=0x0;_0x588e20<_0x15e1fc['offsetSize'];_0x588e20++)_0x34e263['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5d747d=this['_revisionId'];for(let _0x22eb9e=_0x2c134f;_0x22eb9e<_0x5d747d;_0x22eb9e++)this['_touched']['set'](_0x22eb9e,{'userId':_0xde7b0});_0xd5e859['_insertChild'](_0x2f286a['offset'],_0x34e263);}['_handleMoveOperation'](_0x5076f0){(_0x5076f0=this['_cloneOperation'](_0x5076f0,this['_idsRoots']))['_execute']();const _0x6acfdb=null===_0x5076f0['_authorId']?null:_0x5076f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6bcbb1=_0x5076f0['getMovedRangeStart'](),_0x11e411=_0x6bcbb1['parent'],_0x481bb7=_0x6bcbb1['offset'];!function _0x4feea0(_0x375f12,_0x1c5ac9,_0x3d8b71,_0x856d6c){for(let _0x12d5a6=_0x3d8b71;_0x12d5a6<_0x856d6c;_0x12d5a6++){const _0x524a73=_0x1c5ac9['getChild'](_0x12d5a6);_0x524a73['is']('element','$text')?_0x375f12['set'](_0x524a73['getAttribute']('vid'),{'userId':_0x6acfdb}):(_0x375f12['set'](_0x524a73['getAttribute']('vid_start'),{'userId':_0x6acfdb}),_0x4feea0(_0x375f12,_0x524a73,0x0,_0x524a73['childCount']),_0x375f12['set'](_0x524a73['getAttribute']('vid_end'),{'userId':_0x6acfdb}));}}(this['_touched'],_0x11e411,_0x481bb7,_0x481bb7+_0x5076f0['howMany']);}['_handleMergeOperation'](_0x3774ae){const _0x36727c=null===(_0x3774ae=this['_cloneOperation'](_0x3774ae,this['_idsRoots']))['_authorId']?null:_0x3774ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x277a17=_0x3774ae['targetPosition']['parent'],_0x319bf5=_0x3774ae['sourcePosition']['parent'],_0x4c53ac=_0x277a17['getAttribute']('vid_end'),_0xc816af=_0x319bf5['getAttribute']('vid_start');_0x277a17['_setAttribute']('vid_end',_0x319bf5['getAttribute']('vid_end')),_0x319bf5['_setAttribute']('vid_end',_0x4c53ac),this['_touched']['set'](_0xc816af,{'userId':_0x36727c}),this['_touched']['set'](_0x4c53ac,{'userId':_0x36727c}),_0x3774ae['_execute']();}['_handleSplitOperation'](_0x243822){const _0x340ee1=null===(_0x243822=this['_cloneOperation'](_0x243822,this['_idsRoots']))['_authorId']?null:_0x243822['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53b81a=_0x243822['graveyardPosition'],_0x5d5e03=_0x243822['splitPosition']['parent'];_0x243822['_execute']();const _0x181ca2=_0x5d5e03['getAttribute']('vid_end'),_0x2feb32=_0x243822['insertionPosition']['nodeAfter'];if(_0x53b81a){const _0x49729d=_0x2feb32['getAttribute']('vid_end'),_0x7fedf=_0x5d5e03['getAttribute']('vid_end');_0x5d5e03['_setAttribute']('vid_end',_0x49729d),_0x2feb32['_setAttribute']('vid_end',_0x7fedf),this['_touched']['set'](_0x5d5e03['getAttribute']('vid_end'),{'userId':_0x340ee1}),this['_touched']['set'](_0x2feb32['getAttribute']('vid_start'),{'userId':_0x340ee1});}else{const _0x470b1a=this['_revisionId']++,_0x1983a1=this['_revisionId']++;_0x5d5e03['_setAttribute']('vid_end',_0x470b1a),_0x2feb32['_setAttribute']('vid_start',_0x1983a1),_0x2feb32['_setAttribute']('vid_end',_0x181ca2),this['_touched']['set'](_0x470b1a,{'userId':_0x340ee1}),this['_touched']['set'](_0x1983a1,{'userId':_0x340ee1});}}['_handleMarkerOperation'](_0x53a7c9){if(!_0x53a7c9['affectsData'])return;const _0x1fc74b=(_0x53a7c9=this['_cloneOperation'](_0x53a7c9,this['_diffRoots']))['oldRange']?_0x53a7c9['oldRange']['root']:null,_0x4ba82b=_0x53a7c9['newRange']?_0x53a7c9['newRange']['root']:null;_0x1fc74b&&this['_markers']['delete'](_0x53a7c9['name']),_0x4ba82b&&this['_markers']['set'](_0x53a7c9['name'],_0x53a7c9['newRange']['clone']());const _0x58c9a2=null===_0x53a7c9['_authorId']?null:_0x53a7c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38d74f=_0x53a7c9['name'];if(!this['_touchedMarkers']['has'](_0x38d74f))return void this['_touchedMarkers']['set'](_0x38d74f,{'range':_0x53a7c9['oldRange'],'userId':_0x58c9a2});const _0x15694b=this['_touchedMarkers']['get'](_0x38d74f),_0x598f9b=_0x15694b['range'],_0x3a6f53=_0x53a7c9['newRange'];null==_0x598f9b&&null==_0x3a6f53||_0x598f9b&&_0x3a6f53&&_0x598f9b['isEqual'](_0x3a6f53)?this['_touchedMarkers']['delete'](_0x53a7c9['name']):_0x15694b['userId']=_0x58c9a2;}['_handleRootOperation'](_0xf597c,_0x5db476){this['_diffRoots']['has'](_0xf597c['rootName'])?this['_diffRoots']['get'](_0xf597c['rootName'])['_isAttached']=_0xf597c['isAdd']:(this['_diffRoots']['set'](_0xf597c['rootName'],F(_0xf597c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xf597c['rootName'],{}),_0x5db476&&this['_idsRoots']['set'](_0xf597c['rootName'],F(_0xf597c['rootName'],!0x0)));const _0x54aa4b=null===_0xf597c['_authorId']?null:_0xf597c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1845d0=this['_touchedRoots']['get'](_0xf597c['rootName']);_0x1845d0&&_0x1845d0['userId']===_0x54aa4b?this['_touchedRoots']['delete'](_0xf597c['rootName']):this['_touchedRoots']['set'](_0xf597c['rootName'],{'userId':_0x54aa4b,'isAttached':_0xf597c['isAdd']});}['_handleRootAttributeOperation'](_0x5dc73a){const _0x20085b=this['_diffRootsAttributes']['get'](_0x5dc73a['root']['rootName']);null===_0x5dc73a['newValue']?delete _0x20085b[_0x5dc73a['key']]:_0x20085b[_0x5dc73a['key']]=_0x5dc73a['newValue'];}}function T(_0x194488){const _0x569ba0=F(_0x194488['rootName'],_0x194488['isAttached']());for(const _0x46f0b3 of _0x194488['getChildren']()){const _0x59c21c=_0x46f0b3['_clone'](!0x0);_0x569ba0['_appendChild'](_0x59c21c);}return _0x569ba0;}function F(_0x325744,_0x5aecb3=!0x0){const _0x2e8cc5=new mt();return _0x2e8cc5['rootName']=_0x325744,_0x2e8cc5['_isAttached']=_0x5aecb3,_0x2e8cc5['isAttached']=()=>_0x2e8cc5['_isAttached'],_0x2e8cc5;}function B(_0x1368f7,_0x2722fb,_0x5b45a2){const _0x2745e2='elementEnd'==_0x1368f7['type']?_0x5b45a2['createPositionAt'](_0x1368f7['item'],'end'):_0x5b45a2['createPositionBefore'](_0x1368f7['item']);return _0x5b45a2['createPositionFromPath'](_0x2722fb,_0x2745e2['path'],_0x2745e2['stickiness']);}function J(_0x365425,_0x5dd545,_0x30cfae){const _0x2c3204='elementStart'==_0x365425['type']?_0x30cfae['createPositionAt'](_0x365425['item'],0x0):_0x30cfae['createPositionAfter'](_0x365425['item']);return _0x30cfae['createPositionFromPath'](_0x5dd545,_0x2c3204['path'],_0x2c3204['stickiness']);}class ns extends _0x477074{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x478086,_0xe9336){super(_0x478086),this['focusTracker']=new _0x4d70f1(),this['keystrokes']=new _0x274fd1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe9336),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1eebec({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5b3a56=_0xab83ad=>_0xab83ad['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b3a56),this['keystrokes']['set']('arrowleft',_0x5b3a56),this['keystrokes']['set']('arrowup',_0x5b3a56),this['keystrokes']['set']('arrowdown',_0x5b3a56);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d8018){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d8018['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51eb2e){const _0xb88a0f=new nt(this['locale'],_0x21209c),_0x462586=_0xb88a0f['fieldView'];_0x462586['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x14a70b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51eb2e&&(_0x14a70b+='\x20('+m(this['locale'],'optional')+')'),(_0xb88a0f['label']=_0x14a70b,_0x462586['on']('input',()=>{this['revisionNameInputValue']=_0x462586['element']['value']['trim']();}),_0xb88a0f);}}class u extends _0x56b833{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4e3bfb=this['editor'],_0x5c8e25=_0x4e3bfb['plugins']['get']('RevisionTracker');_0x4e3bfb['ui']['componentFactory']['add']('revisionHistory',_0xd643d3=>{const _0x312215=_0x1f9b8d(_0xd643d3),_0x1d87ff=_0x312215['panelView']['children'],_0x445973=new te(_0xd643d3),_0x599f91=new _0x4ef16d(_0xd643d3),_0x1982ba=new _0x3a8e36(_0xd643d3),_0x34b367=new _0x4ef16d(_0xd643d3),_0x1f8808=new _0x3a8e36(_0xd643d3);return _0x312215['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x5c8e25,'isEnabled',_0x4e3bfb,'isReadOnly',(_0x24b239,_0x461591,_0x489a68)=>_0x24b239&&_0x461591&&!_0x489a68),_0x312215['buttonView']['set']({'icon':_0x530a55['history'],'label':m(_0xd643d3,'Revision\x20history'),'tooltip':!0x0}),_0x1982ba['set']({'label':m(_0xd643d3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1982ba['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x5c8e25,'isEnabled',_0x4e3bfb,'isReadOnly',(_0x37b017,_0x554677,_0xc0d798)=>_0x37b017&&_0x554677&&!_0xc0d798),_0x1982ba['on']('execute',()=>this['_showDialog']()),_0x1f8808['set']({'label':m(_0xd643d3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1f8808['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x4e3bfb,'isReadOnly',(_0x11b9bc,_0x2c7412)=>_0x11b9bc&&!_0x2c7412),_0x1f8808['on']('execute',()=>{_0x4e3bfb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x312215['isOpen']=!0x1,_0x4e3bfb['editing']['view']['focus']();}),_0x599f91['children']['add'](_0x1982ba),_0x34b367['children']['add'](_0x1f8808),_0x445973['role']='menu',_0x445973['items']['addMany']([_0x599f91,_0x34b367]),_0x1d87ff['add'](_0x445973),_0x312215;}),_0x4e3bfb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xac7c62=this['editor'],_0x1ed271=_0xac7c62['locale'],_0x2e4dbc=new _0x38087b(_0x1ed271),_0x2d5485=new _0x545de7(_0x1ed271);_0x2e4dbc['buttonView']['set']({'icon':_0x530a55['history'],'label':m(_0x1ed271,'Revision\x20history')});const _0x22ce28=new _0x149278(_0x1ed271,_0x2e4dbc),_0x8bc414=new _0x37e6a1(_0x1ed271);_0x8bc414['set']({'label':m(_0x1ed271,'Save\x20current\x20revision')}),_0x8bc414['delegate']('execute')['to'](_0x2e4dbc),_0x8bc414['on']('execute',()=>{this['_showDialog']();}),_0x22ce28['children']['add'](_0x8bc414),_0x2d5485['items']['add'](_0x22ce28);const _0x29eb4b=new _0x149278(_0x1ed271,_0x2e4dbc),_0x24cfc9=new _0x37e6a1(_0x1ed271);return _0x24cfc9['set']({'label':m(_0x1ed271,'Open\x20revision\x20history')}),_0x24cfc9['delegate']('execute')['to'](_0x2e4dbc),_0x24cfc9['on']('execute',()=>{_0xac7c62['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29eb4b['children']['add'](_0x24cfc9),_0x2d5485['items']['add'](_0x29eb4b),_0x2e4dbc['panelView']['children']['add'](_0x2d5485),_0x2e4dbc;}['_showDialog'](){const _0x41a8aa=this['editor'],_0x38a206=_0x41a8aa['locale'],_0x1b5a4c=_0x41a8aa['plugins']['get']('Dialog'),_0x50f274=_0x41a8aa['plugins']['get']('RevisionTracker');function _0x1c4d95(_0x39ae92){_0x41a8aa['config']['get']('revisionHistory.requireRevisionName')&&''===_0x39ae92['revisionName']?_0x39ae92['revisionNameInputView']['errorText']=m(_0x38a206,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x41a8aa['plugins']['get'](l)['saveRevision']({'name':_0x39ae92['revisionName']}),_0x1b5a4c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1c4d95(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b5a4c['show']({'id':'revisionSave','title':m(_0x38a206,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x41a8aa['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b5a4c['hide']()},{'label':m(_0x41a8aa['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5bba6c){_0x5bba6c['bind']('isEnabled')['to'](_0x50f274,'isReady',_0x50f274,'isEnabled',_0x41a8aa,'isReadOnly',(_0x3a24b4,_0x31a308,_0x277b34)=>_0x3a24b4&&_0x31a308&&!_0x277b34);},'onExecute':()=>_0x1c4d95(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x187bae=this['editor'],_0x4a8b39=_0x187bae['locale'];this['_saveRevisionFormView']=new ns(_0x4a8b39,_0x187bae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x477074{['changeId'];['_model'];constructor(_0x2f8f09,_0x613caf){super(_0x2f8f09),this['_model']=_0x613caf,this['changeId']=_0x613caf['id'];const _0x567d02=this['bindTemplate'],_0x30269a=m(_0x2f8f09,_0x613caf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x613caf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x613caf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x567d02['to']('type',_0x27ae0f=>'ck-revision-change__'+_0x27ae0f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x30269a}]},{'text':'\x20'+_0x613caf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x38fbd7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x350389){super(),this['id']=_0x350389['id']||_0x3e6a21(),this['author']=_0x350389['author'],this['type']=_0x350389['type'],this['data']=_0x350389['data']||{},this['rootName']=_0x350389['rootName'],this['set']('createdAt',_0x350389['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3154ff,_0x1eee1e){this['newRevisionId']=_0x3154ff,this['oldRevisionId']=_0x1eee1e,this['changes']=new _0x2f5228();}['_setChanges'](_0x4c4dfe){for(const _0x4c3672 of _0x4c4dfe)this['changes']['add'](_0x4c3672);}}const Y={'c':_0x1aeae3,'a':_0x3f4771,'e':_0x127d40,'r':_0xd1e852,'u':_0x53ba30};class d extends _0x56b833{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x185edb,_0x3031c7,j];}constructor(_0x237695){super(_0x237695),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x52975c,_0x2ea3a4,_0x273a80)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x38a8e5=>{for(const _0xee0c74 of this['editor']['editing']['view']['document']['roots'])_0x273a80?_0x38a8e5['removeClass']('ck-editor__editable__overlay',_0xee0c74):_0x38a8e5['addClass']('ck-editor__editable__overlay',_0xee0c74);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x31d614=>null!==_0x31d614),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xea4c52,_0x15ac98,_0x5a2efb)=>_0xea4c52&&_0x5a2efb?_0x15ac98['changes']['getIndex'](_0x5a2efb):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52552b,_0x291bc4)=>_0x52552b?_0x291bc4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3031c7);}['init'](){const _0x3ce340=this['editor'],_0x740bbb=new yt(_0x3ce340,{'direction':'backward'}),_0x250f33=new yt(_0x3ce340,{'direction':'forward'});(_0x3ce340['commands']['add']('showPreviousChange',_0x740bbb),_0x3ce340['commands']['add']('showNextChange',_0x250f33),_0x3ce340['commands']['add']('restoreRevision',new _t(_0x3ce340)),this['on']('change:numberOfChanges',()=>{_0x740bbb['refresh'](),_0x250f33['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3ce340['enableReadOnlyMode']('revision-viewer'),_0x3ce340['plugins']['has']('WidgetToolbarRepository'))&&_0x3ce340['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x58b9bf){await this['loadRevisionData'](_0x58b9bf);const _0x27a4fd={};for(const _0x1bed2f in _0x58b9bf['diffData']){if(_0x58b9bf['diffData'][_0x1bed2f]['attachChange']&&!_0x58b9bf['diffData'][_0x1bed2f]['attachChange']['isAttached'])continue;const _0x4e6da6=this['_removeRevisionMarkers'](JSON['parse'](_0x58b9bf['diffData'][_0x1bed2f]['insertions'])),_0x3747a8=this['editor']['editing']['view']['document'],_0x48ff0e=new _0x38502d(_0x3747a8,_0x4e6da6['map'](_0x4368e6=>this['_getViewObj'](_0x4368e6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27a4fd[_0x1bed2f]=this['editor']['data']['processor']['toData'](_0x48ff0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x27a4fd;}async['getRevisionRootsAttributes'](_0x4b28b6){await this['loadRevisionData'](_0x4b28b6);const _0x202b96={};for(const _0x202cb0 in _0x4b28b6['diffData'])_0x4b28b6['diffData'][_0x202cb0]['attachChange']&&!_0x4b28b6['diffData'][_0x202cb0]['attachChange']['isAttached']||(_0x202b96[_0x202cb0]=_0x4b28b6['diffData'][_0x202cb0]['attributesAfter']||{});return _0x202b96;}['_removeRevisionMarkers'](_0xef9f14){return(_0xef9f14=_0xef9f14['filter'](_0x1c3a3c=>!_0x1c3a3c['name']||'revision-start'!==_0x1c3a3c['name']&&'revision-end'!==_0x1c3a3c['name']))['forEach'](_0x3f229b=>{'string'!=typeof _0x3f229b&&(_0x3f229b['children']=this['_removeRevisionMarkers'](_0x3f229b['children']),_0x3f229b['attributes']=_0x3f229b['attributes']['filter'](_0x2afb9c=>!_0x2afb9c[0x0]['startsWith']('data-revision-')));}),_0xef9f14;}async['compare'](_0x5a4c18,_0x59279c,_0x1cdf61=!0x1){if(!this['isEnabled'])return;const _0x4e2189=this['diff'],_0x1033c5=this['repository'],_0x1e5bb6='string'==typeof _0x5a4c18?_0x1033c5['getRevision'](_0x5a4c18):_0x5a4c18,_0x294397='string'==typeof _0x59279c?_0x1033c5['getRevision'](_0x59279c):_0x59279c,_0x1ea060=_0x1e5bb6['id'],_0x57c64e=_0x294397?_0x294397['id']:null;if(!_0x1cdf61&&this['diff']&&this['diff']['newRevisionId']===_0x1ea060&&this['diff']['oldRevisionId']===_0x57c64e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1ea060,_0x57c64e);const _0x33e53c=this['_getRevisionsRange'](_0x1e5bb6,_0x294397,!0x0)['map'](_0x2efb5f=>this['loadRevisionData'](_0x2efb5f));return _0x33e53c['push'](new Promise(_0x23c871=>{setTimeout(_0x23c871,0x14);})),Promise['all'](_0x33e53c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x178ed6=this['_getDiff'](_0x1ea060,_0x57c64e);for(const _0x59ede9 of _0x178ed6['changes'])this['_changeIdToChange']['set'](_0x59ede9['id'],_0x59ede9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ee30c=>{for(const _0x4161e6 of this['editor']['model']['document']['getRootNames']())_0x5ee30c['detachRoot'](_0x4161e6);for(const _0x47d7a3 of Object['keys'](_0x178ed6['model'])){const _0x107078=_0x5ee30c['addRoot'](_0x47d7a3);for(const _0xeeed03 of Object['keys'](_0x178ed6['attributes'][_0x47d7a3]))_0x5ee30c['setAttribute'](_0xeeed03,_0x178ed6['attributes'][_0x47d7a3][_0xeeed03],_0x107078);_0x5ee30c['insert'](_0x178ed6['model'][_0x47d7a3],_0x107078,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x178ed6['changes'])),this['isReady']=!0x0;})['catch'](_0x5d88e3=>{console['error'](_0x5d88e3),this['_cleanUp'](),_0x4e2189&&(this['diff']=_0x4e2189),this['isReady']=!0x0;});}['addRevisionData'](_0x326ff8,_0x40832c){const _0x470369=this['repository']['createRevision'](_0x326ff8);return _0x470369['on']('_update',(_0x15bbb0,_0x366946,_0x15c273)=>_0x40832c(_0x366946,_0x15c273,_0x470369)),this['repository']['addRevision'](_0x470369),_0x470369;}['loadRevisionData'](_0x41b527){if(!_0x41b527||_0x41b527['diffData'])return Promise['resolve']();{const _0x4a1704=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4a1704,'revisionId':_0x41b527['id']})['then'](_0x5ec4bf=>{_0x41b527['_update']({'diffData':_0x5ec4bf['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3bafa3=>{for(const _0x390e89 of this['editor']['model']['document']['getRootNames']())_0x3bafa3['detachRoot'](_0x390e89);});}['_sortAndFilterDiffChanges'](_0x5788a5){const _0x5e08bc=[],_0x4e5fb1=new Map();for(const _0x5af18a of this['editor']['model']['document']['getRootNames']()){const _0x67b808=this['editor']['editing']['view']['getDomRoot'](_0x5af18a);if(!_0x67b808)continue;const _0x32adf1=_0x67b808['getClientRects']()['item'](0x0);_0x32adf1&&(_0x5e08bc['push'](_0x5af18a),_0x4e5fb1['set'](_0x5af18a,_0x32adf1));}return _0x5e08bc['sort']((_0x41ed60,_0x45040d)=>{const _0x104022=_0x4e5fb1['get'](_0x41ed60),_0x13f1e4=_0x4e5fb1['get'](_0x45040d);return _0x104022['y']-_0x13f1e4['y']||_0x104022['x']-_0x13f1e4['x'];}),(_0x5788a5=_0x5788a5['filter'](_0x41887d=>_0x5e08bc['includes'](_0x41887d['rootName'])))['sort']((_0x3f36ef,_0x8b831e)=>_0x5e08bc['indexOf'](_0x3f36ef['rootName'])-_0x5e08bc['indexOf'](_0x8b831e['rootName'])),_0x5788a5;}['_makeTape'](_0x545977){const _0x2cca34=Array['from'](_0x545977['markers'])['filter'](([_0x5542df,_0x5e3ca6])=>_0x5542df['startsWith']('revision:')&&!_0x5e3ca6['isCollapsed']),_0x4f15e5=Array['from'](this['editor']['model']['createRangeIn'](_0x545977)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cca34['length'])for(const _0x38e46e of _0x4f15e5){const [_0x2fc2ea,_0x19caa7]=_0x2cca34[0x0],[,_0x5a5569,_0x5e3b11]=_0x2fc2ea['split'](':');if(_0x19caa7['end']['isEqual'](_0x38e46e['nextPosition'])&&_0x2cca34['shift'](),(_0x38e46e['previousPosition']['isEqual'](_0x19caa7['start'])||_0x38e46e['previousPosition']['isAfter'](_0x19caa7['start']))&&('insertion'==_0x5a5569?_0x38e46e['isAdded']={'userId':_0x5e3b11}:'deletion'==_0x5a5569&&(_0x38e46e['isRemoved']={'userId':_0x5e3b11})),0x0==_0x2cca34['length'])break;}return _0x4f15e5;}['_refreshStartEndIndex'](_0x268ad1){const _0x355fa3=new Map();for(let _0x8ead54=0x0;_0x8ead54<_0x268ad1['length'];_0x8ead54++)'text'===_0x268ad1[_0x8ead54]['type']?(_0x268ad1[_0x8ead54]['item']['startIndex']=_0x8ead54,_0x268ad1[_0x8ead54]['item']['endIndex']=_0x8ead54):('elementStart'===_0x268ad1[_0x8ead54]['type']?_0x268ad1[_0x8ead54]['item']['startIndex']=_0x8ead54:'elementEnd'===_0x268ad1[_0x8ead54]['type']&&(_0x268ad1[_0x8ead54]['item']['endIndex']=_0x8ead54),_0x355fa3['set'](_0x268ad1[_0x8ead54]['id'],_0x8ead54));for(const _0x43dd42 of _0x355fa3['values']())'elementStart'===_0x268ad1[_0x43dd42]['type']?_0x268ad1[_0x43dd42]['item']['endIndex']=_0x355fa3['get'](_0x268ad1[_0x43dd42]['pairId']):'elementEnd'===_0x268ad1[_0x43dd42]['type']&&(_0x268ad1[_0x43dd42]['item']['startIndex']=_0x355fa3['get'](_0x268ad1[_0x43dd42]['pairId']));}['_processTape'](_0x525706){for(let _0x5976ca=0x0;_0x5976ca<_0x525706['length'];_0x5976ca++){if('elementStart'===_0x525706[_0x5976ca]['type'])_0x525706[_0x5976ca]['item']['startIndex']=_0x5976ca;else{if('elementEnd'===_0x525706[_0x5976ca]['type']){_0x525706[_0x5976ca]['item']['endIndex']=_0x5976ca;const _0x460702=_0x525706[_0x5976ca]['item']['startIndex'];_0x525706[_0x460702]['pairId']=_0x525706[_0x5976ca]['id'],_0x525706[_0x5976ca]['pairId']=_0x525706[_0x460702]['id'];}else _0x525706[_0x5976ca]['item']['startIndex']=_0x5976ca,_0x525706[_0x5976ca]['item']['endIndex']=_0x5976ca,_0x525706[_0x5976ca]['pairId']=null;}_0x525706[_0x5976ca]['markersStart']||(_0x525706[_0x5976ca]['markersStart']=[],_0x525706[_0x5976ca]['markersEnd']=[]);}}['_markInsertions'](_0x1a78a2,_0x436822){const _0x48122c=_0x1a78a2['filter'](_0x40c904=>!_0x40c904['isAdded']);for(let _0x4cb75c=0x0;_0x4cb75c<_0x436822['length'];_0x4cb75c++)_0x436822[_0x4cb75c]['isAdded']&&(_0x48122c[_0x4cb75c]['isAdded']=_0x436822[_0x4cb75c]['isAdded']);}['_makeModelFromViewString'](_0x4bbcb1){const _0x158c9a=JSON['parse'](_0x4bbcb1),_0xdb20e3=this['editor']['editing']['view']['document'],_0x279840=new _0x38502d(_0xdb20e3,_0x158c9a['map'](_0x3468d9=>this['_getViewObj'](_0x3468d9)));return this['editor']['data']['toModel'](_0x279840);}['_getViewObj'](_0x537594){const _0x37f1d2=this['editor']['editing']['view']['document'];if('string'==typeof _0x537594)return new _0x3d3dae(_0x37f1d2,_0x537594);{const _0x2cc3a7=_0x537594['children']['map'](_0x1a29a=>this['_getViewObj'](_0x1a29a));return new(Y[_0x537594['type']]||_0x473b03)(_0x37f1d2,_0x537594['name'],_0x537594['attributes'],_0x2cc3a7);}}['_getDiff'](_0x1453ea,_0x495e55=null){const _0x43560a=this['repository']['getRevision'](_0x1453ea),_0x213963=_0x495e55?this['repository']['getRevision'](_0x495e55):null,_0x2a9f80=this['_getRevisionsRange'](_0x43560a,_0x213963),_0x3cc2fb=_0x2a9f80[_0x2a9f80['length']-0x1],_0x13ba68=new Map(),_0x5d5c06={'model':{},'attributes':{},'changes':[]},_0x44340c=new Set(),_0x504de8=new Map();for(let _0xf1a1a8=_0x2a9f80['length']-0x1;_0xf1a1a8>=0x0;_0xf1a1a8--){const _0x419ebf=_0x2a9f80[_0xf1a1a8];for(const _0x2268c1 of Object['keys'](_0x419ebf['diffData']))if(_0x419ebf['diffData'][_0x2268c1]['attachChange']){const _0xe95d74=_0x419ebf['diffData'][_0x2268c1]['attachChange'];_0xe95d74['isAttached']?(_0x44340c['add'](_0x2268c1),_0x504de8['has'](_0x2268c1)&&_0x504de8['get'](_0x2268c1)['userId']==_0xe95d74['userId']?_0x504de8['delete'](_0x2268c1):_0x504de8['set'](_0x2268c1,_0xe95d74)):_0x504de8['has'](_0x2268c1)?(_0x44340c['delete'](_0x2268c1),_0x504de8['delete'](_0x2268c1)):(_0x44340c['add'](_0x2268c1),_0x504de8['set'](_0x2268c1,_0xe95d74));}else _0x44340c['add'](_0x2268c1);}for(const _0x116e40 of _0x44340c){const _0x465885=_0x504de8['has'](_0x116e40)&&!_0x504de8['get'](_0x116e40)['isAttached'];let _0x592655=_0x465885?_0x2a9f80['length']-0x1:0x0;const _0x59207f=_0x465885?-0x1:0x1;for(;_0x2a9f80[_0x592655];){const _0x2e3766=_0x2a9f80[_0x592655];if(_0x2e3766['diffData'][_0x116e40]){const _0x499b0e=_0x465885?_0x2e3766['diffData'][_0x116e40]['attributesBefore']:_0x2e3766['diffData'][_0x116e40]['attributesAfter'];_0x5d5c06['attributes'][_0x116e40]=_0x499b0e?_0x30e949(_0x499b0e):{};break;}_0x592655+=_0x59207f;}}for(const _0x1abfdb of _0x2a9f80){_0x1abfdb['model']={};for(const _0x5201d2 of _0x1abfdb['authors'])_0x13ba68['set'](_0x5201d2['id'],_0x5201d2);for(const _0x287567 of _0x44340c){const _0x4d6c86=_0x1abfdb['diffData'][_0x287567]?_0x1abfdb['diffData'][_0x287567]['insertions']:'[]',_0x62b98=_0x1abfdb['diffData'][_0x287567]?_0x1abfdb['diffData'][_0x287567]['deletions']:'[]';_0x1abfdb['model'][_0x287567]={'insertions':this['_makeModelFromViewString'](_0x4d6c86),'deletions':this['_makeModelFromViewString'](_0x62b98)};}}for(const _0x5fbee1 of _0x44340c){let _0x33219d=null,_0x2523be=0x0;const _0x265ca2=new Map(Array['from'](_0x43560a['model'][_0x5fbee1]['insertions']['markers'])['filter'](([_0x5d011d])=>!_0x5d011d['startsWith']('revision:')));let _0x287bca=0x0;for(const _0x5e1d95 of _0x2a9f80){const _0xe29b58=this['_makeTape'](_0x5e1d95['model'][_0x5fbee1]['insertions']);_0x5e1d95==_0x43560a?(_0x33219d=_0xe29b58,_0x2523be=_0x33219d['length'],_0x33219d['forEach'](_0x96a454=>{_0x96a454['id']=_0x287bca++;}),this['_processTape'](_0x33219d)):this['_markInsertions'](_0x33219d,_0xe29b58);const _0x474e1d=_0x33219d['filter'](_0x31c3dd=>!_0x31c3dd['isAdded'])['map'](_0xe4e041=>_0xe4e041['id']);let _0x227baa=0x0;const _0x34474e=this['_makeTape'](_0x5e1d95['model'][_0x5fbee1]['deletions']);_0x34474e['forEach'](_0x436f89=>{_0x436f89['isRemoved']?_0x436f89['id']=_0x2523be++:_0x436f89['id']=_0x474e1d[_0x227baa++];}),this['_processTape'](_0x34474e),this['_setDistance'](_0x33219d,'isAdded'),this['_setDistance'](_0x34474e,'isRemoved'),_0x5e1d95==_0x43560a&&this['_markMarkers'](_0x33219d,_0x265ca2),_0x33219d=this['_joinTapes'](_0x33219d,_0x34474e),this['_refreshStartEndIndex'](_0x33219d),this['_setDistance'](_0x33219d,'isRemoved');}_0x33219d=_0x33219d['filter'](_0x1b88ea=>!(_0x1b88ea['isAdded']&&_0x1b88ea['isRemoved']));const _0x431ebb=new Map(_0x3cc2fb['model'][_0x5fbee1]['deletions']['markers']),_0x19339a=new Set(_0x265ca2['keys']());for(const _0x28764b of _0x431ebb['keys']())_0x19339a['delete'](_0x28764b);this['_markSuggestions'](_0x33219d,_0x19339a),this['_fixObsoleteTags'](_0x33219d),_0x33219d=this['_removeMissingPairs'](_0x33219d),_0x33219d=this['_markMismatchedRemovedTags'](_0x33219d),_0x33219d=this['_removeUnsupportedChanges'](_0x33219d);const {root:_0x4c7e52,changes:_0x3d8d63}=this['_makeModelFromTape'](_0x33219d,_0x13ba68,_0x5fbee1);_0x5d5c06['model'][_0x5fbee1]=_0x4c7e52;const _0x2723ec=_0x504de8['get'](_0x5fbee1);if(_0x2723ec){const _0x274c2c=_0x13ba68['get'](_0x2723ec['userId']),_0x1f8ec6=new r({'author':_0x274c2c,'type':_0x2723ec['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5fbee1});_0x3d8d63['unshift'](_0x1f8ec6),_0x5d5c06['attributes'][_0x5fbee1]['revisionHistoryAttachChange']=_0x1f8ec6['id'];}_0x5d5c06['changes']=_0x5d5c06['changes']['concat'](_0x3d8d63);}return _0x5d5c06;}['_markMarkers'](_0x4dd9c5,_0x112fc5){for(let _0x3d77c0=0x0;_0x3d77c0<_0x4dd9c5['length'];_0x3d77c0++)for(const [_0x2ebde2,_0x3ce0b6]of _0x112fc5)_0x3ce0b6['start']['isEqual'](_0x4dd9c5[_0x3d77c0]['previousPosition'])&&_0x4dd9c5[_0x3d77c0]['markersStart']['push'](_0x2ebde2),_0x3ce0b6['end']['isEqual'](_0x4dd9c5[_0x3d77c0]['nextPosition'])&&_0x4dd9c5[_0x3d77c0]['markersEnd']['push'](_0x2ebde2);}['_joinTapes'](_0x317d0a,_0x37dd27){let _0x130796=[],_0x24a8cd=0x0,_0x48860a=0x0;for(;_0x24a8cd<_0x317d0a['length']||_0x48860a<_0x37dd27['length'];){const _0x3fbb72=_0x317d0a[_0x24a8cd]||{},_0x4ad99c=_0x37dd27[_0x48860a]||{};if(_0x3fbb72['id']==_0x4ad99c['id'])_0x24a8cd++,_0x48860a++,_0x130796['push'](_0x3fbb72);else{if(_0x4ad99c['isRemoved']&&_0x3fbb72['isAdded']){const {commonTape:_0x213f1e,iEnd:_0x35a39d,jEnd:_0x1d34f4}=this['_threeWayMerge'](_0x317d0a,_0x24a8cd,_0x37dd27,_0x48860a);_0x130796=_0x130796['concat'](_0x213f1e),_0x24a8cd=_0x35a39d,_0x48860a=_0x1d34f4;}else _0x4ad99c['isRemoved']?(_0x48860a++,_0x130796['push'](_0x4ad99c)):(_0x24a8cd++,_0x130796['push'](_0x3fbb72));}}return _0x130796;}['_markSuggestions'](_0x300730,_0x50a04b){const _0x210297=[];for(let _0x39463b=0x0;_0x39463b<_0x300730['length'];_0x39463b++){for(let _0x4b830b=0x0;_0x4b830b<_0x300730[_0x39463b]['markersStart']['length'];_0x4b830b++){const _0x3ca992=_0x300730[_0x39463b]['markersStart'][_0x4b830b];if(!_0x50a04b['has'](_0x3ca992))continue;const {group:_0x288e0f,type:_0x10d497,authorId:_0x49716b}=_0x420945(_0x3ca992);'revision-suggestion'!=_0x288e0f||'insertion'!=_0x10d497&&'deletion'!=_0x10d497||(_0x210297['unshift']({'type':_0x10d497,'name':_0x3ca992,'userId':_0x49716b}),_0x300730[_0x39463b]['markersStart']['splice'](_0x4b830b,0x1),_0x4b830b--);}_0x552eed(_0x300730[_0x39463b]);for(let _0x784288=0x0;_0x784288<_0x300730[_0x39463b]['markersEnd']['length'];_0x784288++){const _0x5f9e86=_0x300730[_0x39463b]['markersEnd'][_0x784288];if(!_0x50a04b['has'](_0x5f9e86))continue;const {group:_0x541d32,type:_0x53aa84}=_0x420945(_0x5f9e86);if('revision-suggestion'!=_0x541d32||'insertion'!=_0x53aa84&&'deletion'!=_0x53aa84)continue;_0x300730[_0x39463b]['markersEnd']['splice'](_0x784288,0x1),_0x784288--;const _0xc54b00=_0x210297['findIndex'](_0x404457=>_0x404457['name']==_0x5f9e86);_0xc54b00>-0x1&&_0x210297['splice'](_0xc54b00,0x1);}}function _0x420945(_0x39a7da){const _0x3846ee=_0x39a7da['split'](':');return{'group':_0x3846ee[0x0],'type':_0x3846ee[0x1],'subType':_0x3846ee['length']>=0x5?_0x3846ee[0x2]:null,'id':_0x3846ee['length']<0x5?_0x3846ee[0x2]:_0x3846ee[0x3],'authorId':_0x3846ee['length']<0x5?_0x3846ee[0x3]:_0x3846ee[0x4],'markerCount':0x6==_0x3846ee['length']?_0x3846ee[0x5]:null};}function _0x552eed(_0x38cb92){for(let _0x2bb35e=0x0;_0x2bb35e<_0x210297['length'];_0x2bb35e++){if(_0x38cb92['isAdded']&&'insertion'==_0x210297[_0x2bb35e]['type'])return _0x38cb92['isAddSuggestion']=_0x210297[_0x2bb35e],void delete _0x38cb92['isAdded'];if(!_0x38cb92['isAdded']&&!_0x38cb92['isRemoved']&&'deletion'==_0x210297[_0x2bb35e]['type'])return void(_0x38cb92['isRemoveSuggestion']=_0x210297[_0x2bb35e]);}}}['_setDistance'](_0x3b79e3,_0x5ae057){let _0x23d6c4=0x0,_0x154379=!0x1;const _0x46541e=new Map();for(const _0x1d8545 of _0x3b79e3)_0x1d8545[_0x5ae057]?_0x154379&&(_0x23d6c4++,_0x154379=!0x1):(_0x23d6c4++,_0x154379=!0x0),_0x46541e['set'](_0x1d8545['id'],_0x23d6c4);for(let _0x4b57ba=0x0;_0x4b57ba<_0x3b79e3['length'];_0x4b57ba++){if('isRemoved'==_0x5ae057&&_0x3b79e3[_0x4b57ba]['isAdded']||'isAdded'==_0x5ae057&&_0x3b79e3[_0x4b57ba]['isRemoved'])continue;if('text'==_0x3b79e3[_0x4b57ba]['type']){_0x3b79e3[_0x4b57ba]['distance']=0x0;continue;}const _0x27d4f1=_0x46541e['get'](_0x3b79e3[_0x4b57ba]['pairId']),_0x208f48=_0x46541e['get'](_0x3b79e3[_0x4b57ba]['id']);_0x3b79e3[_0x4b57ba]['distance']=_0x27d4f1-_0x208f48;}}['_getRevisionsRange'](_0x1299ea,_0x4dc0ee,_0x49a31d=!0x1){const _0x2ccbac=[];let _0xc9930=this['repository']['getIndex'](_0x1299ea),_0x49da32=this['repository']['getIndex'](_0x4dc0ee);for(-0x1==_0x49da32&&(_0x49da32=this['repository']['_revisions']['length'],_0x49a31d=!0x1);_0xc9930<_0x49da32;)_0x2ccbac['push'](this['repository']['getRevision'](_0xc9930)),_0xc9930++;return _0x49a31d&&_0x2ccbac['push'](this['repository']['getRevision'](_0xc9930)),_0x2ccbac;}['_threeWayMerge'](_0x32c252,_0x465779,_0x393c3f,_0x5ece88){const _0x196573=this['editor']['model']['schema'];let _0x18c7ad=_0x465779;for(;_0x32c252[_0x18c7ad]&&_0x32c252[_0x18c7ad]['isAdded'];)_0x18c7ad++;let _0x2481b3=_0x5ece88;for(;_0x393c3f[_0x2481b3]&&_0x393c3f[_0x2481b3]['isRemoved'];)_0x2481b3++;_0x424ae7(_0x32c252,_0x465779,_0x18c7ad),_0x424ae7(_0x393c3f,_0x5ece88,_0x2481b3);const _0x565c5b=_0x393c3f['slice'](_0x5ece88,_0x2481b3)['concat'](_0x32c252['slice'](_0x465779,_0x18c7ad));return _0x565c5b['sort']((_0x23c597,_0x325003)=>_0x23c597['side']!=_0x325003['side']?_0x23c597['side']-_0x325003['side']:_0x23c597['level']!=_0x325003['level']?_0x23c597['level']-_0x325003['level']:_0x23c597['distance']!=_0x325003['distance']?_0x325003['distance']-_0x23c597['distance']:!!_0x23c597['isAdded']!=!!_0x325003['isAdded']?-0x1==_0x23c597['side']||0x0==_0x23c597['side']?_0x23c597['isAdded']?-0x1:0x1:_0x23c597['isAdded']?0x1:-0x1:_0x23c597['index']-_0x325003['index']),{'commonTape':_0x565c5b,'iEnd':_0x18c7ad,'jEnd':_0x2481b3};function _0x424ae7(_0x3ec8ac,_0x263790,_0x3131a2){let _0x1ccb27=-0x1,_0x4e473f=Number['POSITIVE_INFINITY'],_0x2d34a2=!0x0;for(let _0x1b430c=_0x263790;_0x1b430c<_0x3131a2;_0x1b430c++)if(_0x196573['isInline'](_0x3ec8ac[_0x1b430c]['item'])||(_0x2d34a2=!0x1),_0x3ec8ac[_0x1b430c]['item']['startIndex']<_0x263790&&(_0x1ccb27=_0x1b430c),_0x3ec8ac[_0x1b430c]['item']['endIndex']>=_0x3131a2){_0x4e473f=_0x1b430c;break;}_0x2d34a2&&(_0x1ccb27=_0x3131a2-0x1);for(let _0x307be6=_0x263790;_0x307be6<_0x3131a2;_0x307be6++)_0x3ec8ac[_0x307be6]['side']=_0x307be6<=_0x1ccb27?-0x1:_0x307be6<_0x4e473f?0x0:0x1,_0x3ec8ac[_0x307be6]['index']=_0x307be6;let _0x51b17d=0x0;for(let _0x137f82=_0x263790;_0x137f82<=_0x1ccb27;_0x137f82++)0x0==_0x3ec8ac[_0x137f82]['distance']?_0x3ec8ac[_0x137f82]['level']=_0x51b17d:(_0x51b17d++,_0x3ec8ac[_0x137f82]['level']=_0x51b17d,_0x51b17d++);for(let _0x125c8b=_0x263790;_0x125c8b<_0x3131a2;_0x125c8b++)0x0==_0x3ec8ac[_0x125c8b]['side']&&(_0x3ec8ac[_0x125c8b]['level']=_0x51b17d);_0x51b17d=0x0;for(let _0x3fefb3=_0x3131a2-0x1;_0x3fefb3>=_0x4e473f;_0x3fefb3--)0x0==_0x3ec8ac[_0x3fefb3]['distance']?_0x3ec8ac[_0x3fefb3]['level']=_0x51b17d:(_0x51b17d--,_0x3ec8ac[_0x3fefb3]['level']=_0x51b17d,_0x51b17d--);}}['_fixObsoleteTags'](_0x1b970f){const _0x470bef=new Map(),_0x306c46=this['editor']['model']['schema'];for(let _0x5d8a35=0x1;_0x5d8a35<_0x1b970f['length'];_0x5d8a35++){let _0x17f9f5,_0x4b3169,_0x2c411f;const _0x1cdd10=_0x1b970f[_0x5d8a35],_0x5ea419=_0x1b970f[_0x5d8a35-0x1];if('text'==_0x1cdd10['type'])continue;if(_0x1cdd10['type']!=_0x5ea419['type'])continue;if(!_0x306c46['isBlock'](_0x5ea419['item'])||_0x306c46['isLimit'](_0x5ea419['item']))continue;if(!_0x306c46['isBlock'](_0x1cdd10['item'])||_0x306c46['isLimit'](_0x1cdd10['item']))continue;if((_0x1b970f[_0x5d8a35]['isAdded']||_0x1b970f[_0x5d8a35]['isAddSuggestion'])&&_0x1b970f[_0x5d8a35-0x1]['isRemoved'])_0x17f9f5=_0x1b970f[_0x5d8a35],_0x4b3169=_0x1b970f[_0x5d8a35-0x1],_0x2c411f=_0x5d8a35-0x1;else{if(!_0x1b970f[_0x5d8a35]['isRemoved']||!_0x1b970f[_0x5d8a35-0x1]['isAdded']&&!_0x1b970f[_0x5d8a35-0x1]['isAddSuggestion'])continue;_0x17f9f5=_0x1b970f[_0x5d8a35-0x1],_0x4b3169=_0x1b970f[_0x5d8a35],_0x2c411f=_0x5d8a35;}const _0x165e4c=_0x17f9f5['level']==_0x4b3169['level'],_0x3e86c8=Math['abs'](_0x17f9f5['level'])<Math['abs'](_0x4b3169['level'])&&0x0==_0x4b3169['distance'];(_0x165e4c||_0x3e86c8)&&(_0x470bef['set'](_0x4b3169['id'],_0x17f9f5['id']),_0x1b970f['splice'](_0x2c411f,0x1),_0x5d8a35--,_0x17f9f5['isAdded']=!0x1);}for(let _0x2ab73a=0x0;_0x2ab73a<_0x1b970f['length'];_0x2ab73a++)_0x470bef['has'](_0x1b970f[_0x2ab73a]['pairId'])&&(_0x1b970f[_0x2ab73a]['pairId']=_0x470bef['get'](_0x1b970f[_0x2ab73a]['pairId']));}['_removeMissingPairs'](_0x28ede2){const _0x506a50=new Set(_0x28ede2['map'](_0x11464c=>_0x11464c['id']));for(let _0x51716b=0x0;_0x51716b<_0x28ede2['length'];_0x51716b++)_0x506a50['has'](_0x28ede2[_0x51716b]['pairId'])||0x0==_0x28ede2[_0x51716b]['distance']||(_0x28ede2[_0x51716b]['isIncorrect']=!0x0);return _0x28ede2['filter'](_0x273934=>!_0x273934['isIncorrect']);}['_markMismatchedRemovedTags'](_0x43b86e){const _0xa0fb31=new Set();for(let _0x5255e2=0x0;_0x5255e2<_0x43b86e['length'];_0x5255e2++){if(_0xa0fb31['has'](_0x43b86e[_0x5255e2]['id'])&&_0x43b86e[_0x5255e2]['isRemoved']&&(_0x43b86e[_0x5255e2]['isIncorrect']=!0x0),_0x43b86e[_0x5255e2]['isIncorrect'])continue;if(0x0==_0x43b86e[_0x5255e2]['distance'])continue;if('elementStart'!=_0x43b86e[_0x5255e2]['type'])continue;if(null==_0x43b86e[_0x5255e2]['pairId'])continue;let _0x374741=_0x5255e2+0x1,_0x4d6760=0x0;for(;_0x43b86e[_0x374741]['id']!=_0x43b86e[_0x5255e2]['pairId'];)'elementStart'==_0x43b86e[_0x374741]['type']?_0x4d6760++:'elementEnd'==_0x43b86e[_0x374741]['type']&&_0x4d6760--,_0x374741++;if(0x0!=_0x4d6760){if(_0x43b86e[_0x5255e2]['isRemoved'])_0x43b86e[_0x5255e2]['isIncorrect']=!0x0;else{for(;_0x374741!=_0x5255e2;)_0x43b86e[_0x374741]['isRemoved']&&0x0!=_0x43b86e[_0x374741]['distance']&&(_0x43b86e[_0x374741]['isIncorrect']=!0x0,_0xa0fb31['add'](_0x43b86e[_0x374741]['pairId'])),_0x374741--;}}}return _0x43b86e['filter'](_0x246999=>!_0x246999['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e2373){const _0x26edf7=this['editor']['model']['schema'];for(let _0x47438a=0x0;_0x47438a<_0x5e2373['length'];_0x47438a++){if(!(_0x5e2373[_0x47438a]['isAdded']||_0x5e2373[_0x47438a]['isAddSuggestion']||_0x5e2373[_0x47438a]['isRemoved']||_0x5e2373[_0x47438a]['isRemoveSuggestion']))continue;if(0x0==_0x5e2373[_0x47438a]['distance'])continue;const _0x2db09d=_0x5e2373[_0x47438a]['item'];_0x26edf7['isBlock'](_0x2db09d)||_0x26edf7['isLimit'](_0x2db09d)||(_0x5e2373[_0x47438a]['isAdded']&&delete _0x5e2373[_0x47438a]['isAdded'],_0x5e2373[_0x47438a]['isAddSuggestion']&&delete _0x5e2373[_0x47438a]['isAddSuggestion'],_0x5e2373[_0x47438a]['isRemoveSuggestion']&&delete _0x5e2373[_0x47438a]['isRemoveSuggestion'],_0x5e2373[_0x47438a]['isRemoved']&&(_0x5e2373[_0x47438a]['isIncorrect']=!0x0));}return _0x5e2373['filter'](_0x2b7fa1=>!_0x2b7fa1['isIncorrect']);}['_makeModelFromTape'](_0x1b1731,_0x255efe,_0x47ee75){const _0x82d22e=new mt(),_0x3a7387=[],_0x366997=new Map(),_0x1bf7ee=this['editor']['model'],_0x61d8a8=_0x1bf7ee['schema'],_0x2bd1e9=[_0x82d22e],_0x2658cc={},_0x5b4409={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56f875=null;const _0x12dd83=[0x0];for(let _0x23e54c=0x0;_0x23e54c<_0x1b1731['length'];_0x23e54c++)if('elementStart'===_0x1b1731[_0x23e54c]['type']){_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83);const _0x182ceb=new ft(_0x1b1731[_0x23e54c]['item']['name'],_0x1b1731[_0x23e54c]['item']['getAttributes']());_0x2bd1e9[0x0]['_appendChild'](_0x182ceb),_0x12dd83['push'](0x0),_0x2bd1e9['unshift'](_0x182ceb),_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83);}else'elementEnd'===_0x1b1731[_0x23e54c]['type']?(_0x2bd1e9['shift'](),_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83),_0x12dd83['pop'](),_0x12dd83[_0x12dd83['length']-0x1]++,_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83)):(_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83),_0x56f875?_0x56f875['_data']+=_0x1b1731[_0x23e54c]['item']['data']:_0x56f875=new wt(_0x1b1731[_0x23e54c]['item']['data'],_0x1b1731[_0x23e54c]['item']['getAttributes']()),_0x1b1731[_0x23e54c+0x1]&&'text'===_0x1b1731[_0x23e54c+0x1]['type']&&_0x53545a(_0x56f875,_0x1b1731[_0x23e54c+0x1]['item'])||(_0x2bd1e9[0x0]['_appendChild'](_0x56f875),_0x56f875=null),_0x12dd83[_0x12dd83['length']-0x1]+=_0x1b1731[_0x23e54c]['item']['offsetSize'],_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83));for(let _0x57ce93=0x0;_0x57ce93<_0x1b1731['length'];_0x57ce93++){const _0xf0240f=_0x1b1731[_0x57ce93]['previousPosition'],_0x3871dc=_0x1b1731[_0x57ce93]['nextPosition'];for(const _0x2ad308 of _0x1b1731[_0x57ce93]['markersStart'])_0x366997['set'](_0x2ad308,{'start':_0xf0240f,'end':null});_0xb56ee1('isRemoveSuggestion',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isAddSuggestion',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isRemoved',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isAdded',_0x57ce93,_0xf0240f,_0x3871dc);for(const _0x1b845f of _0x1b1731[_0x57ce93]['markersEnd']){_0x366997['get'](_0x1b845f)['end']=_0x3871dc;}}for(const [_0x5ce6b6,_0x4a77be]of _0x366997){const _0x3363f4=this['editor']['model']['createRange'](_0x4a77be['start'],_0x4a77be['end']);_0x82d22e['markers']['set'](_0x5ce6b6,_0x3363f4);}return _0x3a7387['sort']((_0x2d443b,_0x816552)=>{const _0x275ccd=_0x82d22e['markers']['get']('revision:'+_0x2d443b['id']),_0x24f754=_0x82d22e['markers']['get']('revision:'+_0x816552['id']);return _0x275ccd['start']['isBefore'](_0x24f754['start'])?-0x1:_0x275ccd['start']['isAfter'](_0x24f754['start'])?0x1:_0x275ccd['end']['isBefore'](_0x24f754['end'])?-0x1:_0x275ccd['end']['isAfter'](_0x24f754['end'])?0x1:'add'===_0x2d443b['type']?-0x1:0x1;}),{'root':_0x82d22e,'changes':_0x3a7387};function _0xb56ee1(_0x1f6610,_0x6c50b2,_0x343f45,_0x9c58a0){const _0x101712=!!_0x1b1731[_0x6c50b2][_0x1f6610],_0x15aa01=_0x101712?_0x1b1731[_0x6c50b2][_0x1f6610]['userId']:null,_0x4b3839=_0x6c50b2===_0x1b1731['length']-0x1,_0xeb577f=_0x5b4409[_0x1f6610][0x0],_0x39d103=_0x61d8a8['isObject'](_0x1b1731[_0x6c50b2]['item']);!_0x2658cc[_0x1f6610]&&_0x101712?_0x2658cc[_0x1f6610]={'start':_0x343f45,'tapeItem':_0x1b1731[_0x6c50b2],'userId':_0x15aa01,'type':_0x1f6610}:_0x2658cc[_0x1f6610]&&!_0x101712?(_0x2658cc[_0x1f6610]['end']=_0x343f45,_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]=null):_0x2658cc[_0x1f6610]&&_0x101712&&_0x2658cc[_0x1f6610]['userId']!==_0x15aa01&&(_0x2658cc[_0x1f6610]['end']=_0x343f45,_0xeb577f&&_0xeb577f['userId']===_0x2658cc[_0x1f6610]['userId']||_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]={'start':_0x343f45,'tapeItem':_0x1b1731[_0x6c50b2],'userId':_0x15aa01,'type':_0x1f6610}),_0x2658cc[_0x1f6610]&&_0x39d103&&('elementStart'!==_0x1b1731[_0x6c50b2]['type']||_0xeb577f&&_0xeb577f['userId']===_0x15aa01||_0x5b4409[_0x1f6610]['unshift']({'userId':_0x15aa01,'object':_0x1b1731[_0x6c50b2]['item'],'change':_0x2658cc[_0x1f6610]}),'elementEnd'===_0x1b1731[_0x6c50b2]['type']&&_0xeb577f&&_0xeb577f['object']===_0x1b1731[_0x6c50b2]['item']&&(_0x5b4409[_0x1f6610]['shift'](),_0x2658cc[_0x1f6610]=_0xeb577f['change'])),_0x2658cc[_0x1f6610]&&_0x4b3839&&(_0x2658cc[_0x1f6610]['end']=_0x9c58a0,_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]=null);}function _0x11a285({start:_0x3003da,end:_0x3610ce,tapeItem:_0x5a44de,userId:_0x26782c,type:_0x302f86}){const _0x27d63c=_0x5a44de['item'],_0x449da9=_0x1bf7ee['schema']['isBlock'](_0x27d63c)&&!_0x1bf7ee['schema']['isLimit'](_0x27d63c),_0x13289b=_0x3003da['nodeAfter']==_0x3610ce['parent']&&_0x3610ce['isAtStart'];if(_0x449da9&&_0x13289b)return;const _0x4531e4=_0x1bf7ee['createRange'](_0x3003da,_0x3610ce),_0x42d099=_0x255efe['get'](_0x26782c),_0x5deef5=new r({'author':_0x42d099,'type':'isAdded'==_0x302f86||'isAddSuggestion'==_0x302f86?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x302f86||'isRemoveSuggestion'==_0x302f86},'createdAt':new Date(),'rootName':_0x47ee75});_0x3a7387['push'](_0x5deef5),_0x82d22e['markers']['set']('revision:'+_0x5deef5['id'],_0x4531e4);}function _0x53545a(_0x5407d9,_0x55f836){const _0x4ea3a6=_0x5407d9['getAttributes'](),_0xb65784=_0x55f836['getAttributes']();for(const _0x230d59 of _0x4ea3a6){if(_0x230d59[0x1]!==_0x55f836['getAttribute'](_0x230d59[0x0]))return!0x1;_0xb65784['next']();}return _0xb65784['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x29dc9d=>{const _0x51caaf=_0x29dc9d['markerName']['split'](':')[0x1],_0x1dcfa9=this['_getChangeFromId'](_0x51caaf);if(!_0x1dcfa9)return null;const _0x318fda='add'==_0x1dcfa9['type']?'insertion':'deletion',_0x37f14d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x318fda];return _0x1dcfa9['data']['isSuggestion']&&_0x37f14d['push']('ck-suggestion-marker-'+_0x318fda+'-new'),this['activeChange']==_0x1dcfa9&&_0x37f14d['push']('ck-suggestion-marker--active'),{'classes':_0x37f14d,'attributes':{'data-change-id':_0x51caaf}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1e6b86=>{_0x1e6b86['on']('element:pre',(_0x6a5fc9,_0x151e20,_0x23bf2f)=>{const _0xbe5832=_0x151e20['viewItem']['getChild'](0x0);if(!_0xbe5832||!_0xbe5832['is']('element','code'))return;if(!_0x23bf2f['consumable']['consume'](_0xbe5832,{'attributes':['vid_start','vid_end']}))return;const _0x394e1e=_0x151e20['modelRange']['start']['nodeAfter'];_0x23bf2f['writer']['setAttribute']('vid_start',_0xbe5832['getAttribute']('vid_start'),_0x394e1e),_0x23bf2f['writer']['setAttribute']('vid_end',_0xbe5832['getAttribute']('vid_end'),_0x394e1e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ba96a=>{_0x2ba96a['on']('element',(_0x2e6fb2,_0x2a3878,_0x5c4e3e)=>{if(!_0x5c4e3e['consumable']['consume'](_0x2a3878['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2a3878['modelRange']['isCollapsed'])return;const _0x5a8c3e=_0x2a3878['modelRange']['start']['nodeAfter'];_0x5a8c3e['hasAttribute']('vid_start')||_0x5a8c3e['hasAttribute']('vid')||(_0x5c4e3e['writer']['setAttribute']('vid_start',_0x2a3878['viewItem']['getAttribute']('vid_start'),_0x5a8c3e),_0x5c4e3e['writer']['setAttribute']('vid_end',_0x2a3878['viewItem']['getAttribute']('vid_end'),_0x5a8c3e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e0ecf=>_0x5e0ecf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5160f9,[,_0x3bdefa])=>{['vid_start','vid_end','vid']['includes'](_0x3bdefa)&&(_0x5160f9['return']=!0x0,_0x5160f9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x108c92=>{_0x108c92['on']('attribute:vid',(_0x187832,_0xd3f6cf,_0x12fe17)=>{if('\x20'!=_0xd3f6cf['item']['data']||_0xd3f6cf['item']['parent']['maxOffset']>0x1)return;if(!_0x12fe17['consumable']['consume'](_0xd3f6cf['item'],_0x187832['name']))return;const _0x524bbf=_0x12fe17['writer'],_0x5610a4=_0x12fe17['mapper']['toViewRange'](_0xd3f6cf['range']);_0x524bbf['wrap'](_0x5610a4,_0x524bbf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xbbf2ae){const _0x4c7495=_0xbbf2ae['plugins']['get']('RevisionViewer');return(_0x2ad6d7,_0x9dcb52,_0x2ff574)=>{const _0x22cfae=_0x9dcb52['markerName']['split'](':')[0x1],_0x1d20ad=_0x4c7495['_getChangeFromId'](_0x22cfae);if(!_0x1d20ad)return null;const _0xe056d4='add'==_0x1d20ad['type']?'split':'merge';if(!_0x2ff574['consumable']['test'](_0x9dcb52['markerRange'],_0x2ad6d7['name']))return;const _0x1d7231=_0x9dcb52['markerRange']['getWalker'](),_0x1974e2=_0x9dcb52['markerRange']['start'],_0xf5174=_0xbbf2ae['model']['schema'];let _0xb463f6=null,_0x272ad1=null,_0x3ed7e4=!0x1,_0x23f0b6=!0x1;for(const _0x23d5ec of _0x1d7231){const _0x328724=_0x23d5ec['item'];_0x3ed7e4=_0x3ed7e4||_0xf5174['isContent'](_0x328724);const _0x4d3ad6=_0x2ff574['mapper']['toViewElement'](_0x328724);if(_0x4d3ad6&&_0x4d3ad6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23d5ec['type']&&(_0xf5174['isBlock'](_0x328724)&&!_0xf5174['isLimit'](_0x328724)&&(_0x328724['nextSibling']||_0x1974e2['isAtEnd']?_0xb463f6&&_0xb463f6['parent']==_0x328724||(_0xb463f6=_0x328724,_0x23718c(_0x23d5ec['previousPosition']),_0x23f0b6=!0x0):_0x272ad1=_0x272ad1||_0x23d5ec['previousPosition']));}function _0x23718c(_0x2decd2){const _0x108f12=_0x2ff574['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe056d4}),_0x1f42ca=_0x2ff574['mapper']['toViewPosition'](_0x2decd2);_0x1d20ad['data']['isSuggestion']&&_0x2ff574['writer']['addClass']('ck-suggestion-marker-'+_0xe056d4+'-new',_0x108f12),_0x4c7495['activeChange']==_0x1d20ad&&_0x2ff574['writer']['addClass']('ck-suggestion-marker--active',_0x108f12),_0x2ff574['writer']['insert'](_0x1f42ca,_0x108f12),_0x2ff574['mapper']['bindElementToMarker'](_0x108f12,_0x9dcb52['markerName']);}_0x3ed7e4||_0x23f0b6||!_0x272ad1||_0x23718c(_0x272ad1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a998c,_0x298f78,_0x200786)=>{const _0xc654e9=_0x200786['mapper']['markerNameToElements'](_0x298f78['markerName']);if(_0xc654e9){for(const _0x4740ed of _0xc654e9)(_0x4740ed['hasClass']('ck-suggestion-marker-split')||_0x4740ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x200786['mapper']['unbindElementFromMarkerName'](_0x4740ed,_0x298f78['markerName']),_0x200786['writer']['remove'](_0x4740ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f9bba,_0xf2e899,_0x1e7ab0)=>{const _0x1db561=_0xf2e899['markerName']['split'](':')[0x1],_0x42dc6d=this['_getChangeFromId'](_0x1db561);if(!_0x42dc6d)return null;const _0x35b5ca='add'==_0x42dc6d['type']?'split':'merge';if(_0x1e7ab0['consumable']['test'](_0xf2e899['markerRange'],_0x4f9bba['name']))for(const _0x5f5f9f of _0xf2e899['markerRange']['getItems']()){if(!_0x5f5f9f['is']('element','softBreak'))continue;const _0x12f95d=_0x1e7ab0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b5ca}),_0x32d86b=_0x1e7ab0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5f5f9f));_0x42dc6d['data']['isSuggestion']&&_0x1e7ab0['writer']['addClass']('ck-suggestion-marker-'+_0x35b5ca+'-new',_0x12f95d),this['activeChange']==_0x42dc6d&&_0x1e7ab0['writer']['addClass']('ck-suggestion-marker--active',_0x12f95d),_0x1e7ab0['writer']['insert'](_0x32d86b,_0x12f95d),_0x1e7ab0['mapper']['bindElementToMarker'](_0x12f95d,_0xf2e899['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5b474f=>{for(const _0x1d22db of this['editor']['model']['document']['getRootNames']()){const _0x41fecc=this['editor']['model']['document']['getRoot'](_0x1d22db),_0x24d744=this['editor']['editing']['view']['document']['getRoot'](_0x1d22db);if(_0x24d744){const _0x3a4148=_0x41fecc['getAttribute']('revisionHistoryAttachChange');if(_0x5b474f['removeAttribute']('data-change-id',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root-add',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root-remove',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root--active',_0x24d744),_0x3a4148){const _0x508a2a=this['_getChangeFromId'](_0x3a4148);if(!_0x508a2a)return null;_0x5b474f['setAttribute']('data-change-id',_0x3a4148,_0x24d744),_0x5b474f['addClass']('ck-revision-history-root-'+_0x508a2a['type'],_0x24d744),this['activeChange']==_0x508a2a&&_0x5b474f['addClass']('ck-revision-history-root--active',_0x24d744);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x425750=>'revision-comment:'+_0x425750,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x57fd70=>'revision-suggestion:'+_0x57fd70,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x203cbc=>({'name':'suggestion:'+_0x203cbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1d6b5a=>{const _0x48215e=_0x1d6b5a['markerName']['split'](':')[0x1];return'insertion'!=_0x48215e&&'deletion'!=_0x48215e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48215e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x33f3f1,_0x5c9867,_0xfb4f2)=>{const _0x5c121f=_0xfb4f2['mapper']['markerNameToElements'](_0x5c9867['markerName']);if(_0x5c121f){for(const _0xcab011 of _0x5c121f)_0xcab011['is']('uiElement')&&(_0xfb4f2['mapper']['unbindElementFromMarkerName'](_0xcab011,_0x5c9867['markerName']),_0xfb4f2['writer']['remove'](_0xcab011));}},{'priority':'high'});}['_getChangeFromId'](_0xb46124){return this['_changeIdToChange']['get'](_0xb46124);}['_getViewForChange'](_0x4f489d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4f489d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1ba882,_0x5a5c82,_0x5abc8d,_0x17fd5b)=>{_0x17fd5b&&this['_balloon']['remove'](_0x17fd5b),_0x5abc8d&&(this['_balloon']['add']({'view':_0x5abc8d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x195ea0=this['editor']['editing'],_0x29008a=this['_getChangeFromId'](_0x5abc8d['changeId']);let _0x31971b;if(_0x29008a['data']['isOnRoot']){const _0x37193e=_0x195ea0['view']['getDomRoot'](_0x29008a['rootName']);_0x31971b=Array['from'](_0x37193e['getClientRects']());}else{const _0x28356a=this['editor']['model']['markers']['get']('revision:'+_0x5abc8d['changeId']);_0x31971b=Array['from'](_0x195ea0['mapper']['markerNameToElements'](_0x28356a['name']))['map'](_0x2d9c78=>_0x195ea0['view']['domConverter']['mapViewToDom'](_0x2d9c78))['map'](_0x3772a4=>Array['from'](_0x3772a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31971b[0x0];return _0x31971b['find'](_0x5925e2=>_0x5925e2['top']-0x3<=this['_activeViewTarget']['y']&&_0x5925e2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5925e2['left']-0x3<=this['_activeViewTarget']['x']&&_0x5925e2['right']+0x3>=this['_activeViewTarget']['x'])||_0x31971b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2034fa,_0x34e8ef,_0x4a0380,_0x57d74a)=>{this['activeView']=_0x4a0380?this['_getViewForChange'](_0x4a0380):null,this['editor']['model']['change'](()=>{const _0x2541fb=this['editor']['editing'];_0x57d74a&&(_0x57d74a['data']['isOnRoot']?_0x2541fb['view']['change'](_0x15be50=>{_0x15be50['removeClass']('ck-revision-history-root--active',_0x2541fb['view']['document']['getRoot'](_0x57d74a['rootName']));}):_0x2541fb['reconvertMarker']('revision:'+_0x57d74a['id'])),_0x4a0380&&(_0x4a0380['data']['isOnRoot']?_0x2541fb['view']['change'](_0x4993e0=>{_0x4993e0['addClass']('ck-revision-history-root--active',_0x2541fb['view']['document']['getRoot'](_0x4a0380['rootName']));}):_0x2541fb['reconvertMarker']('revision:'+_0x4a0380['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5e13db,_0x3ecc68)=>{if(this['activeChange'])return;const _0xb1e8f0=this['_findChangeIdFromDomTarget'](_0x3ecc68['target']),_0x30efdc=this['_changeIdToChange']['get'](_0xb1e8f0);_0x30efdc?(this['_activeViewTarget']={'x':_0x3ecc68['domEvent']['x'],'y':_0x3ecc68['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x30efdc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5da2ef,_0x574af4)=>{const _0x44a0c8=this['_findChangeIdFromDomTarget'](_0x574af4['target']),_0x3434c6=this['_changeIdToChange']['get'](_0x44a0c8);_0x3434c6?(this['_activeViewTarget']={'x':_0x574af4['domEvent']['x'],'y':_0x574af4['domEvent']['y']},_0x3434c6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3434c6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5d170b){do{const _0x3ab59d=_0x5d170b['getAttribute']('data-change-id');if(_0x3ab59d)return _0x3ab59d;_0x5d170b=_0x5d170b['parent'];}while(_0x5d170b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23d6c5=>{for(const _0x1be905 of this['editor']['model']['markers'])_0x23d6c5['removeMarker'](_0x1be905);});}}function Z(_0x5b20a1,_0x407162){return(_0x2959e7,_0x3678e5,_0x4e9971)=>{if(!_0x4e9971['consumable']['test'](_0x3678e5['markerRange'],_0x2959e7['name']))return;const _0x3c387c=_0x3678e5['markerRange']['getWalker'](),_0x3e108d=_0x3678e5['markerRange']['start'],_0x527ae1=_0x5b20a1['model']['schema'];let _0x3e9949=null,_0xc270ca=null,_0x48afc1=!0x1,_0x110eea=!0x1;for(const _0x55a54a of _0x3c387c){const _0x18b8d8=_0x55a54a['item'];_0x48afc1=_0x48afc1||_0x527ae1['isContent'](_0x18b8d8);const _0x50d8a4=_0x4e9971['mapper']['toViewElement'](_0x18b8d8);if(_0x50d8a4&&_0x50d8a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55a54a['type']&&(_0x527ae1['isBlock'](_0x18b8d8)&&!_0x527ae1['isLimit'](_0x18b8d8)&&(_0x18b8d8['nextSibling']||_0x3e108d['isAtEnd']?_0x3e9949&&_0x3e9949['parent']==_0x18b8d8||(_0x3e9949=_0x18b8d8,_0x1e647a(_0x55a54a['previousPosition']),_0x110eea=!0x0):_0xc270ca=_0xc270ca||_0x55a54a['previousPosition']));}function _0x1e647a(_0x2cae9d){const _0x4a35cd=_0x4e9971['mapper']['toViewPosition'](_0x2cae9d),_0x2cbc42=_0x4e9971['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x407162});_0x4e9971['writer']['insert'](_0x4a35cd,_0x2cbc42),_0x4e9971['mapper']['bindElementToMarker'](_0x2cbc42,_0x3678e5['markerName']);}_0x48afc1||_0x110eea||!_0xc270ca||_0x1e647a(_0xc270ca);};}class _t extends _0x205cee{constructor(_0x4b9624){super(_0x4b9624);const _0x33ee8c=_0x4b9624['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x33ee8c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x33ee8c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x62b836=this['editor'],_0x41d8ae=_0x62b836['plugins']['get'](d),_0x391e08=_0x41d8ae['isReady']?_0x41d8ae['diff']['newRevisionId']:null;_0x62b836['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x391e08);}['refresh'](){const {isReady:_0x5b6487,isEnabled:_0x159f1b,repository:_0x1e4ef3,diff:_0x5076c5}=this['editor']['plugins']['get'](d),_0x1ef058=_0x5076c5&&_0x1e4ef3['getLaterVisibleRevision'](_0x5076c5['newRevisionId']);this['isEnabled']=_0x5b6487&&_0x159f1b&&Boolean(_0x1ef058);}}class yt extends _0x205cee{['_step'];constructor(_0x3c656d,{direction:_0x53f845}){super(_0x3c656d);const _0x180c15=_0x3c656d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x53f845?0x1:-0x1,this['listenTo'](_0x180c15,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x180c15,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x180c15,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x970897=this['editor'],_0x308866=_0x970897['plugins']['get'](d),{isNavigationMode:_0x4cb4d4,currentChangeNumber:_0x27b8be}=_0x308866;let _0x13b839;if(_0x308866['activeChange']=_0x4cb4d4?_0x308866['diff']['changes']['get'](_0x27b8be+this['_step']):_0x308866['diff']['changes']['first'],_0x308866['activeChange']['data']['isOnRoot'])_0x13b839=_0x970897['editing']['view']['getDomRoot'](_0x308866['activeChange']['rootName']);else{const _0x543c6d=_0x970897['model']['markers']['get']('revision:'+_0x308866['activeChange']['id']);_0x13b839=_0x5bc31a(_0x970897['editing'],_0x543c6d);}_0x121837({'target':_0x13b839,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x187d5d,currentChangeNumber:_0x4056d6,numberOfChanges:_0x4abc34,isReady:_0x128be1,isEnabled:_0xec86d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xec86d&&_0x128be1&&_0x4abc34)&&(!_0x187d5d||(0x1===this['_step']?_0x4056d6<_0x4abc34-0x1:_0x4056d6>0x0));}}class _i extends _0x477074{constructor(_0x32e58c){super(_0x32e58c);const _0x4de6bf=this['bindTemplate'],_0x47227b=new _0x3a8e36(_0x32e58c),_0x3d828d=new _0x3a8e36(_0x32e58c);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',(_0x4f3c12,_0x3d768f)=>_0x4f3c12&&_0x3d768f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1fa68e,_0x2801e3,_0xacf802,_0x325dec)=>{if(!_0x1fa68e)return m(_0x32e58c,'Loading...');if(!_0xacf802)return m(_0x32e58c,'No\x20changes');const _0x1fc4c5=m(_0x32e58c,'NUMBER_OF_CHANGES',_0xacf802);return _0x325dec?m(_0x32e58c,'X_OF_Y_CHANGES',[_0x2801e3+0x1,_0xacf802]):_0x1fc4c5;}),_0x47227b['set']({'label':m(_0x32e58c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3d828d['set']({'label':m(_0x32e58c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x47227b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3d828d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x47227b['on']('execute',()=>this['fire']('execute','backward')),_0x3d828d['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',_0x4de6bf['if']('_isStatusLabelVisible','ck-hidden',_0x5d9517=>!_0x5d9517)]},'children':[{'text':_0x4de6bf['to']('isNavigationMode',_0x2df804=>_0x2df804?m(_0x32e58c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x32e58c,'Total')+':\x20')}]},{'text':_0x4de6bf['to']('_statusText')}]},new _0x43a1be(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x47227b,_0x3d828d]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x56b833{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b7964=this['editor']['editing']['view'];_0x2b7964['change'](_0x495ea1=>{for(const _0x429922 of _0x2b7964['document']['roots'])_0x495ea1['addClass'](ce,_0x429922);});}['hide'](){const _0x58559d=this['editor']['editing']['view'];_0x58559d['change'](_0x54868f=>{for(const _0x3bec91 of _0x58559d['document']['roots'])_0x54868f['removeClass'](ce,_0x3bec91);});}}class g extends _0x56b833{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5208da=this['editor'],_0x250363=_0x5208da['plugins']['get'](d),_0x46724d=_0x5208da['plugins']['get'](le);_0x5208da['ui']['componentFactory']['add']('exitToEditing',_0x30d4f9=>{const _0x9e1317=new _0x3a8e36(_0x30d4f9);return _0x9e1317['set']({'label':m(_0x30d4f9,'Back\x20to\x20editing'),'icon':_0x530a55['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x9e1317,'execute',()=>{_0x5208da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x9e1317;}),_0x5208da['ui']['componentFactory']['add']('restoreRevision',_0x5f37ac=>{const _0x4e06d2=new _0x3a8e36(_0x5f37ac);return _0x4e06d2['set']({'label':m(_0x5f37ac,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e06d2['bind']('isEnabled')['to'](_0x5208da['commands']['get']('restoreRevision')),this['listenTo'](_0x4e06d2,'execute',()=>_0x5208da['execute']('restoreRevision')),_0x4e06d2;}),_0x5208da['ui']['componentFactory']['add']('changesNavigation',_0x55c28b=>{const _0x344854=new _i(_0x55c28b),_0x3a5ec1=_0x5208da['commands']['get']('showPreviousChange'),_0x6755d7=_0x5208da['commands']['get']('showNextChange');return _0x344854['bind']('isBackwardNavigationEnabled')['to'](_0x3a5ec1,'isEnabled'),_0x344854['bind']('isForwardNavigationEnabled')['to'](_0x6755d7,'isEnabled'),_0x344854['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x250363),this['listenTo'](_0x344854,'execute',(_0x3c96d2,_0x4e47a6)=>{_0x5208da['execute']('forward'===_0x4e47a6?'showNextChange':'showPreviousChange');}),_0x344854;}),_0x46724d['show'](),_0x250363['on']('change:isReady',(_0x4ff6f6,_0x540e65,_0x1e430d)=>{_0x1e430d?_0x46724d['hide']():_0x46724d['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x246fae,_0xb28cf0){super(_0x246fae,_0xb28cf0);const _0x3342a8=this['bindTemplate'];this['set']({'label':m(_0x246fae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x246fae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3342a8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x49072f=this['fieldView']['element'];this['_tooltipString']=_0x49072f['scrollWidth']>_0x49072f['clientWidth']&&_0x49072f['value']||'';}}class ti extends _0x477074{constructor(_0x36d73f,_0x106787,_0xbe8e8f){super(_0x36d73f);const _0x33f628=new _0x4abb36();_0x33f628['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5d592f=['ck','ck-revision-history-sidebar__revision-author'];_0xbe8e8f&&_0x5d592f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3abf4f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x36d73f,_0xbe8e8f?'Revision\x20creator':'Revision\x20author')},'children':[_0x33f628,_0x106787['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5d592f},'children':_0x3abf4f});}}function ni(_0x14d9bc,_0x48ae9c){const _0x538291=_0x14d9bc['bindTemplate'],_0xc9f40d=_0x14d9bc['locale'],_0x439bcc=_0x1f9b8d(_0xc9f40d);_0x439bcc['panelPosition']='sw';const _0x4036c2=function(_0x179deb,_0x2ce1d4){const _0xee50d0=function(_0x34b937,_0x104ab1){const _0x4f358f=_0x34b937['locale'],_0x249391={'Compare\x20against\x20selected':m(_0x4f358f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4f358f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4f358f,'Restore\x20this\x20revision')};return _0x104ab1['map'](_0x1b1cc7=>{const _0x22b2df=_0x249391[_0x1b1cc7['name']];return _0x22b2df&&_0x22b2df!==_0x1b1cc7['name']&&(_0x1b1cc7['name']=_0x22b2df),_0x1b1cc7;});}(_0x179deb,_0x2ce1d4),_0x5738f1=new _0x2f5228();for(const _0x509347 of _0xee50d0){const _0x4ffa96={'type':'button','model':new to({'label':_0x509347['name'],'class':_0x509347['class'],'withText':!0x0,'role':'menuitem','_action':_0x509347['action']})};_0x4ffa96['model']['bind']('isEnabled')['to'](_0x179deb,'isActionsDropdownOpen',_0x5b164b=>'function'!=typeof _0x509347['isEnabled']||(!_0x5b164b||_0x509347['isEnabled'](_0x179deb))),_0x5738f1['add'](_0x4ffa96);}return _0x5738f1;}(_0x14d9bc,_0x48ae9c);return _0x14d9bc['bind']('isActionsDropdownOpen')['to'](_0x439bcc,'isOpen'),_0x439bcc['buttonView']['set']({'label':m(_0xc9f40d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x530a55['threeVerticalDots']}),_0x439bcc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x538291['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x538291['to'](_0x4e3380=>_0x4e3380['stopPropagation']())}}),_0x439bcc['on']('execute',_0x214e62=>{_0x14d9bc['isReady']&&'function'==typeof _0x214e62['source']['_action']&&_0x214e62['source']['_action'](_0x14d9bc);}),_0x213961(_0x439bcc,_0x4036c2,{'role':'menu'}),_0x439bcc['listenTo'](_0x14d9bc,'change:isActionsDropdownOpen',(_0x283d58,_0x2249be,_0x1cc2e8)=>{if(_0x1cc2e8)for(const _0x5492c1 of _0x439bcc['listView']['items']){const _0x4dc73d=_0x5492c1['children']['first'],_0x16f351=_0x48ae9c['find'](_0x4cd75e=>_0x4cd75e['action']===_0x4dc73d['_action'])['isVisible'];_0x5492c1['isVisible']=void 0x0===_0x16f351||_0x16f351(_0x14d9bc);}}),_0x439bcc;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1f4564(_0x477074){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x279e48,_0x25792c,_0x5f3738,_0x4ea368){super(_0x279e48);const _0xc7b2af=this['bindTemplate'],_0x8551c2=function(_0x458673,_0x550b7b){const _0x332655=Array['from'](_0x550b7b['authors'])['filter'](_0x24d8de=>_0x24d8de!=_0x550b7b['creator']);return _0x550b7b['creator']&&_0x332655['unshift'](_0x550b7b['creator']),_0x332655['map'](_0x3fbb4f=>new ti(_0x458673,_0x3fbb4f,_0x3fbb4f==_0x550b7b['creator']));}(_0x279e48,_0x25792c);this['id']=_0x25792c['id'],this['_revision']=_0x25792c,this['_requireRevisionName']=_0x4ea368,this['bind']('name','createdAt')['to'](_0x25792c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1cede7=>{return _0x2618ea=_0x279e48['uiLanguage'],(_0xd05951=_0x1cede7)['toLocaleDateString'](_0x2618ea,{'month':'long','day':'numeric'})+',\x20'+_0xd05951['toLocaleTimeString'](_0x2618ea,{'hour':'numeric','minute':'numeric'});var _0x2618ea,_0xd05951;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x279e48,_0x21209c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x57f722=>_0x57f722||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x21fad8,_0x5196ee)=>_0x21fad8&&_0x5196ee),this['revisionActionsView']=_0x5f3738&&_0x5f3738['length']?ni(this,_0x5f3738):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xc7b2af['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xc7b2af['if']('isEnabled','ck-disabled',_0x5aea37=>!_0x5aea37),_0xc7b2af['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xc7b2af['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xc7b2af['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':_0xc7b2af['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':_0x8551c2}]},this['revisionActionsView']],'on':{'click':_0xc7b2af['to'](_0xb867cf=>{_0xb867cf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32e934=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32e934,'change',()=>{this['_requireRevisionName']&&!_0x32e934['value']||this['fire']('setName',{'id':this['id'],'name':_0x32e934['value']}),_0x32e934['value']||(_0x32e934['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x3384f9,_0x1f6041){const _0x47e943=_0x36401b['fromJSDate'](_0x3384f9)['setLocale'](_0x1f6041),_0x1ae58f=_0x36401b['local'](),_0x54ef73=_0x1ae58f['minus']({'days':0x1})['startOf']('day');let _0x9ef1ee,_0x2a3c5c;return _0x47e943['hasSame'](_0x1ae58f,'day')?(_0x9ef1ee=_0x47e943['startOf']('day')['toJSDate'](),_0x2a3c5c=_0x47e943['toRelativeCalendar']()):_0x47e943['hasSame'](_0x54ef73,'day')?(_0x9ef1ee=_0x54ef73['toJSDate'](),_0x2a3c5c=_0x47e943['toRelativeCalendar']()):_0x47e943['hasSame'](_0x1ae58f,'week')?(_0x9ef1ee=_0x47e943['startOf']('week')['toJSDate'](),_0x2a3c5c=_0x47e943['weekdayLong']||''):_0x47e943['hasSame'](_0x1ae58f,'year')?(_0x9ef1ee=_0x47e943['startOf']('month')['toJSDate'](),_0x2a3c5c=_0x47e943['monthLong']||''):(_0x9ef1ee=_0x47e943['startOf']('year')['toJSDate'](),_0x2a3c5c=String(_0x47e943['year'])),{'startDate':_0x9ef1ee,'localizedPeriodName':_0x2a3c5c};}class mi extends _0x477074{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x47e760,_0x280014,_0x2e75d2,_0x4b6d90){super(_0x47e760);const _0x5a375c=di(_0x280014,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x280014,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2e75d2,this['_requireRevisionName']=_0x4b6d90,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':_0x5a375c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3abd5c){const _0x5a1c7b=new ai(this['locale'],_0x3abd5c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5a1c7b);}['removeRevision'](_0x1f64a0){const _0x2512a6=this['revisionViews']['find'](_0x26493a=>_0x26493a['id']===_0x1f64a0['id']);this['revisionViews']['remove'](_0x2512a6);}}class as extends _0x477074{constructor(_0x1fc9b0){super(_0x1fc9b0);const _0x1bbf5f=new _0x4abb36();_0x1bbf5f['content']=_0x530a55['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1bbf5f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1fc9b0,'Revision\x20history')]}]});}}class ci extends _0x477074{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x527864,_0x2b7f90,_0x407161,_0x3f4a5d){super(_0x527864);const _0x37941a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2b7f90,this['_revisionActions']=_0x407161,this['_requireRevisionName']=_0x3f4a5d,this['on']('select',(_0x45d960,_0x508f2b)=>{this['fire']('revisionSelected',_0x508f2b);}),this['on']('setName',(_0x286ec3,_0x2545e2)=>{this['fire']('revisionSetName',_0x2545e2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x527864),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x37941a['if']('isEnabled','ck-disabled',_0x5a62f9=>!_0x5a62f9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x440cc3 of this['_revisions'])this['_addRevision'](_0x440cc3);this['_revisions']['on']('add',(_0x413e30,_0x4a4eb8)=>{this['_addRevision'](_0x4a4eb8);}),this['_revisions']['on']('remove',(_0x3b4682,_0xe8b8c8)=>{this['_removeRevision'](_0xe8b8c8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5ada8b=>_0x5ada8b['revisionViews']['map'](_0x184a03=>_0x184a03))['flat']();}['selectRevision'](_0x3afcb3){for(const _0x2914c5 of this['revisionViews'])_0x3afcb3&&_0x3afcb3['id']===_0x2914c5['id']?_0x2914c5['select']():_0x2914c5['deselect']();}['highlightRevisions'](_0x3f6391){for(const _0x4ab92 of this['revisionViews'])_0x3f6391['some'](({id:_0x43db50})=>_0x43db50===_0x4ab92['id'])?_0x4ab92['highlight']():_0x4ab92['unhighlight']();}['_addRevision'](_0x114305){const _0x53954e=di(_0x114305['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x30b9bc=this['timePeriodViews']['get'](0x0);_0x30b9bc&&_0x30b9bc['startDate']['getTime']()===_0x53954e['getTime']()||(_0x30b9bc=new mi(this['locale'],_0x53954e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x30b9bc)),_0x30b9bc['addRevision'](_0x114305);}['_removeRevision'](_0x6cbc8a){const _0x1196cd=di(_0x6cbc8a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1196cd)['removeRevision'](_0x6cbc8a);}['_getTimePeriodViewByStartDate'](_0x289457){return this['timePeriodViews']['find'](_0x5ad988=>_0x5ad988['startDate']['getTime']()===_0x289457['getTime']());}}class w extends _0x56b833{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x8f76e6,_0x161e8b){super(_0x161e8b),this['sourceElement']=_0x8f76e6,this['model']['document']['createRoot']();const _0x4baee4=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4baee4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x12ef8d,_0x335268){const _0x341113=new this(_0x12ef8d,_0x335268);return await _0x341113['initPlugins'](),await _0x341113['ui']['init'](_0x12ef8d),await _0x341113['data']['init'](_0x341113['config']['get']('initialData')||''),_0x341113['fire']('ready'),_0x341113;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3c3b4e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d3ea){function _0x17cd81(_0x287a7a){return _0x287a7a['map'](_0x2d685a=>String['fromCharCode'](_0x2d685a))['join']('');}super(_0x38d3ea),this['result']='end',_0x38d3ea[_0x17cd81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17cd81([0x76,0x69,0x65,0x77])][_0x17cd81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17cd81([0x61,0x75,0x74,0x6f]),_0x38d3ea[_0x17cd81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17cd81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17cd81([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17cd81([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17cd81([0x6f,0x6b])});}}class k extends _0x3c3b4e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1c6cb9){if(super(_0x1c6cb9),!this['editor']['config']['get']('revisionHistory'))throw new _0x3946d3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x371186=>this['_showRevisionViewer']({..._0x371186,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x26e63a=>this['_closeRevisionViewer'](_0x26e63a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56c3d2=>this['_restoreRevision'](_0x56c3d2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x595fcd){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x595fcd;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x42603a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x42603a);}['getRevision'](_0x36f35e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x36f35e);}['getRevisions'](_0x4f370b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4f370b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xac0ee3=this['editor'],_0x1a20d7=_0xd4c5e9(_0xac0ee3,p),_0x50d4af=_0xac0ee3['plugins']['get']('RevisionTracker'),_0x502fd1=_0xac0ee3['plugins']['get']('Users')['users'];return _0x1a20d7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1a20d7['lazyRoots'],(_0x1a20d7['plugins']['push'](Rt,d,g,class extends _0x3c3b4e{static get['requires'](){return[d,'Users'];}['init'](){const _0x287e0f=this['editor']['plugins']['get']('Users');for(const _0x2ef873 of _0x502fd1)_0x2ef873['isAnonymous']||_0x287e0f['getUser'](_0x2ef873['id'])||_0x287e0f['addUser'](_0x2ef873);const _0x2c438e=_0x50d4af['repository']['getRevisions']();let _0x161135=null;const _0x5e5b65=this['editor']['plugins']['get']('RevisionViewer');_0x5e5b65['adapter']=_0x50d4af['adapter'],_0x5e5b65['bind']('isEnabled')['to'](_0x50d4af),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xac0ee3,'isReadOnly',_0x11a597=>!_0x11a597);for(const _0x7cd6e5 of _0x2c438e){const _0x24b63b=null===_0x7cd6e5['creator'];if(_0x24b63b&&_0x7cd6e5['toVersion']===_0x7cd6e5['fromVersion'])continue;const _0x40eb67=_0x7cd6e5['toJSON']();_0x5e5b65['addRevisionData'](_0x40eb67,(_0x209bc3,_0x3120b2,_0x58e60f)=>{if(_0x24b63b){if(_0x161135)_0x161135['_update'](_0x209bc3,_0x3120b2);else{if(!_0x3120b2){const _0x596c2c=_0x58e60f['toJSON']();_0x596c2c['id']=_0x5c2e0e(),_0x50d4af['saveRevision'](_0x596c2c,_0x58e60f['toVersion'])['then'](_0x5cc0c1=>{_0x161135=_0x5cc0c1;});}}}else _0x7cd6e5['_update'](_0x209bc3,_0x3120b2);});}}},w),_0x1a20d7);}['_enhanceShowRevisionViewerCallback'](){const _0x304446=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x15fe06=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x6944c5=this['editor']['plugins']['get']('Autosave');await _0x6944c5['save']();}else await _0x15fe06['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x26920f=this['editor']['plugins']['get']('Dialog');_0x26920f['isOpen']&&_0x26920f['hide']();}const _0x18fdaa=this['_getRevisionViewerEditorConfig']();return _0x304446(_0x18fdaa)['then'](_0x17b08f=>{return(this['_viewerEditor']=_0x17b08f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x17b08f;})['catch'](_0x18b385=>(console['error'](_0x18b385),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x354bd8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x354bd8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3df8e0=this['editor']['plugins']['get']('Annotations');_0x3df8e0['refreshVisibility'](),_0x3df8e0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x26ec32){const _0x560735=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x435bee=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x482507=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x482507,_0x26ec32)['then'](_0x27d627=>(_0x435bee['style']['display']='block',_0x560735['style']['display']='none',_0x27d627));}['_closeRevisionViewer'](_0x2b079d){const _0x5de286=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5de286['style']['display']='',_0x2b079d['destroy']();}async['_restoreRevision'](_0x1fa277){const _0x35a6c0=this['editor'],_0x43023c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2b1432=_0x35a6c0['plugins']['get']('RevisionTracker'),_0x2e2f43=_0x43023c['repository']['getRevision'](_0x1fa277);let _0x30f5a4,_0x11ee5c,_0x24a993;try{_0x30f5a4=await _0x43023c['getRevisionData'](_0x2e2f43),_0x11ee5c=await _0x43023c['getRevisionRootsAttributes'](_0x2e2f43);}catch(_0x1a4bdc){return void console['error'](_0x1a4bdc);}_0x35a6c0['model']['change'](_0x5e44ae=>{for(const _0x5c9533 of Array['from'](_0x35a6c0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5e44ae['removeMarker'](_0x5c9533);}),_0x43023c['isReady']=!0x1,_0x35a6c0['model']['enqueueChange'](_0x283543=>{_0x283543['setSelection'](null),_0x283543['removeSelectionAttribute'](_0x35a6c0['model']['document']['selection']['getAttributeKeys']());const _0x30d455=Object['keys'](_0x30f5a4);for(const _0x4082e3 of _0x35a6c0['model']['document']['roots'])'$graveyard'!=_0x4082e3['rootName']&&_0x4082e3['isAttached']()&&!_0x30d455['includes'](_0x4082e3['rootName'])&&_0x283543['detachRoot'](_0x4082e3);for(const _0x1c88be of _0x30d455){let _0x3f31d4=_0x35a6c0['model']['document']['getRoot'](_0x1c88be);_0x3f31d4&&_0x3f31d4['isAttached']()||(_0x3f31d4=_0x283543['addRoot'](_0x1c88be));const _0xa2310f=_0x11ee5c[_0x1c88be],_0x4460be=Object['keys'](_0xa2310f),_0x59d041=_0x30f5a4[_0x1c88be];for(const _0x33fe8f of _0x3f31d4['getAttributeKeys']())_0x4460be['includes'](_0x33fe8f)||_0x283543['removeAttribute'](_0x33fe8f,_0x3f31d4);for(const _0x2aa952 of _0x4460be)_0x283543['setAttribute'](_0x2aa952,_0x11ee5c[_0x1c88be][_0x2aa952],_0x3f31d4);_0x283543['remove'](_0x283543['createRangeIn'](_0x3f31d4)),_0x283543['insert'](_0x35a6c0['data']['parse'](_0x59d041,_0x3f31d4),_0x3f31d4,0x0);}});const _0x1fe0b1=m(_0x35a6c0['locale'],'Restored');if(_0x2e2f43['name'])_0x24a993=-0x1==_0x2e2f43['name']['indexOf'](_0x1fe0b1)?_0x1fe0b1+':\x20'+_0x2e2f43['name']:_0x2e2f43['name'];else _0x24a993=_0x1fe0b1+':\x20'+(_0x2e2f43['createdAt']['toLocaleDateString'](_0x35a6c0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2e2f43['createdAt']['toLocaleTimeString'](_0x35a6c0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2b1432['saveRevision']({'name':_0x24a993}),_0x43023c['isReady']=!0x0,_0x35a6c0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x546ea2){super(_0x546ea2),this['_revisionViewer']=_0x546ea2['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x72689e=this['_revisionsRepository']['_revisions'],_0x568ba6=this['_createRevisionActions'](),_0x2cdec4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x72689e,_0x568ba6,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',(_0x2b44d1,_0xfd3125)=>{_0xfd3125['revisionViews']['on']('add',(_0x3870c5,_0x4854c8)=>{_0x4854c8['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)),_0x2cdec4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xebdd5d=this['_revisionsRepository']['getRevision'](0x0);if(_0xebdd5d){const _0xac4ff6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xebdd5d['id']);this['_revisionViewer']['compare'](_0xebdd5d,_0xac4ff6);}}['_handleRevisionSelected'](_0x2e2dad,_0x4c448d){const _0x19227e=this['_revisionsRepository']['getRevision'](_0x4c448d['id']),_0x19fbb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19227e['id']);this['_revisionViewer']['compare'](_0x19227e,_0x19fbb);}['_handleRevisionSetName'](_0x208df2,_0x51bf12){this['_revisionsRepository']['getRevision'](_0x51bf12['id'])['setName'](_0x51bf12['name']);}['_handleDiffChange'](_0x42a3f4,_0x4913f8,_0x252886){const _0x2c502=this['_revisionsRepository']['getRevisionsInDiff'](_0x252886);_0x2c502['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2c502),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2c502[0x0]));}['_createRevisionActions'](){const _0x430ee4=this['editor'],_0x44f348=w['availableRevisionActions'],_0x10c96b=_0x430ee4['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x10c96b['length'])return _0x10c96b['map'](_0x1b7d25=>{const _0x9248f1='string'==typeof _0x1b7d25?Object['assign']({},_0x44f348[_0x1b7d25]):_0x1b7d25;return _0x9248f1['action']=_0x9248f1['action']['bind'](this,_0x430ee4),_0x9248f1['isVisible']&&(_0x9248f1['isVisible']=_0x9248f1['isVisible']['bind'](this,_0x430ee4)),_0x9248f1;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x458f36},_0x321d58)=>{const _0x39ca2b=_0x458f36['get'](d),_0x5953d0=_0x39ca2b['repository'];let _0x6b15d9=_0x39ca2b['diff']['newRevisionId'],_0x207b35=_0x321d58['id'];_0x5953d0['getIndex'](_0x6b15d9)>_0x5953d0['getIndex'](_0x207b35)&&([_0x6b15d9,_0x207b35]=[_0x207b35,_0x6b15d9]),_0x39ca2b['compare'](_0x6b15d9,_0x207b35);},'isVisible':({plugins:_0x1bf8e7},_0x598865)=>{const _0x185c77=_0x1bf8e7['get'](d);return!(_0x185c77['repository']['getRevisionsInDiff'](_0x185c77['diff'])['length']>0x2)&&!_0x598865['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x589c15,{id:_0x7a0ec})=>{_0x589c15['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7a0ec);},'isVisible':({plugins:_0x2d81a1},_0x42ff55)=>!!_0x2d81a1['get'](d)['repository']['getLaterVisibleRevision'](_0x42ff55['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x50c831},{id:_0x31a747,revisionNameView:_0x3f841c})=>{const _0x2ac560=_0x50c831['get'](d),_0x47b9ad=_0x2ac560['repository']['getEarlierVisibleRevision'](_0x31a747);_0x2ac560['compare'](_0x31a747,_0x47b9ad),_0x3f841c['focus'](),_0x3f841c['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x348bc4,_0x5009a8){super(_0x348bc4),this['_view']=_0x5009a8,this['_toolbarConfig']=ot(_0x348bc4['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x24f5f9){const _0xb4f8ce=this['editor'],_0x496d22=this['view'],_0x3cc678=_0xb4f8ce['editing']['view'],_0x178870=_0x496d22['editable'],_0x370f3c=_0x3cc678['document']['getRoot']();_0x178870['name']=_0x370f3c['rootName'],_0x496d22['render']();const _0x4e5fcb=_0x178870['element'];this['setEditableElement'](_0x178870['name'],_0x4e5fcb),_0x496d22['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3cc678['attachDomRoot'](_0x4e5fcb),this['_elementReplacer']['replace'](_0x24f5f9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x805558=this['view'],_0x4b7cf8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4b7cf8['detachDomRoot'](_0x805558['editable']['name']),_0x805558['destroy']();}['_initToolbar'](){const _0x4c849d=this['view'];_0x4c849d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4c849d['stickyPanel']['limiterElement']=_0x4c849d['element'],_0x4c849d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51e859})=>_0x51e859),_0x4c849d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4c849d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4fb2b2,_0x5bdd1f,_0x3265c5={}){super(_0x4fb2b2),this['stickyPanel']=new ut(_0x4fb2b2),this['toolbar']=new lt(_0x4fb2b2,{'shouldGroupWhenFull':_0x3265c5['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x4fb2b2,_0x5bdd1f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1d1c1f,_0x4f32a5){super(_0x4f32a5),this['sourceElement']=_0x1d1c1f,this['model']['document']['createRoot']();const _0x18aed2=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x18aed2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3597be,_0x1e047e){const _0x5a4b48=new this(_0x3597be,_0x1e047e);return await _0x5a4b48['initPlugins'](),await _0x5a4b48['ui']['init'](_0x3597be),await _0x5a4b48['data']['init'](_0x5a4b48['config']['get']('initialData')||''),_0x5a4b48['fire']('ready'),_0x5a4b48;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x56b833{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x90a7ee){function _0xb4e2df(_0x405718){return _0x405718['map'](_0xd2e4a8=>String['fromCharCode'](_0xd2e4a8))['join']('');}super(_0x90a7ee),this['result']='end',_0x90a7ee[_0xb4e2df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb4e2df([0x76,0x69,0x65,0x77])][_0xb4e2df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb4e2df([0x61,0x75,0x74,0x6f]),_0x90a7ee[_0xb4e2df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb4e2df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb4e2df([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb4e2df([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb4e2df([0x6f,0x6b])});}}class k extends _0x56b833{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e906f){if(super(_0x4e906f),!this['editor']['config']['get']('revisionHistory'))throw new _0x3c4052('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fd2e5=>this['_showRevisionViewer']({..._0x3fd2e5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3e3926=>this['_closeRevisionViewer'](_0x3e3926)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x15015c=>this['_restoreRevision'](_0x15015c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2c2e47){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2c2e47;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x261304){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x261304);}['getRevision'](_0x22cb94){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x22cb94);}['getRevisions'](_0x2c6aa8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2c6aa8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x142dd8=this['editor'],_0x1a1ad8=_0x3d69c0(_0x142dd8,p),_0x46943b=_0x142dd8['plugins']['get']('RevisionTracker'),_0x174ef8=_0x142dd8['plugins']['get']('Users')['users'];return _0x1a1ad8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1a1ad8['lazyRoots'],(_0x1a1ad8['plugins']['push'](Rt,d,g,class extends _0x56b833{static get['requires'](){return[d,'Users'];}['init'](){const _0x54a975=this['editor']['plugins']['get']('Users');for(const _0x70b841 of _0x174ef8)_0x70b841['isAnonymous']||_0x54a975['getUser'](_0x70b841['id'])||_0x54a975['addUser'](_0x70b841);const _0x37c98b=_0x46943b['repository']['getRevisions']();let _0x148700=null;const _0x586d74=this['editor']['plugins']['get']('RevisionViewer');_0x586d74['adapter']=_0x46943b['adapter'],_0x586d74['bind']('isEnabled')['to'](_0x46943b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x142dd8,'isReadOnly',_0x4f877e=>!_0x4f877e);for(const _0x1dc018 of _0x37c98b){const _0x477ce3=null===_0x1dc018['creator'];if(_0x477ce3&&_0x1dc018['toVersion']===_0x1dc018['fromVersion'])continue;const _0x3a2356=_0x1dc018['toJSON']();_0x586d74['addRevisionData'](_0x3a2356,(_0x3597c8,_0x1d092b,_0x3358a8)=>{if(_0x477ce3){if(_0x148700)_0x148700['_update'](_0x3597c8,_0x1d092b);else{if(!_0x1d092b){const _0x418f12=_0x3358a8['toJSON']();_0x418f12['id']=_0x3e6a21(),_0x46943b['saveRevision'](_0x418f12,_0x3358a8['toVersion'])['then'](_0x2408cd=>{_0x148700=_0x2408cd;});}}}else _0x1dc018['_update'](_0x3597c8,_0x1d092b);});}}},w),_0x1a1ad8);}['_enhanceShowRevisionViewerCallback'](){const _0x9fe53e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1d7ff9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a07d5=this['editor']['plugins']['get']('Autosave');await _0x5a07d5['save']();}else await _0x1d7ff9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5ee2e6=this['editor']['plugins']['get']('Dialog');_0x5ee2e6['isOpen']&&_0x5ee2e6['hide']();}const _0x5c00bb=this['_getRevisionViewerEditorConfig']();return _0x9fe53e(_0x5c00bb)['then'](_0x1a1fa5=>{return(this['_viewerEditor']=_0x1a1fa5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1a1fa5;})['catch'](_0x6490fa=>(console['error'](_0x6490fa),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1712b0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1712b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x41c6cb=this['editor']['plugins']['get']('Annotations');_0x41c6cb['refreshVisibility'](),_0x41c6cb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c62f5){const _0x549301=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3459fa=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x45a6ff=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x45a6ff,_0x3c62f5)['then'](_0x21ecdb=>(_0x3459fa['style']['display']='block',_0x549301['style']['display']='none',_0x21ecdb));}['_closeRevisionViewer'](_0x235720){const _0x269ffe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x269ffe['style']['display']='',_0x235720['destroy']();}async['_restoreRevision'](_0x67a9c2){const _0x40e6fd=this['editor'],_0x5b67ea=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x590eae=_0x40e6fd['plugins']['get']('RevisionTracker'),_0x3a7927=_0x5b67ea['repository']['getRevision'](_0x67a9c2);let _0x3f47c7,_0x23795f,_0xa9cfbc;try{_0x3f47c7=await _0x5b67ea['getRevisionData'](_0x3a7927),_0x23795f=await _0x5b67ea['getRevisionRootsAttributes'](_0x3a7927);}catch(_0x4f51a3){return void console['error'](_0x4f51a3);}_0x40e6fd['model']['change'](_0x4332d0=>{for(const _0x452788 of Array['from'](_0x40e6fd['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4332d0['removeMarker'](_0x452788);}),_0x5b67ea['isReady']=!0x1,_0x40e6fd['model']['enqueueChange'](_0xb9cbb9=>{_0xb9cbb9['setSelection'](null),_0xb9cbb9['removeSelectionAttribute'](_0x40e6fd['model']['document']['selection']['getAttributeKeys']());const _0x4e8763=Object['keys'](_0x3f47c7);for(const _0x4c10ac of _0x40e6fd['model']['document']['roots'])'$graveyard'!=_0x4c10ac['rootName']&&_0x4c10ac['isAttached']()&&!_0x4e8763['includes'](_0x4c10ac['rootName'])&&_0xb9cbb9['detachRoot'](_0x4c10ac);for(const _0x308d99 of _0x4e8763){let _0x1742c5=_0x40e6fd['model']['document']['getRoot'](_0x308d99);_0x1742c5&&_0x1742c5['isAttached']()||(_0x1742c5=_0xb9cbb9['addRoot'](_0x308d99));const _0x1d4228=_0x23795f[_0x308d99],_0x12353d=Object['keys'](_0x1d4228),_0x524141=_0x3f47c7[_0x308d99];for(const _0x1f2712 of _0x1742c5['getAttributeKeys']())_0x12353d['includes'](_0x1f2712)||_0xb9cbb9['removeAttribute'](_0x1f2712,_0x1742c5);for(const _0x5b46f0 of _0x12353d)_0xb9cbb9['setAttribute'](_0x5b46f0,_0x23795f[_0x308d99][_0x5b46f0],_0x1742c5);_0xb9cbb9['remove'](_0xb9cbb9['createRangeIn'](_0x1742c5)),_0xb9cbb9['insert'](_0x40e6fd['data']['parse'](_0x524141,_0x1742c5),_0x1742c5,0x0);}});const _0x6e2ca9=m(_0x40e6fd['locale'],'Restored');if(_0x3a7927['name'])_0xa9cfbc=-0x1==_0x3a7927['name']['indexOf'](_0x6e2ca9)?_0x6e2ca9+':\x20'+_0x3a7927['name']:_0x3a7927['name'];else _0xa9cfbc=_0x6e2ca9+':\x20'+(_0x3a7927['createdAt']['toLocaleDateString'](_0x40e6fd['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3a7927['createdAt']['toLocaleTimeString'](_0x40e6fd['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x590eae['saveRevision']({'name':_0xa9cfbc}),_0x5b67ea['isReady']=!0x0,_0x40e6fd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|