@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250425.0 → 0.0.0-nightly-20250426.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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x216396(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x28cefe){super(),this['id']=_0x28cefe['id']||_0x3ac6ae(),this['creator']=_0x28cefe['creator']||null,this['authors']=_0x28cefe['authors']||[],this['diffData']=_0x28cefe['diffData']||null,this['toVersion']=_0x28cefe['toVersion']||0x0,this['fromVersion']=_0x28cefe['fromVersion']||0x0,this['set']('name',_0x28cefe['name']||''),this['set']('createdAt',_0x28cefe['createdAt']||new Date()),this['set']('attributes',_0x28cefe['attributes']||{});}['setName'](_0x4ea529){this['_update']({'name':_0x4ea529});}['setAttribute'](_0xbe4458,_0xc9de89){const _0x3e884f=_0x451a6d(this['attributes']);_0x1e44e1(_0x3e884f,_0xbe4458,_0xc9de89),this['_update']({'attributes':_0x3e884f});}['removeAttribute'](_0x5c2bcb){const _0x4c1ab6=_0x451a6d(this['attributes']);_0xcd894a(_0x4c1ab6,_0x5c2bcb),this['_update']({'attributes':_0x4c1ab6});}['_update'](_0xcd3a85,_0x3f783a=!0x1){let _0x4501a9=!0x1;const _0x332f04={'id':this['id']},_0x55902f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4e239b of _0x55902f){const _0x5ed601=_0xcd3a85[_0x4e239b];void 0x0!==_0x5ed601&&_0x5ed601!==this[_0x4e239b]&&(this[_0x4e239b]=_0x5ed601,_0x332f04[_0x4e239b]=_0x5ed601,_0x4501a9=!0x0);}_0x4501a9&&(_0x332f04['authors']&&(_0x332f04['authorsIds']=_0x332f04['authors']['map'](_0x578ab5=>_0x578ab5['id']),delete _0x332f04['authors']),this['fire']('_update',_0x332f04,_0x3f783a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5f02de=>_0x5f02de['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x2ff424{['_revisions'];static get['requires'](){return[_0xbcecfe];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5a1d55){super(_0x5a1d55),this['_revisions']=new _0x5791a4();}['afterInit'](){!async function(_0x525377){const _0x1f8617=_0x3a46f([0x61,0x32,0x48,0x78,0x49,0x45,0x42,0x36,0x65,0x6b,0x53,0x4f,0x6c,0x57,0x59,0x43,0x69,0x47,0x6a,0x38,0x73,0x4e,0x52,0x6e,0x31,0x70,0x41,0x54,0x7a,0x50,0x72,0x67,0x75,0x6f,0x74,0x63,0x35,0x4c,0x37,0x46,0x66,0x76,0x4d,0x62,0x71,0x56,0x34,0x51,0x55,0x44,0x6d,0x4b,0x68,0x4a,0x64,0x58,0x79,0x33,0x5a,0x77,0x30,0x39]),_0x383162=0xeb829,_0x2185ac=0x5149c175,_0x2215a4=0x514ea77d^_0x2185ac,_0x257fb2=window[_0x3a46f([0x44,0x61,0x74,0x65])][_0x3a46f([0x6e,0x6f,0x77])](),_0x40d8bc=_0x525377[_0x3a46f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4705b8=new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544751=>{_0x40d8bc[_0x3a46f([0x6f,0x6e,0x63,0x65])](_0x3a46f([0x72,0x65,0x61,0x64,0x79]),_0x544751);}),_0x1573af={[_0x3a46f([0x6b,0x74,0x79])]:_0x3a46f([0x45,0x43]),[_0x3a46f([0x75,0x73,0x65])]:_0x3a46f([0x73,0x69,0x67]),[_0x3a46f([0x63,0x72,0x76])]:_0x3a46f([0x50,0x2d,0x32,0x35,0x36]),[_0x3a46f([0x78])]:_0x3a46f([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]),[_0x3a46f([0x79])]:_0x3a46f([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]),[_0x3a46f([0x61,0x6c,0x67])]:_0x3a46f([0x45,0x53,0x32,0x35,0x36])},_0x31d125=_0x40d8bc[_0x3a46f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a46f([0x67,0x65,0x74])](_0x3a46f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ab071(){let _0x53cc31,_0x2f8ad0=null,_0x34dc98=null;try{if(_0x31d125==_0x3a46f([0x47,0x50,0x4c]))return _0x3a46f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53cc31=_0x38df5a(),!_0x53cc31)return _0x3a46f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53cc31[_0x3a46f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34dc98=_0x5b595e(_0x53cc31[_0x3a46f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53cc31[_0x3a46f([0x6a,0x74,0x69])])),await _0x333378()?_0x26aa0d()?_0xefc4b0()?_0x3a46f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x263518()?(_0x53cc31[_0x3a46f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a46f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f8ad0=_0x13d612(_0x3a46f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53cc31[_0x3a46f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a46f([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f8ad0=_0x13d612(_0x3a46f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44f844()):_0x3a46f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a46f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a46f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43247b){return _0x3a46f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xefc4b0(){const _0x525b54=[_0x3a46f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a46f([0x74,0x72,0x69,0x61,0x6c])][_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cc31[_0x3a46f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x257fb2/0x3e8:0xe10*_0x2215a4;return _0x53cc31[_0x3a46f([0x65,0x78,0x70])]<_0x525b54;}function _0x26aa0d(){const _0x2c30db=_0x53cc31[_0x3a46f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c30db)return!0x1;if(_0x2c30db[_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a46f([0x2a])))return!0x0;if(_0x2c30db[_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a46f([0x52,0x48])))return!0x0;if(_0x2c30db[_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a46f([0x52,0x52,0x48]))){if(_0x553a45())return!0x0;if(_0x57b4ca()||_0x2ce94f())return!0x0;}return!0x1;}function _0x263518(){const _0x470b46=_0x53cc31[_0x3a46f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x470b46||0x0==_0x470b46[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x73270e}=new URL(window[_0x3a46f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x470b46[_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73270e))return!0x0;const _0x5f2680=_0x73270e[_0x3a46f([0x73,0x70,0x6c,0x69,0x74])](_0x3a46f([0x2e]));return _0x470b46[_0x3a46f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2eaf8d=>_0x2eaf8d[_0x3a46f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a46f([0x2a])))[_0x3a46f([0x6d,0x61,0x70])](_0x40f826=>_0x40f826[_0x3a46f([0x73,0x70,0x6c,0x69,0x74])](_0x3a46f([0x2e])))[_0x3a46f([0x73,0x6f,0x6d,0x65])](_0x417540=>_0x5f2680[_0x3a46f([0x65,0x76,0x65,0x72,0x79])]((_0x23138d,_0x1fac39)=>_0x417540[_0x1fac39]===_0x23138d||_0x417540[_0x1fac39]===_0x3a46f([0x2a])));}function _0x44f844(){return _0x2f8ad0&&_0x34dc98?new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbf5c0b,_0x42215b)=>{_0x2f8ad0[_0x3a46f([0x74,0x68,0x65,0x6e])](_0xbf5c0b,_0x42215b),_0x34dc98[_0x3a46f([0x74,0x68,0x65,0x6e])](_0x182444=>{_0x182444!=_0x3a46f([0x56,0x61,0x6c,0x69,0x64])&&_0xbf5c0b(_0x182444);},_0x42215b);}):_0x2f8ad0||_0x34dc98||_0x3a46f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b595e(_0x1d26fc,_0x2f1956){return new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39f398=>{if(_0x4559ad())return _0x39f398(_0x3a46f([0x56,0x61,0x6c,0x69,0x64]));_0x323497(),_0x40d8bc[_0x3a46f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a46f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd733a3=!0x1;const _0x4fa98f=_0x3ac6ae();function _0x20017c(_0x3f2033){return!!_0x3f2033&&(typeof _0x3f2033===_0x3a46f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f2033===_0x3a46f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f2033[_0x3a46f([0x74,0x68,0x65,0x6e])]===_0x3a46f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f2033[_0x3a46f([0x63,0x61,0x74,0x63,0x68])]===_0x3a46f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a8df4(_0x4f9dbf){_0x3d72e4(_0x4f9dbf)[_0x3a46f([0x74,0x68,0x65,0x6e])](_0x24e864=>{if(!_0x24e864||_0x24e864[_0x3a46f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a46f([0x6f,0x6b]))return _0x3a46f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1aeef3(_0x2eacee(_0x4fa98f+_0x2f1956))!=_0x24e864[_0x3a46f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a46f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a46f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a46f([0x74,0x68,0x65,0x6e])](_0x267bb6=>(_0x3d10da(),_0x267bb6),()=>{const _0x305e48=_0x3b787e();return null==_0x305e48?(_0x3d10da(),_0x3a46f([0x56,0x61,0x6c,0x69,0x64])):_0x3a46f(_0x257fb2-_0x305e48>(0x75454575^_0x2185ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a46f([0x74,0x68,0x65,0x6e])](_0x39f398)[_0x3a46f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39f398(_0x3a46f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4739de=0x517f2ff5^_0x2185ac;function _0x3d10da(){const _0x351c96=_0x3a46f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1aeef3(_0x2eacee(_0x1d26fc)),_0x1714ab=_0x52a8dd(_0x1aeef3(window[_0x3a46f([0x4d,0x61,0x74,0x68])][_0x3a46f([0x63,0x65,0x69,0x6c])](_0x257fb2/_0x4739de)));window[_0x3a46f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a46f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x351c96,_0x1714ab);}function _0x3b787e(){const _0x17e134=_0x3a46f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1aeef3(_0x2eacee(_0x1d26fc)),_0x23126f=window[_0x3a46f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a46f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17e134);return _0x23126f?window[_0x3a46f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52a8dd(_0x23126f),0x10)*_0x4739de:null;}function _0x3d72e4(_0x114ce0){return new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d8300,_0x3d29b8)=>{_0x114ce0[_0x3a46f([0x74,0x68,0x65,0x6e])](_0x5d8300,_0x3d29b8),window[_0x3a46f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d29b8,0x514815b5^_0x2185ac);});}}_0x40d8bc[_0x3a46f([0x6f,0x6e])](_0x3a46f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46013c,_0x1fe6ca)=>{if(_0x1fe6ca[0x0]!=_0x1d26fc)return _0x39f398(_0x3a46f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fe6ca[0x1]={..._0x1fe6ca[0x1],[_0x3a46f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fa98f};},{[_0x3a46f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a46f([0x68,0x69,0x67,0x68])}),_0x40d8bc[_0x3a46f([0x6f,0x6e])](_0x3a46f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x412c14=>{_0x20017c(_0x412c14[_0x3a46f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd733a3=!0x0,_0x5a8df4(_0x412c14[_0x3a46f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a46f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a46f([0x6c,0x6f,0x77])}),_0x4705b8[_0x3a46f([0x74,0x68,0x65,0x6e])](()=>{_0xd733a3||_0x39f398(_0x3a46f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4559ad(){return _0x40d8bc[_0x3a46f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a46f([0x76,0x69,0x65,0x77])][_0x3a46f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a46f([0x61,0x75,0x74,0x6f]);}function _0x323497(){_0x40d8bc[_0x3a46f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a46f([0x76,0x69,0x65,0x77])][_0x3a46f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a46f([0x61,0x75,0x74,0x6f]);}}function _0x13d612(_0x3b67a4){const _0x5755bb=[new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13d79d=>setTimeout(_0x13d79d,0x5140ffb9^_0x2185ac)),_0x4705b8[_0x3a46f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ab83=>{const _0x27f601=0x5149c172^_0x2185ac,_0x9c3af1=_0x525377[_0x3a46f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5c94e9(){_0x9c3af1[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x27f601&&_0x54ab83();}_0x5c94e9(),_0x9c3af1[_0x3a46f([0x6f,0x6e])](_0x3a46f([0x61,0x64,0x64]),_0x5c94e9);})),new window[(_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x527089=>{function _0x5d74d0(){for(const _0x1051a3 in window)if(window[_0x3a46f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3a46f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1051a3))&&window[_0x1051a3]==_0x383162)return _0x527089();_0x40d8bc[_0x3a46f([0x73,0x74,0x61,0x74,0x65])]!=_0x3a46f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3a46f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d74d0,0x5149d2fd^_0x2185ac);}_0xd23f90(_0x3a46f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5d74d0();})];return window[_0x3a46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a46f([0x72,0x61,0x63,0x65])](_0x5755bb)[_0x3a46f([0x74,0x68,0x65,0x6e])](()=>_0x3b67a4);}async function _0x16c280(){if(await _0x4705b8,_0xd23f90(_0x3a46f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x526d1f=_0x525377[_0x3a46f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x57ba12=_0x525377[_0x3a46f([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])](_0x526d1f[_0x3a46f([0x69,0x64])]),_0x2716f5=_0x2f8b0b(_0x3a46f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2716f5[_0x3a46f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x526d1f['id'],_0x57ba12?_0x57ba12['id']:null,!0x0),_0x2716f5[_0x3a46f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a46f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2716f5[_0x3a46f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2716f5[_0x3a46f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c18db,void(_0x2716f5[_0x3a46f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c18db);}if(_0xd23f90(_0x3a46f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xa4627=_0x2f8b0b(_0x3a46f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xa4627[_0x3a46f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a46f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa4627[_0x3a46f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa4627[_0x3a46f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c18db,_0xa4627[_0x3a46f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c18db;}_0x40d8bc[_0x3a46f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a46f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c18db,_0x40d8bc[_0x3a46f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a46f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c18db,_0x40d8bc[_0x3a46f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a46f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x553a45(){return _0xd23f90(_0x3a46f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f8b0b(_0x3a46f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3a46f([0x73,0x74,0x61,0x74,0x65])]==_0x3a46f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57b4ca(){return _0xd23f90(_0x3a46f([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 _0x2ce94f(){return _0xd23f90(_0x3a46f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xcc6b0d(_0x199475){const _0x59adff=_0x39e073();_0x40d8bc[_0x59adff]=_0x3a46f([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])+_0x199475,_0x199475[_0x3a46f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3a46f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x39e073()]=_0x383162),_0x199475!=_0x3a46f([0x56,0x61,0x6c,0x69,0x64])&&_0x16c280();}function _0x39e073(){const _0x3160be=window[_0x3a46f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a46f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a46f([0x6e,0x6f,0x77])]())[_0x3a46f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a46f([0x2e]),'');let _0x4a06c7=_0x3a46f([0x61]);for(let _0x23a688=0x0;_0x23a688<_0x3160be[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a688+=0x2){let _0x5e4246=window[_0x3a46f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3160be[_0x3a46f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23a688,_0x23a688+0x2));_0x5e4246>=_0x1f8617[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e4246-=_0x1f8617[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a06c7+=_0x1f8617[_0x5e4246];}return _0x4a06c7;}function _0x38df5a(){const _0x21a632=_0x31d125[_0x3a46f([0x73,0x70,0x6c,0x69,0x74])](_0x3a46f([0x2e]));if(0x3!=_0x21a632[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e342a(_0x21a632[0x1]);function _0x2e342a(_0x4be4e1){const _0x465194=_0xef3a5b(_0x4be4e1);return _0x465194&&_0x22c56c()?_0x465194:null;function _0x22c56c(){const _0x18530b=_0x465194[_0x3a46f([0x6a,0x74,0x69])],_0x309a74=window[_0x3a46f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18530b[_0x3a46f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18530b[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5838c0={..._0x465194,[_0x3a46f([0x6a,0x74,0x69])]:_0x18530b[_0x3a46f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18530b[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5838c0[_0x3a46f([0x76,0x63])],_0x2eacee(_0x5838c0)==_0x309a74;}}}async function _0x333378(){let _0x3cd873=!0x0;try{const _0x47d271=_0x31d125[_0x3a46f([0x73,0x70,0x6c,0x69,0x74])](_0x3a46f([0x2e])),[_0x434df5,_0x45bd8c,_0x2b5902]=_0x47d271;return _0x266c92(_0x434df5),await _0x4782bc(_0x434df5,_0x45bd8c,_0x2b5902),_0x3cd873;}catch(_0x100f45){return!0x1;}function _0x266c92(_0x1773e6){const _0x38141b=_0xef3a5b(_0x1773e6);_0x38141b&&_0x38141b[_0x3a46f([0x61,0x6c,0x67])]==_0x3a46f([0x45,0x53,0x32,0x35,0x36])||(_0x3cd873=!0x1);}async function _0x4782bc(_0x17b751,_0x38bf73,_0x594889){const _0x1130cd=window[_0x3a46f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a46f([0x66,0x72,0x6f,0x6d])](_0x2c9659(_0x594889),_0x21ff9c=>_0x21ff9c[_0x3a46f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x85340e=new window[(_0x3a46f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a46f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17b751+_0x3a46f([0x2e])+_0x38bf73),_0x4d1b77=window[_0x3a46f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a46f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d1b77)return;const _0x93e2b8=await _0x4d1b77[_0x3a46f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a46f([0x6a,0x77,0x6b]),_0x1573af,{[_0x3a46f([0x6e,0x61,0x6d,0x65])]:_0x3a46f([0x45,0x43,0x44,0x53,0x41]),[_0x3a46f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a46f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a46f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d1b77[_0x3a46f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a46f([0x6e,0x61,0x6d,0x65])]:_0x3a46f([0x45,0x43,0x44,0x53,0x41]),[_0x3a46f([0x68,0x61,0x73,0x68])]:{[_0x3a46f([0x6e,0x61,0x6d,0x65])]:_0x3a46f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x93e2b8,_0x1130cd,_0x85340e)||(_0x3cd873=!0x1);}}function _0xef3a5b(_0x19d2ed){return _0x19d2ed[_0x3a46f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a46f([0x65,0x79]))?JSON[_0x3a46f([0x70,0x61,0x72,0x73,0x65])](_0x2c9659(_0x19d2ed)):null;}function _0x2c9659(_0xa046f7){return window[_0x3a46f([0x61,0x74,0x6f,0x62])](_0xa046f7[_0x3a46f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a46f([0x2b]))[_0x3a46f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a46f([0x2f])));}function _0x2eacee(_0x2ab2f7){let _0x5d1fa4=0x1505;function _0x4e162e(_0x1e3ec7){for(let _0x4484cf=0x0;_0x4484cf<_0x1e3ec7[_0x3a46f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4484cf++){const _0x4ee9da=_0x1e3ec7[_0x3a46f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4484cf);_0x5d1fa4=(_0x5d1fa4<<0x5)+_0x5d1fa4+_0x4ee9da,_0x5d1fa4&=_0x5d1fa4;}}function _0x155097(_0x33b4ba){Array[_0x3a46f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33b4ba)?_0x33b4ba[_0x3a46f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x155097):_0x33b4ba&&typeof _0x33b4ba==_0x3a46f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a46f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33b4ba)[_0x3a46f([0x73,0x6f,0x72,0x74])]()[_0x3a46f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f46ba,_0x5cbf46])=>{_0x4e162e(_0x2f46ba),_0x155097(_0x5cbf46);}):_0x4e162e(window[_0x3a46f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33b4ba));}return _0x155097(_0x2ab2f7),_0x5d1fa4>>>0x0;}function _0x1aeef3(_0x31968a){return _0x31968a[_0x3a46f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a46f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a46f([0x30]));}function _0x52a8dd(_0x42ce77){return _0x42ce77[_0x3a46f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a46f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a46f([0x6a,0x6f,0x69,0x6e])]('');}function _0xd23f90(_0x6f092b){return _0x40d8bc[_0x3a46f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a46f([0x68,0x61,0x73])](_0x6f092b);}function _0x2f8b0b(_0x4bc89a){return _0x40d8bc[_0x3a46f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a46f([0x67,0x65,0x74])](_0x4bc89a);}function _0x3c18db(){}function _0x3a46f(_0x2afefa){return _0x2afefa['map'](_0x1485ab=>String['fromCharCode'](_0x1485ab))['join']('');}_0xcc6b0d(await _0x2ab071());}(this);}['createRevision'](_0x3b80d){const _0x3359f5=this['editor']['plugins']['get']('Users');return new h({'id':_0x3b80d['id'],'name':_0x3b80d['name'],'creator':_0x3b80d['creatorId']?_0x3359f5['getUser'](_0x3b80d['creatorId']):null,'diffData':_0x3b80d['diffData']||_0x3b80d['data'],'authors':_0x3b80d['authorsIds']['map'](_0xf06915=>_0x3359f5['getUser'](_0xf06915)),'createdAt':new Date(_0x3b80d['createdAt']),'attributes':_0x3b80d['attributes'],'fromVersion':_0x3b80d['fromVersion'],'toVersion':_0x3b80d['toVersion']});}['addRevision'](_0x3c60c0,_0x525b97=0x0){this['_revisions']['add'](_0x3c60c0,_0x525b97);}['getRevision'](_0x462b49){return this['_revisions']['get'](_0x462b49);}['getRevisions'](_0x13e3e8={'toJSON':!0x1}){const _0x37f5bc=Array['from'](this['_revisions']);return _0x37f5bc['reverse'](),_0x13e3e8['toJSON']?_0x37f5bc['map'](_0x428046=>_0x428046['toJSON']()):_0x37f5bc;}['getIndex'](_0x34f515){return this['_revisions']['getIndex'](_0x34f515);}['getEarlierVisibleRevision'](_0xad8e19){const [,_0x53aa02]=this['getRevisionsIterator'](_0xad8e19,{'direction':'earlier'});return _0x53aa02;}['getLaterVisibleRevision'](_0x57bbcd){const [,_0x19d065]=this['getRevisionsIterator'](_0x57bbcd,{'direction':'later'});return _0x19d065;}['getRevisionsInDiff'](_0x1008f7){const _0x337ccf=[];for(const _0x48c2f2 of this['getRevisionsIterator'](_0x1008f7['newRevisionId']))if(_0x337ccf['push'](_0x48c2f2),_0x48c2f2['id']===_0x1008f7['oldRevisionId'])break;return _0x337ccf;}*['getRevisionsIterator'](_0x3b9caf,{direction:_0x4ab628='earlier',filter:_0x108dbb=()=>!0x0}={}){const _0x4878aa='earlier'===_0x4ab628?0x1:-0x1;let _0xb4f87c=this['_revisions']['get'](_0x3b9caf),_0x18d2f2=this['getIndex'](_0xb4f87c);for(yield _0xb4f87c;_0xb4f87c;){if(_0x18d2f2+=_0x4878aa,_0xb4f87c=this['getRevision'](_0x18d2f2),!_0xb4f87c)return;_0x108dbb(_0xb4f87c)&&(yield _0xb4f87c);}}}class V extends _0x2ff424{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x58145a,'c'],[_0x26b21c,'a'],[_0x587dca,'e'],[_0x4d5e84,'r'],[_0x17cd85,'u']]);['_typeCharToViewClass']=new Map([['c',_0x58145a],['a',_0x26b21c],['e',_0x587dca],['r',_0x4d5e84],['u',_0x17cd85]]);async['loadRevisionData'](_0x347cd8,_0x23751f){if(_0x347cd8['diffData']||!_0x23751f)return;const _0x534281=this['editor']['config']['get']('collaboration.channelId'),_0x354d98=await _0x23751f['getRevision']({'channelId':_0x534281,'revisionId':_0x347cd8['id']});_0x347cd8['diffData']=_0x354d98['diffData'];}['getRevisionDocumentData'](_0x1f6d3c){const _0x5e00e9={};for(const _0x312a74 in _0x1f6d3c['diffData']){if(_0x1f6d3c['diffData'][_0x312a74]['attachChange']&&!_0x1f6d3c['diffData'][_0x312a74]['attachChange']['isAttached'])continue;const _0x206258=this['_removeRevisionMarkers'](JSON['parse'](_0x1f6d3c['diffData'][_0x312a74]['insertions'])),_0x3cf2be=this['editor']['editing']['view']['document'],_0x2a304f=new _0x391b85(_0x3cf2be,_0x206258['map'](_0x4c71a9=>this['_getViewFromDiffObj'](_0x4c71a9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5e00e9[_0x312a74]=this['editor']['data']['processor']['toData'](_0x2a304f),this['editor']['data']['processor']['useFillerType']('default');}return _0x5e00e9;}['getRevisionRootsAttributes'](_0xd66a1b){const _0x4e1dc5={};for(const _0x15c9b8 in _0xd66a1b['diffData'])_0xd66a1b['diffData'][_0x15c9b8]['attachChange']&&!_0xd66a1b['diffData'][_0x15c9b8]['attachChange']['isAttached']||(_0x4e1dc5[_0x15c9b8]=_0xd66a1b['diffData'][_0x15c9b8]['attributesAfter']||{});return _0x4e1dc5;}['_getTypeCharForViewElement'](_0xa488c9){return this['_viewClassToTypeChar']['get'](_0xa488c9['constructor']);}['_getViewFromDiffObj'](_0x568c60,_0x578a9c){const _0x24abe2=this['editor']['editing']['view']['document'];if('string'==typeof _0x568c60)return new _0x2d46cf(_0x24abe2,_0x568c60);{let _0x558ffe,_0x42a013;_0x42a013='u'==_0x568c60['type']||'r'==_0x568c60['type']?[]:_0x568c60['children']['map'](_0x575064=>this['_getViewFromDiffObj'](_0x575064,_0x578a9c));const _0x256452=this['_typeCharToViewClass']['get'](_0x568c60['type'])||_0x5ea819,_0x12183e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x558ffe=new _0x256452(_0x24abe2,_0x568c60['name'],_0x568c60['attributes'],_0x42a013),'u'==_0x568c60['type']&&_0x568c60['children'][0x0]){const _0x17758f=_0x568c60['children'][0x0];if(_0x558ffe['render']=function(_0x339e66){const _0x17ca1c=_0x339e66['createElement']('div');return _0x17ca1c['innerHTML']=_0x17758f,_0x17ca1c['childNodes'][0x0];},_0x578a9c){const _0x20b0e4=new _0x391b85(_0x24abe2);_0x20b0e4['_appendChild'](_0x558ffe);const _0x4ea08c=Array['from'](_0x12183e['viewChildrenToDom'](_0x20b0e4,{'bind':!0x1})),_0x35971f=_0x12183e['domDocument']['createElement']('div');_0x35971f['append'](..._0x4ea08c),_0x558ffe=Array['from'](_0x12183e['domChildrenToView'](_0x35971f))[0x0];}}else{if('r'==_0x568c60['type']&&_0x568c60['children'][0x0]){const _0x412045=_0x568c60['children'][0x0];if(_0x558ffe['render']=function(_0x36d02c){_0x36d02c['innerHTML']=_0x412045;},_0x578a9c){const _0x172077=new _0x391b85(_0x24abe2);_0x172077['_appendChild'](_0x558ffe);const _0x479a06=Array['from'](_0x12183e['viewChildrenToDom'](_0x172077,{'bind':!0x1})),_0x1c8fff=_0x12183e['domDocument']['createElement']('div');_0x1c8fff['append'](..._0x479a06);const _0x5d26d8=Array['from'](_0x12183e['domChildrenToView'](_0x1c8fff));_0x5d26d8['length']>0x1?_0x558ffe['_appendChild'](_0x5d26d8):_0x558ffe=_0x5d26d8[0x0];}}}if(_0x568c60['customProperties']){for(const [_0x15e2f6,_0x41959c]of _0x568c60['customProperties'])_0x558ffe['_setCustomProperty'](_0x15e2f6,_0x41959c);}const _0x3ccb79=void 0x0===_0x568c60['fillerOffset']?null:_0x568c60['fillerOffset'];return null!==_0x3ccb79&&(_0x558ffe['getFillerOffset']=()=>_0x3ccb79),_0x558ffe;}}['_makeModelFromViewString'](_0x1bd0c0){const _0x55ebca=JSON['parse'](_0x1bd0c0),_0x26f4e4=this['editor']['editing']['view']['document'],_0x3cea8f=new _0x391b85(_0x26f4e4,_0x55ebca['map'](_0x57d845=>this['_getViewFromDiffObj'](_0x57d845,!0x0)));return this['editor']['data']['toModel'](_0x3cea8f);}['_removeRevisionMarkers'](_0x10c204){return(_0x10c204=_0x10c204['filter'](_0x10389f=>!_0x10389f['name']||'revision-start'!==_0x10389f['name']&&'revision-end'!==_0x10389f['name']))['forEach'](_0x4e80a3=>{'string'!=typeof _0x4e80a3&&(_0x4e80a3['children']=this['_removeRevisionMarkers'](_0x4e80a3['children']),_0x4e80a3['attributes']=_0x4e80a3['attributes']['filter'](_0x1b5f2e=>!_0x1b5f2e[0x0]['startsWith']('data-revision-')));}),_0x10c204;}}function g(_0xf291ef,_0x45eb94,_0x561b6f){const t=_0xf291ef['t'];switch(_0x45eb94){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'},_0x561b6f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x561b6f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x2ff424{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbcecfe,I,V,_0x3388fd];}constructor(_0x45cfaa){super(_0x45cfaa),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3cb9b6=_0x3ac6ae();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3cb9b6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xbbfc6=this['repository']['getRevision'](0x0),_0x52badf=_0xbbfc6&&null===_0xbbfc6['creator']?_0xbbfc6:null;if(this['_continueCurrentRevision']=!!_0x52badf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x348dca=this['_source']['getCurrentRevisionId'](),_0x236290=this['repository']['getRevision'](_0x348dca);if(_0x236290)this['_startingVersion']=_0x236290['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x26c172=this['_source']['history']['_operations']['find'](_0x3c80e3=>!_0x3c80e3['_isInit']),_0x3e2c0f=_0x26c172?_0x26c172['baseVersion']:this['_source']['history']['version'];_0xbbfc6?(_0xbbfc6['toVersion']<_0x3e2c0f&&_0xbbfc6['_update']({'toVersion':_0x3e2c0f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x52badf['id'],this['_startingVersion']=_0x52badf['fromVersion']):(this['_startingVersion']=_0xbbfc6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3e2c0f,this['_continueCurrentRevision']=!0x1);}}else _0x52badf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x52badf['toVersion'],this['editor']['model']['document']['history']['version']),_0x52badf['fromVersion']===_0x52badf['toVersion']?(0x0!==_0x52badf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x52badf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x52badf['id'],this['_startingVersion']=_0x52badf['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',_0x5941ad=>!_0x5941ad),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1321e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dbb15;for(const _0x4f95c5 in _0x1321e4){const _0x433187=_0x4f95c5,_0x1dba59=_0x1321e4[_0x433187];if('revisionHistoryLicenseKeyValid'==_0x1dba59||'revisionHistoryLicenseKeyInvalid'==_0x1dba59||'revisionHistoryLicenseKeyExpired'==_0x1dba59||'revisionHistoryLicenseKeyDomainLimit'==_0x1dba59||'revisionHistoryLicenseKeyNotAllowed'==_0x1dba59||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1dba59||'revisionHistoryLicenseKeyTrialLimit'==_0x1dba59||'revisionHistoryLicenseKeyUsageLimit'==_0x1dba59){delete _0x1321e4[_0x433187],_0x5dbb15=_0x1dba59,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5dbb15&&_0x1321e4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5dbb15&&_0x1321e4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5dbb15&&_0x1321e4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5dbb15&&_0x1321e4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5dbb15&&_0x1321e4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5dbb15&&_0x1321e4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5dbb15&&_0x1321e4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x230206=this['repository']['getRevision'](0x0),_0x1f7e07=await this['getRevisionDocumentData'](_0x230206),_0x3a0223=await this['getRevisionRootsAttributes'](_0x230206);this['_replaceEditorDataWithRevisionData'](_0x1f7e07,_0x3a0223);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d4265){this['_source']=_0x3d4265;}async['update'](){const _0x1fe90d=await this['_source']['getLatestVersion']();if(_0x1fe90d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4b2b5e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1fe90d});_0x4b2b5e['authors']=_0x4b2b5e['authorsIds']['map'](_0x12202f=>this['editor']['plugins']['get']('Users')['getUser'](_0x12202f)),this['currentRevision']['_update'](_0x4b2b5e);}}async['saveRevision'](_0x334f90={},_0x27de80=null){const _0x34893e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x27de80>this['currentRevision']['toVersion']&&(_0x27de80=null),null===_0x27de80&&(_0x27de80=await this['_source']['getLatestVersion']());const _0x3cfa3a=this['_getFromVersion'](_0x27de80),_0x35cc73=this['buildRevisionData']({'from':_0x3cfa3a,'to':_0x27de80});if(this['currentRevision']['toVersion']<_0x27de80){const _0x58cac1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x27de80,'to':_0x27de80});_0x58cac1['authors']=[],_0x58cac1['authorsIds']=[],_0x58cac1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x58cac1,!0x0),delete _0x58cac1['authors'],_0x34893e['push'](_0x58cac1);}_0x334f90['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x334f90['name']=_0x334f90['name']||null,_0x334f90['id']=_0x334f90['id']||_0x3ac6ae(),_0x334f90={..._0x334f90,..._0x35cc73};const _0x26b0f5=this['addRevisionData'](_0x334f90);_0x34893e['push'](_0x334f90);const _0x1e2652=this['repository']['getIndex'](_0x26b0f5);if(0x0!==_0x1e2652){const _0x4e63ff=this['repository']['getRevision'](_0x1e2652-0x1);if(_0x4e63ff['fromVersion']!==_0x27de80){const _0x4d5c3b=this['_revisionDataBuilder']['getData'](_0x27de80,_0x4e63ff['toVersion']),_0xfe4bc0={'id':_0x4e63ff['id'],'diffData':_0x4d5c3b['diffData'],'authorsIds':_0x4d5c3b['authorsIds'],'authors':_0x4d5c3b['authorsIds']['map'](_0x2b9cca=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b9cca)),'fromVersion':_0x27de80};_0x4e63ff===this['currentRevision']&&(_0xfe4bc0['createdAt']=new Date(_0x334f90['createdAt']['getTime']()+0xa)),_0x4e63ff['_update'](_0xfe4bc0,!0x0),delete _0xfe4bc0['authors'],_0x34893e['push'](_0xfe4bc0);}}if(this['adapter']){for(const _0x11bce2 of _0x34893e)this['_bufferUpdate'](_0x11bce2['id'],_0x11bce2,!0x0);this['sendBufferedUpdates']();}return _0x26b0f5;}['addRevisionData'](_0x2f168b){const _0x27baf8=this['repository']['createRevision'](_0x2f168b);return this['adapter']&&_0x27baf8['on']('_update',(_0x5f44c0,_0x23c64f,_0x295386)=>{_0x295386||(this['_bufferUpdate'](_0x23c64f['id'],_0x23c64f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x27baf8,this['_findInsertionIndex'](_0x27baf8)),_0x27baf8;}async['getRevisionDocumentData'](_0x217b78){return await this['_utils']['loadRevisionData'](_0x217b78,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x217b78);}async['getRevisionRootsAttributes'](_0x18140e){return await this['_utils']['loadRevisionData'](_0x18140e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x18140e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb7aff8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3d98ac=0x0;_0x3d98ac<_0xb7aff8['length'];_0x3d98ac++){const _0x50601d=_0xb7aff8[_0x3d98ac];let _0x403922=!0x1;for(const _0x21c27c of Object['keys'](_0x50601d))void 0x0===_0x50601d[_0x21c27c]?delete _0x50601d[_0x21c27c]:'id'!==_0x21c27c&&(_0x403922=!0x0);_0x403922||(_0xb7aff8[_0x3d98ac]=null);}if(_0xb7aff8=_0xb7aff8['filter'](_0x3b33d3=>null!==_0x3b33d3),!_0xb7aff8['length'])return;for(let _0x240f9f=0x0;_0x240f9f<_0xb7aff8['length'];_0x240f9f++){const _0x3c741f=_0xb7aff8[_0x240f9f];void 0x0!==_0x3c741f['fromVersion']&&void 0x0===_0x3c741f['toVersion']&&(_0x3c741f['toVersion']=this['repository']['getRevision'](_0x3c741f['id'])['toVersion']),void 0x0!==_0x3c741f['toVersion']&&void 0x0===_0x3c741f['fromVersion']&&(_0x3c741f['fromVersion']=this['repository']['getRevision'](_0x3c741f['id'])['fromVersion']);}const _0x51c899=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb7aff8,_0x51c899)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xb58422=>{if(_0xb58422){for(const _0x1b1a84 of _0xb58422)this['setRevisionData']({'id':_0x1b1a84['id'],'createdAt':_0x1b1a84['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x286658=null,from:_0x19ce1d=null,to:_0x4d17c0=null}){_0x19ce1d=null!==_0x19ce1d?_0x19ce1d:_0x286658['fromVersion'],_0x4d17c0=null!==_0x4d17c0?_0x4d17c0:_0x286658['toVersion'];const _0x443239=this['_revisionDataBuilder']['getData'](_0x19ce1d,_0x4d17c0),_0x51d6fc={'diffData':_0x443239['diffData'],'authorsIds':_0x443239['authorsIds'],'fromVersion':_0x19ce1d,'toVersion':_0x4d17c0};if(!_0x286658||_0x4d17c0!==_0x286658['toVersion']){const _0x25cff0=_0x4d17c0-0x1,_0x3cf82a=this['_source']['history']['getOperation'](_0x25cff0);_0x51d6fc['createdAt']=_0x3cf82a&&_0x3cf82a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x19ce1d===this['_loadedStateData']['fromVersion']){for(const _0x42b1bc of this['_loadedStateData']['authors'])_0x51d6fc['authorsIds']['includes'](_0x42b1bc['id'])||_0x51d6fc['authorsIds']['push'](_0x42b1bc['id']);}return _0x51d6fc;}['_bufferUpdate'](_0x416aa3,_0x55869b,_0x59001d){if(this['_bufferedUpdates']['has'](_0x416aa3)){const _0xf08267=this['_bufferedUpdates']['get'](_0x416aa3);_0x55869b=_0x59001d?{..._0xf08267,..._0x55869b}:{..._0x55869b,..._0xf08267};}this['_bufferedUpdates']['set'](_0x416aa3,_0x55869b);}['setRevisionData'](_0x41a69d){const _0x2e789d=this['repository']['getRevision'](_0x41a69d['id']);if(_0x41a69d['createdAt']&&(_0x41a69d['createdAt']=new Date(_0x41a69d['createdAt'])),_0x41a69d['authorsIds']){const _0x2e9191=this['editor']['plugins']['get']('Users');_0x41a69d['authors']=_0x41a69d['authorsIds']['map'](_0x2c4b39=>_0x2e9191['getUser'](_0x2c4b39));}_0x2e789d['_update'](_0x41a69d,!0x0);}['_createInitialRevision'](_0x41f9de){const _0x56f0bf=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x56f0bf)this['_initialRevisionId']=_0x56f0bf['id'];else{const _0x3b81b1=!this['editor']['model']['document']['roots']['find'](_0x20b28e=>this['editor']['model']['hasContent'](_0x20b28e)),_0x177c9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a06b=g(this['editor']['locale'],_0x3b81b1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x41f9de,'to':_0x41f9de,'id':this['_initialRevisionId'],'name':_0x3a06b,'creatorId':_0x177c9b});}}['_createCurrentRevision'](_0x1bfb21){const _0xa0f416=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xa0f416),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1bfb21,'to':_0x1bfb21,'id':_0xa0f416,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x1970e2,_0x85b735){let _0x2f9b07=this['editor']['config']['get']('initialData'),_0x2e3e79=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2f9b07){_0x2f9b07={};for(const _0x50b0d4 of this['editor']['model']['document']['getRootNames']())_0x2f9b07[_0x50b0d4]='';}if('string'==typeof _0x2f9b07&&(_0x2f9b07={'main':_0x2f9b07}),void 0x0===_0x2e3e79){_0x2e3e79={};for(const _0x3adcfc of this['editor']['model']['document']['getRootNames']())_0x2e3e79[_0x3adcfc]={};}let _0x3ccf04=!0x1;const _0x4d7c35=Object['keys'](_0x2f9b07),_0x2db884=Object['keys'](_0x1970e2);for(const _0x27abbb of _0x4d7c35){if(_0x2f9b07[_0x27abbb]!==_0x1970e2[_0x27abbb]&&''!==_0x2f9b07[_0x27abbb]['trim']()){_0x3ccf04=!0x0;break;}if(!_0x55c707(_0x2e3e79[_0x27abbb],_0x85b735[_0x27abbb])&&Object['keys'](_0x2e3e79[_0x27abbb])['length']>0x0){_0x3ccf04=!0x0;break;}}_0x3ccf04||(_0x3ccf04=_0x2db884['some'](_0x457d8c=>!this['editor']['model']['document']['getRoot'](_0x457d8c))),_0x3ccf04&&_0x342f3a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2f9b07,'editorRootsAttributes':_0x2e3e79,'revisionData':_0x1970e2,'revisionRootsAttributes':_0x85b735}),this['editor']['config']['set']('initialData',_0x1970e2),this['editor']['config']['set']('rootsAttributes',_0x85b735);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a22a4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a22a4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57b6a5){const _0x3618b6=this['repository']['getRevisions']();_0x3618b6['reverse']();let _0x13daf9=0x0;for(;_0x13daf9<_0x3618b6['length'];){const _0x50edbc=_0x3618b6[_0x13daf9];if(_0x50edbc===this['currentRevision']){_0x13daf9++;continue;}if(_0x50edbc['id']===this['_initialRevisionId'])break;const _0x4589ff=_0x57b6a5['toVersion']-_0x50edbc['toVersion']||_0x57b6a5['fromVersion']-_0x50edbc['fromVersion'];if(_0x4589ff>0x0)break;if(_0x4589ff<0x0)_0x13daf9++;else{if(!_0x57b6a5['creator']&&_0x50edbc['creator'])break;if(_0x50edbc['creator']||!_0x57b6a5['creator']){if(_0x57b6a5['createdAt']>_0x50edbc['createdAt'])break;_0x13daf9++;}else _0x13daf9++;}}return _0x13daf9;}['_getFromVersion'](_0x166fb2){const _0x40ee4d=this['repository']['getRevisions']();_0x40ee4d['reverse'](),_0x40ee4d['shift']();const _0xe9c552=_0x40ee4d['find'](_0x3ee158=>_0x3ee158['toVersion']<=_0x166fb2)['toVersion'];return _0xe9c552<this['_startingVersion']?this['_startingVersion']:_0xe9c552;}['_makeRevision']({name:_0x3a3b74,from:_0x1f32fa,to:_0x48766a,creatorId:_0x24fe94,id:_0x540877}){const _0x2443ec=this['buildRevisionData']({'from':_0x1f32fa,'to':_0x48766a});_0x2443ec['name']=_0x3a3b74,_0x2443ec['creatorId']=_0x24fe94,_0x2443ec['id']=_0x540877;const _0x30b252=this['addRevisionData'](_0x2443ec);return this['adapter']&&this['_bufferUpdate'](_0x2443ec['id'],_0x2443ec,!0x0),_0x30b252;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x497ba2){this['editor']=_0x497ba2,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'](_0x5e7ff1){this['source']=_0x5e7ff1;const _0x2673ef=new Map(),_0x39ba41=new Map(),_0x21fe0a=this['editor']['model']['document']['roots']['map'](_0x2b24c2=>_0x2b24c2['rootName']);for(const _0x4a7aeb of _0x21fe0a){const _0x4e3cca=this['editor']['model']['document']['getRoot'](_0x4a7aeb),_0x137a96=N(_0x4e3cca);_0x2673ef['set'](_0x4a7aeb,_0x137a96),_0x39ba41['set'](_0x4a7aeb,Object['fromEntries'](_0x4e3cca['getAttributes']()));}const _0x505fd4=Array['from'](this['editor']['model']['markers'])['map'](_0x413ace=>[_0x413ace['name'],_0x413ace['getRange']()]),_0x507429=this['source']['version'];this['_saveMetaData'](_0x507429,_0x2673ef,_0x505fd4,_0x39ba41),this['_startingRevisionId']=this['_revisionId'];const _0x1e7221=new Map(),_0x403ed7=new Map();for(const _0xa023b9 of _0x21fe0a){const _0x3f986d=P(_0xa023b9);_0x1e7221['set'](_0xa023b9,_0x3f986d),_0x403ed7['set'](_0xa023b9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e7221,[],_0x403ed7);}['getData'](_0xd70ae4,_0x3cfbda){if(this['_lastFrom']===_0xd70ae4&&this['_lastTo']<=_0x3cfbda)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3cfbda,!0x0);else{if(!this['_savedMetaData']['has'](_0xd70ae4)){const _0xd717ca=this['_getPreviousFrom'](_0xd70ae4);this['_calculateMetaData'](_0xd717ca,_0xd70ae4,!0x1);}this['_calculateMetaData'](_0xd70ae4,_0x3cfbda,!0x0);}return this['_lastFrom']=_0xd70ae4,this['_lastTo']=_0x3cfbda,this['_getState']();}['loadState'](_0x5742fe){const _0xd092f4=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5742fe['fromVersion'],this['_lastTo']=_0x5742fe['toVersion'];for(const _0xe09bf0 in _0x5742fe['diffData']){const _0x355980=_0x5742fe['diffData'][_0xe09bf0]['attachChange'],_0x19adda=_0x451a6d(_0x5742fe['diffData'][_0xe09bf0]['attributesBefore'])||{},_0x5edb53=_0xd092f4['_makeModelFromViewString'](_0x5742fe['diffData'][_0xe09bf0]['deletions']);_0x5edb53['rootName']=_0xe09bf0,_0x5edb53['_isAttached']=!_0x355980||!_0x355980['isAttached'],_0x5edb53['isAttached']=()=>_0x5edb53['_isAttached'],this['_baseRoots']['set'](_0xe09bf0,_0x5edb53),this['_baseRootsAttributes']['set'](_0xe09bf0,_0x19adda),_0x355980&&this['_touchedRoots']['set'](_0xe09bf0,_0x355980);const _0x37be27=this['_makeIdsRoot'](_0x5edb53);this['_baseIdsRoots']['set'](_0xe09bf0,_0x37be27);for(const [_0x11557c,_0x45d755]of _0x5edb53['markers']){if(!_0x11557c['startsWith']('revision:'))continue;const _0x4fecf5=_0x11557c['split'](':')[0x2];for(const _0x5a4d05 of _0x45d755['getWalker']({'singleCharacters':!0x0})){const _0x5afe4f=this['_getVidAttributeName'](_0x5a4d05),_0x3be11a='elementEnd'==_0x5a4d05['type']?_0x5a4d05['previousPosition']['path']['slice'](0x0,-0x1):_0x5a4d05['previousPosition']['path'],_0x37c406=_0x37be27['getNodeByPath'](_0x3be11a)['getAttribute'](_0x5afe4f);this['_touched']['set'](_0x37c406,{'userId':_0x4fecf5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3adceb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x409658=>!this['_touched']['has'](_0x409658));let _0x4fc86d=0x0;const _0x473edc=new Map();for(const _0x4af143 in _0x5742fe['diffData']){const _0x3c2ac7=_0x5742fe['diffData'][_0x4af143]['attachChange'],_0x42ccb3=_0x451a6d(_0x5742fe['diffData'][_0x4af143]['attributesAfter'])||{},_0x2c3847=_0xd092f4['_makeModelFromViewString'](_0x5742fe['diffData'][_0x4af143]['insertions']);_0x2c3847['rootName']=_0x4af143,_0x2c3847['_isAttached']=!_0x3c2ac7||_0x3c2ac7['isAttached'],_0x2c3847['isAttached']=()=>_0x2c3847['_isAttached'],this['_diffRoots']['set'](_0x4af143,_0x2c3847),this['_diffRootsAttributes']['set'](_0x4af143,_0x42ccb3);const _0x3fb452=this['_makeIdsRoot'](_0x2c3847,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4af143,_0x3fb452),_0x473edc['set'](_0x4af143,_0x2c3847['isAttached']()?_0x42ccb3:{});for(const [_0x11a638,_0x2270d0]of _0x2c3847['markers']){if(!_0x11a638['startsWith']('revision:'))continue;const _0x33da2b=_0x11a638['split'](':')[0x2];for(const _0x423610 of _0x2270d0['getWalker']({'singleCharacters':!0x0})){const _0x4b69c0=this['_getVidAttributeName'](_0x423610),_0x4067c3=this['_revisionId']++,_0xf27acf='elementEnd'==_0x423610['type']?_0x423610['previousPosition']['path']['slice'](0x0,-0x1):_0x423610['previousPosition']['path'];_0x3fb452['getNodeByPath'](_0xf27acf)['_setAttribute'](_0x4b69c0,_0x4067c3),this['_touched']['set'](_0x4067c3,{'userId':_0x33da2b});}}for(const _0x251c3c of this['editor']['model']['createRangeIn'](_0x2c3847)['getWalker']({'singleCharacters':!0x0})){const _0x4337fb=this['_getVidAttributeName'](_0x251c3c),_0x3dec4e='elementEnd'==_0x251c3c['type']?_0x251c3c['previousPosition']['path']['slice'](0x0,-0x1):_0x251c3c['previousPosition']['path'],_0x5f88f6=_0x3fb452['getNodeByPath'](_0x3dec4e);_0x5f88f6['getAttribute'](_0x4337fb)>0x0||_0x5f88f6['_setAttribute'](_0x4337fb,_0x3adceb[_0x4fc86d++]);}for(const [_0x4c94fe,_0x1e35a3]of _0x2c3847['markers'])_0x4c94fe['startsWith']('revision:')||this['_markers']['set'](_0x4c94fe,_0x1e35a3);}const _0x225062=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x225062),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x225062,0x1));const _0x961708=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x961708),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x961708,0x1));const _0x521e7f=Array['from'](this['_diffRoots'])['map'](([_0x377c86,_0x23cc30])=>[_0x377c86,N(_0x23cc30)]);this['_saveMetaData'](this['_lastTo'],_0x521e7f,this['_markers'],_0x473edc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1d4eb3,_0x109378,_0x2da3fa,_0x49f6f7){const _0x21fc66=new Map(_0x109378),_0x17d244=new Map(_0x451a6d(_0x49f6f7)),_0xd26287=new Map();for(const [_0xe46010,_0x310538]of _0x2da3fa)_0xd26287['set'](_0xe46010,{'start':_0x310538['start']['clone'](),'end':_0x310538['end']['clone'](),'rootName':_0x310538['root']['rootName']});this['_savedMetaData']['set'](_0x1d4eb3,{'roots':_0x21fc66,'markers':_0xd26287,'rootsAttributes':_0x17d244});}['_removeMetaData'](_0x47a20e){this['_savedMetaData']['delete'](_0x47a20e);}['_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'](_0x5e3da9,_0x3987c2=null){let _0x184dca=null;_0x5e3da9['is']('documentFragment')||(_0x184dca=new ut(_0x5e3da9['name'],{'vid_start':null===_0x3987c2?this['_revisionId']++:_0x3987c2++}));const _0x354962=[];for(const _0x419df4 of _0x5e3da9['getChildren']())if(_0x419df4['is']('element')){_0x354962['push'](this['_makeIdsRoot'](_0x419df4,_0x3987c2));const _0x468ea2=_0x354962[_0x354962['length']-0x1];null!==_0x3987c2&&(_0x3987c2=_0x468ea2['is']('element','$text')?_0x468ea2['getAttribute']('vid')+0x1:_0x468ea2['getAttribute']('vid_end')+0x1);}else{for(let _0x4771d3=0x0;_0x4771d3<_0x419df4['offsetSize'];_0x4771d3++)_0x354962['push'](new ut('$text',{'vid':null===_0x3987c2?this['_revisionId']++:_0x3987c2++}));}if(_0x5e3da9['is']('documentFragment')){const _0x36cc9e=P(_0x5e3da9['rootName']);return _0x36cc9e['_insertChild'](0x0,_0x354962),_0x36cc9e;}return _0x184dca['_setAttribute']('vid_end',null===_0x3987c2?this['_revisionId']++:_0x3987c2++),_0x184dca['_insertChild'](0x0,_0x354962),_0x184dca;}['_calculateMetaData'](_0x2dd683,_0xafea7f,_0x24b509){this['_reset']();const {roots:_0x2ae697,markers:_0x53c510,rootsAttributes:_0x7e2a11}=this['_savedMetaData']['get'](_0x2dd683);this['_baseRoots']=new Map(_0x2ae697),this['_baseRootsAttributes']=new Map(_0x451a6d(_0x7e2a11));for(const [_0x1efd67,_0x47903f]of this['_baseRoots'])if('$graveyard'!==_0x1efd67&&(this['_diffRoots']['set'](_0x1efd67,N(_0x47903f)),this['_diffRootsAttributes']=new Map(_0x451a6d(_0x7e2a11)),_0x24b509)){const _0x4dc55e=this['_revisionId'];this['_idsRoots']['set'](_0x1efd67,this['_makeIdsRoot'](_0x47903f)),this['_baseIdsRoots']['set'](_0x1efd67,this['_makeIdsRoot'](_0x47903f,_0x4dc55e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x24b509&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x433faf,_0x16ce83]of _0x53c510){const _0x4654dd=this['_baseRoots']['get'](_0x16ce83['rootName']),_0x24f557=this['_diffRoots']['get'](_0x16ce83['rootName']),_0x2c612b=new lt(this['_fixPosition'](_0x16ce83['start'],_0x4654dd),this['_fixPosition'](_0x16ce83['end'],_0x4654dd)),_0x1e5dee=this['_fixRange'](_0x2c612b,_0x24f557);_0x4654dd['markers']['set'](_0x433faf,_0x2c612b),this['_markers']['set'](_0x433faf,_0x1e5dee);}this['_applyOperations'](_0x2dd683,_0xafea7f,_0x24b509);}['_applyOperations'](_0x3d2aa5,_0x5190f7,_0x4bbf40){for(const _0x1b8a70 of this['source']['getOperations'](_0x3d2aa5,_0x5190f7))this['_handleOperation'](_0x1b8a70,_0x4bbf40);for(const _0x432acd of this['_diffRoots']['values']())_0x432acd['markers']['clear']();for(const [_0x23f26b,_0xf10282]of this['_markers']){this['_diffRoots']['get'](_0xf10282['root']['rootName'])['markers']['set'](_0x23f26b,_0xf10282['clone']());}const _0xb44f4=new Map(),_0x497fde=new Map();for(const [_0x50ad1d,_0x46e494]of this['_diffRoots'])_0xb44f4['set'](_0x50ad1d,N(_0x46e494)),_0x497fde['set'](_0x50ad1d,this['_diffRootsAttributes']['get'](_0x50ad1d));this['_saveMetaData'](_0x5190f7,_0xb44f4,this['_markers'],_0x497fde);}['_getPreviousFrom'](_0x44a05d){const _0x301cb2=Array['from'](this['_savedMetaData']['keys']());_0x301cb2['sort']((_0x522f3d,_0x48134d)=>_0x522f3d-_0x48134d),_0x301cb2['reverse']();for(const _0x2fc1fc of _0x301cb2)if(_0x2fc1fc<_0x44a05d)return _0x2fc1fc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b145a,_0x55c1df){const _0x3703b2=Array['from'](_0x55c1df['markers'])['map'](([_0x3668d9,_0x15f724])=>[_0x3668d9,this['_fixRange'](_0x15f724,_0x5b145a)]);_0x5b145a['markers']=new Map(_0x3703b2);}['_transformMarkers'](_0xf0f239){for(const _0x529a02 of this['_markers']['values']()){const _0x55ca23=_0x529a02['getTransformedByOperation'](_0xf0f239),_0x2a8238=lt['_createFromRanges'](_0x55ca23);_0x529a02['start']=_0x2a8238['start'],_0x529a02['end']=_0x2a8238['end'];}}['_handleOperation'](_0x2706d6,_0x191b61){if('addRoot'!=_0x2706d6['type']&&'detachRoot'!=_0x2706d6['type']){if('insert'==_0x2706d6['type']){const _0x167100=_0x2706d6['position']['root']['rootName'];this['_diffRoots']['has'](_0x167100)||(this['_diffRoots']['set'](_0x167100,P(_0x167100,!0x0)),this['_diffRootsAttributes']['set'](_0x167100,{}),_0x191b61&&this['_idsRoots']['set'](_0x167100,P(_0x167100,!0x0)));}else{if('addRootAttribute'==_0x2706d6['type']||'removeRootAttribute'==_0x2706d6['type']||'changeRootAttribute'==_0x2706d6['type'])return void this['_handleRootAttributeOperation'](_0x2706d6);'marker'==_0x2706d6['type']&&this['_handleMarkerOperation'](_0x2706d6);}if('marker'!==_0x2706d6['type']){const _0x50db44=this['_cloneOperation'](_0x2706d6,this['_diffRoots']);_0x50db44['_execute'](),this['_transformMarkers'](_0x50db44);}if(_0x191b61)switch(_0x2706d6['type']){case'insert':this['_handleInsertOperation'](_0x2706d6);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2706d6);break;case'merge':this['_handleMergeOperation'](_0x2706d6);break;case'split':this['_handleSplitOperation'](_0x2706d6);}}else this['_handleRootOperation'](_0x2706d6,_0x191b61);}['_cloneOperation'](_0xe77970,_0x512584){const _0x5154ac=_0xe77970['clone']();return _0x5154ac['_authorId']=_0xe77970['_authorId'],this['_fixOperation'](_0x5154ac,_0x512584),_0x5154ac;}['_getBaseVids'](_0xf5eacb){return _0xf5eacb['map'](_0x1e0080=>{const _0x3a8ea5=this['_getVidAttributeName'](_0x1e0080);return Number(_0x1e0080['item']['getAttribute'](_0x3a8ea5));});}['_generateTape'](_0x285ddc,_0x22229f){if(_0x285ddc['is']('element','$text'))_0x22229f['push']({'item':_0x285ddc,'type':'text'});else{_0x285ddc['is']('element')&&_0x22229f['push']({'item':_0x285ddc,'type':'elementStart'});for(const _0x29d325 of _0x285ddc['getChildren']())this['_generateTape'](_0x29d325,_0x22229f);_0x285ddc['is']('element')&&_0x22229f['push']({'item':_0x285ddc,'type':'elementEnd'});}return _0x22229f;}['_getState'](){const _0xb78327=new Map(this['_touched']),_0x3eac2f=new Map(_0xb78327),_0x4ba804=new Map(),_0x87762c={'insertions':{},'deletions':{}},_0x2c7239={'insertions':{},'deletions':{}},_0x4a967f=new Map(),_0x5a7cb2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a7cb2['delete']('$graveyard');for(const _0xe99e5 of _0x5a7cb2){const _0x4ce95e=this['_diffRoots']['get'](_0xe99e5)||P(_0xe99e5,!0x1),_0x247ca4=this['_baseRoots']['get'](_0xe99e5)||P(_0xe99e5,!0x1);_0x4ce95e['isAttached']()||_0x247ca4['isAttached']()?(_0x87762c['insertions'][_0xe99e5]=N(_0x4ce95e),_0x87762c['deletions'][_0xe99e5]=N(_0x247ca4),this['_copyMarkers'](_0x87762c['deletions'][_0xe99e5],_0x247ca4),this['_copyMarkers'](_0x87762c['insertions'][_0xe99e5],_0x4ce95e),_0x2c7239['insertions'][_0xe99e5]=this['_generateTape'](this['_idsRoots']['get'](_0xe99e5),[]),_0x2c7239['deletions'][_0xe99e5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xe99e5)||P(_0xe99e5,!0x1),[])):_0x5a7cb2['delete'](_0xe99e5);}for(const _0x189845 of _0x5a7cb2){const _0x1b1f96=_0x2c7239['insertions'][_0x189845];for(const _0x551546 of _0x1b1f96){const _0xe469d0=this['_getVidAttributeName'](_0x551546),_0xbe845e=_0x551546['item']['getAttribute'](_0xe469d0);_0x3eac2f['delete'](_0xbe845e),_0xbe845e>=this['_startingRevisionId']&&_0x4ba804['set'](_0xbe845e,_0xb78327['get'](_0xbe845e));}}for(const _0x2bf3bb of _0x5a7cb2){const _0x31455d=_0x2c7239['insertions'][_0x2bf3bb],_0x52df38=this['_getBaseVids'](_0x2c7239['deletions'][_0x2bf3bb]);let _0x265a18=0x0;for(const _0x48ae88 of _0x31455d){const _0x4824bb=this['_getVidAttributeName'](_0x48ae88),_0x4bcd74=_0x48ae88['item']['getAttribute'](_0x4824bb);if(!_0x4ba804['has'](_0x4bcd74)&&!_0x4a967f['has'](_0x4bcd74)){if(_0x3eac2f['has'](_0x4bcd74))_0x265a18++;else{if(_0x4bcd74!=_0x52df38[_0x265a18]){const _0x51835f=_0xb78327['get'](_0x4bcd74)||_0xb78327['get'](_0x52df38[_0x265a18]);for(;_0x4bcd74!=_0x52df38[_0x265a18];)_0x3eac2f['has'](_0x52df38[_0x265a18])||(_0x4a967f['set'](_0x52df38[_0x265a18],_0x51835f),_0xb78327['set'](_0x52df38[_0x265a18],_0x51835f)),_0x265a18++;}_0x265a18++;}}}}for(const _0x8ca152 of _0x5a7cb2){const _0x36ba93=_0x2c7239['insertions'][_0x8ca152];for(const _0x2af407 of _0x36ba93){const _0x34a279=this['_getVidAttributeName'](_0x2af407),_0x39679d=_0x2af407['item']['getAttribute'](_0x34a279);if(_0x4a967f['has'](_0x39679d)){const _0x2908fb=_0x4a967f['get'](_0x39679d);_0x3eac2f['has'](_0x39679d)||_0x3eac2f['set'](_0x39679d,{..._0x2908fb}),_0x4ba804['set'](_0x39679d,{..._0x2908fb});}}}for(const _0x3b01d9 of _0x3eac2f['keys']())_0x3b01d9>=this['_startingRevisionId']&&_0x3eac2f['delete'](_0x3b01d9);const _0x4e8be0=new Map();for(const _0x32d2b8 of _0x5a7cb2){let _0x97b63d=_0x2c7239['insertions'][_0x32d2b8];for(const _0x49e593 of _0x97b63d)if(_0x49e593['item']['is']('element','tableCell')){const _0x514d11=this['_getVidAttributeName'](_0x49e593),_0x29e425=_0x49e593['item']['getAttribute'](_0x514d11);if(_0x4ba804['has'](_0x29e425)){const _0x16ee5a=_0x49e593['item']['parent']['parent']['getAttribute']('vid_start'),_0x590fa7=_0x4e8be0['get'](_0x16ee5a)||new Set();_0x590fa7['add'](_0x4ba804['get'](_0x29e425)['userId']),_0x4e8be0['set'](_0x16ee5a,_0x590fa7);}}_0x97b63d=_0x2c7239['deletions'][_0x32d2b8];for(const _0x576a68 of _0x97b63d)if(_0x576a68['item']['is']('element','tableCell')){const _0x10c080=this['_getVidAttributeName'](_0x576a68),_0x32e133=_0x576a68['item']['getAttribute'](_0x10c080);if(_0x3eac2f['has'](_0x32e133)){const _0x501644=_0x576a68['item']['parent']['parent']['getAttribute']('vid_start'),_0x197071=_0x4e8be0['get'](_0x501644)||new Set();_0x197071['add'](_0x3eac2f['get'](_0x32e133)['userId']),_0x4e8be0['set'](_0x501644,_0x197071);}}for(const _0x24a7e7 of _0x4e8be0['keys']())(_0x4ba804['has'](_0x24a7e7)||_0x3eac2f['has'](_0x24a7e7))&&_0x4e8be0['delete'](_0x24a7e7);}for(const _0x1f9dd6 of _0x5a7cb2){const _0x1ef10a=_0x2c7239['insertions'][_0x1f9dd6];let _0x12ee87=null,_0x114e66=null;for(const _0x2eccb8 of _0x1ef10a){const _0x3cb214=this['_getVidAttributeName'](_0x2eccb8),_0x276ea2=_0x2eccb8['item']['getAttribute'](_0x3cb214),_0x144b13=_0x4e8be0['get'](_0x276ea2);_0x144b13&&'elementStart'==_0x2eccb8['type']&&(_0x12ee87=Array['from'](_0x144b13)[0x0],_0x114e66=_0x2eccb8['item']['getAttribute']('vid_end')),_0x12ee87&&(_0x3eac2f['set'](_0x276ea2,{'userId':_0x12ee87}),_0x4ba804['set'](_0x276ea2,{'userId':_0x12ee87})),_0x276ea2==_0x114e66&&(_0x12ee87=null,_0x114e66=null);}}const _0x5cfcb7={},_0x56eb8c=new Set();for(const _0x546e66 of _0x5a7cb2){const _0xe70561=_0x87762c['deletions'][_0x546e66],_0x11c912=_0x87762c['insertions'][_0x546e66];for(const {userId:_0x2745fd}of this['_touchedMarkers']['values']())null!==_0x2745fd&&_0x56eb8c['add'](_0x2745fd);for(const {userId:_0x34b3f2}of this['_touchedRoots']['values']())null!==_0x34b3f2&&_0x56eb8c['add'](_0x34b3f2);this['_markChanges'](_0x11c912,_0x2c7239['insertions'][_0x546e66],_0x4ba804,'insertion',_0x56eb8c),this['_markChanges'](_0xe70561,_0x2c7239['deletions'][_0x546e66],_0x3eac2f,'deletion',_0x56eb8c),_0x5cfcb7[_0x546e66]={'insertions':this['_prepareViewToSave'](_0x11c912),'deletions':this['_prepareViewToSave'](_0xe70561),'attachChange':this['_touchedRoots']['get'](_0x546e66)||null,'attributesBefore':_0x451a6d(this['_baseRootsAttributes']['get'](_0x546e66))||{},'attributesAfter':_0x451a6d(this['_diffRootsAttributes']['get'](_0x546e66))};}return{'diffData':_0x5cfcb7,'authorsIds':Array['from'](_0x56eb8c)};}['_processRootBeforeSave'](_0x41bc3a){for(const [,_0x138766]of _0x41bc3a['markers']){const _0x4c80c3=_0x138766['start']['getAncestors']()['filter'](_0x26a712=>'tableCell'==_0x26a712['name']);for(const _0x1e2b35 of _0x4c80c3)0x1==_0x1e2b35['childCount']&&_0x1e2b35['getChild'](0x0)['is']('element','paragraph')&&_0x1e2b35['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x11ea8f){this['_processRootBeforeSave'](_0x11ea8f);const _0x140897=this['editor']['data']['toView'](_0x11ea8f,{}),_0x2141f5=Array['from'](_0x140897['getChildren']())['map'](_0x4da793=>this['_getViewJson'](_0x4da793));return JSON['stringify'](_0x2141f5);}['_getViewJson'](_0x8d9c82){if(_0x8d9c82['is']('$text'))return _0x8d9c82['data'];{const _0x4fbb63=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x34d8fa=_0x8d9c82,_0x58e0fc=this['editor']['data']['htmlProcessor']['domConverter'],_0x30ba21={'type':_0x4fbb63['_getTypeCharForViewElement'](_0x34d8fa),'name':_0x34d8fa['name'],'attributes':Array['from'](_0x34d8fa['getAttributes']()),'children':Array['from'](_0x34d8fa['getChildren']())['map'](_0x3d7468=>this['_getViewJson'](_0x3d7468))};if(_0x8d9c82['is']('uiElement')&&'$comment'!=_0x8d9c82['name']){const _0x31b7ce=_0x8d9c82['render'](_0x58e0fc['domDocument'],_0x58e0fc);_0x30ba21['children']['push'](_0x31b7ce['outerHTML']);}else{if(_0x8d9c82['is']('rawElement')){const _0x38e7f2=_0x58e0fc['domDocument']['createElement'](_0x34d8fa['name']);_0x8d9c82['render'](_0x38e7f2,_0x58e0fc),_0x30ba21['children']['push'](_0x38e7f2['innerHTML']);}}const _0x5ab985=Array['from'](_0x34d8fa['getCustomProperties']());_0x5ab985['length']>0x0&&(_0x30ba21['customProperties']=_0x5ab985);const _0x133682=_0x34d8fa['getFillerOffset']();return null!==_0x133682&&(_0x30ba21['fillerOffset']=_0x133682),_0x30ba21;}}['_markChanges'](_0x5a8c31,_0xe5d5e8,_0x38a58d,_0x201800,_0x57cbbe){let _0x3d11d8=null,_0x8a8c83=null,_0x316ae7=0x0;const _0x3432a9=this['editor']['model'];for(let _0x2e436e=0x0;_0x2e436e<_0xe5d5e8['length'];_0x2e436e++){const _0x5ec155=this['_getVidAttributeName'](_0xe5d5e8[_0x2e436e]),_0x395f0a=_0xe5d5e8[_0x2e436e]['item']['getAttribute'](_0x5ec155),_0x1cb791=_0x38a58d['get'](_0x395f0a),_0x4fb3ea=_0x2e436e==_0xe5d5e8['length']-0x1;(!_0x3d11d8&&_0x1cb791&&(_0x3d11d8=_0x1cb791,_0x8a8c83=_0xe5d5e8[_0x2e436e]),_0x3d11d8&&(!_0x1cb791||_0x1cb791['userId']!=_0x3d11d8['userId']))&&(_0x29ef09(_0x1cb791,F(_0x8a8c83,_0x5a8c31,_0x3432a9),F(_0xe5d5e8[_0x2e436e],_0x5a8c31,_0x3432a9)),_0x3d11d8=_0x1cb791||null,_0x8a8c83=_0x1cb791?_0xe5d5e8[_0x2e436e]:null),_0x3d11d8&&_0x4fb3ea&&_0x29ef09(_0x1cb791,F(_0x8a8c83,_0x5a8c31,_0x3432a9),B(_0xe5d5e8[_0x2e436e],_0x5a8c31,_0x3432a9));}function _0x29ef09(_0x33d784,_0x43fb58,_0x3c0035){const _0x4903d7=_0x3d11d8['userId'],_0x470cc3='revision:'+_0x201800+':'+_0x4903d7+':'+_0x316ae7++,_0x242ae7=_0x3432a9['createRange'](_0x43fb58,_0x3c0035);_0x5a8c31['markers']['set'](_0x470cc3,_0x242ae7),null!==_0x4903d7&&_0x57cbbe['add'](_0x4903d7);}}['_getVidAttributeName'](_0x5d379d){switch(_0x5d379d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x45c2af,_0x10c159){_0x45c2af['baseVersion']=null;for(const _0x5c8950 in _0x45c2af){const _0x225c7f=_0x45c2af[_0x5c8950];if(_0x225c7f instanceof ft){const _0xbbd077=_0x10c159['get'](_0x225c7f['root']['rootName']);_0x45c2af[_0x5c8950]=this['_fixPosition'](_0x225c7f,_0xbbd077);}if(_0x225c7f instanceof lt){const _0x28eaea=_0x10c159['get'](_0x225c7f['root']['rootName']);_0x45c2af[_0x5c8950]=this['_fixRange'](_0x225c7f,_0x28eaea);}'root'===_0x5c8950&&(_0x45c2af['root']=_0x10c159['get'](_0x45c2af['root']['rootName']));}}['_fixRange'](_0x15d4df,_0x15df60){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15d4df['start'],_0x15df60),this['_fixPosition'](_0x15d4df['end'],_0x15df60));}['_fixPosition'](_0x4dce15,_0x2fb566){return this['editor']['model']['createPositionFromPath'](_0x2fb566,_0x4dce15['path'],_0x4dce15['stickiness']);}['_handleInsertOperation'](_0x4dc752){const _0x1555f0=this['_idsRoots']['get'](_0x4dc752['position']['root']['rootName']),_0xd07555=this['_fixPosition'](_0x4dc752['position'],_0x1555f0),_0x2ee4c7=null===_0x4dc752['_authorId']?null:_0x4dc752['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bafb3=_0xd07555['parent'],_0x19ecab=this['_revisionId'],_0x148fac=[];for(const _0x3a2614 of _0x4dc752['nodes'])if(_0x3a2614['is']('element'))_0x148fac['push'](this['_makeIdsRoot'](_0x3a2614));else{for(let _0x4113e8=0x0;_0x4113e8<_0x3a2614['offsetSize'];_0x4113e8++)_0x148fac['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2ffd9e=this['_revisionId'];for(let _0x2f974c=_0x19ecab;_0x2f974c<_0x2ffd9e;_0x2f974c++)this['_touched']['set'](_0x2f974c,{'userId':_0x2ee4c7});_0x2bafb3['_insertChild'](_0xd07555['offset'],_0x148fac);}['_handleMoveOperation'](_0x1476fc){(_0x1476fc=this['_cloneOperation'](_0x1476fc,this['_idsRoots']))['_execute']();const _0x1474dc=null===_0x1476fc['_authorId']?null:_0x1476fc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24561c=_0x1476fc['getMovedRangeStart'](),_0xf55563=_0x24561c['parent'],_0xde4322=_0x24561c['offset'];!function _0x15c85b(_0x52990d,_0x455155,_0x29b332,_0x5f1ccc){for(let _0x1ab02e=_0x29b332;_0x1ab02e<_0x5f1ccc;_0x1ab02e++){const _0x16cc99=_0x455155['getChild'](_0x1ab02e);_0x16cc99['is']('element','$text')?_0x52990d['set'](_0x16cc99['getAttribute']('vid'),{'userId':_0x1474dc}):(_0x52990d['set'](_0x16cc99['getAttribute']('vid_start'),{'userId':_0x1474dc}),_0x15c85b(_0x52990d,_0x16cc99,0x0,_0x16cc99['childCount']),_0x52990d['set'](_0x16cc99['getAttribute']('vid_end'),{'userId':_0x1474dc}));}}(this['_touched'],_0xf55563,_0xde4322,_0xde4322+_0x1476fc['howMany']);}['_handleMergeOperation'](_0x311114){const _0x4551e7=null===(_0x311114=this['_cloneOperation'](_0x311114,this['_idsRoots']))['_authorId']?null:_0x311114['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x409b09=_0x311114['targetPosition']['parent'],_0x189f1b=_0x311114['sourcePosition']['parent'],_0x3a13c4=_0x409b09['getAttribute']('vid_end'),_0x44b52b=_0x189f1b['getAttribute']('vid_start');_0x409b09['_setAttribute']('vid_end',_0x189f1b['getAttribute']('vid_end')),_0x189f1b['_setAttribute']('vid_end',_0x3a13c4),this['_touched']['set'](_0x44b52b,{'userId':_0x4551e7}),this['_touched']['set'](_0x3a13c4,{'userId':_0x4551e7}),_0x311114['_execute']();}['_handleSplitOperation'](_0x55bdde){const _0x7edd64=null===(_0x55bdde=this['_cloneOperation'](_0x55bdde,this['_idsRoots']))['_authorId']?null:_0x55bdde['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cbe13=_0x55bdde['graveyardPosition'],_0x3a8f99=_0x55bdde['splitPosition']['parent'];_0x55bdde['_execute']();const _0x5b7651=_0x3a8f99['getAttribute']('vid_end'),_0x1dcdae=_0x55bdde['insertionPosition']['nodeAfter'];if(_0x5cbe13){const _0x3568ee=_0x1dcdae['getAttribute']('vid_end'),_0xe9d2b=_0x3a8f99['getAttribute']('vid_end');_0x3a8f99['_setAttribute']('vid_end',_0x3568ee),_0x1dcdae['_setAttribute']('vid_end',_0xe9d2b),this['_touched']['set'](_0x3a8f99['getAttribute']('vid_end'),{'userId':_0x7edd64}),this['_touched']['set'](_0x1dcdae['getAttribute']('vid_start'),{'userId':_0x7edd64});}else{const _0x152328=this['_revisionId']++,_0x4fc4b2=this['_revisionId']++;_0x3a8f99['_setAttribute']('vid_end',_0x152328),_0x1dcdae['_setAttribute']('vid_start',_0x4fc4b2),_0x1dcdae['_setAttribute']('vid_end',_0x5b7651),this['_touched']['set'](_0x152328,{'userId':_0x7edd64}),this['_touched']['set'](_0x4fc4b2,{'userId':_0x7edd64});}}['_handleMarkerOperation'](_0x198c5f){if(!_0x198c5f['affectsData'])return;const _0x4377c4=(_0x198c5f=this['_cloneOperation'](_0x198c5f,this['_diffRoots']))['oldRange']?_0x198c5f['oldRange']['root']:null,_0x50f0f9=_0x198c5f['newRange']?_0x198c5f['newRange']['root']:null;_0x4377c4&&this['_markers']['delete'](_0x198c5f['name']),_0x50f0f9&&this['_markers']['set'](_0x198c5f['name'],_0x198c5f['newRange']['clone']());const _0x181d7a=null===_0x198c5f['_authorId']?null:_0x198c5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c637e=_0x198c5f['name'];if(!this['_touchedMarkers']['has'](_0x1c637e))return void this['_touchedMarkers']['set'](_0x1c637e,{'range':_0x198c5f['oldRange'],'userId':_0x181d7a});const _0x5d94b4=this['_touchedMarkers']['get'](_0x1c637e),_0x79f2ae=_0x5d94b4['range'],_0x32ca99=_0x198c5f['newRange'];null==_0x79f2ae&&null==_0x32ca99||_0x79f2ae&&_0x32ca99&&_0x79f2ae['isEqual'](_0x32ca99)?this['_touchedMarkers']['delete'](_0x198c5f['name']):_0x5d94b4['userId']=_0x181d7a;}['_handleRootOperation'](_0x49684a,_0x5bcbf0){this['_diffRoots']['has'](_0x49684a['rootName'])?this['_diffRoots']['get'](_0x49684a['rootName'])['_isAttached']=_0x49684a['isAdd']:(this['_diffRoots']['set'](_0x49684a['rootName'],P(_0x49684a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x49684a['rootName'],{}),_0x5bcbf0&&this['_idsRoots']['set'](_0x49684a['rootName'],P(_0x49684a['rootName'],!0x0)));const _0x236801=null===_0x49684a['_authorId']?null:_0x49684a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x263765=this['_touchedRoots']['get'](_0x49684a['rootName']);_0x263765&&_0x263765['userId']===_0x236801?this['_touchedRoots']['delete'](_0x49684a['rootName']):this['_touchedRoots']['set'](_0x49684a['rootName'],{'userId':_0x236801,'isAttached':_0x49684a['isAdd']});}['_handleRootAttributeOperation'](_0x47a782){const _0x1b443b=this['_diffRootsAttributes']['get'](_0x47a782['root']['rootName']);null===_0x47a782['newValue']?delete _0x1b443b[_0x47a782['key']]:_0x1b443b[_0x47a782['key']]=_0x47a782['newValue'];}}function N(_0x35a46a){const _0x2b5acc=P(_0x35a46a['rootName'],_0x35a46a['isAttached']());for(const _0x1fb323 of _0x35a46a['getChildren']()){const _0x38189c=_0x1fb323['_clone'](!0x0);_0x2b5acc['_appendChild'](_0x38189c);}return _0x2b5acc;}function P(_0x1959e8,_0x456503=!0x0){const _0x31f62d=new vt();return _0x31f62d['rootName']=_0x1959e8,_0x31f62d['_isAttached']=_0x456503,_0x31f62d['isAttached']=()=>_0x31f62d['_isAttached'],_0x31f62d;}function F(_0x576ca0,_0x7a3db9,_0x35cde0){const _0x41da2a='elementEnd'==_0x576ca0['type']?_0x35cde0['createPositionAt'](_0x576ca0['item'],'end'):_0x35cde0['createPositionBefore'](_0x576ca0['item']);return _0x35cde0['createPositionFromPath'](_0x7a3db9,_0x41da2a['path'],_0x41da2a['stickiness']);}function B(_0x32e823,_0x538612,_0x134b5c){const _0x1191af='elementStart'==_0x32e823['type']?_0x134b5c['createPositionAt'](_0x32e823['item'],0x0):_0x134b5c['createPositionAfter'](_0x32e823['item']);return _0x134b5c['createPositionFromPath'](_0x538612,_0x1191af['path'],_0x1191af['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x473e86,_0x1562ea){super(_0x473e86),this['focusTracker']=new _0x35c6a5(),this['keystrokes']=new _0x3bdfa4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1562ea),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4b0e45(this);}['render'](){super['render'](),_0x330129({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x7bc255=_0x2c0def=>_0x2c0def['stopPropagation']();this['keystrokes']['set']('arrowright',_0x7bc255),this['keystrokes']['set']('arrowleft',_0x7bc255),this['keystrokes']['set']('arrowup',_0x7bc255),this['keystrokes']['set']('arrowdown',_0x7bc255);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x42cb2f){this['revisionNameInputView']['fieldView']['element']['value']=_0x42cb2f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x25803f){const _0x17b66d=new _0x24dd99(this['locale'],_0x211c26),_0x5991d9=_0x17b66d['fieldView'];_0x5991d9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xccf9cf=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x25803f&&(_0xccf9cf+='\x20('+g(this['locale'],'optional')+')'),(_0x17b66d['label']=_0xccf9cf,_0x5991d9['on']('input',()=>{this['revisionNameInputValue']=_0x5991d9['element']['value']['trim']();}),_0x17b66d);}}class f extends _0x2ff424{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1baa70=this['editor'],_0x2f4048=_0x1baa70['plugins']['get']('RevisionTracker');_0x1baa70['ui']['componentFactory']['add']('revisionHistory',_0x3aa223=>{const _0x3ded8b=_0x32b2c8(_0x3aa223),_0x240064=_0x3ded8b['panelView']['children'],_0x207a6e=new _0x3bba0b(_0x3aa223),_0x1f8e5c=new _0x2e9a1e(_0x3aa223),_0x28cb53=new te(_0x3aa223),_0x1e5ad2=new _0x2e9a1e(_0x3aa223),_0x20fb80=new te(_0x3aa223);return _0x3ded8b['bind']('isEnabled')['to'](_0x2f4048,'isReady',_0x2f4048,'isEnabled',_0x1baa70,'isReadOnly',(_0x7563c6,_0x3a39ed,_0xaf2781)=>_0x7563c6&&_0x3a39ed&&!_0xaf2781),_0x3ded8b['buttonView']['set']({'icon':_0x36f62b,'label':g(_0x3aa223,'Revision\x20history'),'tooltip':!0x0}),_0x28cb53['set']({'label':g(_0x3aa223,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x28cb53['bind']('isEnabled')['to'](_0x2f4048,'isReady',_0x2f4048,'isEnabled',_0x1baa70,'isReadOnly',(_0x417233,_0x14fde5,_0x4c5f01)=>_0x417233&&_0x14fde5&&!_0x4c5f01),_0x28cb53['on']('execute',()=>this['_showDialog']()),_0x20fb80['set']({'label':g(_0x3aa223,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20fb80['bind']('isEnabled')['to'](_0x2f4048,'isReady',_0x1baa70,'isReadOnly',(_0x7acbec,_0x16b56b)=>_0x7acbec&&!_0x16b56b),_0x20fb80['on']('execute',()=>{_0x1baa70['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3ded8b['isOpen']=!0x1,_0x1baa70['editing']['view']['focus']();}),_0x1f8e5c['children']['add'](_0x28cb53),_0x1e5ad2['children']['add'](_0x20fb80),_0x207a6e['role']='menu',_0x207a6e['items']['addMany']([_0x1f8e5c,_0x1e5ad2]),_0x240064['add'](_0x207a6e),_0x3ded8b;}),_0x1baa70['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x387a06=this['editor'],_0x260219=_0x387a06['locale'],_0x24762e=new _0x1248e6(_0x260219),_0x58bbd0=new _0x44ffc8(_0x260219);_0x24762e['buttonView']['set']({'icon':_0x36f62b,'label':g(_0x260219,'Revision\x20history')});const _0x589596=new _0x314824(_0x260219,_0x24762e),_0x25c1c9=new _0x4516fa(_0x260219);_0x25c1c9['set']({'label':g(_0x260219,'Save\x20current\x20revision')}),_0x25c1c9['delegate']('execute')['to'](_0x24762e),_0x25c1c9['on']('execute',()=>{this['_showDialog']();}),_0x589596['children']['add'](_0x25c1c9),_0x58bbd0['items']['add'](_0x589596);const _0x346c28=new _0x314824(_0x260219,_0x24762e),_0x5de6bf=new _0x4516fa(_0x260219);return _0x5de6bf['set']({'label':g(_0x260219,'Open\x20revision\x20history')}),_0x5de6bf['delegate']('execute')['to'](_0x24762e),_0x5de6bf['on']('execute',()=>{_0x387a06['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x346c28['children']['add'](_0x5de6bf),_0x58bbd0['items']['add'](_0x346c28),_0x24762e['panelView']['children']['add'](_0x58bbd0),_0x24762e;}['_showDialog'](){const _0x4a6491=this['editor'],_0x5038bf=_0x4a6491['locale'],_0x169d9f=_0x4a6491['plugins']['get']('Dialog'),_0x395c22=_0x4a6491['plugins']['get']('RevisionTracker');function _0x2ace60(_0x47a402){_0x4a6491['config']['get']('revisionHistory.requireRevisionName')&&''===_0x47a402['revisionName']?_0x47a402['revisionNameInputView']['errorText']=g(_0x5038bf,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4a6491['plugins']['get'](u)['saveRevision']({'name':_0x47a402['revisionName']}),_0x169d9f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2ace60(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x169d9f['show']({'id':'revisionSave','title':g(_0x5038bf,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4a6491['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x169d9f['hide']()},{'label':g(_0x4a6491['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xf76419){_0xf76419['bind']('isEnabled')['to'](_0x395c22,'isReady',_0x395c22,'isEnabled',_0x4a6491,'isReadOnly',(_0x33e0b0,_0x25c881,_0x38ec57)=>_0x33e0b0&&_0x25c881&&!_0x38ec57);},'onExecute':()=>_0x2ace60(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1212b5=this['editor'],_0x790fee=_0x1212b5['locale'];this['_saveRevisionFormView']=new hs(_0x790fee,_0x1212b5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2bbd0a,_0x514feb){super(_0x2bbd0a),this['_model']=_0x514feb,this['changeId']=_0x514feb['id'];const _0x2a179c=this['bindTemplate'],_0x4fcc6f=g(_0x2bbd0a,_0x514feb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x514feb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x514feb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a179c['to']('type',_0xb99df1=>'ck-revision-change__'+_0xb99df1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4fcc6f}]},{'text':'\x20'+_0x514feb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x216396(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5cb382){super(),this['id']=_0x5cb382['id']||_0x3ac6ae(),this['author']=_0x5cb382['author'],this['type']=_0x5cb382['type'],this['data']=_0x5cb382['data']||{},this['rootName']=_0x5cb382['rootName'],this['set']('createdAt',_0x5cb382['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x256d04,_0x3e62fa){this['newRevisionId']=_0x256d04,this['oldRevisionId']=_0x3e62fa,this['changes']=new _0x5791a4();}['_setChanges'](_0x664874){for(const _0x1adbca of _0x664874)this['changes']['add'](_0x1adbca);}}class m extends _0x2ff424{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbcecfe,_0x1cd3be,I,V];}constructor(_0x5e890a){super(_0x5e890a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3380a9,_0x3db677,_0x29681d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x175055=>{for(const _0x557551 of this['editor']['editing']['view']['document']['roots'])_0x29681d?_0x175055['removeClass']('ck-editor__editable__overlay',_0x557551):_0x175055['addClass']('ck-editor__editable__overlay',_0x557551);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x250490=>null!==_0x250490),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1058ff,_0x35cae8,_0x489ac1)=>_0x1058ff&&_0x489ac1?_0x35cae8['changes']['getIndex'](_0x489ac1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3cbd27,_0x4c16e9)=>_0x3cbd27?_0x4c16e9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1cd3be);}['init'](){const _0x300699=this['editor'],_0x4f5fdc=new wt(_0x300699,{'direction':'backward'}),_0x24277e=new wt(_0x300699,{'direction':'forward'});(_0x300699['commands']['add']('showPreviousChange',_0x4f5fdc),_0x300699['commands']['add']('showNextChange',_0x24277e),_0x300699['commands']['add']('restoreRevision',new mt(_0x300699)),this['on']('change:numberOfChanges',()=>{_0x4f5fdc['refresh'](),_0x24277e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x300699['enableReadOnlyMode']('revision-viewer'),_0x300699['plugins']['has']('WidgetToolbarRepository'))&&_0x300699['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x58794f){return await this['_utils']['loadRevisionData'](_0x58794f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x58794f);}async['getRevisionRootsAttributes'](_0x195951){return await this['_utils']['loadRevisionData'](_0x195951,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x195951);}async['compare'](_0x396e11,_0xbb8598,_0x25ebf1=!0x1){if(!this['isEnabled'])return;const _0x1116cb=this['diff'],_0x40519c=this['repository'],_0x4af603='string'==typeof _0x396e11?_0x40519c['getRevision'](_0x396e11):_0x396e11,_0x3031c1='string'==typeof _0xbb8598?_0x40519c['getRevision'](_0xbb8598):_0xbb8598,_0x1cad24=_0x4af603['id'],_0x3cf195=_0x3031c1?_0x3031c1['id']:null;if(!_0x25ebf1&&this['diff']&&this['diff']['newRevisionId']===_0x1cad24&&this['diff']['oldRevisionId']===_0x3cf195)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1cad24,_0x3cf195);const _0x2dc686=this['_getRevisionsRange'](_0x4af603,_0x3031c1,!0x0)['map'](_0x246d39=>this['_utils']['loadRevisionData'](_0x246d39,this['adapter']));return _0x2dc686['push'](new Promise(_0x4c4668=>{setTimeout(_0x4c4668,0x14);})),Promise['all'](_0x2dc686)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x49550a=this['_getDiff'](_0x1cad24,_0x3cf195);for(const _0x1186cd of _0x49550a['changes'])this['_changeIdToChange']['set'](_0x1186cd['id'],_0x1186cd);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44a033=>{for(const _0xc6be54 of this['editor']['model']['document']['getRootNames']())_0x44a033['detachRoot'](_0xc6be54);for(const _0x773c66 of Object['keys'](_0x49550a['model'])){const _0xdbf34e=_0x44a033['addRoot'](_0x773c66);for(const _0x1ed4f6 of Object['keys'](_0x49550a['attributes'][_0x773c66]))_0x44a033['setAttribute'](_0x1ed4f6,_0x49550a['attributes'][_0x773c66][_0x1ed4f6],_0xdbf34e);_0x44a033['insert'](_0x49550a['model'][_0x773c66],_0xdbf34e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x49550a['changes'])),this['isReady']=!0x0;})['catch'](_0xb24ed8=>{console['error'](_0xb24ed8),this['_cleanUp'](),_0x1116cb&&(this['diff']=_0x1116cb),this['isReady']=!0x0;});}['addRevisionData'](_0x3b562b,_0x4f0026){const _0x118dac=this['repository']['createRevision'](_0x3b562b);return _0x118dac['on']('_update',(_0x1d4774,_0x27e7e2,_0x2a5b87)=>_0x4f0026(_0x27e7e2,_0x2a5b87,_0x118dac)),this['repository']['addRevision'](_0x118dac),_0x118dac;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5263b2=>{for(const _0x1c9036 of this['editor']['model']['document']['getRootNames']())_0x5263b2['detachRoot'](_0x1c9036);});}['_sortAndFilterDiffChanges'](_0x52e408){const _0x545853=[],_0x3b64ed=new Map();for(const _0x4f9273 of this['editor']['model']['document']['getRootNames']()){const _0x40e40e=this['editor']['editing']['view']['getDomRoot'](_0x4f9273);if(!_0x40e40e)continue;const _0x5cbdeb=_0x40e40e['getClientRects']()['item'](0x0);_0x5cbdeb&&(_0x545853['push'](_0x4f9273),_0x3b64ed['set'](_0x4f9273,_0x5cbdeb));}return _0x545853['sort']((_0xac5558,_0xe1e0b2)=>{const _0x146406=_0x3b64ed['get'](_0xac5558),_0x3a26ac=_0x3b64ed['get'](_0xe1e0b2);return _0x146406['y']-_0x3a26ac['y']||_0x146406['x']-_0x3a26ac['x'];}),(_0x52e408=_0x52e408['filter'](_0x395e8f=>_0x545853['includes'](_0x395e8f['rootName'])))['sort']((_0xb6975f,_0x18bc91)=>_0x545853['indexOf'](_0xb6975f['rootName'])-_0x545853['indexOf'](_0x18bc91['rootName'])),_0x52e408;}['_makeTape'](_0x3a06eb){const _0x4c2e24=Array['from'](_0x3a06eb['markers'])['filter'](([_0x38046a,_0x15b65e])=>_0x38046a['startsWith']('revision:')&&!_0x15b65e['isCollapsed']),_0x47102c=Array['from'](this['editor']['model']['createRangeIn'](_0x3a06eb)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4c2e24['length'])for(const _0x119249 of _0x47102c){const [_0x1c3ba6,_0x21854a]=_0x4c2e24[0x0],[,_0x55198e,_0x4f6934]=_0x1c3ba6['split'](':');if(_0x21854a['end']['isEqual'](_0x119249['nextPosition'])&&_0x4c2e24['shift'](),(_0x119249['previousPosition']['isEqual'](_0x21854a['start'])||_0x119249['previousPosition']['isAfter'](_0x21854a['start']))&&('insertion'==_0x55198e?_0x119249['isAdded']={'userId':_0x4f6934}:'deletion'==_0x55198e&&(_0x119249['isRemoved']={'userId':_0x4f6934})),0x0==_0x4c2e24['length'])break;}return _0x47102c;}['_refreshStartEndIndex'](_0x55fcb2){const _0x18a804=new Map();for(let _0x41affa=0x0;_0x41affa<_0x55fcb2['length'];_0x41affa++)'text'===_0x55fcb2[_0x41affa]['type']?(_0x55fcb2[_0x41affa]['item']['startIndex']=_0x41affa,_0x55fcb2[_0x41affa]['item']['endIndex']=_0x41affa):('elementStart'===_0x55fcb2[_0x41affa]['type']?_0x55fcb2[_0x41affa]['item']['startIndex']=_0x41affa:'elementEnd'===_0x55fcb2[_0x41affa]['type']&&(_0x55fcb2[_0x41affa]['item']['endIndex']=_0x41affa),_0x18a804['set'](_0x55fcb2[_0x41affa]['id'],_0x41affa));for(const _0x308202 of _0x18a804['values']())'elementStart'===_0x55fcb2[_0x308202]['type']?_0x55fcb2[_0x308202]['item']['endIndex']=_0x18a804['get'](_0x55fcb2[_0x308202]['pairId']):'elementEnd'===_0x55fcb2[_0x308202]['type']&&(_0x55fcb2[_0x308202]['item']['startIndex']=_0x18a804['get'](_0x55fcb2[_0x308202]['pairId']));}['_processTape'](_0x2023c1){for(let _0x203d57=0x0;_0x203d57<_0x2023c1['length'];_0x203d57++){if('elementStart'===_0x2023c1[_0x203d57]['type'])_0x2023c1[_0x203d57]['item']['startIndex']=_0x203d57;else{if('elementEnd'===_0x2023c1[_0x203d57]['type']){_0x2023c1[_0x203d57]['item']['endIndex']=_0x203d57;const _0x2eea0f=_0x2023c1[_0x203d57]['item']['startIndex'];_0x2023c1[_0x2eea0f]['pairId']=_0x2023c1[_0x203d57]['id'],_0x2023c1[_0x203d57]['pairId']=_0x2023c1[_0x2eea0f]['id'];}else _0x2023c1[_0x203d57]['item']['startIndex']=_0x203d57,_0x2023c1[_0x203d57]['item']['endIndex']=_0x203d57,_0x2023c1[_0x203d57]['pairId']=null;}_0x2023c1[_0x203d57]['markersStart']||(_0x2023c1[_0x203d57]['markersStart']=[],_0x2023c1[_0x203d57]['markersEnd']=[]);}}['_markInsertions'](_0x36dd31,_0x532ca0){const _0x1485ee=_0x36dd31['filter'](_0x276843=>!_0x276843['isAdded']);for(let _0x4f6876=0x0;_0x4f6876<_0x532ca0['length'];_0x4f6876++)_0x532ca0[_0x4f6876]['isAdded']&&(_0x1485ee[_0x4f6876]['isAdded']=_0x532ca0[_0x4f6876]['isAdded']);}['_getDiff'](_0x3fc29e,_0x49865c=null){const _0xe45496=this['repository']['getRevision'](_0x3fc29e),_0x9a040d=_0x49865c?this['repository']['getRevision'](_0x49865c):null,_0xef9ed9=this['_getRevisionsRange'](_0xe45496,_0x9a040d),_0x468a13=_0xef9ed9[_0xef9ed9['length']-0x1],_0x51d5ad=new Map(),_0x59aa37={'model':{},'attributes':{},'changes':[]},_0x1f62ca=new Set(),_0x284ec0=new Map();for(let _0x32553a=_0xef9ed9['length']-0x1;_0x32553a>=0x0;_0x32553a--){const _0x2cb267=_0xef9ed9[_0x32553a];for(const _0x11b359 of Object['keys'](_0x2cb267['diffData']))if(_0x2cb267['diffData'][_0x11b359]['attachChange']){const _0x48bc5c=_0x2cb267['diffData'][_0x11b359]['attachChange'];_0x48bc5c['isAttached']?(_0x1f62ca['add'](_0x11b359),_0x284ec0['has'](_0x11b359)&&_0x284ec0['get'](_0x11b359)['userId']==_0x48bc5c['userId']?_0x284ec0['delete'](_0x11b359):_0x284ec0['set'](_0x11b359,_0x48bc5c)):_0x284ec0['has'](_0x11b359)?(_0x1f62ca['delete'](_0x11b359),_0x284ec0['delete'](_0x11b359)):(_0x1f62ca['add'](_0x11b359),_0x284ec0['set'](_0x11b359,_0x48bc5c));}else _0x1f62ca['add'](_0x11b359);}for(const _0x45bd53 of _0x1f62ca){const _0x25028f=_0x284ec0['has'](_0x45bd53)&&!_0x284ec0['get'](_0x45bd53)['isAttached'];let _0x3b5620=_0x25028f?_0xef9ed9['length']-0x1:0x0;const _0x293fcb=_0x25028f?-0x1:0x1;for(;_0xef9ed9[_0x3b5620];){const _0x4384b5=_0xef9ed9[_0x3b5620];if(_0x4384b5['diffData'][_0x45bd53]){const _0x5d33f9=_0x25028f?_0x4384b5['diffData'][_0x45bd53]['attributesBefore']:_0x4384b5['diffData'][_0x45bd53]['attributesAfter'];_0x59aa37['attributes'][_0x45bd53]=_0x5d33f9?_0x451a6d(_0x5d33f9):{};break;}_0x3b5620+=_0x293fcb;}}for(const _0xd30167 of _0xef9ed9){_0xd30167['model']={};for(const _0x5e94db of _0xd30167['authors'])_0x51d5ad['set'](_0x5e94db['id'],_0x5e94db);for(const _0x4e8874 of _0x1f62ca){const _0x50d87a=_0xd30167['diffData'][_0x4e8874]?_0xd30167['diffData'][_0x4e8874]['insertions']:'[]',_0x426514=_0xd30167['diffData'][_0x4e8874]?_0xd30167['diffData'][_0x4e8874]['deletions']:'[]';_0xd30167['model'][_0x4e8874]={'insertions':this['_utils']['_makeModelFromViewString'](_0x50d87a),'deletions':this['_utils']['_makeModelFromViewString'](_0x426514)};}}for(const _0x180d1f of _0x1f62ca){let _0x4e0aa8=null,_0x1d653f=0x0;const _0x3f4ae9=new Map(Array['from'](_0xe45496['model'][_0x180d1f]['insertions']['markers'])['filter'](([_0x24deec])=>!_0x24deec['startsWith']('revision:')));let _0x534331=0x0;for(const _0x43345f of _0xef9ed9){const _0x203887=this['_makeTape'](_0x43345f['model'][_0x180d1f]['insertions']);_0x43345f==_0xe45496?(_0x4e0aa8=_0x203887,_0x1d653f=_0x4e0aa8['length'],_0x4e0aa8['forEach'](_0x1c2663=>{_0x1c2663['id']=_0x534331++;}),this['_processTape'](_0x4e0aa8)):this['_markInsertions'](_0x4e0aa8,_0x203887);const _0x52c177=_0x4e0aa8['filter'](_0x18dee8=>!_0x18dee8['isAdded'])['map'](_0x5bfee5=>_0x5bfee5['id']);let _0x1c090c=0x0;const _0x4aa026=this['_makeTape'](_0x43345f['model'][_0x180d1f]['deletions']);_0x4aa026['forEach'](_0x1ad566=>{_0x1ad566['isRemoved']?_0x1ad566['id']=_0x1d653f++:_0x1ad566['id']=_0x52c177[_0x1c090c++];}),this['_processTape'](_0x4aa026),this['_setDistance'](_0x4e0aa8,'isAdded'),this['_setDistance'](_0x4aa026,'isRemoved'),_0x43345f==_0xe45496&&this['_markMarkers'](_0x4e0aa8,_0x3f4ae9),_0x4e0aa8=this['_joinTapes'](_0x4e0aa8,_0x4aa026),this['_refreshStartEndIndex'](_0x4e0aa8),this['_setDistance'](_0x4e0aa8,'isRemoved');}_0x4e0aa8=_0x4e0aa8['filter'](_0x2fbe87=>!(_0x2fbe87['isAdded']&&_0x2fbe87['isRemoved']));const _0x2e86f7=new Map(_0x468a13['model'][_0x180d1f]['deletions']['markers']),_0x243d35=new Set(_0x3f4ae9['keys']());for(const _0x24237e of _0x2e86f7['keys']())_0x243d35['delete'](_0x24237e);this['_markSuggestions'](_0x4e0aa8,_0x243d35),this['_fixObsoleteTags'](_0x4e0aa8),_0x4e0aa8=this['_removeMissingPairs'](_0x4e0aa8),_0x4e0aa8=this['_markMismatchedRemovedTags'](_0x4e0aa8),_0x4e0aa8=this['_removeUnsupportedChanges'](_0x4e0aa8);const {root:_0x2f2c75,changes:_0x562976}=this['_makeModelFromTape'](_0x4e0aa8,_0x51d5ad,_0x180d1f);_0x59aa37['model'][_0x180d1f]=_0x2f2c75;const _0x81a492=_0x284ec0['get'](_0x180d1f);if(_0x81a492){const _0x3e20c1=_0x51d5ad['get'](_0x81a492['userId']),_0xa67244=new r({'author':_0x3e20c1,'type':_0x81a492['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x180d1f});_0x562976['unshift'](_0xa67244),_0x59aa37['attributes'][_0x180d1f]['revisionHistoryAttachChange']=_0xa67244['id'];}_0x59aa37['changes']=_0x59aa37['changes']['concat'](_0x562976);}return _0x59aa37;}['_markMarkers'](_0x113d57,_0x9438f9){for(let _0x1eec8d=0x0;_0x1eec8d<_0x113d57['length'];_0x1eec8d++)for(const [_0x12077b,_0x34fcce]of _0x9438f9)!_0x34fcce['isCollapsed']&&_0x34fcce['start']['isEqual'](_0x113d57[_0x1eec8d]['previousPosition'])&&_0x113d57[_0x1eec8d]['markersStart']['push'](_0x12077b),_0x34fcce['end']['isEqual'](_0x113d57[_0x1eec8d]['nextPosition'])&&_0x113d57[_0x1eec8d]['markersEnd']['push'](_0x12077b);}['_joinTapes'](_0x311fe5,_0x313196){let _0x6ece67=[],_0x2d6e2b=0x0,_0x79d8af=0x0;for(;_0x2d6e2b<_0x311fe5['length']||_0x79d8af<_0x313196['length'];){const _0x224712=_0x311fe5[_0x2d6e2b]||{},_0x6f76ce=_0x313196[_0x79d8af]||{};if(_0x224712['id']==_0x6f76ce['id'])_0x2d6e2b++,_0x79d8af++,_0x6ece67['push'](_0x224712);else{if(_0x6f76ce['isRemoved']&&_0x224712['isAdded']){const {commonTape:_0x19ff7b,iEnd:_0x335b4d,jEnd:_0x5befa6}=this['_threeWayMerge'](_0x311fe5,_0x2d6e2b,_0x313196,_0x79d8af);_0x6ece67=_0x6ece67['concat'](_0x19ff7b),_0x2d6e2b=_0x335b4d,_0x79d8af=_0x5befa6;}else _0x6f76ce['isRemoved']?(_0x79d8af++,_0x6ece67['push'](_0x6f76ce)):(_0x2d6e2b++,_0x6ece67['push'](_0x224712));}}return _0x6ece67;}['_markSuggestions'](_0x55966a,_0x100375){const _0x1fa8bc=[];for(let _0x532ec0=0x0;_0x532ec0<_0x55966a['length'];_0x532ec0++){for(let _0x8345f0=0x0;_0x8345f0<_0x55966a[_0x532ec0]['markersStart']['length'];_0x8345f0++){const _0x1e687b=_0x55966a[_0x532ec0]['markersStart'][_0x8345f0];if(!_0x100375['has'](_0x1e687b))continue;const {group:_0x992c3e,type:_0x2880fb,authorId:_0x48977d}=_0x38292f(_0x1e687b);'revision-suggestion'!=_0x992c3e||'insertion'!=_0x2880fb&&'deletion'!=_0x2880fb||(_0x1fa8bc['unshift']({'type':_0x2880fb,'name':_0x1e687b,'userId':_0x48977d}),_0x55966a[_0x532ec0]['markersStart']['splice'](_0x8345f0,0x1),_0x8345f0--);}_0x1e1cd8(_0x55966a[_0x532ec0]);for(let _0x4e258b=0x0;_0x4e258b<_0x55966a[_0x532ec0]['markersEnd']['length'];_0x4e258b++){const _0x11b4f3=_0x55966a[_0x532ec0]['markersEnd'][_0x4e258b];if(!_0x100375['has'](_0x11b4f3))continue;const {group:_0x816de5,type:_0x44eda0}=_0x38292f(_0x11b4f3);if('revision-suggestion'!=_0x816de5||'insertion'!=_0x44eda0&&'deletion'!=_0x44eda0)continue;_0x55966a[_0x532ec0]['markersEnd']['splice'](_0x4e258b,0x1),_0x4e258b--;const _0x48b9dc=_0x1fa8bc['findIndex'](_0x402788=>_0x402788['name']==_0x11b4f3);_0x48b9dc>-0x1&&_0x1fa8bc['splice'](_0x48b9dc,0x1);}}function _0x38292f(_0x48def4){const _0x1f818c=_0x48def4['split'](':');return{'group':_0x1f818c[0x0],'type':_0x1f818c[0x1],'subType':_0x1f818c['length']>=0x5?_0x1f818c[0x2]:null,'id':_0x1f818c['length']<0x5?_0x1f818c[0x2]:_0x1f818c[0x3],'authorId':_0x1f818c['length']<0x5?_0x1f818c[0x3]:_0x1f818c[0x4],'markerCount':0x6==_0x1f818c['length']?_0x1f818c[0x5]:null};}function _0x1e1cd8(_0x1f69db){for(let _0x3ab80f=0x0;_0x3ab80f<_0x1fa8bc['length'];_0x3ab80f++){if(_0x1f69db['isAdded']&&'insertion'==_0x1fa8bc[_0x3ab80f]['type'])return _0x1f69db['isAddSuggestion']=_0x1fa8bc[_0x3ab80f],void delete _0x1f69db['isAdded'];if(!_0x1f69db['isAdded']&&!_0x1f69db['isRemoved']&&'deletion'==_0x1fa8bc[_0x3ab80f]['type'])return void(_0x1f69db['isRemoveSuggestion']=_0x1fa8bc[_0x3ab80f]);}}}['_setDistance'](_0x294b19,_0x1cf35c){let _0xaa34fd=0x0,_0x3ab614=!0x1;const _0x5ba075=new Map();for(const _0x57aee2 of _0x294b19)_0x57aee2[_0x1cf35c]?_0x3ab614&&(_0xaa34fd++,_0x3ab614=!0x1):(_0xaa34fd++,_0x3ab614=!0x0),_0x5ba075['set'](_0x57aee2['id'],_0xaa34fd);for(let _0x319487=0x0;_0x319487<_0x294b19['length'];_0x319487++){if('isRemoved'==_0x1cf35c&&_0x294b19[_0x319487]['isAdded']||'isAdded'==_0x1cf35c&&_0x294b19[_0x319487]['isRemoved'])continue;if('text'==_0x294b19[_0x319487]['type']){_0x294b19[_0x319487]['distance']=0x0;continue;}const _0x2ea037=_0x5ba075['get'](_0x294b19[_0x319487]['pairId']),_0x237df4=_0x5ba075['get'](_0x294b19[_0x319487]['id']);_0x294b19[_0x319487]['distance']=_0x2ea037-_0x237df4;}}['_getRevisionsRange'](_0x16dd47,_0x5091c7,_0x3173fc=!0x1){const _0x2a8843=[];let _0x2f7eab=this['repository']['getIndex'](_0x16dd47),_0x114721=this['repository']['getIndex'](_0x5091c7);for(-0x1==_0x114721&&(_0x114721=this['repository']['_revisions']['length'],_0x3173fc=!0x1);_0x2f7eab<_0x114721;)_0x2a8843['push'](this['repository']['getRevision'](_0x2f7eab)),_0x2f7eab++;return _0x3173fc&&_0x2a8843['push'](this['repository']['getRevision'](_0x2f7eab)),_0x2a8843;}['_threeWayMerge'](_0x55ad43,_0xbeacb1,_0x1b15a3,_0x18a458){const _0x1fd805=this['editor']['model']['schema'];let _0x5d7a06=_0xbeacb1;for(;_0x55ad43[_0x5d7a06]&&_0x55ad43[_0x5d7a06]['isAdded'];)_0x5d7a06++;let _0x38436d=_0x18a458;for(;_0x1b15a3[_0x38436d]&&_0x1b15a3[_0x38436d]['isRemoved'];)_0x38436d++;_0x5423dd(_0x55ad43,_0xbeacb1,_0x5d7a06),_0x5423dd(_0x1b15a3,_0x18a458,_0x38436d);const _0x3a8a59=_0x1b15a3['slice'](_0x18a458,_0x38436d)['concat'](_0x55ad43['slice'](_0xbeacb1,_0x5d7a06));return _0x3a8a59['sort']((_0x56fa42,_0x5e4c55)=>_0x56fa42['side']!=_0x5e4c55['side']?_0x56fa42['side']-_0x5e4c55['side']:_0x56fa42['level']!=_0x5e4c55['level']?_0x56fa42['level']-_0x5e4c55['level']:_0x56fa42['distance']!=_0x5e4c55['distance']?_0x5e4c55['distance']-_0x56fa42['distance']:!!_0x56fa42['isAdded']!=!!_0x5e4c55['isAdded']?-0x1==_0x56fa42['side']||0x0==_0x56fa42['side']?_0x56fa42['isAdded']?-0x1:0x1:_0x56fa42['isAdded']?0x1:-0x1:_0x56fa42['index']-_0x5e4c55['index']),{'commonTape':_0x3a8a59,'iEnd':_0x5d7a06,'jEnd':_0x38436d};function _0x5423dd(_0x65b14,_0x21f763,_0xfe4507){let _0x275e6c=-0x1,_0x3443d7=Number['POSITIVE_INFINITY'],_0x22aaae=!0x0;for(let _0x545ee4=_0x21f763;_0x545ee4<_0xfe4507;_0x545ee4++)if(_0x1fd805['isInline'](_0x65b14[_0x545ee4]['item'])||(_0x22aaae=!0x1),_0x65b14[_0x545ee4]['item']['startIndex']<_0x21f763&&(_0x275e6c=_0x545ee4),_0x65b14[_0x545ee4]['item']['endIndex']>=_0xfe4507){_0x3443d7=_0x545ee4;break;}_0x22aaae&&(_0x275e6c=_0xfe4507-0x1);for(let _0x2deb9d=_0x21f763;_0x2deb9d<_0xfe4507;_0x2deb9d++)_0x65b14[_0x2deb9d]['side']=_0x2deb9d<=_0x275e6c?-0x1:_0x2deb9d<_0x3443d7?0x0:0x1,_0x65b14[_0x2deb9d]['index']=_0x2deb9d;let _0x41a7ff=0x0;for(let _0x2430fe=_0x21f763;_0x2430fe<=_0x275e6c;_0x2430fe++)0x0==_0x65b14[_0x2430fe]['distance']?_0x65b14[_0x2430fe]['level']=_0x41a7ff:(_0x41a7ff++,_0x65b14[_0x2430fe]['level']=_0x41a7ff,_0x41a7ff++);for(let _0x40f47e=_0x21f763;_0x40f47e<_0xfe4507;_0x40f47e++)0x0==_0x65b14[_0x40f47e]['side']&&(_0x65b14[_0x40f47e]['level']=_0x41a7ff);_0x41a7ff=0x0;for(let _0xe77fca=_0xfe4507-0x1;_0xe77fca>=_0x3443d7;_0xe77fca--)0x0==_0x65b14[_0xe77fca]['distance']?_0x65b14[_0xe77fca]['level']=_0x41a7ff:(_0x41a7ff--,_0x65b14[_0xe77fca]['level']=_0x41a7ff,_0x41a7ff--);}}['_fixObsoleteTags'](_0x4e8a3b){const _0x23e2c8=new Map(),_0x573aca=this['editor']['model']['schema'];for(let _0x536d97=0x1;_0x536d97<_0x4e8a3b['length'];_0x536d97++){let _0x506a62,_0x29deb8,_0x5dc2a8;const _0x2d9717=_0x4e8a3b[_0x536d97],_0x4257b6=_0x4e8a3b[_0x536d97-0x1];if('text'==_0x2d9717['type'])continue;if(_0x2d9717['type']!=_0x4257b6['type'])continue;if(!_0x573aca['isBlock'](_0x4257b6['item'])||_0x573aca['isLimit'](_0x4257b6['item']))continue;if(!_0x573aca['isBlock'](_0x2d9717['item'])||_0x573aca['isLimit'](_0x2d9717['item']))continue;if((_0x4e8a3b[_0x536d97]['isAdded']||_0x4e8a3b[_0x536d97]['isAddSuggestion'])&&_0x4e8a3b[_0x536d97-0x1]['isRemoved'])_0x506a62=_0x4e8a3b[_0x536d97],_0x29deb8=_0x4e8a3b[_0x536d97-0x1],_0x5dc2a8=_0x536d97-0x1;else{if(!_0x4e8a3b[_0x536d97]['isRemoved']||!_0x4e8a3b[_0x536d97-0x1]['isAdded']&&!_0x4e8a3b[_0x536d97-0x1]['isAddSuggestion'])continue;_0x506a62=_0x4e8a3b[_0x536d97-0x1],_0x29deb8=_0x4e8a3b[_0x536d97],_0x5dc2a8=_0x536d97;}const _0xf6e898=_0x506a62['level']==_0x29deb8['level'],_0x322e0d=Math['abs'](_0x506a62['level'])<Math['abs'](_0x29deb8['level'])&&0x0==_0x29deb8['distance'];(_0xf6e898||_0x322e0d)&&(_0x23e2c8['set'](_0x29deb8['id'],_0x506a62['id']),_0x4e8a3b['splice'](_0x5dc2a8,0x1),_0x536d97--,_0x506a62['isAdded']=!0x1);}for(let _0x8a99c4=0x0;_0x8a99c4<_0x4e8a3b['length'];_0x8a99c4++)_0x23e2c8['has'](_0x4e8a3b[_0x8a99c4]['pairId'])&&(_0x4e8a3b[_0x8a99c4]['pairId']=_0x23e2c8['get'](_0x4e8a3b[_0x8a99c4]['pairId']));}['_removeMissingPairs'](_0x12e3b9){const _0x75d092=new Set(_0x12e3b9['map'](_0x424539=>_0x424539['id']));for(let _0x5747dc=0x0;_0x5747dc<_0x12e3b9['length'];_0x5747dc++)_0x75d092['has'](_0x12e3b9[_0x5747dc]['pairId'])||0x0==_0x12e3b9[_0x5747dc]['distance']||(_0x12e3b9[_0x5747dc]['isIncorrect']=!0x0);return _0x12e3b9['filter'](_0xe6724e=>!_0xe6724e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x380bbb){const _0x18b8c9=new Set();for(let _0x5df9e6=0x0;_0x5df9e6<_0x380bbb['length'];_0x5df9e6++){if(_0x18b8c9['has'](_0x380bbb[_0x5df9e6]['id'])&&_0x380bbb[_0x5df9e6]['isRemoved']&&(_0x380bbb[_0x5df9e6]['isIncorrect']=!0x0),_0x380bbb[_0x5df9e6]['isIncorrect'])continue;if(0x0==_0x380bbb[_0x5df9e6]['distance'])continue;if('elementStart'!=_0x380bbb[_0x5df9e6]['type'])continue;if(null==_0x380bbb[_0x5df9e6]['pairId'])continue;let _0x115d3f=_0x5df9e6+0x1,_0x299cf1=0x0;for(;_0x380bbb[_0x115d3f]['id']!=_0x380bbb[_0x5df9e6]['pairId'];)'elementStart'==_0x380bbb[_0x115d3f]['type']?_0x299cf1++:'elementEnd'==_0x380bbb[_0x115d3f]['type']&&_0x299cf1--,_0x115d3f++;if(0x0!=_0x299cf1){if(_0x380bbb[_0x5df9e6]['isRemoved'])_0x380bbb[_0x5df9e6]['isIncorrect']=!0x0;else{for(;_0x115d3f!=_0x5df9e6;)_0x380bbb[_0x115d3f]['isRemoved']&&0x0!=_0x380bbb[_0x115d3f]['distance']&&(_0x380bbb[_0x115d3f]['isIncorrect']=!0x0,_0x18b8c9['add'](_0x380bbb[_0x115d3f]['pairId'])),_0x115d3f--;}}}return _0x380bbb['filter'](_0x12571a=>!_0x12571a['isIncorrect']);}['_removeUnsupportedChanges'](_0x3cf7ae){const _0x556f13=this['editor']['model']['schema'];for(let _0x226e36=0x0;_0x226e36<_0x3cf7ae['length'];_0x226e36++){if(!(_0x3cf7ae[_0x226e36]['isAdded']||_0x3cf7ae[_0x226e36]['isAddSuggestion']||_0x3cf7ae[_0x226e36]['isRemoved']||_0x3cf7ae[_0x226e36]['isRemoveSuggestion']))continue;if(0x0==_0x3cf7ae[_0x226e36]['distance'])continue;const _0x55ea30=_0x3cf7ae[_0x226e36]['item'];_0x556f13['isBlock'](_0x55ea30)||_0x556f13['isLimit'](_0x55ea30)||(_0x3cf7ae[_0x226e36]['isAdded']&&delete _0x3cf7ae[_0x226e36]['isAdded'],_0x3cf7ae[_0x226e36]['isAddSuggestion']&&delete _0x3cf7ae[_0x226e36]['isAddSuggestion'],_0x3cf7ae[_0x226e36]['isRemoveSuggestion']&&delete _0x3cf7ae[_0x226e36]['isRemoveSuggestion'],_0x3cf7ae[_0x226e36]['isRemoved']&&(_0x3cf7ae[_0x226e36]['isIncorrect']=!0x0));}return _0x3cf7ae['filter'](_0x4c2759=>!_0x4c2759['isIncorrect']);}['_makeModelFromTape'](_0xf182e6,_0x2ab301,_0x11a47b){const _0x596997=new vt(),_0x57db41=[],_0x1a38bc=new Map(),_0xb00562=this['editor']['model'],_0x32b18c=_0xb00562['schema'],_0x3fe9e0=[_0x596997],_0x10b711={},_0x44a266={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c74b2=null;const _0x43a0ba=[0x0];for(let _0x44e827=0x0;_0x44e827<_0xf182e6['length'];_0x44e827++)if('elementStart'===_0xf182e6[_0x44e827]['type']){_0xf182e6[_0x44e827]['previousPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba);const _0x4e82e2=new ut(_0xf182e6[_0x44e827]['item']['name'],_0xf182e6[_0x44e827]['item']['getAttributes']());_0x3fe9e0[0x0]['_appendChild'](_0x4e82e2),_0x43a0ba['push'](0x0),_0x3fe9e0['unshift'](_0x4e82e2),_0xf182e6[_0x44e827]['nextPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba);}else'elementEnd'===_0xf182e6[_0x44e827]['type']?(_0x3fe9e0['shift'](),_0xf182e6[_0x44e827]['previousPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba),_0x43a0ba['pop'](),_0x43a0ba[_0x43a0ba['length']-0x1]++,_0xf182e6[_0x44e827]['nextPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba)):(_0xf182e6[_0x44e827]['previousPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba),_0x5c74b2?_0x5c74b2['_data']+=_0xf182e6[_0x44e827]['item']['data']:_0x5c74b2=new gt(_0xf182e6[_0x44e827]['item']['data'],_0xf182e6[_0x44e827]['item']['getAttributes']()),_0xf182e6[_0x44e827+0x1]&&'text'===_0xf182e6[_0x44e827+0x1]['type']&&_0x56cbca(_0x5c74b2,_0xf182e6[_0x44e827+0x1]['item'])||(_0x3fe9e0[0x0]['_appendChild'](_0x5c74b2),_0x5c74b2=null),_0x43a0ba[_0x43a0ba['length']-0x1]+=_0xf182e6[_0x44e827]['item']['offsetSize'],_0xf182e6[_0x44e827]['nextPosition']=_0xb00562['createPositionFromPath'](_0x596997,_0x43a0ba));for(let _0x57cb94=0x0;_0x57cb94<_0xf182e6['length'];_0x57cb94++){const _0x1ff5a1=_0xf182e6[_0x57cb94]['previousPosition'],_0x390387=_0xf182e6[_0x57cb94]['nextPosition'];for(const _0x1361a2 of _0xf182e6[_0x57cb94]['markersStart'])_0x1a38bc['set'](_0x1361a2,{'start':_0x1ff5a1,'end':null});_0x5c9f67('isRemoveSuggestion',_0x57cb94,_0x1ff5a1,_0x390387),_0x5c9f67('isAddSuggestion',_0x57cb94,_0x1ff5a1,_0x390387),_0x5c9f67('isRemoved',_0x57cb94,_0x1ff5a1,_0x390387),_0x5c9f67('isAdded',_0x57cb94,_0x1ff5a1,_0x390387);for(const _0xced785 of _0xf182e6[_0x57cb94]['markersEnd']){const _0x156015=_0x1a38bc['get'](_0xced785);_0x156015?_0x156015['end']=_0x390387:_0x1a38bc['set'](_0xced785,{'start':_0x390387,'end':_0x390387});}}for(const [_0x1deef0,_0x226943]of _0x1a38bc){const _0x430e68=this['editor']['model']['createRange'](_0x226943['start'],_0x226943['end']);_0x596997['markers']['set'](_0x1deef0,_0x430e68);}return _0x57db41['sort']((_0x5a5fd4,_0x4c73e7)=>{const _0x13b2e7=_0x596997['markers']['get']('revision:'+_0x5a5fd4['id']),_0x259c5c=_0x596997['markers']['get']('revision:'+_0x4c73e7['id']);return _0x13b2e7['start']['isBefore'](_0x259c5c['start'])?-0x1:_0x13b2e7['start']['isAfter'](_0x259c5c['start'])?0x1:_0x13b2e7['end']['isBefore'](_0x259c5c['end'])?-0x1:_0x13b2e7['end']['isAfter'](_0x259c5c['end'])?0x1:'add'===_0x5a5fd4['type']?-0x1:0x1;}),{'root':_0x596997,'changes':_0x57db41};function _0x5c9f67(_0xb11333,_0x18565d,_0x5279ec,_0x676b6c){const _0x260f53=!!_0xf182e6[_0x18565d][_0xb11333],_0x1d5a3e=_0x260f53?_0xf182e6[_0x18565d][_0xb11333]['userId']:null,_0x4e461e=_0x18565d===_0xf182e6['length']-0x1,_0x24562e=_0x44a266[_0xb11333][0x0],_0x33ede1=_0x32b18c['isObject'](_0xf182e6[_0x18565d]['item']);!_0x10b711[_0xb11333]&&_0x260f53?_0x10b711[_0xb11333]={'start':_0x5279ec,'tapeItem':_0xf182e6[_0x18565d],'userId':_0x1d5a3e,'type':_0xb11333}:_0x10b711[_0xb11333]&&!_0x260f53?(_0x10b711[_0xb11333]['end']=_0x5279ec,_0x4833be(_0x10b711[_0xb11333]),_0x10b711[_0xb11333]=null):_0x10b711[_0xb11333]&&_0x260f53&&_0x10b711[_0xb11333]['userId']!==_0x1d5a3e&&(_0x10b711[_0xb11333]['end']=_0x5279ec,_0x24562e&&_0x24562e['userId']===_0x10b711[_0xb11333]['userId']||_0x4833be(_0x10b711[_0xb11333]),_0x10b711[_0xb11333]={'start':_0x5279ec,'tapeItem':_0xf182e6[_0x18565d],'userId':_0x1d5a3e,'type':_0xb11333}),_0x10b711[_0xb11333]&&_0x33ede1&&('elementStart'!==_0xf182e6[_0x18565d]['type']||_0x24562e&&_0x24562e['userId']===_0x1d5a3e||_0x44a266[_0xb11333]['unshift']({'userId':_0x1d5a3e,'object':_0xf182e6[_0x18565d]['item'],'change':_0x10b711[_0xb11333]}),'elementEnd'===_0xf182e6[_0x18565d]['type']&&_0x24562e&&_0x24562e['object']===_0xf182e6[_0x18565d]['item']&&(_0x44a266[_0xb11333]['shift'](),_0x10b711[_0xb11333]=_0x24562e['change'])),_0x10b711[_0xb11333]&&_0x4e461e&&(_0x10b711[_0xb11333]['end']=_0x676b6c,_0x4833be(_0x10b711[_0xb11333]),_0x10b711[_0xb11333]=null);}function _0x4833be({start:_0x8579bf,end:_0x248c6d,tapeItem:_0x30c5b8,userId:_0x37435e,type:_0x4e5e5a}){const _0x594d81=_0x30c5b8['item'],_0x2d31e5=_0xb00562['schema']['isBlock'](_0x594d81)&&!_0xb00562['schema']['isLimit'](_0x594d81),_0xb70c22=_0x8579bf['nodeAfter']==_0x248c6d['parent']&&_0x248c6d['isAtStart'];if(_0x2d31e5&&_0xb70c22)return;const _0x413035=_0xb00562['createRange'](_0x8579bf,_0x248c6d),_0x15f0bb=_0x2ab301['get'](_0x37435e),_0x3ee719=new r({'author':_0x15f0bb,'type':'isAdded'==_0x4e5e5a||'isAddSuggestion'==_0x4e5e5a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4e5e5a||'isRemoveSuggestion'==_0x4e5e5a},'createdAt':new Date(),'rootName':_0x11a47b});_0x57db41['push'](_0x3ee719),_0x596997['markers']['set']('revision:'+_0x3ee719['id'],_0x413035);}function _0x56cbca(_0x45cb94,_0x3a1b39){const _0x480164=_0x45cb94['getAttributes'](),_0x5f59b5=_0x3a1b39['getAttributes']();for(const _0x4d06fd of _0x480164){if(_0x4d06fd[0x1]!==_0x3a1b39['getAttribute'](_0x4d06fd[0x0]))return!0x1;_0x5f59b5['next']();}return _0x5f59b5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x231fae=>{const _0x1a1c14=_0x231fae['markerName']['split'](':')[0x1],_0x35a58c=this['_getChangeFromId'](_0x1a1c14);if(!_0x35a58c)return null;const _0x162e69='add'==_0x35a58c['type']?'insertion':'deletion',_0x40c016=['ck-suggestion-marker','ck-suggestion-marker-'+_0x162e69];return _0x35a58c['data']['isSuggestion']&&_0x40c016['push']('ck-suggestion-marker-'+_0x162e69+'-new'),this['activeChange']==_0x35a58c&&_0x40c016['push']('ck-suggestion-marker--active'),{'classes':_0x40c016,'attributes':{'data-change-id':_0x1a1c14}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x12d8b8=>{_0x12d8b8['on']('element:pre',(_0xc0dec9,_0x21a615,_0x1e6b6f)=>{const _0xaea898=_0x21a615['viewItem']['getChild'](0x0);if(!_0xaea898||!_0xaea898['is']('element','code'))return;if(!_0x1e6b6f['consumable']['consume'](_0xaea898,{'attributes':['vid_start','vid_end']}))return;const _0x497e84=_0x21a615['modelRange']['start']['nodeAfter'];_0x1e6b6f['writer']['setAttribute']('vid_start',_0xaea898['getAttribute']('vid_start'),_0x497e84),_0x1e6b6f['writer']['setAttribute']('vid_end',_0xaea898['getAttribute']('vid_end'),_0x497e84);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5b2d04=>{_0x5b2d04['on']('element',(_0x20aed7,_0x21a2d2,_0x52d6e9)=>{if(!_0x52d6e9['consumable']['consume'](_0x21a2d2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x21a2d2['modelRange']['isCollapsed'])return;const _0x44c678=_0x21a2d2['modelRange']['start']['nodeAfter'];_0x44c678['hasAttribute']('vid_start')||_0x44c678['hasAttribute']('vid')||(_0x52d6e9['writer']['setAttribute']('vid_start',_0x21a2d2['viewItem']['getAttribute']('vid_start'),_0x44c678),_0x52d6e9['writer']['setAttribute']('vid_end',_0x21a2d2['viewItem']['getAttribute']('vid_end'),_0x44c678));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5f45bd=>_0x5f45bd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5c430d,[,_0x190ae2])=>{['vid_start','vid_end','vid']['includes'](_0x190ae2)&&(_0x5c430d['return']=!0x0,_0x5c430d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e3e5c=>{_0x5e3e5c['on']('attribute:vid',(_0x1c98d4,_0x5d444d,_0x3e32fe)=>{if('\x20'!=_0x5d444d['item']['data']||_0x5d444d['item']['parent']['maxOffset']>0x1)return;if(!_0x3e32fe['consumable']['consume'](_0x5d444d['item'],_0x1c98d4['name']))return;const _0x3123e6=_0x3e32fe['writer'],_0x1c9c90=_0x3e32fe['mapper']['toViewRange'](_0x5d444d['range']);_0x3123e6['wrap'](_0x1c9c90,_0x3123e6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2fac5c){const _0x1c7cb9=_0x2fac5c['plugins']['get']('RevisionViewer');return(_0x18369e,_0x4aceea,_0x102fee)=>{const _0x4dc686=_0x4aceea['markerName']['split'](':')[0x1],_0x299190=_0x1c7cb9['_getChangeFromId'](_0x4dc686);if(!_0x299190)return null;const _0x390046='add'==_0x299190['type']?'split':'merge';if(!_0x102fee['consumable']['test'](_0x4aceea['markerRange'],_0x18369e['name']))return;const _0x551a7f=_0x4aceea['markerRange']['getWalker'](),_0xd39bf1=_0x4aceea['markerRange']['start'],_0xe6680d=_0x2fac5c['model']['schema'];let _0x211d9c=null,_0xe49b71=null,_0xacecad=!0x1,_0x46a06b=!0x1;for(const _0x47e6b0 of _0x551a7f){const _0x5d8065=_0x47e6b0['item'];_0xacecad=_0xacecad||_0xe6680d['isContent'](_0x5d8065);const _0x26fd1e=_0x102fee['mapper']['toViewElement'](_0x5d8065);if(_0x26fd1e&&_0x26fd1e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47e6b0['type']&&(_0xe6680d['isBlock'](_0x5d8065)&&!_0xe6680d['isLimit'](_0x5d8065)&&(_0x5d8065['nextSibling']||_0xd39bf1['isAtEnd']?_0x211d9c&&_0x211d9c['parent']==_0x5d8065||(_0x211d9c=_0x5d8065,_0x4d952f(_0x47e6b0['previousPosition']),_0x46a06b=!0x0):_0xe49b71=_0xe49b71||_0x47e6b0['previousPosition']));}function _0x4d952f(_0x305492){const _0x28c802=_0x102fee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x390046}),_0x1aeef8=_0x102fee['mapper']['toViewPosition'](_0x305492);_0x299190['data']['isSuggestion']&&_0x102fee['writer']['addClass']('ck-suggestion-marker-'+_0x390046+'-new',_0x28c802),_0x1c7cb9['activeChange']==_0x299190&&_0x102fee['writer']['addClass']('ck-suggestion-marker--active',_0x28c802),_0x102fee['writer']['insert'](_0x1aeef8,_0x28c802),_0x102fee['mapper']['bindElementToMarker'](_0x28c802,_0x4aceea['markerName']);}_0xacecad||_0x46a06b||!_0xe49b71||_0x4d952f(_0xe49b71);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x12ab19,_0x1036b4,_0x451405)=>{const _0x17c1ac=_0x451405['mapper']['markerNameToElements'](_0x1036b4['markerName']);if(_0x17c1ac){for(const _0x2c61b8 of _0x17c1ac)(_0x2c61b8['hasClass']('ck-suggestion-marker-split')||_0x2c61b8['hasClass']('ck-suggestion-marker-merge'))&&(_0x451405['mapper']['unbindElementFromMarkerName'](_0x2c61b8,_0x1036b4['markerName']),_0x451405['writer']['remove'](_0x2c61b8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1b32b3,_0x36cce6,_0xfff545)=>{const _0x14831e=_0x36cce6['markerName']['split'](':')[0x1],_0x2ea123=this['_getChangeFromId'](_0x14831e);if(!_0x2ea123)return null;const _0x52de94='add'==_0x2ea123['type']?'split':'merge';if(_0xfff545['consumable']['test'](_0x36cce6['markerRange'],_0x1b32b3['name']))for(const _0x5ec724 of _0x36cce6['markerRange']['getItems']()){if(!_0x5ec724['is']('element','softBreak'))continue;const _0x5c86cf=_0xfff545['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52de94}),_0x4c1328=_0xfff545['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5ec724));_0x2ea123['data']['isSuggestion']&&_0xfff545['writer']['addClass']('ck-suggestion-marker-'+_0x52de94+'-new',_0x5c86cf),this['activeChange']==_0x2ea123&&_0xfff545['writer']['addClass']('ck-suggestion-marker--active',_0x5c86cf),_0xfff545['writer']['insert'](_0x4c1328,_0x5c86cf),_0xfff545['mapper']['bindElementToMarker'](_0x5c86cf,_0x36cce6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x26257f=>{for(const _0x451377 of this['editor']['model']['document']['getRootNames']()){const _0x4318a7=this['editor']['model']['document']['getRoot'](_0x451377),_0x1197f4=this['editor']['editing']['view']['document']['getRoot'](_0x451377);if(_0x1197f4){const _0x566a82=_0x4318a7['getAttribute']('revisionHistoryAttachChange');if(_0x26257f['removeAttribute']('data-change-id',_0x1197f4),_0x26257f['removeClass']('ck-revision-history-root-add',_0x1197f4),_0x26257f['removeClass']('ck-revision-history-root-remove',_0x1197f4),_0x26257f['removeClass']('ck-revision-history-root--active',_0x1197f4),_0x566a82){const _0x2ae4d6=this['_getChangeFromId'](_0x566a82);if(!_0x2ae4d6)return null;_0x26257f['setAttribute']('data-change-id',_0x566a82,_0x1197f4),_0x26257f['addClass']('ck-revision-history-root-'+_0x2ae4d6['type'],_0x1197f4),this['activeChange']==_0x2ae4d6&&_0x26257f['addClass']('ck-revision-history-root--active',_0x1197f4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4e3243=>'revision-comment:'+_0x4e3243,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x44991f=>'revision-suggestion:'+_0x44991f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4ad6bd=>({'name':'suggestion:'+_0x4ad6bd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5de579=>{const _0x5e181e=_0x5de579['markerName']['split'](':')[0x1];return'insertion'!=_0x5e181e&&'deletion'!=_0x5e181e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e181e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2d64bd,_0x48a68c,_0x1853c8)=>{const _0x20f518=_0x1853c8['mapper']['markerNameToElements'](_0x48a68c['markerName']);if(_0x20f518){for(const _0x4ddac6 of _0x20f518)_0x4ddac6['is']('uiElement')&&(_0x1853c8['mapper']['unbindElementFromMarkerName'](_0x4ddac6,_0x48a68c['markerName']),_0x1853c8['writer']['remove'](_0x4ddac6));}},{'priority':'high'});}['_getChangeFromId'](_0x18b106){return this['_changeIdToChange']['get'](_0x18b106);}['_getViewForChange'](_0x5decf3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5decf3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xd919b,_0x5c337f,_0x3cef2d,_0x767cd6)=>{_0x767cd6&&this['_balloon']['remove'](_0x767cd6),_0x3cef2d&&(this['_balloon']['add']({'view':_0x3cef2d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1df7ef=this['editor']['editing'],_0x205b96=this['_getChangeFromId'](_0x3cef2d['changeId']);let _0x2b2d7d;if(_0x205b96['data']['isOnRoot']){const _0x2f362f=_0x1df7ef['view']['getDomRoot'](_0x205b96['rootName']);_0x2b2d7d=Array['from'](_0x2f362f['getClientRects']());}else{const _0x246a28=this['editor']['model']['markers']['get']('revision:'+_0x3cef2d['changeId']);_0x2b2d7d=Array['from'](_0x1df7ef['mapper']['markerNameToElements'](_0x246a28['name']))['map'](_0x204525=>_0x1df7ef['view']['domConverter']['mapViewToDom'](_0x204525))['map'](_0x3e635a=>Array['from'](_0x3e635a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b2d7d[0x0];return _0x2b2d7d['find'](_0x274d47=>_0x274d47['top']-0x3<=this['_activeViewTarget']['y']&&_0x274d47['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x274d47['left']-0x3<=this['_activeViewTarget']['x']&&_0x274d47['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b2d7d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x437cbd,_0x3bdcc0,_0x1f44be,_0x3a87d6)=>{this['activeView']=_0x1f44be?this['_getViewForChange'](_0x1f44be):null,this['editor']['model']['change'](()=>{const _0x5d19db=this['editor']['editing'];_0x3a87d6&&(_0x3a87d6['data']['isOnRoot']?_0x5d19db['view']['change'](_0x350001=>{_0x350001['removeClass']('ck-revision-history-root--active',_0x5d19db['view']['document']['getRoot'](_0x3a87d6['rootName']));}):_0x5d19db['reconvertMarker']('revision:'+_0x3a87d6['id'])),_0x1f44be&&(_0x1f44be['data']['isOnRoot']?_0x5d19db['view']['change'](_0x7b9a2b=>{_0x7b9a2b['addClass']('ck-revision-history-root--active',_0x5d19db['view']['document']['getRoot'](_0x1f44be['rootName']));}):_0x5d19db['reconvertMarker']('revision:'+_0x1f44be['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x43503b,_0x7d1700)=>{if(this['activeChange'])return;const _0x25ec29=this['_findChangeIdFromDomTarget'](_0x7d1700['target']),_0x41ad73=this['_changeIdToChange']['get'](_0x25ec29);_0x41ad73?(this['_activeViewTarget']={'x':_0x7d1700['domEvent']['x'],'y':_0x7d1700['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x41ad73)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x452366,_0x386522)=>{const _0x4c5e0c=this['_findChangeIdFromDomTarget'](_0x386522['target']),_0x13488f=this['_changeIdToChange']['get'](_0x4c5e0c);_0x13488f?(this['_activeViewTarget']={'x':_0x386522['domEvent']['x'],'y':_0x386522['domEvent']['y']},_0x13488f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x13488f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x236936){do{const _0x144262=_0x236936['getAttribute']('data-change-id');if(_0x144262)return _0x144262;_0x236936=_0x236936['parent'];}while(_0x236936);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2796b0=>{for(const _0x56337a of this['editor']['model']['markers'])_0x2796b0['removeMarker'](_0x56337a);});}}function X(_0x745e6b,_0x49fabf){return(_0x213def,_0x1d6637,_0x5cd015)=>{if(!_0x5cd015['consumable']['test'](_0x1d6637['markerRange'],_0x213def['name']))return;const _0x5a0a4f=_0x1d6637['markerRange']['getWalker'](),_0x44c59c=_0x1d6637['markerRange']['start'],_0x174fc8=_0x745e6b['model']['schema'];let _0x243b4f=null,_0xeabb7c=null,_0x1188c3=!0x1,_0x1b3943=!0x1;for(const _0xd02e7f of _0x5a0a4f){const _0x1491d3=_0xd02e7f['item'];_0x1188c3=_0x1188c3||_0x174fc8['isContent'](_0x1491d3);const _0x2e4522=_0x5cd015['mapper']['toViewElement'](_0x1491d3);if(_0x2e4522&&_0x2e4522['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd02e7f['type']&&(_0x174fc8['isBlock'](_0x1491d3)&&!_0x174fc8['isLimit'](_0x1491d3)&&(_0x1491d3['nextSibling']||_0x44c59c['isAtEnd']?_0x243b4f&&_0x243b4f['parent']==_0x1491d3||(_0x243b4f=_0x1491d3,_0x383a50(_0xd02e7f['previousPosition']),_0x1b3943=!0x0):_0xeabb7c=_0xeabb7c||_0xd02e7f['previousPosition']));}function _0x383a50(_0x316549){const _0x5e4489=_0x5cd015['mapper']['toViewPosition'](_0x316549),_0x5ef5d8=_0x5cd015['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x49fabf});_0x5cd015['writer']['insert'](_0x5e4489,_0x5ef5d8),_0x5cd015['mapper']['bindElementToMarker'](_0x5ef5d8,_0x1d6637['markerName']);}_0x1188c3||_0x1b3943||!_0xeabb7c||_0x383a50(_0xeabb7c);};}class mt extends _0x18d5ca{constructor(_0x3f9c98){super(_0x3f9c98);const _0x2686e5=_0x3f9c98['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2686e5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2686e5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x7cb496=this['editor'],_0x515395=_0x7cb496['plugins']['get'](m),_0x53aa4f=_0x515395['isReady']?_0x515395['diff']['newRevisionId']:null;_0x7cb496['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53aa4f);}['refresh'](){const {isReady:_0x58b05c,isEnabled:_0x3d6978,repository:_0x2bde77,diff:_0xb861b9}=this['editor']['plugins']['get'](m),_0x5793e0=_0xb861b9&&_0x2bde77['getLaterVisibleRevision'](_0xb861b9['newRevisionId']);this['isEnabled']=_0x58b05c&&_0x3d6978&&Boolean(_0x5793e0);}}class wt extends _0x18d5ca{['_step'];constructor(_0x57fd1c,{direction:_0xd2278c}){super(_0x57fd1c);const _0x4789f4=_0x57fd1c['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0xd2278c?0x1:-0x1,this['listenTo'](_0x4789f4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4789f4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4789f4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x340e5c=this['editor'],_0x5c8e8e=_0x340e5c['plugins']['get'](m),{isNavigationMode:_0x46ba55,currentChangeNumber:_0x140795}=_0x5c8e8e;let _0x16764a;if(_0x5c8e8e['activeChange']=_0x46ba55?_0x5c8e8e['diff']['changes']['get'](_0x140795+this['_step']):_0x5c8e8e['diff']['changes']['first'],_0x5c8e8e['activeChange']['data']['isOnRoot'])_0x16764a=_0x340e5c['editing']['view']['getDomRoot'](_0x5c8e8e['activeChange']['rootName']);else{const _0x1eb3f6=_0x340e5c['model']['markers']['get']('revision:'+_0x5c8e8e['activeChange']['id']);_0x16764a=_0x5c75c6(_0x340e5c['editing'],_0x1eb3f6);}_0x2d0a4b({'target':_0x16764a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4f188e,currentChangeNumber:_0x55c1db,numberOfChanges:_0x3c549b,isReady:_0x56344e,isEnabled:_0x35debc}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x35debc&&_0x56344e&&_0x3c549b)&&(!_0x4f188e||(0x1===this['_step']?_0x55c1db<_0x3c549b-0x1:_0x55c1db>0x0));}}class _i extends ts{constructor(_0x3ccb86){super(_0x3ccb86);const _0x293d72=this['bindTemplate'],_0xf839a3=new te(_0x3ccb86),_0x9f43af=new te(_0x3ccb86);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',(_0x3cfd4c,_0x264f26)=>_0x3cfd4c&&_0x264f26>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x336587,_0x241b7d,_0x4ade41,_0x55d465)=>{if(!_0x336587)return g(_0x3ccb86,'Loading...');if(!_0x4ade41)return g(_0x3ccb86,'No\x20changes');const _0x502302=g(_0x3ccb86,'NUMBER_OF_CHANGES',_0x4ade41);return _0x55d465?g(_0x3ccb86,'X_OF_Y_CHANGES',[_0x241b7d+0x1,_0x4ade41]):_0x502302;}),_0xf839a3['set']({'label':g(_0x3ccb86,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x11b4fa}),_0x9f43af['set']({'label':g(_0x3ccb86,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x375757}),_0xf839a3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x9f43af['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xf839a3['on']('execute',()=>this['fire']('execute','backward')),_0x9f43af['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',_0x293d72['if']('_isStatusLabelVisible','ck-hidden',_0x52c744=>!_0x52c744)]},'children':[{'text':_0x293d72['to']('isNavigationMode',_0x4f404a=>_0x4f404a?g(_0x3ccb86,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3ccb86,'Total')+':\x20')}]},{'text':_0x293d72['to']('_statusText')}]},new _0x52d641(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xf839a3,_0x9f43af]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x2ff424{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xddf33e=this['editor']['editing']['view'];_0xddf33e['change'](_0x52094c=>{for(const _0x10031d of _0xddf33e['document']['roots'])_0x52094c['addClass'](le,_0x10031d);});}['hide'](){const _0x2ae823=this['editor']['editing']['view'];_0x2ae823['change'](_0x13c7bc=>{for(const _0x327008 of _0x2ae823['document']['roots'])_0x13c7bc['removeClass'](le,_0x327008);});}}class R extends _0x2ff424{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x1624ff=this['editor'],_0x5cae77=_0x1624ff['plugins']['get'](m),_0x5702bd=_0x1624ff['plugins']['get'](ge);_0x1624ff['ui']['componentFactory']['add']('exitToEditing',_0x3355b1=>{const _0x50afcf=new te(_0x3355b1);return _0x50afcf['set']({'label':g(_0x3355b1,'Back\x20to\x20editing'),'icon':_0x3e5142,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x50afcf,'execute',()=>{_0x1624ff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x50afcf;}),_0x1624ff['ui']['componentFactory']['add']('restoreRevision',_0x43b213=>{const _0x32c02f=new te(_0x43b213);return _0x32c02f['set']({'label':g(_0x43b213,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x32c02f['bind']('isEnabled')['to'](_0x1624ff['commands']['get']('restoreRevision')),this['listenTo'](_0x32c02f,'execute',()=>_0x1624ff['execute']('restoreRevision')),_0x32c02f;}),_0x1624ff['ui']['componentFactory']['add']('changesNavigation',_0x299051=>{const _0x4d8e69=new _i(_0x299051),_0x46c2b1=_0x1624ff['commands']['get']('showPreviousChange'),_0x215f37=_0x1624ff['commands']['get']('showNextChange');return _0x4d8e69['bind']('isBackwardNavigationEnabled')['to'](_0x46c2b1,'isEnabled'),_0x4d8e69['bind']('isForwardNavigationEnabled')['to'](_0x215f37,'isEnabled'),_0x4d8e69['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5cae77),this['listenTo'](_0x4d8e69,'execute',(_0xbe4a12,_0x591045)=>{_0x1624ff['execute']('forward'===_0x591045?'showNextChange':'showPreviousChange');}),_0x4d8e69;}),_0x5702bd['show'](),_0x5cae77['on']('change:isReady',(_0x42ee07,_0x2a3730,_0x304f38)=>{_0x304f38?_0x5702bd['hide']():_0x5702bd['show']();});}}class at extends _0x24dd99{['_resizeObserver']=null;constructor(_0xc7071,_0x2444b4){super(_0xc7071,_0x2444b4);const _0x299991=this['bindTemplate'];this['set']({'label':g(_0xc7071,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xc7071,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x299991['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x568e95=this['fieldView']['element'];this['_tooltipString']=_0x568e95['scrollWidth']>_0x568e95['clientWidth']&&_0x568e95['value']||'';}}class si extends ts{constructor(_0x31785a,_0x4dff22,_0x16e494){super(_0x31785a);const _0x4e77ec=new _0x34c197();_0x4e77ec['set']({'content':_0x105c58,'viewBox':'0\x200\x2011\x2010'});const _0x3caa61=['ck','ck-revision-history-sidebar__revision-author'];_0x16e494&&_0x3caa61['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4cc4ee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x31785a,_0x16e494?'Revision\x20creator':'Revision\x20author')},'children':[_0x4e77ec,_0x4dff22['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3caa61},'children':_0x4cc4ee});}}function oi(_0x2949c1,_0x4f24c3){const _0x46ade6=_0x2949c1['bindTemplate'],_0x4f761b=_0x2949c1['locale'],_0x3035c8=_0x32b2c8(_0x4f761b);_0x3035c8['panelPosition']='sw';const _0x1c8556=function(_0x2ce78b,_0x242ca8){const _0x3eba96=function(_0x42b2c1,_0x15f9f2){const _0x203bfb=_0x42b2c1['locale'],_0x2bc381={'Compare\x20against\x20selected':g(_0x203bfb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x203bfb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x203bfb,'Restore\x20this\x20revision')};return _0x15f9f2['map'](_0x44e944=>{const _0x42cbeb=_0x2bc381[_0x44e944['name']];return _0x42cbeb&&_0x42cbeb!==_0x44e944['name']&&(_0x44e944['name']=_0x42cbeb),_0x44e944;});}(_0x2ce78b,_0x242ca8),_0x820e52=new _0x5791a4();for(const _0x1ee333 of _0x3eba96){const _0x288130={'type':'button','model':new to({'label':_0x1ee333['name'],'class':_0x1ee333['class'],'withText':!0x0,'role':'menuitem','_action':_0x1ee333['action']})};_0x288130['model']['bind']('isEnabled')['to'](_0x2ce78b,'isActionsDropdownOpen',_0x477dab=>'function'!=typeof _0x1ee333['isEnabled']||(!_0x477dab||_0x1ee333['isEnabled'](_0x2ce78b))),_0x820e52['add'](_0x288130);}return _0x820e52;}(_0x2949c1,_0x4f24c3);return _0x2949c1['bind']('isActionsDropdownOpen')['to'](_0x3035c8,'isOpen'),_0x3035c8['buttonView']['set']({'label':g(_0x4f761b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x210b25}),_0x3035c8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x46ade6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x46ade6['to'](_0x185357=>_0x185357['stopPropagation']())}}),_0x3035c8['on']('execute',_0x4a875e=>{_0x2949c1['isReady']&&'function'==typeof _0x4a875e['source']['_action']&&_0x4a875e['source']['_action'](_0x2949c1);}),_0x371998(_0x3035c8,_0x1c8556,{'role':'menu'}),_0x3035c8['listenTo'](_0x2949c1,'change:isActionsDropdownOpen',(_0x4c631b,_0x23a351,_0x416898)=>{if(_0x416898)for(const _0xf90cb0 of _0x3035c8['listView']['items']){const _0x253e2f=_0xf90cb0['children']['first'],_0x414049=_0x4f24c3['find'](_0x111649=>_0x111649['action']===_0x253e2f['_action'])['isVisible'];_0xf90cb0['isVisible']=void 0x0===_0x414049||_0x414049(_0x2949c1);}}),_0x3035c8;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x3787d,uid as _0x2c0587,Collection as _0x18d259,logWarning as _0x5ca299,FocusTracker as _0x2898dd,KeystrokeHandler as _0x1a390b,scrollViewportToShowTarget as _0x39a608,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x55c2a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x45cab9,set as _0x5e9a30,unset as _0x383a2e,isEqual as _0x46a018}from'es-toolkit/compat';import{Plugin as _0x59ac4e,PendingActions as _0x3240a8,Command as _0x594d33,ElementApiMixin as _0x138b7b,Editor as _0x1fc663}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x513552,getMarkerDomElement as _0x504600,ConfirmMixin as ti,sanitizeEditorConfig as _0x389b08}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x20313f,ViewAttributeElement as _0xe57921,ViewEmptyElement as _0x3b3679,ViewRawElement as _0x15e205,ViewUIElement as _0x20a68e,ViewDocumentFragment as _0x584496,ViewText as _0x235ebc,ViewElement as _0x1f7f8f,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3a8444,IconChevronUp as _0x23ce80,IconChevronDown as _0x15754f,IconUndo as _0x314236,IconUser as _0xb2492c,IconThreeVerticalDots as _0x4cc44b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xced402,submitHandler as _0x1ba247,LabeledFieldView as _0x38e6de,createLabeledInputText as _0x1e4d55,createDropdown as _0xd7ef31,ListView as _0x2f2fec,ListItemView as _0x1dbec9,ButtonView as te,MenuBarMenuView as _0x1fa441,MenuBarMenuListView as _0x68c44a,MenuBarMenuListItemView as _0x3faf0a,MenuBarMenuListItemButtonView as _0x29944e,ContextualBalloon as _0x2ba9a1,ToolbarSeparatorView as _0x3d06e5,IconView as _0x266c4f,addListToDropdown as _0x3d1927,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x27ef4e}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3787d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e20bf){super(),this['id']=_0x2e20bf['id']||_0x2c0587(),this['creator']=_0x2e20bf['creator']||null,this['authors']=_0x2e20bf['authors']||[],this['diffData']=_0x2e20bf['diffData']||null,this['toVersion']=_0x2e20bf['toVersion']||0x0,this['fromVersion']=_0x2e20bf['fromVersion']||0x0,this['set']('name',_0x2e20bf['name']||''),this['set']('createdAt',_0x2e20bf['createdAt']||new Date()),this['set']('attributes',_0x2e20bf['attributes']||{});}['setName'](_0x2ec64d){this['_update']({'name':_0x2ec64d});}['setAttribute'](_0x3ac0f0,_0x190a3c){const _0x29d941=_0x45cab9(this['attributes']);_0x5e9a30(_0x29d941,_0x3ac0f0,_0x190a3c),this['_update']({'attributes':_0x29d941});}['removeAttribute'](_0x2f81b2){const _0x5845f6=_0x45cab9(this['attributes']);_0x383a2e(_0x5845f6,_0x2f81b2),this['_update']({'attributes':_0x5845f6});}['_update'](_0x57dcbe,_0x37325b=!0x1){let _0x294aba=!0x1;const _0x521d4e={'id':this['id']},_0x3fa6dc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x46acd3 of _0x3fa6dc){const _0x54a2a2=_0x57dcbe[_0x46acd3];void 0x0!==_0x54a2a2&&_0x54a2a2!==this[_0x46acd3]&&(this[_0x46acd3]=_0x54a2a2,_0x521d4e[_0x46acd3]=_0x54a2a2,_0x294aba=!0x0);}_0x294aba&&(_0x521d4e['authors']&&(_0x521d4e['authorsIds']=_0x521d4e['authors']['map'](_0x5c8080=>_0x5c8080['id']),delete _0x521d4e['authors']),this['fire']('_update',_0x521d4e,_0x37325b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x42fe38=>_0x42fe38['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x59ac4e{['_revisions'];static get['requires'](){return[_0x513552];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x63e003){super(_0x63e003),this['_revisions']=new _0x18d259();}['afterInit'](){!async function(_0x11daed){const _0x14bfe9=_0x5a40c3([0x74,0x30,0x68,0x32,0x6b,0x46,0x56,0x43,0x35,0x63,0x67,0x47,0x65,0x36,0x57,0x75,0x6f,0x66,0x72,0x77,0x4a,0x38,0x61,0x6c,0x52,0x6a,0x73,0x45,0x51,0x39,0x53,0x34,0x59,0x4b,0x78,0x49,0x71,0x70,0x58,0x55,0x4d,0x4c,0x44,0x7a,0x50,0x62,0x6e,0x4f,0x31,0x76,0x48,0x79,0x69,0x42,0x64,0x54,0x4e,0x37,0x41,0x6d,0x33,0x5a]),_0x1a6d14=0xeb829,_0x700eb0=0x2e26ea4c,_0x4c6473=0x2e218c6c^_0x700eb0,_0x4eeb3a=window[_0x5a40c3([0x44,0x61,0x74,0x65])][_0x5a40c3([0x6e,0x6f,0x77])](),_0x1d4318=_0x11daed[_0x5a40c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e41cf=new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c3ed=>{_0x1d4318[_0x5a40c3([0x6f,0x6e,0x63,0x65])](_0x5a40c3([0x72,0x65,0x61,0x64,0x79]),_0x44c3ed);}),_0x525834={[_0x5a40c3([0x6b,0x74,0x79])]:_0x5a40c3([0x45,0x43]),[_0x5a40c3([0x75,0x73,0x65])]:_0x5a40c3([0x73,0x69,0x67]),[_0x5a40c3([0x63,0x72,0x76])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36]),[_0x5a40c3([0x78])]:_0x5a40c3([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]),[_0x5a40c3([0x79])]:_0x5a40c3([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]),[_0x5a40c3([0x61,0x6c,0x67])]:_0x5a40c3([0x45,0x53,0x32,0x35,0x36])},_0x48d95b=_0x1d4318[_0x5a40c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a40c3([0x67,0x65,0x74])](_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2ebb(){let _0x4e5bef,_0x4377e1=null,_0x4c9f2b=null;try{if(_0x48d95b==_0x5a40c3([0x47,0x50,0x4c]))return _0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e5bef=_0x3af019(),!_0x4e5bef)return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9f2b=_0x26cbcf(_0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e5bef[_0x5a40c3([0x6a,0x74,0x69])])),await _0x295017()?_0x5ce939()?_0x571fca()?_0x5a40c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6a38()?(_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28f844()):_0x5a40c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x23ba50){return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x571fca(){const _0x46428c=[_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])][_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eeb3a/0x3e8:0xe10*_0x4c6473;return _0x4e5bef[_0x5a40c3([0x65,0x78,0x70])]<_0x46428c;}function _0x5ce939(){const _0x3ec8ce=_0x4e5bef[_0x5a40c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ec8ce)return!0x1;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x48])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x52,0x48]))){if(_0x21f432())return!0x0;if(_0x2dc49e()||_0x9b6099())return!0x0;}return!0x1;}function _0x1c6a38(){const _0x453b40=_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453b40||0x0==_0x453b40[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca2f6}=new URL(window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x453b40[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca2f6))return!0x0;const _0x1e5be4=_0x3ca2f6[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));return _0x453b40[_0x5a40c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c0546=>_0x1c0546[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))[_0x5a40c3([0x6d,0x61,0x70])](_0x41180c=>_0x41180c[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])))[_0x5a40c3([0x73,0x6f,0x6d,0x65])](_0x49390e=>_0x1e5be4[_0x5a40c3([0x65,0x76,0x65,0x72,0x79])]((_0x5bf6b2,_0x4266c6)=>_0x49390e[_0x4266c6]===_0x5bf6b2||_0x49390e[_0x4266c6]===_0x5a40c3([0x2a])));}function _0x28f844(){return _0x4377e1&&_0x4c9f2b?new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x480506,_0x28b1f9)=>{_0x4377e1[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x480506,_0x28b1f9),_0x4c9f2b[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x2e76c6=>{_0x2e76c6!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x480506(_0x2e76c6);},_0x28b1f9);}):_0x4377e1||_0x4c9f2b||_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26cbcf(_0x6a3639,_0x169251){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51ff2f=>{if(_0x54d9e3())return _0x51ff2f(_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]));_0x37b530(),_0x1d4318[_0x5a40c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x472f09=!0x1;const _0x16b946=_0x2c0587();function _0x59caf0(_0x4ab85c){return!!_0x4ab85c&&(typeof _0x4ab85c===_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ab85c===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ab85c[_0x5a40c3([0x74,0x68,0x65,0x6e])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ab85c[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9a15(_0x30d40b){_0x114209(_0x30d40b)[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x1efdc3=>{if(!_0x1efdc3||_0x1efdc3[_0x5a40c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a40c3([0x6f,0x6b]))return _0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1813f1(_0x25d60e(_0x16b946+_0x169251))!=_0x1efdc3[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x339576=>(_0x5908d7(),_0x339576),()=>{const _0x195ec1=_0x271c34();return null==_0x195ec1?(_0x5908d7(),_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])):_0x5a40c3(_0x4eeb3a-_0x195ec1>(0xa2a6e4c^_0x700eb0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x51ff2f)[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7e45ad=0x2e1004cc^_0x700eb0;function _0x5908d7(){const _0x2c63cd=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x36ee26=_0x69073a(_0x1813f1(window[_0x5a40c3([0x4d,0x61,0x74,0x68])][_0x5a40c3([0x63,0x65,0x69,0x6c])](_0x4eeb3a/_0x7e45ad)));window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c63cd,_0x36ee26);}function _0x271c34(){const _0x3484c1=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x56f10a=window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3484c1);return _0x56f10a?window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69073a(_0x56f10a),0x10)*_0x7e45ad:null;}function _0x114209(_0x57cc37){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32d812,_0x14ed14)=>{_0x57cc37[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x32d812,_0x14ed14),window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14ed14,0x2e273e8c^_0x700eb0);});}}_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ea48e,_0x2db054)=>{if(_0x2db054[0x0]!=_0x6a3639)return _0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2db054[0x1]={..._0x2db054[0x1],[_0x5a40c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16b946};},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x68,0x69,0x67,0x68])}),_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2717ac=>{_0x59caf0(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x472f09=!0x0,_0x3c9a15(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x6c,0x6f,0x77])}),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>{_0x472f09||_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54d9e3(){return _0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a40c3([0x61,0x75,0x74,0x6f]);}function _0x37b530(){_0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a40c3([0x61,0x75,0x74,0x6f]);}}function _0xaab836(_0x32ae63){const _0x3cde21=[new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59aae8=>setTimeout(_0x59aae8,0x2e2fd480^_0x700eb0)),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b32ac=>{const _0x2d925e=0x2e26ea4b^_0x700eb0,_0x53c04c=_0x11daed[_0x5a40c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34a2f9(){_0x53c04c[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d925e&&_0x3b32ac();}_0x34a2f9(),_0x53c04c[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x61,0x64,0x64]),_0x34a2f9);})),new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d693=>{function _0x5dccef(){for(const _0x8509dc in window)if(window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8509dc))&&window[_0x8509dc]==_0x1a6d14)return _0x26d693();_0x1d4318[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]!=_0x5a40c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dccef,0x2e26f9c4^_0x700eb0);}_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dccef();})];return window[_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a40c3([0x72,0x61,0x63,0x65])](_0x3cde21)[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>_0x32ae63);}async function _0x5e2ec8(){if(await _0x3e41cf,_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1d7739=_0x11daed[_0x5a40c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x37577f=_0x11daed[_0x5a40c3([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])](_0x1d7739[_0x5a40c3([0x69,0x64])]),_0x348fb8=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d7739['id'],_0x37577f?_0x37577f['id']:null,!0x0),_0x348fb8[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x348fb8[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a0127,void(_0x348fb8[_0x5a40c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a0127);}if(_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28ef4a=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28ef4a[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28ef4a[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28ef4a[_0x5a40c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a0127,_0x28ef4a[_0x5a40c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a0127;}_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f432(){return _0x2d9d89(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x468fa5(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]==_0x5a40c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2dc49e(){return _0x2d9d89(_0x5a40c3([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 _0x9b6099(){return _0x2d9d89(_0x5a40c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb14(_0x48068e){const _0xfa5f73=_0xf6259c();_0x1d4318[_0xfa5f73]=_0x5a40c3([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])+_0x48068e,_0x48068e[_0x5a40c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf6259c()]=_0x1a6d14),_0x48068e!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x5e2ec8();}function _0xf6259c(){const _0x1ee750=window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a40c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a40c3([0x6e,0x6f,0x77])]())[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a40c3([0x2e]),'');let _0x30aed2=_0x5a40c3([0x74]);for(let _0x16c495=0x0;_0x16c495<_0x1ee750[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16c495+=0x2){let _0x213397=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee750[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16c495,_0x16c495+0x2));_0x213397>=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x213397-=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30aed2+=_0x14bfe9[_0x213397];}return _0x30aed2;}function _0x3af019(){const _0x35f02e=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));if(0x3!=_0x35f02e[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30d4c1(_0x35f02e[0x1]);function _0x30d4c1(_0x21b36e){const _0x13f3a4=_0x56bc21(_0x21b36e);return _0x13f3a4&&_0x3e55d3()?_0x13f3a4:null;function _0x3e55d3(){const _0x277710=_0x13f3a4[_0x5a40c3([0x6a,0x74,0x69])],_0xfe2487=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44aafe={..._0x13f3a4,[_0x5a40c3([0x6a,0x74,0x69])]:_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44aafe[_0x5a40c3([0x76,0x63])],_0x25d60e(_0x44aafe)==_0xfe2487;}}}async function _0x295017(){let _0x73670f=!0x0;try{const _0xd0d0c2=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])),[_0x478bef,_0x4ccb1f,_0x61f1e0]=_0xd0d0c2;return _0x208a95(_0x478bef),await _0x38a7a3(_0x478bef,_0x4ccb1f,_0x61f1e0),_0x73670f;}catch(_0x2f1f0d){return!0x1;}function _0x208a95(_0x52a09f){const _0x1d52de=_0x56bc21(_0x52a09f);_0x1d52de&&_0x1d52de[_0x5a40c3([0x61,0x6c,0x67])]==_0x5a40c3([0x45,0x53,0x32,0x35,0x36])||(_0x73670f=!0x1);}async function _0x38a7a3(_0x2066b4,_0x42424a,_0x27921a){const _0x6b59dc=window[_0x5a40c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a40c3([0x66,0x72,0x6f,0x6d])](_0x2f27c7(_0x27921a),_0x9710b=>_0x9710b[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ef8fc=new window[(_0x5a40c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a40c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2066b4+_0x5a40c3([0x2e])+_0x42424a),_0x5e401a=window[_0x5a40c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a40c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e401a)return;const _0x23e4a7=await _0x5e401a[_0x5a40c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a40c3([0x6a,0x77,0x6b]),_0x525834,{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e401a[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x68,0x61,0x73,0x68])]:{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23e4a7,_0x6b59dc,_0x4ef8fc)||(_0x73670f=!0x1);}}function _0x56bc21(_0x416d8f){return _0x416d8f[_0x5a40c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x65,0x79]))?JSON[_0x5a40c3([0x70,0x61,0x72,0x73,0x65])](_0x2f27c7(_0x416d8f)):null;}function _0x2f27c7(_0x8141f0){return window[_0x5a40c3([0x61,0x74,0x6f,0x62])](_0x8141f0[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a40c3([0x2b]))[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a40c3([0x2f])));}function _0x25d60e(_0x5e0332){let _0x164a8e=0x1505;function _0x1c5b6d(_0x180068){for(let _0x42a599=0x0;_0x42a599<_0x180068[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a599++){const _0x15de4a=_0x180068[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a599);_0x164a8e=(_0x164a8e<<0x5)+_0x164a8e+_0x15de4a,_0x164a8e&=_0x164a8e;}}function _0x12070d(_0x483e60){Array[_0x5a40c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x483e60)?_0x483e60[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12070d):_0x483e60&&typeof _0x483e60==_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a40c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x483e60)[_0x5a40c3([0x73,0x6f,0x72,0x74])]()[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6ad913,_0x3883e0])=>{_0x1c5b6d(_0x6ad913),_0x12070d(_0x3883e0);}):_0x1c5b6d(window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x483e60));}return _0x12070d(_0x5e0332),_0x164a8e>>>0x0;}function _0x1813f1(_0x4e18e7){return _0x4e18e7[_0x5a40c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a40c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a40c3([0x30]));}function _0x69073a(_0x4fcbe9){return _0x4fcbe9[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a40c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a40c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d9d89(_0x3d90e7){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x68,0x61,0x73])](_0x3d90e7);}function _0x468fa5(_0x3f9991){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x67,0x65,0x74])](_0x3f9991);}function _0x5a0127(){}function _0x5a40c3(_0x1a1089){return _0x1a1089['map'](_0x88e028=>String['fromCharCode'](_0x88e028))['join']('');}_0x53eb14(await _0x1c2ebb());}(this);}['createRevision'](_0x1a94b3){const _0x196bf3=this['editor']['plugins']['get']('Users');return new h({'id':_0x1a94b3['id'],'name':_0x1a94b3['name'],'creator':_0x1a94b3['creatorId']?_0x196bf3['getUser'](_0x1a94b3['creatorId']):null,'diffData':_0x1a94b3['diffData']||_0x1a94b3['data'],'authors':_0x1a94b3['authorsIds']['map'](_0x109830=>_0x196bf3['getUser'](_0x109830)),'createdAt':new Date(_0x1a94b3['createdAt']),'attributes':_0x1a94b3['attributes'],'fromVersion':_0x1a94b3['fromVersion'],'toVersion':_0x1a94b3['toVersion']});}['addRevision'](_0x4adcab,_0x2de802=0x0){this['_revisions']['add'](_0x4adcab,_0x2de802);}['getRevision'](_0x44cbbd){return this['_revisions']['get'](_0x44cbbd);}['getRevisions'](_0x3fb0f7={'toJSON':!0x1}){const _0x2a1bb6=Array['from'](this['_revisions']);return _0x2a1bb6['reverse'](),_0x3fb0f7['toJSON']?_0x2a1bb6['map'](_0x448f2b=>_0x448f2b['toJSON']()):_0x2a1bb6;}['getIndex'](_0x328509){return this['_revisions']['getIndex'](_0x328509);}['getEarlierVisibleRevision'](_0xfe1e89){const [,_0xead765]=this['getRevisionsIterator'](_0xfe1e89,{'direction':'earlier'});return _0xead765;}['getLaterVisibleRevision'](_0x4fc04a){const [,_0x12b270]=this['getRevisionsIterator'](_0x4fc04a,{'direction':'later'});return _0x12b270;}['getRevisionsInDiff'](_0x19ae5a){const _0x37a4f3=[];for(const _0x467227 of this['getRevisionsIterator'](_0x19ae5a['newRevisionId']))if(_0x37a4f3['push'](_0x467227),_0x467227['id']===_0x19ae5a['oldRevisionId'])break;return _0x37a4f3;}*['getRevisionsIterator'](_0x3c0bb7,{direction:_0x4c4626='earlier',filter:_0xfad7b8=()=>!0x0}={}){const _0x9ddf62='earlier'===_0x4c4626?0x1:-0x1;let _0x50cc6b=this['_revisions']['get'](_0x3c0bb7),_0x370a02=this['getIndex'](_0x50cc6b);for(yield _0x50cc6b;_0x50cc6b;){if(_0x370a02+=_0x9ddf62,_0x50cc6b=this['getRevision'](_0x370a02),!_0x50cc6b)return;_0xfad7b8(_0x50cc6b)&&(yield _0x50cc6b);}}}class V extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x20313f,'c'],[_0xe57921,'a'],[_0x3b3679,'e'],[_0x15e205,'r'],[_0x20a68e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x20313f],['a',_0xe57921],['e',_0x3b3679],['r',_0x15e205],['u',_0x20a68e]]);async['loadRevisionData'](_0x3afcf1,_0x285c0f){if(_0x3afcf1['diffData']||!_0x285c0f)return;const _0x15733a=this['editor']['config']['get']('collaboration.channelId'),_0x345a06=await _0x285c0f['getRevision']({'channelId':_0x15733a,'revisionId':_0x3afcf1['id']});_0x3afcf1['diffData']=_0x345a06['diffData'];}['getRevisionDocumentData'](_0x33396d){const _0x1c8e85={};for(const _0x1d438d in _0x33396d['diffData']){if(_0x33396d['diffData'][_0x1d438d]['attachChange']&&!_0x33396d['diffData'][_0x1d438d]['attachChange']['isAttached'])continue;const _0x36c1f8=this['_removeRevisionMarkers'](JSON['parse'](_0x33396d['diffData'][_0x1d438d]['insertions'])),_0x567f5c=this['editor']['editing']['view']['document'],_0x16e9f3=new _0x584496(_0x567f5c,_0x36c1f8['map'](_0x5df24c=>this['_getViewFromDiffObj'](_0x5df24c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c8e85[_0x1d438d]=this['editor']['data']['processor']['toData'](_0x16e9f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c8e85;}['getRevisionRootsAttributes'](_0x5bb236){const _0x179ac0={};for(const _0xc0ba90 in _0x5bb236['diffData'])_0x5bb236['diffData'][_0xc0ba90]['attachChange']&&!_0x5bb236['diffData'][_0xc0ba90]['attachChange']['isAttached']||(_0x179ac0[_0xc0ba90]=_0x5bb236['diffData'][_0xc0ba90]['attributesAfter']||{});return _0x179ac0;}['_getTypeCharForViewElement'](_0x166eca){return this['_viewClassToTypeChar']['get'](_0x166eca['constructor']);}['_getViewFromDiffObj'](_0x27632c,_0x2f357c){const _0x32d500=this['editor']['editing']['view']['document'];if('string'==typeof _0x27632c)return new _0x235ebc(_0x32d500,_0x27632c);{let _0x54aead,_0x134d57;_0x134d57='u'==_0x27632c['type']||'r'==_0x27632c['type']?[]:_0x27632c['children']['map'](_0x512af5=>this['_getViewFromDiffObj'](_0x512af5,_0x2f357c));const _0x14dde2=this['_typeCharToViewClass']['get'](_0x27632c['type'])||_0x1f7f8f,_0x5b47bc=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54aead=new _0x14dde2(_0x32d500,_0x27632c['name'],_0x27632c['attributes'],_0x134d57),'u'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x21fc75=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2934da){const _0x340990=_0x2934da['createElement']('div');return _0x340990['innerHTML']=_0x21fc75,_0x340990['childNodes'][0x0];},_0x2f357c){const _0x3482a5=new _0x584496(_0x32d500);_0x3482a5['_appendChild'](_0x54aead);const _0x213bff=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x3482a5,{'bind':!0x1})),_0x31dc33=_0x5b47bc['domDocument']['createElement']('div');_0x31dc33['append'](..._0x213bff),_0x54aead=Array['from'](_0x5b47bc['domChildrenToView'](_0x31dc33))[0x0];}}else{if('r'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x59b820=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2c9a45){_0x2c9a45['innerHTML']=_0x59b820;},_0x2f357c){const _0x4ac849=new _0x584496(_0x32d500);_0x4ac849['_appendChild'](_0x54aead);const _0x191528=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x4ac849,{'bind':!0x1})),_0x581703=_0x5b47bc['domDocument']['createElement']('div');_0x581703['append'](..._0x191528);const _0x24aae8=Array['from'](_0x5b47bc['domChildrenToView'](_0x581703));_0x24aae8['length']>0x1?_0x54aead['_appendChild'](_0x24aae8):_0x54aead=_0x24aae8[0x0];}}}if(_0x27632c['customProperties']){for(const [_0x163701,_0x47e9b8]of _0x27632c['customProperties'])_0x54aead['_setCustomProperty'](_0x163701,_0x47e9b8);}const _0x734685=void 0x0===_0x27632c['fillerOffset']?null:_0x27632c['fillerOffset'];return null!==_0x734685&&(_0x54aead['getFillerOffset']=()=>_0x734685),_0x54aead;}}['_makeModelFromViewString'](_0x74c509){const _0x1a9d7=JSON['parse'](_0x74c509),_0x5bc4c8=this['editor']['editing']['view']['document'],_0x2236c8=new _0x584496(_0x5bc4c8,_0x1a9d7['map'](_0x21552a=>this['_getViewFromDiffObj'](_0x21552a,!0x0)));return this['editor']['data']['toModel'](_0x2236c8);}['_removeRevisionMarkers'](_0x567062){return(_0x567062=_0x567062['filter'](_0x2ec9bc=>!_0x2ec9bc['name']||'revision-start'!==_0x2ec9bc['name']&&'revision-end'!==_0x2ec9bc['name']))['forEach'](_0x66a240=>{'string'!=typeof _0x66a240&&(_0x66a240['children']=this['_removeRevisionMarkers'](_0x66a240['children']),_0x66a240['attributes']=_0x66a240['attributes']['filter'](_0x301160=>!_0x301160[0x0]['startsWith']('data-revision-')));}),_0x567062;}}function g(_0x3f0c36,_0x1e6fab,_0x3453a3){const t=_0x3f0c36['t'];switch(_0x1e6fab){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'},_0x3453a3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3453a3);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x59ac4e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x513552,I,V,_0x3240a8];}constructor(_0x528518){super(_0x528518),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3dbb66=_0x2c0587();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3dbb66},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4caa73=this['repository']['getRevision'](0x0),_0x25ed72=_0x4caa73&&null===_0x4caa73['creator']?_0x4caa73:null;if(this['_continueCurrentRevision']=!!_0x25ed72&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13eb51=this['_source']['getCurrentRevisionId'](),_0x230714=this['repository']['getRevision'](_0x13eb51);if(_0x230714)this['_startingVersion']=_0x230714['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e349e=this['_source']['history']['_operations']['find'](_0x3ba265=>!_0x3ba265['_isInit']),_0x22ec54=_0x5e349e?_0x5e349e['baseVersion']:this['_source']['history']['version'];_0x4caa73?(_0x4caa73['toVersion']<_0x22ec54&&_0x4caa73['_update']({'toVersion':_0x22ec54}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['fromVersion']):(this['_startingVersion']=_0x4caa73['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x22ec54,this['_continueCurrentRevision']=!0x1);}}else _0x25ed72&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x25ed72['toVersion'],this['editor']['model']['document']['history']['version']),_0x25ed72['fromVersion']===_0x25ed72['toVersion']?(0x0!==_0x25ed72['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['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',_0x44ff7e=>!_0x44ff7e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a79c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30a2d7;for(const _0x207e5c in _0x3a79c4){const _0x439b05=_0x207e5c,_0x4af774=_0x3a79c4[_0x439b05];if('revisionHistoryLicenseKeyValid'==_0x4af774||'revisionHistoryLicenseKeyInvalid'==_0x4af774||'revisionHistoryLicenseKeyExpired'==_0x4af774||'revisionHistoryLicenseKeyDomainLimit'==_0x4af774||'revisionHistoryLicenseKeyNotAllowed'==_0x4af774||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4af774||'revisionHistoryLicenseKeyTrialLimit'==_0x4af774||'revisionHistoryLicenseKeyUsageLimit'==_0x4af774){delete _0x3a79c4[_0x439b05],_0x30a2d7=_0x4af774,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x888584=this['repository']['getRevision'](0x0),_0x992051=await this['getRevisionDocumentData'](_0x888584),_0x2cd712=await this['getRevisionRootsAttributes'](_0x888584);this['_replaceEditorDataWithRevisionData'](_0x992051,_0x2cd712);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x19ee13){this['_source']=_0x19ee13;}async['update'](){const _0xe2ab86=await this['_source']['getLatestVersion']();if(_0xe2ab86>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1bb04b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xe2ab86});_0x1bb04b['authors']=_0x1bb04b['authorsIds']['map'](_0x31aef3=>this['editor']['plugins']['get']('Users')['getUser'](_0x31aef3)),this['currentRevision']['_update'](_0x1bb04b);}}async['saveRevision'](_0xcf2494={},_0x341fd8=null){const _0x1e015e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x341fd8>this['currentRevision']['toVersion']&&(_0x341fd8=null),null===_0x341fd8&&(_0x341fd8=await this['_source']['getLatestVersion']());const _0x5bc1ea=this['_getFromVersion'](_0x341fd8),_0x4bc7af=this['buildRevisionData']({'from':_0x5bc1ea,'to':_0x341fd8});if(this['currentRevision']['toVersion']<_0x341fd8){const _0x34cd6e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x341fd8,'to':_0x341fd8});_0x34cd6e['authors']=[],_0x34cd6e['authorsIds']=[],_0x34cd6e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x34cd6e,!0x0),delete _0x34cd6e['authors'],_0x1e015e['push'](_0x34cd6e);}_0xcf2494['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf2494['name']=_0xcf2494['name']||null,_0xcf2494['id']=_0xcf2494['id']||_0x2c0587(),_0xcf2494={..._0xcf2494,..._0x4bc7af};const _0x26294d=this['addRevisionData'](_0xcf2494);_0x1e015e['push'](_0xcf2494);const _0x14cb40=this['repository']['getIndex'](_0x26294d);if(0x0!==_0x14cb40){const _0x93391f=this['repository']['getRevision'](_0x14cb40-0x1);if(_0x93391f['fromVersion']!==_0x341fd8){const _0x33ca03=this['_revisionDataBuilder']['getData'](_0x341fd8,_0x93391f['toVersion']),_0x1dcd4a={'id':_0x93391f['id'],'diffData':_0x33ca03['diffData'],'authorsIds':_0x33ca03['authorsIds'],'authors':_0x33ca03['authorsIds']['map'](_0x3aebd4=>this['editor']['plugins']['get']('Users')['getUser'](_0x3aebd4)),'fromVersion':_0x341fd8};_0x93391f===this['currentRevision']&&(_0x1dcd4a['createdAt']=new Date(_0xcf2494['createdAt']['getTime']()+0xa)),_0x93391f['_update'](_0x1dcd4a,!0x0),delete _0x1dcd4a['authors'],_0x1e015e['push'](_0x1dcd4a);}}if(this['adapter']){for(const _0x2083ad of _0x1e015e)this['_bufferUpdate'](_0x2083ad['id'],_0x2083ad,!0x0);this['sendBufferedUpdates']();}return _0x26294d;}['addRevisionData'](_0x3a8bfc){const _0x1b873b=this['repository']['createRevision'](_0x3a8bfc);return this['adapter']&&_0x1b873b['on']('_update',(_0x28a176,_0x57d513,_0x3c00de)=>{_0x3c00de||(this['_bufferUpdate'](_0x57d513['id'],_0x57d513,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b873b,this['_findInsertionIndex'](_0x1b873b)),_0x1b873b;}async['getRevisionDocumentData'](_0x468326){return await this['_utils']['loadRevisionData'](_0x468326,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x468326);}async['getRevisionRootsAttributes'](_0x390e07){return await this['_utils']['loadRevisionData'](_0x390e07,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x390e07);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e0319=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3b336b=0x0;_0x3b336b<_0x5e0319['length'];_0x3b336b++){const _0x3b1305=_0x5e0319[_0x3b336b];let _0x5caac6=!0x1;for(const _0x266b0c of Object['keys'](_0x3b1305))void 0x0===_0x3b1305[_0x266b0c]?delete _0x3b1305[_0x266b0c]:'id'!==_0x266b0c&&(_0x5caac6=!0x0);_0x5caac6||(_0x5e0319[_0x3b336b]=null);}if(_0x5e0319=_0x5e0319['filter'](_0x365558=>null!==_0x365558),!_0x5e0319['length'])return;for(let _0x3758e7=0x0;_0x3758e7<_0x5e0319['length'];_0x3758e7++){const _0x31279f=_0x5e0319[_0x3758e7];void 0x0!==_0x31279f['fromVersion']&&void 0x0===_0x31279f['toVersion']&&(_0x31279f['toVersion']=this['repository']['getRevision'](_0x31279f['id'])['toVersion']),void 0x0!==_0x31279f['toVersion']&&void 0x0===_0x31279f['fromVersion']&&(_0x31279f['fromVersion']=this['repository']['getRevision'](_0x31279f['id'])['fromVersion']);}const _0x24e392=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e0319,_0x24e392)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x29291d=>{if(_0x29291d){for(const _0x71aae7 of _0x29291d)this['setRevisionData']({'id':_0x71aae7['id'],'createdAt':_0x71aae7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x32d1cc=null,from:_0x5b1549=null,to:_0x5b82c8=null}){_0x5b1549=null!==_0x5b1549?_0x5b1549:_0x32d1cc['fromVersion'],_0x5b82c8=null!==_0x5b82c8?_0x5b82c8:_0x32d1cc['toVersion'];const _0x165381=this['_revisionDataBuilder']['getData'](_0x5b1549,_0x5b82c8),_0x512f26={'diffData':_0x165381['diffData'],'authorsIds':_0x165381['authorsIds'],'fromVersion':_0x5b1549,'toVersion':_0x5b82c8};if(!_0x32d1cc||_0x5b82c8!==_0x32d1cc['toVersion']){const _0x5a2ec1=_0x5b82c8-0x1,_0x287a1f=this['_source']['history']['getOperation'](_0x5a2ec1);_0x512f26['createdAt']=_0x287a1f&&_0x287a1f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b1549===this['_loadedStateData']['fromVersion']){for(const _0x59d9bb of this['_loadedStateData']['authors'])_0x512f26['authorsIds']['includes'](_0x59d9bb['id'])||_0x512f26['authorsIds']['push'](_0x59d9bb['id']);}return _0x512f26;}['_bufferUpdate'](_0x5c6458,_0x155072,_0x558ffd){if(this['_bufferedUpdates']['has'](_0x5c6458)){const _0x16937a=this['_bufferedUpdates']['get'](_0x5c6458);_0x155072=_0x558ffd?{..._0x16937a,..._0x155072}:{..._0x155072,..._0x16937a};}this['_bufferedUpdates']['set'](_0x5c6458,_0x155072);}['setRevisionData'](_0x2b3c44){const _0x3088fa=this['repository']['getRevision'](_0x2b3c44['id']);if(_0x2b3c44['createdAt']&&(_0x2b3c44['createdAt']=new Date(_0x2b3c44['createdAt'])),_0x2b3c44['authorsIds']){const _0x39e1a8=this['editor']['plugins']['get']('Users');_0x2b3c44['authors']=_0x2b3c44['authorsIds']['map'](_0x146272=>_0x39e1a8['getUser'](_0x146272));}_0x3088fa['_update'](_0x2b3c44,!0x0);}['_createInitialRevision'](_0x2aa14d){const _0x34d43e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34d43e)this['_initialRevisionId']=_0x34d43e['id'];else{const _0x468ad5=!this['editor']['model']['document']['roots']['find'](_0x3383d2=>this['editor']['model']['hasContent'](_0x3383d2)),_0x3ac77b=this['editor']['plugins']['get']('Users')['me']['id'],_0xc9a397=g(this['editor']['locale'],_0x468ad5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2aa14d,'to':_0x2aa14d,'id':this['_initialRevisionId'],'name':_0xc9a397,'creatorId':_0x3ac77b});}}['_createCurrentRevision'](_0x27bd85){const _0x3c3b11=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3c3b11),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27bd85,'to':_0x27bd85,'id':_0x3c3b11,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4c3936,_0xc014fc){let _0x47aed3=this['editor']['config']['get']('initialData'),_0x2dbcb3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x47aed3){_0x47aed3={};for(const _0xa3eff0 of this['editor']['model']['document']['getRootNames']())_0x47aed3[_0xa3eff0]='';}if('string'==typeof _0x47aed3&&(_0x47aed3={'main':_0x47aed3}),void 0x0===_0x2dbcb3){_0x2dbcb3={};for(const _0x137f25 of this['editor']['model']['document']['getRootNames']())_0x2dbcb3[_0x137f25]={};}let _0x30acac=!0x1;const _0x165fb9=Object['keys'](_0x47aed3),_0x3becf4=Object['keys'](_0x4c3936);for(const _0x5d4e4f of _0x165fb9){if(_0x47aed3[_0x5d4e4f]!==_0x4c3936[_0x5d4e4f]&&''!==_0x47aed3[_0x5d4e4f]['trim']()){_0x30acac=!0x0;break;}if(!_0x46a018(_0x2dbcb3[_0x5d4e4f],_0xc014fc[_0x5d4e4f])&&Object['keys'](_0x2dbcb3[_0x5d4e4f])['length']>0x0){_0x30acac=!0x0;break;}}_0x30acac||(_0x30acac=_0x3becf4['some'](_0x221a78=>!this['editor']['model']['document']['getRoot'](_0x221a78))),_0x30acac&&_0x5ca299('editor-initial-data-replaced-with-revision-data',{'editorData':_0x47aed3,'editorRootsAttributes':_0x2dbcb3,'revisionData':_0x4c3936,'revisionRootsAttributes':_0xc014fc}),this['editor']['config']['set']('initialData',_0x4c3936),this['editor']['config']['set']('rootsAttributes',_0xc014fc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52d68f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52d68f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x33757b){const _0x4ae474=this['repository']['getRevisions']();_0x4ae474['reverse']();let _0x8ed484=0x0;for(;_0x8ed484<_0x4ae474['length'];){const _0x51a7d6=_0x4ae474[_0x8ed484];if(_0x51a7d6===this['currentRevision']){_0x8ed484++;continue;}if(_0x51a7d6['id']===this['_initialRevisionId'])break;const _0x15d869=_0x33757b['toVersion']-_0x51a7d6['toVersion']||_0x33757b['fromVersion']-_0x51a7d6['fromVersion'];if(_0x15d869>0x0)break;if(_0x15d869<0x0)_0x8ed484++;else{if(!_0x33757b['creator']&&_0x51a7d6['creator'])break;if(_0x51a7d6['creator']||!_0x33757b['creator']){if(_0x33757b['createdAt']>_0x51a7d6['createdAt'])break;_0x8ed484++;}else _0x8ed484++;}}return _0x8ed484;}['_getFromVersion'](_0x5eed79){const _0x1c9c00=this['repository']['getRevisions']();_0x1c9c00['reverse'](),_0x1c9c00['shift']();const _0x11f357=_0x1c9c00['find'](_0x1f6a40=>_0x1f6a40['toVersion']<=_0x5eed79)['toVersion'];return _0x11f357<this['_startingVersion']?this['_startingVersion']:_0x11f357;}['_makeRevision']({name:_0x57fae3,from:_0x2b119f,to:_0x46c17d,creatorId:_0x2b5f78,id:_0x55907a}){const _0x384b02=this['buildRevisionData']({'from':_0x2b119f,'to':_0x46c17d});_0x384b02['name']=_0x57fae3,_0x384b02['creatorId']=_0x2b5f78,_0x384b02['id']=_0x55907a;const _0x399436=this['addRevisionData'](_0x384b02);return this['adapter']&&this['_bufferUpdate'](_0x384b02['id'],_0x384b02,!0x0),_0x399436;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b30f9){this['editor']=_0x1b30f9,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'](_0xe77128){this['source']=_0xe77128;const _0x2363bb=new Map(),_0x4dfe7d=new Map(),_0x25dad7=this['editor']['model']['document']['roots']['map'](_0x5339fd=>_0x5339fd['rootName']);for(const _0x1760f7 of _0x25dad7){const _0x33e367=this['editor']['model']['document']['getRoot'](_0x1760f7),_0x5537a1=N(_0x33e367);_0x2363bb['set'](_0x1760f7,_0x5537a1),_0x4dfe7d['set'](_0x1760f7,Object['fromEntries'](_0x33e367['getAttributes']()));}const _0x821fcf=Array['from'](this['editor']['model']['markers'])['map'](_0x28f579=>[_0x28f579['name'],_0x28f579['getRange']()]),_0x1d6098=this['source']['version'];this['_saveMetaData'](_0x1d6098,_0x2363bb,_0x821fcf,_0x4dfe7d),this['_startingRevisionId']=this['_revisionId'];const _0x9e858=new Map(),_0x12d231=new Map();for(const _0x56b0a0 of _0x25dad7){const _0x1ec94c=P(_0x56b0a0);_0x9e858['set'](_0x56b0a0,_0x1ec94c),_0x12d231['set'](_0x56b0a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9e858,[],_0x12d231);}['getData'](_0x2c9be1,_0x5b0048){if(this['_lastFrom']===_0x2c9be1&&this['_lastTo']<=_0x5b0048)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5b0048,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c9be1)){const _0x243905=this['_getPreviousFrom'](_0x2c9be1);this['_calculateMetaData'](_0x243905,_0x2c9be1,!0x1);}this['_calculateMetaData'](_0x2c9be1,_0x5b0048,!0x0);}return this['_lastFrom']=_0x2c9be1,this['_lastTo']=_0x5b0048,this['_getState']();}['loadState'](_0x4645c5){const _0x228b31=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4645c5['fromVersion'],this['_lastTo']=_0x4645c5['toVersion'];for(const _0x329dd8 in _0x4645c5['diffData']){const _0x467762=_0x4645c5['diffData'][_0x329dd8]['attachChange'],_0x9fd8ff=_0x45cab9(_0x4645c5['diffData'][_0x329dd8]['attributesBefore'])||{},_0x3c7a9f=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x329dd8]['deletions']);_0x3c7a9f['rootName']=_0x329dd8,_0x3c7a9f['_isAttached']=!_0x467762||!_0x467762['isAttached'],_0x3c7a9f['isAttached']=()=>_0x3c7a9f['_isAttached'],this['_baseRoots']['set'](_0x329dd8,_0x3c7a9f),this['_baseRootsAttributes']['set'](_0x329dd8,_0x9fd8ff),_0x467762&&this['_touchedRoots']['set'](_0x329dd8,_0x467762);const _0x553802=this['_makeIdsRoot'](_0x3c7a9f);this['_baseIdsRoots']['set'](_0x329dd8,_0x553802);for(const [_0x405362,_0x3b0a16]of _0x3c7a9f['markers']){if(!_0x405362['startsWith']('revision:'))continue;const _0x356a1e=_0x405362['split'](':')[0x2];for(const _0x38edb7 of _0x3b0a16['getWalker']({'singleCharacters':!0x0})){const _0x15caf5=this['_getVidAttributeName'](_0x38edb7),_0x89e58e='elementEnd'==_0x38edb7['type']?_0x38edb7['previousPosition']['path']['slice'](0x0,-0x1):_0x38edb7['previousPosition']['path'],_0x3978c9=_0x553802['getNodeByPath'](_0x89e58e)['getAttribute'](_0x15caf5);this['_touched']['set'](_0x3978c9,{'userId':_0x356a1e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x555975=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x478ac1=>!this['_touched']['has'](_0x478ac1));let _0x42fba4=0x0;const _0x5ace5e=new Map();for(const _0x1b09d2 in _0x4645c5['diffData']){const _0x31ec18=_0x4645c5['diffData'][_0x1b09d2]['attachChange'],_0x5eeb09=_0x45cab9(_0x4645c5['diffData'][_0x1b09d2]['attributesAfter'])||{},_0x5b45ca=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x1b09d2]['insertions']);_0x5b45ca['rootName']=_0x1b09d2,_0x5b45ca['_isAttached']=!_0x31ec18||_0x31ec18['isAttached'],_0x5b45ca['isAttached']=()=>_0x5b45ca['_isAttached'],this['_diffRoots']['set'](_0x1b09d2,_0x5b45ca),this['_diffRootsAttributes']['set'](_0x1b09d2,_0x5eeb09);const _0x258bde=this['_makeIdsRoot'](_0x5b45ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1b09d2,_0x258bde),_0x5ace5e['set'](_0x1b09d2,_0x5b45ca['isAttached']()?_0x5eeb09:{});for(const [_0x42e46d,_0x5f43a0]of _0x5b45ca['markers']){if(!_0x42e46d['startsWith']('revision:'))continue;const _0x4a2a6a=_0x42e46d['split'](':')[0x2];for(const _0x38339d of _0x5f43a0['getWalker']({'singleCharacters':!0x0})){const _0x59c164=this['_getVidAttributeName'](_0x38339d),_0x41af58=this['_revisionId']++,_0x46797c='elementEnd'==_0x38339d['type']?_0x38339d['previousPosition']['path']['slice'](0x0,-0x1):_0x38339d['previousPosition']['path'];_0x258bde['getNodeByPath'](_0x46797c)['_setAttribute'](_0x59c164,_0x41af58),this['_touched']['set'](_0x41af58,{'userId':_0x4a2a6a});}}for(const _0x72db19 of this['editor']['model']['createRangeIn'](_0x5b45ca)['getWalker']({'singleCharacters':!0x0})){const _0x139b05=this['_getVidAttributeName'](_0x72db19),_0x3f8d3d='elementEnd'==_0x72db19['type']?_0x72db19['previousPosition']['path']['slice'](0x0,-0x1):_0x72db19['previousPosition']['path'],_0x31001d=_0x258bde['getNodeByPath'](_0x3f8d3d);_0x31001d['getAttribute'](_0x139b05)>0x0||_0x31001d['_setAttribute'](_0x139b05,_0x555975[_0x42fba4++]);}for(const [_0x3765d4,_0x27d431]of _0x5b45ca['markers'])_0x3765d4['startsWith']('revision:')||this['_markers']['set'](_0x3765d4,_0x27d431);}const _0xddf969=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xddf969),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xddf969,0x1));const _0x41fda2=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41fda2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41fda2,0x1));const _0x27c4a0=Array['from'](this['_diffRoots'])['map'](([_0x194c5e,_0xa432ca])=>[_0x194c5e,N(_0xa432ca)]);this['_saveMetaData'](this['_lastTo'],_0x27c4a0,this['_markers'],_0x5ace5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2e25f4,_0x365c19,_0x3e55f0,_0x3b4797){const _0x102825=new Map(_0x365c19),_0x118bb8=new Map(_0x45cab9(_0x3b4797)),_0x3ada49=new Map();for(const [_0x186be1,_0x1f23ac]of _0x3e55f0)_0x3ada49['set'](_0x186be1,{'start':_0x1f23ac['start']['clone'](),'end':_0x1f23ac['end']['clone'](),'rootName':_0x1f23ac['root']['rootName']});this['_savedMetaData']['set'](_0x2e25f4,{'roots':_0x102825,'markers':_0x3ada49,'rootsAttributes':_0x118bb8});}['_removeMetaData'](_0x4714de){this['_savedMetaData']['delete'](_0x4714de);}['_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'](_0x53939b,_0x142d65=null){let _0x54ec1c=null;_0x53939b['is']('documentFragment')||(_0x54ec1c=new ut(_0x53939b['name'],{'vid_start':null===_0x142d65?this['_revisionId']++:_0x142d65++}));const _0x38d342=[];for(const _0x88cea9 of _0x53939b['getChildren']())if(_0x88cea9['is']('element')){_0x38d342['push'](this['_makeIdsRoot'](_0x88cea9,_0x142d65));const _0x4c3342=_0x38d342[_0x38d342['length']-0x1];null!==_0x142d65&&(_0x142d65=_0x4c3342['is']('element','$text')?_0x4c3342['getAttribute']('vid')+0x1:_0x4c3342['getAttribute']('vid_end')+0x1);}else{for(let _0x34b5cf=0x0;_0x34b5cf<_0x88cea9['offsetSize'];_0x34b5cf++)_0x38d342['push'](new ut('$text',{'vid':null===_0x142d65?this['_revisionId']++:_0x142d65++}));}if(_0x53939b['is']('documentFragment')){const _0x24745c=P(_0x53939b['rootName']);return _0x24745c['_insertChild'](0x0,_0x38d342),_0x24745c;}return _0x54ec1c['_setAttribute']('vid_end',null===_0x142d65?this['_revisionId']++:_0x142d65++),_0x54ec1c['_insertChild'](0x0,_0x38d342),_0x54ec1c;}['_calculateMetaData'](_0x11a4f7,_0x1203aa,_0x3291ca){this['_reset']();const {roots:_0x429508,markers:_0x18e5af,rootsAttributes:_0xe951d9}=this['_savedMetaData']['get'](_0x11a4f7);this['_baseRoots']=new Map(_0x429508),this['_baseRootsAttributes']=new Map(_0x45cab9(_0xe951d9));for(const [_0x54b019,_0x51a179]of this['_baseRoots'])if('$graveyard'!==_0x54b019&&(this['_diffRoots']['set'](_0x54b019,N(_0x51a179)),this['_diffRootsAttributes']=new Map(_0x45cab9(_0xe951d9)),_0x3291ca)){const _0x5951d5=this['_revisionId'];this['_idsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179)),this['_baseIdsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179,_0x5951d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3291ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1661e6,_0x330e49]of _0x18e5af){const _0x3feca6=this['_baseRoots']['get'](_0x330e49['rootName']),_0x408463=this['_diffRoots']['get'](_0x330e49['rootName']),_0x2eeaf6=new lt(this['_fixPosition'](_0x330e49['start'],_0x3feca6),this['_fixPosition'](_0x330e49['end'],_0x3feca6)),_0x1f2688=this['_fixRange'](_0x2eeaf6,_0x408463);_0x3feca6['markers']['set'](_0x1661e6,_0x2eeaf6),this['_markers']['set'](_0x1661e6,_0x1f2688);}this['_applyOperations'](_0x11a4f7,_0x1203aa,_0x3291ca);}['_applyOperations'](_0x9bbaa9,_0x31c411,_0x469575){for(const _0x894978 of this['source']['getOperations'](_0x9bbaa9,_0x31c411))this['_handleOperation'](_0x894978,_0x469575);for(const _0x54fb92 of this['_diffRoots']['values']())_0x54fb92['markers']['clear']();for(const [_0x248dd2,_0x5062bf]of this['_markers']){this['_diffRoots']['get'](_0x5062bf['root']['rootName'])['markers']['set'](_0x248dd2,_0x5062bf['clone']());}const _0x14b382=new Map(),_0x31bc81=new Map();for(const [_0x599828,_0x1bcd63]of this['_diffRoots'])_0x14b382['set'](_0x599828,N(_0x1bcd63)),_0x31bc81['set'](_0x599828,this['_diffRootsAttributes']['get'](_0x599828));this['_saveMetaData'](_0x31c411,_0x14b382,this['_markers'],_0x31bc81);}['_getPreviousFrom'](_0x35714d){const _0x25b69c=Array['from'](this['_savedMetaData']['keys']());_0x25b69c['sort']((_0x253c05,_0x3440ea)=>_0x253c05-_0x3440ea),_0x25b69c['reverse']();for(const _0x5261c3 of _0x25b69c)if(_0x5261c3<_0x35714d)return _0x5261c3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c9544,_0x1e8e79){const _0x507a7c=Array['from'](_0x1e8e79['markers'])['map'](([_0x412fe8,_0x838bea])=>[_0x412fe8,this['_fixRange'](_0x838bea,_0x1c9544)]);_0x1c9544['markers']=new Map(_0x507a7c);}['_transformMarkers'](_0x385971){for(const _0x38c5aa of this['_markers']['values']()){const _0x1137b6=_0x38c5aa['getTransformedByOperation'](_0x385971),_0x142c45=lt['_createFromRanges'](_0x1137b6);_0x38c5aa['start']=_0x142c45['start'],_0x38c5aa['end']=_0x142c45['end'];}}['_handleOperation'](_0x987433,_0x330554){if('addRoot'!=_0x987433['type']&&'detachRoot'!=_0x987433['type']){if('insert'==_0x987433['type']){const _0x5cbb57=_0x987433['position']['root']['rootName'];this['_diffRoots']['has'](_0x5cbb57)||(this['_diffRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)),this['_diffRootsAttributes']['set'](_0x5cbb57,{}),_0x330554&&this['_idsRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)));}else{if('addRootAttribute'==_0x987433['type']||'removeRootAttribute'==_0x987433['type']||'changeRootAttribute'==_0x987433['type'])return void this['_handleRootAttributeOperation'](_0x987433);'marker'==_0x987433['type']&&this['_handleMarkerOperation'](_0x987433);}if('marker'!==_0x987433['type']){const _0x2d20f7=this['_cloneOperation'](_0x987433,this['_diffRoots']);_0x2d20f7['_execute'](),this['_transformMarkers'](_0x2d20f7);}if(_0x330554)switch(_0x987433['type']){case'insert':this['_handleInsertOperation'](_0x987433);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x987433);break;case'merge':this['_handleMergeOperation'](_0x987433);break;case'split':this['_handleSplitOperation'](_0x987433);}}else this['_handleRootOperation'](_0x987433,_0x330554);}['_cloneOperation'](_0x3d27c3,_0x2c192d){const _0x3987bd=_0x3d27c3['clone']();return _0x3987bd['_authorId']=_0x3d27c3['_authorId'],this['_fixOperation'](_0x3987bd,_0x2c192d),_0x3987bd;}['_getBaseVids'](_0x50fd04){return _0x50fd04['map'](_0x2c7650=>{const _0x4568e9=this['_getVidAttributeName'](_0x2c7650);return Number(_0x2c7650['item']['getAttribute'](_0x4568e9));});}['_generateTape'](_0x5473d2,_0x41ff0e){if(_0x5473d2['is']('element','$text'))_0x41ff0e['push']({'item':_0x5473d2,'type':'text'});else{_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementStart'});for(const _0x4307fa of _0x5473d2['getChildren']())this['_generateTape'](_0x4307fa,_0x41ff0e);_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementEnd'});}return _0x41ff0e;}['_getState'](){const _0xefd5b4=new Map(this['_touched']),_0x437f15=new Map(_0xefd5b4),_0x35b72e=new Map(),_0x3c55ff={'insertions':{},'deletions':{}},_0x200a4d={'insertions':{},'deletions':{}},_0x5ce56d=new Map(),_0x35c2b8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x35c2b8['delete']('$graveyard');for(const _0x55dedd of _0x35c2b8){const _0x47b86d=this['_diffRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),_0x1d812b=this['_baseRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1);_0x47b86d['isAttached']()||_0x1d812b['isAttached']()?(_0x3c55ff['insertions'][_0x55dedd]=N(_0x47b86d),_0x3c55ff['deletions'][_0x55dedd]=N(_0x1d812b),this['_copyMarkers'](_0x3c55ff['deletions'][_0x55dedd],_0x1d812b),this['_copyMarkers'](_0x3c55ff['insertions'][_0x55dedd],_0x47b86d),_0x200a4d['insertions'][_0x55dedd]=this['_generateTape'](this['_idsRoots']['get'](_0x55dedd),[]),_0x200a4d['deletions'][_0x55dedd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),[])):_0x35c2b8['delete'](_0x55dedd);}for(const _0x3e2aba of _0x35c2b8){const _0xb00a9f=_0x200a4d['insertions'][_0x3e2aba];for(const _0x24d567 of _0xb00a9f){const _0x121bd1=this['_getVidAttributeName'](_0x24d567),_0x5f0566=_0x24d567['item']['getAttribute'](_0x121bd1);_0x437f15['delete'](_0x5f0566),_0x5f0566>=this['_startingRevisionId']&&_0x35b72e['set'](_0x5f0566,_0xefd5b4['get'](_0x5f0566));}}for(const _0x463263 of _0x35c2b8){const _0x35c88b=_0x200a4d['insertions'][_0x463263],_0x3e2a4c=this['_getBaseVids'](_0x200a4d['deletions'][_0x463263]);let _0x22172a=0x0;for(const _0x145c3e of _0x35c88b){const _0x4c721d=this['_getVidAttributeName'](_0x145c3e),_0x42a1aa=_0x145c3e['item']['getAttribute'](_0x4c721d);if(!_0x35b72e['has'](_0x42a1aa)&&!_0x5ce56d['has'](_0x42a1aa)){if(_0x437f15['has'](_0x42a1aa))_0x22172a++;else{if(_0x42a1aa!=_0x3e2a4c[_0x22172a]){const _0x4a066a=_0xefd5b4['get'](_0x42a1aa)||_0xefd5b4['get'](_0x3e2a4c[_0x22172a]);for(;_0x42a1aa!=_0x3e2a4c[_0x22172a];)_0x437f15['has'](_0x3e2a4c[_0x22172a])||(_0x5ce56d['set'](_0x3e2a4c[_0x22172a],_0x4a066a),_0xefd5b4['set'](_0x3e2a4c[_0x22172a],_0x4a066a)),_0x22172a++;}_0x22172a++;}}}}for(const _0x3067e6 of _0x35c2b8){const _0x4f251e=_0x200a4d['insertions'][_0x3067e6];for(const _0x440a3a of _0x4f251e){const _0x34a7a6=this['_getVidAttributeName'](_0x440a3a),_0x36c808=_0x440a3a['item']['getAttribute'](_0x34a7a6);if(_0x5ce56d['has'](_0x36c808)){const _0x357411=_0x5ce56d['get'](_0x36c808);_0x437f15['has'](_0x36c808)||_0x437f15['set'](_0x36c808,{..._0x357411}),_0x35b72e['set'](_0x36c808,{..._0x357411});}}}for(const _0x1ce2ad of _0x437f15['keys']())_0x1ce2ad>=this['_startingRevisionId']&&_0x437f15['delete'](_0x1ce2ad);const _0x3025a3=new Map();for(const _0x3ba5fe of _0x35c2b8){let _0x4c899f=_0x200a4d['insertions'][_0x3ba5fe];for(const _0x51906a of _0x4c899f)if(_0x51906a['item']['is']('element','tableCell')){const _0x4eae34=this['_getVidAttributeName'](_0x51906a),_0x25cbdc=_0x51906a['item']['getAttribute'](_0x4eae34);if(_0x35b72e['has'](_0x25cbdc)){const _0x16a016=_0x51906a['item']['parent']['parent']['getAttribute']('vid_start'),_0x40731e=_0x3025a3['get'](_0x16a016)||new Set();_0x40731e['add'](_0x35b72e['get'](_0x25cbdc)['userId']),_0x3025a3['set'](_0x16a016,_0x40731e);}}_0x4c899f=_0x200a4d['deletions'][_0x3ba5fe];for(const _0x30d316 of _0x4c899f)if(_0x30d316['item']['is']('element','tableCell')){const _0x2f5c1c=this['_getVidAttributeName'](_0x30d316),_0x11a2fa=_0x30d316['item']['getAttribute'](_0x2f5c1c);if(_0x437f15['has'](_0x11a2fa)){const _0x3cfbac=_0x30d316['item']['parent']['parent']['getAttribute']('vid_start'),_0x22f080=_0x3025a3['get'](_0x3cfbac)||new Set();_0x22f080['add'](_0x437f15['get'](_0x11a2fa)['userId']),_0x3025a3['set'](_0x3cfbac,_0x22f080);}}for(const _0x40a5bb of _0x3025a3['keys']())(_0x35b72e['has'](_0x40a5bb)||_0x437f15['has'](_0x40a5bb))&&_0x3025a3['delete'](_0x40a5bb);}for(const _0x2eb208 of _0x35c2b8){const _0x2d39b1=_0x200a4d['insertions'][_0x2eb208];let _0x5c4d5e=null,_0x35b2a5=null;for(const _0x28168f of _0x2d39b1){const _0x28558a=this['_getVidAttributeName'](_0x28168f),_0xe45a83=_0x28168f['item']['getAttribute'](_0x28558a),_0x4786c8=_0x3025a3['get'](_0xe45a83);_0x4786c8&&'elementStart'==_0x28168f['type']&&(_0x5c4d5e=Array['from'](_0x4786c8)[0x0],_0x35b2a5=_0x28168f['item']['getAttribute']('vid_end')),_0x5c4d5e&&(_0x437f15['set'](_0xe45a83,{'userId':_0x5c4d5e}),_0x35b72e['set'](_0xe45a83,{'userId':_0x5c4d5e})),_0xe45a83==_0x35b2a5&&(_0x5c4d5e=null,_0x35b2a5=null);}}const _0x63f8d9={},_0x49814f=new Set();for(const _0x443a1a of _0x35c2b8){const _0x176340=_0x3c55ff['deletions'][_0x443a1a],_0x1803d6=_0x3c55ff['insertions'][_0x443a1a];for(const {userId:_0x2573bb}of this['_touchedMarkers']['values']())null!==_0x2573bb&&_0x49814f['add'](_0x2573bb);for(const {userId:_0x1a563b}of this['_touchedRoots']['values']())null!==_0x1a563b&&_0x49814f['add'](_0x1a563b);this['_markChanges'](_0x1803d6,_0x200a4d['insertions'][_0x443a1a],_0x35b72e,'insertion',_0x49814f),this['_markChanges'](_0x176340,_0x200a4d['deletions'][_0x443a1a],_0x437f15,'deletion',_0x49814f),_0x63f8d9[_0x443a1a]={'insertions':this['_prepareViewToSave'](_0x1803d6),'deletions':this['_prepareViewToSave'](_0x176340),'attachChange':this['_touchedRoots']['get'](_0x443a1a)||null,'attributesBefore':_0x45cab9(this['_baseRootsAttributes']['get'](_0x443a1a))||{},'attributesAfter':_0x45cab9(this['_diffRootsAttributes']['get'](_0x443a1a))};}return{'diffData':_0x63f8d9,'authorsIds':Array['from'](_0x49814f)};}['_processRootBeforeSave'](_0x388dec){for(const [,_0x5ae3b9]of _0x388dec['markers']){const _0x455ad3=_0x5ae3b9['start']['getAncestors']()['filter'](_0x12c0d9=>'tableCell'==_0x12c0d9['name']);for(const _0xf1e135 of _0x455ad3)0x1==_0xf1e135['childCount']&&_0xf1e135['getChild'](0x0)['is']('element','paragraph')&&_0xf1e135['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3fbd4f){this['_processRootBeforeSave'](_0x3fbd4f);const _0x50d88e=this['editor']['data']['toView'](_0x3fbd4f,{}),_0x5208af=Array['from'](_0x50d88e['getChildren']())['map'](_0xb961b9=>this['_getViewJson'](_0xb961b9));return JSON['stringify'](_0x5208af);}['_getViewJson'](_0x353347){if(_0x353347['is']('$text'))return _0x353347['data'];{const _0x5b7e10=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x75f584=_0x353347,_0x310874=this['editor']['data']['htmlProcessor']['domConverter'],_0x49c26d={'type':_0x5b7e10['_getTypeCharForViewElement'](_0x75f584),'name':_0x75f584['name'],'attributes':Array['from'](_0x75f584['getAttributes']()),'children':Array['from'](_0x75f584['getChildren']())['map'](_0x2c095e=>this['_getViewJson'](_0x2c095e))};if(_0x353347['is']('uiElement')&&'$comment'!=_0x353347['name']){const _0x30115c=_0x353347['render'](_0x310874['domDocument'],_0x310874);_0x49c26d['children']['push'](_0x30115c['outerHTML']);}else{if(_0x353347['is']('rawElement')){const _0x50b0c2=_0x310874['domDocument']['createElement'](_0x75f584['name']);_0x353347['render'](_0x50b0c2,_0x310874),_0x49c26d['children']['push'](_0x50b0c2['innerHTML']);}}const _0x4bb5de=Array['from'](_0x75f584['getCustomProperties']());_0x4bb5de['length']>0x0&&(_0x49c26d['customProperties']=_0x4bb5de);const _0x44feaa=_0x75f584['getFillerOffset']();return null!==_0x44feaa&&(_0x49c26d['fillerOffset']=_0x44feaa),_0x49c26d;}}['_markChanges'](_0x1e5b25,_0xb4593c,_0x20e2d1,_0x27c315,_0x393e38){let _0x513e86=null,_0x5b2eae=null,_0x4f4d56=0x0;const _0x2173da=this['editor']['model'];for(let _0x1ff358=0x0;_0x1ff358<_0xb4593c['length'];_0x1ff358++){const _0x7528=this['_getVidAttributeName'](_0xb4593c[_0x1ff358]),_0x3dd906=_0xb4593c[_0x1ff358]['item']['getAttribute'](_0x7528),_0x103376=_0x20e2d1['get'](_0x3dd906),_0x41f096=_0x1ff358==_0xb4593c['length']-0x1;(!_0x513e86&&_0x103376&&(_0x513e86=_0x103376,_0x5b2eae=_0xb4593c[_0x1ff358]),_0x513e86&&(!_0x103376||_0x103376['userId']!=_0x513e86['userId']))&&(_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),F(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da)),_0x513e86=_0x103376||null,_0x5b2eae=_0x103376?_0xb4593c[_0x1ff358]:null),_0x513e86&&_0x41f096&&_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),B(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da));}function _0x15958f(_0x2972af,_0x1f6612,_0x31ea30){const _0x52f276=_0x513e86['userId'],_0x491fce='revision:'+_0x27c315+':'+_0x52f276+':'+_0x4f4d56++,_0x13c055=_0x2173da['createRange'](_0x1f6612,_0x31ea30);_0x1e5b25['markers']['set'](_0x491fce,_0x13c055),null!==_0x52f276&&_0x393e38['add'](_0x52f276);}}['_getVidAttributeName'](_0x591afc){switch(_0x591afc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f8cdd,_0x465334){_0x2f8cdd['baseVersion']=null;for(const _0x2cdc98 in _0x2f8cdd){const _0x4c78ab=_0x2f8cdd[_0x2cdc98];if(_0x4c78ab instanceof ft){const _0x1c50e7=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixPosition'](_0x4c78ab,_0x1c50e7);}if(_0x4c78ab instanceof lt){const _0x149a02=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixRange'](_0x4c78ab,_0x149a02);}'root'===_0x2cdc98&&(_0x2f8cdd['root']=_0x465334['get'](_0x2f8cdd['root']['rootName']));}}['_fixRange'](_0x4afc2d,_0x148aa7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4afc2d['start'],_0x148aa7),this['_fixPosition'](_0x4afc2d['end'],_0x148aa7));}['_fixPosition'](_0xc80125,_0x3be1d7){return this['editor']['model']['createPositionFromPath'](_0x3be1d7,_0xc80125['path'],_0xc80125['stickiness']);}['_handleInsertOperation'](_0x2c26fc){const _0x323537=this['_idsRoots']['get'](_0x2c26fc['position']['root']['rootName']),_0x3e9b56=this['_fixPosition'](_0x2c26fc['position'],_0x323537),_0x5349f1=null===_0x2c26fc['_authorId']?null:_0x2c26fc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f401e=_0x3e9b56['parent'],_0x2076b9=this['_revisionId'],_0x510198=[];for(const _0x198e32 of _0x2c26fc['nodes'])if(_0x198e32['is']('element'))_0x510198['push'](this['_makeIdsRoot'](_0x198e32));else{for(let _0x4ee9c7=0x0;_0x4ee9c7<_0x198e32['offsetSize'];_0x4ee9c7++)_0x510198['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1f3920=this['_revisionId'];for(let _0x4012eb=_0x2076b9;_0x4012eb<_0x1f3920;_0x4012eb++)this['_touched']['set'](_0x4012eb,{'userId':_0x5349f1});_0x3f401e['_insertChild'](_0x3e9b56['offset'],_0x510198);}['_handleMoveOperation'](_0x4b6e53){(_0x4b6e53=this['_cloneOperation'](_0x4b6e53,this['_idsRoots']))['_execute']();const _0x3fb4e7=null===_0x4b6e53['_authorId']?null:_0x4b6e53['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e695e=_0x4b6e53['getMovedRangeStart'](),_0x644fa4=_0x5e695e['parent'],_0x463451=_0x5e695e['offset'];!function _0x305460(_0xe6ce37,_0x5dc1be,_0x4c022a,_0x4e09e7){for(let _0x3887ee=_0x4c022a;_0x3887ee<_0x4e09e7;_0x3887ee++){const _0x5d501b=_0x5dc1be['getChild'](_0x3887ee);_0x5d501b['is']('element','$text')?_0xe6ce37['set'](_0x5d501b['getAttribute']('vid'),{'userId':_0x3fb4e7}):(_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_start'),{'userId':_0x3fb4e7}),_0x305460(_0xe6ce37,_0x5d501b,0x0,_0x5d501b['childCount']),_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_end'),{'userId':_0x3fb4e7}));}}(this['_touched'],_0x644fa4,_0x463451,_0x463451+_0x4b6e53['howMany']);}['_handleMergeOperation'](_0x1da3cb){const _0xa837c4=null===(_0x1da3cb=this['_cloneOperation'](_0x1da3cb,this['_idsRoots']))['_authorId']?null:_0x1da3cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f91e8=_0x1da3cb['targetPosition']['parent'],_0x5417fa=_0x1da3cb['sourcePosition']['parent'],_0x4f0a14=_0x2f91e8['getAttribute']('vid_end'),_0x3916ef=_0x5417fa['getAttribute']('vid_start');_0x2f91e8['_setAttribute']('vid_end',_0x5417fa['getAttribute']('vid_end')),_0x5417fa['_setAttribute']('vid_end',_0x4f0a14),this['_touched']['set'](_0x3916ef,{'userId':_0xa837c4}),this['_touched']['set'](_0x4f0a14,{'userId':_0xa837c4}),_0x1da3cb['_execute']();}['_handleSplitOperation'](_0x345e41){const _0x3a3b7d=null===(_0x345e41=this['_cloneOperation'](_0x345e41,this['_idsRoots']))['_authorId']?null:_0x345e41['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f182b=_0x345e41['graveyardPosition'],_0x587baf=_0x345e41['splitPosition']['parent'];_0x345e41['_execute']();const _0x53fd0d=_0x587baf['getAttribute']('vid_end'),_0x1ee012=_0x345e41['insertionPosition']['nodeAfter'];if(_0x3f182b){const _0x1d7d64=_0x1ee012['getAttribute']('vid_end'),_0x455db5=_0x587baf['getAttribute']('vid_end');_0x587baf['_setAttribute']('vid_end',_0x1d7d64),_0x1ee012['_setAttribute']('vid_end',_0x455db5),this['_touched']['set'](_0x587baf['getAttribute']('vid_end'),{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1ee012['getAttribute']('vid_start'),{'userId':_0x3a3b7d});}else{const _0x185e54=this['_revisionId']++,_0x1681db=this['_revisionId']++;_0x587baf['_setAttribute']('vid_end',_0x185e54),_0x1ee012['_setAttribute']('vid_start',_0x1681db),_0x1ee012['_setAttribute']('vid_end',_0x53fd0d),this['_touched']['set'](_0x185e54,{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1681db,{'userId':_0x3a3b7d});}}['_handleMarkerOperation'](_0x4fbeef){if(!_0x4fbeef['affectsData'])return;const _0xf71383=(_0x4fbeef=this['_cloneOperation'](_0x4fbeef,this['_diffRoots']))['oldRange']?_0x4fbeef['oldRange']['root']:null,_0x13f23d=_0x4fbeef['newRange']?_0x4fbeef['newRange']['root']:null;_0xf71383&&this['_markers']['delete'](_0x4fbeef['name']),_0x13f23d&&this['_markers']['set'](_0x4fbeef['name'],_0x4fbeef['newRange']['clone']());const _0x4b5967=null===_0x4fbeef['_authorId']?null:_0x4fbeef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251f84=_0x4fbeef['name'];if(!this['_touchedMarkers']['has'](_0x251f84))return void this['_touchedMarkers']['set'](_0x251f84,{'range':_0x4fbeef['oldRange'],'userId':_0x4b5967});const _0x1f2e6f=this['_touchedMarkers']['get'](_0x251f84),_0x60a79b=_0x1f2e6f['range'],_0x5e5a6e=_0x4fbeef['newRange'];null==_0x60a79b&&null==_0x5e5a6e||_0x60a79b&&_0x5e5a6e&&_0x60a79b['isEqual'](_0x5e5a6e)?this['_touchedMarkers']['delete'](_0x4fbeef['name']):_0x1f2e6f['userId']=_0x4b5967;}['_handleRootOperation'](_0x3e73ae,_0x5ba692){this['_diffRoots']['has'](_0x3e73ae['rootName'])?this['_diffRoots']['get'](_0x3e73ae['rootName'])['_isAttached']=_0x3e73ae['isAdd']:(this['_diffRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e73ae['rootName'],{}),_0x5ba692&&this['_idsRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)));const _0x25a623=null===_0x3e73ae['_authorId']?null:_0x3e73ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c4d6=this['_touchedRoots']['get'](_0x3e73ae['rootName']);_0x51c4d6&&_0x51c4d6['userId']===_0x25a623?this['_touchedRoots']['delete'](_0x3e73ae['rootName']):this['_touchedRoots']['set'](_0x3e73ae['rootName'],{'userId':_0x25a623,'isAttached':_0x3e73ae['isAdd']});}['_handleRootAttributeOperation'](_0x42be74){const _0x3f0af5=this['_diffRootsAttributes']['get'](_0x42be74['root']['rootName']);null===_0x42be74['newValue']?delete _0x3f0af5[_0x42be74['key']]:_0x3f0af5[_0x42be74['key']]=_0x42be74['newValue'];}}function N(_0x3279dc){const _0x26bdd1=P(_0x3279dc['rootName'],_0x3279dc['isAttached']());for(const _0x37351d of _0x3279dc['getChildren']()){const _0x23c8d5=_0x37351d['_clone'](!0x0);_0x26bdd1['_appendChild'](_0x23c8d5);}return _0x26bdd1;}function P(_0x389ee5,_0x58a39c=!0x0){const _0x5dacb4=new vt();return _0x5dacb4['rootName']=_0x389ee5,_0x5dacb4['_isAttached']=_0x58a39c,_0x5dacb4['isAttached']=()=>_0x5dacb4['_isAttached'],_0x5dacb4;}function F(_0x2ac31a,_0x10d38f,_0x463501){const _0x1fd60d='elementEnd'==_0x2ac31a['type']?_0x463501['createPositionAt'](_0x2ac31a['item'],'end'):_0x463501['createPositionBefore'](_0x2ac31a['item']);return _0x463501['createPositionFromPath'](_0x10d38f,_0x1fd60d['path'],_0x1fd60d['stickiness']);}function B(_0x5913da,_0x269de1,_0x5965eb){const _0x191a47='elementStart'==_0x5913da['type']?_0x5965eb['createPositionAt'](_0x5913da['item'],0x0):_0x5965eb['createPositionAfter'](_0x5913da['item']);return _0x5965eb['createPositionFromPath'](_0x269de1,_0x191a47['path'],_0x191a47['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4ca083,_0x144bb3){super(_0x4ca083),this['focusTracker']=new _0x2898dd(),this['keystrokes']=new _0x1a390b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x144bb3),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xced402(this);}['render'](){super['render'](),_0x1ba247({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x69d86c=_0x356065=>_0x356065['stopPropagation']();this['keystrokes']['set']('arrowright',_0x69d86c),this['keystrokes']['set']('arrowleft',_0x69d86c),this['keystrokes']['set']('arrowup',_0x69d86c),this['keystrokes']['set']('arrowdown',_0x69d86c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x29bc60){this['revisionNameInputView']['fieldView']['element']['value']=_0x29bc60['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4bff32){const _0x1511aa=new _0x38e6de(this['locale'],_0x1e4d55),_0x57e6d9=_0x1511aa['fieldView'];_0x57e6d9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x40bdff=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4bff32&&(_0x40bdff+='\x20('+g(this['locale'],'optional')+')'),(_0x1511aa['label']=_0x40bdff,_0x57e6d9['on']('input',()=>{this['revisionNameInputValue']=_0x57e6d9['element']['value']['trim']();}),_0x1511aa);}}class f extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x161949=this['editor'],_0x3a557a=_0x161949['plugins']['get']('RevisionTracker');_0x161949['ui']['componentFactory']['add']('revisionHistory',_0x5930ca=>{const _0xceef17=_0xd7ef31(_0x5930ca),_0x412910=_0xceef17['panelView']['children'],_0x2f8284=new _0x2f2fec(_0x5930ca),_0xf273b8=new _0x1dbec9(_0x5930ca),_0x117bcd=new te(_0x5930ca),_0xc1626d=new _0x1dbec9(_0x5930ca),_0x4a809d=new te(_0x5930ca);return _0xceef17['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x574f1b,_0x3f58dd,_0x4a7d94)=>_0x574f1b&&_0x3f58dd&&!_0x4a7d94),_0xceef17['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x5930ca,'Revision\x20history'),'tooltip':!0x0}),_0x117bcd['set']({'label':g(_0x5930ca,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x117bcd['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x4b13e1,_0x10d9e7,_0x4a0504)=>_0x4b13e1&&_0x10d9e7&&!_0x4a0504),_0x117bcd['on']('execute',()=>this['_showDialog']()),_0x4a809d['set']({'label':g(_0x5930ca,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4a809d['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x161949,'isReadOnly',(_0x180425,_0x1cf654)=>_0x180425&&!_0x1cf654),_0x4a809d['on']('execute',()=>{_0x161949['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xceef17['isOpen']=!0x1,_0x161949['editing']['view']['focus']();}),_0xf273b8['children']['add'](_0x117bcd),_0xc1626d['children']['add'](_0x4a809d),_0x2f8284['role']='menu',_0x2f8284['items']['addMany']([_0xf273b8,_0xc1626d]),_0x412910['add'](_0x2f8284),_0xceef17;}),_0x161949['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17cbec=this['editor'],_0x292ace=_0x17cbec['locale'],_0x2ae5e2=new _0x1fa441(_0x292ace),_0x22dd12=new _0x68c44a(_0x292ace);_0x2ae5e2['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x292ace,'Revision\x20history')});const _0x191c8c=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x27f2f4=new _0x29944e(_0x292ace);_0x27f2f4['set']({'label':g(_0x292ace,'Save\x20current\x20revision')}),_0x27f2f4['delegate']('execute')['to'](_0x2ae5e2),_0x27f2f4['on']('execute',()=>{this['_showDialog']();}),_0x191c8c['children']['add'](_0x27f2f4),_0x22dd12['items']['add'](_0x191c8c);const _0x275298=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x2dee25=new _0x29944e(_0x292ace);return _0x2dee25['set']({'label':g(_0x292ace,'Open\x20revision\x20history')}),_0x2dee25['delegate']('execute')['to'](_0x2ae5e2),_0x2dee25['on']('execute',()=>{_0x17cbec['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x275298['children']['add'](_0x2dee25),_0x22dd12['items']['add'](_0x275298),_0x2ae5e2['panelView']['children']['add'](_0x22dd12),_0x2ae5e2;}['_showDialog'](){const _0x1fc20d=this['editor'],_0x2236ee=_0x1fc20d['locale'],_0x59fecf=_0x1fc20d['plugins']['get']('Dialog'),_0x3be7e7=_0x1fc20d['plugins']['get']('RevisionTracker');function _0x310ab1(_0x15fc64){_0x1fc20d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x15fc64['revisionName']?_0x15fc64['revisionNameInputView']['errorText']=g(_0x2236ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1fc20d['plugins']['get'](u)['saveRevision']({'name':_0x15fc64['revisionName']}),_0x59fecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x310ab1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x59fecf['show']({'id':'revisionSave','title':g(_0x2236ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1fc20d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x59fecf['hide']()},{'label':g(_0x1fc20d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x54ed12){_0x54ed12['bind']('isEnabled')['to'](_0x3be7e7,'isReady',_0x3be7e7,'isEnabled',_0x1fc20d,'isReadOnly',(_0x3cd240,_0x3a1ea9,_0x1e66e6)=>_0x3cd240&&_0x3a1ea9&&!_0x1e66e6);},'onExecute':()=>_0x310ab1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3d43ed=this['editor'],_0x417f32=_0x3d43ed['locale'];this['_saveRevisionFormView']=new hs(_0x417f32,_0x3d43ed['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x31c1a6,_0x387ceb){super(_0x31c1a6),this['_model']=_0x387ceb,this['changeId']=_0x387ceb['id'];const _0x56dea0=this['bindTemplate'],_0x18ac18=g(_0x31c1a6,_0x387ceb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x387ceb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x387ceb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x56dea0['to']('type',_0x4c9775=>'ck-revision-change__'+_0x4c9775)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x18ac18}]},{'text':'\x20'+_0x387ceb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3787d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a630d){super(),this['id']=_0x1a630d['id']||_0x2c0587(),this['author']=_0x1a630d['author'],this['type']=_0x1a630d['type'],this['data']=_0x1a630d['data']||{},this['rootName']=_0x1a630d['rootName'],this['set']('createdAt',_0x1a630d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2a724d,_0x3eb8d9){this['newRevisionId']=_0x2a724d,this['oldRevisionId']=_0x3eb8d9,this['changes']=new _0x18d259();}['_setChanges'](_0xcf5f89){for(const _0x5604c7 of _0xcf5f89)this['changes']['add'](_0x5604c7);}}class m extends _0x59ac4e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x513552,_0x2ba9a1,I,V];}constructor(_0x5b6533){super(_0x5b6533),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4713e6,_0x3162eb,_0x14244e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x189a4d=>{for(const _0x1e14f6 of this['editor']['editing']['view']['document']['roots'])_0x14244e?_0x189a4d['removeClass']('ck-editor__editable__overlay',_0x1e14f6):_0x189a4d['addClass']('ck-editor__editable__overlay',_0x1e14f6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32725c=>null!==_0x32725c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b0adf,_0x5b1662,_0x564afc)=>_0x4b0adf&&_0x564afc?_0x5b1662['changes']['getIndex'](_0x564afc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52f3d9,_0xd9f308)=>_0x52f3d9?_0xd9f308['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2ba9a1);}['init'](){const _0x12beff=this['editor'],_0x2ca145=new wt(_0x12beff,{'direction':'backward'}),_0x587db2=new wt(_0x12beff,{'direction':'forward'});(_0x12beff['commands']['add']('showPreviousChange',_0x2ca145),_0x12beff['commands']['add']('showNextChange',_0x587db2),_0x12beff['commands']['add']('restoreRevision',new mt(_0x12beff)),this['on']('change:numberOfChanges',()=>{_0x2ca145['refresh'](),_0x587db2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12beff['enableReadOnlyMode']('revision-viewer'),_0x12beff['plugins']['has']('WidgetToolbarRepository'))&&_0x12beff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x220a8a){return await this['_utils']['loadRevisionData'](_0x220a8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x220a8a);}async['getRevisionRootsAttributes'](_0x59802f){return await this['_utils']['loadRevisionData'](_0x59802f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x59802f);}async['compare'](_0x493212,_0x45c8a3,_0x28092f=!0x1){if(!this['isEnabled'])return;const _0x51b583=this['diff'],_0x24e91c=this['repository'],_0x315f1c='string'==typeof _0x493212?_0x24e91c['getRevision'](_0x493212):_0x493212,_0x5d3874='string'==typeof _0x45c8a3?_0x24e91c['getRevision'](_0x45c8a3):_0x45c8a3,_0x127120=_0x315f1c['id'],_0x10cfce=_0x5d3874?_0x5d3874['id']:null;if(!_0x28092f&&this['diff']&&this['diff']['newRevisionId']===_0x127120&&this['diff']['oldRevisionId']===_0x10cfce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x127120,_0x10cfce);const _0x423930=this['_getRevisionsRange'](_0x315f1c,_0x5d3874,!0x0)['map'](_0x51122d=>this['_utils']['loadRevisionData'](_0x51122d,this['adapter']));return _0x423930['push'](new Promise(_0x1ac9e3=>{setTimeout(_0x1ac9e3,0x14);})),Promise['all'](_0x423930)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52a8a0=this['_getDiff'](_0x127120,_0x10cfce);for(const _0x4114ed of _0x52a8a0['changes'])this['_changeIdToChange']['set'](_0x4114ed['id'],_0x4114ed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x419331=>{for(const _0x1856d3 of this['editor']['model']['document']['getRootNames']())_0x419331['detachRoot'](_0x1856d3);for(const _0xfce87f of Object['keys'](_0x52a8a0['model'])){const _0x57b832=_0x419331['addRoot'](_0xfce87f);for(const _0x2b540c of Object['keys'](_0x52a8a0['attributes'][_0xfce87f]))_0x419331['setAttribute'](_0x2b540c,_0x52a8a0['attributes'][_0xfce87f][_0x2b540c],_0x57b832);_0x419331['insert'](_0x52a8a0['model'][_0xfce87f],_0x57b832,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52a8a0['changes'])),this['isReady']=!0x0;})['catch'](_0xb222f7=>{console['error'](_0xb222f7),this['_cleanUp'](),_0x51b583&&(this['diff']=_0x51b583),this['isReady']=!0x0;});}['addRevisionData'](_0x12c929,_0x3ffb30){const _0x322b89=this['repository']['createRevision'](_0x12c929);return _0x322b89['on']('_update',(_0x18c5fa,_0x30bd1f,_0x10105a)=>_0x3ffb30(_0x30bd1f,_0x10105a,_0x322b89)),this['repository']['addRevision'](_0x322b89),_0x322b89;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x133db5=>{for(const _0x26f821 of this['editor']['model']['document']['getRootNames']())_0x133db5['detachRoot'](_0x26f821);});}['_sortAndFilterDiffChanges'](_0x5ec4ea){const _0x3941b6=[],_0x249d07=new Map();for(const _0x5f1206 of this['editor']['model']['document']['getRootNames']()){const _0x1eb5d3=this['editor']['editing']['view']['getDomRoot'](_0x5f1206);if(!_0x1eb5d3)continue;const _0x2f04d1=_0x1eb5d3['getClientRects']()['item'](0x0);_0x2f04d1&&(_0x3941b6['push'](_0x5f1206),_0x249d07['set'](_0x5f1206,_0x2f04d1));}return _0x3941b6['sort']((_0x18b3be,_0x3ca8b0)=>{const _0x58bc9d=_0x249d07['get'](_0x18b3be),_0x5d59db=_0x249d07['get'](_0x3ca8b0);return _0x58bc9d['y']-_0x5d59db['y']||_0x58bc9d['x']-_0x5d59db['x'];}),(_0x5ec4ea=_0x5ec4ea['filter'](_0xf8bf6c=>_0x3941b6['includes'](_0xf8bf6c['rootName'])))['sort']((_0x529e63,_0x1b0544)=>_0x3941b6['indexOf'](_0x529e63['rootName'])-_0x3941b6['indexOf'](_0x1b0544['rootName'])),_0x5ec4ea;}['_makeTape'](_0x3d63c7){const _0x763dc=Array['from'](_0x3d63c7['markers'])['filter'](([_0x243edf,_0x30c924])=>_0x243edf['startsWith']('revision:')&&!_0x30c924['isCollapsed']),_0x25ec2e=Array['from'](this['editor']['model']['createRangeIn'](_0x3d63c7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x763dc['length'])for(const _0x4aa1f3 of _0x25ec2e){const [_0x411538,_0x524cbf]=_0x763dc[0x0],[,_0x5d930d,_0x4fa833]=_0x411538['split'](':');if(_0x524cbf['end']['isEqual'](_0x4aa1f3['nextPosition'])&&_0x763dc['shift'](),(_0x4aa1f3['previousPosition']['isEqual'](_0x524cbf['start'])||_0x4aa1f3['previousPosition']['isAfter'](_0x524cbf['start']))&&('insertion'==_0x5d930d?_0x4aa1f3['isAdded']={'userId':_0x4fa833}:'deletion'==_0x5d930d&&(_0x4aa1f3['isRemoved']={'userId':_0x4fa833})),0x0==_0x763dc['length'])break;}return _0x25ec2e;}['_refreshStartEndIndex'](_0x37f7c9){const _0x21eacd=new Map();for(let _0x296ae3=0x0;_0x296ae3<_0x37f7c9['length'];_0x296ae3++)'text'===_0x37f7c9[_0x296ae3]['type']?(_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3,_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3):('elementStart'===_0x37f7c9[_0x296ae3]['type']?_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3:'elementEnd'===_0x37f7c9[_0x296ae3]['type']&&(_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3),_0x21eacd['set'](_0x37f7c9[_0x296ae3]['id'],_0x296ae3));for(const _0x3248af of _0x21eacd['values']())'elementStart'===_0x37f7c9[_0x3248af]['type']?_0x37f7c9[_0x3248af]['item']['endIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']):'elementEnd'===_0x37f7c9[_0x3248af]['type']&&(_0x37f7c9[_0x3248af]['item']['startIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']));}['_processTape'](_0x4ed8ee){for(let _0x1fdc5b=0x0;_0x1fdc5b<_0x4ed8ee['length'];_0x1fdc5b++){if('elementStart'===_0x4ed8ee[_0x1fdc5b]['type'])_0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b;else{if('elementEnd'===_0x4ed8ee[_0x1fdc5b]['type']){_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b;const _0x217f08=_0x4ed8ee[_0x1fdc5b]['item']['startIndex'];_0x4ed8ee[_0x217f08]['pairId']=_0x4ed8ee[_0x1fdc5b]['id'],_0x4ed8ee[_0x1fdc5b]['pairId']=_0x4ed8ee[_0x217f08]['id'];}else _0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['pairId']=null;}_0x4ed8ee[_0x1fdc5b]['markersStart']||(_0x4ed8ee[_0x1fdc5b]['markersStart']=[],_0x4ed8ee[_0x1fdc5b]['markersEnd']=[]);}}['_markInsertions'](_0x1f7dd7,_0x3ded83){const _0x3a63d8=_0x1f7dd7['filter'](_0x3ab30c=>!_0x3ab30c['isAdded']);for(let _0x19e30e=0x0;_0x19e30e<_0x3ded83['length'];_0x19e30e++)_0x3ded83[_0x19e30e]['isAdded']&&(_0x3a63d8[_0x19e30e]['isAdded']=_0x3ded83[_0x19e30e]['isAdded']);}['_getDiff'](_0x360258,_0x15c1ab=null){const _0x689506=this['repository']['getRevision'](_0x360258),_0x551c42=_0x15c1ab?this['repository']['getRevision'](_0x15c1ab):null,_0x54beef=this['_getRevisionsRange'](_0x689506,_0x551c42),_0x471d0a=_0x54beef[_0x54beef['length']-0x1],_0x208bce=new Map(),_0x1ee1c7={'model':{},'attributes':{},'changes':[]},_0x25fb49=new Set(),_0x14c082=new Map();for(let _0x253cb7=_0x54beef['length']-0x1;_0x253cb7>=0x0;_0x253cb7--){const _0x3f8f3f=_0x54beef[_0x253cb7];for(const _0x482087 of Object['keys'](_0x3f8f3f['diffData']))if(_0x3f8f3f['diffData'][_0x482087]['attachChange']){const _0x2bba93=_0x3f8f3f['diffData'][_0x482087]['attachChange'];_0x2bba93['isAttached']?(_0x25fb49['add'](_0x482087),_0x14c082['has'](_0x482087)&&_0x14c082['get'](_0x482087)['userId']==_0x2bba93['userId']?_0x14c082['delete'](_0x482087):_0x14c082['set'](_0x482087,_0x2bba93)):_0x14c082['has'](_0x482087)?(_0x25fb49['delete'](_0x482087),_0x14c082['delete'](_0x482087)):(_0x25fb49['add'](_0x482087),_0x14c082['set'](_0x482087,_0x2bba93));}else _0x25fb49['add'](_0x482087);}for(const _0x57525b of _0x25fb49){const _0x48d302=_0x14c082['has'](_0x57525b)&&!_0x14c082['get'](_0x57525b)['isAttached'];let _0x23d7e2=_0x48d302?_0x54beef['length']-0x1:0x0;const _0x54c725=_0x48d302?-0x1:0x1;for(;_0x54beef[_0x23d7e2];){const _0x4990f1=_0x54beef[_0x23d7e2];if(_0x4990f1['diffData'][_0x57525b]){const _0x517bb3=_0x48d302?_0x4990f1['diffData'][_0x57525b]['attributesBefore']:_0x4990f1['diffData'][_0x57525b]['attributesAfter'];_0x1ee1c7['attributes'][_0x57525b]=_0x517bb3?_0x45cab9(_0x517bb3):{};break;}_0x23d7e2+=_0x54c725;}}for(const _0x42cd83 of _0x54beef){_0x42cd83['model']={};for(const _0xfe99a9 of _0x42cd83['authors'])_0x208bce['set'](_0xfe99a9['id'],_0xfe99a9);for(const _0x152b5f of _0x25fb49){const _0x258c24=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['insertions']:'[]',_0x1443af=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['deletions']:'[]';_0x42cd83['model'][_0x152b5f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x258c24),'deletions':this['_utils']['_makeModelFromViewString'](_0x1443af)};}}for(const _0xadc881 of _0x25fb49){let _0x55414b=null,_0x341d1f=0x0;const _0x4d992a=new Map(Array['from'](_0x689506['model'][_0xadc881]['insertions']['markers'])['filter'](([_0x5f2540])=>!_0x5f2540['startsWith']('revision:')));let _0x1a3e0f=0x0;for(const _0x4330c5 of _0x54beef){const _0x1986b0=this['_makeTape'](_0x4330c5['model'][_0xadc881]['insertions']);_0x4330c5==_0x689506?(_0x55414b=_0x1986b0,_0x341d1f=_0x55414b['length'],_0x55414b['forEach'](_0x53679c=>{_0x53679c['id']=_0x1a3e0f++;}),this['_processTape'](_0x55414b)):this['_markInsertions'](_0x55414b,_0x1986b0);const _0x5e3a6a=_0x55414b['filter'](_0x213c25=>!_0x213c25['isAdded'])['map'](_0x33bd8e=>_0x33bd8e['id']);let _0x4ffeb4=0x0;const _0xa5d63b=this['_makeTape'](_0x4330c5['model'][_0xadc881]['deletions']);_0xa5d63b['forEach'](_0x5316d0=>{_0x5316d0['isRemoved']?_0x5316d0['id']=_0x341d1f++:_0x5316d0['id']=_0x5e3a6a[_0x4ffeb4++];}),this['_processTape'](_0xa5d63b),this['_setDistance'](_0x55414b,'isAdded'),this['_setDistance'](_0xa5d63b,'isRemoved'),_0x4330c5==_0x689506&&this['_markMarkers'](_0x55414b,_0x4d992a),_0x55414b=this['_joinTapes'](_0x55414b,_0xa5d63b),this['_refreshStartEndIndex'](_0x55414b),this['_setDistance'](_0x55414b,'isRemoved');}_0x55414b=_0x55414b['filter'](_0x49227a=>!(_0x49227a['isAdded']&&_0x49227a['isRemoved']));const _0x1897ec=new Map(_0x471d0a['model'][_0xadc881]['deletions']['markers']),_0x3cef64=new Set(_0x4d992a['keys']());for(const _0x37d321 of _0x1897ec['keys']())_0x3cef64['delete'](_0x37d321);this['_markSuggestions'](_0x55414b,_0x3cef64),this['_fixObsoleteTags'](_0x55414b),_0x55414b=this['_removeMissingPairs'](_0x55414b),_0x55414b=this['_markMismatchedRemovedTags'](_0x55414b),_0x55414b=this['_removeUnsupportedChanges'](_0x55414b);const {root:_0x5d0797,changes:_0x2e6de3}=this['_makeModelFromTape'](_0x55414b,_0x208bce,_0xadc881);_0x1ee1c7['model'][_0xadc881]=_0x5d0797;const _0x4aac27=_0x14c082['get'](_0xadc881);if(_0x4aac27){const _0x2c12b5=_0x208bce['get'](_0x4aac27['userId']),_0x5825d1=new r({'author':_0x2c12b5,'type':_0x4aac27['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xadc881});_0x2e6de3['unshift'](_0x5825d1),_0x1ee1c7['attributes'][_0xadc881]['revisionHistoryAttachChange']=_0x5825d1['id'];}_0x1ee1c7['changes']=_0x1ee1c7['changes']['concat'](_0x2e6de3);}return _0x1ee1c7;}['_markMarkers'](_0x3d2021,_0x108293){for(let _0xfa29=0x0;_0xfa29<_0x3d2021['length'];_0xfa29++)for(const [_0x17e767,_0x383f35]of _0x108293)!_0x383f35['isCollapsed']&&_0x383f35['start']['isEqual'](_0x3d2021[_0xfa29]['previousPosition'])&&_0x3d2021[_0xfa29]['markersStart']['push'](_0x17e767),_0x383f35['end']['isEqual'](_0x3d2021[_0xfa29]['nextPosition'])&&_0x3d2021[_0xfa29]['markersEnd']['push'](_0x17e767);}['_joinTapes'](_0x4636d2,_0x2845f6){let _0x5f1af5=[],_0x2d843f=0x0,_0x24e446=0x0;for(;_0x2d843f<_0x4636d2['length']||_0x24e446<_0x2845f6['length'];){const _0x1c4273=_0x4636d2[_0x2d843f]||{},_0x1285d2=_0x2845f6[_0x24e446]||{};if(_0x1c4273['id']==_0x1285d2['id'])_0x2d843f++,_0x24e446++,_0x5f1af5['push'](_0x1c4273);else{if(_0x1285d2['isRemoved']&&_0x1c4273['isAdded']){const {commonTape:_0x3f7a1a,iEnd:_0xa81141,jEnd:_0x2e1ab0}=this['_threeWayMerge'](_0x4636d2,_0x2d843f,_0x2845f6,_0x24e446);_0x5f1af5=_0x5f1af5['concat'](_0x3f7a1a),_0x2d843f=_0xa81141,_0x24e446=_0x2e1ab0;}else _0x1285d2['isRemoved']?(_0x24e446++,_0x5f1af5['push'](_0x1285d2)):(_0x2d843f++,_0x5f1af5['push'](_0x1c4273));}}return _0x5f1af5;}['_markSuggestions'](_0x24cf1d,_0x2aedfb){const _0x59e68c=[];for(let _0x5c658e=0x0;_0x5c658e<_0x24cf1d['length'];_0x5c658e++){for(let _0x52bc7e=0x0;_0x52bc7e<_0x24cf1d[_0x5c658e]['markersStart']['length'];_0x52bc7e++){const _0x1fd5fd=_0x24cf1d[_0x5c658e]['markersStart'][_0x52bc7e];if(!_0x2aedfb['has'](_0x1fd5fd))continue;const {group:_0x3e6f48,type:_0x549a5d,authorId:_0x3753f7}=_0x5dd60a(_0x1fd5fd);'revision-suggestion'!=_0x3e6f48||'insertion'!=_0x549a5d&&'deletion'!=_0x549a5d||(_0x59e68c['unshift']({'type':_0x549a5d,'name':_0x1fd5fd,'userId':_0x3753f7}),_0x24cf1d[_0x5c658e]['markersStart']['splice'](_0x52bc7e,0x1),_0x52bc7e--);}_0x9704c8(_0x24cf1d[_0x5c658e]);for(let _0x5d5e2c=0x0;_0x5d5e2c<_0x24cf1d[_0x5c658e]['markersEnd']['length'];_0x5d5e2c++){const _0x6a2c9=_0x24cf1d[_0x5c658e]['markersEnd'][_0x5d5e2c];if(!_0x2aedfb['has'](_0x6a2c9))continue;const {group:_0x50d6a1,type:_0x394bdc}=_0x5dd60a(_0x6a2c9);if('revision-suggestion'!=_0x50d6a1||'insertion'!=_0x394bdc&&'deletion'!=_0x394bdc)continue;_0x24cf1d[_0x5c658e]['markersEnd']['splice'](_0x5d5e2c,0x1),_0x5d5e2c--;const _0x23bcb1=_0x59e68c['findIndex'](_0x43fb8a=>_0x43fb8a['name']==_0x6a2c9);_0x23bcb1>-0x1&&_0x59e68c['splice'](_0x23bcb1,0x1);}}function _0x5dd60a(_0x1c8c4b){const _0x178282=_0x1c8c4b['split'](':');return{'group':_0x178282[0x0],'type':_0x178282[0x1],'subType':_0x178282['length']>=0x5?_0x178282[0x2]:null,'id':_0x178282['length']<0x5?_0x178282[0x2]:_0x178282[0x3],'authorId':_0x178282['length']<0x5?_0x178282[0x3]:_0x178282[0x4],'markerCount':0x6==_0x178282['length']?_0x178282[0x5]:null};}function _0x9704c8(_0x57d90b){for(let _0x323e92=0x0;_0x323e92<_0x59e68c['length'];_0x323e92++){if(_0x57d90b['isAdded']&&'insertion'==_0x59e68c[_0x323e92]['type'])return _0x57d90b['isAddSuggestion']=_0x59e68c[_0x323e92],void delete _0x57d90b['isAdded'];if(!_0x57d90b['isAdded']&&!_0x57d90b['isRemoved']&&'deletion'==_0x59e68c[_0x323e92]['type'])return void(_0x57d90b['isRemoveSuggestion']=_0x59e68c[_0x323e92]);}}}['_setDistance'](_0xe78b47,_0x26d243){let _0x260da6=0x0,_0x42e5b2=!0x1;const _0x153b6f=new Map();for(const _0x35d787 of _0xe78b47)_0x35d787[_0x26d243]?_0x42e5b2&&(_0x260da6++,_0x42e5b2=!0x1):(_0x260da6++,_0x42e5b2=!0x0),_0x153b6f['set'](_0x35d787['id'],_0x260da6);for(let _0x7944f9=0x0;_0x7944f9<_0xe78b47['length'];_0x7944f9++){if('isRemoved'==_0x26d243&&_0xe78b47[_0x7944f9]['isAdded']||'isAdded'==_0x26d243&&_0xe78b47[_0x7944f9]['isRemoved'])continue;if('text'==_0xe78b47[_0x7944f9]['type']){_0xe78b47[_0x7944f9]['distance']=0x0;continue;}const _0x3a06ee=_0x153b6f['get'](_0xe78b47[_0x7944f9]['pairId']),_0x5b557e=_0x153b6f['get'](_0xe78b47[_0x7944f9]['id']);_0xe78b47[_0x7944f9]['distance']=_0x3a06ee-_0x5b557e;}}['_getRevisionsRange'](_0x29fc40,_0x233569,_0x56f603=!0x1){const _0x9c85e4=[];let _0x3fcfdc=this['repository']['getIndex'](_0x29fc40),_0x9317ca=this['repository']['getIndex'](_0x233569);for(-0x1==_0x9317ca&&(_0x9317ca=this['repository']['_revisions']['length'],_0x56f603=!0x1);_0x3fcfdc<_0x9317ca;)_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x3fcfdc++;return _0x56f603&&_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x9c85e4;}['_threeWayMerge'](_0x1da89a,_0x24674a,_0x2bb646,_0x12afe1){const _0xe8ab2a=this['editor']['model']['schema'];let _0x293221=_0x24674a;for(;_0x1da89a[_0x293221]&&_0x1da89a[_0x293221]['isAdded'];)_0x293221++;let _0x113385=_0x12afe1;for(;_0x2bb646[_0x113385]&&_0x2bb646[_0x113385]['isRemoved'];)_0x113385++;_0x10c668(_0x1da89a,_0x24674a,_0x293221),_0x10c668(_0x2bb646,_0x12afe1,_0x113385);const _0xeec470=_0x2bb646['slice'](_0x12afe1,_0x113385)['concat'](_0x1da89a['slice'](_0x24674a,_0x293221));return _0xeec470['sort']((_0x1241fd,_0x5ce799)=>_0x1241fd['side']!=_0x5ce799['side']?_0x1241fd['side']-_0x5ce799['side']:_0x1241fd['level']!=_0x5ce799['level']?_0x1241fd['level']-_0x5ce799['level']:_0x1241fd['distance']!=_0x5ce799['distance']?_0x5ce799['distance']-_0x1241fd['distance']:!!_0x1241fd['isAdded']!=!!_0x5ce799['isAdded']?-0x1==_0x1241fd['side']||0x0==_0x1241fd['side']?_0x1241fd['isAdded']?-0x1:0x1:_0x1241fd['isAdded']?0x1:-0x1:_0x1241fd['index']-_0x5ce799['index']),{'commonTape':_0xeec470,'iEnd':_0x293221,'jEnd':_0x113385};function _0x10c668(_0x105ef7,_0x270b7b,_0x285c9e){let _0x421527=-0x1,_0x1c21e6=Number['POSITIVE_INFINITY'],_0x2b67c8=!0x0;for(let _0x3b018d=_0x270b7b;_0x3b018d<_0x285c9e;_0x3b018d++)if(_0xe8ab2a['isInline'](_0x105ef7[_0x3b018d]['item'])||(_0x2b67c8=!0x1),_0x105ef7[_0x3b018d]['item']['startIndex']<_0x270b7b&&(_0x421527=_0x3b018d),_0x105ef7[_0x3b018d]['item']['endIndex']>=_0x285c9e){_0x1c21e6=_0x3b018d;break;}_0x2b67c8&&(_0x421527=_0x285c9e-0x1);for(let _0xd25b56=_0x270b7b;_0xd25b56<_0x285c9e;_0xd25b56++)_0x105ef7[_0xd25b56]['side']=_0xd25b56<=_0x421527?-0x1:_0xd25b56<_0x1c21e6?0x0:0x1,_0x105ef7[_0xd25b56]['index']=_0xd25b56;let _0x194adf=0x0;for(let _0x53ef7d=_0x270b7b;_0x53ef7d<=_0x421527;_0x53ef7d++)0x0==_0x105ef7[_0x53ef7d]['distance']?_0x105ef7[_0x53ef7d]['level']=_0x194adf:(_0x194adf++,_0x105ef7[_0x53ef7d]['level']=_0x194adf,_0x194adf++);for(let _0x1c1cb6=_0x270b7b;_0x1c1cb6<_0x285c9e;_0x1c1cb6++)0x0==_0x105ef7[_0x1c1cb6]['side']&&(_0x105ef7[_0x1c1cb6]['level']=_0x194adf);_0x194adf=0x0;for(let _0x4e0318=_0x285c9e-0x1;_0x4e0318>=_0x1c21e6;_0x4e0318--)0x0==_0x105ef7[_0x4e0318]['distance']?_0x105ef7[_0x4e0318]['level']=_0x194adf:(_0x194adf--,_0x105ef7[_0x4e0318]['level']=_0x194adf,_0x194adf--);}}['_fixObsoleteTags'](_0x357422){const _0x3d0562=new Map(),_0x3bb24b=this['editor']['model']['schema'];for(let _0x287174=0x1;_0x287174<_0x357422['length'];_0x287174++){let _0xa0cd44,_0x152e69,_0x8bba15;const _0x5f0a45=_0x357422[_0x287174],_0x804c18=_0x357422[_0x287174-0x1];if('text'==_0x5f0a45['type'])continue;if(_0x5f0a45['type']!=_0x804c18['type'])continue;if(!_0x3bb24b['isBlock'](_0x804c18['item'])||_0x3bb24b['isLimit'](_0x804c18['item']))continue;if(!_0x3bb24b['isBlock'](_0x5f0a45['item'])||_0x3bb24b['isLimit'](_0x5f0a45['item']))continue;if((_0x357422[_0x287174]['isAdded']||_0x357422[_0x287174]['isAddSuggestion'])&&_0x357422[_0x287174-0x1]['isRemoved'])_0xa0cd44=_0x357422[_0x287174],_0x152e69=_0x357422[_0x287174-0x1],_0x8bba15=_0x287174-0x1;else{if(!_0x357422[_0x287174]['isRemoved']||!_0x357422[_0x287174-0x1]['isAdded']&&!_0x357422[_0x287174-0x1]['isAddSuggestion'])continue;_0xa0cd44=_0x357422[_0x287174-0x1],_0x152e69=_0x357422[_0x287174],_0x8bba15=_0x287174;}const _0x255202=_0xa0cd44['level']==_0x152e69['level'],_0x35c8b9=Math['abs'](_0xa0cd44['level'])<Math['abs'](_0x152e69['level'])&&0x0==_0x152e69['distance'];(_0x255202||_0x35c8b9)&&(_0x3d0562['set'](_0x152e69['id'],_0xa0cd44['id']),_0x357422['splice'](_0x8bba15,0x1),_0x287174--,_0xa0cd44['isAdded']=!0x1);}for(let _0x8ba8bb=0x0;_0x8ba8bb<_0x357422['length'];_0x8ba8bb++)_0x3d0562['has'](_0x357422[_0x8ba8bb]['pairId'])&&(_0x357422[_0x8ba8bb]['pairId']=_0x3d0562['get'](_0x357422[_0x8ba8bb]['pairId']));}['_removeMissingPairs'](_0xa5df4d){const _0x596112=new Set(_0xa5df4d['map'](_0x1b3f5a=>_0x1b3f5a['id']));for(let _0x473e04=0x0;_0x473e04<_0xa5df4d['length'];_0x473e04++)_0x596112['has'](_0xa5df4d[_0x473e04]['pairId'])||0x0==_0xa5df4d[_0x473e04]['distance']||(_0xa5df4d[_0x473e04]['isIncorrect']=!0x0);return _0xa5df4d['filter'](_0x53bd39=>!_0x53bd39['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35722f){const _0x3018c8=new Set();for(let _0x1b5540=0x0;_0x1b5540<_0x35722f['length'];_0x1b5540++){if(_0x3018c8['has'](_0x35722f[_0x1b5540]['id'])&&_0x35722f[_0x1b5540]['isRemoved']&&(_0x35722f[_0x1b5540]['isIncorrect']=!0x0),_0x35722f[_0x1b5540]['isIncorrect'])continue;if(0x0==_0x35722f[_0x1b5540]['distance'])continue;if('elementStart'!=_0x35722f[_0x1b5540]['type'])continue;if(null==_0x35722f[_0x1b5540]['pairId'])continue;let _0x58d91d=_0x1b5540+0x1,_0x22bbc4=0x0;for(;_0x35722f[_0x58d91d]['id']!=_0x35722f[_0x1b5540]['pairId'];)'elementStart'==_0x35722f[_0x58d91d]['type']?_0x22bbc4++:'elementEnd'==_0x35722f[_0x58d91d]['type']&&_0x22bbc4--,_0x58d91d++;if(0x0!=_0x22bbc4){if(_0x35722f[_0x1b5540]['isRemoved'])_0x35722f[_0x1b5540]['isIncorrect']=!0x0;else{for(;_0x58d91d!=_0x1b5540;)_0x35722f[_0x58d91d]['isRemoved']&&0x0!=_0x35722f[_0x58d91d]['distance']&&(_0x35722f[_0x58d91d]['isIncorrect']=!0x0,_0x3018c8['add'](_0x35722f[_0x58d91d]['pairId'])),_0x58d91d--;}}}return _0x35722f['filter'](_0x58dc82=>!_0x58dc82['isIncorrect']);}['_removeUnsupportedChanges'](_0x15039e){const _0x313f5c=this['editor']['model']['schema'];for(let _0x30483b=0x0;_0x30483b<_0x15039e['length'];_0x30483b++){if(!(_0x15039e[_0x30483b]['isAdded']||_0x15039e[_0x30483b]['isAddSuggestion']||_0x15039e[_0x30483b]['isRemoved']||_0x15039e[_0x30483b]['isRemoveSuggestion']))continue;if(0x0==_0x15039e[_0x30483b]['distance'])continue;const _0x3407fa=_0x15039e[_0x30483b]['item'];_0x313f5c['isBlock'](_0x3407fa)||_0x313f5c['isLimit'](_0x3407fa)||(_0x15039e[_0x30483b]['isAdded']&&delete _0x15039e[_0x30483b]['isAdded'],_0x15039e[_0x30483b]['isAddSuggestion']&&delete _0x15039e[_0x30483b]['isAddSuggestion'],_0x15039e[_0x30483b]['isRemoveSuggestion']&&delete _0x15039e[_0x30483b]['isRemoveSuggestion'],_0x15039e[_0x30483b]['isRemoved']&&(_0x15039e[_0x30483b]['isIncorrect']=!0x0));}return _0x15039e['filter'](_0x1b1265=>!_0x1b1265['isIncorrect']);}['_makeModelFromTape'](_0x9233a1,_0x3552bc,_0x4274a8){const _0x39fe64=new vt(),_0x5cceb2=[],_0x3bb58f=new Map(),_0x520313=this['editor']['model'],_0x9ba92a=_0x520313['schema'],_0x53c76e=[_0x39fe64],_0x3509d0={},_0x2d916d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x31776d=null;const _0x191f8b=[0x0];for(let _0x1847ab=0x0;_0x1847ab<_0x9233a1['length'];_0x1847ab++)if('elementStart'===_0x9233a1[_0x1847ab]['type']){_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);const _0x2ecd42=new ut(_0x9233a1[_0x1847ab]['item']['name'],_0x9233a1[_0x1847ab]['item']['getAttributes']());_0x53c76e[0x0]['_appendChild'](_0x2ecd42),_0x191f8b['push'](0x0),_0x53c76e['unshift'](_0x2ecd42),_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);}else'elementEnd'===_0x9233a1[_0x1847ab]['type']?(_0x53c76e['shift'](),_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x191f8b['pop'](),_0x191f8b[_0x191f8b['length']-0x1]++,_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b)):(_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x31776d?_0x31776d['_data']+=_0x9233a1[_0x1847ab]['item']['data']:_0x31776d=new gt(_0x9233a1[_0x1847ab]['item']['data'],_0x9233a1[_0x1847ab]['item']['getAttributes']()),_0x9233a1[_0x1847ab+0x1]&&'text'===_0x9233a1[_0x1847ab+0x1]['type']&&_0x46003d(_0x31776d,_0x9233a1[_0x1847ab+0x1]['item'])||(_0x53c76e[0x0]['_appendChild'](_0x31776d),_0x31776d=null),_0x191f8b[_0x191f8b['length']-0x1]+=_0x9233a1[_0x1847ab]['item']['offsetSize'],_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b));for(let _0x2f1d47=0x0;_0x2f1d47<_0x9233a1['length'];_0x2f1d47++){const _0x444112=_0x9233a1[_0x2f1d47]['previousPosition'],_0x5c1410=_0x9233a1[_0x2f1d47]['nextPosition'];for(const _0x1274cd of _0x9233a1[_0x2f1d47]['markersStart'])_0x3bb58f['set'](_0x1274cd,{'start':_0x444112,'end':null});_0x184a1f('isRemoveSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAddSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isRemoved',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAdded',_0x2f1d47,_0x444112,_0x5c1410);for(const _0x4e4b15 of _0x9233a1[_0x2f1d47]['markersEnd']){const _0x1fbf4d=_0x3bb58f['get'](_0x4e4b15);_0x1fbf4d?_0x1fbf4d['end']=_0x5c1410:_0x3bb58f['set'](_0x4e4b15,{'start':_0x5c1410,'end':_0x5c1410});}}for(const [_0x3614d9,_0x4200b4]of _0x3bb58f){const _0x19cfc4=this['editor']['model']['createRange'](_0x4200b4['start'],_0x4200b4['end']);_0x39fe64['markers']['set'](_0x3614d9,_0x19cfc4);}return _0x5cceb2['sort']((_0x4fc53,_0x1edc13)=>{const _0x8ad6ba=_0x39fe64['markers']['get']('revision:'+_0x4fc53['id']),_0x49409e=_0x39fe64['markers']['get']('revision:'+_0x1edc13['id']);return _0x8ad6ba['start']['isBefore'](_0x49409e['start'])?-0x1:_0x8ad6ba['start']['isAfter'](_0x49409e['start'])?0x1:_0x8ad6ba['end']['isBefore'](_0x49409e['end'])?-0x1:_0x8ad6ba['end']['isAfter'](_0x49409e['end'])?0x1:'add'===_0x4fc53['type']?-0x1:0x1;}),{'root':_0x39fe64,'changes':_0x5cceb2};function _0x184a1f(_0x77e3c,_0xb9f4aa,_0x4bfee2,_0x2ec67b){const _0x576a0=!!_0x9233a1[_0xb9f4aa][_0x77e3c],_0x19fe9b=_0x576a0?_0x9233a1[_0xb9f4aa][_0x77e3c]['userId']:null,_0x435ba7=_0xb9f4aa===_0x9233a1['length']-0x1,_0x3fc798=_0x2d916d[_0x77e3c][0x0],_0x467b89=_0x9ba92a['isObject'](_0x9233a1[_0xb9f4aa]['item']);!_0x3509d0[_0x77e3c]&&_0x576a0?_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}:_0x3509d0[_0x77e3c]&&!_0x576a0?(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null):_0x3509d0[_0x77e3c]&&_0x576a0&&_0x3509d0[_0x77e3c]['userId']!==_0x19fe9b&&(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x3fc798&&_0x3fc798['userId']===_0x3509d0[_0x77e3c]['userId']||_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}),_0x3509d0[_0x77e3c]&&_0x467b89&&('elementStart'!==_0x9233a1[_0xb9f4aa]['type']||_0x3fc798&&_0x3fc798['userId']===_0x19fe9b||_0x2d916d[_0x77e3c]['unshift']({'userId':_0x19fe9b,'object':_0x9233a1[_0xb9f4aa]['item'],'change':_0x3509d0[_0x77e3c]}),'elementEnd'===_0x9233a1[_0xb9f4aa]['type']&&_0x3fc798&&_0x3fc798['object']===_0x9233a1[_0xb9f4aa]['item']&&(_0x2d916d[_0x77e3c]['shift'](),_0x3509d0[_0x77e3c]=_0x3fc798['change'])),_0x3509d0[_0x77e3c]&&_0x435ba7&&(_0x3509d0[_0x77e3c]['end']=_0x2ec67b,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null);}function _0x4c4d08({start:_0x299305,end:_0x5f04f2,tapeItem:_0x309ec1,userId:_0x5afaae,type:_0x5ee6d5}){const _0x4644b2=_0x309ec1['item'],_0x234558=_0x520313['schema']['isBlock'](_0x4644b2)&&!_0x520313['schema']['isLimit'](_0x4644b2),_0x9589d9=_0x299305['nodeAfter']==_0x5f04f2['parent']&&_0x5f04f2['isAtStart'];if(_0x234558&&_0x9589d9)return;const _0x3ab5db=_0x520313['createRange'](_0x299305,_0x5f04f2),_0x3a207e=_0x3552bc['get'](_0x5afaae),_0xe2c4fc=new r({'author':_0x3a207e,'type':'isAdded'==_0x5ee6d5||'isAddSuggestion'==_0x5ee6d5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ee6d5||'isRemoveSuggestion'==_0x5ee6d5},'createdAt':new Date(),'rootName':_0x4274a8});_0x5cceb2['push'](_0xe2c4fc),_0x39fe64['markers']['set']('revision:'+_0xe2c4fc['id'],_0x3ab5db);}function _0x46003d(_0xb2008d,_0x2e1d97){const _0x35b169=_0xb2008d['getAttributes'](),_0x41d38c=_0x2e1d97['getAttributes']();for(const _0x3c920a of _0x35b169){if(_0x3c920a[0x1]!==_0x2e1d97['getAttribute'](_0x3c920a[0x0]))return!0x1;_0x41d38c['next']();}return _0x41d38c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3857fa=>{const _0x8a18a=_0x3857fa['markerName']['split'](':')[0x1],_0x406ac1=this['_getChangeFromId'](_0x8a18a);if(!_0x406ac1)return null;const _0x59f1c2='add'==_0x406ac1['type']?'insertion':'deletion',_0x4d7f09=['ck-suggestion-marker','ck-suggestion-marker-'+_0x59f1c2];return _0x406ac1['data']['isSuggestion']&&_0x4d7f09['push']('ck-suggestion-marker-'+_0x59f1c2+'-new'),this['activeChange']==_0x406ac1&&_0x4d7f09['push']('ck-suggestion-marker--active'),{'classes':_0x4d7f09,'attributes':{'data-change-id':_0x8a18a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x309733=>{_0x309733['on']('element:pre',(_0x42e95c,_0x36f3c1,_0x287f3e)=>{const _0x1574a6=_0x36f3c1['viewItem']['getChild'](0x0);if(!_0x1574a6||!_0x1574a6['is']('element','code'))return;if(!_0x287f3e['consumable']['consume'](_0x1574a6,{'attributes':['vid_start','vid_end']}))return;const _0x59fcc8=_0x36f3c1['modelRange']['start']['nodeAfter'];_0x287f3e['writer']['setAttribute']('vid_start',_0x1574a6['getAttribute']('vid_start'),_0x59fcc8),_0x287f3e['writer']['setAttribute']('vid_end',_0x1574a6['getAttribute']('vid_end'),_0x59fcc8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3148d9=>{_0x3148d9['on']('element',(_0x3fc268,_0x270342,_0x2a120c)=>{if(!_0x2a120c['consumable']['consume'](_0x270342['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x270342['modelRange']['isCollapsed'])return;const _0x44270f=_0x270342['modelRange']['start']['nodeAfter'];_0x44270f['hasAttribute']('vid_start')||_0x44270f['hasAttribute']('vid')||(_0x2a120c['writer']['setAttribute']('vid_start',_0x270342['viewItem']['getAttribute']('vid_start'),_0x44270f),_0x2a120c['writer']['setAttribute']('vid_end',_0x270342['viewItem']['getAttribute']('vid_end'),_0x44270f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x47485a=>_0x47485a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe0a140,[,_0x26e91d])=>{['vid_start','vid_end','vid']['includes'](_0x26e91d)&&(_0xe0a140['return']=!0x0,_0xe0a140['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x40fc41=>{_0x40fc41['on']('attribute:vid',(_0x453013,_0x196fd0,_0x9009a3)=>{if('\x20'!=_0x196fd0['item']['data']||_0x196fd0['item']['parent']['maxOffset']>0x1)return;if(!_0x9009a3['consumable']['consume'](_0x196fd0['item'],_0x453013['name']))return;const _0x1cdc38=_0x9009a3['writer'],_0x410986=_0x9009a3['mapper']['toViewRange'](_0x196fd0['range']);_0x1cdc38['wrap'](_0x410986,_0x1cdc38['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a0413){const _0x10b3c6=_0x1a0413['plugins']['get']('RevisionViewer');return(_0x40d708,_0x5249db,_0x5300fc)=>{const _0x119f0c=_0x5249db['markerName']['split'](':')[0x1],_0x4a88a0=_0x10b3c6['_getChangeFromId'](_0x119f0c);if(!_0x4a88a0)return null;const _0x45b0d2='add'==_0x4a88a0['type']?'split':'merge';if(!_0x5300fc['consumable']['test'](_0x5249db['markerRange'],_0x40d708['name']))return;const _0xc52478=_0x5249db['markerRange']['getWalker'](),_0xcc7fca=_0x5249db['markerRange']['start'],_0x2b2d65=_0x1a0413['model']['schema'];let _0x717947=null,_0xff2172=null,_0xb55069=!0x1,_0x36983c=!0x1;for(const _0x16f5bd of _0xc52478){const _0x1481f3=_0x16f5bd['item'];_0xb55069=_0xb55069||_0x2b2d65['isContent'](_0x1481f3);const _0x26292a=_0x5300fc['mapper']['toViewElement'](_0x1481f3);if(_0x26292a&&_0x26292a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16f5bd['type']&&(_0x2b2d65['isBlock'](_0x1481f3)&&!_0x2b2d65['isLimit'](_0x1481f3)&&(_0x1481f3['nextSibling']||_0xcc7fca['isAtEnd']?_0x717947&&_0x717947['parent']==_0x1481f3||(_0x717947=_0x1481f3,_0x437585(_0x16f5bd['previousPosition']),_0x36983c=!0x0):_0xff2172=_0xff2172||_0x16f5bd['previousPosition']));}function _0x437585(_0x2e1c2d){const _0x3e8428=_0x5300fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45b0d2}),_0x3845b7=_0x5300fc['mapper']['toViewPosition'](_0x2e1c2d);_0x4a88a0['data']['isSuggestion']&&_0x5300fc['writer']['addClass']('ck-suggestion-marker-'+_0x45b0d2+'-new',_0x3e8428),_0x10b3c6['activeChange']==_0x4a88a0&&_0x5300fc['writer']['addClass']('ck-suggestion-marker--active',_0x3e8428),_0x5300fc['writer']['insert'](_0x3845b7,_0x3e8428),_0x5300fc['mapper']['bindElementToMarker'](_0x3e8428,_0x5249db['markerName']);}_0xb55069||_0x36983c||!_0xff2172||_0x437585(_0xff2172);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19f967,_0x2b5ecf,_0x1190f5)=>{const _0x591715=_0x1190f5['mapper']['markerNameToElements'](_0x2b5ecf['markerName']);if(_0x591715){for(const _0x25f961 of _0x591715)(_0x25f961['hasClass']('ck-suggestion-marker-split')||_0x25f961['hasClass']('ck-suggestion-marker-merge'))&&(_0x1190f5['mapper']['unbindElementFromMarkerName'](_0x25f961,_0x2b5ecf['markerName']),_0x1190f5['writer']['remove'](_0x25f961));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f9268,_0x29cca5,_0x5a981b)=>{const _0x2f2d30=_0x29cca5['markerName']['split'](':')[0x1],_0x4c75d1=this['_getChangeFromId'](_0x2f2d30);if(!_0x4c75d1)return null;const _0x534d87='add'==_0x4c75d1['type']?'split':'merge';if(_0x5a981b['consumable']['test'](_0x29cca5['markerRange'],_0x4f9268['name']))for(const _0x48189b of _0x29cca5['markerRange']['getItems']()){if(!_0x48189b['is']('element','softBreak'))continue;const _0x5be92a=_0x5a981b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x534d87}),_0x46ebfd=_0x5a981b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x48189b));_0x4c75d1['data']['isSuggestion']&&_0x5a981b['writer']['addClass']('ck-suggestion-marker-'+_0x534d87+'-new',_0x5be92a),this['activeChange']==_0x4c75d1&&_0x5a981b['writer']['addClass']('ck-suggestion-marker--active',_0x5be92a),_0x5a981b['writer']['insert'](_0x46ebfd,_0x5be92a),_0x5a981b['mapper']['bindElementToMarker'](_0x5be92a,_0x29cca5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x190eca=>{for(const _0x340cbd of this['editor']['model']['document']['getRootNames']()){const _0x52eb06=this['editor']['model']['document']['getRoot'](_0x340cbd),_0x2442b8=this['editor']['editing']['view']['document']['getRoot'](_0x340cbd);if(_0x2442b8){const _0x7c9dc3=_0x52eb06['getAttribute']('revisionHistoryAttachChange');if(_0x190eca['removeAttribute']('data-change-id',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-add',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-remove',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root--active',_0x2442b8),_0x7c9dc3){const _0x505607=this['_getChangeFromId'](_0x7c9dc3);if(!_0x505607)return null;_0x190eca['setAttribute']('data-change-id',_0x7c9dc3,_0x2442b8),_0x190eca['addClass']('ck-revision-history-root-'+_0x505607['type'],_0x2442b8),this['activeChange']==_0x505607&&_0x190eca['addClass']('ck-revision-history-root--active',_0x2442b8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x484511=>'revision-comment:'+_0x484511,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2b69ed=>'revision-suggestion:'+_0x2b69ed,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1da415=>({'name':'suggestion:'+_0x1da415,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11b90d=>{const _0xcc870b=_0x11b90d['markerName']['split'](':')[0x1];return'insertion'!=_0xcc870b&&'deletion'!=_0xcc870b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcc870b]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x8f8971,_0x569444,_0x174f2)=>{const _0x271136=_0x174f2['mapper']['markerNameToElements'](_0x569444['markerName']);if(_0x271136){for(const _0x10733b of _0x271136)_0x10733b['is']('uiElement')&&(_0x174f2['mapper']['unbindElementFromMarkerName'](_0x10733b,_0x569444['markerName']),_0x174f2['writer']['remove'](_0x10733b));}},{'priority':'high'});}['_getChangeFromId'](_0x5275e8){return this['_changeIdToChange']['get'](_0x5275e8);}['_getViewForChange'](_0x11ba44){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x11ba44),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e43d8,_0x51d446,_0x14deac,_0x21d1e9)=>{_0x21d1e9&&this['_balloon']['remove'](_0x21d1e9),_0x14deac&&(this['_balloon']['add']({'view':_0x14deac,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4e02e0=this['editor']['editing'],_0x5655cb=this['_getChangeFromId'](_0x14deac['changeId']);let _0x1dd5c6;if(_0x5655cb['data']['isOnRoot']){const _0xabf462=_0x4e02e0['view']['getDomRoot'](_0x5655cb['rootName']);_0x1dd5c6=Array['from'](_0xabf462['getClientRects']());}else{const _0x50b541=this['editor']['model']['markers']['get']('revision:'+_0x14deac['changeId']);_0x1dd5c6=Array['from'](_0x4e02e0['mapper']['markerNameToElements'](_0x50b541['name']))['map'](_0x2965d1=>_0x4e02e0['view']['domConverter']['mapViewToDom'](_0x2965d1))['map'](_0x3632c7=>Array['from'](_0x3632c7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dd5c6[0x0];return _0x1dd5c6['find'](_0x196d2c=>_0x196d2c['top']-0x3<=this['_activeViewTarget']['y']&&_0x196d2c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x196d2c['left']-0x3<=this['_activeViewTarget']['x']&&_0x196d2c['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dd5c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3ea215,_0x56a9ae,_0x9a22b3,_0x276e7a)=>{this['activeView']=_0x9a22b3?this['_getViewForChange'](_0x9a22b3):null,this['editor']['model']['change'](()=>{const _0x5da82e=this['editor']['editing'];_0x276e7a&&(_0x276e7a['data']['isOnRoot']?_0x5da82e['view']['change'](_0x2f184a=>{_0x2f184a['removeClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x276e7a['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x276e7a['id'])),_0x9a22b3&&(_0x9a22b3['data']['isOnRoot']?_0x5da82e['view']['change'](_0x4998b0=>{_0x4998b0['addClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x9a22b3['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x9a22b3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38b90f,_0x5798dd)=>{if(this['activeChange'])return;const _0x431df6=this['_findChangeIdFromDomTarget'](_0x5798dd['target']),_0xe44faa=this['_changeIdToChange']['get'](_0x431df6);_0xe44faa?(this['_activeViewTarget']={'x':_0x5798dd['domEvent']['x'],'y':_0x5798dd['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe44faa)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c195e,_0x17fa9c)=>{const _0x45e858=this['_findChangeIdFromDomTarget'](_0x17fa9c['target']),_0x33772b=this['_changeIdToChange']['get'](_0x45e858);_0x33772b?(this['_activeViewTarget']={'x':_0x17fa9c['domEvent']['x'],'y':_0x17fa9c['domEvent']['y']},_0x33772b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x33772b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c607d){do{const _0x4312da=_0x4c607d['getAttribute']('data-change-id');if(_0x4312da)return _0x4312da;_0x4c607d=_0x4c607d['parent'];}while(_0x4c607d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1572a8=>{for(const _0x4ed9c3 of this['editor']['model']['markers'])_0x1572a8['removeMarker'](_0x4ed9c3);});}}function X(_0x31a37e,_0x2b0c29){return(_0x394f08,_0x210121,_0x34cb9a)=>{if(!_0x34cb9a['consumable']['test'](_0x210121['markerRange'],_0x394f08['name']))return;const _0x29808f=_0x210121['markerRange']['getWalker'](),_0x47d7cb=_0x210121['markerRange']['start'],_0x2d20be=_0x31a37e['model']['schema'];let _0x1bfac4=null,_0x52e580=null,_0xb348ec=!0x1,_0xe49420=!0x1;for(const _0x3c7fa2 of _0x29808f){const _0x5a10cd=_0x3c7fa2['item'];_0xb348ec=_0xb348ec||_0x2d20be['isContent'](_0x5a10cd);const _0x3f22e6=_0x34cb9a['mapper']['toViewElement'](_0x5a10cd);if(_0x3f22e6&&_0x3f22e6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c7fa2['type']&&(_0x2d20be['isBlock'](_0x5a10cd)&&!_0x2d20be['isLimit'](_0x5a10cd)&&(_0x5a10cd['nextSibling']||_0x47d7cb['isAtEnd']?_0x1bfac4&&_0x1bfac4['parent']==_0x5a10cd||(_0x1bfac4=_0x5a10cd,_0x3b04a2(_0x3c7fa2['previousPosition']),_0xe49420=!0x0):_0x52e580=_0x52e580||_0x3c7fa2['previousPosition']));}function _0x3b04a2(_0x26f2a7){const _0x3fdd5c=_0x34cb9a['mapper']['toViewPosition'](_0x26f2a7),_0x3dc52f=_0x34cb9a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b0c29});_0x34cb9a['writer']['insert'](_0x3fdd5c,_0x3dc52f),_0x34cb9a['mapper']['bindElementToMarker'](_0x3dc52f,_0x210121['markerName']);}_0xb348ec||_0xe49420||!_0x52e580||_0x3b04a2(_0x52e580);};}class mt extends _0x594d33{constructor(_0x4b722f){super(_0x4b722f);const _0x4d241c=_0x4b722f['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4d241c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d241c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x55e39e=this['editor'],_0x46039a=_0x55e39e['plugins']['get'](m),_0x17a69f=_0x46039a['isReady']?_0x46039a['diff']['newRevisionId']:null;_0x55e39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17a69f);}['refresh'](){const {isReady:_0x4b0614,isEnabled:_0x2771c0,repository:_0x3b7a8c,diff:_0x1ce1aa}=this['editor']['plugins']['get'](m),_0x507636=_0x1ce1aa&&_0x3b7a8c['getLaterVisibleRevision'](_0x1ce1aa['newRevisionId']);this['isEnabled']=_0x4b0614&&_0x2771c0&&Boolean(_0x507636);}}class wt extends _0x594d33{['_step'];constructor(_0x1fbba4,{direction:_0x182a6c}){super(_0x1fbba4);const _0x2271d9=_0x1fbba4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x182a6c?0x1:-0x1,this['listenTo'](_0x2271d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e5614=this['editor'],_0x402185=_0x4e5614['plugins']['get'](m),{isNavigationMode:_0x1f6f6e,currentChangeNumber:_0x4ef815}=_0x402185;let _0x8818ec;if(_0x402185['activeChange']=_0x1f6f6e?_0x402185['diff']['changes']['get'](_0x4ef815+this['_step']):_0x402185['diff']['changes']['first'],_0x402185['activeChange']['data']['isOnRoot'])_0x8818ec=_0x4e5614['editing']['view']['getDomRoot'](_0x402185['activeChange']['rootName']);else{const _0xdc5cc5=_0x4e5614['model']['markers']['get']('revision:'+_0x402185['activeChange']['id']);_0x8818ec=_0x504600(_0x4e5614['editing'],_0xdc5cc5);}_0x39a608({'target':_0x8818ec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3581db,currentChangeNumber:_0x395de2,numberOfChanges:_0xe69d13,isReady:_0x956f78,isEnabled:_0x2cf4da}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2cf4da&&_0x956f78&&_0xe69d13)&&(!_0x3581db||(0x1===this['_step']?_0x395de2<_0xe69d13-0x1:_0x395de2>0x0));}}class _i extends ts{constructor(_0x18281d){super(_0x18281d);const _0x3534f3=this['bindTemplate'],_0x566f6d=new te(_0x18281d),_0x137578=new te(_0x18281d);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',(_0xcfb687,_0x129e53)=>_0xcfb687&&_0x129e53>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35acc4,_0x20569b,_0x2c1b76,_0x5dc15f)=>{if(!_0x35acc4)return g(_0x18281d,'Loading...');if(!_0x2c1b76)return g(_0x18281d,'No\x20changes');const _0x19b4d5=g(_0x18281d,'NUMBER_OF_CHANGES',_0x2c1b76);return _0x5dc15f?g(_0x18281d,'X_OF_Y_CHANGES',[_0x20569b+0x1,_0x2c1b76]):_0x19b4d5;}),_0x566f6d['set']({'label':g(_0x18281d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x23ce80}),_0x137578['set']({'label':g(_0x18281d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x15754f}),_0x566f6d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x137578['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x566f6d['on']('execute',()=>this['fire']('execute','backward')),_0x137578['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',_0x3534f3['if']('_isStatusLabelVisible','ck-hidden',_0x4b4676=>!_0x4b4676)]},'children':[{'text':_0x3534f3['to']('isNavigationMode',_0x449042=>_0x449042?g(_0x18281d,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x18281d,'Total')+':\x20')}]},{'text':_0x3534f3['to']('_statusText')}]},new _0x3d06e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x566f6d,_0x137578]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x252983=this['editor']['editing']['view'];_0x252983['change'](_0xee90d1=>{for(const _0x20272a of _0x252983['document']['roots'])_0xee90d1['addClass'](le,_0x20272a);});}['hide'](){const _0x597db3=this['editor']['editing']['view'];_0x597db3['change'](_0x482b2c=>{for(const _0x52e6e4 of _0x597db3['document']['roots'])_0x482b2c['removeClass'](le,_0x52e6e4);});}}class R extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2f442a=this['editor'],_0x510bf6=_0x2f442a['plugins']['get'](m),_0x13ab57=_0x2f442a['plugins']['get'](ge);_0x2f442a['ui']['componentFactory']['add']('exitToEditing',_0x12acd1=>{const _0x240134=new te(_0x12acd1);return _0x240134['set']({'label':g(_0x12acd1,'Back\x20to\x20editing'),'icon':_0x314236,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x240134,'execute',()=>{_0x2f442a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x240134;}),_0x2f442a['ui']['componentFactory']['add']('restoreRevision',_0x4476ce=>{const _0x42c8eb=new te(_0x4476ce);return _0x42c8eb['set']({'label':g(_0x4476ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42c8eb['bind']('isEnabled')['to'](_0x2f442a['commands']['get']('restoreRevision')),this['listenTo'](_0x42c8eb,'execute',()=>_0x2f442a['execute']('restoreRevision')),_0x42c8eb;}),_0x2f442a['ui']['componentFactory']['add']('changesNavigation',_0x9b9c70=>{const _0x1a0e8b=new _i(_0x9b9c70),_0x287f36=_0x2f442a['commands']['get']('showPreviousChange'),_0x4a5ac5=_0x2f442a['commands']['get']('showNextChange');return _0x1a0e8b['bind']('isBackwardNavigationEnabled')['to'](_0x287f36,'isEnabled'),_0x1a0e8b['bind']('isForwardNavigationEnabled')['to'](_0x4a5ac5,'isEnabled'),_0x1a0e8b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x510bf6),this['listenTo'](_0x1a0e8b,'execute',(_0x29f267,_0x21f463)=>{_0x2f442a['execute']('forward'===_0x21f463?'showNextChange':'showPreviousChange');}),_0x1a0e8b;}),_0x13ab57['show'](),_0x510bf6['on']('change:isReady',(_0x55443b,_0x2c436f,_0x33e162)=>{_0x33e162?_0x13ab57['hide']():_0x13ab57['show']();});}}class at extends _0x38e6de{['_resizeObserver']=null;constructor(_0x20d92e,_0xd510db){super(_0x20d92e,_0xd510db);const _0x2f7a73=this['bindTemplate'];this['set']({'label':g(_0x20d92e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x20d92e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2f7a73['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4ac899=this['fieldView']['element'];this['_tooltipString']=_0x4ac899['scrollWidth']>_0x4ac899['clientWidth']&&_0x4ac899['value']||'';}}class si extends ts{constructor(_0x25cac6,_0x352094,_0x54828d){super(_0x25cac6);const _0x4af8b0=new _0x266c4f();_0x4af8b0['set']({'content':_0xb2492c,'viewBox':'0\x200\x2011\x2010'});const _0x2f80fc=['ck','ck-revision-history-sidebar__revision-author'];_0x54828d&&_0x2f80fc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x29a8ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x25cac6,_0x54828d?'Revision\x20creator':'Revision\x20author')},'children':[_0x4af8b0,_0x352094['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2f80fc},'children':_0x29a8ab});}}function oi(_0x2f1169,_0x20f165){const _0x681f91=_0x2f1169['bindTemplate'],_0x100a59=_0x2f1169['locale'],_0x57164a=_0xd7ef31(_0x100a59);_0x57164a['panelPosition']='sw';const _0x2292f0=function(_0x20543b,_0x584ad4){const _0x48c7e8=function(_0x41f5f4,_0x324db1){const _0xa835f9=_0x41f5f4['locale'],_0xff457b={'Compare\x20against\x20selected':g(_0xa835f9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xa835f9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xa835f9,'Restore\x20this\x20revision')};return _0x324db1['map'](_0x4c1068=>{const _0xca596=_0xff457b[_0x4c1068['name']];return _0xca596&&_0xca596!==_0x4c1068['name']&&(_0x4c1068['name']=_0xca596),_0x4c1068;});}(_0x20543b,_0x584ad4),_0x4faf07=new _0x18d259();for(const _0x34a15e of _0x48c7e8){const _0x309964={'type':'button','model':new to({'label':_0x34a15e['name'],'class':_0x34a15e['class'],'withText':!0x0,'role':'menuitem','_action':_0x34a15e['action']})};_0x309964['model']['bind']('isEnabled')['to'](_0x20543b,'isActionsDropdownOpen',_0x240aca=>'function'!=typeof _0x34a15e['isEnabled']||(!_0x240aca||_0x34a15e['isEnabled'](_0x20543b))),_0x4faf07['add'](_0x309964);}return _0x4faf07;}(_0x2f1169,_0x20f165);return _0x2f1169['bind']('isActionsDropdownOpen')['to'](_0x57164a,'isOpen'),_0x57164a['buttonView']['set']({'label':g(_0x100a59,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4cc44b}),_0x57164a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x681f91['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x681f91['to'](_0x5fbe8f=>_0x5fbe8f['stopPropagation']())}}),_0x57164a['on']('execute',_0x3c78d7=>{_0x2f1169['isReady']&&'function'==typeof _0x3c78d7['source']['_action']&&_0x3c78d7['source']['_action'](_0x2f1169);}),_0x3d1927(_0x57164a,_0x2292f0,{'role':'menu'}),_0x57164a['listenTo'](_0x2f1169,'change:isActionsDropdownOpen',(_0x302d32,_0xc663bc,_0x38151b)=>{if(_0x38151b)for(const _0x542a8e of _0x57164a['listView']['items']){const _0x190c5c=_0x542a8e['children']['first'],_0x57ca4f=_0x20f165['find'](_0x4c5380=>_0x4c5380['action']===_0x190c5c['_action'])['isVisible'];_0x542a8e['isVisible']=void 0x0===_0x57ca4f||_0x57ca4f(_0x2f1169);}}),_0x57164a;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x30cbeb,_0x4c19a0,_0x4c4551,_0x3c975f){super(_0x30cbeb);const _0x5db06c=this['bindTemplate'],_0x14cbec=function(_0x54b19d,_0x4dde78){const _0x354443=Array['from'](_0x4dde78['authors'])['filter'](_0x177b85=>_0x177b85!=_0x4dde78['creator']);return _0x4dde78['creator']&&_0x354443['unshift'](_0x4dde78['creator']),_0x354443['map'](_0xae025d=>new si(_0x54b19d,_0xae025d,_0xae025d==_0x4dde78['creator']));}(_0x30cbeb,_0x4c19a0);this['id']=_0x4c19a0['id'],this['_revision']=_0x4c19a0,this['_requireRevisionName']=_0x3c975f,this['bind']('name','createdAt')['to'](_0x4c19a0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x42f116=>{return _0x201ae2=_0x30cbeb['uiLanguage'],(_0x1a75c8=_0x42f116)['toLocaleDateString'](_0x201ae2,{'month':'long','day':'numeric'})+',\x20'+_0x1a75c8['toLocaleTimeString'](_0x201ae2,{'hour':'numeric','minute':'numeric'});var _0x201ae2,_0x1a75c8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x30cbeb,_0x1e4d55),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xb7e92b=>_0xb7e92b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x563c43,_0x50071f)=>_0x563c43&&_0x50071f),this['revisionActionsView']=_0x4c4551&&_0x4c4551['length']?oi(this,_0x4c4551):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5db06c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5db06c['if']('isEnabled','ck-disabled',_0x1f857f=>!_0x1f857f),_0x5db06c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5db06c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5db06c['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':_0x5db06c['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':_0x14cbec}]},this['revisionActionsView']],'on':{'click':_0x5db06c['to'](_0x263d87=>{_0x263d87['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x399f72=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x399f72,'change',()=>{this['_requireRevisionName']&&!_0x399f72['value']||this['fire']('setName',{'id':this['id'],'name':_0x399f72['value']}),_0x399f72['value']||(_0x399f72['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0xcfa58d,_0x915a4f){const _0x262766=_0x27ef4e['fromJSDate'](_0xcfa58d)['setLocale'](_0x915a4f),_0x23d7c7=_0x27ef4e['local'](),_0xf2f148=_0x23d7c7['minus']({'days':0x1})['startOf']('day');let _0xf3f27,_0x527425;return _0x262766['hasSame'](_0x23d7c7,'day')?(_0xf3f27=_0x262766['startOf']('day')['toJSDate'](),_0x527425=_0x262766['toRelativeCalendar']()):_0x262766['hasSame'](_0xf2f148,'day')?(_0xf3f27=_0xf2f148['toJSDate'](),_0x527425=_0x262766['toRelativeCalendar']()):_0x262766['hasSame'](_0x23d7c7,'week')?(_0xf3f27=_0x262766['startOf']('week')['toJSDate'](),_0x527425=_0x262766['weekdayLong']||''):_0x262766['hasSame'](_0x23d7c7,'year')?(_0xf3f27=_0x262766['startOf']('month')['toJSDate'](),_0x527425=_0x262766['monthLong']||''):(_0xf3f27=_0x262766['startOf']('year')['toJSDate'](),_0x527425=String(_0x262766['year'])),{'startDate':_0xf3f27,'localizedPeriodName':_0x527425};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3b1467,_0x3abe31,_0x113f87,_0x10cc27){super(_0x3b1467);const _0x4c3169=ai(_0x3abe31,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3abe31,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x113f87,this['_requireRevisionName']=_0x10cc27,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':_0x4c3169}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54f64a){const _0x51d954=new hi(this['locale'],_0x54f64a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x51d954);}['removeRevision'](_0x21fb01){const _0x150d23=this['revisionViews']['find'](_0x33926b=>_0x33926b['id']===_0x21fb01['id']);this['revisionViews']['remove'](_0x150d23);}}class as extends ts{constructor(_0x59d544){super(_0x59d544);const _0x2ba111=new _0x266c4f();_0x2ba111['content']=_0x3a8444,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2ba111,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x59d544,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4195e9,_0x2c0d69,_0x650eb,_0x3465ec){super(_0x4195e9);const _0x228295=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2c0d69,this['_revisionActions']=_0x650eb,this['_requireRevisionName']=_0x3465ec,this['on']('select',(_0x59d771,_0x50cf26)=>{this['fire']('revisionSelected',_0x50cf26);}),this['on']('setName',(_0x3b2bd6,_0x68dd50)=>{this['fire']('revisionSetName',_0x68dd50);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4195e9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x228295['if']('isEnabled','ck-disabled',_0x5d4a3a=>!_0x5d4a3a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x401dbb of this['_revisions'])this['_addRevision'](_0x401dbb);this['_revisions']['on']('add',(_0x2c4304,_0x2a8d21)=>{this['_addRevision'](_0x2a8d21);}),this['_revisions']['on']('remove',(_0x1de470,_0x22151f)=>{this['_removeRevision'](_0x22151f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1599d5=>_0x1599d5['revisionViews']['map'](_0x1cd352=>_0x1cd352))['flat']();}['selectRevision'](_0x140fd0){for(const _0x46777c of this['revisionViews'])_0x140fd0&&_0x140fd0['id']===_0x46777c['id']?_0x46777c['select']():_0x46777c['deselect']();}['highlightRevisions'](_0x4c3e67){for(const _0x2acd3e of this['revisionViews'])_0x4c3e67['some'](({id:_0x5236e7})=>_0x5236e7===_0x2acd3e['id'])?_0x2acd3e['highlight']():_0x2acd3e['unhighlight']();}['_addRevision'](_0x588957){const _0x415c80=ai(_0x588957['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36939d=this['timePeriodViews']['get'](0x0);_0x36939d&&_0x36939d['startDate']['getTime']()===_0x415c80['getTime']()||(_0x36939d=new di(this['locale'],_0x415c80,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36939d)),_0x36939d['addRevision'](_0x588957);}['_removeRevision'](_0x2ee8c1){const _0x271d9a=ai(_0x2ee8c1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x271d9a)['removeRevision'](_0x2ee8c1);}['_getTimePeriodViewByStartDate'](_0x44e9d7){return this['timePeriodViews']['find'](_0x1e0c3a=>_0x1e0c3a['startDate']['getTime']()===_0x44e9d7['getTime']());}}class d extends _0x59ac4e{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x1b2d26(_0x39bcec){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x498409,_0x5681c9){super(_0x5681c9),this['sourceElement']=_0x498409,this['model']['document']['createRoot']();const _0x513665=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x513665);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x30dd78,_0x5a08c6){const _0x37ca93=new this(_0x30dd78,_0x5a08c6);return await _0x37ca93['initPlugins'](),await _0x37ca93['ui']['init'](_0x30dd78),await _0x37ca93['data']['init'](_0x37ca93['config']['get']('initialData')||''),_0x37ca93['fire']('ready'),_0x37ca93;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x2ff424{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a5bf9){function _0x343344(_0x1678f9){return _0x1678f9['map'](_0x23b76a=>String['fromCharCode'](_0x23b76a))['join']('');}super(_0x5a5bf9),this['result']='end',_0x5a5bf9[_0x343344([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x343344([0x76,0x69,0x65,0x77])][_0x343344([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x343344([0x61,0x75,0x74,0x6f]),_0x5a5bf9[_0x343344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x343344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x343344([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x343344([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x343344([0x6f,0x6b])});}}class k extends _0x2ff424{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xefcf89){if(super(_0xefcf89),!this['editor']['config']['get']('revisionHistory'))throw new _0xc67eb9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2b5760=>this['_showRevisionViewer']({..._0x2b5760,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5d1b94=>this['_closeRevisionViewer'](_0x5d1b94)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x45be62=>this['_restoreRevision'](_0x45be62)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x307c98){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x307c98;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x39732c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x39732c);}['getRevision'](_0x44b237){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x44b237);}['getRevisions'](_0x25d1cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x25d1cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x569e5c=this['editor'],_0x5b4c3a=_0x5929e9(_0x569e5c,p),_0x95faa=_0x569e5c['plugins']['get']('RevisionTracker'),_0x39d0e9=_0x569e5c['plugins']['get']('Users')['users'];return _0x5b4c3a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5b4c3a['lazyRoots'],(_0x5b4c3a['plugins']['push'](_t,m,R,class extends _0x2ff424{static get['requires'](){return[m,'Users'];}['init'](){const _0xa3f622=this['editor']['plugins']['get']('Users');for(const _0x453a46 of _0x39d0e9)_0x453a46['isAnonymous']||_0xa3f622['getUser'](_0x453a46['id'])||_0xa3f622['addUser'](_0x453a46);const _0x14375a=_0x95faa['repository']['getRevisions']();let _0x276e91=null;const _0x3d62ac=this['editor']['plugins']['get']('RevisionViewer');_0x3d62ac['adapter']=_0x95faa['adapter'],_0x3d62ac['bind']('isEnabled')['to'](_0x95faa),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x569e5c,'isReadOnly',_0x276099=>!_0x276099);for(const _0x443c51 of _0x14375a){const _0x268831=null===_0x443c51['creator'];if(_0x268831&&_0x443c51['toVersion']===_0x443c51['fromVersion'])continue;const _0x4e0ec3=_0x443c51['toJSON']();_0x3d62ac['addRevisionData'](_0x4e0ec3,(_0x541427,_0x1e7aea,_0x1488b7)=>{if(_0x268831){if(_0x276e91)_0x276e91['_update'](_0x541427,_0x1e7aea);else{if(!_0x1e7aea){const _0x200461=_0x1488b7['toJSON']();_0x200461['id']=_0x3ac6ae(),_0x95faa['saveRevision'](_0x200461,_0x1488b7['toVersion'])['then'](_0x184ba0=>{_0x276e91=_0x184ba0;});}}}else _0x443c51['_update'](_0x541427,_0x1e7aea);});}}},d),_0x5b4c3a);}['_enhanceShowRevisionViewerCallback'](){const _0x4496cf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5a7c3f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xcc725e=this['editor']['plugins']['get']('Autosave');await _0xcc725e['save']();}else await _0x5a7c3f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x596697=this['editor']['plugins']['get']('Dialog');_0x596697['isOpen']&&_0x596697['hide']();}const _0x28f574=this['_getRevisionViewerEditorConfig']();return _0x4496cf(_0x28f574)['then'](_0x17ae6d=>{return(this['_viewerEditor']=_0x17ae6d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x17ae6d);})['catch'](_0x107363=>(console['error'](_0x107363),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2d9ad5=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2d9ad5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3c70a1=this['editor']['plugins']['get']('Annotations');_0x3c70a1['refreshVisibility'](),_0x3c70a1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x19ce0b){const _0xd5520f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5dd8ad=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8fe57e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x8fe57e,_0x19ce0b)['then'](_0x4e6ca9=>(_0x5dd8ad['style']['display']='block',_0xd5520f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4e6ca9));}['_closeRevisionViewer'](_0x35d767){const _0x1a9dc3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1a9dc3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x35d767['destroy']();}async['_restoreRevision'](_0x33671e){const _0x1758dd=this['editor'],_0x217e72=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x44a7b1=_0x1758dd['plugins']['get']('RevisionTracker'),_0x3fce2a=_0x1758dd['plugins']['get']('RevisionHistoryUtils'),_0x1c2ce1=_0x217e72['repository']['getRevision'](_0x33671e);let _0x350cae,_0x15516f,_0x3f2969;try{await _0x3fce2a['loadRevisionData'](_0x1c2ce1,this['adapter']),_0x350cae=_0x3fce2a['getRevisionDocumentData'](_0x1c2ce1),_0x15516f=_0x3fce2a['getRevisionRootsAttributes'](_0x1c2ce1);}catch(_0x4ebbe1){return void console['error'](_0x4ebbe1);}_0x1758dd['model']['change'](_0x37dd44=>{for(const _0x4a02ac of Array['from'](_0x1758dd['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x37dd44['removeMarker'](_0x4a02ac);}),_0x217e72['isReady']=!0x1,_0x1758dd['model']['enqueueChange'](_0x46666c=>{_0x46666c['setSelection'](null),_0x46666c['removeSelectionAttribute'](_0x1758dd['model']['document']['selection']['getAttributeKeys']());const _0x3126b5=Object['keys'](_0x350cae);for(const _0x531524 of _0x1758dd['model']['document']['roots'])'$graveyard'!=_0x531524['rootName']&&_0x531524['isAttached']()&&!_0x3126b5['includes'](_0x531524['rootName'])&&_0x46666c['detachRoot'](_0x531524);for(const _0x298212 of _0x3126b5){let _0x13d485=_0x1758dd['model']['document']['getRoot'](_0x298212);_0x13d485&&_0x13d485['isAttached']()||(_0x13d485=_0x46666c['addRoot'](_0x298212));const _0xd12559=_0x15516f[_0x298212],_0x542553=Object['keys'](_0xd12559),_0x36b251=_0x350cae[_0x298212];for(const _0x480977 of _0x13d485['getAttributeKeys']())_0x542553['includes'](_0x480977)||_0x46666c['removeAttribute'](_0x480977,_0x13d485);for(const _0x15c2af of _0x542553)_0x46666c['setAttribute'](_0x15c2af,_0x15516f[_0x298212][_0x15c2af],_0x13d485);_0x46666c['remove'](_0x46666c['createRangeIn'](_0x13d485)),_0x46666c['insert'](_0x1758dd['data']['parse'](_0x36b251,_0x13d485),_0x13d485,0x0);}});const _0x39b7a0=g(_0x1758dd['locale'],'Restored');if(_0x1c2ce1['name'])_0x3f2969=-0x1==_0x1c2ce1['name']['indexOf'](_0x39b7a0)?_0x39b7a0+':\x20'+_0x1c2ce1['name']:_0x1c2ce1['name'];else _0x3f2969=_0x39b7a0+':\x20'+(_0x1c2ce1['createdAt']['toLocaleDateString'](_0x1758dd['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c2ce1['createdAt']['toLocaleTimeString'](_0x1758dd['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x44a7b1['saveRevision']({'name':_0x3f2969}),_0x217e72['isReady']=!0x0,_0x1758dd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x479736){super(_0x479736),this['_revisionViewer']=_0x479736['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1b54d9=this['_revisionsRepository']['_revisions'],_0x3836f3=this['_createRevisionActions'](),_0x15b26b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1b54d9,_0x3836f3,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',(_0x42dca6,_0x1d7f71)=>{_0x1d7f71['revisionViews']['on']('add',(_0x2a9dae,_0x3cfeca)=>{_0x3cfeca['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)),_0x15b26b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x515757=this['_revisionsRepository']['getRevision'](0x0);if(_0x515757){const _0x580abc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x515757['id']);this['_revisionViewer']['compare'](_0x515757,_0x580abc);}}['_handleRevisionSelected'](_0x4ac0d4,_0x3ec9d4){const _0x40512e=this['_revisionsRepository']['getRevision'](_0x3ec9d4['id']),_0x3352e9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40512e['id']);this['_revisionViewer']['compare'](_0x40512e,_0x3352e9);}['_handleRevisionSetName'](_0xb1d7e,_0x37c72a){this['_revisionsRepository']['getRevision'](_0x37c72a['id'])['setName'](_0x37c72a['name']);}['_handleDiffChange'](_0x2ae325,_0x5836df,_0x105470){const _0x4beeb2=this['_revisionsRepository']['getRevisionsInDiff'](_0x105470);_0x4beeb2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4beeb2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4beeb2[0x0]));}['_createRevisionActions'](){const _0x201e46=this['editor'],_0xdacb0a=d['availableRevisionActions'],_0x7489f=_0x201e46['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x7489f['length'])return _0x7489f['map'](_0x3ae67b=>{const _0x4ee2d9='string'==typeof _0x3ae67b?Object['assign']({},_0xdacb0a[_0x3ae67b]):_0x3ae67b;return _0x4ee2d9['action']=_0x4ee2d9['action']['bind'](this,_0x201e46),_0x4ee2d9['isVisible']&&(_0x4ee2d9['isVisible']=_0x4ee2d9['isVisible']['bind'](this,_0x201e46)),_0x4ee2d9;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x493484},_0x377133)=>{const _0x4e69c4=_0x493484['get'](m),_0xb43efc=_0x4e69c4['repository'];let _0x4e8287=_0x4e69c4['diff']['newRevisionId'],_0x391b00=_0x377133['id'];_0xb43efc['getIndex'](_0x4e8287)>_0xb43efc['getIndex'](_0x391b00)&&([_0x4e8287,_0x391b00]=[_0x391b00,_0x4e8287]),_0x4e69c4['compare'](_0x4e8287,_0x391b00);},'isVisible':({plugins:_0x2f3f90},_0x24a388)=>{const _0x5256cb=_0x2f3f90['get'](m);return!(_0x5256cb['repository']['getRevisionsInDiff'](_0x5256cb['diff'])['length']>0x2)&&!_0x24a388['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x505c2f,{id:_0x18438f})=>{_0x505c2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18438f);},'isVisible':({plugins:_0x42f615},_0x5dd528)=>!!_0x42f615['get'](m)['repository']['getLaterVisibleRevision'](_0x5dd528['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1764e4},{id:_0x10fd3b,revisionNameView:_0x4c45ed})=>{const _0x544e4c=_0x1764e4['get'](m),_0x42e62a=_0x544e4c['repository']['getEarlierVisibleRevision'](_0x10fd3b);_0x544e4c['compare'](_0x10fd3b,_0x42e62a),_0x4c45ed['focus'](),_0x4c45ed['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4bb0fe,_0x1b2085){super(_0x4bb0fe),this['_view']=_0x1b2085,this['_toolbarConfig']=et(_0x4bb0fe['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2f99b3){const _0x3b2064=this['editor'],_0xf2f137=this['view'],_0x299517=_0x3b2064['editing']['view'],_0x5e88f4=_0xf2f137['editable'],_0x3039fc=_0x299517['document']['getRoot']();_0x5e88f4['name']=_0x3039fc['rootName'],_0xf2f137['render']();const _0x3b8d12=_0x5e88f4['element'];this['setEditableElement'](_0x5e88f4['name'],_0x3b8d12),_0xf2f137['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x299517['attachDomRoot'](_0x3b8d12),this['_elementReplacer']['replace'](_0x2f99b3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xb97f=this['view'],_0x1170cc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1170cc['detachDomRoot'](_0xb97f['editable']['name']),_0xb97f['destroy']();}['_initToolbar'](){const _0x5aaa82=this['view'];_0x5aaa82['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5aaa82['stickyPanel']['limiterElement']=_0x5aaa82['element'],_0x5aaa82['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xd6cdfe})=>_0xd6cdfe),_0x5aaa82['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5aaa82['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x19f8ee,_0x4150c7,_0x1dcb2e={}){super(_0x19f8ee),this['stickyPanel']=new ht(_0x19f8ee),this['toolbar']=new dt(_0x19f8ee,{'shouldGroupWhenFull':_0x1dcb2e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x19f8ee,_0x4150c7);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x138b7b(_0x1fc663){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3f3aed,_0xcb2bef){super(_0xcb2bef),this['sourceElement']=_0x3f3aed,this['model']['document']['createRoot']();const _0x5e0b11=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5e0b11);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x534df3,_0x29118f){const _0x362c93=new this(_0x534df3,_0x29118f);return await _0x362c93['initPlugins'](),await _0x362c93['ui']['init'](_0x534df3),await _0x362c93['data']['init'](_0x362c93['config']['get']('initialData')||''),_0x362c93['fire']('ready'),_0x362c93;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x59ac4e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30a01d){function _0x1d0165(_0x5d64a6){return _0x5d64a6['map'](_0x5da41c=>String['fromCharCode'](_0x5da41c))['join']('');}super(_0x30a01d),this['result']='end',_0x30a01d[_0x1d0165([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d0165([0x76,0x69,0x65,0x77])][_0x1d0165([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d0165([0x61,0x75,0x74,0x6f]),_0x30a01d[_0x1d0165([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1d0165([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d0165([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1d0165([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1d0165([0x6f,0x6b])});}}class k extends _0x59ac4e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x43404d){if(super(_0x43404d),!this['editor']['config']['get']('revisionHistory'))throw new _0x55c2a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bbc92=>this['_showRevisionViewer']({..._0x1bbc92,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2e4455=>this['_closeRevisionViewer'](_0x2e4455)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2519cc=>this['_restoreRevision'](_0x2519cc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41690d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41690d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4e2fb9){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4e2fb9);}['getRevision'](_0x18da4f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x18da4f);}['getRevisions'](_0x39e993){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x39e993||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x534dc8=this['editor'],_0x4ff1bb=_0x389b08(_0x534dc8,p),_0x52abd0=_0x534dc8['plugins']['get']('RevisionTracker'),_0x567c1d=_0x534dc8['plugins']['get']('Users')['users'];return _0x4ff1bb['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ff1bb['lazyRoots'],(_0x4ff1bb['plugins']['push'](_t,m,R,class extends _0x59ac4e{static get['requires'](){return[m,'Users'];}['init'](){const _0x3a44e3=this['editor']['plugins']['get']('Users');for(const _0x2f4e6a of _0x567c1d)_0x2f4e6a['isAnonymous']||_0x3a44e3['getUser'](_0x2f4e6a['id'])||_0x3a44e3['addUser'](_0x2f4e6a);const _0x280f82=_0x52abd0['repository']['getRevisions']();let _0x219f14=null;const _0x2d5c94=this['editor']['plugins']['get']('RevisionViewer');_0x2d5c94['adapter']=_0x52abd0['adapter'],_0x2d5c94['bind']('isEnabled')['to'](_0x52abd0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x534dc8,'isReadOnly',_0x2a0aa5=>!_0x2a0aa5);for(const _0x73d652 of _0x280f82){const _0x29cc67=null===_0x73d652['creator'];if(_0x29cc67&&_0x73d652['toVersion']===_0x73d652['fromVersion'])continue;const _0x8ef2a8=_0x73d652['toJSON']();_0x2d5c94['addRevisionData'](_0x8ef2a8,(_0x4ec2ff,_0x4bed94,_0x4686a1)=>{if(_0x29cc67){if(_0x219f14)_0x219f14['_update'](_0x4ec2ff,_0x4bed94);else{if(!_0x4bed94){const _0x30c42c=_0x4686a1['toJSON']();_0x30c42c['id']=_0x2c0587(),_0x52abd0['saveRevision'](_0x30c42c,_0x4686a1['toVersion'])['then'](_0x41c9fb=>{_0x219f14=_0x41c9fb;});}}}else _0x73d652['_update'](_0x4ec2ff,_0x4bed94);});}}},d),_0x4ff1bb);}['_enhanceShowRevisionViewerCallback'](){const _0xe867f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xabbd70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d1fa1=this['editor']['plugins']['get']('Autosave');await _0x4d1fa1['save']();}else await _0xabbd70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x59dc8f=this['editor']['plugins']['get']('Dialog');_0x59dc8f['isOpen']&&_0x59dc8f['hide']();}const _0xa2d22b=this['_getRevisionViewerEditorConfig']();return _0xe867f(_0xa2d22b)['then'](_0x259f14=>{return(this['_viewerEditor']=_0x259f14,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x259f14);})['catch'](_0x3b55c9=>(console['error'](_0x3b55c9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4b37f4=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4b37f4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ab1e3=this['editor']['plugins']['get']('Annotations');_0x1ab1e3['refreshVisibility'](),_0x1ab1e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x276926){const _0x3419b1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x333475=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2205bd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2205bd,_0x276926)['then'](_0x5cee6d=>(_0x333475['style']['display']='block',_0x3419b1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5cee6d));}['_closeRevisionViewer'](_0x128ea6){const _0x349ae9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x349ae9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x128ea6['destroy']();}async['_restoreRevision'](_0x449d69){const _0x1af4fa=this['editor'],_0xf13895=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x122b20=_0x1af4fa['plugins']['get']('RevisionTracker'),_0x34f9a3=_0x1af4fa['plugins']['get']('RevisionHistoryUtils'),_0x700a60=_0xf13895['repository']['getRevision'](_0x449d69);let _0x5970a2,_0x1513fd,_0x16fba0;try{await _0x34f9a3['loadRevisionData'](_0x700a60,this['adapter']),_0x5970a2=_0x34f9a3['getRevisionDocumentData'](_0x700a60),_0x1513fd=_0x34f9a3['getRevisionRootsAttributes'](_0x700a60);}catch(_0x1b19d2){return void console['error'](_0x1b19d2);}_0x1af4fa['model']['change'](_0x39810f=>{for(const _0x5f4213 of Array['from'](_0x1af4fa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x39810f['removeMarker'](_0x5f4213);}),_0xf13895['isReady']=!0x1,_0x1af4fa['model']['enqueueChange'](_0x43dcc3=>{_0x43dcc3['setSelection'](null),_0x43dcc3['removeSelectionAttribute'](_0x1af4fa['model']['document']['selection']['getAttributeKeys']());const _0x232daa=Object['keys'](_0x5970a2);for(const _0x998cc6 of _0x1af4fa['model']['document']['roots'])'$graveyard'!=_0x998cc6['rootName']&&_0x998cc6['isAttached']()&&!_0x232daa['includes'](_0x998cc6['rootName'])&&_0x43dcc3['detachRoot'](_0x998cc6);for(const _0x1c8be7 of _0x232daa){let _0x53e459=_0x1af4fa['model']['document']['getRoot'](_0x1c8be7);_0x53e459&&_0x53e459['isAttached']()||(_0x53e459=_0x43dcc3['addRoot'](_0x1c8be7));const _0x28e56c=_0x1513fd[_0x1c8be7],_0x41ea47=Object['keys'](_0x28e56c),_0x4acb3a=_0x5970a2[_0x1c8be7];for(const _0x330617 of _0x53e459['getAttributeKeys']())_0x41ea47['includes'](_0x330617)||_0x43dcc3['removeAttribute'](_0x330617,_0x53e459);for(const _0x508097 of _0x41ea47)_0x43dcc3['setAttribute'](_0x508097,_0x1513fd[_0x1c8be7][_0x508097],_0x53e459);_0x43dcc3['remove'](_0x43dcc3['createRangeIn'](_0x53e459)),_0x43dcc3['insert'](_0x1af4fa['data']['parse'](_0x4acb3a,_0x53e459),_0x53e459,0x0);}});const _0x1e47df=g(_0x1af4fa['locale'],'Restored');if(_0x700a60['name'])_0x16fba0=-0x1==_0x700a60['name']['indexOf'](_0x1e47df)?_0x1e47df+':\x20'+_0x700a60['name']:_0x700a60['name'];else _0x16fba0=_0x1e47df+':\x20'+(_0x700a60['createdAt']['toLocaleDateString'](_0x1af4fa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x700a60['createdAt']['toLocaleTimeString'](_0x1af4fa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x122b20['saveRevision']({'name':_0x16fba0}),_0xf13895['isReady']=!0x0,_0x1af4fa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|